/* BFSI Updates — public site design system. Hand-written, no framework, no build step.
   Tokens → base → layout → components → pages → dark mode → responsive. */

/* ───────────────────────── 1. Tokens ───────────────────────── */
:root {
  --brand: #1d4ed8;
  --brand-600: #1e40af;
  --brand-100: #dbe6ff;
  --brand-50: #eef3ff;
  --navy: #081a44;
  --navy-2: #0c2459;
  --ink: #101828;
  --ink-2: #475467;
  --mute: #667085;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --bg: #ffffff;
  --card: #ffffff;
  --wash: #f4f5f7;
  --up: #0f9d58;
  --down: #e5484d;
  --warn: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(13, 20, 36, .06), 0 1px 1px rgba(13, 20, 36, .04);
  --shadow: 0 6px 24px -8px rgba(13, 20, 36, .16), 0 2px 6px rgba(13, 20, 36, .05);
  --shadow-lg: 0 24px 60px -20px rgba(8, 26, 68, .35);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --f: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Newsreader', 'Source Serif 4', ui-serif, Georgia, 'Times New Roman', serif;
  --max: 1240px;
  --gut: clamp(16px, 3vw, 28px);
  --header-h: 68px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --brand: #6b95ff;
  --brand-600: #8fb0ff;
  --brand-100: #1c2c5a;
  --brand-50: #141f3f;
  --ink: #edf0f5;
  --ink-2: #b4bccb;
  --mute: #8a94a6;
  --line: #242b39;
  --line-2: #323b4e;
  --bg: #0b0e14;
  --card: #12161f;
  --wash: #181d28;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ───────────────────────── 2. Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%;  scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--f); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.w { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 10px; }

/* ───────────────────────── 3. Header ───────────────────────── */
.topbar { background: var(--navy); color: #c9d6f5; font-size: 12.5px; }
.topbar .w { display: flex; align-items: center; gap: 18px; min-height: 38px; }
.topbar-date { white-space: nowrap; color: #9db0de; font-weight: 500; }
.ticker { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: 6px; background: #e5484d; color: #fff; font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; }
.ticker-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.ticker-track { position: relative; flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-move { display: inline-flex; width: max-content; white-space: nowrap; animation: marquee 70s linear infinite; }
.ticker-move > span { display: inline-flex; gap: 48px; padding-right: 48px; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { color: #e5ecff; }
.ticker-move a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar-links { display: flex; gap: 16px; margin-left: auto; }
.topbar-links a { color: #9db0de; font-weight: 500; }
.topbar-links a:hover { color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

.mast { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.mast.scrolled { box-shadow: 0 8px 24px -16px rgba(8, 26, 68, .35); }
.mast .w { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 38px; width: auto; }
:root[data-theme='dark'] .logo img { filter: brightness(0) invert(1) contrast(1.1); }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: 8px auto; }
.nav a { position: relative; padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); border-radius: 10px; transition: color .15s, background .15s; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--wash); }
.nav a.on { color: var(--brand); }
.nav a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); }
.tools { display: flex; align-items: center; gap: 8px; }
.btn-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); transition: all .15s; font-size: 18px; }
.btn-ic:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-50); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; transition: all .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
:root[data-theme='dark'] .btn-primary { color: #06112e; }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.burger { display: none; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(5, 12, 32, .55); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-panel a.dl { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; font-weight: 600; }
.drawer-panel a.dl:hover { background: var(--wash); }
.drawer-panel a.dl .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--c, var(--brand)); font-size: 17px; }
.drawer-sub { margin-top: auto; padding-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; color: var(--mute); font-size: 14px; border-top: 1px solid var(--line); }

/* Search overlay */
.search { position: fixed; inset: 0; z-index: 250; display: none; align-items: flex-start; justify-content: center; padding: 11vh 16px 16px; background: rgba(5, 12, 32, .6); backdrop-filter: blur(6px); }
.search.open { display: flex; animation: fade .2s; }
.search-box { width: min(720px, 100%); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.search-field .i { width: 22px; height: 22px; color: var(--mute); }
.search-field input { flex: 1; height: 64px; border: 0; background: none; font: inherit; font-size: 18px; color: var(--ink); outline: none; }
.search-field kbd { font: 600 11px var(--f); color: var(--mute); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 7px; }
.search-body { padding: 14px 16px 18px; max-height: 60vh; overflow-y: auto; }
.search-body h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 4px 6px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; background: var(--wash); border: 1px solid transparent; font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: all .15s; }
.chip:hover { border-color: var(--c, var(--brand)); color: var(--c, var(--brand)); background: var(--card); }
.chip.on { background: var(--c, var(--brand)); color: #fff; }
.chip .i { color: var(--c, var(--brand)); }
.chip.on .i { color: #fff; }
.sugg a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; font-weight: 500; }
.sugg a:hover, .sugg a.act { background: var(--wash); }
.sugg a .i { color: var(--mute); }
.sugg-empty { padding: 18px 8px; color: var(--mute); }
@keyframes fade { from { opacity: 0; } }

/* ───────────────────────── 4. Cards & atoms ───────────────────────── */
.cat { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--brand)); }
.cat.pill { padding: 5px 11px; border-radius: 99px; background: color-mix(in srgb, var(--c, var(--brand)) 12%, transparent); }
.cat .i { width: 14px; height: 14px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--mute); font-size: 12.5px; font-weight: 500; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .i { width: 14px; height: 14px; }
.meta .sep::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.ttl { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.22; color: var(--ink); text-wrap: pretty; }
a:hover > .ttl, .story:hover .ttl { color: var(--brand); }
.clamp2, .clamp3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { -webkit-line-clamp: 2; }
.clamp3 { -webkit-line-clamp: 3; }

