/* =====================================================================
   BCC Property Tax System — DBIM-aligned stylesheet
   Layout: gov strip → identity header → sticky nav → ticker →
           [pay card + services | key dates + what's new] → notices band → footer
   ===================================================================== */

/* ---------- 1. DBIM tokens ----------
   Primary palette: ONE colour group (Blue) with key colour + gradients.
   NOTE: verify these hex values against the Blue group swatch in the
   DBIM Toolkit (dbimtoolkit.digifootprint.gov.in) before go-live.          */
:root {
    /* Primary colour group — Blue (key colour = --key-900, darkest shade) */
    --key-900: #162F6A; /* footer, gov strip, icons (DBIM: darkest shade) */
    --key-800: #1c2f7f; /* navigation bar */
    --key-700: #2442a6; /* primary buttons, headings accent */
    --key-600: #3157c7; /* hover */
    --key-200: #c9d3f2; /* borders on tinted areas */
    --key-100: #e7ecfa; /* tinted surfaces */
    --key-50: #f4f6fd;
    /* DBIM functional palette (exact values from the manual) */
    --linen: #ebeaea;
    --white: #ffffff;
    --text: #150202; /* Deep Earthy Brown — body text on light */
    --black: #000000;
    --success: #198754; /* Liberty Green */
    --warning: #ffc107; /* Mustard Yellow */
    --error: #dc3545; /* Coral Red */
    --info: #0d6efd; /* Blue — status info + hyperlinks */
    --grey-01: #c6c6c6;
    --grey-02: #8e8e8e;
    --grey-03: #606060;
    /* Derived (kept inside the palette) */
    --bg: var(--white);
    --surface: var(--white);
    --muted: var(--grey-03);
    --border: var(--grey-01);
    --heading: var(--key-900); /* text in the key colour (headings, icons) */
    --link: #0a58ca; /* darker step of DBIM info blue: 6.4:1 on white */
    --focus: #ffbf47;
    --warning-ink: #6b4f00; /* text on --warning tint, 7:1 */
    /* Typography — DBIM mandates Noto Sans (+ Noto Sans Kannada) */
    --font: "Noto Sans", "Noto Sans Kannada", "Nirmala UI", "Tunga", system-ui, -apple-system, "Segoe UI", sans-serif;
    /* DBIM desktop scale */
    --fs-h1: 36px; /* 36 */
    --fs-h2: 24px; /* 24 */
    --fs-h3: 20px; /* 20 */
    --fs-p1: 16px; /* 16 */
    --fs-p2: 14px; /* 14 */
    --fs-s1: 12px; /* 12 */
    --lh: 1.5; /* DBIM: 1.2–1.5× */
    /* Standard page size
     Content width is fixed at 1280px and centred; header, menu and footer bands run full width.
     Standard screen sizes (also used by the pager in site.js):
       desktop  >= 961px   two-column layout, lists shown in full
       tablet   721–960px  single column, lists paged (see data-per-page)
       mobile   <= 720px   single column, DBIM mobile type scale, lists paged
     Minimum supported width: 320px. */
    --radius: 6px;
    --gutter: clamp(16px, 4vw, 40px);
    --maxw: 1280px;
}

/* GIGW high-contrast mode (toggled from the gov strip) */
:root[data-contrast="high"] {
  --key-900: #000000; --key-800: #000000; --key-700: #ffff00; --key-600: #ffff66;
  --key-200: #ffffff; --key-100: #000000; --key-50: #000000;
  --bg: #000000; --surface: #000000; --text: #ffffff; --muted: #ffffff;
  --border: #ffffff; --link: #ffff00; --linen: #000000; --heading: #ffff00;
  --warning-ink: #000000;
  color-scheme: dark;
}
:root[data-contrast="high"] .btn-primary { color: #000; }
:root[data-contrast="high"] .ident, :root[data-contrast="high"] .svc { background: #000; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html[data-textsize="-1"] { font-size: 87.5%; }
html[data-textsize="1"]  { font-size: 112.5%; }
html[data-textsize="2"]  { font-size: 125%; }
body {
  margin: 0; min-width: 320px; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-p1); line-height: var(--lh);
}
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--text); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-ext { width: 14px; height: 14px; vertical-align: -1px; margin-left: 3px; }

