/*
  Shared styles for the plain document pages: /rider/ and /press/.
  ----------------------------------------------------------------------------
  Provides the tokens, page frame, headings, definition lists (<dl> rows), the
  data table, notes and the print stylesheet. Each page adds its own file:
    rider/rider.css   signal-path diagram
    press/press.css   language switcher, bios, copy buttons

  The print rules at the bottom switch to dark-on-white and hide the screen-only
  parts, so the browser's Print / Save as PDF output is clean (the rider PDF is
  generated this way: see tools/make-rider-pdf.py).
*/
:root{--bg:#050b0c;--panel:#0c1a1b;--seafoam:#9fb8b1;--ink:#e7e3d7;--amber:#c8a46b;--line:rgba(159,184,177,.2);--font:'Jost','Helvetica Neue',Arial,sans-serif;color-scheme:dark}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-weight:300;font-size:18px;line-height:1.6;padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px));padding-block:40px 80px}
.wrap{max-width:46rem;margin:0 auto}
a{color:var(--seafoam);text-decoration:none;border-bottom:1px solid var(--line)}
a:hover{color:var(--amber);border-color:var(--amber)}

/* Top bar: back link on the left, page name (and any page action) on the right */
.top{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:14px;letter-spacing:.16em;color:var(--seafoam);margin-bottom:56px}
.top a{border:0}
.top a.pdf{border-bottom:1px solid currentColor}

/* Title block */
h1{margin:0 0 6px;font-weight:200;font-size:clamp(34px,6vw,52px);letter-spacing:.06em;line-height:1.1}
.sub{color:var(--amber);letter-spacing:.2em;font-size:15px;margin:0 0 28px}
.lede{font-size:20px;margin:0 0 48px;max-width:36rem}
h2{margin:48px 0 14px;font-weight:300;font-size:15px;letter-spacing:.24em;color:var(--amber);text-transform:lowercase}

/* Label / value rows. On narrow screens the label sits above its value. */
dl{margin:0;display:grid;grid-template-columns:minmax(0,11rem) minmax(0,1fr);gap:0 28px}
dt,dd{margin:0;padding:14px 0;border-top:1px solid var(--line)}
dt{color:var(--seafoam);font-size:16px;letter-spacing:.06em}
dd{min-width:0}
dl>:nth-last-child(-n+2){border-bottom:1px solid var(--line)}
.note{font-size:15px;color:var(--seafoam);display:block;margin-top:2px} /* small line under a value */

/* Table (rider outputs) */
table{width:100%;border-collapse:collapse;font-size:17px}
th,td{text-align:left;padding:12px 14px 12px 0;border-top:1px solid var(--line);vertical-align:top}
th{font-weight:300;color:var(--seafoam);font-size:14px;letter-spacing:.14em}
tr:last-child td{border-bottom:1px solid var(--line)}
.scroll{overflow-x:auto} /* lets a wide table scroll inside the page instead of widening it */

.contact{font-size:20px}
.foot{margin-top:64px;font-size:14px;letter-spacing:.1em;color:var(--seafoam)}

@media(max-width:600px){
  dl{grid-template-columns:1fr}
  dt{border-bottom:0;padding-bottom:0}
  dd{border-top:0;padding-top:2px}
  dl>:nth-last-child(-n+2){border-bottom:0}
  dl>dd:last-child{border-bottom:1px solid var(--line)}
}

@media print{
  :root{color-scheme:light}
  body{background:#fff;color:#111;font-size:12pt;padding:0}
  a{color:#111;border:0}
  dt,th,.note,.top,.foot{color:#444}
  .sub,h2{color:#7a5a1e}
  .pdf{display:none}
  h2{break-after:avoid}
  dl,table,svg{break-inside:avoid}
  dt,dd,th,td{border-color:#ccc}
}