/* Cover image with category-coloured fallback */
.cover { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--wash); border-radius: var(--r); isolation: isolate; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.story:hover .cover img { transform: scale(1.045); }
.cover.ph { background:
    radial-gradient(120% 90% at 10% 0%, color-mix(in srgb, var(--c, var(--brand)) 70%, #fff) 0%, transparent 60%),
    linear-gradient(135deg, var(--c, var(--brand)), color-mix(in srgb, var(--c, var(--brand)) 55%, #06112e)); }
.cover.ph::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 14px); }
.cover.ph .i { position: absolute; right: 12%; bottom: 14%; width: 38%; height: 38%; stroke-width: 1.1; color: rgba(255, 255, 255, .85); }
.cover .pill-on { position: absolute; left: 12px; top: 12px; z-index: 2; }
.cover .pill-on .cat { background: rgba(255, 255, 255, .94); color: var(--c); padding: 5px 10px; border-radius: 99px; backdrop-filter: blur(6px); }

.story { display: block; }
.story .ttl { transition: color .15s; }

/* Vertical card */
.card { display: flex; flex-direction: column; gap: 12px; }
.card .ttl { font-size: 19px; }
.card .dek { color: var(--ink-2); font-size: 14.5px; }
.card-s .ttl { font-size: 17px; }

/* Horizontal row */
.row { display: grid; grid-template-columns: 1fr 132px; gap: 16px; align-items: start; }
.row.row-l { grid-template-columns: 132px 1fr; }
.row .cover { aspect-ratio: 4 / 3; border-radius: 12px; }
.row .ttl { font-size: 17.5px; }
.row .txt { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.row .dek { color: var(--ink-2); font-size: 14.5px; }

/* Numbered list (Must read) */
.numbered { counter-reset: n; display: flex; flex-direction: column; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.numbered li:last-child { border-bottom: 0; padding-bottom: 0; }
.numbered li::before { content: counter(n, decimal-leading-zero); font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; color: var(--line-2); transition: color .2s; }
.numbered li:hover::before { color: var(--brand); }
.numbered .ttl { font-size: 16.5px; }

/* Panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-h h3 { font-size: 15px; font-weight: 800; letter-spacing: .02em; display: flex; align-items: center; gap: 9px; }
.panel-h h3 .i { color: var(--brand); }

/* Section headers */
.sec { padding-block: clamp(28px, 4vw, 48px); }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); position: relative; }
.sec-h::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--c, var(--brand)); border-radius: 3px; }
.sec-h h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; display: flex; align-items: center; gap: 12px; }
.sec-h h2 .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c, var(--brand)); }
.sec-h h2 .ic .i { width: 20px; height: 20px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--brand); }
.more .i { transition: transform .2s; }
.more:hover .i { transform: translateX(4px); }

/* Ads */
.ad { display: block; position: relative; margin-inline: auto; width: 100%; max-width: 1200px; border-radius: var(--r); overflow: hidden; background: var(--wash); }
.ad img { width: 100%; height: auto; }
.ad-tag { position: absolute; right: 8px; top: 8px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 7px; border-radius: 4px; }
.ad-band { padding-block: 8px; }
.ad-side { max-width: 336px; margin: 0; }