/* Skip link — first focusable element (GIGW) */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--focus); color: #000; padding: 10px 16px; font-weight: 600; border-radius: 0 0 var(--radius) var(--radius); }
.skip-link:focus { top: 0; }

/* ---------- 3. Government strip (DBIM user controls) ---------- */
.govstrip { background: var(--key-900); color: #fff; font-size: var(--fs-s1); }
.govstrip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; min-height: 36px; }
.govstrip a, .govstrip button { color: #fff; }
.govstrip .gov { display: flex; gap: 8px; align-items: center; font-weight: 500; letter-spacing: .02em; }
.govstrip .gov span + span::before { content: "|"; margin-right: 8px; opacity: .5; }
.uctl { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.uctl a { text-decoration: none; padding: 6px 0; }
.uctl a:hover { text-decoration: underline; }
.uctl .grp { display: flex; align-items: center; gap: 2px; }
.uctl .grp-label { margin-right: 6px; opacity: .85; }
.uctl button {
  font: inherit; background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 4px;
  min-width: 30px; height: 26px;  cursor: pointer; line-height: 1;
}
.uctl button:hover { background: rgba(255,255,255,.14); }
.uctl button[aria-pressed="true"] { background: #fff; color: var(--heading); }
.uctl .lang { font-weight: 600; border: 1px solid #fff; border-radius: 4px; padding: 3px 10px; }
:root[data-contrast="high"] .uctl button[aria-pressed="true"] { background: #ff0; color: #000; }

/* ---------- 4. Identity header: emblem + title | ministers | GBA name + logo ---------- */
.ident { background: var(--surface); border-bottom: 1px solid var(--border); }
.ident .wrap { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "l m r"; align-items: center; gap: 12px 24px; padding-block: 12px; }
.lockup { grid-area: l; } .leaders { grid-area: m; } .authority { grid-area: r; }
.lockup, .authority { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lockup { text-decoration: none; color: inherit; }
.lockup img, .authority img { height: 76px; width: 76px; flex: none; border-radius: 50%; }
.lockup .names, .authority .names { display: grid; min-width: 0; }
.lockup .names { max-width: 300px; }
.lockup .gov-kn { font-size: var(--fs-s1); font-weight: 600; color: var(--muted); }
.lockup .site-kn { font-size: 1.375rem; font-weight: 700; color: var(--heading); line-height: 1.25; }
.lockup .site-en { font-size: var(--fs-s1); font-weight: 600; color: var(--key-700); margin-top: 3px; }
.authority { text-align: right; }
.authority .auth-kn { font-size: 1.0625rem; font-weight: 700; color: var(--heading); line-height: 1.3; }
.authority .auth-en { font-size: var(--fs-s1); font-weight: 600; color: var(--key-700); }
.authority .corps { font-size: var(--fs-s1); color: var(--muted); word-spacing: 2px; }

/* Ministers between the two logos (DBIM headshots: 1:1, white background) */
.leaders { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: flex-start; gap: 8px; }
.leaders li { width: 144px; display: grid; grid-template-rows: 76px auto auto; justify-items: center; text-align: center; gap: 2px; min-width: 0; }
.leaders img { align-self: end; width: 62px; height: 62px; border-radius: 50%; object-fit: cover; background: #fff; margin-bottom: 4px;
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--key-200), 0 4px 12px -4px rgba(20,33,92,.35); }
.leaders li.lead img { width: 64px; height: 64px; box-shadow: 0 0 0 2px var(--key-700), 0 4px 12px -4px rgba(20,33,92,.4); }
.leaders .nm { font-size: .8125rem; font-weight: 700; color: var(--heading); line-height: 1.25; }
.leaders .rl { font-size: 11px; color: var(--muted); line-height: 1.3; }

/* compact search in the government strip */
.strip-search { width: 220px; }
.searchbox { display: flex; border: 1px solid rgba(255,255,255,.55); border-radius: 4px; overflow: hidden; background: #fff; }
.searchbox input { flex: 1; min-width: 0; border: 0; padding: 4px 10px; height: 28px; font: inherit; font-size: var(--fs-s1); background: transparent; color: #150202; }
.searchbox input::placeholder { color: var(--grey-03); }
.searchbox input:focus { outline: none; }
.searchbox:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.searchbox button { border: 0; background: var(--key-700); color: #fff; padding: 0 10px; cursor: pointer; display: grid; place-items: center; }
.searchbox button .icon { width: 16px; height: 16px; }
.searchbox button:hover { background: var(--key-600); }
:root[data-contrast="high"] .searchbox { background: #000; border-color: #fff; }
:root[data-contrast="high"] .searchbox input { color: #fff; }
:root[data-contrast="high"] .searchbox button { color: #000; }

/* image placeholders (remove when real logo files are in /Content/images) */
.ph { display: inline-grid; place-items: center; border: 1.5px dashed var(--grey-02); border-radius: 4px; color: var(--muted); font-size: 10px; text-align: center; line-height: 1.2; padding: 4px; aspect-ratio: 1; }
.ph.wide { aspect-ratio: 2.4; }
.ph.round { border-radius: 50%; }

/* ---------- 5. Navigation ---------- */
.mainnav { background: var(--key-800); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.mainnav .wrap { display: flex; align-items: stretch; }
.nav-toggle { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  display: flex; align-items: center; gap: 6px; height: 100%; min-height: 48px;
  padding: 0 13px; color: #fff; text-decoration: none; font: inherit; font-size: var(--fs-p2); font-weight: 500;
  background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap;
}
.menu > li > a:hover, .menu > li > button:hover, .menu > li > button[aria-expanded="true"] { background: rgba(255,255,255,.1); border-bottom-color: #fff; }
.menu > li > a[aria-current="page"] { border-bottom-color: var(--warning); font-weight: 600; }
.menu .caret { width: 10px; height: 10px; transition: transform .15s; }
.menu button[aria-expanded="true"] .caret { transform: rotate(180deg); }
.submenu { display: none; position: absolute; left: 0; top: 100%; min-width: 260px; list-style: none; margin: 0; padding: 6px 0;
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--key-700); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 24px rgba(20,33,92,.18); }
.menu button[aria-expanded="true"] + .submenu { display: block; }
.submenu a { display: block; padding: 10px 16px; color: var(--text); text-decoration: none; font-size: var(--fs-p2); }
.submenu a:hover, .submenu a:focus-visible { background: var(--key-100); color: var(--heading); }
.menu .login { margin-left: auto; }
.menu .login > a { gap: 8px; }

/* ---------- 6. Ticker (pausable, GIGW 2.2.2) ---------- */
.ticker { background: var(--key-50); border-bottom: 1px solid var(--key-200); font-size: var(--fs-p2); }
.ticker .wrap { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.ticker-label { flex: none; background: var(--key-700); color: #fff; font-size: var(--fs-s1); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; }
:root[data-contrast="high"] .ticker-label { color: #000; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: flex; gap: 56px; width: max-content; list-style: none; margin: 0; padding: 0; animation: tick 38s linear infinite; }
.ticker-track li { white-space: nowrap; }
.ticker[data-paused="true"] .ticker-track, .ticker-viewport:hover .ticker-track, .ticker-viewport:focus-within .ticker-track { animation-play-state: paused; }
.ticker-btn { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--key-200); background: var(--surface); color: var(--heading); cursor: pointer; }
.ticker-btn .icon { width: 16px; height: 16px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-direction: column; gap: 4px; width: auto; }
  .ticker-track li { white-space: normal; }
  .ticker-track li[aria-hidden="true"] { display: none; }
  .ticker-btn { display: none; }
  .ticker-viewport { mask-image: none; padding-block: 8px; }
}

/* ---------- 7. Main grid ---------- */
main { display: block; }
.hero { padding-block: 32px 40px; background: linear-gradient(180deg, var(--key-50), var(--bg) 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.col { display: grid; gap: 28px; min-width: 0; align-content: start; }
.col-pay { order: 2; }   /* first in the HTML (h1, reading order), shown on the right on desktop */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: var(--fs-h3); color: var(--heading); }
.section-head .meta { font-size: var(--fs-s1); color: var(--muted); font-weight: 500; }

/* Pay card — the page's primary task */
.paycard { background: var(--surface); border: 1px solid var(--key-200); border-top: 4px solid var(--key-700); border-radius: var(--radius); padding: 26px 28px 24px; box-shadow: 0 1px 2px rgba(20,33,92,.06), 0 10px 30px -12px rgba(20,33,92,.22); }
.eyebrow { font-size: var(--fs-p2); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--key-700); }
.paycard h1 { font-size: var(--fs-h1); font-weight: 700; color: var(--heading); margin-top: 4px; }
.paycard .lede { color: var(--muted); margin-top: 6px; max-width: 58ch; }
.payform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 22px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-p2); }
.field .hint { font-size: var(--fs-s1); color: var(--muted); }
.field input {
  font: inherit; font-size: 1.0625rem; letter-spacing: .04em; padding: 11px 12px; border: 1.5px solid var(--grey-02); border-radius: var(--radius);
  background: var(--surface); color: var(--text); width: 100%; font-variant-numeric: tabular-nums;
}
.field input:hover { border-color: var(--key-700); }
.field input:focus { border-color: var(--key-700); outline: 3px solid var(--focus); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field .err { color: #b02a37; font-size: var(--fs-p2); font-weight: 500; display: flex; gap: 6px; align-items: flex-start; }
:root[data-contrast="high"] .field .err { color: #ff8080; }
.field .err::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; font-size: 12px; font-weight: 700; margin-top: 1px; }
.field .err:empty, .field .err[style*="hidden"] { display: none; }
.err-summary { grid-column: 1 / -1; border: 2px solid var(--error); border-left-width: 6px; border-radius: var(--radius); padding: 12px 16px; background: color-mix(in srgb, var(--error) 6%, var(--surface)); }
.err-summary ul { margin: 6px 0 0; padding-left: 20px; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.secure { display: flex; gap: 8px; align-items: center; font-size: var(--fs-p2); color: var(--muted); }
.secure .icon { width: 18px; height: 18px; color: var(--success); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: var(--fs-p1);
  min-height: 46px; padding: 0 26px; border-radius: var(--radius); cursor: pointer; text-decoration: none; border: 2px solid transparent; transition: background .12s; }
.btn-primary { background: var(--key-700); color: #fff; }
.btn-primary:hover { background: var(--key-600); }
.btn-primary:active { background: var(--key-900); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: var(--grey-01); color: var(--grey-03); cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--key-700); border-color: var(--key-700); }
.btn-secondary:hover { background: var(--key-100); }

/* Service tiles */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.svc { display: grid; gap: 8px; align-content: start; height: 100%; padding: 16px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .12s, transform .12s; }
.svc:hover { border-color: var(--key-700); transform: translateY(-2px); }
.svc .icon { width: 32px; height: 32px; color: var(--heading); stroke-width: 1.5; }
.svc strong { font-size: var(--fs-p2); font-weight: 600; color: var(--heading); line-height: 1.3; }
.svc span { font-size: var(--fs-s1); color: var(--muted); line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .svc:hover { transform: none; } }

/* Key dates timeline */
.dates { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 8px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 18px 1fr auto; gap: 4px 14px; position: relative; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--grey-02); background: var(--surface); margin-top: 3px; z-index: 1; }
.timeline .when { font-size: var(--fs-p1); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline .what { grid-column: 2; font-size: var(--fs-p2); color: var(--muted); }
.timeline .pill { grid-column: 3; grid-row: 1 / span 2; align-self: start; font-size: var(--fs-s1); font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.timeline .is-ended .when { color: var(--muted); font-weight: 500; }
.timeline .is-ended .pill { background: var(--linen); color: var(--grey-03); }
.timeline .is-active .dot { border-color: var(--success); background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent); }
.timeline .is-active .pill { background: color-mix(in srgb, var(--success) 12%, var(--surface)); color: #126b42; border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.timeline .is-next .dot { border-color: var(--warning); background: var(--warning); }
.timeline .is-next .pill { background: color-mix(in srgb, var(--warning) 22%, var(--surface)); color: var(--warning-ink); border-color: var(--warning); }
.timeline .is-upcoming .pill { background: var(--key-100); color: var(--heading); }
:root[data-contrast="high"] .timeline .pill { background: #000 !important; color: #fff !important; border-color: #fff !important; }

/* What's new */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.news li { padding: 14px 0; border-bottom: 1px solid var(--border); display: grid; gap: 4px; }
.news .tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--error); padding: 1px 7px; border-radius: 3px; }
.news a { font-size: var(--fs-p2); font-weight: 500; }
.news .src { font-size: var(--fs-s1); color: var(--muted); }

/* ---------- 8. Notices band ---------- */
.band { background: var(--linen); padding-block: 40px; }
:root[data-contrast="high"] .band { border-block: 1px solid #fff; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.band h2 { font-size: var(--fs-h3); color: var(--heading); margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: var(--fs-p2); max-width: 60ch; }
.steps li::before { content: attr(data-n); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--key-900); color: #fff; font-weight: 600; font-size: var(--fs-p2); }
.steps li > div { display: grid; gap: 4px; padding-top: 3px; }
.attn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.attn li { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; font-size: var(--fs-p2); display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.attn li .icon { color: var(--heading); }
.attn li > div { display: grid; gap: 6px; }
.doc-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- 9. Footer (DBIM: key colour, darkest shade) ---------- */
.site-footer { background: var(--key-900); color: #FFFFFF; font-size: var(--fs-p2); }
:root[data-contrast="high"] .site-footer { border-top: 2px solid #fff; color: #fff; }
.site-footer a { color: #fff; }
.ft-top { display: grid; grid-template-columns: 1.3fr 1.1fr 1fr 1fr 1fr; gap: 28px; padding-block: 40px 28px; }
.ft-col { min-width: 0; }
.ft-col h2 { font-size: var(--fs-p1); font-weight: 600; color: #fff; margin-bottom: 12px; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft-col a { text-decoration: none; }
.ft-col a:hover { text-decoration: underline; }
.ft-col address { font-style: normal; display: grid; gap: 8px; }
.ft-col .row { display: flex; gap: 10px; align-items: flex-start; }
.ft-col .row .icon { width: 18px; height: 18px; margin-top: 2px; color: #fff; }
.ft-col .closed { color: #c9cfe6; font-size: var(--fs-p2); margin-top: 6px; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.18); padding-block: 18px 24px; display: flex; gap: 12px 32px; flex-wrap: wrap; justify-content: space-between; align-items: center; font-size: var(--fs-s1); }
.ft-bottom .owner { display: grid; gap: 4px;}
.ft-bottom .owner strong { color: #fff; font-size: var(--fs-p2); font-weight: 600; }
.ft-meta { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; }
.ft-meta dl { display: flex; gap: 6px; margin: 0; }
.ft-meta dt { color: #c9cfe6; }
.ft-meta dd { margin: 0; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.ft-meta .nic img, .ft-meta .nic .ph { height: 34px; }

/* ---------- 10. Responsive (DBIM mobile scale) ---------- */
@media (max-width: 1200px) {
  .ident .wrap { grid-template-columns: 1fr auto; grid-template-areas: "l r" "m m"; }
  .leaders { border-top: 1px solid var(--border); padding-top: 12px; }
}
@media (max-width: 1400px) {
  .menu > li > a, .menu > li > button { padding: 0 9px; }
}
@media (max-width: 1100px) {
  .menu > li > a, .menu > li > button { padding: 0 8px; font-size: .8125rem; }
  .ft-top { grid-template-columns: 1fr 1fr 1fr; }
  .attn { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .band-grid { grid-template-columns: minmax(0, 1fr); }
  .col-pay { order: 0; }
  .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip-search { width: 100%; order: -1; }
  /* collapsible nav */
  .mainnav .wrap { flex-direction: column; padding-inline: 0; }
  .nav-toggle { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 var(--gutter); background: transparent; color: #fff; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
  .menu { display: none; flex-direction: column; padding-bottom: 8px; }
  .mainnav[data-open="true"] .menu { display: flex; }
  .menu > li > a, .menu > li > button { width: 100%; padding: 0 var(--gutter); font-size: var(--fs-p2); border-bottom: 0; border-left: 4px solid transparent; justify-content: space-between; }
  .menu > li > a[aria-current="page"] { border-left-color: var(--warning); }
  .submenu { position: static; box-shadow: none; border: 0; border-radius: 0; background: rgba(0,0,0,.18); }
  .submenu a { color: #fff; padding-left: calc(var(--gutter) + 16px); }
  .submenu a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .menu .login { margin-left: 0; }
  .mainnav { max-height: 100vh; overflow-y: auto; }
}
@media (max-width: 720px) {
  :root { --fs-h1: 24px; --fs-h2: 20px; --fs-h3: 16px; --fs-p1: 14px; --fs-p2: 12px; --fs-small: 10px; }
  body { font-size: .9375rem; }
  .govstrip .gov span + span { display: none; }
  .uctl .grp-label, .uctl .sr-link { display: none; }
  .lockup img, .authority img { height: 52px; width: 52px; }
  .lockup .site-kn { font-size: 1.0625rem; }
  .lockup .site-en { display: none; }
  .authority .names { display: none; }
  .leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .leaders li { width: auto; grid-template-rows: 64px auto auto; }
  .leaders img { width: 52px; height: 52px; }
  .leaders li.lead img { width: 60px; height: 60px; }
  .paycard { padding: 20px 18px; }
  .payform { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attn { grid-template-columns: 1fr; }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ticker-label { display: none; }
}
@media (max-width: 420px) {
  .ft-top { grid-template-columns: 1fr; }
}
@media print {
  .govstrip, .mainnav, .ticker, .site-footer .ft-top { display: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#btnContrast .icon { width: 16px; height: 16px; }
:root[data-contrast="high"] .ph { color: #fff; border-color: #fff; }


/* Important instructions panel (left column, above the dates) */
.instr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.instr h2 { font-size: var(--fs-h3); color: var(--heading); margin-bottom: 14px; }
.instr .steps li { max-width: none; }

/* Submenus: highlighted first item, long lists, keep inside the viewport */
.submenu { width: max-content; max-width: min(420px, calc(100vw - 32px)); }
.submenu a { padding-block: 8px; line-height: 1.4; }
.submenu a.hl { color: #b02a37; font-weight: 600; }
.submenu.end { left: auto; right: 0; }
:root[data-contrast="high"] .submenu a.hl { color: #ff8080; }
@media (max-width: 960px) {
  .submenu { width: auto; max-width: none; }
  .submenu a.hl { color: #ffd2d6; }
}

/* ---------- Pager (lists split into pages on tablets and phones) ---------- */
.pager { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pager ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pager button { font: inherit; font-size: var(--fs-p2); min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--heading); cursor: pointer; font-variant-numeric: tabular-nums; }
.pager button:hover:not(:disabled) { border-color: var(--key-700); background: var(--key-100); }
.pager button[aria-current="page"] { background: var(--key-700); border-color: var(--key-700); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager .icon { width: 16px; height: 16px; }
.pager .pg-prev .icon { transform: rotate(90deg); }
.pager .pg-next .icon { transform: rotate(-90deg); }
.pager .pg-gap { padding: 0 4px; color: var(--muted); }
.pager .pg-status { margin-left: auto; font-size: var(--fs-s1); color: var(--muted); }
:root[data-contrast="high"] .pager button[aria-current="page"] { color: #000; }
@media (max-width: 420px) {
  .pager .pg-step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pager .pg-status { width: 100%; margin-left: 0; }
}
