/* ==========================================================================
   Explain8 core stylesheet. Hand-written, no build step.
   World: the edit suite. Navy suite grounds, electric-blue actions and
   playhead, condensed Bricolage display at poster scale, square controls,
   surfaces separated by tone steps rather than rules.

   Contents
     1  Fonts and tokens
     2  Base, typography, browser surfaces
     3  Layout primitives (.container .section .grid .stack ...)
     4  Buttons and links
     5  Forms (.field)
     6  Notices, badges, tabs, tables, accordion, link index
     7  Site header and navigation
     8  Site footer (the close)
     9  Portal and staff layout (.portal-layout .sidebar)
    10  Utilities, print, reduced motion

   Page patterns live in pages.css; the home page in home.css.
   ========================================================================== */

/* 1 Fonts and tokens ------------------------------------------------------ */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-standard.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Suite (dark) */
  --suite: #101828;          /* brand navy: the suite ground */
  --suite-2: #172238;        /* raised panel on the suite */
  --suite-3: #22304a;        /* control well, track ground */
  --suite-4: #2f3f5e;        /* hover on suite controls */
  --on-suite: #f2f5fb;       /* running text on the suite */
  --on-suite-soft: #aab5cc;  /* secondary text on the suite, 8:1 */
  --on-suite-mute: #526892;  /* large display type on the suite only, 3.2:1 */

  /* Daylight (light) */
  --ink: #101828;
  --ink-soft: #1d2939;
  --slate: #3d4a5f;
  --muted: #5d6a80;
  --paper: #ffffff;
  --fog: #f7f8fa;
  --fog-2: #eef1f6;
  --line: #e3e7ee;           /* only for tables and form fields */
  --line-strong: #c9d0dc;

  /* Signal (the one accent) */
  --signal: #315cff;
  --signal-deep: #2146e0;
  --signal-bright: #6f8cff;  /* signal on the suite */
  --signal-light: #a9bbff;   /* links on the suite */
  --wash: #e6ecff;
  --wash-line: #c7d5ff;
  --amber: #ffb547;          /* timecode and the current mark only */

  /* Back-compat aliases used by older views */
  --on-ink: var(--on-suite-soft);

  --ok: #067647;
  --ok-bg: #e7f8ee;
  --ok-line: #abefc6;
  --warn: #93370d;
  --warn-bg: #fff6e0;
  --warn-line: #fedf89;
  --bad: #b42318;
  --bad-bg: #fdeeec;
  --bad-line: #fecdca;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Five steps do the visible work */
  --step-display: clamp(3rem, 0.9rem + 7.4vw, 8.5rem);
  --step-h2: clamp(2rem, 1.1rem + 3.6vw, 4.25rem);
  --step-h3: clamp(1.25rem, 1.05rem + 0.65vw, 1.625rem);
  --step-body: 1.0625rem;
  --step-small: 0.875rem;

  --radius: 3px;             /* one radius for every control and panel */
  --radius-s: var(--radius);
  --radius-m: var(--radius);
  --radius-l: var(--radius);
  --radius-frame: var(--radius);

  --gutter: clamp(1rem, 3.2vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --measure: 66ch;
  --header-h: 4.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;

  color-scheme: light;
  accent-color: var(--signal);
}

