/* =====================================================================
   joy.mn — redesign v2 (preview)
   A bright, friendly digital magazine: Manrope headlines, Inter text, clean white
   surfaces, teal brand + warm coral accent, rounded cards with soft shadows, a bento
   front page, colour-coded category chips and a designed dark mode.
   Loaded last on every page; the home, article and category pages (html.rd-full) use
   only this file, the other pages keep the old theme CSS for their content and get the
   new header and footer from here.
   ===================================================================== */

:root {
  --rd-display: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --rd-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --rd-bg: #f4f7f6;
  --rd-surface: #ffffff;
  --rd-surface-2: #eef3f2;
  --rd-ink: #161a1a;
  --rd-ink-2: #262b2b;
  --rd-muted: #586463;
  --rd-line: #e0e7e6;
  --rd-brand: #177373;
  --rd-brand-ink: #0e5c5c;
  --rd-brand-tint: #e1f1ee;
  --rd-on-brand: #ffffff;
  --rd-warm: #ff6b4a;
  --rd-warm-ink: #b93a12;
  --rd-warm-tint: #fff0ea;
  --rd-quiet: #f6f3ee;
  --rd-quiet-ink: #3b342c;
  --rd-foot: #0b2222;
  --rd-foot-ink: #eaf2f1;
  --rd-foot-muted: #a5bab7;
  --rd-foot-line: #1d3a3a;

  --rd-r-sm: 10px;
  --rd-r: 16px;
  --rd-r-lg: 24px;
  --rd-shadow: 0 1px 2px rgba(16, 42, 42, .05), 0 4px 16px rgba(16, 42, 42, .06);
  --rd-shadow-hover: 0 2px 4px rgba(16, 42, 42, .06), 0 14px 34px rgba(16, 42, 42, .12);
  --rd-shadow-lg: 0 20px 50px rgba(16, 42, 42, .18);
  --rd-gap: clamp(16px, 2.2vw, 28px);
  --rd-space: clamp(44px, 6vw, 84px);
  --rd-ease: cubic-bezier(.2, .7, .2, 1);

  /* newsplus shared widgets follow the site */
  --np-accent: var(--rd-brand);
  --np-font: var(--rd-text);
  --np-read-font: var(--rd-text);
  --np-read-size: 19px;
  --np-read-size-sm: 18px;
  --np-read-line: 1.75;
  --np-read-color: var(--rd-ink-2);
  --np-text: var(--rd-ink);
  --np-muted: var(--rd-muted);
  --np-border: var(--rd-line);
  --np-surface: var(--rd-surface);
  --np-soft: var(--rd-surface-2);
  --np-radius: var(--rd-r);
}

