/* Lukio help center: the docs shell inside the site's frame.  The site's nav stands above and its footer below, both
   drawn by css/styles.css from the site's tokens; this sheet draws the bar, the topics column, the page, its rail and
   its steps from the same tokens, and gives the tokens their dark values, so the whole page follows the theme.
   Public Sans 700, the site's display face, for the titles and the step numerals; Inter, the site's text face, for the
   rest.  Nothing scrolls sideways; every column is minmax(0, 1fr) and every box fits the box that holds it. */

:root {
  --help-bar-height: 56px;
  --help-browse-width: 268px;
  --help-rail-width: 210px;
  --help-chip: #eef1f6;
  --help-chip-edge: #c9d2df;
  --help-mark: #fde9a8;
  --help-caution: #9a5b00;
  /* Note cards, chips, the short answer and the band: each kind's ground, edge and ink. */
  --help-info-bg: #eef0fb;
  --help-info-edge: #c5cae9;
  --help-info-ink: #303f9f;
  --help-tip-bg: #eaf5ee;
  --help-tip-edge: #b9dcc4;
  --help-tip-ink: #1d6b3a;
  --help-warning-bg: #fdf5e6;
  --help-warning-edge: #efd6a2;
  --help-warning-ink: #8a5200;
  --help-on-primary: #ffffff;
  --help-band-bg: #303f9f;
  --help-band-ink: #ffffff;
  --help-band-muted: #e8eaf6;
}

/* Dark: the site's own tokens take their dark values, so the nav, the footer and the page change together. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e141b;
    --surface: #141b24;
    --surface-secondary: #1b2430;
    --border: #253141;
    --text-primary: #e7ecf2;
    --text-secondary: #b3bdcb;
    --text-tertiary: #8f9aab;
    --primary: #95adf3;
    --primary-dark: #b4c5f7;
    --primary-light: #1a2645;
    --primary-rgb: 149, 173, 243;
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
    --help-chip: #1c2533;
    --help-chip-edge: #36445a;
    --help-mark: #5a4a12;
    --help-caution: #f0b866;
    --help-info-bg: #1a2645;
    --help-info-edge: #36445a;
    --help-info-ink: #b4c5f7;
    --help-tip-bg: #13261b;
    --help-tip-edge: #2c5a3b;
    --help-tip-ink: #8fd4a6;
    --help-warning-bg: #2e2210;
    --help-warning-edge: #5a4a12;
    --help-warning-ink: #f0b866;
    --help-on-primary: #0e141b;
    --help-band-bg: #1a2645;
    --help-band-ink: #e7ecf2;
    --help-band-muted: #b3bdcb;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e141b;
  --surface: #141b24;
  --surface-secondary: #1b2430;
  --border: #253141;
  --text-primary: #e7ecf2;
  --text-secondary: #b3bdcb;
  --text-tertiary: #8f9aab;
  --primary: #95adf3;
  --primary-dark: #b4c5f7;
  --primary-light: #1a2645;
  --primary-rgb: 149, 173, 243;
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --help-chip: #1c2533;
  --help-chip-edge: #36445a;
  --help-mark: #5a4a12;
  --help-caution: #f0b866;
  --help-info-bg: #1a2645;
  --help-info-edge: #36445a;
  --help-info-ink: #b4c5f7;
  --help-tip-bg: #13261b;
  --help-tip-edge: #2c5a3b;
  --help-tip-ink: #8fd4a6;
  --help-warning-bg: #2e2210;
  --help-warning-edge: #5a4a12;
  --help-warning-ink: #f0b866;
  --help-on-primary: #0e141b;
  --help-band-bg: #1a2645;
  --help-band-ink: #e7ecf2;
  --help-band-muted: #b3bdcb;
}

.help [hidden] {
  display: none !important;
}

/* The shell sits under the site's fixed nav; every anchor stops below the nav and the bar. */
.help {
  padding-top: var(--nav-height);
  color: var(--text-primary);
}

.help [id] {
  scroll-margin-top: calc(var(--nav-height) + var(--help-bar-height) + var(--space-4));
}

/* The line under the bar on every help page: where CDC's own answers are, each place linked. */
.help-cdc-strip {
  background: var(--help-info-bg);
  border-bottom: 1px solid var(--help-info-edge);
}

.help-cdc-strip__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: var(--space-2) max(var(--space-4), env(safe-area-inset-right, 0px)) var(--space-2) max(var(--space-4), env(safe-area-inset-left, 0px));
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--text-primary);
}

