/* =====================================================================
   Hispion News v2 — glass UI
   ===================================================================== */
:root {
    --bg: #060a18;
    --bg-2: #0b1229;
    --panel: rgba(13, 20, 42, 0.72);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-2: rgba(255, 255, 255, 0.085);
    --glass-strong: rgba(15, 22, 46, 0.86);
    --border: rgba(255, 255, 255, 0.10);
    --border-2: rgba(255, 255, 255, 0.18);
    --text: #e8eefb;
    --text-2: #c3cde0;
    --body: #d5ddeb;
    --muted: #8b97b0;
    --primary: #22d3ee;
    --primary-2: #0ea5e9;
    --accent: #8b5cf6;
    --accent-2: #a78bfa;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #fb7185;
    --breaking: #f43f5e;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    --blur: blur(18px) saturate(150%);
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --mono: ui-monospace, 'JetBrains Mono', Consolas, monospace;
    --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: #67e8f9; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
::selection { background: rgba(34, 211, 238, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--primary); color: #03121f; padding: .5rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- background ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
    radial-gradient(1100px 650px at 8% -12%, #12214a 0%, transparent 60%),
    radial-gradient(900px 560px at 108% 6%, #1d1a48 0%, transparent 55%),
    linear-gradient(180deg, #070b1c 0%, #060a18 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .38; animation: float 26s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: #0891b2; top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #7c3aed; bottom: -160px; right: -80px; animation-delay: -9s; opacity: .3; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at top, #000 25%, transparent 75%); }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,40px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } html { scroll-behavior: auto; } }

/* ---------- glass primitives ---------- */
.glass { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--border); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05); }
.glass-strong { background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); border: 1px solid var(--border-2); box-shadow: 0 24px 60px rgba(0,0,0,.5); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 10px; z-index: 100; margin: 10px auto 0; width: calc(100% - 24px); max-width: var(--max); }
.navbar { border-radius: 18px; background: rgba(10, 16, 36, .72); }
.nav-inner { display: flex; align-items: center; gap: 1rem; padding: .65rem 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); flex-shrink: 0; }
.brand img { width: 40px; height: 40px; max-width: none; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(34,211,238,.35)); }
.brand-divider { width: 1px; height: 22px; background: var(--border-2); }
.brand-title { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; background: linear-gradient(90deg, #a5f3fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-search { flex: 1; max-width: 360px; position: relative; margin-left: .5rem; }
.nav-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; }
.nav-search input { width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: .55rem .9rem .55rem 2.3rem; font: inherit; font-size: .9rem; transition: .2s; }
.nav-search input:focus { outline: none; border-color: rgba(34,211,238,.5); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.nav-links { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav-links > a { color: var(--text-2); padding: .5rem .75rem; border-radius: 10px; font-weight: 500; font-size: .9rem; display: inline-flex; align-items: center; gap: .45rem; transition: .2s; white-space: nowrap; }
.nav-links > a:hover { background: var(--glass-2); color: #fff; }
.nav-links > a.active { background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(139,92,246,.16)); color: #fff; }
.nav-links > a i { font-size: .82rem; opacity: .85; }
.nav-links > a.nav-cta { color: #03121f; margin-left: .3rem; }
.nav-toggle { display: none; background: var(--glass-2); border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; margin-left: auto; }
.cat-strip { display: flex; gap: .25rem; padding: .1rem .8rem .55rem; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(255,255,255,.05); padding-top: .5rem; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a { color: var(--muted); font-size: .82rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; transition: .2s; }
.cat-strip a:hover { color: #fff; background: var(--glass-2); }
.cat-strip a.active { color: #03121f; background: var(--primary); }

/* ---------- page ---------- */
.page { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.page-title .page-of { font-size: .55em; font-weight: 600; }
.title-icon { color: var(--primary); font-size: .8em; }
.page-sub { color: var(--muted); margin-top: .35rem; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; color: var(--primary); margin-bottom: .35rem; display: block; }
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumbs li { display: flex; align-items: center; gap: .35rem; max-width: 100%; }
.breadcrumbs li + li::before { content: '/'; opacity: .5; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs span[aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

.section-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); position: relative; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.section-title span i { color: var(--primary); margin-right: .35rem; }
.section-title a { font-size: .82rem; font-weight: 600; }
.section-block { margin-top: 2.5rem; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 12px; font-weight: 600; font-size: .9rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; color: var(--text); white-space: nowrap; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #03121f; box-shadow: 0 6px 20px rgba(14,165,233,.3), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { color: #03121f; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(14,165,233,.45); }
.btn-ghost { background: var(--glass); border-color: var(--border); }
.btn-ghost:hover { background: var(--glass-2); color: #fff; }
.btn-danger { background: rgba(244,63,94,.14); border-color: rgba(244,63,94,.35); color: #fecdd3; }
.btn-sm { padding: .45rem .8rem; font-size: .82rem; border-radius: 10px; }
.input { width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: .7rem .9rem; font: inherit; transition: .2s; }
.input:focus { outline: none; border-color: rgba(34,211,238,.55); box-shadow: 0 0 0 3px rgba(34,211,238,.13); }
.pill-count { background: rgba(255,255,255,.1); border-radius: 999px; padding: 0 .5rem; font-size: .72rem; font-weight: 700; min-width: 24px; text-align: center; color: var(--text-2); }
.alert { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid; }
.alert-warning { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); color: #fde68a; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; color: #04121f; background: linear-gradient(135deg, var(--primary), var(--accent-2)); flex-shrink: 0; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.6rem; }
.avatar.xl { width: 96px; height: 96px; font-size: 2.2rem; }

/* ---------- story cards ---------- */
.meta { color: var(--muted); font-size: .8rem; display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; display: inline-block; }
.kicker { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: .4rem; }
.kicker:hover { color: #fff; }
.kickers { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.media-fallback { width: 100%; height: 100%; aspect-ratio: 16/9; display: grid; place-items: center; background: linear-gradient(135deg, #0e1a3a, #1b1640); color: rgba(165,243,252,.45); font-size: 2rem; }

.top-stories { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.25rem; margin-bottom: 2.25rem; }
.story-hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px; display: flex; border: 1px solid var(--border); box-shadow: var(--shadow); background: #0b1229; }
.story-hero-media { position: absolute; inset: 0; }
.story-hero-media img, .story-hero-media .media-fallback { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: transform .6s; }
.story-hero:hover .story-hero-media img { transform: scale(1.03); }
.story-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,24,0) 25%, rgba(6,10,24,.82) 62%, rgba(6,10,24,.97) 100%); pointer-events: none; }
.story-hero-body { position: relative; z-index: 1; margin-top: auto; padding: 1.75rem; }
.story-hero h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; margin-bottom: .6rem; }
.story-hero h2 a { color: #fff; }
.story-hero h2 a:hover { color: #a5f3fc; }
.story-hero p { color: var(--text-2); margin-bottom: .75rem; max-width: 62ch; }
.top-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.top-secondary .story-card h3 { font-size: .95rem; }
.top-secondary .story-card p { display: none; }

.story-card { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.story-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.story-card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: #0b1229; }
.story-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story-card:hover .story-card-media img { transform: scale(1.04); }
.story-card-body { padding: .95rem 1.05rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.story-card h3 { font-size: 1.02rem; line-height: 1.3; font-weight: 700; margin-bottom: .45rem; letter-spacing: -.01em; }
.story-card h3 a, .story-row h3 a, .story-mini h3 a { color: var(--text); }
.story-card h3 a:hover, .story-row h3 a:hover, .story-mini h3 a:hover { color: #a5f3fc; }
.story-card p { color: var(--muted); font-size: .88rem; margin-bottom: .7rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-card .meta { margin-top: auto; }

.story-list { display: flex; flex-direction: column; gap: 1rem; }
.story-row { display: grid; grid-template-columns: 260px 1fr; gap: 1.15rem; border-radius: var(--radius); overflow: hidden; padding: .75rem; transition: border-color .2s, background .2s; }
.story-row:hover { border-color: var(--border-2); background: rgba(255,255,255,.07); }
.story-row-media { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #0b1229; }
.story-row-media img { width: 100%; height: 100%; object-fit: cover; }
.story-row-body { padding: .2rem .3rem .2rem 0; display: flex; flex-direction: column; min-width: 0; }
.story-row h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; margin-bottom: .4rem; letter-spacing: -.01em; }
.story-row p { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-row .meta { margin-top: auto; }

.story-mini { display: grid; grid-template-columns: 96px 1fr; gap: .8rem; align-items: center; }
.story-mini-media { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; }
.story-mini-media img { width: 100%; height: 100%; object-fit: cover; }
.story-mini h3 { font-size: .9rem; line-height: 1.3; font-weight: 600; }

/* ---------- layout with sidebar ---------- */
.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2rem; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 140px; }
.side-card { border-radius: var(--radius); padding: 1.15rem 1.2rem; }
.side-title { font-size: .95rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; margin-bottom: .85rem; }
.side-title i { color: var(--primary); }
.trending { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.trending li { display: grid; grid-template-columns: 30px 1fr; gap: .6rem; }
.trending .rank { font-size: 1.35rem; font-weight: 800; line-height: 1; background: linear-gradient(180deg, #67e8f9, #8b5cf6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.trending a { color: var(--text); font-weight: 600; font-size: .9rem; line-height: 1.35; display: block; margin-bottom: .15rem; }
.trending a:hover { color: #a5f3fc; }
.side-cats { list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.side-cats a { display: flex; justify-content: space-between; align-items: center; padding: .45rem .55rem; border-radius: 10px; color: var(--text-2); font-size: .9rem; }
.side-cats a:hover { background: var(--glass-2); color: #fff; }
.side-cats i { color: var(--primary); width: 18px; font-size: .82rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-cloud a, .article-tags a { font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text-2); transition: .2s; }
.tag-cloud a:hover, .article-tags a:hover { background: rgba(34,211,238,.14); border-color: rgba(34,211,238,.4); color: #fff; }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; margin-top: 2rem; }
.page-num { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--glass); color: var(--text-2); font-weight: 600; font-size: .88rem; padding: 0 .5rem; }
.page-num:hover { background: var(--glass-2); color: #fff; }
.page-num.current { background: var(--primary); color: #03121f; border-color: transparent; }
.gap { color: var(--muted); padding: 0 .2rem; }

/* ---------- empty / search ---------- */
.empty { border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.empty > i { font-size: 2.6rem; color: var(--primary); opacity: .8; }
.empty.narrow { max-width: 620px; margin: 2rem auto; }
.empty form { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }
.notfound { margin-bottom: 2rem; }
.search-big { display: flex; align-items: center; gap: .5rem; border-radius: 14px; padding: .35rem .35rem .35rem 1rem; min-width: min(460px, 100%); }
.search-big i { color: var(--muted); }
.search-big input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; font-size: 1rem; padding: .5rem 0; min-width: 0; }
.search-big input:focus { outline: none; }

/* ---------- article ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; }
.reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .1s linear; }
.article { min-width: 0; }
.article-head { margin-bottom: 1.4rem; }
.article-title { font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: .2rem 0 .9rem; color: #fff; }
.standfirst { font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--text-2); margin-bottom: 1.3rem; }
.byline { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; padding: .9rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.byline-avatar img, .byline-avatar .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline-text { font-size: .9rem; flex: 1; min-width: 200px; }
.byline-text a { color: var(--text); font-weight: 700; }
.byline-text a:hover { color: var(--primary); }
.share { display: flex; align-items: center; gap: .35rem; }
.share a, .share button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--glass); border: 1px solid var(--border); color: var(--text-2); cursor: pointer; font-size: .9rem; transition: .2s; }
.share a:hover, .share button:hover { background: rgba(34,211,238,.15); color: #fff; border-color: rgba(34,211,238,.4); }
.share-lg { gap: .45rem; }
.share-lg .muted { margin-right: .2rem; font-size: .88rem; }
.article-hero { margin: 0 0 1.5rem; }
.article-hero img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 16/9; object-fit: cover; background: #0b1229; }
.article-hero figcaption { font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.key-points { border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1.5rem; border-left: 3px solid var(--primary); }
.key-points h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: .5rem; }
.key-points ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.key-points li, .key-points p { color: var(--text); font-size: .98rem; line-height: 1.55; }
.toc { border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: 1.6rem; }
.toc summary { cursor: pointer; font-weight: 700; font-size: .92rem; list-style: none; display: flex; align-items: center; gap: .5rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary i { color: var(--primary); }
.toc ol { list-style: none; margin-top: .7rem; display: flex; flex-direction: column; gap: .3rem; counter-reset: toc; }
.toc li a { color: var(--text-2); font-size: .9rem; }
.toc li a:hover { color: var(--primary); }
.toc .toc-l3 { padding-left: 1rem; font-size: .86rem; }

.article-body { font-family: var(--serif); font-size: 1.14rem; line-height: 1.78; color: var(--body); overflow-wrap: break-word; }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--font); color: #fff; letter-spacing: -.015em; line-height: 1.25; margin-top: 1.8em; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; }
.article-body h3 { font-size: 1.22rem; font-weight: 700; }
.article-body h4 { font-size: 1.05rem; font-weight: 700; }
.article-body a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(34,211,238,.4); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--primary); }
.article-body strong { color: #fff; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .4em; }
.article-body li::marker { color: var(--primary); }
.article-body img { border-radius: 14px; border: 1px solid var(--border); margin-left: auto; margin-right: auto; }
.article-body figure figcaption { font-family: var(--font); font-size: .8rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: .3em 0 .3em 1.2em; color: var(--text-2); font-style: italic; }
.article-body code { font-family: var(--mono); font-size: .86em; background: rgba(255,255,255,.08); border: 1px solid var(--border); padding: .1em .4em; border-radius: 6px; color: #a5f3fc; }
.article-body pre { background: #070c1e; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; overflow-x: auto; font-size: .88rem; line-height: 1.55; }
.article-body pre code { background: none; border: 0; padding: 0; color: #d6e2ff; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.article-body table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: .9rem; }
.article-body th, .article-body td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--border); }
.article-body th { background: rgba(255,255,255,.06); color: #fff; }
.embed { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sources { border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-top: 2rem; }
.sources h2 { font-size: .95rem; margin-bottom: .6rem; display: flex; gap: .5rem; align-items: center; }
.sources h2 i { color: var(--primary); }
.sources ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: .3rem; font-size: .92rem; }
.disclosure { margin-top: 1.25rem; font-size: .85rem; color: var(--muted); background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.25); border-radius: 12px; padding: .75rem 1rem; }
.disclosure i { color: var(--accent-2); margin-right: .3rem; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1.5rem; }
.article-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.report-link { font-size: .85rem; color: var(--muted); }
.report-link:hover { color: var(--danger); }
.author-box { display: flex; gap: 1.1rem; align-items: flex-start; border-radius: var(--radius); padding: 1.3rem; margin-top: 1.75rem; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.author-box h2 a { color: #fff; }
.author-box p { color: var(--text-2); font-size: .92rem; }
.related { margin-top: 3rem; }
.author-hero { display: flex; gap: 1.5rem; align-items: center; border-radius: var(--radius); padding: 1.6rem; margin-bottom: 2rem; flex-wrap: wrap; }
.author-hero img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-bio { margin: .6rem 0; max-width: 70ch; color: var(--text-2); }
.socials { display: flex; gap: .45rem; margin-top: .8rem; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--glass); border: 1px solid var(--border); color: var(--text-2); }
.socials a:hover { color: #fff; background: rgba(34,211,238,.15); }

/* ---------- static pages ---------- */
.prose-page { max-width: 860px; margin: 0 auto; border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.75rem); }
.prose-page header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.prose-page .article-body { font-size: 1.05rem; }
.team-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.team-item { display: flex; gap: .8rem; align-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 14px; padding: .8rem; font-family: var(--font); font-size: .95rem; line-height: 1.4; }
.team-item img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 0; margin: 0; }
.team-item + .team-item { margin-top: 0 !important; }

/* ---------- newsletter ---------- */
.newsletter { border-radius: var(--radius); padding: 1.4rem; position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 200px at 0% 0%, rgba(34,211,238,.13), transparent 60%), radial-gradient(400px 200px at 100% 100%, rgba(139,92,246,.15), transparent 60%); pointer-events: none; }
.newsletter > * { position: relative; }
.newsletter h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.newsletter p { color: var(--text-2); font-size: .9rem; }
.nl-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; margin-bottom: .8rem; font-size: 1.1rem; }
.nl-form { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.nl-form .input { flex: 1; min-width: 180px; }
.nl-msg { min-height: 1.2em; margin-top: .5rem; font-size: .85rem !important; }
.nl-msg.ok { color: var(--success) !important; }
.nl-msg.err { color: var(--danger) !important; }
.nl-legal { font-size: .75rem !important; color: var(--muted) !important; margin-top: .3rem; }
.newsletter.card { margin-top: 3rem; padding: 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.newsletter.card h2 { font-size: 1.5rem; }
.newsletter.card .nl-form { width: 100%; max-width: 520px; justify-content: center; }
.newsletter.side .nl-form { flex-direction: column; }

/* ---------- ads ---------- */
.ad { display: block; position: relative; text-align: center; margin: 1.75rem auto; border-radius: 12px; overflow: hidden; }
.ad-label { display: block; font-family: var(--font); font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .35rem; text-align: center; }
.ad-wrap { width: calc(100% - 24px); max-width: var(--max); margin: 1rem auto 0; }
.sticky-ad { margin: 0; }
.article-body .ad { font-family: var(--font); }

/* ---------- footer ---------- */
.site-footer { padding: 0 12px 1.5rem; margin-top: 2rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; border-radius: var(--radius); padding: 2rem; display: grid; grid-template-columns: 1.1fr 2fr; gap: 2rem; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; margin-bottom: .8rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 36ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.footer-cols h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: .75rem; }
.footer-cols a { display: block; color: var(--muted); font-size: .88rem; padding: .2rem 0; }
.footer-cols a:hover { color: #fff; }
.copyright { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 1rem; }

/* ---------- toasts ---------- */
.toast-stack { position: fixed; bottom: 18px; right: 18px; z-index: 1000; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--glass-strong); border: 1px solid var(--border-2); border-radius: 12px; padding: .7rem 1rem; font-size: .9rem; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: toastIn .25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .layout-main { grid-template-columns: minmax(0, 1fr) 290px; gap: 1.5rem; }
    .nav-links > a:not(.nav-cta) i { display: none; }
}
@media (max-width: 960px) {
    .layout-main { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sticky-ad { grid-column: 1 / -1; }
    .top-stories { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr; }
    .nav-toggle { display: grid; place-items: center; }
    .nav-search { max-width: none; }
    .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: .6rem; border-radius: 16px; background: rgba(9,14,32,.97); border: 1px solid var(--border-2); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-links > a { padding: .75rem .9rem; }
    .nav-links > a i { display: inline !important; }
    .nav-links > a.nav-cta { margin: .3rem 0 0; }
    .site-header { position: sticky; }
}
@media (max-width: 680px) {
    body { font-size: 14.5px; }
    .page { padding: 1.25rem .9rem 2.5rem; }
    .brand-divider, .nav-search { display: none; }
    .site-header { top: 6px; width: calc(100% - 12px); margin-top: 6px; }
    .story-row { grid-template-columns: 1fr; padding: 0; }
    .story-row-media { border-radius: 0; }
    .story-row-body { padding: .2rem 1rem 1rem; }
    .grid-3, .top-secondary { grid-template-columns: 1fr; }
    .top-secondary .story-card { display: grid; grid-template-columns: 120px 1fr; }
    .top-secondary .story-card-media { aspect-ratio: auto; height: 100%; min-height: 90px; }
    .story-hero { min-height: 380px; }
    .story-hero-body { padding: 1.2rem; }
    .sidebar { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-body { font-size: 1.07rem; line-height: 1.72; }
    .byline .share { width: 100%; }
    .author-box { flex-direction: column; }
    .ad-wrap { width: 100%; }
}
@media (max-width: 680px) { .nav-mobile-search { display: block; } }
@media print {
    .site-header, .sidebar, .site-footer, .ad, .share, .newsletter, .related, .bg-scene, .reading-progress, .toc, .article-foot { display: none !important; }
    body { background: #fff; color: #000; }
    .article-body { color: #000; }
    .layout-main { display: block; }
}
