/* ============================================================
   rivers.css -- shared styles for per-river landing pages.
   ------------------------------------------------------------
   Loaded by every page under /rivers/<slug>/index.html.

   Color tokens mirror planner.html / map.html (the "slimmer
   system" referenced in those files). When the site-wide
   tokens.css extraction finally happens, these go too --
   they're already aligned.

   Naming convention: all classes are prefixed `r-` to avoid
   collisions with the main site's editorial CSS classes
   (which use unprefixed names like `.river-summary`, `.trip`).
   That gives us a clean partition: main pages and per-river
   pages can co-evolve without stepping on each other.
   ============================================================ */

:root {
  --bg: #f5f2eb; --bg-warm: #ede8db; --surface: #fffef9; --surface-2: #faf6ea;
  --ink: #1a1812; --ink-2: #3a3c2e; --ink-3: #6a665a; --ink-faint: #8a8478;
  --rule: #d9d2c1; --rule-soft: #ebe5d6;
  --accent: #2f5d3b; --accent-soft: #a8c890;
  --accent-deep: #1e3a2a;
  --copper: #b8531a;

  --good:    #4a8b2c; --good-soft:    #dbe8c6; --good-deep:    #2b5a18;
  --caution: #c69200; --caution-soft: #f3e3b5; --caution-deep: #5e4500;
  --high:    #c05020; --high-soft:    #f0d8c0; --high-deep:    #6e2f10;
  --flood:   #a01010;

  --shadow-2: 0 6px 24px rgba(20,18,12,.10);
  --shadow-1: 0 2px 8px rgba(20,18,12,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 16px; font-weight: 500; line-height: 1.6;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  /* Guards against any wide child (multi-column gauge table, an
     errant chip strip) blowing the body width past the viewport
     on mobile and dragging all the prose with it. */
  overflow-x: hidden;
}
a { color: inherit; }

.r-skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 4px;
  font-family: 'DM Mono', monospace; font-size: 12px;
}
.r-skip-link:focus { left: 16px; top: 16px; z-index: 999; }

/* ----------------------------------------------------------------
   HERO + SITE NAV  (matches planner.html / map.html visual lang)
   ---------------------------------------------------------------- */
.r-hero { position: relative; min-height: 320px; color: #fff; overflow: hidden; isolation: isolate; }
.r-hero-bg { position: absolute; inset: 0; z-index: -2; }
.r-hero-bg::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,40,28,.55) 0%, rgba(30,58,42,.65) 50%, rgba(15,25,18,.75) 100%); }
.r-hero-bg::after { content: ''; position: absolute; left:0; right:0; bottom:0; height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(10,20,12,.55) 100%); }

.r-nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 48px; position: relative; z-index: 2; }
.r-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.r-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; }
.r-brand-mark svg { width: 100%; height: 100%; }
.r-brand-text { line-height: 1; }
.r-brand-text .b1 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; letter-spacing: .02em; display: block; }
.r-brand-text .b2 { font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .8; display: block; margin-top: 2px; }

.r-nav-links { display: flex; gap: 36px; font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.r-nav-links a { color: #fff; text-decoration: none; opacity: .78; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: all .2s; }
.r-nav-links a:hover { opacity: 1; }
.r-nav-links a.active { opacity: 1; border-bottom-color: var(--accent-soft); }

/* Hamburger -- same pattern as planner.html / map.html / boat-guide.html
   so the mobile nav behaves identically across the entire site.
   Hidden on desktop, shown at <=640px via the mobile media query
   below. JS in rivers-page.js handles the toggle + aria-expanded. */
.r-hamburger { display: none; flex-direction: column; justify-content: space-between; width: 26px; height: 20px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.r-hamburger span { display: block; width: 100%; height: 2px; background: rgba(255,255,255,.9); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.r-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.r-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.r-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.r-hero-content { max-width: 1320px; margin: 0 auto; padding: 14px 48px 60px; position: relative; z-index: 1; }
.r-hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  opacity: .82; margin-bottom: 14px; display: flex; align-items: center; gap: 14px;
}
.r-hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--accent-soft); }

h1.r-hero-title { font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(38px, 5.8vw, 68px); line-height: .96; letter-spacing: -.025em; margin: 0 0 14px; }
/* Brand accent: trailing period in copper, mirrors .ri-card-name::after on /rivers/. */
h1.r-hero-title::after { content: '.'; color: var(--copper); }

.r-hero-sub { max-width: 680px; opacity: .88; font-size: 16px; margin: 0 0 22px; }
.r-hero-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; font-family: 'DM Mono', monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .86; }
.r-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.r-hero-meta strong { font-weight: 700; letter-spacing: .04em; text-transform: none; font-family: 'Inter Tight', sans-serif; font-size: 13.5px; }

