/* Homepage introduction — shares the discovery section's color and type system. */
body.asnaf-gp-body.asnaf-home-body { padding-bottom: 0; background: #fff; }
.home-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home-wrap { width: min(80rem, calc(100% - 4rem)); margin-inline: auto; }
.home-hero { position: relative; z-index: 3; padding-top: 1.75rem; color: #172c46; font-family: "Asnaf UI", sans-serif; }
.home-hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 2.5rem; align-items: center; width: min(80rem, calc(100% - 4rem)); margin-inline: auto;
  padding: 2.5rem; border: 1px solid #dfe9f1; border-radius: 28px;
  background: linear-gradient(115deg, #e8f5f1 0%, #eff5fc 48%, #f5f8ff 100%);
}
.home-hero__copy { position: relative; z-index: 3; min-width: 0; }
.home-hero__kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .35rem .7rem .35rem .9rem; border: 1px solid #dce6f5; border-radius: 50px; background: #ffffffa6; color: #345271; font-size: .73rem; font-weight: 500; line-height: 1.9; }
.home-hero__kicker > span { display: grid; place-items: center; width: 27px; height: 27px; background: #dfe9ff; border-radius: 50%; color: #2858df; }
.home-hero h1 { margin: 1rem 0 0; color: #172c46; font-family: var(--font-display); font-size: clamp(2.8rem, 4.1vw, 3.85rem); font-weight: 800; line-height: 1.35; }
.home-hero h1 em { display: inline-block; position: relative; color: #087e74; font-style: normal; isolation: isolate; }
.home-hero h1 em::after { content: ''; position: absolute; z-index: -1; height: .15em; inset-inline: 0 .12em; bottom: .08em; border-radius: 50%; background: #ffd16d; transform: rotate(-2deg); }
.home-hero__lead { margin: 1.2rem 0 0; color: #5c6e82; font-size: .9rem; font-weight: 400; line-height: 2.1; }
.home-hero__stats { display: flex; gap: 0; margin: 1.8rem 0 0; padding: 0; max-width: 29rem; }
.home-hero__stats > div { display: flex; flex-direction: column-reverse; gap: .2rem; flex: 1; padding-inline: 1.5rem; border-inline-start: 1px solid #d4e0e9; }
.home-hero__stats > div:first-child { padding-inline-start: 0; border: 0; }
.home-hero__stats dt { font-size: .7rem; color: #5f7084; line-height: 1.9; white-space: nowrap; }
.home-hero__stats dd { margin: 0; color: #2858df; font-size: 1.55rem; font-weight: 700; line-height: 1.4; }
.home-hero__stats > div:nth-child(2) dd { color: #087e74; }
.home-hero__stats > div:nth-child(3) dd { color: #c24b27; }

/* A colored, interactive atlas; all province links remain real directory links. */
.home-hero__explore { position: relative; width: 100%; max-width: 25.5rem; margin-inline: auto; min-width: 0; padding: 1.5rem 0 .5rem; isolation: isolate; }
.home-hero__explore::before { content: ''; position: absolute; z-index: -1; width: 86%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -52%); border: 1px solid #cfdfdf; border-radius: 50%; background: #dfeeed; box-shadow: 0 0 0 24px #e3eeee66, 0 0 0 25px #d4e3e544; }
.home-hero__explore::after { content: ''; position: absolute; z-index: -1; width: 12px; height: 12px; left: 7%; top: 28%; border: 3px solid #fff; background: #f5b741; border-radius: 50%; box-shadow: 0 0 0 5px #f5b74118; }
.home-hero__map { position: relative; width: 100%; margin-inline: auto; }
.home-hero__map-badge { display: inline-flex; align-items: center; gap: .7rem; position: absolute; z-index: 2; top: .75rem; right: .5rem; background: #fff; padding: .75rem .9rem; border: 1px solid #e2ecee; border-radius: 14px; box-shadow: 0 8px 24px #1d46530a; transform: rotate(4deg); pointer-events: none; }
.home-hero__map-badge > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff0ce; color: #916200; }
.home-hero__map-badge strong { display: block; font-size: .78rem; font-weight: 700; line-height: 1.9; }
.home-hero__map-badge small { display: block; color: #68798c; font-size: .59rem; line-height: 1.8; }
.home-hero__map-caption { display: flex; align-items: center; justify-content: center; gap: .5rem; width: fit-content; max-width: 100%; margin: -.25rem auto 0; position: relative; z-index: 2; padding: .7rem 1rem; border: 1px solid #dde9ed; border-radius: 50px; background: #ffffffcc; color: #355c6c; font-size: .7rem; line-height: 1.8; }
.home-hero__map-caption svg { color: #087e74; flex: none; }
.home-iran { position: relative; }
.home-iran__svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 0 #b8cfd887); }
.home-hero .home-iran path { fill: #8bc9c6; stroke: #f5fbfd; stroke-width: 1.5px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .35s, stroke .35s; }
.home-hero .home-iran a:nth-of-type(3n) path { fill: #abd9cf; }
.home-hero .home-iran a:nth-of-type(5n) path { fill: #a9c6ef; }
.home-hero .home-iran a:nth-of-type(7n) path { fill: #f1c8a6; }
.home-hero .home-iran path.home-iran__water { fill: #d2e8f1; stroke: #bbd8e5; stroke-width: 1px; cursor: default; }
.home-hero .home-iran a.is-on path, .home-hero .home-iran a:hover path, .home-hero .home-iran a:focus path { fill: #2858df; stroke: #fff; }
.home-hero .home-iran a:focus-visible { outline: none; }
.home-hero .home-iran a:focus-visible path { stroke: #142d49; stroke-width: 2.5px; }
.home-iran__tip { display: none; position: absolute; z-index: 4; left: 0; top: 0; min-width: 7.2rem; padding: .55rem .8rem; border: 1px solid #dce6f0; border-radius: 11px; background: #fff; color: #172c46; box-shadow: 0 10px 25px #24436b18; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 12px)); }
.home-iran__tip.is-glide { transition: left .8s ease, top .8s ease, opacity .25s ease; }
.home-iran__tip.is-on { display: block; opacity: 1; }
.home-iran__tip.is-below { transform: translate(-50%, 14px); }
.home-iran__tip strong { display: block; font-size: .8rem; font-weight: 700; line-height: 1.8; }
.home-iran__tip em { display: block; margin-top: .05rem; color: #087e74; font-style: normal; font-size: .65rem; line-height: 1.8; }

/* Search remains above the illustration and can expand beyond the hero frame. */
.home-find { position: relative; max-width: 36rem; margin-top: 1.6rem; }
.home-find__field { display: flex; align-items: center; gap: .7rem; padding: .5rem .9rem .5rem .5rem; border: 1px solid #d7e2f0; border-radius: 15px; background: #fff; color: #172c46; box-shadow: 0 10px 30px #20446f08; }
.home-find__field > svg { flex: none; color: #768ca6; width: 20px; }
.home-find input { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; color: #172c46; font: inherit; font-size: .84rem; outline: none; }
.home-find input::placeholder { color: #708095; font-weight: 400; opacity: 1; }
.home-find__field > button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; flex: none; min-height: 46px; padding: .75rem 1.05rem; border: 0; border-radius: 10px; background: #2858df; color: #fff; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.home-find__field > button:hover { background: #214ac1; }
.home-find:focus-within .home-find__field { outline: 2px solid #2858df; outline-offset: 3px; }
.home-find button:focus-visible, .home-find a:focus-visible { outline: 2px solid #142d49; outline-offset: 3px; }
.home-find__panel { position: absolute; z-index: 6; inset-inline: 0; top: calc(100% + .55rem); max-height: min(420px, 62vh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #dce6f0; border-radius: 15px; background: #fff; color: #172c46; box-shadow: 0 18px 48px #20446f24; }
.home-find__panel[hidden] { display: none; }
.home-find__panel [role="listbox"] { margin: 0; padding: .4rem; }
.home-find__hit { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; align-items: center; padding: .65rem; border-radius: 9px; text-decoration: none; }
.home-find__hit:has(img) { grid-template-columns: 2.6rem minmax(0, 1fr); }
.home-find__hit.is-on, .home-find__hit:hover { background: #edf2ff; }
.home-find__mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; overflow: hidden; border: 1px solid #e3e9f0; border-radius: 10px; background: #f1f6fb; }
.home-find__mark img { width: 100%; height: 100%; object-fit: contain; }
.home-find__mark img.is-photo { object-fit: cover; }
.home-find__hit strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #172c46; font-size: .77rem; font-weight: 700; line-height: 1.9; }
.home-find__hit span { display: block; color: #617084; font-size: .65rem; line-height: 1.9; }
body.asnaf-home-body a.home-find__hit { color: #172c46; }
.home-find__all, .home-find__empty { display: block; width: 100%; border: 0; border-top: 1px solid #e3e9f0; background: #fff; color: #2449b4; padding: .9rem; font: inherit; font-size: .76rem; font-weight: 500; line-height: 1.9; text-align: center; cursor: pointer; }
.home-find__all[hidden] { display: none; }
.home-find__empty { cursor: default; color: #617084; border: 0; }
.home-find__all:hover { background: #edf2ff; }

@media (max-width: 1150px) {
  .home-hero__inner { padding: 2.2rem; gap: 2rem; }
  .home-hero h1 { font-size: 3.2rem; }
  .home-hero__lead { font-size: .82rem; }
  .home-hero__stats > div { padding-inline: 1rem; }
  .home-hero__map-badge { padding: .6rem .7rem; right: 0; top: 0; }
  .home-hero__map-badge strong { font-size: .7rem; }
  .home-hero__map-badge small { font-size: .55rem; }
  .home-find__field { gap: .5rem; }
  .home-find__field > button { gap: .5rem; padding-inline: .8rem; }
}
@media (max-width: 960px) {
  .home-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 2.5rem; }
  .home-hero__copy { width: 100%; max-width: 37rem; margin-inline: auto; text-align: center; }
  .home-hero h1 { font-size: 3.5rem; }
  .home-hero__lead { font-size: .88rem; }
  .home-find, .home-hero__stats { margin-inline: auto; }
  .home-hero__stats { max-width: 27rem; }
  .home-hero__stats > div { padding-inline: 1rem; }
  .home-hero__stats > div:first-child { padding-inline-start: 1rem; }
  .home-hero__explore { max-width: 24rem; padding-top: 1rem; }
  .home-hero__map-badge { top: -.5rem; right: 0; text-align: right; }
  .home-iran__tip { text-align: right; }
  .home-find__panel { text-align: right; }
}
@media (max-width: 900px) {
  .home-hero__inner, .home-wrap { width: calc(100% - 2.5rem); }
}
@media (max-width: 640px) {
  .home-hero { padding-top: 1.1rem; }
  .home-hero__inner, .home-wrap { width: calc(100% - 2rem); }
  .home-hero__inner { padding: 1.5rem 1.15rem 1.15rem; gap: 2.2rem; border-radius: 20px; }
  .home-hero__kicker { font-size: .6rem; padding: .3rem .5rem .3rem .7rem; gap: .4rem; }
  .home-hero__kicker > span { width: 24px; height: 24px; }
  .home-hero__kicker svg { width: 15px; }
  .home-hero h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); margin-top: 1rem; line-height: 1.4; }
  .home-hero__lead { font-size: .73rem; margin-top: 1rem; line-height: 2; }
  .home-hero__lead br { display: none; }
  .home-find { margin-top: 1.3rem; }
  .home-find__field { padding: .35rem .6rem .35rem .35rem; gap: .4rem; border-radius: 12px; }
  .home-find__field > svg { width: 17px; }
  .home-find input { font-size: .72rem; height: 42px; }
  .home-find__field > button { min-height: 44px; font-size: .73rem; padding-inline: .8rem; border-radius: 9px; }
  .home-find__field > button svg { display: none; }
  .home-hero__stats { margin-top: 1.5rem; }
  .home-hero__stats > div, .home-hero__stats > div:first-child { padding-inline: .55rem; }
  .home-hero__stats dt { font-size: .59rem; }
  .home-hero__stats dd { font-size: 1.3rem; }
  .home-hero__explore { width: 100%; max-width: 21rem; padding-top: 1.15rem; }
  .home-hero__explore::before { box-shadow: 0 0 0 14px #e3eeee66, 0 0 0 15px #d4e3e544; }
  .home-hero__map-badge { top: -.35rem; right: -.15rem; padding: .5rem .6rem; gap: .5rem; border-radius: 11px; }
  .home-hero__map-badge > span { width: 32px; height: 32px; border-radius: 9px; }
  .home-hero__map-badge > span svg { width: 20px; }
  .home-hero__map-badge strong { font-size: .64rem; }
  .home-hero__map-badge small { font-size: .5rem; }
  .home-hero__map-caption { font-size: .59rem; padding: .6rem .7rem; gap: .4rem; }
  .home-hero__map-caption svg { width: 14px; }
  .home-iran__tip { min-width: 6.3rem; padding: .4rem .6rem; }
  .home-iran__tip strong { font-size: .7rem; }
  .home-iran__tip em { font-size: .57rem; }
  .home-find__hit strong { font-size: .72rem; }
  .home-find__hit { padding: .5rem; }
}
@media (max-width: 360px) {
  .home-hero__inner, .home-wrap { width: calc(100% - 1.5rem); }
  .home-hero__inner { padding-inline: .9rem; }
  .home-hero h1 { font-size: 2.35rem; }
  .home-find__field > svg { display: none; }
  .home-hero__stats dd { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero *, .home-hero *::before, .home-hero *::after { animation: none !important; transition: none !important; }
}
