
/* Nuclear Data Power site styles.
   Layout: control-room ledger. Summary dials on top, capacity bars, then the full filterable deal register. Accent = Cherenkov blue. */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #0e1a2b;
  --muted: #56677d;
  --line: #d6dde7;
  --accent: #1f56f0;
  --accent-ink: #ffffff;
  --c-signed: #1f56f0;
  --c-dev: #8eaaf6;
  --c-mou: #c9d6f7;
  --c-mou-edge: #6f8fe0;
  --chip-bg: #e8eefc;
  --warn: #9a5b00;
  --logo-plate: transparent;
  --logo-pad: 0px;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-data: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a111d; --surface: #101a2b; --ink: #e5ecf6; --muted: #92a2b7; --line: #22314a;
    --accent: #6f9bff; --accent-ink: #08101c; --c-signed: #6f9bff; --c-dev: #3a5aa6; --c-mou: #1b2b4d; --c-mou-edge: #4c6cbd;
    --chip-bg: #16243f; --warn: #e2a64a; --logo-plate: #eef2f8; --logo-pad: 12px; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a111d; --surface: #101a2b; --ink: #e5ecf6; --muted: #92a2b7; --line: #22314a;
  --accent: #6f9bff; --accent-ink: #08101c; --c-signed: #6f9bff; --c-dev: #3a5aa6; --c-mou: #1b2b4d; --c-mou-edge: #4c6cbd;
  --chip-bg: #16243f; --warn: #e2a64a; --logo-plate: #eef2f8; --logo-pad: 12px; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15.5px; line-height: 1.55; font-feature-settings: "lnum" 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; padding-block: 28px 56px; display: grid; gap: 36px; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.eyebrow { font-family: var(--font-data); font-size: 13px; font-weight: 600; color: var(--muted); }
h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 5.2vw, 54px); line-height: 1.06; letter-spacing: -0.015em; margin: 0; text-wrap: balance; max-width: 18ch; }
.lede { margin: 0; max-width: 64ch; color: var(--muted); font-size: 16px; }
.asof { font-family: var(--font-data); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.asof b { color: var(--ink); font-weight: 500; }

h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; max-width: 70ch; }

