/* ФСБ / Россия Онлайн — editorial information portal */

:root {
  color-scheme: dark;
  --ink: #07101c;
  --ink-soft: #0d1826;
  --ink-panel: #101d2c;
  --ink-raised: #152334;
  --cream: #eee8dc;
  --white: #f8f5ef;
  --muted: #9ca6b4;
  --gold: #b5a078;
  --gold-light: #d0bd95;
  --line: rgba(218, 225, 233, .13);
  --line-strong: rgba(218, 225, 233, .23);
  --red: #a44945;
  --radius: 3px;
  --header-height: 92px;
  --container: 1360px;
  --font: 'Manrope', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--font); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { border-radius: 0; }
img { display: block; max-width: 100%; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 650; line-height: 1.15; }
ul, ol { margin: 0; padding-left: 1.25rem; }
::selection { color: var(--ink); background: var(--gold-light); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only, .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; }
.print-only { display: none; }
.container { width: min(var(--container), 100% - 96px); margin-inline: auto; }
main { min-height: 60vh; }
.site-header { position: relative; z-index: 30; height: var(--header-height); border-bottom: 1px solid var(--line); background: var(--ink); }
.header-inner { width: min(1440px, 100% - 72px); height: 100%; margin: auto; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 15px; }
.brand-mark { width: 48px; height: 56px; color: var(--gold); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .055em; line-height: 1.1; }
.brand-sub { font-size: 9px; letter-spacing: .19em; color: var(--gold); font-weight: 650; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; margin-left: auto; gap: 27px; height: 100%; }
.nav-link { position: relative; display: flex; align-items: center; height: 100%; color: #b7bec7; font-size: 12px; font-weight: 600; white-space: nowrap; transition: color .2s ease; }
.nav-link::after { position: absolute; content: ''; height: 2px; inset: auto 0 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after { transform: scaleX(1); }
.header-search { padding: 12px; border: 1px solid var(--line); background: transparent; color: var(--gold-light); display: inline-flex; gap: 10px; align-items: center; flex-shrink: 0; transition: border-color .2s, background .2s; }
.header-search:hover { border-color: var(--gold); background: var(--ink-soft); }
.header-search svg { width: 18px; height: 18px; }
.header-search span { font-size: 11px; }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; padding: 12px; }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-menu { position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--ink-soft); border-bottom: 1px solid var(--gold); padding: 15px 24px 24px; box-shadow: 0 20px 40px #0005; }
.mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mobile-menu a.active { color: var(--gold-light); }

/* The image is the lead; the left shade keeps the headline quiet and readable. */
.hero { position: relative; min-height: 650px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img, img.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(4,12,22,.97) 0%, rgba(4,12,22,.86) 23%, rgba(4,12,22,.42) 53%, rgba(4,12,22,.08) 80%), linear-gradient(0deg, rgba(7,16,28,.92), transparent 35%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: inset 0 0 120px #0002; }
.hero-inner { width: min(var(--container), 100% - 96px); margin: auto; padding: 73px 0 85px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 12px; color: var(--gold-light); font-size: 10px; font-weight: 700; letter-spacing: .21em; text-transform: uppercase; }
.eyebrow::before, .section-kicker::before { content: ''; display: block; width: 28px; height: 1px; background: currentColor; }
.hero h1 { max-width: 830px; margin-top: 28px; font-size: clamp(54px, 6.4vw, 96px); line-height: 1.035; letter-spacing: -.055em; font-weight: 600; color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-copy { max-width: 445px; margin-top: 27px; font-size: 15px; line-height: 1.8; color: #b9c1c9; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 33px; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 24px; padding: 14px 24px; font-size: 12px; font-weight: 700; line-height: 1.4; border: 1px solid var(--line-strong); background: transparent; transition: background .2s, border-color .2s, transform .2s; }
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--gold); border-color: var(--gold); color: #101722; }
.button.primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }
.button.secondary { color: var(--white); border-color: #d8d7d344; background: #07101c42; }
.button.secondary:hover { background: #07101cb0; border-color: var(--gold); }
.button.small { padding: 10px 16px; min-height: 40px; font-size: 11px; }
.button:disabled { opacity: .45; cursor: default; transform: none; }
.hero-bottom { width: min(var(--container), 100% - 96px); margin-inline: auto; border-top: 1px solid #e7e4dc2b; padding: 20px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.hero-index { display: flex; align-items: center; gap: 20px; font-size: 10px; letter-spacing: .16em; color: #c5cbd2; text-transform: uppercase; }
.hero-index strong { font-size: 22px; color: var(--gold-light); letter-spacing: -.02em; font-weight: 500; }
.hero-caption { font-size: 10px; letter-spacing: .1em; color: #c5cbd2; text-align: right; }
.hero-caption span { color: var(--gold); }
.section { padding-block: 82px; }
.section + .section { padding-top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 32px; }
.section-heading > div { max-width: 750px; }
.section-title { font-size: clamp(28px, 3.1vw, 43px); line-height: 1.2; letter-spacing: -.04em; font-weight: 600; }
.section-kicker { margin-bottom: 15px; font-size: 9px; }
.section-intro { max-width: 620px; margin-top: 17px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.text-link { display: inline-flex; align-items: center; gap: 15px; color: var(--gold-light); font-size: 12px; font-weight: 600; padding-block: 6px; white-space: nowrap; }
.text-link svg, .arrow { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg, .text-link:hover .arrow { transform: translateX(4px); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.quick-card { padding: 27px 28px 28px; position: relative; min-height: 192px; display: flex; flex-direction: column; background: var(--ink-soft); transition: background .25s; }
.quick-card + .quick-card { border-left: 1px solid var(--line); }
.quick-card:hover { background: #142234; }
.quick-card::after { content: ''; position: absolute; height: 2px; background: var(--gold); bottom: -1px; left: 27px; right: 27px; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.quick-card:hover::after { transform: scaleX(1); }
.quick-number { font-size: 10px; font-weight: 500; color: #737f90; letter-spacing: .15em; }
.quick-icon { position: absolute; top: 27px; right: 27px; color: var(--gold); }
.quick-icon svg { width: 23px; height: 23px; }
.quick-title { margin-top: 26px; font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.quick-desc { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 240px; }
.dept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dept-card { display: flex; flex-direction: column; background: var(--ink-soft); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, transform .25s; }
.dept-card:hover { border-color: #b5a07870; transform: translateY(-3px); }
.dept-cover { position: relative; height: 216px; overflow: hidden; background: #172435; }
.dept-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: transform .65s, filter .65s; }
.dept-card:hover .dept-cover img { transform: scale(1.045); filter: saturate(.95); }
.dept-cover::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, #0d1826b8, transparent); pointer-events: none; }
.dept-cover .badge { position: absolute; top: 18px; left: 20px; z-index: 2; background: #07101cbf; backdrop-filter: blur(6px); }
.dept-body { padding: 25px 25px 22px; flex: 1; display: flex; flex-direction: column; }
.dept-code { color: var(--gold); font-size: 10px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; margin-bottom: 11px; }
.dept-name { font-size: 24px; line-height: 1.25; letter-spacing: -.035em; font-weight: 600; }
.dept-description { font-size: 12px; line-height: 1.85; color: var(--muted); margin-top: 14px; margin-bottom: 23px; }
.dept-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 17px; margin-top: auto; color: var(--gold-light); font-size: 11px; }
.dept-footer svg { width: 18px; height: 18px; }
.badge { display: inline-flex; gap: 7px; align-items: center; padding: 5px 9px; color: var(--gold-light); border: 1px solid #b5a0784a; font-size: 9px; font-weight: 600; letter-spacing: .07em; line-height: 1.4; }
.tag { display: inline-flex; padding: 5px 10px; border: 1px solid var(--line); color: #b8c0ca; font-size: 10px; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.feature-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--ink-soft); overflow: hidden; }
.feature-panel > img, .feature-panel .feature-image { width: 100%; height: 100%; min-height: 370px; object-fit: cover; }
.feature-content, .feature-panel > div:not(.feature-image) { padding: 50px; }
.feature-panel h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.04em; margin-bottom: 23px; }
.feature-panel p { color: var(--muted); margin-block: 18px 28px; max-width: 490px; font-size: 14px; }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin-block: 38px; }
.stat { padding: 25px 28px; display: flex; align-items: center; gap: 19px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { font-size: 37px; font-weight: 500; letter-spacing: -.04em; color: var(--gold-light); line-height: 1; }
.stat-label { font-size: 11px; line-height: 1.6; color: var(--muted); }

/* Interior pages */
.page-heading { padding-block: 32px 48px; border-bottom: 1px solid var(--line); margin-bottom: 42px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: #7e8b9b; font-size: 10px; margin-bottom: 35px; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span:last-child { color: #c4cbd3; }
.page-title { font-size: clamp(35px, 4.3vw, 62px); line-height: 1.1; letter-spacing: -.05em; font-weight: 550; margin-top: 15px; max-width: 980px; }
.page-description { color: var(--muted); max-width: 750px; margin-top: 22px; line-height: 1.85; font-size: 14px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 23px; font-size: 11px; color: var(--gold); }
.content-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 38px; align-items: start; margin-bottom: 70px; }
.sidebar { min-width: 0; position: sticky; top: 25px; }
.sidebar > h2, .sidebar > h3, .sidebar-title { font-size: 10px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; margin-bottom: 18px; }
.sidebar-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sidebar-link { display: block; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.6; transition: background .2s, color .2s; }
.sidebar-link:hover { color: var(--cream); background: #fff03; }
.sidebar-link.active { color: var(--gold-light); background: #b5a0780d; border-left: 2px solid var(--gold); padding-left: 12px; }
.sidebar .notice { font-size: 11px; padding: 18px; margin-top: 25px; }
.panel { padding: 30px; background: var(--ink-soft); border: 1px solid var(--line); }
.panel + .panel { margin-top: 22px; }
.panel h2, .panel h3 { letter-spacing: -.025em; }
.panel h2 { font-size: 25px; margin-bottom: 20px; }
.panel h3 { font-size: 18px; margin-bottom: 16px; }
.prose { color: #b9c2ce; font-size: 14px; line-height: 1.9; }
.prose h2, .prose h3, .prose h4 { color: var(--cream); margin-top: 35px; margin-bottom: 15px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h2 { font-size: 27px; }
.prose h3 { font-size: 20px; }
.prose p + p { margin-top: 16px; }
.prose ul, .prose ol { margin-block: 14px 20px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--gold-light); text-decoration: underline; text-decoration-color: #b5a07850; text-underline-offset: 3px; }
.prose strong { color: var(--cream); font-weight: 650; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold); color: var(--cream); }
.document-article { min-width: 0; background: #eae7df; color: #26313d; padding: 45px 52px 60px; border-top: 3px solid var(--gold); color-scheme: light; }
.document-article h1 { font-size: 30px; line-height: 1.3; letter-spacing: -.025em; }
.document-article > p { color: #68717a; }
.document-article .document-meta { margin-top: 15px; padding-bottom: 25px; border-bottom: 1px solid #26313d29; color: #70767d; font-size: 11px; }
.document-chapter { scroll-margin-top: 25px; margin-top: 38px; }
.document-chapter h2, .document-chapter h3 { font-size: 20px; line-height: 1.45; letter-spacing: -.015em; color: #182c40; border-bottom: 1px solid #26313d25; padding-bottom: 14px; margin-bottom: 20px; }
.document-block { font-size: 13px; line-height: 1.95; margin-block: 12px; white-space: pre-line; overflow-wrap: anywhere; scroll-margin-top: 35px; }
.document-block:target { background: #d7c69d60; box-shadow: 0 0 0 6px #d7c69d60; }
.document-block strong { color: #142d41; }
.document-article .document-notice { background: #d9d0ba6b; color: #5e523b; border-color: #a58a5745; }
.document-meta { display: flex; flex-wrap: wrap; gap: 9px 20px; color: var(--muted); font-size: 11px; }
.document-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.document-toolbar .button { font-size: 11px; padding: 10px 15px; min-height: 39px; }
.document-notice, .notice { padding: 18px 22px; border: 1px solid #b5a07830; border-left: 2px solid var(--gold); background: #b5a07808; color: #b7b3a8; font-size: 12px; line-height: 1.85; margin-block: 22px; }
.notice strong, .document-notice strong { color: var(--gold-light); }
.source-link { color: var(--gold-light); font-size: 11px; text-decoration: underline; text-decoration-color: #b5a07855; text-underline-offset: 4px; }
.toc { display: flex; flex-direction: column; }
.toc-link { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.toc-link:hover, .toc-link.active { color: var(--gold-light); }
.back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 11px; margin-bottom: 25px; }
.editorial-note { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 20px; color: #8a96a6; font-size: 11px; line-height: 1.8; }
.editorial-note summary { cursor: pointer; color: var(--gold); }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.info-card { padding: 28px; border: 1px solid var(--line); background: var(--ink-soft); min-width: 0; }
.info-title { font-size: 19px; letter-spacing: -.02em; margin-bottom: 14px; }
.info-text { color: var(--muted); font-size: 13px; line-height: 1.85; }
.info-card .source-link { display: inline-block; margin-top: 18px; }
.info-card > svg { color: var(--gold); width: 25px; height: 25px; margin-bottom: 22px; }
.info-card ul { color: var(--muted); font-size: 13px; line-height: 1.8; }
.info-card li + li { margin-top: 9px; }
.steps { counter-reset: steps; margin-block: 28px; }
.step { position: relative; display: grid; grid-template-columns: 46px 1fr; column-gap: 22px; padding: 0 0 29px; }
.step:not(:last-child)::before { content: ''; position: absolute; width: 1px; background: var(--line); left: 21px; top: 43px; bottom: 1px; }
.step-number { width: 43px; height: 43px; border: 1px solid #b5a07855; display: flex; align-items: center; justify-content: center; color: var(--gold-light); font-size: 13px; background: var(--ink-soft); grid-row: span 2; }
.step-title { padding-top: 5px; font-size: 17px; letter-spacing: -.015em; }
.step-text { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.rank-table { width: 100%; overflow: auto; border: 1px solid var(--line); }
.rank-table table, table.rank-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rank-table th, .rank-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.rank-table th { color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .07em; background: var(--ink-panel); }
.rank-table td { color: #bec5cf; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table tr:hover td { background: #fff02; }
.rank-table .rank-group, .rank-group td { color: var(--gold-light); background: #b5a07809; font-size: 11px; font-weight: 600; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.schedule-item { padding: 24px 27px; border-bottom: 1px solid var(--line); background: var(--ink-soft); }
.schedule-item:nth-child(odd) { border-right: 1px solid var(--line); }
.schedule-item:nth-last-child(-n+2) { border-bottom: 0; }
.schedule-time { color: var(--gold-light); font-size: 28px; line-height: 1.2; letter-spacing: -.035em; margin-top: 10px; }
.schedule-item p, .schedule-item span { font-size: 11px; color: var(--muted); }
.tabs { display: flex; gap: 8px; padding-bottom: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.tab { display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; font-size: 11px; color: var(--muted); background: transparent; border: 1px solid var(--line); min-height: 41px; transition: background .2s, color .2s; }
.tab:hover { color: var(--cream); border-color: #b5a07855; }
.tab.active, .tab[aria-selected='true'] { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }
.tab-panel { min-width: 0; }
.uniform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.uniform-card { background: var(--ink-soft); border: 1px solid var(--line); overflow: hidden; }
.uniform-image { width: 100%; aspect-ratio: 1 / 1.2; background: #151c23; object-fit: cover; }
.uniform-content { padding: 27px; }
.uniform-content h2, .uniform-content h3 { font-size: 23px; letter-spacing: -.03em; margin-bottom: 16px; }
.uniform-content p, .uniform-content ol, .uniform-content ul { font-size: 12px; color: var(--muted); line-height: 1.9; }
.uniform-content li + li { margin-top: 12px; }
.uniform-full-image { width: 100%; border: 1px solid var(--line); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: 8px 0 8px 25px; font-size: 13px; color: #b9c3cf; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 8px; color: var(--gold); font-size: 12px; }
.link-list { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.link-list a { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #c5cbd4; font-size: 13px; border-bottom: 1px solid var(--line); }
.link-list a:hover { color: var(--gold-light); }
.link-list svg { width: 17px; height: 17px; color: var(--gold); }
.document-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.document-card { display: flex; flex-direction: column; padding: 29px; background: var(--ink-soft); border: 1px solid var(--line); min-height: 295px; transition: border-color .2s, background .2s; }
.document-card:hover { background: var(--ink-panel); border-color: #b5a07860; }
.doc-number { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--gold); letter-spacing: .12em; margin-bottom: 35px; }
.doc-number svg { width: 24px; height: 24px; }
.doc-title { font-size: 25px; letter-spacing: -.03em; line-height: 1.25; margin-bottom: 15px; }
.doc-description { color: var(--muted); font-size: 12px; line-height: 1.85; margin-bottom: 27px; }
.doc-footer { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); color: var(--gold-light); font-size: 10px; display: flex; justify-content: space-between; align-items: center; }
.doc-footer svg { width: 18px; height: 18px; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split-layout > img { width: 100%; height: auto; border: 1px solid var(--line); }
.faq { margin-block: 28px; border-top: 1px solid var(--line); }
.faq details { padding: 19px 0; border-bottom: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; padding-right: 35px; list-style: none; font-size: 14px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; content: '+'; right: 4px; top: -4px; color: var(--gold); font-size: 23px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); font-size: 13px; line-height: 1.9; padding-top: 17px; max-width: 800px; }

/* Search is a real document index, not a decorative field. */
.search-field { position: relative; display: flex; align-items: center; width: 100%; background: var(--ink-soft); border: 1px solid var(--line-strong); }
.search-field > svg { position: absolute; left: 20px; width: 21px; height: 21px; color: var(--gold); pointer-events: none; }
.search-input { width: 100%; background: transparent; border: 1px solid transparent; color: var(--cream); font-size: 15px; padding: 18px 22px 18px 54px; min-height: 61px; outline: 0; }
.search-input::placeholder { color: #6f7d8d; }
.search-input:focus { border-color: var(--gold); }
.search-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px 27px; }
.filter-chip { border: 1px solid var(--line); color: var(--muted); background: transparent; padding: 8px 13px; font-size: 10px; line-height: 1.5; transition: border-color .2s, color .2s; }
.filter-chip:hover { color: var(--cream); border-color: var(--gold); }
.filter-chip.active { background: #b5a07816; color: var(--gold-light); border-color: var(--gold); }
.search-results { border-top: 1px solid var(--line); }
.search-result { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-result:hover h3 { color: var(--gold-light); }
.search-result h3 { font-size: 17px; line-height: 1.5; letter-spacing: -.015em; margin-bottom: 8px; transition: color .2s; }
.search-result p { font-size: 12px; line-height: 1.9; color: var(--muted); }
.search-result .badge { margin-bottom: 10px; }
.search-result small { color: var(--gold); display: block; margin-top: 11px; font-size: 10px; }
.search-highlight, mark { color: var(--cream); background: #b5a07842; padding: 0 2px; }
.document-article mark { color: #14293c; background: #ccb67a9c; }
.empty-state { padding: 48px 25px; border: 1px dashed var(--line-strong); text-align: center; color: var(--muted); font-size: 13px; }
.empty-state svg { margin: 0 auto 18px; color: var(--gold); width: 30px; height: 30px; }
.empty-state h2, .empty-state h3 { color: var(--cream); font-size: 20px; margin-bottom: 10px; }
.search-dialog, .lightbox { position: fixed; inset: 0; z-index: 100; padding: 60px 24px; background: #020712e8; backdrop-filter: blur(12px); display: flex; align-items: flex-start; justify-content: center; overflow: auto; }
.search-dialog-panel { width: min(820px, 100%); max-height: calc(100vh - 120px); overflow: auto; padding: 29px 33px; background: var(--ink-soft); border: 1px solid var(--line-strong); box-shadow: 0 30px 120px #0006; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dialog-header h2 { font-size: 20px; letter-spacing: -.025em; }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.dialog-close:hover { color: var(--cream); border-color: var(--gold); }
.dialog-close svg { width: 18px; height: 18px; }
.lightbox { align-items: center; padding: 65px 40px; }
.lightbox-image { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; box-shadow: 0 20px 80px #0007; }
.lightbox .dialog-close { position: fixed; top: 20px; right: 24px; width: 40px; height: 40px; background: var(--ink); }
.lightbox-caption { position: fixed; bottom: 19px; left: 20px; right: 20px; color: #b4beca; font-size: 11px; text-align: center; }

/* Building navigator: original plan and a simple, accessible directory. */
.map-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 25px; margin-bottom: 65px; align-items: start; }
.map-room-list { border-top: 1px solid var(--line); }
.map-room { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 11px; line-height: 1.6; color: var(--muted); }
.map-room span:first-child { color: var(--gold); font-size: 9px; min-width: 19px; }
.map-room:hover { color: var(--cream); background: #fff03; }
.map-room.active { color: var(--gold-light); background: #b5a07813; border-left: 2px solid var(--gold); padding-left: 11px; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); background: var(--ink-soft); }
.map-toolbar > div { display: flex; align-items: center; gap: 7px; }
.map-toolbar button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); min-width: 35px; min-height: 35px; padding: 7px 10px; background: transparent; color: var(--cream); font-size: 12px; }
.map-toolbar button:hover { border-color: var(--gold); color: var(--gold-light); }
.map-toolbar svg { width: 16px; height: 16px; }
.map-toolbar span { font-size: 10px; color: var(--muted); min-width: 45px; text-align: center; }
.map-viewport { position: relative; overflow: hidden; height: clamp(420px, 70vh, 850px); background: #f3f4f1; border: 1px solid var(--line); border-top: 0; cursor: grab; touch-action: none; user-select: none; display: flex; justify-content: center; align-items: center; }
.map-viewport:active { cursor: grabbing; }
.map-canvas { position: relative; width: 100%; transform-origin: center center; will-change: transform; flex-shrink: 0; }
.map-image { width: 100%; height: auto; pointer-events: none; user-select: none; }
.map-marker { position: absolute; z-index: 2; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #f8f4e7; background: #8f7447; box-shadow: 0 2px 8px #0006; color: #fff; font-size: 9px; font-weight: 700; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; }
.map-marker:hover, .map-marker.active { background: #203e55; z-index: 5; box-shadow: 0 0 0 5px #b5a07870, 0 2px 8px #0006; }
.map-hint { color: var(--muted); font-size: 10px; margin-top: 12px; }

.site-footer { border-top: 1px solid var(--line); background: #050c15; margin-top: 30px; }
.footer-inner { width: min(var(--container), 100% - 96px); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; padding-block: 47px 42px; }
.footer-brand .brand { margin-bottom: 19px; }
.footer-brand > p { color: #788493; font-size: 11px; max-width: 295px; line-height: 1.9; }
.footer-nav h3 { color: var(--gold); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 20px; }
.footer-nav a { display: block; font-size: 11px; color: #8d99a8; padding-block: 5px; }
.footer-nav a:hover { color: var(--cream); }
.footer-bottom { width: min(var(--container), 100% - 96px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); padding-block: 21px 25px; font-size: 9px; letter-spacing: .03em; color: #616e7f; }
.footer-bottom a { color: #9d8d70; }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 12px 22px; background: var(--gold-light); color: var(--ink); font-size: 12px; box-shadow: 0 8px 40px #0006; max-width: calc(100% - 40px); text-align: center; }

/* Components wired to the actual portal markup. */
.muted { color: var(--muted); }
.gold { color: var(--gold-light); }
.small.section-title { font-size: 27px; margin-block: 35px 22px; }
.section-tight { padding-top: 0; }
.section-intro.wide { max-width: 830px; margin-bottom: 28px; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 20px; padding: 12px 20px; color: var(--ink); background: var(--gold-light); font-size: 13px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 39px; min-height: 39px; padding: 8px 11px; background: transparent; border: 1px solid var(--line); color: #a8b4c4; line-height: 1; }
.icon-button:hover { border-color: var(--gold); color: var(--gold-light); }
.header-search { gap: 13px; padding: 11px 13px; }
.header-search kbd { font: 9px var(--font); color: #738194; letter-spacing: .04em; }
.header-search svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.quick-top { display: flex; align-items: center; justify-content: space-between; }
.quick-top .quick-icon { position: static; }
.quick-arrow { position: absolute; bottom: 25px; right: 25px; color: var(--gold); }
.quick-arrow svg { width: 16px; height: 16px; }
.quick-card:has(.quick-arrow) { padding-bottom: 37px; }
.quick-card > h3:not(.quick-title) { margin-top: 25px; font-size: 18px; letter-spacing: -.02em; }
.quick-card > p:not(.quick-desc) { margin-top: 9px; font-size: 12px; color: var(--muted); }
.quick-card > svg { position: absolute; bottom: 23px; right: 23px; color: var(--gold); width: 17px; height: 17px; }
.tiny-line { width: 28px; height: 1px; background: var(--gold); }
.hero .eyebrow:has(.tiny-line)::before { display: none; }
.hero-index { font-size: 9px; }
.hero-caption { display: flex; gap: 18px; }
.feature-image { position: relative; overflow: hidden; }
.feature-image > img { width: 100%; height: 100%; object-fit: cover; }
.feature-note { display: block; color: #758396; font-size: 8px; font-weight: 600; letter-spacing: .16em; margin-top: 25px; }
.image-caption { position: absolute; z-index: 2; bottom: 15px; left: 19px; font-size: 7px; letter-spacing: .14em; padding: 4px 7px; color: #b3bbc4; background: #07101ca6; }
.dept-number { position: absolute; z-index: 3; left: 22px; top: 18px; color: #d9d3c4; font-size: 8px; font-weight: 600; letter-spacing: .14em; text-shadow: 0 1px 6px #000; }
.dept-symbol { position: absolute; z-index: 3; right: 23px; bottom: 17px; color: #f8f5e9d9; font-size: 42px; font-weight: 550; line-height: 1; letter-spacing: -.055em; text-shadow: 0 2px 12px #0004; }
.department-banner { position: relative; height: 350px; overflow: hidden; background: var(--ink-soft); margin-bottom: 37px; }
.department-banner img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); }
.department-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #07101c99, transparent 60%); }
.department-banner-code { position: absolute; z-index: 2; bottom: 22px; left: 28px; font-size: 60px; color: var(--cream); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.task-list { list-style: none; padding: 0; border-top: 1px solid var(--line); margin-block: 28px 35px; }
.task-list li { display: grid; grid-template-columns: 35px 1fr; gap: 22px; padding-block: 17px; border-bottom: 1px solid var(--line); }
.task-list li > span { color: var(--gold); font-size: 10px; letter-spacing: .08em; padding-top: 3px; }
.task-list li p { color: #bac3cf; font-size: 13px; line-height: 1.85; }
.sidebar-note { font-size: 10px; line-height: 1.85; color: #718093; padding: 20px 14px; }
.sidebar-link small { display: block; font-size: 9px; color: var(--gold); margin-top: 3px; }
.sidebar > .source-link { display: inline-flex; gap: 8px; margin-top: 22px; line-height: 1.8; }
.sidebar > .eyebrow { margin-bottom: 18px; font-size: 9px; }
.panel p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.panel > .badge { margin-bottom: 5px; }
.info-grid { margin-block: 25px; }
.check-list + .info-grid { margin-top: 30px; }
.info-grid + .panel { margin-top: 28px; }
.split-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; margin-top: 30px; }
.split-panel .section-title { margin-top: 0; }
.split-panel p { margin-top: 12px; }
.stats-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-nav > .eyebrow { font-size: 8px; margin-bottom: 16px; }
.footer-nav > .eyebrow::before { display: none; }
.document-card > svg { color: var(--gold); width: 28px; height: 28px; margin-bottom: 25px; }
.document-card .doc-number { margin-bottom: 19px; }
.toolbar-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-left: auto; }
.toolbar-actions .icon-button { font-size: 12px; min-width: 35px; }
.document-toolbar > .muted { font-size: 10px; }
.document-toolbar .button.secondary { background: var(--ink-soft); }
.chapter-heading { position: relative; padding-right: 40px; }
.chapter-heading .section-kicker { color: #91794c; font-size: 8px; margin-bottom: 11px; }
.chapter-heading > .icon-button { position: absolute; top: 0; right: 0; width: 30px; height: 30px; min-width: 30px; min-height: 30px; font-size: 18px; color: #8d7b59; border-color: #26313d29; }
.chapter-heading > .icon-button:hover { color: #152f45; border-color: #8e7b54; }
.document-article .document-block { font-size: var(--reader-size, 17px); line-height: 1.9; white-space: pre-line; }
.document-article .document-block.doc-subheading { color: #1c3347; font-size: calc(var(--reader-size, 17px) + 1px); font-weight: 700; margin-top: 30px; border: 0; padding-bottom: 0; }
.document-end { color: #8b8d89; font-size: 8px; text-align: center; border-top: 1px solid #26313d25; padding-top: 25px; margin-top: 42px; letter-spacing: .12em; }
.anchor-highlight { background: #cfb77c33; outline: 5px solid #cfb77c33; }
.document-article .amendment-note { color: #5e523b; background: #d9d0ba6b; border-color: #a58a5745; font-size: 12px; }
.document-article .amendment-note strong { color: #6a552f; }
.document-article .amendment-note a { color: #6a552f; text-decoration: underline; text-underline-offset: 3px; }
.uniform-reference { display: block; position: relative; padding: 0; width: 100%; max-width: 1000px; border: 1px solid var(--line); margin: 28px auto 36px; background: var(--ink-soft); overflow: hidden; }
.uniform-reference > img { width: 100%; height: auto; }
.uniform-reference > span { position: absolute; bottom: 16px; right: 16px; padding: 10px 14px; background: #07101cde; display: flex; align-items: center; gap: 12px; color: var(--cream); font-size: 10px; border: 1px solid #b5a07850; }
.uniform-reference:hover > span { background: var(--gold); color: var(--ink); }
.uniform-grid > .uniform-card { padding: 30px; }
.uniform-card > .section-kicker { margin-bottom: 20px; }
.uniform-card > h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.03em; margin-bottom: 17px; }
.uniform-card > p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.wardrobe-path { padding: 18px; background: #b5a0780b; border-left: 2px solid var(--gold); color: #c8bea8; margin-top: 23px; font-size: 12px; line-height: 2; }
.wardrobe-path span { color: var(--gold); padding-inline: 7px; }
.compact-steps { color: var(--muted); font-size: 12px; line-height: 1.95; padding-left: 18px; }
.compact-steps li { padding-left: 4px; }
.compact-steps li + li { margin-top: 12px; }
.map-room-list.panel { padding: 18px 0 0; }
.map-room-list > .eyebrow { padding: 0 16px 15px; font-size: 8px; }
.map-room-list > .eyebrow::before { display: none; }
.map-room { justify-content: space-between; }
.map-room svg { color: #5f7085; }
.map-marker { width: 17px; height: 17px; border: 2px solid #fff; background: #a08651; }
.map-marker span { width: 3px; height: 3px; border-radius: 50%; background: #fff; }
.map-selected { padding: 15px 19px; border: 1px solid var(--line); background: var(--ink-soft); color: var(--gold-light); font-size: 12px; }
.map-viewport.dragging { cursor: grabbing; }
.amendment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-block: 25px; }
.amendment-grid > div { padding: 23px; border: 1px solid var(--line); background: #07101c50; }
.amendment-grid .eyebrow { font-size: 8px; line-height: 1.8; margin-bottom: 18px; }
.amendment-grid .eyebrow::before { display: none; }
.amendment-grid p { font-size: 12px; color: #b7bfca; }
.editorial-page > .section-title { margin-top: 45px; }
.faq summary > span { color: var(--gold); font-size: 10px; margin-right: 13px; }
.faq details > a { display: inline-block; color: var(--gold); font-size: 12px; margin-top: 12px; }
.results-count { color: #728195; font-size: 10px; padding-block: 16px 0; }
.search-result { position: relative; padding-right: 36px; }
.search-result > .eyebrow { font-size: 8px; line-height: 1.8; margin-bottom: 9px; display: block; }
.search-result > .eyebrow::before { display: none; }
.search-result-arrow { position: absolute; right: 0; top: 28px; color: var(--gold); }
.search-result-arrow svg { width: 17px; height: 17px; }
.search-hint { font-size: 10px; margin-top: 13px; margin-bottom: 17px; }
.search-field .search-input { padding-left: 20px; min-width: 0; }
.search-field > .button { align-self: stretch; border: 0; min-width: 104px; flex-shrink: 0; margin: 5px; }
.dialog-close.icon-button { font-size: 26px; padding: 5px; width: 35px; height: 35px; }
dialog.search-dialog, dialog.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; inset: 0; border: 0; color: var(--cream); }
dialog.search-dialog::backdrop, dialog.lightbox::backdrop { background: #020712b0; }
dialog.search-dialog[open], dialog.lightbox[open] { display: flex; }
dialog:not([open]) { display: none !important; }
dialog.lightbox { flex-direction: column; gap: 17px; }
#lightbox-caption { color: #b4beca; font-size: 11px; text-align: center; }
.toast { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .18s, transform .18s, visibility .18s; }
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hero .eyebrow, .hero h1, .hero-copy, .hero-actions { animation: rise .7s ease both; }
.hero h1 { animation-delay: .08s; }
.hero-copy { animation-delay: .15s; }
.hero-actions { animation-delay: .22s; }

@media (min-width: 1600px) {
  .hero { min-height: 730px; }
  .hero-inner { padding-block: 90px 110px; }
}
@media (max-width: 1200px) {
  .header-inner { width: calc(100% - 48px); gap: 23px; }
  .main-nav { gap: 18px; }
  .nav-link { font-size: 11px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 42px; height: 50px; }
  .header-search span { display: none; }
  .container, .hero-inner, .hero-bottom, .footer-inner, .footer-bottom { width: calc(100% - 64px); }
  .hero h1 { font-size: 76px; }
  .quick-card { padding-inline: 23px; }
  .dept-cover { height: 190px; }
  .dept-body { padding: 23px; }
  .dept-name { font-size: 22px; }
  .feature-content, .feature-panel > div:not(.feature-image) { padding: 36px; }
}
@media (max-width: 1100px) {
  .main-nav { gap: 15px; }
  .header-inner { gap: 18px; }
  .nav-link { font-size: 10px; }
  .brand-sub { font-size: 8px; }
  .brand { gap: 11px; }
  .hero { min-height: 610px; }
  .hero h1 { font-size: 68px; }
  .hero-bg img { object-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, #040c16f7, #040c16d6 27%, #040c165e 75%), linear-gradient(0deg, #07101cdd, transparent 40%); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-card:nth-child(3) { border-left: 0; }
  .quick-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .quick-card { min-height: 175px; }
  .dept-grid { gap: 18px; }
  .dept-cover { height: 170px; }
  .dept-name { font-size: 21px; }
  .content-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 27px; }
  .document-article { padding: 34px; }
  .document-card-grid { gap: 17px; }
  .document-card { padding: 24px; }
  .doc-title { font-size: 22px; }
  .map-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
  .footer-inner { gap: 35px; }
}
@media (max-width: 900px) {
  :root { --header-height: 80px; }
  .main-nav { display: none; }
  .header-search { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 9px; }
  .dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dept-cover { height: 210px; }
  .feature-content, .feature-panel > div:not(.feature-image) { padding: 32px; }
  .feature-panel > img, .feature-panel .feature-image { min-height: 330px; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar-nav { display: flex; flex-direction: row; overflow-x: auto; border-bottom: 1px solid var(--line); }
  .sidebar-link { flex: 0 0 auto; max-width: 200px; padding: 13px 17px; border-bottom: 0; }
  .sidebar-link.active { border-left: 0; border-bottom: 2px solid var(--gold); padding-left: 17px; }
  .sidebar .notice { margin-top: 15px; }
  .sidebar .toc { max-height: 230px; overflow-y: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
  .sidebar > h2, .sidebar > h3, .sidebar-title { margin-bottom: 10px; }
  .stats-strip .stat { padding: 22px 18px; gap: 12px; }
  .stat-value { font-size: 31px; }
  .stat-label { font-size: 10px; }
  .document-card-grid { grid-template-columns: 1fr; }
  .document-card { min-height: auto; display: grid; grid-template-columns: 54px 1fr; column-gap: 20px; }
  .doc-number { grid-row: span 3; display: block; margin: 3px 0 0; }
  .doc-number svg { margin-top: 15px; }
  .doc-title { font-size: 25px; }
  .doc-description { margin-bottom: 18px; }
  .map-layout { grid-template-columns: 1fr; }
  .map-room-list { display: flex; gap: 7px; overflow-x: auto; border: 0; padding-bottom: 7px; }
  .map-room { flex-shrink: 0; width: auto; max-width: 190px; border: 1px solid var(--line); padding: 10px 13px; }
  .map-room.active { border: 1px solid var(--gold); padding: 10px 13px; }
  .map-viewport { height: 660px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
  .footer-nav:last-child { grid-column: 2; }
  .footer-brand { grid-row: span 2; }
}
@media (max-width: 760px) {
  .container, .hero-inner, .hero-bottom, .footer-inner, .footer-bottom { width: calc(100% - 40px); }
  .header-inner { width: calc(100% - 32px); gap: 9px; }
  .hero { min-height: 650px; }
  .hero-inner { padding-block: 63px 100px; }
  .hero h1 { font-size: clamp(47px, 8.7vw, 66px); max-width: 600px; letter-spacing: -.05em; }
  .hero-bg img { object-position: 68% center; }
  .hero-shade { background: linear-gradient(90deg, #040c16e8, #040c16a6 58%, #040c165c), linear-gradient(0deg, #07101cee, transparent 55%); }
  .hero-copy { font-size: 13px; max-width: 365px; }
  .eyebrow { font-size: 8px; letter-spacing: .17em; }
  .hero-bottom { padding-block: 19px 23px; align-items: flex-end; }
  .hero-caption { max-width: 170px; font-size: 8px; line-height: 1.7; }
  .hero-index { font-size: 8px; gap: 13px; }
  .hero-index strong { font-size: 20px; }
  .hero-actions { gap: 11px; }
  .button { padding: 13px 20px; font-size: 11px; gap: 18px; }
  .section { padding-block: 55px; }
  .section + .section { padding-top: 5px; }
  .section-heading { gap: 20px; align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .section-title { font-size: 32px; }
  .section-kicker { font-size: 8px; letter-spacing: .15em; }
  .section-intro { font-size: 12px; }
  .quick-card { padding: 23px; min-height: 186px; }
  .quick-title { font-size: 18px; }
  .quick-desc { font-size: 11px; }
  .quick-icon { right: 20px; top: 23px; }
  .quick-icon svg { width: 20px; height: 20px; }
  .dept-cover { height: 175px; }
  .dept-name { font-size: 22px; }
  .dept-body { padding: 22px; }
  .dept-description { font-size: 11px; }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-panel > img, .feature-panel .feature-image { min-height: 0; height: 280px; object-fit: cover; }
  .feature-content, .feature-panel > div:not(.feature-image) { padding: 30px; }
  .feature-panel h2 { font-size: 34px; }
  .feature-panel p { font-size: 12px; }
  .page-heading { padding-block: 26px 33px; margin-bottom: 28px; }
  .breadcrumb { font-size: 9px; gap: 8px; margin-bottom: 28px; }
  .page-title { font-size: 39px; }
  .page-description { font-size: 12px; margin-top: 18px; }
  .page-meta { font-size: 10px; }
  .content-grid { gap: 24px; margin-bottom: 40px; }
  .panel { padding: 24px; }
  .panel h2 { font-size: 23px; }
  .prose { font-size: 13px; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 19px; }
  .info-grid { gap: 15px; }
  .info-card { padding: 24px; }
  .info-title { font-size: 18px; }
  .info-text, .info-card ul { font-size: 12px; }
  .document-article { padding: 29px 25px 40px; }
  .document-article h1 { font-size: 25px; }
  .document-chapter h2, .document-chapter h3 { font-size: 18px; }
  .document-block { font-size: 12px; line-height: 1.95; }
  .document-toolbar { align-items: stretch; }
  .document-toolbar .button { flex: 1; }
  .document-meta { font-size: 10px; }
  .document-notice, .notice { padding: 15px 18px; font-size: 11px; }
  .uniform-grid { gap: 20px; }
  .uniform-content { padding: 23px; }
  .uniform-content h2, .uniform-content h3 { font-size: 21px; }
  .uniform-content p, .uniform-content ol { font-size: 11px; }
  .split-layout { grid-template-columns: 1fr; gap: 28px; }
  .map-viewport { height: clamp(400px, 70vh, 620px); }
  .map-toolbar { padding: 11px; }
  .map-marker { width: 21px; height: 21px; font-size: 8px; }
  .map-layout { margin-bottom: 40px; }
  .footer-inner { padding-block: 35px; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 8px; }
  .search-dialog { padding: 20px 12px; }
  .search-dialog-panel { padding: 23px; max-height: calc(100vh - 40px); }
  .search-input { font-size: 13px; }
  .search-result h3 { font-size: 16px; }
  .lightbox { padding: 65px 12px; }
}
@media (max-width: 560px) {
  .dept-grid { grid-template-columns: 1fr; }
  .dept-cover { height: 230px; }
  .dept-description { font-size: 12px; }
  .dept-body { padding: 25px; }
  .info-grid, .uniform-grid { grid-template-columns: 1fr; }
  .uniform-image { aspect-ratio: 1 / 1.1; }
  .uniform-content p, .uniform-content ol { font-size: 12px; }
  .stats-strip { grid-template-columns: 1fr; margin-block: 27px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stats-strip .stat { padding: 20px 24px; }
  .stat-value { min-width: 55px; }
  .stat-label { font-size: 11px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; grid-row: auto; }
  .footer-nav:last-child { grid-column: auto; }
  .footer-brand > p { max-width: 340px; }
  .footer-nav h3 { font-size: 8px; }
  .step { grid-template-columns: 40px 1fr; gap: 17px; }
  .step-number { width: 38px; height: 38px; }
  .step:not(:last-child)::before { left: 19px; top: 39px; }
  .step-title { font-size: 16px; }
  .step-text { font-size: 12px; }
}
@media (max-width: 480px) {
  :root { --header-height: 74px; }
  .brand-mark { width: 35px; height: 43px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 7px; letter-spacing: .15em; }
  .brand { gap: 9px; }
  .header-search, .menu-toggle { padding: 10px; }
  .hero { min-height: 620px; }
  .hero-inner { padding-block: 53px 75px; }
  .hero h1 { font-size: clamp(42px, 10.6vw, 53px); margin-top: 25px; }
  .hero-copy { font-size: 12px; max-width: 310px; margin-top: 22px; }
  .hero-actions { margin-top: 28px; align-items: stretch; }
  .hero-actions .button { padding: 13px 16px; gap: 15px; }
  .hero-bottom { align-items: center; }
  .hero-index { gap: 10px; font-size: 7px; letter-spacing: .12em; }
  .hero-caption { max-width: 140px; font-size: 7px; }
  .quick-card { padding: 21px 17px; min-height: 183px; }
  .quick-title { font-size: 16px; line-height: 1.35; }
  .quick-desc { font-size: 10px; line-height: 1.85; }
  .quick-icon { right: 17px; }
  .quick-icon svg { width: 17px; height: 17px; }
  .quick-card::after { left: 17px; right: 17px; }
  .page-title { font-size: 34px; }
  .page-description { font-size: 12px; }
  .page-heading { padding-bottom: 27px; }
  .section-title { font-size: 29px; }
  .feature-content, .feature-panel > div:not(.feature-image) { padding: 26px; }
  .feature-panel h2 { font-size: 30px; }
  .feature-panel > img, .feature-panel .feature-image { height: 240px; }
  .sidebar .toc { grid-template-columns: 1fr; max-height: 205px; }
  .document-article { padding: 26px 20px 35px; }
  .document-article h1 { font-size: 22px; }
  .document-chapter h2, .document-chapter h3 { font-size: 17px; }
  .document-block { font-size: 11px; }
  .document-toolbar .button { min-width: 130px; font-size: 10px; }
  .schedule-item { padding: 20px; }
  .schedule-time { font-size: 23px; }
  .schedule-item p, .schedule-item span { font-size: 10px; }
  .rank-table th, .rank-table td { padding: 12px 14px; font-size: 11px; }
  .tab { padding: 9px 12px; font-size: 10px; }
  .tabs { gap: 6px; }
  .document-card { grid-template-columns: 35px 1fr; column-gap: 13px; padding: 23px; }
  .doc-title { font-size: 22px; }
  .doc-description { font-size: 11px; }
  .doc-number { font-size: 8px; }
  .doc-number svg { width: 20px; height: 20px; }
  .map-viewport { height: 440px; }
  .map-toolbar button { padding: 6px 8px; min-width: 32px; min-height: 32px; font-size: 10px; }
  .map-toolbar span { min-width: 38px; font-size: 9px; }
  .map-marker { width: 18px; height: 18px; border-width: 1px; font-size: 7px; }
  .search-dialog-panel { padding: 20px; }
  .dialog-header h2 { font-size: 18px; }
  .search-field > svg { left: 16px; width: 18px; height: 18px; }
  .search-input { min-height: 55px; padding: 15px 16px 15px 45px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media (max-width: 1100px) {
  .department-banner { height: 300px; }
  .uniform-grid > .uniform-card { padding: 26px; }
  .document-toolbar { align-items: flex-start; }
  .toolbar-actions { gap: 6px; }
}
@media (max-width: 900px) {
  .document-card { display: flex; }
  .document-card .doc-number { margin-bottom: 19px; }
  .document-card > svg { margin-bottom: 20px; }
  .map-room-list.panel { padding: 0 0 8px; }
  .map-room-list > .eyebrow { display: none; }
  .toolbar-actions { margin-left: 0; width: 100%; }
  .split-panel { grid-template-columns: 1fr; gap: 20px; }
  .split-panel > .button { justify-self: start; }
}
@media (max-width: 760px) {
  .header-search kbd { display: none; }
  .department-banner { height: 280px; margin-bottom: 30px; }
  .department-banner-code { font-size: 48px; left: 23px; }
  .task-list li { gap: 15px; grid-template-columns: 25px 1fr; }
  .task-list li p { font-size: 12px; }
  .small.section-title { font-size: 24px; }
  .stats-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-strip .stat:nth-child(3) { border-left: 0; }
  .stats-strip .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .amendment-grid { grid-template-columns: 1fr; gap: 15px; }
  .document-toolbar .toolbar-actions .button { flex: 0 1 auto; }
  .uniform-grid > .uniform-card { padding: 25px; }
  .uniform-card > h2 { font-size: 23px; }
  .uniform-card > p { font-size: 12px; }
  .uniform-reference > span { bottom: 10px; right: 10px; padding: 8px 10px; font-size: 9px; }
  .quick-arrow { bottom: 20px; right: 20px; }
  .hero-caption { gap: 12px; }
}
@media (max-width: 480px) {
  .department-banner { height: 230px; }
  .department-banner-code { font-size: 40px; }
  .uniform-grid > .uniform-card { padding: 23px; }
  .quick-arrow { right: 17px; }
  .quick-card > h3:not(.quick-title) { font-size: 16px; }
  .quick-card > p:not(.quick-desc) { font-size: 10px; }
  .search-field > .button { min-width: 76px; padding-inline: 12px; font-size: 10px; }
  .search-field .search-input { padding-left: 14px; padding-right: 10px; font-size: 11px; }
  .document-toolbar .toolbar-actions .button { font-size: 9px; padding: 9px 12px; min-width: 0; }
  .document-toolbar > .muted { font-size: 9px; }
  .chapter-heading { padding-right: 32px; }
  .document-article .document-block { line-height: 1.85; }
  .map-selected { font-size: 11px; }
  .map-toolbar > .text-link { font-size: 9px; }
}
@media print {
  :root { color-scheme: light; }
  body, main, .document-article, .panel { background: #fff !important; color: #111 !important; }
  body { font-family: Georgia, 'Times New Roman', serif; font-size: 11pt; }
  .site-header, .site-footer, .sidebar, .document-toolbar, .page-heading, .search-dialog, .lightbox, .toast, .back-link, .tabs, .mobile-menu { display: none !important; }
  .container { width: 100%; max-width: none; margin: 0; }
  .content-grid { display: block; margin: 0; }
  .document-article { border: 0; padding: 0; }
  .document-article h1 { font-size: 18pt; }
  .document-chapter h2 { page-break-after: avoid; color: #111 !important; font-size: 13pt; }
  .document-article .document-block { font-size: 10pt; line-height: 1.65; margin-block: 8pt; }
  .document-meta { color: #444 !important; font-size: 9pt; }
  .document-notice { background: #fff !important; color: #444 !important; border: 1px solid #bbb !important; }
  a { color: #111 !important; }
  .print-only { display: block; }
}
