/* Public Reddit Signals pages (/reddit-signals, served by worker.js).
   Ported from the approved mock PublicReddit.dc.html (lines 14-155) under
   .pub, light theme only. The header and footer come from public-chrome.css.
   Changes from the mock: no hero eyebrow, the format base marker is placed by
   the page (inline left), the asks panel holds two lists (pain points and
   solution requests), and the forms use real buttons. */
body.rs-body { margin: 0; }
.pub { --bg:#f9f9f6; --fg:#1e201e; --card:#fffefb; --line:#e4e1d9; --line2:#cfcabe; --tint:#f0ede5; --soft:#f6f4ee; --pri:#2c4a3b; --pri-hover:#223a2e; --pri-soft:#eaefeb; --on-pri:#fffefb; --muted:#6e726b; --ink2:#4a463f; --glow:rgba(232,150,82,.13); --shadow:0 14px 45px -30px rgba(232,150,82,.4);
  --brk-bg:#e3efe6; --brk-fg:#2f5a40; --brk-line:#3e6b52; --bld-bg:#fbf0d9; --bld-fg:#8a5a10; --bld-line:#b37f1e; --qui-bg:#f6e6e3; --qui-fg:#9e3b2e; --qui-line:#6e726b; --bar-down:#b9b4a8;
  min-height: 100vh; display: flex; flex-direction: column; box-sizing: border-box; font-family: "Smore Public", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 300; color: var(--fg); line-height: 1.5; letter-spacing: -.005em;
  background: radial-gradient(ellipse 70% 520px at 0 0, var(--glow), transparent 75%), radial-gradient(ellipse 70% 520px at 100% 0, var(--glow), transparent 75%), var(--bg); }
.pub *, .pub *::before, .pub *::after { box-sizing: border-box; }
.shell a { color: var(--pri); }
.shell a:hover { color: var(--pri-hover); }
.pub a:focus-visible, .pub input:focus-visible, .pub button:focus-visible { outline: 2px solid var(--pri); outline-offset: 3px; border-radius: 4px; }
.pub h1, .pub h2, .pub h3, .pub p, .pub ul, .pub ol { margin: 0; padding: 0; }
.pub ul, .pub ol { list-style: none; }
.ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.shell { flex: 1 0 auto; width: min(calc(100% - 32px), 1040px); margin: 0 auto; padding-bottom: 80px; display: flex; flex-direction: column; gap: 56px; }
.hero { max-width: 760px; margin: 16px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 300; line-height: 1.03; letter-spacing: -.038em; text-wrap: balance; overflow-wrap: anywhere; }
.dek { max-width: 560px; color: var(--muted); font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.facts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--muted); font-size: 13px; }
.facts-row li { display: inline-flex; align-items: center; gap: 7px; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent; background: var(--pri); color: var(--on-pri) !important; font: inherit; font-size: 14px; font-weight: 400; letter-spacing: inherit; text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { background: var(--pri-hover); }
.btn.ghost { background: var(--card); border-color: var(--line2); color: var(--fg) !important; }
.btn.ghost:hover { background: var(--soft); }
.lock-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; font-weight: 400; text-decoration: none; }

