/* The public chess opening pages (docs/DESIGN_OPENING_PAGES.md): their own stylesheet, after site.css, so the
   landing stays light. The result colours are a master game's result, never the reader's. */
:root {
  --res-w: #F4F6F9;
  --res-d: #AAB3C1;
  --res-b: #3F4B63;
}
@media (prefers-color-scheme: dark) {
  :root {
    --res-w: #EEF1F5;
    --res-d: #AAB3C1;
    --res-b: #76819A;
  }
}
.crumbs { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 12px; }
.crumbs a { color: var(--ink-2); display: inline-block; padding: 10px 0; }
.crumbs a:hover { color: var(--cobalt); }
.title-band .summary .eco { font-weight: 700; color: var(--ink); margin-right: 8px; font-variant-numeric: tabular-nums; }
.title-band .summary .mv { font-weight: 400; white-space: normal; }
.op-top { display: grid; gap: 20px; margin-bottom: 44px; }
.op-figure { margin: 0; width: 100%; max-width: 360px; }
.op-board { display: block; width: 100%; height: auto; }
.op-figure figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--ink-2); }
.op-intro p { font-size: 1.0625rem; line-height: 1.6; max-width: 60ch; }
.op-intro .mv { white-space: nowrap; }
.op-next { table-layout: auto; }
.op-next th, .op-next td { vertical-align: middle; }
.op-next th[scope="row"] { white-space: nowrap; }
.op-next td:nth-child(3) { width: 44%; }
.op-next .num { white-space: nowrap; }
.res { display: flex; width: 100%; min-width: 96px; height: 10px; border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--rule); }
.res span { display: block; height: 100%; }
.res span + span { box-shadow: inset 1px 0 0 var(--rule-strong); }   /* each share told from the next, in light and dark */
.rw { background: var(--res-w); }
.rd { background: var(--res-d); }
.rb { background: var(--res-b); }
.op-key { margin-top: 10px !important; font-size: 0.8125rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.op-key .k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px;
  box-shadow: inset 0 0 0 1px var(--rule); }
.op-games { list-style: none; border-top: 1px solid var(--rule-strong); }
.op-games li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.reading .op-games li + li { margin-top: 0; }
.op-games .who { font-weight: 600; margin: 0; }
.op-games .elo { color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.op-games .meta { margin-top: 2px; font-size: 0.875rem; color: var(--ink-2); }
/* as specific as site.css's .reading ul:not(.ruled):not(.accounts), and later: these lists start at the column's edge */
.reading .col ul.op-games, .reading .col ul.op-links, .reading .op-families ul.op-list { list-style: none; padding-left: 0; }
.op-links, .op-list { column-gap: 32px; }
.op-links { columns: 2 16rem; }
.op-links li, .op-list li { break-inside: avoid; }
.reading .op-links li + li, .reading .op-list li + li { margin-top: 0; }
.op-links li { padding: 6px 0; }
.op-links .n { color: var(--ink-2); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.op-cta { padding: 20px; }
.reading .op-cta h2 { font-size: 1.25rem; }
.op-cta .actions { margin-top: 16px; }
.op-credit { margin-top: 32px !important; font-size: 0.8125rem; color: var(--ink-2); max-width: 72ch; }
.op-family + .op-family { margin-top: 36px; }
.reading .op-family h2 { font-size: 1.25rem; }
.op-list { columns: 2 15rem; margin-top: 8px; }
.op-list a { display: inline-block; padding: 5px 0; }
@media (min-width: 720px) {
  .op-top { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .op-figure { max-width: 420px; }
  .op-list { columns: 3 13rem; }
}

/* A model game's own page (E68; openingpages.render_game, game.js): the players' lines around the board, one row of
   steps under it, the moves as a book prints them, the opening's own moves in the second ink */
.gm-top { margin-bottom: 40px; }
@media (min-width: 1100px) {                  /* a game's board as big as a laptop allows (Njeru, 15 Nov 2026) */
  .op-top.gm-top { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 48px; }
  .op-figure.gm-game { max-width: 560px; }
}
.reading .gm-pl { display: flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; font-weight: 600; }
.gm-pl .elo { color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.gm-pl abbr { text-decoration: none; }
.gm-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1px solid var(--rule-strong); }
.gm-dot.white { background: #FCFDFE; }
.gm-dot.black { background: #14203A; }
.gm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.gm-step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px;
  padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--sheet); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer; }
.gm-step svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.gm-step:hover { border-color: var(--cobalt); color: var(--cobalt); }
.gm-step[aria-disabled="true"] { opacity: 0.45; cursor: default; border-color: var(--rule); color: var(--ink); }
.gm-bar .tryflip { margin-left: auto; padding: 0 10px; }   /* one row with the steps, 390 px up */
.op-figure.gm-game figcaption { margin-top: 10px; font-size: 1rem; color: var(--ink); }
.reading ol.gm-moves { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-variant-numeric: tabular-nums; }
.reading .gm-moves li + li { margin-top: 0; }
.gm-moves li { display: inline-flex; align-items: baseline; gap: 2px; }
.gm-no { color: var(--ink-2); font-size: 0.875rem; margin-right: 2px; }
.gm-mv { padding: 3px 4px; border-radius: var(--r-sm); font-weight: 600; }
.gm-mv.gm-book { color: var(--ink-2); font-weight: 400; }
.gm-mv[aria-current="true"] { background: var(--air); color: var(--ink); box-shadow: inset 0 -2px 0 var(--cobalt); }
.gmjs .gm-mv { cursor: pointer; }
.gmjs .gm-mv:hover { color: var(--cobalt); }
.reading .gm-res { font-weight: 650; }
.reading .gm-from { color: var(--ink-2); }