/* ───────────────────────── 5. Home ───────────────────────── */
.hero { padding-block: clamp(20px, 3vw, 34px) clamp(8px, 2vw, 20px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
.lead { position: relative; display: block; min-height: 460px; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate; box-shadow: var(--shadow); }
.lead .bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, var(--c, var(--brand)), #06112e); }
.lead .bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.lead:hover .bg img { transform: scale(1.04); }
.lead::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 17, 46, .05) 20%, rgba(6, 17, 46, .62) 52%, rgba(6, 17, 46, .96) 100%); }
.lead .in { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.lead .cat { align-self: flex-start; background: rgba(255, 255, 255, .95); color: var(--c); padding: 6px 12px; border-radius: 99px; }
.lead .ttl { text-wrap: balance; color: #fff; font-size: clamp(26px, 3.3vw, 42px); font-weight: 600; line-height: 1.12; }
.lead .dek { color: rgba(255, 255, 255, .86); font-size: 16px; max-width: 62ch; }
.lead .meta { color: rgba(255, 255, 255, .75); }
.lead.ph-lead .bg .i { position: absolute; right: 8%; top: 12%; width: 34%; height: 34%; stroke-width: .9; color: rgba(255, 255, 255, .3); }
.hero-side { display: flex; flex-direction: column; }
.hero-side > .story { padding-block: 18px; border-bottom: 1px solid var(--line); }
.hero-side > .story:first-child { padding-top: 0; }
.hero-side > .story:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-side .side-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.hero-side .side-h .i { color: var(--brand); }

.topics { padding-block: 6px 4px; }
.topics .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-block: 4px; }
.topics .chips::-webkit-scrollbar { display: none; }
.topics .chip { flex: none; padding: 10px 16px; background: var(--card); border: 1px solid var(--line); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: all .15s; }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.feed { display: flex; flex-direction: column; }
.feed .story { padding-block: 22px; border-bottom: 1px solid var(--line); }
.feed > :first-child .story { padding-top: 6px; }
.feed .row { grid-template-columns: 1fr 220px; gap: 24px; }
.feed .row .cover { aspect-ratio: 3 / 2; }
.feed .row .ttl { font-size: 22px; }
.feed .row .dek { font-size: 15px; }
.feed-more { margin-top: 24px; display: flex; justify-content: center; }

.block { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.block .card .ttl { font-size: clamp(22px, 2.2vw, 28px); }
.block .card .cover { aspect-ratio: 16 / 9; }
.block-list { display: flex; flex-direction: column; }
.block-list > .story { padding-block: 16px; border-bottom: 1px solid var(--line); }
.block-list > .story:first-child { padding-top: 0; }
.block-list > .story:last-child { border-bottom: 0; padding-bottom: 0; }

.vid-band { background: var(--navy); color: #fff; padding-block: clamp(32px, 5vw, 56px); margin-top: 24px; position: relative; overflow: hidden; }
.vid-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(29, 78, 216, .45), transparent 60%); }
:root[data-theme='dark'] .vid-band { background: #0a1330; }
.vid-band .sec-h { border-color: rgba(255, 255, 255, .14); }
.vid-band .sec-h::after { background: #6b95ff; }
.vid-band .more { color: #9fbbff; }
.vid-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.vid { display: flex; flex-direction: column; gap: 12px; }
.vid .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #14224d; }
.vid .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vid:hover .thumb img { transform: scale(1.05); }
.vid .play { position: absolute; inset: 0; display: grid; place-items: center; }
.vid .play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .2s; }
.vid:hover .play span { transform: scale(1.1); }
.vid h3 { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.vid p { font-size: 12.5px; color: #9db0de; }

/* ───────────────────────── 6. Listing pages ───────────────────────── */
.page-head { padding-block: clamp(26px, 4vw, 48px) clamp(18px, 2.5vw, 28px); background: var(--bg); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--mute); margin-bottom: 14px; font-weight: 500; }
.crumbs a:hover { color: var(--brand); }
.crumbs .i { width: 12px; height: 12px; transform: rotate(-90deg); opacity: .6; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-head h1 .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--c, var(--brand)); }
.page-head h1 .ic .i { width: 26px; height: 26px; }
.page-head p { margin-top: 10px; color: var(--ink-2); max-width: 64ch; font-size: 17px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.filters .chips { gap: 8px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--wash); gap: 2px; }
.seg a { padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.seg a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(18px, 2vw, 28px); }
.grid .feat { grid-column: span 2; }
.grid .feat .ttl { font-size: clamp(24px, 2.6vw, 32px); }
.grid .feat .cover { aspect-ratio: 2 / 1; }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--mute); background: var(--card); }
.empty h3 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.pager { display: flex; justify-content: center; margin-top: 44px; }
.pager ul { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager a, .pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .cur span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .dis span { opacity: .45; }

/* ───────────────────────── 7. Article ───────────────────────── */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; background: linear-gradient(90deg, var(--brand), #6b95ff); transition: width .08s linear; }
.art-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 60px); padding-block: clamp(20px, 3vw, 36px) 48px; align-items: start; }
.art-head { display: flex; flex-direction: column; gap: 16px; }
.art-head h1 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.art-head .dek { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 14px; border-block: 1px solid var(--line); }
.byline .who { display: flex; align-items: center; gap: 12px; }
.byline .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-100); color: var(--brand); font-weight: 800; font-size: 15px; }
.byline b { display: block; font-size: 14px; line-height: 1.2; }
.byline small { color: var(--mute); font-size: 12.5px; }
.byline .share { margin-left: auto; display: flex; gap: 8px; }
.art-cover { margin: 24px 0 0; }
.art-cover .cover { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.art-cover figcaption { margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.takeaways { margin-top: 28px; border-radius: var(--r-lg); padding: 22px 24px; background: var(--brand-50); border: 1px solid var(--brand-100); position: relative; }
.takeaways h2 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.takeaways ul { display: flex; flex-direction: column; gap: 10px; }
.takeaways li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-weight: 500; line-height: 1.5; }
.takeaways li .i { color: var(--brand); margin-top: 2px; }
.prose { font-size: 18.5px; line-height: 1.78; color: var(--ink); margin-top: 28px; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--serif); font-size: 31px; font-weight: 600; line-height: 1.2; margin-top: 1.9em; letter-spacing: -.01em; }
.prose h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-top: 1.6em; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2.5px; }
.prose ul, .prose ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: .5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand); font-family: var(--serif); font-size: 24px; line-height: 1.45; color: var(--ink-2); font-style: italic; }
.prose img { border-radius: var(--r); margin-inline: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.prose .tscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose td { white-space: normal; min-width: 110px; }
.prose thead th { background: var(--brand-50); color: var(--ink); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: var(--wash); }
.prose iframe, .prose video { width: 100%; border-radius: var(--r); }
.prose > p:first-of-type::first-letter { }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags span { padding: 6px 12px; border-radius: 99px; background: var(--wash); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.src { margin-top: 28px; padding: 16px 20px; border-radius: var(--r); background: var(--wash); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.src .i { color: var(--brand); width: 20px; height: 20px; }
.src a { color: var(--brand); font-weight: 600; }
.faq { margin-top: 40px; }
.faq h2 { font-family: var(--serif); font-size: 29px; margin-bottom: 16px; font-weight: 600; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin-bottom: 10px; transition: border-color .15s; }
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s; color: var(--mute); }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--brand); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); }
.disclaimer { margin-top: 36px; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); font-size: 13px; color: var(--mute); line-height: 1.55; }
.related { padding-block: 8px 56px; }
.related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Promo card (assistant / RSS) */
.promo { border-radius: var(--r-lg); padding: 24px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #3b6fe6, transparent 55%), linear-gradient(145deg, var(--navy-2), var(--navy)); position: relative; overflow: hidden; }
.promo h3 { font-size: 20px; margin-bottom: 8px; }
.promo p { color: #c3d0f2; font-size: 14.5px; margin-bottom: 18px; }
.promo .btn { background: #fff; color: var(--navy); width: 100%; }
.promo .btn:hover { background: #e6eeff; }
.promo > .i { position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; opacity: .1; stroke-width: 1.2; }

/* ───────────────────────── 8. Static pages ───────────────────────── */
.narrow { max-width: 820px; margin-inline: auto; }
.page-body { padding-block: 36px 64px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); transition: all .2s; display: block; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c, var(--brand)); }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--c, var(--brand)); margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 14.5px; }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding-block: 36px 64px; align-items: start; }
.contact-info { background: linear-gradient(150deg, var(--navy-2), var(--navy)); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.contact-info h2 { font-size: 28px; }
.contact-info p { color: #c3d0f2; }
.contact-info .row-i { display: flex; gap: 14px; align-items: center; }
.contact-info .row-i .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.contact-info small { display: block; color: #9db0de; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.form h2 { font-size: 26px; margin-bottom: 6px; }
.form > p { color: var(--mute); margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 13.5px; }
.field label span { color: var(--mute); font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); font: inherit; color: var(--ink); transition: all .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); background: var(--card); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; font-size: 14.5px; }
.alert-ok { background: #e7f7ee; color: #0a6b3a; border: 1px solid #b6e6cb; }
.alert-err { background: #fdecec; color: #a3232a; border: 1px solid #f6c3c6; }
:root[data-theme='dark'] .alert-ok { background: #0d2a1c; color: #7be0aa; border-color: #17482f; }
:root[data-theme='dark'] .alert-err { background: #2b1214; color: #ff9aa0; border-color: #5a2226; }
.search-page { padding-block: 30px 60px; }
.search-page .big { display: flex; gap: 10px; max-width: 680px; margin-bottom: 30px; }
.search-page .big input { flex: 1; height: 54px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); font: inherit; font-size: 17px; color: var(--ink); }
.search-page .big input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.search-page .big .btn { height: 54px; }
.err-page { text-align: center; padding-block: clamp(60px, 12vw, 140px); }
.err-page .code { font-family: var(--serif); font-size: clamp(90px, 18vw, 180px); line-height: 1; font-weight: 600; background: linear-gradient(135deg, var(--brand), #6b95ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-page h1 { font-size: clamp(24px, 3vw, 34px); margin-block: 8px 12px; }
.err-page p { color: var(--mute); margin-bottom: 26px; }

/* ───────────────────────── 9. Footer ───────────────────────── */
.foot { background: var(--navy); color: #c3d0f2; margin-top: 56px; position: relative; }
:root[data-theme='dark'] .foot { background: #050a18; border-top: 1px solid var(--line); }
.foot a:hover { color: #fff; }
.foot-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(40px, 5vw, 64px) 36px; }
.foot .logo img { height: 40px; filter: brightness(0) invert(1); }
.foot-about { margin-top: 18px; max-width: 38ch; font-size: 14.5px; line-height: 1.65; color: #9db0de; }
.foot h4 { color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 800; }
.foot ul { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.foot .must li a { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: start; }
.foot .must img, .foot .must .ph { width: 58px; height: 46px; border-radius: 8px; object-fit: cover; background: #14224d; }
.foot .must span { font-size: 13.5px; line-height: 1.4; color: #dbe4fb; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.foot .must .must-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.foot .must .must-copy b { font-size: 13.5px; line-height: 1.35; font-weight: 600; }
.foot .must .must-copy small { color: #8196c9; font-size: 11.5px; line-height: 1.2; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: all .15s; font-size: 18px; }
.social a:hover { background: var(--brand); transform: translateY(-2px); }
.foot-bar { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: 13px; color: #8196c9; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot-bar p { max-width: 80ch; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .25s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ───────────────────────── 10. Responsive ───────────────────────── */
@media (max-width: 1100px) {
  .nav a { padding-inline: 10px; font-size: 14px; }
  .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav, .tools .hide-m { display: none; }
  .burger { display: inline-grid; }
  .mast .w { gap: 12px; }
  .tools { margin-left: auto; }
  .hero-grid, .cols, .art-wrap, .contact, .block { grid-template-columns: minmax(0, 1fr); }
  .lead { min-height: 400px; }
  .aside { position: static; }
  .grid, .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid .feat { grid-column: span 2; }
  .ad-side { max-width: none; }
}
@media (max-width: 680px) {
  :root { --header-h: 60px; }
  .topbar-date, .topbar-links { display: none; }
  .topbar .w { min-height: 36px; }
  .logo img { height: 32px; }
  .btn-ic { width: 40px; height: 40px; }
  .lead { min-height: 420px; border-radius: var(--r); }
  .lead .dek { display: none; }
  .row, .row.row-l { grid-template-columns: 1fr 104px; gap: 14px; }
  .row.row-l { grid-template-columns: 104px 1fr; }
  .row .ttl, .feed .row .ttl { font-size: 17px; }
  .feed .row { grid-template-columns: 1fr 108px; gap: 14px; }
  .feed .row .dek { display: none; }
  .grid, .related .grid { grid-template-columns: minmax(0, 1fr); }
  .grid .feat { grid-column: auto; }
  .grid .feat .cover { aspect-ratio: 16 / 10; }
  .vid-grid { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .prose { font-size: 17.5px; }
  .prose h2 { font-size: 26px; }
  .byline .share { margin-left: 0; width: 100%; }
  .sec-h h2 .ic { display: none; }
  .page-head h1 .ic { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .mast, .foot, .aside, .share, .progress, .to-top, .ad, .related { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { font-size: 12pt; }
}

/* Native clear button of search inputs duplicates our own close button */
input[type='search']::-webkit-search-cancel-button, input[type='search']::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
