/* Supply Chain Map — ledger style: paper and ink, serif for words, mono for figures, hairline rules. */
:root {
  --paper: #f4efe4; --surface: #fbf8f1; --ink: #1b1a17; --ink-2: #3d3a33; --muted: #6f6a5e; --rule: #d9d1c0;
  --rule-2: #e8e1d2; --accent: #b0361c; --accent-ink: #ffffff; --sup: #b5651d; --cus: #1f6f6b; --focus: #1b1a17;
  --focus-ink: #f4efe4; --hl: #f0e3c4; --up: #1f6f6b; --down: #b0361c;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15140f; --surface: #1c1b16; --ink: #ece6d8; --ink-2: #cfc8b8; --muted: #9a9384; --rule: #3a372e;
    --rule-2: #2a2821; --accent: #e0694c; --accent-ink: #15140f; --sup: #d9924d; --cus: #4fb3aa; --focus: #ece6d8;
    --focus-ink: #15140f; --hl: #3a3220; --up: #4fb3aa; --down: #e0694c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15140f; --surface: #1c1b16; --ink: #ece6d8; --ink-2: #cfc8b8; --muted: #9a9384; --rule: #3a372e;
  --rule-2: #2a2821; --accent: #e0694c; --accent-ink: #15140f; --sup: #d9924d; --cus: #4fb3aa; --focus: #ece6d8;
  --focus-ink: #15140f; --hl: #3a3220; --up: #4fb3aa; --down: #e0694c; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
main { max-width: 1120px; margin: 0 auto; padding: 0 24px 48px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 17px; }
.muted, .sub, .note, .hint { color: var(--muted); }
.note { font-size: 14px; margin: 4px 0 0; max-width: 72ch; }
.sub { font-size: 12.5px; line-height: 1.35; }
.num, .pct, .tk, .k-v, .acc, .per, .count, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eyebrow { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* Masthead and footer */
.mast { border-bottom: 3px double var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.mast-in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo { width: 24px; height: 24px; flex: none; }
.logo-s { fill: var(--sup); } .logo-c { fill: var(--cus); } .logo-f { fill: var(--focus); }
.wordmark { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 2px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.foot { border-top: 1px solid var(--ink); margin-top: 40px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 20px 24px 40px; display: grid; grid-template-columns: 2fr 1fr;
  gap: 32px; font-size: 13px; color: var(--muted); }
.foot-in p { margin: 0; } .foot-in b { color: var(--ink-2); font-weight: 600; }

/* Landing */
.hero.solo { grid-template-columns: minmax(0, 1fr); }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; padding: 44px 0 28px;
  border-bottom: 1px solid var(--rule); align-items: end; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lead { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 16px 0 0; max-width: 60ch; }
.search { position: relative; margin-top: 24px; max-width: 560px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  fill: none; stroke: var(--muted); stroke-width: 1.6; }
.search input { width: 100%; padding: 13px 44px 13px 40px; font: 16px var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--ink); border-radius: 0; }
.search input::placeholder { color: var(--muted); }
kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted);
  border: 1px solid var(--rule); padding: 1px 6px; }
.feature { display: block; text-decoration: none; border: 1px solid var(--ink); background: var(--surface);
  padding: 20px 20px 20px 26px; position: relative; }
.feature::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px;
  background: linear-gradient(var(--sup) 0 50%, var(--cus) 50% 100%); }
