/* Hospital Activation — site styles
   Palette: deep navy, muted teal, warm white. No external dependencies. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-opsz.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #14243d;
  --navy-2: #22385a;
  --teal: #2c6964;        /* 5.9:1 on --paper */
  --teal-dark: #1f504c;
  --teal-soft: #dce8e5;
  --teal-line: #9fbfba;
  --paper: #fbf8f3;
  --paper-2: #f3eee5;
  --white: #ffffff;
  --text: #1c2433;
  --muted: #4f5968;        /* 6.9:1 on --paper */
  --line: #d9d2c5;
  --line-strong: #b9b0a0;
  --amber: #7a4a00;
  --amber-bg: #fdf1dc;

  --serif: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.03rem, 0.99rem + 0.2vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.6vw, 3.8rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --space: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --radius: 3px;
  --focus: 3px solid #b3541e;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 500; }
h3, .h3 { font-size: var(--step-1); }
p, ul, ol, dl { margin: 0 0 1.1em; }
p { text-wrap: pretty; }

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(20, 36, 61, 0.07);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

.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: 1rem; top: -4rem;
  z-index: 10;
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1rem;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap {
  width: 100%;
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.measure { max-width: 40rem; }
.measure-wide > * { max-width: 60rem; }

/* ------------------------------------------------ preview + config notices */

.preview-banner {
  background: var(--amber-bg);
  border-bottom: 1px solid #e3c790;
  color: var(--amber);
  font-size: var(--step--1);
  text-align: center;
  padding: 0.5rem var(--gutter);
}
.preview-banner p { margin: 0; }


/* ------------------------------------------------ header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--navy); }
.brand__mark { width: 1.9rem; height: 1.9rem; flex: none; color: var(--navy); }
.brand__dot { fill: var(--teal); }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.97rem;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--teal-line); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); font-weight: 600; }

@media (max-width: 40rem) {
  .site-header__inner { flex-direction: column; align-items: flex-start; }
  .nav ul { gap: 0.25rem 1.1rem; }
}

/* ------------------------------------------------ shared blocks */

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.lead {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--navy-2);
}

