/* Vertoz Media default theme — editorial, fast, accessible. Brand colour comes from Site → Appearance (--brand, injected by layout.hbs).
   The brand colour is kept to a few roles: the active nav marker, links, kickers and primary buttons. Everything else is neutral. */
:root {
  --brand: #0066CC; --accent: var(--brand);
  /* Contrast-safe derivatives of the site colour (refined below where the browser supports colour maths):
     --brand-ink: brand used as text on a light background (darkened until it reads at 4.5:1 or better)
     --on-brand: text placed on a brand-coloured surface (white or near-black, picked by lightness) */
  --brand-ink: var(--brand); --on-brand: #fff;
  --bg: #ffffff; --surface: #f5f4f0; --text: #16161a; --text-2: #5c5c63; --line: #e2e0da; --rule: var(--text);
  --radius: 6px; --radius-sm: 4px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 28px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", Charter, "Bitstream Charter", Georgia, "Times New Roman", serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --focus-ring: var(--brand-ink);
  --wrap: 1200px;
  /* sticky header geometry (theme.js measures the real values) */
  --topbar-h: 34px; --header-h: 71px;
  /* Stacking scale for everything fixed/sticky. The phone menu and the search panel live inside the header, so the
     header itself is lifted to --z-nav / --z-search while they are open (html.nav-open / html.search-open, theme.js). */
  --z-header: 50; --z-sticky-ad: 80; --z-cookie: 85; --z-nav: 90; --z-search: 95; --z-interstitial: 100; --z-skip: 110;
  color-scheme: light;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root { --brand-ink: color-mix(in srgb, var(--brand) 72%, #000); }
}
/* "and content-visibility" leaves out Safari 16.4–17, whose early relative-colour syntax used 0–100 channel values. */
@supports (color: oklch(from red l c h)) and (content-visibility: auto) {
  :root {
    --brand-ink: oklch(from var(--brand) min(l, 0.5) c h);
    --on-brand: oklch(from var(--brand) clamp(0, (0.62 - l) * 1000, 1) 0 0);
  }
}
@media (max-width: 899px) { :root { --topbar-h: 0px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 1rem/1.6 var(--font); color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
mark { background: #fdeba0; color: inherit; padding: 0 .08em; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--text); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; z-index: var(--z-skip); --focus-ring: #fff; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
@media (min-width: 1440px) { :root { --wrap: 1240px; } }
.muted { color: var(--text-2); font-weight: 400; }
.small { font-size: .875rem; }
.preview-bar { background: #a04500; color: #fff; text-align: center; padding: 8px 12px; font-size: .875rem; font-weight: 600; --focus-ring: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid #c9c7c0; background: #fff; color: var(--text); font: 600 .9375rem/1 var(--font); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--text); color: var(--text); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface); }

/* Utility bar above the masthead: date, tagline, follow links. Scrolls away; hidden on phones to save space. */
.topbar { background: var(--text); color: #d1d1d6; font-size: .75rem; letter-spacing: .01em; --focus-ring: #fff; }
.topbar-inner { display: flex; align-items: center; gap: 14px; min-height: 34px; }
.topbar-date { color: #fff; font-weight: 600; white-space: nowrap; }
.topbar-tagline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-family: var(--font-display); font-style: italic; font-size: .8125rem; }
.topbar-spacer { flex: 1; }
.topbar-social { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.topbar-social a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: #d1d1d6; }
.topbar-social a:hover { color: #fff; background: rgba(255,255,255,.12); }
.topbar-social svg { width: 14px; height: 14px; }
.topbar-link { color: #fff; font-weight: 600; white-space: nowrap; padding: 5px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-sm); }
.topbar-link:hover { background: #fff; color: var(--text); }
.topbar-link:focus-visible, .topbar-social a:focus-visible { outline-offset: 1px; }
@media (max-width: 899px) { .topbar { display: none; } }

/* Header & navbar. Only the masthead row stays on screen: the header is sticky with a negative top equal to the topbar height,
   so the topbar scrolls away. A thin double rule closes the masthead, newspaper style. */
.site-header { position: sticky; top: calc(-1 * var(--topbar-h)); z-index: var(--z-header); background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 3px double var(--rule); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.brand-name { font: 700 1.75rem/1 var(--font-display); letter-spacing: -.015em; }
.site-nav { flex: 1; min-width: 0; }
/* No overflow clipping here: the dropdown menus hang below the bar. Long menus wrap to a second line instead. */
.nav-list { list-style: none; display: flex; align-items: center; gap: 0 2px; margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; font-size: .9375rem; font-weight: 500; white-space: nowrap; color: var(--text); text-decoration-line: none; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-link:hover { color: var(--text); text-decoration-line: underline; text-decoration-color: var(--line); }
.nav-item.is-active > .nav-link { color: var(--text); font-weight: 600; text-decoration-line: underline; text-decoration-color: var(--brand); }
.dropdown-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; border: 0; background: transparent; color: var(--text-2); border-radius: 999px; cursor: pointer; }
.dropdown-toggle:hover { color: var(--text); background: var(--surface); }
.dropdown-toggle svg { transition: transform .15s ease; }
.nav-item.is-open > .dropdown-toggle svg { transform: rotate(180deg); }
/* The menu sits flush under its item (top: 100%) and a transparent ::before bridge covers the visual gap,
   so the pointer never leaves the hover area on its way down. */
.dropdown { list-style: none; position: absolute; top: 100%; left: 0; min-width: 220px; margin: 6px 0 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 60; }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.dropdown a { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .9375rem; }
.dropdown a:hover { background: var(--surface); color: var(--text); }
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown, .has-dropdown.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.site-header.is-centered .header-inner { flex-wrap: wrap; justify-content: center; }
.site-header.is-centered .site-nav { flex-basis: 100%; order: 3; }
.site-header.is-centered .nav-list { justify-content: center; }
.nav-toggle { display: none; }
.search-toggle { margin-left: auto; }
.search-panel { border-top: 1px solid var(--line); background: #fff; }
.search-form { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; color: var(--text-2); }
.search-form input { flex: 1; min-width: 0; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; font: 400 1.25rem/1.4 var(--font-display); color: var(--text); background: transparent; padding: 8px 2px; min-height: 44px; }
.search-form input:focus { outline: none; border-bottom-color: var(--brand-ink); }
.search-form input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Full navigation from 1100px; below that the hamburger opens a sheet under the header (1024px tablets included). */
@media (max-width: 1099px) {
  /* No backdrop-filter here: it would make the header the containing block of the fixed menu and clip it. */
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: inline-grid; }
  /* Closed: off-canvas AND visibility:hidden so its links can't be tabbed to or clicked. --nav-top is set by theme.js
     from the header's real bottom edge (68px when the topbar is hidden). */
  .site-nav { position: fixed; top: var(--nav-top, 68px); left: 0; width: 100%; height: calc(100dvh - var(--nav-top, 68px)); background: #fff; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 40px; z-index: 60; box-shadow: 0 20px 40px rgba(0,0,0,.15); }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .2s ease, visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; font-size: 1.0625rem; padding: 0 4px; min-height: 52px; text-underline-offset: 6px; }
  .nav-link:hover { background: transparent; }
  .nav-item.is-active > .nav-link { text-decoration: none; box-shadow: inset 3px 0 0 var(--brand); padding-left: 12px; }
  .dropdown-toggle { width: 44px; height: 44px; margin-left: 0; }
  /* Sub-menus become an accordion inside the sheet */
  .dropdown { position: static; flex-basis: 100%; min-width: 0; margin: 0; border: 0; box-shadow: none; padding: 0 0 10px 12px; display: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .dropdown::before { display: none; }
  .dropdown a { min-height: 44px; color: var(--text-2); }
  .has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { display: none; }
  .has-dropdown.is-open > .dropdown { display: block; }
  .brand { margin: 0 auto; }
  .brand-name { font-size: 1.5rem; }
  .search-toggle { margin-left: 0; }
  .site-header.is-centered .site-nav { order: 0; }
}
@media (min-width: 600px) and (max-width: 1099px) { .site-nav { width: 400px; } }
@media (max-width: 380px) { .brand-name { font-size: 1.3125rem; } .brand-logo { max-width: 180px; } }

/* Layout */
.site-main { padding-bottom: 48px; }
.with-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; margin-top: 32px; }
@media (max-width: 1199px) { .with-sidebar { gap: 40px; } }
@media (max-width: 999px) { .with-sidebar { grid-template-columns: 1fr; gap: 40px; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 20px; padding-top: 10px; border-top: 3px solid var(--rule); }
.section-title { font: 700 1.375rem/1.25 var(--font-display); letter-spacing: -.01em; margin: 0; }
.section-title a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.see-all { display: inline-flex; align-items: center; min-height: 32px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.see-all:hover { color: var(--brand-ink); }
.cat-block { margin-bottom: 44px; }
/* Kicker: the section a story belongs to */
.eyebrow { display: inline-block; color: var(--brand-ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
a.eyebrow:hover { color: var(--text); }
.eyebrow.on-dark { color: #fff; padding-left: 9px; border-left: 3px solid var(--brand); line-height: 1.2; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: var(--text-2); font-size: .8125rem; margin: 8px 0 0; }
.meta a { color: var(--text); font-weight: 500; }
.meta a:hover { color: var(--brand-ink); }
.meta.on-dark { color: rgba(255,255,255,.88); }

/* Hero: lead story with a 16:9 picture, the next stories as a "Latest" rail beside it */
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; }
.hero-main { position: relative; display: flex; aspect-ratio: 16 / 9; background: #111; border-radius: var(--radius); isolation: isolate; }
.hero-media { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.8) 100%); pointer-events: none; }
.hero-body { position: relative; z-index: 1; margin-top: auto; padding: 28px; color: #fff; --focus-ring: #fff; }
.hero-title { font: 700 clamp(1.6rem, 3vw, 2.4rem)/1.12 var(--font-display); letter-spacing: -.015em; margin: 10px 0 8px; text-wrap: balance; }
.hero-title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-excerpt { margin: 0; color: rgba(255,255,255,.92); max-width: 60ch; }
.hero-side { display: grid; gap: 16px; align-content: start; padding-top: 10px; border-top: 3px solid var(--rule); }
.hero-side::before { content: "Latest"; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.hero-mini { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hero-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-mini-media { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.hero-mini-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-mini .eyebrow { margin-bottom: 2px; }
.hero-mini-title { font: 600 1.0625rem/1.3 var(--font-display); margin: 0; }
.hero-mini-title a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 899px) { .hero { grid-template-columns: 1fr; } }
/* Phones: picture on top, headline below on the page colour (an overlaid 16:9 picture is too short to hold the text) */
@media (max-width: 599px) {
  .hero { margin-top: 16px; gap: 24px; }
  .hero-main { display: block; aspect-ratio: auto; background: transparent; }
  .hero-media { position: relative; display: block; aspect-ratio: 16 / 9; }
  .hero-main::after { display: none; }
  .hero-body { padding: 14px 0 0; color: var(--text); --focus-ring: var(--brand-ink); }
  .hero-title { font-size: 1.625rem; margin-top: 6px; }
  .hero-title a:hover { color: inherit; }
  .hero-excerpt { color: var(--text-2); }
  .eyebrow.on-dark { color: var(--brand-ink); }
  .meta.on-dark { color: var(--text-2); }
  .hero-mini { grid-template-columns: 104px minmax(0, 1fr); }
}

/* Cards & grids */
.grid { display: grid; gap: 32px 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
@media (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { display: grid; place-items: center; height: 100%; padding: 16px; text-align: center; font: 600 1rem/1.3 var(--font-display); color: var(--text-2); background: var(--surface); }
.card-body { padding-top: 12px; }
.card-title { font: 700 1.1875rem/1.28 var(--font-display); letter-spacing: -.005em; margin: 0; text-wrap: pretty; }
.card-title a:hover, .card:hover .card-title a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.grid-4 .card-title { font-size: 1rem; }
.card-excerpt { color: var(--text-2); margin: 6px 0 0; font-size: .9375rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid-4 .card-excerpt { display: none; }
/* Category block on the home page: one lead story, the rest as compact rows beside it */
.cat-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-auto-rows: auto; gap: 20px 32px; align-items: start; }
.cat-grid > .card:first-child { grid-row: 1 / span 3; }
.cat-grid > .card:first-child .card-title { font-size: 1.5rem; line-height: 1.2; }
.cat-grid > .card:not(:first-child) { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cat-grid > .card:nth-child(4) { border-bottom: 0; padding-bottom: 0; }
.cat-grid > .card:not(:first-child) .card-body { padding-top: 0; }
.cat-grid > .card:not(:first-child) .card-title { font-size: 1.0625rem; }
.cat-grid > .card:not(:first-child) .card-excerpt { display: none; }
.cat-grid > .card:not(:first-child) .meta { margin-top: 4px; }
@media (max-width: 899px) { .cat-grid { grid-template-columns: 1fr; gap: 20px; } .cat-grid > .card:first-child { grid-row: auto; } .cat-grid > .card:first-child .card-title { font-size: 1.3125rem; } }
@media (max-width: 599px) { .cat-grid > .card:not(:first-child) { grid-template-columns: 104px minmax(0, 1fr); } }
.grid.list { grid-template-columns: 1fr; gap: 0; }
.grid.list .card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.grid.list .card:first-child { padding-top: 0; }
.grid.list .card-body { padding-top: 0; }
@media (max-width: 599px) { .grid.list .card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; } .grid.list .card-excerpt { display: none; } .grid.list .card-title { font-size: 1.0625rem; } }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 40px 0 8px; flex-wrap: wrap; }
.page-numbers { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.page-num, .page-btn { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 600; font-size: .9375rem; }
.page-num:hover, .page-btn:hover { border-color: var(--text); color: var(--text); }
.page-num.is-current { background: var(--text); border-color: var(--text); color: #fff; }
.page-btn.is-disabled { color: #6e6e75; border-style: dashed; background: var(--surface); cursor: default; pointer-events: none; }
.page-gap { display: grid; place-items: center; width: 24px; color: var(--text-2); }
.page-count { text-align: center; color: var(--text-2); font-size: .8125rem; margin: 0; }
@media (max-width: 599px) { .page-btn { padding: 0 12px; } .page-numbers .page-num:not(.is-current) { display: none; } .page-gap { display: none; } }

/* Sidebar. It sticks under the header only when it fits the screen (theme.js adds .can-stick), so a tall sidebar
   scrolls normally and a sticky one stays inside its grid row (never over the footer). */
.sidebar { display: grid; gap: 36px; align-content: start; align-self: start; min-width: 0; }
@media (min-width: 1000px) { .sidebar.can-stick { position: sticky; top: calc(var(--header-h) + 24px); } }
.widget { min-width: 0; }
.widget-title { font: 700 .75rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; padding-top: 10px; border-top: 3px solid var(--rule); }
/* "Most read": ranked list with serif numerals */
.trending { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.trending li { counter-increment: t; border-bottom: 1px solid var(--line); }
.trending li:last-child { border-bottom: 0; }
.trending-link { display: grid; grid-template-columns: 26px minmax(0, 1fr) 64px; gap: 12px; align-items: start; padding: 12px 0; }
.trending-link::before { content: counter(t); grid-column: 1; grid-row: 1; font: 700 1.5rem/1 var(--font-display); color: var(--text-2); }
.trending-link > span { grid-column: 2; grid-row: 1; min-width: 0; }
.trending-link img { grid-column: 3; grid-row: 1; width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.trending-title { display: block; font: 600 1rem/1.3 var(--font-display); }
.trending-link:hover { color: var(--text); }
.trending-link:hover .trending-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.trending .eyebrow { margin-bottom: 2px; font-size: .6875rem; }
.trending .meta { margin-top: 2px; font-size: .75rem; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 4px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.cat-list li:last-child a { border-bottom: 0; }
.count { color: var(--text-2); font-size: .8125rem; background: var(--surface); border-radius: 999px; padding: 0 8px; min-width: 28px; text-align: center; }

/* Social */
.social-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.social-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; font: 700 .875rem var(--font); }
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: var(--text); border-color: var(--text); color: #fff; }
.widget .social-list { margin-top: 0; }

/* Archive / breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; padding: 0; font-size: .8125rem; color: var(--text-2); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #9a9aa0; }
.breadcrumbs a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.archive-head { display: flex; gap: 20px; align-items: center; padding: 20px 0 16px; border-bottom: 1px solid var(--line); }
.archive-title { font: 700 clamp(1.75rem, 3.4vw, 2.625rem)/1.12 var(--font-display); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.archive-desc { max-width: 68ch; color: var(--text-2); margin: 10px 0 0; font-size: 1.0625rem; }
.avatar-lg { width: 96px; height: 96px; border-radius: 999px; object-fit: cover; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .875rem; font-weight: 500; }
.chip:hover { border-color: var(--text); color: var(--text); }
@media (pointer: coarse) { .chip { min-height: 44px; } }
.empty { text-align: center; padding: 48px 20px; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--line); }
.empty h2 { margin: 0 0 8px; font: 700 1.5rem/1.25 var(--font-display); }
.empty p { color: var(--text-2); margin: 0 auto; max-width: 52ch; }
.empty a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.empty .chips { justify-content: center; margin-top: 20px; }
.empty .chip { text-decoration: none; color: var(--text); }

/* Post */
.post-head { margin: 18px 0 24px; }
.post-title { font: 700 clamp(2rem, 4.2vw, 3rem)/1.1 var(--font-display); letter-spacing: -.02em; margin: 6px 0 14px; text-wrap: balance; }
.post-dek { font: 400 clamp(1.125rem, 1.6vw, 1.3125rem)/1.45 var(--font-display); color: var(--text-2); margin: 0 0 20px; max-width: 60ch; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--text-2); font-size: .875rem; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; min-height: 44px; }
.byline .by { color: var(--text-2); font-weight: 400; }
.byline img, .avatar-fallback { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
/* Initials avatar: theme.js turns the name into initials and adds .has-initials */
.avatar-fallback { display: none; place-items: center; background: var(--text); color: #fff; font: 600 .8125rem/1 var(--font); letter-spacing: .02em; }
.avatar-fallback.has-initials { display: inline-grid; }
/* Dateline: date · updated · reading time */
.dateline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; }
.dateline > * + *::before { content: "·"; margin-right: 8px; color: #9a9aa0; }
.dateline time { color: var(--text); font-weight: 500; }
.post-figure { margin: 0 0 28px; }
.post-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface); }
.post-figure figcaption { color: var(--text-2); font-size: .8125rem; margin-top: 8px; }

/* Prose: the article body */
.prose { font-size: 1.125rem; line-height: 1.68; max-width: 68ch; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; }
.prose h2 { font: 700 1.625rem/1.25 var(--font-display); letter-spacing: -.01em; margin: 1.9em 0 0; }
.prose h3 { font: 700 1.3125rem/1.3 var(--font-display); margin: 1.6em 0 0; }
.prose h4 { font: 700 1.0625rem/1.35 var(--font); margin: 1.5em 0 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .55em; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 650; }
.prose img, .prose video { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose figure { margin: 1.8em 0 0; }
.prose figure + * { margin-top: 1.8em; }
.prose figure img { width: 100%; }
.prose figcaption { color: var(--text-2); font-size: .875rem; line-height: 1.45; margin-top: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose blockquote { margin: 1.8em 0 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--rule); font: italic 400 1.375rem/1.45 var(--font-display); color: var(--text); }
.prose blockquote + * { margin-top: 1.8em; }
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote cite, .prose blockquote footer { display: block; margin-top: 10px; font: normal 600 .875rem/1.4 var(--font); color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--text-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; display: block; overflow-x: auto; }
.prose caption { caption-side: bottom; text-align: left; color: var(--text-2); font-size: .8125rem; padding-top: 8px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { border-bottom: 2px solid var(--rule); font-weight: 650; white-space: nowrap; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose pre { background: #1b1b1f; color: #f2f2f2; padding: 16px 18px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .875rem; line-height: 1.6; tab-size: 2; }
.prose code { font-family: var(--font-mono); font-size: .875em; }
.prose :not(pre) > code { background: var(--surface); border: 1px solid var(--line); padding: .05em .35em; border-radius: 3px; }
.prose hr { border: 0; margin: 2.2em 0; text-align: center; height: auto; }
.prose hr::before { content: "\2022\2003\2022\2003\2022"; color: var(--text-2); }
/* Drop cap on the first paragraph of an article (wider screens only) */
@media (min-width: 600px) {
  .post .prose > p:first-child::first-letter { float: left; font: 700 3.5em/.82 var(--font-display); margin: .06em .08em 0 0; color: var(--text); }
}
.share { display: flex; align-items: center; gap: 12px; margin: 32px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share .social-list { margin: 0; }
.share-label { font-weight: 600; font-size: .9375rem; }
.author-box { display: flex; gap: 18px; padding: 20px 0; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--line); margin: 28px 0; }
.author-box img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.author-name { font: 700 1.25rem/1.3 var(--font-display); margin: 0; }
.author-box p { margin: 6px 0 0; }
.author-box .eyebrow { color: var(--text-2); margin: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.post-nav-link { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); font: 600 1.0625rem/1.35 var(--font-display); }
.post-nav-link .small { font-family: var(--font); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.post-nav-link:hover { color: var(--text); }
.post-nav-link:hover > span:last-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-nav-link.is-next { text-align: right; }
@media (max-width: 599px) { .post-nav { grid-template-columns: 1fr; gap: 0; } .post-nav-link.is-next { text-align: left; } }
.related { margin-top: 40px; }
.related .section-title { margin-bottom: 20px; padding-top: 10px; border-top: 3px solid var(--rule); }
.notice { background: #fff4e5; border: 1px solid #f3d3a8; color: #7a3500; padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0; }
.notice.success { background: #eaf7ee; border-color: #b7e2c4; color: #1e5f2c; }
.notice.error { background: #ffecee; border-color: #f5c2c8; color: #9b0016; }

/* FAQ */
.faq { margin: 36px 0 8px; max-width: 68ch; }
.faq .section-title { margin-bottom: 4px; padding-top: 10px; border-top: 3px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; min-height: 44px; font-weight: 600; font-size: 1.0625rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--text-2); font-size: 1.375rem; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 18px; color: var(--text-2); line-height: 1.7; white-space: pre-line; }

/* Table of contents (post Layout panel: built from the H2 / H3 headings) */
.toc { margin: 0 0 28px; border: 1px solid var(--line); border-left: 3px solid var(--brand-ink); border-radius: var(--radius-sm); background: var(--surface); max-width: 68ch; }
.toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; min-height: 44px; font-weight: 700; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "\2212"; color: var(--text-2); font-size: 1.25rem; line-height: 1; }
.toc details:not([open]) summary::after { content: "+"; }
.toc ol { margin: 0; padding: 0 16px 14px 34px; display: grid; gap: 6px; }
.toc ol ol { padding: 6px 0 0 18px; list-style: lower-alpha; }
.toc a { color: var(--text); text-decoration: none; line-height: 1.45; }
.toc a:hover, .toc a:focus-visible { color: var(--brand-ink); text-decoration: underline; }
.prose h2[id], .prose h3[id] { scroll-margin-top: calc(var(--topbar-h, 0px) + 84px); }
.post-figure.is-top { margin: 0 0 20px; }

/* Content blocks from the editor: callouts (note / tip / warning) */
.prose .callout { margin: 1.6em 0; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); border-left: 4px solid var(--brand-ink); background: var(--surface); }
.prose .callout > :first-child { margin-top: 0; } .prose .callout > :last-child { margin-bottom: 0; }
.prose .callout.tip { border-left-color: #1e8e3e; background: #eef8f1; }
.prose .callout.warning { border-left-color: #c26401; background: #fff6ea; }
.prose .callout.note { border-left-color: var(--brand-ink); }

/* Recommended (most read in the category) */
.recommended .section-title { border-top-color: var(--brand-ink); }

/* Country sections (/in/, /us/…) and the edition switcher */
.country-head { padding-top: 20px; }
.country-title { margin: 4px 0 6px; }
.country-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; margin-bottom: 8px; }
.country-switch ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.country-switch a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .875rem; }
.country-switch a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.country-switch a:hover, .country-switch a:focus-visible { border-color: var(--brand-ink); }

/* Contact details */
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 32px; }
.ci { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); overflow-wrap: anywhere; }
a.ci:hover { border-color: var(--text); color: var(--text); }
.ci strong { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 2px; }
.ci-ico { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); color: var(--text); flex-shrink: 0; }
.ci-ico svg { width: 20px; height: 20px; }
.ci a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { margin: 12px 0 0; color: #b4b4ba; font-size: .875rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Static pages & forms */
.static-page { padding: 8px 0 24px; }
.contact-card { margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--rule); border-radius: 0 0 var(--radius) var(--radius); }
.contact-card h2 { margin: 0 0 16px; font: 700 1.375rem/1.3 var(--font-display); }
@media (max-width: 599px) { .contact-card { padding: 20px 16px; } }
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .9375rem; }
.field input, .field textarea, .search-inline input { font: 400 1rem/1.4 var(--font); padding: 12px 14px; border: 1px solid #b9b7b0; border-radius: var(--radius-sm); background: #fff; color: var(--text); min-height: 44px; width: 100%; }
.field input:focus, .field textarea:focus, .search-inline input:focus { outline: 2px solid var(--brand-ink); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -10000px; }
/* Contact form spam check (security question / Turnstile) */
.captcha-field { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.captcha-field label { font-weight: 600; }
.captcha-field input { max-width: 200px; }
.captcha-field small { font-weight: 400; font-size: .8125rem; }
.form-note { margin: 0; }
.search-inline { display: flex; gap: 10px; margin: 16px 0 24px; }
.search-inline input { flex: 1; min-width: 0; font-size: 1.0625rem; }
.not-found { text-align: center; padding: 56px 20px 24px; }
.not-found .search-inline { max-width: 520px; margin: 24px auto; }
/* Search page */
.search-summary { margin: 6px 0 0; color: var(--text-2); }
.search-summary strong { color: var(--text); }
.search-browse { margin: 0 0 8px; }
.search-browse .widget-title { margin-bottom: 14px; }
.search-browse .chips { margin-top: 0; }

/* Newsletter: band above the footer (#newsletter) and the compact sidebar widget */
.nl-band { background: var(--surface); border-top: 3px double var(--rule); padding: 44px 0; }
.nl-inner { display: grid; gap: 18px; }
.nl-title { font: 700 1.625rem/1.2 var(--font-display); letter-spacing: -.01em; margin: 0 0 6px; }
.nl-text { margin: 0; color: var(--text-2); font-size: .9375rem; }
.nl-form { display: grid; gap: 10px; }
.nl-form input[type=email] { font: 400 1rem/1.4 var(--font); padding: 0 14px; min-height: 48px; border: 1px solid #b9b7b0; border-radius: var(--radius-sm); background: #fff; color: var(--text); width: 100%; box-sizing: border-box; }
.nl-form input[type=email]:focus { outline: 2px solid var(--brand-ink); outline-offset: 0; border-color: transparent; }
.nl-form button { min-height: 48px; padding: 0 22px; border: 1px solid var(--brand); border-radius: var(--radius-sm); background: var(--brand); color: var(--on-brand); font: 600 .9375rem/1 var(--font); cursor: pointer; white-space: nowrap; }
.nl-form button:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.nl-form button[disabled] { opacity: .7; cursor: progress; }
.nl-hp { position: absolute; left: -10000px; }
.nl-msg { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9375rem; }
.nl-msg.ok { background: #eaf7ee; color: #1e5f2c; }
.nl-msg.err { background: #ffecee; color: #9b0016; }
.nl-live:empty { padding: 0; }
.nl-fine { margin: 0; font-size: .75rem; color: var(--text-2); }
@media (min-width: 720px) {
  .nl-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; }
  .nl-form { grid-template-columns: 1fr auto; align-items: center; }
  .nl-form .nl-msg, .nl-form .nl-fine { grid-column: 1 / -1; }
}
.nl-widget { background: var(--surface); padding: 0 18px 20px; border-top: 3px solid var(--rule); }
.nl-widget .widget-title { border-top: 0; }
.nl-widget .nl-title { font-size: 1.1875rem; }
.nl-widget .nl-text { margin-bottom: 14px; }
.nl-widget .nl-form, .nl-widget .nl-inner { grid-template-columns: 1fr; }
.nl-widget .nl-form .nl-msg { grid-column: auto; }
.nl-widget .nl-form button { width: 100%; }

/* Footer */
.site-footer { background: #141416; color: #c7c7cc; margin-top: 64px; --focus-ring: #fff; }
.nl-band + .site-footer, .nl-band + .ad-row + .site-footer { margin-top: 0; }
/* One sign-up per page: the band above the footer. A customised sidebar that still includes the compact widget does not show it
   (on phones it would sit right above the band; on desktop it repeated the same form). */
.sidebar .nl-widget { display: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px 40px; padding-top: 44px; padding-bottom: 28px; }
@media (max-width: 799px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-logo { height: 36px; }
.footer-about { max-width: 46ch; margin: 12px 0 0; color: #b4b4ba; }
.footer-title { color: #fff; font: 700 .75rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-col a, .footer-contact a { display: inline-flex; align-items: center; min-height: 32px; color: #d1d1d6; }
.footer-more { font-weight: 600; color: #fff !important; }
.site-footer .social-link { background: transparent; border-color: #48484a; color: #f5f5f7; }
.site-footer .social-link:hover { background: #fff; border-color: #fff; color: #141416; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 12px 20px; border-top: 1px solid #2c2c2e; font-size: .8125rem; }
.footer-legal a, .footer-legal button { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; color: #c7c7cc; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: #5a5a5e; text-underline-offset: 3px; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; text-decoration-color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 24px; border-top: 1px solid #2c2c2e; font-size: .8125rem; color: #a1a1a6; }
.footer-bottom p { margin: 0; }
.back-to-top { display: inline-flex; align-items: center; min-height: 32px; color: #d1d1d6; }
/* 44pt targets on touch screens */
@media (pointer: coarse) { .footer-col a, .footer-contact a, .footer-legal a, .footer-legal button, .back-to-top { min-height: 44px; }
  .footer-col a, .footer-contact a, .footer-legal a, .footer-legal button { min-width: 44px; } }

/* Motion: only small hover/press feedback. Pages and cards don't fade in. */
.search-panel:not([hidden]) { animation: vk-drop .18s cubic-bezier(0,0,.2,1) both; }
@keyframes vk-drop { from { opacity: 0; transform: translateY(-6px); } }
.btn:active, .page-num:active, .social-link:active { transform: scale(.97); }
.social-link, .page-num, .page-btn, .chip, .btn, .nav-link, .dropdown a, .tag-chip { transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
@media (prefers-reduced-motion: reduce) { .search-panel, .cookie-bar { animation: none !important; } }

/* Cookie notice: fixed bar at the bottom until the reader decides; the choice is kept in localStorage (vertozmedia.consent). */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-cookie); display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; max-width: 960px; margin: 0 auto; padding: 16px 20px; background: #1d1d1f; color: #f5f5f7; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.28); animation: vk-rise .3s cubic-bezier(.2,.8,.2,1) both; --focus-ring: #fff; }
.cookie-bar[hidden] { display: none; }
.cookie-text { flex: 1 1 320px; margin: 0; font-size: .875rem; line-height: 1.5; }
.cookie-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-bar .btn { min-height: 44px; font-size: .875rem; }
.cookie-bar .btn-primary:hover { background: #fff; border-color: #fff; color: #1d1d1f; }
@keyframes vk-rise { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 599px) { .cookie-bar { left: 8px; right: 8px; bottom: 8px; padding: 14px; } .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; } }

/* Post footer: filed-under chips (category, date, author, tags) and coloured share buttons */
.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.tag-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #c9c7c0; border-radius: var(--radius-sm); color: var(--text); font-size: .875rem; font-weight: 500; background: #fff; }
.tag-chip:hover { border-color: var(--text); background: var(--text); color: #fff; }
.tag-chip.is-category { border-color: var(--text); background: var(--text); color: #fff; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .75rem; }
.tag-chip.is-category:hover { background: #fff; color: var(--text); }
.tag-chip.is-date { border-color: var(--line); color: var(--text-2); cursor: default; }
.tag-chip.is-date:hover { background: #fff; color: var(--text-2); border-color: var(--line); }
@media (pointer: coarse) { .tag-chip { min-height: 44px; } }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.share-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 0; background: var(--c, #6e6e73); color: #fff; cursor: pointer; transition: transform .1s, filter .15s; }
.share-btn svg { width: 20px; height: 20px; }
.share-btn:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
.share-btn:active { transform: scale(.95); }
.share-btn:focus-visible { outline-color: var(--text); }
.share-btn.is-mobile { display: none; }
@media (hover: none) and (pointer: coarse) { .share-btn.is-mobile { display: inline-grid; } }
/* "Copied" bubble on the copy-link button (theme.js adds .is-copied for 2 s) */
.copy-link::after { content: "Copied"; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 4px 8px; border-radius: var(--radius-sm); background: var(--text); color: #fff; font: 600 .75rem/1.2 var(--font); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.copy-link.is-copied::after { opacity: 1; transform: translate(-50%, 0); }
.copy-link.is-copied { filter: none; }

/* ───── Ads ───── */
.ad-row { margin-top: 16px; }
.ad-slot { display: block; position: relative; max-width: 100%; margin: 24px auto; text-align: center; overflow: hidden; clear: both; }
.ad-row .ad-slot { margin: 0 auto; }
.ad-slot > .ad-label { display: block; margin-bottom: 6px; font-size: .6875rem; line-height: 1.2; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ad-slot iframe, .ad-slot img { max-width: 100%; }
.sidebar .ad-slot { margin: 0 0 24px; }
.sidebar .ad-slot:last-child { margin: 24px 0 0; }
.grid > .ad-slot { grid-column: 1 / -1; margin: 8px 0; }
.prose .ad-slot { margin: 28px auto; }
@media (min-width: 900px) { .ad-hide-desktop { display: none !important; } }
@media (max-width: 899px) { .ad-hide-mobile { display: none !important; } }
.ad-sticky { display: none; }
@media (max-width: 899px) {
  .ad-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-ad); padding: 6px 44px 6px 8px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .ad-sticky .ad-slot { margin: 0 auto; }
  .ad-sticky .ad-slot > .ad-label { display: none; }
  .ad-sticky.is-closed { display: none; }
  body:has(.ad-sticky:not(.is-closed)) { padding-bottom: 72px; }
}
.ad-sticky-close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--text-2); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ad-sticky-close:hover { color: var(--text); }
.ad-slot.is-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 90px; padding: 16px; border: 2px dashed var(--brand, #0071e3); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.ad-slot.is-placeholder .ad-ph-name { font-size: .9375rem; font-weight: 600; }
.ad-slot.is-placeholder .ad-ph-hint { font-size: .8125rem; color: var(--text-2); }
.sidebar .ad-slot--sidebar_top.is-placeholder, .sidebar .ad-slot--sidebar_bottom.is-placeholder { min-height: 250px; }
.ad-slot--in_article.is-placeholder, .ad-slot--post_top.is-placeholder, .ad-slot--post_bottom.is-placeholder { min-height: 180px; }
/* placeholder preview: show the phone-only sticky bar on every screen so the admin can see it */
@media (min-width: 900px) { .ad-sticky:has(.is-placeholder, .ad-outline) { display: block; position: fixed; left: 50%; bottom: 0; z-index: var(--z-sticky-ad); width: 400px; transform: translateX(-50%); padding: 6px 44px 6px 8px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; } .ad-sticky:has(.is-placeholder, .ad-outline) .ad-slot { margin: 0; } .ad-sticky.is-closed { display: none !important; } }
/* formats */
.ad-video { position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 16 / 9; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.ad-video > iframe, .ad-video > video, .ad-video > div { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 1000px) { .sidebar .ad-format--sticky { position: sticky; top: 88px; z-index: 5; } }
.ad-interstitial { position: fixed; inset: 0; z-index: var(--z-interstitial); display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); animation: vk-rise .25s ease both; }
.ad-interstitial[hidden] { display: none; }
.ad-interstitial-box { position: relative; max-width: min(100%, 640px); max-height: calc(100vh - 32px); overflow: auto; padding: 36px 16px 16px; background: #fff; border-radius: var(--radius); text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,.35); }
.ad-interstitial-box > .ad-label { display: block; margin-bottom: 8px; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ad-interstitial-close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--text); font-size: 1.75rem; line-height: 1; cursor: pointer; }
html.ad-scroll-lock, html.ad-scroll-lock body { overflow: hidden; }
/* "Show ad slot boxes in previews": real units with a thin slot label */
.ad-outline { position: relative; margin: 24px 0; padding: 20px 8px 8px; border: 1px solid var(--brand, #0071e3); border-radius: var(--radius-sm); }
.ad-outline > .ad-outline-label { position: absolute; top: 0; left: 0; padding: 2px 8px; font-size: .6875rem; font-weight: 600; color: #fff; background: var(--brand, #0071e3); border-radius: var(--radius-sm) 0 var(--radius-sm) 0; }
.ad-outline .ad-slot { margin: 0 auto; }
.ad-row .ad-outline, .sidebar .ad-outline { margin: 0 0 24px; }
.grid > .ad-outline { grid-column: 1 / -1; }
/* ───── /Ads ───── */

/* Appended after the Ads section: keep a sticky sidebar ad below the (now measured) sticky header */
@media (min-width: 1000px) { .sidebar .ad-format--sticky { top: calc(var(--header-h) + 20px); } }

/* ───── QA fixes (layering, placeholders, tap targets, phone home length) ───── */
/* Layering: the header (which holds the phone menu sheet and the search panel) rises above the cookie bar and the sticky
   ad only while one of them is open. */
html.nav-open .site-header { z-index: var(--z-nav); }
html.search-open .site-header { z-index: var(--z-search); }
/* Cookie bar and phone sticky ad never share the bottom edge: the ad waits until the cookie choice is made. */
html.cookie-open .ad-sticky { display: none !important; }
/* …and the page can always be scrolled clear of the bar (contact form, 404 search, footer). */
html.cookie-open body { padding-bottom: calc(var(--cookie-h, 160px) + 24px) !important; } /* beats the sticky-ad padding */
/* Accept all: brand fill with the contrast-picked text colour on every site */
.cookie-bar .cookie-accept { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
/* Interstitial close: focus ring drawn inside the button so the box's rounded, scrolling edge can't clip it */
.ad-interstitial-close { border-radius: 999px; outline-offset: -4px; }
.ad-interstitial-close:focus-visible { outline: 2px solid var(--text); outline-offset: -4px; }
.ad-interstitial-close:focus:not(:focus-visible) { outline: none; }

/* Card media: a site-coloured backdrop (seen while a lazy image loads, and when a story has no image or it fails) */
.card-media, .hero-mini-media { background-color: var(--surface); }
.card-media, .hero-mini-media, .hero-media {
  background-image: radial-gradient(circle at 78% 22%, rgba(255,255,255,.35) 0 18%, transparent 19%), linear-gradient(135deg, var(--brand), var(--text));
  background-size: cover;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .card-media, .hero-mini-media, .hero-media {
    background-image: radial-gradient(circle at 78% 22%, rgba(255,255,255,.28) 0 18%, transparent 19%),
      linear-gradient(135deg, color-mix(in srgb, var(--brand) 32%, #fff), color-mix(in srgb, var(--brand) 62%, #1a1a1f));
  }
}
.card-placeholder { position: relative; display: grid; place-items: center; height: 100%; padding: 0; background: transparent; color: #fff; }
.card-placeholder .ph-initial { display: block; font: 700 0/1 var(--font-display); color: rgba(255,255,255,.92); text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.card-placeholder .ph-initial::first-letter { font-size: clamp(2rem, 9vw, 3.5rem); text-transform: uppercase; }
.hero-mini-media .card-placeholder .ph-initial::first-letter, .cat-grid > .card:not(:first-child) .ph-initial::first-letter, .grid.list .ph-initial::first-letter { font-size: 1.75rem; }

/* Phone tap targets (<=760px): kickers, author links and "See all" get a 44px tall hit area without moving anything;
   footer links get real 44px rows. */
@media (max-width: 760px) {
  a.eyebrow, .meta a, .see-all, .more-in { position: relative; }
  a.eyebrow::after, .meta a::after, .see-all::after, .more-in::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100% + 12px, 44px); height: 44px; transform: translate(-50%, -50%); }
  .footer-col a, .footer-contact a, .footer-legal a, .footer-legal button, .back-to-top { min-height: 44px; }
  /* short labels ("JEE", "News") still get a 44px wide hit area; the text stays left-aligned with its column */
  .footer-col a, .footer-contact a, .footer-legal a, .footer-legal button { min-width: 44px; }
}

/* Home on phones: each section shows its lead story plus two rows, then a "More in <section>" link; the latest
   stories become compact rows. Desktop is unchanged. */
.more-in { display: none; }
@media (max-width: 599px) {
  .cat-grid > .card:nth-child(n+4) { display: none; }
  .cat-grid > .card:nth-child(3) { border-bottom: 0; padding-bottom: 0; }
  .more-in { display: inline-flex; align-items: center; min-height: 32px; margin-top: 14px; font-size: .8125rem; font-weight: 700; color: var(--brand-ink); }
  .cat-block { margin-bottom: 36px; }
  .home-latest.grid-2 { grid-template-columns: 1fr; gap: 0; }
  .home-latest.grid-2 > .card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .home-latest.grid-2 > .card:first-child { padding-top: 0; }
  .home-latest.grid-2 > .card .card-body { padding-top: 0; }
  .home-latest.grid-2 > .card .card-excerpt { display: none; }
  .home-latest.grid-2 > .card .card-title { font-size: 1.0625rem; }
}

/* Contact page: when the page text already gives an email link, the details card doesn't repeat it */
.static-page:has(.prose a[href^="mailto:"]) .contact-info .ci-email { display: none; }
.static-page:has(.prose a[href^="mailto:"]) .contact-info:not(:has(.ci:not(.ci-email))) { display: none; }
/* Second QA pass */
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; }
.top-anchor:focus, #main:focus { outline: none; }
/* Long unbroken search terms / titles never push the page sideways */
.archive-title, .empty h2, .search-summary, .card-title { overflow-wrap: anywhere; }
/* Escape on a hover/focus dropdown: stays closed while focus remains on its chevron */
.has-dropdown.is-dismissed > .dropdown { opacity: 0; visibility: hidden; }
/* Phone/tablet menu: dim the page beside the sheet; a tap there closes it (theme.js) */
@media (max-width: 1099px) {
  html.nav-open .site-header::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 68px); z-index: 55; background: rgba(0,0,0,.36); }
}
/* Interstitial close: always on top of the ad creative, on a solid chip */
.ad-interstitial-close { z-index: 2; background: rgba(255,255,255,.94); }
.ad-interstitial-box { padding-top: 48px; } /* the 44px close button never overlaps the "Advertisement" label */
.search-recovery { margin-top: 40px; }
/* Phone tap targets: brand link and narrow chips */
@media (max-width: 760px) {
  .brand { min-height: 44px; }
  .chip { min-height: 44px; min-width: 44px; justify-content: center; }
}
/* ───── /QA fixes ───── */

/* Print: just the story */
@media print {
  .topbar, .site-nav, .nav-toggle, .search-toggle, .search-panel, .sidebar, .share-row, .post-tags, .post-nav, .related, .breadcrumbs,
  .ad-slot, .ad-row, .ad-sticky, .ad-interstitial, .ad-popunder, .ad-outline, .cookie-bar, .nl-band, .nl-widget, .pagination, .page-count,
  .skip-link, .preview-bar, .footer-grid, .footer-legal, .back-to-top, .faq-item summary::after { display: none !important; }
  @page { margin: 18mm 16mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; }
  .site-header { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 2px solid #000; }
  .header-inner { min-height: 0; padding: 0 0 6pt; }
  .brand { margin: 0; }
  .container, .container.narrow { max-width: none; padding: 0; }
  .with-sidebar { display: block; margin-top: 12pt; }
  .post-title { font-size: 24pt; }
  .prose { max-width: none; font-size: 11pt; line-height: 1.5; }
  .prose a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; word-break: break-all; }
  .post-figure img { aspect-ratio: auto; }
  img, figure, blockquote, pre, table { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .faq-item:not([open]) .faq-a { display: block; }
  .site-footer { background: none; color: #000; margin-top: 18pt; border-top: 1px solid #000; }
  .footer-bottom { color: #000; border: 0; padding: 6pt 0 0; }
}

/* Sponsored posts: muted label on the post and its cards, sponsor in the byline */
.sponsored-label { display: inline-block; margin: 0 0 6px 8px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; vertical-align: middle; }
.eyebrow + .sponsored-label { margin-left: 8px; }
.card-body > .sponsored-label:first-child, .post-head > .sponsored-label:first-child { margin-left: 0; }
.sponsor-by { margin: 0; color: var(--text); font-weight: 600; font-size: .875rem; display: inline-flex; align-items: center; min-height: 44px; gap: 4px; }
.sponsor-by .by { color: var(--text-2); font-weight: 400; }
.sponsored-label.on-dark { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.45); }
