/* Ura Recovery Library — shared stylesheet.
   Matches the marketing site's tokens without importing its layout CSS. */

@font-face {
  font-family: 'BricolageGrotesque';
  src: url('/recovery-library/assets/bricolage-grotesque-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-title: 'BricolageGrotesque', 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --bg: #080c16;
  --bg-raised: #0d1220;
  --surface: rgba(255,255,255,0.05);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --text-primary: #FFFFFF;
  --text-body: rgba(255,255,255,0.76);
  --text-secondary: rgba(255,255,255,0.58);
  --text-tertiary: rgba(255,255,255,0.38);
  --cyan: #00C2FF;
  --purple: #8B5CF6;
  --green: #4ADE80;
  --amber: #FBBF24;
  --gradient-cta: linear-gradient(135deg, #00C2FF, #8B5CF6);
  --radius: 18px;
  --maxw: 1120px;
  --readw: 720px;
}

/* scroll-padding clears the fixed navbar when jumping to a TOC anchor. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 168px; }
@media (max-width: 768px) { html { scroll-padding-top: 72px; } }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle cosmic wash — CSS only, no images, no layout shift. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(0,194,255,0.10), transparent 62%),
    radial-gradient(900px 520px at 88% 4%, rgba(139,92,246,0.10), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.rl-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.rl-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cyan); color: #041018; font-weight: 700;
  padding: 12px 18px; border-radius: 0 0 10px 0; text-decoration: none;
}
.rl-skip:focus { left: 0; }

/* ── header ─────────────────────────────────────────────────────────
   Identical to the marketing site's tubelight navbar. Kept byte-for-byte
   in sync with index.html so the two never drift apart visually. */

/* Scoped to #main-nav: unlike index.html these pages also contain
   breadcrumb <nav> elements, so a bare `nav` selector would capture them. */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform .28s ease, opacity .2s ease;
  will-change: transform;
}
#main-nav.is-scroll-hidden {
  transform: translateY(calc(-100% - 8px));
  opacity: 0;
  pointer-events: none;
}
/* Responsive nav overrides live at the end of this file so they win the
   cascade against the desktop rules below (same specificity). */

.nav-logo img {
  height: 120px;
  width: auto;
  display: block;
}

/* ── Tubelight pill navbar ── */
.nav-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 600px;
  height: 42px;
  box-sizing: border-box;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav-pill-item {
  position: relative;
  padding: 8px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1;
}
.nav-pill-item:hover { color: rgba(255,255,255,0.9); }

.nav-pill-item.active {
  color: #ffffff;
}

/* The sliding background pill */
.nav-pill-bg {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  transition: left 0.35s cubic-bezier(0.34,1.56,0.64,1), width 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  z-index: 0;
}

/* Tubelight glow indicator above active item */
.nav-pill-lamp {
  position: absolute;
  top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--cyan);
  transition: left 0.35s cubic-bezier(0.34,1.56,0.64,1), width 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  z-index: 2;
}
.nav-pill-lamp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,194,255,0.35) 0%, transparent 70%);
  filter: blur(4px);
}
.nav-pill-lamp::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 10px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,194,255,0.6) 0%, transparent 80%);
}

/* Icons only on mobile */
.nav-pill-label { display: inline; }
.nav-pill-icon { display: none; }
@media (max-width: 1280px) {
  .nav-pill-label { display: none; }
  .nav-pill-icon { display: block; }
  .nav-pill-item { padding: 8px 14px; }
  .nav-pill { gap: 0; }
  .nav-pill { width: auto; height: auto; }
}

.nav-store-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.nav-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  color: #fff;
  line-height: normal;
  background: rgba(19,21,31,0.92);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.nav-store-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-1px);
}
.nav-store-btn > span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  white-space: nowrap;
}
.nav-store-btn small {
  color: var(--text-tertiary);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
}
.nav-store-btn strong {
  margin-top: 3px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
}
.mobile-nav-actions,
.mobile-nav-menu { display: none; }

.mobile-download-btn {
  width: 101px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.mobile-menu-toggle svg { width: 24px; height: 24px; }
.mobile-menu-toggle .mobile-menu-close-icon,
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-open-icon { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-close-icon { display: block; }
.mobile-nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.84);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}
.mobile-nav-link:last-child { border-bottom: 0; }
.mobile-nav-link svg { width: 17px; height: 17px; color: rgba(255,255,255,0.42); }
@media (min-width: 1121px) {
  .nav-store-actions { width: 256.5px; }
  .nav-store-btn:first-child { padding-inline: 11.05px; }
}
@media (max-width: 1120px) {
  .nav-store-btn {
    min-height: 42px;
    padding: 7px 10px;
  }
  .nav-store-btn small { display: none; }
  .nav-store-btn strong { margin-top: 0; font-size: 12px; }
}
@media (max-width: 860px) {
  .nav-store-btn {
    width: 42px;
    justify-content: center;
    padding: 8px;
  }
  .nav-store-btn > span { display: none; }
}

