/* ==========================================================================
   The Hour Today — public site
   Built from "The Hour Today — Main File" (Figma). Values below are read
   straight from the component definitions: Utility Bar, Main Header,
   Breaking News Ticker, Card, Latest News Card, Newsletter, Footer.
   ========================================================================== */

:root {
  /* brand */
  --red: #E43F25;          /* utility bar, ticker, primary buttons */
  --red-cta: #D90D0D;      /* Subscribe CTA, breaking badge */
  --red-deep: #B91C1C;     /* links, accent rules */
  --red-soft: #FDECEA;     /* tinted chips / icon wells */
  --navy: #0F172A;         /* header, page heroes */
  --navy-2: #1E293A;       /* search field, footer chips, headings */
  --footer: #0A172A;
  --footer-bottom: #050E1A;
  --band: #1F1F1F;         /* newsletter band */
  --band-input: #333333;

  /* surfaces */
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-2: #F6F7F9;
  --card: #FFFFFF;
  --line: #E2E8F0;
  --line-2: #EEF1F5;

  /* text */
  --ink: #0F172A;
  --ink-2: #1E293A;
  --ink-3: #1A1A1A;
  --muted: #6E7A89;
  --muted-2: #94A3B6;
  --muted-3: #9EABBB;
  --faint: #E2E7EE;

  /* status */
  --green: #16A34A;
  --green-soft: #DCFCE7;
  --amber: #D97706;
  --amber-soft: #FEF3C7;
  --blue: #2563EB;

  /* categories (from the section accents) */
  --cat-national: #1D4ED8;
  --cat-international: #7C3AED;
  --cat-politics: #DC2626;
  --cat-business: #0891B2;
  --cat-sports: #EA580C;
  --cat-technology: #2563EB;

  --container: 1200px;
  --gutter: 24px;
  --r-sm: 4px;
  --r: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);

  --font-head: "Playfair Display", "Noto Serif Bengali", Georgia, serif;
  --font-body: "Inter", "Noto Sans Bengali", -apple-system, "Segoe UI", Arial, sans-serif;
  --fs: 1;                  /* reader font-size preference */

  color-scheme: light;
}

html[lang="bn"] {
  --font-head: "Noto Serif Bengali", "Playfair Display", Georgia, serif;
  --font-body: "Noto Sans Bengali", "Inter", Arial, sans-serif;
}

html[data-font="small"] { --fs: .92; }
html[data-font="large"] { --fs: 1.12; }

[data-theme="dark"] {
  --bg: #0B1220;
  --surface: #111A2B;
  --surface-2: #131D30;
  --card: #111A2B;
  --line: #22304A;
  --line-2: #1B2840;
  --ink: #F1F5F9;
  --ink-2: #E2E8F0;
  --ink-3: #F1F5F9;
  --muted: #A3B0C2;
  --muted-2: #8594A8;
  --muted-3: #7C8BA0;
  --faint: #2A3854;
  --red-soft: #3A1512;
  --green-soft: #0E2E1C;
  --amber-soft: #33240A;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: calc(14px * var(--fs));
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--ink); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; flex: none; }

/* ------------------------------------------------------------ utility bar */

