/* SlateRx member portal styles.
   Brand tokens: Brand & Style Guidelines 10.2025 (01 §7). Layout and components follow the
   wireframe (docs/wireframes/member-portal.html). The CSP allows no inline styles, so every
   style is a class here. Text is black, Dark Forest, white, or Beige only. */

/* Stand-in fonts (OFL, public/fonts) until SlateRx's Adobe Fonts project loads Aktiv Grotesk (Q-60). */
@font-face {
  font-family: "Inter Portal";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Portal";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

:root {
  --slate-green: #26574a;
  --dark-forest: #1f3932;
  --lime: #c5db6d;
  --celadon: #d3dac9;
  --beige: #f5f6ea;
  --thistle: #eed8f1;
  --steel-blue: #bacbd3;
  --plum: #593f59;
  --white: #fff;

  /* Wireframe neutrals */
  --line: #e4e8dc;
  --field-border: #6f7f72;
  --tint: #e9ede1;

  --font-body: "aktiv-grotesk", "Inter Portal", system-ui, sans-serif;
  --font-headline: "aktiv-grotesk-extended", "Archivo Portal", system-ui, sans-serif;

  --radius-card: 16px;
  --radius-control: 8px;
}

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

html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark-forest);
  background: var(--beige);
}

h1, h2, h3 { color: var(--dark-forest); line-height: 1.25; margin: 0; }
h1 { font-family: var(--font-headline); font-stretch: 125%; font-size: 1.875rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 800; }
p { margin: 0; }

a { color: var(--slate-green); }
a:hover { color: var(--dark-forest); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--slate-green);
  outline-offset: 2px;
}

code { font-size: 0.9375em; background: var(--tint); padding: 0.125rem 0.375rem; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--white); padding: 0.5rem 1rem; z-index: 20; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--celadon);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header__brand img { display: block; height: 30px; width: auto; }
.site-header__label { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--slate-green); text-transform: uppercase; margin-left: 4px; }
.utility-nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }

/* Signed in: dark bar with the main navigation. */
.site-header--app { background: var(--dark-forest); border-bottom: 0; padding: 0 24px; min-height: 64px; }
.site-header--app .site-header__brand { padding: 12px 0; }
.site-header--app .site-header__brand img { height: 28px; }
.site-nav { display: flex; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--white); text-decoration: none; padding: 20px 12px 17px; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--white); border-bottom-color: var(--celadon); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--lime); }
.site-header__account { display: flex; align-items: center; gap: 12px; }
.site-header__account span { color: var(--beige); font-size: 14px; }
.site-header__account form { margin: 0; }
.button.button--on-dark { min-height: 40px; padding: 0 14px; background: transparent; border: 1px solid var(--white); color: var(--white); font-size: 14px; }
.button.button--on-dark:hover { background: var(--slate-green); border-color: var(--white); color: var(--white); }

/* Small screens: a Menu button opens the navigation (native <details>, no JavaScript). */
.app-menu { display: none; position: relative; }
.app-menu > summary {
  list-style: none; min-height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--white); border-radius: var(--radius-control); color: var(--white); font-weight: 700; font-size: 15px; cursor: pointer;
}
.app-menu > summary::-webkit-details-marker { display: none; }
.app-menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 15; width: 260px; max-width: calc(100vw - 32px);
  background: var(--white); border: 1px solid var(--celadon); border-radius: 12px; box-shadow: 0 12px 32px rgb(31 57 50 / 18%);
  padding: 8px; display: flex; flex-direction: column; font-size: 16px; font-weight: 600;
}
.app-menu__panel a, .app-menu__panel button {
  padding: 12px 14px; border-radius: var(--radius-control); color: var(--dark-forest); text-decoration: none;
  font: inherit; font-weight: 600; text-align: left; background: none; border: 0; cursor: pointer; width: 100%;
}
.app-menu__panel a:hover, .app-menu__panel button:hover { background: var(--beige); }
.app-menu__panel a[aria-current="page"] { background: var(--tint); font-weight: 800; }
.app-menu__panel form { margin: 0; }
.app-menu__panel .app-menu__signout { color: var(--plum); }
.app-menu__rule { height: 1px; background: var(--line); margin: 6px 0; }
.app-menu__who { padding: 8px 14px 4px; font-size: 13px; font-weight: 500; color: var(--slate-green); }
@media (max-width: 47.5rem) {
  .site-header--app .site-nav, .site-header--app .site-header__account { display: none; }
  .app-menu { display: block; }
}

.dr-banner { background: var(--thistle); color: var(--dark-forest); padding: 12px 24px; border-bottom: 1px solid var(--plum); font-size: 15px; }

/* ---------- Page frames ---------- */

