/* Shared layout for the multi-page site. Loads after styles.css. */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  color: white;
  background: var(--forest-dark);
  border-radius: 5px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.preview-banner {
  margin: 0;
  padding: 10px 20px;
  color: var(--ink);
  background: var(--sage);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: center;
}

/* Header navigation */
.site-nav { gap: 24px; }
.site-nav a[aria-current="page"] { color: var(--forest); text-decoration: underline; text-underline-offset: 6px; }
.site-nav .nav-secondary { padding-left: 24px; border-left: 1px solid var(--line); font-weight: 500; }

.menu { display: none; position: relative; }
.menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--forest-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:focus-visible { outline: 3px solid rgba(181, 139, 80, 0.42); outline-offset: 3px; }
.menu .menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  gap: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.menu .menu-panel > a {
  display: block;
  min-height: 44px;
  padding: 11px 18px;
  color: var(--ink);
  font-size: 15px;
}
.menu .menu-panel > a[aria-current="page"] { color: var(--forest); text-decoration: underline; }
.menu .menu-panel > a.nav-secondary { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); }

/* Page shells */
.page-hero { max-width: 1180px; margin: 0 auto; padding: 88px 32px 40px; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
.page-body { max-width: 780px; margin: 0 auto; padding: 0 32px 96px; }
.page-body.wide { max-width: 1000px; }
.page-body h2 { margin-top: 64px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.page-body h3 { margin-top: 32px; }
.page-body p, .page-body li { color: var(--ink); font-size: 17px; }
.page-body ul, .page-body ol { padding-left: 22px; }
.page-body li { margin-bottom: 8px; }
.page-body a:not(.button) { color: var(--forest); font-weight: 600; text-underline-offset: 3px; }
.lead { color: var(--muted); font-size: 20px; max-width: 760px; }

.notice {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
.notice p:last-child { margin-bottom: 0; }
.notice-strong { background: var(--forest-dark); }
.notice-strong, .notice-strong p { color: white !important; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 40px; }

/* Home */
.home-hero .hero-copy h1 { font-size: clamp(2.7rem, 5.4vw, 4.8rem); }
.plain-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.band { padding: 72px max(32px, calc((100vw - 1116px) / 2)); background: var(--cream); }
.band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.band p { max-width: 720px; color: var(--muted); font-size: 18px; }
.pointer { padding: 28px max(32px, calc((100vw - 1116px) / 2)); background: var(--white); border-top: 1px solid var(--line); font-size: 16px; }
.pointer a { color: var(--forest); font-weight: 700; }

/* Report excerpt on the home page */
.report-excerpt { padding: 30px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.report-excerpt h2 { margin-bottom: 12px; font-size: 20px; letter-spacing: -0.02em; }
.report-excerpt dl { margin: 0; }
.report-excerpt dt { margin-top: 14px; color: var(--forest); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.report-excerpt dd { margin: 4px 0 0; font-size: 15px; }

/* Sample label */
.sample-tag {
  display: inline-block;
  padding: 3px 10px;
  color: var(--forest-dark);
  background: var(--sage);
  border: 1px solid var(--forest);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Full sample report */
.report {
  position: relative;
  margin: 36px 0;
  padding: 40px;
  background: var(--white);
  border: 2px dashed var(--forest);
}
.report::before {
  content: "SAMPLE · FICTIONAL";
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 2px 10px;
  color: white;
  background: var(--forest);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.report-header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.report-header p { margin-bottom: 6px; font-size: 15px !important; }
.report h2 { margin-top: 36px; font-size: 1.5rem; }
.report h3 { font-size: 18px; }
.status { display: inline-block; padding: 1px 8px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }
.status-possible { background: var(--sage); }
.status-insufficient { background: var(--cream); }
.status-review { background: #f3ead9; }
.finding { margin-top: 24px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); }
.finding h3 { margin-top: 0; }
.finding dl { margin: 0; }
.finding dt { margin-top: 12px; font-weight: 700; }
.finding dd { margin: 2px 0 0; }
.report-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px !important; }

/* Tables */
.table-wrap { margin: 24px 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { padding-bottom: 10px; color: var(--muted); font-size: 14px; text-align: left; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--forest-dark); background: var(--cream); font-size: 13px; }

/* Accordions (native details) */
.accordion { margin-top: 18px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; min-height: 52px; padding: 14px 0; cursor: pointer; font-family: "Libre Franklin", sans-serif; font-size: 19px; font-weight: 600; }
.accordion summary:focus-visible { outline: 3px solid rgba(181, 139, 80, 0.42); outline-offset: 3px; }
.accordion details > div { padding-bottom: 18px; }
.accordion details h2 { margin: 0; font-size: inherit; letter-spacing: -0.02em; }

/* Footer */
.site-footer { display: block; padding: 48px max(32px, calc((100vw - 1116px) / 2)); font-size: 14px; }
.site-footer p { max-width: 860px; margin-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0; }
.footer-links a { color: var(--forest); font-weight: 600; }
.footer-brand { margin-bottom: 18px; }

@media (max-width: 1020px) {
  .site-nav { display: none; }
  .menu { display: block; }
}

@media (max-width: 860px) {
  .page-hero { padding: 56px 20px 24px; }
  .page-body { padding: 0 20px 72px; }
  .report { padding: 30px 18px; }
  .band, .pointer { padding-left: 20px; padding-right: 20px; }
  .site-footer { padding: 36px 20px; }
}

@media (max-width: 520px) {
  .lead { font-size: 17px; }
  .page-body p, .page-body li { font-size: 16px; }
  .actions { flex-direction: column; align-items: flex-start; }
}

/* Clinician page in-page links */
.subnav { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: 1180px; margin: 0 auto; padding: 28px 32px 0; }
.subnav a { color: var(--forest); font-size: 14px; font-weight: 700; }

/* Contact block inside a narrow column */
.page-body .cta { padding: 48px 36px; }
@media (max-width: 520px) { .page-body .cta { padding: 36px 22px; } .subnav { padding: 22px 20px 0; } }

/* styles.css hides nav links under 860px for the old one-page header; keep these visible. */
.site-footer .footer-links > a, nav.subnav > a { display: inline; }

.accordion summary::after { content: "+"; margin-left: auto; padding-left: 16px; color: var(--forest); font-size: 22px; }
.accordion details[open] > summary::after { content: "−"; }

/* Long email addresses must wrap on phones. */
.page-body { overflow-wrap: break-word; }
