html[data-rivalshot-appearance="blue"], rivalshot-appearance [data-preview="blue"] {
  --rs-scheme: dark;
  --rs-page: #0b1624;
  --rs-surface: #1a2938;
  --rs-sunken: #101d29;
  --rs-raised: #243d58;
  --rs-line: #334a5f;
  --rs-line-strong: #778d9f;
  --rs-ink: #f5f7fb;
  --rs-ink-2: #cdd1d6;
  --rs-muted: #b0c0cc;
  --rs-subtle: #90969c;
  --rs-accent: #64dbed;
  --rs-accent-strong: #95eaf4;
  --rs-on-accent: #06212c;
  --rs-accent-soft: #123147;
  --rs-accent-line: #3c7391;
  --rs-accent-ink: #a5eafa;
  --rs-highlight: #ddc39a;
  --rs-highlight-soft: #17477b;
  --rs-ok: #6ad895;
  --rs-ok-soft: #132a1b;
  --rs-warning: #eec05b;
  --rs-warning-soft: #2f250e;
  --rs-danger: #fb817a;
  --rs-danger-soft: #3b1c1a;
  --rs-focus: #8ee6f4;
}

html[data-rivalshot-appearance="light"], rivalshot-appearance [data-preview="light"] {
  --rs-scheme: light;
  --rs-page: #f4f2ec;
  --rs-surface: #fffeff;
  --rs-sunken: #edf1f3;
  --rs-raised: #dde7ec;
  --rs-line: #cdd5d9;
  --rs-line-strong: #82888f;
  --rs-ink: #142734;
  --rs-ink-2: #334657;
  --rs-muted: #505f68;
  --rs-subtle: #656b72;
  --rs-accent: #095d79;
  --rs-accent-strong: #064a64;
  --rs-on-accent: #ffffff;
  --rs-accent-soft: #e1eff2;
  --rs-accent-line: #add0e8;
  --rs-accent-ink: #124257;
  --rs-highlight: #7c5328;
  --rs-highlight-soft: #ccdfeb;
  --rs-ok: #0a693c;
  --rs-ok-soft: #dff8e6;
  --rs-warning: #865900;
  --rs-warning-soft: #feefcf;
  --rs-danger: #b32322;
  --rs-danger-soft: #ffebe8;
  --rs-focus: #08769c;
}

html[data-rivalshot-appearance="midnight"], rivalshot-appearance [data-preview="midnight"] {
  --rs-scheme: dark;
  --rs-page: #0b0e15;
  --rs-surface: #1b202b;
  --rs-sunken: #10141d;
  --rs-raised: #292f40;
  --rs-line: #363c4c;
  --rs-line-strong: #828997;
  --rs-ink: #eeeff4;
  --rs-ink-2: #cdd1d6;
  --rs-muted: #adb2c1;
  --rs-subtle: #90969c;
  --rs-accent: #afc8e3;
  --rs-accent-strong: #c7daef;
  --rs-on-accent: #04131d;
  --rs-accent-soft: #212832;
  --rs-accent-line: #2e556d;
  --rs-accent-ink: #c7d9ed;
  --rs-highlight: #b6add9;
  --rs-highlight-soft: #34334c;
  --rs-ok: #6ad895;
  --rs-ok-soft: #132a1b;
  --rs-warning: #eec05b;
  --rs-warning-soft: #2f250e;
  --rs-danger: #fb817a;
  --rs-danger-soft: #3b1c1a;
  --rs-focus: #bec8e7;
}

html[data-rivalshot-appearance="gold"], rivalshot-appearance [data-preview="gold"] {
  --rs-scheme: dark;
  --rs-page: #0e1824;
  --rs-surface: #202731;
  --rs-sunken: #131b25;
  --rs-raised: #303342;
  --rs-line: #4d4536;
  --rs-line-strong: #91836a;
  --rs-ink: #faf5e9;
  --rs-ink-2: #cdd1d6;
  --rs-muted: #c3bba9;
  --rs-subtle: #90969c;
  --rs-accent: #f4d37c;
  --rs-accent-strong: #ffe199;
  --rs-on-accent: #201c14;
  --rs-accent-soft: #2d281e;
  --rs-accent-line: #947444;
  --rs-accent-ink: #f4d37c;
  --rs-highlight: #dfae69;
  --rs-highlight-soft: #4b3826;
  --rs-ok: #6ad895;
  --rs-ok-soft: #132a1b;
  --rs-warning: #eec05b;
  --rs-warning-soft: #2f250e;
  --rs-danger: #fb817a;
  --rs-danger-soft: #3b1c1a;
  --rs-focus: #f4d37c;
}
html:root[data-rivalshot-appearance="light"] { --rs-page:var(--rs-sunken); }

