:root {
  --neg-blau: #2B3A44;
  --neg-gold: #B8A387;
  --neg-grau20: #667277;
  --neg-grau40: #7D8A91;
  --neg-hell: #E8F5F2;
  --neg-highlight: #3399FF;

  --bg: #FAFBFB;
  --paper: #FFFFFF;
  --ink: #2B3A44;
  --ink-soft: #58656C;
  --ink-faint: #939DA2;
  --line: #EAEDED;
  --line-strong: #DDE2E2;

  --st-review: #A97620;
  --st-handoff: #2E7D5B;
  --st-progress: #3B6A93;
  --st-open: #869096;
  --st-blocked: #C0453A;
  --st-testing: #6B5AA6;

  --radius: 12px;
  --maxw: 900px;
  --h-top: 60px;
  --h-nav: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400; line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.serif { font-family: "DM Serif Display", Georgia, "Times New Roman", serif; font-weight: 400; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--neg-grau40); }
a { color: var(--neg-highlight); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header.top { position: sticky; top: 0; z-index: 30; height: var(--h-top); background: rgba(255,255,255,.85); backdrop-filter: saturate(1.3) blur(9px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 13px; height: var(--h-top); max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; }
.logo { height: 25px; width: auto; display: block; }
.top-sep { width: 1px; height: 24px; background: var(--line-strong); }
.top-title { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.updated { margin-left: auto; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* Hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 46px 24px 36px; }
.hero .rule { width: 38px; height: 3px; background: var(--neg-gold); border-radius: 2px; margin: 14px 0 20px; }
.hero h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.1; margin: 8px 0 0; color: var(--ink); }
.hero p.lead { margin: 16px 0 0; max-width: 62ch; color: var(--ink-soft); font-size: 16px; }
.hero .metaback { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.hero .metaback:hover { color: var(--neg-highlight); text-decoration: none; }
.hero .metaback svg { width: 15px; height: 15px; }

/* Sub-nav */
.subnav { position: sticky; top: var(--h-top); z-index: 20; background: rgba(250,251,251,.92); backdrop-filter: saturate(1.3) blur(9px); border-bottom: 1px solid var(--line); }
.subnav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; height: var(--h-nav); display: flex; gap: 2px; align-items: center; overflow-x: auto; }
.subnav a { font-size: 13px; font-weight: 600; color: var(--ink-soft); padding: 7px 13px; border-radius: 8px; white-space: nowrap; }
.subnav a:hover { background: var(--neg-hell); text-decoration: none; color: var(--ink); }
.subnav a.active { color: var(--ink); background: var(--neg-hell); }

main { padding-bottom: 20px; }
.section { padding-top: 34px; }
.section-head { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; }
.section-head h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 25px; margin: 0; color: var(--ink); }
.count { font-size: 11.5px; color: var(--neg-grau20); font-weight: 600; background: var(--neg-hell); padding: 2px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.section-desc { color: var(--ink-soft); font-size: 14px; margin: 8px 0 20px; max-width: 62ch; }

/* Status: summary + board */
.summary-row { display: flex; flex-wrap: wrap; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.stat { flex: 1 1 0; min-width: 92px; padding: 15px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: "DM Serif Display", Georgia, serif; font-size: 26px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .lbl { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.stat .dot { width: 7px; height: 7px; border-radius: 50%; }

.board { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.brow { display: grid; grid-template-columns: 210px 168px 1fr 92px; align-items: center; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line); }
.brow:first-child { border-top: none; }
.brow.bhead { padding: 10px 18px; background: #FCFDFD; }
.brow.bhead span { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.brow.row:hover { background: var(--neg-hell); }
.b-name { font-weight: 600; font-size: 13.7px; color: var(--ink); }
.b-name a { color: var(--ink); }
.b-name a:hover { color: var(--neg-highlight); text-decoration: none; }
.b-name .b-dept { display: block; font-weight: 500; font-size: 11px; color: var(--ink-faint); margin-top: 1px; letter-spacing: .02em; }
.b-update { font-size: 13px; color: var(--ink-soft); }
.b-date { font-size: 12.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* Status pill */
.pill { font-size: 11.5px; font-weight: 600; padding: 4px 11px 4px 9px; border-radius: 999px; white-space: nowrap; color: var(--st); background: color-mix(in srgb, var(--st) 11%, transparent); border: 1px solid color-mix(in srgb, var(--st) 28%, transparent); display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.pill .pdot { width: 6.5px; height: 6.5px; border-radius: 50%; background: var(--st); }

/* Cards */
.list { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; scroll-margin-top: calc(var(--h-top) + var(--h-nav) + 14px); }
.card:hover { border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(43,58,68,.04), 0 10px 26px rgba(43,58,68,.06); }
.card-body { padding: 24px 26px 22px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 22px; line-height: 1.2; margin: 7px 0 0; color: var(--ink); }
.card p.desc { margin: 13px 0 0; color: var(--ink-soft); font-size: 14.5px; max-width: 66ch; }
.points { list-style: none; margin: 15px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.points li { position: relative; padding-left: 19px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.points li::before { content: ""; position: absolute; left: 1px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--neg-gold); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 11.5px; color: var(--neg-grau20); background: var(--neg-hell); padding: 3px 9px; border-radius: 6px; }
.staging { margin-top: 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.staging svg { width: 14px; height: 14px; }

/* Downloads */
.files { border-top: 1px solid var(--line); background: #FCFDFD; padding: 14px 16px 16px; }
.files-head { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin: 2px 8px 6px; }
.dl { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; transition: background .12s; }
.dl:hover { background: var(--neg-hell); text-decoration: none; }
.ext { flex: 0 0 auto; width: 38px; height: 24px; border-radius: 4px; display: grid; place-items: center; font-size: 9px; font-weight: 700; letter-spacing: .03em; color: #fff; }
.ext.pdf { background: #C1553F; } .ext.pptx { background: #C4703B; } .ext.xlsx { background: #3C7A54; }
.ext.csv { background: #3C7A54; } .ext.md { background: #5B6970; } .ext.zip { background: #7A7186; } .ext.html { background: #3B6A93; } .ext.json { background: #8A6E3F; }
.dl .fname { font-size: 13.5px; font-weight: 500; color: var(--ink); flex: 1; min-width: 0; }
.dl .fmeta { font-size: 11.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl .arrow { flex: 0 0 auto; color: var(--ink-faint); opacity: 0; transition: opacity .12s; }
.dl:hover .arrow { opacity: 1; }
.dl .arrow svg { width: 15px; height: 15px; display: block; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 44px; background: var(--paper); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px 44px; display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: flex-start; }
.foot-col .eyebrow { margin-bottom: 8px; }
.foot-col p { margin: 2px 0; font-size: 13px; color: var(--ink-soft); }
.foot-note { max-width: 46ch; font-size: 12.5px; color: var(--ink-faint); line-height: 1.55; }

@media (max-width: 720px) {
  .brow { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .brow.bhead { display: none; }
  .b-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .b-name { grid-column: 1; grid-row: 1; }
  .b-update { grid-column: 1 / -1; grid-row: 2; }
  .b-date { grid-column: 1 / -1; grid-row: 3; text-align: left; }
}
@media (max-width: 620px) {
  .top-title { display: none; }
  .card-head { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .stat { flex-basis: 33%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Status page: project blocks with requirements + updates feed ---------- */
.plist { display: flex; flex-direction: column; gap: 16px; }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 20px; transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(43,58,68,.04), 0 10px 26px rgba(43,58,68,.05); }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.pcard h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 20px; line-height: 1.2; margin: 0; color: var(--ink); }
.pcard h3 a { color: var(--ink); }
.pcard h3 a:hover { color: var(--neg-highlight); text-decoration: none; }
.pcard .sub { font-size: 12px; color: var(--ink-faint); margin-top: 3px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pcard-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 28px; margin-top: 18px; }
.block-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 11px; }

.req { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.req li { position: relative; padding-left: 18px; font-size: 13.3px; color: var(--ink-soft); line-height: 1.5; }
.req li::before { content: ""; position: absolute; left: 1px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--neg-gold); }

.feed { position: relative; display: flex; flex-direction: column; gap: 15px; }
.feed::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.msg { position: relative; padding-left: 20px; }
.msg .m-dot { position: absolute; left: 0.5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--st, var(--neg-gold)); box-shadow: 0 0 0 3px var(--paper); }
.m-date { font-size: 11.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .02em; }
.m-text { font-size: 13.3px; color: var(--ink-soft); margin-top: 2px; line-height: 1.5; }
.m-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--neg-hell); border: 1px solid var(--line); padding: 5px 10px; border-radius: 7px; text-decoration: none; max-width: 100%; }
.m-link:hover { text-decoration: none; border-color: var(--line-strong); }
.m-link svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--neg-grau40); }
.m-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px) { .pcard-grid { grid-template-columns: 1fr; gap: 20px; } }

.m-text code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--neg-hell); padding: 1px 5px; border-radius: 4px; color: var(--ink); }

/* ---------- Blocker note ---------- */
.blocker { margin-top: 16px; background: color-mix(in srgb, var(--st-blocked) 8%, transparent); border: 1px solid color-mix(in srgb, var(--st-blocked) 30%, transparent); border-radius: 10px; padding: 12px 14px; }
.blk-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--st-blocked); font-weight: 700; margin-bottom: 5px; }
.blk-text { font-size: 13.3px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Architecture button ---------- */
.card-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.arch-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); padding: 5px 11px; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.arch-btn:hover { background: var(--neg-hell); border-color: var(--line-strong); text-decoration: none; color: var(--ink); }
.arch-btn svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--neg-grau40); }
