/* THE CARD HOOK's look (Master 10-15): tokens for light and dark, the shared card shell, and the sheet. Cards use these so they match each other; a card file adds only its own small rules. */
:root { --jc-bg: #f5f9fb; --jc-ink: #25485d; --jc-muted: #57758a; --jc-line: #d4dfe6; --jc-accent: #3e749e; --jc-field: #ffffff; --jc-radius: 14px; }
:root[data-theme="dark"] { --jc-bg: #13202a; --jc-ink: #dbe7ee; --jc-muted: #9db3c1; --jc-line: #2c4250; --jc-accent: #7fb0d6; --jc-field: #192a35; }
.jc-card { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 12px 14px; max-width: 560px; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); background: var(--jc-bg); color: var(--jc-ink); }
.jc-title { font: 700 .93rem/1.3 "DM Sans","DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--jc-ink); }
.jc-note { font: 500 .875rem/1.3 "DM Sans","DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--jc-muted); }
button.jc-button { text-align: left; cursor: pointer; padding: 8px 11px; border: 1px solid var(--jc-line); border-radius: 10px; background: var(--jc-field); color: var(--jc-accent); font: 500 .88rem/1.35 "DM Sans","DM Sans Fallback", sans-serif; }
button.jc-button:focus-visible, .jc-sheet-close:focus-visible { outline: 2px solid var(--jc-accent); outline-offset: 2px; }
.jc-sheet-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 20, 28, .45); }
.jc-sheet { width: min(640px, 100%); max-height: 86vh; overflow: auto; background: var(--jc-bg); color: var(--jc-ink); border: 1px solid var(--jc-line); border-radius: 18px 18px 0 0; padding: 14px 16px 22px; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); }
.jc-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.jc-sheet-title { font: 700 1.05rem/1.3 "DM Sans","DM Sans Fallback", sans-serif; }
.jc-sheet-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--jc-line); background: var(--jc-field); color: var(--jc-ink); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.jc-sheet-loading { padding: 10px 0; color: var(--jc-muted); font-size: .9rem; }
@media (min-width: 701px) { .jc-sheet-backdrop { align-items: center; } .jc-sheet { border-radius: 18px; max-height: 80vh; } }