/* The book page uses the reader’s light paper and typography. The toolbar uses the brand palette. */
html:root[data-rivalshot-appearance]:not(:has(.rs-shell[data-surface="reader"])),
html:root[data-rivalshot-appearance] :is(.reader-topbar, [aria-label="Your account"]) {
  color-scheme:var(--rs-scheme);
  --bg:var(--rs-page); --surface:var(--rs-surface); --paper:var(--rs-surface);
  --canvas-bg:var(--rs-sunken); --text:var(--rs-ink); --text-muted:var(--rs-muted);
  --text-faint:var(--rs-subtle); --border:var(--rs-line); --border-strong:var(--rs-line-strong);
  --accent:var(--rs-accent); --accent-soft:var(--rs-accent-soft); --accent-contrast:var(--rs-on-accent);
  --band:var(--rs-highlight-soft); --band-ink:var(--rs-ink); --band-muted:var(--rs-muted);
  --band-action:var(--rs-accent); --band-action-ink:var(--rs-on-accent);
}
html[data-rivalshot-appearance] .rs-auth-bar {
  display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px clamp(16px,4vw,48px);
  min-height:60px; box-sizing:border-box; border-bottom:1px solid var(--rs-line);
  font-family:var(--font-ui); color:var(--rs-ink);
}
html[data-rivalshot-appearance] .rs-auth-home { display:inline-flex; gap:9px; align-items:center; font-weight:700; color:var(--rs-ink); }
html:root[data-rivalshot-appearance] :is(.rs-auth-bar, .books-bar[data-bb], .reader-topbar) {
  background:linear-gradient(105deg,color-mix(in srgb,var(--rs-highlight-soft) 70%,var(--rs-surface)),var(--rs-surface) 72%);
  border-bottom-color:var(--rs-line);
}
html:root[data-rivalshot-appearance] .rs-auth-bar + main {
  min-height:calc(100dvh - 60px);
  background:radial-gradient(ellipse at 14% 3%,color-mix(in srgb,var(--rs-highlight-soft) 42%,var(--rs-page)),transparent 65%),var(--rs-page);
}
html:root[data-rivalshot-appearance] section[aria-labelledby="open-heading"] > div:first-child {
  background:radial-gradient(ellipse at 1% 0%,var(--rs-highlight-soft),transparent 80%),
    linear-gradient(120deg,var(--rs-raised),var(--rs-surface));
  border:1px solid var(--rs-line);
}
html[data-rivalshot-appearance] .books-bar[data-bb] > div > a:first-child { min-width:0; flex-shrink:1; }
@media(max-width:480px) {
  html[data-rivalshot-appearance] .books-bar[data-bb] > div > a:first-child { gap:6px; }
  html[data-rivalshot-appearance] .books-bar[data-bb] > div > a:first-child strong { text-wrap:balance; }
}
html:root[data-rivalshot-appearance="light"] .suite-bar__mark img[data-mark="dark"] { display:none; }
html:root[data-rivalshot-appearance="light"] .suite-bar__mark img[data-mark="light"] { display:block; }
/* At the narrowest phone width the mark is the home link's visible label.
   The link keeps its full accessible name and every toolbar action stays reachable. */
