/* Punjab Public Guide, design system v3
   Five colours only: deep green, Punjab green, light green, wheat gold, and neutral ink/white.
   Sections alternate light and dark. Motion uses transform/opacity and stops under prefers-reduced-motion. */

:root {
  --dark: #04381d;      /* deep green: hero, dark bands, footer */
  --green: #0b7a3d;     /* Punjab green: links, accents (white text passes AA on it) */
  --light: #d3f3df;     /* light green: buttons, tints */
  --gold: #f4b41a;      /* wheat gold: highlights on dark */
  --ink: #10201a;       /* text */
  --white: #ffffff;

  /* tints derived from the five colours */
  --dark-2: #0a4a29;
  --light-2: #eef9f2;
  --gold-soft: #fff6dc;
  --muted: #475a50;
  --line: #cfe0d5;
  --on-dark: #e6f3ea;
  --on-dark-muted: #b9d3c2;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(4, 56, 29, .08), 0 14px 34px -14px rgba(4, 56, 29, .25);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --jali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3Cpath d='M0 0l14 14M56 0L42 14M0 56l14-14M56 56L42 42'/%3E%3C/g%3E%3C/svg%3E");
  --jali-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%230b7a3d' stroke-width='1'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3Cpath d='M0 0l14 14M56 0L42 14M0 56l14-14M56 56L42 42'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dark); text-decoration-thickness: 2px; }
button, a, input, select, textarea, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(11, 122, 61, .15); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.14; letter-spacing: -.015em; color: inherit; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); margin: .2em 0 .35em; font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem); margin: 0 0 .5em; }
h3 { font-size: 1.22rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
.wrap--narrow { max-width: 820px; }
.stats dd, .timeline__date { font-variant-numeric: tabular-nums; }

/* Light and dark bands */
.band-dark { background: var(--dark); color: var(--on-dark); position: relative; isolation: isolate; }
.band-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--jali); opacity: .06; }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark :where(a:not(.btn)) { color: var(--gold); }
.band-dark :where(a:not(.btn)):hover { color: var(--white); }
.band-light { background: var(--light-2); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--dark); color: var(--on-dark); font-size: .84rem; border-bottom: 1px solid var(--dark-2); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.topbar p { margin: 0; line-height: 1.45; }
.topbar strong { color: var(--gold); }
.topbar__link { color: var(--gold); font-weight: 700; white-space: nowrap; }
.topbar__link:hover { color: var(--white); }
@media (max-width: 640px) { .topbar__link { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 14px; min-height: 72px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.logo:hover { color: var(--ink); }
.logo__mark { flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.logo__tag { font-size: .74rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 480px) { .logo__tag { display: none; } .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .nav-toggle { padding: 8px 12px; } .logo__name { font-size: 1.08rem; } }

.nav-toggle { flex: none; display: inline-flex; align-items: center; gap: 9px; background: var(--light); border: 2px solid var(--green); border-radius: 12px; padding: 8px 14px; font: 700 .92rem var(--sans); color: var(--dark); cursor: pointer; min-height: 44px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; content: ""; transition: transform .25s var(--ease), background-color .2s; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { width: 100%; padding: 4px 0 18px; }
.js .site-nav { display: none; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; }
.js .site-nav.is-open { display: block; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu__item { border-top: 1px solid var(--line); }
.menu__btn, .menu__link { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 4px; background: none; border: 0; font: 600 1rem var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; min-height: 50px; text-align: left; }
.menu__link--new { color: var(--green); }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 10px; transition: transform .2s var(--ease); }
.menu__btn[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-top: 4px; }
.submenu { padding: 0 4px 14px; }
.js .submenu { display: none; }
.js .menu__btn[aria-expanded="true"] + .submenu { display: block; }
.submenu__col + .submenu__col { margin-top: 14px; }
.submenu__head { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--dark); margin-bottom: 4px; }
.submenu__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--light); color: var(--dark); border: 1px solid var(--green); }
.submenu ul { list-style: none; margin: 0; padding: 0 0 0 40px; }
.submenu li a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.submenu li a:hover { color: var(--green); text-decoration: underline; }
.fed { font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--dark); background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }
.fed--light { color: var(--dark); background: var(--gold); border-color: var(--gold); }

