/* ==========================================================================
   Judiciary of Sierra Leone — Official Website
   Design system. Framework-free. Government-grade, restrained, accessible.
   ========================================================================== */

/* ----------  Design tokens  ---------- */
:root {
  /* Brand (derived from the Judiciary seal & national coat of arms) */
  --navy-900: #06142e;
  --navy-800: #0a2148;
  --navy-700: #0d2c5e;   /* primary */
  --navy-600: #143a79;
  --navy-500: #1d4b96;
  --gold-600: #9c7415;
  --gold-500: #b8860b;   /* accent */
  --gold-400: #c9a227;
  --green-700: #136b33;
  --green-600: #1a7a3c;  /* national green */
  --blue-600: #0a66c2;

  /* Neutrals */
  --ink: #15181d;
  --text: #23282f;
  --muted: #58616e;
  --line: #dde2e9;
  --line-strong: #c4ccd6;
  --bg: #ffffff;
  --bg-subtle: #f4f6f9;
  --bg-sunken: #eef1f6;
  --bg-navy-tint: #f0f3f9;

  /* Status */
  --danger: #a4232b;

  /* Typography */
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --maxw-prose: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(10, 33, 72, 0.08), 0 1px 3px rgba(10, 33, 72, 0.06);
  --shadow-md: 0 2px 6px rgba(10, 33, 72, 0.10), 0 8px 24px rgba(10, 33, 72, 0.08);

  --header-h: 112px;
}

