/* SubHub Blog, public site. Tokens first, then layout, then components. */
:root {
  --sub: #000000;
  --hub: #00aaff;
  --hub-d: #0077b6;
  --hub-soft: #e8f7ff;
  --ink: #0a0a0a;
  --text: #1b1f23;
  --muted: #5b6670;
  --line: #e4e8ec;
  --paper: #f4f6f8;
  --white: #ffffff;
  --red: #e11d2e;
  --good: #0f8a4f;
  --warn: #b45309;
  --brand-weight: 800;
  --logo-size: 52px;
  --max: 1200px;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: var(--white); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hub-d); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--hub); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(28px, 4.4vw, 46px); }
h2 { font-weight: 800; font-size: clamp(21px, 2.6vw, 28px); }
h3 { font-weight: 700; font-size: 18px; }
p { margin: 0 0 1em; }
.i { flex: none; vertical-align: -0.2em; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; padding: 10px 16px; font: 700 14px/1.2 var(--sans); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--hub); color: #00131c; }
.btn-primary:hover { background: #33bbff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #222; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* Top bar */
.topbar { background: var(--sub); color: #d6dde3; font-size: 13px; }
.topbar-row { display: flex; align-items: center; gap: 18px; min-height: 38px; }
.topbar .date { display: inline-flex; align-items: center; gap: 6px; color: #aab5bd; white-space: nowrap; }
.ticker { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; font-weight: 800; padding: 3px 9px; border-radius: 4px; font-size: 12px; }
.ticker-items { position: relative; flex: 1; min-width: 0; height: 22px; overflow: hidden; }
.ticker-items a { position: absolute; inset: 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .4s; pointer-events: none; font-weight: 600; }
.ticker-items a.on { opacity: 1; pointer-events: auto; }
.top-social { display: flex; gap: 4px; margin-left: auto; }
.top-social a { color: #aab5bd; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; }
.top-social a:hover { color: var(--hub); background: rgba(255,255,255,.08); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: calc(var(--logo-size) + 28px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: var(--logo-size); height: var(--logo-size); object-fit: contain; }
.wordmark { display: inline-flex; align-items: baseline; font-weight: var(--brand-weight); font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.035em; line-height: 1; }
.w-sub { color: var(--sub); }
.w-hub { color: var(--hub); }
.wordmark small { margin-left: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.head-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.head-search:focus-within { border-color: var(--hub); background: #fff; }
.head-search input { border: 0; background: transparent; padding: 9px 12px; font: 500 14px var(--sans); width: 210px; outline: none; }
.head-search button { border: 0; background: transparent; padding: 0 12px; color: var(--muted); cursor: pointer; display: grid; place-items: center; height: 38px; }
.icon-btn { display: none; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }

/* Nav */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.nav-row { display: flex; align-items: center; gap: 2px; min-height: 48px; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 12px 12px; color: var(--ink); font-weight: 700; font-size: 14px; border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--hub-d); text-decoration: none; }
.nav-link.active { border-bottom-color: var(--hub); }
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more[open] summary { color: var(--hub-d); }
.nav-pop { position: absolute; top: 100%; right: 0; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 40px rgba(0,0,0,.14); padding: 6px; z-index: 60; }
.nav-pop a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 6px; color: var(--ink); font-weight: 600; font-size: 14px; }
.nav-pop a:hover { background: var(--paper); text-decoration: none; }
.nav-cta { margin-left: auto; }

/* Mobile drawer */
.drawer-back { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: #fff; z-index: 100; transform: translateX(-102%); transition: transform .22s ease; display: flex; flex-direction: column; overflow-y: auto; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-back { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer .head-search { margin: 14px 16px 6px; }
.drawer .head-search input { flex: 1; width: auto; min-width: 0; }
.drawer-nav { padding: 6px 10px; display: grid; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 8px; color: var(--ink); font-weight: 700; }
.drawer-nav a:hover { background: var(--paper); text-decoration: none; }
.drawer-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.social-row a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.social-row a:hover { background: var(--hub); border-color: var(--hub); color: #00131c; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; padding: 32px 0 8px; align-items: start; }
.main-col { min-width: 0; }
.side { min-width: 0; display: grid; gap: 28px; }
.side-sticky { position: sticky; top: 64px; }
.section { padding: 36px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sec-head h2 { margin: 0; font-size: 22px; padding-left: 12px; border-left: 4px solid var(--hub); line-height: 1.1; }
.sec-head a { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }

/* Posts */
.thumb { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 9; background: var(--paper); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post:hover .thumb img { transform: scale(1.03); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.75); background: linear-gradient(135deg, #0a0a0a 0%, #05384e 55%, #00aaff 120%); }
.tag { position: absolute; left: 8px; top: 8px; border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 800; color: #fff; }
.tag-break { background: var(--red); }
.tag-live { background: var(--red); }
.tag-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 6px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; color: var(--hub-d); margin-bottom: 4px; }
a.kicker:hover { text-decoration: underline; }
.post-title { margin: 0 0 6px; font-size: 18px; line-height: 1.25; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--hub-d); text-decoration: none; }
.post-ex { color: var(--muted); font-size: 15px; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta, .meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin: 0; }
.post-meta span, .meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-card { display: grid; gap: 12px; }
.post-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-row:first-child { padding-top: 0; }
.post-row .post-title { font-size: 20px; }
.post-sm { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.post-sm:last-child { border-bottom: 0; padding-bottom: 0; }
.post-sm .thumb { aspect-ratio: 4 / 3; }
.post-sm .post-title { font-size: 15px; margin: 0 0 4px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; padding: 28px 0 8px; }
.lead { position: relative; display: block; border-radius: 8px; overflow: hidden; min-height: 440px; color: #fff; background: #000; }
.lead:hover { text-decoration: none; }
.lead .lead-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .5s; }
.lead:hover .lead-img { transform: scale(1.02); }
.lead .ph { opacity: 1; }
.lead-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 28px 26px; background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 55%, transparent 100%); }
.lead h2 { color: #fff; font-size: clamp(24px, 3.2vw, 38px); margin: 8px 0; }
.lead p { color: #d4dce2; margin: 0 0 10px; max-width: 62ch; }
.lead .kicker { color: var(--hub); }
.lead .post-meta { color: #b9c4cc; }
.hero-side { display: grid; align-content: start; }
.hero-side .post-sm:first-child { padding-top: 0; }

/* Widgets */
.widget { border-top: 3px solid var(--ink); padding-top: 14px; }
.widget h2, .widget .w-title { font-size: 18px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.trend-list { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.trend-list li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: start; }
.trend-list li:last-child { border-bottom: 0; }
.trend-list li::before { content: counter(t); font-weight: 800; font-size: 26px; line-height: 1; color: var(--hub); }
.trend-list a { color: var(--ink); font-weight: 700; line-height: 1.3; }
.trend-list a:hover { color: var(--hub-d); text-decoration: none; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list a:hover { color: var(--hub-d); text-decoration: none; }
.cat-list .i { color: var(--hub-d); }
.news-box { background: var(--ink); color: #dfe6ea; border-radius: 8px; padding: 20px; border-top: 0; }
.news-box h2 { color: #fff; }
.news-box p { color: #aab5bd; font-size: 14px; }
.newsletter { display: grid; gap: 8px; }
.newsletter input[type=email] { width: 100%; border: 1px solid #2a3238; background: #151a1e; color: #fff; border-radius: 6px; padding: 12px 14px; font: 500 15px var(--sans); }
.newsletter input[type=email]::placeholder { color: #7d8993; }
.newsletter .btn { width: 100%; }
.news-msg { font-size: 13px; margin: 8px 0 0; color: var(--hub); min-height: 1em; }
.news-note { font-size: 12px; color: #7d8993; margin: 8px 0 0; }

/* Ads */
.ad { position: relative; margin: 0 auto; max-width: 100%; text-align: center; }
.ad-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.ad img { margin: 0 auto; border-radius: 4px; }
.ad-code { overflow: hidden; }
.ad-header-banner, .ad-footer-banner, .ad-home-mid { padding: 14px 0; }
.ad-in-article { margin: 28px auto; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-article-end { margin: 32px 0; text-align: left; }
.ad-sidebar-sticky { position: sticky; top: 64px; }
.promo { border: 1px solid var(--line); border-left: 4px solid var(--hub); border-radius: 6px; padding: 18px 20px; text-align: left; background: var(--hub-soft); }
.promo-title { display: block; font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.promo p { color: var(--text); font-size: 14.5px; margin: 0 0 12px; }

/* Article */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--hub-d); }
.crumbs .i { opacity: .6; }
.article-head h1 { margin: 6px 0 12px; }
.standfirst { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: #3a444c; font-weight: 500; margin: 0 0 18px; }
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--hub); font-weight: 800; flex: none; }
.byline-text { font-size: 14px; display: grid; gap: 1px; }
.byline-text a { color: var(--ink); font-weight: 800; }
.byline-text .meta { gap: 4px 10px; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.byline .share { margin-left: auto; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font: 700 13px var(--sans); }
.share a:hover, .share button:hover { background: var(--hub); border-color: var(--hub); color: #00131c; text-decoration: none; }
.share .share-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.hero-img { margin: 0 0 24px; }
.hero-img img { width: 100%; border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-img figcaption, .article-body figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }
.article-body { font-family: var(--serif); font-size: 19px; line-height: 1.78; color: #1a2026; max-width: 74ch; }
.article-body h2, .article-body h3, .article-body h4 { margin-top: 1.7em; scroll-margin-top: 70px; }
.article-body h2 { font-size: 26px; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1.15em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: .4em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--hub); font-style: italic; color: #2c363e; }
.article-body blockquote p { margin: 0; }
.article-body img { border-radius: 6px; margin: 1.2em auto; }
.article-body figure { margin: 1.6em 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-body pre { background: #0f1418; color: #e4ecf1; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.article-body code { font-size: .88em; background: var(--paper); padding: 2px 5px; border-radius: 4px; }
.article-body pre code { background: none; padding: 0; }
.table-scroll { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 8px; }
.article-body table, .table-scroll table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; min-width: 460px; }
.article-body th, .article-body td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { background: var(--paper); color: var(--ink); font-weight: 800; }
.callout { font-family: var(--sans); font-size: 16px; line-height: 1.55; border-radius: 8px; padding: 14px 18px; margin: 1.5em 0; border: 1px solid var(--line); border-left-width: 5px; background: var(--paper); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 4px; color: var(--ink); }
.callout-tip { border-left-color: var(--hub); background: var(--hub-soft); }
.callout-warning { border-left-color: var(--warn); background: #fff6e8; }
.callout-info, .callout-note { border-left-color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.tags a { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.tags a:hover { border-color: var(--hub); text-decoration: none; }
.faq { margin: 34px 0; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--hub-d); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 10px 0 0; color: #3a444c; }
.sources { font-size: 14px; }
.sources h2 { font-size: 18px; }
.author-box { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; background: var(--paper); border-radius: 8px; margin: 30px 0; }
.author-box .avatar { width: 56px; height: 56px; font-size: 20px; }
.author-box p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.live-head { display: flex; align-items: center; gap: 10px; margin: 8px 0 18px; font-weight: 800; }
.timeline { list-style: none; margin: 0 0 26px; padding: 0 0 0 22px; border-left: 3px solid var(--red); }
.timeline li { position: relative; padding: 0 0 26px 20px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline time { font-weight: 800; font-size: 13px; color: var(--red); display: block; margin-bottom: 2px; }
.timeline h3 { margin: 0 0 6px; }
.timeline .upd-body { font-family: var(--serif); font-size: 18px; line-height: 1.7; }
.toc ol { margin: 0; padding-left: 18px; font-size: 14.5px; display: grid; gap: 7px; }
.toc a { color: var(--ink); font-weight: 600; }
.toc a:hover { color: var(--hub-d); }
.related { margin-top: 38px; }
.preview-banner { background: var(--red); color: #fff; text-align: center; font-weight: 700; padding: 6px 12px; font-size: 13px; }

/* Page headers and pagination */
.page-head { padding: 34px 0 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--hub-soft), #fff); }
.page-head h1 { margin: 6px 0 8px; }
.page-head p { color: var(--muted); max-width: 70ch; margin: 0; font-size: 17px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 30px 0; }
.pager a, .pager span { padding: 9px 16px; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.pager a:hover { border-color: var(--hub); text-decoration: none; }
.searchbar { display: flex; gap: 8px; margin: 14px 0; }
.searchbar input { flex: 1; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; font: 500 16px var(--sans); }
.empty { padding: 40px 0; color: var(--muted); }
.error-hero { padding: 56px 0 24px; }
.error-hero .code { font-size: clamp(64px, 14vw, 140px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--hub); margin: 0; }

/* Footer */
.site-footer { background: #050607; color: #b6c0c7; margin-top: 56px; }
.foot-top { display: grid; grid-template-columns: minmax(240px, 1.2fr) 3fr; gap: 40px; padding: 52px 0 36px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.site-footer .w-sub { color: #fff; }
.site-footer .wordmark small { color: #8b97a0; }
.foot-about { margin: 14px 0 18px; font-size: 14.5px; max-width: 38ch; color: #98a4ad; }
.site-footer .social-row a { border-color: #262d33; color: #cdd6dc; }
.site-footer h3 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.foot-links a { color: #b6c0c7; }
.foot-links a:hover { color: var(--hub); text-decoration: none; }
.foot-news { border-top: 1px solid #1b2127; border-bottom: 1px solid #1b2127; padding: 26px 0; display: grid; grid-template-columns: 1fr minmax(280px, 460px); gap: 24px; align-items: center; }
.foot-news h3 { font-size: 20px; margin: 0 0 4px; }
.foot-news p { margin: 0; font-size: 14.5px; color: #98a4ad; }
.foot-news .newsletter { grid-template-columns: 1fr auto; }
.foot-news .newsletter .btn { width: auto; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding: 20px 0 28px; font-size: 13.5px; color: #7d8993; }
.foot-bottom a { color: #b6c0c7; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }

/* Legacy comparison pages */
.hero { background: linear-gradient(180deg, var(--hub-soft), #fff); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.lede { font-size: 18px; color: var(--muted); max-width: 640px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.card h2, .card h3 { margin: 0 0 8px; font-size: 18px; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; background: var(--paper); color: var(--muted); }
.badge-ok { background: #e8f7ef; color: var(--good); }
.badge-warn { background: #fff4e5; color: var(--warn); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; }
.compare-table thead th { background: var(--ink); color: #fff; }
.score { font-variant-numeric: tabular-nums; font-weight: 800; }
.entity-block { border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin: 16px 0; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-row a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink); font-weight: 600; }
.filter-row a.active { background: var(--ink); color: #fff; }
.stack-cards { display: none; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.layout-article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
.toc.card { position: sticky; top: 70px; }

@media (max-width: 1020px) {
  .layout, .layout-article { grid-template-columns: 1fr; gap: 28px; }
  .side-sticky, .ad-sidebar-sticky { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .lead { min-height: 380px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr; }
  .foot-news { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .head-search, .nav-row .nav-link, .nav-more, .nav-cta, .topbar .date, .header-tools .btn { display: none; }
  .icon-btn { display: grid; }
  .navbar { display: none; }
  .header-row { gap: 12px; }
  .header-tools { margin-left: auto; }
  .top-social { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 112px 1fr; gap: 12px; }
  .post-row .post-ex { display: none; }
  .post-row .post-title { font-size: 16px; }
  .lead { min-height: 340px; }
  .lead-body { padding: 56px 18px 18px; }
  .lead p { display: none; }
  .article-body { font-size: 18px; }
  .byline .share { margin-left: 0; width: 100%; }
  .foot-top { grid-template-columns: 1fr; padding-top: 36px; }
  .stack-cards { display: grid; gap: 12px; }
  .desktop-table { display: none; }
  .foot-news .newsletter { grid-template-columns: 1fr; }
  .layout { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .navbar, .site-header, .site-footer, .side, .share, .ad, .tags { display: none !important; }
  .layout { grid-template-columns: 1fr; }
}

/* Sliders (hero, live, story pictures, ads). Native scroll snapping so swiping works on phones. */
.slider { position: relative; min-width: 0; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: 8px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; margin: 0; }
.sl-dots { display: flex; gap: 7px; justify-content: center; align-items: center; padding: 10px 0 2px; }
.sl-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: #c3ccd4; cursor: pointer; transition: width .2s, background .2s; }
.sl-dots button[aria-selected="true"] { width: 26px; background: var(--hub); }
.sl-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.slider:hover .sl-btn, .sl-btn:focus-visible { opacity: 1; }
.sl-prev { left: 12px; }
.sl-next { right: 12px; }
@media (hover: none) { .sl-btn { display: none; } }
.hero-slider .sl-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; padding: 0; pointer-events: none; }
.hero-slider .sl-dots button { pointer-events: auto; background: rgba(255,255,255,.55); }
.hero-slider .sl-dots button[aria-selected="true"] { background: var(--hub); }
.hero-slider .lead-body { padding-bottom: 38px; }
.live-strip { padding-top: 18px; }
.live-strip .lead { min-height: 300px; }
.gallery { margin: 0 0 24px; }
.gallery .slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }
.ad-slider .slider { text-align: left; }
.ad-slider .slide { padding: 0 1px; }
.ad-slider .sl-dots { padding-top: 6px; }
.article-body figure.video video { width: 100%; border-radius: 8px; background: #000; max-height: 70vh; }
.announce { font-size: 14px; font-weight: 700; text-align: center; padding: 8px 0; }
.announce a { color: inherit; display: inline-flex; gap: 6px; align-items: center; }
.announce-info { background: var(--hub); color: #00131c; }
.announce-alert { background: var(--red); color: #fff; }
.announce-dark { background: #111; color: #fff; }

.lead .ph { place-items: start end; padding: 22px; }

/* Comparison pages */
.cmp-h { margin: 34px 0 14px; }
.callout-box { display: flex; gap: 10px; align-items: flex-start; background: var(--hub-soft); border: 1px solid #bfe8ff; border-radius: 8px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 20px; }
.rank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.rank-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: #fff; display: grid; gap: 6px; align-content: start; }
.rank-card.top { border-color: var(--hub); box-shadow: 0 0 0 3px rgba(0,170,255,.15); }
.rank-card p { margin: 0; font-size: 14.5px; }
.rank-top { display: flex; align-items: center; gap: 10px; }
.rank-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--hub); display: grid; place-items: center; font-weight: 800; flex: none; }
.rank-score { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin: 6px 0; }
.rank-score small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.matrix { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.matrix th, .matrix td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix thead th { background: var(--ink); color: #fff; font-weight: 800; position: sticky; top: 0; }
.matrix tbody th { background: #fafbfc; font-weight: 700; color: var(--ink); min-width: 160px; }
.matrix tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.matrix tr.total td, .matrix tr.total th { background: var(--hub-soft); font-size: 16px; }
.matrix .yes { color: var(--good); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.matrix .no { color: var(--red); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.matrix .sc b { font-size: 17px; }
.scbar { display: block; height: 6px; background: #e8edf1; border-radius: 99px; margin-top: 6px; overflow: hidden; max-width: 140px; }
.scbar i { display: block; height: 100%; background: var(--hub); }
.matrix .src { margin-left: 6px; color: var(--muted); }
.matrix .warnt { display: block; color: var(--warn); font-size: 12px; margin-top: 3px; }
.pc { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.pc li { display: flex; gap: 8px; align-items: flex-start; }
.pc.pro .i { color: var(--good); margin-top: 3px; }
.pc.con .i { color: var(--red); margin-top: 3px; }
.verdict { display: flex; gap: 14px; background: var(--ink); color: #e7edf1; border-radius: 10px; padding: 20px 22px; }
.verdict .i { color: var(--hub); flex: none; margin-top: 2px; }
.verdict p { margin: 0; font-size: 17px; line-height: 1.6; }
.method { margin-top: 30px; padding: 18px; background: var(--paper); border-radius: 8px; font-size: 14.5px; }
.method h2 { font-size: 18px; }

.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
