/* Commitment page only (site/pages/commitment.html). Linked after site.css and pages.css.
   Transcribed from the Commitment, CommitmentPhone, CommitmentPhone--toc-open and CommitmentTablet boards (M-Commitment).
   Tokens only, logical properties. The one motion is the "On this page" chevron, under no-preference with a duration token.

   Layout: the page is a grid. The head (eyebrow and h1) and the article's opening lines share the first row from 957px up
   (the board's auto-fit, two 420px columns and the gap), one column below. The article is `display: contents`, so each of its
   parts is a row of the page; the parts are in the order of content/commitment.md, which is the source (COMMIT-1). */

.page--commitment { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); }
article.prose.commitment { display: contents; }
.page--commitment .commitment > * { grid-column: 1 / -1; max-width: none; margin: clamp(56px, 7vw, 96px) 0 0; }
.commitment p, .commitment ul { margin: 0; }

/* — head: the eyebrow is the board's plain mono line, the h1 its display size at line-height .96 — */
.page--commitment .page-head { --display-leading: 0.96; max-width: none; padding-top: 0; gap: 20px; align-self: end; }
.page--commitment .page-head .eyebrow { font-size: 12.5px; font-weight: var(--weight-regular); line-height: 1.7; letter-spacing: normal; text-transform: none; }

/* — opening lines: beside the h1 from 957px up, under it with the board's 40px gap below — */
.page--commitment .commitment .commitment__intro {
  display: flex; flex-direction: column; gap: 20px; margin-block-start: 40px; align-self: end; justify-self: end;
  max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--color-text-muted);
}
@media (min-width: 957px) {
  .page--commitment { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .page--commitment .page-head { grid-column: 1; grid-row: 1; }
  .page--commitment .commitment .commitment__intro { grid-column: 2; grid-row: 1; margin-block-start: 0; }
}

/* — "On this page": a phone only — */
.commitment__toc { display: none; border: 1px solid var(--color-line); border-radius: var(--radius-well); background: var(--color-surface); }
@media (max-width: 720px) { .commitment__toc { display: block; color: var(--color-text); } }
.commitment__toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-4);
  font-size: 14.5px; font-weight: var(--weight-semibold); line-height: normal; color: var(--color-text); cursor: pointer; list-style: none;
}
.commitment__toc summary::-webkit-details-marker { display: none; }
.commitment__toc .chev { flex: none; width: 18px; height: 18px; stroke-width: 2.2; }
.commitment__toc[open] .chev { transform: rotate(180deg); }
.commitment__toc nav { display: flex; flex-direction: column; padding: 0 var(--space-4) 10px; }
.commitment__toc nav a {
  display: flex; align-items: center; min-height: 45px; border-block-start: 1px solid var(--color-line);
  font-size: 14.5px; line-height: normal; text-decoration: none; color: var(--color-text-muted);
}
.commitment__toc nav a:hover { color: var(--color-text); }
@media (prefers-reduced-motion: no-preference) {
  .commitment__toc .chev { transition: transform var(--dur-ui) var(--ease-out); }
}

/* — section titles: the board's two sizes, the 8px here plus the page's scroll-padding leave the board's 24px of air under the sticky header — */
.page--commitment .commitment h2.commitment__title, .page--commitment .commitment div.commitment__title {
  margin: 0; scroll-margin-block-start: var(--space-2); font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px);
  font-weight: var(--weight-heavy); line-height: 1; letter-spacing: -0.03em; color: var(--color-text); text-wrap: auto;
}
.commitment__section { display: flex; flex-direction: column; gap: var(--space-4); }
.commitment__section p { color: var(--color-text-muted); line-height: 1.55; }
.commitment__section strong { font-weight: var(--weight-semibold); color: var(--color-text); }
.commitment__section .commitment__key { font-size: 18px; font-weight: var(--weight-semibold); line-height: 1.45; color: var(--color-text); }

/* — the short version: the dark panel, the quote as display text, the lapse values marked — */
.page--commitment .commitment .commitment__short { margin-block-start: var(--space-12); gap: 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-hero); }
.commitment .commitment__short .callout {
  margin: 0; padding: 0; background: none; border-radius: 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 34px);
  font-weight: var(--weight-bold); line-height: 1.25; letter-spacing: -0.02em; color: var(--color-on-band); text-wrap: pretty;
}

