/* Source Sans 3, self-hosted (SIL Open Font License, see /fonts/OFL.txt). One variable file per subset covers 400-700. */
@font-face {
  font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-sans-3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Real Gear Map. Design rules: see "Design" in CLAUDE.md. */
:root {
  --ink: #1f2328;
  --muted: #57606a;
  --line: #d0d7de;
  --panel-line: #ced4da;
  --page: #f4f5f6;
  --bar: #16191c;
  --link: #1a56b8;
  --link-hover: #0f3a80;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.bar { background: var(--bar); color: #e9ecef; }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.bar .home { color: #fff; font-weight: 700; font-size: 19px; text-decoration: none; }
.bar nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 16px; }
.bar nav a { color: #e9ecef; }
.bar form { margin-left: auto; }
.bar input {
  font: inherit; font-size: 15px; padding: 6px 10px; width: 260px; max-width: 100%;
  border: 1px solid #5c636a; border-radius: 2px; background: #23272b; color: #fff;
}
.sr { position: absolute; left: -9999px; }

/* Content panel */
main {
  max-width: 1600px; margin: 20px auto; padding: 24px 28px 40px;
  background: #fff; border: 1px solid var(--panel-line);
}
.crumbs { margin: 0 0 8px; font-size: 15px; color: var(--muted); }
h1 { margin: 0; font-size: 36px; line-height: 1.2; }
h2 { margin: 36px 0 10px; font-size: 22px; }
.facts { margin: 6px 0 0; color: var(--muted); }
.note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }

.cols { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 28px; align-items: flex-start; }
.cols > .body { flex: 999 1 560px; min-width: 0; }
.cols > .body > h2:first-child { margin-top: 0; }
.cols > aside { flex: 1 1 300px; min-width: 0; max-width: 340px; border: 1px solid var(--line); }
aside dl { margin: 0; padding: 12px 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
aside dt { color: var(--muted); }
aside dd { margin: 0; }
aside .buy { border-top: 1px solid var(--line); padding: 12px 16px 16px; }
aside h2 { margin: 0 0 8px; font-size: 17px; }
aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
aside img { display: block; width: 100%; height: auto; }

/* Tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
thead tr { text-align: left; border-bottom: 2px solid var(--ink); }
th { font-weight: 600; text-align: left; }
th, td { padding: 8px 12px; vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr { border-bottom: 1px solid var(--line); }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid { min-width: 560px; }
.grid tbody th { width: 22%; }
.grid tr:target th, .grid tr:target td { background: #eef3fb; }
.aka { color: var(--muted); font-size: 15px; margin-top: -4px; }
.grid .kind { color: var(--muted); }
.maker td { padding-top: 18px; font-weight: 700; border-bottom: 2px solid var(--ink); }

.filter { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 20px 0 12px; }
.filter input { font: inherit; padding: 6px 10px; border: 1px solid #8c959f; border-radius: 2px; width: 320px; max-width: 100%; }

ul.updates { padding-left: 0; list-style: none; }
ul.updates li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.updates time { display: inline-block; min-width: 110px; color: var(--muted); font-variant-numeric: tabular-nums; }

footer { font-size: 14px; color: #495057; }
footer .wrap { padding-bottom: 28px; display: grid; gap: 4px; }
footer p { margin: 0; }

@media (max-width: 640px) {
  main { margin: 0; border-left: 0; border-right: 0; padding: 18px 16px 32px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 28px; }
  .bar form { margin-left: 0; width: 100%; }
  .bar input { width: 100%; }
  footer .wrap { padding-top: 16px; }
}

.compare { min-width: 640px; }
.compare tbody th { font-weight: 400; }
.compare .cur { font-weight: 700; }
.compare tr.cur-row th, .compare tr.cur-row td { background: #f4f5f6; }

/* Wide page for tables; prose keeps a readable line length. */
main p, main dl, .aka { max-width: 75ch; }

/* Preset pages */
.chain { min-width: 480px; }
.chain .sub { display: block; font-size: 15px; color: var(--muted); }
.chain tbody th { font-weight: 400; }
.chain .sc { width: 2.2em; padding-left: 4px; padding-right: 4px; text-align: center; font-variant-numeric: tabular-nums; }
.chain tr.lane th { padding-top: 16px; font-weight: 700; border-bottom: 2px solid var(--ink); }
.chain tr.off td, .chain tr.off th, .chain tr.off a { color: var(--muted); }
ol.scenes { margin: 0 0 12px; padding-left: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 15px; }
ol.scenes li::before { content: attr(value) " "; font-weight: 700; }
.settings tbody th { font-weight: 400; width: 24%; }
.settings td { font-size: 15px; }
aside h2.box { padding: 12px 16px 0; }

/* Phones: show only the columns that fit; .ph text replaces the hidden .dt columns. */
.ph { display: none; }
.presets .sub { font-size: 15px; color: var(--muted); }
@media (max-width: 640px) {
  .ph { display: inline; }
  .presets .ph { display: block; }
  .dt { display: none; }
  .chain { min-width: 0; }
  .chain .sc { width: 1.5em; min-width: 1.5em; padding-left: 2px; padding-right: 2px; font-size: 15px; }
  .presets td, .chain tbody th { overflow-wrap: anywhere; }
  .chain tbody th, .chain thead th:nth-child(2) { padding-left: 0; }
  .presets td:nth-child(2), .presets th:nth-child(2) { padding-left: 0; }
}