/* 2 Base, typography, browser surfaces ------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scroll-behavior: smooth;
  scrollbar-color: var(--suite-4) var(--fog-2);
  background: var(--suite);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  caret-color: var(--signal);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

svg {
  max-width: 100%;
}

::selection {
  background: var(--signal);
  color: #fff;
}

:where(p, ul, ol, dl, blockquote, figure, pre, table, fieldset) {
  margin: 0 0 1rem;
}

:where(p, ul, ol, dl, blockquote, figure, pre, table, fieldset):last-child {
  margin-bottom: 0;
}

:where(ul, ol) {
  padding-left: 1.35rem;
}

:where(li) {
  margin-bottom: 0.35rem;
}

:where(li)::marker {
  color: var(--signal);
}

:where(strong, b) {
  font-weight: 650;
}

:where(hr) {
  height: 0.5rem;
  margin: 2.5rem 0;
  border: 0;
  background: var(--fog-2);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-h2);
  font-stretch: 78%;
  letter-spacing: -0.03em;
  line-height: 0.94;
}

h2 {
  font-size: var(--step-h2);
  font-stretch: 80%;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

h3 {
  font-size: var(--step-h3);
  font-stretch: 92%;
  line-height: 1.12;
}

h4 {
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

:where(p) {
  text-wrap: pretty;
}

a {
  color: var(--signal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  transition: color var(--t-hover) ease;
}

a:hover {
  color: var(--signal-deep);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.section-ink :focus-visible,
.suite :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--signal-light);
}

small,
.small {
  font-size: var(--step-small);
}

.lede {
  max-width: 40rem;
  font-size: var(--step-h3);
  font-weight: 450;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

.muted {
  color: var(--muted);
}

.num,
.tabular {
  font-variant-numeric: tabular-nums;
}

/* The suite: any dark field. Text inherits the suite inks. */
.suite,
.section-ink {
  background: var(--suite);
  color: var(--on-suite);
  color-scheme: dark;
}

.suite .lede,
.section-ink .lede {
  color: var(--on-suite);
}

.suite .muted,
.section-ink .muted,
.cta-band .muted {
  color: var(--on-suite-soft);
}

.suite a:not(.button),
.section-ink a:not(.button) {
  color: var(--signal-light);
}

.suite a:not(.button):hover,
.section-ink a:not(.button):hover {
  color: #fff;
}

.suite ::selection,
.section-ink ::selection {
  background: var(--signal-bright);
  color: var(--suite);
}

/* 3 Layout primitives ----------------------------------------------------- */

.container {
  width: 100%;
  max-width: 84rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-block: calc(var(--section-y) * 0.55);
}

.section-alt {
  background: var(--fog);
}

.section-wash {
  background: var(--wash);
}

.section-signal {
  background: var(--signal);
  color: #fff;
}

.section-head {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 4.5vw, 3.75rem);
}

.section-head p:last-child {
  margin-bottom: 0;
}

.stack > *,
.stack-sm > *,
.stack-lg > * {
  margin-top: 0;
  margin-bottom: 0;
}

.stack > * + *,
.stack-sm > * + *,
.stack-lg > * + * {
  margin-top: var(--stack-gap, 1rem);
}

.stack {
  --stack-gap: 1rem;
}

.stack-sm {
  --stack-gap: 0.5rem;
}

.stack-lg {
  --stack-gap: 1.75rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, 0.75rem 1rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 44rem) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.split {
  display: grid;
  gap: clamp(1.75rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 58rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .split-even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-aside-sticky > :first-child {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    max-height: calc(100vh - var(--header-h) - 3rem);
    overflow-y: auto;
  }
}

/* A surface is defined by its fill, one tone step from its ground. */
.card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--fog);
}

.section-alt .card,
.card-on-fog {
  background: var(--paper);
}

.card > :last-child {
  margin-bottom: 0;
}

.card-fog {
  background: var(--fog);
}

.card-ink,
.suite .card {
  background: var(--suite-2);
  color: var(--on-suite);
}

/* 4 Buttons and links ----------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--signal);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.button:hover {
  background: var(--signal-deep);
  color: #fff;
}

.button:active {
  transform: scale(0.97);
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Secondary: a filled tone step, never an outline. */
.button-secondary {
  background: var(--fog-2);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--wash);
  color: var(--ink);
}

.suite .button-secondary,
.section-ink .button-secondary,
.cta-band .button-secondary {
  background: var(--suite-3);
  color: #fff;
}

.suite .button-secondary:hover,
.section-ink .button-secondary:hover,
.cta-band .button-secondary:hover {
  background: var(--suite-4);
  color: #fff;
}

.button-ghost {
  background: transparent;
  color: var(--signal);
  padding-inline: 0.6rem;
}

.button-ghost:hover {
  background: var(--wash);
  color: var(--signal-deep);
}

.suite .button-ghost,
.section-ink .button-ghost {
  color: var(--signal-light);
}

.suite .button-ghost:hover,
.section-ink .button-ghost:hover {
  background: var(--suite-3);
  color: #fff;
}

