:root {
  --night: #141B2B;
  --storm: #2A3550;
  --deep: #0F1F33;
  --foam: #EEF5F7;
  --card: #FFFFFF;
  --ink: #14202B;
  --ink-2: #4B5E6C;
  --line: #CFE0E6;
  --gold: #F5B53A;
  --gold-d: #D9962A;
  --gold-l: #FFD36B;
  --gold-bg: #FDF1D5;
  --teal: #2FA8B8;
  --teal-d: #1C7482;
  --teal-bg: #DDF1F4;
  --mist: #E4EAEE;
  --on-night: #EAF4F7;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .08);
  --font-head: "Bevan", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-d); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 16px; border-radius: var(--radius); z-index: 10; }
.skip:focus { left: 8px; }
.rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rv-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.rv-small { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 8px 0 0; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; margin: 0; letter-spacing: 0; }
h2 { font-size: 28px; margin-bottom: 16px; }
h3 { font-size: 18px; margin-bottom: 8px; }

/* header */
.rv-top { background: var(--night); border-bottom: 4px solid var(--gold); }
.rv-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.rv-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-night); }
.rv-brand:hover { color: var(--gold-l); }
.rv-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.rv-brand-name { font-family: var(--font-head); font-size: 18px; }
.rv-brand-sub { font-size: 12px; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; }
.rv-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end; }
.rv-nav a { color: var(--on-night); text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 0; border-bottom: 2px solid transparent; }
.rv-nav a:hover { color: var(--gold-l); border-bottom-color: var(--gold); }

/* hero */
.rv-hero { background: linear-gradient(180deg, var(--night) 0%, var(--storm) 62%, var(--deep) 100%); color: var(--on-night); padding: 48px 0 64px; }
.rv-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.rv-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); margin: 0 0 12px; }
.rv-kicker-light { color: var(--gold-l); }
.rv-h1 { font-size: 48px; margin-bottom: 16px; }
.rv-h1-page { font-size: 36px; color: var(--ink); }
.rv-hero .rv-h1 { color: var(--on-night); }
.rv-lead { font-size: 18px; margin: 0 0 24px; }
.rv-hero-fig { margin: 0; border: 4px solid var(--gold); border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: var(--shadow-2); }
.rv-hero-fig figcaption { font-size: 12px; padding: 8px 12px; color: var(--on-night); background: var(--night); }
.rv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--gold); color: var(--night); font-weight: 700; font-size: 16px; text-decoration: none; border-radius: var(--radius); border: 2px solid var(--gold); }
.rv-btn:hover { background: var(--gold-d); border-color: var(--gold-d); color: var(--night); }
.rv-btn.ghost { background: transparent; color: var(--on-night); border-color: var(--teal); }
.rv-btn.ghost:hover { background: var(--teal); color: var(--night); }
.rv-page .rv-btn.ghost { color: var(--teal-d); }
.rv-page .rv-btn.ghost:hover { color: var(--night); }

/* facts */
.rv-facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 24px; margin-top: -32px; position: relative; }
.rv-facts-title { font-size: 18px; margin-bottom: 16px; }
.rv-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
.rv-fact { border-left: 4px solid var(--teal); padding-left: 12px; }
.rv-fact dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.rv-fact dd { margin: 4px 0 0; font-weight: 700; font-size: 16px; }

/* river rail */
.rv-river { position: relative; padding-top: 48px; padding-bottom: 16px; }
.rv-river::before { content: ""; position: absolute; left: 34px; top: 48px; bottom: 0; width: 4px; background: repeating-linear-gradient(to bottom, var(--teal) 0 12px, transparent 12px 20px); }
.rv-sec, .rv-guides { position: relative; padding: 0 0 48px 48px; }
.rv-sec::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: var(--gold); border: 4px solid var(--night); border-radius: 50%; box-sizing: content-box; }
.rv-mile { display: inline-block; margin: 0 0 8px; padding: 4px 12px; background: var(--night); color: var(--gold-l); font-family: var(--font-head); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-radius: 8px; }
.rv-prose { max-width: 70ch; }
.rv-prose p { margin: 0 0 16px; }
.rv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.rv-fig { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow-1); }
.rv-fig figcaption { font-size: 14px; color: var(--ink-2); padding: 8px 12px; }
.rv-credit { display: block; font-size: 12px; }

/* steps */
.rv-steps { list-style: none; counter-reset: step; margin: 16px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rv-steps li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 64px; box-shadow: var(--shadow-1); }
.rv-steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--night); font-family: var(--font-head); font-size: 16px; border-radius: 50%; }
.rv-steps p { margin: 0; font-size: 16px; }

/* lists, tags */
.rv-checks { list-style: none; margin: 16px 0 0; padding: 0; max-width: 70ch; }
.rv-checks li { position: relative; padding: 0 0 12px 32px; }
.rv-checks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 12px; background: var(--teal); border-radius: 50%; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: 8px; line-height: 24px; white-space: nowrap; }
.tag-ok { background: var(--teal-bg); color: var(--teal-d); }
.tag-rep { background: var(--gold-bg); color: var(--ink); }
.tag-no { background: var(--mist); color: var(--ink-2); }

/* tables */
.rv-tablewrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.rv-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.rv-table th, .rv-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rv-table thead th { background: var(--night); color: var(--on-night); font-size: 14px; }
.rv-table tbody th { font-weight: 700; }
.rv-table tbody tr:last-child th, .rv-table tbody tr:last-child td { border-bottom: 0; }

