/* Blackgang Chine marketing dashboard.

   Taken off blackgangchine.com: indigo #2B305C is the whole brand — it is both
   the logo and the body text there — over a warm cream, with the park's own
   lilac, green, orange and teal as accents. Spicy Rice is their display face
   and Parkinsans their text face; Spicy Rice is kept for headings only, because
   it has no tabular figures and a column of numbers set in it does not line up. */

:root {
  --navy: #2b305c;              /* the brand indigo — the variable name is inherited */
  --navy-deep: #21254a;
  --navy-soft: #434a84;
  --gold: #f6a43b;              /* the warm accent: current tab, targets, markers */
  --gold-light: #ffbb63;
  --gold-dark: #c47d20;
  --lilac: #bf85c9;
  --park-green: #a1d150;
  --teal: #8cd4ca;
  --cream: #fdf6e9;

  --paper: #f6f1e7;
  --card: #ffffff;
  --ink: #2b305c;
  --ink-soft: #5a6089;
  --ink-faint: #9095b5;
  --rule: #e6ded0;
  --rule-firm: #d2c7b4;

  --up: #5f8f28;
  --up-wash: #eef6e2;
  --down: #c4553d;
  --down-wash: #fbebe7;

  --serif: 'Spicy Rice', 'Rockwell', Georgia, serif;
  --sans: 'Parkinsans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --shadow: 0 1px 2px rgba(43, 48, 92, .06), 0 8px 24px -12px rgba(43, 48, 92, .22);
  --radius: 14px;
  --pad: clamp(16px, 3.2vw, 34px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15172e;
    --card: #1e2142;
    --ink: #ece9f5;
    --ink-soft: #b4b6d2;
    --ink-faint: #7b7fa6;
    --rule: #333764;
    --rule-firm: #474c83;
    --up: #a1d150;
    --up-wash: #22301a;
    --down: #e08a76;
    --down-wash: #3a1f19;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: .01em; }

/* ---------- masthead ---------- */

.masthead {
  background: var(--navy-deep);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.masthead-inner {
  max-width: 1360px; margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.mark { display: flex; align-items: center; gap: 14px; }
.mark svg { height: 42px; width: auto; flex: none; }
.mark-text { line-height: 1.15; }
/* A floor under the wordmark so whatever sits after it — the date stamp now, a
   dashboard switch if a second area is ever added — lands in the same place on
   every page rather than shuffling sideways with the title. Dropped on narrow
   screens, where the masthead has no room to spare. */
@media (min-width: 700px) { .mark-text { min-width: 236px; } }
.mark-text b {
  display: block; font-family: var(--serif); font-size: 25px;
  font-weight: 500; letter-spacing: .015em;
}
.mark-text span {
  display: block; font-size: 10.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold-light);
}
.masthead .stamp { margin-left: auto; text-align: right; font-size: 13px; color: #b9cbd8; }
.masthead .stamp b { display: block; font-size: 15px; color: #fff; font-weight: 600; }

/* ---------- controls ---------- */

.toolbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.toolbar-inner {
  max-width: 1360px; margin: 0 auto; padding: 11px var(--pad);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.segmented {
  display: inline-flex; border: 1px solid var(--rule-firm);
  border-radius: 999px; padding: 3px; background: var(--card);
}
.segmented button {
  border: 0; background: none; cursor: pointer; color: var(--ink-soft);
  font: inherit; font-size: 14px; padding: 6px 17px; border-radius: 999px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--navy-deep); color: #fff; }
@media (prefers-color-scheme: dark) {
  .segmented button[aria-pressed="true"] { background: var(--gold); color: #06202c; }
}
.toolbar .spacer { margin-left: auto; }
.toolbar label { font-size: 13px; color: var(--ink-soft); }

.linkish {
  color: var(--ink-soft); text-decoration: none; font-size: 14px;
  border-bottom: 1px solid var(--rule-firm); padding-bottom: 1px;
}
.linkish:hover { color: var(--gold-dark); border-color: var(--gold); }

/* Who is signed in. Quiet by design — it is there to be checked, not read every
   time. The name itself takes the full ink so a glance lands on it. */
.whoami { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.whoami b { font-weight: 600; color: var(--ink); }

/* ---------- layout ---------- */

main { max-width: 1360px; margin: 0 auto; padding: 26px var(--pad) 70px; }

section { margin-top: 40px; }
section > header { margin-bottom: 14px; }
section > header h2 { font-size: 26px; }
section > header p { margin: 3px 0 0; color: var(--ink-soft); font-size: 14px; }

.rule-heading {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 12px;
}
.rule-heading::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

.grid { display: grid; gap: 16px; }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.grid.charts { grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); }
.grid.halves { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}

/* ---------- KPI cards ---------- */

.kpi { position: relative; overflow: hidden; }
.kpi::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--gold);
}
.kpi h3 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.kpi .value {
  font-family: var(--serif); font-size: clamp(31px, 3.6vw, 41px);
  font-weight: 500; line-height: 1.1; margin: 7px 0 2px;
  font-variant-numeric: tabular-nums;
}
.kpi .sub { font-size: 13px; color: var(--ink-soft); }
.kpi .marks { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }

.pill {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pill span { font-weight: 400; opacity: .78; }
.pill.up { background: var(--up-wash); color: var(--up); }
.pill.down { background: var(--down-wash); color: var(--down); }
.pill.flat { background: var(--rule); color: var(--ink-soft); }

/* ---------- charts ---------- */

.chart-card h3 { font-size: 20px; }
.chart-card .note { font-size: 13px; color: var(--ink-soft); margin: 2px 0 0; }
.chart-card figure { margin: 14px 0 0; }
.chart-card svg { display: block; width: 100%; height: auto; overflow: visible; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.legend i.dash { background: none; border-top: 3px dashed currentColor; height: 0; }

.ch-grid { stroke: var(--rule); stroke-width: 1; }
.ch-axis { fill: var(--ink-faint); font-size: 11px; font-family: var(--sans); }
.ch-cy { stroke: var(--navy); }
.ch-py { stroke: var(--ink-faint); }
.ch-target { stroke: var(--gold); }
@media (prefers-color-scheme: dark) { .ch-cy { stroke: var(--gold-light); } }

.ch-hit { fill: transparent; cursor: crosshair; }
.ch-cursor { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.ch-dot { opacity: 0; }

.tip {
  position: fixed; z-index: 60; pointer-events: none; opacity: 0;
  transition: opacity .1s; background: var(--navy-deep); color: #fff;
  border-radius: 8px; padding: 9px 12px; font-size: 13px; line-height: 1.45;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55); max-width: 260px;
}
.tip b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.tip .row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.tip .row span { color: #b9cbd8; }

/* ---------- table ---------- */

/* Narrow screens scroll the table sideways. Wider ones don't need to, and
   dropping the scroll container there lets the header row stick to the page. */
.scroller { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
@media (min-width: 900px) { .scroller { margin: 0; padding: 0; } }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--ink-soft); font-size: 13px; padding-bottom: 10px; }
th, td { padding: 8px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--rule); }
th:first-child, td:first-child { text-align: left; }
thead th {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; border-bottom: 1px solid var(--rule-firm);
}
tbody tr:hover { background: color-mix(in srgb, var(--cream) 40%, transparent); }
@media (prefers-color-scheme: dark) { tbody tr:hover { background: rgba(203, 170, 92, .07); } }
td.up { color: var(--up); } td.down { color: var(--down); }

/* ---------- footer ---------- */

footer.page {
  border-top: 1px solid var(--rule); margin-top: 56px;
  padding: 22px var(--pad) 46px; color: var(--ink-faint); font-size: 13px;
}
footer.page .inner { max-width: 1360px; margin: 0 auto; display: flex; gap: 16px; flex-wrap: wrap; }
footer.page a { color: inherit; }

/* ---------- admin ---------- */

.slim { max-width: 780px; }

.drop {
  border: 2px dashed var(--rule-firm); border-radius: var(--radius);
  padding: 46px 26px; text-align: center; background: var(--card);
  transition: border-color .15s, background .15s;
}
.drop.hot { border-color: var(--gold); background: color-mix(in srgb, var(--cream) 45%, var(--card)); }
.drop h3 { font-size: 23px; margin-bottom: 6px; }
.drop p { color: var(--ink-soft); margin: 0 0 18px; font-size: 14px; }

.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  font-size: 15px; padding: 11px 26px; border-radius: 999px;
  background: var(--gold); color: #12242f; transition: background .15s;
}
.btn:hover { background: var(--gold-light); }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn.ghost { background: none; border: 1px solid var(--rule-firm); color: var(--ink-soft); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-dark); background: none; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 5px; }
.field input {
  width: 100%; font: inherit; padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--rule-firm); background: var(--card); color: var(--ink);
}
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

.notice { border-radius: 8px; padding: 13px 16px; font-size: 14px; margin: 18px 0 0; }
.notice.ok { background: var(--up-wash); color: var(--up); }
.notice.bad { background: var(--down-wash); color: var(--down); }
.notice.info { background: color-mix(in srgb, var(--cream) 55%, var(--card)); color: var(--ink-soft); border: 1px solid var(--rule); }

.summary { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; }
.summary li { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.summary li b { font-variant-numeric: tabular-nums; font-weight: 600; }

.steps { color: var(--ink-soft); font-size: 14.5px; padding-left: 20px; }
.steps li { margin-bottom: 7px; }

@media (max-width: 620px) {
  .masthead-inner { gap: 12px; }
  .masthead .stamp { text-align: left; }
  .mark svg, .mark img { height: 34px !important; }
  .mark-text b { font-size: 20px; }
  .mark-text span { letter-spacing: .16em; font-size: 9.5px; }
  /* Three hotel names won't fit across a phone — let the row slide instead of
     spilling off the edge. */
  .toolbar-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .toolbar-inner::-webkit-scrollbar { display: none; }
  .segmented { flex: none; }
  .grid.charts { grid-template-columns: 1fr; }
  .card { padding: 16px; }
}

@media print {
  .toolbar, .drop, footer.page { display: none; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ==================================================================
   Marketing budget
   ================================================================== */

/* ---------- toolbar additions ---------- */

.tabs { flex-wrap: wrap; }
.tabs button { padding: 6px 14px; font-size: 13.5px; }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.switch input { accent-color: var(--gold); width: 15px; height: 15px; }

.badge {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: var(--gold); color: #12242f;
}

/* ---------- status chips and meters ---------- */

.chip {
  display: inline-block; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px;
}
.chip.good { background: var(--up-wash); color: var(--up); }
.chip.warn { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-dark); }
.chip.bad  { background: var(--down-wash); color: var(--down); }
.chip.idle { background: var(--rule); color: var(--ink-faint); }
@media (prefers-color-scheme: dark) { .chip.warn { color: var(--gold-light); } }

/* How much of a budget has gone out, with a hairline marking where the calendar
   says it ought to be by now. */
.deployed { display: flex; align-items: center; gap: 9px; justify-content: flex-end; }
.deployed b { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter {
  position: relative; display: block; flex: 1; min-width: 54px; height: 6px;
  border-radius: 3px; background: var(--rule); overflow: hidden;
}
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--ink-faint); }
.meter.good i { background: var(--up); }
.meter.warn i { background: var(--gold); }
.meter.bad  i { background: var(--down); }
.meter u {
  position: absolute; top: -1px; bottom: -1px; width: 1px;
  background: var(--ink); opacity: .45;
}

/* ---------- tables ---------- */

.grid-table { min-width: 100%; }
.grid-table th, .grid-table td { vertical-align: top; padding: 7px 10px; text-align: left; }
.grid-table th.r, .grid-table td.r { text-align: right; }
.grid-table thead th { white-space: normal; line-height: 1.3; vertical-align: bottom; }
.grid-table tbody td { white-space: normal; }
.grid-table td.empty { text-align: center; color: var(--ink-faint); padding: 26px; font-style: italic; }
.grid-table tfoot th {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; text-transform: none;
  letter-spacing: 0; color: var(--ink); border-top: 2px solid var(--rule-firm);
  border-bottom: 0; padding-top: 10px; white-space: nowrap;
}
.grid-table tr.over td { background: color-mix(in srgb, var(--down-wash) 55%, transparent); }
.grid-table tr.flagged td { background: color-mix(in srgb, var(--down-wash) 40%, transparent); }

/* The first column carries the row's name — keep it in view while the rest of
   a wide table slides past it. */
.grid-table th:first-child, .grid-table td:first-child {
  position: sticky; left: 0; z-index: 2; background: var(--card);
}
.grid-table tfoot th:first-child { z-index: 3; }

.linecell b { display: block; font-weight: 600; }
.linecell span { display: block; font-size: 12px; color: var(--ink-faint); }

.table-note { color: var(--ink-soft); font-size: 13px; margin: 0 0 10px; }
.grid-table + .table-note, .scroller + .table-note { margin: 12px 0 0; }

/* ---------- fields inside tables ---------- */

.cellfield {
  font: inherit; font-size: 13.5px; width: 100%; min-width: 76px;
  padding: 6px 8px; border-radius: 6px; color: var(--ink);
  border: 1px solid transparent; background: color-mix(in srgb, var(--rule) 34%, transparent);
  transition: border-color .12s, background .12s;
}
.cellfield.num { font-variant-numeric: tabular-nums; }
.cellfield.area { resize: vertical; min-height: 38px; line-height: 1.4; }
.cellfield:hover { background: color-mix(in srgb, var(--rule) 60%, transparent); }
.cellfield:focus {
  outline: 0; background: var(--card);
  border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}
select.cellfield { min-width: 96px; }

.act { width: 34px; }
.rowdel {
  border: 0; background: none; cursor: pointer; color: var(--ink-faint);
  font-size: 19px; line-height: 1; padding: 4px 7px; border-radius: 6px;
}
.rowdel:hover { color: var(--down); background: var(--down-wash); }

.row-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn.small { font-size: 13.5px; padding: 8px 16px; }

/* ---------- alerts ---------- */

.alerts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.alert { border-left: 3px solid var(--ink-faint); }
.alert.good { border-left-color: var(--up); }
.alert.watch { border-left-color: var(--gold); }
.alert.bad { border-left-color: var(--down); }
.alert h3 { font-size: 19px; margin-bottom: 5px; }
.alert p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.alert-top { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.alert-top .cellfield:first-child { font-weight: 600; }

/* ---------- settings ---------- */

.settings { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.settings .field { margin: 0; }
.settings .field em { display: block; font-style: normal; font-size: 12px; color: var(--ink-faint); margin-top: 5px; }

/* ---------- the save bar ---------- */

.savebar {
  position: sticky; bottom: 0; z-index: 40;
  background: var(--navy-deep); color: #fff;
  border-top: 3px solid var(--gold);
}
.savebar .inner {
  max-width: 1360px; margin: 0 auto; padding: 12px var(--pad);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.savebar b { font-size: 14px; }
.savebar .spacer { margin-left: auto; }
.savebar .btn.ghost { color: #cfe0ea; border-color: rgba(255, 255, 255, .35); }
.savebar .btn.ghost:hover { color: #fff; border-color: var(--gold); }
.save-status { font-size: 13.5px; color: var(--gold-light); }
.save-status.bad { color: #ffc9bb; }

@media (max-width: 620px) {
  .savebar .inner { padding: 10px 14px; gap: 10px; }
  .savebar .btn { flex: 1; padding: 10px 14px; }
  .alerts { grid-template-columns: 1fr; }
}

@media print {
  .savebar, .tabs, .switch, .badge, .whoami { display: none; }
  .scroller { overflow: visible; }
}

/* ---------- invoices on a tracker cell ---------- */

.cell-money { position: relative; display: flex; align-items: center; gap: 4px; }
.cell-money .cellfield { flex: 1; min-width: 0; }
.cell-money .cell-value { flex: 1; text-align: right; font-variant-numeric: tabular-nums; }

/* The clip keeps out of the way until a cell has paperwork on it, or is being
   worked on — 216 cells all wearing a button would be unreadable. */
.clip {
  flex: none; display: inline-flex; align-items: center; gap: 2px;
  border: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600;
  padding: 3px 4px; border-radius: 6px; line-height: 1;
  background: none; color: var(--ink-faint); opacity: 0;
  transition: opacity .12s, color .12s, background .12s;
}
.cell-money:hover .clip, .cell-money:focus-within .clip, .clip:focus-visible { opacity: 1; }
.clip.on { opacity: 1; color: var(--gold-dark); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.clip:hover { color: var(--gold-dark); background: color-mix(in srgb, var(--gold) 22%, transparent); }
@media (prefers-color-scheme: dark) {
  .clip.on, .clip:hover { color: var(--gold-light); }
}

.cell-money.hot { outline: 2px dashed var(--gold); outline-offset: 2px; border-radius: 8px; }
.cell-money.working { opacity: .55; pointer-events: none; }

/* ---------- the panel behind the clip ---------- */

dialog.sheet {
  width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--card); color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(0, 30, 50, .5);
}
dialog.sheet::backdrop { background: rgba(0, 20, 35, .5); }
dialog.sheet > header {
  position: relative; padding: 20px 52px 16px 22px; border-bottom: 1px solid var(--rule);
}
dialog.sheet h3 { font-size: 23px; }
dialog.sheet > header p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.sheet-close {
  position: absolute; top: 14px; right: 14px; border: 0; background: none; cursor: pointer;
  font-size: 24px; line-height: 1; padding: 4px 9px; border-radius: 8px; color: var(--ink-faint);
}
.sheet-close:hover { background: var(--rule); color: var(--ink); }
dialog.sheet .notice { margin: 16px 22px 0; }

.filelist { padding: 8px 22px; }
.filelist-empty { color: var(--ink-faint); font-size: 14px; font-style: italic; margin: 12px 0; }
.fileitem {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid var(--rule); font-size: 14px;
}
.fileitem:last-child { border-bottom: 0; }
.fileicon { color: var(--gold-dark); display: inline-flex; flex: none; }
@media (prefers-color-scheme: dark) { .fileicon { color: var(--gold-light); } }
.fileitem a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.fileitem a:hover { color: var(--gold-dark); }
.filemeta { margin-left: auto; color: var(--ink-faint); font-size: 12.5px; white-space: nowrap; }

.drop.small { margin: 6px 22px 22px; padding: 22px 18px; }
.drop.small p { margin: 0 0 12px; }
.drop.small em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; }
.drop.working { opacity: .55; pointer-events: none; }

@media (max-width: 620px) {
  .filemeta { display: none; }
  dialog.sheet > header { padding: 16px 46px 13px 16px; }
  .filelist, .drop.small { margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
}

/* ---------- the switch between the two halves of the site ---------- */

.areas {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px;
}
.areas a {
  padding: 5px 16px; border-radius: 999px; font-size: 13px; line-height: 1.4;
  color: #cfe0ea; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.areas a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.areas a[aria-current="page"] { background: var(--gold); color: #12242f; font-weight: 600; }
.areas a[aria-current="page"]:hover { background: var(--gold-light); }

@media (max-width: 620px) {
  .areas { order: 3; width: 100%; justify-content: center; }
  .areas a { padding: 5px 14px; font-size: 12.5px; }
}

/* ---------- what we did, drawn against what happened ---------- */

.ch-mark { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 2 3; opacity: .55; }
.ch-run  { fill: var(--gold); opacity: .07; }
.ch-flag circle { fill: var(--gold); }
.ch-flag text { fill: #12242f; font-family: var(--sans); font-size: 9.5px; font-weight: 700; }
.tip .row.what {
  display: block; border-top: 1px solid rgba(255, 255, 255, .18);
  margin-top: 6px; padding-top: 6px; color: var(--gold-light);
}

/* The numbered key under a chart that carries markers. */
.marker-key { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12.5px; color: var(--ink-soft); }
.marker-key li { display: flex; gap: 9px; padding: 3px 0; align-items: baseline; }
.marker-key b {
  flex: none; width: 17px; height: 17px; border-radius: 999px; background: var(--gold);
  color: #12242f; font-size: 10px; font-weight: 700; display: grid; place-items: center;
}
.marker-key time { color: var(--ink-faint); white-space: nowrap; }

.ch-flag .ch-tether { stroke: var(--gold); stroke-width: 1; opacity: .5; }


/* ---------- Blackgang: the display face stays out of the numbers ---------- */

.kpi .value,
.grid-table, table, .stamp b, .pill, .chip, .meter, .marker-key {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}
.kpi .value { font-weight: 700; letter-spacing: -.01em; }
h1, h2, h3, .mark-text b { letter-spacing: 0; }
.rule-heading { font-family: var(--sans); font-weight: 700; }

/* Their header is cream with the indigo wordmark on it, not a dark band. */
.masthead { background: var(--cream); color: var(--ink); border-bottom: 3px solid var(--gold); }
.masthead .stamp { color: var(--ink-soft); }
.masthead .stamp b { color: var(--ink); }
.mark img { height: 42px; width: auto; }
@media (prefers-color-scheme: dark) {
  .masthead { background: var(--card); }
  /* The wordmark is a single-colour SVG, so it is reversed out for dark mode
     rather than being supplied as a second file. */
  .mark img { filter: brightness(0) invert(1); }
}
.segmented button[aria-pressed="true"] { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) {
  .segmented button[aria-pressed="true"] { background: var(--gold); color: #21254a; }
}
.btn { background: var(--gold); color: #2b1800; }
.btn:hover { background: var(--gold-light); }
.badge { background: var(--gold); color: #2b1800; }
.savebar { background: var(--navy-deep); border-top-color: var(--gold); }
