/* Roadmaps R2 — Unified Specialty Guides. Presentation layer for #rt-detail-view only.
   Loads after every shipped stylesheet. Scoped to the detail view; the shell, the R1.3
   homepage, the Academic Year and Medical Careers are untouched. */
#rt-detail-view.r2-on {
  --r2-ink: #16233f; --r2-navy: #081f47; --r2-slate: #5d6b84; --r2-mist: #8a97ad; --r2-blue: #1f6fd6; --r2-link: #1559b0;
  --r2-rule: #e4e9f1; --r2-rule-strong: #c9d3e2; --r2-wash: #f6f8fb; --r2-ease: cubic-bezier(.16, 1, .3, 1);
  --r2-hist: #6b7a93; --r2-off: #1559b0; --r2-pend: #9a5b00; --r2-der: #5b4bb3;
  --fam-ink: #25568f; --fam-tint: #e8f0fb; --fam-rule: #b5cce9; --fam-soft: #c7d8ef;
  color: var(--r2-ink); font-family: var(--font-application-ui, 'IBM Plex Sans', sans-serif);
}
#rt-detail-view.r2-on > :not(#r2-guide) { display: none; }
#rt-detail-view.r2-on #r2-guide { display: block; }
#r2-guide *, #r2-guide *::before, #r2-guide *::after { box-sizing: border-box; }
#r2-guide ::selection { background: #d9e9ff; color: var(--r2-navy); }
#r2-guide :focus-visible { outline: 2px solid var(--r2-blue); outline-offset: 3px; border-radius: 2px; }
#r2-guide h1, #r2-guide h2, #r2-guide h3, #r2-guide h4, #r2-guide p, #r2-guide ul, #r2-guide ol, #r2-guide dl { margin: 0; }
#r2-guide h1, #r2-guide h2, #r2-guide h3 { color: var(--r2-ink); text-wrap: balance; }
#r2-guide p { text-wrap: pretty; }
#r2-guide a { color: var(--r2-link); text-decoration: none; text-underline-offset: 4px; }
#r2-guide a:hover { text-decoration: underline; }
#r2-guide svg { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
#r2-guide button { font: inherit; }
#r2-guide .r2-small { font-size: 13px; line-height: 1.55; color: var(--r2-slate); }
#r2-guide .r2-list { padding-left: 18px; font-size: 15px; line-height: 1.6; display: grid; gap: 6px; }

/* ---- category families (R1.2 explorer) ---- */
#r2-guide .r2-fam-community { --fam-ink: #226047; --fam-tint: #e3f4ec; --fam-rule: #a9cfba; --fam-soft: #bfe0cf; }
#r2-guide .r2-fam-medical { --fam-ink: #25568f; --fam-tint: #e8f0fb; --fam-rule: #b5cce9; --fam-soft: #c7d8ef; }
#r2-guide .r2-fam-surgical { --fam-ink: #914d2c; --fam-tint: #fbede4; --fam-rule: #dfbda6; --fam-soft: #ead0bf; }
#r2-guide .r2-fam-acute { --fam-ink: #102e49; --fam-tint: #e9f0f7; --fam-rule: #9fb3c8; --fam-soft: #c3d0de; }
#r2-guide .r2-fam-combined { --fam-ink: #873e61; --fam-tint: #f7eaf0; --fam-rule: #d9b2c4; --fam-soft: #e5c8d4; }
#r2-guide .r2-fam-diagnostic { --fam-ink: #315e70; --fam-tint: #e9f2f5; --fam-rule: #aecbd6; --fam-soft: #c6dbe3; }
#r2-guide .r2-fam-academic { --fam-ink: #585080; --fam-tint: #eeedf7; --fam-rule: #c4bedc; --fam-soft: #d5d0e6; }

