/* The Guidance Call: a ten-minute game for mine executives, phone first.
 * The Stratflow look of the Board Round and One Mine, Two Scoreboards (always light). This file stands on its own. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
:root {
  --bg: #f3f5f7; --panel: #ffffff; --panel-2: #eaeef2; --ink: #1d2329; --ink-2: #454c54; --muted: #69717a;
  --line: #dbe1e7; --line-strong: #b4bdc6;
  --accent: #052f5b; --accent-soft: #e3ebf4;
  --head: #052f5b; --cta: #8b0000; --cta-ink: #ffffff; --cta-hover: #6c0000; --gold: #edcd1f; --navy: #052f5b;
  --good: #0ca30c; --good-ink: #0a5c0a; --warn: #fab219; --warn-ink: #6a4900; --crit: #d03b3b; --crit-ink: #a31f1f;
  --s1: #2a78d6; --grey-mark: #8a939c; --grid: #e2e6e9; --axis: #b8c1c8;
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head: 'Nunito Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --r: 6px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em; color: var(--head); }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.3rem; }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- the masthead and the company band ---------- */
.masthead { background: var(--panel); border-top: 4px solid var(--navy); border-bottom: 1px solid var(--line); }
.masthead-in { max-width: 680px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.masthead .logo { display: block; line-height: 0; flex: 0 0 auto; }
.masthead .logo img { display: block; height: 34px; width: auto; }
.masthead .brand { display: grid; gap: 0; padding-left: 14px; border-left: 1px solid var(--line-strong); min-width: 0; }
.masthead .brand b { font-family: var(--font-head); font-weight: 800; font-size: 1rem; line-height: 1.2; color: var(--head); }
.masthead .brand span { font-size: .8rem; color: var(--muted); }
.corp { background: var(--navy); color: #ffffff; }
.corp-in { max-width: 680px; margin: 0 auto; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; }
.corp a { color: #ffffff; }
.corp a:hover { color: var(--gold); }
.corp .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- the column, the steps, the screens ---------- */
.wrap { max-width: 680px; margin: 0 auto; padding: 14px 16px 40px; }
.steps { display: flex; gap: 4px; margin: 4px 0 16px; }
.steps i { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.done { background: var(--navy); }
.steps i.now { background: var(--gold); }
.stage { display: grid; gap: 18px; }
.stage > * { min-width: 0; }
.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--head); font-size: .9rem; }
.eyebrow::before { content: ''; display: inline-block; width: 22px; height: 3px; background: var(--gold); vertical-align: middle; margin: -2px 8px 0 0; }
.lead { font-size: 1.05rem; color: var(--ink-2); }
.prose { display: grid; gap: 10px; }
.prose p { color: var(--ink-2); }
.note { font-size: .84rem; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.callout { border-left: 4px solid var(--navy); background: var(--panel); padding: 12px 14px; border-radius: 0 var(--r) var(--r) 0; display: grid; gap: 6px; }
.callout.gold { border-left-color: var(--gold); }
.callout b.hd { font-family: var(--font-head); font-weight: 800; color: var(--head); font-size: 1.08rem; line-height: 1.25; }
.callout p { color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn { border: 1px solid var(--line-strong); background: var(--panel); padding: 11px 16px; border-radius: var(--r); cursor: pointer; font-weight: 500; min-height: 44px; text-align: left; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); font-weight: 600; text-align: center; }
.btn.primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--accent); text-decoration: underline; padding-inline: 4px; min-height: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions .btn.primary { flex: 1 1 auto; }

/* ---------- choosing a mine ---------- */
.mines { display: grid; gap: 12px; }
.minecard { display: grid; gap: 6px; width: 100%; border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--r); padding: 14px; cursor: pointer; text-align: left; }
.minecard:hover, .minecard[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.minecard b { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--head); }
.minecard span { color: var(--ink-2); font-size: .95rem; }

/* ---------- the chain: each step's average against the plan ---------- */
.chain { display: grid; gap: 2px; }
.step { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .nm { font-size: .92rem; color: var(--ink); line-height: 1.2; }
.step .val { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem; text-align: right; white-space: nowrap; }
.step .sub { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); margin-top: -2px; }
.bar { position: relative; height: 14px; background: var(--panel-2); border-radius: 2px; }
.bar u { position: absolute; inset: 0 auto 0 0; background: var(--grey-mark); border-radius: 2px 3px 3px 2px; }
.bar u.hot { background: var(--s1); }
.bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.chainkey { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--ink-2); }
.chainkey span::before { content: ''; display: inline-block; vertical-align: -1px; margin-right: 6px; }
.chainkey .k-avg::before { width: 14px; height: 10px; background: var(--grey-mark); border-radius: 2px; }
.chainkey .k-plan::before { width: 2px; height: 14px; background: var(--ink); }
button.step { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; margin-bottom: 6px; cursor: pointer; text-align: left; }
button.step:hover { border-color: var(--ink-2); }
button.step[data-verdict="right"] { border-color: var(--good); box-shadow: inset 0 0 0 1px var(--good); }
button.step[data-verdict="wrong"] { border-color: var(--crit); }