/* ── layout ─────────────────────────────────────────────────────────── */

/* Top padding clears the fixed navbar (logo 120px + 2×16px padding). */
main { max-width: var(--maxw); margin: 0 auto; padding: 152px 20px 40px; }
@media (max-width: 768px) { main { padding-top: 72px; } }

.rl-hero { padding: 44px 0 8px; }
.rl-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--cat-accent, var(--cyan));
  margin-bottom: 16px;
}
.rl-cat-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.rl-cat-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.rl-hero-title {
  font-family: var(--font-title);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.5px;
  color: var(--text-primary);
  max-width: 16ch;
}
.rl-page--home .rl-hero-title, .rl-hero--category .rl-hero-title { max-width: 26ch; }
.rl-hero-sub {
  margin-top: 18px; max-width: 62ch;
  font-size: 18px; color: var(--text-secondary);
}

/* Centred hero on the library home and category pages. Article headers
   stay left-aligned (.rl-article-head) — long-form text reads better ragged. */
.rl-hero { text-align: center; }
.rl-hero .rl-crumbs ol { justify-content: center; }
.rl-hero .rl-hero-title,
.rl-hero .rl-hero-sub,
.rl-hero .rl-search { margin-left: auto; margin-right: auto; }

.rl-crumbs { margin-bottom: 22px; }
.rl-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-tertiary); }
.rl-crumbs li + li::before { content: '/'; margin-right: 6px; color: rgba(255,255,255,0.22); }
.rl-crumbs a { color: var(--text-secondary); text-decoration: none; }
.rl-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.rl-section { margin-top: 56px; }
.rl-section-title {
  font-family: var(--font-title);
  font-size: clamp(22px, 3vw, 30px); font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.3px;
  margin-bottom: 22px;
}

/* ── search ─────────────────────────────────────────────────────────── */

.rl-search {
  position: relative; display: flex; align-items: center;
  margin-top: 30px; max-width: 520px;
}
.rl-search-icon {
  position: absolute; left: 16px; display: flex;
  color: var(--text-tertiary); pointer-events: none;
}
.rl-search input {
  width: 100%; padding: 14px 16px 14px 46px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; color: #fff;
  font-family: inherit; font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.rl-search input::placeholder { color: var(--text-tertiary); }
.rl-search input:hover { background: var(--surface-hover); }
.rl-search input:focus { outline: none; border-color: rgba(0,194,255,0.55); background: var(--surface-hover); }

.rl-search-results { margin-top: 18px; }
.rl-search-results[hidden] { display: none; }
.rl-search-empty { color: var(--text-secondary); font-size: 15px; }

/* ── category grid ──────────────────────────────────────────────────── */

.rl-cat-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .rl-cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 980px) { .rl-cat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.rl-cat-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.rl-cat-card:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: color-mix(in srgb, var(--cat-accent) 40%, transparent);
}
.rl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.rl-ico { display: block; flex-shrink: 0; overflow: visible; }

/* ── icon motion ─────────────────────────────────────────────────────
   Animations are declared on the elements inside each <symbol>; the
   computed style is carried into every <use> instance, so one definition
   animates the icon everywhere it appears. All of it is disabled under
   prefers-reduced-motion (see the motion section at the end of the file).
   Timings are deliberately slow and out of phase so a grid of eleven
   icons reads as alive rather than busy. */

.rl-ico [class^="a-"] { transform-box: fill-box; transform-origin: center; }

