/* Pernod Ricard Global Command Centre.

   Sampled from pernod-ricard.com, which is the authoritative source; the
   supplied artwork agrees with it to within about 4%, the drift you would
   expect from a screenshot:
     --navy       #14366a  their deep blue
     --periwinkle #7fa5d0  the light blue band
     --ink        #222d38  their body text, which is charcoal and not navy
     --ground     #f9f8f7  their off-white
     --brand-mid  #39598a  the logo gradient's bottom

   The rest are extensions this interface needs and the artwork does not supply:
   --navy-deep for the foot of the rail, --chrome for the medallion's metal,
   --ground for a page you can read a dense table on, --pewter for secondary
   text. --gold and --flag are functional, not brand: gold marks a medal, red
   marks a date already missed. Nothing else gets a colour. */

:root {
  --navy: #123f75;
  --navy-deep: #0d2c55;
  --ground: #f9f8f7;
  --surface: #ffffff;
  --gold: #b98f3e;
  --gold-text: #7d5f22;
  --flag-deep: #7a2418;
  --periwinkle: #76a0cd;
  --flag: #b23a2b;
  --pewter: #6b7a91;
  --chrome: #c9ced6;
  --brand-mid: #39598a;
  --ink: #222d38;

  --rule: rgba(18, 63, 117, 0.14);
  --rule-strong: rgba(18, 63, 117, 0.3);
  --wash: rgba(18, 63, 117, 0.04);

  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --ui: Archivo, "Helvetica Neue", Arial, sans-serif;

  --rail-w: 208px;
  --gutter: 40px;
  /* One content measure. The hero band is full-bleed but its contents are
     capped to this, so its right edge lines up with the panels below. */
  --measure: 1560px;
  --measure-inner: calc(var(--measure) - (2 * var(--gutter)));

  /* The rail and the banded headers are the only surfaces the two looks
     disagree about, so they read from their own tokens and nothing else in the
     sheet needs to know which look is on. */
  --rail-bg: var(--periwinkle);
  --rail-ink: var(--navy);
  --rail-ink-quiet: var(--navy);
  --rail-hover-bg: rgba(255, 255, 255, 0.3);
  --rail-active-bg: rgba(255, 255, 255, 0.62);
  --rail-rule: rgba(18, 63, 117, 0.26);

  --band-bg: var(--surface);
  --band-ink: var(--ink);
  --band-strong: var(--navy);
  --band-quiet: rgba(34, 45, 56, 0.72);
  --band-rule: rgba(18, 63, 117, 0.28);
  --band-rule-soft: rgba(18, 63, 117, 0.12);
  --band-bar: var(--navy);
  --band-edge: 1px solid var(--rail-rule);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.55 var(--ui);
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: 40px; line-height: 1.04; }
h2 { font-size: 28px; line-height: 1.12; }
h3 { font-size: 21px; line-height: 1.18; }
p { margin: 0 0 0.8em; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 1px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 20;
}
.skip:focus { left: 0; }

/* ---------- the rail ---------- */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  background: var(--rail-bg);
  color: var(--rail-ink);
  border-right: 1px solid var(--rail-rule);
  display: flex;
  flex-direction: column;
  padding: 0 0 22px;
  z-index: 10;
}

/* The lockup is supplied as artwork with its own blue gradient, so it sits as a
   plate across the full width of the rail rather than floating on it. */
.mark { display: block; margin-bottom: 22px; }
.mark img { display: block; width: 100%; height: auto; }

.rail-powered { display: block; width: 100%; height: auto; margin-bottom: 14px; opacity: 0.85; }

.rail-nav { list-style: none; margin: 0; padding: 0; }
.rail-nav a {
  display: block;
  padding: 9px 24px 9px 21px;
  border-left: 3px solid transparent;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--rail-ink-quiet);
}
.rail-nav a:hover { color: var(--rail-ink); background: var(--rail-hover-bg); }
.rail-nav a[aria-current] {
  color: var(--rail-ink);
  border-left-color: var(--periwinkle);
  background: var(--rail-active-bg);
}

.rail-foot {
  margin-top: auto;
  padding: 20px 24px 0;
  border-top: 1px solid var(--rail-rule);
  font-size: 12px;
}
.rail-foot a { display: inline-block; margin-right: 14px; color: var(--rail-ink-quiet); }

/* ---------- page furniture ---------- */

main { margin-left: var(--rail-w); min-height: 100vh; }

.horizon + .page { padding-top: 12px; }
.page {
  padding: 34px var(--gutter) 64px;
  max-width: var(--measure);
}