/* ---------- the promise ---------- */
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.picks .btn { text-align: center; display: grid; gap: 0; padding: 8px 6px; }
.picks .btn small { color: var(--muted); font-size: .78rem; }
.picks .btn[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--accent-soft); }
.typein { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.typein label { font-weight: 600; }
.typein input { width: 7.5em; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.typein .unit { color: var(--ink-2); }
.err { color: var(--crit-ink); font-size: .88rem; }

/* ---------- quarters ---------- */
.quarters { display: grid; gap: 10px; }
.qcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 6px; opacity: 1; transition: opacity .35s ease; }
.qcard.waiting { opacity: .25; }
.qcard .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.qcard .top b { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .04em; }
.qcard .top span { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.qcard .why { font-size: .9rem; color: var(--ink-2); }
.qcard .cpt { font-size: .82rem; color: var(--muted); }
.qbar { position: relative; height: 18px; background: var(--panel-2); border-radius: 2px; }
.qbar u { position: absolute; inset: 0 auto 0 0; background: var(--grey-mark); border-radius: 2px 3px 3px 2px; transition: width .6s ease; }
.qbar u.hot { background: var(--s1); }
.qbar i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap; }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip.good { border-color: var(--good); color: var(--good-ink); } .chip.good::before { background: var(--good); }
.chip.bad { border-color: var(--crit); color: var(--crit-ink); } .chip.bad::before { background: var(--crit); border-radius: 1px; }

/* ---------- the year's totals and the replays ---------- */
.big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.big div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 2px; }
.big small { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--muted); }
.big b { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.big span { font-size: .85rem; color: var(--ink-2); }
.options { display: grid; gap: 10px; }
.option { border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 6px; text-align: left; cursor: pointer; width: 100%; }
.option:hover { border-color: var(--navy); }
.option[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--accent-soft); }
.option b { font-family: var(--font-head); font-weight: 800; color: var(--head); font-size: 1.02rem; }
.option span { font-size: .9rem; color: var(--ink-2); }
.option ul { margin: 2px 0 0; padding-left: 1.1em; font-size: .85rem; color: var(--ink-2); display: grid; gap: 1px; }
.option .tried { font-size: .78rem; color: var(--good-ink); font-weight: 600; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.tbl th, .tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; color: var(--head); background: var(--panel-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .pos { color: var(--good-ink); font-weight: 600; } .tbl .neg { color: var(--crit-ink); font-weight: 600; }
.tblwrap { overflow-x: auto; }

/* ---------- protections ---------- */
.prot { display: grid; gap: 8px; }
.toggle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--r); padding: 10px 12px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.toggle b { font-weight: 600; }
.toggle span { grid-column: 2 / -1; font-size: .85rem; color: var(--ink-2); }
.toggle em { font-style: normal; font-size: .85rem; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.toggle:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--accent-soft); }

/* ---------- the hundred years ---------- */
.chartbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 6px 6px; }
.chartbox svg { display: block; width: 100%; height: auto; }
.chartbox .cap { padding: 0 8px 6px; font-size: .82rem; color: var(--ink-2); }