main { flex: 1; width: 100%; }

/* Signed-out pages: one centred column of cards. */
.auth { display: flex; justify-content: center; padding: 56px 16px; }
.auth__column { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 20px; }
.auth__column--wide { max-width: 560px; }
.auth__column--split { max-width: 980px; flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.auth__column--split > .card:first-child { flex: 999 1 460px; min-width: 0; }
.auth__column--split > .card + .card { flex: 1 1 300px; min-width: 0; padding: 28px; }

/* Signed-in pages. */
.page { max-width: 1120px; margin: 0 auto; padding: 32px 16px 56px; display: flex; flex-direction: column; gap: 24px; }
.page--narrow { max-width: 760px; }
.page--faq { max-width: 860px; padding-top: 40px; gap: 28px; }
.page--help { max-width: 1000px; padding-top: 40px; gap: 28px; }
.topics { font-size: 14px; font-weight: 600; }
.topics li { padding: 4px 0; }
.page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page__title { display: flex; flex-direction: column; gap: 4px; }
.page__title--tight { gap: 6px; }
.lead { font-size: 15px; color: var(--slate-green); line-height: 1.5; }
.back-link { font-weight: 700; font-size: 14px; align-self: flex-start; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--slate-green); }

/* Two columns that wrap: main content and a side card. */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split__side { flex: 1 1 280px; min-width: 0; }

/* Account side menu (wireframe MyAccount). */
.side-menu { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--celadon); border-radius: 14px; padding: 10px; font-weight: 700; font-size: 15px; }
.side-menu a { padding: 12px 14px; border-radius: var(--radius-control); color: var(--dark-forest); text-decoration: none; }
.side-menu a:hover { background: var(--beige); }
.side-menu a[aria-current="page"] { background: var(--tint); }
.split > .side-menu { position: sticky; top: 16px; }

/* People with access: name, then what they can do, then the action on the right. */
.people { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.people li { position: relative; padding: 16px 130px 16px 16px; font-weight: 700; min-height: 72px; }
.people li + li { border-top: 1px solid var(--line); }
.people li > .muted { display: block; font-weight: 400; font-size: 13px; }
.people li > form { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); margin: 0; }
.subcard { background: var(--beige); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.subcard h3 { font-size: 1rem; }
.note-box { font-size: 14px; line-height: 1.5; background: var(--white); border-radius: 10px; padding: 12px 14px; }
.field--narrow { max-width: 420px; }
.button.button--compact { min-height: 40px; padding: 0 14px; font-size: 14px; border-width: 1px; }

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--celadon);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card--auth { padding: 32px; gap: 20px; }
.card--slim { display: block; padding: 18px 22px; font-size: 14px; color: var(--slate-green); }
.card--slim strong { color: var(--dark-forest); }
.card--row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; }
.card--centre { align-items: center; text-align: center; padding: 40px 32px; gap: 14px; }
.card__head { display: flex; flex-direction: column; gap: 6px; }
.card__head h1 { font-size: 1.75rem; }
.card__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.card__foot { border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-size: 1.125rem; }
.card > ul, .card > ol { margin: 0; }
.card > .button:not(.button--block), .card > a.strong, .card > .back-link { align-self: flex-start; }

/* ---------- Text helpers ---------- */