@media(max-width:360px) {
  html[data-rivalshot-appearance] .books-bar[data-bb] > div > a:first-child:has(.suite-bar__mark) > span:not(.suite-bar__mark) { display:none; }
}
.rs-reading-room { max-width:1160px; margin:auto; padding:clamp(12px,3vw,38px) clamp(16px,3vw,40px) 72px; color:var(--rs-ink); }
.rs-room-intro { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.96fr); align-items:center; gap:2%; padding:clamp(24px,4vw,56px); overflow:hidden; isolation:isolate; border:1px solid var(--rs-line); border-radius:18px; background:radial-gradient(ellipse at 82% 55%,var(--rs-highlight-soft),transparent 62%),var(--rs-raised); }
.rs-imprint { color:var(--rs-accent); font:700 .8rem var(--font-ui); letter-spacing:.12em; text-transform:uppercase; }
.rs-room-intro h1 { margin:12px 0 24px; max-width:8em; font:700 clamp(3rem,5.7vw,5rem)/.99 var(--font-reading,var(--font-ui)); letter-spacing:-.048em; text-wrap:balance; }
.rs-feature-title { font-size:clamp(1.05rem,2vw,1.4rem); font-weight:650; line-height:1.28; max-width:28ch; text-wrap:balance; }
.rs-feature-detail { margin:10px 0 20px; color:var(--rs-muted); font-size:.97rem; line-height:1.5; max-width:40ch; }
.rs-sample-link,.rs-catalog-link { display:inline-flex; gap:.6rem; align-items:center; min-height:44px; font-size:.9rem; font-weight:650; }
.rs-sample-link { background:var(--rs-accent); color:var(--rs-on-accent); padding:0 17px; border-radius:8px; margin-right:14px; }
.rs-catalog-link { color:var(--rs-ink); }
.rs-jacket-stage { position:relative; isolation:isolate; width:100%; aspect-ratio:1.33; align-self:center; }
.rs-stage-jacket { position:absolute; width:44%; top:50%; outline-offset:4px; filter:drop-shadow(0 12px 9px rgb(0 0 0/.24)); }
.rs-jacket-0 { left:2%; transform:translateY(-44%) rotate(-13deg); }
.rs-jacket-1 { right:2%; transform:translateY(-44%) rotate(13deg); }
.rs-jacket-2 { left:27%; width:47%; transform:translateY(-53%) rotate(-2deg); }
.rs-stage-jacket:focus-visible { z-index:4; outline:3px solid var(--rs-accent); }
.rs-series-browser { padding-top:clamp(28px,4vw,52px); }
.rs-series-browser h2 { font:650 1.4rem var(--font-reading,var(--font-ui)); }
.rs-series-filters { margin-top:12px; display:flex; flex-wrap:wrap; gap:8px; }
.rs-series-filters button { border:1px solid var(--rs-line-strong); padding:8px 15px; min-height:42px; border-radius:30px; font:550 .875rem var(--font-ui); }
.rs-series-filters button[aria-pressed=true] { background:var(--rs-accent); color:var(--rs-on-accent); border-color:var(--rs-accent); }
.rs-reading-room section[id],.rs-series-browser ~ section { padding-inline:0; padding-top:2rem; }
.rs-reading-room :is(a,button):focus-visible { outline:3px solid var(--rs-accent); outline-offset:4px; }
@media(max-width:760px) {
  .rs-room-intro { grid-template-columns:1fr; gap:18px; }
  .rs-jacket-stage { grid-row:1; max-width:365px; margin:0 auto; aspect-ratio:1.53; }
  .rs-room-intro h1 { font-size:clamp(2.65rem,9vw,4rem); max-width:none; margin:8px 0 14px; }
  .rs-feature-detail { margin-bottom:12px; }
}