.section-ref {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.section-ref span {
  font-family: var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  color: var(--teal);
  border: 1px solid var(--teal-line);
  padding: 0.05rem 0.45rem;
  border-radius: 2px;
}

.section { padding-block: var(--space); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }
.section--tint + .section, .section + .section--tint { border-top: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.button {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
}
.button:hover { background: var(--navy-2); color: var(--white); text-decoration: none; }
.button--quiet { background: transparent; color: var(--navy); }
.button--quiet:hover { background: var(--white); color: var(--navy); }

.arrow-link { font-weight: 600; text-decoration: none; }
.arrow-link::after { content: " →"; }
.arrow-link:hover { text-decoration: underline; }

.small, .note { font-size: var(--step--1); color: var(--muted); }

/* ------------------------------------------------ home */

.hero {
  position: relative;
  isolation: isolate;
  background: #0f1f36;
  color: #dfe6ef;
  overflow: hidden;
}
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}
.hero__inner {
  position: relative;
  padding-block: clamp(3.5rem, 3rem + 5vw, 8rem);
}
.hero__text { max-width: 37rem; }
.hero__title { color: var(--white); max-width: 14ch; }
.hero .eyebrow { color: #9fd0c9; }
.hero .lead { color: #f1ede6; }
.hero__text > p:not(.eyebrow):not(.actions) { max-width: 34rem; }
.hero :focus-visible { outline-color: #f2b27c; }
.hero__credit {
  position: absolute;
  right: var(--gutter);
  bottom: 0.75rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 52.01rem) {
  .hero { min-height: min(46rem, 82vh); display: flex; align-items: center; }
  .hero__media { position: absolute; inset: 0; z-index: -1; }
  /* Deepen the image's own navy left side so the text keeps strong contrast. */
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0f1f36 0%, rgba(15, 31, 54, 0.94) 40%, rgba(15, 31, 54, 0.6) 54%, rgba(15, 31, 54, 0) 74%);
  }
  .hero__inner { width: 100%; }
}
@media (max-width: 52rem) {
  .hero { display: flex; flex-direction: column; }
  .hero__inner { order: 1; padding-bottom: 2.5rem; }
  .hero__media { order: 2; aspect-ratio: 4 / 3; }
  .hero__media img { object-position: 78% 50%; }
  .hero__credit { position: static; order: 3; padding: 0.5rem var(--gutter) 0.75rem; text-align: right; }
}

.button--light { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.button--light:hover { background: var(--white); color: var(--navy); }
.button--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.button--outline-light:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.figure { margin: 2.5rem 0 0; }
.figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-2);
}
.figure figcaption {
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 44rem;
}
.figure__credit {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 0 0.35rem;
  border-radius: 2px;
  margin-left: 0.25rem;
  vertical-align: 0.1em;
}
.measure-wide > .figure--wide { max-width: none; }
.figure--wide img { border: 1px solid var(--line); }
.figure--inset { max-width: 26rem; margin-top: 2rem; }
.figure--inset figcaption, .figure--inset figcaption .figure__credit { margin-left: 0; }
.figure--prose { margin: 2rem 0; max-width: 36rem; }
.figure--prose img { border: 1px solid var(--line); }
.figure--square { max-width: 30rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 1.5rem;
}
@media (max-width: 48rem) { .two-col { grid-template-columns: 1fr; } }

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.section-intro h2 { margin: 0; }
.section-intro p { margin: 0; color: var(--muted); max-width: 34rem; }
@media (max-width: 48rem) { .section-intro { grid-template-columns: 1fr; } }

.area-cards {
  list-style: none;
  counter-reset: area;
  padding: 0;
  margin: 2.5rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.area-card {
  counter-increment: area;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}
.area-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.area-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.area-card__media::after {
  content: "0" counter(area);
  position: absolute;
  left: 0; bottom: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-size: 1.05rem;
  padding: 0.35rem 0.75rem;
}
.area-card__body { padding: 1.25rem 1.25rem 1.5rem; border-top: 3px solid var(--teal); flex: 1; }
.area-card__title { font-size: var(--step-1); margin-bottom: 0.5rem; }
.area-card__body p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.area-cards__note { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; }
@media (max-width: 64rem) { .area-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .area-cards { grid-template-columns: 1fr; } }

/* Full-bleed photo band with a text panel */
.band {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; z-index: -1; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; }
.band__inner { display: flex; justify-content: flex-end; padding-block: clamp(4rem, 3rem + 8vw, 10rem); }
.band__panel {
  background: rgba(251, 248, 243, 0.96);
  border-top: 4px solid var(--teal);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  max-width: 30rem;
  box-shadow: 0 20px 50px rgba(15, 31, 54, 0.18);
}
.band__panel h2 { font-size: var(--step-3); }
.band__panel p:last-child { margin-bottom: 0; }
.band__credit {
  position: absolute;
  left: var(--gutter);
  bottom: 0.75rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(15, 31, 54, 0.6);
  padding: 0.1rem 0.45rem;
}
@media (max-width: 48rem) {
  .band { display: flex; flex-direction: column; background: var(--paper-2); }
  .band__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
  .band__inner { padding-block: 0 2.5rem; margin-top: -3rem; position: relative; }
  .band__credit { top: 0.75rem; bottom: auto; }
}

/* Split image + navy call to action */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--navy);
  color: #dfe6ef;
}
.cta__media { position: relative; min-height: 22rem; }
.cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; }
.cta__credit {
  position: absolute;
  left: 1rem; bottom: 0.75rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(15, 31, 54, 0.6);
  padding: 0.1rem 0.45rem;
}
.cta__panel { padding: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(1.5rem, 1rem + 4vw, 5rem); align-self: center; max-width: 40rem; }
.cta__panel h2 { color: var(--white); }
.cta .eyebrow { color: #9fd0c9; }
.cta :focus-visible { outline-color: #f2b27c; }
@media (max-width: 52rem) {
  .cta { grid-template-columns: 1fr; }
  .cta__media { min-height: 0; aspect-ratio: 16 / 10; }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

.contents-list {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.contents-list li {
  counter-increment: item;
  border-bottom: 1px solid var(--line-strong);
}
.contents-list a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  padding: 0.95rem 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--navy);
  text-decoration: none;
  line-height: 1.3;
}
.contents-list a::before {
  content: counter(item, decimal-leading-zero);
  color: var(--teal);
  font-size: 0.8em;
  padding-top: 0.15em;
}
.contents-list a:hover { color: var(--teal-dark); text-decoration: underline; text-decoration-thickness: 1px; }

/* ------------------------------------------------ inner page head */

.page-head {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 2.5rem + 3vw, 5.5rem) clamp(2.25rem, 2rem + 2vw, 3.5rem);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(20, 36, 61, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 36, 61, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.page-head h1 { max-width: 20ch; }
.page-meta { font-size: var(--step--1); color: var(--muted); margin: 0; }
.page-head--image { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.page-head__media { margin: 0; }
.page-head__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 4px solid var(--teal);
  box-shadow: 0 18px 40px rgba(15, 31, 54, 0.14);
}
.page-head__media figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.75rem; }
.page-head__media .figure__credit { margin: 0 0.35rem 0 0; }
@media (max-width: 52rem) { .page-head__grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------ guide */

.guide {
  display: grid;
  grid-template-columns: 15rem minmax(0, 44rem);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--space);
}
.toc { font-size: 0.95rem; }
.toc__title {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-strong); }
.toc li a {
  display: block;
  padding: 0.4rem 0 0.4rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.35;
}
.toc li a:hover { border-left-color: var(--teal); color: var(--teal-dark); }
@media (min-width: 60.01rem) {
  .toc { position: sticky; top: 1.5rem; align-self: start; }
}
@media (max-width: 60rem) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .toc { border: 1px solid var(--line); background: var(--white); padding: 1.25rem 1.25rem 0.75rem; }
}

