/* ReelnReel — publication theme
   Layout pattern: news/marketing publication (sticky masthead, featured hero,
   latest/popular feed, topic rails, sidebar, multi-column footer). */

:root {
  --red: #A30000;
  --red-light: #B52323;
  --red-ink: var(--red);
  --red-dark: #870000;
  --red-soft: #faf0f0;
  --navy: #1d2b3a;
  --navy-2: #26394c;
  --sky: #b8e2f8;
  --blue: #3f8fd2;
  --blue-soft: #eaf5fd;
  --ink: #16202b;
  --text: #2c3844;
  --muted: #647180;
  --line: #e4e8ee;
  --soft: #f5f7fa;
  --bg: #ffffff;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(22, 32, 43, .06), 0 6px 20px rgba(22, 32, 43, .06);
  --radius: 10px;
  --head: "Ubuntu", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1240px;
}
[data-theme="dark"] {
  --red-ink: #e5aaaa;
  --ink: #f1f4f8;
  --text: #cfd7e0;
  --muted: #93a0ae;
  --line: #2a3a4b;
  --soft: #16222e;
  --bg: #0f1923;
  --card: #15212d;
  --red-soft: #2c181a;
  --blue-soft: #14283a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-ink); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.22; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #c9d6e3; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a:hover { color: #fff; }
.topbar-trending { display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; }
.topbar-trending b { background: var(--red); color: #fff; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; }
.topbar-trending a { overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; gap: 18px; flex-shrink: 0; }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.logo { display: block; flex: 0 0 auto; }
.logo img { height: 46px; width: auto; max-width: none; aspect-ratio: 500 / 130; object-fit: contain; }
.logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark { display: block; }
.nav { display: flex; align-items: stretch; height: 100%; margin-left: 0; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; display: flex; }
.nav > ul > li > a {
  display: flex; align-items: center; gap: 4px; padding: 0 9px; white-space: nowrap;
  font: 600 15px var(--head); color: var(--ink); border-bottom: 3px solid transparent;
}
.nav > ul > li > a:hover, .nav > ul > li.active > a { color: var(--red-ink); border-bottom-color: var(--red); }
.nav .caret { width: 10px; height: 10px; opacity: .6; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav > ul > li:nth-last-child(-n+2) > .dropdown { left: auto; right: 0; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14.5px; font-weight: 500; }
.dropdown a:hover { background: var(--soft); }
.dropdown .dd-head { font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 12px 4px; }
.mega { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 0 10px; min-width: 480px; }

.mast-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer; color: var(--ink);
}
.icon-btn:hover { border-color: var(--red); color: var(--red-ink); }
.icon-btn svg { width: 18px; height: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 14.5px var(--head); background: linear-gradient(135deg, var(--red-light), var(--red)); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--red); color: var(--red-ink); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-2); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.menu-toggle { display: none; }

/* search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(13, 22, 31, .72); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px;
}
.search-overlay form { width: 100%; max-width: 720px; background: var(--card); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.search-overlay label { font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.search-field { display: flex; gap: 10px; margin-top: 10px; }
.search-field input {
  flex: 1; min-width: 0; padding: 14px 18px; font-size: 18px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--bg);
}
.search-field input:focus { outline: none; border-color: var(--red); }
.search-pop { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(13,22,31,.6); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--bg); padding: 20px; overflow-y: auto; }
.drawer-panel .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-panel .drawer-head img { height: 36px; }
.drawer-panel details { border-bottom: 1px solid var(--line); }
.drawer-panel summary, .drawer-panel > a { display: block; padding: 13px 4px; font: 600 16px var(--head); color: var(--ink); cursor: pointer; }
.drawer-panel > a { border-bottom: 1px solid var(--line); }
.drawer-panel details a { display: block; padding: 8px 14px; font-size: 15px; }
.drawer-panel .btn { width: 100%; margin-top: 20px; }

/* ---------- Common bits ---------- */
.kicker {
  display: inline-block; font: 700 11.5px var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-ink);
}
.kicker:hover { color: var(--red-dark); }
.pill {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--soft); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; cursor: pointer;
}
.pill:hover, .pill.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.meta .dot::before { content: "•"; margin-right: 12px; opacity: .6; }
.meta img.av { width: 26px; height: 26px; border-radius: 50%; }
.meta a { font-weight: 600; color: var(--ink); }
.meta a:hover { color: var(--red-ink); }
.section { padding-block: 44px; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-head h2 { font-size: 24px; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 10px; height: 22px; background: var(--red); border-radius: 2px; }
.section-head .more { font-weight: 700; font-size: 14px; color: var(--red-ink); white-space: nowrap; }
.breadcrumbs { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; padding-top: 22px; }
.breadcrumbs a:hover { color: var(--red-ink); }
.breadcrumbs span[aria-hidden] { opacity: .5; }
.thumb { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a:hover .thumb img, .card:hover .thumb img { transform: scale(1.04); }
.thumb .badge {
  position: absolute; left: 12px; top: 12px; background: var(--red); color: #fff; font: 700 11px var(--body);
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px;
}
.thumb .play {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--red-ink);
}
.thumb .play svg { width: 14px; height: 14px; margin-left: 2px; }

/* ---------- Hero ---------- */
.hero { padding-block: 30px 10px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.hero-feature, .hero-stage { display: grid; min-width: 0; }
.hero-slide { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .55s ease, visibility .55s; }
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.hero-cover { flex: 1; display: block; min-height: 0; }
.hero-main .thumb { height: 100%; min-height: clamp(280px, 28vw, 400px); aspect-ratio: auto; border-radius: 14px; }
.hero-main .hero-title { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.25; margin: 12px 0 0; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-main > .kicker, .hero-main > .hero-title, .hero-main > .hero-description { flex-shrink: 0; }
.hero-main .hero-description { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; max-width: 72ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-side { display: flex; flex-direction: column; gap: 0; }
.hero-side h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--body); margin-bottom: 8px; }
.side-item { display: grid; grid-template-columns: 1fr 120px; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.side-item:first-of-type { border-top: 0; padding-top: 4px; }
.side-item h3 { font-size: 17px; margin: 4px 0 8px; }
.side-item .thumb { aspect-ratio: 4 / 3; border-radius: 8px; }
.hero-side .side-item { flex: 1; align-content: center; }
.hero-side .side-item h3 { margin-bottom: 0; }

/* ---------- Layout with sidebar ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 92px; }

/* Compact feed toolbar */
.feed-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.feed-toolbar h2 { font-size: 25px; margin: 0; letter-spacing: -.02em; }
.feed-controls { display: flex; align-items: center; gap: 12px; }
.feed-tabs { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 4px; margin: 0; }
.feed-tabs button {
  background: transparent; border: 0; border-radius: 999px; padding: 8px 16px; font: 600 13px var(--body); color: var(--muted); cursor: pointer;
}
.feed-tabs button[aria-selected="true"] { color: var(--red-ink); background: var(--bg); box-shadow: 0 1px 4px rgba(22, 32, 43, .09); }
.feed-category select { max-width: 210px; min-width: 170px; padding: 11px 34px 11px 14px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--bg); font-size: 13px; font-weight: 500; cursor: pointer; }
[data-feed][aria-busy="true"] { opacity: .5; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }

/* list card (feed) */
.list-card { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.list-card:first-child { padding-top: 6px; }
.list-card h3 { font-size: 21px; margin: 6px 0 8px; }
.list-card p { color: var(--muted); font-size: 15px; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* grid card */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card h3 { font-size: 18px; margin: 12px 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .kicker { margin-top: 14px; }
.card-compact h3 { font-size: 16px; }

/* numbered popular */
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ranked li:last-child { border-bottom: 0; }
.ranked li::before { content: counter(rank, decimal-leading-zero); font: 700 22px var(--head); color: var(--red-ink); line-height: 1.1; }
.ranked h4 { font-size: 15.5px; margin: 0 0 4px; }

/* widgets */
.widget { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.widget-title { font: 700 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.widget-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.widget-news {
  background: var(--soft); color: var(--muted); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.widget-news::after { content: none; }
.widget-news h3 { color: var(--ink); font-size: 22px; }
.widget-news p { font-size: 14.5px; }
.news-form { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.news-form input:not([type="checkbox"]) { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.news-form input::placeholder { color: var(--muted); }
.news-form small { color: var(--muted); font-size: 12px; }
.news-form small a { text-decoration: underline; }
.news-form .ok { color: #9be7b6; font-weight: 600; font-size: 14px; }
.webinar { display: grid; gap: 12px; }
.webinar .date { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--blue); }
.webinar h4 { font-size: 17px; margin: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { font-size: 13px; padding: 5px 11px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); }
.tag-cloud a:hover { background: var(--red-soft); border-color: var(--red); }
.ad-slot {
  border: 1px dashed var(--line); border-radius: 12px; display: grid; place-items: center; text-align: center;
  min-height: 250px; color: var(--muted); font-size: 12px; background: repeating-linear-gradient(45deg, var(--soft), var(--soft) 10px, var(--bg) 10px, var(--bg) 20px);
}
.ad-slot b { display: block; font: 700 15px var(--head); color: var(--ink); margin-bottom: 4px; }

/* topic rails (homepage) */
.topic-rails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.rail h3.rail-title { font-size: 18px; padding-bottom: 8px; border-bottom: 3px solid var(--red); display: flex; justify-content: space-between; align-items: baseline; }
.rail h3.rail-title a.more { font: 700 13px var(--body); color: var(--red-ink); }
.rail .card h3 { font-size: 17px; }
.rail-list { list-style: none; margin: 14px 0 0; padding: 0; }
.rail-list li { padding: 11px 0; border-top: 1px solid var(--line); font: 600 15px/1.35 var(--head); color: var(--ink); }

/* cta band */
.cta-band { background: var(--red); color: #fff; border-radius: 16px; padding: 34px 38px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #fff; }
.cta-band .btn { background: #fff; color: var(--red); }
.cta-band .btn:hover { background: #fff1f1; color: var(--red-dark); }
.cta-band::after { content: none; }

/* video strip */
.video-strip { background: var(--soft); color: var(--text); }
.video-strip .section-head { border-color: var(--line); }
.video-strip .section-head h2 { color: var(--ink); }
.video-strip .card h3 { color: var(--ink); }
.video-strip .card p, .video-strip .meta { color: var(--muted); }
.video-strip .meta a { color: var(--ink); }

/* ---------- Archive header (category/tag/author/search) ---------- */
.archive-head { background: var(--soft); border-bottom: 1px solid var(--line); padding-bottom: 34px; }
.archive-head h1 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 10px; }
.archive-head .lede { font-size: 17px; color: var(--muted); max-width: 72ch; }
.archive-head .chips { margin: 18px 0 0; }
.archive-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.archive-stats b { color: var(--ink); font-family: var(--head); font-size: 18px; margin-right: 4px; }
.tag-hash { color: var(--red-ink); }
.featured-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; margin-bottom: 36px; align-items: stretch; }
.featured-row > .card { display: flex; flex-direction: column; min-width: 0; }
.featured-row > .card > a:first-child { position: relative; display: block; flex: 1; min-height: 240px; }
.featured-row > .card .thumb { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.featured-row > .card > .kicker { align-self: flex-start; }
.featured-row > .card h3 { font-size: 26px; flex-shrink: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured-row > .card > p { color: var(--muted); font-size: 15px; margin-bottom: 0; flex-shrink: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-row .stack { display: grid; gap: 20px; align-content: start; grid-auto-rows: max-content; }
.featured-row .stack .list-card { grid-template-columns: 150px 1fr; padding: 0; border: 0; gap: 16px; }
.featured-row .stack .list-card h3 { font-size: 17px; }
.featured-row .stack .list-card p { display: none; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }
.pagination a:hover { border-color: var(--red); }

/* author header */
.author-head { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center; }
.author-head img { width: 140px; height: 140px; border-radius: 50%; border: 5px solid var(--bg); box-shadow: var(--shadow); }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); }
.socials a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.socials svg { width: 16px; height: 16px; }

/* ---------- Single article ---------- */
.article-head { max-width: 860px; }
.article-head h1 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.015em; margin: 14px 0 16px; }
.article-head .dek { font-size: 19px; color: var(--muted); line-height: 1.55; }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-block: 1px solid var(--line); margin: 22px 0 26px; }
.byline .who { display: flex; align-items: center; gap: 12px; }
.byline .who img { width: 48px; height: 48px; border-radius: 50%; }
.byline .who b { display: block; font-family: var(--head); color: var(--ink); }
.byline .who small { color: var(--muted); font-size: 13px; }
.share { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.share button, .share a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.share button:hover, .share a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.share svg { width: 15px; height: 15px; }
.article-hero { border-radius: 14px; margin-bottom: 8px; aspect-ratio: 16/8; }
.caption { font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.article-layout { display: grid; grid-template-columns: 64px minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.share-rail { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.share-rail span { font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.prose { font-size: 18px; line-height: 1.75; color: var(--text); max-width: 740px; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .6em; scroll-margin-top: 96px; }
.prose h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.prose a { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red-ink); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--red); font: 500 22px/1.5 var(--head); color: var(--ink); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--soft); font-family: var(--head); color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 10px; }
.takeaways { background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); border-radius: 12px; padding: 22px 26px; margin: 0 0 1.8em; }
.takeaways h2 { font-size: 16px !important; margin: 0 0 10px !important; text-transform: uppercase; letter-spacing: .08em; font-family: var(--body) !important; }
.takeaways ul { margin: 0; font-size: 16.5px; }
.callout { background: var(--red-soft); border-radius: 12px; padding: 18px 22px; font-size: 16px; margin: 1.6em 0; }
.callout b { color: var(--red-ink); }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 8px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); line-height: 1.4; }
.toc a::before { content: counter(toc) "."; color: var(--muted); font-weight: 600; }
.toc a.is-current { color: var(--red-ink); font-weight: 600; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 34px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.article-tags b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; color: var(--ink); }
.title-art { background: #fff; aspect-ratio: 16 / 9 !important; }
.title-art img { object-fit: contain !important; animation: none !important; transform: none !important; scale: 1 !important; translate: none !important; }
.hero-main .thumb.title-art { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.hero-cover { flex: none; }
.featured-cover-grid { margin-bottom: 36px; }
.featured-cover-grid .card h3 { font-size: 21px; }
.side-item .thumb.title-art { aspect-ratio: 16 / 9; }
.is-article .article-head { max-width: 1040px; margin: 0 auto; }
.article-title-cover { display: block; aspect-ratio: 16 / 9; max-width: 1040px; margin: 24px auto 0; overflow: hidden; box-shadow: 0 0 0 1px var(--line); border-radius: 14px; background: #fff; }
.article-cover-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.article-head .article-full-title { max-width: 780px; margin: 26px auto 0; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.25; text-align: center; text-wrap: balance; }
.is-article .byline { max-width: 1040px; justify-content: center; border: 0; margin: 14px auto 34px; padding: 12px 0; text-align: center; }
.is-article .byline .who > div { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.is-article .article-layout { display: block; max-width: 780px; margin: 0 auto; }
.is-article .prose { max-width: none; }
.article-summary { border: 1px solid var(--line); border-radius: 18px; background: var(--soft); padding: 24px 28px; margin-bottom: 24px; }
.article-summary p { margin: 12px 0 0; font-size: 18px; line-height: 1.75; }
.article-contents { margin-bottom: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.article-contents summary { cursor: pointer; padding: 18px 22px; font: 600 14px var(--body); color: var(--ink); }
.article-contents summary span:first-child { text-transform: uppercase; letter-spacing: .06em; margin-right: 16px; }
.article-contents summary span + span { color: var(--muted); font-size: 12px; }
.article-contents .toc { padding: 0 22px 18px; }
.article-share { flex-wrap: wrap; margin: 28px 0; padding-block: 18px; border-block: 1px solid var(--line); }
.article-share > span { margin-right: auto; }
.author-box { display: block; background: var(--soft); border-radius: 14px; padding: 24px; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; }
.author-box h3 { font-size: 20px; margin: 2px 0 4px; }
.author-box .role { font-size: 13.5px; color: var(--red-ink); font-weight: 600; margin-bottom: 8px; }
.author-box p { font-size: 15px; margin-bottom: 8px; }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--red); width: 0; z-index: 60; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; background: var(--card); }
.faq summary { cursor: pointer; padding: 14px 0; font: 600 17px var(--head); color: var(--ink); }
.faq details p { font-size: 16px; }

/* ---------- Search page ---------- */
.search-bar-lg { display: flex; gap: 10px; margin-top: 18px; max-width: 760px; }
.search-bar-lg input { flex: 1; min-width: 0; padding: 15px 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); font-size: 17px; }
.search-bar-lg input:focus { outline: none; border-color: var(--red); }
.search-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters { position: sticky; top: 92px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.filters legend { font: 700 12px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 10px; }
.filters label { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; cursor: pointer; }
.filters input[type=radio], .filters input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; }
.filters .count { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--soft); padding: 1px 8px; border-radius: 999px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.results-bar select { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
mark { background: #ffe58a; color: inherit; padding: 0 2px; border-radius: 2px; }
[data-theme="dark"] mark { background: #7a5d00; }
.empty { text-align: center; padding: 60px 20px; }
.empty svg { width: 70px; height: 70px; color: var(--red-ink); margin: 0 auto 12px; }

/* ---------- Static pages ---------- */
.page-hero { background: var(--navy); color: #cfdbe7; padding-block: 64px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); max-width: 18ch; }
.page-hero .lede { font-size: 19px; max-width: 60ch; }
.page-hero .breadcrumbs { padding-top: 0; margin-bottom: 18px; color: #9fb2c4; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: 50%; width: 380px; height: 380px; transform: translateY(-50%) rotate(20deg);
  background: linear-gradient(135deg, var(--sky), var(--blue)); border-radius: 90px 40px 90px 40px; opacity: .16;
}
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.stat b { display: block; font: 700 34px var(--head); color: var(--red-ink); }
.stat span { font-size: 14px; color: var(--muted); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-ink); margin-bottom: 14px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
.feature ul { padding-left: 1.1em; margin: 12px 0 0; font-size: 14.5px; color: var(--text); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form textarea { min-height: 140px; resize: vertical; }
.form .note { font-size: 13px; color: var(--muted); }
.form-ok { background: #e6f7ec; color: #17693a; border-radius: 10px; padding: 14px 16px; font-weight: 600; }
.legal { max-width: 820px; }
.page-hero h1 { max-width: 1000px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.page-actions .btn-ghost { color: #fff; border-color: #62748a; }
.feature ul, .feature ol { padding-left: 1.2em; line-height: 1.8; }
a.feature { display: block; transition: border-color .2s ease; }
a.feature:hover { border-color: var(--red); }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.service-sidebar { position: sticky; top: 110px; }
.service-sidebar h2 { font-size: 24px; }
.service-links { list-style: none; padding: 0; margin: 0; }
.service-links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.prose { overflow-wrap: anywhere; }
.prose img { height: auto; max-width: 100%; border-radius: 10px; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 10px; }
.prose .table-wrap { max-width: 100%; }
.prose :is(h2,h3,h4,h5,h6) a { background: none; text-decoration: none; }
.prose table { min-width: 480px; }
.toc ol { max-height: 540px; overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 900px) {
  .service-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .service-sidebar { position: static; }
}
.team-card { text-align: center; }
.team-card img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 12px; }
.team-card h3 { font-size: 18px; margin-bottom: 2px; }
.team-card span { font-size: 14px; color: var(--muted); }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.price.hot { border: 2px solid var(--red); position: relative; }
.price.hot::before { content: "Most popular"; position: absolute; top: -12px; left: 24px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price .amt { font: 700 34px var(--head); color: var(--ink); }
.price .amt small { font-size: 14px; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 6px 0 16px; font-size: 14.5px; flex: 1; }
.price li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid var(--line); }
.price li::before { content: "✓"; position: absolute; left: 2px; color: var(--red-ink); font-weight: 700; }
.logos-row { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; opacity: .75; font: 700 20px var(--head); color: var(--muted); }
.notfound { text-align: center; padding-block: 90px; }
.notfound .code { font: 700 clamp(90px, 18vw, 180px)/1 var(--head); color: var(--red-ink); letter-spacing: -.04em; }

/* ---------- Footer ---------- */
.footer-news { background: var(--red); color: #fff; border: 0; }
.footer-news .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding-block: 36px; }
.footer-news h2 { color: #fff; font-size: 26px; margin: 0 0 4px; }
.footer-news p { margin: 0; color: #fff; }
.footer-news form { display: flex; gap: 10px; }
.footer-news input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 0; color: var(--ink); background: #fff; }
.footer-news .btn { background: #1e2c3e; color: #fff; }
.footer-news .btn:hover { background: #111c2a; }
.site-footer { background: var(--soft); color: var(--muted); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: var(--footer-layout, 1.5fr repeat(4, 1fr)); gap: 32px; padding-block: 48px 32px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.site-footer h3 { color: var(--ink); font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a:hover { color: var(--red-ink); }
.site-footer .socials a { background: var(--bg); border-color: var(--line); color: var(--text); }
.site-footer .socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 18px; font-size: 13px; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }
.cookie { position: fixed; left: 18px; bottom: 18px; z-index: 70; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); font-size: 14px; }
.cookie p { margin-bottom: 10px; }
.cookie .row { display: flex; gap: 8px; }
.cookie .btn { padding: 8px 16px; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav > ul > li > a { padding: 0 9px; font-size: 14.5px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .share-rail { display: none; }
}
@media (max-width: 1024px) {
  .nav, .mast-actions .btn-sub { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main .thumb { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .hero-cover { flex: none; }
  .menu-toggle { display: grid; }
  .with-sidebar, .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .article-layout .sidebar { order: 2; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-rails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: flex; flex-wrap: wrap; gap: 0 30px; }
}
@media (max-width: 820px) {
  .hero-grid, .featured-row, .two-col, .footer-news .wrap { grid-template-columns: 1fr; }
  .featured-row > .card > a:first-child { position: static; flex: none; min-height: 0; }
  .featured-row > .card .thumb { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; }
  .hero-main .thumb { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .hero-cover { flex: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr; }
  .topbar-links { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .article-title-cover { border-radius: 10px; }
  .article-summary { padding: 20px; }
  .masthead .wrap { height: 62px; gap: 12px; }
  .logo img { height: 36px; }
  .grid-3, .grid-2, .grid-4, .topic-rails, .form-row { grid-template-columns: 1fr; }
  .list-card { grid-template-columns: 118px minmax(0, 1fr); gap: 14px; }
  .list-card h3 { font-size: 16.5px; }
  .list-card p { display: none; }
  .featured-row .stack .list-card { grid-template-columns: 118px minmax(0, 1fr); gap: 14px; }
  .side-item { grid-template-columns: 1fr 96px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .author-head { grid-template-columns: 1fr; }
  .author-head img { width: 104px; height: 104px; }
  .author-box { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 24px; }
  .footer-news form, .search-bar-lg, .search-field { flex-direction: column; }
  .feed-toolbar { gap: 12px; }
  .feed-toolbar h2 { font-size: 23px; }
  .feed-controls { width: 100%; justify-content: space-between; gap: 8px; }
  .feed-tabs button { padding: 8px 12px; }
  .feed-category { min-width: 0; }
  .feed-category select { width: 100%; min-width: 0; max-width: 190px; font-size: 12px; }
  .cta-band { padding: 26px 22px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .article-hero { aspect-ratio: 16/10; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* =====================================================================
   MOTION & POLISH  (v2)
   Same layout, colours and fonts — smoother, more modern feel.
   Everything below is additive; remove this block to go back.
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(22, 32, 43, .05), 0 8px 24px -6px rgba(22, 32, 43, .10);
  --shadow-lift: 0 2px 6px rgba(22, 32, 43, .06), 0 22px 44px -14px rgba(22, 32, 43, .28);
  --glow-red: 0 10px 26px -8px rgba(163, 0, 0, .22);
}
[data-theme="dark"] { --shadow-lift: 0 2px 6px rgba(0,0,0,.35), 0 22px 44px -14px rgba(0,0,0,.6); }

/* smooth page-to-page fade (Chrome/Edge/Safari on a real web host) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: rrVtOut .28s var(--ease-io) both; }
::view-transition-new(root) { animation: rrVtIn .42s var(--ease-out) both; }
@keyframes rrVtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes rrVtIn { from { opacity: 0; transform: translateY(14px); } }
/* theme switch uses its own circular wipe */
.rr-theme-vt::view-transition-old(root), .rr-theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

::selection { background: var(--red); color: #fff; }
body { transition: background-color .45s var(--ease-io), color .45s var(--ease-io); }
a { transition: color .2s ease; }

/* ---------- Reading progress ---------- */
.progress { height: 3px; background: linear-gradient(90deg, var(--red), var(--red-light) 55%, var(--blue)); box-shadow: 0 0 14px rgba(163, 0, 0, .28); border-radius: 0 3px 3px 0; }

/* ---------- Top bar: trending ticker ---------- */
.topbar-trending { flex: 1; min-width: 0; }
.topbar-trending b { flex-shrink: 0; position: relative; }
.topbar-trending b::after { content: ""; position: absolute; inset: -3px; border-radius: 5px; border: 1.5px solid var(--red); animation: rrPing 2s var(--ease-out) infinite; }
@keyframes rrPing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.7); } }
.rr-ticker { position: relative; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.rr-ticker-track { display: inline-flex; gap: 10px; width: max-content; animation: rrTicker var(--dur, 40s) linear infinite; }
.rr-ticker-track > * { flex-shrink: 0; }
.rr-ticker:hover .rr-ticker-track, .rr-ticker:focus-within .rr-ticker-track { animation-play-state: paused; }
.rr-ticker-track a { overflow: visible !important; }
@keyframes rrTicker { to { transform: translateX(-50%); } }

/* ---------- Masthead ---------- */
.masthead { transition: transform .45s var(--ease-out), box-shadow .35s ease, background-color .35s ease; will-change: transform; }
.masthead.is-scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 10px 30px -18px rgba(22, 32, 43, .45); border-bottom-color: transparent; }
.masthead.is-hidden { transform: translateY(-100%); }
.masthead .wrap { transition: height .35s var(--ease-out); }
.masthead.is-scrolled .wrap { height: 64px; }
.logo img { transition: transform .5s var(--ease-spring), height .35s var(--ease-out); }
.masthead.is-scrolled .logo img { height: 40px; }
.logo:hover img { transform: rotate(-2deg) scale(1.04); }

/* nav: sliding underline instead of a static border */
.nav > ul > li > a { position: relative; border-bottom-color: transparent !important; transition: color .2s ease; }
.nav > ul > li > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav > ul > li > a:hover::after, .nav > ul > li:focus-within > a::after, .nav > ul > li.active > a::after { transform: scaleX(1); transform-origin: left; }
.nav .caret { transition: transform .35s var(--ease-out); }
.nav li:hover > a .caret, .nav li:focus-within > a .caret { transform: rotate(180deg); }

/* dropdown: spring in + staggered items */
.dropdown { transform: translateY(12px) scale(.98); transform-origin: top left; transition: opacity .22s ease, transform .4s var(--ease-out), visibility .22s; box-shadow: var(--shadow-lift); }
.nav li:hover > .dropdown li, .nav li:focus-within > .dropdown li { animation: rrDd .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 32ms + 40ms); }
@keyframes rrDd { from { opacity: 0; transform: translateX(-8px); } }
.dropdown a { position: relative; transition: background .2s ease, padding .3s var(--ease-out), color .2s ease; }
.dropdown a:hover { padding-left: 18px; color: var(--red-ink); }
.dropdown a::before { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--red); transform: translateY(-50%) scale(0); transition: transform .3s var(--ease-spring); }
.dropdown a:hover::before { transform: translateY(-50%) scale(1); }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background .25s ease, color .25s ease, transform .35s var(--ease-spring), box-shadow .35s ease, border-color .25s ease; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); z-index: -1; transition: left .7s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow-red); }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0) scale(.97); }
.btn-ghost:hover, .btn-navy:hover { box-shadow: 0 10px 24px -10px rgba(29, 43, 58, .5); }
.btn .rr-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: rrRipple .65s var(--ease-out) forwards; pointer-events: none; z-index: -1; }
@keyframes rrRipple { to { transform: scale(2.6); opacity: 0; } }
.icon-btn { transition: transform .4s var(--ease-spring), border-color .2s, color .2s, background .2s, box-shadow .3s; }
.icon-btn:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 18px -10px rgba(163, 0, 0, .24); }
[data-theme-toggle]:hover svg { animation: rrWiggle .6s var(--ease-out); }
@keyframes rrWiggle { 30% { transform: rotate(-24deg); } 60% { transform: rotate(14deg); } }

.pill { transition: background .25s ease, color .25s ease, border-color .25s ease, transform .35s var(--ease-spring), box-shadow .3s ease; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(163, 0, 0, .26); }
.pill.is-active { box-shadow: var(--glow-red); }
.kicker { position: relative; transition: color .2s ease, letter-spacing .35s var(--ease-out); }
.kicker:hover { letter-spacing: .11em; }

/* ---------- Titles: a simple color change on hover ---------- */
.card h3 a, .list-card h3 a, .side-item h3 a, .hero-main h1 a, .rail .card h3 a, .ranked h4 a, .rail-list a, .featured-row h3 a {
  background: none;
  text-decoration: none;
  transition: color .2s ease;
}
.card:hover h3 a, .list-card:hover h3 a, .side-item:hover h3 a, .hero-main:hover h1 a, .ranked li:hover h4 a, .rail-list a:hover, .featured-row h3 a:hover,
.card h3 a:focus-visible, .list-card h3 a:focus-visible { color: var(--red-ink); }

/* Linked headings keep the same clean treatment inside imported page content. */
.rnr-shell :is(h1,h2,h3,h4,h5,h6) a,
.rnr-shell :is(h1,h2,h3,h4,h5,h6) a:hover,
.rnr-shell :is(h1,h2,h3,h4,h5,h6) a:focus-visible {
  background: none;
  text-decoration: none;
}

/* ---------- Thumbnails ---------- */
.thumb { isolation: isolate; border-radius: var(--radius); }
.thumb::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, var(--soft) 30%, color-mix(in srgb, var(--line) 70%, var(--soft)) 50%, var(--soft) 70%) 0 0 / 300% 100%; animation: rrShimmer 1.4s linear infinite; }
.thumb.is-loaded::before { animation: none; opacity: 0; }
@keyframes rrShimmer { to { background-position: -150% 0; } }
.thumb img { position: relative; z-index: 1; transition: transform .9s var(--ease-out), filter .6s ease, opacity .6s ease; }
.rr-js .thumb img:not([data-loaded]) { opacity: 0; animation: rrFailsafe 0s 3s forwards; }
.thumb img[data-loaded] { opacity: 1; }
a:hover .thumb img, .card:hover .thumb img, .list-card:hover .thumb img { transform: scale(1.07); filter: saturate(1.15) contrast(1.03); }
.thumb::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(13, 22, 31, .35)); opacity: 0; transition: opacity .5s ease; }
a:hover .thumb::after, .card:hover .thumb::after, .list-card:hover .thumb::after { opacity: 1; }
.thumb .badge, .thumb .play { z-index: 3; }
.thumb .badge { transition: transform .45s var(--ease-spring); }
a:hover .thumb .badge, .card:hover .thumb .badge { transform: translateY(-2px) scale(1.05); }
.thumb .play { transition: transform .45s var(--ease-spring), background .3s, color .3s; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
a:hover .thumb .play, .card:hover .thumb .play { transform: scale(1.15); background: var(--red); color: #fff; animation: rrPulse 1.4s ease-out infinite; }
@keyframes rrPulse { 0% { box-shadow: 0 0 0 0 rgba(163, 0, 0, .28); } 100% { box-shadow: 0 0 0 16px rgba(163, 0, 0, 0); } }

/* homepage hero: slow cinematic drift + 3D tilt */
.hero-main .thumb { border-radius: 18px; box-shadow: var(--shadow-lift); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out), box-shadow .5s ease; }
.hero-main .thumb img { animation: rrKen 22s ease-in-out 1.4s infinite alternate; }
@keyframes rrKen { from { scale: 1; translate: 0 0; } to { scale: 1.1; translate: -2% -1.5%; } }
.rr-tilt { transform-style: preserve-3d; }
.article-hero { box-shadow: var(--shadow-lift); }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html .rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0ms); }
  html .rv.rv-left { transform: translateX(-34px); }
  html .rv.rv-scale { transform: scale(.94); }
  html .rv.in { opacity: 1; transform: none; filter: none; }

  /* headline word-by-word mask reveal */
  .rr-js .archive-head h1, .rr-js .page-hero h1 { opacity: 0; animation: rrFailsafe 0s 2.5s forwards; }
  .rr-js .rr-split { opacity: 1 !important; animation: none !important; }
  .rr-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
  .rr-w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform .9s var(--ease-out); transition-delay: calc(var(--wi) * 45ms + var(--wd, 0ms)); }
  .rr-split.in .rr-w > span { transform: none; }
}
@keyframes rrFailsafe { to { opacity: 1; } }

/* section heads: bar grows, rule draws across */
.section-head { position: relative; border-bottom-color: color-mix(in srgb, var(--ink) 12%, transparent); }
.section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ink); transform-origin: left; transition: transform 1.1s var(--ease-io) .1s; }
.section-head h2::before { transition: transform .7s var(--ease-spring) .2s; transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) {
  .section-head.rv::after { transform: scaleX(0); }
  .section-head.rv h2::before { transform: scaleY(0); }
  .section-head.rv.in::after { transform: scaleX(1); }
  .section-head.rv.in h2::before { transform: scaleY(1); }
}
.video-strip .section-head::after { background: #8aa0b6; }
.section-head .more { display: inline-flex; align-items: center; gap: 4px; transition: gap .3s var(--ease-out), color .2s; }
.section-head .more:hover { gap: 10px; }

/* feed tabs: smoother active state */
.feed-tabs button { transition: color .25s ease, border-color .35s var(--ease-out); }
.feed-tabs button:hover { color: var(--ink); }

/* ranked list */
.ranked li { transition: transform .35s var(--ease-out); }
.ranked li:hover { transform: translateX(6px); }
.ranked li::before { transition: transform .45s var(--ease-spring), color .2s; display: inline-block; }
.ranked li:hover::before { transform: scale(1.18) rotate(-6deg); }

/* list cards & side items */
.list-card, .side-item { transition: background .35s ease; border-radius: 12px; }

/* ---------- Cards with surfaces lift ---------- */
.feature, .price, .stat, .widget:not(.widget-news), .faq details, .author-box, .takeaways, .team-card {
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s ease;
}
.feature:hover, .price:hover, .stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.feature .ico { transition: transform .5s var(--ease-spring), background .3s, color .3s; }
.feature:hover .ico { transform: rotate(-8deg) scale(1.1); background: var(--red); color: #fff; }
.price.hot { box-shadow: 0 18px 40px -18px rgba(163, 0, 0, .22); }
.team-card img { transition: transform .6s var(--ease-spring), box-shadow .4s; }
.team-card:hover img { transform: translateY(-6px) scale(1.04); box-shadow: var(--shadow-lift); }
.faq details { transition: box-shadow .3s, border-color .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--red-ink); font: 700 18px/1 var(--body); transition: transform .4s var(--ease-spring), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--red); color: #fff; }
.faq details[open] > *:not(summary) { animation: rrDrop .45s var(--ease-out); }
@keyframes rrDrop { from { opacity: 0; transform: translateY(-6px); } }

/* tag cloud & socials */
.tag-cloud a { transition: transform .35s var(--ease-spring), background .2s, border-color .2s, color .2s; }
.tag-cloud a:hover { transform: translateY(-2px) rotate(-1.5deg); }
.socials a, .share button, .share a { transition: transform .4s var(--ease-spring), background .2s, color .2s, border-color .2s; }
.socials a:hover, .share button:hover, .share a:hover { transform: translateY(-3px) scale(1.08); }

/* ---------- Article page ---------- */
.prose a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .4s var(--ease-out); }
.prose a:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.toc a { position: relative; transition: color .2s, padding .35s var(--ease-out); }
.toc a::after { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--red); transform: scaleY(0); transition: transform .4s var(--ease-out); }
.toc a.is-current { padding-left: 6px; }
.toc a.is-current::after { transform: scaleY(1); }
.toc a:hover { padding-left: 6px; }
.takeaways li { transition: transform .3s var(--ease-out); }
.takeaways li:hover { transform: translateX(4px); }
.prose blockquote { position: relative; }
.prose blockquote::before { content: "“"; position: absolute; left: -6px; top: -26px; font: 700 70px/1 var(--head); color: var(--red-ink); opacity: .18; }
.author-box img { transition: transform .6s var(--ease-spring); }
.author-box:hover img { transform: rotate(-6deg) scale(1.05); }

/* ---------- Bands & heroes: ambient motion ---------- */
.page-hero::after { animation: rrFloat 14s ease-in-out infinite alternate; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 0, 0, .16), transparent 65%); animation: rrDrift 18s ease-in-out infinite alternate; pointer-events: none; }
.page-hero > * { position: relative; z-index: 1; }
@keyframes rrFloat { 0% { transform: translateY(-50%) rotate(20deg); } 100% { transform: translateY(-58%) rotate(38deg) scale(1.08); } }
@keyframes rrDrift { 0% { transform: translate(0, 0); } 100% { transform: translate(120px, -60px) scale(1.2); } }
.archive-head { position: relative; overflow: hidden; }
.archive-head::after { content: none; }
.archive-head > * { position: relative; z-index: 1; }
@keyframes rrSpinSlow { to { transform: rotate(360deg) scale(1.05); } }
.cta-band::after { content: none; }
.cta-band::before { content: none; }
.cta-band > * { position: relative; z-index: 1; }
@keyframes rrRing { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-40px, 30px) scale(1.25); } }
.widget-news::after { content: none; }
@keyframes rrSquare { to { transform: rotate(120deg) scale(1.2); } }
.footer-news { position: relative; overflow: hidden; }
.footer-news::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(116deg, transparent 0 60px, rgba(255,255,255,.045) 60px 120px); }
.footer-news .wrap { position: relative; }
@keyframes rrStripes { to { background-position: -400px 0; } }
.footer-news input, .news-form input, .form input, .form select, .form textarea, .search-field input, .search-bar-lg input { transition: border-color .25s ease, box-shadow .3s ease, background .3s; }
.footer-news input:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.form input:focus, .form select:focus, .form textarea:focus, .search-field input:focus, .search-bar-lg input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.news-form input:focus { outline: none; border-color: var(--red); background: var(--bg); }
.form-ok, .news-form .ok { animation: rrPop .6s var(--ease-spring); }
@keyframes rrPop { from { opacity: 0; transform: scale(.9) translateY(6px); } }
.notfound .code { background: linear-gradient(90deg, var(--red), var(--red-light), var(--blue), var(--red)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rrGrad 6s linear infinite; }
@keyframes rrGrad { to { background-position: -300% 0; } }

/* footer links */
.site-footer ul a { display: inline-block; transition: transform .3s var(--ease-out), color .2s; }
.site-footer ul a:hover { transform: translateX(4px); }

/* ---------- Overlays ---------- */
.search-overlay:not([hidden]) { animation: rrFade .3s ease; }
.search-overlay:not([hidden]) form { animation: rrDropIn .55s var(--ease-spring); }
.search-pop .pill { animation: rrDd .5s var(--ease-out) both; }
.search-pop .pill:nth-child(2) { animation-delay: .12s; } .search-pop .pill:nth-child(3) { animation-delay: .16s; } .search-pop .pill:nth-child(4) { animation-delay: .2s; } .search-pop .pill:nth-child(5) { animation-delay: .24s; } .search-pop .pill:nth-child(6) { animation-delay: .28s; }
.drawer:not([hidden]) { animation: rrFade .3s ease; }
.drawer:not([hidden]) .drawer-panel { animation: rrSlideIn .5s var(--ease-out); box-shadow: -20px 0 50px rgba(0, 0, 0, .25); }
.drawer:not([hidden]) .drawer-panel > * { animation: rrDd .5s var(--ease-out) both; }
.drawer-panel details[open] summary { color: var(--red-ink); }
.drawer-panel details[open] a { animation: rrDd .4s var(--ease-out) both; }
@keyframes rrFade { from { opacity: 0; } }
@keyframes rrDropIn { from { opacity: 0; transform: translateY(-24px) scale(.96); } }
@keyframes rrSlideIn { from { transform: translateX(100%); } }
.cookie:not([hidden]) { animation: rrUp .7s var(--ease-spring) 1s both; }
@keyframes rrUp { from { opacity: 0; transform: translateY(40px); } }

/* back-to-top with scroll progress ring */
.to-top { transform: translateY(16px) scale(.8); transition: opacity .3s, transform .45s var(--ease-spring), box-shadow .3s; }
.to-top.show { transform: none; }
.to-top:hover { transform: translateY(-3px); box-shadow: var(--glow-red); }
.to-top::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(var(--red) calc(var(--p, 0) * 1%), color-mix(in srgb, var(--red) 15%, transparent) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); }
.to-top svg { transition: transform .35s var(--ease-out); }
.to-top:hover svg { transform: translateY(-2px); }

/* ---------- Reduced motion: keep everything static ---------- */
@media (prefers-reduced-motion: reduce) {
  .rr-ticker-track { animation: none !important; }
  .hero-main .thumb img { scale: 1 !important; translate: none !important; }
  .thumb img:not([data-loaded]) { opacity: 1; }
  .hero-main .thumb { transform: none !important; }
}
@media (hover: none) {
  .ranked li:hover, .feature:hover, .price:hover, .stat:hover { transform: none; }
}

/* fix: chips row could stretch the feed column and cause sideways scrolling on phones */
.with-sidebar > *, .article-layout > *, .search-layout > * { min-width: 0; }

/* category chips: wrap onto new lines instead of a sideways scrollbar */
.chips { flex-wrap: wrap; overflow: visible; padding-bottom: 0; row-gap: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .chips .pill { animation: rrChip .5s var(--ease-spring) both; }
  .chips .pill:nth-child(2) { animation-delay: .04s; } .chips .pill:nth-child(3) { animation-delay: .08s; }
  .chips .pill:nth-child(4) { animation-delay: .12s; } .chips .pill:nth-child(5) { animation-delay: .16s; }
  .chips .pill:nth-child(6) { animation-delay: .2s; }  .chips .pill:nth-child(7) { animation-delay: .24s; }
  .chips .pill:nth-child(8) { animation-delay: .28s; } .chips .pill:nth-child(n+9) { animation-delay: .32s; }
}
@keyframes rrChip { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@media (max-width: 600px) { .chips { gap: 8px; } .chips .pill { padding: 6px 12px; font-size: 13px; } }

/* ---------- CMS forms (newsletter consent + status messages) ---------- */
.nl-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 2px; cursor: pointer; }
.nl-consent input { margin-top: 2px; accent-color: var(--red); flex-shrink: 0; width: 15px; height: 15px; }
.nl-consent a { text-decoration: underline; }
.widget-news .nl-consent { color: var(--muted); }
.footer-news form { display: block; }
.footer-news .nl-row { display: flex; gap: 10px; }
.footer-news .nl-consent, .footer-news .nl-consent a { color: #fff; }
.footer-news .nl-consent { margin-top: 10px; }
.footer-news .nl-consent input { flex: none; padding: 0; width: 15px; height: 15px; accent-color: var(--red); }
.nl-msg:empty, .form-msg:empty { display: none; }
.nl-msg, .form-msg { margin: 8px 0 0; font-size: 14px; font-weight: 600; animation: rrPop .5s var(--ease-spring, ease); }
.nl-msg.is-ok, .form-msg.is-ok { color: #17693a; } .nl-msg.is-err, .form-msg.is-err { color: var(--red-ink); }
.widget-news .nl-msg.is-ok { color: #17693a; } .widget-news .nl-msg.is-err { color: var(--red-ink); }
.footer-news .nl-msg.is-ok, .footer-news .nl-msg.is-err { color: #fff; }
.page-news .news-form input { background: var(--bg); border-color: var(--line); color: var(--ink); }
button[aria-busy="true"] { opacity: .7; cursor: progress; }
.footer-mail { margin: -6px 0 12px; } .footer-mail a { color: var(--ink); }
.legal h2 { margin-top: 1.4em; }
@media (max-width: 600px) { .footer-news .nl-row { flex-direction: column; } }
.rr-captcha { display: grid; gap: 6px; }
.rr-captcha-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.rr-captcha-row { display: flex; gap: 8px; align-items: center; }
.rr-captcha-code { font: 700 20px/1 var(--head); letter-spacing: .28em; padding: 10px 14px; border-radius: 8px; background: repeating-linear-gradient(135deg, var(--soft) 0 6px, var(--bg) 6px 12px); border: 1px dashed var(--line); color: var(--ink); user-select: none; }
.rr-captcha-refresh { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 18px; color: var(--ink); }
.rr-captcha-refresh:hover { border-color: var(--red); color: var(--red-ink); }
.rr-captcha-row input { flex: 1; min-width: 0; }

/* Quiet surfaces and automatic article continuation. */
.footer-brand .footer-logo-dark { display: none; }
[data-theme="dark"] .footer-brand .footer-logo-light { display: none; }
[data-theme="dark"] .footer-brand .footer-logo-dark { display: block; }
.news-form .nl-consent { color: var(--muted); }
.reader-article + .reader-article { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.reader-continuation { min-height: 1px; text-align: center; }
.site-footer, .footer-news, .reader-continuation { overflow-anchor: none; }

/* ---------- Product collection ---------- */
.product-showcase { background: var(--soft); padding-block: 34px; border-block: 1px solid var(--line); }
.product-showcase .section-head { margin-bottom: 8px; }
.product-intro { color: var(--muted); margin: 0 0 22px; }
.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.product-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); transition: border-color .2s,box-shadow .2s; }
.product-card:hover { color: var(--text); border-color: var(--red-light); box-shadow: var(--shadow); }
.product-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.product-card-top img { width: 72px; height: 72px; object-fit: contain; }
.product-chip { color: var(--muted); background: var(--soft); padding: 5px 10px; border-radius: 999px; font-size: 12px; }
.product-card h3 { font-size: 28px; margin: 5px 0 10px; }
.product-card p { margin: 0 0 18px; max-width: 56ch; }
.product-card ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 24px; gap: 8px 16px; color: var(--muted); font-size: 13px; }
.product-card li::before { content: '✓'; color: var(--red-ink); margin-right: 5px; }
.product-card-link { display: flex; align-items: center; justify-content: space-between; color: var(--red-ink); font: 700 16px var(--head); margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.product-nav { border-bottom: 1px solid var(--line); background: var(--soft); }
.product-nav .wrap { display: flex; gap: 24px; align-items: center; min-height: 76px; padding-block: 12px; }
.product-nav-name { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 18px var(--head); flex-shrink: 0; }
.product-nav-name img { width: 30px; height: 30px; object-fit: contain; }
.product-nav nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.product-provider { background: var(--soft); border-block: 1px solid var(--line); }
.product-provider .wrap { padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--muted); }
.product-provider nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (min-width:1101px) and (max-width:1230px) { .masthead .wrap { gap: 12px; } .nav > ul > li > a { padding-inline: 8px; } .mast-actions { gap: 7px; } }
@media (max-width:1230px) { .mast-actions .btn-sub { display: none; } }
@media (max-width:1100px) { .masthead .nav { display: none; } .masthead .menu-toggle { display: grid; } }
@media (max-width:360px) { .mast-actions { gap: 6px; } }
@media (max-width:600px) { .masthead.is-scrolled .logo img { height: 32px; } }
@media (max-width:760px) { .product-grid { grid-template-columns: 1fr; gap: 16px; } .product-card { padding: 24px; } .product-nav .wrap { flex-wrap: wrap; gap: 12px; } .product-nav .btn { margin-left: auto; } .product-nav nav { order: 3; width: 100%; margin: 0; gap: 20px; flex-wrap: wrap; } .product-provider .wrap { flex-direction: column; align-items: flex-start; } .product-provider nav { gap: 12px 20px; } }
.reader-continuation > button:not([hidden]) { margin-block: 24px; }
.author-box > div { min-width: 0; }
.author-box .more { display: inline-block; margin-top: 4px; }

.author-head-text { grid-template-columns: 1fr; }