.search { display: flex; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; padding: 10px 14px; border: 2px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: #fff; min-height: 44px; color: var(--ink); }
.search button { border: 2px solid var(--green); background: var(--light); color: var(--dark); border-radius: 0 12px 12px 0; padding: 0 14px; cursor: pointer; min-height: 44px; }
.search button:hover { background: #b9ecca; }
.search--header { margin-top: 14px; }

@media (min-width: 1280px) {
  .nav-toggle { display: none; }
  .header-row { flex-wrap: nowrap; }
  .site-nav, .js .site-nav { display: flex; align-items: center; gap: 14px; width: auto; padding: 0; max-height: none; overflow: visible; }
  .menu { display: flex; gap: 2px; }
  .menu__item { border: 0; position: relative; }
  .menu__btn, .menu__link { padding: 8px 10px; font-size: .92rem; min-height: 44px; border-radius: 10px; width: auto; white-space: nowrap; }
  .menu__btn:hover, .menu__link:hover, .menu__btn[aria-expanded="true"] { background: var(--light-2); color: var(--dark); }
  .submenu, .js .submenu { display: none; position: absolute; top: calc(100% + 10px); left: 0; background: #fff; border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px -16px rgba(4, 56, 29, .3); padding: 18px 20px; }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .js .menu__btn[aria-expanded="true"] + .submenu { display: flex; gap: 26px; animation: drop .18s var(--ease); }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .submenu__col { min-width: 230px; }
  .submenu__col + .submenu__col { margin-top: 0; }
  .search--header { margin: 0; width: 158px; flex: none; }
  .site-header .wrap { max-width: 1320px; }
}
@media (min-width: 1280px) and (max-width: 1459px) { .logo__tag { display: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Status labels (no dot, always bordered) ---------- */
.badge { display: inline-flex; align-items: center; font: 700 .76rem/1 var(--sans); letter-spacing: .01em; padding: 7px 11px; border-radius: 8px; white-space: nowrap; border: 2px solid; }
.badge--open, .badge--ongoing { background: var(--light); color: var(--dark); border-color: var(--green); }
.badge--closed, .badge--historical { background: var(--white); color: var(--ink); border-color: var(--ink); }
.badge--check { background: var(--gold-soft); color: var(--ink); border-color: var(--gold); }
.badge--unverified { background: var(--white); color: var(--ink); border-color: var(--muted); border-style: dashed; }
.band-dark .badge--closed, .band-dark .badge--historical, .band-dark .badge--unverified { background: var(--dark); color: var(--white); border-color: var(--on-dark-muted); }
.tag { display: inline-block; font: 700 .74rem var(--sans); padding: 5px 10px; border-radius: 8px; background: var(--light-2); color: var(--dark); border: 1px solid var(--line); }
.tag--federal { background: var(--gold-soft); border-color: var(--gold); }

/* ---------- Buttons: light green with a strong border ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--light); color: var(--dark); border: 2px solid var(--green); border-radius: 14px; padding: 12px 22px; font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; min-height: 48px; transition: background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: #b9ecca; color: var(--dark); text-decoration: none; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.btn--gold:hover { background: #ffc94a; border-color: #ffc94a; color: var(--dark); }
.btn--ghost { background: transparent; color: var(--dark); border-color: var(--line); }
.btn--ghost:hover { background: var(--light-2); }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 0 0 12px; }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--gold); }
.band-dark .kicker, .kicker--light { color: var(--gold); }
.arrow-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.arrow-link::after { content: " →"; }
.arrow-link:hover { text-decoration: underline; }
.illus { position: absolute; z-index: 3; right: 14px; bottom: 10px; margin: 0; font: 600 .7rem var(--sans); color: var(--white); background: rgba(4, 56, 29, .7); border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; padding: 3px 8px; }

/* ---------- Hero slider (dark) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--dark); display: flex; flex-direction: column; min-height: clamp(660px, 92vh, 880px); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.1); transition: transform 8s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(3, 38, 20, .95) 0%, rgba(4, 56, 29, .86) 36%, rgba(4, 56, 29, .45) 68%, rgba(4, 56, 29, .25) 100%),
  linear-gradient(0deg, rgba(3, 30, 16, .9) 0%, rgba(3, 30, 16, 0) 40%); }
.hero__jali { position: absolute; inset: 0; background-image: var(--jali); opacity: .07; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%); mask-image: linear-gradient(90deg, #000 0%, transparent 55%); }
.hero__grid { flex: 1; display: grid; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 24px; }
.hero__copy { max-width: 690px; }
.hero__news { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; font-weight: 600; color: var(--white); background: rgba(4, 56, 29, .75); border: 2px solid var(--gold); border-radius: 14px; padding: 8px 14px; margin-bottom: 22px; text-decoration: none; }
.hero__news strong { background: var(--gold); color: var(--dark); border-radius: 6px; padding: 2px 8px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.hero__news:hover { color: var(--gold); }
.hero__title { color: var(--white); font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.4rem); line-height: 1.04; letter-spacing: -.022em; margin: 0 0 22px; }
.hero__mark { color: var(--gold); }
.hero__lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); color: var(--on-dark); max-width: 580px; margin-bottom: 26px; }
.hero-search { position: relative; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .5); max-width: 600px; border: 2px solid var(--light); }
.hero-search__icon { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.02rem; padding: 12px 10px 12px 44px; min-height: 52px; background: transparent; color: var(--ink); border-radius: 12px; }
.hero-search input:focus-visible { outline: 2px solid var(--green); outline-offset: 0; }
.hero-search .btn { border-radius: 13px; flex: none; }
.hero-search--plain { box-shadow: var(--shadow); border-color: var(--line); margin: 8px 0 28px; }
.hero-search--plain input { padding-left: 14px; }
.hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .9rem; }
.hero__popular span { color: var(--on-dark-muted); font-weight: 600; margin-right: 4px; }
.hero__popular a { color: var(--white); text-decoration: none; border: 2px solid rgba(255, 255, 255, .45); border-radius: 10px; padding: 5px 12px; background: rgba(4, 56, 29, .5); }
.hero__popular a:hover { border-color: var(--gold); color: var(--gold); }

.hero__panels { display: grid; }
.slide-card { grid-area: 1 / 1; align-self: end; background: rgba(4, 40, 22, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 2px solid rgba(255, 255, 255, .25); border-top: 5px solid var(--gold); border-radius: var(--radius-lg); padding: 22px 24px 18px; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; visibility: hidden; color: var(--on-dark); }
.slide-card.is-active { opacity: 1; transform: none; visibility: visible; }
.slide-card__kicker { display: flex; align-items: center; gap: 8px; font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.slide-card__title { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.22; color: var(--white); margin: 0 0 12px; }
.slide-card__facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slide-card__facts li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 8px 10px; font-size: .84rem; line-height: 1.35; }
.slide-card__facts strong { display: block; font: 800 1.2rem var(--display); color: var(--gold); }
.slide-card__list { list-style: none; padding: 0; margin: 0; }
.slide-card__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.slide-card__list a { color: var(--white); font-weight: 600; text-decoration: none; }
.slide-card__list a:hover { color: var(--gold); text-decoration: underline; }
.slide-card .btn { margin-top: 12px; width: 100%; }

.hero__bar { display: flex; align-items: center; gap: 12px; padding-bottom: 68px; }
.hero__tabs { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.hero__tabs::-webkit-scrollbar { display: none; }
.hero__tab { position: relative; flex: 1; min-width: 52px; display: flex; align-items: baseline; gap: 8px; background: none; border: 0; color: var(--on-dark-muted); font: 600 .86rem var(--sans); padding: 14px 4px 10px; cursor: pointer; text-align: left; min-height: 44px; }
.hero__tab:hover, .hero__tab.is-active { color: var(--white); }
.hero__num { font-family: var(--display); font-weight: 800; font-size: .95rem; }
.hero__tablabel { white-space: nowrap; }
.hero__progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero__progress::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__tab.is-active .hero__progress::after { animation: progress var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .hero__tab.is-active .hero__progress::after { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.hero__pause { flex: none; display: inline-flex; align-items: center; gap: 8px; background: rgba(4, 56, 29, .6); border: 2px solid rgba(255, 255, 255, .45); color: var(--white); border-radius: 12px; padding: 8px 14px; font: 600 .82rem var(--sans); cursor: pointer; min-height: 40px; }
.hero__pause:hover { border-color: var(--gold); }
.hero__pause-icon { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero__pause[aria-pressed="true"] .hero__pause-icon { border: 0; width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(330px, .8fr); gap: 56px; padding-top: 64px; }
  .hero__panels { align-self: end; margin-bottom: 8px; }
}
@media (max-width: 979px) {
  .hero { min-height: 0; }
  .hero__tablabel { display: none; }
  .hero__bar { padding-bottom: 54px; }
}
@media (max-width: 520px) {
  .hero-search { flex-wrap: wrap; }
  .hero-search .btn { width: 100%; }
  .hero-search__icon { top: 22px; }
  .slide-card__facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Stats strip ---------- */
.stats { position: relative; z-index: 2; margin: -40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: 0 24px 60px -24px rgba(4, 56, 29, .4); border: 2px solid var(--line); overflow: hidden; }
.stats__item { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats dt { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 4px 0 0; font: 800 clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem)/1 var(--display); color: var(--green); }
.stats__item--gold { background: var(--gold-soft); }
.stats__item--gold dd { color: var(--dark); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats__item { border-bottom: 0; } .stats__item:last-child { border-right: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 4rem + 3vw, 112px) 0; }
.section--tight { padding: 44px 0 64px; }
.section__head { max-width: 760px; margin-bottom: 36px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; flex-wrap: wrap; }
.section__head h2 { margin-bottom: .3em; }
.section__head p { font-size: 1.05rem; }
.band-light .section__head p, .section__head p { color: var(--muted); }
.band-dark .section__head p { color: var(--on-dark); }

/* PM laptop spotlight (light band, second section) */
.spot { display: grid; gap: 44px; align-items: center; }
.spot__copy h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); color: var(--dark); }
.spot__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.spot__facts li { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.spot__facts strong { display: block; font: 800 1.5rem/1.1 var(--display); color: var(--green); margin-bottom: 4px; }
.spot__facts span { font-size: .92rem; color: var(--ink); }
.spot__steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.spot__steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 56px; border-radius: 14px; background: #fff; border: 2px solid var(--line); }
.spot__steps li::before { content: counter(s); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 9px; background: var(--dark); color: var(--gold); font: 800 .95rem/30px var(--display); text-align: center; }
.spot__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spot__media { display: flex; justify-content: center; }
@media (min-width: 980px) { .spot { grid-template-columns: 1.15fr .85fr; gap: 72px; } }

/* Category mosaic (dark band) */
.mosaic { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark-2); border: 2px solid rgba(255, 255, 255, .18); color: var(--on-dark); padding: 26px 26px 22px; display: flex; flex-direction: column; min-height: 210px; }
.tile::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 190px; height: 190px; border-radius: 50%; border: 28px solid var(--gold); opacity: .1; pointer-events: none; }
.tile__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--light); color: var(--dark); margin-bottom: 18px; }
.tile__name { font-size: 1.45rem; margin: 0 0 10px; }
.band-dark .tile__name a, .tile__name a { color: var(--white); text-decoration: none; }
.tile__name a::after { content: " →"; font-family: var(--sans); color: var(--gold); }
.tile__name a:hover { text-decoration: underline; }
.tile__list { list-style: none; padding: 0; margin: 0 0 14px; position: relative; z-index: 1; }
.tile__list li { padding: 3px 0; }
.band-dark .tile__list a { color: var(--on-dark); text-decoration: none; font-size: .97rem; }
.band-dark .tile__list a:hover { color: var(--gold); text-decoration: underline; }
.tile__count { margin: auto 0 0; font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.tile--students { background: var(--light); color: var(--dark); border-color: var(--light); }
.band-dark .tile--students .tile__name a, .band-dark .tile--students .tile__list a { color: var(--dark); }
.tile--students .tile__icon { background: var(--dark); color: var(--gold); }
.tile--students .tile__count { color: var(--green); }
.tile--students::after { border-color: var(--green); }
.tile--agriculture { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.band-dark .tile--agriculture .tile__name a, .band-dark .tile--agriculture .tile__list a { color: var(--dark); }
.tile--agriculture .tile__name a::after, .tile--students .tile__name a::after { color: var(--dark); }
.tile--agriculture .tile__icon { background: var(--dark); color: var(--gold); }
.tile--agriculture .tile__count { color: var(--dark); }
.tile--agriculture::after { border-color: var(--dark); }
.tile--students .tile__name { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); }
@media (min-width: 640px) { .mosaic { grid-template-columns: repeat(2, 1fr); } .tile--students { grid-column: span 2; } }
@media (min-width: 1000px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-template-areas: "stu stu bus bus" "stu stu hou agr" "wel tra job agr" "ser ser ser ser"; }
  .tile--students { grid-area: stu; padding: 36px; }
  .tile--business { grid-area: bus; }
  .tile--housing { grid-area: hou; }
  .tile--agriculture { grid-area: agr; }
  .tile--welfare { grid-area: wel; }
  .tile--transport { grid-area: tra; }
  .tile--jobs { grid-area: job; }
  .tile--services { grid-area: ser; }
  .tile--students .tile__list a { font-size: 1.12rem; }
  .tile--students .tile__list li { padding: 7px 0; border-top: 1px solid rgba(4, 56, 29, .2); }
}