/* Category colours (chips, dots, category band). Unknown ids fall back to the brand. */
[data-cat] { --cat: var(--rd-brand-ink); --cat-solid: var(--rd-brand); --cat-tint: var(--rd-brand-tint); }
[data-cat="2"] { --cat: #b93a12; --cat-solid: #c2410c; --cat-tint: #ffede5; }
[data-cat="3"] { --cat: #1d4ed8; --cat-solid: #2456d6; --cat-tint: #e7eeff; }
[data-cat="4"] { --cat: #6d28d9; --cat-solid: #7036d4; --cat-tint: #f1eaff; }
[data-cat="5"] { --cat: #9a4a07; --cat-solid: #b45309; --cat-tint: #fff2d9; }
[data-cat="6"] { --cat: #15703a; --cat-solid: #17803f; --cat-tint: #e2f5e8; }

/* Designed dark mode on the redesigned pages (the shared invert filter is switched off there) */
html.rd-full[data-theme=dark] {
  --rd-bg: #0d1313;
  --rd-surface: #151d1d;
  --rd-surface-2: #1c2626;
  --rd-ink: #eef3f2;
  --rd-ink-2: #d6dedd;
  --rd-muted: #9eaead;
  --rd-line: #263332;
  --rd-brand: #4cc2b4;
  --rd-brand-ink: #7dd8cc;
  --rd-brand-tint: #12312e;
  --rd-on-brand: #062220;
  --rd-warm: #ff8466;
  --rd-warm-ink: #ffa18a;
  --rd-warm-tint: #33201a;
  --rd-quiet: #171c1b;
  --rd-quiet-ink: #e4ddd2;
  --rd-foot: #081010;
  --rd-foot-line: #1a2928;
  --rd-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .25);
  --rd-shadow-hover: 0 2px 4px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .4);
  color-scheme: dark;
  filter: none !important;
  background: var(--rd-bg);
}
html.rd-full[data-theme=dark] [data-cat] { --cat: #7dd8cc; --cat-solid: #1d6f69; --cat-tint: #12312e; }
html.rd-full[data-theme=dark] [data-cat="2"] { --cat: #ffa18a; --cat-solid: #b8441f; --cat-tint: #3a2119; }
html.rd-full[data-theme=dark] [data-cat="3"] { --cat: #9db8ff; --cat-solid: #2f55c4; --cat-tint: #1a2440; }
html.rd-full[data-theme=dark] [data-cat="4"] { --cat: #c8adff; --cat-solid: #6534c4; --cat-tint: #271d3d; }
html.rd-full[data-theme=dark] [data-cat="5"] { --cat: #ffc77a; --cat-solid: #9c4a08; --cat-tint: #36260f; }
html.rd-full[data-theme=dark] [data-cat="6"] { --cat: #86dfa5; --cat-solid: #17703a; --cat-tint: #14301e; }
html.rd-full[data-theme=dark] img,
html.rd-full[data-theme=dark] picture,
html.rd-full[data-theme=dark] video,
html.rd-full[data-theme=dark] iframe,
html.rd-full[data-theme=dark] embed,
html.rd-full[data-theme=dark] object,
html.rd-full[data-theme=dark] svg image,
html.rd-full[data-theme=dark] [style*="background-image"],
html.rd-full[data-theme=dark] .np-keep-colors { filter: none !important; }

/* ---------- Base (redesigned pages) ---------- */
html.rd-full { background: var(--rd-bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.rd-full *, html.rd-full *::before, html.rd-full *::after { box-sizing: border-box; }
html.rd-full body {
  margin: 0; background: var(--rd-bg); color: var(--rd-ink-2);
  font-family: var(--rd-text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
:where(html.rd-full) img { max-width: 100%; height: auto; display: block; }
:where(html.rd-full) a { color: inherit; text-decoration: none; }
:where(html.rd-full) h1, :where(html.rd-full) h2, :where(html.rd-full) h3, :where(html.rd-full) h4 { margin: 0; color: var(--rd-ink); font-family: var(--rd-display); font-weight: 800; }
:where(html.rd-full) p { margin: 0; }
:where(html.rd-full) ul, :where(html.rd-full) ol { margin: 0; padding: 0; }
:where(html.rd-full) button, :where(html.rd-full) input, :where(html.rd-full) textarea, :where(html.rd-full) select { font: inherit; color: inherit; }
:where(html.rd-full) :focus-visible { outline: 3px solid var(--rd-brand); outline-offset: 2px; border-radius: 6px; }
:where(html.rd-full) ::selection { background: var(--rd-brand-tint); color: var(--rd-ink); }
.rd-main { display: block; outline: none; }
:where(html.rd-full) .clearfix::after { content: ""; display: table; clear: both; }
body.rd-lock { overflow: hidden; }
.np-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rd-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .rd-wrap { padding-inline: 24px; } }
@media (min-width: 1200px) { .rd-wrap { padding-inline: 32px; } }

.rd-skip { position: absolute; left: 12px; top: -60px; z-index: 10000; background: var(--rd-ink); color: var(--rd-bg) !important; padding: 10px 16px; border-radius: var(--rd-r-sm); font: 600 15px/1.2 var(--rd-text); }
.rd-skip:focus { top: 12px; }
.rd-ico { width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Utility bar (slim teal strip) ---------- */
.rd-util { background: var(--rd-brand); color: #e6f4f2; font: 500 13.5px/1.3 var(--rd-text); }
html.rd-full[data-theme=dark] .rd-util { background: #0f2b2a; color: #cfe3e0; }
.rd-util__in { display: flex; align-items: center; gap: 20px; min-height: 38px; }
.rd-util__date { white-space: nowrap; }
.rd-util__wr { flex: 1 1 auto; min-width: 0; margin: 0 !important; justify-content: center; }
.rd-util .np-wr { align-items: center !important; font: inherit !important; color: inherit; gap: 4px 18px !important; flex-wrap: nowrap; justify-content: center; }
.rd-util .np-wr b { color: #fff; font-weight: 700; }
.rd-util .np-wr__weather { display: inline-flex !important; align-items: center; min-height: 38px !important; color: #fff; font-weight: 600; cursor: pointer; }
.rd-util .np-wr__weather img { width: 20px; height: 20px; margin-right: 4px; }
.rd-util .np-wr__rate { white-space: nowrap; }
.rd-util .np-up { color: #b6f5cf; font-style: normal; font-size: 10px; margin-left: 2px; }
.rd-util .np-down { color: #ffd0c4; font-style: normal; font-size: 10px; margin-left: 2px; }
.rd-util__social { margin-left: auto; }
.rd-util .rd-social a { color: #e6f4f2; }
.rd-util .rd-social a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
@media (max-width: 1000px) { .rd-util .np-wr__rate:nth-of-type(n+3) { display: none; } }
@media (max-width: 720px) {
  .rd-util__date, .rd-util__social, .rd-util .np-wr__rate { display: none; }
  .rd-util__wr, .rd-util .np-wr { justify-content: flex-start; }
}

/* Social icon list */
.rd-social { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.rd-social li { list-style: none; margin: 0; }
.rd-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--rd-muted); transition: color .18s, background-color .18s; }
.rd-social a:hover { color: var(--rd-brand); background: var(--rd-brand-tint); }
.rd-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Header ---------- */
.rd-head { position: relative; z-index: 50; background: var(--rd-surface); box-shadow: 0 1px 0 var(--rd-line); font-family: var(--rd-text); }
.rd-head__in { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.rd-logo { display: inline-flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.rd-logo img { height: 46px; width: auto; max-width: none; display: block; }
.rd-logo__dark { display: none !important; }
.rd-logo__txt { font: 800 32px/1 var(--rd-display); color: var(--rd-ink); letter-spacing: -.02em; }
html.rd-full[data-theme=dark] .rd-logo__dark { display: block !important; }
html.rd-full[data-theme=dark] .rd-logo:has(.rd-logo__dark) .rd-logo__light { display: none !important; }
html:not(.rd-full)[data-theme=dark] .rd-logo img { filter: none !important; }

.rd-head__search { position: relative; flex: 1 1 auto; max-width: 520px; margin-left: auto; }
.rd-head__search svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; fill: none; stroke: var(--rd-muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.rd-head__search input {
  width: 100%; height: 46px; padding: 0 18px 0 46px; border: 1px solid transparent; border-radius: 999px;
  background: var(--rd-surface-2); color: var(--rd-ink); font: 400 15.5px/1 var(--rd-text); outline: none;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.rd-head__search input::placeholder { color: var(--rd-muted); }
.rd-head__search input:focus { background: var(--rd-surface); border-color: var(--rd-brand); box-shadow: 0 0 0 4px var(--rd-brand-tint); }
.rd-head__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.rd-head__search + .rd-head__actions { margin-left: 0; }

.rd-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--rd-ink) !important; cursor: pointer;
  font: 600 15px/1 var(--rd-text); transition: background-color .18s, color .18s;
}
.rd-iconbtn:hover { background: var(--rd-surface-2); }
.rd-iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rd-iconbtn.np-theme-toggle { width: 44px; }
.rd-iconbtn.np-theme-toggle svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.rd-search-btn { display: none; }
.rd-menu-btn { margin-left: -8px; }
.rd-head__cta {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; margin-left: 4px;
  border-radius: 999px; background: var(--rd-ink); color: var(--rd-surface) !important;
  font: 700 14.5px/1 var(--rd-text); transition: background-color .18s;
}
.rd-head__cta:hover { background: var(--rd-brand); color: #fff !important; }

/* Category pills */
.rd-nav { border-top: 1px solid var(--rd-line); }
.rd-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.rd-nav__list::-webkit-scrollbar { display: none; }
.rd-nav__list > li { list-style: none; position: relative; margin: 0; flex: 0 0 auto; }
.rd-nav__list a {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--rd-ink) !important; font: 600 15px/1.2 var(--rd-text); white-space: nowrap;
  transition: background-color .18s, color .18s;
}
.rd-nav__list a[href^="/category/"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rd-brand); }
.rd-nav__list a[href="/category/2"]::before, .rd-drawer__nav a[href="/category/2"]::before { background: #d9481f; }
.rd-nav__list a[href="/category/3"]::before, .rd-drawer__nav a[href="/category/3"]::before { background: #2456d6; }
.rd-nav__list a[href="/category/4"]::before, .rd-drawer__nav a[href="/category/4"]::before { background: #7036d4; }
.rd-nav__list a[href="/category/5"]::before, .rd-drawer__nav a[href="/category/5"]::before { background: #d97706; }
.rd-nav__list a[href="/category/6"]::before, .rd-drawer__nav a[href="/category/6"]::before { background: #17803f; }
.rd-nav__list > li > a:hover { background: var(--rd-surface-2); }
.rd-nav__list > li > a.is-active, .rd-nav__list > li.is-active > a { background: var(--rd-brand-tint); color: var(--rd-brand-ink) !important; }
.rd-nav__list .has-dropdown > a::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.rd-nav__list .sub-menu {
  list-style: none; position: fixed; min-width: 220px; margin: 4px 0 0; padding: 8px;
  background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: var(--rd-r); box-shadow: var(--rd-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.rd-nav__list .has-dropdown:hover > .sub-menu, .rd-nav__list .has-dropdown:focus-within > .sub-menu, .rd-nav__list .has-dropdown.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rd-nav__list .sub-menu a { min-height: 42px; border-radius: var(--rd-r-sm); font-weight: 500; }
.rd-nav__list .sub-menu a:hover { background: var(--rd-surface-2); }

/* Search panel (phones) */
.rd-search { border-top: 1px solid var(--rd-line); background: var(--rd-surface); padding-block: 14px; }
.rd-search[hidden] { display: none; }
.rd-search__form { display: flex; gap: 8px; max-width: 760px; margin: 0 auto; }
.rd-search__form input {
  flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 18px; border: 1px solid var(--rd-line); border-radius: 999px;
  background: var(--rd-surface-2); color: var(--rd-ink); font: 400 17px/1 var(--rd-text); outline: none;
}
.rd-search__form input:focus { border-color: var(--rd-brand); box-shadow: 0 0 0 4px var(--rd-brand-tint); }
.rd-search__form button, .rd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--rd-brand); color: var(--rd-on-brand) !important;
  font: 700 16px/1 var(--rd-text); cursor: pointer; white-space: nowrap; transition: background-color .18s, transform .18s;
}
.rd-search__form button:hover, .rd-btn:hover { background: var(--rd-brand-ink); }
.rd-btn--warm { background: var(--rd-warm); color: #2a0c03 !important; }
.rd-btn--warm:hover { background: #ff8a6e; }
.rd-btn--ghost { background: transparent; color: var(--rd-quiet-ink) !important; border: 1.5px solid currentColor; }
.rd-btn--ghost:hover { background: var(--rd-quiet-ink); color: var(--rd-quiet) !important; }

@media (max-width: 899px) {
  .rd-head__in { min-height: 64px; gap: 6px; }
  .rd-logo img { height: 38px; }
  .rd-head__search, .rd-head__cta, .rd-nav { display: none; }
  .rd-search-btn { display: inline-flex; }
}
@media (min-width: 900px) and (max-width: 1099px) { .rd-head__cta { display: none; } }

/* ---------- Drawer ---------- */
.rd-drawer { position: fixed; inset: 0; z-index: 9000; }
.rd-drawer[hidden] { display: none; }
.rd-drawer__scrim { position: absolute; inset: 0; background: rgba(8, 24, 24, .5); opacity: 0; transition: opacity .22s; }
.rd-drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(400px, 100%); overflow-y: auto; overscroll-behavior: contain;
  background: var(--rd-surface); color: var(--rd-ink); padding: 12px 18px 32px; box-shadow: var(--rd-shadow-lg);
  border-radius: 0 var(--rd-r-lg) var(--rd-r-lg) 0;
  transform: translateX(-100%); transition: transform .22s var(--rd-ease); font-family: var(--rd-text);
}
.rd-drawer.is-open .rd-drawer__scrim { opacity: 1; }
.rd-drawer.is-open .rd-drawer__panel { transform: none; }
.rd-drawer__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 14px; }
.rd-logo--sm img { height: 36px; }
.rd-search__form--drawer { margin: 0 0 14px; }
.rd-search__form--drawer input, .rd-search__form--drawer button { height: 48px; min-height: 48px; }
.rd-search__form--drawer button { padding: 0 18px; }
.rd-drawer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rd-drawer__nav li { list-style: none; margin: 0; }
.rd-drawer__nav a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: var(--rd-r); background: var(--rd-surface-2); color: var(--rd-ink) !important; font: 700 18px/1.2 var(--rd-display); }
.rd-drawer__nav a[href^="/category/"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rd-brand); flex: 0 0 auto; }
.rd-drawer__nav a.is-active { background: var(--rd-brand-tint); color: var(--rd-brand-ink) !important; }
.rd-drawer__nav .sub-menu { list-style: none; margin: 4px 0 4px; padding: 0 0 0 14px; display: none; }
.rd-drawer__nav .has-dropdown.is-open > .sub-menu { display: block; }
.rd-drawer__nav .sub-menu a { font: 500 16px/1.2 var(--rd-text); min-height: 44px; background: transparent; }
.rd-drawer__nav .has-dropdown > a::after { content: "+"; margin-left: auto; font: 400 24px/1 var(--rd-text); color: var(--rd-muted); }
.rd-drawer__nav .has-dropdown.is-open > a::after { content: "–"; }
.rd-drawer__wr { margin: 20px 0 0; }
.rd-drawer__wr .np-wr { font: 500 14px/1.4 var(--rd-text); color: var(--rd-muted); gap: 8px 16px; }
.rd-drawer__wr .np-wr b { color: var(--rd-ink); }
.rd-drawer__about { margin: 18px 0 0; color: var(--rd-muted); }
.rd-drawer__contact { display: flex; flex-direction: column; margin: 12px 0; }
.rd-drawer__contact a { display: flex; align-items: center; min-height: 44px; color: var(--rd-ink) !important; font-weight: 600; }
.rd-drawer .rd-social a { width: 44px; height: 44px; }

/* ---------- Shared pieces ---------- */
.rd-chip {
  display: inline-flex; align-items: center; align-self: flex-start; min-height: 28px; padding: 0 12px; margin-bottom: 10px;
  border-radius: 999px; background: var(--cat-tint, var(--rd-brand-tint)); color: var(--cat, var(--rd-brand-ink)) !important;
  font: 700 13px/1.1 var(--rd-text); letter-spacing: .01em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  transition: filter .18s;
}
a.rd-chip:hover { filter: brightness(.96); }
.rd-chip--solid { background: var(--cat-solid, var(--rd-brand)); color: #fff !important; }
.rd-eyebrow { font: 700 13px/1.2 var(--rd-text) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--rd-muted) !important; margin: 0 0 14px !important; }
.rd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--rd-muted); font: 500 14px/1.4 var(--rd-text); }
.rd-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 9px; opacity: .55; }
.rd-meta__by, .rd-meta__by a { color: var(--rd-ink) !important; font-weight: 600; }
.rd-meta--light { color: rgba(255, 255, 255, .86); }

.rd-sechead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 22px; }
.rd-sechead__title { display: inline-flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; font: 800 clamp(24px, 1.1vw + 17px, 32px)/1.15 var(--rd-display) !important; letter-spacing: -.02em; color: var(--rd-ink); }
.rd-sechead__title a { color: inherit !important; }
.rd-sechead__title a:hover { color: var(--rd-brand) !important; }
.rd-sechead__dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 5px; background: var(--cat-solid, var(--rd-brand)); transform: rotate(45deg); }
.rd-sechead__dot--warm { background: var(--rd-warm); }
.rd-sechead__sub { color: var(--rd-muted); font-size: 15.5px; }
.rd-sechead__more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--rd-surface); box-shadow: var(--rd-shadow); color: var(--rd-ink) !important; font: 700 14.5px/1 var(--rd-text); transition: background-color .18s, color .18s; }
.rd-sechead__more:hover { background: var(--rd-brand); color: #fff !important; }
.rd-sechead--light .rd-sechead__title { color: #fff !important; }

/* Avatars */
.rd-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--rd-surface-2); }
.rd-avatar--initial { background: #177373; color: #fff; font: 800 20px/1 var(--rd-display); }
.rd-avatar--initial[data-i="1"], .rd-avatar--initial[data-i="6"] { background: #d9481f; }
.rd-avatar--initial[data-i="2"], .rd-avatar--initial[data-i="7"] { background: #2456d6; }
.rd-avatar--initial[data-i="3"], .rd-avatar--initial[data-i="8"] { background: #7036d4; }
.rd-avatar--initial[data-i="4"], .rd-avatar--initial[data-i="9"] { background: #a8540b; }
.rd-author { display: flex; align-items: center; gap: 10px; color: var(--rd-muted); font: 500 14px/1.3 var(--rd-text); }
.rd-author .rd-avatar { width: 40px; height: 40px; font-size: 17px; }
.rd-author__name { color: var(--rd-ink); font-weight: 700; }
.rd-author__who { display: flex; flex-direction: column; min-width: 0; }
.rd-author__role { color: var(--rd-muted); font-size: 13.5px; }
.rd-author--top .rd-avatar { width: 52px; height: 52px; font-size: 21px; }

/* ---------- Cards ---------- */
.rd-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--rd-surface); border-radius: var(--rd-r); box-shadow: var(--rd-shadow); overflow: hidden; transition: box-shadow .2s, transform .2s var(--rd-ease); }
.rd-card:hover { box-shadow: var(--rd-shadow-hover); transform: translateY(-2px); }
.rd-card__media { display: block; position: relative; overflow: hidden; background: var(--rd-surface-2); aspect-ratio: 3 / 2; }
.rd-card__media img, .rd-tile__media img, .rd-catlead__media img, .rd-video__media img, .rd-litcard__media img, .rd-portrait__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--rd-ease); }
.rd-card:hover .rd-card__media img, .rd-tile:hover .rd-tile__media img, .rd-catlead:hover .rd-catlead__media img, .rd-video:hover img, .rd-litcard:hover .rd-litcard__media img, .rd-portrait:hover .rd-portrait__media img { transform: scale(1.03); }
.rd-card__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; padding: 18px 20px 20px; }
.rd-card__title { font: 800 20px/1.3 var(--rd-display) !important; letter-spacing: -.012em; color: var(--rd-ink); margin: 0 0 10px !important; overflow-wrap: anywhere; }
.rd-card__title a { color: inherit !important; transition: color .18s; }
.rd-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rd-card .rd-chip { position: relative; z-index: 2; }
.rd-card:hover .rd-card__title a { color: var(--rd-brand-ink) !important; }
.rd-card__excerpt { color: var(--rd-ink-2); font-size: 16px; line-height: 1.6; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rd-card .rd-meta { margin-top: auto; }
.rd-card--row { flex-direction: row; align-items: stretch; }
.rd-card--row .rd-card__media { flex: 0 0 34%; max-width: 220px; aspect-ratio: auto; min-height: 120px; }
.rd-card--row .rd-card__body { padding: 14px 18px; justify-content: center; }
.rd-card--row .rd-card__title { font-size: 17.5px !important; margin-bottom: 8px !important; }
.rd-card--text .rd-card__title { font-size: 19px !important; }
.rd-card--flat { box-shadow: none; background: transparent; border-radius: 0; overflow: visible; }
.rd-card--flat:hover { box-shadow: none; transform: none; }
.rd-card--flat .rd-card__media { border-radius: var(--rd-r); }
.rd-card--flat .rd-card__body { padding: 16px 0 0; }
.rd-card--flat.rd-card--row .rd-card__body { padding: 0 0 0 16px; }

/* ---------- Home: bento front ---------- */
.rd-bento { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); grid-template-rows: 280px 280px auto; gap: var(--rd-gap); padding-top: clamp(20px, 3vw, 36px); padding-bottom: var(--rd-space); }
.rd-tile { position: relative; min-width: 0; overflow: hidden; border-radius: var(--rd-r-lg); background: #10302f; box-shadow: var(--rd-shadow); isolation: isolate; }
.rd-tile--lead { grid-column: 1 / 15; grid-row: 1 / 3; }
.rd-tile--wide { grid-column: 15 / 25; grid-row: 1; }
.rd-tile--sm:nth-of-type(3) { grid-column: 15 / 20; grid-row: 2; }
.rd-tile--sm:nth-of-type(4) { grid-column: 20 / 25; grid-row: 2; }
.rd-tile__media { position: absolute; inset: 0; z-index: -1; display: block; }
.rd-tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 22, 22, 0) 30%, rgba(6, 22, 22, .55) 58%, rgba(6, 22, 22, .9) 100%); }
.rd-tile__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 20px 22px; color: #fff; }
.rd-tile__title { font: 800 19px/1.25 var(--rd-display) !important; letter-spacing: -.012em; color: #fff !important; margin: 0 0 8px !important; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.rd-tile__title a { color: inherit !important; }
.rd-tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rd-tile .rd-chip { position: relative; z-index: 2; }
.rd-tile:hover .rd-tile__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rd-tile--lead .rd-tile__body { padding: clamp(22px, 3vw, 36px); }
.rd-tile--lead .rd-tile__title { font-size: clamp(28px, 1.9vw + 12px, 42px) !important; line-height: 1.14; letter-spacing: -.022em; margin-bottom: 12px !important; }
.rd-tile--wide .rd-tile__title { font-size: clamp(20px, .8vw + 13px, 24px) !important; }
.rd-tile__dek { max-width: 60ch; margin: 0 0 14px; color: rgba(255, 255, 255, .9); font-size: 17px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-tile--sm .rd-meta span:nth-child(n+2) { display: none; }

.rd-bento__row { grid-column: 1 / -1; display: flex; gap: var(--rd-gap); }
.rd-bbox { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 24px 26px; border-radius: var(--rd-r-lg); background: var(--rd-surface); box-shadow: var(--rd-shadow); }
.rd-bbox__label { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 32px; margin: 0 0 12px !important; font: 800 14px/1.2 var(--rd-text) !important; letter-spacing: .04em; text-transform: uppercase; color: var(--rd-brand-ink) !important; }
.rd-bbox__label svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rd-bbox__title { font: 800 21px/1.3 var(--rd-display) !important; letter-spacing: -.012em; color: var(--rd-ink); margin: 0 0 16px !important; overflow-wrap: anywhere; }
.rd-bbox__title a { color: inherit !important; }
.rd-bbox__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rd-bbox .rd-author { margin-top: auto; }
.rd-bbox__text { color: var(--rd-ink-2); font-size: 16px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rd-bbox--trend { background: var(--rd-brand); color: #fff; }
html.rd-full[data-theme=dark] .rd-bbox--trend { background: #11403d; }
.rd-bbox--trend .rd-bbox__label { color: #c9f1ea !important; }
.rd-bbox__rank { list-style: none; counter-reset: rd-b; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rd-bbox__rank li { counter-increment: rd-b; display: grid; grid-template-columns: 34px 1fr; align-items: start; }
.rd-bbox__rank li::before { content: counter(rd-b); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .18); font: 800 14px/1 var(--rd-display); }
.rd-bbox__rank a { color: #fff !important; font: 700 16px/1.4 var(--rd-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-bbox__rank a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rd-bbox--opinion { background: var(--rd-warm-tint); box-shadow: none; }
.rd-bbox--opinion .rd-bbox__label { color: var(--rd-warm-ink) !important; }
.rd-bbox--opinion .rd-bbox__title::before { content: "“"; display: block; height: 30px; color: var(--rd-warm); font: 800 58px/1 var(--rd-display); }
.rd-bbox--lit { background: var(--rd-quiet); box-shadow: none; }
.rd-bbox--lit .rd-bbox__label { color: #6d28d9 !important; }
html.rd-full[data-theme=dark] .rd-bbox--lit .rd-bbox__label { color: #c8adff !important; }
.rd-bbox--lit .rd-bbox__title { font-weight: 700 !important; }

/* ---------- Ads ---------- */
.rd-ad { margin-block: 0 var(--rd-space); }
.rd-ad--wide { display: flex; flex-direction: column; align-items: center; }
.rd-ad--wide::before, .rd-ad--side::before { content: "Сурталчилгаа"; display: block; margin-bottom: 8px; color: var(--rd-muted); font: 600 11px/1 var(--rd-text); letter-spacing: .12em; text-transform: uppercase; }
.rd-ad--wide .np-banner { width: 100%; max-width: 1200px; }
.rd-ad img { margin-inline: auto; border-radius: var(--rd-r); }
.rd-ad--side { margin: 0 0 24px; }

/* ---------- Home: latest + aside ---------- */
.rd-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 40px); padding-bottom: var(--rd-space); }
.rd-split__main { min-width: 0; }
.rd-grid { display: grid; gap: var(--rd-gap); }
.rd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rd-list { display: flex; flex-direction: column; gap: 14px; margin-top: var(--rd-gap); }

.rd-aside { min-width: 0; }
.rd-aside__sticky { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 24px; }
.rd-box { padding: 22px 22px 10px; border-radius: var(--rd-r-lg); background: var(--rd-surface); box-shadow: var(--rd-shadow); }
.rd-box__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px !important; font: 800 20px/1.2 var(--rd-display) !important; letter-spacing: -.01em; color: var(--rd-ink) !important; }
.rd-box__title::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--rd-warm); transform: rotate(45deg); }
.rd-rank { list-style: none; counter-reset: rd-rank; margin: 0; padding: 0; }
.rd-rank li { counter-increment: rd-rank; border-bottom: 1px solid var(--rd-line); list-style: none; }
.rd-rank li:last-child { border-bottom: 0; }
.rd-rank a { display: grid; grid-template-columns: 44px 1fr; column-gap: 6px; padding: 14px 0; color: var(--rd-ink) !important; }
.rd-rank a::before { content: counter(rd-rank); grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 12px; background: var(--rd-brand-tint); color: var(--rd-brand-ink); font: 800 16px/1 var(--rd-display); }
.rd-rank li:first-child a::before { background: var(--rd-warm); color: #2a0c03; }
.rd-rank__title { font: 700 16px/1.4 var(--rd-text); transition: color .18s; overflow-wrap: anywhere; }
.rd-rank a:hover .rd-rank__title { color: var(--rd-brand-ink); }
.rd-rank__meta { margin-top: 4px; color: var(--rd-muted); font: 500 13.5px/1.2 var(--rd-text); }
.rd-cats { list-style: none; margin: 0; padding: 0 0 8px; }
.rd-cats li { list-style: none; border-bottom: 1px solid var(--rd-line); }
.rd-cats li:last-child { border-bottom: 0; }
.rd-cats a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; color: var(--rd-ink) !important; font: 600 16px/1.2 var(--rd-text); }
.rd-cats a:hover { color: var(--rd-brand-ink) !important; }
.rd-cats__n { min-width: 34px; padding: 4px 9px; border-radius: 999px; background: var(--rd-surface-2); color: var(--rd-muted); font-size: 13px; text-align: center; }
.rd-aside .np-poll { background: var(--rd-surface); border: 0; border-radius: var(--rd-r-lg); box-shadow: var(--rd-shadow); margin: 0; }

/* ---------- Home: opinion strip ---------- */
.rd-opinion { background: var(--rd-warm-tint); padding-block: clamp(36px, 5vw, 64px); margin-bottom: var(--rd-space); }
.rd-opinion__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--rd-gap); }
.rd-op { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--rd-r-lg); background: var(--rd-surface); box-shadow: var(--rd-shadow); transition: box-shadow .2s, transform .2s var(--rd-ease); }
.rd-op:hover { box-shadow: var(--rd-shadow-hover); transform: translateY(-2px); }
.rd-op__title { font: 800 19px/1.32 var(--rd-display) !important; letter-spacing: -.01em; color: var(--rd-ink); margin: 0 !important; overflow-wrap: anywhere; }
.rd-op__title a { color: inherit !important; }
.rd-op__title a::after { content: ""; position: absolute; inset: 0; }
.rd-op:hover .rd-op__title a { color: var(--rd-warm-ink) !important; }
.rd-op__text { color: var(--rd-ink-2); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rd-op .rd-meta { margin-top: auto; }

/* ---------- Home: readers' choice ---------- */
.rd-picks { padding-bottom: var(--rd-space); }
.rd-picks__list { list-style: none; counter-reset: rd-pick; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--rd-gap); margin: 0; padding: 0; }
.rd-picks__item { counter-increment: rd-pick; position: relative; display: flex; }
.rd-picks__item .rd-card { flex: 1 1 auto; }
.rd-picks__item::before { content: counter(rd-pick); position: absolute; z-index: 3; top: 12px; left: 12px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 14px; background: var(--rd-warm); color: #2a0c03; font: 800 19px/1 var(--rd-display); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); pointer-events: none; }

/* ---------- Home: category panels ---------- */
.rd-catsec { padding-bottom: var(--rd-space); }
.rd-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 2.4vw, 30px); border-radius: var(--rd-r-lg); background: var(--rd-surface); box-shadow: var(--rd-shadow); }
.rd-panel__lead .rd-card__title { font-size: clamp(22px, .9vw + 16px, 28px) !important; line-height: 1.22; }
.rd-panel__rest { display: flex; flex-direction: column; }
.rd-panel__rest .rd-card--row { padding: 16px 0; border-top: 1px solid var(--rd-line); }
.rd-panel__rest .rd-card--row:first-child { border-top: 0; padding-top: 0; }
.rd-panel__rest .rd-card--row .rd-card__media { flex-basis: 38%; max-width: 190px; aspect-ratio: 3 / 2; min-height: 0; }
.rd-panel--one { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .rd-panel--one .rd-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
  .rd-panel--one .rd-card__body { padding: 0; }
}

/* Literature: quiet, paper-toned, text-led */
.rd-lit { background: var(--rd-quiet); padding-block: clamp(44px, 6vw, 80px); margin-bottom: var(--rd-space); color: var(--rd-quiet-ink); }
.rd-lit__in { display: flex; flex-direction: column; align-items: center; max-width: 1080px; }
.rd-lit__head { text-align: center; margin-bottom: clamp(24px, 3vw, 40px); }
.rd-lit__mark { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 12px; border-radius: 50%; border: 1.5px solid currentColor; color: #6d28d9; }
html.rd-full[data-theme=dark] .rd-lit__mark { color: #c8adff; }
.rd-lit__mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.rd-lit__title { font: 700 clamp(28px, 1.6vw + 18px, 40px)/1.15 var(--rd-display) !important; letter-spacing: -.02em; color: var(--rd-quiet-ink) !important; margin: 0 0 8px !important; }
.rd-lit__title a { color: inherit !important; }
.rd-lit__sub { color: var(--rd-muted); font-size: 16.5px; }
.rd-lit__list { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; margin-bottom: 32px; }
.rd-litcard { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid rgba(59, 52, 44, .14); }
html.rd-full[data-theme=dark] .rd-litcard { border-color: var(--rd-line); }
.rd-litcard__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--rd-surface-2); }
.rd-litcard__title { font: 700 21px/1.35 var(--rd-display) !important; color: var(--rd-quiet-ink) !important; margin: 0 0 10px !important; overflow-wrap: anywhere; }
.rd-litcard__title a { color: inherit !important; }
.rd-litcard__title a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.rd-litcard__text { color: var(--rd-quiet-ink); opacity: .9; font-size: 17px; line-height: 1.75; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rd-lit__list--one { grid-template-columns: 1fr; max-width: 820px; }
.rd-lit__list--one .rd-litcard { grid-template-columns: 220px 1fr; gap: 36px; align-items: center; border-bottom: 0; padding-bottom: 0; }
.rd-lit__list--one .rd-litcard__title { font-size: clamp(22px, 1vw + 16px, 30px) !important; }

/* Interviews: portrait cards */
.rd-portraits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--rd-gap); }
.rd-portrait { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rd-portrait__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--rd-r-lg); background: var(--rd-surface-2); box-shadow: var(--rd-shadow); }
.rd-portrait__q { position: absolute; left: 14px; bottom: 10px; color: #fff; font: 800 72px/.6 var(--rd-display); text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.rd-portrait__title { font: 800 19px/1.3 var(--rd-display) !important; color: var(--rd-ink); margin: 0 !important; overflow-wrap: anywhere; }
.rd-portrait__title a { color: inherit !important; }
.rd-portrait__title a:hover { color: var(--rd-brand-ink) !important; }

/* ---------- Home: video strip, partners, CTA ---------- */
.rd-videos { margin-bottom: var(--rd-space); }
.rd-videos__in { padding: clamp(24px, 3vw, 40px); border-radius: var(--rd-r-lg); background: #0e2b2a; }
.rd-videos__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rd-video { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; color: #fff !important; }
.rd-video__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--rd-r); background: #000; }
.rd-video__play { position: absolute; left: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; background: var(--rd-warm); display: flex; align-items: center; justify-content: center; }
.rd-video__play svg { width: 20px; height: 20px; fill: #2a0c03; margin-left: 3px; }
.rd-video__title { font: 700 17px/1.35 var(--rd-display); }
.rd-partners { padding-bottom: var(--rd-space); text-align: center; }
.rd-partners__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 44px; margin: 0; padding: 26px 24px; border-radius: var(--rd-r-lg); background: #0e2b2a; }
.rd-partners__list li { list-style: none; }
.rd-partners__list img { height: 40px; width: auto; filter: none !important; opacity: .85; transition: opacity .2s; }
.rd-partners__list a:hover img { opacity: 1; }
.rd-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: var(--rd-space); padding: clamp(24px, 3.4vw, 44px); border-radius: var(--rd-r-lg); background: var(--rd-brand); color: #fff; background-image: radial-gradient(circle at 92% 20%, rgba(255, 107, 74, .5) 0 70px, transparent 71px), radial-gradient(circle at 80% 120%, rgba(255, 255, 255, .12) 0 120px, transparent 121px); }
html.rd-full[data-theme=dark] .rd-cta { background-color: #11403d; }
.rd-cta__text { font: 800 clamp(20px, 1vw + 14px, 28px)/1.3 var(--rd-display); max-width: 34ch; letter-spacing: -.012em; }

/* ---------- Category page ---------- */
.rd-catband { padding-top: clamp(20px, 3vw, 32px); margin-bottom: clamp(24px, 3.4vw, 44px); }
.rd-catband > .rd-wrap { position: relative; overflow: hidden; }
.rd-catband > .rd-wrap::before { content: ""; position: absolute; inset: 0 16px; z-index: -1; border-radius: var(--rd-r-lg); background: var(--cat-tint); background-image: radial-gradient(circle at 95% 10%, var(--cat-solid) 0 54px, transparent 55px), radial-gradient(circle at 86% 110%, rgba(255, 107, 74, .35) 0 90px, transparent 91px); }
.rd-catband { isolation: isolate; }
.rd-catband > .rd-wrap { padding-block: clamp(26px, 4vw, 52px); }
.rd-catband .rd-crumbs, .rd-catband__title, .rd-catband__desc, .rd-catband__count { padding-inline: clamp(18px, 3vw, 40px); }
@media (min-width: 700px) { .rd-catband > .rd-wrap::before { inset: 0 24px; } }
@media (min-width: 1200px) { .rd-catband > .rd-wrap::before { inset: 0 32px; } }
.rd-catband__title { font: 800 clamp(36px, 3.4vw + 14px, 64px)/1.06 var(--rd-display) !important; letter-spacing: -.03em; color: var(--cat) !important; margin: 4px 0 10px !important; text-wrap: balance; max-width: 18ch; }
.rd-catband__desc { max-width: 62ch; margin: 0 0 12px; font-size: 18px; line-height: 1.55; color: var(--rd-ink-2); }
.rd-catband__count { display: inline-flex; color: var(--rd-ink); font: 700 14px/1.2 var(--rd-text); }
.rd-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; font: 500 14.5px/1.3 var(--rd-text); color: var(--rd-muted); }
.rd-crumbs li { list-style: none; display: inline-flex; align-items: center; }
.rd-crumbs li + li::before { content: "›"; margin: 0 10px; opacity: .7; }
.rd-crumbs a { display: inline-flex; align-items: center; min-height: 36px; color: var(--rd-muted) !important; }
.rd-crumbs a:hover { color: var(--rd-brand-ink) !important; }
.rd-catband .rd-crumbs a, .rd-catband .rd-crumbs { color: var(--rd-ink-2) !important; }
.rd-catlead { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; margin-bottom: var(--rd-gap); border-radius: var(--rd-r-lg); background: var(--rd-surface); box-shadow: var(--rd-shadow); overflow: hidden; transition: box-shadow .2s; }
.rd-catlead:hover { box-shadow: var(--rd-shadow-hover); }
.rd-catlead__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--rd-surface-2); }
.rd-catlead__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 2.6vw, 34px); }
.rd-catlead__title { font: 800 clamp(24px, 1.2vw + 16px, 34px)/1.2 var(--rd-display) !important; letter-spacing: -.02em; margin: 0 0 14px !important; color: var(--rd-ink); text-wrap: balance; overflow-wrap: anywhere; }
.rd-catlead__title a { color: inherit !important; }
.rd-catlead__title a::after { content: ""; position: absolute; inset: 0; }
.rd-catlead:hover .rd-catlead__title a { color: var(--rd-brand-ink) !important; }
.rd-catlead__dek { color: var(--rd-ink-2); font-size: 17px; line-height: 1.6; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rd-catlead .rd-meta__by a { position: relative; z-index: 2; }
.rd-empty { padding: 40px; color: var(--rd-muted); border-radius: var(--rd-r-lg); background: var(--rd-surface); text-align: center; }
.rd-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.rd-pager__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--rd-surface); box-shadow: var(--rd-shadow); color: var(--rd-ink) !important; font: 700 16px/1 var(--rd-text); transition: background-color .18s, color .18s; }
.rd-pager__btn:hover { background: var(--rd-brand-tint); color: var(--rd-brand-ink) !important; }
.rd-pager__btn.is-current { background: var(--rd-brand); color: #fff !important; }
.rd-pager__btn--wide { padding: 0 20px; }
.rd-pager__gap { color: var(--rd-muted); padding: 0 4px; }

/* ---------- Article ---------- */
.rd-ahead { max-width: 900px; padding-top: clamp(18px, 3vw, 36px); padding-bottom: clamp(22px, 3vw, 34px); }
.rd-ahead .rd-crumbs ol { margin-bottom: 12px; }
.rd-ahead .rd-chip { min-height: 32px; padding: 0 14px; font-size: 14px; margin-bottom: 16px; }
.rd-ahead__title { font: 800 clamp(30px, 2.4vw + 16px, 52px)/1.14 var(--rd-display) !important; letter-spacing: -.025em !important; color: var(--rd-ink) !important; margin: 0 0 18px !important; text-wrap: balance; overflow-wrap: anywhere; }
.rd-ahead__dek { max-width: 760px; margin: 0 0 24px; font: 400 clamp(18px, .5vw + 15px, 21px)/1.6 var(--rd-text); color: var(--rd-ink-2); }
.rd-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-radius: var(--rd-r-lg); background: var(--rd-surface); box-shadow: var(--rd-shadow); }
.rd-byline__avatar { display: inline-flex; line-height: 0; }
.rd-byline__avatar .rd-avatar { width: 52px; height: 52px; font-size: 22px; }
.rd-byline__who { display: flex; flex-direction: column; }
.rd-byline__name, .rd-byline__name a { color: var(--rd-ink) !important; font: 700 16.5px/1.3 var(--rd-text); }
.rd-byline__name a:hover { color: var(--rd-brand-ink) !important; }
.rd-byline__role { color: var(--rd-muted); font-size: 14px; }
.rd-byline__facts { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 0 auto; padding: 0; color: var(--rd-ink-2); font: 500 14px/1.3 var(--rd-text); }
.rd-byline__facts li { list-style: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--rd-surface-2); }
.rd-byline__facts a { color: var(--rd-brand-ink) !important; display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; }

.rd-hero { max-width: 1180px; margin: 0 auto clamp(28px, 4vw, 48px); }
.rd-hero__frame { overflow: hidden; border-radius: var(--rd-r-lg); background: var(--rd-surface-2); box-shadow: var(--rd-shadow); }
.rd-hero img { width: 100%; height: auto; }

.rd-alayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); max-width: 1180px; }
.rd-acol { min-width: 0; max-width: 720px; width: 100%; }

/* Reading text */
.rd-prose.np-article-body { color: var(--rd-ink-2); font-family: var(--rd-text) !important; font-size: 19px; line-height: 1.75; }
.rd-prose.np-article-body p { margin: 0 0 1.25em; }
.rd-prose.np-article-body p:not(:has(img, iframe, video, table)) { max-width: none; }
.rd-prose :is(h2, h3, h4) { font-family: var(--rd-display) !important; font-weight: 800; color: var(--rd-ink); letter-spacing: -.015em; line-height: 1.25; margin: 1.6em 0 .6em; }
.rd-prose a { color: var(--rd-brand-ink) !important; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.rd-prose strong, .rd-prose b { color: var(--rd-ink); }
.rd-prose img { height: auto !important; margin-inline: auto; border-radius: var(--rd-r); }
.rd-prose figure { margin: 1.6em 0; }
.rd-prose figcaption { margin-top: 8px; color: var(--rd-muted); font-size: 15px; text-align: center; }
.rd-prose.np-article-body blockquote {
  position: relative; margin: 1.8em 0 !important; padding: 1.1em 1.4em 1.1em 1.6em !important; border: 0 !important; border-left: 5px solid var(--rd-warm) !important;
  border-radius: 0 var(--rd-r) var(--rd-r) 0; background: var(--rd-warm-tint);
  font: 600 1.1em/1.6 var(--rd-display) !important; color: var(--rd-ink) !important;
}
.rd-prose.np-article-body blockquote p { color: var(--rd-ink) !important; font: inherit !important; margin: 0 0 .5em !important; }
.rd-prose.np-article-body blockquote p:last-child { margin-bottom: 0 !important; }
.rd-prose hr { border: 0; height: 6px; width: 60px; margin: 2em auto; border-radius: 99px; background: var(--rd-brand-tint); }
.rd-prose table { border-collapse: collapse; font-size: 16px; }
.rd-prose td, .rd-prose th { border: 1px solid var(--rd-line); padding: 8px 10px; }
.np-article-voice { width: 100%; margin: 0 0 24px; }

/* Reactions */
.rd-react { margin: 36px 0 0; padding: 24px 18px; border-radius: var(--rd-r-lg); background: var(--rd-surface); box-shadow: var(--rd-shadow); text-align: center; }
.rd-react__title { font: 800 20px/1.3 var(--rd-display); color: var(--rd-ink); margin-bottom: 14px; }
.rd-react__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rd-react__item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; padding: 10px 8px 8px; border-radius: var(--rd-r); background: var(--rd-surface-2); cursor: pointer; transition: background-color .18s, transform .18s; }
.rd-react__item:hover { background: var(--rd-brand-tint); transform: translateY(-2px); }
.rd-react__item img { width: 40px; height: 40px; object-fit: contain; }
.rd-react__item .reaction-number { min-height: 20px; color: var(--rd-ink); font: 700 15px/1.3 var(--rd-text); }
.rd-react__desc { min-height: 22px; margin-top: 8px; color: var(--rd-brand-ink); font: 600 15px/1.4 var(--rd-text); }

/* Tags, share, rating, author */
.rd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 0; }
.rd-tags__label { margin-right: 6px; color: var(--rd-muted); font: 700 14px/1 var(--rd-text); }
.rd-tags a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--rd-surface); box-shadow: var(--rd-shadow); color: var(--rd-ink) !important; font: 600 14.5px/1 var(--rd-text); transition: background-color .18s, color .18s; }
.rd-tags a::before { content: "#"; margin-right: 2px; color: var(--rd-brand); }
.rd-tags a:hover { background: var(--rd-brand-tint); color: var(--rd-brand-ink) !important; }
.rd-sharebar { margin: 26px 0 0; padding: 14px 18px; border-radius: var(--rd-r-lg); background: var(--rd-surface); box-shadow: var(--rd-shadow); }
.rd-sharebar .np-share { margin: 0; }
.rd-acol .np-share__label, .rd-acol .np-rating__label { color: var(--rd-muted); font-family: var(--rd-text); }
.rd-acol .np-share__btn { border-radius: 999px; }
.rd-acol .np-rating { margin: 22px 0; }
.rd-acol .np-author-box { margin: 26px 0; padding: 22px; background: var(--rd-surface); border: 0; box-shadow: var(--rd-shadow); border-radius: var(--rd-r-lg); font-family: var(--rd-text); }
.rd-acol .np-author-box__name a { font: 800 19px/1.3 var(--rd-display); color: var(--rd-ink) !important; }
.rd-acol .np-author-box__bio { color: var(--rd-ink-2); }
.rd-acol .np-gallery { margin: 30px 0; }

/* Previous / next */
.rd-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.rd-prevnext__item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--rd-r-lg); background: var(--rd-surface); box-shadow: var(--rd-shadow); color: var(--rd-ink) !important; transition: box-shadow .18s, transform .18s; }
.rd-prevnext__item:hover { box-shadow: var(--rd-shadow-hover); transform: translateY(-2px); }
.rd-prevnext__item--next { text-align: right; grid-column: 2; }
.rd-prevnext__dir { color: var(--rd-brand-ink); font: 700 13.5px/1 var(--rd-text); }
.rd-prevnext__title { font: 700 16.5px/1.35 var(--rd-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Related */
.rd-related { padding-block: var(--rd-space); }
.rd-related .np-related { margin: 0; font-family: var(--rd-text); }
.rd-related .np-related__title { font: 800 clamp(24px, 1.1vw + 17px, 32px)/1.15 var(--rd-display) !important; color: var(--rd-ink) !important; margin: 0 0 22px !important; letter-spacing: -.02em; }
.rd-related .np-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rd-gap); }
.rd-related .np-related__card { display: flex; flex-direction: column; gap: 0; overflow: hidden; border-radius: var(--rd-r); background: var(--rd-surface); box-shadow: var(--rd-shadow); color: var(--rd-ink) !important; text-decoration: none; transition: box-shadow .2s, transform .2s var(--rd-ease); }
.rd-related .np-related__card:hover { box-shadow: var(--rd-shadow-hover); transform: translateY(-2px); }
.rd-related .np-related__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; background: var(--rd-surface-2); }
.rd-related .np-related__name { padding: 14px 18px 6px; font: 800 17.5px/1.32 var(--rd-display) !important; color: var(--rd-ink) !important; }
.rd-related .np-related__card:hover .np-related__name { color: var(--rd-brand-ink) !important; }
.rd-related .np-related__date { padding: 0 18px 16px; color: var(--rd-muted); font: 500 14px/1.2 var(--rd-text); }

/* Comments as modern cards */
.rd-comments { margin: 36px 0 0; font-family: var(--rd-text); }
.rd-comments .comments-title .title, .rd-comments .comment-reply-title { font: 800 24px/1.2 var(--rd-display) !important; color: var(--rd-ink); margin: 0 0 16px !important; }
.rd-comments ul { list-style: none; margin: 0; padding: 0; }
.rd-comments li { list-style: none; }
.rd-comments #comment-list > li.tj-comment:has(> .comment-content) { margin-bottom: 12px; }
.rd-comments .comment-content { display: flex; gap: 14px; padding: 18px; border-radius: var(--rd-r-lg); background: var(--rd-surface); box-shadow: var(--rd-shadow); }
.rd-comments .children { margin: 0 0 12px 30px !important; padding-left: 14px !important; border-left: 2px solid var(--rd-line); }
.rd-comments .children .comment-content { margin-bottom: 10px; background: var(--rd-surface-2); box-shadow: none; }
.rd-comments .comment-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.rd-comments .comments-header { flex: 1 1 auto; min-width: 0; }
.rd-comments .avatar-name .title { font: 700 16px/1.3 var(--rd-text) !important; color: var(--rd-ink); margin: 0 !important; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-comments .np-comment-badge { padding: 2px 8px; border-radius: 999px; background: var(--rd-brand-tint); color: var(--rd-brand-ink); font-size: 12px; font-weight: 700; }
.rd-comments .comment-text { display: flex; align-items: center; gap: 12px; margin: 2px 0 6px; color: var(--rd-muted); font-size: 13.5px; }
.rd-comments .comment-text .reply { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--rd-surface-2); color: var(--rd-brand-ink); font: 700 13.5px/1 var(--rd-text); cursor: pointer; }
.rd-comments .comment-text .reply:hover { background: var(--rd-brand-tint); }
.rd-comments .desc p { color: var(--rd-ink-2); font-size: 16.5px; line-height: 1.6; overflow-wrap: anywhere; }
.rd-comments .tj-comments__container { margin-top: 24px; padding: 24px; border-radius: var(--rd-r-lg); background: var(--rd-surface); box-shadow: var(--rd-shadow); }
.rd-comments .row { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.rd-comments .row > * { width: 100%; padding: 0; }
.rd-comments .comment-avatars { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-comments .comment-guest { width: 44px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; opacity: .65; transition: opacity .18s, border-color .18s; }
.rd-comments .comment-guest img { width: 100%; height: 100%; border-radius: 50%; }
.rd-comments .comment-guest.active { border-color: var(--rd-brand); opacity: 1; }
.rd-comments .form-input input, .rd-comments .form-input textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--rd-line); border-radius: var(--rd-r); background: var(--rd-surface-2);
  color: var(--rd-ink); font: 400 16.5px/1.5 var(--rd-text); outline: none;
}
.rd-comments .form-input input { height: 50px; }
.rd-comments .form-input textarea { min-height: 130px; resize: vertical; }
.rd-comments .form-input :is(input, textarea):focus { border-color: var(--rd-brand); background: var(--rd-surface); box-shadow: 0 0 0 4px var(--rd-brand-tint); }
.rd-comments .tj-primary-btn { display: inline-flex; align-items: center; height: 50px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--rd-brand); color: var(--rd-on-brand); font: 700 16px/1 var(--rd-text); cursor: pointer; }
.rd-comments .tj-primary-btn:hover { background: var(--rd-brand-ink); }
.rd-comments .tj-primary-btn .btn-icon { display: none; }
.rd-comments .commentReplyBox { position: relative; padding: 12px 14px; border-left: 3px solid var(--rd-brand); background: var(--rd-surface-2); border-radius: var(--rd-r-sm); font-size: 15px; }
.rd-comments #commentReplyClear { float: right; min-height: 32px; border: 0; background: transparent; color: var(--rd-brand-ink); cursor: pointer; font-weight: 700; }
.rd-comments .np-comment-msg { color: var(--rd-brand-ink); font-weight: 600; }
.rd-comments .np-hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.rd-footer { background: var(--rd-foot); color: var(--rd-foot-muted); font: 400 15.5px/1.6 var(--rd-text); padding-top: clamp(44px, 6vw, 72px); border-radius: var(--rd-r-lg) var(--rd-r-lg) 0 0; }
.rd-footer a { color: var(--rd-foot-ink) !important; text-decoration: none; transition: color .18s; }
.rd-footer a:hover { color: #ffb19e !important; }
.rd-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 44px; border-bottom: 1px solid var(--rd-foot-line); }
.rd-footer__logo { display: inline-block; line-height: 0; }
.rd-footer__logo img { height: 46px; width: auto; max-width: none; display: block; filter: none !important; }
.rd-footer__tagline { margin: 18px 0 8px; color: var(--rd-foot-ink); font: 700 17px/1.5 var(--rd-display); max-width: 34ch; }
.rd-footer__desc { margin: 0 0 14px; color: var(--rd-foot-muted); }
.rd-footer__title { margin: 0 0 12px !important; padding: 0; color: #fff !important; font: 800 16px/1.2 var(--rd-display) !important; }
.rd-footer__title--gap { margin-top: 26px !important; }
.rd-footer__list { list-style: none; margin: 0; padding: 0; }
.rd-footer__list li { list-style: none; margin: 0; }
.rd-footer__list a, .rd-footer__list span { display: inline-flex; align-items: center; min-height: 40px; }
.rd-footer__list li.np-footer-sub { padding-left: 14px; }
.rd-footer .rd-social { margin-left: -8px; }
.rd-footer .rd-social a { width: 44px; height: 44px; color: var(--rd-foot-muted) !important; }
.rd-footer .rd-social a:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.rd-footer .np-newsletter { margin: 0; padding: 22px; border-radius: var(--rd-r-lg); background: rgba(255, 255, 255, .05); font-family: var(--rd-text); }
.rd-footer .np-newsletter__title { display: block; margin: 0 0 8px; color: var(--rd-foot-ink); font: 800 20px/1.25 var(--rd-display); }
.rd-footer .np-newsletter__text { color: var(--rd-foot-muted); opacity: 1; font-size: 15px; margin: 0 0 14px; }
.rd-footer .np-newsletter__row { display: flex; gap: 8px; flex-wrap: wrap; }
.rd-footer .np-newsletter input[type=email] { flex: 1 1 180px; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--rd-foot-line); border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--rd-foot-ink); font: 400 16px/1 var(--rd-text); }
.rd-footer .np-newsletter input[type=email]::placeholder { color: var(--rd-foot-muted); }
.rd-footer .np-newsletter button { height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--rd-warm); color: #2a0c03; font: 700 15.5px/1 var(--rd-text); cursor: pointer; }
.rd-footer .np-newsletter button:hover { background: #ff8a6e; }
.rd-footer .np-newsletter__msg { color: #ffb19e; }
.rd-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 20px 26px; font-size: 14.5px; color: var(--rd-foot-muted); }
.rd-footer__bottom p { margin: 0; }
.rd-footer__bottom a { display: inline-flex; align-items: center; min-height: 36px; }
.rd-footer .np-credit, .rd-footer .np-legal-links { color: var(--rd-foot-muted); }

/* ---------- Sticky bar (newsplus) ---------- */
html.rd-full .np-sticky { background: color-mix(in srgb, var(--rd-surface) 94%, transparent); border-bottom: 1px solid var(--rd-line); backdrop-filter: saturate(1.4) blur(8px); color: var(--rd-ink); font-family: var(--rd-text); }
html.rd-full .np-sticky__logo img { height: 30px; width: auto; }
html.rd-full .np-sticky__nav a { color: var(--rd-ink) !important; font: 600 15px/1 var(--rd-text); }
html.rd-full .np-sticky__nav a::before { display: none; }
html.rd-full .np-sticky__nav a:hover { color: var(--rd-brand-ink) !important; }
html.rd-full .np-sticky .np-theme-toggle { color: var(--rd-ink); }
html.rd-full .np-progress { background: var(--rd-warm); }
html.rd-full[data-theme=dark] .np-sticky__logo img { filter: invert(1) hue-rotate(180deg) !important; }

/* ---------- Old-theme pages: new header/footer sit on top of the old content ---------- */
html:not(.rd-full) .rd-head, html:not(.rd-full) .rd-util, html:not(.rd-full) .rd-footer, html:not(.rd-full) .rd-drawer { font-size: 16px; line-height: 1.5; }
html:not(.rd-full) .rd-head *, html:not(.rd-full) .rd-util *, html:not(.rd-full) .rd-footer *, html:not(.rd-full) .rd-drawer * { box-sizing: border-box; }
html:not(.rd-full) .rd-footer p, html:not(.rd-full) .rd-util p { margin: 0; }
html:not(.rd-full) .rd-footer__desc, html:not(.rd-full) .rd-footer__tagline { margin-bottom: 12px; }
html:not(.rd-full) .rd-footer { margin-top: 40px; }
html:not(.rd-full) { --tj-ff-body: var(--rd-text); --tj-ff-heading: var(--rd-display); --tj-color-theme-bg: var(--rd-surface-2); }
html:not(.rd-full) body { font-family: var(--rd-text); }
html:not(.rd-full) .tj-page-header { margin-top: 0; }
html:not(.rd-full) .rd-head input { margin: 0; }
html:not(.rd-full) .rd-nav__list a { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .rd-split { grid-template-columns: minmax(0, 1fr) 300px; }
  .rd-alayout { grid-template-columns: minmax(0, 1fr) 280px; }
  .rd-opinion__track, .rd-portraits, .rd-picks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .rd-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .rd-tile--lead { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .rd-tile--wide { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 8; }
  .rd-tile--sm:nth-of-type(3), .rd-tile--sm:nth-of-type(4) { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
  .rd-bento__row { flex-wrap: wrap; }
  .rd-bbox { flex: 1 1 300px; }
  .rd-split, .rd-alayout { grid-template-columns: 1fr; }
  .rd-aside__sticky { position: static; }
  .rd-panel { grid-template-columns: 1fr; }
  .rd-catlead { grid-template-columns: 1fr; }
  .rd-footer__top { grid-template-columns: 1fr 1fr; }
  .rd-related .np-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-lit__list { grid-template-columns: 1fr; }
  .rd-acol { margin-inline: auto; }
}
@media (max-width: 699px) {
  html.rd-full body { font-size: 16.5px; }
  .rd-bento { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
  .rd-tile--lead { aspect-ratio: auto; min-height: 460px; }
  .rd-tile--lead .rd-tile__title { font-size: clamp(25px, 6.6vw, 30px) !important; }
  .rd-tile__dek { font-size: 16px; }
  .rd-tile--wide { aspect-ratio: auto; min-height: 270px; }
  .rd-tile--wide .rd-tile__title { font-size: 20px !important; }
  /* small tiles become horizontal white cards */
  .rd-tile--sm { aspect-ratio: auto !important; display: flex; align-items: stretch; min-height: 116px; background: var(--rd-surface); border-radius: var(--rd-r); }
  .rd-tile--sm .rd-tile__media { position: relative; inset: auto; z-index: 0; flex: 0 0 36%; }
  .rd-tile--sm .rd-tile__media::after { display: none; }
  .rd-tile--sm .rd-tile__body { position: static; flex: 1 1 auto; min-width: 0; justify-content: center; padding: 12px 14px; color: var(--rd-ink); }
  .rd-tile--sm .rd-tile__title { color: var(--rd-ink) !important; font-size: 16.5px !important; text-shadow: none; }
  .rd-tile--sm .rd-chip { display: none; }
  .rd-tile--sm .rd-meta--light { color: var(--rd-muted); }
  .rd-bento__row { flex-direction: column; gap: 14px; }
  .rd-bbox { flex: none; padding: 20px; }
  .rd-grid--4, .rd-grid--2, .rd-grid--3 { grid-template-columns: 1fr; }
  .rd-card__title { font-size: 19px !important; }
  .rd-card--row .rd-card__title { font-size: 16.5px !important; }
  .rd-card--row .rd-card__media { min-height: 104px; }
  .rd-card--row .rd-card__body { padding: 12px 14px; }
  .rd-card--flat.rd-card--row .rd-card__body { padding: 0 0 0 14px; }
  .rd-split__main .rd-grid--2 .rd-card:nth-child(n+2) { flex-direction: row; }
  .rd-split__main .rd-grid--2 .rd-card:nth-child(n+2) .rd-card__media { flex: 0 0 36%; aspect-ratio: auto; min-height: 112px; }
  .rd-split__main .rd-grid--2 .rd-card:nth-child(n+2) .rd-card__body { padding: 12px 14px; }
  .rd-split__main .rd-grid--2 .rd-card:nth-child(n+2) .rd-card__title { font-size: 16.5px !important; margin-bottom: 8px !important; }
  .rd-split__main .rd-grid--2 .rd-card:nth-child(n+2) .rd-card__excerpt,
  .rd-split__main .rd-grid--2 .rd-card:nth-child(n+2) .rd-chip { display: none; }
  .rd-opinion__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .rd-opinion__track::-webkit-scrollbar { display: none; }
  .rd-op { flex: 0 0 82%; scroll-snap-align: start; }
  .rd-picks__list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rd-picks__item .rd-card__body { padding: 12px 12px 14px; }
  .rd-picks__item .rd-card__title { font-size: 15.5px !important; }
  .rd-picks__item .rd-chip { display: none; }
  .rd-picks__item::before { width: 32px; height: 32px; font-size: 16px; border-radius: 11px; top: 8px; left: 8px; }
  .rd-portraits { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rd-portrait__title { font-size: 16px !important; }
  .rd-portrait .rd-meta span:nth-child(n+2) { display: none; }
  .rd-sechead { margin-bottom: 16px; }
  .rd-sechead__sub { order: 3; width: 100%; font-size: 14.5px; }
  .rd-sechead__more { font-size: 14px; padding: 0 14px; }
  .rd-litcard, .rd-lit__list--one .rd-litcard { grid-template-columns: 96px 1fr; gap: 16px; }
  .rd-litcard__title, .rd-lit__list--one .rd-litcard__title { font-size: 19px !important; }
  .rd-litcard__text { font-size: 16px; -webkit-line-clamp: 5; }
  .rd-cta { flex-direction: column; align-items: flex-start; }
  .rd-prevnext { grid-template-columns: 1fr; }
  .rd-prevnext__item--next { grid-column: auto; }
  .rd-footer__top { grid-template-columns: 1fr; }
  .rd-related .np-related__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rd-related .np-related__name { font-size: 15.5px !important; padding: 12px 12px 4px; }
  .rd-related .np-related__date { padding: 0 12px 12px; }
  .rd-byline { padding: 12px 14px; }
  .rd-byline__facts { width: 100%; margin-left: 0; }
  .rd-byline__facts li { padding: 0 10px; font-size: 13.5px; }
  .rd-hero { padding-inline: 0; }
  .rd-hero__frame { border-radius: 0; box-shadow: none; }
  .rd-prose.np-article-body { font-size: 18px; }
  .rd-comments .children { margin-left: 10px !important; padding-left: 10px !important; }
  .rd-comments .tj-comments__container { padding: 18px 14px; }
  .rd-react__item { min-width: 56px; }
  .rd-catlead__body { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html.rd-full { scroll-behavior: auto; }
  .rd-body *, .rd-body *::before, .rd-body *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .rd-card:hover, .rd-op:hover, .rd-prevnext__item:hover, .rd-related .np-related__card:hover { transform: none; }
  .rd-card:hover .rd-card__media img, .rd-tile:hover .rd-tile__media img, .rd-catlead:hover .rd-catlead__media img { transform: none; }
}
@media print {
  .rd-util, .rd-head__actions, .rd-head__search, .rd-menu-btn, .rd-nav, .rd-aside, .rd-footer, .rd-comments, .rd-sharebar, .np-sticky { display: none !important; }
}

/* Tile title clamps */
.rd-tile--sm .rd-tile__title, .rd-tile--wide .rd-tile__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rd-tile--sm .rd-tile__title { font-size: 16.5px !important; line-height: 1.3; }
.rd-tile--sm .rd-tile__body { padding: 16px 18px; }
.rd-split__main .rd-card__media { aspect-ratio: 16 / 9; }
.rd-card--row .rd-meta { margin-top: 0; }
.rd-card--row .rd-card__body { justify-content: center; }
@media (max-width: 699px) {
  .rd-bbox--trend { display: none; }
  .rd-list .rd-chip { display: none; }
}
/* Article header aligned with the reading column */
.rd-ahead { max-width: 1180px; }
.rd-ahead > * { max-width: 860px; }
.rd-ahead__title { max-width: 860px; }
.rd-catlead__media { aspect-ratio: auto; width: 100%; min-width: 0; height: 100%; min-height: 300px; }
@media (max-width: 999px) { .rd-catlead__media { aspect-ratio: 3 / 2; height: auto; min-height: 0; } }
