@font-face { font-family: 'IBM Plex Sans Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
:root {
  --bg-dark-base: #0e1a33;
  --fg-dark-base-body: #eef2f8;
  --fg-dark-base-heading: #eef2f8;
  --fg-dark-base-muted: #b0bdd2;
  --fg-dark-base-link: #f2a93b;
  --fg-dark-base-inverse: #eef2f8;
  --bg-dark-card: #15264a;
  --fg-dark-card-body: #eef2f8;
  --fg-dark-card-heading: #eef2f8;
  --fg-dark-card-muted: #b0bdd2;
  --fg-dark-card-link: #f2a93b;
  --fg-dark-card-inverse: #eef2f8;
  --bg-dark-elevated: #1c3160;
  --fg-dark-elevated-body: #eef2f8;
  --fg-dark-elevated-heading: #eef2f8;
  --fg-dark-elevated-muted: #b0bdd2;
  --fg-dark-elevated-link: #f2a93b;
  --fg-dark-elevated-inverse: #eef2f8;
  --brand-dark-accent: #f2a93b;
  --brand-dark-accent-hover: #ffcb7a;
  --brand-dark-on-accent: #0e1a33;
  --focus-dark-ring: #f2a93b;
  --border-dark-default: #8798b9;
  --border-dark-subtle: #2e4675;
}
.bg-surface-base { background: var(--bg-dark-base); --fg-body: var(--fg-dark-base-body); --fg-heading: var(--fg-dark-base-heading); --fg-muted: var(--fg-dark-base-muted); --fg-link: var(--fg-dark-base-link); --fg-inverse: var(--fg-dark-base-inverse); }
.bg-surface-card { background: var(--bg-dark-card); --fg-body: var(--fg-dark-card-body); --fg-heading: var(--fg-dark-card-heading); --fg-muted: var(--fg-dark-card-muted); --fg-link: var(--fg-dark-card-link); --fg-inverse: var(--fg-dark-card-inverse); }
.bg-surface-elevated { background: var(--bg-dark-elevated); --fg-body: var(--fg-dark-elevated-body); --fg-heading: var(--fg-dark-elevated-heading); --fg-muted: var(--fg-dark-elevated-muted); --fg-link: var(--fg-dark-elevated-link); --fg-inverse: var(--fg-dark-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-dark-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-dark-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-dark-ring); }

/* Clinical dossier: navy file covers, amber tabs, condensed labels, serif case notes. */
:root {
  --font-label: 'IBM Plex Sans Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-notes: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --navy: var(--bg-dark-base);
  --sheet: var(--bg-dark-card);
  --cover: var(--bg-dark-elevated);
  --amber: var(--brand-dark-accent);
  --amber-hi: var(--brand-dark-accent-hover);
  --on-amber: var(--brand-dark-on-accent);
  --paper: var(--fg-dark-base-body);
  --quiet: var(--fg-dark-base-muted);
  --rule: var(--border-dark-default);
  --rule-soft: var(--border-dark-subtle);
  --measure: 40rem;
  --wide: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --tab-radius: 7px 7px 0 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }

body.dossier-site {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-notes);
  font-size: 1.0625rem;
  line-height: 1.68;
}