.button-danger {
  background: var(--bad);
}

.button-danger:hover {
  background: #912018;
}

.button-light {
  background: #fff;
  color: var(--ink);
}

.button-light:hover {
  background: var(--wash);
  color: var(--ink);
}

.button-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.button-small {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
}

.button-large {
  min-height: 3.5rem;
  padding: 0.95rem 1.9rem;
  font-size: 1.0625rem;
}

.button-block {
  display: flex;
  width: 100%;
}

@media (pointer: coarse) {
  .button-small {
    min-height: 2.75rem;
  }
}

.link-quiet {
  color: inherit;
  text-decoration-color: var(--line-strong);
}

.link-quiet:hover {
  color: var(--signal);
  text-decoration-color: currentColor;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  text-decoration: none;
}

.link-more::after {
  content: "";
  width: 0.95em;
  height: 0.95em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t-ui) var(--ease-out);
}

.link-more:hover {
  text-decoration: underline;
}

@media (hover: hover) {
  .link-more:hover::after {
    transform: translateX(3px);
  }
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

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

:where(label) {
  font-weight: 600;
}

:where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="hidden"], [type="color"]), select, textarea) {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}

:where(textarea) {
  min-height: 8rem;
  resize: vertical;
}

:where(select) {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4a5f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.2rem;
}

:where(input, select, textarea)::placeholder {
  color: var(--muted);
  opacity: 1;
}

:where(input, select, textarea):hover {
  border-color: var(--muted);
}

:where(input:not([type="checkbox"], [type="radio"]), select, textarea):focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(49, 92, 255, 0.25);
}

:where(input, select, textarea)[aria-invalid="true"],
.field.has-error :where(input, select, textarea) {
  border-color: var(--bad);
  background-color: var(--bad-bg);
}

:where(input, select, textarea)[aria-invalid="true"]:focus,
.field.has-error :where(input, select, textarea):focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.2);
}

:where(input[type="checkbox"], input[type="radio"]) {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  flex: none;
  accent-color: var(--signal);
}

:where(input[type="file"]) {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--fog);
  font: inherit;
  font-size: 0.9375rem;
}

:where(input[type="file"])::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

:where(input:disabled, select:disabled, textarea:disabled) {
  background-color: var(--fog);
  color: var(--muted);
  cursor: not-allowed;
}

:where(fieldset) {
  min-width: 0;
  padding: 0;
  border: 0;
}

:where(legend) {
  padding: 0;
  margin-bottom: 0.5rem;
  font-weight: 650;
}

.field {
  margin-bottom: 1.35rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field > label,
.field > .label,
.field > legend {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 650;
}

.field .required {
  color: var(--bad);
  font-weight: 700;
}

.field .optional {
  color: var(--muted);
  font-weight: 500;
}

.field .hint,
.hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.field > label + .hint {
  margin-top: -0.15rem;
  margin-bottom: 0.45rem;
}

.field .error,
.error-text {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bad);
}

.field .error::before,
.error-text::before {
  content: "";
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-row {
  display: grid;
  gap: 1.35rem 1.25rem;
  margin-bottom: 1.35rem;
  grid-template-columns: minmax(0, 1fr);
}

.field-row:last-child {
  margin-bottom: 0;
}

.field-row > .field {
  margin-bottom: 0;
}

fieldset > .hint {
  margin: 0 0 1rem;
}

@media (min-width: 40rem) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.check,
.field .check,
label.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 0.6rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

.check-group {
  display: grid;
  gap: 0.15rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}

.form-note {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* A form sits on a fog panel: one tone step, no outline. */
.form-card {
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--fog);
}

.section-alt .form-card {
  background: var(--paper);
}

/* Spam trap field: kept off-screen, never display:none (so bots still fill it). */
.trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 6 Notices, badges, tabs, tables, accordion, link index ------------------ */

.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--ink);
}

.notice > :last-child {
  margin-bottom: 0;
}