.util-bar { background: var(--red); color: #fff; font-size: 12px; line-height: 1; }
.util-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; }
.util-bar__group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.util-bar__social { display: inline-flex; align-items: center; gap: 12px; }
.util-bar__social a { display: inline-flex; opacity: .95; }
.util-bar__social a:hover { opacity: 1; transform: translateY(-1px); }
.util-bar__rule { width: 1px; height: 15px; background: #fff; }
.util-bar__tag { letter-spacing: 1px; }
.util-bar a:hover { text-decoration: underline; }
.util-bar__signin { color: var(--navy); font-weight: 700; }
.util-bar__user { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.util-bar__user img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.util-bar__lang { display: inline-flex; gap: 2px; background: rgba(0,0,0,.14); border-radius: 999px; padding: 2px; }
.util-bar__lang a { padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.util-bar__lang a.is-active { background: #fff; color: var(--red); text-decoration: none; }
.util-bar__theme { background: none; border: 0; color: #fff; padding: 0; display: inline-flex; }

/* ------------------------------------------------------------ ad places */

.ad-place { margin: 32px 0; }
.ad-place__label {
  display: block; margin-bottom: 6px; text-align: center;
  color: var(--muted-2); font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.ad-place__items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; }
.ad-place__items--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-place__items--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-place__items--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ad-place--side .ad-place__items { grid-template-columns: minmax(0, 1fr); }
.ad-unit { display: flex; justify-content: center; min-width: 0; overflow: hidden; }
.ad-unit a { display: block; max-width: 100%; }
.ad-unit img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--r-md); }
.ad-unit iframe { max-width: 100%; }
.ad-unit > div { max-width: 100%; }
.ad-place--band { margin: 0; padding: 36px 0; }
.hero + .container > .ad-place--band { padding-top: 0; }
.ad-place--after-lead { margin: 40px 0 0; }
.ad-place--first { margin-top: 0; }
.ad-place--gap { margin: 40px 0 0; }
.ad-place--span { grid-column: 1 / -1; margin: 8px 0; }
.ad-place--article-top { margin: -8px 0 40px; }
.ad-place--footer { margin: 0; padding: 8px 0 48px; }
.prose .ad-place { margin: 2em 0; }
.latest .ad-place { margin: 8px 0 0; }
.rlist .ad-place { margin: 8px 0; }
/* ------------------------------------------------------------ main header */

.masthead { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 60; }
.masthead .container { display: flex; align-items: center; gap: 20px; min-height: 88px; }
.masthead__logo { flex: none; display: block; }
.masthead__logo img { height: 68px; width: auto; }
.masthead__nav { flex: 1; display: flex; justify-content: center; }
.nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button {
  display: flex; align-items: center; gap: 4px; padding: 37px 0; background: none; border: 0;
  font-size: 13px; font-weight: 700; color: #fff; line-height: 1;
}
.nav > li > a:hover, .nav > li.is-active > a { color: #FCA5A5; }
.nav > li.is-active > a { box-shadow: inset 0 -3px 0 var(--red); }
.nav__drop {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 200px; list-style: none; margin: 0; padding: 8px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: .15s ease;
}
.nav > li:hover .nav__drop, .nav > li:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__drop a { display: block; padding: 8px 12px; border-radius: var(--r); font-size: 13px; font-weight: 500; }
.nav__drop a:hover { background: var(--surface); color: var(--red); }

.masthead__tools { display: flex; align-items: center; gap: 20px; flex: none; }
.masthead__search { position: relative; }
.masthead__search input {
  width: 194px; height: 44px; padding: 0 12px 0 36px; border: 0; border-radius: var(--r);
  background: var(--navy-2); color: #fff; font-size: 13px;
}
.masthead__search input::placeholder { color: #fff; opacity: .9; }
.masthead__search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: #7DD3FC; }
.masthead__burger { display: none; background: none; border: 0; color: #fff; padding: 6px; }
.masthead__burger svg { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- ticker */

.ticker { background: var(--red); color: #fff; }
.ticker .container { display: flex; align-items: center; gap: 12px; min-height: 42px; overflow: hidden; }
.ticker__badge {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  background: #fff; color: #DC2626; border-radius: var(--r-sm);
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.ticker__dot { width: 9px; height: 9px; border-radius: 50%; background: #DC2626; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.ticker__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.ticker__items { display: flex; white-space: nowrap; width: max-content; animation: ticker 30s linear infinite; }
.ticker:hover .ticker__items { animation-play-state: paused; }
/* Spacing lives on the item, not as a gap, so one copy of the headlines
   is exactly half the strip and the loop never jumps. */
.ticker__items a { font-size: 13px; font-weight: 500; padding-right: 48px; }
.ticker__items a:hover { text-decoration: underline; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__items { animation: none; } }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r);
  font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #C9331C; }
.btn--cta { background: var(--red-cta); color: #fff; text-transform: uppercase; padding: 0 28px; }
.btn--cta:hover { background: #B80B0B; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--outline { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); }
.btn--soft { background: var(--red-soft); color: var(--red); border-color: #F9C6BE; }
.btn--soft:hover { background: #FBD9D3; }
.btn--sm { height: 32px; padding: 0 14px; font-size: 12px; }
.btn--lg { height: 50px; padding: 0 32px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--upper { text-transform: uppercase; }
.btn[disabled] { opacity: .5; pointer-events: none; }
[data-theme="dark"] .btn--soft { border-color: #5B231C; }

.link-red { color: var(--red); font-weight: 600; }
.link-red:hover { text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; color: var(--red-deep); font-size: 11px; font-weight: 500; }
.link-arrow:hover { gap: 7px; }

/* ---------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 33px; padding: 0 14px;
  background: var(--red-cta); color: #fff; border-radius: var(--r-sm);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge--sm { height: 22px; padding: 0 8px; font-size: 10px; }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.badge--bar { display: flex; height: 22px; border-radius: 2px; }
.pill {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--red-soft); color: var(--red); border: 1px solid #F9C6BE;
}
.pill--green { background: var(--green-soft); color: var(--green); border-color: #BBF7D0; }
.pill--amber { background: var(--amber-soft); color: var(--amber); border-color: #FDE68A; }
.pill--grey { background: var(--surface); color: var(--muted); border-color: var(--line); }
.pill--solid { background: var(--red); color: #fff; border-color: var(--red); border-radius: var(--r-sm); }

.kicker { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--red-cta); line-height: 1.2; }
.kicker--sm { font-size: 9px; }

/* --------------------------------------------------------- section header */

.sec { padding: 60px 0; }
.sec--tint { background: var(--surface); }
.sec--tight { padding: 40px 0; }
.container.sec { padding-left: var(--gutter); padding-right: var(--gutter); }
.sec-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.sec-head__title { display: flex; align-items: center; gap: 12px; flex: none; }
.sec-head__title::before { content: ""; width: 4px; height: 24px; border-radius: 2px; background: var(--accent, var(--red-deep)); }
.sec-head__title h2 { font-size: 20px; color: var(--ink-2); }
.sec-head__rule { flex: 1; height: 1.5px; background: var(--line); }
.sec-head__more { flex: none; color: var(--muted-3); font-size: 11px; font-weight: 500; }
.sec-head__more:hover { color: var(--red); }
.sec-head--plain .sec-head__rule { background: transparent; }
.sec-head--plain .sec-head__title::before { width: 5px; height: 28px; }
.sec-head--plain h2 { color: #475569; }
[data-theme="dark"] .sec-head--plain h2 { color: var(--ink-2); }

.title-lg { font-size: 28px; }
.title-xl { font-size: 36px; }
.lede { color: var(--muted); font-size: 15px; }
.sub { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.block-head { margin-bottom: 32px; }
.block-head h2 { font-size: 28px; }

/* --------------------------------------------------------- lead (breaking) */

.hero { display: grid; grid-template-columns: minmax(0, 792fr) minmax(0, 388fr); gap: 20px; padding: 60px 0; }
.lead { display: flex; flex-direction: column; gap: 16px; }
.lead__img { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.lead__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lead:hover .lead__img img { transform: scale(1.02); }
.lead__title { font-size: 36px; line-height: 1.5; color: var(--ink-3); }
.lead__title a:hover { color: var(--red); }
.lead__excerpt { color: #737373; font-size: 16px; line-height: 26px; margin: 0; }
.lead__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #999; font-size: 14px; }
[data-theme="dark"] .lead__excerpt, [data-theme="dark"] .lead__meta { color: var(--muted); }

.latest { display: flex; flex-direction: column; gap: 12px; }
.latest__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); text-transform: uppercase; }
.latest__head::before { content: ""; width: 4px; height: 20px; background: var(--red-deep); }
.lcard { display: flex; gap: 12px; padding: 14px; min-height: 100px; background: var(--surface-2); border-radius: var(--r-md); transition: background .15s; }
.lcard:hover { background: #EEF1F5; }
[data-theme="dark"] .lcard:hover { background: var(--line-2); }
.lcard { align-items: center; min-height: 0; padding: 10px; }
.lcard__thumb { flex: none; width: 96px; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--line); }
.lcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lcard__title { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.25; }
.lcard__meta { font-size: 11px; color: #808EA0; }

/* ------------------------------------------------------ horizontal cards */

.hgrid { display: grid; gap: 16px; }
.hgrid__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hcard {
  position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px;
  min-height: 140px; background: var(--card); border-radius: var(--r-lg); overflow: hidden;
}
.sec--tint .hcard { background: var(--card); }
.sec:not(.sec--tint) .hcard { background: var(--surface); }
.hcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--cat-national)); z-index: 1; }
.hcard__img { background: var(--line); }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; }
.hcard__body { padding: 10px 16px 10px 4px; display: flex; flex-direction: column; gap: 4px; }
.hcard__title { font-size: 14px; line-height: 1.35; color: var(--ink-2); max-width: 320px; }
.hcard__title a:hover { color: var(--red); }
.hcard__text { font-size: 11px; color: var(--muted); max-width: 320px; margin: 0; }
.hcard__meta { margin-top: auto; font-size: 10px; font-weight: 500; color: var(--muted-2); }
.hcard--wide { grid-template-columns: 240px minmax(0, 1fr); gap: 16px; min-height: 160px; border-radius: var(--r-xl); }
.hcard--wide .hcard__body { padding: 12px 16px 12px 4px; gap: 6px; }
.hcard--wide .hcard__title { font-size: 16px; max-width: 600px; }
.hcard--wide .hcard__text { font-size: 12px; max-width: 600px; }
.hcard__save { position: absolute; right: 12px; bottom: 12px; }

/* -------------------------------------------------------- vertical cards */

.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--flat { background: transparent; border-radius: 0; }
.card--flat:hover { box-shadow: none; transform: none; }
.card--border { border: 1px solid var(--line); }
.card--tint { background: var(--surface); }
.card__img { position: relative; aspect-ratio: 384 / 220; background: var(--line); overflow: hidden; }
.card--flat .card__img { border-radius: var(--r-md); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 14px; flex: 1; }
.card--flat .card__body { padding: 10px 0 0; gap: 6px; }
.card__title { font-size: 17px; line-height: 24px; color: var(--ink-3); }
.card__title a:hover { color: var(--red); }
.card--sm .card__title { font-size: 14px; line-height: 1.35; }
.card__text { font-size: 13px; color: var(--muted); margin: 0; }
.card__meta { margin-top: auto; font-size: 12px; color: #999; }
.card--flat .card__meta { font-size: 10px; color: var(--muted-2); }
[data-theme="dark"] .card__meta { color: var(--muted-2); }
.card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.card__play span { width: 40px; height: 40px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.card__play svg { width: 14px; height: 14px; color: #fff; margin-left: 2px; }
.card__play--lg span { width: 64px; height: 64px; }
.card__play--lg svg { width: 22px; height: 22px; }
.card__dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; background: rgba(0,0,0,.6); color: #fff; border-radius: 3px; font-size: 11px; font-weight: 700; }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cols3__col { display: flex; flex-direction: column; gap: 16px; }
.cols3__head { display: flex; align-items: center; justify-content: space-between; }

/* --------------------------------------------------------------- bento */

.bento { display: grid; gap: 20px; }
.bento__top { display: grid; grid-template-columns: minmax(0, 285fr) minmax(0, 590fr) minmax(0, 285fr); grid-template-rows: minmax(0, 1fr); gap: 20px; height: 324px; }
.bento__stack { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; min-height: 0; }
.bento__bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 16px; height: 154px; }
/* The photo fills the tile; the tile's size comes from the grid, never from the image. */
.tile { position: relative; display: block; min-height: 0; overflow: hidden; border-radius: var(--r-md); background: var(--line); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.04); }

/* A photo gallery inside a story: picture plus its caption line. */
.gfig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gfig figcaption { color: var(--muted-2); font-size: 11px; line-height: 1.45; }
.tile__cap {
  position: absolute; inset: auto 0 0; padding: 28px 10px 10px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
}
.tile__title { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.tile__date { display: block; font-family: var(--font-head); font-size: 14px; }

/* ----------------------------------------------------------- page hero */

.page-hero { background: #1A2436; color: #fff; padding: 18px 0 20px; border-bottom: 1px solid var(--red); }
.page-hero h1 { color: #fff; font-size: 30px; line-height: 1.25; }
.page-hero__lede { max-width: 720px; margin: 6px 0 0; color: #B6C2D2; font-size: 14px; line-height: 1.55; }
.page-hero__meta { margin-top: 6px; color: #B6C2D2; font-size: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; font-size: 13px; color: #B8C4D3; }
.crumbs a:hover { color: #fff; }
.crumbs--light { color: var(--muted-2); }
.crumbs--light a:hover { color: var(--red); }
.page-hero__search { position: relative; max-width: 500px; margin-top: 14px; }
.page-hero__search input { width: 100%; height: 44px; padding: 0 16px 0 44px; border: 0; border-radius: var(--r-md); background: #26324A; color: #fff; }
.page-hero__search input::placeholder { color: #B8C4D3; }
.page-hero__search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #B8C4D3; }

.searchbar { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 6px 6px 6px 18px; background: #fff; border-radius: var(--r-md); }
.searchbar svg { width: 16px; height: 16px; color: #2563EB; }
.searchbar input { flex: 1; height: 38px; border: 0; background: transparent; color: #0F172A; font-size: 15px; outline: 0; }
.searchbar .btn { height: 38px; padding: 0 18px; font-size: 13px; }
.searchbar__note { margin: 14px 0 0; color: #94A3B8; font-size: 13px; }

/* ------------------------------------------------------ category feature */

.topic-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topic-head h2 { display: flex; align-items: center; gap: 12px; font-size: 28px; }
.topic-head h2::before { content: ""; width: 4px; height: 32px; background: var(--accent, var(--cat-national)); border-radius: 2px; }
.feature { display: grid; grid-template-columns: minmax(0, 680fr) minmax(0, 520fr); gap: 24px; align-items: center; }
.feature__img { aspect-ratio: 680 / 300; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__title { font-size: 28px; line-height: 1.25; margin: 10px 0 12px; }
.feature__title a:hover { color: var(--red); }
.feature__text { color: var(--muted); font-size: 14px; line-height: 1.6; }
.feature__meta { color: var(--muted-2); font-size: 11px; margin-bottom: 12px; }
.sort-select { border: 0; background: transparent; color: var(--muted-2); font-size: 11px; }

.split-list { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.trend-list { display: flex; flex-direction: column; gap: 14px; }
.trend-item { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; align-items: center; }
.trend-item img { width: 80px; height: 60px; object-fit: cover; border-radius: var(--r); background: var(--line); }
.trend-item__title { font-family: var(--font-head); font-weight: 700; font-size: 13px; line-height: 1.3; }
.trend-item__title:hover { color: var(--red); }

/* ---------------------------------------------------------- search list */

.rlist { display: flex; flex-direction: column; gap: 16px; }
.ritem { display: grid; grid-template-columns: 139px minmax(0, 1fr); gap: 16px; padding: 14px 16px; background: var(--surface); border-radius: var(--r-md); min-height: 110px; }
.ritem__img { height: 82px; border-radius: var(--r-md); overflow: hidden; background: #E2E8F0; }
.ritem__img img { width: 100%; height: 100%; object-fit: cover; }
.ritem__cat { font-size: 11px; font-weight: 700; color: var(--red); }
.ritem__title { font-size: 17px; margin: 4px 0 6px; }
.ritem__title a:hover { color: var(--red); }
.ritem__text { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.ritem__meta { font-size: 11px; color: var(--muted-2); }
mark { background: #FEF08A; color: inherit; padding: 0 2px; border-radius: 2px; }

/* ------------------------------------------------------------ pagination */

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 31px; padding: 0 12px;
  border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 12px;
}
.pager a:hover { background: var(--line); }
.pager .is-current { background: var(--red); color: #fff; font-weight: 700; }
.pager .is-disabled { opacity: .45; }

/* --------------------------------------------------------------- article */

.article { padding: 40px 0 56px; }
.article__crumbs { margin-bottom: 16px; }
.article__flag { margin-bottom: 14px; }
.article__title { font-size: 36px; line-height: 1.25; color: var(--ink-3); max-width: 1060px; }
.article__byline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; color: var(--muted); font-size: 13px; }
.article__byline a { color: var(--ink-2); font-weight: 600; }
.article__byline a:hover { color: var(--red); }
.article__figure { margin: 0 0 40px; }
.article__figure img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: var(--r-xl); background: var(--surface); }
.article__figure figcaption { margin-top: 12px; color: var(--muted-2); font-size: 11px; }
.article__video { aspect-ratio: 16 / 9; margin-bottom: 40px; border-radius: var(--r-xl); overflow: hidden; background: #000; }
.article__video iframe { width: 100%; height: 100%; border: 0; }

.prose { font-size: calc(16px * var(--fs)); line-height: 1.8; color: #334155; }
[data-theme="dark"] .prose { color: #CBD5E1; }
.prose > p:first-child { font-weight: 700; color: var(--ink); font-size: calc(17px * var(--fs)); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: 26px; margin-top: 1.6em; color: var(--ink); }
.prose h3 { font-size: 20px; margin-top: 1.4em; color: var(--ink); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); font-family: var(--font-head); font-size: 21px; line-height: 1.5; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface); }

.dateline { display: block; margin-bottom: 8px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.share__label { font-size: 12px; font-weight: 700; color: var(--ink); }
.share__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; height: 32px; padding: 0 10px;
  background: var(--surface); border: 0; border-radius: var(--r); color: var(--ink); font-size: 12px; font-weight: 700;
}
.share__btn:hover { background: var(--line); }
.share__btn svg { width: 14px; height: 14px; }
.share__btn.is-saved { color: var(--red); }
.tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tags__label { font-size: 12px; font-weight: 700; }
.tag { padding: 5px 12px; background: var(--surface); border-radius: 999px; font-size: 10px; color: var(--muted); }
.tag:hover { background: var(--red-soft); color: var(--red); }

.author-card { display: flex; gap: 16px; align-items: center; margin-top: 32px; padding: 20px; background: var(--surface); border-radius: var(--r-xl); }
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* -------------------------------------------------------------- comments */

.comments { margin-top: 72px; }
.comments__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.comments__head h2 { font-size: 20px; }
.compose { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
.compose img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.compose textarea { width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); resize: vertical; }
.compose__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.compose__note { color: var(--muted-2); font-size: 11px; }
.compose__guest { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.clist { list-style: none; margin: 0; padding: 0; }
.citem { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.citem img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.citem__head { display: flex; justify-content: space-between; gap: 8px; }
.citem__name { font-size: 13px; font-weight: 700; }
.citem__time { font-size: 11px; color: var(--muted-2); }
.citem__body { font-size: 13px; margin: 2px 0 4px; color: var(--ink-2); }
.citem__actions { display: flex; gap: 12px; font-size: 11px; color: var(--muted-2); }
.citem__actions button { background: none; border: 0; padding: 0; color: inherit; font-size: 11px; }
.citem__actions button:hover { color: var(--red); }
.clist--replies { padding-left: 32px; }
.clist--replies .citem { grid-template-columns: 24px minmax(0, 1fr); }
.clist--replies img { width: 24px; height: 24px; }
.report-box { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ------------------------------------------------------------------ forms */

.field { margin-bottom: 16px; }
.label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.label--caps { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); color: var(--ink); font-size: 14px;
}
.textarea { height: auto; min-height: 120px; padding: 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(228, 63, 37, .12); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input--tint, .form-tint .input, .form-tint .select, .form-tint .textarea { background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.hint { margin-top: 6px; font-size: 11px; color: var(--muted-2); }
.error { margin-top: 6px; font-size: 12px; color: #DC2626; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.input-wrap__btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 6px; display: inline-flex; }
.input-wrap__btn svg { width: 18px; height: 18px; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.input-prefix span { padding: 0 10px 0 12px; font-weight: 700; font-size: 14px; border-right: 1px solid var(--line); line-height: 20px; }
.input-prefix input { flex: 1; height: 42px; border: 0; background: transparent; padding: 0 12px; outline: 0; }

.check { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--red); }
.checks { display: flex; flex-direction: column; gap: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer; user-select: none;
}
.chip:hover { border-color: var(--red); }
.chip.is-active, .chip:has(input:checked) { background: var(--red-soft); border-color: #F9C6BE; color: var(--red); }
.chip--solid.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip--box { border-radius: var(--r-md); height: 36px; background: var(--surface); }
.chip--box input { position: static; opacity: 1; pointer-events: auto; accent-color: var(--red); }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 8px; }
.strength span { height: 4px; border-radius: 2px; background: var(--line); }
.strength[data-score="1"] span:nth-child(-n+1) { background: #DC2626; }
.strength[data-score="2"] span:nth-child(-n+2) { background: #F59E0B; }
.strength[data-score="3"] span:nth-child(-n+3) { background: #EAB308; }
.strength[data-score="4"] span { background: #10B981; }
.rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.rules li { display: flex; align-items: center; gap: 8px; }
.rules li::before { content: "✕"; color: var(--muted-2); width: 12px; }
.rules li.is-ok::before { content: "✓"; color: #10B981; }

.switch { position: relative; display: inline-flex; flex: none; width: 40px; height: 22px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #E2E8F0; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::after { transform: translateX(18px); }
[data-theme="dark"] .switch span { background: #334155; }

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 70px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--card); text-align: center; cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--red); background: var(--red-soft); }
.dropzone svg { width: 18px; height: 18px; color: var(--red); }
.dropzone strong { font-size: 13px; }
.dropzone small { color: var(--muted-2); font-size: 11px; }
.dropzone input { display: none; }
.dropzone__files { font-size: 11px; color: var(--green); }

.alert { padding: 12px 16px; margin-bottom: 16px; border-radius: var(--r-md); font-size: 13px; border: 1px solid; }
.alert--success { background: var(--green-soft); color: #166534; border-color: #BBF7D0; }
.alert--error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.alert--info { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.alert--warn { background: var(--amber-soft); color: #92400E; border-color: #FDE68A; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
[data-theme="dark"] .alert--success { color: #86EFAC; border-color: #14532D; }
[data-theme="dark"] .alert--error { background: #2A0F12; color: #FCA5A5; border-color: #7F1D1D; }
[data-theme="dark"] .alert--info { background: #0F1D3A; color: #93C5FD; border-color: #1E3A8A; }
[data-theme="dark"] .alert--warn { color: #FCD34D; border-color: #78350F; }

.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-2); font-size: 11px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------------------------------------------------------------- panels */

.panel { background: var(--surface); border-radius: var(--r-xl); padding: 24px; }
.panel--white { background: var(--card); border: 1px solid var(--line); }
.panel--dark { background: var(--navy); color: #fff; }
.panel--dark h1, .panel--dark h2 { color: #fff; }
.panel h3 { font-size: 18px; margin-bottom: 8px; }
.panel__eyebrow { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.panel__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--red-soft); color: var(--red); margin-bottom: 14px; }
.panel__icon svg { width: 18px; height: 18px; }
.panel__icon--plain { background: none; width: auto; height: auto; justify-content: start; }
.panel p { color: var(--muted); font-size: 13px; }
.panel p:last-child { margin-bottom: 0; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--red); line-height: 1.1; margin-bottom: 10px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* ------------------------------------------------------------ auth card */

.auth { background: var(--surface); padding: 28px 0 40px; }
.auth-card { width: 100%; max-width: 480px; margin: 0 auto; padding: 32px; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.auth-card--wide { max-width: 520px; }
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-card__sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.auth-card__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #FEE2E2; color: var(--red); margin-bottom: 24px; }
.auth-card__icon--green { background: #D1FAE5; color: #059669; }
.auth-card__icon svg { width: 22px; height: 22px; }
.auth-card__foot { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.auth-card__small { margin-top: 18px; font-size: 11px; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--red); font-size: 12px; font-weight: 600; text-decoration: underline; }
.back-link svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------ steps */

.steps { display: flex; align-items: center; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.steps__item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.steps__num { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; font-weight: 600; }
.steps__item.is-active { color: var(--ink); font-weight: 600; }
.steps__item.is-active .steps__num { background: var(--red); border-color: var(--red); color: #fff; }
.steps__line { width: 28px; height: 1px; background: var(--line); }

.num-list { display: grid; gap: 10px; }
.num-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.num-item__n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #D1FAE5; color: #059669; font-size: 12px; font-weight: 700; }
.num-item strong { display: block; font-size: 13px; }
.num-item span { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------ faq */

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 16px; font-size: 12px; color: var(--muted); }
.faq--open summary::after { display: none; }

/* ------------------------------------------------------------ tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl); }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { background: var(--surface); padding: 16px; text-align: left; font-weight: 700; color: var(--ink); white-space: nowrap; }
.table td { padding: 16px; border-top: 1px solid var(--line-2); color: var(--ink); }
.table td:first-child { color: var(--muted); }
.table--center th:not(:first-child), .table--center td:not(:first-child) { text-align: center; }
.table--cols td, .table--cols th { border-left: 1px solid var(--line); }
.table--cols td:first-child, .table--cols th:first-child { border-left: 0; }

/* ------------------------------------------------------------ legal */

.legal { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 64px; padding: 48px 0 64px; align-items: start; }
.legal__toc { position: sticky; top: 100px; }
.legal__toc h4 { margin-bottom: 12px; font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .04em; }
.legal__toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 11px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a::before { content: counter(toc) ". "; }
.legal__toc a:hover, .legal__toc a.is-active { color: var(--red); }
.legal .prose { font-size: 14px; color: var(--muted); }
.legal .prose > p:first-child { font-weight: 400; font-size: 14px; color: var(--muted); }
.legal .prose h2 { font-size: 26px; margin-top: 40px; color: var(--ink); }
.legal .prose h2:first-child { margin-top: 0; }
.legal .prose h3 { font-family: var(--font-body); font-size: 13px; margin-top: 16px; color: var(--ink); }
.legal .prose strong { color: var(--ink); }

/* ------------------------------------------------------------ misc blocks */

.team-card img { width: 100%; aspect-ratio: 379 / 220; object-fit: cover; object-position: top; border-radius: var(--r-md); background: var(--line); }
.team-card h3 { font-size: 16px; margin: 12px 0 2px; }
.team-card__role { color: var(--red); font-size: 12px; font-weight: 600; }
.team-card p { color: var(--muted); font-size: 11px; margin: 2px 0 0; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.story__more { display: inline-flex; align-items: center; gap: 14px; color: var(--red); font-size: 12px; font-weight: 600; }
.story__more::before { content: ""; width: 36px; height: 1px; background: var(--red); }

.map { position: relative; border-radius: var(--r-xl); overflow: hidden; }
.map img { width: 100%; height: 400px; object-fit: cover; }
.map__tag { position: absolute; top: 20px; left: 20px; padding: 6px 12px; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-md); color: var(--red); font-size: 10px; font-weight: 700; }

.job { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border-radius: var(--r-md); }
.job__top { display: flex; justify-content: space-between; gap: 16px; }
.job__title { font-size: 18px; }
.job__title a:hover { color: var(--red); }
.job__facts { display: flex; gap: 24px; font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.job p { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.job .btn { align-self: start; height: 32px; padding: 0 16px; font-size: 12px; }

.job-hero { padding: 32px; border-radius: var(--r-md); }
.job-hero h1 { font-size: 34px; margin: 10px 0 24px; }
.job-hero__facts { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.job-hero__facts small { display: block; color: #94A3B8; font-size: 11px; }
.job-hero__facts strong { font-size: 14px; }
.bullets { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.bullets li::before { content: "• "; }
.kv { display: grid; gap: 8px; font-size: 12px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; font-weight: 700; text-align: right; }

.plan { position: relative; display: flex; flex-direction: column; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.plan--featured { border: 2px solid var(--red); }
.plan__name { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--red); }
.plan__price { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin: 4px 0; }
.plan__price small { font-size: 16px; font-weight: 400; }
.plan__desc { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.plan__ribbon { position: absolute; top: 24px; right: 24px; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.ticks li { display: flex; gap: 8px; align-items: center; }
.ticks li::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; color: var(--red); }
.ticks--dark li::before { color: var(--ink); }
.plan .btn { margin-top: auto; }

.quote { padding: 20px; background: var(--surface); border-radius: var(--r-md); }
.quote__stars { color: var(--red); font-size: 10px; letter-spacing: 2px; }
.quote p { margin: 10px 0 14px; font-size: 12px; color: var(--muted); }
.quote strong { display: block; font-family: var(--font-head); font-size: 13px; }
.quote small { color: var(--muted); font-size: 10px; }

.nl-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border-radius: var(--r-md); cursor: pointer; }
.nl-card h3 { font-size: 15px; }
.nl-card p { margin: 0; font-size: 12px; color: var(--muted); }
.nl-card small { color: var(--muted-2); font-size: 10px; }
.nl-card input { position: absolute; right: 20px; bottom: 20px; width: 18px; height: 18px; accent-color: var(--red); }
.nl-card:has(input:checked) { box-shadow: inset 0 0 0 2px var(--red); }
.nl-feature { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 24px; padding: 22px; background: var(--surface); border-radius: var(--r-xl); }
.nl-sample { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.nl-sample img { width: 100%; aspect-ratio: 352 / 160; object-fit: cover; border-radius: var(--r-sm); margin: 8px 0 12px; }
.nl-sample p { font-size: 11px; color: var(--muted); margin: 0; }
.facts { display: flex; gap: 24px; margin: 16px 0 24px; }
.facts small { display: block; font-size: 9px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; }
.facts strong { font-size: 15px; }

.sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.sitemap h2 { font-size: 20px; margin-bottom: 18px; }
.sitemap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sitemap a { color: var(--red); font-size: 12px; }
.sitemap a:hover { text-decoration: underline; }

.big-404 { width: 152px; height: 152px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #E43F25, #C93A1E); color: #fff; font-family: var(--font-head); font-size: 58px; font-weight: 700; box-shadow: 0 18px 36px rgba(228, 63, 37, .25); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick a { display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: var(--surface); border-radius: var(--r-md); text-align: left; }
.quick a:hover { background: var(--red-soft); }
.quick__ico { width: 28px; height: 28px; display: grid; place-items: center; flex: none; background: var(--card); border-radius: var(--r); color: var(--red); border: 1px solid var(--line); }
.quick__ico svg { width: 14px; height: 14px; }
.quick strong { display: block; font-size: 12px; }
.quick span { font-size: 10px; color: var(--muted); line-height: 1.3; }

/* ---------------------------------------------------------- author page */

.author-hero { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 0 32px; }
.author-hero img { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; }
.author-hero h1 { font-size: 36px; }
.author-hero__role { color: var(--red); font-size: 17px; font-weight: 600; margin: 6px 0 14px; }
.author-hero__bio { color: var(--muted-2); font-size: 14px; line-height: 1.75; }
.soc { display: flex; gap: 8px; margin: 14px 0 22px; }
.soc a { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); font-size: 11px; font-weight: 700; }
.soc a:hover { border-color: var(--red); color: var(--red); }
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px 24px; background: var(--surface); border-radius: var(--r-md); }
.stats-bar > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.stats-bar small { display: block; font-size: 10px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; }
.stats-bar strong { font-size: 20px; }

/* ------------------------------------------------------ newsletter band */

.nl-band { background: var(--band); color: #fff; }
.nl-band .container { display: flex; align-items: center; justify-content: center; gap: 32px; min-height: 140px; padding-top: 24px; padding-bottom: 24px; }
.nl-band h2 { color: #fff; font-size: 26px; }
.nl-band p { margin: 6px 0 0; color: #B3B3B3; font-size: 16px; }
.nl-band form { display: flex; }
.nl-band input { width: 360px; height: 50px; padding: 0 18px; border: 0; background: var(--band-input); color: #fff; font-size: 16px; }
.nl-band input::placeholder { color: #808080; }
.nl-band .btn { height: 50px; border-radius: 0; padding: 0 32px; font-size: 16px; }
.nl-band__msg { margin-top: 8px; font-size: 13px; color: #86EFAC; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--footer); color: #94A3B6; }
.site-footer__main { display: grid; grid-template-columns: 340px repeat(4, 155px); justify-content: space-between; gap: 40px; padding: 40px 0; }
.site-footer__brand img { height: 48px; width: auto; }
.site-footer__brand p { margin: 10px 0; color: #808080; font-size: 14px; line-height: 22px; }
.site-footer__soc { display: flex; gap: 12px; }
.site-footer__soc a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r); background: var(--navy-2); color: #D1DAE8; font-size: 14px; font-weight: 700; }
.site-footer__soc a:hover { background: var(--red); color: #fff; }
.site-footer h4 { margin-bottom: 10px; font-family: var(--font-body); font-size: 16px; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer__col--sm h4 { font-size: 14px; }
.site-footer__col--sm ul { font-size: 12px; gap: 10px; }
.site-footer__bottom { background: var(--footer-bottom); color: #6E7A89; font-size: 13px; }
.site-footer__bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.site-footer__legal { display: flex; gap: 8px; }
.site-footer__legal span { opacity: .6; }

/* ------------------------------------------------------- account area */

.acct-welcome { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--surface); border-radius: var(--r-xl); }
.acct-welcome img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.acct-welcome h1 { font-size: 28px; }
.acct-welcome .muted { font-size: 13px; }
.acct-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0 24px; }
.acct-stats > div { padding: 18px 20px; background: var(--surface); border-radius: var(--r-md); }
.acct-stats small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.acct-stats strong { font-family: var(--font-head); font-size: 20px; }
.acct { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.acct--stats { grid-template-columns: 220px minmax(0, 1fr) 220px; }
.acct-nav { position: sticky; top: 100px; padding: 16px 12px; background: var(--surface); border-radius: var(--r-xl); }
.acct-nav h4 { margin: 0 0 12px 4px; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); }
.acct-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); font-size: 13px; color: var(--ink-2); }
.acct-nav a svg { width: 16px; height: 16px; }
.acct-nav a:hover { background: var(--card); }
.acct-nav a.is-active { background: var(--red-soft); color: var(--red); font-weight: 600; }
.acct-nav__count { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; text-align: center; line-height: 18px; }
.acct-title { margin-bottom: 20px; }
.acct-title h1 { font-size: 28px; }
.acct-title p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.acct-box { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); }
.acct-box + .acct-box { margin-top: 16px; }
.acct-box > h2 { font-size: 18px; }
.acct-box > h2 + p { margin: 4px 0 16px; color: var(--muted); font-size: 12px; }
.acct-box__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.setting strong { display: block; font-size: 13px; }
.setting small { color: var(--muted); font-size: 12px; }
.setting--tint { padding: 12px 10px; background: var(--surface); border-radius: var(--r-md); }
.setting + .setting--tint { margin-top: 8px; }
.danger { padding: 20px; background: var(--surface); border-radius: var(--r-xl); margin-top: 16px; }
.danger .btn { background: #FDECEA; color: #DC2626; border-color: #F9C6BE; height: 38px; justify-content: flex-start; }

.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; background: var(--card); }
.pcard img { width: 100%; aspect-ratio: 349 / 120; object-fit: cover; border-radius: var(--r); background: var(--line); }
.pcard__meta { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; font-size: 11px; color: var(--muted-2); }
.pcard__title { font-family: var(--font-body); font-size: 14px; font-weight: 700; line-height: 1.35; }
.pcard__title a:hover { color: var(--red); }

.hrow { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.hrow img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--r); background: var(--line); }
.hrow__title { font-size: 13px; font-weight: 700; line-height: 1.35; }
.hrow__title a:hover { color: var(--red); }
.hrow__meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.hrow__actions { display: flex; align-items: center; gap: 8px; }
.progress { width: 110px; }
.progress__bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--red); }
.progress small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.icon-btn { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); }
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn.is-active { color: var(--red); }

.srow { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.srow img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r); background: var(--line); }
.srow__title { font-family: var(--font-body); font-size: 15px; font-weight: 700; margin: 8px 0 4px; }
.srow__title a:hover { color: var(--red); }
.srow__text { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.srow__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); }
.srow__check { display: flex; align-items: center; gap: 12px; }

.ncard { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.ncard__ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.ncard__ico svg { width: 14px; height: 14px; }
.ncard__ico--red { background: #FEE2E2; color: #DC2626; }
.ncard__ico--blue { background: #DBEAFE; color: #2563EB; }
.ncard__ico--green { background: #D1FAE5; color: #059669; }
.ncard__ico--grey { background: var(--surface); color: var(--muted); }
.ncard strong { font-size: 13px; }
.ncard small { display: block; color: var(--muted-2); font-size: 11px; }
.ncard__dot { width: 8px; height: 8px; border-radius: 50%; background: #3B82F6; }
.ncard.is-read strong { font-weight: 600; }

.ccard { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.ccard__head { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; align-items: center; }
.ccard__head img { width: 50px; height: 50px; border-radius: var(--r); object-fit: cover; }
.ccard__body { margin: 12px 0; font-size: 13px; }
.ccard__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ccard__stats { display: flex; gap: 16px; font-size: 11px; color: var(--muted); }
.ccard__stats span { display: inline-flex; align-items: center; gap: 4px; }
.ccard__stats svg { width: 13px; height: 13px; }
.ccard__actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-mini { height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 11px; font-weight: 600; }
.btn-mini--red { color: #DC2626; border-color: #FECACA; }
.btn-mini--orange { color: var(--red); border-color: #F9C6BE; }

.sub-card { padding: 16px; border: 1.5px solid var(--red); border-radius: var(--r-xl); background: var(--card); }
.opt-group { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.opt:has(input:checked) { background: var(--red-soft); border-color: #F9C6BE; color: var(--red); }
.opt input { position: absolute; opacity: 0; }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .55); }
.modal__panel { width: 100%; max-width: 520px; padding: 24px; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal__head h2 { font-size: 20px; }

.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty h3 { font-size: 20px; margin-bottom: 6px; color: var(--ink); }

.read-progress { position: fixed; top: 0; left: 0; z-index: 200; height: 3px; width: 0; background: var(--red); }

/* ---------------------------------------------------------- mobile drawer */

.drawer { position: fixed; inset: 0; z-index: 250; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .2s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); padding: 20px; overflow-y: auto; background: var(--navy); color: #fff; transform: translateX(100%); transition: transform .25s; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer__head img { height: 40px; }
.drawer__close { background: none; border: 0; color: #fff; padding: 6px; }
.drawer__close svg { width: 22px; height: 22px; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; font-weight: 600; }
.drawer nav ul ul a { padding-left: 16px; font-size: 13px; font-weight: 500; color: #CBD5E1; }
.drawer .masthead__search input { width: 100%; }
.drawer__actions { display: grid; gap: 10px; margin-top: 20px; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .masthead__search input { width: 160px; }
  .site-footer__main { grid-template-columns: 1.4fr repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .masthead__nav, .masthead__tools { display: none; }
  .masthead .container { justify-content: space-between; min-height: 72px; }
  .masthead__logo img { height: 54px; }
  .masthead__burger { display: inline-flex; }

  .util-bar .container { flex-direction: column; justify-content: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .util-bar__group { justify-content: center; }

  .hero { grid-template-columns: 1fr; gap: 20px; }
  .lead__title { font-size: 32px; line-height: 1.35; }
  .feature, .story { grid-template-columns: 1fr; }
  .cols3 { grid-template-columns: 1fr 1fr; }
  .cgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4, .quick { grid-template-columns: repeat(2, 1fr); }
  .site-footer__main { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal__toc { position: static; }
  .acct, .acct--stats { grid-template-columns: 1fr; }
  .acct-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .acct-nav h4 { width: 100%; }
  .acct--stats > :last-child { order: -1; }
  .split-list { grid-template-columns: 1fr; }
  .nl-band .container { flex-direction: column; align-items: stretch; text-align: left; }
  .nl-band form { width: 100%; }
  .nl-band input { width: auto; flex: 1; min-width: 0; }
  .sitemap { grid-template-columns: repeat(2, 1fr); }
  .author-hero { grid-template-columns: 1fr; text-align: left; }
  .nl-feature { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .sec { padding: 40px 0; }
  .page-hero { padding: 14px 0 16px; }
  .page-hero h1 { font-size: 24px; }
  .hgrid__row, .cgrid, .cgrid--2, .cols3, .grid2, .grid3 { grid-template-columns: 1fr; }
  .hcard, .hcard--wide { grid-template-columns: 1fr; }
  .hcard__img { aspect-ratio: 16 / 9; }
  .hcard__body { padding: 12px 16px 16px; }
  .bento__top { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .bento__top > .tile { height: 200px; }
  .bento__stack { grid-template-rows: none; grid-auto-rows: 154px; }
  .bento__stack .tile { height: 154px; }
  .bento__bottom { height: 154px; }
  .lead__title, .article__title { font-size: 28px; }
  .form-row, .form-row--3, .compose__guest, .acct-stats { grid-template-columns: 1fr 1fr; }
  .ritem { grid-template-columns: 100px minmax(0, 1fr); }
  .ritem__img { height: 72px; }
  .site-footer__main { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__bottom .container { justify-content: center; text-align: center; padding-top: 10px; padding-bottom: 10px; }
  .job__top { flex-direction: column; }
  .hrow { grid-template-columns: 50px minmax(0, 1fr); }
  .hrow__actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .ncard { grid-template-columns: 30px minmax(0, 1fr); }
  .ncard__dot { display: none; }
  .map img { height: 260px; }
  .job-hero h1 { font-size: 28px; }
}

@media (max-width: 540px) {
  .cgrid--4, .grid4, .quick, .sitemap, .acct-stats, .form-row, .form-row--3, .compose__guest, .social-btns { grid-template-columns: 1fr; }
  .bento__bottom { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .tile__title { font-size: 13px; }
  .tile__date { font-size: 11px; }
  .auth-card { padding: 24px 20px; }
  .nl-band form { flex-direction: column; }
  .nl-band input, .nl-band .btn { width: 100%; }
  .stats-bar { grid-template-columns: 1fr; gap: 12px; }
  .stats-bar > div + div { border-left: 0; padding-left: 0; }
  .author-hero img { width: 160px; height: 160px; }
  .facts { flex-wrap: wrap; }
}

@media print {
  .util-bar, .ad-place, .masthead, .ticker, .nl-band, .site-footer, .share, .comments { display: none !important; }
}

/* ------------------------------------------------ additions (phase 3b) */
.mt-8 { margin-top: 8px; }
html[data-density="compact"] .sec { padding: 36px 0; }
html[data-density="compact"] .cgrid, html[data-density="compact"] .hgrid { gap: 12px; }
html[data-density="compact"] .card__body { padding: 8px 10px 10px; }
html[data-density="compact"] .stack { gap: 10px; }
.steps__item { text-decoration: none; }
.chip.is-active .muted { color: inherit; }
details > summary.btn { cursor: pointer; }
.danger details[open] > summary.btn { border-color: #DC2626; }
.opt { position: relative; background: var(--card); color: var(--ink-2); }
.nl-card small strong { font-weight: 700; }
.follow-count { color: #94A3B8; }
.icon-btn[disabled], .btn[disabled] { opacity: .45; pointer-events: none; }
.share__btn.is-active { color: var(--green); }
.srow input[type=checkbox] { margin: 0; }
.acct-nav form button:hover { color: var(--red) !important; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface); padding: 2px 6px; border-radius: 4px; }
@media (max-width: 768px) {
  .srow { grid-template-columns: auto 56px minmax(0, 1fr) !important; }
  .srow img { width: 56px; height: 56px; }
  .job-hero { padding: 24px 20px; }
  .nl-feature { padding: 16px; }
}
@media (max-width: 540px) {
  .srow__foot { flex-direction: column; align-items: flex-start; }
  .acct-welcome { flex-wrap: wrap; }
  .acct-welcome h1 { font-size: 22px; }
}

/* Ad places: 3–4 ads side by side become two per row on tablets, one on phones. */
@media (max-width: 900px) {
  .ad-place__items--3, .ad-place__items--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-place--band { padding: 28px 0; }
}
@media (max-width: 540px) {
  .ad-place__items--2, .ad-place__items--3, .ad-place__items--4 { grid-template-columns: minmax(0, 1fr); }
  .ad-place__items { gap: 12px; }
}