h1, h2, h3, h4 { font-family: var(--font-label); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, blockquote { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.3em; }
strong { font-weight: 600; }
a.text-role-link { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a.text-role-link:hover { text-decoration-thickness: 2px; }
blockquote.accent-block { margin-left: 0; padding: 0.8rem 1.1rem; border-left: 5px solid var(--amber); background: var(--sheet); }

/* ---------- Sticky folder bar with the collapsed file index ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 3px solid var(--amber);
}
.folder-bar {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.55rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px; margin-right: auto; text-decoration: none; }
.brand .site-logo { display: block; width: 2.5rem; height: 2.5rem; flex: none; }
.brand-name { font-family: var(--font-label); font-weight: 600; font-size: 1.02rem; line-height: 1.15; max-width: 19rem; }

.file-index { flex: none; }
.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--on-amber);
  background: var(--amber);
  border-radius: var(--tab-radius);
}
.site-menu > summary:hover { background: var(--amber-hi); }
.menu-icon {
  width: 1.1rem;
  height: 0.85rem;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 55% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}
.site-menu[open] > summary { background: var(--amber-hi); }
.site-menu > ul {
  position: absolute;
  right: var(--gutter);
  top: calc(100% + 3px);
  width: min(26rem, calc(100vw - 2rem));
  max-height: 78vh;
  overflow-y: auto;
  margin: 0;
  padding: 0.75rem;
  list-style: none;
  background: var(--navy);
  border: 1px solid var(--rule);
  border-top: 0;
}
.site-menu ul ul { list-style: none; margin: 0.25rem 0 0.5rem; padding: 0 0 0 1rem; }
.site-menu li { margin: 0; }
.site-menu li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-label);
  font-weight: 500;
  text-decoration: none;
  border-left: 5px solid var(--amber);
  background: var(--sheet);
}
.site-menu > ul > li + li { margin-top: 0.4rem; }
.site-menu ul ul li a { border-left-color: var(--rule); background: transparent; }
.site-menu li a:hover { text-decoration: underline; }

/* ---------- Desk, crumbs and the shared case-note styles ---------- */

.desk { flex: 1 0 auto; width: 100%; }
.breadcrumbs { max-width: var(--wide); margin: 0 auto; padding: 1rem var(--gutter) 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; font-family: var(--font-label); font-size: 0.93rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--quiet); }
.breadcrumbs a { display: inline-block; padding: 0.45rem 0; }

main { display: block; max-width: var(--wide); margin: 0 auto; padding: 1.75rem var(--gutter) 4.5rem; }

.photo-hero { margin: 0 0 2rem; }
.photo-hero img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border: 1px solid var(--rule); border-top: 5px solid var(--amber); }
.photo-inline { margin: 1.5rem 0; }
.photo-inline img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); }

.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { padding: 0.65rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
th { font-family: var(--font-label); font-weight: 600; white-space: nowrap; background: var(--cover); border-bottom: 2px solid var(--amber); }
td:first-child { font-family: var(--font-label); font-weight: 600; white-space: nowrap; }

/* Every panel title opens with an amber folder tab. */
.head-tab {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.9rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--on-amber);
  background: var(--amber);
  border-radius: var(--tab-radius);
}
.head-title h1 { margin: 0; }

/* Section heads read as tabbed dividers inside a file. */
.stepped-sheets > h2, .case-notes > h2, .brief-body > h2, .intake-body > h2, .filed-body > h2 {
  margin-top: 2.25rem;
  padding: 0.75rem 0 0;
  border-top: 2px solid var(--rule);
}
.stepped-sheets > h2::before, .case-notes > h2::before, .brief-body > h2::before, .intake-body > h2::before, .filed-body > h2::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 6px;
  margin: -0.75rem 0 0.75rem;
  transform: translateY(-4px);
  background: var(--amber);
  border-radius: var(--tab-radius);
}
.stepped-sheets > *, .case-notes > *, .brief-body > *, .intake-body > *, .filed-body > * { max-width: var(--measure); }
.stepped-sheets > .photo-hero, .case-notes > .photo-hero, .brief-body > .photo-hero, .stepped-sheets > .table-scroll { max-width: none; }

/* ---------- Home: case file cover, file tabs, stepped sheets ---------- */

.case-cover {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3.25rem);
  border: 1px solid var(--rule-soft);
  border-left: 8px solid var(--amber);
}
.cover-tab {
  position: absolute;
  top: -2.05rem;
  left: -8px;
  padding: 0.35rem 1rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--on-amber);
  background: var(--amber);
  border-radius: var(--tab-radius);
}
.page-cover { padding-top: 3.75rem; }
.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.cover-headline h1 {
  margin: 0;
  font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.cover-lines .display-line {
  margin: 0;
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 3px solid var(--rule);
  font-size: 1.02rem;
  line-height: 1.5;
}
.cover-lines .display-line + .display-line { margin-top: 0.6rem; }
.cover-lines .display-line:first-child { border-left-color: var(--amber); }

.file-tabs { margin: 0 0 2.5rem; }
.file-tabs ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.file-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  border-top: 0;
  border-bottom: 4px solid var(--amber);
  border-radius: 0 0 7px 7px;
}
.file-tabs a:hover { text-decoration: underline; }

