@font-face { font-family: Yekan; src: url("/assets/fonts/YekanBakh-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Yekan; src: url("/assets/fonts/YekanBakh-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Yekan; src: url("/assets/fonts/YekanBakh-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Yekan; src: url("/assets/fonts/YekanBakh-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* Bright clean editorial — light is default */
:root {
  --bg: #f2f3f1;
  --bg-2: #ffffff;
  --card: #ffffff;
  --ink: #141816;
  --muted: rgba(20, 24, 22, 0.62);
  --faint: rgba(20, 24, 22, 0.42);
  --line: rgba(20, 24, 22, 0.1);
  --gold: #3d5a4c;
  --gold-2: #141816;
  --bar: rgba(242, 243, 241, 0.92);
  --shadow: none;
  --chip: rgba(20, 24, 22, 0.04);
  --btn: #141816;
  --btn-ink: #f2f3f1;
  --map: #e4e8e5;
  --radius: 12px;
  --accent-soft: rgba(61, 90, 76, 0.1);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #101412;
  --bg-2: #171a18;
  --card: #171a18;
  --ink: #eef1ef;
  --muted: rgba(238, 241, 239, 0.64);
  --faint: rgba(238, 241, 239, 0.42);
  --line: rgba(238, 241, 239, 0.12);
  --gold: #8fb39a;
  --gold-2: #eef1ef;
  --bar: rgba(16, 20, 18, 0.92);
  --shadow: none;
  --chip: rgba(238, 241, 239, 0.06);
  --btn: #eef1ef;
  --btn-ink: #101412;
  --map: #1a1f1c;
  --accent-soft: rgba(143, 179, 154, 0.14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  font-family: Yekan, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
::selection { background: rgba(61, 90, 76, 0.18); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Fixed + transform: absolute/top was clipped by html{overflow-x:clip} and never became visible on :focus */
.skip {
  position: fixed;
  inset-inline-start: max(12px, env(safe-area-inset-left, 0px));
  top: max(12px, env(safe-area-inset-top, 0px));
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.15s ease;
  pointer-events: none;
}
.skip:focus,
.skip:focus-visible,
.skip.is-visible {
  transform: translateY(0);
  pointer-events: auto;
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
html[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }
html[dir="ltr"] .scroll-progress { transform-origin: 0 50%; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 70; transform: scaleX(0); background: var(--gold); pointer-events: none; }

.nav { position: sticky; top: 0; z-index: 40; }
.nav.solid {
  background: var(--bar);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; gap: 16px;
  width: min(1080px, calc(100% - 40px)); margin-inline: auto; min-height: 68px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; min-width: 0; }
.logo span { white-space: nowrap; }
.logo img { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.links { display: flex; gap: 4px; margin-inline-start: 8px; flex-wrap: wrap; }
.links a, .theme-btn, .langs a {
  border: 0; background: transparent; color: var(--muted);
  border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 600;
}
.links a[aria-current="page"], .links a:hover, .langs a[aria-current="true"] {
  color: var(--ink); background: transparent;
}
.links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.nav-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.langs { display: flex; align-items: center; gap: 2px; }
.langs a { padding: 6px 8px; font-size: 0.75rem; font-weight: 700; line-height: 1; }
.theme-btn {
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); flex: none; border-radius: 8px;
}
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .ico-moon { display: none; }
html[data-theme="light"] .theme-btn .ico-sun { display: none; }
html[data-theme="light"] .theme-btn .ico-moon { display: block; }
html[data-theme="dark"] .theme-btn .ico-sun { display: block; }
html[data-theme="dark"] .theme-btn .ico-moon { display: none; }

/* Guide/static hero (two-column) — quieter */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  align-items: end; padding: 36px 0 28px;
}
.kicker { font-size: 0.8rem; color: var(--gold); font-weight: 700; }
html[dir="ltr"] .kicker { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; }
h1 { margin-top: 10px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lead { margin-top: 14px; max-width: 34rem; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; align-items: center; }
.hero-actions input {
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2);
  padding: 12px 14px; min-width: min(100%, 220px); min-height: 48px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 10px;
  min-height: 48px; padding: 12px 20px; font-weight: 700; cursor: pointer;
}
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 0.88rem; border-radius: 8px; }
.hero-visual {
  position: relative; margin: 0; border-radius: 0; overflow: hidden;
  border: 0; background: var(--map); min-height: 320px;
}
.hero-visual img { width: 100%; height: 440px; object-fit: cover; }
.hero-visual figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-weight: 700; font-size: 0.9rem;
}

.stats { display: none; }
.stat { display: none; }

.sec { padding: 36px 0 8px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.sec-head a { color: var(--gold); font-weight: 700; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 30%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shot { scroll-snap-align: start; position: relative; border-radius: 0; overflow: hidden; min-height: 260px; border: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.shot span { position: absolute; inset: auto 0 0; padding: 36px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.card, .note, .guide-card, .faq details {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; box-shadow: none;
}
.card { overflow: hidden; display: grid; align-content: start; min-height: 100%; padding-bottom: 16px; }
.card > a { display: grid; height: 100%; gap: 0; }
.card .media { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: 0; }
.media.mark {
  display: grid; place-items: center; color: var(--gold);
  background: var(--accent-soft);
}
.media.mark svg { width: 40px; height: 40px; }
.card .body, .guide-card, .note { padding: 14px 0 0; }
.guide-card { padding: 18px 0; }
.card h3, .guide-card h3 { font-size: 1.08rem; font-weight: 800; }
.card p, .guide-card p, .note p { color: var(--muted); margin-top: 6px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pill {
  font-size: 0.75rem; color: var(--faint); border: 0; border-radius: 0;
  padding: 0; background: transparent;
}
.pill + .pill::before { content: "·"; margin-inline-end: 8px; color: var(--faint); }
.ico {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); border: 0; margin-bottom: 12px; color: var(--gold);
}
.ico svg { width: 20px; height: 20px; }

.tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.tools input, .chip {
  border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2);
  padding: 10px 14px; min-height: 44px;
}
.tools input { min-width: min(100%, 240px); }
.chip { cursor: pointer; color: var(--muted); font-weight: 600; }
.chip.on { color: var(--btn-ink); background: var(--btn); border-color: transparent; }
.empty { color: var(--muted); padding: 12px 0; }

.map-layout { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 16px; align-items: start; }
.map {
  position: relative; min-height: 440px; border-radius: 0; overflow: hidden;
  background: var(--map); border: 1px solid var(--line);
}
.map svg.land { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--accent-soft); transform: translate(-50%, -50%); }
.pin::after { content: ""; position: absolute; inset: -14px; }
.pin span {
  position: absolute; inset-inline-start: 16px; top: -10px; white-space: nowrap;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
  font-size: 0.75rem; font-weight: 700; opacity: 0; pointer-events: none;
}
.pin:hover span, .pin:focus-visible span { opacity: 1; }
.map-side { display: grid; align-content: start; gap: 0; max-height: 440px; overflow: auto; }
.map-side a {
  display: flex; justify-content: space-between; gap: 8px; padding: 12px 0;
  border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; border-inline: 0; border-top: 0;
}
.map-side small { color: var(--faint); }
.map-caption { margin-top: 8px; color: var(--faint); font-size: 0.82rem; }

.crumbs { display: flex; gap: 6px; flex-wrap: wrap; color: var(--faint); font-size: 0.88rem; margin: 22px 0 8px; }
.crumbs a { color: var(--muted); }
.article { width: min(680px, calc(100% - 40px)); margin: 0 auto 36px; }
.article h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 8px; }
.article .lead { margin-top: 12px; }
.hero-photo { margin: 22px 0; border-radius: 0; overflow: hidden; border: 0; }
.hero-photo img { width: 100%; max-height: 460px; object-fit: cover; }
.prose { display: grid; gap: 16px; margin-top: 22px; }
.prose h2 { font-size: 1.2rem; }
.prose p { color: var(--muted); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.faq { display: grid; gap: 0; }
.faq details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin-top: 6px; }

.foot { border-top: 1px solid var(--line); padding: 36px 0 40px; color: var(--muted); margin-top: 48px; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: 1.05rem; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }

.tabbar {
  display: none; position: fixed; z-index: 45;
  inset-inline: 0; bottom: 0;
  background: var(--bar); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); border-radius: 0; padding: 4px 8px;
  padding-bottom: calc(4px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center; font-size: 0.68rem; color: var(--faint); font-weight: 700;
  padding: 8px 0 6px; border-radius: 8px; min-height: 52px; justify-content: center;
}
.tabbar svg { width: 20px; height: 20px; }
.tabbar a[aria-current="page"] { color: var(--ink); background: transparent; }

@media (max-width: 980px) {
  .links { display: none; }
  .nav-end { margin-inline-start: auto; }
  .tabbar { display: flex; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: 16px; }
  .hero, .map-layout, .related { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { height: 240px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .map { min-height: 300px; }
  .map-side { max-height: 260px; }
  .rail { grid-auto-columns: 78%; }
}
@media (max-width: 680px) {
  .wrap, .nav-row { width: min(1080px, calc(100% - 28px)); }
  .grid, .grid.two, .related { grid-template-columns: 1fr; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn, .hero-actions input { width: 100%; min-width: 0; }
  .tools input { width: 100%; }
  .logo span { font-size: 1rem; }
  h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .article { width: min(680px, calc(100% - 28px)); }
  .hero-photo img { max-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
