/* Site shell styles for ai.donnaruma.us.
   Every color, space, radius and type size is a variable from /css/tokens.css, which is generated
   from design/tokens.json: this file adds no colors of its own. There are no inline styles in the
   markup (the CSP is style-src 'self'), so every visual rule lives here. */

/* Fonts: self-hosted variable WOFF2 (Latin subset), preloaded by the Layout. */
@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

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

html {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  font-weight: var(--type-h1-weight);
  letter-spacing: var(--type-h1-tracking);
}

h2 {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  font-weight: var(--type-h2-weight);
  letter-spacing: var(--type-h2-tracking);
}

h3 {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  font-weight: var(--type-h3-weight);
  letter-spacing: var(--type-h3-tracking);
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Links in running text stay underlined, so they never rely on color alone. */
a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

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

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 720px) {
  .wrap {
    padding-inline: var(--space-5);
  }
}

/* Text styles */
.eyebrow {
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: var(--type-button-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-label-weight);
}

.lede {
  color: var(--ink-2);
  font-size: var(--type-lede-size);
  line-height: var(--type-lede-line);
  font-weight: var(--type-lede-weight);
  max-width: 54ch;
}

.note {
  color: var(--ink-3);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  max-width: 60ch;
}

/* Skip link: off-screen until it takes keyboard focus. */
.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--type-button-size);
  font-weight: var(--type-button-weight);
  text-decoration: none;
}

.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:hover {
  color: var(--on-accent);
}

/* The skip link's target (main, tabindex -1) and the register form's error summary take focus
   from a link or on load. A ring around a whole region says nothing, so it shows only when the
   browser judges the focus keyboard-visible. */
main[tabindex="-1"]:focus:not(:focus-visible),
.form-errors[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

/* Header */
.site-header {
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  flex: none;
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a:not(.btn) {
  color: var(--ink-2);
  font-size: var(--type-button-size);
  text-decoration: none;
}

.main-nav a:not(.btn):hover {
  color: var(--ink);
}

.main-nav a[aria-current="page"]:not(.btn) {
  color: var(--accent-text);
}

/* Below 900px the nav takes its own row and wraps; no JS. */
@media (max-width: 899px) {
  .main-nav {
    flex-basis: 100%;
  }
}

@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }
}

/* Buttons: pill, primary = accent fill with on-accent text, ghost = control-border edge. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--type-button-size);
  line-height: var(--type-button-line);
  font-weight: var(--type-button-weight);
  letter-spacing: var(--type-button-tracking);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.btn.ghost {
  background: transparent;
  border-color: var(--control-border);
  color: var(--ink);
}

.btn.ghost:hover,
.btn.ghost[aria-current="page"] {
  border-color: var(--accent);
  color: var(--ink);
}

.btn.sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--type-label-size);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* Home hero */
.hero {
  padding-block: var(--space-18) var(--space-14);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  justify-items: start;
  gap: var(--space-5);
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(38px, 6vw, var(--type-display-xl-size));
  line-height: var(--type-display-xl-line);
  font-weight: var(--type-display-xl-weight);
  letter-spacing: var(--type-display-xl-tracking);
}

.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* Page title block (404 and, later, inner pages) */
.page-hero {
  padding-block: var(--space-14) var(--space-10);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, var(--type-display-size));
  line-height: var(--type-display-line);
  font-weight: var(--type-display-weight);
  letter-spacing: var(--type-display-tracking);
}

@media (max-width: 719px) {
  .hero {
    padding-block: var(--space-12) var(--space-10);
  }

  .page-hero {
    padding-block: var(--space-12) var(--space-8);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-8);
  padding-block: var(--space-10) var(--space-6);
}

.footer-brand {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-4);
}