/* Scheme rows */
.srows { list-style: none; margin: 0; padding: 0; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: var(--ink); }
.srow { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 18px; padding: 22px 22px 20px; border-top: 1px solid var(--line); box-shadow: inset 5px 0 0 var(--green); }
.srow:first-child { border-top: 0; }
.srow__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--light); color: var(--dark); border: 1px solid var(--green); }
.srow__title { font: 700 1.2rem/1.3 var(--display); color: var(--ink); text-decoration: none; }
.band-dark .srow__title { color: var(--ink); }
.srow__title::after { content: ""; position: absolute; inset: 0; }
.srow__title:hover { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; }
.srow__title:focus-visible { outline: none; }
.srow__title:focus-visible::after { outline: 3px solid var(--gold); outline-offset: -3px; }
.srow__text { color: var(--ink); font-size: .97rem; margin: 6px 0 8px; }
.srow__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: .82rem; color: var(--muted); }
.srow__meta span + span::before { content: "·"; margin-right: 16px; color: var(--muted); }
.srow__status { grid-column: 2; }
@media (min-width: 760px) {
  .srow { grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; padding: 24px 28px; }
  .srow__icon { width: 52px; height: 52px; }
  .srow__status { grid-column: 3; text-align: right; }
  .srow__text { max-width: 680px; }
}
.srows--muted .srow { box-shadow: inset 5px 0 0 var(--muted); }
.srows--muted .srow__icon { background: #fff; border-color: var(--muted); color: var(--muted); }

/* Timeline (dark band) */
.updates { display: grid; gap: 36px; }
@media (min-width: 980px) { .updates { grid-template-columns: 340px 1fr; gap: 64px; } .updates__head { position: sticky; top: 120px; align-self: start; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .25); }
.timeline__item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-bottom: 22px; }
.timeline__date { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--gold); color: var(--dark); font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.timeline__date span { font: 800 1.45rem/1 var(--display); }
.timeline__body { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 16px 18px; border: 2px solid var(--light); }
.timeline__body p { margin: 0; }
.timeline__meta { font-size: .85rem; color: var(--muted); margin-top: 6px !important; }
.band-dark .timeline__body a { color: var(--green); }
.method { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.method li { border: 2px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 18px 20px; }
.method h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--gold); }
.method p { margin: 0; color: var(--on-dark); }
@media (min-width: 980px) { .method { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Page heads and banners (dark) ---------- */
.pagehead { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: 22px 0 54px; border-bottom: 6px solid var(--gold); }
.pagehead__jali { position: absolute; inset: 0; background-image: var(--jali); opacity: .07; -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%); mask-image: linear-gradient(270deg, #000, transparent 70%); }
.pagehead .wrap { position: relative; }
.pagehead h1 { color: var(--white); max-width: 920px; }
.pagehead__cat { display: inline-flex; align-items: center; gap: 9px; font: 700 .82rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 26px 0 4px; }
.pagehead__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--light); color: var(--dark); }
.pagehead__dek { font-size: 1.12rem; max-width: 760px; color: var(--on-dark); }
.pagehead__byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--on-dark-muted); margin: 0; }
.pagehead__byline a { color: var(--white); }
.pagehead__verified { color: var(--gold); font-weight: 700; }
.pagehead__grid { display: grid; gap: 36px; align-items: center; }
.pagehead__shot { margin: 8px 0 0; }
.pagehead__shot figcaption { font-size: .8rem; color: var(--on-dark-muted); margin-top: 12px; }
.pagehead__shot figcaption .muted { color: var(--on-dark-muted); }
@media (min-width: 1100px) {
  .pagehead__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; }
  .pagehead__shot { position: relative; margin-top: 40px; }
  .pagehead__shot::before { content: ""; position: absolute; inset: 22px -16px 40px 22px; border-radius: 18px; background: var(--gold); }
  .pagehead__shot .browser, .pagehead__shot figcaption { position: relative; }
  .pagehead__shot .browser { transform: perspective(1400px) rotateY(-8deg) rotateX(2deg); }
}
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: .86rem; }
.crumbs li + li::before { content: "/"; margin: 0 .55em; opacity: .6; }
.pagehead .crumbs, .banner .crumbs { color: var(--on-dark-muted); }
.pagehead .crumbs a, .banner .crumbs a { color: var(--white); }