/* ---- opening ---- */
#r2-guide .r2-opening { padding: 4px 0 36px; border-bottom: 1px solid var(--r2-rule-strong); }
#r2-guide .r2-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--r2-slate); margin-bottom: 26px; }
#r2-guide .r2-crumbs a { color: var(--r2-slate); font-weight: 500; min-height: 28px; display: inline-flex; align-items: center; }
#r2-guide .r2-crumbs a:hover { color: var(--r2-link); }
#r2-guide .r2-crumbs [aria-current] { color: var(--r2-ink); font-weight: 500; }
#r2-guide .r2-opening-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
#r2-guide .r2-category { font-size: 14px; font-weight: 600; color: var(--fam-ink); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
#r2-guide .r2-category span { font-weight: 400; color: var(--r2-slate); }
#r2-guide .r2-title { font-size: 44px; line-height: 1.08; letter-spacing: -.03em; font-weight: 600; max-width: 16ch; }
#r2-guide .r2-deck { font-size: 19px; line-height: 1.5; color: var(--r2-ink); margin-top: 16px; max-width: 54ch; letter-spacing: -.01em; }
#r2-guide .r2-guidance { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--r2-slate); max-width: 62ch; display: grid; gap: 2px; }
#r2-guide .r2-guidance span { display: block; }
#r2-guide .r2-guidance span:first-child { color: var(--r2-ink); font-weight: 500; }
#r2-guide .r2-guidance span:first-child::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fam-ink); margin-right: 8px; vertical-align: 1px; }
#r2-guide .r2-facts { display: grid; border-top: 1px solid var(--r2-ink); }
#r2-guide .r2-fact { display: grid; grid-template-columns: minmax(96px, .8fr) minmax(0, 1.4fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--r2-rule); align-items: baseline; }
#r2-guide .r2-fact dt { font-size: 13px; color: var(--r2-slate); }
#r2-guide .r2-fact dd { font-size: 15px; font-weight: 500; line-height: 1.4; }
#r2-guide .r2-fit { margin-top: 20px; }
#r2-guide .r2-fit-label { font-size: 13px; font-weight: 600; color: var(--r2-slate); margin-bottom: 8px; }
#r2-guide .r2-fit ul { padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--r2-ink); display: grid; gap: 4px; }

/* status words: dot + sentence-case text; the words carry the meaning */
#r2-guide .r2-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--r2-slate); line-height: 1.4; }
#r2-guide .r2-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--r2-off); flex: none; }
#r2-guide .r2-status-historical::before { background: #fff; box-shadow: inset 0 0 0 1.5px var(--r2-hist); }
#r2-guide .r2-status-route::before { background: var(--fam-ink); }
#r2-guide .r2-status-confirmed::before { background: #1a7f4a; }
#r2-guide .r2-status-pending::before, #r2-guide .r2-status-disputed::before { background: var(--r2-pend); }
#r2-guide .r2-status-derived::before { background: var(--r2-der); }
#r2-guide .r2-status-block { display: flex; margin-top: 3px; font-weight: 400; }

/* notes: a plain block with a top rule and a bold first word */
#r2-guide .r2-note { border-top: 1px solid var(--r2-rule-strong); padding: 12px 0 0; margin-top: 18px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.55; max-width: 66ch; }
#r2-guide .r2-note b { font-weight: 600; color: var(--r2-ink); }
#r2-guide .r2-note p { color: var(--r2-ink); }
#r2-guide .r2-note-update { background: var(--r2-wash); border-top: 2px solid var(--r2-navy); padding: 12px 14px 14px; max-width: none; }
#r2-guide .r2-note-caution b { color: var(--r2-pend); }

/* ---- layout: contents rail + chapters ---- */
#r2-guide .r2-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
#r2-guide .r2-contents { padding: 22px 0 8px; border-bottom: 1px solid var(--r2-rule); }
#r2-guide .r2-contents p { font-size: 12px; font-weight: 600; color: var(--r2-slate); margin-bottom: 8px; }
#r2-guide .r2-contents ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
#r2-guide .r2-contents a { font-size: 14px; font-weight: 500; color: var(--r2-ink); display: inline-flex; align-items: center; min-height: 36px; }
#r2-guide .r2-contents a:hover { color: var(--r2-link); }
#r2-guide .r2-chapters { min-width: 0; }
#r2-guide .r2-chapter { padding: 34px 0 6px; scroll-margin-top: 20px; }
#r2-guide .r2-chapter + .r2-chapter { border-top: 1px solid var(--r2-rule); margin-top: 32px; }
#r2-guide .r2-chapter-head { margin-bottom: 22px; max-width: 70ch; }
#r2-guide .r2-chapter-head h2 { font-size: 27px; line-height: 1.22; letter-spacing: -.025em; font-weight: 600; }
#r2-guide .r2-chapter-head h2:focus-visible { outline-offset: 6px; }
#r2-guide .r2-chapter-meta { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--r2-slate); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
#r2-guide .r2-dot-line { display: inline-flex; align-items: baseline; gap: 6px; }
#r2-guide .r2-dot-line > span:last-child { font-size: 13px; }
#r2-guide .r2-chapter h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
#r2-guide .r2-chapter h4 { font-size: 15px; font-weight: 600; margin-top: 14px; }
#r2-guide .r2-prose { display: grid; gap: 12px; font-size: 15.5px; line-height: 1.62; max-width: 66ch; margin-top: 26px; }
#r2-guide .r2-sub-year { font-size: 13px; font-weight: 500; color: var(--r2-slate); margin-left: 8px; letter-spacing: 0; }