.footer-about {
  max-width: 40ch;
  color: var(--ink-2);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

.footer-nav ul {
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: var(--space-2) var(--space-8);
  justify-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

.footer-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-4) var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

@media (max-width: 719px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sponsor line: "Sponsored by" label, DPC's own logo about 30px tall, then the seller disclosure. */
.sponsor {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.sponsor-label {
  color: var(--ink-3);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-label-weight);
}

.sponsor-logo {
  display: inline-block;
}

.sponsor-disclosure {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

/* Register form (checkout): one column of labelled fields, the error summary on top, the
   Turnstile widget (rendered by api.js into .cf-turnstile) and the submit row with the seller line. */
.checkout {
  padding-block: var(--space-10) var(--space-14);
}

/* The column is capped, not the .wrap, so the form stays left-aligned under the page title. */
.checkout-inner {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  gap: var(--space-6);
}

.register-form {
  display: grid;
  gap: var(--space-5);
}

.field {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > label,
.field > legend {
  color: var(--ink);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-label-weight);
  letter-spacing: var(--type-label-tracking);
}

.field > legend {
  margin-bottom: var(--space-2);
  padding: 0;
}

.field-hint {
  color: var(--ink-3);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

.field-error {
  color: var(--danger);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  font-weight: var(--type-label-weight);
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
}

.field input[type="text"]:hover,
.field input[type="email"]:hover {
  border-color: var(--ink-3);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field.checkbox {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-3);
}

.field.checkbox > label {
  color: var(--ink-2);
  font-weight: var(--type-body-weight);
}

.field input[type="checkbox"],
.choice input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.choices {
  gap: var(--space-3);
}

.choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.choice:has(input:checked) {
  border-color: var(--accent);
}

.choice label {
  display: grid;
  gap: var(--space-1);
  cursor: pointer;
}

.choice-label,
.ticket-label {
  color: var(--ink);
  font-weight: var(--type-label-weight);
}

.ticket-summary {
  padding: var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  gap: var(--space-1);
}

.seats-left {
  color: var(--accent-text);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

.turnstile-field {
  min-height: 65px;
}

.form-actions {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
}

.form-errors {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--danger);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

.form-errors h2 {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  margin-bottom: var(--space-2);
}

.form-errors ul {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding-left: var(--space-5);
}

.form-errors a {
  color: var(--danger);
}

/* Team page (/team/:token): one block per named member, with its change form folded under a
   summary, so the page stays a short list until the buyer opens one. */
.team-member {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.team-member summary {
  cursor: pointer;
  color: var(--accent-text);
  font-weight: var(--type-label-weight);
}

.team-member details[open] summary {
  margin-bottom: var(--space-4);
}

/* Public pages (TRD 05-05): the home sections, the sessions calendar and the session rows they
   share. Tokens only (no hex or rgb values: test/brand.test.ts scans for them); green text uses
   --accent-text, which is the dark-green token on a light ground. */
.block {
  padding-block: var(--space-12);
}

.block + .block {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.section-more {
  margin-top: var(--space-5);
}

.label {
  color: var(--accent-text);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-label-weight);
}

/* The next-session card on the home page. */
.next-up {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  max-width: 640px;
  padding: var(--space-6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.card-label {
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-label-weight);
  letter-spacing: var(--type-label-tracking);
}

/* Session rows: a date block, then the title (the row's only link), when and where, price and seats.
   Below 720px the date block sits above the text. */
.session-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.session-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.session-date {
  display: grid;
  justify-items: center;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  line-height: 1.1;
}

.session-date b {
  font-family: var(--font-display);
  font-size: var(--type-figure-size);
  font-weight: var(--type-figure-weight);
}

.session-date span {
  color: var(--ink-2);
  font-size: var(--type-small-size);
}

.session-body {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.session-body h3 a {
  color: var(--ink);
}

.session-body h3 a:hover {
  color: var(--accent-hover);
}

.session-meta {
  color: var(--ink-2);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

.session-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

.session-price {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--type-figure-weight);
}

.seats-text {
  color: var(--ink-2);
}

@media (max-width: 719px) {
  .session-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .session-date {
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
    gap: var(--space-2);
    padding: 0;
    background: transparent;
  }

  .session-date span {
    font-size: var(--type-label-size);
  }
}

/* Calendar filters: groups of pill links. The current one has an accent border, a tint and an
   underline, so colour is never the only sign. Every link is at least 44px tall. */
.filter-bar {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.filter-caption {
  min-width: 56px;
  color: var(--ink-3);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-label-weight);
}

.filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.filters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-4);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: var(--type-button-size);
  font-weight: var(--type-button-weight);
  text-decoration: none;
}

.filters a:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.filters a[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent-tint);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.result-count {
  margin-bottom: var(--space-5);
  color: var(--ink-2);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

.month-group {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  max-width: 640px;
  padding: var(--space-6);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}

/* The three paths on the home page: three cards, one column below 900px. */
.paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0 0 var(--space-8);
  padding: 0;
  list-style: none;
}

.path {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.path-blurb {
  color: var(--ink-2);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

.path-items {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-items li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

.path-items a {
  font-weight: var(--type-label-weight);
}

.path-note {
  color: var(--ink-3);
  font-size: var(--type-small-size);
}

@media (max-width: 899px) {
  .paths {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The $25 promise callout. */
.promise-box {
  max-width: 62ch;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
}

/* Lists of plain points, each with a drawn tick. */
.ticks {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: var(--space-8);
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 16px;
  height: 8px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-10);
}

.how-grid .section-head {
  margin-bottom: 0;
}

@media (max-width: 899px) {
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}

/* Session page (/sessions/:slug): the hero's time, price and action, the facts, the seat bar and
   the agenda. The seat bar is a <progress>, because the CSP refuses a style attribute. */
.session-when {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--type-figure-size);
  line-height: var(--type-figure-line);
  font-weight: var(--type-h3-weight);
}

.session-price-line {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--type-figure-size);
  line-height: var(--type-figure-line);
  font-weight: var(--type-figure-weight);
}

.session-actions,
.session-notice {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.session-notice h2 {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
}

.notice-line {
  color: var(--ink);
  font-weight: var(--type-label-weight);
}

.next-date a {
  font-weight: var(--type-label-weight);
}

.session-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  gap: var(--space-8);
}

.session-block {
  display: grid;
  gap: var(--space-4);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.facts > div {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.facts dt {
  color: var(--ink-3);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-label-weight);
}

.facts dd {
  margin: var(--space-1) 0 0;
  color: var(--ink);
  font-weight: var(--type-label-weight);
}

.fact-parts {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.seats {
  display: grid;
  gap: var(--space-2);
  max-width: 420px;
}

.seats-line {
  color: var(--ink);
  font-weight: var(--type-label-weight);
}

progress {
  appearance: none;
  width: 100%;
  height: 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background: var(--surface-raised);
}

progress::-webkit-progress-value {
  background: var(--accent);
}

progress::-moz-progress-bar {
  background: var(--accent);
}

.agenda {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.agenda li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.agenda-at {
  color: var(--accent-text);
  font-weight: var(--type-label-weight);
  font-variant-numeric: tabular-nums;
}

.agenda p {
  color: var(--ink-2);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

/* Reading pages (TRD 05-08): About, Terms and refunds, Privacy and Accessibility. .prose is one
   column of running text about 780px wide with a steady heading rhythm; .split puts it beside a
   side .panel, in one column below 900px. Tokens only, like the rest of this file. */
.prose {
  display: grid;
  align-content: start;
  gap: var(--space-5);
  max-width: 780px;
}

.prose p,
.prose li {
  max-width: 68ch;
}

.prose h2 {
  margin-top: var(--space-4);
}

.prose > :first-child,
.prose > :first-child h2 {
  margin-top: 0;
}

.prose-lede {
  color: var(--ink);
  font-size: var(--type-lede-size);
  line-height: var(--type-lede-line);
}

.prose-section {
  display: grid;
  gap: var(--space-3);
}

.prose-section h2 {
  margin-top: 0;
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  font-weight: var(--type-h2-weight);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: start;
  gap: var(--space-12);
}

.panel {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.panel-rule {
  justify-self: stretch;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* A table in running text. The wrapper owns the sideways scroll on a narrow phone, so the page
   never overflows and the text never shrinks below the body size; it takes keyboard focus so the
   scroll works without a pointer. */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  line-height: var(--type-small-line);
}

.table-wrap caption {
  padding: var(--space-4) var(--space-5) 0;
  caption-side: top;
  text-align: left;
  color: var(--ink-2);
  font-weight: var(--type-label-weight);
}

.table-wrap th,
.table-wrap td {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap thead th {
  color: var(--ink-3);
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
}

.table-wrap tbody th {
  font-weight: var(--type-label-weight);
}

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

@media (max-width: 899px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
}

/* Tap targets (TRD 05-09, PUB-06): every button and every link that stands on its own (not a link
   inside a sentence) is at least 44px tall, at every width, so a thumb can hit it on a phone. The
   browser check (scripts/browser-check.mjs) measures this at 390 and 320 pixels wide. A checkbox's
   target is its label too, so the label row carries the height. */
.btn,
.skip-link {
  min-height: 44px;
}

.skip-link:not(:focus) {
  min-height: 0;
}

.skip-link {
  display: inline-flex;
  align-items: center;
}

.brand,
.sponsor-logo,
.main-nav a:not(.btn),
.footer-nav a,
.session-body h3 a,
.path-items a,
.section-more a,
.next-date a,
.empty-state a,
.panel p > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.field.checkbox > label {
  min-height: 44px;
}

/* One file per ground for fixed-ink artwork (the lockup, DPC's logo). The hidden one stays
   display:none, so screen readers skip it. */
.on-light {
  display: none;
}

[data-theme="light"] .on-dark {
  display: none;
}

[data-theme="light"] .on-light {
  display: block;
}

@media print {
  .on-dark {
    display: none;
  }

  .on-light {
    display: block;
  }

  .skip-link,
  .main-nav {
    display: none;
  }
}