.muted { color: var(--slate-green); }
.hint { margin: 0; font-size: 13px; color: var(--slate-green); line-height: 1.5; }
.small { font-size: 14px; }
.strong { font-weight: 700; }
.narrow { max-width: 28rem; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list--inline { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.plain-list--inline li { border-bottom: 0; }
.tick-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--dark-forest); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; }
.list--muted { color: var(--slate-green); gap: 8px; }
.callout--beige { background: var(--beige); font-size: 13px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rules { margin: 0; padding-left: 1.25rem; font-size: 13px; color: var(--slate-green); }

/* ---------- Buttons ---------- */

.button {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--slate-green);
  color: var(--white);
  border: 2px solid var(--slate-green);
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--dark-forest); border-color: var(--dark-forest); color: var(--white); }
.button--secondary { background: var(--white); color: var(--dark-forest); border-color: var(--slate-green); }
.button--secondary:hover { background: var(--beige); color: var(--dark-forest); border-color: var(--slate-green); }
.button--small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.button--outline-small { min-height: 44px; padding: 0 16px; font-size: 14px; background: var(--white); color: var(--dark-forest); border: 1px solid var(--slate-green); }
.button--outline-small:hover { background: var(--beige); color: var(--dark-forest); border-color: var(--slate-green); }
.button--danger { background: var(--white); color: var(--plum); border-color: var(--plum); }
.button--danger:hover { background: var(--thistle); color: var(--plum); border-color: var(--plum); }
.button--block { display: flex; width: 100%; }
.button--link { min-height: 0; padding: 0; background: none; border: 0; color: var(--slate-green); text-decoration: underline; font-weight: 700; font-size: inherit; display: inline; }
.button--link:hover { background: none; color: var(--dark-forest); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.actions--end { justify-content: flex-end; }
.actions--start { justify-content: flex-start; }

/* ---------- Forms ---------- */

.form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.form--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form--grid > .field--full, .form--grid > .actions, .form--grid > .callout, .form--grid > fieldset, .form--grid > .checkbox, .form--grid > .panel { grid-column: 1 / -1; }
@media (max-width: 30rem) { .form--grid { grid-template-columns: minmax(0, 1fr); } }
.form--search { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: end; }
.form--search > .hint { grid-column: 1 / -1; }
.form--search > .button { align-self: end; }
.form--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.form--inline > .field { flex: 1 1 220px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.form label, .field label, .form legend { font-size: 14px; font-weight: 700; color: var(--dark-forest); }
.form input:not([type="checkbox"], [type="radio"], [type="hidden"]),
.form select,
.form textarea,
.member-switch select {
  min-height: 44px;
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--dark-forest);
  font: inherit;
  font-size: 16px;
}
.form textarea { padding: 10px 12px; min-height: 96px; }
.form input.code-input { min-height: 52px; padding: 0 14px; font-size: 22px; letter-spacing: 6px; }
.form .checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; line-height: 1.5; }
.form .checkbox input, .choice input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--slate-green); }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form legend { padding: 0; margin-bottom: 4px; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { flex: 1 1 180px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--field-border); border-radius: var(--radius-control); background: var(--white); font-size: 15px; font-weight: 600; cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--slate-green); background: var(--tint); }
.form .button { align-self: flex-start; }
.form .button--block { align-self: stretch; }
.form--grid .button { justify-self: start; }

/* A checkbox with a title and a description (wireframe My Account, Text messages). */
.option { display: flex; gap: 12px; align-items: flex-start; }
.option input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--slate-green); }
.form .option label { display: flex; flex-direction: column; gap: 4px; font-weight: 400; line-height: 1.5; }
.option__title { font-weight: 700; font-size: 15px; }
.option__text { color: var(--slate-green); }

/* Light green note inside a form. */
.callout { background: var(--tint); border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }

/* Member switcher (dashboard). */
.member-switch {
  flex: 1 1 300px; max-width: 420px; margin: 0;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px;
  background: var(--white); border: 1px solid var(--celadon); border-radius: 12px; padding: 12px 14px;
}
.member-switch .field { flex: 1 1 200px; gap: 4px; }
.member-switch label { font-size: 13px; font-weight: 700; color: var(--slate-green); }
.member-switch select { font-size: 15px; padding: 0 10px; }

/* Step pills (registration, recovery) and case steps. */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; counter-reset: step; }
.steps li { counter-increment: step; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--celadon); color: var(--slate-green); }
.steps li::before { content: counter(step) " "; }
.steps li.steps__done::before { content: "✓ "; }
.steps .steps__current { background: var(--slate-green); border-color: var(--slate-green); color: var(--white); }