.page-head { margin-bottom: 14px; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head.page-head-row p { max-width: none; }
.head-stats { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.chip-flag { border-color: var(--flag); color: var(--flag); }
.page-head p { max-width: 62ch; color: var(--pewter); margin: 8px 0 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--rule);
}
.panel-head h2, .panel-head h3 { font-size: 21px; }
.panel-note { color: var(--pewter); font-size: 13px; }
.panel-body { padding: 18px 20px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.empty { color: var(--pewter); font-size: 13px; padding: 18px 20px; }

/* ---------- the horizon ---------- */

.horizon {
  background: var(--band-bg);
  color: var(--band-ink);
  border-bottom: var(--band-edge);
  padding: 30px var(--gutter) 0;
  margin: 0 0 6px;
}

.horizon-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.horizon-head h1 { color: var(--band-strong); font-size: 40px; }
.horizon-head p { color: var(--band-quiet); margin: 6px 0 0; font-size: 15px; }

.horizon-alarm {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  background: var(--flag);
  border: 1px solid var(--flag);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
}
.horizon-alarm b { font-size: 17px; font-weight: 600; }

.horizon-plot {
  position: relative;
  height: 206px;
  margin-top: 22px;
}
.horizon-axis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;
  border-bottom: 1px solid var(--band-rule);
}

/* Months are drawn as faint full-height guides with the label at the top, so the
   whole area under the axis belongs to the deadlines themselves. */
.horizon-month {
  position: absolute;
  top: 0;
  bottom: 80px;
  border-left: 1px solid var(--band-rule-soft);
  padding-left: 7px;
  font-size: 12px;
  color: var(--band-bar);
}
.horizon-now {
  position: absolute;
  top: 0;
  bottom: 80px;
  left: 0;
  border-left: 2px solid var(--band-strong);
  padding-left: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--band-strong);
  white-space: nowrap;
}

.stem {
  position: absolute;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transform: translateX(-50%);
  transform-origin: bottom center;
}
.stem-count {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
  color: var(--band-strong);
  margin-bottom: 6px;
}
.stem-bar {
  width: 3px;
  flex: 1;
  background: var(--band-bar);
}
.stem:hover .stem-bar { background: var(--band-strong); }
.stem:hover .stem-label b { text-decoration: underline; }
.stem-near .stem-bar { width: 5px; background: var(--gold); }
.stem-near .stem-count { color: var(--periwinkle); }
.stem:hover .stem-count { color: var(--band-strong); }

.stem-label {
  position: absolute;
  top: calc(100% + 14px);
  width: 138px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--band-quiet);
}
.stem-label b { display: block; font-weight: 500; color: var(--band-strong); }
.anchor-mid .stem-label { left: 50%; transform: translateX(-50%); text-align: center; }
.anchor-start .stem-label { left: 0; text-align: left; }
.anchor-end .stem-label { right: 0; text-align: right; }

.horizon-head,
.horizon-plot,
.horizon-key { max-width: var(--measure-inner); }

.horizon-key {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding: 16px 0 20px;
  border-top: 1px solid var(--band-rule-soft);
  margin-top: 8px;
  font-size: 13px;
  color: var(--band-quiet);
}
.horizon-key a { color: var(--band-strong); }

/* ---------- ledger (counters) ---------- */

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.ledger li:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger-label { font-size: 13px; color: var(--pewter); }
.ledger-value { font-family: var(--display); font-size: 28px; line-height: 1; }
.ledger-late .ledger-value { color: var(--flag); }
.ledger-won .ledger-value { color: var(--gold); }

.strike {
  padding: 16px 20px;
  border-top: 1px solid var(--rule);
  background: var(--wash);
}
.strike-value { font-family: var(--display); font-size: 56px; line-height: 1; }
.strike p { margin: 4px 0 0; font-size: 13px; color: var(--pewter); }

/* ---------- tables and the tracker ---------- */

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--pewter);
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.table tbody tr:hover { background: var(--wash); }
.table .num { text-align: right; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }

/* The left rule on each row encodes where the entry sits in the process,
   so state is readable down the column without reading a single word. */