/* ----------------------------------------------------------------
   RIVER SUB-NAV (the "tabby chrome" -- all 10 rivers as chips)
   ---------------------------------------------------------------- */
.r-subnav-bar {
  background: var(--accent-deep);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  /* Flex parent so the chip strip and the site-menu button can
     coexist: chips on the left (scrollable), menu button pinned
     on the right (always visible). */
  display: flex; align-items: stretch;
}
.r-subnav-inner {
  flex: 1; min-width: 0;  /* let it shrink so overflow-x works */
  padding: 10px 24px;
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.r-subnav-inner::-webkit-scrollbar { display: none; }

/* Always-available site menu, anchored to the right of the sticky
   river-chip bar so it's reachable from any scroll position. Same
   five links as the hero hamburger (River Levels, Map, Guide,
   Boat Guide, Planner) but exposed via a small icon button + a
   drop-down panel. Adds no header height. */
/* Hidden on desktop because the hero already shows the full text
   nav (River Levels / Map / Guide / Boat Guide / Planner). Only
   appears on mobile where the hero hamburger scrolls away. */
.r-subnav-menu-btn {
  display: none;
  flex-shrink: 0;
  width: 48px; min-height: 44px;
  background: rgba(255,255,255,.06);
  border: 0; border-left: 1px solid rgba(255,255,255,.10);
  cursor: pointer; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  transition: background .15s ease;
}
.r-subnav-menu-btn:hover { background: rgba(255,255,255,.12); }
.r-subnav-menu-btn span {
  display: block; width: 18px; height: 2px;
  background: rgba(255,255,255,.85); border-radius: 1px;
  transition: transform .22s ease, opacity .22s ease;
}
.r-subnav-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.r-subnav-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.r-subnav-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.r-subnav-menu {
  position: absolute; top: 100%; right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 0;
  box-shadow: 0 10px 24px rgba(20,18,12,.18);
  display: none;
  z-index: 60;
}
.r-subnav-menu.open { display: block; }
.r-subnav-menu a {
  display: block; padding: 14px 22px;
  color: var(--ink); text-decoration: none;
  font-family: 'DM Mono', monospace; font-size: 11.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid var(--rule-soft);
}
.r-subnav-menu a:last-child { border-bottom: 0; }
.r-subnav-menu a:hover { background: var(--bg-warm); color: var(--accent); }
.r-subnav-label {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  padding: 0 14px 0 8px; white-space: nowrap; flex-shrink: 0;
}
.r-subnav-chip {
  font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.78); text-decoration: none;
  padding: 7px 14px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
  transition: all .15s ease;
}
.r-subnav-chip:hover { background: rgba(255,255,255,.08); color: #fff; }
.r-subnav-chip.active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }

/* ----------------------------------------------------------------
   MAIN CONTENT LAYOUT
   ---------------------------------------------------------------- */
.r-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.r-main { padding: 56px 0 80px; }

/* Quick-facts strip floats over the hero/content seam */
.r-stats {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  padding: 22px 28px;
  margin: -38px auto 44px;
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px 32px;
  position: relative; z-index: 4;
}
.r-stat .k {
  display: block;
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.r-stat .v {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600;
  color: var(--ink); line-height: 1.1; letter-spacing: -.01em;
}
.r-stat .vsmall { font-size: 15px; font-family: 'Inter Tight', sans-serif; font-weight: 600; }
.r-stat-status .v { display: inline-flex; align-items: center; gap: 8px; }
.r-stat-status .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-faint); display: inline-block; }
.r-stat-status .dot.good    { background: var(--good); }
.r-stat-status .dot.caution { background: var(--caution); }
.r-stat-status .dot.high    { background: var(--high); }
.r-stat-status .dot.flood   { background: var(--flood); }