/* — the events table: a bordered card; a phone gets one card per row, the first column its title — */
.page--commitment .commitment .commitment__table { margin-block-start: clamp(48px, 6vw, 80px); gap: var(--space-6); }
.page--commitment .commitment .commitment__table h2.commitment__title { font-size: clamp(32px, 4vw, 52px); }
.commitment__events { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-well); background: var(--color-surface); }
.commitment__events .commitment-table { margin: 0; font-size: 14.5px; line-height: 1.5; }
.commitment__events .commitment-table th, .commitment__events .commitment-table td { padding: var(--space-4); font-size: 14.5px; line-height: 1.5; border-bottom: 1px solid var(--color-line); }
.commitment__events .commitment-table thead th { font-size: 14.5px; font-weight: var(--weight-semibold); color: var(--color-text); }
.commitment__events .commitment-table tbody th, .commitment__events .commitment-table tbody th strong { font-weight: var(--weight-semibold); }
.commitment__events .commitment-table tbody tr:last-child > * { border-bottom: 0; }
.commitment__events .commitment-table td:nth-child(3), .commitment__events .commitment-table td:nth-child(4) { color: var(--color-text-muted); }
.commitment__events .commitment-table thead th:nth-child(1) { width: 18%; }
.commitment__events .commitment-table thead th:nth-child(2) { width: 30%; }
.commitment__events .commitment-table thead th:nth-child(3) { width: 22%; }
@media (min-width: 721px) and (max-width: 1023px) {
  .commitment__events .commitment-table th, .commitment__events .commitment-table td { padding: var(--space-3); font-size: 14px; }
}
@media (max-width: 720px) {
  .commitment__events { overflow: visible; border: 0; background: transparent; }
  .commitment__events .commitment-table, .commitment__events .commitment-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .commitment__events .commitment-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .commitment__events .commitment-table tr {
    display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); border: 1px solid var(--color-line);
    border-radius: var(--radius-well); background: var(--color-surface);
  }
  .commitment__events .commitment-table th, .commitment__events .commitment-table td { display: block; padding: 0; border: 0; width: auto; }
  .commitment__events .commitment-table tbody th { font-size: 16px; }
  .commitment__events .commitment-table td { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
  .commitment__events .commitment-table td::before { content: attr(data-label) ":"; display: inline; font-size: inherit; font-weight: var(--weight-semibold); color: var(--color-text-muted); }
}

/* — pairs of sections: two columns where there is room (the board's auto-fit, 380px) — */
.commitment__pair, .commitment__band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: var(--space-12); align-items: start; }

/* The band holds the boundary and the checks: the surface fill with a line above and below, bleeding past the page column
   as `.band` does (a spread shadow clipped to the sides, so no scrollable overflow); the lines are a border image with an
   outset, which adds none either. */
.page--commitment .commitment .commitment__band {
  margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding: clamp(56px, 7vw, 96px) clamp(16px, 4vw, 40px);
  background: var(--color-surface); box-shadow: 0 0 0 100vmax var(--color-surface); clip-path: inset(0 -100vmax);
  border-block: 1px solid transparent; border-image: linear-gradient(var(--color-line), var(--color-line)) 1 / 1px 0 / 0 100vmax;
}

/* "How you can check us": one row per check, the bold lead word on its own line. */
.commitment .commitment__list { display: flex; flex-direction: column; gap: 2px; padding: 0; list-style: none; border: 1px solid var(--color-line); border-radius: var(--radius-well); overflow: hidden; }
.commitment__list li { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 18px var(--space-5); background: var(--color-bg); font-size: 15px; line-height: 1.5; color: var(--color-text-muted); }
.commitment__list li + li { margin: 0; }
.commitment__list strong { font-size: 16px; line-height: normal; font-weight: var(--weight-semibold); color: var(--color-text); }

/* — the closing line: a heading and one paragraph; the rule between it and the source's last line is read, not drawn — */
.commitment__foot { display: flex; flex-direction: column; gap: var(--space-4); }
.commitment__foot p { max-width: 760px; color: var(--color-text-muted); line-height: 1.55; }
.commitment__foot .hr { display: none; }
