/* The Operative console's look (web/operative-app.html: brand tokens, ops-kpis,
 * ops-panel), for a public page. Same font stacks, so nothing loads from elsewhere. */
:root {
  color-scheme: dark;
  --cd-base:         #0A0A0A;
  --cd-surface:      #141414;
  --cd-panel:        #1A1A1A;
  --cd-charcoal:     #0D0D0D;
  --cd-border:       #262626;
  --cd-border-light: #333333;
  --cd-tangerine:    #FF6B00;
  --cd-tangerine-hover: #E56000;
  --cd-white:        #F0EBE1;
  --cd-muted:        #8A857D;
  --cd-dark:         #52525B;
  --cd-font-sans:  "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --cd-font-serif: "Lora", ui-serif, Georgia, "Times New Roman", serif;
  --cd-font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --accent: var(--cd-tangerine);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cd-base);
  color: var(--cd-white);
  font-family: var(--cd-font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: var(--cd-base); }

.wrap {
  min-height: 100vh;
  background: radial-gradient(circle at 78% 0%, rgba(255, 107, 0, .07), transparent 30%), var(--cd-base);
}
.inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 64px; }

/* header: kicker, serif title, muted subtitle, mono sub-line */
.kicker { font-family: var(--cd-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
.title { max-width: 26ch; text-wrap: balance; margin: 8px 0 0; font-family: var(--cd-font-serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; }
.subtitle { max-width: 760px; margin: 12px 0 0; color: var(--cd-muted); font-size: 14px; }
.sub { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--cd-font-mono); font-size: 10px; color: var(--cd-muted); letter-spacing: .06em; text-transform: uppercase; }
.sub b { color: var(--accent); font-weight: 400; }
.hero { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--cd-border); }

.note { padding: 12px; border: 1px solid var(--cd-border); background: var(--cd-charcoal); font-size: 12px; color: var(--cd-muted); }

/* KPI strip, as .ops-kpis, sized up for a page people read */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--cd-border); border-right: 0; border-bottom: 0; margin-bottom: 18px; }
.kpi { padding: 18px 18px 16px; border-right: 1px solid var(--cd-border); border-bottom: 1px solid var(--cd-border); background: rgba(13, 13, 13, .9); }
.kpi.lead { background: linear-gradient(180deg, rgba(255, 107, 0, .08), rgba(13, 13, 13, .9) 70%); box-shadow: inset 0 2px 0 var(--accent); }
.kpi .n { font-family: var(--cd-font-mono); font-size: 34px; line-height: 1.1; letter-spacing: -.01em; }
.kpi.lead .n { color: var(--accent); }
.kpi .l { margin-top: 6px; font-family: var(--cd-font-mono); font-size: 10px; color: var(--cd-muted); letter-spacing: .1em; text-transform: uppercase; }
.kpi .parts { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--cd-border); font-family: var(--cd-font-mono); font-size: 10px; color: var(--cd-dark); }
.kpi .parts li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.kpi .parts b { color: var(--cd-white); font-weight: 400; }

/* panels, as .ops-panel */
.panel { border: 1px solid var(--cd-border); background: rgba(20, 20, 20, .86); margin-bottom: 18px; }
.panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--cd-border); }
.panel-title { font-family: var(--cd-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.panel-meta { font-family: var(--cd-font-mono); font-size: 9px; color: var(--cd-dark); text-align: right; }

/* how we count */
.how { margin: 0; }
.how > div { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 6px 24px; padding: 14px 15px; border-top: 1px solid var(--cd-border); }
.how > div:first-child { border-top: 0; }
.how dt { font-family: var(--cd-font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding-top: 2px; }
.how dd { margin: 0; color: var(--cd-muted); font-size: 13px; max-width: 76ch; }

.foot { margin-top: 26px; font-family: var(--cd-font-mono); font-size: 10px; letter-spacing: .04em; color: var(--cd-dark); }

@media (max-width: 640px) {
  .inner { padding-top: 28px; }
  .kpi .n { font-size: 28px; }
  .how > div { grid-template-columns: 1fr; }
}