.prose > section { padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-bottom: 1px solid var(--line); }
.prose > section:last-of-type { border-bottom: 0; }
.prose h2 { font-size: var(--step-3); }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.6rem; }
.prose li::marker { color: var(--teal); }

.table-wrap { position: relative; overflow-x: auto; margin: 1.5rem 0 1.75rem; border: 1px solid var(--line); background: var(--white); }
.table-wrap:focus-visible { outline: var(--focus); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
caption {
  text-align: left;
  caption-side: top;
  padding: 0.85rem 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
th, td { text-align: left; vertical-align: top; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tbody th { font-family: var(--serif); color: var(--navy); font-weight: 600; width: 34%; }
.table--record { min-width: 40rem; }
.table--record tbody th { font-family: var(--sans); font-weight: 500; font-size: 0.93rem; width: 30%; }
.table--record td.blank {
  background-image: linear-gradient(to right, var(--line-strong) 50%, transparent 0);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  background-position: 1rem calc(100% - 1.1rem);
}

.questions { margin: 2rem 0; border-top: 2px solid var(--navy); }
.question {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.question dt { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.08rem; line-height: 1.35; }
.question dd { margin: 0; }
@media (max-width: 40rem) { .question { grid-template-columns: 1fr; } }

.callout {
  border-left: 3px solid var(--teal);
  background: var(--white);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout__label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.faqs { border-top: 2px solid var(--navy); }
.faq { padding: 1.5rem 0 0.5rem; border-bottom: 1px solid var(--line); }
.faq__q { font-size: var(--step-1); margin: 0 0 0.6rem; }

.next-steps { background: var(--paper-2); padding: 1.5rem 1.75rem !important; border: 0 !important; }
.next-links { list-style: none; padding: 0 !important; margin: 0; }
.next-links li { margin-bottom: 0.35rem; }

/* ------------------------------------------------ resource cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card-grid--featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 1.5rem 1.5rem 1.25rem;
}
.card[hidden] { display: none; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: var(--step--1);
}
.card__scope { color: var(--navy); font-weight: 500; }
.card__scope-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.3rem;
}
.card__title { font-size: 1.3rem; line-height: 1.25; margin-bottom: 0.35rem; }
.card__org { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.1rem; }
.card__why { margin-bottom: 1.25rem; }
.card__details { margin: 0 0 1rem; }
.card__details div { margin-bottom: 0.9rem; }
.card__details dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
}
.card__details dd { margin: 0; font-size: 0.98rem; }
.card__caveat {
  font-size: 0.92rem;
  background: var(--paper);
  border-left: 2px solid var(--line-strong);
  padding: 0.6rem 0.85rem;
  color: var(--text);
}
.card__links {
  list-style: none;
  padding: 1rem 0 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
}
.card__links li { margin-bottom: 0.5rem; }
.ext-link { font-weight: 600; }
.ext-link::after {
  content: "\2197";
  content: "\2197" / "";
  display: inline-block;
  margin-left: 0.25em;
  font-weight: 400;
  text-decoration: none;
}
.card__checked { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0; }
.card__checked--no { color: var(--amber); font-weight: 600; }

.tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  border: 1px solid currentColor;
  line-height: 1.4;
}
.tag--guidance { color: var(--navy); background: #e6ebf2; border-color: #b5c1d3; }
.tag--toolkit { color: var(--teal-dark); background: var(--teal-soft); border-color: var(--teal-line); }
.tag--project-example { color: #5a3d12; background: #f4e9d6; border-color: #d9c19a; }
.tag--historical-example { color: #4a4458; background: #ebe8f0; border-color: #c4bdd0; }

.format {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 0.05rem 0.4rem;
  border-radius: 2px;
  white-space: nowrap;
  vertical-align: 0.1em;
}
.format--pdf { color: #8a2c14; border-color: #d9a898; background: #fbeee9; }

/* ------------------------------------------------ library page */

.library { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) var(--space); }
.library-note {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 48rem;
  border-left: 3px solid var(--teal);
  padding-left: 1rem;
  margin-bottom: 2rem;
}
.library-note p { margin: 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.filters__label { font-size: var(--step--1); font-weight: 600; color: var(--muted); margin-right: 0.35rem; }
.filter {
  font: inherit;
  font-size: 0.92rem;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  min-height: 2.5rem;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filter__count { opacity: 0.75; font-variant-numeric: tabular-nums; margin-left: 0.2rem; }
.filters__status { font-size: var(--step--1); color: var(--muted); margin: 0.5rem 0 0.75rem; }
.filters[hidden] + .filters__status { display: none; }

.type-key { font-size: 0.93rem; margin-bottom: 0.5rem; }
.type-key summary { cursor: pointer; color: var(--teal); font-weight: 600; width: fit-content; }
.type-key dl { margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.type-key dl div { display: grid; grid-template-columns: 13rem 1fr; gap: 1rem; align-items: baseline; }
.type-key dd { margin: 0; color: var(--muted); }
@media (max-width: 36rem) { .type-key dl div { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ------------------------------------------------ about */

.about { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) var(--space); }
.section-block { max-width: 44rem; margin-bottom: 3rem; }
.section-block h2 { font-size: var(--step-2); }
.section-block ul { padding-left: 1.2rem; }
.section-block li { margin-bottom: 0.6rem; }
.section-block li::marker { color: var(--teal); }


/* ------------------------------------------------ footer */

.site-footer {
  background: var(--navy);
  color: #c9d2df;
  padding-block: 3rem 2.5rem;
  font-size: 0.93rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
}
.site-footer .brand { color: var(--white); margin-bottom: 0.75rem; }
.site-footer .brand__mark { color: var(--white); }
.site-footer .brand__dot { fill: #7fb8b0; }
.site-footer__about p:last-child { max-width: 32rem; }
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.site-footer__nav li { margin-bottom: 0.5rem; break-inside: avoid; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #bfe0db; }
.site-footer :focus-visible { outline-color: #f2b27c; }
.site-footer__note {
  grid-column: 1 / -1;
  border-top: 1px solid #34496b;
  padding-top: 1.5rem;
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #aebacb;
  max-width: 60rem;
}
@media (max-width: 44rem) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__nav ul { columns: 1; }
}

/* ------------------------------------------------ motion + print */

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

@media print {
  .site-header, .site-footer, .skip-link, .preview-banner, .toc, .filters, .hero__figure, .actions { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .hero, .page-head { background: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
  .card { break-inside: avoid; }
}

/* ------------------------------------------------ case studies (published project examples) */

.section--navy { background: var(--navy); color: #dfe6ef; }
.section--navy h2 { color: var(--white); }
.section--navy .section-intro p { color: #c9d2df; }
.section--navy :focus-visible { outline-color: #f2b27c; }
.section-ref--light { color: #b8c4d6; }
.section-ref--light span { color: #9fd0c9; border-color: #4f6d7a; }

.cases {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}
.case {
  display: flex;
  flex-direction: column;
  background: #1b2e4c;
  border: 1px solid #34496b;
  border-top: 3px solid #7fb8b0;
  padding: 1.5rem;
}
.case__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #b8c4d6;
  margin-bottom: 0.9rem;
}
.case__type { color: #9fd0c9; }
.case__title { color: var(--white); font-size: 1.25rem; line-height: 1.3; margin-bottom: 0.6rem; }
.case__source { font-size: 0.93rem; color: #dfe6ef; margin-bottom: 0.9rem; }
.case__source .card__source-label { color: #9fd0c9; }
.case__why { font-size: 0.97rem; color: #c9d2df; }
.case__caveat { font-size: 0.88rem; color: #b8c4d6; border-left: 2px solid #4f6d7a; padding-left: 0.75rem; }
.case__link { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid #34496b; }
.case .ext-link { color: var(--white); }
.case .ext-link:hover { color: #bfe0db; }
.case .format { color: #c9d2df; border-color: #4f6d7a; }
.case .format--pdf { color: #ffd9cc; background: transparent; border-color: #9a5a48; }

.card__source-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-right: 0.3rem;
}
