@font-face {
    font-family: "Inter Tight";
    src: url("inter-tight.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --ink: #102923;
    --ink-soft: #203d33;
    --muted: #486055;
    --accent: #205845;
    --accent-hover: #154132;
    --white: #fff;
    --mist: #f1f4ed;
    --frost: #d9e4db;
    --control-border: #7b9489;
    --accent-border: #b0cbb8;
    --accent-pale: #e8f2e6;
    --canvas: #f8f8f2;
    --forest: #0c3026;
    --forest-deep: #09251e;
    --lime: #d8eda7;
    --gold: #deb887;
    --error: #982820;
    --radius: 10px;
    --radius-sm: 7px;
    --radius-lg: 18px;
    --measure: 80rem;
    --section-gap: clamp(2.75rem, 6vw, 5rem);
    --shadow-sm: 0 1px 2px rgba(16, 41, 35, .04), 0 8px 22px rgba(16, 41, 35, .055);
    --shadow-md: 0 16px 40px rgba(16, 41, 35, .1);
    --shadow-lift: 0 18px 42px -10px rgba(16, 41, 35, .2);
    --font: "Inter Tight", "Segoe UI", "Noto Sans Bengali", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 6rem; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font: 400 1rem/1.6 var(--font);
    font-feature-settings: "ss01" on, "tnum" on;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}
:where(h1, h2, h3, p, ul, ol) { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.032em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.35rem); line-height: 1.1; letter-spacing: -.024em; }
h3 { font-size: 1.3125rem; line-height: 1.28; letter-spacing: -.012em; }
:lang(bn) :is(h1, h2, h3), :lang(hi) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.28; }
::selection { background: var(--accent); color: var(--white); }
p + p { margin-top: .875rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .19em; }
a:hover { color: var(--accent-hover); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
:where(a, button, select, summary) { touch-action: manipulation; }
svg { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.wrap { width: min(calc(100% - 5rem), var(--measure)); margin-inline: auto; }
.skip {
    position: fixed;
    inset: .5rem auto auto .5rem;
    z-index: 10;
    min-height: 48px;
    padding: .75rem 1rem;
    background: var(--white);
    transform: translateY(-150%);
}
.skip:focus { transform: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--white);
    border-bottom: 1px solid var(--frost);
    box-shadow: 0 8px 24px -22px rgba(16, 41, 35, .48);
}

.masthead {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 78px;
}
.brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    gap: .6875rem;
    min-height: 48px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.brand-mark {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 11px;
    box-shadow: 0 6px 16px rgba(32, 88, 69, .24);
}
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; gap: .0625rem; }
.brand-name { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.brand-tagline { color: var(--muted); font-size: .6875rem; letter-spacing: .01em; line-height: 1.3; }
.main-nav, .language-nav { display: flex; align-items: center; gap: .25rem; }
.language-nav { justify-self: end; gap: 2px; padding: 3px; border: 1px solid var(--frost); border-radius: 999px; background: var(--mist); }
.main-nav a, .language-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 48px;
    padding: .25rem .7rem;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: .875rem;
    text-align: center;
    text-decoration: none;
    overflow-wrap: normal;
    word-break: normal;
}
.language-nav a { border-radius: 999px; padding-inline: .65rem; color: var(--muted); font-size: .8125rem; }
.main-nav a:hover, .language-nav a:hover { color: var(--accent); background: var(--mist); }
.main-nav a[aria-current] { color: var(--accent); background: var(--accent-pale); box-shadow: inset 0 0 0 1px var(--accent-border); }
.language-nav a[aria-current] { color: var(--white); background: var(--accent); box-shadow: 0 4px 12px rgba(32, 88, 69, .28); }
.language-nav a[aria-current]:hover { color: var(--white); background: var(--accent-hover); }

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 100% 0%, #255845, transparent 51%),
        linear-gradient(138deg, var(--forest-deep), var(--forest));
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(225, 240, 220, .09) 1px, transparent 1px),
        linear-gradient(rgba(225, 240, 220, .09) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(115deg, transparent 32%, #000);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 10.5rem;
    background: var(--canvas);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    grid-template-areas: "intro visual" "finder finder";
    align-items: center;
    gap: clamp(1.5rem, 2.8vw, 2.75rem) clamp(2rem, 4vw, 4rem);
    padding-block: clamp(2.25rem, 3.8vw, 3.75rem) 3rem;
}
.hero-copy { grid-area: intro; color: #f7f8ec; }
.hero-copy h1 { max-width: 16ch; font-size: clamp(2.7rem, 5.2vw, 5.15rem); }
:lang(bn) .hero-copy h1, :lang(hi) .hero-copy h1 { max-width: 21ch; }
html[lang="en"] :is(.hero-copy h1, .page h1, .section > h2) {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.055em;
}
.intro { max-width: 60ch; margin-top: .875rem; font-size: 1.125rem; line-height: 1.55; }
.hero-copy .intro { margin-top: 1.125rem; max-width: 43ch; font-size: clamp(1rem, 1.48vw, 1.2rem); color: #cce0d3; }
.hero-note { max-width: 48ch; margin-top: .875rem; color: #c3d8ca; font-size: .875rem; }
.hero-photo, .guide-cover img, .article-cover {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    background: var(--mist);
}
.hero-visual { grid-area: visual; position: relative; z-index: 0; }
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 12px -12px -12px 12px;
    z-index: -1;
    border: 1px solid rgba(222, 184, 135, .6);
    border-radius: var(--radius-lg);
}
.hero-photo {
    height: clamp(18rem, 29vw, 27rem);
    border: 1px solid rgba(232, 243, 217, .36);
    object-fit: cover;
    object-position: 53% center;
    box-shadow: 0 22px 50px rgba(3, 20, 14, .38);
}
.hero-badge {
    position: absolute;
    inset: auto .75rem 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    color: #e4efe8;
    font-size: .8125rem;
}
.hero-badge span {
    display: grid;
    align-content: center;
    gap: .125rem;
    min-height: 4.125rem;
    padding: .5rem .875rem;
    border: 1px solid rgba(232, 243, 217, .28);
    border-radius: var(--radius);
    background: #112f27;
    line-height: 1.25;
}
.hero-badge strong { color: var(--lime); font-size: 1.45rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; margin-top: 1.625rem; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 48px;
    min-height: 50px;
    padding: .6875rem 1.375rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: 400 .9375rem/1.35 var(--font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.button svg, .text-link svg { width: 17px; height: 17px; }
.button.primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(32, 88, 69, .18), 0 10px 24px -8px rgba(32, 88, 69, .5);
}
.button.primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 10px rgba(32, 88, 69, .22), 0 16px 32px -8px rgba(32, 88, 69, .55);
    transform: translateY(-1px);
}
.button.secondary { border-color: #becfc3; background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 41, 35, .04); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--white); }
.hero-copy .button.primary { background: var(--lime); color: var(--forest-deep); box-shadow: 0 8px 22px rgba(4, 20, 15, .22); }
.hero-copy .button.primary:hover { background: #eef6cf; }
.hero-copy .button.secondary { border-color: #719485; background: transparent; color: #f7f8ec; }
.hero-copy .button.secondary:hover { background: #234d3e; border-color: #b3d4c2; }
.hero-copy :focus-visible { outline-color: var(--lime); }
.button:disabled { opacity: .6; cursor: default; }
.text-link { display: inline-flex; align-items: center; gap: .375rem; min-height: 48px; }

.finder {
    grid-area: finder;
    padding: clamp(1.125rem, 2.7vw, 2rem);
    border: 1px solid var(--accent-border);
    border-top: 4px solid var(--lime);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lift);
}
.finder-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 1rem 2.5rem; }
.finder h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.finder-instructions, #finder-status, #finder-results > p, .supporting { color: var(--muted); font-size: .9375rem; }
.finder-instructions { margin-top: .375rem; }
.finder-form { display: grid; gap: .4375rem; }
.finder-form select { min-height: 54px; background-color: var(--mist); }
.finder-refine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; margin-top: 1rem; }
.finder-help, .finder-sources { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.finder-help { margin-top: .5rem; font-size: .875rem; }
.finder-sources { border-top: 1px solid var(--frost); margin-top: .25rem; }
.finder-sources .text-link { font-size: .875rem; }
.finder-sources svg { width: 14px; height: 14px; }

label { display: grid; align-content: start; gap: .4375rem; color: var(--ink-soft); font-size: .875rem; font-weight: 500; }
input, select, textarea {
    width: 100%;
    min-height: 50px;
    padding: .625rem .8125rem;
    border: 1px solid var(--control-border);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    font: 400 1rem/1.4 var(--font);
    box-shadow: 0 1px 2px rgba(16, 41, 35, .03);
}
input:hover, select:hover, textarea:hover { border-color: #557367; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); outline: 2px solid rgba(32, 88, 69, .22); outline-offset: 0; }
select { padding-inline-end: 1.625rem; text-overflow: ellipsis; }
:where(input, select):disabled { background: var(--frost); cursor: default; }
textarea { resize: vertical; }
#finder-status, #finder-results > p { margin-top: .875rem; }
#ac-search-help { margin-top: .375rem; }
#finder-status { color: var(--ink); }
#finder-status:empty { margin: 0; }
.result-group { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--frost); }
.result-group h3 { font-size: 1.125rem; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .875rem; list-style: none; margin-top: .5rem; padding: 0; }
.results-grid li { border-bottom: 1px solid var(--frost); }
.results-grid a {
    display: grid;
    grid-template-columns: 3.75ch minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    min-height: 48px;
    padding: .5rem .375rem;
    border-radius: .375rem;
    font-size: .8125rem;
    text-decoration: none;
}
.results-grid a:hover { background: var(--accent-pale); }
.results-grid svg { width: 14px; height: 14px; flex: none; }
.ac-number {
    color: var(--muted);
    text-align: end;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.link-arrow { font-size: .875rem; }

.section { padding-block: var(--section-gap); border-bottom: 1px solid var(--frost); }
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}
.steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .875rem; padding-top: 1rem; border-top: 1px solid var(--frost); }
.step-number {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--accent-pale);
    color: var(--accent);
    font-size: .875rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.steps h3 { padding-top: .3rem; }
.steps p { max-width: 44ch; margin-top: .5rem; }
.district-search { display: grid; gap: .4375rem; max-width: 26rem; margin-block: 1.5rem .75rem; }
#directory-status { margin-block: .5rem; }
.table-scroll {
    max-width: 100%;
    overflow: auto;
    border: 1px solid var(--frost);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overscroll-behavior-inline: contain;
    scrollbar-color: #aec6b7 transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.directory { width: 100%; min-width: 34rem; border-collapse: collapse; text-align: left; }
.directory :is(th, td) { padding: .4375rem 1rem; vertical-align: top; border-bottom: 1px solid var(--frost); }
.directory tbody tr:last-child > * { border-bottom: 0; }
.directory tbody tr:nth-child(even) { background: #f9fbf6; }
.directory tbody tr:hover { background: var(--accent-pale); }
.directory thead th { padding-block: .875rem; background: var(--forest); color: #edf6ed; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.directory th[scope="row"] { width: 27%; padding-top: .8125rem; font-weight: 500; }
.directory th small { display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.directory td:nth-child(3) { padding-top: .9375rem; color: var(--muted); }
.directory summary {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    min-width: 48px;
    min-height: 44px;
    padding: .25rem .75rem;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--accent-pale);
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
}
.directory summary::-webkit-details-marker { display: none; }
.directory summary::after { content: "+"; font-size: .875rem; line-height: 1; }
.directory details[open] summary::after { content: "–"; }
.directory ul { margin: .5rem 0 .75rem; padding-inline-start: 1rem; font-size: .875rem; }
.directory tr:focus-within { background: var(--mist); }
.directory .text-link { white-space: nowrap; }
.archive-group-label { display: none; }

.checker-panel {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(1rem, 4vw, 3.5rem);
    padding: clamp(1rem, 3vw, 2.5rem);
    border: 1px solid var(--forest);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    background: linear-gradient(130deg, var(--forest-deep), #1a4537);
    color: #f7f8ec;
    box-shadow: var(--shadow-md);
}
.checker-copy { padding-top: .5rem; }
.checker-copy .intro { max-width: 36ch; color: #cce0d3; }
.checker-copy .text-link { margin-top: .5rem; color: var(--lime); }
.checker-copy :focus-visible { outline-color: var(--lime); }
.checker-controls { min-width: 0; padding: clamp(.875rem, 2.25vw, 1.5rem); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.checker-fields { display: grid; gap: 1rem; margin-bottom: 1rem; }
.checker-field { display: grid; gap: .4375rem; min-width: 0; }
.next-steps { margin-top: 1rem; padding: 1rem 1.125rem; background: var(--accent-pale); border: 1px solid var(--accent-border); border-radius: var(--radius); }
.next-steps ul { margin-top: .5rem; padding-inline-start: 1.25rem; }
.next-steps li + li { margin-top: .375rem; }

.guide-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.guide-card { grid-column: span 2; min-width: 0; border: 1px solid var(--frost); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.guide-card:first-child, .guide-card:nth-child(2) { grid-column: span 3; }
.guide-cover { display: block; position: relative; color: var(--ink); text-decoration: none; }
.guide-cover img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0; }
.guide-cover h3 { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: .75rem 1rem .125rem; }
.guide-cover svg { width: 17px; height: 17px; color: var(--accent); transition: transform .18s ease; }
.guide-cover:hover svg { transform: translateX(3px); }
.guide-cover:hover h3 { color: var(--accent); }
.guide-card p { max-width: 55ch; padding: .375rem 1rem 1rem; color: var(--muted); }
.reference-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .875rem; margin-top: 1.5rem; }
.reference-card { display: flex; flex-direction: column; gap: .375rem; padding: 1.125rem; border: 1px solid var(--frost); border-top: 2px solid var(--accent-border); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.reference-card > span:last-child { color: var(--muted); font-size: .875rem; }
.reference-card:hover { border-color: var(--accent-border); background: #f5f9f3; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.reference-card:hover strong { color: var(--accent); }
.reference-kicker { color: var(--accent); font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.section-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: 1rem; }
.section-links a { display: inline-flex; align-items: center; min-height: 48px; }
.faq-block, .sources { padding-block: 2.25rem; border-bottom: 1px solid var(--frost); }
.faq-block h2, .sources h2 { margin-bottom: .75rem; }
.faq-block details { border-top: 1px solid var(--frost); }
.faq-block summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    padding: .875rem .125rem;
    color: var(--ink);
    font-size: 1.0625rem;
    cursor: pointer;
    list-style: none;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; flex: none; color: var(--accent); font-size: 1.375rem; font-weight: 400; line-height: 1; }
.faq-block details[open] summary::after { content: "–"; }
.faq-block details[open] summary { color: var(--accent); }
.faq-block p { max-width: 68ch; padding-bottom: 1.125rem; }
.sources ul { padding-inline-start: 1.125rem; }
.sources a, .related a { display: inline-flex; align-items: center; min-height: 48px; }
.review-details { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; margin-block: .75rem 1.5rem; color: var(--muted); font-size: .875rem; }
.ad-slot { min-height: 280px; text-align: center; border: 1px solid var(--frost); border-radius: var(--radius); color: var(--muted); padding: .5rem; margin-block: 1.25rem; }

.page { min-height: 60vh; padding-bottom: var(--section-gap); }
.page article { max-width: 55rem; margin-inline: auto; }
.page article.has-contents { max-width: 64rem; }
.page h1 { font-size: clamp(2.125rem, 4.2vw, 3.55rem); line-height: 1.08; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .125rem .5rem; min-height: 48px; margin-block: 1rem clamp(1rem, 3vw, 2.25rem); color: var(--muted); font-size: .8125rem; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 48px; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-heading {
    margin-bottom: 1.5rem;
    padding: clamp(1rem, 3.5vw, 2.5rem);
    border: 1px solid var(--frost);
    border-inline-start: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--white) 22%, #e6f0e2);
    box-shadow: var(--shadow-sm);
}
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    margin-bottom: .75rem;
    padding: .25rem .6875rem;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--accent-pale);
    color: var(--accent);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.page-heading .intro { max-width: 64ch; color: var(--muted); }
.page-heading .supporting { margin-top: .75rem; }
.page-primary-actions { margin-block: .875rem .625rem; }
.article-cover { margin-top: 1.75rem; }
.guide-prose .article-cover { margin-top: 0; }
.article-body { max-width: 69ch; }
.guide-prose .article-body { max-width: 72ch; }
.article-body section:not(.sources):not(.faq-block) { margin-block: 2.5rem; }
.article-body h2 { font-size: clamp(1.5rem, 2.7vw, 1.875rem); padding-bottom: .625rem; }
.article-body p { color: #233e34; }
.related { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.roll-example { margin-top: 1rem; border: 1px solid var(--frost); border-radius: var(--radius-lg); background: var(--mist); overflow: hidden; }
.roll-example > div { padding: 1rem; }
.roll-example > div + div, .case-paths > div + div { border-top: 1px solid var(--frost); }
.roll-example dl, .case-paths { margin: 0; }
.roll-example dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .5rem; margin-top: .5rem; }
.roll-example dt { color: var(--muted); }
.roll-example dd, .case-paths dd { margin: 0; }
.case-paths > div { padding-block: .75rem; }
.case-paths dt { font-size: 1.125rem; margin-bottom: .25rem; }
.archive-routes { width: 100%; border-collapse: collapse; text-align: start; }
.archive-routes :is(th, td) { padding: .5rem .75rem; border-bottom: 1px solid var(--frost); vertical-align: top; }
.archive-routes tbody th { width: 32%; font-weight: 400; }
.archive-routes td p { padding-bottom: .375rem; }
.archive-request { margin-top: .375rem; padding-inline-start: 1.25rem; }
.archive-request li + li { margin-top: .375rem; }

.footer {
    background:
        radial-gradient(40rem 20rem at 12% 0%, #1c4536, transparent 65%),
        linear-gradient(180deg, var(--forest), var(--forest-deep));
    border-top: 3px solid var(--gold);
    color: #c6d8ce;
    padding-block: 3rem 1rem;
}
.footer .brand { color: var(--white); }
.footer .brand-name { color: var(--white); }
.footer .brand-tagline { color: #b6ccbf; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1.5rem 3rem; }
.footer-grid h2 { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #c3dacb; }
.footer-grid > div:not(:first-child) a { display: flex; align-items: center; min-height: 44px; max-width: fit-content; color: #e4efe8; font-size: .9375rem; text-decoration-color: rgba(213, 222, 234, .35); }
.footer-grid > div:not(:first-child) a:hover { color: var(--white); text-decoration-color: currentColor; }
.footer-grid p, .footer-note { color: #b6ccbf; font-size: .875rem; }
.footer-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 1.5rem; }
.footer-note a { display: inline-flex; align-items: center; gap: .25rem; min-height: 48px; color: #c6d8ce; }
.footer-note a:hover { color: var(--white); }
.footer-note svg { width: 15px; height: 15px; }
.footer .social-links a { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); color: #edf5ef; box-shadow: none; }
.footer .social-links a:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: var(--white); }
.footer :where(a, button, summary):focus-visible { outline-color: var(--white); }

.contact-panel {
    max-width: 44rem;
    padding: clamp(1.25rem, 3.4vw, 2rem);
    border: 1px solid var(--frost);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(26rem 16rem at 100% 0%, rgba(32, 88, 69, .09), transparent 70%),
        linear-gradient(180deg, var(--white), var(--mist));
    box-shadow: var(--shadow-sm);
}
.contact-panel h2 { margin-top: 0; margin-bottom: .5rem; font-size: clamp(1.375rem, 2.6vw, 1.625rem); }
.contact-panel .contact-social { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .625rem; margin: 1.25rem 0; }
.contact-social li { display: flex; min-width: 0; }
.contact-social a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 52px;
    padding: .625rem .875rem;
    border: 1px solid var(--frost);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(16, 41, 35, .04);
    color: var(--ink);
    font-size: .9375rem;
    text-decoration: none;
}
.contact-social a::after { content: "↗"; color: var(--accent); font-size: .875rem; }
.contact-social a:hover { border-color: var(--accent); background: var(--accent-pale); color: var(--accent); box-shadow: var(--shadow-sm); }
.contact-support { padding-top: 1.125rem; border-top: 1px solid var(--frost); color: var(--muted); font-size: .9375rem; }
.contact-support a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 900px) {
    .wrap { width: calc(100% - 3rem); }
    .hero-grid { gap: 2rem 1.5rem; }
    .steps, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-card, .guide-card:first-child, .guide-card:nth-child(2) { grid-column: auto; }
}

@media (max-width: 860px) {
    html { scroll-padding-top: 7.5rem; }
    .masthead { grid-template-columns: minmax(0, 1fr) auto; gap: 0 .5rem; min-height: auto; padding-block: .25rem 0; }
    .main-nav {
        grid-row: 2;
        grid-column: 1/-1;
        gap: .125rem;
        padding-block: .125rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav::-webkit-scrollbar { display: none; }
    .main-nav a { flex: 0 0 auto; padding-inline: .5rem; white-space: nowrap; }
}

@media (max-width: 680px) {
    .wrap { width: calc(100% - 2rem); }
    .brand { gap: .5rem; }
    .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
    .brand-tagline { display: none; }
    .language-nav { padding: 0; border: 0; background: transparent; gap: .125rem; }
    .language-nav a { padding-inline: .4rem; }
    .main-nav a { font-size: .8125rem; }
    .hero-grid, .finder-layout, .steps, .checker-panel { grid-template-columns: minmax(0, 1fr); }
    .guide-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { grid-template-areas: "intro" "finder" "visual"; gap: .95rem; padding-block: 1rem 1.5rem; }
    .hero::after { height: clamp(20rem, 94vw, 29rem); }
    .hero-copy h1 { font-size: clamp(2rem, 8.8vw, 3.25rem); }
    .hero-copy .intro, .hero-copy .actions { margin-top: .65rem; }
    .hero-visual::before { inset: 7px -7px -7px 7px; }
    .hero-photo { height: auto; aspect-ratio: 4 / 3; }
    .finder { padding: .95rem; }
    .finder-layout { gap: .65rem; }
    .finder-refine { grid-template-columns: minmax(0, 1fr); }
    .guide-card { grid-column: auto; }
    .directory { min-width: 0; }
    .directory :is(td, th) { padding-inline: .5rem; }
    .directory th[scope="row"] { width: auto; }
    .directory th:nth-child(3), .directory td:nth-child(3) { display: none; }
    .directory td:nth-child(2) ul { min-width: 14rem; }
    .directory .text-link { font-size: .8125rem; }
    .directory .text-link svg { display: none; }
    .archive-group-label { display: block; color: var(--muted); font-size: .75rem; }
    .contact-panel .contact-social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
    .footer-grid > div:first-child { grid-column: 1 / -1; margin-bottom: .5rem; }
    .button { padding-inline: .875rem; }
}

@media (max-width: 520px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid > div:first-child { margin-bottom: 0; }
}

@media (max-width: 420px) {
    .results-grid { grid-template-columns: minmax(0, 1fr); }
    .page h1 { font-size: 1.9375rem; }
    .brand-name { font-size: 1rem; }
    .language-nav a { padding-inline: .3rem; font-size: .75rem; }
    .social-links a { font-size: .8125rem; }
}

@media (prefers-reduced-motion: no-preference) {
    :is(.button, .main-nav a, .language-nav a) { transition: background-color .15s ease, border-color .15s ease; }
}

.start-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}
.start-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1rem, 2.6vw, 1.75rem);
    border: 1px solid var(--frost);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.start-card:nth-child(2) { border-top-color: #aa7d47; background: #fffaf0; }
.start-card:nth-child(3) { border-top-color: #6b8d62; background: #eff6ec; }
.start-card h3 { margin-top: .625rem; font-size: 1.25rem; }
.start-card p { max-width: 34ch; margin-top: .5rem; color: var(--muted); font-size: .9375rem; }
.start-card .text-link { margin-top: auto; padding-top: .875rem; font-size: .9375rem; }
.start-kicker {
    display: inline-block;
    padding: .1875rem .625rem;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--white);
    color: var(--accent);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.trust-strip {
    margin-block: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    background: var(--accent-pale);
}
.trust-strip ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.trust-strip li { display: grid; gap: .25rem; }
.trust-strip strong { font-weight: 500; }
.trust-strip span { color: var(--muted); font-size: .875rem; }

.quick-answer {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.375rem;
    border: 1px solid var(--accent-border);
    border-inline-start: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(22rem 12rem at 100% 0%, rgba(32, 88, 69, .08), transparent 70%),
        var(--accent-pale);
}
.quick-answer h2 { margin-bottom: .5rem; color: var(--accent); font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.quick-answer ul { margin: 0; padding-inline-start: 1.125rem; }
.quick-answer li + li { margin-top: .4375rem; }
.quick-answer li { color: var(--ink); }

.toc {
    max-width: 50rem;
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--frost);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.toc h2 { margin-bottom: .375rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.toc ol { margin: 0; padding-inline-start: 1.25rem; columns: 2; column-gap: 2rem; }
.toc li { break-inside: avoid; padding-inline-start: .25rem; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; font-size: .9375rem; }

@media (min-width: 980px) {
    .guide-reading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
        grid-template-areas: "prose index";
        align-items: start;
        gap: clamp(1.5rem, 3vw, 2.75rem);
    }
    .guide-prose { grid-area: prose; min-width: 0; }
    .guide-index { grid-area: index; position: sticky; top: 6.25rem; min-width: 0; }
    .guide-index .toc { max-height: calc(100vh - 7.25rem); margin-bottom: 0; overflow: auto; }
    .guide-index .toc ol { columns: 1; }
}

.byline {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    margin-top: .875rem;
    color: var(--muted);
    font-size: .875rem;
}
.byline a { color: var(--muted); }
.byline a:hover { color: var(--accent); }

.article-list { margin-top: .5rem; padding-inline-start: 1.25rem; }
.article-list li + li { margin-top: .375rem; }
.article-table { margin-top: 1rem; }
.article-table table, .district-table table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    text-align: start;
}
.article-table caption, .district-table caption {
    padding: .625rem .875rem;
    color: var(--muted);
    font-size: .875rem;
    text-align: start;
}
.article-table :is(th, td), .district-table :is(th, td) {
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--frost);
    vertical-align: top;
    text-align: start;
}
.article-table thead, .district-table thead, .archive-routes thead { background: #e3f0df; }
.article-table thead th, .district-table thead th { color: var(--ink-soft); font-weight: 600; font-size: .8125rem; }
.article-table tbody th, .district-table tbody th { font-weight: 500; }
.article-table tbody tr:last-child > *, .district-table tbody tr:last-child > * { border-bottom: 0; }
.article-table tbody tr:nth-child(even), .district-table tbody tr:nth-child(even) { background: #f9fbf6; }
.article-table tbody tr:hover, .district-table tbody tr:hover { background: var(--accent-pale); }
.article-table tbody td:first-child { font-variant-numeric: tabular-nums; }
.count-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { margin-top: .5rem; color: var(--muted); font-size: .875rem; }
.callout {
    margin-top: 1rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--frost);
    border-inline-start: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--mist);
}
.callout p { color: var(--ink); }

.guide-tag {
    display: inline-block;
    padding: .1875rem .625rem;
    border: 1px solid rgba(16, 41, 35, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--accent);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(16, 41, 35, .1);
}
.guide-card:not(.guide-card--text) .guide-cover .guide-tag { position: absolute; left: .75rem; top: .75rem; z-index: 1; }
.guide-card--text .guide-cover {
    min-height: 8.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .625rem;
    padding: 1.125rem;
    border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
    background: linear-gradient(135deg, #f8f9ee, var(--accent-pale));
}
.guide-card--text .guide-cover .guide-tag { margin-bottom: auto; align-self: flex-start; }
.guide-card--text .guide-cover h3 { min-height: 0; padding: 0; }

.district-jump {
    margin: 1.25rem 0 2rem;
    padding: 1rem;
    border: 1px solid var(--frost);
    border-radius: var(--radius);
    background: var(--mist);
}
.district-jump h3 { font-size: 1rem; font-weight: 500; }
.district-jump ul {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    margin: .5rem 0 0;
    padding: 0;
    list-style: none;
}
.district-jump a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
.district-jump span { color: var(--muted); }
.district-block { margin-top: 2.5rem; }
.district-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.district-block-head h3 { font-size: 1.5rem; }
.district-block-head h3 small { color: var(--muted); font-size: .875rem; font-weight: 400; }
.district-block-head p { color: var(--muted); font-size: .875rem; }
.ac-table { margin-top: .75rem; }
.ac-table table { min-width: 0; }
.ac-table th:first-child, .ac-table td:first-child {
    width: 4.5rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.archive-group-links { display: flex; flex-wrap: wrap; gap: 0 1rem; padding: 0; list-style: none; }
section[id] { scroll-margin-top: 6rem; }

@media (max-width: 900px) {
    .start-grid, .trust-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toc ol { columns: 1; }
}

@media (max-width: 680px) {
    .start-grid, .trust-strip ul { grid-template-columns: minmax(0, 1fr); }
    .start-card .text-link { padding-top: .5rem; }
    .quick-answer, .toc { padding: .875rem; }
}

.section > h2 { padding-bottom: 0; }
.article-cover { box-shadow: var(--shadow-md); }
.district-block-head h3 { position: relative; padding-inline-start: .875rem; }
.district-block-head h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
}

.author-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: clamp(1.125rem, 3vw, 1.75rem);
    border: 1px solid var(--frost);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(24rem 16rem at 100% 0%, rgba(32, 88, 69, .1), transparent 70%),
        linear-gradient(135deg, var(--white) 0%, #f3f7ee 58%, #edf5e8 100%);
    box-shadow: var(--shadow-sm);
}
.author-mark {
    display: grid;
    place-items: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 14px;
    background: var(--accent);
    color: var(--lime);
    font-size: 1.1875rem;
    font-weight: 500;
    letter-spacing: .02em;
    box-shadow: 0 10px 26px rgba(32, 88, 69, .26);
}
.author-copy h2 { margin-top: .125rem; font-size: 1.5rem; }
.author-kicker { color: var(--accent); font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.author-role { margin-top: .125rem; color: var(--muted); font-size: .875rem; }
.author-copy > p { margin-top: .625rem; }
.author-note { color: var(--muted); font-size: .875rem; }
.author-method { font-size: .875rem; }
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin: .875rem 0 0;
    padding: 0;
    list-style: none;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .375rem .875rem;
    border: 1px solid var(--frost);
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(16, 41, 35, .04);
    color: var(--ink);
    font-size: .8125rem;
    text-decoration: none;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
.social-links--footer { margin-top: .75rem; }

.fact-section { margin-bottom: 1.5rem; }
.fact-section h2 { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.fact-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin: .625rem 0 0;
}
.fact-cards > div {
    padding: 1rem;
    border: 1px solid var(--frost);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--white), var(--mist));
    box-shadow: 0 1px 2px rgba(16, 41, 35, .035);
}
.fact-cards dt { color: var(--muted); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; }
.fact-cards dd { display: grid; gap: .125rem; margin: .375rem 0 0; }
.fact-cards strong { font-size: 1.375rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fact-cards dd span { color: var(--muted); font-size: .8125rem; line-height: 1.45; }

.route-cards { display: grid; gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.route-cards li {
    padding: 1rem 1.125rem;
    border: 1px solid var(--frost);
    border-radius: var(--radius);
    background: var(--mist);
}
.route-year { display: inline-block; color: var(--accent); font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.route-cards p { margin-top: .25rem; color: var(--muted); font-size: .9375rem; }

.footer-grid > div:first-child > p { max-width: 34ch; margin-top: .5rem; }

@media (prefers-reduced-motion: no-preference) {
    .start-card, .reference-card, .guide-card, .button { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .15s ease, color .15s ease; }
    .start-card:hover, .guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}

@media (max-width: 900px) {
    .fact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .hero-badge { left: .625rem; bottom: .625rem; font-size: .75rem; }
    .author-box { grid-template-columns: minmax(0, 1fr); gap: .875rem; }
    .author-mark { width: 3.125rem; height: 3.125rem; border-radius: 12px; font-size: 1.0625rem; }
    .trust-strip { padding: 1.25rem; }
    .fact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    .fact-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
    .contact-panel .contact-social { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .start-card:hover,
    .reference-card:hover,
    .guide-cover:hover svg,
    .button.primary:hover { transform: none; }
}

@media print {
    .site-header, .footer, .actions, .toc, .related, .review-details, .ad-slot, .author-box, .social-links { display: none !important; }
    .page article, .page article.has-contents, .article-body, .guide-prose .article-body { max-width: none; }
    .guide-reading { display: block; }
    .page-heading { background: var(--white); box-shadow: none; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}
