/* Reusable main-content treatment for Indian Geography river chapters. */
.river-page {
  --river-bg: var(--shared-chrome-canvas);
  --river-surface: var(--shared-chrome-surface);
  --river-soft: var(--shared-chrome-surface-raised);
  --river-ink: var(--shared-chrome-text);
  --river-muted: var(--shared-chrome-muted);
  --river-line: var(--shared-chrome-border);
  --river-accent: var(--shared-chrome-accent);
  margin: 0;
  color: var(--river-ink);
  background: var(--river-bg);
}
.river-page *, .river-page *::before, .river-page *::after { box-sizing: border-box; }
.river-page .river-reader { width: min(100% - 32px, 940px); margin: 0 auto; padding: 24px 0 64px; }
.river-page .river-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--river-muted); }
.river-page .river-breadcrumb a { color: var(--river-accent); }
.river-page .river-hero { padding: 28px 30px; border: 1px solid var(--river-line); border-radius: 18px; background: var(--river-surface); }
.river-page .river-eyebrow { margin: 0 0 8px; color: var(--river-accent); font-weight: 800; }
.river-page .river-hero h1 { margin: 0 0 12px; }
.river-page .river-hero > p:last-of-type { max-width: 68ch; margin: 0; color: var(--river-muted); }
.river-page .river-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; color: var(--river-muted); }
.river-page .river-hero-meta span + span::before { content: "·"; margin-right: 16px; color: var(--river-accent); }
.river-page .river-section { margin-top: 22px; padding: 26px 30px 20px; border: 1px solid var(--river-line); border-radius: 16px; background: var(--river-surface); scroll-margin-top: calc(var(--shared-topbar-height, 64px) + 16px); }
.river-page .river-order-note { margin-top: 22px; padding: 22px 30px 10px; border: 1px solid var(--river-line); border-radius: 16px; background: var(--river-surface); scroll-margin-top: calc(var(--shared-topbar-height, 64px) + 16px); }
.river-page .river-order-note h2 { margin: 0 0 16px; }
.river-page .river-section-head { display: flex; align-items: start; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--river-line); }
.river-page .river-section-head h2 { flex: 1; min-width: 0; margin: 0; }
.river-page .river-section-no { flex: 0 0 auto; color: var(--river-accent); font-weight: 800; }
.river-page .river-bookmark { flex: 0 0 auto; min-width: 42px; min-height: 42px; border: 1px solid var(--river-line); border-radius: 10px; color: var(--river-accent); background: var(--river-surface); font: inherit; cursor: pointer; }
.river-page .river-bookmark[aria-pressed="true"] { border-color: var(--river-accent); background: var(--shared-chrome-accent-soft); }
.river-page .river-bookmark:focus-visible, .river-page .river-breadcrumb a:focus-visible, .river-page .river-section a:focus-visible { outline: 3px solid var(--shared-chrome-focus); outline-offset: 3px; }
.river-page .river-section h3 { margin: 26px 0 8px; }
.river-page .river-section h4 { margin: 16px 0 6px; color: var(--river-accent); }
.river-page .river-section h3:first-child { margin-top: 0; }
.river-page .river-section p { margin: 8px 0 12px; }
.river-page .river-section ul { margin: 4px 0 16px; padding-left: 1.35em; }
.river-page .river-section li + li { margin-top: 6px; }
.river-page .river-section li::marker { color: var(--river-accent); }
.river-page .river-section li ul { margin: 3px 0 2px; }
.river-page .river-section li li + li { margin-top: 3px; }
.river-page .river-detail-list > li { padding-left: 2px; }
.river-page .river-facts { display: block; margin: 0 0 22px; }
.river-page .river-facts > div { position: relative; min-width: 0; padding: 5px 0 5px 22px; }
.river-page .river-facts > div::before, .river-page .river-pairs > div::before { content: ""; position: absolute; top: 1.08em; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--river-accent); }
.river-page .river-facts dt { display: inline; color: var(--river-ink); font-weight: 800; }
.river-page .river-facts dt::after { content: ": "; }
.river-page .river-facts dd { display: inline; margin: 0; }
.river-page .river-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.river-page .river-split > div { min-width: 0; }
.river-page .river-split h3 { margin-top: 0; }
.river-page .river-pairs { margin: 10px 0 22px; }
.river-page .river-pairs > div { position: relative; padding: 5px 0 5px 22px; }
.river-page .river-pairs dt { display: inline; font-weight: 800; }
.river-page .river-pairs dt::after { content: ": "; }
.river-page .river-pairs dd { display: inline; margin: 0; }
.river-page .river-route { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 20px; padding: 12px 16px; border-left: 3px solid var(--river-accent); border-radius: 0 10px 10px 0; background: var(--river-soft); }
.river-page .river-route span:not(:last-child)::after { content: "→"; margin-left: 8px; color: var(--river-accent); }
.river-page .river-note { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--river-accent); background: var(--river-soft); }
.river-page .river-note strong { color: var(--river-accent); }
.river-page .river-complete-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--river-line); }
.river-page .river-complete-row span { color: var(--river-muted); }
.river-page .river-source-list { padding-left: 1.2em; overflow-wrap: anywhere; }
.river-page .river-source-list a { color: var(--river-accent); }
.river-page .river-end-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.river-page .river-end-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--river-line); border-radius: 10px; color: var(--river-accent); background: var(--river-surface); text-decoration: none; }
.river-page #riverToc .toc-link[hidden] { display: none; }
.river-page .study-table-wrap { margin: 12px 0 18px; }
.river-page .study-data-table { min-width: 560px; }
.river-page .study-data-table th { background: var(--river-soft); }
.river-page .study-data-table td, .river-page .study-data-table th { border-color: var(--river-line); }
@media (max-width: 720px) {
  .river-page .river-split { grid-template-columns: 1fr; gap: 0; }
  .river-page .river-hero, .river-page .river-section, .river-page .river-order-note { padding: 20px 18px; }
  .river-page .river-hero-meta span + span::before { margin-right: 8px; }
}
@media (max-width: 420px) {
  .river-page .river-reader { width: min(100% - 24px, 940px); }
  .river-page .river-bookmark { min-width: 40px; }
}
@media print {
  .river-page .river-reader { width: 100%; padding: 0; }
  .river-page .river-hero, .river-page .river-section, .river-page .river-order-note { border: 0; padding: 0; background: transparent; }
  .river-page .river-bookmark, .river-page .river-complete-row, .river-page .river-end-nav { display: none; }
  .river-page .river-section { break-inside: auto; }
  .river-page .river-facts > div, .river-page .river-pairs > div { break-inside: avoid; }
}