.rail-cell { border-left: 3px solid transparent; }
.fam-scoping { border-left-color: var(--pewter); }
.fam-writing { border-left-color: var(--navy); }
.fam-filed { border-left-color: #4d7ab5; }
.fam-placed { border-left-color: var(--gold); }
.fam-closed { border-left-color: var(--band-rule-soft); }

.when { white-space: nowrap; font-weight: 600; font-size: 13px; }
.when::before {
  content: "\25C2";
  display: inline-block;
  margin-right: 7px;
  font-size: 11px;
  vertical-align: 1px;
}
.when-past { color: var(--pewter); }
.when-near { color: var(--gold-text); }
.when-far { color: var(--pewter); font-weight: 500; }
.when-none { color: var(--pewter); font-weight: 400; }
.when-none::before { content: ""; margin: 0; }

.brand { font-weight: 600; }
.muted { color: var(--pewter); }
.small { font-size: 13px; }

.state { font-size: 13px; }
.medal {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #6d5423;
  background: rgba(185, 143, 62, 0.16);
  border: 1px solid rgba(185, 143, 62, 0.4);
  padding: 1px 8px 2px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
  padding-bottom: 8px;
}

/* ---------- filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}
.chip {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--navy);
  font-size: 13px;
  text-decoration: none;
  border-radius: 2px;
}
.chip:hover { border-color: var(--navy); }
.chip b { font-weight: 600; }
.chip-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-count { color: var(--pewter); margin-left: 6px; }
.chip-on .chip-count { color: rgba(255, 255, 255, 0.6); }

/* One line of filters. Selects share the width; the search box gets what is left. */
.filters-line { flex-wrap: nowrap; }
.filters-line .search { flex: 1 1 160px; min-width: 140px; }
.filters-line select { max-width: 170px; }
@media (max-width: 1100px) { .filters-line { flex-wrap: wrap; } }

/* A dropdown you can tick several things in. */
.multi { position: relative; }
.multi summary {
  list-style: none;
  cursor: pointer;
  font: 400 13px var(--ui);
  padding: 5px 26px 5px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--navy);
  white-space: nowrap;
}
.multi summary::-webkit-details-marker { display: none; }
.multi summary::after { content: ""; position: absolute; right: 9px; top: 11px; border: 4px solid transparent; border-top-color: var(--navy); }
.multi[open] summary { border-color: var(--navy); }
.multi-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 20;
  min-width: 220px; padding: 8px 4px;
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 2px;
  box-shadow: 0 8px 24px rgba(18, 63, 117, 0.12);
}
.multi-menu label { display: flex; align-items: center; gap: 8px; padding: 5px 8px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.multi-menu label:hover { background: var(--wash); }
.multi-menu .chip-count { margin-left: auto; }

select, input[type="text"], input[type="search"], input[type="url"], input[type="number"], input[type="date"], textarea {
  font: 400 13px var(--ui);
  padding: 5px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--navy);
}

.button {
  font: 500 13px var(--ui);
  padding: 7px 14px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
}
.button:hover { background: #26497f; }
.button-quiet { background: transparent; color: var(--navy); }
.button-quiet:hover { background: var(--wash); }

/* ---------- entry detail ---------- */

.detail-head {
  background: var(--band-bg);
  color: var(--band-ink);
  border-bottom: var(--band-edge);
  padding: 28px var(--gutter) 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
}
.detail-head > div:first-child { flex: 1 1 0; min-width: 0; }
.detail-head .detail-clock { flex: 0 0 auto; }
.detail-head h1 { color: var(--band-strong); }
.detail-head .crumb { color: var(--band-quiet); font-size: 13px; text-decoration: none; }
.detail-head .meta { color: var(--band-quiet); font-size: 13px; margin: 10px 0 0; }
.detail-clock { text-align: right; }
.detail-clock .value { font-family: var(--display); font-size: 56px; line-height: 0.92; color: var(--band-strong); }
.detail-clock .value-past { color: var(--flag-deep); }
.detail-clock .value-near { color: var(--gold-text); }
.detail-clock .label { font-size: 13px; color: var(--band-quiet); }

/* The pipeline genuinely is a sequence, so it is the one thing that gets a
   numbered, ordered track. Nothing else in the interface is numbered. */
.track { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.track li {
  flex: 1 1 108px;
  padding: 12px 12px 14px;
  border-top: 3px solid var(--rule);
  position: relative;
}
.track .step { font-size: 12px; color: var(--pewter); display: block; margin-bottom: 3px; }
.track .name { font-size: 13px; line-height: 1.25; color: var(--pewter); }
.track .done { border-top-color: var(--navy); }
.track .done .name { color: var(--navy); }
.track .now { border-top-color: var(--gold); background: rgba(185, 143, 62, 0.07); }
.track .now .name { color: var(--navy); font-weight: 600; }
.track .now .step { color: var(--gold); font-weight: 600; }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.facts li:last-child { border-bottom: 0; }
.facts dt, .facts .k { color: var(--pewter); }
.facts .v { text-align: right; font-weight: 500; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--rule-strong); }
.timeline li { position: relative; padding: 0 0 16px 16px; font-size: 13px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--surface);
  border: 1px solid var(--navy);
  border-radius: 50%;
}
.timeline li:first-child::before { background: var(--gold); border-color: var(--gold); }
.timeline time { color: var(--pewter); display: block; font-size: 12px; }