.rs-home-intro { grid-template-columns:minmax(0,1.2fr) minmax(160px,.8fr); }
.rs-home-intro h1 { max-width:13ch; }
.rs-home-lede,.rs-learning-path > p { max-width:52ch; color:var(--rs-muted); font:400 clamp(1rem,1.8vw,1.14rem)/1.55 var(--font-ui); }
.rs-home-intro .rs-sample-link { margin-top:24px; }
.rs-feature-jacket { display:block; width:min(60%,220px); justify-self:center; transform:rotate(4deg); filter:drop-shadow(9px 14px 12px rgb(20 39 52 / .19)); }
.rs-home-section { margin-top:clamp(38px,6vw,74px); }
.rs-home-section h2 { margin:0 0 20px; font:650 clamp(1.65rem,3vw,2.45rem)/1.12 var(--font-reading,var(--font-ui)); color:var(--rs-ink); }
.rs-home-section h3,.rs-collection-preview strong { display:block; font:650 1.23rem/1.2 var(--font-reading,var(--font-ui)); color:var(--rs-ink); }
.rs-reader-spread { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); border-block:1px solid var(--rs-line); }
.rs-book-excerpt { padding:clamp(24px,4vw,48px); background:var(--rs-surface); }
.rs-book-excerpt blockquote { margin:16px 0 20px; max-width:29ch; font:500 clamp(1.35rem,2.5vw,2rem)/1.32 var(--font-reading,var(--font-ui)); }
.rs-feature-notes { align-self:center; padding:24px clamp(16px,3vw,38px); }
.rs-feature-notes p,.rs-path-steps p,.rs-collection-preview span span { display:block; margin:7px 0 16px; color:var(--rs-muted); font:400 .96rem/1.55 var(--font-ui); }
.rs-feature-notes summary { cursor:pointer; font-weight:600; color:var(--rs-accent); }
.rs-book-excerpt a,.rs-path-steps a,.rs-credit-link { color:var(--rs-accent); text-decoration:underline; text-underline-offset:.22em; }
.rs-collection-previews,.rs-path-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,2vw,24px); }
.rs-collection-preview { display:flex; align-items:center; gap:14px; padding:20px; border:1px solid var(--rs-line); border-radius:8px; background:var(--rs-surface); }
.rs-collection-preview:hover { border-color:var(--rs-accent); }
.rs-collection-preview span span { margin-bottom:0; font-size:.86rem; }
.rs-collection-jacket { flex:0 0 27%; min-width:0; }
.rs-learning-path { border-top:1px solid var(--rs-line); padding-top:32px; }
.rs-path-steps { margin:24px 0 0; list-style:none; padding:0; }
.rs-path-steps li { padding:18px 0 8px; border-top:3px solid var(--rs-accent-line); }
.rs-store-top { padding-bottom:0; }
.rs-store-intro input { width:min(100%,28rem); height:44px; margin-top:18px; padding:0 16px; border:1px solid var(--rs-line-strong); border-radius:6px; color:var(--rs-ink); background:var(--rs-surface); }
.rs-catalog-series section { max-width:none; padding-inline:0; padding-top:2.5rem; }
.rs-credit-link { display:inline-block; margin:36px 0 16px; }
@media(max-width:900px) { .rs-collection-previews { grid-template-columns:1fr; } .rs-collection-jacket { flex-basis:58px; } }
@media(max-width:700px) {
  .rs-home-intro { grid-template-columns:minmax(0,1fr) minmax(70px,.38fr); padding:22px 16px; gap:12px; }
  .rs-home-intro h1 { font-size:clamp(1.85rem,6.6vw,2.6rem); }
  .rs-home-intro .rs-home-lede { font-size:.95rem; }
  .rs-feature-jacket { width:93%; }
  .rs-reader-spread,.rs-path-steps { grid-template-columns:1fr; }
  .rs-path-steps { gap:6px; }
}