/* badge ladder */
.rv-ladder { list-style: none; margin: 16px 0; padding: 0; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.rv-ladder li { display: grid; grid-template-columns: 72px 1fr 112px; grid-template-areas: "mile name n" "bar bar bar"; gap: 4px 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rv-ladder li:last-child { border-bottom: 0; }
.rv-ladder-mile { grid-area: mile; font-family: var(--font-head); font-size: 14px; color: var(--night); background: var(--gold); border-radius: 8px; text-align: center; padding: 4px 0; }
.rv-ladder-name { grid-area: name; font-weight: 700; font-size: 16px; }
.rv-ladder-n { grid-area: n; text-align: right; font-weight: 700; font-size: 16px; }
.rv-ladder-bar { grid-area: bar; display: block; height: 8px; background: var(--mist); border-radius: 8px; overflow: hidden; }
.rv-ladder-bar i { display: block; height: 100%; background: var(--teal); border-radius: 8px; min-width: 4px; }

/* codes */
.rv-codes { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.rv-codes li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); padding: 12px 16px; }
.rv-codes code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; font-size: 18px; background: var(--mist); padding: 4px 12px; border-radius: 8px; }

.rv-more { margin: 8px 0 0; font-weight: 700; }
.rv-more a::after { content: " \2192"; }

/* guides */
.rv-guides { padding-bottom: 32px; }
.rv-guides:not(:has(li)) { display: none; }
.rv-guides-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rv-guides-list li { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-1); }
.rv-guides-list a { font-weight: 700; font-size: 16px; }
.rv-guides-list span { font-size: 14px; color: var(--ink-2); }

/* answer / spoiler */
.rv-answer { background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--gold); border-radius: var(--radius); padding: 16px 24px; margin: 0 0 24px; box-shadow: var(--shadow-1); }
.rv-answer p { margin: 0; }
.rv-answer-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); margin-bottom: 4px !important; }
.rv-spoiler { background: var(--gold-bg); border-radius: var(--radius); padding: 12px 16px; font-size: 16px; font-weight: 700; margin: 0 0 24px; }

/* ad */
.ad-slot { margin: 16px auto 48px; max-width: 360px; text-align: center; }
.ad-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.ad-box { min-height: 250px; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* FAQ */
.rv-faqwrap, .rv-sources, .rv-page-faq, .rv-page-sources { margin: 0 0 48px; }
.rv-faq { max-width: 820px; display: grid; gap: 8px; }
.rv-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.rv-faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: outside; }
.rv-faq details[open] summary { color: var(--teal-d); }
.rv-faq p { margin: 0 0 16px; font-size: 16px; }
.rv-sources-list, .rv-sources { font-size: 16px; padding-left: 24px; max-width: 820px; }
.rv-sources-list li, .rv-sources li { margin-bottom: 8px; }

/* inner pages */
.rv-page { padding-top: 32px; padding-bottom: 48px; }
.rv-article { max-width: 820px; }
.rv-crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }
.rv-crumbs a { color: var(--teal-d); }
.rv-body { max-width: 70ch; }
.rv-body h2 { margin-top: 48px; font-size: 28px; }
.rv-body h3 { margin-top: 24px; }
.rv-body p, .rv-body ul, .rv-body ol { margin: 0 0 16px; }
.rv-body li { margin-bottom: 8px; }
.rv-body table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 16px 0 24px; background: var(--card); border: 1px solid var(--line); display: block; overflow-x: auto; }
.rv-body th, .rv-body td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rv-body thead th { background: var(--night); color: var(--on-night); font-size: 14px; }
.rv-body code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--mist); padding: 0 8px; border-radius: 8px; }
.rv-ptoc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 24px; margin: 0 0 24px; max-width: 70ch; }
.rv-toc-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.rv-ptoc ol { margin: 0; padding-left: 24px; font-size: 16px; columns: 2; }
.rv-related { margin-top: 48px; border-top: 4px solid var(--gold); padding-top: 16px; }
.rv-related ul { margin: 0; padding-left: 24px; }
.rv-legal .rv-body h2 { font-size: 22px; margin-top: 32px; }
.rv-lost { text-align: left; }

/* footer */
.rv-foot { background: var(--night); color: var(--on-night); border-top: 4px solid var(--teal); padding: 32px 0; margin-top: 48px; }
.rv-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.rv-foot-about { max-width: 560px; }
.rv-foot-name { font-family: var(--font-head); font-size: 18px; margin: 0 0 8px; }
.rv-foot .rv-small { color: var(--on-night); opacity: .85; }
.rv-foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }
.rv-foot-links a { color: var(--gold-l); font-weight: 700; font-size: 14px; }
.rv-copy { margin-top: 24px; }

@media (max-width: 860px) {
  .rv-hero-in { grid-template-columns: 1fr; gap: 24px; }
  .rv-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .rv-split { grid-template-columns: 1fr; }
  .rv-guides-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .rv-wrap { padding: 0 16px; }
  .rv-top-in { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rv-nav { justify-content: flex-start; gap: 4px 16px; }
  .rv-hero { padding: 32px 0 48px; }
  .rv-h1 { font-size: 32px; }
  .rv-h1-page { font-size: 28px; }
  h2, .rv-body h2 { font-size: 22px; }
  .rv-btn { width: 100%; }
  .rv-facts { padding: 16px; }
  .rv-river::before { left: 26px; }
  .rv-sec, .rv-guides { padding-left: 40px; }
  .rv-steps { grid-template-columns: 1fr; }
  .rv-ladder li { grid-template-columns: 64px 1fr 88px; padding: 12px; }
  .rv-ptoc ol { columns: 1; }
  .ad-slot { max-width: 100%; }
}