.notice-title {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.notice ul {
  margin-top: 0.4rem;
}

.notice a {
  color: inherit;
  font-weight: 650;
}

.notice-success {
  background: var(--ok-bg);
}

.notice-warning {
  background: var(--warn-bg);
}

.notice-error {
  background: var(--bad-bg);
  color: #7a1a12;
}

.suite .notice,
.section-ink .notice {
  background: var(--suite-3);
  color: var(--on-suite);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  background: var(--fog-2);
  color: var(--slate);
  font-size: var(--step-small);
  font-weight: 650;
  line-height: 1.45;
  white-space: nowrap;
}

.badge-info,
.badge-blue {
  background: var(--wash);
  color: #1b3aa8;
}

.badge-success {
  background: var(--ok-bg);
  color: var(--ok);
}

.badge-warning {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge-danger {
  background: var(--bad-bg);
  color: var(--bad);
}

.badge-muted {
  background: var(--fog-2);
  color: var(--muted);
}

.badge-solid {
  background: var(--signal);
  color: #fff;
}

/* Tabs: the active tab is a filled block, like an editor's panel switch. */
.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin: 0 0 1.75rem;
  padding: 0.25rem;
  list-style: none;
  border-radius: var(--radius);
  background: var(--fog-2);
  overflow-x: auto;
  scrollbar-width: thin;
}

.tabs > li {
  display: flex;
  margin: 0;
}

.tabs a,
.tabs button {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--slate);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.tabs a:hover,
.tabs button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.tabs [aria-current="page"],
.tabs [aria-selected="true"],
.tabs .active,
.tabs .is-active {
  background: var(--ink);
  color: #fff;
}

.tabs [aria-current="page"]:hover,
.tabs [aria-selected="true"]:hover,
.tabs .active:hover,
.tabs .is-active:hover {
  background: var(--ink);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus-visible {
  outline-offset: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9688rem;
  font-variant-numeric: tabular-nums;
}

.table-wrap > table {
  margin: 0;
  min-width: 30rem;
}

th,
td {
  padding: 0.9rem 1.05rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 0;
}

tbody th {
  font-weight: 650;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

caption {
  padding: 0 0 0.6rem;
  text-align: left;
  font-weight: 650;
}

.num {
  white-space: nowrap;
}

/* Accordion: each question is its own band, one tone step from the ground. */
.accordion {
  display: grid;
  gap: 0.375rem;
}

.accordion details {
  border-radius: var(--radius);
  background: var(--fog);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  transition: background-color var(--t-hover) ease;
}

.section-alt .accordion details {
  background: var(--paper);
}

.accordion details[open] {
  background: var(--wash);
}

.accordion summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  background-color: var(--signal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t-ui) var(--ease-out);
}

.accordion details[open] > summary::after {
  transform: rotate(45deg);
}

.accordion summary:hover {
  color: var(--signal-deep);
}

.accordion-body {
  max-width: var(--measure);
  padding: 0 3.5rem 1.4rem 1.25rem;
  color: var(--ink-soft);
}

.accordion-body > :last-child {
  margin-bottom: 0;
}

.faq-group {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

/* A plain list of in-page links ("On this page"), used by FAQ and policy pages. */
.link-index,
.faq-index {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-index li,
.faq-index li {
  margin: 0;
}

.link-index a,
.faq-index a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  background: var(--fog);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.link-index a:hover,
.faq-index a:hover {
  background: var(--wash);
  color: var(--signal-deep);
}

/* 7 Site header and navigation ------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--signal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-120%);
  clip-path: inset(50%);
}

.skip-link:focus {
  transform: translateY(0);
  clip-path: none;
  color: #fff;
  outline-color: #fff;
}

/* The suite's top bar: solid navy on every page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--suite);
  color: var(--on-suite);
  color-scheme: dark;
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  min-height: var(--header-h);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  margin-right: auto;
  padding: 0.35rem 0;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand-8 {
  color: var(--signal);
}

.site-header .brand-8,
.site-footer .brand-8,
.suite .brand-8 {
  color: var(--signal-bright);
}

.nav-toggle {
  min-width: 2.75rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--suite-3);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color var(--t-hover) ease;
}

.nav-toggle:hover {
  background: var(--suite-4);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: inline-block;
}

.site-nav {
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.5rem 0 1.25rem;
  order: 5;
}

.nav-list,
.nav-account,
.nav-menu {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li,
.nav-account > li,
.nav-menu > li {
  margin: 0;
}

.nav-list a,
.nav-account a,
.nav-dropdown summary,
.nav-account button.nav-button {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 0.25rem;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--on-suite);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.nav-list a:hover,
.nav-account a:hover,
.nav-dropdown summary:hover,
.nav-account button.nav-button:hover {
  color: #fff;
}

.nav-list a[aria-current="page"],
.nav-account a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--signal-bright);
}

.nav-dropdown summary {
  justify-content: space-between;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.35rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t-ui) var(--ease-out);
}

.nav-dropdown[open] > summary::after {
  transform: rotate(180deg);
}

.nav-menu {
  padding: 0.25rem 0 0.5rem 0.75rem;
}

.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius);
  color: var(--on-suite-soft);
  font-weight: 550;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: #fff;
  background: var(--suite-3);
}

.nav-account {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.nav-account form {
  margin: 0;
}

.header-cta-nav {
  display: none;
}

/* Without JavaScript the menu is simply visible and stacked. With JavaScript
   it collapses behind the toggle on narrow screens. */
.js .nav-toggle {
  display: inline-flex;
}

.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  padding: 0.5rem var(--gutter) 1.75rem;
  overflow-y: auto;
  background: var(--suite);
  box-shadow: 0 28px 40px -24px rgba(5, 10, 20, 0.7);
}

@media (prefers-reduced-motion: no-preference) {
  .js .site-nav.is-open {
    animation: nav-drop var(--t-ui) var(--ease-out);
  }
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.header-cta-bar {
  display: inline-flex;
}

@media (min-width: 68rem) {
  .site-header-inner {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .brand {
    margin-right: 0;
  }

  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }

  .header-cta-bar,
  .js .header-cta-bar {
    display: none;
  }

  .site-nav,
  .js .site-nav,
  .js .site-nav.is-open {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
    animation: none;
    order: 0;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.125rem;
    margin-left: 1.25rem;
  }

  .nav-account {
    flex-direction: row;
    align-items: center;
    gap: 0.125rem;
    margin: 0 0 0 auto;
    padding: 0;
  }

  .nav-list a,
  .nav-account a,
  .nav-dropdown summary,
  .nav-account button.nav-button {
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 1rem;
    color: var(--on-suite-soft);
  }

  .nav-list a:hover,
  .nav-account a:hover,
  .nav-dropdown summary:hover,
  .nav-account button.nav-button:hover,
  .nav-dropdown[open] > summary {
    background: var(--suite-3);
    color: #fff;
  }

  .nav-list a[aria-current="page"],
  .nav-account a[aria-current="page"] {
    color: #fff;
    background: var(--suite-3);
    box-shadow: none;
  }

  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown summary {
    justify-content: flex-start;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 60;
    width: 17rem;
    margin: 0;
    padding: 0.4rem;
    border-radius: var(--radius);
    background: var(--suite-2);
    transform-origin: top left;
  }

  .nav-dropdown[open] > .nav-menu {
    box-shadow: 0 24px 48px -16px rgba(5, 10, 20, 0.65);
  }

  @media (prefers-reduced-motion: no-preference) {
    .nav-dropdown[open] > .nav-menu {
      animation: menu-in var(--t-ui) var(--ease-out);
    }
  }

  .nav-menu a {
    padding: 0.6rem 0.75rem;
    color: var(--on-suite);
  }

  .header-cta-nav {
    display: inline-flex;
    margin-left: 0.25rem;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-4px);
  }
}

@media (max-width: 30rem) {
  .brand {
    font-size: 1.625rem;
  }

  .nav-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nav-toggle {
    padding: 0.4rem 0.65rem;
  }
}

@media (max-width: 22rem) {
  .header-cta-bar {
    display: none;
  }

  .header-cta-nav {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.75rem;
  }
}

/* Flash and status messages sit under the bar. */
.status-notice {
  padding-top: 1.25rem;
}

/* 8 Site footer: the close ------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: auto;
  overflow: hidden;
  background: var(--suite);
  color: var(--on-suite-soft);
  color-scheme: dark;
  font-size: 0.9688rem;
}

.site-footer a:not(.button) {
  color: var(--on-suite);
  text-decoration: none;
}

.site-footer a:not(.button):hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .button-secondary {
  background: var(--suite-3);
  color: #fff;
}

.site-footer .button-secondary:hover {
  background: var(--suite-4);
  color: #fff;
}

.footer-invite {
  display: grid;
  gap: 2rem;
  padding-block: clamp(4rem, 9vw, 8rem) clamp(2.5rem, 5vw, 4rem);
}

.footer-invite h2 {
  margin: 0;
  max-width: 14ch;
  color: #fff;
}

.footer-invite p {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  font-size: var(--step-h3);
  line-height: 1.38;
  color: var(--on-suite);
}

.footer-invite .actions {
  margin-top: 2rem;
}

.footer-nav {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.site-footer .footer-heading {
  margin: 0 0 0.75rem;
  color: #fff;
  font-family: var(--font-text);
  font-size: 0.9688rem;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0;
}

.footer-nav ul,
.footer-legal {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li {
  margin: 0 0 0.3rem;
}

.footer-nav a {
  display: inline-block;
  padding: 0.45rem 0;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  font-size: var(--step-small);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer-legal li {
  margin: 0;
}

.footer-bottom p {
  margin: 0;
  max-width: 52rem;
}

.footer-meta {
  display: grid;
  gap: 0.35rem;
}

/* The wordmark runs off the bottom of the page, cut by the edge. */
.footer-wordmark {
  display: block;
  margin: 0 0 -0.2em;
  padding-inline: var(--gutter);
  color: var(--on-suite-mute);
  font-family: var(--font-display);
  font-size: clamp(6rem, 25vw, 26rem);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.03em;
  line-height: 0.8;
  white-space: nowrap;
  user-select: none;
  transform: translateY(14%);
}

.footer-wordmark span {
  color: var(--signal);
}

@media (min-width: 48rem) {
  .footer-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .footer-invite {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 4rem;
  }

  /* Pages that end with their own call to action keep only the navigation,
     spread across the full width. */
  .footer-invite-nav-only {
    grid-template-columns: minmax(0, 1fr);
    padding-top: clamp(3rem, 6vw, 5rem);
  }
}

/* 9 Portal and staff layout --------------------------------------------- */

.portal-layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  width: 100%;
  max-width: 84rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) var(--section-y);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 62rem) {
  .portal-layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: start;
  }
}