/* dials */
.dials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.dial { padding: 16px 16px 16px 0; display: grid; gap: 4px; min-width: 0; }
.dial + .dial { padding-left: 16px; border-left: 1px solid var(--line); }
.dial .k { font-family: var(--font-data); font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dial .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.dial .v small { font-size: .5em; font-weight: 600; color: var(--muted); margin-left: 4px; }
.dial .n { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .dials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dial:nth-child(3) { padding-left: 0; border-left: 0; }
  .dial:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* commitment glyphs */
.glyph { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.g-S { background: var(--c-signed); }
.g-D { background: var(--c-dev); }
.g-M { background: var(--c-mou); box-shadow: inset 0 0 0 1.5px var(--c-mou-edge); }

/* chart */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: grid; gap: 14px; min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); }
.seg button { font: 500 13px var(--font-body); color: var(--muted); background: transparent; border: 0; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 170px) minmax(0, 1fr) 84px; align-items: center; gap: 12px; font-size: 13.5px; }
.bar-row .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track { height: 16px; display: flex; background: var(--bg); border-radius: 2px; overflow: hidden; }
.track i { display: block; height: 100%; }
.track .s { background: var(--c-signed); }
.track .d { background: var(--c-dev); }
.track .m { background: repeating-linear-gradient(135deg, var(--c-mou) 0 4px, var(--c-mou-edge) 4px 5px); }
.bar-row .tot { font-family: var(--font-data); font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
.axis { display: grid; grid-template-columns: minmax(96px, 170px) minmax(0, 1fr) 84px; gap: 12px; font-family: var(--font-data); font-size: 11px; color: var(--muted); }
.axis .scale { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 4px; }
@media (max-width: 560px) {
  .bar-row, .axis { grid-template-columns: 90px minmax(0, 1fr) 64px; gap: 8px; }
}

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-family: var(--font-data); font-size: 12.5px; font-weight: 600; color: var(--muted); }
select, input[type="search"] { font: 14px var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-width: 0; }
input[type="search"] { width: 220px; max-width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 13px var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.chip[aria-pressed="false"] { color: var(--muted); opacity: .6; }
.count { font-family: var(--font-data); font-size: 12px; color: var(--muted); margin-left: auto; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { text-align: left; font-family: var(--font-data); font-weight: 500; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
th[aria-sort="ascending"] button::after { content: "↑"; color: var(--accent); }
th[aria-sort="descending"] button::after { content: "↓"; color: var(--accent); }
tbody tr.row { cursor: pointer; }
tbody tr.row:hover td { background: var(--chip-bg); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
th.num { text-align: right; }
td .proj { color: var(--muted); font-size: 13px; }
td .cp { font-weight: 600; }
.buyer { font-weight: 600; white-space: nowrap; }
.commit { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; }
.flag { font-family: var(--font-data); font-size: 11px; color: var(--warn); display: block; margin-top: 2px; }
.mono { font-family: var(--font-data); font-size: 13px; white-space: nowrap; }
tr.detail td { background: var(--bg); padding: 14px 16px 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; font-size: 13.5px; }
.detail-grid dt { font-family: var(--font-data); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.detail-grid dd { margin: 2px 0 0; }
.detail-notes { margin: 12px 0 0; max-width: 80ch; }
.srcs { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.srcs a { word-break: break-all; }
.toggle { all: unset; font-family: var(--font-data); color: var(--accent); }

@media (max-width: 720px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  table, tbody { display: block; }
  thead { display: none; }
  tbody tr.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin-bottom: 8px; }
  tbody tr.row td { border: 0; padding: 0; background: transparent !important; }
  tbody tr.row td.c-buyer { grid-column: 1; }
  tbody tr.row td.c-mw { grid-column: 2; grid-row: 1; }
  tbody tr.row td.c-cp { grid-column: 1 / -1; }
  tbody tr.row td.c-commit { grid-column: 1; }
  tbody tr.row td.c-date { grid-column: 2; text-align: right; }
  tbody tr.row td.c-tech, tbody tr.row td.c-term, tbody tr.row td.c-status, tbody tr.row td.c-more { display: none; }
  tr.detail { display: block; margin: -8px 0 8px; }
  tr.detail td { display: block; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; }
}

.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; font-size: 14px; }
.method h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.method p, .method ul { margin: 0; color: var(--muted); max-width: 60ch; }
.method ul { padding-left: 18px; display: grid; gap: 4px; }
.method li strong { color: var(--ink); font-weight: 600; }
footer { border-top: 1px solid var(--line); padding-top: 16px; font-size: 12.5px; color: var(--muted); max-width: 90ch; }
@media (prefers-reduced-motion: no-preference) {
  .track i { transition: width .35s ease; }
}
/* ---------- site chrome ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; min-width: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.top-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.top-right .brand img { width: clamp(96px, 12vw, 132px); }
.brand { display: inline-block; width: fit-content; background: var(--logo-plate); padding: var(--logo-pad); border-radius: 8px; line-height: 0; }
.brand img { display: block; height: auto; }
@media (max-width: 640px) {
  .topbar { flex-direction: column-reverse; align-items: stretch; }
  .top-right { justify-content: space-between; margin-left: 0; }
  .nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav a { white-space: nowrap; }
}

.btn { font: 600 14px var(--font-body); border-radius: 6px; padding: 10px 16px; cursor: pointer; border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 14px; }
.hero h1 { max-width: 20ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ---------- research cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 6px; text-decoration: none; color: var(--ink); min-width: 0; }
.card:hover { border-color: var(--accent); }
.card .k { font-family: var(--font-data); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.card .v { font-family: var(--font-display); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }
.card .v small { font-size: .55em; color: var(--muted); margin-left: 3px; }
.card .d { font-size: 13.5px; color: var(--muted); }
.card .go { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ---------- signup ---------- */
.signup-band { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px 32px; align-items: start; }
.signup-band h2 { font-size: 24px; }
.signup-band p { margin: 6px 0 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 760px) { .signup-band { grid-template-columns: minmax(0, 1fr); } }
.signup-form { display: grid; gap: 12px; min-width: 0; }
.sd-field { display: grid; gap: 4px; }
.sd-field label { font-family: var(--font-data); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.signup-form input[type="email"], .signup-form select { font: 15px var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; }
.signup-form .btn { justify-self: start; }
.sd-legal { font-size: 12px; color: var(--muted); margin: 0; }
.sd-msg { font-size: 13.5px; margin: 0; min-height: 1.2em; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-dialog { border: 1px solid var(--line); border-radius: 10px; padding: 24px; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); }
.signup-dialog::backdrop { background: rgba(8, 14, 26, .55); }
.signup-dialog h2 { font-size: 22px; margin: 0 28px 6px 0; }
.sd-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.sd-close-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.signup-dialog { position: relative; }
.sd-x { background: transparent; border: 0; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.sd-google { margin-top: 8px; }

/* ---------- buyer pages ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.deal-list { display: grid; gap: 12px; }
.deal { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; display: grid; gap: 10px; min-width: 0; }
.deal-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.deal-head h3 { font-family: var(--font-display); font-size: 18px; margin: 0; min-width: 0; }
.deal-head .mw { font-family: var(--font-data); font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; }
.deal .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.deal p { margin: 0; max-width: 80ch; }
.deal .srcs { margin: 0; }
.cta-box { border: 1px solid var(--accent); border-radius: 6px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; background: var(--chip-bg); }
.cta-box p { margin: 0; max-width: 60ch; }
.cta-box strong { display: block; font-size: 16px; }

/* ---------- prose ---------- */
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose h2 { font-size: 20px; margin-top: 10px; }
.prose p, .prose ul { margin: 0; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