@keyframes rl-breathe   { 0%,100% { transform: scale(1); }      50% { transform: scale(1.05); } }
@keyframes rl-halo      { 0%,100% { opacity: .35; transform: scale(.92); } 50% { opacity: .8; transform: scale(1.06); } }
@keyframes rl-jolt      { 0%,88%,100% { opacity: 1; } 92% { opacity: .45; } 96% { opacity: 1; } }
@keyframes rl-beat      { 0%,100% { transform: scale(1); } 14% { transform: scale(1.11); } 28% { transform: scale(1); } 42% { transform: scale(1.07); } 56% { transform: scale(1); } }
@keyframes rl-trace     { to { stroke-dashoffset: -100; } }
@keyframes rl-pop       { 0%,100% { opacity: .6; transform: scale(.82); } 45% { opacity: 1; transform: scale(1); } }
@keyframes rl-flame     { 0%,100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.06,1.09) translateY(-1px); } }
@keyframes rl-flamecore { 0%,100% { transform: scaleY(1); opacity: .92; } 50% { transform: scaleY(1.14); opacity: 1; } }
@keyframes rl-rise      { 0% { opacity: 0; transform: translateY(4px) scale(.8); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-7px) scale(1.15); } }
@keyframes rl-tip       { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes rl-shimmer   { 0%,100% { opacity: .28; } 50% { opacity: .55; } }
@keyframes rl-bubble    { 0% { opacity: 0; transform: translateY(3px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-5px); } }
@keyframes rl-roll      { 0%,100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-1.5px); } }
@keyframes rl-roll2     { 0%,100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(7deg) translateY(1.5px); } }
@keyframes rl-lock      { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
@keyframes rl-screen    { 0%,100% { opacity: .62; } 50% { opacity: .48; } }
@keyframes rl-bob       { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-1.5px) rotate(-3deg); } }
@keyframes rl-twinkle   { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes rl-signal    { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(13px); opacity: 0; } }
@keyframes rl-soma      { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes rl-sway      { 0%,100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
@keyframes rl-sway-rev  { 0%,100% { transform: rotate(3.5deg); } 50% { transform: rotate(-3.5deg); } }

.rl-ico .a-halo       { animation: rl-halo 3.4s ease-in-out infinite; }
.rl-ico .a-breathe    { animation: rl-breathe 3.4s ease-in-out infinite; }
.rl-ico .a-jolt       { animation: rl-jolt 4.5s ease-in-out infinite; }
.rl-ico .a-beat       { animation: rl-beat 2.6s ease-in-out infinite; }
.rl-ico .a-trace      { animation: rl-trace 3.2s linear infinite; }
/* Thoughts stack up one after another rather than pulsing in unison. */
.rl-ico .a-think-1    { animation: rl-pop 2.9s ease-in-out infinite; }
.rl-ico .a-think-2    { animation: rl-pop 2.9s ease-in-out infinite; animation-delay: .38s; }
.rl-ico .a-think-3    { animation: rl-pop 2.9s ease-in-out infinite; animation-delay: .76s; }
.rl-ico .a-flame      { animation: rl-flame 2.2s ease-in-out infinite; transform-origin: bottom center; }
.rl-ico .a-flame-core { animation: rl-flamecore 1.6s ease-in-out infinite; transform-origin: bottom center; }
.rl-ico .a-rise-1     { animation: rl-rise 2.8s ease-out infinite; }
.rl-ico .a-rise-2     { animation: rl-rise 2.8s ease-out infinite; animation-delay: 1.1s; }
.rl-ico .a-tip        { animation: rl-tip 2.4s ease-in-out infinite; }
.rl-ico .a-shimmer    { animation: rl-shimmer 3.6s ease-in-out infinite; }
.rl-ico .a-bubble     { animation: rl-bubble 3.2s ease-in-out infinite; }
.rl-ico .a-roll-1     { animation: rl-roll 3.8s ease-in-out infinite; }
.rl-ico .a-roll-2     { animation: rl-roll2 3.8s ease-in-out infinite; animation-delay: .3s; }
.rl-ico .a-lock       { animation: rl-lock 3s ease-in-out infinite; }
.rl-ico .a-screen     { animation: rl-screen 3s ease-in-out infinite; }
.rl-ico .a-bob        { animation: rl-bob 5s ease-in-out infinite; }
.rl-ico .a-twinkle-1  { animation: rl-twinkle 2.6s ease-in-out infinite; }
.rl-ico .a-twinkle-2  { animation: rl-twinkle 2.6s ease-in-out infinite; animation-delay: .9s; }
.rl-ico .a-twinkle-3  { animation: rl-twinkle 2.6s ease-in-out infinite; animation-delay: 1.7s; }
.rl-ico .a-signal     { animation: rl-signal 2.4s ease-in-out infinite; }
.rl-ico .a-soma       { animation: rl-soma 2.4s ease-in-out infinite; }
.rl-ico .a-leaf-1     { animation: rl-sway 4.6s ease-in-out infinite; transform-origin: bottom left; }
.rl-ico .a-leaf-2     { animation: rl-sway-rev 4.6s ease-in-out infinite; transform-origin: bottom right; }

.rl-cat-icon {
  flex-shrink: 0; align-self: center; display: grid; place-items: center;
  width: 52px; height: 52px;
  transition: transform .25s ease;
}
.rl-cat-icon .rl-ico {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--cat-accent) 28%, transparent));
}
.rl-cat-card:hover .rl-cat-icon { transform: scale(1.06); }
.rl-cat-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rl-cat-name { font-family: var(--font-title); font-weight: 700; font-size: 17px; color: #fff; }
.rl-cat-desc { font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.rl-cat-count {
  margin-left: auto; flex-shrink: 0; align-self: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-tertiary); white-space: nowrap;
}
.rl-cat-card--empty { opacity: 0.62; }
.rl-cat-card--empty:hover { opacity: 0.85; }

.rl-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.rl-chip {
  padding: 8px 15px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; transition: color .2s ease, background .2s ease;
}
.rl-chip:hover { color: #fff; background: var(--surface-hover); }

/* ── article cards ──────────────────────────────────────────────────── */

.rl-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rl-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .rl-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.rl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.rl-card:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: rgba(0,194,255,0.26);
}
.rl-card-link { display: flex; flex-direction: column; gap: 9px; padding: 20px; text-decoration: none; height: 100%; }
.rl-card-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--cat-accent, var(--cyan));
}
.rl-card-title {
  font-family: var(--font-title); font-size: 18px; font-weight: 700;
  line-height: 1.28; color: #fff; letter-spacing: -0.2px;
}
.rl-card-summary { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.rl-card-meta { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--text-tertiary); }
.rl-card--compact .rl-card-link { padding: 17px; }
.rl-card--compact .rl-card-title { font-size: 16.5px; }

