/* ==========================================================================
   Northeast Frontier Railway - static website stylesheet
   Layout: mobile first, breakpoints at 640 / 768 / 900 / 960 px
   ========================================================================== */

:root {
  --brand-900: #12235a;   /* footer, deep surfaces */
  --brand: #1e3578;       /* primary navy */
  --brand-600: #2a4597;   /* hover */
  --brand-ink: #1e3578;   /* headings and brand text */
  --link: #2f4fc0;
  --on-brand: #ffffff;
  --ink: #1a2233;
  --muted: #535d70;
  --line: #d4d9e4;
  --surface: #ffffff;
  --surface-alt: #eceef2;
  --tint: #eef2fc;
  --focus: #f5b301;
  --shadow: 0 4px 16px rgba(16, 31, 79, .10);
  --container: 1200px;
  --font: "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

/* Dark contrast mode (Accessibility panel) */
html.a11y-dark {
  --brand-900: #000000;
  --brand: #1c1c1c;
  --brand-600: #2c2c2c;
  --brand-ink: #ffe066;
  --link: #8fd3ff;
  --on-brand: #ffffff;
  --ink: #ffffff;
  --muted: #d4d4d4;
  --line: #5e5e5e;
  --surface: #000000;
  --surface-alt: #111111;
  --tint: #1d1d1d;
  --shadow: none;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { color: var(--brand-ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font: inherit; }
/* scroll containers must contain their absolutely positioned screen-reader text */
.partners-track, .carousel-track, .link-list.scroll, .ticker, .subnav ul, .table-wrap, .nav-menu, .sub-menu, .a11y-panel { position: relative; }
.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; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.ico-sm { width: 1em; height: 1em; }
.ico-xs { width: .8em; height: .8em; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link { position: absolute; left: 8px; top: -80px; z-index: 1000; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; color: var(--on-brand); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.3; }
.btn-light { background: #fff; color: #16285f; }
.btn-light:hover { background: #ffe7b0; color: #16285f; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-600); color: var(--on-brand); }
.btn-outline { border-color: var(--brand); color: var(--brand-ink); background: var(--surface); }
.btn-outline:hover { background: var(--tint); color: var(--brand-ink); }
.btn-sm { padding: 6px 12px; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); position: relative; z-index: 50; }
.header-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { width: auto; height: 58px; }
html.a11y-dark .brand-logo { filter: invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-gov { font-size: .78rem; color: var(--muted); }
.brand-gov [lang="hi"] { font-family: "Noto Sans Devanagari", var(--font); }
.brand-sep { opacity: .5; margin: 0 2px; }
.brand-ministry, .brand-zone { font-size: 1rem; font-weight: 700; color: var(--brand-ink); }
.header-search { order: 3; flex: 1 1 100%; display: flex; border: 1px solid var(--line); border-bottom: 2px solid var(--brand); border-radius: 4px 4px 0 0; background: var(--surface); }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .95rem; padding: 9px 12px; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.header-search-btn { border: 0; background: transparent; color: var(--brand-ink); padding: 0 12px; cursor: pointer; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.btn-old { display: none; }
.ir-logo { display: none; flex: none; border-radius: 50%; }
.ir-logo img { width: 56px; height: 56px; }
@media (min-width: 640px) { .ir-logo { display: block; } }
.tool-icons { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.tool-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--brand-ink); cursor: pointer; }
.tool-btn:hover { background: var(--tint); color: var(--brand-ink); }
@media (max-width: 639px) {
  .header-top { gap: 10px 8px; }
  .brand { gap: 10px; }
  .brand-logo { width: auto; height: 50px; }
  .brand-gov { font-size: .7rem; }
  .brand-ministry, .brand-zone { font-size: .9rem; }
  .tool-btn { width: 36px; height: 36px; }
}

@media (min-width: 900px) {
  .header-top { flex-wrap: nowrap; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
  .brand { margin-right: 0; }
  .brand-logo { width: auto; height: 68px; }
  .ir-logo img { width: 66px; height: 66px; }
  .brand-gov { font-size: .85rem; }
  .brand-ministry, .brand-zone { font-size: 1.15rem; }
  .header-search { order: 0; flex: 0 1 320px; margin-left: auto; }
  .header-tools { flex-direction: column; align-items: flex-end; gap: 6px; }
  .btn-old { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1.5px solid var(--brand); border-radius: 6px; background: var(--tint); color: var(--brand-ink); font-size: .82rem; font-weight: 600; text-decoration: none; }
  .btn-old:hover { background: var(--brand); color: var(--on-brand); }
}

/* ---------- Main menu ---------- */
.main-nav { position: sticky; top: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(16, 31, 79, .07); }
.nav-bar { display: flex; align-items: center; min-height: 52px; position: relative; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--brand-ink); font-weight: 700; padding: 12px 4px; cursor: pointer; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: none; }
.nav-menu.is-open { display: block; position: absolute; left: -16px; right: -16px; top: 100%; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 16px 30px rgba(16, 31, 79, .18); max-height: calc(100vh - 110px); overflow-y: auto; padding: 8px 16px 16px; }
.nav-item + .nav-item { border-top: 1px solid var(--line); }
.nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 6px; padding: 13px 4px; border: 0; background: transparent; font-weight: 600; color: var(--brand-ink); text-decoration: none; cursor: pointer; text-align: left; }
.nav-link:hover { color: var(--brand-ink); }
.nav-link .ico { transition: transform .2s; }
.nav-link[aria-expanded="true"] .ico { transform: rotate(180deg); }
.sub-menu { list-style: none; margin: 0; padding: 0 0 10px 10px; display: none; }
.has-sub.is-open > .sub-menu { display: block; }
.sub-menu a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: 4px; font-size: .95rem; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--tint); color: var(--brand-ink); }
.sub-menu a[aria-current="page"] { font-weight: 700; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu, .nav-menu.is-open { display: flex; justify-content: space-between; width: 100%; position: static; box-shadow: none; border: 0; padding: 0; max-height: none; overflow: visible; }
  .nav-item { position: relative; }
  .nav-item + .nav-item { border-top: 0; }
  .nav-link { width: auto; padding: 13px 10px 11px; border-bottom: 3px solid transparent; }
  .nav-link.is-active { border-bottom-color: var(--brand); }
  .nav-link:hover { border-bottom-color: var(--line); }
  .nav-link.is-active:hover { border-bottom-color: var(--brand); }
  .sub-menu { position: absolute; left: 0; top: 100%; min-width: 260px; max-height: 72vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 0 0 6px 6px; box-shadow: 0 12px 28px rgba(16, 31, 79, .16); padding: 8px; z-index: 70; }
  .has-sub:hover > .sub-menu, .has-sub.is-open > .sub-menu { display: block; }
  .nav-item:last-child .sub-menu, .nav-item:nth-last-child(2) .sub-menu { left: auto; right: 0; }
}

/* ---------- Inner page banner + section sub-menu ---------- */
.page-banner { position: relative; overflow: hidden; background: linear-gradient(115deg, #142c74 0%, #1d45b4 55%, #2f63da 100%); color: #fff; padding: 28px 0 36px; }
.page-banner.with-subnav { padding-bottom: 72px; }
.page-banner::before, .page-banner::after { content: ""; position: absolute; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .05); pointer-events: none; }
.page-banner::before { width: 340px; height: 340px; right: -90px; top: -160px; }
.page-banner::after { width: 220px; height: 220px; right: 220px; bottom: -150px; }
.page-banner .container { position: relative; z-index: 1; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 10px; padding: 0; font-size: .9rem; color: #dfe7ff; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; opacity: .7; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-banner h1 { color: #fff; font-size: 1.7rem; margin: 0; }
@media (min-width: 900px) {
  .page-banner { padding: 36px 0 44px; }
  .page-banner.with-subnav { padding-bottom: 88px; }
  .page-banner h1 { font-size: 2.1rem; }
}
.subnav { background: var(--brand); border-radius: 8px; margin-top: -44px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.subnav ul { list-style: none; margin: 0; padding: 6px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) transparent; }
.subnav a { display: block; white-space: nowrap; padding: 10px 14px; color: #e6ecff; text-decoration: none; border-radius: 6px; font-size: .94rem; }
.subnav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.subnav a[aria-current="page"] { background: var(--surface); color: var(--brand-ink); font-weight: 700; }

.page-body { padding-top: 32px; padding-bottom: 16px; }
.page-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; margin: 40px 0 20px; font-size: .88rem; color: var(--muted); }
.page-meta b { color: var(--brand-ink); }

/* ---------- Content helpers ---------- */
.prose { max-width: 880px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose a[target="_blank"]::after, .ext-link::after {
  content: ""; display: inline-block; width: .72em; height: .72em; margin-left: .25em; vertical-align: baseline; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.lead { font-size: 1.08rem; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }
.mb-lg { margin-bottom: 32px !important; }
.block-title { font-size: 1.25rem; margin: 32px 0 14px; }
.block-title:first-child { margin-top: 0; }

.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 8px; border: 1px solid #efc56c; background: #fff8e5; color: #4a3500; margin-bottom: 24px; }
.callout .ico { color: #b7791f; width: 24px; height: 24px; margin-top: 1px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: inherit; }
.callout-info { border-color: #a9bcec; background: var(--tint); color: var(--ink); }
.callout-info .ico { color: var(--brand-ink); }
html.a11y-dark .callout { background: #1a1400; color: #ffe9a8; border-color: #806000; }
html.a11y-dark .callout-info { background: #0c1a33; color: #fff; border-color: #3c5a99; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0 0 32px; }
.fact { background: var(--tint); border-radius: 8px; padding: 16px; border-left: 4px solid var(--brand); }
.fact b { display: block; font-size: 1.2rem; color: var(--brand-ink); line-height: 1.3; }
.fact span { font-size: .88rem; color: var(--muted); }

.content-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .content-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.aside-box { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--surface-alt); }
.aside-box + .aside-box { margin-top: 20px; }
.aside-box h2 { font-size: 1.05rem; margin-bottom: 10px; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li + li { border-top: 1px solid var(--line); }
.aside-links a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.aside-links a:hover { color: var(--brand-ink); }
.aside-links .ico { color: var(--brand-ink); }

.empty-state { text-align: center; padding: 40px 16px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); margin-bottom: 24px; }
.empty-state .ico { width: 40px; height: 40px; color: var(--brand-ink); margin: 0 auto 8px; display: block; }
.empty-state p { margin: 0 0 .5em; }

/* ---------- Listing cards ---------- */
.list-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.list-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: var(--surface); width: 100%; max-width: 320px; color: var(--brand-ink); }
.list-search input { border: 0; background: transparent; font: inherit; padding: 10px 0; flex: 1; min-width: 0; color: var(--ink); }
.list-search input:focus { outline: none; }
.list-search:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.list-count { font-size: .9rem; color: var(--muted); }
.card-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doc-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(16, 31, 79, .06); transition: box-shadow .2s, border-color .2s; }
.doc-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.doc-card-ico { color: var(--brand-ink); display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--tint); border-radius: 8px; flex: none; }
.doc-card-body { flex: 1; min-width: 0; }
.doc-card-title { font-size: 1rem; margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.doc-card-desc { margin: .25em 0 0; font-size: .87rem; color: var(--muted); }
.doc-card-actions { display: flex; gap: 6px; flex: none; }
.btn-view { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 6px; background: var(--tint); color: var(--brand-ink); text-decoration: none; font-size: .85rem; font-weight: 600; }
.btn-view:hover { background: var(--brand); color: var(--on-brand); }
.btn-go { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 34px; border-radius: 6px; background: var(--tint); color: var(--brand-ink); }
.btn-go:hover { background: var(--brand); color: var(--on-brand); }
@media (max-width: 420px) { .btn-go { display: none; } }
[data-filter-item][hidden] { display: none !important; }
.no-results { display: none; }
.no-results.is-visible { display: block; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 20px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table.wide { min-width: 720px; }
.data-table caption { text-align: left; padding: 12px; font-weight: 700; color: var(--brand-ink); }
.data-table th { background: var(--brand); color: var(--on-brand); text-align: left; padding: 12px; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; vertical-align: bottom; }
.data-table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:nth-child(even) { background: var(--surface-alt); }
.data-table .nowrap { white-space: nowrap; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--brand-ink); white-space: nowrap; }

.filters { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-alt); }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .filters { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: var(--brand-ink); }
.field select, .field input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--surface); color: var(--ink); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; margin-bottom: 16px; }
.pager-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; }
.pager button[aria-current="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--surface); color: var(--ink); }

/* ---------- Tabs (shared) ---------- */
.tabs { display: flex; border: 1px solid var(--brand); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.tab { flex: 1; padding: 12px 10px; border: 0; background: var(--surface); color: var(--brand-ink); font-weight: 600; cursor: pointer; }
.tab + .tab { border-left: 1px solid var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); color: var(--on-brand); }
.tab:hover:not([aria-selected="true"]) { background: var(--tint); }
.tab-panel[hidden] { display: none; }

/* ==========================================================================
   Home page
   ========================================================================== */
.hero { position: relative; background: #0e1d4a; overflow: hidden; }
.hero-track { position: relative; height: 420px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 17, 48, .9) 0%, rgba(8, 17, 48, .55) 55%, rgba(8, 17, 48, .1) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; max-width: var(--container); margin: 0 auto; padding: 0 20px 64px; color: #fff; }
.hero-kicker { display: inline-block; width: fit-content; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .18); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.hero-title { color: #fff; font-size: 1.6rem; margin: 0 0 10px; max-width: 18em; }
.hero-text { font-size: .98rem; max-width: 34em; margin: 0 0 18px; color: #edf1ff; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 6px; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; }
.hero-arrow:hover { background: rgba(0, 0, 0, .8); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-controls { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 6px 8px 6px 12px; }
.hero-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hero-dot { width: 11px; height: 11px; border-radius: 3px; border: 0; background: #9fb0e0; cursor: pointer; padding: 0; transition: width .3s; }
.hero-dot[aria-current="true"] { background: #1e3578; width: 24px; }
.hero-pause { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #1e3578; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hero-pause .ico { width: 14px; height: 14px; }
@media (min-width: 768px) {
  .hero-track { height: clamp(380px, 34vw, 480px); }
  .hero-slide::after { background: linear-gradient(90deg, rgba(8, 17, 48, .86) 0%, rgba(8, 17, 48, .55) 42%, rgba(8, 17, 48, 0) 72%); }
  .hero-content { justify-content: center; padding: 0 80px 24px; }
  .hero-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
  .hero-text { font-size: 1.1rem; }
  .hero-arrow { display: flex; }
}

/* Vision strip */
.vision { background: var(--surface-alt); padding: 40px 0; }
.vision-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .vision-inner { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; } }
.vision-badge { width: 180px; height: 180px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; margin: 0 auto; box-shadow: var(--shadow); color: var(--brand-ink); border: 6px solid var(--tint); }
.vision-badge .ico { width: 76px; height: 76px; stroke-width: 1.4; }
.vision-quote { width: 36px; height: 36px; color: var(--brand-ink); margin-bottom: 6px; }
.vision h2 { font-size: 1.35rem; }
.pillars { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillars li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 8px; padding: 12px 14px; border-left: 4px solid var(--brand); }
.pillar-num { font-weight: 700; color: var(--brand-ink); font-size: 1.05rem; line-height: 1.5; }
.vision-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: .9rem; color: var(--muted); }
.vision-foot p { margin: 0; }

/* Generic home sections */
.section { padding: 48px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-head .ico { width: 40px; height: 40px; color: var(--brand-ink); stroke-width: 1.5; }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-head a { color: inherit; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

.quick-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0 40px; list-style: none; padding: 0; }
@media (min-width: 640px) { .quick-cards { grid-template-columns: repeat(3, 1fr); } }
.quick-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 12px; border: 1.5px solid var(--brand); border-radius: 6px; background: var(--surface); box-shadow: 0 4px 12px rgba(16, 31, 79, .10); color: var(--brand-ink); font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 31, 79, .16); color: var(--brand-ink); }
.quick-card .ico { width: 28px; height: 28px; }

.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; justify-items: center; list-style: none; margin: 0; padding: 0; }
.leader { text-align: center; text-decoration: none; color: var(--ink); display: block; }
.leader:hover .leader-name { text-decoration: underline; }
.leader-photo { width: 150px; height: 186px; border: 1px solid var(--line); border-bottom: 6px solid var(--brand); background: var(--tint); margin: 0 auto 12px; overflow: hidden; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.leader-name { font-weight: 700; color: var(--ink); margin: 0; }
.leader-role { font-size: .9rem; color: var(--muted); margin: 0; }

.split { display: grid; gap: 32px; }
.split-top { margin-top: 48px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.panel { background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); padding: 6px 16px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list.scroll { max-height: 312px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--brand) transparent; padding-right: 6px; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; gap: 12px; padding: 14px 8px; color: var(--ink); text-decoration: none; }
.link-list a:hover { color: var(--brand-ink); background: var(--tint); }
.link-list .lead-ico { width: 22px; height: 22px; color: var(--brand-ink); }
.link-list .chev { margin-left: auto; color: var(--brand-ink); }

.whats-new { background: var(--brand); color: var(--on-brand); border-radius: 6px; position: relative; overflow: hidden; }
.ticker { height: 336px; overflow: hidden; position: relative; }
.ticker-list { list-style: none; margin: 0; padding: 0 16px; animation: ticker 45s linear infinite; }
.whats-new:hover .ticker-list, .whats-new:focus-within .ticker-list, .whats-new.is-paused .ticker-list { animation-play-state: paused; }
@keyframes ticker { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.ticker-list li { border-bottom: 1px solid rgba(255, 255, 255, .28); }
.ticker-list a { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 4px; color: #fff; text-decoration: none; font-size: .93rem; }
.ticker-list a:hover { color: #fff; text-decoration: underline; }
.ticker-list .ico { flex: none; }
.ticker-toggle { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #1e3578; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.ticker-toggle .ico { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-y: auto; }
  .ticker-list { animation: none; }
  .ticker-list .is-clone { display: none; }
  .ticker-toggle { display: none; }
}

.recent-grid { display: grid; grid-template-columns: 1fr; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .recent-grid { grid-template-columns: 1fr 1fr; } }
.recent-card { display: block; height: 100%; min-height: 104px; padding: 14px 16px; border: 1px solid var(--brand); border-radius: 4px; background: var(--surface); text-decoration: none; color: var(--ink); transition: background .2s, box-shadow .2s; }
.recent-card:hover { box-shadow: var(--shadow); background: var(--tint); color: var(--ink); }
.recent-cat { display: block; font-weight: 700; color: var(--brand-ink); font-size: .95rem; margin-bottom: 4px; }
.recent-title { color: var(--muted); font-size: .92rem; }

.carousel { position: relative; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { scroll-snap-align: start; flex: 0 0 100%; list-style: none; }
.carousel-track { margin: 0; padding: 0; }
.persona { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-ink); font-weight: 700; padding: 8px; }
.persona img { width: 180px; height: 180px; border-radius: 50%; background: var(--tint); }
.persona:hover { color: var(--brand-ink); text-decoration: underline; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.carousel-btn { border: 0; background: transparent; color: var(--brand-ink); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.carousel-btn:hover { background: var(--tint); }
.carousel-dots { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.carousel-dot { width: 10px; height: 10px; border-radius: 2px; border: 0; padding: 0; background: #c3cdec; cursor: pointer; }
.carousel-dot[aria-current="true"] { background: var(--brand); }

.social-section { background: var(--brand); color: var(--on-brand); padding: 48px 0; }
.social-section .section-head .ico, .social-section .section-head h2 { color: #fff; }
.social-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .social-grid { grid-template-columns: 1fr 1fr; } }
.social-card { background: var(--surface); color: var(--ink); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; min-height: 250px; }
.social-card-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 700; border-bottom: 1px solid var(--line); color: var(--brand-ink); margin: 0; font-size: 1rem; }
.social-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; flex: 1; }
.social-handle { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0; }
.social-card-body p { margin: 0; color: var(--muted); }
.social-card-body .btn { margin-top: auto; }
.yt-facade { position: relative; flex: 1; min-height: 230px; border: 0; padding: 20px; cursor: pointer; background: linear-gradient(135deg, #0d1b45, #2a4fb3); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; font-weight: 600; }
.yt-facade:hover .yt-play { transform: scale(1.08); }
.yt-play { width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #0d1b45; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.yt-play .ico { width: 28px; height: 28px; margin-left: 4px; }
.yt-facade small { font-weight: 400; opacity: .85; }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; flex: 1; }

.campaigns { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .campaigns { grid-template-columns: repeat(3, 1fr); } }
.campaign { display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; height: 100%; padding: 20px; border-radius: 8px; color: #fff; text-decoration: none; position: relative; overflow: hidden; }
.campaign:hover { color: #fff; }
.campaign:hover strong { text-decoration: underline; }
.campaign::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .09); right: -50px; top: -60px; }
.campaign small { opacity: .9; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: .72rem; position: relative; }
.campaign strong { font-size: 1.15rem; line-height: 1.3; margin: 4px 0; position: relative; }
.campaign span { font-size: .9rem; opacity: .92; position: relative; }
.campaign-a { background: linear-gradient(135deg, #0b1d4f, #2353c9); }
.campaign-b { background: linear-gradient(135deg, #3b1b6e, #b4467f); }
.campaign-c { background: linear-gradient(135deg, #0e4a33, #2a9259); }
html.a11y-dark .campaign { background: #111; border: 1px solid #666; }

.partners { display: flex; align-items: center; gap: 8px; margin-top: 32px; }
.partners-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; scroll-snap-type: x mandatory; padding: 4px; margin: 0; list-style: none; }
.partners-track::-webkit-scrollbar { display: none; }
.partners-track li { flex: 0 0 auto; scroll-snap-align: start; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 176px; height: 84px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-decoration: none; color: var(--brand-ink); font-weight: 700; text-align: center; padding: 8px; line-height: 1.2; }
.partner:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--brand-ink); }
.partner small { font-weight: 500; color: var(--muted); font-size: .72rem; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: #dfe6ff; }
.footer-top { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 24px; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; max-width: 460px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a::before { content: "\203A"; margin-right: 8px; font-weight: 700; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-follow { display: flex; flex-direction: column; }
@media (min-width: 768px) { .footer-follow { align-items: flex-end; text-align: right; } }
.social-links { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 10px; }
.social-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.social-links a:hover { background: #fff; color: #12235a; }
.gov-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.gov-badge { display: flex; flex-direction: column; justify-content: center; background: #fff; color: #12235a; border-radius: 4px; padding: 8px 14px; min-width: 130px; text-decoration: none; line-height: 1.25; text-align: left; }
.gov-badge:hover { color: #12235a; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.gov-badge strong { font-size: 1rem; }
.gov-badge span { font-size: .74rem; color: #44506a; }
html.a11y-dark .gov-badge { background: #111; color: #fff; border: 1px solid #666; }
html.a11y-dark .gov-badge span { color: #ddd; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 16px; padding-bottom: 28px; font-size: .88rem; }
.footer-updated { text-align: center; margin-bottom: 10px; }
@media (min-width: 768px) { .footer-updated { text-align: right; } }
.footer-note { max-width: 920px; margin: 0 auto; color: #c9d3f5; text-align: center; }
html.a11y-dark .footer-note { color: #ddd; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--brand-600); }
html.a11y-dark .to-top { border: 1px solid #888; }

/* ---------- Accessibility panel ---------- */
.a11y-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 100%); background: var(--surface); color: var(--ink); z-index: 200; box-shadow: -10px 0 30px rgba(0, 0, 0, .25); padding: 20px; overflow-y: auto; border-left: 1px solid var(--line); }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 4px; }
.a11y-head h2 { font-size: 1.1rem; margin: 0; }
.a11y-close { border: 0; background: transparent; color: var(--ink); cursor: pointer; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.a11y-close:hover { background: var(--tint); }
.a11y-label { font-weight: 700; margin: 16px 0 8px; color: var(--brand-ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.a11y-size { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a11y-size button, .a11y-grid button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; padding: 12px 8px; cursor: pointer; }
.a11y-size button { font-weight: 700; font-size: 1.05rem; }
.a11y-size button:hover, .a11y-grid button:hover { border-color: var(--brand); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .88rem; }
.a11y-grid button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
html.a11y-dark .a11y-grid button[aria-pressed="true"] { background: #ffe066; color: #000; }
.a11y-reset { margin-top: 18px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 6px; border: 1.5px solid var(--brand); background: transparent; color: var(--brand-ink); font-weight: 600; cursor: pointer; }
.a11y-reset:hover { background: var(--tint); }

html.a11y-sat { filter: grayscale(1); }
html.a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert.a11y-sat { filter: invert(1) hue-rotate(180deg) grayscale(1); }
html.a11y-invert img:not(.brand-logo), html.a11y-invert iframe { filter: invert(1) hue-rotate(180deg); }
html.a11y-links a { background: #ffeb3b !important; color: #000 !important; text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-noimg img, html.a11y-noimg iframe { visibility: hidden; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6 1.5L10 19z' fill='black' stroke='white' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 8 5, auto !important; }
html.a11y-dark .page-banner { background: #111; border-bottom: 1px solid #444; }
html.a11y-dark .subnav { border: 1px solid #555; }
html.a11y-dark .hero-controls { background: rgba(0, 0, 0, .85); }
html.a11y-dark .hero-dot { background: #777; }
html.a11y-dark .hero-dot[aria-current="true"] { background: #ffe066; }

/* ---------- Org chart ---------- */
.org-chart { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 8px 0 32px; }
.org-node { background: var(--brand); color: var(--on-brand); border-radius: 8px; padding: 12px 18px; text-align: center; font-weight: 700; min-width: 220px; box-shadow: var(--shadow); }
.org-node small { display: block; font-weight: 400; opacity: .85; font-size: .82rem; }
.org-link { width: 2px; height: 26px; background: var(--brand); }
.org-row { display: grid; gap: 12px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding-top: 18px; border-top: 2px solid var(--brand); position: relative; }
.org-row .org-node { background: var(--tint); color: var(--brand-ink); min-width: 0; font-size: .9rem; box-shadow: none; border: 1px solid var(--line); }
.org-caption { font-size: .85rem; color: var(--muted); text-align: center; margin: 6px 0 0; }

/* ---------- Zone schematic ---------- */
.zone-strip { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 16px; margin-bottom: 24px; }
.zone-strip svg { min-width: 760px; width: 100%; height: auto; display: block; }
.zone-strip .zs-line { stroke: var(--brand); stroke-width: 6; stroke-linecap: round; }
.zone-strip .zs-stop { fill: var(--surface); stroke: var(--brand); stroke-width: 4; }
.zone-strip .zs-hq { fill: var(--focus); stroke: var(--brand); stroke-width: 4; }
.zone-strip .zs-name { fill: var(--ink); font: 700 14px var(--font); }
.zone-strip .zs-sub { fill: var(--muted); font: 400 12px var(--font); }

/* ---------- Sitemap / search ---------- */
.sitemap-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sitemap-col h2 { font-size: 1.1rem; border-bottom: 2px solid var(--brand); padding-bottom: 6px; }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; }
.sitemap-col li { padding: 5px 0; }
.search-form-lg { display: flex; gap: 8px; margin-bottom: 20px; max-width: 680px; }
.search-form-lg input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font: inherit; color: var(--ink); background: var(--surface); }
.results { list-style: none; margin: 0; padding: 0; max-width: 880px; }
.result { padding: 16px 0; border-bottom: 1px solid var(--line); }
.result a { font-size: 1.1rem; font-weight: 600; }
.result-section { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.result p { margin: .3em 0 0; color: var(--muted); font-size: .93rem; }
mark { background: #ffe58a; color: #000; padding: 0 2px; border-radius: 2px; }

/* ---------- Misc ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 56px; background: var(--surface-alt); border-radius: 8px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; margin: 0 0 28px; padding: 0; }
.contact-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--surface); }
.contact-card .ico { width: 28px; height: 28px; color: var(--brand-ink); margin-bottom: 6px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.contact-card .big { font-size: 1.6rem; font-weight: 700; color: var(--brand-ink); line-height: 1.2; }
.not-found { text-align: center; padding: 24px 0 8px; }
.not-found .code { font-size: 4.5rem; font-weight: 700; color: var(--brand-ink); line-height: 1; margin: 0; }

/* ---------- Recruitment results & status check ---------- */
.notice-date { font-size: .85rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin: 20px 0 2px; }
.notice-date:first-child { margin-top: 0; }
.notice-title { color: #c62828; font-size: 1.3rem; line-height: 1.3; margin: 0 0 14px; }
html.a11y-dark .notice-title { color: #ff8a8a; }

.status-wrap { max-width: 760px; }
.status-lead { font-size: 1.25rem; margin: 0 0 16px; }
.status-form { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.status-fields { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .status-fields { grid-template-columns: repeat(3, 1fr); } }
.status-form .field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--brand-ink); }
.status-form .field input, .status-form .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--surface); color: var(--ink); }
.status-form .field input:focus, .status-form .field select:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.status-msg { margin: 16px 0 0; padding: 12px 14px; border-radius: 6px; font-weight: 500; }
.status-msg-info { background: var(--tint); color: var(--brand-ink); }
.status-msg-warn { background: #fff4d6; color: #7a5600; border: 1px solid #efc56c; }
.status-msg-error { background: #fdecea; color: #b3261e; border: 1px solid #f3b4ae; }
html.a11y-dark .status-msg-warn { background: #3a2c00; color: #ffe08a; border-color: #806000; }
html.a11y-dark .status-msg-error { background: #3a1210; color: #ffb3ab; border-color: #7a2a24; }

.status-result { margin-bottom: 24px; }
.result-table { width: 100%; max-width: 640px; }
.result-table caption { caption-side: top; text-align: left; font-weight: 700; color: var(--brand-ink); padding: 0 0 10px; }
.result-table th, .result-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.result-table th[scope="row"] { width: 42%; background: var(--surface-alt); color: var(--ink); font-weight: 600; }
.result-table tbody tr:nth-child(even) { background: var(--surface); }
.status-value-danger { color: #c62828; font-weight: 700; }
html.a11y-dark .status-value-danger { color: #ff8a8a; }

@media print {
  .status-form, .status-actions, .status-msg, .status-lead { display: none !important; }
  .result-table { max-width: none; }
}

@media print {
  .main-nav, .header-search, .header-tools, .subnav, .to-top, .a11y-panel, .hero-arrow, .hero-controls, .site-footer .footer-top { display: none !important; }
  .page-banner { background: none; color: #000; padding: 0; }
  .page-banner h1, .breadcrumb, .breadcrumb a { color: #000; }
  a { color: #000; }
}
