@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url(/dialogue/fonts/fraunces-latin-400-normal.woff2) format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url(/dialogue/fonts/fraunces-latin-600-normal.woff2) format('woff2');}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400;font-display:swap;src:url(/dialogue/fonts/fraunces-latin-400-italic.woff2) format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/dialogue/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/dialogue/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2');}

:root{ --ink:#000; --muted:#777; --line:#e4e4e4; --bg:#fff; --soft:#555; --faint:#c4c4c4;
       --serif:'Fraunces','Times New Roman',serif; --mono:'JetBrains Mono',ui-monospace,monospace; }
*{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html,body{ background:var(--bg); }
body{ margin:0; color:var(--ink); font-family:var(--serif); -webkit-font-smoothing:antialiased; }
button,input,textarea{ font:inherit; color:inherit; }
.wrap{ max-width:840px; margin:0 auto; padding:0 22px 20px; }

/* identity */
header.brand{ padding:40px 0 4px; text-align:center; }
.logo{ font-weight:600; font-size:32px; letter-spacing:-0.02em; }
.logo .pi{ font-style:italic; font-weight:400; font-size:1.12em; margin:0 0.06em; }
.tagline{ font-family:var(--mono); font-size:12px; letter-spacing:0.02em; margin-top:10px; }
.tagline b{ font-weight:500; }
.rule{ width:60px; height:1px; background:#000; margin:14px auto 0; }
.notice{ text-align:center; font-family:var(--mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase;
         color:var(--muted); margin:14px 0 0; }
.lbl,.who{ font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; }
.mono{ font-family:var(--mono); font-size:.86em; }

/* app bar */
.bar{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 18px; margin:22px 0 0;
      font-family:var(--mono); font-size:11px; color:var(--muted); border-bottom:1px solid var(--line); padding-bottom:10px; }
.bar .acts{ display:flex; flex-wrap:wrap; gap:4px 16px; }
.linkbtn{ border:0; background:none; padding:0; cursor:pointer; font-family:var(--mono); font-size:11px; color:#000;
          text-decoration:underline; text-underline-offset:3px; }
.linkbtn.muted{ color:var(--muted); }
.lang button{ border:1px solid transparent; background:#fff; cursor:pointer; padding:2px 7px; font-family:var(--mono);
              font-size:10.5px; color:var(--muted); }
.lang button[aria-pressed="true"]{ border-color:#000; color:#000; }

/* login */
.card{ max-width:420px; margin:44px auto 0; border-top:1px solid #000; padding-top:18px; }
.card h2{ font-size:22px; font-weight:600; margin:0 0 6px; }
.card p{ font-size:15px; line-height:1.55; color:var(--soft); margin:0 0 16px; }
.field{ display:block; margin:0 0 12px; }
.field span{ display:block; font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:5px; }
.field input{ width:100%; border:1px solid #000; padding:10px 12px; font-size:16px; background:#fff; }
.primary{ border:0; background:#000; color:#fff; padding:11px 18px; cursor:pointer; font-family:var(--mono); font-size:11.5px;
          letter-spacing:.08em; text-transform:uppercase; }
.primary:disabled{ opacity:.35; cursor:not-allowed; }
.err{ font-family:var(--mono); font-size:11px; color:#000; margin-top:10px; min-height:14px; }
.card.terms{ max-width:640px; }
.card.terms ol{ margin:0 0 20px; padding-left:22px; }
.card.terms li{ font-size:15.5px; line-height:1.6; margin:0 0 10px; }
.card.terms li b{ font-weight:600; }

/* thread */
.thread{ margin-top:8px; }
.empty{ margin:40px 0 10px; }
.empty h2{ font-size:24px; font-weight:600; letter-spacing:-0.01em; margin:0 0 8px; }
.empty p{ font-size:16.5px; line-height:1.6; color:var(--soft); margin:0 0 10px; max-width:640px; }
.turn{ padding:18px 0 8px; }
.turn.you{ border-top:1px solid #000; border-bottom:1px solid var(--line); margin-top:26px; }
.who{ color:var(--muted); margin-bottom:8px; }
.who b{ color:#000; font-weight:500; }
.you .q{ font-size:21px; line-height:1.4; white-space:pre-wrap; }

/* live research trail */
.live{ border-left:1px solid #000; padding:2px 0 2px 14px; margin:4px 0 18px; }
.live .line{ font-family:var(--mono); font-size:11.5px; line-height:1.75; color:var(--soft); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.live .line:last-child{ color:#000; }
.live .count{ font-family:var(--mono); font-size:10.5px; color:var(--muted); margin-top:6px; letter-spacing:.04em; }
.pulse{ display:inline-block; width:7px; height:7px; background:#000; border-radius:50%; margin-right:9px; animation:pulse 1.1s ease-in-out infinite; vertical-align:1px; }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.15; } }
.trailsum{ font-family:var(--mono); font-size:11px; color:var(--muted); margin:-4px 0 16px; line-height:1.6; }
.trailsum b{ color:#000; font-weight:500; }

/* answer */
.answer p{ font-size:17px; line-height:1.66; margin:0 0 14px; hyphens:auto; }
.answer p.lede{ font-size:19.5px; line-height:1.55; }
.answer p.scope{ font-size:14.5px; line-height:1.6; color:var(--soft); border-left:1px solid var(--faint); padding-left:14px; }
table.data th.n{ text-align:right; }
.answer b{ font-weight:600; }
.answer h3{ font-size:20.5px; font-weight:600; letter-spacing:-0.005em; margin:34px 0 10px; line-height:1.3; }
.answer h4{ font-size:17px; font-weight:600; margin:24px 0 8px; }
.answer ul,.answer ol{ margin:0 0 16px; padding-left:22px; }
.answer li{ font-size:16.5px; line-height:1.6; margin:0 0 6px; }
.answer blockquote{ margin:6px 0 14px; padding:2px 0 2px 16px; border-left:1px solid #000; font-style:italic; }
.answer hr{ border:0; border-top:1px solid var(--line); margin:22px 0; }
.untraced{ text-decoration:underline dotted #000; text-underline-offset:3px; cursor:help; }
figure.fig{ margin:22px 0 26px; padding:14px 0 10px; border-top:1px solid #000; border-bottom:1px solid var(--line); }
figure.fig figcaption{ font-size:16px; line-height:1.4; margin-bottom:12px; }
.flbl{ font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; margin-right:10px; }
.fsrc,.fnote{ font-family:var(--mono); font-size:10.5px; color:var(--muted); line-height:1.6; margin-top:8px; }
.fkey{ font-family:var(--mono); font-size:10.5px; color:var(--soft); line-height:1.6; margin-top:6px; }
.fkey b{ color:var(--ink); font-weight:500; }
.figerr{ font-family:var(--mono); font-size:11px; color:var(--muted); border:1px dashed var(--faint); padding:8px 10px; margin:12px 0; }
svg.chart{ display:block; height:auto; overflow:visible; }
svg .grid{ stroke:#e6e6e6; stroke-width:1; }
svg .grid.base{ stroke:#000; }
svg .zero{ stroke:#000; stroke-width:1; }
svg .ax{ font-family:var(--mono); font-size:10px; fill:#777; }
svg .val{ font-family:var(--mono); font-size:11px; fill:#000; }
svg .val.small{ font-size:9.5px; }
svg .val.strong{ font-weight:500; }
svg .val.inv{ fill:#fff; }
svg .note{ font-family:var(--mono); font-size:9.5px; fill:#777; }
svg .cap{ font-family:var(--mono); font-size:10px; font-weight:500; letter-spacing:.1em; fill:#000; }
svg .lab{ font-family:var(--serif); font-size:13.5px; fill:#000; }
svg .lab.small{ font-size:12.5px; }
svg .leader{ fill:none; stroke:#9a9a9a; stroke-width:.8; }

.ev{ margin:16px 0 20px; padding:10px 0 4px 16px; border-left:2px solid #000; }
.ev.missing{ border-left-color:var(--faint); font-family:var(--mono); font-size:11px; color:var(--muted); }
.evh{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; margin-bottom:4px; }
.evh .dots{ font-family:var(--mono); font-size:14px; letter-spacing:.04em; }
.evh .evl{ font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; }
.evh .evs{ font-family:var(--mono); font-size:10.5px; color:var(--muted); }
.evr{ font-size:15.5px; line-height:1.5; }
.ev details{ margin-top:6px; }
.ev summary{ cursor:pointer; font-family:var(--mono); font-size:10.5px; color:var(--muted); list-style:none; }
.ev summary::-webkit-details-marker{ display:none; }
.ev summary::before{ content:"+ "; }
.ev details[open] summary::before{ content:"− "; }
.ev dl{ margin:8px 0 4px; display:grid; grid-template-columns:max-content 1fr; gap:4px 12px; font-family:var(--mono); font-size:10.5px; }
.ev dt{ color:var(--muted); }
.ev dd{ margin:0; white-space:pre-wrap; word-break:break-word; }

.tscroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; margin:14px 0 20px; }
table.data{ width:100%; border-collapse:collapse; font-size:15px; }
table.data th{ font-family:var(--mono); font-size:9.5px; font-weight:500; letter-spacing:.08em; text-transform:uppercase;
               text-align:left; vertical-align:bottom; padding:0 8px 8px; border-bottom:1px solid #000; line-height:1.35; }
table.data td{ padding:8px; border-bottom:1px solid var(--line); vertical-align:baseline; }
table.data .n{ text-align:right; font-family:var(--mono); font-size:12.5px; white-space:nowrap; font-variant-numeric:tabular-nums; }

.sources{ margin-top:30px; border-top:1px solid #000; padding-top:12px; }
.sources ol{ margin:10px 0 0; padding-left:20px; }
.sources li{ font-size:14.5px; line-height:1.55; margin:0 0 6px; }
.sources li b{ font-weight:600; }
.sources .tabs{ font-family:var(--mono); font-size:10.5px; color:var(--muted); }
details.data{ margin-top:16px; border-top:1px solid var(--line); padding-top:10px; }
details.data > summary{ cursor:pointer; list-style:none; font-family:var(--mono); font-size:11px; color:#000; }
details.data > summary::-webkit-details-marker{ display:none; }
details.data > summary::before{ content:"+ "; }
details.data[open] > summary::before{ content:"− "; }
.dnote{ font-family:var(--mono); font-size:10.5px; color:var(--muted); line-height:1.6; margin:12px 0 6px; }
.qrow{ border-top:1px solid var(--line); padding:10px 0 4px; }
.qrow .qh{ display:flex; justify-content:space-between; gap:12px; font-family:var(--mono); font-size:11px; }
.qrow .qh b{ font-weight:500; }
.qrow .qh span,.qrow .qt{ color:var(--muted); white-space:nowrap; font-family:var(--mono); font-size:10.5px; }
.qrow .qt{ white-space:normal; margin-top:2px; }
.qrow details summary{ cursor:pointer; font-family:var(--mono); font-size:10.5px; color:var(--muted); margin-top:4px; }
.qrow pre{ font-family:var(--mono); font-size:10.5px; line-height:1.5; background:#f7f7f7; padding:10px 12px; overflow-x:auto;
           white-space:pre; margin:6px 0 4px; }
ul.calls{ margin:4px 0 0; padding-left:16px; font-family:var(--mono); font-size:10.5px; color:var(--soft); }

/* per-answer actions */
.acts2{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin:18px 0 6px; font-family:var(--mono); font-size:11px; color:var(--muted); }
.fb button{ border:1px solid var(--line); background:#fff; padding:5px 10px; cursor:pointer; font-family:var(--mono); font-size:11px; }
.fb button[aria-pressed="true"]{ border-color:#000; color:#000; }
.fbnote{ width:100%; display:flex; gap:8px; }
.fbnote input{ flex:1; border:1px solid var(--line); padding:6px 9px; font-size:14px; }

/* composer */
.composer{ position:sticky; bottom:0; background:linear-gradient(rgba(255,255,255,0), #fff 18px); padding:22px 0 16px; margin-top:20px; }
.composer .box{ display:flex; align-items:stretch; border:1px solid #000; background:#fff; }
.composer textarea{ flex:1; border:0; resize:none; padding:12px 16px; font-family:var(--serif); font-size:17px; line-height:1.4;
                    background:#fff; color:#000; min-height:52px; max-height:220px; outline:none; }
.composer button{ border:0; background:#000; color:#fff; padding:0 18px; font-family:var(--mono); font-size:11px;
                  letter-spacing:.08em; text-transform:uppercase; cursor:pointer; }
.composer button:disabled{ opacity:.35; cursor:not-allowed; }
.composer .cnote{ font-family:var(--mono); font-size:10.5px; color:var(--muted); margin-top:7px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }

/* history panel */
.hist{ border:1px solid #000; background:#fff; padding:10px 14px; margin-top:10px; max-height:300px; overflow:auto; }
.hist button{ display:block; width:100%; text-align:left; border:0; background:none; padding:6px 0; cursor:pointer; font-size:15px;
              border-bottom:1px solid var(--line); }
.hist button:hover{ text-decoration:underline; text-underline-offset:3px; }
.hist .d{ font-family:var(--mono); font-size:10px; color:var(--muted); }

body.export .wrap{ padding-bottom:60px; }

@media (max-width:640px){
  .wrap{ padding:0 16px 16px; }
  .you .q{ font-size:18.5px; }
  .answer p{ font-size:16px; }
  .answer p.lede{ font-size:17.5px; }
  .answer h3{ font-size:18.5px; }
  .figscroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .figscroll svg{ min-width:620px; }
  table.data{ min-width:560px; }
}