.rl-empty > p { max-width: var(--readw); color: var(--text-secondary); margin-bottom: 14px; }
.rl-empty .rl-grid { margin-top: 26px; }

/* ── article ────────────────────────────────────────────────────────── */

.rl-article { max-width: var(--maxw); margin: 0 auto; }
.rl-page--article main { padding-bottom: 20px; }
.rl-panic-now {
  max-width: var(--readw);
  margin: 18px auto 0;
  padding: 12px 12px 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(204,34,0,0.10);
  border: 1px solid rgba(255,49,87,0.28);
  border-left: 3px solid #FF3157;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}
.rl-panic-now-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1.35;
}
.rl-panic-now-copy strong {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.rl-panic-now-copy span {
  color: rgba(255,255,255,0.68);
  font-size: 13.5px;
}
.rl-panic-now-action {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: #CC2200;
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(204,34,0,0.22);
  transition: background .2s ease, transform .2s ease;
}
.rl-panic-now-action:hover {
  background: #E12605;
  transform: translateY(-1px);
}
.rl-panic-now + .rl-article-head { padding-top: 28px; }
.rl-article-head { max-width: var(--readw); margin: 0 auto; padding: 44px 0 0; }
.rl-article-title {
  font-family: var(--font-title);
  font-size: clamp(30px, 5.2vw, 46px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.5px;
  color: var(--text-primary);
}
.rl-title-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 600;
}
.rl-title-reading-time .rl-ui-icon { color: var(--cyan); }
.rl-article-summary { margin-top: 12px; font-size: 19px; line-height: 1.62; color: var(--text-secondary); }
.rl-author-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13.5px;
}
.rl-author-trust p {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.rl-author-trust strong {
  color: #fff;
  font-weight: 700;
}
.rl-article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 11px;
  font-size: 13px; color: var(--text-tertiary);
}
.rl-meta-item { display: inline-flex; align-items: center; }
.rl-meta-item + .rl-meta-item::before { content: ''; }

.rl-reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 140;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.rl-reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 10px rgba(0,194,255,0.45);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .1s linear;
}

/* ── article action bar + listen player ───────────────────────────── */