/* a QUIET card turn (ctx.send quiet:true): hide the user bubble and everything in the answer except the cards */
.message-user.is-quiet{display:none}
.message-assistant.is-quiet>*:not([data-card]){display:none}
.message-assistant.is-quiet{background:transparent;border-color:transparent;box-shadow:none;padding-top:0;padding-bottom:0}
/* QUIZ ME (public/cards/quiz.js): the card, the quiz panel, the choices, the feedback; tokens only, so light / dark follow the page; 44px tap targets on a phone */
.quiz-panel { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.quiz-body { display: flex; flex-direction: column; gap: 10px; }
.quiz-q { font-size: 1.05rem; line-height: 1.35; }
.quiz-answers { display: flex; flex-direction: column; gap: 8px; }
.quiz-choice { text-align: left; min-height: 44px; justify-content: flex-start; white-space: normal; }
.quiz-choice.quiz-right, .quiz-btn.quiz-right { border-color: #2e8b57; box-shadow: inset 0 0 0 1px #2e8b57; }
.quiz-choice.quiz-wrong, .quiz-btn.quiz-wrong { border-color: #c0392b; box-shadow: inset 0 0 0 1px #c0392b; }
.quiz-feedback { border: 1px solid var(--jc-line); border-radius: var(--jc-radius); padding: 10px 12px; background: var(--jc-field); color: var(--jc-ink); }
.quiz-feedback.quiz-right { border-color: #2e8b57; }
.quiz-feedback.quiz-wrong { border-color: #c0392b; }
.quiz-why { color: var(--jc-muted); margin-top: 4px; }
.quiz-input { min-height: 44px; padding: 8px 10px; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); background: var(--jc-field); color: var(--jc-ink); font: inherit; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-score { font-size: 1.4rem; }
.quiz-flash { min-height: 120px; padding: 16px; text-align: left; white-space: pre-wrap; cursor: pointer; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); color: var(--jc-ink); font: inherit; }
@media (max-width: 520px) { .quiz-btn { min-height: 44px; } .quiz-actions .quiz-btn { flex: 1 1 100%; } }

/* the Quiz Me card wears the Explode card (style.css shares the container rules); only the icon tile is its own */
.quiz-card-thumb{display:flex;align-items:center;justify-content:center;color:#2f6f96;background:linear-gradient(135deg,#e3edf3,#f1f7fa)}
.quiz-card-thumb svg{width:34px;height:34px}
:root[data-theme="dark"] .quiz-card-thumb{color:#8fc0dc;background:linear-gradient(135deg,#202a32,#1a2229)}
/* INLINE CHARTS (public/cards/chart.js): big dark labels (the founder 10-27: no small grey text) */
.jc-charts { display: flex; flex-direction: column; gap: 14px; margin: 12px 0 0; max-width: 680px; }
.jc-chart { max-width: none; margin: 0; padding: 14px 16px; color: var(--jc-ink); }
.jc-chart-title { font: 700 1.15rem/1.3 "DM Sans","DM Sans Fallback", -apple-system, "Segoe UI", sans-serif; color: var(--jc-ink); }
.jc-chart-plot { width: 100%; min-height: 120px; overflow: hidden; }
.jc-chart-legend { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; font: 600 1rem/1.35 "DM Sans", sans-serif; color: var(--jc-ink); }
.jc-chart-legend-row { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
.jc-chart-legend li { display: flex; align-items: center; gap: 8px; }
.jc-chart-swatch { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 4px; }
.jc-chart-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.jc-chart-sources { margin: 0; font: 600 .94rem/1.45 "DM Sans", sans-serif; color: var(--jc-ink); overflow-wrap: anywhere; }
.jc-chart-sources a { color: var(--jc-ink); text-decoration: underline; font-weight: 700; }
button.jc-chart-toggle { min-height: 44px; align-self: flex-start; font-weight: 600; font-size: 1rem; color: var(--jc-ink); }
.jc-chart-tablewrap { overflow-x: auto; }
.jc-chart-table { border-collapse: collapse; font: 600 1rem/1.4 "DM Sans", sans-serif; color: var(--jc-ink); }
.jc-chart-table th, .jc-chart-table td { padding: 6px 12px; border-bottom: 1px solid var(--jc-line); text-align: right; white-space: nowrap; }
.jc-chart-table th:first-child, .jc-chart-table tr > th[scope], .jc-chart-table tr > th:first-child { text-align: left; }
@media (max-width: 520px) { .jc-chart { padding: 12px; } .jc-chart-title { font-size: 1.15rem; } }
/* D256 TICKER LINKS (public/cards/tickers.js): the chip in the answer (the text as written, a dotted underline) and the card in the sheet; tokens only (light / dark follow the page) */
button.jc-tk { display: inline; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: inherit; cursor: pointer; text-decoration: underline dotted; text-decoration-color: var(--jc-accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
button.jc-tk:hover { color: var(--jc-accent); }
button.jc-tk:focus-visible { outline: 2px solid var(--jc-accent); outline-offset: 2px; border-radius: 3px; }
@media (pointer: coarse) { button.jc-tk { padding: 6px 0; margin: -6px 0; } } /* a taller tap area on a phone without moving the line */
.jc-tk-card { display: flex; flex-direction: column; gap: 12px; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.jc-tk-card a { color: var(--jc-accent); }
.jc-tk-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.jc-tk-big { font-size: 1.5rem; }
.jc-tk-chg.up { color: #2e8b57; } .jc-tk-chg.down { color: #c0392b; }
.jc-tk-spark { width: 100%; height: 56px; color: var(--jc-accent); }
.jc-tk-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.jc-tk-figs div { padding: 8px 10px; border: 1px solid var(--jc-line); border-radius: 10px; background: var(--jc-field); }
.jc-tk-figs dt { color: var(--jc-muted); font-size: .9rem; } .jc-tk-figs dd { margin: 2px 0 0; font-weight: 700; }
.jc-tk-point p, .jc-tk-news ul { margin: 4px 0; } .jc-tk-news ul { padding-left: 18px; }
.jc-tk-sources { margin: 0; font-size: .9rem; }
.jc-tk-card button.jc-button { min-height: 44px; align-self: flex-start; }
.jc-tk-note { margin: 0; color: var(--jc-muted); font-size: .9rem; }
/* CHAT FILES (SITE_CHAT_FILES): the file card -- badge, name, size / sheets, Download (text >= 14 px; the link is a 44 px tap target) */
.jc-files { box-sizing: border-box; min-width: 0; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.jc-file { box-sizing: border-box; max-width: 100%; padding: 10px 12px; }
.jc-file-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jc-file-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 44px; padding: 0 6px; border-radius: 10px; font: 700 .875rem/1 "DM Sans","DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #fff; background: var(--jc-accent); }
.jc-file-sheet { background: #1f7a4a; } .jc-file-doc { background: #2b5797; } .jc-file-slides { background: #c4501f; } .jc-file-pdf { background: #b3261e; }
.jc-file-info { flex: 1; min-width: 0; }
.jc-file-name { font: 700 1rem/1.3 "DM Sans","DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--jc-ink); overflow-wrap: anywhere; }
.jc-file-meta { font: 500 .875rem/1.35 "DM Sans","DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--jc-muted); overflow-wrap: anywhere; }
a.jc-file-download { box-sizing: border-box; flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--jc-line); border-radius: 10px; background: var(--jc-field); color: var(--jc-accent); font: 600 .9375rem/1 "DM Sans","DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-decoration: none; }
a.jc-file-download:focus-visible { outline: 2px solid var(--jc-accent); outline-offset: 2px; }
@media (max-width: 420px) { .jc-file-row { flex-wrap: wrap; } a.jc-file-download { width: 100%; justify-content: center; } }

/* CARD IMAGES + CREDIT (D418; public/cards/card_image.js): the Commons photo and its visible credit line. Text >= 14px, links 44px tall on touch, tokens only (light + dark), nothing wider than its card. */
.jc-img { box-sizing: border-box; margin: 0; max-width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jc-img-photo { display: block; max-width: 100%; height: auto; border-radius: 10px; background: var(--jc-field); }
.jc-credit { box-sizing: border-box; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; column-gap: 0; font: 500 14px/1.4 "DM Sans","DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--jc-muted); overflow-wrap: anywhere; }
.jc-credit-text, .jc-credit-sep { white-space: pre-wrap; }
.jc-credit-link { color: var(--jc-accent); text-decoration: underline; text-underline-offset: 2px; }
.jc-credit-link:focus-visible { outline: 2px solid var(--jc-accent); outline-offset: 2px; }
@media (pointer: coarse) { .jc-credit .jc-credit-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; } }
.jc-sub { font: 700 .875rem/1.3 "DM Sans","DM Sans Fallback", sans-serif; color: var(--jc-ink); }
.jc-list { margin: 0; padding-left: 20px; font: 400 .9375rem/1.45 "DM Sans","DM Sans Fallback", sans-serif; color: var(--jc-ink); overflow-wrap: anywhere; }
.jc-body { margin: 0; font: 400 .9375rem/1.45 "DM Sans","DM Sans Fallback", sans-serif; color: var(--jc-ink); overflow-wrap: anywhere; }
.jc-recipe, .jc-whatis { box-sizing: border-box; min-width: 0; }
.explode-card-wrap > .jc-img, .explode-credit { margin: 12px 0 0; max-width: 560px; }
/* ANSWER CARDS (D433, public/cards/answer_cards.js): the comparison table and the bull / bear card; tokens only, so light and dark follow the page. The table scrolls INSIDE the card (attribute column sticky); the page never scrolls sideways. */
.jc-ans { box-sizing: border-box; max-width: min(100%, 680px); min-width: 0; }
.jc-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jc-ans-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; border: 1px solid var(--jc-line); border-radius: 10px; background: var(--jc-bg); }
.jc-ans-scroll:focus-visible { outline: 2px solid var(--jc-accent); outline-offset: 2px; }
.jc-ans-table { border-collapse: separate; border-spacing: 0; width: 100%; font: 500 .875rem/1.35 "DM Sans","DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--jc-ink); }
.jc-ans-table th, .jc-ans-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--jc-line); min-width: 112px; background: var(--jc-bg); }
.jc-ans-table tr:last-child > th, .jc-ans-table tr:last-child > td { border-bottom: 0; }
.jc-ans-table thead th { font-weight: 700; color: var(--jc-ink); }
.jc-ans-table th.jc-ans-attr { position: sticky; left: 0; z-index: 1; min-width: 92px; max-width: 120px; font-weight: 600; color: var(--jc-muted); border-right: 1px solid var(--jc-line); }
.jc-ans-table td.jc-ans-win { background: var(--jc-field); background: color-mix(in srgb, var(--jc-accent) 14%, var(--jc-field)); font-weight: 700; }
.jc-ans-check { color: var(--jc-ink); margin-right: 4px; font-weight: 800; }
.jc-ans-null { color: var(--jc-muted); }
a.jc-ans-src { display: inline-block; min-width: 18px; padding: 0 4px; margin-left: 2px; font-size: .72rem; font-weight: 700; line-height: 1.5; text-align: center; vertical-align: super; color: var(--jc-accent); border: 1px solid var(--jc-line); border-radius: 9px; text-decoration: none; background: var(--jc-field); }
a.jc-ans-src:hover, a.jc-ans-src:focus-visible { text-decoration: underline; outline: 2px solid var(--jc-accent); outline-offset: 1px; }
.jc-ans-fig { margin: 0 0 4px; max-width: 96px; } .jc-ans-fig img { max-width: 96px; height: auto; display: block; } .jc-ans-fig figcaption { font-size: .66rem; font-weight: 500; color: var(--jc-muted); overflow-wrap: anywhere; }
.jc-ans-foot { display: flex; flex-direction: column; gap: 2px; } .jc-ans-sources { overflow-wrap: anywhere; }
.jc-bb-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; } .jc-bb-ticker { font-size: 1.05rem; letter-spacing: .02em; } .jc-bb-name { font-weight: 500; color: var(--jc-muted); }
.jc-bb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jc-bb-col { min-width: 0; padding: 10px 11px; border: 1px solid var(--jc-line); border-radius: 10px; background: var(--jc-field); }
.jc-bb-h { margin: 0 0 6px; font: 700 .9rem/1.3 "DM Sans","DM Sans Fallback", sans-serif; color: var(--jc-ink); } .jc-bb-glyph { margin-right: 6px; }
.jc-bb-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.jc-bb-text { font: 500 .9rem/1.4 "DM Sans","DM Sans Fallback", sans-serif; color: var(--jc-ink); overflow-wrap: anywhere; } .jc-bb-meta { margin-top: 2px; }
@media (max-width: 520px) { .jc-bb-cols { grid-template-columns: 1fr; } .jc-ans-table th, .jc-ans-table td { padding: 8px; min-width: 104px; } }
/* D491 odds card */
.jc-odds-q { font: 500 .95rem/1.4 "DM Sans","DM Sans Fallback", sans-serif; color: var(--jc-ink); overflow-wrap: anywhere; margin: 4px 0 6px; } .jc-odds-n { font: 700 1.9rem/1.1 "DM Sans","DM Sans Fallback", sans-serif; color: var(--jc-ink); }
.jc-odds-meta, .jc-odds-foot { margin-top: 6px; }
/* D491 odds card LOOK (founder via Lucy 11-06): a real card like the Pulse card: its own warm amber surface, rounded, soft shadow, a slightly raised (thicker, darker) bottom edge. Style only: same data, same words. Tokens are local to .jc-odds so no other card changes; every text colour is >= 4.5:1 on its surface (light and dark). */
.jc-odds, .jc-btr { --jc-bg: #fff8e1; --jc-ink: #3a2c06; --jc-muted: #6a5016; --jc-accent: #7d5200; --jc-line: #f3d98b; --jc-radius: 16px; padding: 14px 16px 15px; border-bottom: 3px solid #e6c15f; box-shadow: 0 1px 2px rgba(122, 86, 0, .14), 0 8px 18px -6px rgba(122, 86, 0, .28); }
.jc-odds .jc-title, .jc-btr .jc-title { color: var(--jc-ink); }
.jc-odds-n { font-size: 2.2rem; letter-spacing: -.01em; }
:root[data-theme="dark"] .jc-odds, :root[data-theme="dark"] .jc-btr { --jc-bg: #2b2111; --jc-ink: #f7e8c6; --jc-muted: #d3bf8f; --jc-accent: #f2c862; --jc-line: #5b4620; border-bottom-color: #7a5d24; box-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 18px -6px rgba(0, 0, 0, .6); }
@media (max-width: 520px) { .jc-odds, .jc-btr { padding: 13px 14px 14px; } .jc-odds-n { font-size: 2rem; } }
/* SITE_ODDS_MULTI (row 989): several markets on the one odds card -- a line per market, the % on the right, same amber surface */
.jc-odds-rows { margin-top: 8px; } .jc-odds-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--jc-line); } .jc-odds-row:first-child { border-top: 0; }
.jc-odds-rq { font: 500 .95rem/1.35 "DM Sans","DM Sans Fallback", sans-serif; color: var(--jc-ink); overflow-wrap: anywhere; text-decoration: none; } a.jc-odds-rq:hover { text-decoration: underline; }
.jc-odds-rp { flex: none; white-space: nowrap; } .jc-odds-multi .jc-odds-n { font-size: 1.35rem; }
/* odds: the market's own rule (small, under the question) and the thin-market badge; >= 4.5:1 on the amber surface in light and dark */
.jc-odds-rule { font-size: .82rem; line-height: 1.4; margin: -2px 0 6px; overflow-wrap: anywhere; }
.jc-odds-thin { display: inline-block; margin-left: 8px; padding: 1px 8px; font: 700 .74rem/1.5 "DM Sans","DM Sans Fallback", sans-serif; color: #5a3d00; background: #fde9a8; border: 1px solid #e0b84a; border-radius: 999px; vertical-align: middle; cursor: help; }
:root[data-theme="dark"] .jc-odds-thin { color: #f7e0a0; background: #4a3912; border-color: #7a5d24; }
.jc-odds-thin:focus-visible { outline: 2px solid var(--jc-accent); outline-offset: 2px; }
/* BACKTEST RESULT (three layouts on the warm card: tokens come from the .jc-odds, .jc-btr rule above; text >= 4.5:1, lines >= 3:1, light and dark) */
.jc-btr-svg { width: 100%; height: auto; max-height: 130px; display: block; }
.jc-btr-st { stroke: var(--jc-accent); stroke-width: 2.4; vector-effect: non-scaling-stroke; } .jc-btr-bh { stroke: var(--jc-muted); stroke-width: 1.8; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.jc-btr-legend { display: flex; gap: 14px; flex-wrap: wrap; } .jc-btr-key::before { content: ""; display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--jc-accent); margin-right: 6px; vertical-align: middle; } .jc-btr-key-bh::before { border-top: 2px dashed var(--jc-muted); }
.jc-btr-t { width: 100%; border-collapse: collapse; font: 500 .9rem/1.4 "DM Sans","DM Sans Fallback", sans-serif; color: var(--jc-ink); } .jc-btr-t th, .jc-btr-t td { padding: 5px 6px; text-align: right; border-bottom: 1px solid var(--jc-line); } .jc-btr-t th:first-child, .jc-btr-t td:first-child { text-align: left; } .jc-btr-t thead th { color: var(--jc-muted); font-weight: 700; font-size: .8rem; } .jc-btr-t tbody th { font-weight: 600; }
.jc-btr-kv thead { display: none; } .jc-btr-big { margin: 2px 0 4px; } .jc-btr-meta { overflow-wrap: anywhere; } .jc-btr-line { margin-top: 2px; }
@media (max-width: 520px) { .jc-btr-t { font-size: .84rem; } .jc-btr-t th, .jc-btr-t td { padding: 5px 4px; } }
/* ENTITY PHOTOS (H117, SITE_ENTITY_PHOTOS): 1-4 tiles ABOVE the answer text. The photo box has a fixed height (nothing jumps when it loads); the row scrolls sideways inside itself (scroll-snap) when it does not fit, never the page */
.jc-card.jc-ephotos { max-width: 100%; margin: 4px 0 12px; padding: 0; border: 0; background: none; gap: 0; }
.jc-ep-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding: 2px 2px 6px; }
.jc-ep-tile { box-sizing: border-box; flex: 0 0 184px; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 9px; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); background: var(--jc-bg); color: var(--jc-ink); scroll-snap-align: start; }
.jc-ep-photo { flex: none; height: 112px; margin-bottom: 6px; border-radius: 10px; overflow: hidden; background: var(--jc-field); display: flex; align-items: center; justify-content: center; }
.jc-ep-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; } /* faces sit high in most portraits */
.jc-ep-ini { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--jc-accent); color: var(--jc-field); font: 700 1.5rem/1 "DM Sans","DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .02em; }
.jc-ep-name { font: 700 .93rem/1.3 "DM Sans","DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--jc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
a.jc-ep-name:hover { text-decoration: underline; } a.jc-ep-name:focus-visible { outline: 2px solid var(--jc-accent); outline-offset: 2px; border-radius: 3px; }
.jc-ep-cap { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-credit.jc-ep-credit { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin-top: 3px; font-size: 11px; line-height: 1.35; }
.jc-ep-credit .jc-credit-link { display: inline; min-height: 0; padding: 0; }
@media (max-width: 700px) { .jc-ep-tile { flex-basis: min(150px, calc(50% - 8px)); } } /* two tiles fit a 390 px phone; 3-4 scroll */
/* INLINE PHOTOS (public/inline_photos.js): a matched photo sits LEFT of its bullet / block; the card keeps only the tiles that matched nothing */
.jc-ephotos.ip-card-empty, .jc-ep-tile.ip-placed { display: none; }
.message-prose li.ip-has, .message-prose p.ip-has { list-style: none; display: flow-root; position: relative; --ipw: 168px; padding: 0 0 18px calc(var(--ipw) + 18px); min-height: calc(var(--ipw) * 4 / 3 + 18px); margin-bottom: 18px; border-bottom: 1px solid var(--jc-line, rgba(128,128,128,.22)); } /* ranked person/item block: big photo left, name + text right, a divider under it */
.message-prose li.ip-has:last-child { border-bottom: 0; }
.message-prose :is(h3,h4,h5,h6).ip-has, .message-prose p.ip-has.ip-name { display: block; min-height: 0; margin-bottom: .2em; }
.ip-has.ip-name + p, .ip-has.ip-name + ul { overflow: visible; }
.message-prose li.ip-has { margin-left: -1.4em; }
.message-prose li.ip-has > .ip-photo, .message-prose p.ip-has:not(.ip-name) > .ip-photo { position: absolute; left: 0; top: 2px; float: none; width: var(--ipw); margin: 0; } /* the text stays in its own column beside the photo */
.ip-photo { float: left; width: clamp(104px, 26%, 168px); aspect-ratio: 3 / 4; margin: 2px 16px 6px 0; border-radius: 16px; overflow: hidden; background: var(--jc-field, rgba(128,128,128,.15)); }
.ip-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ip-credits { margin: 6px 0 14px; font-size: 11.5px; line-height: 1.4; color: var(--jc-muted, #6b7280); }
@media (max-width: 700px) { .ip-photo { width: 112px; margin-right: 14px; border-radius: 14px; } .message-prose li.ip-has, .message-prose p.ip-has { --ipw: 112px; padding-left: calc(var(--ipw) + 14px); } }
/* PHOTO NEVER OVER TEXT (FOUNDER P0 11-14, 'explain to me ww1' on iPhone): html.chat-clean .message-prose li {padding-left:.2em; margin:.3em 0} (0,2,2) beat the photo list item (0,2,1), so the text lost its left padding and ran UNDER the photo. Doubling the class (0,3,1) wins in every theme/flag. */
.message-prose li.ip-has.ip-has { padding: 0 0 18px calc(var(--ipw) + 18px); margin: .3em 0 18px -1.4em; }
@media (max-width: 700px) { .message-prose li.ip-has.ip-has { padding-left: calc(var(--ipw) + 14px); } }
.message-prose td.ip-has { min-height: 0; padding: 0; margin: 0; border-bottom: 0; } .message-prose td.ip-has .ip-photo { width: 36px; min-width: 0; aspect-ratio: 1; height: 36px; margin: 0 10px 0 0; border-radius: 8px; } /* a table row led by the name: a small photo in its first cell */
.jc-ephotos.jc-ep-items:not(.ip-swept) { visibility: hidden; height: 0; margin: 0; } /* an item card waits for inline_photos.js to place its photos (or show none) */
.message-prose .ip-has.ip-name ~ :is(h2,h3,h4,h5,h6,ol,ul) { clear: left; }
/* ANSWER BLOCKS (D749): native components. Spacing and the big ranked photos follow the ChatGPT reference (photo ~1/4 of the column, rounded, divider under each item). */
.message.ab-on .message-content { display: none; }
.jc-ab { display: block; border: 0; background: transparent; box-shadow: none; padding: 0; margin: 0 0 18px; font-size: 17px; line-height: 1.6; }
.jc-ab > * + * { margin-top: 20px; }
.jc-ab p { margin: 0; }
.ab-lead { font-size: 19px; line-height: 1.55; }
.ab-h { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 8px 0 4px; }
.ab-row { display: flex; gap: 16px; align-items: flex-start; }
.ab-ph { flex: none; width: 168px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--jc-field, rgba(128,128,128,.15)); }
.ab-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ab-body { min-width: 0; flex: 1; }
.ab-name { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; } .ab-name a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.ab-sub { color: var(--jc-muted, #6b7280); margin: 0 0 6px; }
.ab-list, .ab-tl { list-style: none; margin: 0; padding: 0; }
.ab-item { padding: 18px 0; border-bottom: 1px solid var(--jc-line, rgba(128,128,128,.25)); } .ab-item:first-child { padding-top: 6px; } .ab-item:last-child { border-bottom: 0; }
.ab-scroll { overflow-x: auto; border: 1px solid var(--jc-line, rgba(128,128,128,.25)); border-radius: 12px; }
.ab-table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 28rem; } .ab-table th, .ab-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--jc-line, rgba(128,128,128,.25)); } .ab-table thead th { background: rgba(128,128,128,.1); } .ab-table tr:last-child > * { border-bottom: 0; }
.ab-chart { margin: 0; } .ab-cap { margin-top: 8px; font-size: 13px; color: var(--jc-muted, #6b7280); }
.ab-bar { display: grid; grid-template-columns: minmax(5rem, 30%) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 15.5px; }
.ab-bar-track { height: 18px; border-radius: 9px; background: rgba(128,128,128,.15); overflow: hidden; } .ab-bar-track i { display: block; height: 100%; border-radius: 9px; background: var(--jc-accent, #2c6fdc); } .ab-bar-y { font-variant-numeric: tabular-nums; font-weight: 600; }
.ab-line { width: 100%; height: auto; display: block; } .ab-axis { stroke: rgba(128,128,128,.4); } .ab-tick { font-size: 20px; fill: var(--jc-muted, #6b7280); }
.ab-ln { stroke-width: 2.5; stroke-linejoin: round; } .ab-s0 { stroke: var(--jc-accent, #2c6fdc); } .ab-dot.ab-s0, .ab-sw.ab-s0 { fill: var(--jc-accent, #2c6fdc); background: var(--jc-accent, #2c6fdc); } .ab-s1 { stroke: #d9822b; } .ab-dot.ab-s1, .ab-sw.ab-s1 { fill: #d9822b; background: #d9822b; } .ab-s2 { stroke: #3a9a6a; } .ab-dot.ab-s2, .ab-sw.ab-s2 { fill: #3a9a6a; background: #3a9a6a; } .ab-s3 { stroke: #8a5cc2; } .ab-dot.ab-s3, .ab-sw.ab-s3 { fill: #8a5cc2; background: #8a5cc2; }
.ab-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; margin-top: 6px; } .ab-sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; stroke: none; }
.ab-tl { border-left: 2px solid var(--jc-line, rgba(128,128,128,.3)); margin-left: 6px; } .ab-tli { position: relative; display: flex; gap: 14px; padding: 0 0 18px 20px; } .ab-tli::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--jc-accent, #2c6fdc); }
.ab-date { font-size: 13px; font-weight: 700; color: var(--jc-muted, #6b7280); margin: 0 0 2px; } .ab-ph-sm { width: 84px; border-radius: 12px; }
.ab-sources { display: flex; flex-wrap: wrap; gap: 8px; } .ab-chip { display: inline-flex; flex-direction: column; max-width: 15rem; padding: 6px 12px; border: 1px solid var(--jc-line, rgba(128,128,128,.3)); border-radius: 12px; text-decoration: none; color: inherit; font-size: 13px; line-height: 1.3; } .ab-chip-host { font-weight: 700; } .ab-chip-title { color: var(--jc-muted, #6b7280); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-verdict { padding: 14px 16px; border-left: 4px solid var(--jc-accent, #2c6fdc); background: rgba(128,128,128,.08); border-radius: 0 12px 12px 0; font-size: 18px; line-height: 1.5; font-weight: 600; }
.ab-credits { font-size: 11.5px; line-height: 1.4; color: var(--jc-muted, #6b7280); }
@media (max-width: 700px) { .ab-ph { width: 112px; border-radius: 14px; } .ab-ph-sm { width: 72px; } .ab-lead { font-size: 18px; } .ab-name { font-size: 18px; } .ab-row { gap: 14px; } .ab-bar { grid-template-columns: minmax(4rem, 34%) 1fr auto; } }
/* ANSWER BLOCKS: KPI stat cards, landscape photos for things and companies */
.ab-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.ab-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--jc-line, rgba(128,128,128,.28)); border-radius: 14px; }
.ab-kpi-l { font-size: 14px; color: var(--jc-muted, #6b7280); } .ab-kpi-v { font-size: 26px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; } .ab-kpi-n { font-size: 14px; } .ab-kpi-s { font-size: 12px; color: var(--jc-muted, #6b7280); margin-top: 4px; }
.ab-land .ab-ph { width: 200px; aspect-ratio: 4 / 3; } @media (max-width: 700px) { .ab-land .ab-ph { width: 136px; } }
@media (max-width: 700px) { .ab-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ab-kpi-v { font-size: 22px; } }
/* ANSWER BLOCKS: donut, flow, phases, callout, concept mockup, closing question */
.ab-caveat { font-size: 13px; font-style: italic; color: var(--jc-muted, #6b7280); margin: 6px 0 0; }
.ab-donut { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; } .ab-pie { width: 200px; height: 200px; flex: none; }
.ab-pie-leg { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 14rem; } .ab-pie-leg li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--jc-line, rgba(128,128,128,.2)); font-size: 15.5px; } .ab-pie-leg .ab-sw { margin: 0; flex: none; } .ab-pie-x { flex: 1; } .ab-pie-y { font-weight: 600; font-variant-numeric: tabular-nums; }
.ab-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ab-step { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--jc-line, rgba(128,128,128,.28)); border-radius: 14px; flex: 1 1 11rem; position: relative; } .ab-ico { font-size: 26px; line-height: 1; } .ab-st { display: block; font-size: 16px; } .ab-sx { display: block; font-size: 14px; color: var(--jc-muted, #6b7280); }
.ab-arrow { position: absolute; right: -11px; top: 50%; transform: translateY(-50%); background: var(--jc-bg, #fff); font-size: 18px; z-index: 1; } .ab-loop { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--jc-muted, #6b7280); }
.ab-phase-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } .ab-phase { padding: 14px 16px; border: 1px solid var(--jc-line, rgba(128,128,128,.28)); border-radius: 14px; } .ab-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--jc-accent, #2c6fdc); color: #fff; margin-bottom: 8px; }
.ab-callout { margin: 20px 0 0; padding: 18px 20px; border-radius: 16px; background: rgba(128,128,128,.1); font-size: 22px; line-height: 1.4; font-weight: 700; text-align: center; } .ab-callout cite { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; font-style: normal; color: var(--jc-muted, #6b7280); }
.ab-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; } .ab-tab { font: inherit; font-size: 15px; padding: 8px 16px; min-height: 40px; border-radius: 99px; border: 1px solid var(--jc-line, rgba(128,128,128,.35)); background: transparent; color: inherit; cursor: pointer; } .ab-tab.ab-on { background: var(--jc-accent, #2c6fdc); border-color: transparent; color: #fff; }
.ab-q { font-weight: 700; margin: 0 0 10px; } .ab-cmp { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; } .ab-cmpcard { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 2px solid var(--jc-line, rgba(128,128,128,.3)); border-radius: 14px; background: transparent; color: inherit; cursor: pointer; font-size: 15px; } .ab-cmpcard.ab-picked { border-color: var(--jc-accent, #2c6fdc); }
.ab-question { padding: 16px 18px; border: 2px dashed var(--jc-line, rgba(128,128,128,.4)); border-radius: 14px; } .ab-ql { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jc-muted, #6b7280); } .ab-qt { font-size: 18px; font-weight: 600; margin-top: 4px; }
@media (max-width: 700px) { .ab-cmp { grid-template-columns: 1fr; } .ab-steps { flex-direction: column; } .ab-step { flex: none; } .ab-arrow { right: auto; left: 50%; top: auto; bottom: -15px; transform: translateX(-50%) rotate(90deg); } .ab-callout { font-size: 19px; } }
/* ANSWER BLOCKS: explainer blocks (title, hero image, image row, chain, 2x2 grid, lesson, analogy) */
.ab-t { font-size: 30px; line-height: 1.2; font-weight: 800; margin: 0; text-wrap: balance; } .ab-subt { font-size: 19px; color: var(--jc-muted, #6b7280); margin: 8px 0 0; }
.ab-fig { margin: 0; } .ab-ph.ab-ph-wide { width: 100%; aspect-ratio: auto; max-height: 420px; border-radius: 16px; } .ab-ph-wide .ab-img { height: auto; max-height: 420px; object-fit: cover; }
.ab-figcap { margin-top: 8px; font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; gap: 2px; } .ab-figcr { font-size: 11.5px; color: var(--jc-muted, #6b7280); }
.ab-imgrow { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-items: start; } .ab-imgrow .ab-ph.ab-ph-wide { max-height: 260px; }
.ab-chain { padding: 16px 18px; border: 1px solid var(--jc-line, rgba(128,128,128,.28)); border-radius: 14px; background: rgba(128,128,128,.06); } .ab-chain .ab-h { margin-top: 0; }
.ab-chain-l { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: ch; } .ab-chain-l li { counter-increment: ch; position: relative; padding: 8px 0 8px 40px; } .ab-chain-l li::before { content: counter(ch); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--jc-accent, #2c6fdc); color: #fff; font-weight: 700; font-size: 14px; line-height: 28px; text-align: center; }
.ab-grid-c { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; } .ab-gcard { padding: 14px 16px; border: 1px solid var(--jc-line, rgba(128,128,128,.28)); border-radius: 14px; }
.ab-lesson { font-size: 17.5px; padding-left: 14px; border-left: 3px solid var(--jc-accent, #2c6fdc); } .ab-analogy { padding: 14px 18px; border-radius: 14px; background: rgba(128,128,128,.1); } .ab-al { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jc-muted, #6b7280); }
@media (max-width: 700px) { .ab-t { font-size: 25px; } .ab-imgrow { grid-template-columns: 1fr; } .ab-grid-c { grid-template-columns: 1fr 1fr; gap: 10px; } .ab-gcard { padding: 12px; } }
/* ANSWER BLOCKS: a rendered chess diagram in place of a photo; move chip */
.ab-ph.ab-ph-board { aspect-ratio: 1; background: none; border-radius: 10px; } .ab-board { display: block; width: 100%; height: 100%; border-radius: 10px; } .ab-sq-l { fill: #ecd9b5; } .ab-sq-d { fill: #b58863; } .ab-board text { font-size: 9px; dominant-baseline: central; } .ab-pw { fill: #fff; stroke: #222; stroke-width: .5; } .ab-pb { fill: #1b1b1b; stroke: #1b1b1b; stroke-width: .2; }
.ab-code { display: inline-block; margin: 0 0 6px; padding: 3px 9px; border-radius: 8px; background: rgba(128,128,128,.16); font: 600 14px/1.4 ui-monospace, Menlo, monospace; word-break: break-word; }
/* ANSWER BLOCKS: product cards + buy links (D753) */
.ab-buylink { color: var(--jc-accent, #2c6fdc); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-block; min-height: 24px; } .ab-asof { font-size: 12.5px; color: var(--jc-muted, #6b7280); margin: 6px 0 0; }
.ab-prod-g { display: grid; gap: 14px; } .ab-prod { padding: 14px 0; border-bottom: 1px solid var(--jc-line, rgba(128,128,128,.25)); } .ab-prod:last-child { border-bottom: 0; } .ab-price { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.ab-buy { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; margin-top: 8px; border-radius: 12px; background: var(--jc-accent, #2c6fdc); color: #fff; font-weight: 700; text-decoration: none; }
.jc-odds-titled .jc-odds-rq { font-size: 1.15rem; font-weight: 700; } .jc-odds-lab { font-size: .8rem; }
/* CATALOG BLOCKS (D762): video, map, gallery, stock, person initials + facts; marker_visuals draws them inside the answer. Tokens only (light/dark follow the page). */
.jc-mv { margin: 14px 0; } .jc-mv > .ab-video, .jc-mv > .ab-map, .jc-mv > .ab-stock, .jc-mv > .ab-gallery { margin: 0; }
.ab-video { max-width: 640px; } .ab-vbox { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0f1b24; }
.ab-vplay { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; color: #fff; text-align: center; background: linear-gradient(135deg, #1e3a4d, #0f1b24); }
.ab-vplay:focus-visible { outline: 3px solid var(--jc-accent, #7fb0d6); outline-offset: -3px; }
.ab-vtri { width: 64px; height: 64px; border-radius: 50%; background: #e62117; display: flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.ab-vcap { display: flex; flex-direction: column; gap: 2px; max-width: 100%; } .ab-vcap strong { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; } .ab-vmeta { font-size: 13px; opacity: .8; }
.ab-vframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; } .ab-vlink { display: inline-block; margin-top: 6px; font-size: 14px; min-height: 24px; color: var(--jc-accent, #2c6fdc); }
.ab-map { margin: 0; max-width: 640px; } .ab-mapframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--jc-line, rgba(128,128,128,.3)); border-radius: 14px; background: rgba(128,128,128,.1); }
.ab-mapcap { margin-top: 6px; font-size: 14px; line-height: 1.45; } .ab-mapcap a { color: var(--jc-accent, #2c6fdc); } .ab-mapcr { color: var(--jc-muted, #6b7280); font-size: 12.5px; }
.ab-gal-g { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); } .ab-gal-i { all: unset; box-sizing: border-box; cursor: zoom-in; display: flex; flex-direction: column; gap: 4px; min-width: 0; border-radius: 12px; }
.ab-gal-i:focus-visible { outline: 3px solid var(--jc-accent, #2c6fdc); outline-offset: 2px; } .ab-gal-i .ab-ph { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; } .ab-gal-i .ab-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.ab-gal-cap { font-size: 13px; line-height: 1.35; color: var(--jc-muted, #6b7280); overflow-wrap: anywhere; }
.ab-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(8,14,20,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 10px; } .ab-lb-img { max-width: 100%; max-height: 80vh; border-radius: 10px; object-fit: contain; } .ab-lb-cap { color: #fff; font-size: 15px; margin: 0; text-align: center; max-width: 640px; }
.ab-lb-x { all: unset; cursor: pointer; position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 28px; line-height: 44px; text-align: center; } .ab-lb-x:focus-visible { outline: 3px solid #fff; }
.ab-stock { max-width: 520px; padding: 14px 16px; border: 1px solid var(--jc-line, rgba(128,128,128,.28)); border-radius: 14px; } .ab-st-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.ab-st-id { display: flex; flex-direction: column; min-width: 0; } .ab-ticker { font: 700 13px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: rgba(128,128,128,.14); align-self: flex-start; } .ab-st-name { font-size: 14px; color: var(--jc-muted, #6b7280); margin-top: 4px; }
.ab-st-px { display: flex; flex-direction: column; align-items: flex-end; } .ab-price { font-size: 28px; line-height: 1.1; } .ab-chg { font-size: 15px; font-weight: 600; } .ab-chg.ab-up { color: #1a7f4b; } .ab-chg.ab-dn { color: #b3261e; }
:root[data-theme="dark"] .ab-chg.ab-up { color: #5fd49a; } :root[data-theme="dark"] .ab-chg.ab-dn { color: #f19a94; } .ab-spark { width: 120px; height: 36px; } .ab-spark.ab-up { color: #1a7f4b; } .ab-spark.ab-dn { color: #b3261e; } :root[data-theme="dark"] .ab-spark.ab-up { color: #5fd49a; } :root[data-theme="dark"] .ab-spark.ab-dn { color: #f19a94; }
.ab-st-src { margin: 8px 0 0; font-size: 13px; color: var(--jc-muted, #6b7280); } .ab-st-src a { color: inherit; }
.ab-initials { flex: none; width: 112px; height: 112px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 36px; background: rgba(128,128,128,.16); color: var(--jc-muted, #6b7280); }
.ab-facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 8px 0 0; font-size: 14.5px; } .ab-facts dt { color: var(--jc-muted, #6b7280); } .ab-facts dd { margin: 0; }
@media (max-width: 700px) { .ab-gal-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ab-initials { width: 84px; height: 84px; font-size: 28px; } .ab-st-px { align-items: flex-start; } .ab-vtri { width: 52px; height: 52px; } }
.ab-gal-i .ab-ph { width: 100%; margin: 0; } .ab-gal-i .ab-img { aspect-ratio: 4 / 3; } .jc-mv > .ab-stock { border: 0; padding: 2px 0; }
/* MAPS & PLACES panel (D765): a pin map (tiles only when the page has a tile provider configured, else positions on a plain grid) + a card per place. Tokens only. */
.ab-places { max-width: 760px; } .jc-mv > .ab-places { margin: 0; } .ab-pl-take { font-size: 17px; }
.ab-pm { position: relative; width: 100%; aspect-ratio: 8 / 5; border: 1px solid var(--jc-line, rgba(128,128,128,.3)); border-radius: 14px; overflow: hidden; margin: 8px 0 12px; background: #e8eef0; }
:root[data-theme="dark"] .ab-pm { background: #1b2a33; } .ab-pm-plain { background-image: linear-gradient(rgba(128,128,128,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(128,128,128,.18) 1px, transparent 1px); background-size: 12.5% 12.5%; }
.ab-tile { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; } .ab-pm-attr { position: absolute; right: 6px; bottom: 4px; z-index: 3; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.82); color: #333; max-width: 85%; }
.ab-pin { all: unset; box-sizing: border-box; position: absolute; z-index: 2; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--jc-accent, #2c6fdc); color: #fff; border: 2px solid #fff; font: 700 14px/26px system-ui, sans-serif; text-align: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.35); } .ab-pin:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.ab-pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; } .ab-pl { display: grid; grid-template-columns: 30px 96px minmax(0, 1fr); gap: 0 12px; padding: 14px 8px; border-bottom: 1px solid var(--jc-line, rgba(128,128,128,.25)); border-radius: 10px; } .ab-pl.ab-pl-nophoto { grid-template-columns: 30px minmax(0, 1fr); } .ab-pl:last-child { border-bottom: 0; } .ab-pl.ab-pl-on { background: rgba(128,128,128,.1); }
.ab-pl-n { width: 28px; height: 28px; border-radius: 50%; background: var(--jc-accent, #2c6fdc); color: #fff; font: 700 14px/28px system-ui, sans-serif; text-align: center; } .ab-pl-img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; display: block; background: rgba(128,128,128,.15); }
.ab-pl-name { margin: 0 0 2px; font-size: 18px; line-height: 1.25; } .ab-pl-meta, .ab-pl-addr { margin: 2px 0; font-size: 15px; line-height: 1.4; } .ab-pl-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; } .ab-pl-addr { color: var(--jc-muted, #6b7280); } .ab-pl-rate { font-weight: 700; } .ab-pl-rev { color: var(--jc-muted, #6b7280); margin-left: -6px; }
.ab-pl-open { font-weight: 700; } .ab-pl-open.ab-yes { color: #1a7f4b; } .ab-pl-open.ab-no { color: #b3261e; } :root[data-theme="dark"] .ab-pl-open.ab-yes { color: #5fd49a; } :root[data-theme="dark"] .ab-pl-open.ab-no { color: #f19a94; }
.ab-pl-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .ab-pl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--jc-line, rgba(128,128,128,.4)); color: var(--jc-ink, inherit); font-weight: 600; text-decoration: none; font-size: 15px; } .ab-pl-btn.ab-pl-dir { background: var(--jc-accent, #2c6fdc); border-color: transparent; color: #fff; }
.ab-pl-src { margin: 10px 0 0; font-size: 13px; color: var(--jc-muted, #6b7280); }
@media (max-width: 700px) { .ab-pl { grid-template-columns: 28px 72px minmax(0, 1fr); gap: 0 10px; padding: 12px 4px; } .ab-pl.ab-pl-nophoto { grid-template-columns: 28px minmax(0, 1fr); } .ab-pl-img { width: 72px; height: 72px; } .ab-pl-name { font-size: 17px; } }

/* D767: IMAGE STRIP (the gallery block as three large photos in a row, +N on the third; a phone scrolls the row) + weather + scores */
.ab-gal-strip .ab-gal-g { gap: 8px; } .ab-gal-strip .ab-gal-i .ab-ph, .ab-gal-strip .ab-gal-i .ab-img { aspect-ratio: 3 / 2; } .ab-gal-i[hidden] { display: none; } .ab-gal-i .ab-ph { position: relative; }
.ab-gal-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16, 22, 28, .55); color: #fff; font: 700 1.5rem/1 inherit; letter-spacing: .02em; border-radius: 12px; }
@media (max-width: 700px) { .ab-gal-strip .ab-gal-g { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 8px; } .ab-gal-strip .ab-gal-i { flex: 0 0 78%; scroll-snap-align: start; } }
.ab-weather, .ab-scores { border: 1px solid var(--jc-line, #d4dfe6); border-radius: 14px; padding: 14px 16px; background: var(--jc-bg, #f5f9fb); color: var(--jc-ink, #25485d); } .jc-mv > .ab-weather, .jc-mv > .ab-scores { margin: 0; }
.ab-wx-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; } .ab-wx-place { font-weight: 700; } .ab-wx-now { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .ab-wx-temp { font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; } .ab-wx-cond { color: var(--jc-muted, #57758a); font-size: .93rem; }
.ab-wx-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; } .ab-wx-day { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--jc-line, #d4dfe6); border-radius: 10px; background: var(--jc-field, #fff); min-width: 0; } .ab-wx-dl { font-weight: 700; font-size: .85rem; } .ab-wx-dt { font-variant-numeric: tabular-nums; } .ab-wx-dc { color: var(--jc-muted, #57758a); font-size: .8rem; overflow-wrap: anywhere; }
.ab-wx-src { margin: 10px 0 0; font-size: .8rem; color: var(--jc-muted, #57758a); }
.ab-sc-list { display: flex; flex-direction: column; } .ab-sc-row { display: grid; grid-template-columns: minmax(0, 1fr) 2.2em 1.4em minmax(0, 1fr) 2.2em auto; gap: 6px 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--jc-line, #d4dfe6); } .ab-sc-row:first-child { border-top: 0; } .ab-sc-t { overflow-wrap: anywhere; } .ab-sc-n { text-align: right; font-variant-numeric: tabular-nums; } .ab-sc-at { color: var(--jc-muted, #57758a); font-size: .8rem; text-align: center; } .ab-sc-w { font-weight: 800; } .ab-sc-st { color: var(--jc-muted, #57758a); font-size: .82rem; text-align: right; white-space: nowrap; }
@media (max-width: 560px) { .ab-sc-row { grid-template-columns: minmax(0, 1fr) 2.2em; } .ab-sc-at { display: none; } .ab-sc-st { grid-column: 1 / -1; text-align: left; } }

/* D768 WEB IMAGES: the source chip on every web photo (the site name, linked to its page) and the credit + Report line under wide figures / gallery tiles */
.ab-ph .ab-ph-src { z-index: 2; position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 7px; border-radius: 99px; background: rgba(16, 22, 28, .72); color: #fff; font: 600 .68rem/1.35 system-ui, sans-serif; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ab-ph .ab-ph-src:hover, .ab-ph .ab-ph-src:focus-visible { background: rgba(16, 22, 28, .92); text-decoration: underline; }
.ab-ph { position: relative; } .jc-webcredit { font-size: .8rem; color: var(--jc-muted, #57758a); } .jc-webcredit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; } .ab-webcr a { color: inherit; text-decoration: underline; }

/* D770 COLUMNS: two or three sides, borderless; a phone stacks them */
.ab-col-row { display: grid; grid-template-columns: repeat(var(--ab-cols, 2), minmax(0, 1fr)); gap: 8px 28px; } .ab-col { min-width: 0; } .ab-col-h { display: block; font-size: 1.05rem; line-height: 1.3; margin-bottom: 4px; } .ab-col-t { margin: 0; line-height: 1.5; color: var(--jc-ink, #25485d); overflow-wrap: anywhere; } .jc-mv > .ab-columns { margin: 0; }
@media (max-width: 600px) { .ab-col-row { grid-template-columns: minmax(0, 1fr); } .ab-col + .ab-col { margin-top: 8px; } }
/* COLUMNS are borderless (catalog): the inline wrapper drops its card box around them */
.jc-mv:has(> .ab-columns) { border: 0; background: none; padding: 0; box-shadow: none; }

/* INTERACTIVE WIDGETS (D782): the chess board */
.wg { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; max-width: 460px; }
.wg-title { margin: 0; } .wg-goal { margin: 0; font-weight: 600; }
.wg-bwrap { width: 100%; aspect-ratio: 1; touch-action: manipulation; } .wg-board { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.wg-l { fill: #ecd9b5; } .wg-d { fill: #b58863; } .wg-last { fill: #cdd26a; } .wg-sel { fill: #f6f669; } .wg-chk { fill: #e4604f; }
.wg-pc { font-size: 9.2px; font-family: 'Segoe UI Symbol', 'DejaVu Sans', 'Noto Sans Symbols 2', serif; pointer-events: none; } .wg-pw { fill: #fff; stroke: #222; stroke-width: .45px; paint-order: stroke; } .wg-pb { fill: #1c1c1c; stroke: #1c1c1c; stroke-width: .2px; }
.wg-dot { fill: rgba(20, 20, 20, .35); pointer-events: none; } .wg-cap { fill: none; stroke: rgba(20, 20, 20, .4); stroke-width: 1.1px; pointer-events: none; } .wg-co { font-size: 3.2px; fill: #888; pointer-events: none; font-family: system-ui, sans-serif; }
.wg-status { margin: 0; min-height: 1.4em; } .wg-moves { margin: 0; font-size: .92em; opacity: .8; overflow-wrap: anywhere; }
.wg-bar, .wg-promo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .wg-promo[hidden] { display: none; }
.wg-btn { min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(128, 128, 128, .45); background: transparent; color: inherit; font: inherit; cursor: pointer; } .wg-btn:disabled { opacity: .4; cursor: default; }

/* calculators (D782 family) */
.wg-calc { gap: 12px; } .wg-inputs { display: grid; gap: 12px; } .wg-in { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; } .wg-lab { font-size: .92em; opacity: .85; } .wg-rng { grid-column: 1 / -1; width: 100%; min-height: 32px; accent-color: #3e749e; margin: 0; }
.wg-numbox { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(128, 128, 128, .45); border-radius: 8px; padding: 0 10px; min-height: 40px; } .wg-num { width: 7.5em; border: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; text-align: right; min-width: 0; outline: none; font-variant-numeric: tabular-nums; } .wg-unit { opacity: .7; }
.wg-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; } .wg-res { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(128, 128, 128, .3); } .wg-res-main { border-color: #3e749e; grid-column: 1 / -1; } .wg-res-l { font-size: .85em; opacity: .75; } .wg-res-v { font-size: 1.25em; font-variant-numeric: tabular-nums; } .wg-res-main .wg-res-v { font-size: 1.7em; }
.wg-chartbox { width: 100%; } .wg-chart { display: block; width: 100%; height: auto; } .wg-ax { stroke: rgba(128, 128, 128, .5); stroke-width: .6; } .wg-line { stroke-width: 1.8; } .wg-s1.wg-line { stroke: #3e749e; } .wg-area.wg-s1 { fill: rgba(62, 116, 158, .18); } .wg-area.wg-s2 { fill: rgba(128, 128, 128, .22); } .wg-co2 { font-size: 7px; fill: #888; font-family: system-ui, sans-serif; }
.wg-legend { margin: 0; font-size: .85em; opacity: .75; } .wg-note { margin: 0; font-size: .82em; opacity: .7; }

/* a visual's place while it is still coming (answer_tidy.js holdMarkers): a skeleton at the visual's own height, swapped for the drawn card */
.mv-ph { position: relative; margin: 14px 0; border-radius: 12px; overflow: hidden; background: rgba(128, 128, 128, .12); display: flex; align-items: flex-end; } .mv-ph-bar { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transform: translateX(-100%); animation: mv-sh 1.4s ease-in-out infinite; } .mv-ph-cap { position: relative; padding: 10px 14px; font-size: .88em; opacity: .75; }
@keyframes mv-sh { to { transform: translateX(100%); } } @media (prefers-reduced-motion: reduce) { .mv-ph-bar { animation: none; } }

/* compact sources: badge + site name + linked title */
.ab-chip { flex-direction: row !important; align-items: center; gap: 8px; } .ab-chip-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: rgba(62, 116, 158, .16); color: var(--jc-accent, #2c6fdc); } .ab-chip-txt { display: flex; flex-direction: column; min-width: 0; }
.ab-sources .ab-chip { max-width: min(100%, 34rem); } .ab-sources .ab-chip-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.ab-ps{display:contents}

/* D789 (founder): every picture keeps its own aspect ratio (no cropping of maps or tall portraits), scaled to the chat width; the box follows the picture */
.ab-ph, .ab-ph.ab-ph-wide, .ab-land .ab-ph, .ab-gal-i .ab-ph, .ab-gal-strip .ab-gal-i .ab-ph, .ip-photo { aspect-ratio: auto; max-height: none; }
.ab-img, .ab-ph-wide .ab-img, .ab-gal-i .ab-img, .ab-gal-strip .ab-gal-i .ab-img, .ip-photo img { aspect-ratio: auto; height: auto; max-height: min(70vh, 560px); object-fit: contain; object-position: 50% 50%; }
.ab-ph.ab-ph-wide .ab-img { width: auto; max-width: 100%; margin: 0 auto; }
.ab-gal-g, .ab-imgrow { align-items: start; }
.jc-ep-photo { height: auto; min-height: 0; max-height: 240px; } .jc-ep-img { height: auto; max-height: 240px; object-fit: contain; }
.ab-ph[data-tap] { cursor: zoom-in; }
.ab-lb-credit { font-size: .85rem; opacity: .85; } .ab-lb-src { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
/* SOURCE CHIPS (D789): one pill per citation group */
html.answer-tidy .message-prose a.at-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 15rem; margin: 0 2px; padding: 1px 8px 1px 3px; vertical-align: .08em; border-radius: 999px; background: #eef1f4; color: #26333d; font: 600 .74rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none; white-space: nowrap; }
html.answer-tidy .message-prose a.at-chip:hover { background: #dfe6ec; }
.at-ico { flex: none; width: 1.2rem; height: 1.2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: hsl(var(--h, 210) 45% 88%); color: hsl(var(--h, 210) 55% 26%); font: 700 .66rem/1 system-ui, sans-serif; }
.at-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .at-more { flex: none; color: #5a6b78; font-weight: 700; }
:root[data-theme="dark"].answer-tidy .message-prose a.at-chip { background: #26313a; color: #dbe6ee; } :root[data-theme="dark"].answer-tidy .message-prose a.at-chip:hover { background: #30404c; }
:root[data-theme="dark"] .at-ico { background: hsl(var(--h, 210) 30% 28%); color: hsl(var(--h, 210) 70% 85%); } :root[data-theme="dark"] .at-more { color: #a9bac6; }
/* STAT CARDS + SIDES (FOUNDER 11-15, the two ChatGPT components): a stat card row = photo left, 'Title — year', a BIG number, a grey caption, a sentence or two, thin dividers;
   sides = a bordered box of 2-3 tinted columns (heading + items with a flag / emoji) and a grey footnote. Phone (<= 600px): the photo sits above the text, the columns stack. */
:root { --ab-sc-muted: #6b7480; --ab-sc-line: #e4e7eb; --ab-sd-line: #e1e4e8; --ab-sd-0: #eef1f8; --ab-sd-1: #f6f1eb; --ab-sd-2: #edf5f0; }
:root[data-theme="dark"] { --ab-sc-muted: #9ba7b3; --ab-sc-line: #2c3640; --ab-sd-line: #2f3a44; --ab-sd-0: #1b2533; --ab-sd-1: #2a241d; --ab-sd-2: #1b2a23; }
.jc-mv:has(> .ab-statcards), .jc-mv:has(> .ab-sides) { display: block; max-width: none; border: 0; background: none; padding: 0; box-shadow: none; color: inherit; }
.ab-statcards, .ab-sides { color: inherit; font-family: inherit; }
.ab-sc-list { display: flex; flex-direction: column; }
.ab-sc-row { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; }
.ab-sc-row:first-child { padding-top: 4px; } .ab-sc-row:last-child { padding-bottom: 4px; }
.ab-sc-row + .ab-sc-row { border-top: 1px solid var(--ab-sc-line); }
.ab-statcards .ab-sc-row .ab-ph.ab-sc-ph { flex: none; width: 168px; height: 124px; aspect-ratio: auto; max-height: none; margin: 0; border-radius: 14px; overflow: hidden; background: rgba(128,128,128,.12); }
.ab-statcards .ab-sc-row .ab-sc-ph .ab-img { display: block; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: center 30%; margin: 0; }
.ab-sc-body { flex: 1; min-width: 0; }
.ab-sc-t { margin: 0 0 4px; font-size: 1.06rem; line-height: 1.35; font-weight: 650; color: inherit; } .ab-sc-t a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.ab-sc-v { margin: 0; font-size: 1.6rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: inherit; }
.ab-sc-c { margin: 4px 0 0; font-size: .82rem; line-height: 1.4; color: var(--ab-sc-muted); }
.ab-sc-x { margin: 8px 0 0; font-size: 1rem; line-height: 1.6; color: inherit; }
.ab-sides { border: 1px solid var(--ab-sd-line); border-radius: 16px; padding: 12px; }
.ab-sides .ab-sd-title { margin: 2px 4px 10px; }
.ab-sd-row { display: grid; grid-template-columns: repeat(var(--ab-sd-cols, 2), minmax(0, 1fr)); gap: 12px; }
.ab-sd-col { min-width: 0; border-radius: 10px; padding: 14px 16px 12px; background: var(--ab-sd-0); } .ab-sd-c1 { background: var(--ab-sd-1); } .ab-sd-c2 { background: var(--ab-sd-2); }
.ab-sd-h { margin: 0 0 8px; font-size: 1.06rem; line-height: 1.35; font-weight: 600; color: inherit; }
.ab-sd-list { list-style: none; margin: 0; padding: 0; }
.ab-sd-i { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 5px 0; font-size: 1rem; line-height: 1.45; color: inherit; } .ab-sd-i::before { content: none; }
.ab-sd-ico { flex: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; font-size: .95em; line-height: 1; }
.ab-sd-tx { min-width: 0; }
.ab-sd-note { margin: 12px 4px 2px; font-size: .88rem; line-height: 1.45; color: var(--ab-sc-muted); }
@media (max-width: 600px) {
  .ab-sc-row { flex-direction: column; gap: 10px; }
  .ab-statcards .ab-sc-row .ab-ph.ab-sc-ph { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .ab-sc-v { font-size: 1.45rem; }
  .ab-sd-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ab-sides { padding: 10px; }
}
/* inside the chat answer (.message-prose sets its own h4 / p / ul / li margins, indents and heading colour): the stat cards and sides keep their own spacing */
.ab-statcards .ab-sc-body .ab-sc-t { margin: 0 0 4px; color: inherit; font-size: 1.06rem; font-weight: 650; letter-spacing: normal; line-height: 1.35; }
.ab-statcards .ab-sc-body .ab-sc-v { margin: 0; } .ab-statcards .ab-sc-body .ab-sc-c { margin: 4px 0 0; } .ab-statcards .ab-sc-body .ab-sc-x { margin: 8px 0 0; }
.ab-sides .ab-sd-col .ab-sd-h { margin: 0 0 6px; color: inherit; font-size: 1.06rem; font-weight: 600; letter-spacing: normal; line-height: 1.35; }
.ab-sides .ab-sd-col .ab-sd-list { margin: 0; padding: 0; list-style: none; } .ab-sides .ab-sd-list .ab-sd-i { margin: 0; padding: 5px 0; } .ab-sides .ab-sd-list .ab-sd-i::marker { content: ''; }
.ab-sides > .ab-sd-note { margin: 12px 4px 2px; } .ab-sides > .ab-h.ab-sd-title { margin: 2px 4px 10px; }
.jc-mv:has(> .ab-statcards) > .ab-credits { margin: 10px 0 0; }
/* every stat card photo: the same rounded box, cover-cropped, with a hairline frame so a light picture (a map, a white background) still shows its rounded corners */
.ab-statcards .ab-sc-row .ab-ph.ab-sc-ph { position: relative; isolation: isolate; }
.ab-statcards .ab-sc-row .ab-ph.ab-sc-ph::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.10); pointer-events: none; z-index: 1; }
:root[data-theme="dark"] .ab-statcards .ab-sc-row .ab-ph.ab-sc-ph::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ab-statcards .ab-sc-row .ab-sc-ph .ab-img { border-radius: inherit; }
/* TOP GALLERY (11-15 readback: the pictures-first card sent 4 photos, the top strip showed 1-2): the '...:pf' card is ONE compact strip above the answer (ChatGPT style) that keeps
   every photo and never pushes the first words off the screen: desktop up to 4 across, about 200 px tall; phone one row of 132 px tiles that scrolls sideways inside the strip
   (snap; the page itself never scrolls sideways). Name on one line, licence credit on one small line (the full credit is the tile's title and opens with the photo). */
.jc-ephotos.jc-ep-top { margin: 2px 0 14px; }
.jc-ephotos.jc-ep-top .jc-ep-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; overflow: visible; scroll-snap-type: none; padding: 0; }
.jc-ephotos.jc-ep-top .jc-ep-row:has(> .jc-ep-tile:nth-child(5)) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, calc(25% - 8px)); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 4px; }
.jc-ephotos.jc-ep-top .jc-ep-tile { flex: none; width: auto; min-width: 0; padding: 6px 6px 7px; gap: 1px; }
.jc-ephotos.jc-ep-top .jc-ep-photo { height: 100px; min-height: 0; max-height: none; margin-bottom: 5px; border-radius: 8px; }
.jc-ephotos.jc-ep-top .jc-ep-img { height: 100%; max-height: none; object-fit: cover; }
.jc-ephotos.jc-ep-top .jc-ep-name { font-size: .86rem; }
.jc-ephotos.jc-ep-top .jc-ep-cap { font-size: .76rem; }
.jc-ephotos.jc-ep-top .jc-ep-credit { -webkit-line-clamp: 1; font-size: 10px; margin-top: 1px; }
@media (max-width: 600px) {
  .jc-ephotos.jc-ep-top .jc-ep-row, .jc-ephotos.jc-ep-top .jc-ep-row:has(> .jc-ep-tile:nth-child(5)) { display: flex; grid-template-columns: none; gap: 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 0 2px; }
  .jc-ephotos.jc-ep-top .jc-ep-row::-webkit-scrollbar { display: none; }
  .jc-ephotos.jc-ep-top .jc-ep-tile { flex: 0 0 132px; scroll-snap-align: start; padding: 5px 5px 6px; }
  .jc-ephotos.jc-ep-top .jc-ep-photo { height: 84px; margin-bottom: 4px; }
  .jc-ephotos.jc-ep-top .jc-ep-cap { display: none; }
  .jc-ephotos.jc-ep-top .jc-ep-name { font-size: .8rem; }
}
/* PHONE TOP LAYOUT (11-15 iPhone readback: a photo card squeezed into a narrow column beside a floated photo, its name breaking 'Assassinat/ion'):
   (1) a card or block never sits beside a floated photo: it starts under it, full width; (2) inside cards and headings a word breaks only when it cannot fit a line on its own
   (.message sets overflow-wrap:anywhere, which also lets a box shrink to one letter wide beside a float). */
.message .jc-card, .message .jc-ab, .message-prose > :is(hr, h1, h2, table, figure, pre) { clear: both; }
.message .jc-ephotos, .message .jc-ephotos *, .message .jc-mv .ab-gal-cap, .message .jc-mv figcaption, .message-prose :is(h1, h2, h3, h4, h5, h6), .message .ab-sc-t, .message .ab-name { overflow-wrap: break-word; word-break: normal; }
.message .jc-card.jc-ephotos, .message .jc-card.jc-mv { min-width: min(100%, 280px); }
@media (max-width: 600px) { .message .jc-card.jc-ephotos, .message .jc-card.jc-mv { width: 100%; box-sizing: border-box; } }
/* PENDING PICTURE (11-16e: a hero whose photo stalled showed only its caption + credit in an empty frame): until the picture has pixels its figure shows no caption and a
   picture-only card shows no frame, so nothing empty is ever on screen; the picture keeps its place in the layout (a lazy picture still loads). answer_tidy.js sets / clears it. */
figure.ab-fig.ab-pending > figcaption, figure.jc-img.ab-pending > figcaption, .jc-mv.ab-pending > .ab-credits { display: none; }
.jc-card.jc-mv.ab-pending { border-color: transparent; background: transparent; box-shadow: none; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; }