@media (min-width: 56rem) {
  .stepped-sheets > h2:nth-of-type(2), .stepped-sheets > h2:nth-of-type(2) ~ * { margin-left: 3rem; }
  .stepped-sheets > h2:nth-of-type(3), .stepped-sheets > h2:nth-of-type(3) ~ * { margin-left: 6rem; }
  .stepped-sheets > h2:nth-of-type(n+4), .stepped-sheets > h2:nth-of-type(n+4) ~ * { margin-left: 9rem; }
}

/* ---------- Top-n list: shortlist dossier of stacked sheets ---------- */

.dossier-head, .case-header, .spec-head {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 2.25rem;
  border: 1px solid var(--rule-soft);
  border-top: 0;
  box-shadow: inset 0 5px 0 var(--amber);
}
.dossier-head .head-tab, .case-header .head-tab, .spec-head .head-tab { margin-top: 0; }

.shortlist-body ol {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.shortlist-body ol > li {
  position: relative;
  margin: 0 0 0.5rem;
  padding: 0.8rem 1rem 0.8rem 4.25rem;
  min-height: 3.25rem;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.35;
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  border-left: 0;
}
.shortlist-body ol > li::before {
  content: counter(list-item);
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--on-amber);
  background: var(--amber);
}
@media (min-width: 56rem) {
  .shortlist-body ol > li:nth-child(2) { margin-left: 1rem; }
  .shortlist-body ol > li:nth-child(3) { margin-left: 2rem; }
  .shortlist-body ol > li:nth-child(4) { margin-left: 3rem; }
  .shortlist-body ol > li:nth-child(n+5) { margin-left: 4rem; }
}
.shortlist-body > p > strong:first-child { font-family: var(--font-label); font-size: 1.08em; }
.shortlist-body ul, .case-notes ul, .brief-body ul, .intake-body ul, .filed-body ul, .criteria-grid ul {
  list-style: none;
  padding: 0;
}
.shortlist-body ul > li, .case-notes ul > li, .brief-body ul > li, .intake-body ul > li, .filed-body ul > li, .criteria-grid ul > li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.9rem;
  border-bottom: 1px solid var(--rule-soft);
}
.shortlist-body ul > li::before, .case-notes ul > li::before, .brief-body ul > li::before, .intake-body ul > li::before, .filed-body ul > li::before, .criteria-grid ul > li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.9rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--amber);
}

.case-sheets {
  margin-top: 3rem;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 1.5rem;
  border-top: 5px solid var(--amber);
}
.case-sheets h2 { font-size: 1.2rem; }
.case-sheet-tabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.6rem;
}
.case-sheet-tabs li a {
  display: flex;
  align-items: center;
  min-height: 46px;
  height: 100%;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-label);
  font-weight: 600;
  text-decoration: none;
  background: var(--navy);
  border-left: 5px solid var(--amber);
}
.case-sheet-tabs li a:hover { text-decoration: underline; }

/* ---------- Provider review: single case sheet ---------- */

.page-case { max-width: 52rem; }
.case-header .head-title h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
.stamp-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.25rem 0 0; }
.stamp {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  border: 3px double var(--amber);
  border-radius: 4px;
  transform: rotate(-3deg);
}
.stamp-quiet { color: var(--paper); border-color: var(--rule); transform: rotate(2deg); }
.case-notes > p > strong:first-child { font-family: var(--font-label); }

/* ---------- Comparison: two tabbed spec sheets over a grid of criteria tiles ---------- */