/* Case creation: a bar for each step (wireframe NewCase*). */
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: 13px; font-weight: 700; color: var(--slate-green); }
.progress li { display: flex; flex-direction: column; gap: 6px; }
.progress__bar { height: 4px; border-radius: 2px; background: var(--celadon); }
.progress__done .progress__bar { background: var(--slate-green); }
.progress [aria-current="step"] { color: var(--dark-forest); }
.case-step { padding: 28px; gap: 24px; }
.form .choice-row { padding: 12px 14px; border: 1px solid var(--field-border); border-radius: var(--radius-control); background: var(--white); font-size: 15px; cursor: pointer; }
.form .choice-row:has(input:checked) { border: 2px solid var(--slate-green); background: var(--tint); }
.form--inline > div { flex: 1 1 220px; }
.details--review { grid-template-columns: minmax(0, 1fr); gap: 0; }
.details--review > div { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.details--review > div:last-child { border-bottom: 0; }
.details--review dt { flex: 0 0 160px; font-size: 14px; }
.details--review dd { flex: 1 1 280px; font-weight: 600; }

/* ---------- Messages ---------- */

.panel { background: var(--tint); border-radius: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.5; color: var(--dark-forest); display: flex; flex-direction: column; gap: 8px; }
.panel ul { margin: 0; padding-left: 1.25rem; }
.panel a { color: var(--dark-forest); font-weight: 700; }
.panel--error { background: var(--thistle); border-left: 4px solid var(--plum); }
.panel--warning { background: var(--thistle); }
.panel h2 { font-size: 1.125rem; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.cases { width: 100%; border-collapse: collapse; font-size: 14px; }
.cases th { background: var(--beige); text-align: left; padding: 12px 14px; font-weight: 700; color: var(--dark-forest); white-space: nowrap; }
.cases td { padding: 14px; border-top: 1px solid var(--line); vertical-align: top; }
.cases td:first-child { font-weight: 600; }
.cases a { font-weight: 700; white-space: nowrap; }
.cases .cell-muted { color: var(--slate-green); }
.cases .cell-end { text-align: right; }
@media (max-width: 40rem) {
  .table-wrap { border: 0; overflow: visible; }
  .cases thead { display: none; }
  .cases tr { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
  .cases td { display: block; border: 0; padding: 3px 0; }
  .cases td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--slate-green); }
  .cases .cell-end { text-align: left; }
}

/* Label above value (case detail, review). */
.details { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.details > div { display: flex; flex-direction: column; gap: 4px; }
.details dt { font-size: 13px; color: var(--slate-green); font-weight: 600; }
.details dd { margin: 0; font-weight: 700; }
.details--wide { grid-template-columns: minmax(0, 1fr); }
/* PA Hub's patient explanation keeps the letter's line breaks (numbered criteria). */
.explanation { white-space: pre-line; font-weight: 500; }

/* Status badges: brand status colours. */
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--dark-forest); background: var(--celadon); vertical-align: middle; }
.status--approved { background: var(--lime); }
.status--partially-approved { background: var(--celadon); }
.status--denied { background: var(--plum); color: var(--white); }
.status--open { background: var(--steel-blue); }
.status--more-info { background: var(--thistle); }
.status--large { padding: 8px 16px; font-size: 15px; font-weight: 800; }
.case-type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.case-decision { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.case-decision .status { padding: 8px 16px; font-size: 15px; font-weight: 800; }
.details dd p + p { margin-top: 6px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--thistle); color: var(--dark-forest); font-size: 12px; font-weight: 800; }

/* ---------- Dashboard ---------- */

.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.quick-link {
  background: var(--white); color: var(--dark-forest); border: 1px solid var(--celadon); border-radius: 14px;
  padding: 20px; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; text-decoration: none;
}
.quick-link:hover { border-color: var(--slate-green); color: var(--dark-forest); }
.quick-link__title { font-weight: 800; font-size: 17px; }
.quick-link__text { font-size: 13px; color: var(--slate-green); }
.quick-link--primary { background: var(--slate-green); border-color: var(--slate-green); color: var(--white); }
.quick-link--primary:hover { background: var(--dark-forest); color: var(--white); }
.quick-link--primary .quick-link__text { color: var(--beige); }
.quick-link--short { min-height: 0; justify-content: flex-start; }
.alert-icon { width: 64px; height: 64px; border-radius: 999px; background: var(--thistle); color: var(--plum); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.degraded__title { font-size: 1.375rem; }
.degraded__text { max-width: 520px; line-height: 1.6; }
.section { display: flex; flex-direction: column; gap: 12px; }
.section > h2 { font-size: 1.125rem; }

/* ---------- FAQ and help ---------- */

.faq { background: var(--white); border: 1px solid var(--celadon); border-radius: 12px; padding: 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; color: var(--dark-forest); padding: 18px 20px; }
.faq p { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 1.6; }
.faq-group { display: flex; flex-direction: column; gap: 10px; }

.email-us { background: var(--slate-green); color: var(--white); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.email-us h2 { color: var(--white); }
.email-us p { color: var(--beige); }
.email-us__address { font-size: 24px; font-weight: 800; color: var(--white); overflow-wrap: anywhere; }
.email-us__address:hover { color: var(--lime); }
.email-us code { background: rgb(255 255 255 / 15%); color: var(--white); }
.reference code { background: var(--tint); padding: 0.25rem 0.5rem; }
.inline-form { display: inline; margin-left: auto; }

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

.site-footer {
  border-top: 1px solid var(--celadon);
  background: var(--white);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--slate-green);
}

/* ---------- Idle timeout warning (03 §6) ---------- */

.idle-dialog { max-width: 28rem; border: 0; border-radius: var(--radius-card); padding: 28px; box-shadow: 0 20px 48px rgb(31 57 50 / 30%); color: var(--dark-forest); }
.idle-dialog::backdrop { background: rgb(31 57 50 / 60%); }
.idle-dialog h2 { margin: 0 0 8px; font-size: 1.375rem; }
.idle-dialog p { margin: 0 0 20px; line-height: 1.5; }
.idle-dialog__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.idle-dialog__actions form { margin: 0; }