.rl-actions {
  position: relative;
  max-width: var(--readw);
  margin: 26px auto 0;
}
.rl-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: rgba(19,21,31,0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.25);
}
.rl-action-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.rl-action-btn:hover,
.rl-action-btn.is-active {
  color: #fff;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
}
.rl-action-btn:hover { transform: translateY(-1px); }
.rl-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.rl-action-btn--ai {
  margin-left: auto;
  color: #fff;
  background: #873CFF;
  border-color: rgba(255,255,255,0.14);
}
.rl-action-btn--ai:hover { background: #974FFF; }
.rl-ura-ai-icon {
  width: 24px;
  height: 30px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  transform: scale(1.25);
  transform-origin: center;
  filter: drop-shadow(0 2px 5px rgba(0,194,255,0.28));
}
.rl-ura-ai-icon--small {
  width: 16px;
  height: 21px;
}
.rl-ura-ai-icon--compact {
  width: 19px;
  height: 24px;
}
.rl-action-btn--app {
  color: #fff;
  background: rgba(14,165,233,0.18);
  border-color: rgba(14,165,233,0.38);
}
.rl-action-label-mobile { display: none; }

.rl-listen-player,
.rl-share-popover {
  margin-top: 10px;
  padding: 20px;
  background: #13151F;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.34);
}
.rl-listen-player[hidden],
.rl-share-popover[hidden] { display: none; }
.rl-listen-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.rl-listen-eyebrow,
.rl-section-eyebrow {
  margin-bottom: 5px;
  color: var(--purple);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.rl-listen-heading h2 {
  font-family: var(--font-title);
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
}
.rl-listen-status {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 12px;
}
.rl-audio-progress {
  width: 100%;
  height: 4px;
  margin: 20px 0 14px;
  accent-color: var(--cyan);
  cursor: pointer;
}
.rl-listen-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.rl-icon-btn,
.rl-play-btn {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.rl-icon-btn:hover,
.rl-play-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.rl-play-btn {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  background: var(--cyan);
  color: #041018;
  border-color: transparent;
}
.rl-play-btn:hover { background: #33CEFF; border-color: transparent; }
.rl-speed-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 5px;
  color: var(--text-tertiary);
  font-size: 12px;
}
.rl-speed-label select {
  min-height: 42px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0d1220;
  color: #fff;
  font: inherit;
  font-size: 13px;
}
.rl-audio-time {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.rl-listen-current {
  margin-top: 14px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rl-speech-active {
  color: rgba(255,255,255,0.94) !important;
  background: rgba(135,60,255,0.12);
  border-radius: 6px;
  box-shadow: 0 0 0 7px rgba(135,60,255,0.12);
}

.rl-share-popover { padding: 18px; }
.rl-share-title {
  margin-bottom: 12px;
  font-family: var(--font-title);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.rl-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}
.rl-share-grid a,
.rl-share-grid button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.rl-share-grid a:hover,
.rl-share-grid button:hover { color: #fff; background: rgba(255,255,255,0.08); }
.rl-share-status { min-height: 18px; margin-top: 8px; color: var(--green); font-size: 12px; }

/* ── contextual Ura AI handoff ─────────────────────────────────────── */

.rl-ai-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: #10131D;
  color: var(--text-primary);
  box-shadow: 0 30px 90px rgba(0,0,0,0.68);
}
.rl-ai-dialog::backdrop {
  background: rgba(3,5,12,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rl-ai-dialog-inner {
  position: relative;
  padding: 30px;
}
.rl-ai-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  cursor: pointer;
}
.rl-ai-dialog-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.rl-ai-dialog-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #BFA6FF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rl-ai-dialog h2 {
  max-width: calc(100% - 48px);
  font-family: var(--font-title);
  font-size: clamp(23px, 4vw, 30px);
  line-height: 1.16;
  color: #fff;
}
.rl-ai-dialog-copy {
  max-width: 54ch;
  margin-top: 11px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.rl-ai-context,
.rl-ai-question {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}
.rl-ai-context > span,
.rl-ai-question > span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-tertiary);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.rl-ai-context strong {
  display: block;
  font-family: var(--font-title);
  color: #fff;
  font-size: 16px;
}
.rl-ai-context p {
  margin-top: 6px;
  color: var(--text-tertiary);
  font-size: 13.5px;
  line-height: 1.5;
}
.rl-ai-question {
  border-color: rgba(0,194,255,0.24);
  background: rgba(0,194,255,0.055);
}
.rl-ai-question p {
  color: rgba(255,255,255,0.9);
  font-size: 14.5px;
  line-height: 1.55;
}
.rl-ai-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.rl-ai-launch,
.rl-ai-copy,
.rl-ai-store-fallback a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.rl-ai-launch {
  background: #873CFF;
  border-color: transparent;
}
.rl-ai-launch[hidden] { display: none; }
.rl-ai-launch:hover { background: #974FFF; }
.rl-ai-copy { background: rgba(255,255,255,0.045); }
.rl-ai-copy:hover { background: rgba(255,255,255,0.09); }
.rl-ai-dialog-status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--green);
  font-size: 12.5px;
}
.rl-ai-store-fallback {
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.rl-ai-store-fallback[hidden] { display: none; }
.rl-ai-store-fallback > p {
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.5;
}
.rl-ai-store-fallback > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.rl-ai-store-fallback a {
  min-height: 44px;
  background: rgba(255,255,255,0.04);
}
.rl-ai-store-fallback a:hover { background: rgba(255,255,255,0.09); }

.rl-article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--readw));
  justify-content: center;
  margin-top: 10px;
}
.rl-article-main { min-width: 0; }
.rl-article-rail { min-width: 0; }
.rl-toc-mobile-toggle { display: none; }

.rl-notice {
  margin-top: 26px; padding: 14px 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(0,194,255,0.55);
  border-radius: 10px;
  font-size: 14px; color: var(--text-secondary);
}

.rl-toc {
  padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.rl-toc-h {
  font-family: var(--font-title); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 12px;
}
.rl-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 8px; }
.rl-toc li { counter-increment: toc; display: flex; gap: 10px; font-size: 15px; }
.rl-toc li::before { content: counter(toc); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.rl-toc a { color: var(--text-secondary); text-decoration: none; }
.rl-toc a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rl-toc a.is-active { color: #fff; }

.rl-prose { margin-top: 30px; font-size: 18px; line-height: 1.78; }
.rl-prose h2 {
  font-family: var(--font-title);
  font-size: clamp(23px, 3.4vw, 30px); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 44px 0 14px;
  scroll-margin-top: 168px;
}
.rl-prose h3 {
  font-family: var(--font-title);
  font-size: 19px; font-weight: 700; line-height: 1.3;
  color: var(--text-primary);
  margin: 30px 0 10px;
  scroll-margin-top: 168px;
}
.rl-prose p { margin: 0 0 18px; }
.rl-prose a { color: #7DD3FC; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rl-prose a:hover { color: #B6E7FF; }
.rl-prose strong { color: #fff; font-weight: 700; }

.rl-list { margin: 0 0 20px; padding-left: 4px; list-style: none; }
.rl-list li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.rl-list li::before {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(0,194,255,0.75);
}
ol.rl-list { counter-reset: rll; }
ol.rl-list li::before {
  content: counter(rll); counter-increment: rll;
  width: auto; height: auto; background: none; top: 0; left: 0;
  color: var(--cyan); font-weight: 700; font-size: 14px;
}

.rl-steps { list-style: none; counter-reset: st; margin: 0 0 22px; display: flex; flex-direction: column; gap: 12px; }
.rl-steps li {
  counter-increment: st; position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px;
}
.rl-steps li::before {
  content: counter(st);
  position: absolute; left: 16px; top: 15px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,194,255,0.14); border: 1px solid rgba(0,194,255,0.3);
  color: var(--cyan); font-size: 12px; font-weight: 700;
}
.rl-steps strong { display: block; color: #fff; font-size: 16px; margin-bottom: 3px; }
.rl-steps span { display: block; font-size: 15.5px; color: var(--text-secondary); line-height: 1.6; }

.rl-callout {
  margin: 26px 0; padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15.5px;
}
.rl-callout-title { font-family: var(--font-title); font-weight: 700; color: #fff; margin-bottom: 6px; font-size: 16px; }
.rl-callout--calm { border-left: 3px solid rgba(0,194,255,0.6); }
.rl-callout--tip { border-left: 3px solid rgba(74,222,128,0.65); }
.rl-callout--warning {
  border-left: 3px solid rgba(251,191,36,0.75);
  background: rgba(251,191,36,0.06);
  border-color: rgba(251,191,36,0.22);
}
.rl-callout--warning .rl-callout-title { color: #FDE68A; }

.rl-quote {
  margin: 28px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid rgba(139,92,246,0.6);
  font-size: 18px; color: rgba(255,255,255,0.86);
}

@media (min-width: 1000px) {
  .rl-article-head,
  .rl-actions {
    margin-left: 0;
    margin-right: auto;
  }
  .rl-article-layout {
    grid-template-columns: minmax(0, var(--readw)) 244px;
    gap: 48px;
    justify-content: start;
  }
  .rl-article-rail { padding-top: 26px; }
  .rl-toc {
    position: sticky;
    top: 136px;
    max-height: calc(100vh - 170px);
    overflow: auto;
    background: rgba(19,21,31,0.9);
  }
  .rl-toc li { font-size: 13.5px; line-height: 1.45; }
}

/* ── FAQ ────────────────────────────────────────────────────────────── */

.rl-faq { max-width: var(--readw); margin: 52px auto 0; }
.rl-faq h2 {
  font-family: var(--font-title); font-size: clamp(22px, 3vw, 28px);
  font-weight: 700; color: var(--text-primary); margin-bottom: 18px;
}
.rl-faq-list { display: flex; flex-direction: column; gap: 10px; }
.rl-faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.rl-faq-item summary {
  padding: 16px 18px; cursor: pointer;
  font-family: var(--font-title); font-weight: 700; font-size: 16.5px;
  color: #fff; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.rl-faq-item summary::-webkit-details-marker { display: none; }
.rl-faq-item summary::after {
  content: '+'; flex-shrink: 0;
  font-size: 20px; font-weight: 400; color: var(--text-tertiary);
  transition: transform .2s ease;
}
.rl-faq-item[open] summary::after { transform: rotate(45deg); }
.rl-faq-a { padding: 0 18px 17px; font-size: 15.5px; color: var(--text-secondary); }

/* ── CTA ────────────────────────────────────────────────────────────── */

.rl-cta {
  margin: 56px auto 0; max-width: var(--readw);
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(0,194,255,0.22);
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(0,194,255,0.15), transparent 65%),
    radial-gradient(600px 280px at 92% 100%, rgba(139,92,246,0.16), transparent 62%),
    var(--bg-raised);
}
.rl-page--home .rl-cta, .rl-page--category .rl-cta { max-width: none; }

.rl-cta-inner {
  padding: 30px 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: center;
}
@media (min-width: 760px) {
  .rl-cta-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 20px; padding: 34px 30px; }
}
.rl-cta-copy { min-width: 0; }

.rl-cta-visual { min-width: 0; }
.rl-cta-visual img {
  width: 100%;
  height: auto;
  /* Keeps the phones optically centred and stops the PNG's transparent
     margins pushing the card taller than the copy beside it. */
  max-width: 460px;
  margin: 4px auto 0;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.45));
}
@media (max-width: 759px) {
  .rl-cta-visual img { max-width: 360px; margin-top: 22px; }
}
.rl-cta-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 10px;
}
.rl-cta-heading {
  font-family: var(--font-title); font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700; line-height: 1.15; color: #fff; letter-spacing: -0.3px;
}
.rl-cta-body { margin-top: 12px; font-size: 16px; color: var(--text-secondary); max-width: 58ch; }
.rl-cta-note { margin-top: 12px; font-size: 13px; color: var(--text-tertiary); }

.rl-store-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 20px; }
.rl-store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 13px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  color: #fff; text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.rl-store-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.28);
}
.rl-store-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.rl-store-btn small { font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.03em; }
.rl-store-btn strong { font-family: var(--font-title); font-size: 15px; font-weight: 700; }
.rl-download-free {
  width: fit-content;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 11px;
  background: var(--gradient-cta);
  color: #fff;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}
.rl-download-free:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* ── references, disclaimer, footer ─────────────────────────────────── */

.rl-refs { max-width: var(--readw); margin: 48px auto 0; }
.rl-refs h2 {
  font-family: var(--font-title); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 12px;
}
.rl-refs ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.rl-refs a { color: #7DD3FC; text-decoration: underline; text-underline-offset: 3px; }
.rl-refs span { color: var(--text-tertiary); }

.rl-related { max-width: var(--readw); margin-left: auto; margin-right: auto; }
.rl-related .rl-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .rl-related .rl-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ── related app features + feedback ───────────────────────────────── */

.rl-features,
.rl-helpful {
  max-width: var(--readw);
  margin: 54px auto 0;
}
.rl-features > h2,
.rl-helpful > h2 {
  font-family: var(--font-title);
  color: #fff;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
}
.rl-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}
.rl-feature-card {
  min-height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 13px;
  align-items: start;
  padding: 17px;
  background: #13151F;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.rl-feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
}
.rl-feature-copy h3 {
  font-family: var(--font-title);
  color: #fff;
  font-size: 16.5px;
  line-height: 1.25;
}
.rl-feature-copy p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
}
.rl-feature-open {
  grid-column: 2;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7DD3FC;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.rl-feature-open:hover { color: #fff; }
@media (min-width: 700px) {
  .rl-feature-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .rl-feature-card { grid-template-columns: 1fr; }
  .rl-feature-open { grid-column: 1; align-self: end; }
}

.rl-helpful {
  padding: 24px;
  text-align: center;
  background: #13151F;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.rl-helpful-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.rl-helpful-actions button {
  min-width: 126px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.rl-helpful-actions button:hover,
.rl-helpful-actions button.is-selected {
  color: #fff;
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
}
.rl-helpful-thanks { margin-top: 14px; color: var(--green); font-size: 13.5px; }
.rl-helpful-followup {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.rl-helpful-followup[hidden],
.rl-helpful-thanks[hidden],
.rl-helpful-reason-thanks[hidden],
.rl-helpful-support[hidden] { display: none; }
.rl-helpful-question {
  margin-bottom: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.rl-helpful-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}
.rl-helpful-reasons button {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  color: var(--text-secondary);
  font: inherit;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
}
.rl-helpful-reasons button:hover,
.rl-helpful-reasons button.is-selected {
  color: #fff;
  background: rgba(0,194,255,0.10);
  border-color: rgba(0,194,255,0.38);
}
.rl-helpful-reason-thanks {
  margin-top: 12px;
  color: var(--green);
  font-size: 13.5px;
}
.rl-helpful-support {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.rl-helpful-support p {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
}
.rl-helpful-support a,
.rl-helpful-support button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.rl-helpful-support button { background: #873CFF; border-color: transparent; }

.rl-disclaimer {
  max-width: var(--readw); margin: 44px auto 0;
  padding: 16px 18px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-tertiary); line-height: 1.65;
}
.rl-page--home .rl-disclaimer, .rl-page--category .rl-disclaimer { max-width: none; }
.rl-disclaimer strong { color: var(--text-secondary); }

.rl-back { max-width: var(--readw); margin: 34px auto 0; font-size: 15px; }
.rl-back a { color: var(--text-secondary); text-decoration: none; }
.rl-back a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.rl-footer { border-top: 1px solid var(--border); margin-top: 72px; }
.rl-footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 46px 20px 30px;
  display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .rl-footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; } }
.rl-footer-brand img { display: block; width: 76px; height: auto; margin-bottom: 14px; }
.rl-footer-brand p { font-size: 14px; color: var(--text-tertiary); max-width: 30ch; line-height: 1.6; }
.rl-footer-col { display: flex; flex-direction: column; gap: 9px; }
.rl-footer-col h2 {
  font-family: var(--font-title); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  margin-bottom: 5px;
}
.rl-footer-col a { font-size: 14px; color: var(--text-tertiary); text-decoration: none; transition: color .2s ease; }
.rl-footer-col a:hover { color: #fff; }
.rl-footer-legal {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px 20px 40px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-tertiary); line-height: 1.6;
}
.rl-footer-copy { margin-top: 8px; }
.rl-footer-wordmark {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 2.52 / 1;
  overflow: hidden;
}
.rl-footer-wordmark a {
  position: absolute;
  inset: 0;
  display: block;
}
.rl-footer-wordmark img {
  position: absolute;
  top: -37%;
  left: 50%;
  display: block;
  width: 135%;
  max-width: none;
  height: auto;
  opacity: .94;
  transform: translateX(-50%);
}

/* ── responsive nav (must come after the desktop nav rules) ─────────── */

@media (max-width: 768px) {
  .rl-footer-brand img { display: none; }
  .rl-footer-wordmark { display: block; }
  #main-nav {
    min-height: 72px;
    padding: 0 16px;
    gap: 8px;
    background: rgba(7,8,12,0.97);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav-logo img { height: 50px; }
  .nav-pill { display: none; }
  .nav-store-actions { display: none; }
  .mobile-nav-actions { display: flex; align-items: center; gap: 8px; }
  .mobile-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    padding: 8px 16px 16px;
    background: rgba(7,8,12,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 18px 36px rgba(0,0,0,0.36);
  }
  .mobile-nav-menu[hidden] { display: none; }

  .rl-action-bar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 7px;
  }
  .rl-action-btn {
    min-width: 0;
    padding: 9px 7px;
    font-size: 12px;
  }
  .rl-action-btn[data-rl-read] { grid-column: span 2; order: 1; }
  .rl-action-btn[data-rl-listen] { grid-column: span 2; order: 2; }
  .rl-action-btn[data-rl-share-toggle] { grid-column: span 2; order: 3; }
  .rl-action-btn--ai { grid-column: span 3; order: 4; margin-left: 0; }
  .rl-action-btn--app { grid-column: span 3; order: 5; }
  .rl-action-label-full { display: none; }
  .rl-action-label-mobile { display: inline; }

  .rl-article-rail {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 95;
  }
  .rl-toc-mobile-toggle {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 100px;
    background: rgba(19,21,31,0.96);
    color: #fff;
    box-shadow: 0 12px 34px rgba(0,0,0,0.4);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .rl-toc {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-height: min(62vh, 440px);
    overflow: auto;
    display: none;
    background: rgba(19,21,31,0.98);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  }
  .rl-toc.is-open { display: block; }
  .rl-prose { font-size: 17px; line-height: 1.75; }
}
@media (max-width: 480px) {
  #main-nav { padding: 0 16px; }

  .rl-panic-now {
    margin-top: 14px;
    gap: 10px;
    padding: 11px 10px 11px 13px;
  }
  .rl-panic-now-copy strong { font-size: 14px; }
  .rl-panic-now-copy span { font-size: 12.5px; }
  .rl-panic-now-action {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 12.5px;
  }
  .rl-article-head { padding-top: 34px; }
  .rl-panic-now + .rl-article-head { padding-top: 24px; }
  .rl-article-summary { font-size: 17px; }
  .rl-listen-player,
  .rl-share-popover { padding: 17px 14px; }
  .rl-listen-controls { flex-wrap: wrap; gap: 6px; }
  .rl-icon-btn { width: 42px; height: 42px; flex-basis: 42px; }
  .rl-play-btn { width: 48px; height: 48px; flex-basis: 48px; }
  .rl-speed-label { margin-left: auto; }
  .rl-audio-time { width: 100%; margin: 0; text-align: right; }
  .rl-share-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rl-helpful { padding: 21px 15px; }
  .rl-helpful-actions button { min-width: 0; flex: 1; }
  .rl-ai-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .rl-ai-dialog-inner { padding: 24px 18px 20px; }
  .rl-ai-dialog-actions > button { flex: 1 1 180px; }
}
@media (max-width: 360px) {
  .rl-panic-now {
    align-items: stretch;
    flex-direction: column;
  }
  .rl-panic-now-action { width: 100%; }
}

/* ── motion ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .rl-card:hover, .rl-cat-card:hover, .rl-store-btn:hover, .rl-header-cta:hover { transform: none; }
  /* Stop icon motion entirely rather than merely shortening it. */
  .rl-ico [class^="a-"] { animation: none !important; transform: none !important; opacity: 1 !important; }
}

@media print {
  .rl-header, .rl-footer, .rl-cta, .rl-search, .rl-skip,
  .rl-actions, .rl-reading-progress, .rl-article-rail, .rl-helpful { display: none; }
  body { background: #fff; color: #000; }
}