/* Section primitives */
.r-section { margin-bottom: 64px; }
.r-section-label {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--copper); margin-bottom: 10px;
}
h2.r-section-title {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(28px, 3.6vw, 38px); line-height: 1.05; letter-spacing: -.015em;
  margin: 0 0 18px; color: var(--ink);
}
.r-section-lede {
  font-size: 17.5px; line-height: 1.6; color: var(--ink-2);
  max-width: 760px; margin: 0 0 28px;
}
.r-section p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; }
.r-section p:last-child { margin-bottom: 0; }
.r-section h3 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 22px; line-height: 1.25; margin: 28px 0 10px; color: var(--ink);
}
.r-section ul { padding-left: 22px; margin: 0 0 14px; }
.r-section li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 6px; }

/* Two-column card grid for outfitters / campgrounds / lodging */
.r-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.r-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 10px;
}
.r-card-name {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 18px; line-height: 1.25; color: var(--ink);
}
.r-card-loc {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.r-card-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.r-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.r-tag {
  display: inline-block;
  background: var(--bg-warm); color: var(--ink-2);
  font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 4px; font-weight: 600;
}
.r-tag.rv      { background: #cde0c0; color: var(--good-deep); }
.r-tag.tent    { background: #e3dcc8; color: var(--ink-2); }
.r-tag.cabin   { background: #f0e2c4; color: var(--caution-deep); }
.r-tag.public  { background: #d3dde8; color: #2a4866; }
.r-tag.private { background: #ebd5d0; color: #6a3020; }
.r-tag.nps     { background: #cde0c0; color: var(--good-deep); }
.r-tag.featured{ background: var(--copper); color: #fff; }
.r-tag.verified{ background: var(--accent-soft); color: var(--accent-deep); }

/* Sections table (Buffalo multi-gauge etc.). The wrapper is what
   gets the horizontal-scroll behaviour at mobile widths -- the
   table itself stays a real table for screen readers and avoids
   reflowing into ambiguous stacks. Add <div class="r-table-scroll">
   around the <table> in markup to opt in. */
.r-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.r-sections-table {
  width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
}
.r-sections-table th {
  background: var(--bg-warm); padding: 12px 14px; text-align: left;
  font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}
.r-sections-table td { padding: 14px; border-top: 1px solid var(--rule-soft); font-size: 14.5px; color: var(--ink-2); vertical-align: top; }
.r-sections-table td strong { color: var(--ink); }
.r-sections-table tr:hover td { background: var(--surface-2); }

/* Trips list */
.r-trips { display: flex; flex-direction: column; gap: 14px; }
.r-trip {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
  padding: 18px 22px; box-shadow: var(--shadow-1);
}
.r-trip-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; color: var(--ink); margin: 0 0 4px; }
.r-trip-detail { font-size: 14px; color: var(--ink-3); margin: 0 0 10px; }
.r-trip-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.r-trip-actions a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700; color: var(--accent);
  text-decoration: none; padding: 6px 10px; border: 1px solid var(--accent); border-radius: 4px;
}
.r-trip-actions a:hover { background: var(--accent); color: #fff; }

/* FAQ */
.r-faq { display: flex; flex-direction: column; gap: 4px; }
.r-faq details {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  padding: 14px 18px;
}
.r-faq summary {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; color: var(--ink);
  cursor: pointer; list-style: none; outline: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.r-faq summary::after {
  content: '+'; font-family: 'DM Mono', monospace; font-size: 18px;
  color: var(--copper); font-weight: 700; transition: transform .2s;
}
.r-faq details[open] summary::after { content: '−'; }
.r-faq details > p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.r-faq details > p:last-child { margin-bottom: 0; }

/* Related rivers strip */
.r-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.r-related a {
  display: block; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--ink);
  transition: all .15s;
}
.r-related a:hover { border-color: var(--accent); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.r-related .rel-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.r-related .rel-loc { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* CTA block back to flow finder / planner */
.r-cta-bar {
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  color: #fff; border-radius: 12px; padding: 32px 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.r-cta-bar h3 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 24px; margin: 0; line-height: 1.2; max-width: 540px; }
.r-cta-bar .r-cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.r-cta-bar a {
  display: inline-block;
  font-family: 'DM Mono', monospace; font-size: 11.5px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 700; text-decoration: none;
  padding: 12px 20px; border-radius: 6px;
}
.r-cta-bar a.primary { background: #fff; color: var(--accent-deep); }
.r-cta-bar a.primary:hover { background: var(--accent-soft); }
.r-cta-bar a.ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.r-cta-bar a.ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Footer */
.r-footer {
  background: var(--accent-deep); color: rgba(255,255,255,.7);
  padding: 36px 24px; text-align: center;
  font-family: 'DM Mono', monospace; font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase;
}
.r-footer a { color: var(--accent-soft); text-decoration: none; margin: 0 14px; }
.r-footer a:hover { color: #fff; }

/* ----------------------------------------------------------------
   TABLE OF CONTENTS BAR  (sticky scroll-spy nav)
   ----------------------------------------------------------------
   Sits directly beneath the river sub-nav and stays pinned as the
   user scrolls. Each chip is an anchor link to a top-level section
   on the page (data-target matches a section id). The matching
   chip gets .active applied by the scroll-spy in rivers-page.js
   based on which section is currently in the viewport.

   Stacking: river sub-nav at top:0 (height ~46px), TOC bar pinned
   immediately under it via top:46px. scroll-margin-top on each
   section accounts for the combined sticky-header height so anchor
   jumps land at the right place.

   Design intent: the chips are the page's table of contents, made
   permanently visible. Users see the full menu of what's on the
   page at a glance and can hop directly to any of it. No scroll-
   and-discover hunting required. */
.r-toc-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 46px; z-index: 49;
  box-shadow: 0 2px 6px rgba(20,18,12,.04);
}
.r-toc-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 10px 24px;
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.r-toc-inner::-webkit-scrollbar { display: none; }
.r-toc-label {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-faint);
  padding: 0 14px 0 4px; white-space: nowrap; flex-shrink: 0;
}
.r-toc-chip {
  font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--ink-3); text-decoration: none;
  padding: 7px 12px; border-radius: 6px;
  white-space: nowrap; flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
.r-toc-chip:hover { background: var(--bg-warm); color: var(--ink); }
.r-toc-chip.active {
  color: var(--accent);
  background: var(--bg-warm);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Anchor jump offset: when the user clicks a TOC chip the target
   section needs to land below both sticky bars (river sub-nav 46px
   plus TOC bar ~44px = 90px, plus a little breathing room). */
.r-section[id] { scroll-margin-top: 110px; }

/* Section badge -- small tag used inside Outfitter / Camping /
   Lodging cards to preserve the river-section context (Upper /
   Middle / Lower) without grouping the cards by section. */
.r-tag.section {
  background: #d3dde8; color: #2a4866;
  letter-spacing: .14em;
}

/* Mobile */
@media (max-width: 760px) {
  /* Reveal hamburger, let .r-nav wrap so the unfurled menu drops
     beneath the brand+hamburger row when .open is toggled by JS.
     Hamburger lives in the hero, so it scrolls away with the hero;
     the sticky river sub-nav and TOC bar take over once you scroll
     past the hero. No z-index collision with the sticky bars. */
  .r-hamburger { display: flex; }
  .r-nav { padding: 16px 18px; flex-wrap: wrap; align-items: center; }
  .r-nav-links {
    display: none; width: 100%; flex-direction: column; gap: 0;
    margin-top: 6px; padding-top: 4px;
    border-top: 1px solid rgba(168,200,144,.2);
  }
  .r-nav-links.open { display: flex; }
  .r-nav-links a {
    padding: 12px 0; min-height: 44px;
    display: flex; align-items: center;
    font-size: 13px; letter-spacing: .2em;
    border-bottom: 1px solid rgba(168,200,144,.08);
  }
  .r-nav-links a:last-child { border-bottom: none; }
  .r-brand-text .b2 { display: none; }
  .r-hero-content { padding: 8px 20px 50px; }
  .r-hero-meta { gap: 12px 18px; font-size: 10px; }
  .r-wrap { padding: 0 18px; }
  .r-stats { margin: -30px 18px 36px; padding: 18px 18px; gap: 16px 18px; }
  .r-stat .v { font-size: 18px; }
  .r-main { padding: 40px 0 60px; }
  .r-section { margin-bottom: 48px; }
  .r-cta-bar { padding: 24px 22px; }
  .r-cta-bar h3 { font-size: 20px; }
  .r-subnav-inner { padding: 8px 14px; }
  .r-subnav-label { display: none; }
  .r-subnav-menu-btn { display: flex; width: 44px; }
  .r-subnav-menu { min-width: 200px; }
  .r-toc-inner { padding: 8px 14px; }
  .r-toc-label { display: none; }
  .r-toc-chip { font-size: 12.5px; padding: 6px 10px; }
  .r-section[id] { scroll-margin-top: 100px; }
}