/* ---- the training journey ---- */
#r2-guide .r2-journey { list-style: none; padding: 0; margin: 6px 0 0; position: relative; display: grid; gap: 0; }
#r2-guide .r2-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding: 0 0 22px; min-height: 44px; }
#r2-guide .r2-step > :not(.r2-node) { grid-column: 2; }
#r2-guide .r2-step .r2-node { grid-column: 1; grid-row: 1 / span 4; }
#r2-guide .r2-step::before { content: ''; position: absolute; left: 13px; top: 18px; bottom: -4px; width: 2px; background: var(--fam-rule); }
#r2-guide .r2-step:last-child::before { display: none; }
#r2-guide .r2-node { width: 28px; height: 28px; border-radius: 50%; background: var(--fam-ink); border: 2px solid var(--fam-ink); position: relative; z-index: 1; margin-top: 2px; }
#r2-guide .r2-kind-start .r2-node, #r2-guide .r2-kind-foundation .r2-node { background: #fff; border-color: var(--fam-rule); width: 18px; height: 18px; margin: 7px 0 0 5px; }
#r2-guide .r2-kind-exam .r2-node, #r2-guide .r2-kind-completion .r2-node { background: #fff; }
#r2-guide .r2-kind-gate .r2-node { border-radius: 4px; }
#r2-guide .r2-kind-outcome .r2-node { background: var(--r2-navy); border-color: var(--r2-navy); }
#r2-guide .r2-kind-start .r2-node-label, #r2-guide .r2-kind-foundation .r2-node-label { color: var(--r2-slate); }
#r2-guide .r2-node-label { font-size: 16px; font-weight: 600; line-height: 1.35; display: block; padding-top: 4px; }
#r2-guide .r2-kind-outcome .r2-node-label { font-size: 17px; }
#r2-guide .r2-node-meta { display: block; font-size: 13px; color: var(--r2-slate); margin-top: 3px; grid-column: 2; }
#r2-guide .r2-entry { grid-column: 2; display: inline-block; font-size: 12px; font-weight: 600; color: var(--fam-ink); margin: 2px 0 2px; }
#r2-guide .r2-lanes { display: grid; gap: 8px; padding-top: 4px; }
#r2-guide .r2-lanes span { font-size: 16px; font-weight: 600; line-height: 1.35; padding-left: 10px; border-left: 2px solid var(--fam-ink); }
#r2-guide .r2-lanes i { font-style: normal; font-size: 12px; color: var(--r2-slate); padding-left: 10px; }

/* ---- the selection process ---- */
#r2-guide .r2-stands-out { list-style: none; padding: 0 0 20px; margin: 0 0 22px; border-bottom: 1px solid var(--r2-rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 28px; }
#r2-guide .r2-stands-out li { font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--r2-ink); padding-left: 12px; border-left: 1px solid var(--fam-ink); }
#r2-guide .r2-requirements { margin-bottom: 30px; max-width: 70ch; }
#r2-guide .r2-requirements p { margin-top: 8px; font-size: 15px; line-height: 1.6; }
#r2-guide .r2-requirements ul { margin-top: 12px; padding-left: 18px; font-size: 15px; line-height: 1.6; display: grid; gap: 6px; }
#r2-guide .r2-process { list-style: none; padding: 0; display: grid; }
#r2-guide .r2-pstep { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 18px; padding-bottom: 22px; }
#r2-guide .r2-pstep::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--r2-rule); }
#r2-guide .r2-pstep:last-child::before { display: none; }
#r2-guide .r2-pnum { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fam-tint); color: var(--fam-ink); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
#r2-guide .r2-pbody { max-width: 66ch; padding-top: 6px; }
#r2-guide .r2-group { display: block; font-size: 12px; font-weight: 600; color: var(--r2-slate); margin: -2px 0 6px; }
#r2-guide .r2-pbody h3 { font-size: 17px; }
#r2-guide .r2-pbody p { font-size: 15px; line-height: 1.6; margin-top: 6px; }
#r2-guide .r2-pbody .r2-status { margin-top: 8px; }
#r2-guide .r2-important { color: var(--r2-ink); font-weight: 500; border-left: 2px solid var(--r2-pend); padding-left: 10px; }
#r2-guide .r2-explainer { margin-top: 10px; border-top: 1px solid var(--r2-rule); border-bottom: 1px solid var(--r2-rule); max-width: 70ch; }
#r2-guide .r2-explainer summary { cursor: pointer; font-size: 15px; font-weight: 600; min-height: 48px; display: flex; align-items: center; gap: 10px; color: var(--r2-ink); list-style: none; }
#r2-guide .r2-explainer summary::-webkit-details-marker { display: none; }
#r2-guide .r2-explainer summary::before { content: ''; width: 8px; height: 8px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(-45deg); transition: transform 160ms var(--r2-ease); margin: 0 4px; }
#r2-guide .r2-explainer[open] summary::before { transform: rotate(45deg); }
#r2-guide .r2-explainer ol, #r2-guide .r2-explainer ul { padding-left: 20px; font-size: 15px; line-height: 1.6; display: grid; gap: 6px; margin-bottom: 14px; }
#r2-guide .r2-explainer > :last-child { margin-bottom: 18px; }
#r2-guide .r2-source-line { font-size: 13px; color: var(--r2-slate); }
#r2-guide .r2-offers { margin-top: 22px; max-width: 66ch; }
#r2-guide .r2-offers p { margin-top: 8px; font-size: 15px; line-height: 1.6; }
#r2-guide .r2-legacy-selection { max-width: 66ch; display: grid; gap: 12px; font-size: 15.5px; line-height: 1.6; }
#r2-guide .r2-legacy-selection h3 { margin-top: 8px; }
#r2-guide .r2-crossref { margin-top: 26px; font-size: 14px; color: var(--r2-slate); }

