/* ---------- Tokens ---------- */
:root {
  --color-bg: #faf7f1;
  --color-surface: #ffffff;
  --color-navy: #1c3638;
  --color-navy-dark: #132526;
  --color-accent: #bf5b2e;
  --color-accent-dark: #9c4a24;
  --color-text: #2a2a26;
  --color-text-muted: #5c5c54;
  --color-border: #ddd5c4;
  --color-success: #3f6b4a;
  --color-success-bg: #eaf1e8;

  --font-heading: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;

  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
}

h1 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  text-align: left;
}

a {
  color: var(--color-accent-dark);
}

/* ---------- Site header / nav ---------- */
.site-header {
  background: var(--color-navy);
  color: #f3efe6;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  color: #cfd8d3;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  color: #f3efe6;
}

.site-nav a[aria-current="page"] {
  color: #f3efe6;
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

.site-nav .nav-check {
  color: var(--color-accent);
  font-weight: 700;
}

.site-nav .nav-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  color: #7c8b86;
  font-size: 0.92rem;
  border-bottom: 3px solid transparent;
  cursor: not-allowed;
}

.nav-lock-icon {
  font-size: 0.8rem;
}

/* Positioned ancestor for the nested .site-subnav below -- only the active section's
   <li> carries this (see renderNav/navItem in js/app.js). */
.site-nav li.has-subnav {
  position: relative;
}

/* Centered under its own parent tab, not the nav bar -- left:50% + translateX(-50%) is
   relative to the nearest positioned ancestor, which is that tab's own <li> above.
   Items stack vertically (one per line), each centered within the dropdown's own
   width, which is set by whichever item's label is longest. Absolutely positioned, so
   it never affects layout/flow either collapsed or expanded -- only hover visibility
   changes below. */
.site-subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.6rem 0.6rem;
  white-space: nowrap;
  background: var(--color-navy);
  border-radius: 0 0 3px 3px;
  z-index: 10;
}

/* Collapsed by default; expands while hovering (or keyboard-focusing) the tab itself OR
   the dropdown that hangs below it -- :hover/:focus-within on the <li> covers both,
   since a descendant being hovered/focused also counts as the ancestor being
   hovered/focused, regardless of the descendant's own position:absolute placement. */
.site-nav li.has-subnav:hover .site-subnav,
.site-nav li.has-subnav:focus-within .site-subnav {
  display: flex;
}

.site-subnav li {
  margin: 0;
}

.site-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  color: #a9b8b3;
  text-decoration: none;
  font-size: 0.8rem;
  border-bottom: 2px solid transparent;
}

.site-subnav a:hover {
  color: #f3efe6;
}