.feature .f-k { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.feature strong { display: block; font: 500 24px/1.15 var(--serif); margin: 6px 0 8px; }
.feature span { color: var(--ink-2); font-size: 14px; }
.feature .go { display: block; margin-top: 14px; font-weight: 600; color: var(--ink); }
.feature:hover { color: var(--ink); background: var(--hl); }

/* Ledger strip (summary figures) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule); margin: 20px 0 8px; }
.kpi { padding: 12px 16px 12px 0; }
.kpi + .kpi { border-left: 1px solid var(--rule); padding-left: 16px; }
.k-l { font-size: 12px; color: var(--muted); }
.k-v { font-size: 24px; font-weight: 500; line-height: 1.25; margin-top: 2px; }
.kpi.cus .k-v { color: var(--cus); } .kpi.sup .k-v { color: var(--sup); }
.k-s { font-size: 12px; color: var(--muted); }

/* Company header */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 22px; display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }
.co-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 10px 0 2px; flex-wrap: wrap; }
.meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.tk { font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.tk.big { background: var(--ink); color: var(--paper); padding: 1px 7px; font-size: 13px; }
.ghost { font: 500 13px var(--sans); color: var(--ink); background: none; border: 1px solid var(--ink); padding: 6px 12px;
  text-decoration: none; cursor: pointer; border-radius: 0; }
.ghost:hover, .ghost[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.badge { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--sup);
  border: 1px solid currentColor; padding: 0 5px; white-space: nowrap; }
.badge.quiet { color: var(--muted); }
.lead + .kpis { margin-top: 24px; }

/* Flow diagram */
.flow-fig { margin: 18px 0 8px; border-top: 1px solid var(--rule); padding-top: 14px; }
.flow-scroll { overflow-x: auto; }
.flow { width: 100%; min-width: 680px; height: auto; display: block; }
.band { opacity: .42; transition: opacity .15s; }
.band.sup { fill: var(--sup); } .band.cus { fill: var(--cus); }
.band.unsized { opacity: .9; } .band.rest { opacity: .18; }
.flow a:hover .band, .flow a:focus .band { opacity: .85; }
.flow a:hover .fl-name { fill: var(--accent); }
.fl-name { font: 600 13px var(--mono); fill: var(--ink); }
.fl-fig { font: 400 11.5px var(--mono); fill: var(--muted); }
.fl-none { font: italic 15px var(--serif); fill: var(--muted); }
.fl-head { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); }
.fl-core { fill: var(--focus); }
.fl-core-t { font: 600 14px var(--mono); fill: var(--focus-ink); writing-mode: vertical-rl; }
.flow-fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; max-width: 80ch; }

/* Sections and tables */
.block { margin-top: 36px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 8px;
  border-bottom: 1px solid var(--ink); flex-wrap: wrap; }
.count { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font: 500 11.5px var(--sans); color: var(--muted); text-align: left; padding: 10px 10px 8px; border-bottom: 1px solid var(--rule);
  white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
.num { text-align: right; white-space: nowrap; }
table.links tbody tr:not(.cite) { cursor: pointer; }
table.links tbody tr:not(.cite):hover td { background: var(--hl); }
tr.below_threshold td { color: var(--muted); }
tr.below_threshold .tk { font-weight: 500; }
.pct { font-weight: 500; }
.meter { display: block; height: 3px; background: var(--rule-2); margin: 6px 0 0 auto; width: 72px; }
.meter i { display: block; height: 100%; background: var(--cus); }
#suppliers .meter i { background: var(--sup); }
.meter.wide { width: auto; flex: 1; margin: 0 12px; }
.per { white-space: nowrap; font-size: 13px; }
.per .span { color: var(--muted); }
.trend { display: flex; align-items: center; gap: 8px; }
.spark rect { fill: var(--rule); } .spark rect.last { fill: var(--ink-2); }
.delta { font: 500 12px var(--mono); } .delta.up { color: var(--up); } .delta.down { color: var(--down); } .delta.flat { color: var(--muted); }
.status { font-size: 12.5px; }
.status.ok::before { content: "● "; color: var(--cus); }
.status.lapsed::before { content: "○ "; }
.src { white-space: nowrap; }
.filing { font: 500 12.5px var(--mono); text-decoration: none; border-bottom: 1px solid var(--rule); }
.filing span { color: var(--muted); }
.qbtn { font: 500 12px var(--sans); background: none; border: none; color: var(--accent); cursor: pointer; padding: 0 0 0 10px; }
.qbtn .n { font-family: var(--mono); color: var(--muted); margin-left: 4px; }
.qbtn[aria-expanded="true"] { color: var(--ink); }

/* Citations: the quote is the evidence, so it reads like one */
tr.cite td { padding: 0; border-bottom: none; }
.js tr.cite:not(.open) { display: none; }
tr.cite.open td { border-bottom: 1px solid var(--rule); }
.cite-body { padding: 6px 0 18px; display: grid; gap: 14px; }
figure.q { margin: 0; padding-left: 18px; border-left: 3px solid var(--accent); max-width: 88ch; }
figure.q blockquote { margin: 0; font: italic 400 17px/1.5 var(--serif); color: var(--ink); }
figure.q blockquote::before { content: "“"; } figure.q blockquote::after { content: "”"; }
figure.q figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
figure.q figcaption a { color: var(--ink); font-weight: 500; }
.acc { font-size: 12px; }
@media print { .js tr.cite:not(.open) { display: table-row; } .mast { position: static; } .qbtn, .expand { display: none; } }

/* Extras: unnamed customers, competitors */
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 36px; }
.panel h2 { font-size: 19px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.bars { list-style: none; padding: 0; margin: 10px 0 0; }
.bars li { display: flex; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rule-2); font-size: 14px; }
.bars .lbl { min-width: 9em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.chip { font-family: var(--mono); text-decoration: none; border-bottom: 1px solid var(--rule); }

/* Theme map graph */
.graph-panel { margin-top: 24px; border-top: 1px solid var(--ink); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; display: inline-block; }
.sw.sup { background: var(--sup); } .sw.cus { background: var(--cus); } .sw.foc, .sw.thm { background: var(--focus); }
.sw.oth { background: var(--muted); }
.ln { width: 18px; border-top: 2px solid var(--muted); display: inline-block; } .ln.dash { border-top-style: dashed; }
.graph-wrap { position: relative; border: 1px solid var(--rule); background: var(--surface); }
.graph { height: 560px; } .graph.tall { height: 680px; }
.g-ctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.g-ctl button { width: 30px; height: 30px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink);
  font: 16px var(--mono); cursor: pointer; }