/* ---- scoring chapter: adopted cards ---- */
#r2-guide .r2-sub { padding: 26px 0 8px; }
#r2-guide .r2-sub + .r2-sub { border-top: 1px solid var(--r2-rule); }
#r2-guide .r2-sub > h3 { margin-bottom: 14px; }
#r2-guide .r2-sub-year { white-space: nowrap; }

/* ---- the competition figure ---- */
#r2-guide .r2-figure { display: grid; gap: 4px; padding: 6px 0 2px; }
#r2-guide .r2-figure-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
#r2-guide .r2-figure-value strong { font-size: 52px; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--r2-navy); }
#r2-guide .r2-figure-value span { font-size: 17px; color: var(--r2-ink); }
#r2-guide .r2-figure-label { font-size: 14px; font-weight: 500; color: var(--r2-slate); }
#r2-guide .r2-figure-denominator { font-size: 14px; color: var(--r2-slate); }
#r2-guide .r2-figure-note p { font-size: 17px; font-weight: 500; max-width: 50ch; }

/* ---- sources ---- */
#r2-guide .r2-source-lines { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--r2-ink); max-width: 70ch; }
#r2-guide .r2-source-lines li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fam-ink); margin-right: 10px; vertical-align: 2px; }
#r2-guide .r2-discrepancies { margin-top: 26px; max-width: 70ch; }
#r2-guide .r2-discrepancies ul { list-style: none; padding: 0; margin-top: 12px; display: grid; }
#r2-guide .r2-discrepancies li { padding: 12px 0; border-top: 1px solid var(--r2-rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
#r2-guide .r2-discrepancies li b { font-weight: 600; font-size: 15px; }
#r2-guide .r2-discrepancies li p { grid-column: 1 / -1; font-size: 14px; line-height: 1.55; }
#r2-guide .r2-register { margin-top: 26px; max-width: 70ch; border-top: 1px solid var(--r2-rule); border-bottom: 1px solid var(--r2-rule); }
#r2-guide .r2-register summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; min-height: 52px; font-size: 16px; font-weight: 600; }
#r2-guide .r2-register summary::-webkit-details-marker { display: none; }
#r2-guide .r2-register summary > span:first-child::before { content: ''; display: inline-block; width: 8px; height: 8px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(-45deg); margin: 0 12px 2px 4px; transition: transform 160ms var(--r2-ease); }
#r2-guide .r2-register[open] summary > span:first-child::before { transform: rotate(45deg); }
#r2-guide .r2-register > p { padding-bottom: 6px; }
#r2-guide .r2-register > ul { margin-bottom: 10px; }
#r2-guide .r2-register ul { list-style: none; padding: 0; margin-top: 12px; display: grid; }
#r2-guide .r2-register li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 9px 0; border-top: 1px solid var(--r2-rule); font-size: 14px; }
#r2-guide .r2-register li a { display: inline-flex; gap: 8px; align-items: center; min-height: 28px; font-weight: 500; }
#r2-guide .r2-register li span { color: var(--r2-slate); font-size: 13px; }
#r2-guide .r2-actions { margin-top: 28px; display: grid; gap: 4px; max-width: 70ch; }
#r2-guide .r2-compare { background: none; border: 0; border-top: 1px solid var(--r2-rule); padding: 14px 0; text-align: left; cursor: pointer; color: var(--r2-link); font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; min-height: 48px; }
#r2-guide .r2-compare svg, #r2-guide .r2-register a svg { transition: transform 180ms var(--r2-ease); }
#r2-guide .r2-compare:hover svg, #r2-guide .r2-register a:hover svg { transform: translateX(3px); }

