/* ============================================================
   Kanadada.com — Design System v6 (2026)
   Replaces style.css + news.css. blog.css / qa.css still load on
   their pages and consume the legacy token names defined below.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;
  /* Brand */
  --brand: #D7263D;
  --brand-600: #BE1B33;
  --brand-700: #9E1229;
  --brand-50: #FDEEF0;
  --brand-grad: linear-gradient(135deg, #EF3349 0%, #B0122B 100%);
  /* Neutrals (warm paper) */
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --surface-2: #F0F0EC;
  --surface-3: #E7E7E2;
  --ink: #111318;
  --ink-2: #2B2F38;
  --muted: #5B6170;
  --line: #E4E4DF;
  --line-strong: #CFCFC8;
  /* Status */
  --ok: #0F8A55; --ok-50: #E3F5EC;
  --warn: #A86200; --warn-50: #FDF2DF;
  --danger: #C21D33; --danger-50: #FDECEE;
  --info: #3A55D9; --info-50: #ECEFFE;
  /* Type */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --fs-xs: .78rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem;
  /* Shape & depth */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(17,19,24,.05), 0 1px 1px rgba(17,19,24,.03);
  --sh-2: 0 10px 28px -12px rgba(17,19,24,.18), 0 2px 6px rgba(17,19,24,.05);
  --sh-3: 0 30px 60px -20px rgba(17,19,24,.35);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent);
  --ease: cubic-bezier(.22,.8,.24,1);
  --header-h: 64px;
  --bottom-nav-h: 62px;
  --container: 1200px;
  --c1: #4F7CFF; --c2: #0E1426; --c3: #7C3AED;

  /* Legacy aliases (blog.css, qa.css, inline styles) */
  --color-bg: var(--bg); --color-surface: var(--surface); --color-surface-2: var(--surface-2);
  --color-text: var(--ink); --color-text-muted: var(--muted); --color-border: var(--line); --color-border-strong: var(--line-strong);
  --color-red: var(--brand); --color-red-dark: var(--brand-600); --color-red-deep: #3D0712; --color-red-tint: var(--brand-50);
  --color-navy: var(--ink-2); --color-navy-light: #3A3F4B;
  --color-gold: #B7791F; --color-gold-tint: #FBF1DE; --color-indigo: var(--info); --color-indigo-tint: var(--info-50);
  --color-success: var(--ok); --color-success-tint: var(--ok-50); --color-warning: var(--warn); --color-warning-tint: var(--warn-50);
  --color-danger: var(--danger); --color-danger-tint: var(--danger-50);
  --font-display: var(--font); --font-body: var(--font);
  --radius-sm: var(--r-sm); --radius-md: var(--r-md); --radius-lg: var(--r-lg);
  --shadow-sm: var(--sh-1); --shadow-md: var(--sh-2); --shadow-lg: var(--sh-3);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --brand: #FF4D62; --brand-600: #F23A51; --brand-700: #D92942; --brand-50: rgba(255,77,98,.13);
  --bg: #0C0D11; --surface: #15171D; --surface-2: #1C1F27; --surface-3: #262A34;
  --ink: #ECEDF1; --ink-2: #D3D6DE; --muted: #9AA0AE; --line: #262A33; --line-strong: #363B47;
  --ok: #3DD598; --ok-50: rgba(61,213,152,.13); --warn: #F2B54A; --warn-50: rgba(242,181,74,.12);
  --danger: #FF6B7D; --danger-50: rgba(255,77,99,.13); --info: #8EA2FF; --info-50: rgba(142,162,255,.14);
  --sh-1: 0 1px 2px rgba(0,0,0,.5); --sh-2: 0 14px 30px -10px rgba(0,0,0,.7); --sh-3: 0 30px 60px -18px rgba(0,0,0,.9);
  --color-red-deep: #3A0B14; --color-gold: #F2B54A; --color-gold-tint: rgba(242,181,74,.12);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 56px); overflow-x: clip; }
body {
  font-family: var(--font); font-size: var(--fs-md); line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 750; letter-spacing: -.018em; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: var(--r-xs); overflow-wrap: anywhere; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 3000; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 0 0 10px 10px; font-weight: 700; }
.skip-link:focus { top: 0; }
#main:focus { outline: none; }
.muted { color: var(--muted); }
.small, small { font-size: var(--fs-sm); }
.link-strong { color: var(--brand); font-weight: 650; }
.link-btn { color: inherit; padding: 0; text-align: left; }
.link-btn:hover { color: var(--brand); }

