/* ICONIC Research: article and hub pages, on top of the site's own styles.css + mobile-first.css
   and the docs components in /agents/reserve/reserve.css (rail, chips, sections, code, FAQ). */

.rs-hero { grid-template-columns: minmax(0,1fr) !important; gap: 0; padding-bottom: 20px; }
.rs-hero > div { max-width: 1040px; }
.rs-hero h1 { font-size: clamp(38px, 8.4vw, 76px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.rs-hub h1 { font-size: clamp(48px, 12.6vw, 112px); line-height: .93; letter-spacing: -.055em; }
.rs-hero .rv-deck { max-width: 820px; }
.rs-hero .rv-deck a, .rs-prose a, .rs-meta a, .rs-card p a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(192,198,255,.4); }
.rs-hero .rv-deck a:hover, .rs-prose a:hover, .rs-meta a:hover { color: var(--pearl); }

.rs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.rs-tags span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: #c4c8d8; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.rs-meta { margin: 18px 0 0; color: #8d94a9; font-size: 13px; line-height: 1.6; }

.rs-answer { max-width: 900px; margin-top: 34px; padding: 20px 22px 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(7, 8, 19, .62); backdrop-filter: blur(18px); }
.rs-answer .rs-label { color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.rs-answer strong { display: block; margin-top: 12px; color: var(--pearl); font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 1.6vw, 23px); font-weight: 400; line-height: 1.4; }
.rs-answer p { margin: 12px 0 0; color: #aeb3c7; font-size: 15px; line-height: 1.65; }

/* Article sections: the Reserve section pattern, sized for sentence-length headings. */
.rs-sec h2 { max-width: 900px; font-size: clamp(32px, 6.4vw, 52px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.rs-prose { max-width: 820px; margin-top: 26px; }
.rs-prose > p, .rs-prose > ul li, .rs-prose > ol li { margin: 0 0 18px; color: #c9ccda; font-size: 16px; line-height: 1.7; }
.rs-prose > p strong, .rs-prose > p em { color: var(--pearl); }
.rs-prose > p strong { font-weight: 600; }
.rs-prose h3 { margin: 34px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.rs-prose .rv-code { margin: 4px 0 22px; }
.rs-prose .rv-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.rs-prose .rs-note { color: #8d94a9; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.rs-wide { max-width: none; }
.rs-wide > p { max-width: 820px; }

.rs-table { margin: 6px 0 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.02); overflow-x: auto; }
.rs-table table { width: 100%; min-width: 560px; border-collapse: collapse; }
.rs-table th, .rs-table td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.07); }
.rs-table th { color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; border-bottom-color: var(--line); }
.rs-table td { color: #c9ccda; font-size: 14px; line-height: 1.55; }
.rs-table td:first-child { color: var(--pearl); }
.rs-table tr:last-child td { border-bottom: 0; }

.rs-sec .rv-faq { max-width: 900px; }

.rs-cta { display: block; margin-top: 84px; padding: 28px; border: 1px solid rgba(164,174,255,.25); border-radius: 22px; background: linear-gradient(180deg, rgba(77,85,168,.16), rgba(10,13,27,.4)); transition: transform .35s ease, border-color .35s ease; }
.rs-cta:hover { transform: translateY(-4px); border-color: rgba(164,174,255,.45); }
.rs-cta strong { display: block; max-width: 900px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 3vw, 38px); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; }
.rs-cta span { display: block; margin-top: 14px; color: #9ea4b9; font-size: 14px; line-height: 1.6; }

/* Hub */
.rs-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; padding: 30px 0 0; }
.rs-card { min-height: 0; max-width: 900px; }
.rs-card h2 { margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 3vw, 36px); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; }
.rs-card h2 a:hover { color: var(--accent-2); }
.rs-card .button { align-self: flex-start; margin-top: 10px; }
.rs-after { padding-top: 34px; }
.rs-foot footer { margin-top: 90px; }

@media (prefers-reduced-motion: reduce) { .rs-cta, .rs-cta:hover { transition: none; transform: none; } }

/* White-paper components: evidence labels, figures, formulas, glossary, references. */
.rs-paper h1 { font-size: clamp(34px, 6.6vw, 64px); line-height: 1.02; }
.rs-paper .hero-actions { margin-top: 22px; }
.rs-meta strong { color: #c9ccda; font-weight: 600; }
.rs-answer > p:first-of-type { margin-top: 12px; }
.rs-wide > ul, .rs-wide > ol, .rs-wide > h3, .rs-wide > dl { max-width: 820px; }
.rs-prose > ul, .rs-prose > ol { margin: 0 0 22px; padding-left: 22px; }
.rs-prose > ul li, .rs-prose > ol li { margin-bottom: 10px; }
.rs-prose > ol li strong, .rs-prose > ul li strong { color: var(--pearl); font-weight: 600; }
.rs-prose h3 { scroll-margin-top: 120px; }
.rs-prose h3 .rs-ev { vertical-align: 4px; margin-left: 6px; }
.rs-prose > p > i, .rs-table td i, .rs-plain i, .rs-gloss i { font-family: Georgia, "Times New Roman", serif; }
.rs-prose sub, .rs-prose sup { font-size: .72em; line-height: 0; }

.rs-ev { display: inline-block; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: Inter, ui-sans-serif, Arial, sans-serif; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; vertical-align: 2px; }
.rs-ev-obs { color: var(--success); border-color: rgba(185,255,210,.35); background: rgba(185,255,210,.07); }
.rs-ev-inf { color: var(--warning); border-color: rgba(255,217,161,.35); background: rgba(255,217,161,.07); }
.rs-ev-mod { color: var(--accent-2); border-color: rgba(185,192,255,.4); background: rgba(146,156,255,.1); }
.rs-ev-syn { color: #c9ccda; border-style: dashed; }
.rs-evs { white-space: nowrap; }
.rs-evs .rs-ev { display: block; width: max-content; margin: 0 0 6px; }

.rs-callout { padding: 16px 20px; border-left: 2px solid var(--accent-2); background: rgba(146,156,255,.06); }
.rs-cap { margin-bottom: 8px !important; color: #aeb3c7 !important; font-size: 14px !important; }
.rs-cap strong { color: var(--pearl); }
.rs-table th.num, .rs-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rs-table td.num:first-child { color: #c9ccda; }
.rs-notation td:first-child { width: 120px; font-family: Georgia, "Times New Roman", serif; font-size: 16px; white-space: nowrap; }

.rs-fig { margin: 6px 0 26px; padding: 22px 20px 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.02); }
.rs-fig-scroll { overflow-x: auto; }
.rs-fig svg { display: block; width: 100%; min-width: 620px; height: auto; }
.rs-fig circle, .rs-fig rect[rx="3"] { transition: filter .2s ease; }
.rs-fig circle:hover, .rs-fig rect[rx="3"]:hover { filter: brightness(1.25); }
.rs-fig figcaption { margin-top: 16px; color: #aeb3c7; font-size: 14px; line-height: 1.6; }
.rs-fig figcaption strong { color: var(--pearl); font-weight: 600; }
.rs-fig figcaption a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.rs-math { display: flex; flex-wrap: wrap; gap: 8px 34px; margin: 4px 0 22px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(4,5,12,.72); color: #dfe2ff; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.7; overflow-x: auto; }
.rs-math sub, .rs-math sup { font-size: .7em; line-height: 0; }
.rs-plain { padding-left: 16px; border-left: 1px solid var(--line-strong); color: #9ea4b9 !important; font-size: 14px !important; line-height: 1.65 !important; }

.rs-gloss { margin: 0; }
.rs-gloss dt { margin-top: 22px; color: var(--pearl); font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.3; }
.rs-gloss dt:first-child { margin-top: 0; }
.rs-gloss dd { margin: 6px 0 0; color: #aeb3c7; font-size: 15px; line-height: 1.65; }
.rs-refs li { font-size: 15px !important; overflow-wrap: anywhere; }
.rs-refs em { color: var(--pearl); }

@media (min-width: 1100px) {
  .rs-rail-long nav { padding-top: 64px; max-height: calc(100vh - 108px); overflow-y: auto; scrollbar-width: none; }
  .rs-rail-long a { padding-top: 5px; padding-bottom: 5px; }
  .rs-rail-long small.rv-rail-gap { margin-top: 18px; }
}
.rs-acc { position: relative; display: inline-block; }
.rs-acc::before { position: absolute; left: 0; right: 0; top: -.62em; text-align: center; font-style: normal; font-size: .85em; line-height: 1; pointer-events: none; }
.rs-til::before { content: "~"; top: -.5em; }
.rs-hat::before { content: "^"; top: -.38em; }
.rs-bar { text-decoration: overline; text-decoration-thickness: 1px; }
.rs-bar::before { content: none; }

/* Print: dark-on-white paper layout, used for the downloadable PDF. */
@media print {
  html, body { background: #fff !important; color: #111 !important; }
  #field, .noise, .cursor-glow, .site-header, .rv-rail, .rv-chipnav, .rs-cta, .rs-foot, .hero-actions, .sticky-cta { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .section-shell { width: 100% !important; margin: 0 !important; }
  .rv-docs { display: block !important; padding: 0 !important; }
  .rs-hero { padding: 0 0 8px !important; }
  .rs-hero h1, .rs-paper h1 { margin-top: 10px; color: #111; font-size: 27px; line-height: 1.12; letter-spacing: -.02em; }
  .rs-hero h1 em, .rs-sec h2 em { color: #111; }
  .eyebrow, .section-kicker { color: #555 !important; font-size: 8px; }
  .live-dot { display: none; }
  .rs-hero .rv-deck { max-width: none; margin-top: 10px; color: #333; font-size: 13px; line-height: 1.5; }
  .rs-meta { margin-top: 10px; color: #444; font-size: 9.5px; }
  .rs-meta strong { color: #111; }
  .rs-answer { max-width: none; margin-top: 14px; padding: 12px 14px; border-color: #ccc; background: #f4f4f1; backdrop-filter: none; }
  .rs-answer .rs-label { color: #111; }
  .rs-answer p { color: #222; font-size: 10px; line-height: 1.6; }
  .rv-sec { padding-top: 22px !important; }
  .rs-sec h2 { margin-top: 6px; max-width: none; color: #111; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; break-after: avoid; }
  .rs-sec .section-kicker { display: none; }
  .rs-prose, .rs-wide > p, .rs-wide > ul, .rs-wide > ol, .rs-wide > h3, .rs-wide > dl, .rs-sec .rv-faq { max-width: none !important; }
  .rs-prose { margin-top: 10px; }
  .rs-prose > p, .rs-prose > ul li, .rs-prose > ol li { margin-bottom: 8px; color: #1a1a1a; font-size: 10.5px; line-height: 1.6; }
  .rs-prose > p strong, .rs-prose > p em, .rs-prose > ol li strong, .rs-prose > ul li strong, .rs-refs em { color: #000; }
  .rs-prose h3 { margin: 16px 0 6px; color: #111; font-size: 13.5px; break-after: avoid; }
  .rs-prose a, .rs-meta a, .rs-fig figcaption a, .rs-hero .rv-deck a { color: #1a1a1a !important; text-decoration-color: #999 !important; }
  .rs-ev { padding: 2px 5px; border-color: #999 !important; background: #f1f1ee !important; color: #111 !important; font-size: 6.5px; }
  .rs-callout { padding: 9px 12px; border-left-color: #555; background: #f4f4f1; }
  .rs-cap { color: #333 !important; font-size: 9.5px !important; break-after: avoid; }
  .rs-cap strong, .rs-fig figcaption strong { color: #000; }
  .rs-table { margin-bottom: 14px; border-color: #ccc; border-radius: 6px; background: none; overflow: visible; }
  .rs-table table { min-width: 0; }
  .rs-table th, .rs-table td { padding: 6px 9px; border-bottom-color: #ddd; }
  .rs-table th { color: #333; font-size: 7.5px; letter-spacing: .1em; border-bottom-color: #bbb; }
  .rs-table td, .rs-table td:first-child, .rs-table td.num:first-child { color: #111; font-size: 9.5px; line-height: 1.45; }
  .rs-table tr, .rs-fig, .rs-math, .rs-gloss dd, .rv-faq details { break-inside: avoid; }
  .rs-evs .rs-ev { margin-bottom: 3px; }
  .rs-notation td:first-child { font-size: 11px; }
  .rs-fig { margin-bottom: 14px; padding: 12px; border-color: #ccc; border-radius: 6px; background: none; }
  .rs-fig svg { min-width: 0; }
  .rs-fig svg text { fill: #222 !important; }
  .rs-fig svg line { stroke: #d2d2d2 !important; }
  .rs-fig svg path { stroke: #222 !important; }
  .rs-fig svg rect[fill^="rgba"] { fill: #b8b8b8 !important; }
  .rs-fig svg rect[rx="5"] { fill: #ececec !important; }
  .rs-fig svg circle { stroke: #fff !important; }
  .rs-fig svg [fill="#8d98ff"] { fill: #2a78d6 !important; }
  .rs-fig svg [fill="#ff9fba"] { fill: #e34948 !important; }
  .rs-fig svg [fill="#ffd9a1"] { fill: #eb6834 !important; }
  .rs-fig figcaption { margin-top: 8px; color: #333; font-size: 9.5px; line-height: 1.5; }
  .rs-math { margin-bottom: 10px; padding: 9px 12px; border-color: #ccc; border-radius: 6px; background: #f4f4f1; color: #111; font-size: 11.5px; overflow: visible; }
  .rs-plain { border-left-color: #999; color: #444 !important; font-size: 9.5px !important; }
  .rs-gloss dt { margin-top: 10px; color: #111; font-size: 11.5px; }
  .rs-gloss dd { margin-top: 2px; color: #222; font-size: 10px; }
  .rv-faq { margin-top: 10px; border-top-color: #ccc; }
  .rv-faq details { border-bottom-color: #ddd; }
  .rv-faq summary { padding: 9px 0 4px; color: #111; font-size: 12px; }
  .rv-faq summary::after { content: none; }
  .rv-faq details p { margin: 0 0 9px; max-width: none; color: #1a1a1a; font-size: 10.5px; line-height: 1.6; }
  .rs-refs li { font-size: 9.5px !important; }
  .rs-prose .rs-note { color: #444; font-size: 9px; }
}