/* ---- adopted shipped cards, restyled into the chapter grammar ---- */
#section-roadmaps #r2-guide .rp-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
#section-roadmaps #r2-guide .rp-card.rp-rows > .rp-row, #section-roadmaps #r2-guide .rp-row { padding-left: 0; padding-right: 0; }
#section-roadmaps #r2-guide .rp-kicker { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--r2-ink); margin: 26px 0 8px; }
#section-roadmaps #r2-guide .rp-kicker b { font-weight: 500; color: var(--r2-slate); }
#section-roadmaps #r2-guide .rp-textrow { padding-left: 0; padding-right: 0; }
#section-roadmaps #r2-guide .rp-callout, #section-roadmaps #r2-guide .rp-facts-note, #section-roadmaps #r2-guide .rp-edition-note { background: transparent; border: 0; border-top: 1px solid var(--r2-rule-strong); border-radius: 0; padding: 12px 0 0; margin: 14px 0 0; color: var(--r2-ink); font-size: 14px; line-height: 1.55; }
#section-roadmaps #r2-guide .rp-callout--warn { border-top-color: var(--r2-pend); }
#section-roadmaps #r2-guide .rp-callout svg { color: var(--r2-slate); }
#section-roadmaps #r2-guide .rp-chip { border-radius: 0; background: transparent; border: 0; padding: 0; font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--r2-slate); white-space: normal; }
#section-roadmaps #r2-guide .rp-chip::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--r2-off); }
#section-roadmaps #r2-guide .rp-chip--historical::before { background: #fff; box-shadow: inset 0 0 0 1.5px var(--r2-hist); }
#section-roadmaps #r2-guide .rp-chip--pending::before, #section-roadmaps #r2-guide .rp-chip--disputed::before { background: var(--r2-pend); }
#section-roadmaps #r2-guide .rp-chip--confirmed::before { background: #1a7f4a; }
#section-roadmaps #r2-guide .rp-chip--derived::before { background: var(--r2-der); }
#section-roadmaps #r2-guide .rp-chip--route::before { background: var(--fam-ink); }
#section-roadmaps #r2-guide .rp-tag { border-radius: 0; background: transparent; border: 0; padding: 0; font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--r2-slate); }
#section-roadmaps #r2-guide .rp-tag--pts { color: var(--r2-ink); font-variant-numeric: tabular-nums; }
#section-roadmaps #r2-guide .rp-prep-badge, #section-roadmaps #r2-guide .rp-ss-purpose, #section-roadmaps #r2-guide .rp-iv-badge { display: none; }
#section-roadmaps #r2-guide .rp-ss-head, #section-roadmaps #r2-guide .rp-iv-head, #section-roadmaps #r2-guide .rp-score-head, #section-roadmaps #r2-guide .rp-pe-head { padding: 0 0 10px; }
#section-roadmaps #r2-guide .rp-ss-title, #section-roadmaps #r2-guide .rp-iv-title, #section-roadmaps #r2-guide .rp-score-title, #section-roadmaps #r2-guide .rp-pe-title { font-size: 21px; letter-spacing: -.02em; font-weight: 600; }
#section-roadmaps #r2-guide .rp-total { background: var(--r2-wash); border-radius: 6px; padding: 16px 18px; margin: 12px 0 10px; }
#section-roadmaps #r2-guide .rp-total-value { font-size: 40px; font-weight: 500; letter-spacing: -.03em; }
#section-roadmaps #r2-guide .rp-total-track i { background: var(--fam-soft); }
#section-roadmaps #r2-guide .rp-total-track i.is-on { background: var(--fam-ink); }
#section-roadmaps #r2-guide .rp-prep-track i { background: var(--fam-soft); }
#section-roadmaps #r2-guide .rp-prep-track i.is-done { background: var(--fam-ink); }
#section-roadmaps #r2-guide .rp-sdom-row, #section-roadmaps #r2-guide .rp-dom-row { padding-left: 0; padding-right: 0; }
#section-roadmaps #r2-guide .rp-sdom-panel, #section-roadmaps #r2-guide .rp-dom-panel, #section-roadmaps #r2-guide .rp-iv-panel, #section-roadmaps #r2-guide .rp-dnc-panel, #section-roadmaps #r2-guide .rp-how-panel, #section-roadmaps #r2-guide .rp-zero-panel { padding-left: 0; padding-right: 0; }
#section-roadmaps #r2-guide .rp-opt { padding-left: 0; }
#section-roadmaps #r2-guide .rp-opt[aria-checked="true"] { background: var(--r2-wash); padding-left: 10px; margin-left: -10px; border-radius: 6px; }
#section-roadmaps #r2-guide .rp-moves { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; }
#section-roadmaps #r2-guide .rp-move { background: transparent; border: 0; border-top: 1px solid var(--r2-rule); border-radius: 0; padding: 14px 0 16px; }
#section-roadmaps #r2-guide .rp-move-label { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--fam-ink); }
#section-roadmaps #r2-guide .rp-dnc { background: transparent; border: 0; border-top: 1px solid var(--r2-rule); border-radius: 0; padding: 12px 0; }
#section-roadmaps #r2-guide .rp-weight-track i:first-child { background: var(--fam-soft); }
#section-roadmaps #r2-guide .rp-weight-track i:nth-child(2) { background: var(--fam-ink); }
#section-roadmaps #r2-guide .rp-weight-track i:nth-child(3) { background: var(--r2-navy); }
#section-roadmaps #r2-guide .rp-weight-track i:nth-child(4) { background: var(--r2-mist); }
#section-roadmaps #r2-guide .rp-comp .rp-wdot { display: none; }
#section-roadmaps #r2-guide .rp-iv-area-bar i { background: var(--fam-ink); }
#section-roadmaps #r2-guide .rp-meter-card { padding: 0; }
#section-roadmaps #r2-guide .rp-meter-caption { font-size: 14px; }
#section-roadmaps #r2-guide #rt-spine .rp-kicker { margin: 28px 0 6px; font-size: 16px; }
#section-roadmaps #r2-guide .rp-stage-rows .rp-row { padding: 14px 0; border-top: 1px solid var(--r2-rule); }
#section-roadmaps #r2-guide .rp-stage-rows .rp-row:first-child { border-top: 0; }
#section-roadmaps #r2-guide .rp-mark.is-done { background: var(--fam-ink); border-color: var(--fam-ink); }
#section-roadmaps #r2-guide .rp-mark.is-part { border-color: var(--fam-ink); }
#section-roadmaps #r2-guide .rp-row-title { font-size: 15.5px; }
#section-roadmaps #r2-guide .rp-row-meta { font-size: 13.5px; line-height: 1.5; }
#section-roadmaps #r2-guide #r2-opps-card { border-top: 1px solid var(--r2-rule); }
#section-roadmaps #r2-guide #r2-opps-card .rp-textrow { padding: 14px 0; font-size: 15px; }
#section-roadmaps #r2-guide #r2-opps-card .rp-facts-note { border-top: 0; padding-top: 0; margin-top: 0; color: var(--r2-slate); font-size: 13px; }