.spec-head { position: relative; }
.spec-head::after {
  content: "";
  position: absolute;
  right: clamp(1.25rem, 4vw, 2.5rem);
  top: 0;
  width: 7rem;
  height: 1.9rem;
  background:
    linear-gradient(var(--amber), var(--amber)) 0 0 / 3.25rem 100% no-repeat,
    linear-gradient(var(--rule), var(--rule)) 100% 0 / 3.25rem 100% no-repeat;
  border-radius: 0 0 7px 7px;
}
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
  align-items: start;
}
.criteria-grid > * { grid-column: 1 / -1; max-width: none; }
.criteria-grid > p {
  grid-column: auto;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem 1rem;
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  border-top: 4px solid var(--amber);
}
.criteria-grid > p:nth-of-type(even) { border-top-color: var(--rule); }
.criteria-grid > p > strong:first-child { display: block; margin-bottom: 0.3rem; font-family: var(--font-label); font-size: 1.05em; }
.criteria-grid > h2 { margin-top: 1.5rem; padding-top: 0.75rem; border-top: 2px solid var(--rule); }
.criteria-grid > ul, .criteria-grid > ol { max-width: var(--measure); }

/* ---------- About: navy rail of the brief beside the statement ---------- */

.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.brief-rail {
  position: sticky;
  top: 5.5rem;
  padding: 0 1.25rem 1.5rem;
  border: 1px solid var(--rule-soft);
  box-shadow: inset 0 5px 0 var(--amber);
}
.brief-rail .head-title h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.rail-caption { margin: 1.5rem 0 0.5rem; font-family: var(--font-label); font-weight: 600; font-size: 0.95rem; }
.rail-index { list-style: none; margin: 0; padding: 0; }
.rail-index a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-label);
  font-weight: 500;
  text-decoration: none;
  border-left: 4px solid var(--amber);
}
.rail-index li + li { margin-top: 0.3rem; }
.rail-index a:hover { text-decoration: underline; }
.brief-body > :first-child { margin-top: 0; }

/* ---------- Contact: notes beside the intake sheet ---------- */

.intake-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.intake-title h1 { margin: 0 0 1.25rem; }
.intake-sheet {
  position: sticky;
  top: 5.5rem;
  padding: 0 clamp(1rem, 3vw, 1.75rem) 1.75rem;
  border: 1px solid var(--rule-soft);
  box-shadow: inset 0 5px 0 var(--amber);
}
.intake-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1rem;
  margin-bottom: 1.5rem;
}
.field-wide { grid-column: 1 / -1; }
.field-tab {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--on-amber);
  background: var(--amber);
  border-radius: var(--tab-radius);
}
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--paper);
  background: var(--navy);
  border: 1.5px solid var(--rule);
  border-top: 2px solid var(--amber);
  border-radius: 0 4px 4px 4px;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sheet-button {
  min-height: 46px;
  padding: 0.6rem 1.6rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--on-amber);
  background: var(--amber);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.sheet-button:hover { background: var(--amber-hi); }
.sheet-button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- Thank you: the filed stamp beside the notes ---------- */

.filed-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.filed-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  border: 1px solid var(--rule-soft);
  box-shadow: inset 0 5px 0 var(--amber);
}
.filed-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9.5rem;
  height: 9.5rem;
  margin-bottom: 1.75rem;
  border: 6px double var(--amber);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.filed-stamp span {
  padding: 0.15rem 0.9rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  border-top: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
}
.filed-title h1 { margin: 0 0 1.25rem; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); }
.filed-return {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.25rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.05rem;
}
.filed-body > :first-child { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer { margin-top: auto; border-top: 3px solid var(--amber); }
.footer-sheet { max-width: var(--wide); margin: 0 auto; padding: 1.75rem var(--gutter) 2.25rem; }
.footer-sheet p { margin: 0 0 0.35rem; }
.footer-name { font-family: var(--font-label); font-weight: 600; font-size: 1.05rem; }
.footer-line { font-size: 0.95rem; }

/* ---------- Narrow screens ---------- */

@media (max-width: 55.99rem) {
  .cover-grid, .brief-grid, .intake-split, .filed-split, .criteria-grid { grid-template-columns: minmax(0, 1fr); }
  .brief-rail, .intake-sheet { position: static; }
}

@media (max-width: 35.99rem) {
  .intake-fields { grid-template-columns: minmax(0, 1fr); }
  .brand-name { font-size: 0.9rem; max-width: 11rem; }
  .brand .site-logo { width: 2.1rem; height: 2.1rem; }
  .menu-label { font-size: 0.92rem; }
  .file-tabs ul { padding-left: 0; }
  .spec-head::after { display: none; }
}

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