/* What Buffett Said? page: calm shivi column + architecture flow, recorded-question tabs, gold bar chart.
   Every rule is scoped under body.pc-what-buffett-said. */
html[data-theme="light"] body.pc-what-buffett-said { --pc-accent:#8a6416; --bf-refuse:#b8430f; }
html:not([data-theme="light"]) body.pc-what-buffett-said { --pc-accent:#d9b56a; --bf-refuse:#e8907a; }
body.pc-what-buffett-said b { font-weight:600; }
body.pc-what-buffett-said .rag-sr { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* ---------- architecture flow ---------- */
body.pc-what-buffett-said .pc-wide { margin-top:28px; }
html body.pc-what-buffett-said .rag-diagram { margin:0; padding:0; background:none !important; box-shadow:none !important; border:0 !important; border-radius:0 !important; }
body.pc-what-buffett-said .rag-cap,
body.pc-what-buffett-said .gold-t { margin:0 0 14px; font:500 12px/1.3 'DM Mono',ui-monospace,monospace; letter-spacing:.06em; text-transform:uppercase; color:var(--pc-muted); }
body.pc-what-buffett-said .rag-diagram b { display:block; font-size:14.5px; line-height:1.35; color:var(--pc-text); }
body.pc-what-buffett-said .rag-diagram small { display:block; font-size:13px; line-height:1.4; color:var(--pc-muted); margin-top:3px; }
body.pc-what-buffett-said .st { grid-row:1 / span 2; margin:0; display:grid; place-items:center; width:22px; height:22px; border-radius:50%;
  border:1px solid var(--pc-accent); color:var(--pc-accent); font:500 11.5px/1 'DM Mono',ui-monospace,monospace; }
body.pc-what-buffett-said .corpus-flow { display:flex; align-items:center; gap:14px; padding:12px 0 18px; border-top:1px solid var(--pc-line); }
body.pc-what-buffett-said .corpus-record { flex:0 1 300px; min-width:0; }
body.pc-what-buffett-said .corpus-record,
body.pc-what-buffett-said .query-flow > li { display:grid; grid-template-columns:22px minmax(0,1fr); column-gap:10px; align-content:start; }
body.pc-what-buffett-said .rag-diagram .corpus-record > b, body.pc-what-buffett-said .rag-diagram .query-flow > li > b { grid-column:2; align-self:center; }
body.pc-what-buffett-said .rag-diagram .corpus-record > small, body.pc-what-buffett-said .rag-diagram .query-flow > li > small { grid-column:2; }
body.pc-what-buffett-said .corpus-fork { width:40px; height:48px; flex:none; fill:none; stroke:var(--pc-accent); stroke-width:1.25; }
body.pc-what-buffett-said .corpus-index { display:flex; flex-direction:column; gap:6px; flex:none; }
body.pc-what-buffett-said .rag-diagram .corpus-index b { padding:3px 10px; border-radius:6px; background:var(--pc-chip); font:500 12.5px/1.35 'DM Mono',ui-monospace,monospace; white-space:nowrap; }
body.pc-what-buffett-said .corpus-feed { font:400 12px/1.35 'DM Mono',ui-monospace,monospace; color:var(--pc-muted); flex:none; }
body.pc-what-buffett-said .query-flow { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px 26px; }
body.pc-what-buffett-said .query-flow > li { position:relative; margin:0; padding:12px 0 0; border-top:1px solid var(--pc-line); min-width:0; }
body.pc-what-buffett-said .query-flow > li:not(:last-child)::after { content:"→"; position:absolute; right:-20px; top:12px; color:var(--pc-accent); font-size:15px; line-height:22px; }
body.pc-what-buffett-said .query-flow > li.gate-node { border-top:2px solid var(--bf-refuse); padding-top:11px; }
body.pc-what-buffett-said .gate-node .st { border-color:var(--bf-refuse); color:var(--bf-refuse); }
body.pc-what-buffett-said .refusal { color:var(--bf-refuse); font-weight:500; }
@media (max-width:899px) {
  body.pc-what-buffett-said .query-flow { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body.pc-what-buffett-said .query-flow > li:nth-child(3n)::after { content:none; }
}
@media (max-width:599px) {
  body.pc-what-buffett-said .corpus-flow { flex-wrap:wrap; gap:10px 12px; }
  body.pc-what-buffett-said .corpus-record { flex:1 1 100%; }
  body.pc-what-buffett-said .corpus-fork { width:32px; height:44px; }
  body.pc-what-buffett-said .query-flow { grid-template-columns:1fr; gap:0; }
  body.pc-what-buffett-said .query-flow > li { padding:10px 0 10px; }
  body.pc-what-buffett-said .query-flow > li.gate-node { padding-top:9px; }
  body.pc-what-buffett-said .query-flow > li::after { content:none !important; }
}

/* ---------- recorded questions (tabs) ---------- */
body.pc-what-buffett-said .qa-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 18px; }
html body.pc-what-buffett-said .qa-tabs button { margin:0; padding:6px 12px; border-radius:999px; cursor:pointer;
  font:500 12.5px/1.4 'DM Mono',ui-monospace,monospace; text-align:left;
  border:1px solid var(--pc-line) !important; background:transparent !important; color:var(--pc-muted) !important; transition:color .15s,border-color .15s; }
html body.pc-what-buffett-said .qa-tabs button:hover { color:var(--pc-text) !important; border-color:var(--pc-muted) !important; background:transparent !important; }
html body.pc-what-buffett-said .qa-tabs button[aria-selected="true"] { color:var(--pc-text) !important; border-color:var(--pc-accent) !important; background:var(--pc-chip) !important; }
body.pc-what-buffett-said .qa-item[hidden] { display:none; }
body.pc-what-buffett-said .pc-section .qa-item h3 { margin:0 0 8px; font-size:16px; line-height:1.4; }
body.pc-what-buffett-said .qa-item p { margin:0 0 12px; }
body.pc-what-buffett-said .pc-section .qa-src { margin:4px 0 0; padding:2px 0 2px 14px; border-left:2px solid var(--pc-accent); font-style:italic; color:var(--pc-text); }
body.pc-what-buffett-said .qa-src span { display:block; margin-top:4px; font:400 12px/1.4 'DM Mono',ui-monospace,monospace; font-style:normal; color:var(--pc-muted); }

/* ---------- gold passage bar chart ---------- */
body.pc-what-buffett-said .gold { margin:24px 0 0; padding-top:16px; border-top:1px solid var(--pc-line); }
body.pc-what-buffett-said .bar { display:grid; grid-template-columns:112px minmax(0,1fr) 54px; align-items:center; gap:12px; margin:0 0 10px; }
body.pc-what-buffett-said .bar span { font:500 13px/1.3 'DM Mono',ui-monospace,monospace; color:var(--pc-text); }
body.pc-what-buffett-said .bar i { display:block; height:22px; background:var(--pc-chip); border-radius:4px; overflow:hidden; }
body.pc-what-buffett-said .bar u { display:block; height:100%; width:calc(var(--v) * 1%); background:var(--pc-accent); border-radius:4px; text-decoration:none; }
body.pc-what-buffett-said .bar b { font:600 16px/1 'DM Sans',system-ui,sans-serif; text-align:right; white-space:nowrap; color:var(--pc-text); }
body.pc-what-buffett-said .pc-section .gold-n { margin:6px 0 0; font-size:13px; line-height:1.5; color:var(--pc-muted); }
@media (max-width:599px) {
  body.pc-what-buffett-said .bar { grid-template-columns:104px minmax(0,1fr) 46px; gap:10px; }
}
body.pc-what-buffett-said .pc-section p.pc-note { color:var(--pc-muted); margin-top:10px; }