.sidebar {
  padding: 0.5rem;
  border-radius: var(--radius);
  background: var(--suite);
  color: var(--on-suite);
  color-scheme: dark;
}

@media (min-width: 62rem) {
  .sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.sidebar h2,
.sidebar .sidebar-title {
  margin: 0;
  padding: 0.75rem 0.75rem 0.35rem;
  font-family: var(--font-text);
  font-size: var(--step-small);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--on-suite-soft);
}

.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar li {
  margin: 0;
}

.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--on-suite);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.sidebar a:hover {
  background: var(--suite-3);
  color: #fff;
}

.sidebar a[aria-current="page"],
.sidebar a.active {
  background: var(--signal);
  color: #fff;
}

.portal-main {
  min-width: 0;
}

.portal-main > .page-header,
.portal-layout .page-header {
  padding-block: 0 1.75rem;
}

.portal-layout .page-header h1 {
  max-width: none;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
}

/* 10 Utilities, print, reduced motion ------------------------------------ */

.pre-line {
  white-space: pre-line;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-form input[type="search"] {
  flex: 1 1 18rem;
  width: auto;
}

.search-form select {
  flex: 0 1 15rem;
  width: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.mt-0 {
  margin-top: 0;
}

.mt-s {
  margin-top: 0.75rem;
}

.mt-m {
  margin-top: 1.5rem;
}

.mt-l {
  margin-top: 2.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::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,
  .cta-band-wrap,
  .nav-toggle,
  .actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

  .section,
  .page-header {
    padding-block: 1rem;
  }
}
