/* The dates page and the distributor show page. Both use /home.css for
   everything shared; this file holds only what is particular to them.
   Edited by hand, like the homepage. */

/* sections here are as tall as their content, not one screen each */
main > section { min-height: 0; }
main > .dl-hero { padding-top: clamp(120px, 12vw, 220px); padding-bottom: clamp(40px, 4vw, 90px); }
.dl-hero h1 { font-size: clamp(32px, 4.2vw, 84px); max-width: 15em; }
.dl-hero .lead { max-width: 34em; }

/* the "last checked" line is a fact about the page, set where it is read first */
.checked { border-left: 3px solid var(--accent); padding: .2em 0 .2em 1em; font-size: var(--t-ui); color: var(--ink); max-width: 40em; }
.checked strong { font-weight: 700; }

/* one dated row: when, what it is, what to have ready */
.dates li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); column-gap: var(--gap); row-gap: 10px; align-items: start; padding: clamp(22px, 2vw, 48px) 0; border-bottom: 1px solid var(--line); }
.dates li:first-child { border-top: 1px solid var(--line); }
.dates .when { color: var(--ink); max-width: none; font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dates .when span { display: block; font-size: var(--t-ui); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: .35em; }
.dates .what { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dates h3 { font-size: var(--t-h3); letter-spacing: -0.015em; line-height: 1.25; }
.dates p { color: var(--muted); max-width: 42em; }
.dates .ready { color: var(--ink); }
.dates .ready b { font-weight: 700; }
.dates .src { font-size: var(--t-ui); }

/* last cycle's dates sit on a tinted ground so they are never read as this year's */
.pattern { background: var(--tint); }
.pattern .dates li { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }

/* the worked example: a table that scrolls inside itself on a phone */
.scroll { overflow-x: auto; max-width: 100%; }
.math { border-collapse: collapse; width: 100%; font-size: var(--t-ui); font-variant-numeric: tabular-nums; }
.math th, .math td { text-align: left; padding: .8em 1em .8em 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.math th { font-weight: 600; color: var(--muted); }
.math td:nth-child(n+2), .math th:nth-child(n+2) { white-space: nowrap; text-align: right; padding-right: 0; padding-left: 1em; }
.math td span { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-sm); margin-top: .2em; }
.math tr:last-child td { font-weight: 700; color: var(--ink); border-bottom: 0; }
.math caption { caption-side: bottom; text-align: left; padding-top: 1em; color: var(--muted); font-size: var(--t-sm); }

/* plain lists inside a section */
.plain li { padding: clamp(14px, 1.2vw, 28px) 0; border-bottom: 1px solid var(--line); color: var(--muted); max-width: 44em; }
.plain li:first-child { border-top: 1px solid var(--line); }
.plain strong { color: var(--ink); }

.closing .aside { font-size: var(--t-ui); max-width: 34em; color: #FFFFFF; }

@media (max-width: 900px) {
  .split > .a, .split > .b { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  main > .dl-hero { padding-top: 104px; }
  .dl-hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .dates li { grid-template-columns: minmax(0, 1fr); }
  .closing .btn { width: 100%; }
}