/* ----------  Reset & base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy-800); line-height: 1.2; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--gold-400); color: var(--navy-900); }

/* ----------  Utilities  ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.prose { max-width: var(--maxw-prose); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 8px; color: #fff; }
.text-muted { color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--text); }

/* ----------  Top utility bar  ---------- */
.utilitybar { background: var(--navy-900); color: #cdd6e6; font-size: .83rem; }
.utilitybar a { color: #e7ecf5; text-decoration: none; }
.utilitybar a:hover { color: #fff; text-decoration: underline; }
.utilitybar .container { display: flex; align-items: center; gap: 18px; min-height: 38px; flex-wrap: wrap; }
.utilitybar .ub-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.utilitybar .ub-spacer { flex: 1 1 auto; }
.utilitybar .ub-links { display: flex; gap: 16px; align-items: center; }
.utilitybar .ub-ico { margin-right: 6px; opacity: .85; }

/* ----------  Masthead  ---------- */
.masthead { background: var(--bg); border-bottom: 3px solid var(--gold-500); }
.masthead .container { display: flex; align-items: center; gap: 18px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; flex: 1 1 auto; min-width: 0; }
.brand img { width: 72px; height: 72px; flex: 0 0 auto; }
.brand .brand-text { min-width: 0; }
.brand .brand-title { display: block; font-family: var(--font-serif); font-weight: 600; color: var(--navy-800); font-size: clamp(1.15rem, .9rem + 1vw, 1.6rem); line-height: 1.12; letter-spacing: .01em; }
.brand .brand-sub { display: inline; color: var(--gold-600); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand .brand-motto { display: inline; color: var(--muted); font-size: .78rem; font-style: italic; }
.brand .brand-sub::after { content: "·"; margin: 0 6px; color: var(--line-strong); }
.brand .brand-line { display: block; margin-top: 4px; white-space: nowrap; }
@media (max-width: 620px) { .brand .brand-motto { display: none; } .brand .brand-sub::after { content: none; } }

.masthead-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.btn-webmail {
  display: inline-flex; align-items: center; gap: 8px; background: var(--green-600); color: #fff;
  padding: 9px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.btn-webmail:hover { background: var(--green-700); color: #fff; }

/* Search in masthead */
.site-search { display: flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: #fff; }
.site-search input { border: 0; padding: 9px 12px; font: inherit; font-size: .92rem; width: 190px; max-width: 42vw; }
.site-search input:focus { outline: none; }
.site-search button { border: 0; background: var(--navy-700); color: #fff; padding: 0 14px; cursor: pointer; }
.site-search button:hover { background: var(--navy-800); }

/* ----------  Primary navigation  ---------- */
.primary-nav { background: var(--navy-700); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.primary-nav .container { display: flex; align-items: stretch; }
.nav-toggle { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > span.menu-top {
  display: flex; align-items: center; gap: 6px; color: #eaf0fb; text-decoration: none;
  padding: 14px 16px; font-weight: 600; font-size: .95rem; cursor: pointer; border: 0; background: none; font-family: inherit;
}
.menu > li > a:hover, .menu > li:hover > a, .menu > li:focus-within > a,
.menu > li:hover > .menu-top, .menu > li:focus-within > .menu-top { background: var(--navy-800); color: #fff; }
.menu > li[aria-current="page"] > a, .menu > li.is-active > a { box-shadow: inset 0 -4px 0 var(--gold-500); color: #fff; }
.menu .caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .8; }

/* Dropdowns */
.submenu {
  list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-500);
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .14s ease, transform .14s ease; z-index: 120;
}
.menu > li:hover > .submenu, .menu > li:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li { position: relative; }
.submenu a { display: block; padding: 9px 18px; color: var(--text); text-decoration: none; font-size: .92rem; }
.submenu a:hover { background: var(--bg-navy-tint); color: var(--navy-800); }
.submenu .submenu { top: -9px; left: 100%; }
.submenu .has-children > a::after { content: "›"; float: right; color: var(--muted); }

/* ----------  Breadcrumb  ---------- */
.breadcrumb { background: var(--bg-subtle); border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; color: var(--muted); }
.breadcrumb li::after { content: "/"; margin-left: 6px; color: var(--line-strong); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--navy-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current] { color: var(--text); font-weight: 600; }

/* ----------  Page layout  ---------- */
main { display: block; }
.page { padding-block: clamp(28px, 4vw, 52px); }
.page-header { margin-bottom: 1.5rem; }
.page-header .eyebrow { color: var(--gold-600); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: .4rem; }
.layout-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 8px); }
.sidebar nav { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.sidebar .sidebar-title { background: var(--navy-700); color: #fff; font-family: var(--font-serif); font-size: 1rem; padding: 12px 16px; margin: 0; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li + li { border-top: 1px solid var(--line); }
.sidebar a { display: block; padding: 10px 16px; text-decoration: none; color: var(--text); font-size: .93rem; }
.sidebar a:hover { background: var(--bg-navy-tint); }
.sidebar a[aria-current="page"] { background: var(--bg-navy-tint); color: var(--navy-800); font-weight: 700; box-shadow: inset 4px 0 0 var(--gold-500); }

/* ----------  Rich text content  ---------- */
.content-body { font-size: 1.07rem; }
.content-body h2 { margin-top: 2rem; padding-bottom: .3rem; border-bottom: 2px solid var(--bg-sunken); }
.content-body h3 { margin-top: 1.6rem; color: var(--navy-700); }
.content-body ul, .content-body ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.content-body li { margin-bottom: .4rem; }
.content-body img { border-radius: var(--radius); margin: 1.2rem 0; box-shadow: var(--shadow-sm); }
.content-body figure { margin: 1.4rem 0; }
.content-body figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.content-body a { color: var(--blue-600); }
.content-body blockquote {
  margin: 1.4rem 0; padding: .6rem 1.2rem; border-left: 4px solid var(--gold-500);
  background: var(--bg-subtle); color: var(--text); font-style: italic;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.content-body table, table.data { min-width: 560px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th, table tr:first-child td strong { background: var(--navy-700); color: #fff; font-family: var(--font-sans); font-weight: 700; }
thead th { color: #fff; }
tbody tr:nth-child(even) { background: var(--bg-subtle); }
caption { caption-side: top; text-align: left; font-weight: 600; color: var(--navy-800); padding: 10px 0; }

/* ----------  Buttons & badges  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; font-size: .95rem; font-family: inherit;
}
.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); }
.btn-outline { background: #fff; color: var(--navy-700); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy-600); background: var(--bg-navy-tint); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; background: var(--bg-sunken); color: var(--navy-700);
}
.badge-gold { background: #f6ecd2; color: var(--gold-600); }
.badge-green { background: #e2f3e8; color: var(--green-700); }
.badge-navy { background: var(--navy-700); color: #fff; }

/* ----------  Hero (home)  ---------- */
.hero { background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(184,134,11,.22), transparent 62%); pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { color: #d7e0f0; font-size: 1.15rem; max-width: 52ch; }
.hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-seal { justify-self: center; }
.hero-seal img { width: min(270px, 60vw); filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 12px 34px rgba(0,0,0,.45)); }

/* Quick links strip */
.quicklinks { background: var(--bg-subtle); border-bottom: 1px solid var(--line); }
.quicklinks .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.quicklinks a {
  background: var(--bg-subtle); padding: 22px 20px; text-decoration: none; color: var(--navy-800);
  display: flex; flex-direction: column; gap: 6px; transition: background .12s ease;
}
.quicklinks a:hover { background: #fff; }
.quicklinks .ql-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; }
.quicklinks .ql-desc { color: var(--muted); font-size: .88rem; }
.quicklinks .ql-ico { width: 30px; height: 30px; color: var(--gold-600); }

/* ----------  Section headings  ---------- */
.section { padding-block: clamp(32px, 5vw, 60px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 1.6rem; border-bottom: 2px solid var(--bg-sunken); padding-bottom: .6rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .more { font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--navy-600); }
.section-head .more:hover { text-decoration: underline; }

/* ----------  Cards / news  ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .14s ease, transform .14s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .card-media { aspect-ratio: 16 / 10; background: var(--navy-700); overflow: hidden; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card .card-media.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); }
.card .card-media.placeholder img { width: 64px; height: 64px; object-fit: contain; opacity: .9; }
.card .card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.card .card-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.card .card-title { font-family: var(--font-serif); font-size: 1.14rem; margin: 0; line-height: 1.3; }
.card .card-title a { color: var(--navy-800); text-decoration: none; }
.card .card-title a:hover { color: var(--navy-600); text-decoration: underline; }
.card .card-excerpt { color: var(--text); font-size: .94rem; margin: 0; }
.card .card-foot { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .9rem; color: var(--navy-600); }

/* ----------  Document / judgement list  ---------- */
.doc-controls { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; margin-bottom: 20px; align-items: center; }
.doc-search { display: flex; border: 1.5px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: #fff; }
.doc-search input { border: 0; padding: 11px 14px; font: inherit; width: 100%; }
.doc-search input:focus { outline: none; }
.doc-search .ico { display: grid; place-items: center; padding: 0 14px; color: var(--muted); }
.doc-filter select { padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); font: inherit; background: #fff; color: var(--text); }
.doc-count { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }

.doc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.doc-list li { border-top: 1px solid var(--line); }
.doc-list li:first-child { border-top: 0; }
.doc-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-decoration: none; color: inherit; background: #fff; transition: background .12s ease; }
.doc-item:hover { background: var(--bg-navy-tint); }
.doc-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--radius); display: grid; place-items: center; background: #fae9e7; color: var(--danger); font-weight: 800; font-size: .72rem; }
.doc-ico.doc { background: #e5edfa; color: var(--navy-600); }
.doc-main { flex: 1 1 auto; min-width: 0; }
.doc-title { font-weight: 600; color: var(--navy-800); margin: 0 0 3px; line-height: 1.35; }
.doc-meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 14px; }
.doc-dl { flex: 0 0 auto; color: var(--navy-600); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; }
.no-results { padding: 40px; text-align: center; color: var(--muted); }

/* ----------  Gallery  ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 0; background: var(--bg-sunken); border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(6,20,46,.92); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #dfe6f2; font-size: .9rem; padding: 0 60px; }

/* ----------  Article (single post)  ---------- */
.article-hero img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 1.5rem; }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; align-items: center; }
.article-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ----------  Callout / notice  ---------- */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--navy-600); background: var(--bg-subtle); padding: 16px 20px; border-radius: var(--radius); margin: 1.4rem 0; }
.callout.info { border-left-color: var(--blue-600); }
.callout.gold { border-left-color: var(--gold-500); }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Definition cards (values/mission/vision) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 1.5rem 0; }
.pillar { border: 1px solid var(--line); border-top: 4px solid var(--gold-500); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.pillar h3 { margin-top: 0; color: var(--navy-700); }

/* Profile / officer cards */
.officer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.officer { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; background: #fff; }
.officer .role { color: var(--gold-600); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.officer .name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy-800); margin: 4px 0; }

/* Judges list */
.judges-list { list-style: none; margin: 1rem 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.judges-list li { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.judges-list li:first-child { border-top: 0; }
.judges-list li:nth-child(even) { background: var(--bg-subtle); }
.judges-list .chief { background: var(--bg-navy-tint) !important; }
.judges-list .chief .j-name { font-weight: 700; }
.judges-list .j-role { color: var(--gold-600); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

/* ----------  Pagination  ---------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
  min-width: 42px; text-align: center; padding: 9px 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); text-decoration: none; color: var(--navy-700); font-weight: 600; background: #fff;
}
.pagination a:hover { background: var(--bg-navy-tint); }
.pagination .current { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.pagination .disabled { color: var(--line-strong); background: var(--bg-subtle); }

/* ----------  Footer  ---------- */
.site-footer { background: var(--navy-900); color: #c6d0e2; margin-top: 60px; }
.site-footer a { color: #dce4f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-block: 48px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 76px; height: auto; }
.footer-brand .f-title { font-family: var(--font-serif); color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.footer-brand p { font-size: .9rem; color: #aeb9cd; }
.footer-col h3 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: .92rem; }
.footer-contact li { display: flex; gap: 8px; margin-bottom: 10px; font-size: .9rem; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #9fabc2; }
.footer-bottom .coat { display: flex; align-items: center; gap: 10px; }
.footer-bottom .coat img { width: 30px; height: auto; }

/* ----------  Responsive  ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-seal { display: none; }
  .quicklinks .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar nav { margin-bottom: 1.5rem; }
  :root { --header-h: 64px; }

  /* Mobile nav */
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff;
    font: inherit; font-weight: 600; padding: 14px 16px; cursor: pointer; width: 100%;
  }
  .nav-toggle .bars { width: 22px; height: 2px; background: #fff; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; }
  .nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }
  .primary-nav .container { flex-direction: column; align-items: stretch; }
  .menu { flex-direction: column; display: none; border-top: 1px solid rgba(255,255,255,.12); }
  .menu.open { display: flex; }
  .menu > li { border-top: 1px solid rgba(255,255,255,.08); }
  .menu > li > a, .menu > li > .menu-top { padding: 13px 16px; width: 100%; justify-content: space-between; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    border-top: 0; background: var(--navy-800); display: none; min-width: 0; padding: 0;
  }
  .submenu a { color: #dbe4f5; padding-left: 32px; }
  .submenu a:hover { background: var(--navy-600); color: #fff; }
  .submenu.open { display: block; }
  .submenu .submenu { left: 0; top: 0; }
  .submenu .submenu a { padding-left: 46px; }
}
@media (max-width: 620px) {
  .quicklinks .grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .doc-controls { grid-template-columns: 1fr; }
  .masthead .container { flex-wrap: wrap; }
  .masthead-actions { width: 100%; justify-content: space-between; }
  .site-search input { width: 100%; max-width: none; flex: 1; }
  .article-footer { flex-direction: column; }
}

/* ----------  Print  ---------- */
@media print {
  .utilitybar, .primary-nav, .masthead-actions, .site-footer, .breadcrumb, .doc-controls, .pagination { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