.help-cdc-strip__inner a {
  font-weight: 600;
  color: var(--help-info-ink);
}

/* The bar: the topics link on a narrow window, the search box, the theme choice. */
.help-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.help-bar__inner {
  max-width: 1360px;
  min-height: var(--help-bar-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) max(var(--space-4), env(safe-area-inset-right, 0px)) var(--space-2) max(var(--space-4), env(safe-area-inset-left, 0px));
}

.help-bar__topics {
  display: none;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--help-chip);
  border: 1px solid var(--help-chip-edge);
  border-radius: var(--radius);
  white-space: nowrap;
}

.help-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
}

.help-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.help-search__input {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 var(--space-4);
  font: 400 var(--font-size-base) var(--font-family);
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.help-search__input::placeholder {
  color: var(--text-tertiary);
}

.help-search__results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.help-result {
  display: grid;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
}

.help-result:hover,
.help-result[aria-selected="true"] {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--text-primary);
}

.help-result__title {
  font-weight: 650;
}

.help-result__group {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

.help-result__snippet {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.help-result mark {
  background: var(--help-mark);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.help-search__empty {
  padding: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.help-theme {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

.help-theme__select {
  min-height: 32px;
  padding: 2px var(--space-2);
  font: inherit;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* The shell: the topics column beside the page. */
.help-shell {
  display: grid;
  grid-template-columns: var(--help-browse-width) minmax(0, 1fr);
  max-width: 1360px;
  margin-inline: auto;
}

.help-browse {
  position: sticky;
  top: calc(var(--nav-height) + var(--help-bar-height));
  align-self: start;
  max-height: calc(100vh - var(--nav-height) - var(--help-bar-height));
  overflow-y: auto;
  padding: var(--space-6) var(--space-3) var(--space-10) max(var(--space-6), env(safe-area-inset-left, 0px));
  border-right: 1px solid var(--border);
  font-size: var(--font-size-sm);
}

.help-browse__home {
  display: block;
  margin-bottom: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  font-weight: 650;
  color: var(--text-primary);
  text-decoration: none;
}

.help-browse__group {
  margin: var(--space-4) var(--space-2) var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: 650;
  color: var(--text-secondary);
}

.help-browse__pages {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-browse__pages a {
  display: block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.4;
}

.help-browse__home:hover,
.help-browse__pages a:hover {
  background: var(--help-chip);
  color: var(--text-primary);
}

.help-browse__home[aria-current="page"],
.help-browse__pages a[aria-current="page"] {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  font-weight: 650;
}

/* The page: the article and its rail. */
.help-page {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--help-rail-width);
  gap: var(--space-10);
  padding: var(--space-8) max(var(--space-8), env(safe-area-inset-right, 0px)) var(--space-20) var(--space-10);
}

.help-page--landing {
  grid-template-columns: minmax(0, 1fr);
}

.help-article {
  min-width: 0;
  max-width: 720px;
}

.help-article--landing {
  max-width: 1040px;
}

.help-rail {
  position: sticky;
  top: calc(var(--nav-height) + var(--help-bar-height) + var(--space-8));
  align-self: start;
  font-size: var(--font-size-sm);
}

.help-rail__contents__label,
.help-contents__label {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 650;
  color: var(--text-secondary);
}

.help-rail__contents ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.help-rail__contents a {
  display: block;
  padding: var(--space-1) 0 var(--space-1) var(--space-3);
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.4;
}

.help-rail__contents a:hover {
  color: var(--primary);
}

.help-rail__contents a.is-here {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* The contents under the lede: shown on a window too narrow for the rail. */
.help-contents {
  display: none;
  margin: 0 0 var(--space-6);
  padding: var(--space-3) var(--space-6);
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.help-contents ul {
  margin: 0;
  padding-left: var(--space-6);
  list-style: disc;
  font-size: var(--font-size-sm);
}

.help-contents li + li {
  margin-top: var(--space-1);
}

/* The trail, the title and the lede. */
.help-crumbs ol {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}

.help-crumbs li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--border);
}

.help-crumbs a {
  color: var(--text-secondary);
}

.help-title {
  margin: 0 0 var(--space-3);
  font: 700 var(--font-size-3xl) / 1.12 var(--font-family-display);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.help-lede {
  margin: 0 0 var(--space-6);
  max-width: 62ch;
  font-size: var(--font-size-lg);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* The body: sections, paragraphs, bullets, steps and notes. */
.help-part {
  margin: var(--space-10) 0 var(--space-3);
  font: 700 var(--font-size-xl) / 1.3 var(--font-family-display);
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

.help-section {
  margin: var(--space-6) 0 var(--space-2);
  font: 650 var(--font-size-lg) / 1.35 var(--font-family);
  color: var(--text-primary);
}

.help-paragraph {
  margin: 0 0 var(--space-3);
  max-width: 68ch;
  color: var(--text-primary);
}

.help-list {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
  max-width: 68ch;
  list-style: disc;
}

.help-list--numbered {
  list-style: decimal;
}

.help-list li {
  margin-bottom: var(--space-2);
}

.help-steps {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  max-width: 66ch;
  counter-reset: step;
}

.help-step {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: var(--space-4);
  padding-bottom: var(--space-4);
}

.help-step::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font: 700 var(--font-size-lg) / 1 var(--font-family-display);
  color: var(--primary);
  background: var(--surface);
  border: 1.5px solid var(--primary);
  border-radius: 50%;
}

.help-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 38px;
  bottom: 0;
  border-left: 1.5px solid var(--border);
}

.help-step__text {
  padding-top: var(--space-2);
}

.help-label {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  background: var(--help-chip);
  border: 1px solid var(--help-chip-edge);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 var(--space-2);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Note cards: each kind wears its icon, its label and its tint; one idea to a card. */
.help-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  max-width: 68ch;
  color: var(--text-primary);
  background: var(--help-info-bg);
  border: 1px solid var(--help-info-edge);
  border-radius: 10px;
}

.help-note__icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: var(--help-info-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-note__label {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--help-info-ink);
}

.help-note__text {
  margin: 0;
}

.help-note--tip {
  background: var(--help-tip-bg);
  border-color: var(--help-tip-edge);
}

.help-note--tip .help-note__icon {
  stroke: var(--help-tip-ink);
}

.help-note--tip .help-note__label {
  color: var(--help-tip-ink);
}

.help-note--warning {
  background: var(--help-warning-bg);
  border-color: var(--help-warning-edge);
}

.help-note--warning .help-note__icon {
  stroke: var(--help-warning-ink);
}

.help-note--warning .help-note__label {
  color: var(--help-warning-ink);
}

.help-note--legal {
  background: var(--surface);
  border-color: var(--help-chip-edge);
}

.help-divider {
  margin: var(--space-8) 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* The page's foot: the page before and after, and the way to reach a person. */
.help-pager {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-3);
}

.help-pager a {
  display: grid;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.help-pager a:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.help-pager small {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

.help-pager__next {
  text-align: right;
}

.help-support {
  margin: var(--space-6) 0 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* The landing: every group with its pages. */
.help-topics {
  columns: 3 260px;
  column-gap: var(--space-8);
}

.help-topic {
  break-inside: avoid;
  margin-bottom: var(--space-6);
}

.help-topic__title {
  margin: 0 0 var(--space-2);
  font: 700 var(--font-size-base) / 1.3 var(--font-family-display);
  color: var(--text-primary);
}

.help-topic__pages {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--font-size-sm);
}

.help-topic__pages li {
  margin-bottom: var(--space-2);
}

.help-topic__pages a {
  font-weight: 600;
}

.help-topic__pages p {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--text-tertiary);
}

/* A preview's line above the bar: the page awaits review. */
.help-preview {
  margin: 0;
  padding: var(--space-2) var(--space-4);
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  background: var(--help-mark);
  border-bottom: 1px solid var(--border);
}

/* A window too narrow for the rail: the contents sit under the lede. */
@media (max-width: 1180px) {
  .help-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-rail {
    display: none;
  }

  .help-contents {
    display: block;
  }
}

/* A narrow window: one column; the topics follow the page, and the bar's link opens them as a drawer when the
   script runs. */
@media (max-width: 860px) {
  .help-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-bar__topics {
    display: inline-flex;
  }

  .help-browse {
    position: static;
    order: 2;
    max-height: none;
    padding: var(--space-6) max(var(--space-4), env(safe-area-inset-right, 0px)) var(--space-10) max(var(--space-4), env(safe-area-inset-left, 0px));
    border-right: 0;
    border-top: 1px solid var(--border);
  }

  .help-js .help-browse:not(.is-open) {
    display: none;
  }

  .help-js .help-browse.is-open {
    position: fixed;
    z-index: 25;
    top: calc(var(--nav-height) + var(--help-bar-height));
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    overflow-y: auto;
    background: var(--surface);
    border-top: 0;
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .help-page {
    padding: var(--space-6) max(var(--space-4), env(safe-area-inset-right, 0px)) var(--space-16) max(var(--space-4), env(safe-area-inset-left, 0px));
  }
}

@media (max-width: 480px) {
  .help-bar__inner {
    gap: var(--space-2);
  }

  .help-theme__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .help-step {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: var(--space-2);
  }

  .help-step::before {
    width: 30px;
    height: 30px;
    font-size: var(--font-size-base);
  }

  .help-step:not(:last-child)::after {
    left: 15px;
    top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help * {
    scroll-behavior: auto !important;
  }
}

/* ─── The page standards: path, checklist, steps, facts, tables, answers, buttons ─── */

.help-where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: calc(-1 * var(--space-3)) 0 var(--space-6);
  font-size: var(--font-size-sm);
}

.help-where__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-where__label {
  margin-right: 2px;
  color: var(--text-secondary);
}

.help-where__step {
  color: var(--text-tertiary);
}

.help-checklist {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  max-width: 68ch;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.help-checklist li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.help-checklist__box {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-step-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-3);
  font: 650 var(--font-size-base) / 1.35 var(--font-family);
  color: var(--text-primary);
}

.help-step-group__number {
  min-width: 22px;
  padding: 1px var(--space-2);
  box-sizing: border-box;
  text-align: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--help-on-primary);
  background: var(--primary);
  border-radius: 999px;
}

.help-step__result {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

a.help-source-chip {
  text-decoration: none;
}

a.help-source-chip:hover {
  text-decoration: underline;
}

.help-source-chip {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
  color: var(--help-info-ink);
  background: var(--help-info-bg);
  border: 1px solid var(--help-info-edge);
  border-radius: 999px;
}

.help-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
}

.help-fact {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.help-fact p {
  margin: 0;
}

.help-fact .help-fact__lead {
  margin-bottom: var(--space-1);
  font-size: var(--font-size-base);
}

.help-table-box {
  margin: 0 0 var(--space-6);
  overflow-x: auto;
}

.help-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--font-size-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.help-table th {
  padding: var(--space-3) var(--space-3);
  text-align: left;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--surface-secondary);
  border-bottom: 1px solid var(--border);
}

.help-table td {
  padding: var(--space-3) var(--space-3);
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.help-table tr:last-child td {
  border-bottom: 0;
}

.help-answers-about {
  margin-top: var(--space-8);
}

.help-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-3);
}

.help-more-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.help-more-card:hover {
  border-color: var(--primary);
}

.help-more-card small {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.help-more-rest {
  margin-top: var(--space-3);
}

.help-more-rest summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  box-sizing: border-box;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-dark);
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 8px;
}

.help-button--primary {
  color: var(--help-on-primary);
  background: var(--primary);
}

@media (max-width: 640px) {
  .help-actions .help-button {
    flex: 1 1 100%;
  }

  /* A table's rows stand as cards, each cell under its column's name. */
  .help-table,
  .help-table tbody,
  .help-table tr,
  .help-table td {
    display: block;
  }

  .help-table {
    background: transparent;
    border: 0;
  }

  .help-table thead {
    display: none;
  }

  .help-table tr {
    margin-bottom: var(--space-3);
    padding: var(--space-2) 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
  }

  .help-table td {
    border-bottom: 0;
    padding: var(--space-1) var(--space-3);
  }

  .help-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
  }
}

/* Lukio help center: the question section's rules.  The generator appends this sheet to help.css only on a run that
   carries a question (a preview, or a site run with the section released), so a site run with the section held
   publishes the help pages' rules alone. */

/* The question section.  In the topics column: every topic, and under the topic being read, its questions. */
.help-browse__questions {
  list-style: none;
  margin: 2px 0 var(--space-2) var(--space-3);
  padding: 0 0 0 var(--space-2);
  border-left: 2px solid var(--border);
}

.help-browse__questions a {
  font-size: var(--font-size-sm);
}

/* On the landing: the section's name and summary, then every topic with its first questions. */
.help-questions {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.help-questions__title {
  margin: 0 0 var(--space-2);
  font: 700 var(--font-size-xl) / 1.3 var(--font-family-display);
  color: var(--text-primary);
}

.help-credit {
  margin: 0 0 var(--space-6);
  max-width: 72ch;
  font-size: var(--font-size-sm);
  line-height: 1.55;
  color: var(--text-tertiary);
}

.help-question-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--space-6) var(--space-8);
}

.help-question-topic {
  min-width: 0;
}

.help-question-topic__title {
  margin: 0;
  font: 700 var(--font-size-base) / 1.3 var(--font-family-display);
}

.help-question-topic__title a {
  color: var(--text-primary);
  text-decoration: none;
}

.help-question-topic__title a:hover {
  color: var(--primary);
}

.help-question-topic__count,
.help-question-count {
  margin: 2px 0 var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

.help-question-topic__questions {
  margin: 0;
  padding-left: var(--space-4);
  list-style: disc;
  font-size: var(--font-size-sm);
}

.help-question-topic__questions li {
  margin-bottom: var(--space-1);
}

/* A topic page: each question with its short answer. */
.help-question-list {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
  max-width: 72ch;
  display: grid;
  gap: var(--space-4);
}

.help-question-list li {
  min-width: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.help-question-list a {
  font-weight: 600;
  font-size: var(--font-size-base);
  text-decoration: none;
}

.help-question-list p {
  margin: var(--space-1) 0 0;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}

/* A question page: who asks it, the answer, the cards and the source. */
.help-roles {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.help-roles li {
  padding: 1px var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--help-chip-edge);
  border-radius: var(--radius-full);
}

.help-answer .help-paragraph {
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.help-in-lukio {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-3);
  max-width: 72ch;
}

.help-in-lukio__card {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.help-in-lukio__title {
  margin: 0;
  font: 650 var(--font-size-base) / 1.35 var(--font-family);
}

.help-in-lukio__title a {
  text-decoration: none;
}

.help-in-lukio__card p {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}

.help-in-lukio__steps {
  font-size: var(--font-size-sm);
}

.help-source {
  margin: var(--space-2) 0 var(--space-6);
  padding: var(--space-3) var(--space-4);
  max-width: 72ch;
  background: var(--surface-secondary);
  border: 1px solid var(--help-chip-edge);
  border-radius: 12px;
}

.help-source p {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-sm);
  line-height: 1.55;
}

.help-source p:last-child {
  margin-bottom: 0;
}

.help-source__quote {
  margin: 0 0 var(--space-2);
  padding: 0 0 0 var(--space-3);
  border-left: 2px solid var(--help-chip-edge);
  font-size: var(--font-size-sm);
  font-style: italic;
  line-height: 1.55;
  color: var(--text-secondary);
}

.help-source__quote:last-child {
  margin-bottom: 0;
}

/* The day the answer was last written or checked, closing "Where this comes from". */
.help-source .help-source__updated {
  margin-top: var(--space-3);
  color: var(--text-secondary);
}

/* The short answer, first on a question page, in a card of its own. */
.help-short-answer {
  margin: 0 0 var(--space-6);
  padding: var(--space-4) var(--space-6);
  max-width: 68ch;
  background: var(--help-info-bg);
  border: 1px solid var(--help-info-edge);
  border-radius: 12px;
}

.help-short-answer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
}

.help-short-answer__label {
  margin: 0;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--help-info-ink);
}

.help-short-answer__text {
  margin: 0;
  font-size: var(--font-size-lg);
  line-height: 1.55;
  color: var(--text-primary);
}

/* The badge that opens CDC's own article for a question, on its short answer and in a topic's list. */
.help-cdc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--help-info-ink);
  background: var(--surface);
  border: 1px solid var(--help-info-edge);
  border-radius: 999px;
}

.help-cdc-badge:hover {
  text-decoration: underline;
}

.help-cdc-badge__icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-question-list .help-cdc-badge {
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* The band that ends a question page, for a reader new to Lukio. */
.help-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: var(--space-8) 0 0;
  padding: var(--space-6);
  color: var(--help-band-muted);
  background: var(--help-band-bg);
  border-radius: 14px;
}

.help-band__words {
  flex: 1 1 320px;
  min-width: 0;
}

.help-band__words p {
  margin: 0;
  color: var(--help-band-muted);
}

.help-band .help-band__others {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
}

.help-band a:not(.help-button) {
  color: var(--help-band-ink);
  text-decoration: underline;
}

.help-band .help-band__title {
  margin-bottom: var(--space-1);
  font: 700 var(--font-size-xl) / 1.3 var(--font-family-display);
  color: var(--help-band-ink);
}

.help-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.help-button--inverse {
  color: var(--help-band-bg);
  background: var(--help-band-ink);
  border-color: var(--help-band-ink);
}

.help-button--outline-inverse {
  color: var(--help-band-ink);
  background: transparent;
  border-color: var(--help-band-muted);
}

@media (max-width: 640px) {
  .help-band__actions,
  .help-band__actions .help-button {
    flex: 1 1 100%;
  }
}