/* ---------- 3. Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: var(--r-sm); border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: .95rem; line-height: 1.2; white-space: nowrap; position: relative;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled], .btn.is-loading { opacity: .75; cursor: progress; }
.btn.is-loading { color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--btn-fg) transparent var(--btn-fg) var(--btn-fg); animation: spin .7s linear infinite; }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { --btn-bg: var(--brand-600); --btn-bd: var(--brand-600); }
.btn-accent { --btn-bg: var(--ink); --btn-fg: var(--surface); --btn-bd: var(--ink); }
.btn-outline { --btn-bd: var(--line-strong); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-2); border-color: transparent; }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-danger:hover { filter: brightness(.95); border-color: var(--danger); }
.btn-danger-outline { --btn-fg: var(--danger); --btn-bd: var(--danger); }
.btn-danger-outline:hover { --btn-bg: var(--danger-50); border-color: var(--danger); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: .86rem; }
.btn-lg { min-height: 50px; padding: 13px 24px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-pill); color: var(--ink); position: relative; transition: background .15s; }
.icon-btn:hover { background: var(--surface-2); }
.spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 4. Header ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.78); font-size: var(--fs-xs); }
html[data-theme="dark"] .topbar { background: #08090C; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 32px; }
.topbar-date i { opacity: .7; margin-right: 4px; }
.topbar-clocks { display: flex; gap: 18px; font-variant-numeric: tabular-nums; }
.tb-city { opacity: .6; margin-right: 2px; }
.topbar time { color: #fff; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(17,19,24,.35); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--ink); }
.logo .logo-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(215,38,61,.55); transition: transform .35s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-text { font-size: 1.28rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.logo-tld { color: var(--brand); font-weight: 650; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { padding: 8px 13px; border-radius: var(--r-sm); font-size: .93rem; font-weight: 600; color: var(--muted); transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a.active { color: var(--ink); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.search-trigger { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; min-width: 210px; transition: border-color .15s, background .15s; }
.search-trigger:hover { border-color: var(--line-strong); color: var(--ink); }
.search-trigger span { flex: 1; text-align: left; }
.search-trigger kbd { font-size: .72rem; padding: 2px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.theme-toggle .theme-icon-light { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-dark { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-light { display: inline; color: var(--color-gold); }
.header-auth-links { display: flex; gap: 6px; }
.nav-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.avatar-md { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.user-menu { position: relative; }
.user-menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 4px 12px 4px 5px; border-radius: var(--r-pill); font-size: .9rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); }
.user-menu-btn:hover { border-color: var(--line-strong); }
.user-menu-btn .fa-chevron-down { font-size: 10px; color: var(--muted); }
.user-menu-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-2); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 1100; }
.user-menu-dropdown.open { opacity: 1; visibility: visible; transform: none; }
.user-menu-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: .92rem; font-weight: 550; }
.user-menu-dropdown a:hover, .user-menu-dropdown a:focus-visible { background: var(--surface-2); }
.user-menu-dropdown a i { width: 16px; color: var(--muted); }
.user-menu-dropdown a.danger, .user-menu-dropdown a.danger i { color: var(--danger); }

.catbar { border-top: 1px solid var(--line); }
.catbar-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
.catbar-nav::-webkit-scrollbar { display: none; }
.catbar-nav a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 6px 12px; border-radius: var(--r-pill); font-size: .87rem; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.catbar-nav a:hover { color: var(--ink); background: var(--surface-2); }
.catbar-nav a.active { background: var(--ink); color: var(--surface); }
.catbar-nav a.active .cat-dot { background: var(--surface); }
.cat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c1); display: inline-block; flex-shrink: 0; }

/* ---------- 5. Flash, callouts, toasts ---------- */
.flash-msg { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-md); font-weight: 550; border: 1px solid transparent; }
.flash-success { background: var(--ok-50); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.flash-error { background: var(--danger-50); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.flash-info { background: var(--info-50); color: var(--info); }
.callout { padding: 14px 18px; border-radius: var(--r-md); background: var(--info-50); border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); margin: 0 0 20px; font-size: .95rem; }
.callout a { color: var(--info); text-decoration: underline; }
.callout-warning { background: var(--warn-50); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.legal-placeholder { background: #FFE58A; color: #3D2E00; padding: 0 4px; border-radius: 4px; }
.toast-host { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4000; display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: var(--r-md); background: var(--ink); color: var(--surface); box-shadow: var(--sh-3); font-weight: 600; font-size: .92rem; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast-error { background: var(--danger); color: #fff; }

/* ---------- 6. Cards / sections / chips ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { font-size: 1.05rem; }
.card-head h2 small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.section-head h2 { font-size: 1.35rem; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 4px; height: 1.05em; border-radius: 4px; background: var(--brand); }
.view-all-link { font-size: .88rem; font-weight: 700; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }
.view-all-link i { transition: transform .2s var(--ease); }
.view-all-link:hover i { transform: translateX(3px); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-heading h1, .section-heading h2 { font-size: 1.3rem; }
.section-subtitle { font-size: 1.1rem; margin: 28px 0 12px; }
.result-count { color: var(--muted); font-size: var(--fs-sm); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 13px; font-size: .86rem; font-weight: 600; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid transparent; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--line-strong); }
.chip.active { background: var(--ink); color: var(--surface); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.ai-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: var(--r-pill); background: var(--info-50); color: var(--info); letter-spacing: .02em; }
.ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: radial-gradient(120% 120% at 0 0, color-mix(in srgb, var(--c1) 28%, var(--surface)), color-mix(in srgb, var(--c3) 16%, var(--surface-2))); color: color-mix(in srgb, var(--c1) 70%, var(--ink)); }
.ph i { font-size: 24px; opacity: .85; }
.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty-state a { color: var(--brand); font-weight: 600; }
.empty-hero { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty-hero i { font-size: 44px; color: var(--brand); margin-bottom: 14px; }
.empty-hero h2 { font-size: 1.7rem; margin-bottom: 6px; }

/* ---------- 7. Home ---------- */
.news-home { padding-block: 22px 48px; }
.home-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.slider { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); box-shadow: var(--sh-2); isolation: isolate; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 70%, #000), color-mix(in srgb, var(--c3) 60%, #000)); }
.slide:focus-visible { outline-offset: -4px; }
.slide-bg { position: absolute; inset: 0; }
.slide-bg img, .slide-bg picture { width: 100%; height: 100%; object-fit: cover; }
.slide-bg > i { position: absolute; right: 6%; top: 42%; transform: translateY(-50%); font-size: clamp(110px, 18vw, 200px); opacity: .14; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,12,0) 30%, rgba(8,9,12,.35) 55%, rgba(8,9,12,.88) 100%); }
.slide-body { position: relative; z-index: 1; padding: 28px 32px 64px; max-width: 760px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.slide h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.slide p { color: rgba(255,255,255,.86); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-time { font-size: .82rem; color: rgba(255,255,255,.75); }
.slider-controls { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.slider-btn, .slider-pause { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s, transform .15s; }
.slider-btn:hover, .slider-pause:hover { background: rgba(255,255,255,.3); }
.slider-pause .fa-play { display: none; }
.slider.is-paused .slider-pause .fa-play { display: inline; }
.slider.is-paused .slider-pause .fa-pause { display: none; }
.slider-dots { position: absolute; left: 22px; bottom: 22px; display: flex; z-index: 2; }
.slider-dots button { width: 26px; height: 26px; position: relative; }
.slider-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 99px; background: rgba(255,255,255,.5); transition: width .25s, margin .25s, background .25s; }
.slider-dots button.is-active { width: 40px; }
.slider-dots button.is-active::before { width: 26px; margin-left: -13px; background: #fff; }
.slide.is-current .slide-body > * { animation: riseIn .6s var(--ease) both; }
.slide.is-current .slide-body > :nth-child(2) { animation-delay: .06s; }
.slide.is-current .slide-body > :nth-child(3) { animation-delay: .12s; }
.slide.is-current .slide-bg img { animation: kenburns 10s ease-out both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }

.top-stories { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px 20px; display: flex; flex-direction: column; }
.top-stories h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.top-stories h2 .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ts-item { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
.ts-item:first-of-type { border-top: 0; }
.ts-item .hl-meta { margin-bottom: 3px; }
.ts-item strong { display: block; font-size: .98rem; line-height: 1.35; font-weight: 680; letter-spacing: -.01em; }
.ts-item:hover strong { color: var(--brand); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; margin-top: 36px; }
.home-main { min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 60px); }

/* Headline list */
.hl-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 22px; box-shadow: var(--sh-1); }
.hl { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
.hl:last-child { border-bottom: 0; }
.hl-main { flex: 1; min-width: 0; }
.hl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin-bottom: 5px; }
.hl-cat { font-weight: 750; color: color-mix(in srgb, var(--c1) 55%, var(--ink)); text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; position: relative; z-index: 2; }
html[data-theme="dark"] .hl-cat, html[data-theme="dark"] .kicker { color: color-mix(in srgb, var(--c1) 65%, #fff); }
.hl-cat:hover { text-decoration: underline; }
.hl-title { font-size: 1.12rem; line-height: 1.32; font-weight: 700; letter-spacing: -.015em; }
.hl-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hl-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease), color .15s; }
.hl:hover .hl-title a { color: var(--brand); background-size: 100% 1.5px; }
.hl-excerpt { margin-top: 6px; font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-thumb { width: 132px; aspect-ratio: 4/3; flex: none; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.hl-thumb img, .hl-thumb picture { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hl:hover .hl-thumb img { transform: scale(1.05); }
.hl--compact { padding: 12px 0; gap: 12px; }
.hl--compact .hl-title { font-size: .95rem; }
.hl--compact .hl-thumb { width: 64px; aspect-ratio: 1; border-radius: var(--r-sm); }
.more-btn { margin-top: 16px; }

.cat-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.cat-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px 6px; position: relative; overflow: hidden; box-shadow: var(--sh-1); }
.cat-box::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--c1), var(--c3)); }
.cat-box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.cat-box-head h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.cat-box-head a { font-size: .82rem; font-weight: 700; color: var(--brand); }
.cat-box .hl--compact .hl-meta, .cat-box .hl--compact .hl-thumb { display: none; }

.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-1); }
.side-box h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.trending { counter-reset: t; }
.trending li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.trending li:first-child { border-top: 0; padding-top: 2px; }
.trend-num { font-size: 1.5rem; font-weight: 800; line-height: 1; min-width: 22px; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.trending a { font-weight: 620; font-size: .93rem; line-height: 1.38; }
.trending a:hover { color: var(--brand); }
.side-cta { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-lg); background: var(--brand-grad); color: #fff; position: relative; overflow: hidden; box-shadow: 0 16px 30px -18px rgba(215,38,61,.8); }
.side-cta::after { content: "\f086"; font-family: 'Font Awesome 6 Free'; font-weight: 400; position: absolute; right: -6px; bottom: -14px; font-size: 84px; opacity: .14; }
.side-cta strong { font-size: 1.08rem; } .side-cta span { font-size: .9rem; opacity: .92; }
.side-cta:hover { filter: brightness(1.04); }

/* ---------- 8. Page headings / lists ---------- */
.page-top, .page-hero { padding-top: 26px; padding-bottom: 6px; }
.page-title-lg { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -.035em; font-weight: 800; margin-bottom: 6px; }
.page-sub, .page-lead { color: var(--muted); font-size: .98rem; max-width: 68ch; }
.page-lead { font-size: 1.06rem; }
.page-title { font-size: 1.6rem; letter-spacing: -.03em; margin-bottom: 18px; }
.breadcrumb, .art-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); padding: 0 0 10px; }
.breadcrumb a:hover, .art-breadcrumb a:hover { color: var(--brand); }
.breadcrumb > span[aria-hidden] { opacity: .5; }
.list-layout { padding-top: 16px; padding-bottom: 48px; }
.search-page-form { display: flex; gap: 8px; max-width: 620px; margin: 14px 0 6px; }
.search-page-form input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: 1rem; background: var(--surface); }
.search-page-form input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.search-results-wrap { margin-top: 18px; padding-bottom: 48px; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 28px; }
.pagination a { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: .9rem; transition: border-color .15s; }
.pagination a:hover { border-color: var(--ink); }
.pagination a.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pagination .page-nav { display: inline-flex; gap: 6px; }
.page-gap { padding: 0 4px; color: var(--muted); }

