:root {
  color-scheme: dark;
  --bg: #071117;
  --bg-soft: #0a161d;
  --surface: #0d1b23;
  --surface-raised: #12242d;
  --line: #203842;
  --line-strong: #35606c;
  --text: #f7f5ef;
  --muted: #9eb0b6;
  --cyan: #22c5d4;
  --gold: #f3b53f;
  --green: #76c99b;
  --blue: #6594ed;
  --pink: #d7689b;
  --shadow: 0 24px 60px rgba(0, 0, 0, .28);
  --header-height: 68px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 22px); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "DM Sans", Arial, sans-serif;
  letter-spacing: 0;
}
body:has(dialog[open]) { overflow: hidden; }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }
h1, h2, h3, p { overflow-wrap: anywhere; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 10px 14px;
  background: var(--cyan);
  color: #041318;
  font-weight: 700;
}
.skip-link:focus { width: auto; height: auto; overflow: visible; clip-path: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 8px max(20px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(62, 94, 104, .42);
  background: rgba(7, 17, 23, .9);
  backdrop-filter: blur(18px);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { background: rgba(5, 14, 19, .97); box-shadow: 0 10px 32px rgba(0, 0, 0, .2); }
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}
.brand-link img,
.footer-brand img {
  object-fit: contain;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.brand-link img { width: 42px; height: 42px; }
.brand-link span { display: grid; line-height: 1.05; }
.brand-link strong { font-size: 15px; }
.brand-link small {
  margin-top: 4px;
  color: var(--cyan);
  font: 500 9px "DM Mono", monospace;
  text-transform: uppercase;
}
.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}
.main-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--cyan);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="location"] { color: var(--text); }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a[aria-current="location"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.icon-button:hover { border-color: var(--cyan); background: var(--surface-raised); transform: translateY(-1px); }
.icon-button:focus-visible, .button:focus-visible, .filter-button:focus-visible, .text-button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.social-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #a64974;
  border-radius: 7px;
  background: #642944;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.menu-button, .mobile-menu { display: none; }

.opening {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.opening-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 520px;
  background: url("/brand/le-declic-logo.png") right 5vw top 34px / 440px auto no-repeat;
  opacity: .07;
}
.opening::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(7, 17, 23, .62);
}
.opening-shell {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  padding: clamp(44px, 5vw, 68px) 0 14px;
}
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(36px, 8vw, 120px);
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 50px);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font: 500 11px/1.4 "DM Mono", monospace;
  text-transform: uppercase;
}
h1 {
  max-width: 850px;
  margin: 0;
  font: 400 clamp(46px, 6.5vw, 88px)/1.02 "Libre Baskerville", Georgia, serif;
}
h1 em { color: var(--cyan); font-style: normal; }
.masthead-aside > p {
  max-width: 520px;
  margin: 0;
  color: #c9d5d8;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
}
.hero-actions, .network-actions, .spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--cyan); }
.button.primary { border-color: var(--cyan); background: var(--cyan); color: #041419; }
.button.secondary { background: var(--surface-raised); }
.button.quiet { background: rgba(7, 22, 29, .76); }
.button.instagram { border-color: #c55d8c; background: #6e2c4c; }
.button.facebook { border-color: #668ae2; background: #2e56a0; }

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, .75fr);
  gap: 16px;
}
.spotlight {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.spotlight-media,
.spotlight > .topic-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.spotlight-media { object-fit: cover; }
.spotlight > .topic-visual { opacity: .76; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 15, 20, .62);
}
.spotlight-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  padding: clamp(28px, 5vw, 54px);
}
.spotlight-copy .meta { color: var(--gold); }
.spotlight h2 {
  margin: 12px 0 14px;
  font: 400 clamp(32px, 4.3vw, 58px)/1.08 "Libre Baskerville", Georgia, serif;
}
.spotlight p { max-width: 680px; margin: 0; color: #d8e2e2; font-size: 17px; line-height: 1.55; }
.featured-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.featured-stack[hidden] { display: none; }
.featured-layout:has(.featured-stack[hidden]) { grid-template-columns: 1fr; }
.featured-mini {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.featured-mini > img,
.featured-mini > .topic-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.featured-mini > img { object-fit: cover; opacity: .58; transition: transform .4s ease; }
.featured-mini > .topic-visual {
  display: block;
  padding: 0;
  opacity: .7;
}
.featured-mini > .topic-visual svg {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 54px;
  height: 54px;
  opacity: .2;
}
.featured-mini > .topic-visual span { display: none; }
.featured-mini::after { content: ""; position: absolute; inset: 0; background: rgba(5, 17, 23, .58); }
.featured-mini:hover { border-color: var(--line-strong); }
.featured-mini:hover > img { transform: scale(1.035); }
.featured-mini-copy { position: relative; z-index: 1; width: 100%; padding: 22px; }
.featured-mini h3 { margin: 8px 0 16px; font: 400 23px/1.22 "Libre Baskerville", Georgia, serif; }
.live-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  color: var(--muted);
  font-size: 12px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(118, 201, 155, .11);
  animation: pulse 2s ease-in-out infinite;
}

.pulse-bar {
  width: min(100% - 40px, 1320px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.pulse-bar > div {
  min-height: 84px;
  display: grid;
  align-content: center;
  padding: 16px clamp(16px, 3vw, 32px);
  border-right: 1px solid var(--line);
}
.pulse-bar > div:first-child { padding-left: 0; }
.pulse-bar > div:last-child { border-right: 0; }
.pulse-bar strong { color: var(--gold); font: 700 22px "DM Mono", monospace; }
.pulse-bar span { color: var(--muted); font-size: 11px; }
.progress-track { height: 3px; display: block; margin-top: 8px; overflow: hidden; background: #24343a; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--cyan); transition: width .5s ease; }

.section-shell {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  padding: clamp(68px, 8vw, 104px) 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 28px;
}
.section-heading h2,
.network-copy h2 {
  max-width: 760px;
  margin: 0;
  font: 400 clamp(31px, 4vw, 48px)/1.12 "Libre Baskerville", Georgia, serif;
}
.section-heading p:not(.eyebrow) { max-width: 650px; margin: 10px 0 0; color: var(--muted); }
.section-tools { display: flex; align-items: center; gap: 8px; }
.search-field {
  width: min(380px, 38vw);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.search-field:focus-within { border-color: var(--cyan); }
.search-field svg { color: var(--muted); }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-field input::placeholder { color: #748a91; }
.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.filter-button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.filter-button:hover { border-color: var(--line-strong); color: var(--text); }
.filter-button.active { border-color: var(--cyan); background: #11313a; color: #eaffff; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.article-card {
  grid-column: span 4;
  min-width: 0;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 42px rgba(0, 0, 0, .2); }
.card-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #10242c;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.article-card:hover .card-image-wrap img { transform: scale(1.035); }
.topic-visual {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  padding: 24px;
  background: #0d2a39;
  color: var(--cyan);
}
.topic-visual svg { width: 42px; height: 42px; }
.topic-visual span { font: 600 10px/1.3 "DM Mono", monospace; text-transform: uppercase; }
.tone-living { background: #123028; color: #83d4aa; }
.tone-history { background: #302416; color: #f4bd5b; }
.tone-science { background: #102944; color: #70c6ef; }
.tone-world { background: #26301d; color: #bdd77a; }
.tone-culture { background: #22253a; color: #b5bdff; }
.save-button {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(4, 15, 20, .8);
}
.save-button.saved { color: var(--gold); border-color: var(--gold); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.card-meta, .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--cyan);
  font: 500 10px/1.45 "DM Mono", monospace;
  text-transform: uppercase;
}
.card-meta span + span::before { content: "·"; margin-right: 7px; color: var(--gold); }
.article-card h3 { margin: 10px 0 9px; font: 400 23px/1.24 "Libre Baskerville", Georgia, serif; }
.article-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.text-button:hover { color: var(--cyan); }
.network-link {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
}
.network-link:hover { border-color: var(--cyan); color: var(--cyan); }
.center-action { display: grid; place-items: center; margin-top: 30px; }
.empty-state { padding: 70px 20px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-state svg { width: 38px; height: 38px; color: var(--cyan); }
.empty-state h3 { margin: 16px 0 4px; font: 400 24px "Libre Baskerville", Georgia, serif; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }

.continue-section { padding-top: 0; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 31%);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rail .article-card { grid-column: auto; min-height: 360px; scroll-snap-align: start; }
.rail-controls { display: flex; gap: 8px; }
.living-band {
  border-top: 1px solid #234a3c;
  border-bottom: 1px solid #234a3c;
  background: #0a1a16;
}
.living-rail { grid-auto-columns: minmax(290px, 27%); }
.living-rail .article-card { border-color: #285042; background: #0e221c; }
.reels-section { padding-top: clamp(68px, 8vw, 104px); }
.reels-rail { grid-auto-columns: minmax(250px, 23%); }
.reel-card {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111b2c;
  text-decoration: none;
}
.reel-card > img,
.reel-card > .topic-visual { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-card > img { object-fit: cover; opacity: .55; transition: transform .45s ease; }
.reel-card > .topic-visual { opacity: .7; }
.reel-card::after { content: ""; position: absolute; inset: 0; background: rgba(5, 12, 18, .48); }
.reel-card:hover > img { transform: scale(1.04); }
.reel-card:hover { border-color: var(--pink); }
.reel-card-copy { position: relative; z-index: 1; width: 100%; padding: 24px; }
.reel-play {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid #e073a4;
  border-radius: 50%;
  background: #6e2c4c;
}
.reel-card h3 { margin: 9px 0 0; font: 400 23px/1.3 "Libre Baskerville", Georgia, serif; }

.community-band { border-top: 1px solid var(--line); background: var(--bg-soft); }
.network-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: center;
}
.network-copy > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 17px; }
.community-board { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.community-prompt, .community-note { padding: clamp(24px, 4vw, 36px); }
.community-prompt { position: relative; border-bottom: 1px solid var(--line); }
.community-prompt > svg { position: absolute; top: 30px; right: 30px; width: 30px; height: 30px; color: var(--gold); }
.community-prompt h3 { max-width: 460px; margin: 10px 42px 22px 0; font: 400 24px/1.4 "Libre Baskerville", Georgia, serif; }
.community-note { display: flex; align-items: flex-start; gap: 14px; color: var(--muted); font-size: 13px; }
.community-note svg { flex: 0 0 auto; color: var(--green); }
.community-note p { margin: 0; }
.community-note strong { color: var(--text); }

.site-footer {
  width: min(100% - 40px, 1320px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 50px;
  align-items: center;
  margin: 0 auto;
  padding: 34px 0;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-brand div { display: grid; }
.footer-brand span { color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.site-footer a { color: var(--muted); font-size: 13px; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-footer > p { grid-column: 1 / -1; margin: 0; color: #6e848b; font-size: 11px; }

dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
dialog::backdrop { background: rgba(0, 0, 0, .76); backdrop-filter: blur(8px); }
.reader-shell {
  min-height: 100%;
  width: min(100%, 900px);
  margin-left: auto;
  padding: clamp(24px, 5vw, 62px);
  background: #09151b;
  box-shadow: -20px 0 70px rgba(0, 0, 0, .42);
}
.reader-close { position: sticky; z-index: 2; top: 0; margin-left: auto; }
.reader-hero { margin: 10px 0 42px; }
.reader-hero img { width: 100%; max-height: 460px; margin-bottom: 28px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.reader-hero h2 { margin: 10px 0 14px; font: 400 clamp(32px, 6vw, 56px)/1.12 "Libre Baskerville", Georgia, serif; }
.reader-hero > p { color: #c7d6d9; font-size: 18px; }
.lesson-step { position: relative; padding: 30px 0 30px 38px; border-top: 1px solid var(--line); }
.lesson-step::before { content: attr(data-step); position: absolute; top: 32px; left: 0; color: var(--gold); font: 500 12px "DM Mono", monospace; }
.lesson-step h3 { margin: 6px 0 12px; font: 400 25px/1.3 "Libre Baskerville", Georgia, serif; }
.lesson-step p { margin: 0; color: #c6d4d7; font-size: 17px; line-height: 1.75; }
.reader-footer { display: flex; flex-wrap: wrap; gap: 10px; padding: 34px 0; border-top: 1px solid var(--line); }
.reader-share-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.reader-share-panel h3, .reader-related h3 { margin: 6px 0 0; font: 400 22px/1.3 "Libre Baskerville", Georgia, serif; }
.reader-share-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.share-shortcut { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); font-size: 12px; text-decoration: none; }
.share-shortcut:hover { border-color: var(--cyan); color: var(--cyan); }
.share-shortcut svg { width: 15px; height: 15px; }
.reader-related { padding: 40px 0 16px; }
.reader-related > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.reader-related button { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.reader-related button:hover { border-color: var(--cyan); transform: translateY(-2px); }
.reader-related button span { grid-column: 1 / -1; color: var(--cyan); font: 500 10px "DM Mono", monospace; text-transform: uppercase; }
.reader-related button strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
.reader-related button svg { width: 16px; height: 16px; color: var(--gold); }

.search-dialog-shell {
  width: min(100% - 28px, 760px);
  max-height: min(760px, calc(100vh - 48px));
  margin: 24px auto;
  overflow: hidden auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.search-dialog-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.search-dialog-head > svg { color: var(--cyan); }
.search-dialog-head input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 18px; }
.search-results { padding: 8px; }
.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.search-result:hover { background: var(--surface-raised); }
.search-result img,
.search-result > .topic-visual { width: 70px; height: 70px; border-radius: 5px; }
.search-result img { object-fit: cover; }
.search-result > .topic-visual { padding: 8px; }
.search-result > .topic-visual svg { width: 24px; height: 24px; }
.search-result > .topic-visual span { display: none; }
.search-result strong { display: block; line-height: 1.35; }
.search-result span { color: var(--muted); font-size: 12px; }

.toast-region { position: fixed; z-index: 500; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.toast {
  max-width: min(390px, calc(100vw - 36px));
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  animation: toast-in .22s ease both;
}
.skeleton { position: relative; overflow: hidden; background: #152933; }
.skeleton::after { content: ""; position: absolute; inset: 0; width: 35%; background: rgba(255, 255, 255, .06); animation: loading 1.25s ease-in-out infinite; }
.spotlight-skeleton { min-height: 440px; width: 100%; }
.card-skeleton { grid-column: span 4; min-height: 410px; border-radius: var(--radius); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.opening .reveal { opacity: 1; transform: none; }

@keyframes loading { from { transform: translateX(-120%); } to { transform: translateX(330%); } }
@keyframes pulse { 50% { opacity: .45; transform: scale(.88); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1080px) {
  .main-nav { gap: 18px; }
  .featured-layout { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); }
  .spotlight { min-height: 440px; }
  .article-card { grid-column: span 6; }
  .pulse-bar { grid-template-columns: repeat(2, 1fr); }
  .pulse-bar > div:nth-child(2) { border-right: 0; }
  .pulse-bar > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  :root { --header-height: 62px; }
  .site-header { grid-template-columns: 1fr auto; padding: 7px 16px; }
  .main-nav, .social-button span { display: none; }
  .social-button { width: 40px; padding: 0; justify-content: center; }
  .menu-button { display: grid; }
  .mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    padding: 10px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: #071117;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; }
  .opening-shell, .pulse-bar, .section-shell, .site-footer { width: min(100% - 30px, 1320px); }
  .masthead { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .featured-layout { grid-template-columns: 1fr; }
  .featured-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .featured-mini { min-height: 240px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-tools, .search-field { width: 100%; }
  .network-section { grid-template-columns: 1fr; }
  .rail, .living-rail { grid-auto-columns: minmax(280px, 76%); }
  .reels-rail { grid-auto-columns: minmax(250px, 70%); }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 590px) {
  .brand-link img { width: 38px; height: 38px; }
  .header-actions { gap: 6px; }
  .opening-backdrop { height: 360px; background-position: right -90px top 24px; background-size: 340px auto; }
  .opening-shell { padding-top: 40px; }
  h1 { font-size: 48px; }
  h1 em { font-size: 44px; }
  .masthead-aside > p { font-size: 17px; }
  .hero-actions { margin-top: 20px; }
  .spotlight { min-height: 380px; }
  .spotlight-copy { padding: 24px 20px; }
  .spotlight h2 { font-size: 31px; }
  .spotlight p { display: none; }
  .spotlight-actions .button.quiet { display: none; }
  .featured-stack {
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .featured-mini { min-height: 210px; scroll-snap-align: start; }
  .featured-mini-copy { padding: 20px; }
  .pulse-bar { grid-template-columns: repeat(2, 1fr); }
  .pulse-bar > div { min-height: 76px; padding: 12px; border-bottom: 1px solid var(--line); }
  .pulse-bar > div:first-child { padding-left: 12px; }
  .section-shell { padding-top: 62px; padding-bottom: 62px; }
  .article-card { grid-column: span 12; min-height: 0; }
  .card-skeleton { grid-column: span 12; }
  .network-actions { display: grid; }
  .network-actions .button { width: 100%; }
  .reader-shell { padding: 18px; }
  .lesson-step { padding-left: 30px; }
  .reader-share-panel { grid-template-columns: 1fr; }
  .reader-share-row { justify-content: flex-start; }
  .reader-related > div { grid-template-columns: 1fr; }
  .search-result { grid-template-columns: 54px 1fr; }
  .search-result img, .search-result > .topic-visual { width: 54px; height: 54px; }
  .search-result > svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.retention-section {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(34px, 7vw, 100px);
  padding-top: 36px;
}
.retention-copy h2 { margin: 6px 0 12px; font: 400 clamp(29px, 4vw, 44px)/1.16 "Libre Baskerville", Georgia, serif; }
.retention-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.retention-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.retention-metrics article { min-height: 130px; display: grid; align-content: center; gap: 5px; padding: 20px; border-right: 1px solid var(--line); }
.retention-metrics article:last-child { border-right: 0; }
.retention-metrics svg { width: 20px; color: var(--cyan); }
.retention-metrics strong { margin-top: 8px; color: var(--gold); font: 700 24px "DM Mono", monospace; }
.retention-metrics span { color: var(--muted); font-size: 11px; }

.ad-section { padding-top: 0; padding-bottom: 32px; text-align: center; }
.commercial-label { margin: 0 0 8px; color: #738991; font: 500 9px "DM Mono", monospace; text-transform: uppercase; }
.ad-section #ad-slot { min-height: 90px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }

.support-band { border-top: 1px solid #274751; border-bottom: 1px solid #274751; background: #091a20; }
.support-shell { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(38px, 8vw, 110px); align-items: start; }
.support-intro { position: sticky; top: 96px; }
.support-intro h2 { margin: 7px 0 14px; font: 400 clamp(31px, 4vw, 46px)/1.15 "Libre Baskerville", Georgia, serif; }
.support-intro > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.support-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.support-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.support-card { min-height: 220px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.support-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.support-card > svg { width: 23px; color: var(--gold); }
.support-card > span { margin-top: 22px; color: var(--cyan); font: 500 9px "DM Mono", monospace; text-transform: uppercase; }
.support-card > strong { margin-top: 6px; font: 400 20px/1.3 "Libre Baskerville", Georgia, serif; }
.support-card > p { margin: 8px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.support-card > small { color: var(--gold); }
.support-card > b { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-size: 12px; }
.support-card > b svg { width: 14px; }

.reader-quiz { margin: 42px 0; padding: clamp(20px, 4vw, 34px); border: 1px solid #28505b; border-radius: var(--radius); background: #0b2027; }
.reader-quiz > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.reader-quiz h3, .reader-value h3 { margin: 5px 0 0; font: 400 25px/1.3 "Libre Baskerville", Georgia, serif; }
.quiz-complete { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 11px; }
.quiz-complete svg { width: 15px; }
.quiz-question { margin: 0; padding: 20px 0; border: 0; border-top: 1px solid var(--line); }
.quiz-question legend { width: 100%; padding: 20px 0 12px; font-weight: 700; line-height: 1.5; }
.quiz-question legend span { margin-right: 8px; color: var(--gold); font: 500 11px "DM Mono", monospace; }
.quiz-question > div { display: grid; gap: 8px; }
.quiz-question button { min-height: 46px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 5px; background: #0d181e; color: #cbd8da; text-align: left; line-height: 1.45; cursor: pointer; }
.quiz-question button:hover:not(:disabled) { border-color: var(--cyan); color: #fff; }
.quiz-question button.correct { border-color: #4c9672; background: #15362b; color: #e9fff3; }
.quiz-question button.incorrect { border-color: #8e4a55; background: #341e24; }
.quiz-feedback { min-height: 20px; margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.quiz-result { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px; border-left: 3px solid var(--gold); background: #14242a; }
.quiz-result strong { color: var(--gold); font: 700 24px "DM Mono", monospace; }
.quiz-result span { color: #d4e0e2; font-size: 13px; }
.reader-value { margin: 42px 0; padding: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reader-value-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.reader-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.reader-offer { display: flex; flex-direction: column; min-height: 170px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.reader-offer:hover { border-color: var(--cyan); }
.reader-offer > span { color: var(--cyan); font: 500 9px "DM Mono", monospace; text-transform: uppercase; }
.reader-offer > strong { margin-top: 8px; }
.reader-offer > p { margin: 8px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.reader-offer > small { margin-top: auto; color: #8fa1a6; font-size: 10px; line-height: 1.4; }

.consent-panel { position: fixed; z-index: 30; right: 18px; bottom: 18px; width: min(620px, calc(100% - 36px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #0c1b21; box-shadow: 0 22px 65px rgba(0, 0, 0, .45); }
.consent-panel[hidden] { display: none; }
.consent-panel strong { font: 400 19px "Libre Baskerville", Georgia, serif; }
.consent-panel p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent-panel a { color: var(--cyan); font-size: 11px; }
.consent-panel > div:last-child { display: flex; gap: 8px; }

.legal-page main { min-height: calc(100vh - 170px); padding: 120px 20px 60px; }
.legal-document { width: min(100%, 820px); margin: 0 auto; }
.legal-document h1 { margin: 8px 0 18px; font: 400 clamp(38px, 7vw, 65px)/1.08 "Libre Baskerville", Georgia, serif; }
.legal-document h2 { margin: 42px 0 10px; font: 400 25px/1.3 "Libre Baskerville", Georgia, serif; }
.legal-document p { color: #c3d1d4; font-size: 16px; line-height: 1.75; }
.legal-document .legal-lead { color: var(--muted); font-size: 19px; }

@media (max-width: 900px) {
  .retention-section, .support-shell { grid-template-columns: 1fr; }
  .support-intro { position: static; }
  .retention-metrics { grid-template-columns: repeat(2, 1fr); }
  .retention-metrics article:nth-child(2) { border-right: 0; }
  .retention-metrics article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 590px) {
  .support-catalog, .reader-offers { grid-template-columns: 1fr; }
  .consent-panel { grid-template-columns: 1fr; }
  .consent-panel > div:last-child { justify-content: stretch; }
  .consent-panel .button { flex: 1; }
  .reader-value { padding: 22px 0; }
}

@media print {
  body { background: #fff !important; color: #111 !important; }
  body > :not(.reader-dialog), .reader-close, .reader-footer, .reader-share-panel, .reader-related, .reader-quiz, .reader-offers, .reader-value-actions { display: none !important; }
  .reader-dialog, .reader-shell, .reader-dialog[open] { position: static !important; display: block !important; width: 100% !important; height: auto !important; padding: 0 !important; background: #fff !important; box-shadow: none !important; }
  .reader-hero h2, .lesson-step h3, .reader-value h3 { color: #111 !important; }
  .reader-hero > p, .lesson-step p { color: #222 !important; }
  .lesson-step { break-inside: avoid; border-color: #ccc !important; }
}
