/* RBTHub family identity. Visual-only layer; practice state and ads are separate. */
:root {
  --paper: #fbf8ef;
  --wash: #f1eadb;
  --ink: #171716;
  --muted: #5f5b53;
  --line: #d7cdbb;
  --accent: #a93f2c;
  --brick: #cf5c43;
  --mustard: #e1ae3e;
  --green: #355f54;
  --red: #a13c32;
  --head: 'Source Serif 4', Georgia, serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.7 var(--body); }
body.rpt-home { background: linear-gradient(90deg,#17171609 1px,transparent 1px) center/76px 100%, linear-gradient(#17171606 1px,transparent 1px) center/100% 76px,var(--paper); }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button,input,select { font: inherit; }
button,a,input,summary,select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:is(button,a,input,summary,select):focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
h1,h2,h3 { font-family: var(--head); color: var(--ink); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem,4.6vw,4.8rem); font-weight: 800; margin: .35em 0; }
h2 { font-size: clamp(1.9rem,3vw,2.65rem); margin: 1.1em 0 .6em; }
h3 { font-size: 1.4rem; margin: .5em 0; }
p { margin: .75em 0; }
img,svg { max-width: 100%; }
small,.small { font-size: .86rem; color: var(--muted); }
[hidden] { display: none !important; }
.wrap { width: min(1168px,calc(100% - 64px)); margin-inline: auto; }
.narrow { max-width: 820px; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 8px; left: 8px; z-index: 20; padding: 12px; background: var(--paper); }
.site-header { color: var(--ink); background: transparent; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 94px; border-bottom: 1px solid #17171699; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: block; width: 44px; height: 44px; flex: none; }
.brand-copy { display: grid; gap: 5px; }
.brand-name { font: 800 1.45rem/1.05 var(--head); letter-spacing: -.035em; }
.brand-copy small { font: 700 .56rem/1.2 var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ink); font-size: .91rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover,.site-nav a[aria-current] { color: var(--accent); }
.site-nav .nav-start { border: 1px solid var(--ink); padding: 8px 14px; background: var(--mustard); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink); }
.menu { display: none; width: 44px; height: 44px; border: 1px solid var(--ink); color: var(--ink); background: var(--paper); border-radius: 3px; font-size: 1.3rem; flex: none; }
.crumbs { padding: 24px 0 6px; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.hero { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(0,.94fr); gap: 32px; align-items: center; padding: 48px 0 66px; }
.hero>div { min-width: 0; }
.hero.single { display: block; max-width: 880px; padding-top: 24px; padding-bottom: 36px; }
.rpt-home .hero { min-height: 610px; }
.rpt-home .hero h1 { font-size: clamp(3rem,4.7vw,4.75rem); line-height: .99; letter-spacing: -.05em; }
.rpt-home .hero h1 em { font-style: normal; color: var(--accent); }
.eyebrow { display: block; font: 700 .72rem/1.55 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero>.eyebrow,.hero>div>.eyebrow { margin-bottom: 22px; }
.rpt-home .hero>div>.eyebrow { display: inline-block; padding: 7px 10px; border: 1px solid var(--ink); background: var(--mustard); color: var(--ink); transform: rotate(-1deg); font-size: .66rem; }
.lead { font-size: 1.12rem; line-height: 1.65; max-width: 700px; color: #39362f; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 48px; padding: 12px 20px; color: #fffdf7; background: var(--accent); border: 1px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); font-weight: 700; line-height: 1.45; text-align: center; text-decoration: none; transition: box-shadow .15s,transform .15s; }
.btn:hover:not(:disabled) { color: #fffdf7; background: #923624; box-shadow: 2px 2px 0 var(--ink); transform: translate(2px,2px); }
.btn.secondary { color: var(--ink); background: var(--paper); box-shadow: 3px 3px 0 #d7cdbb; }
.btn.secondary:hover:not(:disabled) { color: var(--ink); background: var(--wash); }
.btn.quiet { color: var(--ink); background: #fffdf7; border-color: #9c9284; box-shadow: none; }
.btn.quiet:hover:not(:disabled) { color: var(--ink); background: var(--wash); box-shadow: none; transform: none; }
.facts { display: flex; gap: 9px 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 22px 0 0; }
.facts li,.badge { font: 600 .8rem/1.5 var(--body); }
.facts li { padding-left: 17px; position: relative; }
.facts li:before { content: ''; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; background: var(--green); }
.blueprint { position: relative; margin: 0; align-self: center; min-width: 0; }
.study-illustration { width: 100%; height: 330px; object-fit: contain; display: block; }
.blueprint-caption { position: relative; display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 2px 16px; max-width: 400px; padding: 18px 20px; margin: -12px auto 0; background: var(--paper); border: 1px solid var(--ink); box-shadow: 5px 5px 0 #d5c9b5; }
.blueprint-caption>.eyebrow { grid-column: 2; align-self: end; }
.blueprint-caption>strong { grid-column: 1; grid-row: 1/3; align-self: center; font: 800 3.8rem/.9 var(--head); color: var(--green); letter-spacing: -.05em; }
.blueprint-caption>p { grid-column: 2; margin: 0; font-size: .86rem; line-height: 1.45; }
.blueprint-caption>p:last-child { grid-column: 1/-1; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px; color: var(--muted); font-size: .79rem; }
.tiles { display: none; }
.section { padding: 42px 0 54px; border-top: 1px solid var(--ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.section-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 26px 0; }
.card { min-width: 0; display: flex; flex-direction: column; padding: 26px; border: 1px solid #a69b89; border-top: 4px solid var(--green); background: #fffdf7; box-shadow: 4px 4px 0 #e5ddce; border-radius: 2px; }
.card:nth-child(3n+2) { border-top-color: var(--brick); }
.card:nth-child(3n) { border-top-color: var(--mustard); }
.card h3 { font-size: 1.5rem; line-height: 1.15; }
.card p { font-size: .95rem; line-height: 1.65; color: var(--muted); }
.card .letter { font: 700 .68rem/1.5 var(--body); letter-spacing: .09em; color: var(--green); }
.card a { font-weight: 700; margin-top: auto; padding-top: 16px; min-height: 44px; }
.steps { list-style: none; counter-reset: steps; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.steps li { min-width: 0; }
.steps li:before { counter-increment: steps; content: '0' counter(steps); display: block; color: var(--accent); font: 700 2.5rem var(--head); }
.steps h3 { margin-top: 6px; }
.notice,.worked { padding: 22px 26px; border-left: 4px solid var(--green); background: var(--wash); margin: 22px 0; }
.worked strong { display: block; margin-bottom: 8px; font: 700 1.3rem var(--head); }
.domain-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.domain-table td,.domain-table th { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.domain-table th { font-size: .8rem; }
.domain-table :is(td,th):last-child { text-align: right; }
.domain-name { font-weight: 600; }
.reading { max-width: 820px; min-width: 0; margin: auto; }
.reading h1 { margin-top: 32px; }
.reading h2 { margin-top: 1.7em; }
.reading li { margin: .6em 0; }
.reading a,.sources a { overflow-wrap: anywhere; }
.faq details,.reference details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary,.reference summary,.tool details>summary { cursor: pointer; font-weight: 600; min-height: 44px; padding: 10px 0; line-height: 1.5; }
.faq summary { font-size: 1.03rem; }
.reference summary { font-size: 1rem; }
.reference ol { padding-left: 24px; }
.reference li { margin: 9px 0; }
.reference h3 { margin-top: 1em; }
.reference .right,.right { color: var(--green); font-weight: 700; }
.wrong { color: var(--red); }
.sources { font-size: .85rem; color: var(--muted); line-height: 1.65; }
.site-footer { margin-top: 64px; padding: 42px 0 30px; border-top: 5px solid var(--mustard); color: #e5ddce; background: var(--ink); }
.site-footer .brand { color: #fffdf7; }
.site-footer .brand-copy small { color: #c6bca9; }
.site-footer a { color: #e9c46e; }
.site-footer p { font-size: .86rem; line-height: 1.75; }
.footer-row { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 38px; }
.footer-links { display: grid; align-content: start; gap: 6px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; font-size: .9rem; }
.copyright { margin-top: 28px !important; padding-top: 22px; border-top: 1px solid #ffffff33; color: #c6bca9; }
.tool { max-width: 940px; min-width: 0; margin-inline: auto; padding: 32px; border: 1px solid var(--ink); border-top: 5px solid var(--green); border-radius: 3px; box-shadow: 6px 6px 0 #ded4c3; background: #fffdf7; scroll-margin-top: 24px; }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tool-head h2 { margin: 0; font-size: 1.7rem; }
.tool-head h2:focus { outline: none; }
.timer { white-space: nowrap; font-size: .84rem; font-weight: 600; font-variant-numeric: tabular-nums; padding: 5px 8px; border: 1px solid var(--line); background: var(--paper); }
.status { padding: 14px; border: 1px solid var(--line); background: var(--wash); font-size: .85rem; line-height: 1.5; }
.status.error { border: 2px solid var(--red); color: #762020; }
.modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 0; padding: 0; border: 0; min-width: 0; }
.modes legend { font-weight: 700; padding: 0 0 12px; }
.modes label { display: block; padding: 20px; border: 1px solid #b6aa96; border-radius: 3px; background: var(--paper); }
.modes label:has(input:checked) { border: 2px solid var(--green); padding: 19px; background: #eef2e9; }
.modes label span { display: block; color: var(--muted); font-size: .89rem; margin-top: 6px; }
.modes input,#timed { width: 22px; height: 22px; margin-right: 8px; vertical-align: middle; accent-color: var(--green); }
.question-text { margin: 24px 0; font: 600 1.4rem/1.55 var(--head); letter-spacing: -.01em; }
.option { display: flex; gap: 13px; width: 100%; margin: 12px 0; padding: 18px; border: 1px solid #b9ad9c; border-radius: 3px; color: var(--ink); background: #fffdf7; font-size: 1rem; text-align: left; line-height: 1.55; }
.option b { flex: none; min-width: 24px; color: var(--muted); }
.option.selected { padding: 17px; border: 2px solid var(--green); background: #eef2e9; box-shadow: 3px 3px 0 #dce5d8; }
.option.correct { border-color: #247b50; background: #eaf7ee; }
.option.incorrect { border-color: #ad3b3b; background: #fff0ef; }
.explanation { padding: 22px 24px; margin: 24px 0; border-left: 4px solid var(--green); background: var(--paper); }
.explanation p:first-child { margin-top: 0; }
.question-nav { display: grid; grid-template-columns: repeat(auto-fill,minmax(44px,1fr)); gap: 9px; padding: 12px 0; }
.question-nav button { min-height: 44px; border: 1px solid #9d9281; border-radius: 3px; background: #fffdf7; color: var(--ink); font-variant-numeric: tabular-nums; }
.question-nav button.answered { background: #e5ece0; }
.question-nav button.current { outline: 2px solid var(--green); outline-offset: 1px; font-weight: 700; }
.question-nav button.flagged:after { content: '•'; color: var(--accent); }
.score { font: 800 clamp(2rem,5vw,3.4rem)/1.1 var(--head); letter-spacing: -.035em; }
.result-domain { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.result-domain strong { flex: none; }
.review-controls { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.review-controls label { display: grid; gap: 6px; max-width: 100%; font-size: .86rem; font-weight: 600; }
.review-controls select { min-height: 44px; max-width: 100%; padding: 9px; border: 1px solid #9d9281; background: #fffdf7; }
.review-card { padding: 24px 0; border-bottom: 1px solid var(--line); }
.review-card h3 { font: 600 1.2rem/1.55 var(--head); }
.calc { padding: 24px; border: 1px solid var(--line); background: var(--wash); }
.calc label { display: block; margin: 12px 0; }
.calc input { display: block; width: 250px; max-width: 100%; min-height: 44px; padding: 10px; border: 1px solid #8f7c6c; border-radius: 3px; background: #fffdf7; }
.calc output { display: block; min-height: 32px; font-weight: 700; }
.storage-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.storage-controls button { font-size: .86rem; }
@media (max-width:1000px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: .83rem; }
  .brand-name { font-size: 1.3rem; }
  .hero { gap: 24px; }
  .rpt-home .hero h1 { font-size: clamp(2.8rem,5.1vw,3.8rem); }
  .study-illustration { height: 300px; }
}
@media (max-width:850px) {
  .wrap { width: calc(100% - 40px); }
  .header-row { min-height: 84px; position: relative; gap: 14px; }
  .brand-name { font-size: 1.3rem; }
  .menu { display: block; }
  .site-nav { display: none; }
  .site-nav.open { display: flex; position: absolute; z-index: 10; top: calc(100% - 1px); left: 0; right: 0; padding: 18px; flex-direction: column; align-items: stretch; gap: 8px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 #ded4c3; }
  .site-nav.open a { justify-content: flex-start; padding: 10px 12px; font-size: 1rem; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-row { grid-template-columns: 1.5fr 1fr; gap: 30px; }
  .footer-row>div { grid-column: 1/-1; }
  .hero { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 22px; }
  .study-illustration { height: 250px; }
  .blueprint-caption { padding: 14px; grid-template-columns: 54px minmax(0,1fr); gap: 2px 12px; }
  .blueprint-caption>strong { font-size: 3.2rem; }
}
@media (max-width:650px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { min-height: 80px; }
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.1rem; }
  .brand-copy small { font-size: .49rem; letter-spacing: .09em; }
  .hero,.rpt-home .hero { display: block; min-height: 0; padding: 30px 0 38px; }
  .hero.single { padding: 20px 0 26px; }
  h1,.rpt-home .hero h1 { font-size: clamp(2.1rem,8.8vw,3.5rem); line-height: 1.04; letter-spacing: -.04em; }
  h2 { font-size: 1.95rem; }
  .hero>div>.eyebrow { margin-bottom: 18px; }
  .rpt-home .hero>div>.eyebrow { font-size: .58rem; }
  .lead { font-size: 1.02rem; }
  .actions { margin: 22px 0; gap: 12px; }
  .btn { padding: 12px 15px; }
  .hero .actions { align-items: stretch; }
  .hero .actions .btn { flex: 1 1 auto; }
  .blueprint { margin: 28px auto 0; max-width: 400px; }
  .study-illustration { height: 230px; }
  .blueprint-caption { margin-top: -8px; }
  .facts { font-size: .76rem; gap: 8px 16px; }
  .grid,.steps,.modes { grid-template-columns: minmax(0,1fr); }
  .steps { gap: 22px; }
  .section { padding: 30px 0 36px; }
  .section-head { flex-direction: column; align-items: start; gap: 14px; }
  .card { padding: 22px; }
  .card h3 { font-size: 1.5rem; }
  .crumbs { padding: 18px 0 4px; font-size: .76rem; }
  .tool { padding: 20px 14px; box-shadow: 4px 4px 0 #ded4c3; }
  .tool-head { gap: 12px; align-items: start; }
  .tool-head h2 { font-size: 1.4rem; }
  .timer { font-size: .74rem; padding: 4px 6px; }
  .modes label { padding: 16px; }
  .modes label:has(input:checked) { padding: 15px; }
  .question-text { font-size: 1.22rem; line-height: 1.5; }
  .option { padding: 14px 12px; gap: 8px; }
  .option.selected { padding: 13px 11px; }
  .tool .actions .btn { flex: 1 1 120px; }
  .explanation { padding: 18px 14px; }
  .explanation ul { padding-left: 20px; }
  .reference ol { padding-left: 22px; }
  .reference ul { padding-left: 20px; }
  .domain-table td,.domain-table th { padding: 10px 5px; font-size: .85rem; }
  .domain-table .code { display: none; }
  .notice,.worked { padding: 18px; }
  .review-controls { gap: 12px; }
  .review-controls label { width: 100%; }
  .review-controls select { width: 100%; }
  .site-footer { margin-top: 40px; padding: 30px 0 22px; }
  .footer-row { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .footer-row>div { grid-column: auto; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; } .btn { transition: none; } }
@media print {
  .site-header,.site-footer,.crumbs,.hero,.tool,.faq,[data-print],.skip { display: none !important; }
  .wrap { width: 100%; }
  .reference { border: 0; }
  .reference details { break-inside: avoid; }
  .reference summary { list-style: none; }
  body { font: 11pt/1.5 var(--body); color: #000; background: #fff; }
  .sources { font-size: 9pt; }
  .reference p,.reference li { margin: 5px 0; }
}