/* ---------- the model note on every screen ---------- */
.modelbar { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .84rem; color: var(--muted); }
.modelbar .btn { justify-self: start; font-size: .9rem; padding: 8px 12px; min-height: 40px; }
textarea.summary { width: 100%; min-height: 15em; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--r); font: inherit; font-size: .9rem; color: var(--ink-2); background: var(--panel); }
.reading-list { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); }
.reading-list b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .qcard, .qbar u { transition: none; } }
@media (min-width: 560px) { h1 { font-size: 2.1rem; } .masthead .logo img { height: 40px; } }

/* ---------- additions: the dot plot of the chain, the hundred years as cards ---------- */
.track { position: relative; height: 16px; border-radius: 8px; background: var(--panel-2); }
.track i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); transform: translateX(-1px); }
.track b { position: absolute; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--grey-mark); transform: translateX(-6px); box-shadow: 0 0 0 2px var(--panel); }
.track b.hot { background: var(--s1); }
.track .ring { position: absolute; top: 2px; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--grey-mark); background: var(--panel); transform: translateX(-6px); }
.track .gap { position: absolute; top: 7px; height: 2px; background: var(--grey-mark); opacity: .55; }
.chainkey .k-best::before { width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--grey-mark); }
.chainkey .k-avg::before { width: 10px; height: 10px; border-radius: 50%; }
.qbar u.navy { background: var(--navy); }
.cards { display: grid; gap: 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--grey-mark); border-radius: 0 var(--r) var(--r) 0; padding: 10px 12px; display: grid; gap: 3px; }
.card.flow { border-left-color: var(--s1); }
.card b { font-weight: 600; }
.card span { font-size: .9rem; color: var(--ink-2); }
.card .money { font-size: .85rem; color: var(--muted); }
@media (max-width: 400px) { .masthead .logo img { height: 28px; } .masthead .brand b { font-size: .95rem; } .masthead .brand span { font-size: .75rem; } }

/* ---------- the plays page ---------- */
.wrap.wide { max-width: 1100px; }
.status { font-size: .92rem; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-2); }
.check input { width: 18px; height: 18px; }
#every td, #bylink td { text-align: left; } #every th, #bylink th { text-align: left; }
#every td:first-child, #bylink td:last-child { white-space: nowrap; }

/* ---------- update 5: the prediction, the running total, the time split ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.predict { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 10px; display: grid; gap: 4px; }
.predict-out { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15; color: var(--head); font-variant-numeric: tabular-nums; }
.predict-out.ask { font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.predict input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.predict input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.predict input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.predict input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--navy); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--navy); }
.predict input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--navy); }
.predict input[type=range].untouched::-webkit-slider-thumb { opacity: 0; }
.predict input[type=range].untouched::-moz-range-thumb { opacity: 0; }
.predict input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.predict-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chartbox .cap-h { padding: 0 8px 2px; }
.legend { display: grid; gap: 4px; padding: 6px 8px 4px; font-size: .82rem; color: var(--ink-2); }
.lkey { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.callout .actions { margin-top: 4px; }
@media (max-width: 340px) { .big b { font-size: 1.55rem; } }

/* ---------- update 9: the benchmark round of the mine that must grow ---------- */
.track b.navy { background: var(--navy); }
.chainkey .k-trim::before { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.card.trim { border-left-color: var(--navy); }
.tbl tr.sel td { background: var(--accent-soft); }
/* update 10: each step's year as a spread, from its worst 60 days to its best, with what it averages */
.track .range { position: absolute; top: 4px; height: 8px; border-radius: 4px; background: var(--grey-mark); opacity: .3; }
.track .range.hot { background: var(--s1); opacity: .3; }
.track .ring.hot { border-color: var(--s1); }
.chainkey .k-range::before { width: 18px; height: 8px; border-radius: 4px; background: var(--grey-mark); opacity: .45; }
/* update 10: a fixed column for the values, so every row's track has the same width and the plan line stays straight */
.chain .step { grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 5.2em; }
