/* Shared by the review pages. Every value comes from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--ground);
  color: var(--ink);
  font: 300 var(--t-body)/var(--lh-body) var(--font-sans);
  font-variant-numeric: lining-nums;
  overflow-anchor: none; /* The audition page holds its own place, so no browser may do it too. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { margin: 0; overflow-wrap: break-word; }
main {
  max-width: var(--page);
  margin-inline: auto;
  padding:
    calc(var(--s-7) + env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    calc(var(--s-7) + env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1 { font-size: var(--t-title); font-weight: 300; line-height: var(--lh-title); letter-spacing: var(--track-tight); }
h1 + p { margin-block-start: var(--s-4); }
h2 { font-size: var(--t-door); font-weight: 400; line-height: var(--lh-door); }
h3 { font-size: var(--t-lede); font-weight: 400; line-height: var(--lh-lede); }
a { color: var(--blue); }
.quiet { color: var(--ink-2); }
.small { font-size: var(--t-small); line-height: var(--lh-small); }
:focus-visible { outline: var(--line-focus) solid currentColor; outline-offset: var(--s-1); }

.label, .chip {
  font: 400 var(--t-label)/var(--lh-label) var(--font-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.label { color: var(--ink-2); }
.chip {
  display: inline-block;
  padding: var(--s-1) var(--s-2);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--on-fill);
}
.chip.warn { background: var(--warning); color: var(--label-ink); }
.chip.fail { background: var(--red); }

svg.icon {
  display: block;
  width: var(--icon);
  height: var(--icon);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}
#theme-toggle {
  position: absolute;
  z-index: 5;
  top: calc(var(--s-2) + env(safe-area-inset-top));
  right: calc(var(--s-2) + env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink-2);
  touch-action: manipulation;
}
/* Fixed only where it is clear of the column, so it never covers the page on a phone. */
@media (min-width: 1100px) {
  #theme-toggle { position: fixed; }
}
#theme-toggle .moon, :root[data-theme="dark"] #theme-toggle .sun { display: none; }
:root[data-theme="dark"] #theme-toggle .moon { display: block; }

/* The index: rows hung on the axis (columns 1 and 2 hold the label, 3 to 6 the rest). */
.rows { list-style: none; padding: 0; margin-block: var(--s-6) var(--s-5); border-bottom: var(--line) solid var(--hair); }
.rows > li { border-top: var(--line) solid var(--hair); }
.row {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--gap);
  align-items: baseline;
  min-height: var(--tap-row);
  padding-block: var(--s-4);
  color: inherit;
  text-decoration: none;
}
.row > :first-child { grid-column: 1 / span 2; justify-self: start; }
.row > :last-child { grid-column: 3 / -1; }
.row h2 { color: var(--ink); font-size: var(--t-lede); line-height: var(--lh-lede); }
.row .label { line-height: var(--lh-label-wrapped); }
a.row h2 { color: var(--blue); }
.row .unbuilt { color: var(--ink-3); }