/* ---------- 9. Article ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200; transform-origin: 0 50%; transform: scaleX(0); background: var(--brand-grad); }
.art-breadcrumb { padding-top: 18px; padding-bottom: 0; }
.art-layout { display: grid; grid-template-columns: 52px minmax(0, 720px) 300px; gap: 40px; justify-content: center; padding-top: 14px; padding-bottom: 56px; }
.art-main { min-width: 0; }
.art-share { position: sticky; top: calc(var(--header-h) + 64px); align-self: start; display: flex; flex-direction: column; gap: 10px; }
.art-share-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 16px; transition: background .15s, border-color .15s, transform .1s; }
.art-share-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.art-share-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.art-share-btn.art-like { height: auto; padding: 10px 0 8px; flex-direction: column; gap: 2px; border-radius: 22px; }
.art-share-btn.art-like .blog-like-count { font: 700 11px var(--font); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--c1) 55%, var(--ink)); }
.kicker .cat-dot { width: 8px; height: 8px; }
.art-title { font-size: clamp(1.9rem, 4.2vw, 2.85rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; margin: 12px 0 14px; }
.art-lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); font-weight: 450; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 20px 0 24px; padding: 12px 0; border-block: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.art-meta .by { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.art-meta .avatar-sm { width: 28px; height: 28px; }
.art-meta span { display: inline-flex; align-items: center; gap: 6px; }
.art-figure { margin: 0 0 26px; }
.art-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--surface-2); }
.art-cover img, .art-cover picture { width: 100%; height: 100%; object-fit: cover; }
.art-figure figcaption { font-size: .76rem; color: var(--muted); padding: 7px 2px 0; text-align: right; }
.art-figure figcaption a:hover { color: var(--brand); text-decoration: underline; }
.art-body { font-size: 1.13rem; line-height: 1.78; color: var(--ink); }
.art-body p { margin-bottom: 1.15em; }
.art-body h2, .art-body h3 { font-size: 1.32rem; margin: 1.8em 0 .55em; padding-left: 14px; border-left: 4px solid var(--brand); line-height: 1.25; }
.art-body > h2:first-child, .art-body > h3:first-child { margin-top: 0; }
.art-body ul, .art-body ol { padding-left: 24px; margin-bottom: 1.15em; list-style: disc; }
.art-body ol { list-style: decimal; }
.art-body li { margin-bottom: .35em; }
.art-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.art-body img { border-radius: var(--r-md); margin: 1.2em 0; }
.art-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); color: var(--ink-2); font-size: 1.15em; font-style: italic; }
.art-body .key-points ul { list-style: none; padding: 0; }
.key-points { background: linear-gradient(180deg, var(--brand-50), transparent 140%); border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line)); border-radius: var(--r-lg); padding: 18px 22px 8px; margin: 0 0 28px; }
.key-points strong { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.key-points li { position: relative; padding: 5px 0 5px 24px; font-size: 1rem; line-height: 1.5; margin: 0; }
.key-points li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--brand); }
.source-card { display: flex; gap: 14px; align-items: flex-start; margin: 30px 0 12px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.source-card-icon { width: 42px; height: 42px; border-radius: var(--r-md); flex: none; display: grid; place-items: center; color: var(--brand); background: var(--brand-50); }
.source-card strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.source-card p { font-size: .88rem; color: var(--muted); }
.source-card .btn { margin-top: 12px; }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.art-tags .tag { padding: 6px 13px; border-radius: var(--r-pill); background: var(--surface-2); font-size: .84rem; font-weight: 600; }
.art-tags .tag:hover { background: var(--surface-3); }
.art-share-inline { display: none; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.art-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 64px); align-self: start; }
.art-report { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.art-report a { text-decoration: underline; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; margin: 0 0 26px; cursor: pointer; background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 70%, #000), color-mix(in srgb, var(--c3) 60%, #000)); }
.video-embed img { width: 100%; height: 100%; object-fit: cover; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--brand); font-size: 22px; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .2s; z-index: 1; }
.video-play i { margin-left: 3px; }
.video-embed:hover .video-play { transform: scale(1.08); }
.video-embed.is-playing .video-play { display: none; }
.blog-comments { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.blog-comments h2 { font-size: 1.25rem; margin-bottom: 16px; }
.comment-login-cta { padding: 16px; border-radius: var(--r-md); background: var(--surface-2); text-align: center; font-weight: 600; }
.comment-login-cta a { color: var(--brand); text-decoration: underline; }

/* ---------- 10. Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 0; }
.search-overlay-backdrop { position: absolute; inset: 0; background: rgba(10,11,15,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .15s ease; }
.search-dialog { position: relative; width: min(660px, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; border: 1px solid var(--line); animation: popIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.search-dialog-form { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-dialog-form > i { color: var(--muted); }
.search-dialog-form input { flex: 1; border: 0; background: transparent; font-size: 1.1rem; padding: 6px 0; outline: none; min-width: 0; }
.search-dialog-form input::-webkit-search-cancel-button { display: none; }
.search-close { font: 600 12px var(--font); padding: 6px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.search-results { max-height: 52vh; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.search-results a:hover, .search-results a:focus-visible { background: var(--surface-2); outline: none; }
.search-results a.sr-all { justify-content: center; color: var(--brand); font-weight: 650; font-size: .9rem; }
.sr-cat { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); min-width: 84px; }
.sr-title { flex: 1; font-weight: 600; font-size: .95rem; }
.search-results i { color: var(--muted); font-size: 12px; }
.search-empty { padding: 22px; text-align: center; color: var(--muted); font-size: .9rem; }
.search-hint { padding: 10px 18px; font-size: .76rem; color: var(--muted); background: var(--surface-2); }
.search-hint kbd { font-size: .7rem; padding: 2px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-strong); margin-right: 2px; }

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 32px; padding: 56px 0 0; font-size: .92rem; }
html[data-theme="dark"] .site-footer { background: #08090C; border-top: 1px solid var(--line); }
.site-footer a { color: rgba(255,255,255,.82); transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.25fr; gap: 36px; padding-bottom: 36px; }
.logo-footer { color: #fff; }
.logo-footer .logo-tld { color: #FF6377; }
.footer-tagline { margin-top: 14px; color: rgba(255,255,255,.78); max-width: 38ch; line-height: 1.55; }
.footer-note { margin-top: 12px; font-size: .8rem; color: rgba(255,255,255,.55); max-width: 40ch; }
.footer-note a { text-decoration: underline; }
.social-list { display: flex; gap: 8px; margin-top: 18px; }
.social-list a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.social-list a:hover { background: var(--brand); border-color: var(--brand); }
.footer-h { color: #fff; font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; }
.footer-col .link-btn { color: rgba(255,255,255,.82); font-size: inherit; }
.footer-col .link-btn:hover { color: #fff; }
.footer-contact p { margin-bottom: 10px; }
.footer-contact address { font-style: normal; margin-bottom: 10px; }
.footer-small { font-size: .8rem; color: rgba(255,255,255,.55); }
.footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.5); padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); line-height: 1.6; }
.footer-disclaimer a { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.55); }
.to-top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 12. Bottom nav (mobile) ---------- */
.bottom-nav { display: none; }

