/* Audience-first round report. Static, system fonts, no external requests.
   Same visual language as the BusinessRnD niches report: paper + ink, forest hero, neon accent. */

:root {
  color-scheme: light;
  --paper: #F9F9F9;
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #333333;
  --muted: #5A5A5A;
  --line: #E1E1E1;
  --line-2: #C9C9C9;
  --forest: #1B2B1D;
  --forest-2: #223624;
  --pale: #F1F8B2;
  --neon: #E6FF55;
  --blue: #2a78d6;
  --blue-soft: #EEF5FD;
  --good: #2F5D00;
  --good-bg: #E6F4D2;
  --warn: #7A4B00;
  --warn-bg: #FCEBC5;
  --bad: #A8102A;
  --bad-bg: #FBE0E5;
  --h1: #F3F3F1;
  --h2: #DDEBC9;
  --h3: #B9D98F;
  --h4: #7FB848;
  --h5: #3F7F12;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(14px, 2.6vw, 36px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); scroll-padding-top: 56px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
::selection { background: var(--neon); color: #000; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(249,249,249,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; gap: 6px; align-items: center; height: 46px; overflow-x: auto; scrollbar-width: none; }
.bar .wrap::-webkit-scrollbar { display: none; }
.bar .brand { font-weight: 700; margin-right: 8px; white-space: nowrap; }
.bar a.tab { white-space: nowrap; text-decoration: none; padding: 6px 11px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line); background: var(--white); }
.bar a.tab:hover { border-color: var(--ink); }

/* hero */
.hero { background: var(--forest); color: #fff; padding: 24px 0 22px; }
.kicker { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--neon); }
.hero h1 { font-size: clamp(23px, 3.5vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 10px 0 8px; max-width: 1000px; }
.hero h1 mark { background: var(--neon); color: #000; padding: 0 .15em; border-radius: 4px; }
.hero .sub { color: #D9E5D6; max-width: 900px; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.stat { background: var(--forest-2); border: 1px solid #2E4630; border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-size: 24px; line-height: 1.1; color: var(--neon); }
.stat span { font-size: 12px; color: #C8D6C5; }

.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.pk { display: flex; flex-direction: column; gap: 6px; background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 14px; text-decoration: none; border: 2px solid transparent; }
.pk:hover { border-color: var(--neon); }
.pk .top { display: flex; gap: 8px; align-items: center; }
.code { flex: 0 0 auto; min-width: 34px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--ink); color: var(--neon); display: inline-grid; place-items: center; font: 700 13px var(--mono); }
.pk h3 { font-size: 15.5px; line-height: 1.2; }
.pk .big { font-size: 22px; font-weight: 700; line-height: 1; }
.pk .big small { font-size: 12px; font-weight: 400; color: var(--muted); display: block; margin-top: 3px; }
.pk p { font-size: 13px; color: var(--ink-2); }
.flags { font-size: 15px; letter-spacing: 1px; }

/* sections */
section.block { padding: 26px 0 6px; }
.h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; }
.h2 .n { font: 700 12px/1 var(--mono); color: var(--muted); }
.h2 h2 { font-size: clamp(19px, 2.2vw, 26px); letter-spacing: -.01em; }
.h2 .hint { font-size: 13px; color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* method strip */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method .was, .method .now { border-radius: var(--radius); padding: 14px; }
.method .was { background: var(--bad-bg); }
.method .now { background: var(--good-bg); }
.method h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.method li { font-size: 13.5px; margin: 3px 0; padding-left: 16px; position: relative; }
.method .was li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }
.method .now li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.srcmix { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); }
.srcmix i { display: grid; place-items: center; font: 600 11px var(--mono); color: #fff; font-style: normal; white-space: nowrap; overflow: hidden; }
.srclegend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; margin-top: 6px; color: var(--ink-2); }
.srclegend b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }

/* gates */
.gates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gate { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.gate .ic { font-size: 20px; }
.gate b { display: block; font-size: 14px; margin: 4px 0 2px; }
.gate span { font-size: 12px; color: var(--muted); display: block; }
.gate.key { border: 2px solid var(--ink); }
.gate .w { font: 700 10.5px var(--mono); color: var(--good); }

/* map */
.map { display: grid; grid-template-columns: 26px repeat(5, minmax(0, 1fr)); gap: 4px; }
.map .cell { min-height: 64px; border-radius: 8px; background: #F2F2EF; padding: 4px; display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-start; }
.map .cell.hot { background: var(--pale); }
.map .cell.warm { background: #F7F9E2; }
.map .ylab { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; color: var(--muted); text-align: center; display: grid; place-items: center; }
.map .xlab { font-size: 11px; color: var(--muted); text-align: center; }
.map .axis { grid-column: 2 / -1; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-top: 2px; }
.dot { display: inline-flex; align-items: center; gap: 3px; font: 700 11.5px var(--mono); padding: 3px 6px; border-radius: 6px; text-decoration: none; color: #fff; background: var(--ink); }
.dot.pick { background: var(--good); }
.dot.maybe { background: #A86A00; }
.dot.drop { background: #9A9A9A; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; margin-top: 10px; }
.legend .dot { pointer-events: none; }

/* scoreboard */
.tscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.sb { border-collapse: collapse; width: 100%; font-size: 13px; }
table.sb th, table.sb td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.sb th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #FAFAF8; white-space: nowrap; }
table.sb th.key { color: var(--ink); }
table.sb td.nm { min-width: 210px; position: sticky; left: 0; background: var(--white); z-index: 1; }
table.sb th:first-child { position: sticky; left: 0; z-index: 2; }
table.sb td.nm a { text-decoration: none; font-weight: 600; }
table.sb td.nm small { display: block; color: var(--muted); font-size: 11.5px; }
table.sb td.s { text-align: center; font: 700 12.5px var(--mono); width: 54px; }
.s1 { background: var(--bad-bg); color: var(--bad); }
.s2 { background: #FCEFD9; color: var(--warn); }
.s3 { background: #F3F3EE; color: var(--ink-2); }
.s4 { background: var(--h2); color: var(--good); }
.s5 { background: var(--h4); color: #fff; }
.tot { display: flex; align-items: center; gap: 6px; min-width: 120px; }
.tot i { display: block; height: 10px; border-radius: 5px; background: var(--ink); }
.tot b { font: 700 12.5px var(--mono); }
tr.drop td { opacity: .55; }

/* filters + cards */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filters button { border: 1px solid var(--line-2); background: var(--white); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 12px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-wrap: anywhere; scroll-margin-top: 60px; }
.card.pick-c { border: 2px solid var(--good); }
.card.drop-c { opacity: .8; }
.card-head { display: flex; gap: 10px; align-items: flex-start; }
.card-head h3 { font-size: 16.5px; line-height: 1.2; }
.card-head .who { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.verdict { font-size: 13.5px; font-weight: 600; padding: 7px 10px; border-radius: 10px; }
.verdict.pick { background: var(--good-bg); color: var(--good); }
.verdict.maybe { background: var(--warn-bg); color: var(--warn); }
.verdict.drop { background: #EFEFEC; color: var(--ink-2); }
.badges { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #F0F0EE; color: var(--ink-2); white-space: nowrap; line-height: 1.25; }
.badge.go { background: var(--good-bg); color: var(--good); }
.badge.mid { background: var(--warn-bg); color: var(--warn); }
.badge.no { background: var(--bad-bg); color: var(--bad); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv > div { background: #FAFAF8; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.kv .k, .row .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; display: block; margin-bottom: 2px; }
.kv .v { font-size: 20px; font-weight: 700; line-height: 1.1; }
.kv .v.sm { font-size: 14px; }
.kv .d { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.kv a, .row a.src { font-size: 11.5px; color: var(--muted); }
.row { font-size: 13px; }
.chan { display: flex; flex-direction: column; gap: 5px; }
.chan li { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; }
.chan li .lg { flex: 0 0 auto; }
.chan li em { font-style: normal; color: var(--muted); }
.trustbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 4px 0 4px; }
.trustbar i { height: 8px; border-radius: 3px; background: #E9E9E6; }
.trustbar i.on.t-public { background: var(--h5); }
.trustbar i.on.t-business { background: var(--h4); }
.trustbar i.on.t-personal { background: #E0A100; }
.trustbar i.on.t-regulated { background: var(--bad); }
.trustlbl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; font-size: 10px; color: var(--muted); }
.risks li { font-size: 12.5px; padding-left: 14px; position: relative; margin: 2px 0; }
.risks li::before { content: "!"; position: absolute; left: 2px; color: var(--bad); font-weight: 700; }
.scores { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.sc { text-align: center; font-size: 10.5px; color: var(--muted); }
.sc .dots { display: flex; gap: 2px; justify-content: center; margin-bottom: 2px; }
.sc .dots i { width: 6px; height: 6px; border-radius: 50%; background: #DDD; }
.sc .dots i.on { background: var(--ink); }
details.srcs summary { font-size: 12px; color: var(--muted); cursor: pointer; }
details.srcs ul { margin-top: 6px; }
details.srcs li { font-size: 12px; margin: 3px 0; }

/* channels */
.law { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.law h3 { font-size: 14px; margin-bottom: 8px; }
.cty { display: flex; flex-wrap: wrap; gap: 5px; }
.cty a, .cty span { font-size: 12px; padding: 4px 8px; border-radius: 7px; text-decoration: none; font-weight: 600; }
.cty .yes { background: var(--good-bg); color: var(--good); }
.cty .careful { background: var(--warn-bg); color: var(--warn); }
.cty .no { background: var(--bad-bg); color: var(--bad); }
.bars { display: flex; flex-direction: column; gap: 6px; }
.brow { display: grid; grid-template-columns: minmax(150px, 38%) 1fr 78px; gap: 10px; align-items: center; font-size: 13px; text-decoration: none; }
.brow .tr { height: 12px; background: #F0F0EC; border-radius: 6px; position: relative; overflow: hidden; }
.brow .tr i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); border-radius: 6px; }
.brow b { font: 700 12.5px var(--mono); text-align: right; }
.brow small { display: block; color: var(--muted); font-size: 11px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts li { font-size: 13px; margin: 5px 0; padding-left: 14px; position: relative; }
.facts li::before { content: "•"; position: absolute; left: 2px; color: var(--muted); }
.rails { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rail { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.rail b { display: block; font-size: 14px; margin: 4px 0 2px; }

/* dropped + next + ledger */
.dropped { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.dropped li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.dropped li b { display: block; margin: 4px 0 2px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.steps3 > div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; }
.steps3 i { font-style: normal; font: 700 12px var(--mono); background: var(--ink); color: var(--neon); border-radius: 6px; padding: 2px 7px; }
.steps3 b { display: block; margin: 6px 0 3px; font-size: 14.5px; }
.ask-box { background: var(--pale); border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; font-size: 14px; }
.ask-box b { font-size: 16px; }
table.t { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.t th, table.t td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
table.t th { background: #FAFAF8; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ok { color: var(--good); font-weight: 600; }
.bad { color: var(--bad); font-weight: 600; }
.ledger-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.ledger-tools input { flex: 1; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; }
.foot { padding: 30px 0 50px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .gates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .law, .grid2, .method { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr 1fr; }
  .pk p { display: none; }
  .steps3 { grid-template-columns: 1fr; }
  .map { grid-template-columns: 18px repeat(5, minmax(0, 1fr)); gap: 3px; }
  .map .cell { min-height: 54px; padding: 3px; }
  .dot { font-size: 10.5px; padding: 2px 4px; }
  .brow { grid-template-columns: 1fr 64px 70px; }
}
@media print { .bar, .filters, .ledger-tools { display: none; } }

/* ---- own-distribution page ---- */
.h3s { font-size: 14px; margin-bottom: 8px; }
.flow4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; counter-reset: f; }
.flow4 li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; font-size: 13px; }
.flow4 li i { font-style: normal; font: 700 12px var(--mono); background: var(--ink); color: var(--neon); border-radius: 6px; padding: 2px 7px; }
.flow4 li > b { display: block; font-size: 14.5px; margin: 6px 0 3px; }
.flow4 li span { color: var(--ink-2); }
.flow4 li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); background: var(--paper); line-height: 1; }
.loop3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); gap: 6px; }
.loop3 > div { background: #FAFAF8; border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; font-size: 12.5px; }
.loop3 .k { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.loop3 b { font-size: 15px; }
.pchart2 { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 6px; }
.prow { position: relative; display: grid; grid-template-columns: minmax(190px, 36%) 1fr; gap: 12px; align-items: center; text-decoration: none; padding: 5px 4px; border-radius: 8px; }
.prow:hover { background: #F4F7FB; }
.prow .pl { font-size: 13px; line-height: 1.25; }
.prow .pl b { display: inline-block; font: 700 10.5px var(--mono); color: var(--blue); background: var(--blue-soft); border-radius: 4px; padding: 1px 4px; margin-right: 3px; }
.prow .pl small { display: block; color: var(--muted); font-size: 11.5px; }
.prow .pt { position: relative; height: 14px; }
.prow .pt::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line); }
.prow .pt i { position: absolute; top: 2px; height: 10px; background: var(--blue); border-radius: 5px; z-index: 1; }
.prow.axis .pt { height: 16px; }
.prow.axis .pt::before { display: none; }
.prow.axis u { position: absolute; transform: translateX(-50%); text-decoration: none; font-size: 11px; color: var(--muted); }
.mchart { width: 100%; height: auto; }
.mchart .grid { stroke: var(--line); }
.mchart .tick { font: 11px var(--font); fill: var(--muted); }
.mlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; margin-bottom: 6px; }
.mlegend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
@media (max-width: 560px) {
  .loop3 { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 1fr; gap: 3px; }
  .flow4 li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -11px; transform: translateX(50%); }
}
.pk { min-width: 0; }
.picks.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pk .badge { white-space: normal; }
@media (max-width: 560px) {
  .picks.three { grid-template-columns: 1fr; }
  .picks.three .pk p { display: block; }
}