/* ---- one authored moment: the rail draws in once ---- */
@media (prefers-reduced-motion: no-preference) {
  #r2-guide .r2-journey .r2-step::before { transform-origin: top; animation: r2-rail 420ms var(--r2-ease) backwards; }
  #r2-guide .r2-journey .r2-step:nth-child(n) .r2-node { animation: r2-node 320ms var(--r2-ease) backwards; }
  @keyframes r2-rail { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes r2-node { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}

/* ---- desktop: horizontal journey ---- */
@media (min-width: 900px) {
  #r2-guide .r2-journey { grid-template-columns: repeat(var(--r2-steps, 6), minmax(0, 1fr)); gap: 0 10px; padding-top: 6px; }
  #r2-guide .r2-steps-4 { --r2-steps: 4; } #r2-guide .r2-steps-5 { --r2-steps: 5; } #r2-guide .r2-steps-6 { --r2-steps: 6; } #r2-guide .r2-steps-7 { --r2-steps: 7; } #r2-guide .r2-steps-8 { --r2-steps: 8; }
  #r2-guide .r2-step { grid-template-columns: minmax(0, 1fr); grid-template-rows: 32px auto auto auto; padding: 0; min-height: 0; }
  #r2-guide .r2-step > :not(.r2-node) { grid-column: 1; }
  #r2-guide .r2-step .r2-node { grid-column: 1; grid-row: 1; }
  #r2-guide .r2-step::before { left: 14px; right: -10px; top: 15px; bottom: auto; height: 2px; width: auto; }
  #r2-guide .r2-kind-start::before, #r2-guide .r2-kind-foundation::before { background: var(--r2-rule-strong); }
  #r2-guide .r2-node { grid-row: 1; margin-top: 2px; }
  #r2-guide .r2-kind-start .r2-node, #r2-guide .r2-kind-foundation .r2-node { margin: 7px 0 0 5px; }
  #r2-guide .r2-entry { grid-column: 1; grid-row: 2; order: -1; }
  #r2-guide .r2-node-label { font-size: 14.5px; padding-top: 10px; padding-right: 6px; }
  #r2-guide .r2-kind-outcome .r2-node-label { font-size: 15px; }
  #r2-guide .r2-node-meta { grid-column: 1; font-size: 12.5px; }
  #r2-guide .r2-entry { font-size: 11.5px; margin: 8px 0 -4px; }
  #r2-guide .r2-lanes { padding-top: 10px; gap: 6px; }
  #r2-guide .r2-lanes span { font-size: 14.5px; }
  @media (prefers-reduced-motion: no-preference) { #r2-guide .r2-journey .r2-step::before { transform-origin: left; animation-name: r2-rail-x; } @keyframes r2-rail-x { from { transform: scaleX(0); } to { transform: scaleX(1); } } }
}

/* ---- wide: sticky contents rail ---- */
@media (min-width: 1180px) {
  #r2-guide .r2-layout { grid-template-columns: 176px minmax(0, 1fr); column-gap: 44px; }
  #r2-guide .r2-contents { position: sticky; top: 24px; align-self: start; padding: 42px 0 0; border: 0; }
  #r2-guide .r2-contents ol { display: grid; gap: 0; border-left: 1px solid var(--r2-rule); }
  #r2-guide .r2-contents a { padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; min-height: 36px; font-size: 13.5px; color: var(--r2-slate); transition: color 140ms, border-color 140ms; }
  #r2-guide .r2-contents a:hover, #r2-guide .r2-contents a[aria-current] { color: var(--r2-ink); border-left-color: var(--fam-ink); text-decoration: none; }
  #r2-guide .r2-chapter:first-child { padding-top: 42px; }
}

/* ---- narrow: single column opening, compact scale ---- */
@media (max-width: 1023.98px) {
  #r2-guide .r2-opening-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  #r2-guide .r2-opening-side { max-width: 560px; }
}
@media (max-width: 767.98px) {
  #r2-guide .r2-opening { padding-bottom: 26px; }
  #r2-guide .r2-crumbs { margin-bottom: 18px; }
  #r2-guide .r2-title { font-size: 32px; letter-spacing: -.028em; }
  #r2-guide .r2-deck { font-size: 17px; margin-top: 12px; }
  #r2-guide .r2-chapter { padding-top: 26px; }
  #r2-guide .r2-chapter + .r2-chapter { margin-top: 18px; }
  #r2-guide .r2-pstep { padding-bottom: 18px; }
  #r2-guide .r2-chapter-head { margin-bottom: 16px; }
  #section-roadmaps #r2-guide .rp-stage-rows .rp-row { padding: 12px 0; }
  #r2-guide .r2-chapter-head h2 { font-size: 23px; }
  #r2-guide .r2-note { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #r2-guide .r2-figure-value strong { font-size: 44px; }
  #r2-guide .r2-pstep { grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; }
  #r2-guide .r2-pnum { width: 30px; height: 30px; font-size: 13px; }
  #r2-guide .r2-pstep::before { left: 14px; top: 32px; }
  #r2-guide .r2-stands-out { grid-template-columns: minmax(0, 1fr); }
  #r2-guide .r2-contents ol { gap: 0 14px; }
  #section-roadmaps #r2-guide .rp-moves { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359.98px) {
  #r2-guide .r2-title { font-size: 28px; }
  #r2-guide .r2-fact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* adopted cards: no uppercase labels anywhere in the guide */
#section-roadmaps #r2-guide .rp-total-label, #section-roadmaps #r2-guide .rp-meter-labels span, #section-roadmaps #r2-guide .rp-sub, #section-roadmaps #r2-guide .rp-sheet-eyebrow, #section-roadmaps #r2-guide .rp-ss-status, #section-roadmaps #r2-guide .rp-score-status, #section-roadmaps #r2-guide .rp-sdom-pts small, #section-roadmaps #r2-guide .rp-max small, #section-roadmaps #r2-guide .rp-opt-pts small, #section-roadmaps #r2-guide .rp-weight-label, #section-roadmaps #r2-guide .rp-iv-area-max small { text-transform: none; letter-spacing: 0; }
#section-roadmaps #r2-guide .rp-total-label { font-size: 13px; color: var(--r2-slate); font-weight: 500; }
#section-roadmaps #r2-guide .rp-meter-labels span { font-size: 12px; }
#section-roadmaps #r2-guide .rp-sub { font-size: 13px; font-weight: 600; color: var(--r2-ink); }
#section-roadmaps #r2-guide .rp-dnc-toggle, #section-roadmaps #r2-guide .rp-textrow { color: var(--r2-link); }
#section-roadmaps #r2-guide .rp-sdom-pts { font-variant-numeric: tabular-nums; }

/* adopted callouts take the note grammar: no icons, regular weight */
#section-roadmaps #r2-guide .rp-callout > svg, #section-roadmaps #r2-guide .rp-edition-note > svg, #section-roadmaps #r2-guide .rp-policy > svg, #section-roadmaps #r2-guide .rp-dnc-title > svg, #section-roadmaps #r2-guide .rp-flow-important > svg { display: none; }
#section-roadmaps #r2-guide .rp-callout span, #section-roadmaps #r2-guide .rp-edition-note span { font-weight: 500; color: var(--r2-ink); }
#section-roadmaps #r2-guide .rp-callout--warn span { font-weight: 500; }
@media (max-width: 767.98px) {
  #section-roadmaps #r2-guide .rp-stage-rows .rp-row { flex-wrap: wrap; }
  #section-roadmaps #r2-guide .rp-stage-rows .rp-row .rp-rowbtn { flex: 1 1 calc(100% - 44px); }
  #section-roadmaps #r2-guide .rp-stage-rows .rp-row .rp-tag, #section-roadmaps #r2-guide .rp-stage-rows .rp-row .rp-clip { order: 3; margin-left: 44px; margin-top: 2px; }
}

#section-roadmaps #r2-guide .rp-policy { background: transparent; border: 0; border-top: 1px solid var(--r2-pend); border-radius: 0; padding: 12px 0 0; margin-top: 12px; color: var(--r2-ink); font-size: 14px; line-height: 1.55; }
#section-roadmaps #r2-guide .rp-policy span { font-weight: 500; }
#r2-guide .r2-pbody p { font-size: 14.5px; }
#section-roadmaps #r2-guide .rp-row-meta { font-size: 13px; }

/* ---- refinement pass: contrast floor and measure ---- */
#section-roadmaps #r2-guide .rp-total-value small, #section-roadmaps #r2-guide .rp-total-cap, #section-roadmaps #r2-guide .rp-row-meta.is-empty, #section-roadmaps #r2-guide .rp-sdom-pts.is-zero, #section-roadmaps #r2-guide .rp-meter-labels span, #section-roadmaps #r2-guide .rp-row-meta, #section-roadmaps #r2-guide .rp-max small, #section-roadmaps #r2-guide .rp-sdom-pts small, #section-roadmaps #r2-guide .rp-opt-pts small, #section-roadmaps #r2-guide .rp-weight-caption, #section-roadmaps #r2-guide .rp-facts-source, #section-roadmaps #r2-guide .rp-how-meta, #section-roadmaps #r2-guide .rp-domsum, #section-roadmaps #r2-guide .rp-dmeta, #section-roadmaps #r2-guide .rp-ev-hint, #section-roadmaps #r2-guide .rp-score-status, #section-roadmaps #r2-guide .rp-ss-status, #section-roadmaps #r2-guide .rp-pe-intro, #section-roadmaps #r2-guide .rp-move-why, #section-roadmaps #r2-guide .rp-dnc-exp, #section-roadmaps #r2-guide .rp-iv-fact span, #section-roadmaps #r2-guide .rp-iv-area-max small, #section-roadmaps #r2-guide .rp-opt-plain, #section-roadmaps #r2-guide .rp-opt-descriptor, #section-roadmaps #r2-guide .rp-meter-caption { color: var(--r2-slate); }
#section-roadmaps #r2-guide .rp-total-cap { font-size: 12.5px; font-weight: 500; }
#r2-guide .r2-entry { font-size: 12px; }
#r2-guide .r2-pbody { max-width: 58ch; }
#r2-guide .r2-prose, #r2-guide .r2-offers, #r2-guide .r2-requirements, #r2-guide .r2-legacy-selection, #r2-guide .r2-explainer, #r2-guide .r2-note { max-width: 60ch; }
#r2-guide .r2-note-update { max-width: 60ch; }
#r2-guide .r2-deck { max-width: 50ch; }
#section-roadmaps #r2-guide #r2-opps-card .rp-facts-note, #section-roadmaps #r2-guide .rp-facts-note p, #section-roadmaps #r2-guide .rp-callout, #section-roadmaps #r2-guide .rp-domsum, #section-roadmaps #r2-guide .rp-row-meta { max-width: 62ch; }
#r2-guide li, #r2-guide dd, #r2-guide .r2-node-label { text-wrap: pretty; }
@media (min-width: 900px) { #r2-guide .r2-entry { font-size: 12px; } }
#section-roadmaps #r2-guide .rp-sdom-pts small, #section-roadmaps #r2-guide .rp-max small, #section-roadmaps #r2-guide .rp-opt-pts small, #section-roadmaps #r2-guide .rp-iv-area-max small { font-size: 11px; }
#section-roadmaps #r2-guide .rp-total-sub { font-size: 12.5px; color: var(--r2-slate); }
#section-roadmaps #r2-guide .rp-clip { color: var(--r2-slate); }
#section-roadmaps #r2-guide #r2-opps-card .rp-facts-note p { max-width: 56ch; }