.banner { position: relative; isolation: isolate; overflow: hidden; color: var(--white); padding: 26px 0 72px; border-bottom: 6px solid var(--gold); background: var(--dark); }
.banner__media { position: absolute; inset: 0; z-index: -2; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 38, 20, .96), rgba(4, 56, 29, .82) 55%, rgba(4, 56, 29, .45)); }
.banner__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--light); color: var(--dark); margin: 34px 0 18px; }
.banner h1 { color: var(--white); max-width: 820px; }
.banner__dek { font-size: 1.1rem; color: var(--on-dark); max-width: 720px; margin: 0; }

.browser { position: relative; border-radius: 16px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); overflow: hidden; border: 1px solid var(--line); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--light-2); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser__bar span { margin-left: 10px; font-size: .78rem; color: var(--ink); background: #fff; border-radius: 999px; padding: 3px 12px; border: 1px solid var(--line); }

/* ---------- Reel (story-style step viewer) ---------- */
.reel { position: relative; width: min(100%, 340px); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: var(--dark); border: 8px solid var(--ink); box-shadow: 0 30px 60px -24px rgba(4, 56, 29, .55); margin: 1.6em auto; color: var(--white); }
.reel__frames { position: absolute; inset: 0; }
.reel__frame { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.reel__frame.is-active { opacity: 1; }
.reel__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.06) translateY(0); transition: transform 4.5s ease-out; }
.reel__frame.is-active img { transform: scale(1) translateY(-2%); }
.reel__bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; gap: 4px; }
.reel__bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .45); overflow: hidden; position: relative; }
.reel__bar::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.reel__bar.is-done::after { transform: scaleX(1); }
.reel__bar.is-active::after { animation: progress var(--reel-ms, 4000ms) linear forwards; }
.reel.is-paused .reel__bar.is-active::after { animation-play-state: paused; }
.reel__head { position: absolute; top: 22px; left: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; font: 700 .78rem var(--sans); }
.reel__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--green); border: 2px solid var(--gold); display: grid; place-items: center; }
.reel__head span { background: rgba(4, 40, 22, .8); border-radius: 8px; padding: 3px 8px; }
.reel__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 60px 16px 18px; background: linear-gradient(0deg, rgba(3, 30, 16, .96) 30%, rgba(3, 30, 16, 0)); }
.reel__step { display: inline-block; font: 800 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--dark); background: var(--gold); border-radius: 6px; padding: 3px 8px; margin-bottom: 8px; }
.reel__text { font: 700 1.02rem/1.35 var(--display); margin: 0; color: var(--white); }
.reel__nav { position: absolute; top: 60px; bottom: 120px; width: 40%; z-index: 3; background: none; border: 0; cursor: pointer; }
.reel__nav--prev { left: 0; }
.reel__nav--next { right: 0; }
.reel__pause { position: absolute; z-index: 4; right: 12px; top: 58px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: rgba(4, 40, 22, .75); cursor: pointer; display: grid; place-items: center; }
.reel__pause i { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.reel__pause[aria-pressed="true"] i { border: 0; width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.reel-wrap { display: grid; gap: 18px; align-items: center; margin: 2em 0; padding: 22px; border-radius: var(--radius-lg); background: var(--light-2); border: 2px solid var(--line); }
.reel-wrap .reel { margin: 0 auto; }
.reel-wrap__text h3 { margin-top: 0; }
.reel-wrap__text ol { margin: 0; padding-left: 1.2em; }
.reel-wrap__text li { margin: .4em 0; }
@media (min-width: 760px) { .reel-wrap { grid-template-columns: 300px 1fr; gap: 32px; } }

/* ---------- Guide layout ---------- */
.guide__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 64px; padding-top: 44px; }
.guide__intro, .guide__main { min-width: 0; }
.guide__aside { margin: 8px 0 32px; }
@media (min-width: 1100px) {
  .guide__layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .guide__intro { grid-column: 1; grid-row: 1; }
  .guide__main { grid-column: 1; grid-row: 2; }
  .guide__aside { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .guide__sticky { height: 100%; }
  .toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
.facts { background: #fff; border: 2px solid var(--line); border-top: 6px solid var(--green); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow); }
.facts__title { font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.facts__status { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts__status p { font-size: .92rem; color: var(--ink); margin: 10px 0 0; }
.facts dl { margin: 0; }
.facts dl > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 2px 0 0; font-size: .95rem; }
.facts__official { display: flex; flex-direction: column; margin-top: 16px; padding: 12px 44px 12px 16px; border-radius: 14px; background: var(--light); border: 2px solid var(--green); text-decoration: none; color: var(--dark); position: relative; }
.facts__official::after { content: "↗"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--dark); }
.facts__official span:first-child { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.facts__official strong { font-size: .95rem; overflow-wrap: anywhere; }
.facts__official:hover { background: #b9ecca; color: var(--dark); }
.facts__foot { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.toc { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--light-2); border: 2px solid var(--line); }
.toc__title { font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 3px solid transparent; color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.4; }
.toc li a:hover { color: var(--green); }
.toc li a.is-current { border-left-color: var(--green); color: var(--dark); font-weight: 700; }

/* Prose */
.prose { font-size: 1.06rem; max-width: 74ch; }
.prose--intro { font-size: 1.12rem; }
.prose h2 { position: relative; margin-top: 2.2em; padding-top: 18px; color: var(--dark); }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 5px; border-radius: 5px; background: var(--gold); }
.prose h3 { color: var(--dark); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.2em 0; }
.prose--section { max-width: 820px; margin-top: 48px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--dark); color: var(--white); font-weight: 700; font-size: .88rem; }
tbody th { background: var(--light-2); font-weight: 700; }
tr:last-child td, tr:last-child th { border-bottom: 0; }

.shot { margin: 1.8em 0; }
.shot img { border-radius: 14px; border: 2px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--gold); }
.shot img[width="390"] { max-width: 300px; }

.note { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 1.6em 0; font-size: .97rem; }
.note p:last-child { margin-bottom: 0; }
.note--warn { background: var(--gold-soft); border-color: var(--gold); }
.note--info { background: var(--light-2); border-color: var(--green); }
.note--line { border-left: 6px solid var(--gold); }
.note--disclaimer { background: var(--light-2); border-color: var(--green); border-left: 6px solid var(--green); }
.official-link { font-weight: 700; word-break: break-word; }
.ext { font-size: .85em; }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 7px; background: var(--light); border: 1px solid var(--green); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: .62em; width: 9px; height: 5px; border-left: 2.5px solid var(--dark); border-bottom: 2.5px solid var(--dark); transform: rotate(-45deg); }
.numbered { counter-reset: n; list-style: none; padding-left: 0 !important; }
.numbered > li { counter-increment: n; position: relative; padding: 14px 16px 14px 62px; margin: 10px 0; background: var(--light-2); border: 1px solid var(--line); border-radius: 14px; }
.numbered > li::before { content: counter(n); position: absolute; left: 14px; top: 13px; width: 32px; height: 32px; border-radius: 10px; background: var(--dark); color: var(--gold); font: 800 .95rem/32px var(--display); text-align: center; }

.faq { margin-top: 3em; }
.faq h2 { margin-bottom: .7em; color: var(--dark); }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); margin: 10px 0; }
.faq details[open] { border-color: var(--green); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 56px 16px 18px; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 8px; background: var(--light) linear-gradient(var(--dark), var(--dark)) center / 10px 2px no-repeat; border: 1px solid var(--green); }
.faq summary::before { content: ""; position: absolute; right: 29px; top: 50%; width: 2px; height: 10px; margin-top: -5px; background: var(--dark); z-index: 1; transition: transform .2s var(--ease); }
.faq details[open] summary::before { transform: scaleY(0); }
.faq__a { padding: 0 18px 16px; }
.faq__a p:last-child { margin-bottom: 0; }