/* ---------- 13. Forms ---------- */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.form-stack .form-group { margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { font-size: .88rem; font-weight: 650; color: var(--ink-2); }
.optional { font-weight: 450; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=search], input[type=date], input[type=file], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235B6170' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; font-weight: 600; }
.form-hint { font-size: .82rem; color: var(--muted); }
.form-hint a { text-decoration: underline; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .9rem; line-height: 1.5; color: var(--ink-2); flex-wrap: wrap; }
.checkbox-label > span { flex: 1; min-width: 0; }
.checkbox-label a { color: var(--brand); text-decoration: underline; }
.checkbox-label .field-error { flex-basis: 100%; padding-left: 30px; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.form-error { background: var(--danger-50); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px; font-size: .92rem; font-weight: 550; }
.form-error ul { list-style: disc; padding-left: 18px; }
.form-success { background: var(--ok-50); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px; font-weight: 600; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.input-reveal { position: relative; }
.input-reveal input { padding-right: 48px; }
.reveal-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: var(--r-sm); color: var(--muted); }
.reveal-btn:hover { color: var(--ink); }

/* Auth */
.auth-page { display: flex; justify-content: center; padding-block: 48px 64px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 34px 32px; box-shadow: var(--sh-2); }
.auth-brand .logo-mark { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; }
.auth-card h1 { font-size: 1.65rem; letter-spacing: -.03em; margin-bottom: 4px; }
.auth-lead { color: var(--muted); margin-bottom: 22px; font-size: .95rem; }
.auth-alt { text-align: center; margin-top: 20px; font-size: .92rem; color: var(--muted); }
.auth-alt a, .auth-fine a { color: var(--brand); font-weight: 650; }
.auth-fine { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-top: 18px; padding-bottom: 56px; align-items: start; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.contact-aside .card + .card { margin-top: 0; }
.info-card h2 { font-size: 1rem; margin-bottom: 6px; }
.info-card p { font-size: .92rem; color: var(--muted); }
.info-card a { color: var(--brand); font-weight: 600; }
.success-state { text-align: center; padding: 36px 16px; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ok-50); color: var(--ok); font-size: 24px; margin-bottom: 14px; }
.success-state h2 { margin-bottom: 6px; }
.success-state p { color: var(--muted); margin-bottom: 18px; }

/* ---------- 14. Static & legal pages ---------- */
.static-page { max-width: 780px; margin: 0 auto; padding: 36px 24px 64px; }
.static-page h1, .legal-doc h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.035em; font-weight: 800; margin-bottom: 14px; }
.static-page h2, .legal-doc h2 { font-size: 1.3rem; margin: 2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 70px); }
.legal-doc h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.static-page p, .static-page li, .legal-doc p, .legal-doc li { font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); }
.static-page p, .legal-doc p { margin-bottom: 1em; }
.static-page ul, .legal-doc ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.static-page ol, .legal-doc ol { list-style: decimal; padding-left: 22px; margin-bottom: 1em; }
.static-page li, .legal-doc li { margin-bottom: .4em; }
.static-page a, .legal-doc a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 48px; justify-content: center; padding-top: 36px; padding-bottom: 64px; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 64px); align-self: start; display: flex; flex-direction: column; gap: 2px; }
.legal-nav-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 750; margin-bottom: 8px; padding-left: 12px; }
.legal-nav a { padding: 8px 12px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 550; color: var(--muted); border-left: 2px solid transparent; }
.legal-nav a:hover { color: var(--ink); background: var(--surface-2); }
.legal-nav a.active { color: var(--ink); background: var(--surface); border-left-color: var(--brand); box-shadow: var(--sh-1); }
.legal-meta { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.legal-lead { font-size: 1.12rem !important; color: var(--ink) !important; }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px; margin: 0 0 24px; }
.legal-toc strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.legal-toc ol { columns: 2; column-gap: 28px; margin: 0; }
.legal-toc li { font-size: .9rem !important; break-inside: avoid; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .92rem; background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.legal-table th, .legal-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-doc .card { margin-bottom: 24px; }
.editorial h2 { font-size: 1.3rem; }
.error-page { text-align: center; padding: 90px 20px; }
.error-code { font-size: clamp(5rem, 16vw, 8.5rem); font-weight: 850; letter-spacing: -.06em; line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-size: 1.6rem; margin: 10px 0 8px; }
.error-page p { color: var(--muted); margin-bottom: 24px; }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.about-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.about-values .card { padding: 18px; }
.about-values .card i { color: var(--brand); font-size: 20px; margin-bottom: 8px; }
.about-values .card h3 { font-size: 1rem; margin-bottom: 4px; }
.about-values .card p { font-size: .9rem; margin: 0; color: var(--muted); }

/* Privacy dialog */
.privacy-dialog { border: 0; border-radius: var(--r-xl); padding: 0; max-width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--sh-3); margin: auto; }
.privacy-dialog::backdrop { background: rgba(10,11,15,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.privacy-dialog-inner { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.privacy-dialog h2 { font-size: 1.25rem; }
.privacy-dialog p { font-size: .92rem; color: var(--ink-2); }
.switch-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.switch-row small { display: block; font-weight: 450; color: var(--muted); margin-top: 2px; }
.switch-row input { appearance: none; width: 46px; height: 26px; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .2s var(--ease); }
.switch-row input:checked { background: var(--ok); }
.switch-row input:checked::after { transform: translateX(20px); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- 15. Panels (user + admin) ---------- */
body.is-panel { background: var(--bg); }
.user-layout, .admin-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-top: 26px; padding-bottom: 56px; align-items: start; max-width: 1360px; }
.user-sidebar, .admin-sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; position: sticky; top: calc(var(--header-h) + 16px); box-shadow: var(--sh-1); }
.admin-brand { font-weight: 750; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 8px 12px 10px; display: flex; gap: 8px; align-items: center; }
.user-sidebar nav, .admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.user-sidebar nav a, .admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: .92rem; font-weight: 580; color: var(--ink-2); }
.user-sidebar nav a i, .admin-sidebar nav a i { width: 18px; text-align: center; color: var(--muted); }
.user-sidebar nav a:hover, .admin-sidebar nav a:hover { background: var(--surface-2); }
.user-sidebar nav a.active, .admin-sidebar nav a.active { background: var(--brand-50); color: var(--brand); }
.user-sidebar nav a.active i, .admin-sidebar nav a.active i { color: var(--brand); }
.user-sidebar nav a.danger, .user-sidebar nav a.danger i { color: var(--danger); }
.admin-sidebar nav a.back { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm); padding-top: 14px; }
.nav-pill { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.user-main, .admin-main { min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head .page-title { margin-bottom: 4px; }
.admin-sub { color: var(--muted); font-size: .92rem; max-width: 70ch; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); transition: border-color .15s, transform .15s; position: relative; }
a.stat-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.stat-card > i { position: absolute; right: 18px; top: 18px; color: var(--muted); opacity: .6; }
.stat-num { font-size: 1.85rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; order: 2; }
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 600; order: 1; }
.stat-foot { font-size: .78rem; color: var(--muted); order: 3; }
.stat-card.highlight { background: linear-gradient(160deg, var(--brand-50), var(--surface) 70%); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: .9rem; }
.card .data-table { border-radius: var(--r-sm); }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { background: var(--surface-2); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.data-table a { color: var(--brand); }
.cell-path { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: .82rem; }
.cell-ua { font-family: var(--mono); font-size: .76rem; word-break: break-all; color: var(--ink-2); }
.cell-wrap { white-space: normal; max-width: 420px; font-size: .86rem; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-actions form { display: inline; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.status-active, .status-approve, .status-success { background: var(--ok-50); color: var(--ok); }
.status-pending, .status-warning { background: var(--warn-50); color: var(--warn); }
.status-rejected, .status-expired { background: var(--danger-50); color: var(--danger); }
.status-muted, .status-sold { background: var(--surface-2); color: var(--muted); }
.admin-filter-tabs, .tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; padding: 4px; background: var(--surface-2); border-radius: var(--r-md); width: fit-content; max-width: 100%; }
.admin-filter-tabs a, .tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-sm); font-size: .88rem; font-weight: 620; color: var(--muted); }
.admin-filter-tabs a:hover, .tabs a:hover { color: var(--ink); }
.admin-filter-tabs a.active, .tabs a.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.tab-count { font-size: .72rem; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); flex-wrap: wrap; }
.seg a { padding: 7px 12px; border-radius: var(--r-sm); font-size: .84rem; font-weight: 600; color: var(--muted); }
.seg a.active { background: var(--ink); color: var(--surface); }
.admin-search-form { display: flex; gap: 8px; margin-bottom: 16px; max-width: 480px; }
.inline-add-form { display: flex; gap: 8px; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.grid-2 .card + .card { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack .card + .card { margin-top: 0; }
.analytics > .card, .analytics > .stats-grid, .analytics > .callout { margin-top: 18px; }
/* stacked composition bar */
.stackbar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.stackbar span { display: block; height: 100%; }
.sb-human { background: var(--ok); } .sb-unverified { background: #9AA3B5; } .sb-suspicious { background: var(--warn); } .sb-bot { background: var(--danger); } .sb-legacy { background: var(--line-strong); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .84rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend em { color: var(--muted); font-style: normal; font-size: .78rem; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-inline { margin-top: 0; font-size: .78rem; }
.barchart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: 8px 0 0; border-bottom: 1px solid var(--line); }
.bc-col { flex: 1; min-width: 3px; height: 100%; display: flex; align-items: flex-end; gap: 1px; }
.bc-col:hover { background: var(--surface-2); }
.bc { flex: 1; border-radius: 3px 3px 0 0; min-height: 0; }
.table-details { margin-top: 14px; }
.table-details summary, .method summary { cursor: pointer; font-weight: 650; font-size: .9rem; color: var(--muted); }
.table-details[open] summary { margin-bottom: 10px; }
.method summary { list-style: none; }
.method summary h2 { display: inline; font-size: 1rem; color: var(--ink); }
.method summary::before { content: "+ "; color: var(--brand); font-weight: 800; }
.method[open] summary::before { content: "– "; }
.method ul { list-style: disc; padding-left: 20px; margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.method li { margin-bottom: 6px; }
.meter-list li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; font-size: .88rem; border-radius: var(--r-xs); z-index: 0; }
.meter-list li i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--ok) 13%, transparent); border-radius: var(--r-xs); z-index: -1; }
.meter-list li i.bot { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.meter-list li.sub { font-size: .8rem; color: var(--muted); padding-left: 22px; }
.meter-list li b { font-variant-numeric: tabular-nums; }
.notification-list { display: flex; flex-direction: column; gap: 8px; }
.notification-item { display: flex; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.notification-item:hover { border-color: var(--line-strong); }
.notification-item > i { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.notif-title { display: block; font-weight: 650; }
.notif-body { display: block; color: var(--muted); font-size: .9rem; }
.notif-time { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 520px; box-shadow: var(--sh-1); }
.profile-card h2 { font-size: 1.4rem; }
.profile-city, .profile-since { color: var(--muted); font-size: .9rem; }
.profile-about { margin: 8px 0; color: var(--ink-2); }
.settings-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 18px; box-shadow: var(--sh-1); }
.settings-section h2 { font-size: 1.1rem; margin-bottom: 14px; }
.settings-section > p { color: var(--ink-2); margin-bottom: 14px; font-size: .94rem; }
.privacy-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.danger-zone h2 { color: var(--danger); }
/* News automation admin */
.news-admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px; box-shadow: var(--sh-1); }
.news-admin-card h2 { font-size: 1.08rem; margin-bottom: 14px; }
.news-admin-card p { margin-bottom: 8px; }
.hours-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.hours-grid label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .8rem; padding: 8px 0; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; background: var(--surface); }
.hours-grid input:checked + span { font-weight: 800; color: var(--brand); }
.news-log { background: #0E1016; color: #E5E7EB; font-family: var(--mono); font-size: .8rem; line-height: 1.6; padding: 14px 16px; border-radius: var(--r-md); white-space: pre-wrap; max-height: 380px; overflow: auto; }
.news-code { background: var(--surface-2); padding: 10px 12px; border-radius: var(--r-sm); font-family: var(--mono); font-size: .8rem; word-break: break-all; display: block; margin: 6px 0 12px; }
.news-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.news-ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: var(--r-pill); background: var(--info-50); color: var(--info); }