.hint { font-size: 12.5px; margin: 8px 0 0; }
.pad { padding: 12px; }
table.plain td .tk { margin-right: 4px; }

/* Index list: a dense ledger, three columns on wide screens */
.list { list-style: none; padding: 0; margin: 0; columns: 3 300px; column-gap: 32px; column-rule: 1px solid var(--rule-2); }
.list li { break-inside: avoid; }
.list li[hidden] { display: none; }
.list a { display: grid; grid-template-columns: 4.6em 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0;
  border-bottom: 1px solid var(--rule-2); text-decoration: none; }
.list a:hover { background: var(--hl); color: var(--ink); }
.list .nm { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deg { display: inline-flex; gap: 6px; font: 12px var(--mono); }
.deg .c { color: var(--cus); } .deg .s { color: var(--sup); }
.deg .c::before { content: "▸"; margin-right: 2px; } .deg .s::before { content: "◂"; margin-right: 2px; }
.deg.inline { margin-left: 6px; }
.empty { color: var(--muted); padding: 16px 0; }
.pv { font: italic 12px var(--serif); color: var(--muted); font-weight: 400; }
.more-h { margin-top: 28px; font-size: 17px; }
.list .nl { display: grid; grid-template-columns: 4.6em 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule-2);
  color: var(--muted); }
.method .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 14px; }
.method p { font-family: var(--serif); font-size: 16px; color: var(--ink-2); margin: 6px 0 0; }

/* Alerts waitlist */
.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start;
  border-top: 1px solid var(--ink); padding-top: 16px; }
.wl-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.wl-form input[type=email] { padding: 10px 12px; font: 15px var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--ink); border-radius: 0; min-width: 0; }
.ghost.solid { background: var(--ink); color: var(--paper); }
.ghost.solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wl-msg, .wl-fine { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
.wl-msg:empty { display: none; } .wl-msg.ok { color: var(--cus); } .wl-msg.err { color: var(--down); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Phones */
@media (max-width: 760px) {
  main, .mast-in, .foot-in { padding-left: 16px; padding-right: 16px; }
  .mast-in { gap: 12px; } .nav { gap: 14px; font-size: 13px; } .wordmark { font-size: 18px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .foot-in, .method .cols, .waitlist { grid-template-columns: 1fr; gap: 14px; }
  .kpi + .kpi { border-left: none; padding-left: 0; }
  .kpi { border-bottom: 1px solid var(--rule-2); }
  table.links, table.links tbody, table.links tr, table.links td { display: block; width: 100%; }
  table.links thead { display: none; }
  table.links tbody tr:not(.cite) { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid;
    grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .js table.links tbody tr.cite:not(.open) { display: none; }
  table.links tbody tr:not(.cite) td { border: none; padding: 0; }
  table.links td[data-l="Company"] { grid-column: 1 / -1; }
  table.links td[data-l]:not([data-l="Company"])::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); }
  table.links .num { text-align: left; } .meter { margin-left: 0; }
  table.links td.src { grid-column: 1 / -1; }
  figure.q blockquote { font-size: 16px; }
  .graph, .graph.tall { height: 440px; }
}
@media (max-width: 420px) { .nav a:nth-child(2) { display: none; } }