.site-subnav a[aria-current="page"] {
  color: #f3efe6;
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

/* ---------- Layout ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

.page-nav-buttons {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  text-align: right;
}

.copyright {
  margin: 0;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: right;
}

.copyright a {
  color: inherit;
}

.copyright a:hover {
  color: var(--color-navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-primary:disabled {
  background: #d8ceba;
  color: #8c8672;
  cursor: not-allowed;
}

/* Slightly elevated variant for the homepage's primary call-to-action -- stands apart
   from the standard .btn-primary used for in-page nav/quiz buttons. Full-width so it
   matches the length of the .section-menu-item cards it sits below. */
.btn-cta {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(191, 91, 46, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-cta:hover {
  box-shadow: 0 5px 14px rgba(191, 91, 46, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: #fff;
}

/* ---------- Home page ---------- */
.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.hero-text {
  min-width: 0;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 48ch;
  margin: 0 0 1.75rem;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Secondary course facts -- deliberately smaller and muted so they don't compete
   with the hero title/illustration or the course-section list below. */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.course-meta p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.course-meta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.course-progress-summary {
  margin: 0 0 1.25rem;
}

.course-progress-label {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.course-progress-bar {
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.course-progress-bar-fill {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.section-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1rem 1.25rem;
  border-radius: 3px;
}

.section-menu-item a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 600;
}

.section-menu-item a:hover {
  text-decoration: underline;
}

.section-menu-status {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.section-menu-status.is-complete {
  color: var(--color-accent);
  font-weight: 600;
}

/* ---------- Two-column content ---------- */
.content-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.content-columns h2:first-child,
.content-columns h3:first-child {
  margin-top: 0;
}

@media (max-width: 720px) {
  .content-columns {
    grid-template-columns: 1fr;
  }
}

/* ---------- Avatar + speech bubble ---------- */
.speech-bubble {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  flex: 1 1 auto;
}

.speech-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  width: 12px;
  height: 12px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transform: rotate(45deg);
}

.speech-bubble--patient {
  border-top: 3px solid var(--color-navy);
}

.speech-bubble--therapist {
  border-top: 3px solid var(--color-accent);
}

.speech-bubble p {
  margin: 0;
}

.speech-bubble .example-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

/* ---------- Rapport showcase (Warm/Professional stacked reveal boxes + avatar) ---------- */
.rapport-showcase {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  margin: 1.5rem 0 2rem;
}

.rapport-showcase-content {
  flex: 1 1 auto;
  min-width: 0;
}

.rapport-showcase-content h3:first-child {
  margin-top: 0;
}

.rapport-showcase-image {
  flex: 0 0 200px;
  width: 200px;
  max-width: 100%;
  height: auto;
}

/* Collapsed to just its heading until opened (hover/focus, via initStickyReveal in
   js/app.js) -- once opened it stays open permanently. */
.behavior-reveal {
  cursor: pointer;
  margin: 0 0 0.5rem;
}

.behavior-reveal::before {
  display: none;
}

.behavior-reveal h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.behavior-reveal ul {
  max-height: 0;
  margin: 0;
  padding-left: 1.1rem;
  opacity: 0;
  overflow: hidden;
  font-size: 1rem;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}

.behavior-reveal li {
  margin-bottom: 0.25rem;
}

.behavior-reveal.is-open ul {
  max-height: 20rem;
  opacity: 1;
  margin-top: 0.6rem;
}

@media (max-width: 720px) {
  .rapport-showcase {
    flex-direction: column;
    align-items: center;
  }

  .rapport-showcase-image {
    flex: 0 0 auto;
    width: 180px;
  }
}

/* ---------- Quiz ---------- */
.quiz {
  margin-top: 1rem;
}

.quiz-question {
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 1rem 1.25rem 1.25rem;
  margin: 0 0 1.25rem;
  background: var(--color-surface);
}

.quiz-question h2:first-child {
  margin-top: 0;
}

.quiz-feedback {
  margin: 0.75rem 0 0;
  font-weight: 600;
  min-height: 1.2em;
}

.quiz-feedback.is-correct {
  color: var(--color-success);
}

.quiz-feedback.is-incorrect {
  color: var(--color-accent-dark);
}

/* ---------- Drag-and-drop quiz (section 2) ---------- */
.dragdrop-subheading {
  color: var(--color-text-muted);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.dragdrop-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.dragdrop-pool,
.dragdrop-boxes {
  flex: 1 1 50%;
  min-width: 0;
}

.dragdrop-pool {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem;
  border: 1px dashed transparent;
  border-radius: 3px;
}

.dragdrop-pool.is-dragover {
  border-color: var(--color-accent);
  background: #fbeee5;
}

.dragdrop-chip {
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.45rem 0.7rem;
  cursor: grab;
  color: var(--color-text);
}

.dragdrop-chip:hover {
  border-color: var(--color-accent);
}

.dragdrop-chip.is-picked {
  border-color: var(--color-accent);
  background: #fbeee5;
  font-weight: 600;
}

.dragdrop-boxes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dragdrop-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.4rem 0.6rem;
  border: 1px dashed var(--color-border);
  border-radius: 3px;
  background: var(--color-bg);
  cursor: pointer;
}

.dragdrop-box.is-filled {
  border-style: solid;
  background: var(--color-surface);
  cursor: grab;
}

.dragdrop-box.is-picked,
.dragdrop-box.is-dragover {
  border-color: var(--color-accent);
  background: #fbeee5;
}

.dragdrop-box-placeholder {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.dragdrop-box-text {
  font-size: 0.92rem;
}

.dragdrop-box-remove {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.dragdrop-box-remove:hover {
  color: var(--color-accent-dark);
}

.dragdrop-check {
  margin-top: 0.9rem;
}

@media (max-width: 720px) {
  .dragdrop-body {
    flex-direction: column;
  }
}

/* ---------- Reflection blocks (section 3) ---------- */
.reflection-block {
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: var(--color-surface);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.reflection-block.is-complete {
  border-color: var(--color-success);
}

.reflection-block h3 {
  margin-top: 0;
}

.video-placeholder {
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: 3px;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.privacy-notice {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-left: 3px solid var(--color-navy);
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

.reflection-progress {
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.reflection-question {
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  border-radius: 3px;
}

.reflection-question label,
.reflection-question .reflection-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.reflection-question textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  resize: vertical;
}

.rating-scale {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rating-endpoint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.rating-option,
.yesno-option {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.yesno-options {
  display: flex;
  gap: 1.25rem;
}

.reflection-question.is-flagged {
  outline: 2px solid var(--color-accent);
  background: #fbeee5;
}

.reflection-message {
  min-height: 1.2em;
  font-weight: 600;
}

.reflection-message.is-error {
  color: var(--color-accent-dark);
}

/* ---------- Patient showcase (image flanked by two stacked speech-bubble columns) ---------- */
.patient-showcase {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 1.25rem 0 2rem;
}

.patient-showcase-image {
  flex: 0 0 280px;
  width: 280px;
  height: 420px; /* fallback until JS matches it to the taller column's full height */
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.patient-showcase-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

/* Mirror the speech-bubble tail so left-column bubbles point right, toward the
   image -- right-column bubbles already point left by default, which is correct. */
.patient-showcase-col--left .speech-bubble::before {
  left: auto;
  right: -7px;
  border-left: none;
  border-bottom: none;
  border-right: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

/* Bubbles show only their heading until opened (hover/focus); once opened, JS keeps
   them open by adding .is-open, so collapsing back to the heading only is not possible. */
.patient-showcase-col .speech-bubble {
  cursor: pointer;
}

.patient-showcase-col .speech-bubble p {
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  font-style: italic;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}

.patient-showcase-col .speech-bubble.is-open p {
  max-height: 12rem;
  opacity: 1;
  margin-top: 0.5rem;
}

/* Used momentarily by JS to measure a column's fully-expanded height. */
.patient-showcase-col.force-open-measure .speech-bubble p {
  max-height: none !important;
  opacity: 1 !important;
  margin-top: 0.5rem !important;
  transition: none !important;
}

@media (max-width: 720px) {
  .patient-showcase {
    flex-direction: column;
    align-items: center;
  }

  .patient-showcase-image {
    order: -1;
    flex: 0 0 auto;
    width: 260px;
    height: auto;
  }

  .patient-showcase-col {
    width: 100%;
  }

  .patient-showcase-col--left .speech-bubble::before,
  .patient-showcase-col--right .speech-bubble::before {
    display: none;
  }
}

/* ---------- Quote showcase (avatar flanked by hover-reveal quote bubbles) ---------- */
.quote-showcase {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  justify-content: center;
}

.quote-showcase-image {
  flex: 0 0 180px;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.quote-showcase-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Mirror the speech-bubble tail so left-column bubbles point right, toward the avatar
   (right-column bubbles already point left by default, which is correct as-is). */
.quote-showcase-col--left .speech-bubble::before {
  left: auto;
  right: -7px;
  border-left: none;
  border-bottom: none;
  border-right: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 720px) {
  .quote-showcase {
    flex-direction: column;
    align-items: center;
  }

  .quote-showcase-image {
    order: -1;
    width: 160px;
  }

  .quote-showcase-col {
    width: 100%;
  }

  .quote-showcase-col--left .speech-bubble::before,
  .quote-showcase-col--right .speech-bubble::before {
    display: none;
  }
}

/* Sticky-reveal variant of a .quote-showcase-col (used on the Inspect and Enhance
   pages): bubbles stay open permanently once opened via hover/focus (initStickyReveal
   adds .is-open) instead of collapsing again on mouseout/blur. The Inspect page also
   adds a heading above each column; the Enhance page uses this without one. */
.explore-col h4 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.explore-col .speech-bubble {
  cursor: pointer;
}

.explore-col .speech-bubble p {
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 1rem;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}

.explore-col .speech-bubble.is-open p {
  max-height: 40rem;
  opacity: 1;
  margin-top: 0.5rem;
}

/* ---------- Outcome row (icon + label + citation, three across) ---------- */
.outcome-row {
  display: flex;
  margin: 1.5rem 0;
}

.outcome-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 1.5rem 1.25rem 0.5rem;
  text-align: center;
}

.outcome-item:first-child {
  padding-left: 0.25rem;
}

.outcome-icon-img {
  display: block;
  width: 110px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 0.75rem;
  cursor: default;
  mix-blend-mode: multiply;
  transition: transform 0.15s ease;
}

.outcome-icon-img:hover {
  transform: scale(1.12);
}

.outcome-label {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: font-size 0.15s ease;
}

.outcome-icon-img:hover ~ .outcome-label {
  font-size: 1.2rem;
}

.outcome-citation {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  text-align: center;
}

.outcome-conclusion {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-navy);
  border-radius: 3px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f3efe6;
  text-align: center;
}

@media (max-width: 720px) {
  .outcome-row {
    flex-direction: column;
  }

  .outcome-item {
    padding: 1.25rem 0.25rem;
  }

  .outcome-item:first-child {
    padding-top: 0;
  }
}

/* ---------- Citations ---------- */
.citation-group {
  color: var(--color-text-muted);
}

.citation {
  cursor: help;
  border-bottom: 1px dotted var(--color-text-muted);
}

.citation:hover,
.citation:focus {
  color: var(--color-navy);
  outline: none;
}

.citation-tooltip {
  position: fixed;
  display: none;
  max-width: 320px;
  background: var(--color-navy);
  color: #f3efe6;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0.6rem 0.8rem;
  border-radius: 3px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  z-index: 50;
  pointer-events: none;
}

.citation-tooltip.is-visible {
  display: block;
}

/* ---------- PIE overview (section 2.0) ---------- */
.overview-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* Tightened only on this page (not the shared main/.page-footer rules used by every
   other page) -- the hero image sits right above the footer nav, so the usual
   generous main/page-footer spacing reads as a big empty gap here. */
body[data-page="section2-0"] main {
  padding-bottom: 1.5rem;
}

body[data-page="section2-0"] .page-footer {
  margin-top: 1rem;
}

.overview-hero-text {
  min-width: 0;
}

.overview-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 42ch;
  margin: 0;
}

.overview-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

@media (max-width: 720px) {
  .overview-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------- Summary page image ---------- */
.summary-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2rem;
  border-radius: 3px;
}

/* ---------- About page ---------- */
.contact-block {
  border-left: 3px solid var(--color-navy);
  padding-left: 1rem;
}

.last-updated {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Print (Summary page "Download This Summary" -> window.print()) ---------- */
.print-title,
.print-footer {
  display: none;
}

.download-summary-action {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

@media print {
  .site-header,
  .page-footer,
  .site-footer,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12pt;
    line-height: 1.5;
  }

  main {
    max-width: 100%;
    padding: 0;
  }

  main p,
  main li {
    text-align: justify;
  }

  h1,
  h2,
  h3,
  .print-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14pt;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    text-transform: none;
    color: #000;
    break-after: avoid;
  }

  li {
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .citation {
    border-bottom: none;
  }

  .print-title {
    display: block;
    margin: 0 0 0.5rem;
  }

  .summary-image {
    display: block;
    width: 480px;
    max-width: 480px;
    height: auto;
    margin: 0.75rem auto 0;
    border: none;
    break-inside: avoid;
  }

  .print-footer {
    display: block;
    margin-top: 0.75rem;
    font-size: 9pt;
    color: #000;
  }
}