/* RivalShot's reading table and the open edition share the brand’s light reading surfaces and blue accents. */
.rs-table-home { --table-ink:var(--rs-ink); --table-accent:var(--rs-accent); --table-rule:var(--rs-line); max-width:1280px; }
.rs-table-home :is(button,summary) { cursor:pointer; }
.rs-table-home .rs-imprint { display:flex; align-items:center; gap:.55rem; color:var(--table-accent); font-size:.71rem; letter-spacing:.14em; }
.rst-hero { position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(245px,.73fr) minmax(0,1.27fr); align-items:center; gap:clamp(20px,3vw,48px); padding:clamp(28px,4vw,62px) clamp(20px,3.5vw,48px); min-height:420px; border:1px solid var(--hero-dark,#08192a); border-radius:10px; background:radial-gradient(ellipse at 80% 28%,var(--hero-light,#00546d),transparent 64%),linear-gradient(113deg,var(--hero-dark,#08192a),var(--hero-mid,#10374d)); }
.rst-intro h1,.rst-study h2,.rst-learning h2,.rst-folio-head h2,.rst-leaf h3,.rst-study blockquote,.rst-pocket h4 { font-family:"Literata",Georgia,serif; color:var(--table-ink); letter-spacing:-.047em; }
.rst-intro h1 { font-size:clamp(3.25rem,5.5vw,5.3rem); line-height:.96; margin:16px 0; max-width:11ch; }
.rst-lede { color:#435362; max-width:36ch; line-height:1.6; font-size:1.01rem; }
.rst-primary,.rst-action { display:inline-flex; align-items:center; justify-content:center; gap:.65rem; padding:12px 17px; border-radius:5px; background:var(--table-ink); color:white; font-size:.9rem; font-weight:620; }
.rst-primary { margin-top:22px; }
.rst-primary:hover,.rst-action:hover { background:#254d6a; }
.rst-text-link,.rst-next,.rst-leaf footer a,.rst-learning li a,.rst-answer button,.rst-pocket a,.rst-record a { display:inline-flex; gap:7px; align-items:center; color:var(--rs-accent); font-weight:620; text-decoration:underline; text-underline-offset:4px; }
.rst-intro > .rst-text-link { display:table; margin:13px 0 0; font-size:.87rem; }
.rst-display { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:clamp(10px,1.55vw,24px); padding:0 8px; isolation:isolate; }
.rst-display::before { position:absolute; content:""; z-index:-1; bottom:44px; left:-2%; right:-2%; height:17px; border-radius:2px; border-top:3px solid #a3c5d4; background:linear-gradient(#54778a,#bbd1dc 33%,#809dac 75%,#426175); box-shadow:0 12px 15px -7px #04101e99; }
.rst-exhibit { min-width:0; display:grid; justify-items:center; align-items:end; color:var(--table-ink); }
.rst-volume { display:block; width:90%; position:relative; aspect-ratio:2/3; transform-style:preserve-3d; transform:perspective(740px) rotateY(-20deg) rotateZ(-2deg); transform-origin:50% 95%; transition:transform .36s cubic-bezier(.2,.72,.23,1); }
.rst-exhibit:nth-child(2) .rst-volume { width:83%; transform:perspective(740px) rotateY(-16deg) rotateZ(2deg); }
.rst-exhibit:nth-child(3) .rst-volume { width:79%; transform:perspective(740px) rotateY(-22deg) rotateZ(4deg); }
.rst-exhibit:is(:hover,:focus-visible) .rst-volume { transform:perspective(740px) translateY(-8px) rotateY(-5deg) rotateZ(0); }
.rst-board,.rst-back,.rst-edges { position:absolute; display:block; }
.rst-board { inset:0; z-index:2; transform:translateZ(6px); border-radius:2px 4px 4px 2px; overflow:hidden; background:#17334a; }
.rst-board::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg,#080c113b,transparent 2%,#ffffff2b 3.4%,#080c1130 4.1%,transparent 5.5%); }
.rst-board > * { width:100%; height:100%; }
.rst-edges { right:-11px; width:12px; top:2px; bottom:1px; transform:skewY(-10deg); background:repeating-linear-gradient(90deg,#f4f8fa 0 1px,#bbc9d0 1px 2px); border:1px solid #8e9da8; }
.rst-back { inset:1px -13px -2px 8px; background:#263441; transform:translateZ(-5px); box-shadow:7px 6px 10px #29353c44; }
.rst-fallback { display:grid; place-content:center; padding:12px; font:600 1.3rem/1.18 Georgia,serif; color:#f8efd9; }
.rst-caption { display:flex; justify-content:center; align-items:center; gap:4px; text-align:center; height:50px; line-height:1.2; font:650 clamp(.66rem,1.05vw,.87rem)/1.2 var(--font-ui); }
.rst-caption svg { flex-shrink:0; }
.rst-study { display:grid; grid-template-columns:1fr 1.18fr; align-items:center; padding:clamp(20px,4vw,52px) 0; margin:14px 0 0; gap:clamp(22px,5vw,75px); border-bottom:1px solid var(--table-rule); }
.rst-study h2,.rst-learning h2 { font-size:clamp(2rem,3.6vw,3.3rem); line-height:1.05; margin:12px 0; }
.rst-study p:not(.rs-imprint),.rst-learning li p,.rst-leaf>p:not(.rst-paragraph,.rst-kicker) { line-height:1.55; color:var(--rs-muted); }
.rst-study .rst-text-link { margin:18px 0 5px; }
.rst-study small,.rst-source small { display:block; color:var(--rs-muted); font-size:.76rem; }
.rst-study figure { margin:0; padding:clamp(20px,3vw,38px); border:1px solid var(--table-rule); border-left:5px solid var(--rs-accent-line); border-radius:3px; background:var(--rs-surface); box-shadow:3px 3px 0 var(--rs-raised),4px 4px 0 var(--rs-line); }
.rst-study figcaption,.rst-leaf header { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--table-rule); padding-bottom:12px; font:650 .74rem var(--font-ui); color:var(--table-accent); }
.rst-study figcaption span { font-weight:450; }
.rst-study blockquote { font-size:clamp(1.55rem,2.7vw,2.45rem); line-height:1.27; margin:20px 0; letter-spacing:-.025em; }
.rst-study mark { color:inherit; background:linear-gradient(transparent 62%,var(--rs-accent-line) 62%); }
.rst-study figure button { display:flex; gap:8px; align-items:center; font-weight:550; font-size:.85rem; }
.rst-learning { padding:clamp(26px,4vw,56px) 0 0; }
.rst-learning ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; list-style:none; padding:0; margin:22px 0 0; }
.rst-learning li { border-top:2px solid var(--table-rule); padding-top:16px; }
.rst-learning li > svg { color:var(--table-accent); width:20px; }
.rst-learning li h3,.rst-comparison strong { font:650 1.2rem/1.3 "Literata",Georgia,serif; color:var(--table-ink); margin:7px 0; }
.rst-learning li a { font-size:.9rem; margin-top:12px; }
body:has(.rst-dialog[open]) { overflow:hidden; }
.rst-dialog { box-sizing:border-box; position:fixed; inset:0; width:min(880px,calc(100% - 40px)); max-height:88dvh; overflow:auto; overscroll-behavior:contain; margin:auto; padding:0; color:var(--table-ink); background:var(--rs-surface); border:1px solid var(--rs-line-strong); border-radius:8px; box-shadow:0 30px 90px #0b1d2c59; }
.rst-dialog::backdrop { background:#162b3c91; }
.rst-dialog[open] { animation:rst-unfold .36s ease-out; }
@keyframes rst-unfold { from { opacity:.2; transform:perspective(1200px) rotateX(8deg) translateY(14px) scale(.97); } to { opacity:1; transform:none; } }
.rst-folio-head { position:sticky; top:0; z-index:2; background:var(--rs-surface); border-bottom:1px solid var(--table-rule); display:flex; align-items:center; gap:13px; padding:14px clamp(16px,3vw,32px); }
.rst-folio-head h2 { margin:2px 0 0; font-size:clamp(1.6rem,3vw,2.3rem); line-height:1.12; }
.rst-folio-head>button { display:grid; place-content:center; height:42px; width:42px; border:1px solid var(--table-rule); border-radius:50%; margin-left:auto; flex-shrink:0; }
.rst-mini-cover { width:30px; flex-shrink:0; }
.rst-spread { display:grid; grid-template-columns:1fr 1fr; }
.rst-leaf { min-width:0; display:flex; flex-direction:column; align-items:flex-start; padding:clamp(20px,3vw,36px); min-height:325px; }
.rst-leaf header { align-self:stretch; }
.rst-source { background:linear-gradient(90deg,var(--rs-surface) 82%,var(--rs-sunken) 97%,var(--rs-line)); }
.rst-companion { background:linear-gradient(90deg,var(--rs-line),var(--rs-sunken) 5%,var(--rs-sunken)); }
.rst-kicker { margin:22px 0 4px; color:var(--table-accent); font-size:.76rem; font-weight:550; }
.rst-leaf h3 { font-size:clamp(1.55rem,2.75vw,2.1rem); line-height:1.14; margin:2px 0 12px; }
.rst-companion h3 { margin-top:20px; }
.rst-paragraph { font:400 1.16rem/1.62 "Literata",Georgia,serif; color:#273748; }
.rst-paragraph:focus { outline:2px solid var(--rs-focus); outline-offset:5px; }
.rst-source small { margin:17px 0; }
.rst-leaf footer { margin-top:auto; padding-top:20px; font-size:.84rem; }
.rst-action { margin:14px 0 2px; }
.rst-comparison { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:12px; }
.rst-comparison button,.rst-answer,.rst-pocket>div,.rst-record>div { padding:12px; border:1px solid var(--table-rule); border-radius:4px; background:var(--rs-surface); text-align:left; }
.rst-comparison strong,.rst-comparison span,.rst-comparison em { display:block; }
.rst-comparison span,.rst-answer p,.rst-record p { font-size:.88rem; line-height:1.4; }
.rst-comparison em,.rst-answer button { margin-top:12px; color:var(--rs-accent); font:600 .76rem var(--font-ui); }
.rst-pocket,.rst-record { width:100%; border-top:1px solid var(--table-rule); margin-top:16px; }
.rst-pocket summary,.rst-record summary { padding:10px 0; font-size:.86rem; font-weight:600; color:var(--table-ink); }
.rst-pocket summary svg,.rst-record svg { display:inline; vertical-align:middle; }
.rst-pocket h4 { font-size:1.35rem; }
.rst-pocket p { margin:7px 0; font-family:"Literata",Georgia,serif; }
.rst-answer,.rst-next { margin-top:13px; }
.rst-next,.rst-record a,.rst-pocket a { font-size:.84rem; }
.rst-record p { margin:10px 0; } .rst-record time { display:block; margin-left:20px; color:#5a646a; }
.rst-timeline { padding:14px clamp(16px,3vw,32px); border-bottom:1px solid var(--table-rule); background:var(--rs-raised); }
.rst-timeline p { margin-bottom:6px; font-size:.8rem; color:var(--table-accent); font-weight:650; }
.rst-timeline div { display:flex; flex-wrap:wrap; gap:5px; }
.rst-timeline button { padding:6px 10px; font-size:.78rem; border:1px solid var(--table-rule); border-radius:3px; }
.rst-timeline button[aria-pressed=true] { background:var(--table-ink); color:white; }
@media(max-width:800px) {
  .rst-hero { grid-template-columns:1fr; min-height:0; gap:24px; }
  .rst-intro h1 { max-width:none; }
  .rst-intro > .rst-text-link { display:inline-flex; margin-left:14px; }
  .rst-lede { max-width:53ch; }
  .rst-display { width:min(100%,520px); justify-self:center; }
}
@media(max-width:600px) {
  .rs-table-home { padding:12px 14px 44px; }
  .rst-hero { padding:22px 15px 8px; }
  .rst-intro h1 { font-size:clamp(2.6rem,11.4vw,3.6rem); margin:10px 0; }
  .rst-lede { font-size:.93rem; }
  .rst-intro > .rst-text-link { font-size:.78rem; margin-left:8px; }
  .rst-primary { font-size:.8rem; padding:10px 12px; margin-top:15px; }
  .rst-display { gap:7px; }
  .rst-caption { font-size:.68rem; }
  .rst-study,.rst-learning ol,.rst-spread { grid-template-columns:1fr; }
  .rst-study { gap:18px; }
  .rst-dialog { width:100%; max-width:100%; max-height:100dvh; border-radius:0; }
  .rst-leaf { min-height:0; }
  .rst-source { background:var(--rs-surface); border-bottom:1px solid var(--table-rule); }
  .rst-companion { background:var(--rs-sunken); }
  .rst-folio-head { padding:10px 16px; }
  .rst-paragraph { scroll-margin-top:100px; }
}
@media(prefers-reduced-motion:reduce) { .rst-dialog[open] { animation:none; } .rst-volume { transition:none; } }

.rst-open-book { position:relative; perspective:1400px; isolation:isolate; overflow:hidden; }
.rst-opening-jacket { position:absolute; z-index:1; pointer-events:none; inset:0 0 0 50%; transform-origin:left center; backface-visibility:hidden; background:#12283a; animation:rst-open-cover .75s cubic-bezier(.24,.65,.24,1) forwards; }
.rst-opening-jacket > * { margin:auto; height:100%; max-width:100%; aspect-ratio:2/3; }
@keyframes rst-open-cover { 0% { transform:rotateY(0); } 98% { visibility:visible; } 100% { transform:rotateY(-178deg); visibility:hidden; } }
@media(max-width:600px) { .rst-opening-jacket { inset:0; } }
@media(prefers-reduced-motion:reduce) { .rst-opening-jacket { display:none; } }

.rst-hero .rs-imprint,.rst-hero .rst-text-link { color:var(--hero-accent,#67e8f9); }
.rst-hero .rst-intro h1,.rst-hero .rst-caption { color:var(--hero-ink,#f5f7fb); }
.rst-hero .rst-lede { color:var(--hero-muted,#d2e3eb); }
.rst-hero .rst-primary { background:var(--hero-cta-bg,#67e8f9); color:var(--hero-cta-ink,#04131d); }
.rst-hero .rst-primary:hover { filter:brightness(1.08); }
.rst-hero :is(a,button):focus-visible { outline-color:var(--hero-accent,#67e8f9); }
html[data-rivalshot-appearance] .bb-mob-btn { order:-1; }
.rs-guest-account { position:absolute; right:0; top:100%; z-index:90; width:224px; padding:14px; display:grid; gap:5px; background:var(--rs-surface); border:1px solid var(--rs-line); border-radius:8px; box-shadow:0 10px 24px #0b29302b; }
.rs-guest-account a { padding:7px 1px; color:var(--rs-accent); }
.rst-intro h1 { max-width:14ch; font-size:clamp(2.5rem,4.5vw,4.4rem); }
.rs-home-collections,.rst-history-feature,.rs-reading-tools { padding:clamp(26px,4vw,52px) 0; border-bottom:1px solid var(--rs-line); }
.rs-home-collections h2,.rst-history-feature h2,.rs-reading-tools h2 { margin:6px 0 15px; font:550 clamp(1.85rem,3.5vw,3rem)/1.13 Literata,Georgia,serif; letter-spacing:-.035em; }
.rs-home-collections>div { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.rs-home-collections a,.rs-quiz,.rs-history-volume,.rs-record-example { background:var(--rs-surface); padding:clamp(16px,2.5vw,30px); border-radius:6px; border:1px solid var(--rs-line); }
.rs-home-collections a { display:flex;flex-direction:column;border-top:3px solid var(--rs-accent-line); }
.rs-home-collections small,.rs-history-volume small,.rs-quiz small { color:var(--rs-accent);font-weight:600; }
.rs-home-collections h3,.rs-history-volume h3,.rs-quiz h3,.rs-record-example h3 { font:600 1.4rem/1.3 Literata,Georgia,serif; margin:8px 0; }
.rs-home-collections span { color:var(--rs-accent);margin-top:auto;padding-top:13px;font-weight:600; }
.rst-study .rs-walkthrough figure { padding:0;border:0;background:none;box-shadow:none; }
.rst-study .rs-walkthrough figcaption { display:block;border:0;color:var(--rs-muted);font-weight:400; }
.rs-quiz button { display:block; width:100%; margin-top:8px; padding:10px; border:1px solid var(--rs-line); border-radius:4px; text-align:left; }
.rs-quiz button[aria-pressed=true] { background:var(--rs-accent-soft); border-color:var(--rs-accent); }
.rs-quiz-feedback {margin-top:15px;border-left:3px solid var(--rs-accent);padding-left:14px;}
.rs-quiz-feedback a,.rs-history-volume a {text-decoration:underline;color:var(--rs-accent);}
.rst-history-feature .rst-timeline {margin-top:16px;padding:14px;border-radius:5px 5px 0 0;}
.rs-history-volume { display:flex;align-items:center;gap:22px; }
.rs-history-volume > :first-child { width:74px;flex-shrink:0; }
.rs-record-example {margin:24px 0;max-width:680px;}
.rs-record-example p {display:flex;align-items:center;gap:7px;padding:7px 0;}
.rs-record-example time { margin-left:auto;color:var(--rs-muted);font-size:.85rem; }
.rs-reading-tools { margin-bottom:25px; }
@media(max-width:650px){.rs-home-collections>div{grid-template-columns:1fr;gap:10px}.rs-record-example p{flex-wrap:wrap}.rs-record-example time{margin-left:0}.rst-intro h1{font-size:clamp(2.2rem,8vw,3rem)}}