.move { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- drafting review ---------- */

.answer { border-bottom: 1px solid var(--rule); padding: 20px; }
.answer:last-child { border-bottom: 0; }
.answer-q {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 10px;
}
.answer-q h3 { font-family: var(--ui); font-size: 15px; font-weight: 600; line-height: 1.35; }
.answer-text {
  font-size: 15px;
  line-height: 1.6;
  max-width: 68ch;
  margin: 0 0 14px;
  white-space: pre-wrap;
}
.answer-foot { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 13px; }

/* Award forms are won and lost on word limits, so the limit is a physical
   gauge rather than a number in brackets. */
.gauge { width: 132px; height: 6px; background: rgba(18, 63, 117, 0.12); position: relative; }
.gauge span { position: absolute; inset: 0 auto 0 0; background: var(--navy); }
.gauge-over span { background: var(--flag); }
.gauge-over + .gauge-note { color: var(--flag); font-weight: 600; }
.gauge-note { color: var(--pewter); }

.approved { color: #2c5d9b; font-weight: 600; }
.pending { color: var(--pewter); }

.progress { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.progress-bar { flex: 1; height: 5px; background: rgba(18, 63, 117, 0.12); }
.progress-bar span { display: block; height: 100%; background: var(--gold); }

/* ---------- manifest ---------- */

.manifest { border-collapse: collapse; width: 100%; }
.manifest th { text-align: left; font-size: 12px; color: var(--pewter); padding: 10px 14px; border-bottom: 1px solid var(--rule-strong); }
.manifest td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 13px; }
.manifest tbody tr:hover { background: var(--wash); }
.line { font-size: 13px; }
.line-spec { color: var(--pewter); font-size: 12px; }
.docs { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.docs li { color: var(--pewter); }
.docs .have { color: var(--navy); }
.docs .want { color: var(--flag); }

/* ---------- competitor matrix ---------- */

.matrix { border-collapse: collapse; width: 100%; }
.matrix th {
  font-size: 12px;
  font-weight: 500;
  color: var(--pewter);
  padding: 10px 6px;
  border-bottom: 1px solid var(--rule-strong);
  vertical-align: bottom;
  text-align: center;
}
.matrix th.row-head { text-align: left; width: 30%; padding-left: 14px; }
.matrix td { padding: 5px 3px; border-bottom: 1px solid var(--rule); text-align: center; }
.matrix td.row-head { text-align: left; padding: 11px 14px; font-size: 13px; }
.matrix .cell {
  display: block;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 2px;
}
.matrix .cell-0 { color: rgba(18, 63, 117, 0.22); font-weight: 400; }
.matrix .ours { color: var(--gold); }
.matrix .absent { color: var(--flag); font-weight: 500; font-size: 12px; }
.cell-sub {
  display: block;
  font-size: 11px;
  color: var(--pewter);
  padding-bottom: 6px;
}
.matrix tbody tr:hover { background: var(--wash); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed .src { color: var(--pewter); font-size: 12px; }

.notice {
  border-left: 3px solid var(--gold);
  background: rgba(185, 143, 62, 0.08);
  padding: 14px 18px;
  font-size: 13px;
  margin-bottom: 20px;
  max-width: 78ch;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- one orchestrated moment ----------
   The stems rise left to right on load: the drawing builds along the time axis
   it represents. Nothing else on the page animates on arrival. */

@media (prefers-reduced-motion: no-preference) {
  .stem {
    animation: rise 520ms cubic-bezier(0.22, 0.9, 0.3, 1) backwards;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
  @keyframes rise {
    from { transform: translateX(-50%) scaleY(0); opacity: 0; }
    to { transform: translateX(-50%) scaleY(1); opacity: 1; }
  }
  .horizon-now { animation: sweep 420ms ease-out backwards; }
  @keyframes sweep {
    from { transform: scaleY(0); transform-origin: bottom; }
  }
  .flash { animation: flash 1.1s ease-out; }
  @keyframes flash {
    0% { background: rgba(185, 143, 62, 0.38); }
    100% { background: transparent; }
  }
}

/* Between tablet and desktop the plot is too narrow for a 138px label to sit
   under a stem without hitting its neighbour, so the labels drop out and the
   space they reserved goes with them. The stems still carry their counts, and
   hovering one still names the award. */
@media (max-width: 1180px) {
  .stem-label { display: none; }
  .horizon-plot { height: 168px; }
  .horizon-axis,
  .horizon-month,
  .horizon-now,
  .stem { bottom: 30px; }
}

/* ---------- narrow screens ---------- */

@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  :root { --gutter: 18px; }
  main { margin-left: 0; }
  .rail {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 18px;
    gap: 6px 20px;
  }
  .mark { margin: 0; width: 190px; flex: 0 0 auto; }
  .rail-nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .rail-nav a { padding: 6px 10px; border-left: 0; border-bottom: 3px solid transparent; }
  .rail-nav a[aria-current] { border-left: 0; border-bottom-color: var(--gold); }
  .rail-foot { margin: 0; padding: 0; border: 0; width: 100%; }
  .rail-powered { display: none; }
  h1, .horizon-head h1 { font-size: 28px; }
  /* No room for labels under the axis, so the plot loses the space they needed. */
  .horizon-plot { height: 148px; }
  .horizon-axis, .horizon-month, .horizon-now, .stem { bottom: 26px; }
  .horizon-month, .horizon-now { font-size: 11px; padding-left: 5px; }
  .now-date { display: none; }
  .stem-label { display: none; }
  .stem-count { font-size: 15px; }
  .horizon-key { gap: 6px 18px; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .detail-clock { text-align: left; }
  .detail-clock .value { font-size: 40px; }
  .table-scroll { overflow-x: auto; }
  .table, .manifest, .matrix { min-width: 640px; }
}
@media (max-width: 700px) {
  .podium-row { grid-template-columns: 1fr; gap: 4px; }
  .podium-count { order: -1; }
}

/* ---- Competitors: tiles, podium, medal feed ------------------------------
   Gold belongs to our numbers and our bar; rivals stay navy-quiet.
   Palette pair #2f4f80 / #b98f3e validated (CVD dE 20.2, contrast >=3:1). */
.intel-tiles { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 980px) { .intel-tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px 16px; }
.tile-value { display: block; font-family: var(--display); font-size: 40px; line-height: 1; }
.tile-value.ours { color: var(--gold); }
.tile-label { display: block; margin-top: 7px; font-size: 13px; color: var(--pewter); }
.tile-label strong { color: var(--navy); font-weight: 600; }
.tile-hero .tile-value { font-size: 56px; }
.podium { display: flex; flex-direction: column; gap: 6px; }
.podium-row { display: grid; grid-template-columns: 232px 1fr 132px; align-items: center; gap: 14px; padding: 3px 0; }
.podium-name { font-size: 13px; line-height: 1.25; }
.podium-track { background: var(--wash); border-radius: 4px; height: 24px; }
.podium-bar { display: block; height: 100%; background: #2f4f80; border-radius: 0 4px 4px 0; min-width: 3px; transition: filter 0.15s; }
.podium-row.us .podium-bar { background: var(--gold); }
.podium-row.us .podium-name { font-weight: 600; }
.podium-row:hover .podium-bar { filter: brightness(1.2); }
.podium-us-chip { font: 700 11px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border: 1px solid currentColor; border-radius: 4px; padding: 2px 5px; margin-left: 6px; vertical-align: 1px; }
.podium-count { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; text-align: right; }
.podium-gold { color: var(--pewter); font-weight: 400; font-size: 12px; }
.podium-table { margin-top: 16px; }
.podium-table summary { font-size: 12px; color: var(--pewter); cursor: pointer; }
.podium-table table { margin-top: 10px; }
.medal-feed { list-style: none; margin: 0; padding: 0; }
.medal-feed li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.medal-feed li:last-child { border-bottom: 0; }
.medal-chip { flex: 0 0 auto; margin-top: 1px; font: 600 11px/1 var(--ui); letter-spacing: 0.03em; color: var(--pewter); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 3px 9px; }
.medal-chip.gold { color: var(--gold); border-color: var(--gold); }
.medal-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.medal-what { font-weight: 500; }
.medal-where { color: var(--pewter); font-size: 12px; }

/* ---------- award impact score ----------
   0-100 from the roadmap (claim 40 + strategic 35 + amplification 25). Four
   bands, the deck's own: invest to win, invest selectively, support, review.
   Deliberately not the medal gold: this is a judgement about the award, not a
   result we won. */

.score {
  display: inline-block;
  min-width: 36px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 12px/1 var(--ui);
  text-align: center;
}
.score-invest { background: var(--navy); color: #fff; }
.score-selective { background: rgba(118, 160, 205, 0.32); color: var(--navy); border-color: var(--band-rule-soft); }
.score-support { color: var(--ink); border-color: var(--rule-strong); }
.score-review { color: var(--pewter); border-color: var(--rule); }
.score-unscored { color: var(--pewter); border-color: transparent; font-weight: 400; }
.th-score { text-align: center; }

/* ---------- brand marks ----------
   The official SVG lockup, in the colourway the current look needs. */

/* Transparent artwork now, so the marks sit on the rail rather than on a
   plate of their own. The lockup's wordmark is white, which is why the rail
   stays a coloured surface in both looks and never goes white. */
.mark { display: block; padding: 20px 20px 4px; }
.mark img { display: block; width: 100%; height: auto; }

.rail-agency { display: block; width: 100%; height: auto; margin-bottom: 12px; }


/* ---------- submission review ----------
   Thirteen mostly one-line answers, so the reviewer sees the whole submission
   at once and spends their attention on the rows that need it rather than
   scrolling past eleven that do not. */

.review td { vertical-align: top; padding-top: 13px; padding-bottom: 13px; }
.review-q { width: 36%; }
.review-label { display: block; font-weight: 600; font-size: 14px; }
.review-label em { color: var(--flag); font-style: normal; }
/* A question with a description: dotted underline says "hover me". */
.review-label.has-help { cursor: help; }
.review-label.has-help:not(:hover) { text-decoration: underline dotted var(--pewter); text-underline-offset: 3px; }
.review-a { width: 58%; font-size: 15px; }
.review-prose { white-space: pre-wrap; line-height: 1.55; }
.review-a .gauge { margin-top: 8px; }
.review-a .gauge-note { display: block; margin-top: 4px; font-size: 12px; }
.review td form { margin: 0; }
.review .button { white-space: nowrap; }

/* Two things worth stopping for. Amber: RIC could not source the answer and
   wants a call. Red: a required answer is still empty after an approval was
   tried. Nothing else in the table gets a colour. */
.review .needs-you td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.review .needs-you { background: rgba(185, 143, 62, 0.06); }
/* The question RIC is asking right now: answer it here or in the panel. */
.review .is-asking td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.review .is-asking { background: rgba(185, 143, 62, 0.16); }
.review .is-missing td:first-child { box-shadow: inset 3px 0 0 var(--flag); }
.review .is-missing { background: rgba(178, 58, 43, 0.045); }
.tag { display: inline-block; font: 600 11px/1 var(--ui); letter-spacing: 0.04em; padding: 3px 7px; border-radius: 2px; margin-top: 4px; }
.tag-missing { color: #fff; background: var(--flag); }
.notice { padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--rule); border-left-width: 3px; font-size: 13px; background: var(--surface); }
.notice-ok { border-left-color: var(--navy); }
.notice-bad { border-left-color: var(--flag); }
.notice a { margin-right: 2px; }
.link-quiet { background: none; border: 0; color: var(--pewter); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.link-quiet:hover { color: var(--flag); }

/* RIC is the agent's own mark, so the Submissions screen is titled with it
   rather than with the word. The chrome artwork reads on the page's off-white
   in both looks, because the page ground does not change between them. */
.ric-mark { margin: 0 0 4px; line-height: 0; }
.ric-mark img { display: block; width: 320px; max-width: 100%; height: auto; }

/* Pages without the rail (the login page). */
.main-full { margin-left: 0; }

/* ---------- sign in ---------- */

.signin { max-width: 360px; margin: 0 auto; padding-top: 72px; text-align: center; }
.signin-mark { display: block; width: 120px; height: auto; margin: 0 auto 20px; background: var(--navy); border-radius: 50%; padding: 10px; }
.signin-title { font-size: 28px; color: var(--navy); margin: 0 0 26px; }
.signin-form { text-align: left; }
.signin-form label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--navy); }
.signin-form input[type="text"], .signin-form input[type="password"] {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 9px 11px;
  font: 400 15px var(--ui);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
}
.signin-form .button { width: 100%; padding: 11px; font-size: 15px; }
.signin-error {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--flag);
  background: rgba(178, 58, 43, 0.06);
  font-size: 13.5px;
  color: var(--flag-deep);
}
.signin-foot { margin-top: 22px; font-size: 13px; color: var(--pewter); }


/* =====================================================================
   Round 2: navigation and flow. Everything below reads the tokens above;
   nothing introduces a colour. Primary actions are navy like .button; gold
   stays reserved for a medal or for today.
   ===================================================================== */

/* ---------- breadcrumbs ----------
   One thin strip at the top of every page. It says where a page sits in the
   site, not how the visitor arrived. */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 12px var(--gutter) 0;
  max-width: var(--measure);
  font-size: 13px;
  color: var(--pewter);
}
.crumbs a { color: var(--pewter); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs .sep { opacity: 0.55; }
.crumbs [aria-current] { color: var(--navy); font-weight: 500; }
.crumbs + .horizon, .crumbs + .detail-head { margin-top: 12px; }

/* ---------- compact horizon (command centre) ----------
   Same drawing, a third of the height: one-line labels, smaller counts,
   the key folded into one line. The full drawing lives on the tracker. */
.horizon--compact { padding-top: 18px; }
.horizon--compact .horizon-head { align-items: baseline; }
.horizon--compact .horizon-head h1 { font-size: 28px; }
.horizon--compact .horizon-head p { font-size: 13px; margin-top: 4px; }
.horizon--compact .horizon-plot { height: 112px; margin-top: 10px; }
.horizon--compact .horizon-axis,
.horizon--compact .horizon-month,
.horizon--compact .horizon-now,
.horizon--compact .stem { bottom: 38px; }
.horizon--compact .horizon-month, .horizon--compact .horizon-now { font-size: 11px; }
.horizon--compact .stem-count { font-size: 15px; margin-bottom: 4px; }
.horizon--compact .stem-label { top: calc(100% + 7px); width: 124px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.horizon--compact .stem-label b { display: block; overflow: hidden; text-overflow: ellipsis; }
.horizon--compact .stem-date { display: block; font-size: 10px; color: var(--band-quiet); }
.horizon--compact .horizon-key { padding: 9px 0 12px; margin-top: 2px; font-size: 12px; }

/* ---------- module cards (command centre) ----------
   Five cards, one per section. The title link is stretched over the whole
   card so the card itself is the click target; the numbers inside are their
   own links (lifted above the stretched one) to the filtered view they count.
   Geometry matches .ledger so the two read as one family. */
.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 16px 18px 12px;
}
.card:hover { border-color: var(--navy); }
.card-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.card-title a { font-family: var(--display); font-size: 21px; color: var(--navy); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title .go { font-size: 12px; font-weight: 500; color: var(--pewter); white-space: nowrap; }
.card:hover .go { color: var(--navy); }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--pewter);
}
.card li a {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.card li a:hover span:first-child { color: var(--navy); text-decoration: underline; }
.card .n { font-family: var(--display); font-size: 24px; line-height: 1; color: var(--ink); white-space: nowrap; }
.card .n-late { color: var(--flag); }
.card .n-won { color: var(--gold); }
.card .n-muted { color: var(--pewter); }

/* ---------- tracker filters and sorting ---------- */
.filters .search { min-width: 260px; }
.table th a { text-decoration: none; color: inherit; }
.table th a:hover { color: var(--navy); text-decoration: none; }
.table th a.sorted { color: var(--navy); }
.table th a.sorted::after { content: " \25B4"; }
.table th a.sorted.desc::after { content: " \25BE"; }
.row-go { text-align: right; white-space: nowrap; }
.row-go a { color: var(--pewter); font-size: 12px; }

/* The strip above the tracker when it is filtered to one award. */
.award-card {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-items: baseline;
  padding: 16px 20px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
}
.award-card h2 { font-size: 21px; margin-right: auto; }
.award-card .k { display: block; font-size: 12px; color: var(--pewter); }
.award-card .v { font-size: 13px; font-weight: 600; }

/* ---------- primary actions in a banded header ----------
   Read the band tokens so they hold in both looks: navy on white in the
   light look, white on navy in the deep one. */
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.detail-actions form { margin: 0; }
.btn-primary {
  display: inline-block;
  font: 500 13px var(--ui);
  background: var(--band-strong);
  color: var(--band-bg);
  padding: 7px 14px;
  border: 1px solid var(--band-strong);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.88; }
.btn-ghost {
  display: inline-block;
  font: 500 13px var(--ui);
  color: var(--band-ink);
  background: transparent;
  border: 1px solid var(--band-rule);
  padding: 7px 14px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--band-strong); color: var(--band-strong); }
.btn-ghost[aria-disabled="true"],
.btn-primary[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.detail-why { font-size: 12px; color: var(--band-quiet); margin: 8px 0 0; }

/* One Export button; the formats open under it. */
.export-menu { position: relative; display: inline-block; }
.export-menu summary { list-style: none; }
.export-menu summary::-webkit-details-marker { display: none; }
.export-menu summary::after { content: " \25BE"; }
.export-list {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 170px;
  background: var(--paper, #fff); border: 1px solid var(--rule); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 4px 0;
}
.export-list a, .export-list .export-off { display: block; padding: 7px 12px; font-size: 13px; color: var(--ink); text-decoration: none; }
.export-list a:hover { background: var(--wash); }
.export-list .export-off { color: var(--pewter); cursor: not-allowed; }
.export-list em { font-style: normal; font-size: 11px; margin-left: 6px; }
.detail-head .meta a { color: inherit; }

/* ---------- submission form: editable answers inside the review table ---------- */
.answer-input { display: block; width: 100%; font: 400 14px/1.45 var(--ui); padding: 7px 9px; margin: 0; }
textarea.answer-input { min-height: 72px; resize: vertical; }
.is-approved .answer-input { background: var(--wash); }
.answer-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 13px; }
.answer-checks label { display: inline-flex; gap: 6px; align-items: center; }
.review .edited { display: block; margin-top: 4px; }

/* ---------- submission form: two columns, RIC on the right ----------
   The form is the work; RIC is company. Open when it has questions, folded to
   a rail otherwise, and the choice is remembered per form. */
.draft-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.draft-layout[data-ric="closed"] { grid-template-columns: minmax(0, 1fr) 44px; }
.ric-panel { position: sticky; top: 16px; }
.ric-body { background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; padding: 12px; }
.ric-rail {
  display: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  width: 44px;
  padding: 16px 0;
  font: 600 12px var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  cursor: pointer;
}
.ric-rail:hover { background: var(--wash); }
[data-ric="closed"] .ric-body { display: none; }
[data-ric="closed"] .ric-rail { display: block; }
/* Rows RIC is writing into, has written into, or a person has just answered. */
.review .is-typing .answer-input { outline: 2px solid var(--gold); outline-offset: -1px; }
.review .is-filled td:first-child { box-shadow: inset 3px 0 0 var(--navy); }
.review .is-fresh .answer-input { animation: settle 1.2s ease-out; }
@keyframes settle { 0% { background: rgba(185, 143, 62, 0.28); } 100% { background: transparent; } }
.add-field { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.add-field input[type="text"] { min-width: 240px; }
.samples-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.samples-form label { display: inline-flex; flex-direction: column; gap: 3px; }
.samples-form input[type="number"] { width: 84px; }
@media (max-width: 1100px) {
  .draft-layout { grid-template-columns: 1fr; }
  .ric-panel { position: static; }
}

/* ---------- award page ---------- */
.how-filed { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.how-filed input[type="url"] { flex: 1; min-width: 240px; }
.sisters { display: flex; flex-wrap: wrap; gap: 8px; }
.status-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.status-chips .chip { pointer-events: none; }

@media (max-width: 1100px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- round 3 ---------- */
/* Submissions: the RIC wordmark and its one-line blurb share a row. */
.ric-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(360px, 3fr); gap: 16px 32px; align-items: start; }
.ric-head .ric-mark { margin: 0; }
.ric-head p { margin: 8px 0 0; max-width: none; }
/* "+ Create a new submission": the one thing on this page that starts work. */
.new-sub { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--navy); padding: 14px 18px 16px; }
.new-sub h2 { font: 600 14px var(--ui); margin: 0 0 10px; color: var(--navy); }
.new-sub-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.new-sub label { display: block; font-size: 12px; color: var(--pewter); }
.new-sub select { width: 100%; margin-top: 4px; }
.progress { display: inline-flex; align-items: center; gap: 8px; }
.progress-bar { display: inline-block; width: 90px; height: 4px; background: var(--wash); border-radius: 2px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--navy); }
@media (max-width: 1100px) { .ric-head, .new-sub-form { grid-template-columns: 1fr; } }
.capture-list { padding: 12px 20px 14px; margin: 0; border-top: 1px solid var(--rule); }
/* Award page: how it is filed reads as one line; the form is there when it needs changing. */
.how-filed-now { margin: 0 0 10px; font-size: 14px; }
.how-filed-edit summary { cursor: pointer; font-size: 13px; color: var(--pewter); margin-bottom: 10px; }
.how-filed-edit summary:hover { color: var(--navy); }

/* ---------- award roadmap ----------
   Sub-scores as a number over a thin bar, so three columns read as a shape
   before anyone reads the digits. The bar is navy: a judgement, not a medal. */
.roadmap td.sub { min-width: 96px; }
.sub-link { display: inline-block; color: inherit; text-decoration: none; }
.sub-link:hover .sub-n { color: var(--navy); text-decoration: underline; }
.sub-n { display: block; font: 600 14px/1.2 var(--ui); color: var(--ink); }
.sub-bar { display: block; width: 72px; height: 4px; margin-top: 5px; background: var(--wash); border-radius: 2px; overflow: hidden; }
.sub-bar > span { display: block; height: 100%; background: var(--navy); }
.roadmap td.rec { min-width: 180px; }
.rec-invest { font-weight: 600; color: var(--navy); }
.rec-selective { font-weight: 600; color: var(--brand-mid); }
.rec-support { font-weight: 500; color: var(--ink); }
.rec-review { font-weight: 500; color: var(--pewter); }
.filters-note { align-self: center; margin-left: auto; font-size: 12px; color: var(--pewter); white-space: nowrap; }
.panel-foot { margin: 0; padding: 10px 18px 12px; border-top: 1px solid var(--rule); }
.legend-title { margin: 0; padding: 12px 18px; font-family: var(--display); font-size: 17px; font-weight: 400; color: var(--navy); }
.legend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.legend-col { padding: 14px 18px 16px; border-left: 1px solid var(--rule); font-size: 13px; }
.legend-col:first-child { border-left: 0; }
.legend-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.legend-area { margin: 10px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pewter); }
.legend-col ul, .sheet-actions ul { margin: 0; padding-left: 16px; color: var(--ink); }
.legend-col li, .sheet-actions li { padding: 1px 0; }
.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.sheet-total { font-family: var(--display); font-size: 22px; color: var(--navy); }
.sheet-q { margin: 2px 0 8px; }
.sheet-rows .v { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sheet-rows .sub-bar { width: 56px; margin-top: 0; }
.sheet-note { margin: 10px 0 0; font-size: 13px; color: var(--ink); }
.sheet-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; font-size: 13px; }
@media (max-width: 1100px) {
  .legend-grid, .sheet, .sheet-actions { grid-template-columns: 1fr 1fr; }
}