/* Q&A shared helpers (qa.css relies on these legacy layout classes) */
.filter-sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; position: sticky; top: calc(var(--header-h) + 64px); align-self: start; }
.filter-sidebar h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.main-content { min-width: 0; }

/* ---------- 16. Motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease) var(--rd, 0ms), transform .5s var(--ease) var(--rd, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.btn:active, .chip:active, .art-share-btn:active { transform: scale(.97); }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1180px) {
  .search-trigger { min-width: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .art-layout { grid-template-columns: minmax(0, 720px) 280px; gap: 32px; }
  .art-share { display: none; }
  .art-share-inline { display: flex; }
}
@media (max-width: 980px) {
  .home-top { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-side { position: static; }
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art-side { position: static; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .legal-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .legal-nav-title { display: none; }
  .legal-nav a { white-space: nowrap; border-left: 0; background: var(--surface-2); border-radius: var(--r-pill); }
  .legal-nav a.active { background: var(--ink); color: var(--surface); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .user-layout, .admin-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .user-sidebar, .admin-sidebar, .legal-nav { min-width: 0; max-width: 100%; }
  .user-sidebar, .admin-sidebar { position: static; padding: 6px; }
  .user-sidebar nav, .admin-sidebar nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .user-sidebar nav a, .admin-sidebar nav a { white-space: nowrap; }
  .admin-brand { display: none; }
  .admin-sidebar nav a.back { margin-top: 0; border-top: 0; padding-top: 10px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .main-nav a:not(.active) { padding-inline: 10px; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .about-values { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 56px; }
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  .container { padding-inline: 16px; }
  .topbar-clocks > span:nth-child(2) { display: none; }
  .topbar-clocks > span { white-space: nowrap; }
  .topbar-date { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .header-inner { gap: 8px; }
  .logo-text { font-size: 1.16rem; }
  .logo .logo-mark { width: 30px; height: 30px; }
  .header-auth-links, .user-menu { display: none; }
  .search-trigger { display: none; }
  .news-home { padding-top: 12px; }
  .slider { margin-inline: -16px; border-radius: 0; box-shadow: none; }
  .slide { min-height: 360px; }
  .slide-body { padding: 20px 18px 54px; }
  .slide p { display: none; }
  .slider-btn { display: none; }
  .slider-controls { right: 12px; bottom: 12px; }
  .slider-dots { left: 10px; bottom: 14px; }
  .top-stories { border-radius: var(--r-lg); }
  .hl-list { margin-inline: -16px; border-radius: 0; border-inline: 0; padding: 0 16px; box-shadow: none; }
  .hl { padding: 15px 0; gap: 14px; }
  .hl-title { font-size: 1.02rem; }
  .hl-thumb { width: 96px; }
  .hl-excerpt { display: none; }
  .cat-boxes { grid-template-columns: 1fr; gap: 14px; }
  .chip, .pagination a { min-height: 44px; }
  .art-breadcrumb { padding-top: 12px; }
  .art-title { font-size: 1.8rem; }
  .art-lead { font-size: 1.06rem; }
  .art-body { font-size: 1.07rem; }
  .art-cover { margin-inline: -16px; border-radius: 0; }
  .form-row { grid-template-columns: 1fr; }
  .auth-page { padding-block: 20px 40px; }
  .auth-card { padding: 26px 20px; border-radius: var(--r-lg); }
  .news-admin-grid { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: repeat(6, 1fr); }
  .legal-toc ol { columns: 1; }
  .legal-table, :not(.table-wrap) > .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal-table td, .legal-table th { min-width: 110px; }
  .data-table th, .data-table td { padding: 10px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-top: 40px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
    border-top: 1px solid var(--line);
  }
  .bottom-nav a, .bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .68rem; font-weight: 650; transition: color .2s, transform .15s; }
  .bottom-nav i { font-size: 19px; }
  .bottom-nav .active { color: var(--brand); }
  .bottom-nav .active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 3px 3px; background: var(--brand); }
  .bottom-nav a:active, .bottom-nav button:active { transform: scale(.92); }
  .bn-dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
  .search-overlay { padding: 0; }
  .search-dialog { width: 100%; border-radius: 0 0 var(--r-lg) var(--r-lg); border-top: 0; }
  .search-hint { display: none; }
  .toast-host { bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)); }
  .stat-num { font-size: 1.55rem; }
}
@media (max-width: 420px) {
  .topbar-clocks { gap: 10px; }
  .topbar-date { display: none; }
  .topbar-inner { justify-content: center; }
  .hl-thumb { width: 80px; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .topbar, .site-header, .bottom-nav, .site-footer, .art-share, .art-side, .art-share-inline, .blog-comments, .read-progress, .search-overlay { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .art-layout { display: block; }
  .art-body a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
@media (forced-colors: active) {
  .btn, .chip, .card { border: 1px solid CanvasText; }
}

/* ---------- E-posta bülteni ---------- */
.nl-box { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.nl-copy { display: flex; gap: 14px; align-items: flex-start; }
.nl-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.15rem; }
.nl-copy h2 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 4px; }
.nl-copy p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.nl-row { display: flex; gap: 8px; }
.nl-row input[type="email"] { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; }
.nl-row input[type="email"]:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.nl-row .btn { white-space: nowrap; }
.nl-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: .88rem; color: var(--ink-2); }
.nl-opts label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.nl-fine { margin: 10px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.nl-fine a { text-decoration: underline; }
.nl-footer, .nl-page .nl-box { grid-template-columns: 1.1fr 1fr; align-items: center; }
.nl-footer { margin: 0 0 28px; background: var(--brand-50); border-color: color-mix(in srgb, var(--brand) 18%, var(--line)); }
.nl-inline { margin: 28px 0; background: linear-gradient(160deg, var(--brand-50), var(--surface) 75%); border-color: color-mix(in srgb, var(--brand) 18%, var(--line)); }
.nl-side .nl-copy { flex-direction: column; gap: 10px; }
.nl-side .nl-row { flex-direction: column; }
.nl-page .nl-box { margin-top: 18px; max-width: 880px; }
.nl-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; max-width: 880px; }
.nl-benefits .card { padding: 20px; }
.nl-benefits i { color: var(--brand); font-size: 1.3rem; margin-bottom: 10px; display: block; }
.nl-benefits h2 { font-size: 1rem; margin: 0 0 6px; }
.nl-benefits p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.nl-state { max-width: 640px; text-align: center; padding: 34px 26px; margin-top: 18px; }
.nl-state .success-icon { margin: 0 auto 14px; }
.nl-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 760px) {
  .nl-footer, .nl-page .nl-box { grid-template-columns: 1fr; }
  .nl-row { flex-direction: column; }
}