.sources { margin-top: 3em; padding-top: 24px; border-top: 2px solid var(--line); }
.sources h2 { font-size: 1.3rem; color: var(--dark); }
.sources ol { padding-left: 1.3em; font-size: .95rem; }
.sources li { margin: .45em 0; word-break: break-word; }

.related { padding: 64px 0 80px; margin-top: 40px; }

/* Filters + forms */
.filters { display: grid; gap: 14px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin: -76px 0 22px; position: relative; z-index: 2; box-shadow: 0 24px 60px -30px rgba(4, 56, 29, .4); }
.filters__field { display: flex; flex-direction: column; gap: 5px; }
.filters label, .form label { font-weight: 700; font-size: .9rem; }
.filters input, .filters select, .form input, .form select, .form textarea { font: inherit; padding: 11px 13px; border: 2px solid var(--line); border-radius: 12px; background: #fff; min-height: 46px; width: 100%; color: var(--ink); }
.filters input:focus-visible, .filters select:focus-visible, .form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--light); border-color: var(--green); outline-offset: 0; }
.filters__actions { display: flex; gap: 8px; align-items: flex-end; }
@media (min-width: 960px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; } }
.results-count { font-weight: 700; color: var(--muted); }
.empty { background: #fff; border: 2px dashed var(--muted); border-radius: var(--radius-lg); padding: 24px; }
.form { background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 18px 0 40px; box-shadow: var(--shadow); }
.form__row { margin-bottom: 16px; }
.hint { font-size: .86rem; color: var(--muted); margin: 5px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; border: 2px solid; }
.alert p:last-child, .alert ul { margin-bottom: 0; }
.alert--ok { background: var(--light); border-color: var(--green); }
.alert--err { background: var(--gold-soft); border-color: var(--ink); }

/* ---------- Footer (dark) ---------- */
.site-footer { position: relative; background: var(--dark); color: var(--on-dark); padding: 64px 0 28px; font-size: .95rem; overflow: hidden; border-top: 6px solid var(--gold); }
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: var(--jali); opacity: .05; }
.site-footer .wrap { position: relative; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.footer-disclaimer { display: grid; gap: 10px 28px; background: var(--dark-2); border: 2px solid rgba(255, 255, 255, .2); border-left: 6px solid var(--gold); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 48px; }
.footer-disclaimer__label { font: 800 1.15rem var(--display); color: var(--gold); margin: 0; }
.footer-disclaimer p { margin: 0 0 .7em; }
.footer-disclaimer strong { color: var(--white); }
@media (min-width: 900px) { .footer-disclaimer { grid-template-columns: 160px 1fr; } }
.footer-brand { font: 800 1.4rem var(--display); color: var(--white); margin: 0 0 8px; }
.footer-h { font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-about { grid-column: auto; padding-right: 40px; } }
.footer-about a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.footer-about a:hover, .footer-about a:focus-visible { color: var(--white); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .2); margin: 44px 0 0; padding-top: 20px; font-size: .86rem; color: var(--on-dark-muted); text-align: center; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .mosaic [data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .mosaic [data-reveal]:nth-child(3) { transition-delay: .16s; }
.js .mosaic [data-reveal]:nth-child(4) { transition-delay: .22s; }
.js .mosaic [data-reveal]:nth-child(5) { transition-delay: .28s; }
.js .mosaic [data-reveal]:nth-child(6) { transition-delay: .32s; }
.js .mosaic [data-reveal]:nth-child(7) { transition-delay: .36s; }
.hero__copy > * { animation: rise .9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__slide img, .hero__slide.is-active img, .reel__frame img { transform: none; }
  .pagehead__shot .browser { transform: none; }
}
@media print { .topbar, .site-header, .site-footer .footer-grid, .related, .toc, .hero__bar, .reel { display: none; } }
.hero .illus { top: 12px; bottom: auto; }

/* Author */
.avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--dark); font: 800 .8rem/1 var(--display); letter-spacing: .02em; border: 2px solid var(--light); }
.avatar--lg { width: 96px; height: 96px; font-size: 2rem; border-width: 4px; }
img.avatar { display: inline-block; object-fit: cover; background: var(--light); padding: 0; }
.byline-author { display: inline-flex; align-items: center; gap: 8px; }
.author-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.author-head h1 { margin: 0; color: var(--white); }
.author-head .pagehead__cat { margin: 0 0 4px; }
.author-head p { margin: 6px 0 0; color: var(--on-dark); }
.author-head a { color: var(--gold); }
.author-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.author-links a { display: inline-block; padding: 5px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .9rem; text-decoration: none; }
.author-links a:hover, .author-links a:focus-visible { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.author-sites { display: grid; gap: 14px; margin: 18px 0 8px; padding: 0 !important; list-style: none; }
.author-sites li { border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; margin: 0; }
.author-sites strong { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--dark); margin-bottom: 4px; }
@media (min-width: 760px) { .author-sites { grid-template-columns: 1fr 1fr; } }
.footer-also { margin-top: 10px; }
.prose > h2:first-child { margin-top: 0; }

