:root {
  --bg: #EEF2F4; --surface: #FFFFFF; --ink: #10212A; --muted: #5B6B74; --rule: #D7DFE3;
  --petrol: #0E3F52; --aqua: #BFE7EF; --amber: #C98A1E; --amber-tint: #FBF1DC;
  --focus: #1C7A99; --danger: #B4442E; --ok: #2E7D5B;
  --field: #7F8E97; /* form field borders: at least 3:1 against white and the page background */
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--petrol); } a:hover { color: var(--focus); }
h1, h2, h3 { margin: 0; }
h1 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 34px; line-height: 1.1; color: var(--petrol); }
h2 { font-size: 18px; font-weight: 600; }
button, input, select { font: inherit; color: inherit; }
input, select { background: var(--surface); border: 1px solid var(--field); border-radius: 6px; padding: 7px 9px; min-width: 0; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
button { cursor: pointer; border: 1px solid var(--petrol); background: var(--surface); color: var(--petrol); border-radius: 6px; padding: 7px 12px; font-weight: 600; }
button.primary { background: var(--petrol); color: #FFFFFF; }
button.danger { border-color: var(--danger); color: var(--danger); }

.top { background: var(--surface); border-bottom: 1px solid var(--rule); }
.top-inner, .page { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 600; text-decoration: none; color: var(--ink); }
.nav { display: flex; gap: 18px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); } .nav a.on { color: var(--ink); font-weight: 600; }
.spacer { flex: 1; }
.switcher { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.switcher select { width: 280px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; } /* WebKit counts long option text as page width */
.sign-out { display: flex; align-items: center; gap: 10px; }
button.link { border: 0; background: none; padding: 0; color: var(--petrol); font-size: 13px; font-weight: 500; text-decoration: underline; }
.account-form { max-width: 440px; display: grid; gap: 14px; margin-top: 20px; }
.account-form label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.account-form .foot { margin-top: 6px; }
.account-rules { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.left-tag { color: var(--danger); }
.data-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.dev-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; background: var(--amber-tint); color: #7A5410; border: 1px solid var(--amber); border-radius: 999px; padding: 1px 8px; }

.page { padding-top: 32px; padding-bottom: 72px; }
.lede { color: var(--muted); margin: 6px 0 0; max-width: 760px; }
.messages { list-style: none; padding: 0; margin: 0 0 18px; }
.messages li { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--rule); }
.messages li.success { border-color: var(--ok); } .messages li.error { border-color: var(--danger); color: var(--danger); }
.messages li.warning, .messages li.info { border-color: var(--amber); }

.section { margin-top: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; }
.card.attention { border-color: var(--amber); background: var(--amber-tint); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.count { font-size: 13px; color: var(--muted); font-weight: 400; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 8px 8px 0; border-bottom: 1px solid var(--rule); }
td { padding: 8px 8px 8px 0; border-bottom: 1px solid #E3E9EC; vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.num { text-align: right; white-space: nowrap; }
.syn { color: var(--muted); font-size: 13px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; background: var(--aqua); color: var(--petrol); }
.chip.pending { background: var(--amber-tint); color: #7A5410; } .chip.retired { background: #E3E9EC; color: var(--muted); }

.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px; }
.facts div > span:first-child { display: block; font-size: 12.5px; color: var(--muted); }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 24px; }
.action h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.action p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.action form { display: grid; gap: 8px; }
.action .errorlist { margin: 0; padding: 0; list-style: none; color: var(--danger); font-size: 13px; }
.placeholder { border: 1px dashed #A9B6BD; border-radius: 10px; padding: 16px 18px; color: var(--muted); background: transparent; }

@media (max-width: 720px) {
  .top-inner, .page { padding-left: 16px; padding-right: 16px; }
  .switcher { width: 100%; } .switcher select { flex: 1; max-width: none; }
  .grid, .actions { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
}

/* Baseline page */
.chip.confirmed { background: #DDF0E6; color: #1F6B4B; }
.assumed { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; background: var(--amber-tint); color: #7A5410; border: 1px solid var(--amber); border-radius: 999px; padding: 0 7px; margin-left: 4px; vertical-align: 1px; }
.baseline .strip { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; margin-top: 24px; position: sticky; top: 0; z-index: 2; }
.baseline .big { font-family: "Fraunces", Georgia, serif; font-size: 36px; line-height: 1; font-weight: 500; }
.remain { font-size: 14px; color: var(--muted); } .remain.over { color: var(--danger); font-weight: 600; } .remain.done { color: #236A4C; font-weight: 600; } /* 4.5:1+ on the page background */
.block { margin-top: 36px; padding-left: 46px; position: relative; }
.block .n { position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--petrol); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.block h2 { margin-bottom: 2px; }
.hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
table.rows td { padding: 4px 6px 4px 0; border-bottom: none; }
table.rows input, table.rows select { width: 100%; }
.field-error { color: var(--danger); font-size: 12.5px; }
.add-row { margin-top: 8px; font-weight: 500; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.facts-grid label, label.wide { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
label.wide { margin-top: 14px; }
.facts-grid label.wide { grid-column: 1 / -1; margin-top: 0; }
textarea { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--field); border-radius: 6px; padding: 7px 9px; width: 100%; resize: vertical; }
.budget-lines { margin-top: 14px; }
.foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
input:disabled, select:disabled, textarea:disabled { background: transparent; border-color: transparent; color: var(--ink); }
/* A page to read (a submitted baseline): no buttons to add or remove rows. */
fieldset:disabled .add-row, fieldset:disabled .remove-row { display: none; }
@media (max-width: 720px) { .block { padding-left: 0; } .block .n { position: static; margin-bottom: 8px; } }

/* My Record */
.record { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; color: var(--muted); }
.identity .who { color: var(--ink); font-family: inherit; font-weight: 600; font-size: 17px; line-height: inherit; margin: 0; }
.identity-link { margin-left: auto; font-size: 14px; font-weight: 600; }
.headline { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 500; color: var(--petrol); font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.01em; max-width: 980px; text-wrap: balance; }
.headline.empty { font-size: clamp(28px, 4vw, 40px); color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; margin-top: 8px; }
.figure { font-family: "Fraunces", Georgia, serif; font-size: 40px; font-weight: 500; line-height: 1; margin-right: 8px; font-variant-numeric: tabular-nums; }
.phase { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid #A9B6BD; border-radius: 999px; padding: 1px 8px; }
.two-col { display: flex; flex-wrap: wrap; gap: 48px; }
.two-col > div { flex: 1 1 420px; min-width: 0; }
.two-col h2 { margin-bottom: 14px; } .two-col h2.sub { margin-top: 34px; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 60px; align-items: center; gap: 12px; }
.bar-row .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.track { height: 14px; background: var(--rule); border-radius: 3px; }
.fill { height: 14px; border-radius: 3px; }
/* One colour per craft wherever crafts appear (bars, timeline, legend). Validated as a categorical set in
   craft order for colour-blind and normal-vision separation. Aqua and yellow sit below 3:1 on white, so
   crafts always carry a visible label, and the timeline has a legend and a table view. */
.craft-engagement_lead { background: #2A78D6; } .craft-value_engineer { background: #EB6834; }
.craft-campaigner { background: #1BAF7A; } .craft-builder { background: #EDA100; } .craft-sme { background: #4A3AA7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dchip { display: inline-flex; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.tile .name { font-weight: 600; } .tile .figure { font-size: 32px; }
.tile.top { background: var(--petrol); border-color: var(--petrol); color: #FFFFFF; }
.tile.none { background: transparent; border: 1px dashed #A9B6BD; color: var(--muted); }
.council { margin-top: 24px; padding: 22px 24px; background: var(--ink); color: #FFFFFF; border-radius: 12px; display: flex; flex-direction: column; gap: 12px; }
.council h2 { margin: 0; }
.council-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: 14px; }
.council .k { color: var(--aqua); font-size: 13px; } .council .v { font-weight: 600; } .council .v.later { font-weight: 400; color: #A9C3CB; }
.council .note, .council p { margin: 0; color: var(--aqua); }
table.ledger .strong { font-weight: 600; } .nowrap { white-space: nowrap; }
tr.correction td { background: var(--amber-tint); }
/* The baseline's history on the Ledger (2026-10-22): a row while it waits, and a collapsible line. */
tr.waiting td { color: var(--muted); font-style: italic; }
tr.history-row td { padding-top: 2px; }
details.history > summary { cursor: pointer; font-size: 13px; color: var(--petrol); font-weight: 600; }
details.history > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
details.history[open] > summary { margin-bottom: 6px; }
details.history > p { margin: 0 0 8px; }
ol.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
ol.history-list > li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
ol.history-list .when { color: var(--muted); white-space: nowrap; }
ol.history-list ul { margin: 2px 0 0; padding-left: 18px; color: var(--muted); }
.later-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 720px) { .tiles, .council-grid { grid-template-columns: 1fr; } .identity-link { margin-left: 0; } .bar-row { grid-template-columns: 110px minmax(0, 1fr) 52px; } }
tr.has-error td { background: #FBEDEA; } tr.row-error td { padding-bottom: 0; }
ul.plain { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
dl.facts { margin: 0; } dl.facts dt { font-size: 12.5px; color: var(--muted); } dl.facts dd { margin: 0; }
tfoot td { border-top: 1px solid var(--rule); border-bottom: none; }
.remove-row { border: none; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; padding: 6px 8px; }
.remove-row:hover { color: var(--danger); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.action .action-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.action .impact { color: #7A5410; background: var(--amber-tint); border-radius: 6px; padding: 6px 10px; }
label.check { display: flex; gap: 8px; align-items: center; }
.dchip.pending { border-style: dashed; } .chips-note { margin: -8px 0 10px; }

/* Phones: tables become stacked cards instead of scrolling sideways. */
@media (max-width: 720px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.stack td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 2px 0; border: none; text-align: left; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; }
  table.stack td.num { text-align: left; }
  table.stack td > .syn { grid-column: 2; }
  table.stack tr.history-row td { display: block; } table.stack tr.history-row td::before { content: none; }
  ol.history-list > li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  table.stack tfoot tr { border-bottom: none; }
  table.rows thead { display: none; }
  table.rows tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.rows tbody tr td { padding: 0; }
  table.rows tbody[id^="rows-"] tr { grid-template-columns: minmax(0, 1fr) auto; }
  table.rows tbody[id^="rows-"] tr td { grid-column: 1; }
  table.rows tbody[id^="rows-"] tr td:last-child { grid-column: 2; grid-row: 1; }
  table.rows tbody[id^="rows-"] tr.row-error td { grid-column: 1 / -1; }
}
th.num { text-align: right; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--petrol); color: #FFFFFF; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip-link:focus { top: 8px; color: #FFFFFF; }
main:focus { outline: none; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter label { font-size: 13px; color: var(--muted); } .filter input { width: 240px; max-width: 100%; }

/* Projects */
a.button { display: inline-block; text-decoration: none; border: 1px solid var(--petrol); background: var(--surface); color: var(--petrol); border-radius: 6px; padding: 7px 12px; font-weight: 600; }
a.button.primary { background: var(--petrol); color: #FFFFFF; } a.button:hover { color: var(--focus); } a.button.primary:hover { color: #FFFFFF; }
.chip.status-planned { background: #E3E9EC; color: var(--muted); } .chip.status-running { background: var(--aqua); color: var(--petrol); }
.chip.status-closed, .chip.status-ended { background: var(--amber-tint); color: #7A5410; } .chip.status-reviewed { background: #DDF0E6; color: #1F6B4B; }
dl.facts > div { min-width: 140px; }
input.readonly { background: transparent; border-color: transparent; color: var(--muted); }

/* Twelve months of evidence: monthly columns stacked by craft */
.legend { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend li, .ttip div { display: flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.timeline { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.tcol { position: relative; display: flex; flex-direction: column; align-items: center; }
.tarea { height: 170px; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-top: 22px; }
.tstack { position: relative; width: 60%; max-width: 24px; display: flex; flex-direction: column-reverse; gap: 2px; min-height: 4px; }
.tseg { flex-basis: 0; min-height: 2px; }
.tseg:last-child { border-radius: 4px 4px 0 0; }
.tcap { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tmonth { position: absolute; top: 100%; padding-top: 6px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2; }
.timeline { margin-bottom: 40px; }
.ttip { display: none; position: absolute; bottom: 60%; left: 50%; z-index: 3; min-width: 200px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; font-size: 13px; box-shadow: 0 4px 14px rgba(16, 33, 42, .12); }
.tcol.tip-left .ttip { left: auto; right: 50%; }
.tcol:hover .ttip { display: grid; gap: 3px; }
.tcol:hover .tstack { filter: brightness(.95); }
.table-view summary { cursor: pointer; font-size: 13px; color: var(--petrol); font-weight: 600; }
.table-view[open] summary { margin-bottom: 8px; }

/* Projects and case studies */
.project-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; gap: 6px; }
.pcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pcard h3 { font-size: 16px; font-weight: 600; }
.pcard-points { font-family: "Fraunces", Georgia, serif; font-size: 24px; font-variant-numeric: tabular-nums; }
.pcard ul.plain { margin: 2px 0 0; gap: 2px; }
.pcard .case { margin: 6px 0 4px; font-size: 14px; }
@media (max-width: 720px) { .project-cards { grid-template-columns: 1fr; } .ttip { min-width: 160px; } }
.note-own-share { flex-basis: 100%; margin: 4px 0 0; color: #7A5410; }
.agent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 4px; }

/* Firm Grid: people per craft x domain cell. One-hue petrol ramp, validated light to dark; gaps are outlined. */
.grid-legend { margin-top: 16px; }
.gswatch { display: inline-block; width: 18px; height: 12px; border-radius: 3px; }
.step-1 { background: #8DB8C8; color: var(--ink); } .step-2 { background: #5E97AD; color: var(--ink); }
.step-3 { background: #357790; color: #FFFFFF; } .step-4 { background: #0E3F52; color: #FFFFFF; }
.gswatch.gap, .gcell.gap { background: transparent; border: 1px dashed var(--danger); }
.grid-wrap { margin-top: 12px; }
table.firm-grid { border-collapse: separate; border-spacing: 4px; min-width: 760px; table-layout: fixed; }
table.firm-grid th { border: none; font-size: 13px; vertical-align: bottom; padding: 4px; }
table.firm-grid tbody th { text-align: left; vertical-align: middle; color: var(--ink); font-weight: 600; width: 170px; }
table.firm-grid td { border: none; padding: 0; }
.gcell { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border-radius: 6px; text-decoration: none; }
.gcell:hover, .gcell:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.gcount { font-family: "Fraunces", Georgia, serif; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.glabel { font-size: 12px; }
.gcell.gap .glabel { color: var(--danger); font-weight: 600; }
@media (max-width: 720px) { .grid-wrap { overflow-x: auto; } }

/* Recognition */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.leader-craft { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
ol.leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
ol.leaders li { display: flex; gap: 6px; } ol.leaders .rank { width: 18px; color: var(--muted); }
ol.leaders li span.num { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
ul.firsts { margin: 0; gap: 10px; } ul.firsts li { display: flex; gap: 10px; align-items: baseline; }
.first-kind { color: var(--amber); font-size: 14px; width: 14px; flex: none; }
.band-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.band-head { display: grid; gap: 2px; margin-bottom: 8px; }
.band-head h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 22px; color: var(--petrol); }
ul.band-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.council .band-next { color: var(--aqua); margin-top: 2px; }

/* Council packet: one person per printed page */
.packet-page { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 28px 32px; margin-top: 24px; font-size: 13.5px; }
/* The frame's head repeats on every printed page, so a long packet's later pages still name the person. */
table.packet-frame { width: 100%; } table.packet-frame > tbody > tr > td { display: grid; gap: 14px; padding: 0; border: none; }
table.packet-frame > thead th { display: none; }
.packet-project { break-inside: avoid; }
.packet-page h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.packet-page p { margin: 0; }
.packet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid var(--petrol); padding-bottom: 12px; }
.packet-name { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 30px; color: var(--petrol); margin: 4px 0; }
.packet-title { font-weight: 600; margin-top: 4px; }
.packet-total { text-align: right; display: grid; }
.packet-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.packet-grid h3:not(:first-child) { margin-top: 12px; }
table.packet-table { font-size: 13px; } table.packet-table td, table.packet-table th { padding: 2px 6px 2px 0; border-bottom: 1px solid #E3E9EC; }
table.packet-table.trend th, table.packet-table.trend td { text-align: center; }
.packet-project { padding: 6px 0; border-bottom: 1px solid #E3E9EC; } .packet-case { margin-top: 4px !important; }
@media (max-width: 720px) { .packet-grid { grid-template-columns: 1fr; } .packet-page { padding: 18px; } }
@media print {
  .top, .no-print, .skip-link, .messages { display: none !important; }
  body { background: #FFFFFF; font-size: 11pt; }
  .page { padding: 0; max-width: none; }
  .packet-page { border: none; border-radius: 0; padding: 0; margin: 0; break-after: page; page-break-after: always; }
  .packet-page:last-child { break-after: auto; page-break-after: auto; }
  table.packet-frame > thead { display: table-header-group; }
  table.packet-frame > thead th { display: table-cell; font-size: 9pt; font-weight: 400; color: var(--muted); text-align: left; padding: 0 0 6px; border: none; }
  a { color: inherit; text-decoration: none; }
  @page { margin: 16mm; }
}

input.needs-reason { border-color: var(--accent, #C98A1E); background: #FFF8EC; }

/* Baseline spending (crafts.js): a row per craft, then SME lines, each with a share slider. */
table.crafts-list { width: 100%; }
table.crafts-list th[scope="row"] { text-align: left; font-weight: 400; vertical-align: top; padding-top: 10px; width: 34%; }
table.crafts-list td { vertical-align: top; }
table.crafts-list td input { width: 100%; }
.craft-name { font-weight: 600; color: var(--ink); }
.craft-short { display: block; font-size: 12px; color: var(--muted); }
.sme-title { font-size: 15px; margin: 18px 0 6px; font-weight: 400; }
.share-cell { min-width: 220px; }
/* A share slider: the track is filled to its share, shaded lighter as far as it can still go, and grey beyond. */
.share-slider { display: grid; grid-template-columns: minmax(140px, 1fr) 3.4em; align-items: center; gap: 10px; width: 100%; min-width: 200px; }
.share-range { --fill: 0; --room: 1; --thumb: 22px; -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  margin: 14px 0; border-radius: 4px; cursor: pointer; background: linear-gradient(to right,
    var(--petrol) 0 calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--fill)),
    #A9CAD6 0 calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--room)),
    var(--rule) 0); }
.share-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: var(--thumb); height: var(--thumb);
  border-radius: 50%; background: #fff; border: 2px solid var(--petrol); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.share-range::-moz-range-thumb { box-sizing: border-box; width: var(--thumb); height: var(--thumb); border-radius: 50%;
  background: #fff; border: 2px solid var(--petrol); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.share-range::-moz-range-track { background: transparent; }
.share-range:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.share-range:disabled { cursor: default; opacity: .7; }
.share-value { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.line-points { display: block; margin-top: 2px; }
.share-bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--rule); margin: 4px 0 8px; }
.share-bar .share-part { flex: 0 1 0; min-width: 2px; }
.share-bar .share-part + .share-part { border-left: 2px solid var(--surface); }
.share-bar .share-part.left { background: repeating-linear-gradient(135deg, var(--rule) 0 6px, var(--surface) 6px 12px); }
.share-bar.over { outline: 2px solid var(--danger); outline-offset: 2px; }
.share-placed { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px; }
.share-key { display: inline-flex; align-items: center; gap: 6px; }
.share-key .swatch { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.notice { border-left: 4px solid var(--amber); background: var(--amber-tint); padding: 10px 12px; margin: 10px 0; font-size: 14px; }
@media (max-width: 720px) { table.crafts-list th[scope="row"] { width: auto; } }

/* Baseline steps (baseline_steps.js). Without the script every step shows in turn. */
.step-title { font-size: 22px; margin: 34px 0 4px; }
.stepped .step-title { margin-top: 18px; }
.step-title:focus { outline: none; }
.block.single { padding-left: 0; }
.stepper ol { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; }
.stepper button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; color: var(--ink); cursor: pointer; }
.stepper button[aria-current="step"] { border-color: var(--petrol); box-shadow: inset 0 -3px 0 var(--petrol); }
.stepper-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--rule); font-weight: 600; font-size: 13px; }
.stepper button[aria-current="step"] .stepper-n { background: var(--petrol); color: #fff; }
/* The person's steps: where they are, not buttons. */
.stepper.progress li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 10px; color: var(--muted); }
.stepper.progress li[aria-current="step"] { border-color: var(--petrol); box-shadow: inset 0 -3px 0 var(--petrol); color: var(--ink); font-weight: 600; }
.stepper.progress li[aria-current="step"] .stepper-n { background: var(--petrol); color: #fff; }
.stepper.progress li.done .stepper-n { background: #236A4C; color: #fff; }
.foot-back { margin: 14px 0 0; }
.facts-title { margin-top: 28px; }
.stepper-text { display: grid; gap: 2px; min-width: 0; }
.stepper-title { font-weight: 600; font-size: 14px; }
.stepper-status { color: var(--muted); }
.stepper button.has-problem .stepper-status { color: #B3261E; font-weight: 600; }
.step-moves { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.step-moves .primary-soft { margin-left: auto; border-color: var(--petrol); color: var(--petrol); font-weight: 600; }
@media (max-width: 720px) { .stepper ol { grid-template-columns: 1fr; } }

/* Anything marked hidden stays hidden, even when a rule above gives it a display. */
[hidden] { display: none !important; }

/* Craft descriptions: the spending grid and the craft key */
.craft-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 10px; color: var(--muted); }
.craft-key-item .swatch { margin-right: 5px; }
.craft-key-item strong { color: var(--ink); font-weight: 600; margin-right: 3px; }

/* Discipline dropdowns (discipline_select.js): the text field shows only for a new name */
select.discipline-select { width: 100%; }
input.discipline-new { margin-top: 4px; width: 100%; }


/* Sortable tables (sortable.js): the heading is a button that keeps the heading's look */
th .sort-button { all: unset; cursor: pointer; color: inherit; font: inherit; display: inline-flex; align-items: baseline; gap: 2px; }
th .sort-button:hover { color: var(--petrol); }
th .sort-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
th[aria-sort] { color: var(--petrol); }
th[aria-sort] .sort-button { font-weight: 600; }
.sort-arrow { font-size: 10px; }
.sort-hint { margin: 0 0 8px; }

/* A list section that opens on click (confirmed baselines, reviewed projects) */
details.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "▶"; color: var(--petrol); font-size: 13px; display: inline-block; transition: transform .15s; }
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold > summary h2 { display: inline; margin: 0; }
details.fold > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
details.fold[open] > summary { margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { details.fold > summary::before { transition: none; } }

/* Baseline review: the person's CV on the page for the VP, the read-only submitted view, and sending it back. */
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.cv-panel { margin: 14px 0; }
.cv-panel > summary { cursor: pointer; }
.cv-panel[open] > summary { margin-bottom: 10px; }
.cv-frame { display: block; width: 100%; height: 75vh; min-height: 420px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.send-back { margin-top: 14px; }
.send-back > summary { cursor: pointer; color: var(--petrol); font-weight: 600; font-size: 14px; }
.send-back[open] > summary { margin-bottom: 8px; }
.send-back textarea { display: block; width: 100%; margin: 6px 0 10px; }

/* Taxonomy: the "Add a discipline" box at the foot of each domain. */
.add-box { margin-top: 12px; }
.add-box summary { cursor: pointer; color: var(--petrol); }
.add-box .add-form { display: grid; gap: 6px; margin-top: 8px; }