.sec { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.sec-head > div { display: flex; flex-direction: column; gap: 6px; max-width: 660px; }
.sec h2 { font-size: 20px; font-weight: 400; letter-spacing: -.01em; }
.intro { color: var(--muted); font-size: 14px; line-height: 1.6; }
.card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.note { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 760px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 400; line-height: 1.4; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.breaking { background: var(--brk-bg); color: var(--brk-fg); }
.pill.building { background: var(--bld-bg); color: var(--bld-fg); }
.pill.quiet { background: var(--qui-bg); color: var(--qui-fg); }

.empty-breaking { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 22px; border: 1px dashed var(--line2); border-radius: 16px; background: var(--card); }
.empty-breaking > div { display: flex; flex-direction: column; gap: 6px; max-width: 700px; }
.empty-breaking .row1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.empty-breaking h1, .empty-breaking h2, .empty-breaking h3 { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.empty-breaking p { color: var(--muted); font-size: 13px; line-height: 1.55; }

.term-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.term { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 10px; padding: 22px; }
.term-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.term-top h3 { font-size: 26px; font-weight: 300; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.term-top h3 a { color: inherit; text-decoration: none; }
.term-top h3 a:hover { color: var(--pri); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.term-peak { color: var(--muted); font-size: 12px; line-height: 1.5; }
.spark { position: relative; width: 100%; }
.spark svg { width: 100%; height: 56px; display: block; }
.spark .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .line.breaking { stroke: var(--brk-line); } .spark .area.breaking { fill: var(--brk-line); fill-opacity: .12; }
.spark .line.building { stroke: var(--bld-line); } .spark .area.building { fill: var(--bld-line); fill-opacity: .12; }
.spark .line.quiet { stroke: var(--qui-line); } .spark .area.quiet { fill: var(--qui-line); fill-opacity: .08; }
.zones { position: absolute; inset: 0; display: flex; }
.zones span { flex: 1 1 0; min-width: 0; height: 100%; }
.tip { position: absolute; top: -8px; z-index: 2; pointer-events: none; white-space: nowrap; font-size: 12px; font-weight: 400; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.tip span { color: var(--muted); font-weight: 300; }
.term-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.term-cap b { font-weight: 400; color: var(--fg); }
.term-what { color: var(--muted); font-size: 13px; line-height: 1.55; }
.grid-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }

.fmt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.fmt { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.fmt h3 { font-size: 15px; font-weight: 400; }
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: flex; flex-direction: column; gap: 4px; }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.bar-top .lbl { min-width: 0; }
.bar-top .val { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-top .val span { color: var(--muted); font-weight: 300; font-size: 12px; }
.track { position: relative; height: 6px; border-radius: 999px; background: var(--tint); }
.fill { display: block; height: 100%; border-radius: 999px; }
.fill.up { background: var(--pri); }
.fill.down { background: var(--bar-down); }
.base { position: absolute; top: -3px; bottom: -3px; border-left: 1px dashed var(--muted); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; align-items: start; }
.panel { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.panel h2 { font-size: 20px; font-weight: 400; letter-spacing: -.01em; }
.panel-head { display: flex; flex-direction: column; gap: 6px; }
.pub .total { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; line-height: 1.6; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.total .big { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.total .lbl { font-size: 13px; line-height: 1.5; color: var(--ink2); }
.asks { display: flex; flex-direction: column; gap: 8px; }
.asks h3 { font-size: 15px; font-weight: 400; }
.ask-list { display: flex; flex-direction: column; }
.ask-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.ask-row:first-child { border-top: 0; padding-top: 0; }
.ask-row .rk { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ask-row .nm { font-size: 14px; font-weight: 400; line-height: 1.4; }
.ask-row .ppl { text-align: right; font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ask-row .ppl span { color: var(--muted); font-size: 12px; font-weight: 300; }
.ask-row .sub { grid-column: 2 / 4; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.ask-row .sub .track { flex: 1 1 auto; min-width: 48px; height: 4px; }
.ask-row .shr { flex: none; width: 124px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag-rise { vertical-align: 1px; margin-left: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--brk-bg); color: var(--brk-fg); font-size: 11px; font-weight: 400; }
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 400; font-size: 12px; color: var(--muted); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.tbl th.r, .tbl td.r { text-align: right; padding-left: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td { padding: 11px 0; border-bottom: 1px solid var(--tint); line-height: 1.45; vertical-align: top; }
.tbl td.r { font-weight: 400; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td a { text-decoration: none; }
.tbl td a:hover { text-decoration: underline; }

.vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 24px 32px; padding: 28px; align-items: center; }
.vs-copy { display: flex; flex-direction: column; gap: 12px; }
.vs-copy h2 { font-size: 26px; font-weight: 300; line-height: 1.2; letter-spacing: -.025em; }
.vs-copy p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.vs-copy .warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); color: var(--ink2); font-size: 13px; line-height: 1.55; }
.vs-copy .warn .ico { margin-top: 3px; }
.vs-form { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 20px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 400; color: var(--fg); }
.inp { width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 15px; font-weight: 300; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.vs-row { display: flex; gap: 8px; align-items: stretch; }
.vs-row .inp { flex: 1 1 auto; min-width: 0; }
.chip { display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); color: var(--ink2); font-size: 13px; font-weight: 400; white-space: nowrap; }
.cta-band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 32px; border-radius: 16px; background: var(--pri-soft); }
.cta-band .cta-copy { display: flex; flex-direction: column; gap: 8px; max-width: 480px; }
.cta-band h2 { font-size: 30px; font-weight: 300; line-height: 1.2; letter-spacing: -.025em; }
.cta-band p { color: var(--ink2); font-size: 15px; line-height: 1.65; }
.cta-act { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 0 1 420px; margin: 0; }
.cta-act label { font-size: 12px; font-weight: 400; }
.sub-field { display: flex; align-items: center; min-height: 48px; background: var(--card); border: 1px solid var(--line2); border-radius: 8px; padding: 0 0 0 14px; }
.sub-field span { color: var(--muted); font-size: 15px; }
.sub-field input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 400; color: var(--fg); padding: 0 14px 0 2px; }
.sub-field input:focus-visible { outline: none; }
.sub-field:focus-within { outline: 2px solid var(--pri); outline-offset: 2px; }
.cta-act .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-act .btns .btn { flex: 1 1 auto; }

@media (max-width: 720px) { .cta-band { padding: 24px; } .vs { padding: 20px; } .panel { padding: 20px; } }
@media (max-width: 420px) { .dek { font-size: 17px; } }