/* ---------- How-to-apply box (lifted to the top of each guide) ---------- */
.applybox { margin: 28px 0 8px; padding: 26px 24px 22px; border-radius: var(--radius-lg); background: #fff; border: 2px solid var(--green); box-shadow: inset 0 6px 0 var(--green); }
.applybox--closed { border-color: var(--muted); box-shadow: inset 0 6px 0 var(--muted); }
.applybox__kicker { margin: 0 0 6px; font: 700 .78rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.applybox--closed .applybox__kicker { color: var(--muted); }
.applybox > h2 { margin-top: 0; }
.applybox .reel-wrap { margin-bottom: 0; }
.smscode { display: block; margin: .5em 0 .3em; padding: 12px 14px; border-radius: 10px; background: var(--dark); color: var(--white); font: 700 1rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.smscode b { color: var(--gold); }
@media (max-width: 600px) { .applybox { padding: 20px 16px 18px; margin-left: -4px; margin-right: -4px; } }

/* ---------- Official app cards ---------- */
.apps { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.apps__title { margin: 0 0 12px; font-size: 1.1rem; }
.apps__list, .prose .apps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.appcard { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--light-2); }
.appcard__icon { width: 56px; height: 56px; border-radius: 13px; border: 1px solid var(--line); background: #fff; }
.appcard__body p { margin: 0; }
.appcard__name { font: 700 1rem/1.3 var(--display); color: var(--ink); }
.appcard__by { font-size: .82rem; color: var(--muted); margin-top: 2px !important; }
.appcard__use { font-size: .93rem; color: var(--ink); margin: 6px 0 10px !important; }
.appcard__stores { display: flex; flex-wrap: wrap; gap: 8px; }
.prose .store, .store { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 10px; background: var(--ink); color: var(--white); text-decoration: none; line-height: 1.1; border: 1px solid var(--ink); }
.store small { display: block; font-size: .66rem; font-weight: 400; opacity: .9; }
.store span:not(.sr-only) { font: 700 .92rem/1.1 var(--sans); }
.prose .store:hover, .store:hover { background: var(--dark); border-color: var(--dark); color: var(--white); text-decoration: none; }
.apps__note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
@media (min-width: 900px) { .apps__list { grid-template-columns: 1fr 1fr; } }
.prose .appcard { margin: 0; }

/* ---------- After-you-apply support block ---------- */
.support { margin: 0 0 2.4em; padding: 24px 22px; border-radius: var(--radius-lg); background: var(--light-2); border: 2px solid var(--line); }
.support > h2 { margin-top: 0; }
.support h3 { font-size: 1.05rem; margin: 1.4em 0 .5em; }
.support__wait h3 { margin-top: .6em; }
.support .table-wrap { background: #fff; }
.support__issues td:first-child { font-weight: 700; width: 38%; }
.prose .support__contacts, .support__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.support__contacts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.support__contacts span { color: var(--muted); }
.support__contacts strong { color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 600px) { .support { padding: 20px 16px; } .support__issues td:first-child { width: auto; } }
.example { margin: 1.4em 0; padding: 16px 18px; border-radius: 14px; background: #fff8e6; border: 1px solid #f0d58c; border-left: 5px solid var(--gold); }
.example p { margin: 0; color: var(--ink); }
