/* OpenVibe.News — readable, theme-token driven (openvibe-shared presets). No JavaScript needed. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-primary, #0a0f1c); color: var(--text-primary, #e6edf7); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-light, #60a5fa); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent, #3b82f6); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg-card, #131c2e); padding: 8px 12px; z-index: 10; }
.account-bar { max-width: 820px; margin: 0 auto; padding: 6px 16px 0; text-align: right; font-size: 14px; color: var(--text-secondary, #96a7c2); }
.page { max-width: 820px; margin: 0 auto; padding: 16px 16px 64px; min-height: 60vh; }
body.editor .page { max-width: 1000px; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 1.2rem 0 .6rem; }
h2 { font-size: 1.35rem; margin: 1.6rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 1.2rem 0 .4rem; }
.lede { color: var(--text-secondary, #96a7c2); font-size: 1.1rem; }
.meta, .byline, .empty { color: var(--text-muted, #7386a3); font-size: .9rem; }
.small { font-size: .85rem; }
.badge { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border-light, #2c3d5c); color: var(--text-secondary); vertical-align: middle; }
.badge-retracted { border-color: var(--danger, #ef4444); color: var(--danger, #ef4444); }
.story-list, .topic-list { list-style: none; padding: 0; }
.topic-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.topic-list.wide { display: block; }
.story-item { padding: 14px 0; border-bottom: 1px solid var(--border, #1f2d47); }
.story-item.retracted .story-item-title a { text-decoration: line-through; }
.story-item-title { margin: 0 0 4px; font-size: 1.3rem; }
.story-item-title a { color: var(--text-primary); text-decoration: none; }
.story-item-title a:hover { text-decoration: underline; }
.summary { margin: 6px 0; }
.story-body p.unsupported { opacity: .7; }
sup.cites { font-size: .7rem; margin-left: 2px; }
sup.cites a { text-decoration: none; }
.retraction { border: 2px solid var(--danger, #ef4444); border-radius: 10px; padding: 8px 16px; margin: 12px 0; }
.retraction h2 { margin-top: .4rem; color: var(--danger, #ef4444); }
.disclosure { border: 1px solid var(--warning, #f59e0b); border-radius: 8px; padding: 8px 12px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border, #1f2d47); vertical-align: top; }
table.sources tr.removed td, tr.detached td { color: var(--text-muted, #7386a3); }
table.sources tr:target { background: var(--bg-card, #131c2e); }
.source-summary { margin: 4px 0 0; font-size: .9rem; color: var(--text-secondary, #96a7c2); }
.framing { font-size: .9rem; }
.timeline ol { padding-left: 1.2rem; }
.comments { margin-top: 28px; border-top: 1px solid var(--border, #1f2d47); }
.comment-list, .comments .replies { list-style: none; padding-left: 0; }
.comments .replies { margin-left: 1.2rem; border-left: 2px solid var(--border, #1f2d47); padding-left: 10px; }
.comment { margin: 12px 0; }
.comment p { margin: 4px 0; }
.comment-form textarea { font-family: inherit; }
.ov-breadcrumbs ol { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; }
.ov-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-muted); }
.ov-pagination { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.notice { border-left: 3px solid var(--info, #38bdf8); padding: 6px 12px; background: var(--bg-card, #131c2e); }
.notice.error { border-color: var(--danger, #ef4444); }
.card { border: 1px solid var(--border, #1f2d47); border-radius: 10px; padding: 12px 16px; margin: 16px 0; background: var(--bg-card, #131c2e); }
.card.warn { border-color: var(--warning, #f59e0b); }
label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: .95rem; }
label input[type=checkbox] { margin-right: 6px; }
input, textarea, select { width: 100%; font: inherit; color: var(--text-primary); background: var(--bg-input, #0d1424); border: 1px solid var(--border-light, #2c3d5c); border-radius: 6px; padding: 8px 10px; }
input[type=checkbox] { width: auto; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
button, .button { display: inline-block; margin-top: 10px; font: inherit; font-weight: 600; background: var(--accent-strong, var(--accent, #3472d8)); color: var(--on-accent-strong, var(--on-accent, #fff)); border: 0; border-radius: 6px; padding: 8px 16px; cursor: pointer; text-decoration: none; }
form.inline { display: inline; }
form.inline select { width: auto; }
form.inline button { margin: 0 0 0 8px; padding: 2px 10px; font-size: .85rem; }
.ov-diff ins { background: rgba(34,197,94,.25); text-decoration: none; }
.ov-diff del { background: rgba(239,68,68,.25); }
.ov-diff { white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 600px) { h1 { font-size: 1.7rem; } body { font-size: 16px; } table { font-size: .85rem; } }
.wire { margin-top: 32px; border-top: 1px solid var(--border, #1f2d47); }
/* Front page: the showcase lines up with .page's own padding, and the page's section headings match its h2. */
.page>.sc-hero,.page>.sc-sec,.page>.sc-cta{padding-left:0;padding-right:0}
.sc-sec~.site-header>h2,.wire>h2,.sc-sec~.side>h2{font:700 clamp(22px,2.6vw,30px)/1.2 var(--ov-font,'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif);letter-spacing:-.02em}
.sc-sec~.site-header{margin-top:56px}
.feeds{font-size:.9rem;color:var(--text-muted,#7386a3)}
.feeds a{display:inline-block;margin:2px 4px 2px 0;padding:1px 10px;border:1px solid var(--border-light,#2c3d5c);border-radius:999px;text-decoration:none}
.feeds a:hover{border-color:var(--accent,#3b82f6)}
.wire-list, .wire-items { list-style: none; padding: 0; }
.wire-cluster { padding: 10px 0; border-bottom: 1px solid var(--border, #1f2d47); overflow-wrap: anywhere; }
.wire-lead { margin: 0; font-weight: 600; }
.wire a { color: var(--text-primary); }
/* The front page (render/home.js): a wider column, the numbers beside the hero, brief cards, topics, outlets. */
body.news-home .page { max-width: 1120px; }
.nh-panel { padding: 18px; border: 1px solid var(--border, #1f2d47); border-radius: 16px; background: var(--bg-card, #131c2e); }
.page .nh-panel-h { margin: 0 0 12px; font-size: 1rem; }
.nh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.nh-stats div { display: flex; flex-direction: column-reverse; padding: 10px 12px; border: 1px solid var(--border, #1f2d47); border-radius: 12px; background: var(--bg-primary, #0a0f1c); }
.nh-stats dt { font-size: 13px; line-height: 1.35; color: var(--text-secondary, #96a7c2); }
.nh-stats dd { margin: 0; font-size: 1.55rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.nh-live { margin: 12px 0 0; font-size: .95rem; }
.live-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: #ef4444; vertical-align: middle; }
.badge-ai { background: color-mix(in srgb, #a78bfa 18%, transparent); color: color-mix(in srgb, #8b5cf6 70%, var(--text-primary, #e6edf7)); border: 1px solid color-mix(in srgb, #a78bfa 45%, transparent); }
.nh-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.nh-card { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px; border: 1px solid var(--border, #1f2d47); border-radius: 14px; background: var(--bg-card, #131c2e); }
.nh-card h3 { margin: 4px 0; font-size: 1.05rem; line-height: 1.35; }
.nh-card h3 a { color: var(--text-primary, #e6edf7); text-decoration: none; }
.nh-card h3 a:hover { text-decoration: underline; }
.nh-card .meta { margin: 0; color: var(--text-secondary, #96a7c2); }
.nh-kicker { margin: 0; font-size: .85rem; color: var(--text-secondary, #96a7c2); }
.nh-kicker .badge-ai { color: color-mix(in srgb, #8b5cf6 55%, var(--text-primary, #e6edf7)); }   /* 4.49:1 at 70% on a card */
.nh-sum { margin: 6px 0 0; font-size: .95rem; color: var(--text-secondary, #96a7c2); display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nh-more { margin: 14px 0 0; }
.nh-wire .wire { margin-top: 0; border-top: 0; }
.nh-wire .meta { color: var(--text-secondary, #96a7c2); }
.nh-topics, .nh-outlets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.nh-topics li, .nh-outlets li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border: 1px solid var(--border, #1f2d47); border-radius: 14px; background: var(--bg-card, #131c2e); overflow-wrap: anywhere; }
.nh-topics h3 { margin: 0; font-size: 1.05rem; }
.nh-topics p { margin: 0; }
.nh-count { font-size: .88rem; color: var(--text-secondary, #96a7c2); }
.nh-latest { font-size: .92rem; line-height: 1.45; }
.nh-latest a { color: var(--text-primary, #e6edf7); }
.nh-latest .meta, .nh-topics .meta { color: var(--text-secondary, #96a7c2); font-size: .85rem; }
.nh-faq details { border-bottom: 1px solid var(--border, #1f2d47); padding: 10px 0; }
.nh-faq summary { cursor: pointer; font-weight: 600; }
.nh-faq details p { margin: 8px 0 0; color: var(--text-secondary, #96a7c2); max-width: 760px; }
.nh-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.nh-links a { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--border, #1f2d47); border-radius: 12px; background: var(--bg-card, #131c2e); color: var(--text-primary, #e6edf7); text-decoration: none; }
.nh-links a:hover { border-color: var(--accent, #3b82f6); }
.nh-links b { display: block; }
.nh-links small { display: block; color: var(--text-secondary, #96a7c2); font-size: .88rem; line-height: 1.45; }
@media (max-width: 560px) { .nh-stats dd { font-size: 1.3rem; } .nh-card .nh-sum { -webkit-line-clamp: 3; line-clamp: 3; } }
