/* SBA / SyBA questions and product pages. Loaded after exam-guide.bundle.css, scoped to .rx-page. */
.rx-page {
    --navy: #0f172a; --deep: #172554; --blue: #1e40af; --action: #2563eb; --sky: #3b82f6;
    --tint: #eff6ff; --tint-2: #dbeafe; --line: #e2e8f0; --ink: #1f2937; --muted: #475569;
    --right: #15803d; --right-bg: #f0fdf4; --right-line: #86efac; --wrong: #b91c1c; --wrong-bg: #fef2f2; --wrong-line: #fca5a5;
    color: var(--ink); background: #fff; overflow-x: hidden;
}
.rx-page section[id], .rx-page article[id] { scroll-margin-top: 90px; }
.rx-page a:not(.rx-btn) { color: var(--action); }
.rx-page a:focus-visible, .rx-page button:focus-visible, .rx-page input:focus-visible, .rx-page summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.rx-i { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.rx-center { text-align: center; margin-left: auto; margin-right: auto; }
.rx-muted { color: var(--muted); }
.rx-small { font-size: .85rem; }
.rx-narrow { max-width: 880px; }

/* Buttons */
.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .6rem 1.3rem; border: 2px solid transparent; border-radius: 10px; font-size: .96rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.rx-btn-sm { min-height: 38px; padding: .4rem .95rem; font-size: .88rem; }
.rx-btn-block { width: 100%; }
.rx-btn-primary { background: var(--action); color: #fff; }
.rx-btn-primary:hover { background: var(--blue); color: #fff; }
.rx-btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }
.rx-btn-light { background: #fff; color: var(--blue); }
.rx-btn-light:hover { background: var(--tint-2); color: var(--blue); }
.rx-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.rx-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.rx-btn-outline { background: #fff; color: var(--blue); border-color: #bfdbfe; }
.rx-btn-outline:hover { background: var(--tint); color: var(--blue); }
.rx-link { background: none; border: 0; padding: 0; color: var(--action); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rx-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.rx-actions.rx-center { justify-content: center; }

/* Notices */
.rx-banner { padding: .7rem 0; font-size: .92rem; }
.rx-banner-admin { background: #fef3c7; color: #78350f; border-bottom: 1px solid #fcd34d; }
.rx-banner-admin a { color: #78350f; font-weight: 700; margin-left: .4rem; }
.rx-banner-warn { background: var(--wrong-bg); color: var(--wrong); border-bottom: 1px solid var(--wrong-line); }
.rx-notice { max-width: 760px; margin: 0 auto; padding: 1.3rem 1.5rem; border: 1px solid #fcd34d; background: #fffbeb; border-radius: 14px; text-align: center; }
.rx-notice p { margin: 0 0 .9rem; line-height: 1.6; }
.rx-notice-ok { border-color: var(--right-line); background: var(--right-bg); }

/* Hero */
.rx-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--deep) 58%, var(--blue) 100%); color: #fff; padding: 2.6rem 0 3rem; }
.rx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 2.75rem; align-items: center; }
.rx-kicker { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .8rem; padding: .3rem .75rem; border-radius: 999px; background: rgba(147,197,253,.16); color: #bfdbfe; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.rx-h1 { font-size: clamp(1.7rem, 3.3vw, 2.45rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #fff; margin: 0 0 .65rem; }
.rx-lead { font-size: 1.08rem; font-weight: 500; line-height: 1.5; color: #dbeafe; margin: 0 0 .75rem; max-width: 40em; }
.rx-intro { font-size: .96rem; line-height: 1.7; color: #cbd5e1; margin: 0 0 1.1rem; max-width: 44em; }
.rx-stats { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.4rem; }
.rx-stats li { padding: .35rem .75rem; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .86rem; color: #e2e8f0; }
.rx-stats strong { color: #fff; }
.rx-ticks { display: grid; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .94rem; line-height: 1.45; color: #e2e8f0; }
.rx-ticks li { display: flex; gap: .5rem; }
.rx-ticks .rx-i { color: #93c5fd; margin-top: .1em; }

/* Hero art */
.rx-art { display: flex; justify-content: center; }
.rx-art-window { width: 100%; max-width: 390px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(2,6,23,.75); overflow: hidden; }
.rx-art-bar { display: flex; align-items: center; gap: .35rem; padding: .6rem .9rem; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.rx-art-bar span { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.rx-art-bar b { margin-left: .4rem; font-size: .78rem; color: var(--muted); font-weight: 600; }
.rx-art-tasks { list-style: none; margin: 0; padding: 1rem 1.1rem .4rem; display: grid; gap: .55rem; font-size: .88rem; }
.rx-art-tasks li { display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border-radius: 8px; background: #f8fafc; color: var(--muted); }
.rx-art-tasks i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cbd5e1; flex: none; }
.rx-art-tasks .is-done { color: var(--ink); }
.rx-art-tasks .is-done i { background: var(--right); border-color: var(--right); }
.rx-art-tasks .is-now { background: var(--tint); color: var(--blue); font-weight: 600; }
.rx-art-tasks .is-now i { border-color: var(--action); }
.rx-art-meter { height: 6px; margin: .6rem 1.1rem 0; border-radius: 99px; background: var(--line); overflow: hidden; }
.rx-art-meter span { display: block; height: 100%; background: var(--action); }
.rx-art-foot { margin: .5rem 1.1rem 1rem; font-size: .78rem; color: var(--muted); }
.rx-art-chat { padding-bottom: 1rem; }
.rx-art-msg { margin: .9rem 1rem 0; padding: .65rem .8rem; border-radius: 12px; font-size: .88rem; line-height: 1.45; }
.rx-art-client { background: #f1f5f9; border-top-left-radius: 4px; margin-right: 3rem; }
.rx-art-you { background: var(--action); color: #fff; border-top-right-radius: 4px; margin-left: 3rem; }
.rx-art-score { display: flex; justify-content: space-between; align-items: center; margin: .9rem 1rem 0; padding: .55rem .8rem; border-radius: 10px; background: var(--right-bg); border: 1px solid var(--right-line); font-size: .84rem; }
.rx-art-score strong { color: var(--right); }

/* Price summary (product hero) */
.rx-summary { background: #fff; color: var(--ink); border-radius: 16px; padding: 1.35rem 1.4rem; box-shadow: 0 16px 34px -18px rgba(2,6,23,.7); }
.rx-summary-label { font-size: .88rem; font-weight: 600; color: var(--muted); margin: 0 0 .2rem; }
.rx-summary-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin: 0; line-height: 1.1; }
.rx-summary-price s, .rx-pick-price s { font-size: .55em; font-weight: 600; color: #94a3b8; }
.rx-summary-note { margin: .3rem 0 0; font-size: .82rem; color: var(--right); font-weight: 600; }
.rx-summary-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .45rem; font-size: .9rem; }
.rx-summary-list li { display: flex; gap: .5rem; align-items: flex-start; }
.rx-summary-list .rx-i { color: var(--action); }

/* Jump bar */
.rx-jump { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.rx-jump .container { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.rx-jump a { flex: none; padding: .8rem .9rem; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.rx-jump a:hover { color: var(--blue); border-bottom-color: var(--tint-2); }

/* Sections */
.rx-section { padding: 3rem 0; }
.rx-tint { background: #f8fafc; }
.rx-h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; color: var(--navy); margin: 0 0 .6rem; }
.rx-h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 1.4rem 0 .5rem; }
.rx-sub { font-size: 1rem; line-height: 1.65; color: var(--muted); margin: 0 0 1.6rem; max-width: 46em; }
.rx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2.5rem; align-items: start; }
.rx-prose { font-size: 1rem; line-height: 1.75; }
.rx-prose p { margin: 0 0 1rem; }
.rx-prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.rx-prose li { margin-bottom: .35rem; }
.rx-prose h4 { font-size: 1rem; font-weight: 700; margin: 1rem 0 .4rem; color: var(--navy); }
.rx-prose code { background: var(--tint); padding: .05rem .3rem; border-radius: 4px; font-size: .9em; }
.rx-facts { margin: 1.2rem 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rx-facts div { display: grid; grid-template-columns: 42% 58%; border-bottom: 1px solid var(--line); }
.rx-facts div:last-child { border-bottom: 0; }
.rx-facts dt, .rx-facts dd { margin: 0; padding: .6rem .8rem; font-size: .9rem; overflow-wrap: anywhere; }
.rx-facts dt { background: #f8fafc; color: var(--muted); font-weight: 600; }

.rx-pill { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 999px; background: var(--tint); color: var(--blue); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.rx-pill-soft { background: #f1f5f9; color: var(--muted); }
.rx-pill-easy { background: var(--right-bg); color: var(--right); }
.rx-pill-medium { background: #fef9c3; color: #854d0e; }
.rx-pill-hard { background: var(--wrong-bg); color: var(--wrong); }

/* Practice questions */
.rx-score { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.4rem; padding: .75rem 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .92rem; }
.rx-score-bar { flex: 1; min-width: 140px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rx-score-bar span { display: block; height: 100%; width: 100%; background: var(--action); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.rx-q { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.3rem; margin: 0 0 1.1rem; }
.rx-q-head { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .6rem; }
.rx-q-num { font-size: .95rem; font-weight: 800; color: var(--blue); margin: 0 .3rem 0 0; }
.rx-q-stem { font-size: 1.02rem; font-weight: 600; line-height: 1.6; margin: 0 0 .6rem; color: var(--navy); }
.rx-q-hint { font-size: .85rem; color: var(--muted); margin: 0 0 .5rem; font-style: italic; }
.rx-opts { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .5rem; }
.rx-opt { display: flex; align-items: flex-start; gap: .7rem; width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; font-size: .95rem; line-height: 1.5; color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s; }
.rx-opt:hover { border-color: #93c5fd; background: var(--tint); }
.rx-opt[aria-pressed="true"] { border-color: var(--action); background: var(--tint); }
.rx-opt-key { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 6px; background: #f1f5f9; font-weight: 700; font-size: .85rem; color: var(--muted); }
.rx-opt[aria-pressed="true"] .rx-opt-key { background: var(--action); color: #fff; }
.rx-q.is-done .rx-opt { cursor: default; }
.rx-q.is-done .rx-opt[data-c] { border-color: var(--right-line); background: var(--right-bg); }
.rx-q.is-done .rx-opt[data-c] .rx-opt-key { background: var(--right); color: #fff; }
.rx-q.is-done .rx-opt[aria-pressed="true"]:not([data-c]) { border-color: var(--wrong-line); background: var(--wrong-bg); }
.rx-q.is-done .rx-opt[aria-pressed="true"]:not([data-c]) .rx-opt-key { background: var(--wrong); color: #fff; }
.rx-q-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.rx-q-result { font-size: .9rem; font-weight: 700; }
.rx-q[data-state="right"] .rx-q-result { color: var(--right); }
.rx-q[data-state="wrong"] .rx-q-result { color: var(--wrong); }
.rx-answer { margin-top: .9rem; padding: .9rem 1rem; border-radius: 10px; background: #f8fafc; border-left: 4px solid var(--right); font-size: .95rem; line-height: 1.65; }
.rx-answer p { margin: 0 0 .6rem; }
.rx-answer p:last-child { margin-bottom: 0; }
.rx-why { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .35rem; font-size: .9rem; }
.rx-why li { padding-left: .1rem; }
.rx-why .is-right strong { color: var(--right); }
.rx-why .is-wrong strong { color: var(--wrong); }
.rx-js .rx-answer { display: none; }
.rx-js .rx-q.is-open .rx-answer { display: block; }
.rx-result { margin-top: 1.4rem; padding: 1.4rem; border-radius: 14px; background: var(--tint); border: 1px solid var(--tint-2); text-align: center; }
.rx-result-title { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin: 0 0 .3rem; }

/* Flashcards */
.rx-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.rx-card { position: relative; display: block; width: 100%; min-height: 210px; padding: 0; border: 0; background: none; perspective: 1100px; cursor: pointer; text-align: left; }
.rx-card-face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .7rem; padding: 1.15rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .45s; box-shadow: 0 6px 18px -12px rgba(15,23,42,.35); }
.rx-card-back { transform: rotateY(180deg); background: var(--tint); border-color: var(--tint-2); }
.rx-card[aria-pressed="true"] .rx-card-front { transform: rotateY(-180deg); }
.rx-card[aria-pressed="true"] .rx-card-back { transform: rotateY(0); }
.rx-card-tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.rx-card-text { flex: 1; font-size: .98rem; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.rx-card-front .rx-card-text { font-weight: 600; color: var(--navy); }
.rx-card-turn { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
/* Without script, or for print, both sides show one after the other. */
html:not(.rx-js) .rx-card { min-height: 0; perspective: none; }
html:not(.rx-js) .rx-card-face { position: static; transform: none; margin-bottom: .5rem; }
html:not(.rx-js) .rx-card-turn { display: none; }

/* Revision notes */
.rx-notes { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.rx-notes-toc { position: sticky; top: 70px; padding: 1rem 1.1rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .9rem; }
.rx-notes-toc-title { font-weight: 800; color: var(--navy); margin: 0 0 .5rem; }
.rx-notes-toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.rx-notes-toc a { text-decoration: none; }
.rx-note { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; margin-bottom: 1.1rem; }
.rx-note .rx-h3 { margin-top: 0; }
.rx-terms { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: 10px; background: #f8fafc; }
.rx-terms-title { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-weight: 700; color: var(--navy); font-size: .92rem; }
.rx-terms dl { margin: 0; display: grid; gap: .45rem; }
.rx-terms dt { font-weight: 700; font-size: .9rem; }
.rx-terms dd { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.rx-tip { display: flex; gap: .6rem; margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 10px; background: #fefce8; border-left: 4px solid #eab308; font-size: .93rem; line-height: 1.6; }
.rx-tip .rx-i { color: #a16207; margin-top: .15em; }
.rx-tip p { margin: 0; }
.rx-checks { margin-top: 1rem; display: grid; gap: .45rem; }
.rx-check-item { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .85rem; font-size: .92rem; }
.rx-check-item summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.rx-check-item p { margin: .5rem 0 0; color: var(--muted); line-height: 1.6; }

/* Tables */
.rx-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.rx-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rx-table th { background: #f8fafc; text-align: left; padding: .7rem .85rem; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rx-table td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.rx-table tr:last-child td { border-bottom: 0; }
.rx-table-code { margin-left: .4rem; font-size: .78rem; color: var(--muted); }
.rx-table .rx-pill { margin-left: .4rem; }

/* Next step and final call to action */
.rx-next { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: 1.8rem; border-radius: 18px; background: var(--tint); border: 1px solid var(--tint-2); }
.rx-next p { line-height: 1.65; }
.rx-next-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; line-height: 1.6; }
.rx-next-cta { background: #fff; border-radius: 14px; padding: 1.3rem; text-align: center; box-shadow: 0 10px 26px -18px rgba(15,23,42,.5); }
.rx-next-label { font-size: .85rem; font-weight: 700; color: var(--muted); margin: 0; }
.rx-next-price { font-size: 1.9rem; font-weight: 800; color: var(--navy); margin: .1rem 0 .8rem; }
.rx-final { background: linear-gradient(135deg, var(--deep), var(--blue)); color: #fff; padding: 3rem 0; text-align: center; }
.rx-final h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin: 0 0 .5rem; color: #fff; }
.rx-final p { color: #dbeafe; margin: 0 0 1.4rem; }

/* Steps */
.rx-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.rx-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.1rem; }
.rx-step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--action); color: #fff; font-weight: 800; margin-bottom: .7rem; }
.rx-step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0 0 .4rem; }
.rx-step p { font-size: .9rem; line-height: 1.6; color: var(--muted); margin: 0; }

/* Package builder */
.rx-builder { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.rx-builder-list { display: grid; gap: .75rem; }
.rx-pick { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.rx-pick-main { grid-template-columns: auto minmax(0, 1fr) auto; border-color: var(--action); background: var(--tint); cursor: default; }
.rx-pick.is-owned { cursor: default; background: #f8fafc; }
.rx-pick-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rx-pick-box { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; border-radius: 6px; border: 2px solid #94a3b8; color: transparent; background: #fff; }
.rx-pick-box.is-owned { border-color: var(--right); background: var(--right); color: #fff; }
.rx-pick-input:checked + .rx-pick-box { border-color: var(--action); background: var(--action); color: #fff; }
.rx-pick-input:focus-visible + .rx-pick-box { outline: 3px solid var(--sky); outline-offset: 2px; }
.rx-pick:has(.rx-pick-input:checked) { border-color: var(--action); }
.rx-pick-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--tint-2); color: var(--blue); font-size: 1.15rem; }
.rx-pick-body { display: grid; gap: .25rem; }
.rx-pick-name { font-weight: 700; color: var(--navy); }
.rx-pick-text { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.rx-pick-price { font-weight: 800; color: var(--navy); white-space: nowrap; text-align: right; }
.rx-builder-total { position: sticky; top: 80px; padding: 1.4rem; border-radius: 16px; background: var(--navy); color: #fff; }
.rx-total-label { margin: 0; font-size: .9rem; color: #cbd5e1; font-weight: 600; }
.rx-total { margin: .1rem 0 .4rem; font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.rx-builder-total .rx-muted { color: #94a3b8; }
.rx-builder-total .rx-btn { margin-top: .8rem; }
.rx-total-points { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; font-size: .86rem; color: #cbd5e1; }
.rx-total-points li::before { content: "\2713"; color: #86efac; font-weight: 700; margin-right: .45rem; }

/* Cards and grids */
.rx-grid { display: grid; gap: 1rem; }
.rx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rx-feature, .rx-benefit, .rx-product, .rx-drill, .rx-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
.rx-feature h3, .rx-benefit h3, .rx-product h3, .rx-drill h3, .rx-item h3 { font-size: 1.02rem; font-weight: 700; color: var(--navy); margin: 0 0 .45rem; }
.rx-feature p, .rx-benefit p, .rx-product p, .rx-drill p, .rx-item p { font-size: .92rem; line-height: 1.6; color: var(--muted); margin: 0 0 .6rem; }
.rx-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--tint); color: var(--action); font-size: 1.2rem; margin-bottom: .8rem; }
.rx-benefit { border-top: 4px solid var(--action); }
.rx-product.is-main { border: 2px solid var(--action); }
.rx-product-price { font-size: 1.2rem; font-weight: 800; color: var(--navy) !important; margin-top: .8rem !important; }
.rx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .88rem; }
.rx-list li::before { content: "\2713"; color: var(--right); font-weight: 700; margin-right: .45rem; }
.rx-item-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem !important; }
.rx-item-meta span { padding: .1rem .5rem; border-radius: 6px; background: #f1f5f9; }

/* Level tabs */
.rx-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: 12px 12px 0 0; overflow: hidden; }
.rx-tab { padding: .8rem 1rem; text-align: left; border: 0; border-right: 1px solid var(--line); background: #f8fafc; font-weight: 700; color: var(--muted); cursor: pointer; }
.rx-tab:last-child { border-right: 0; }
.rx-tab small { display: block; font-weight: 500; font-size: .8rem; }
.rx-tab.is-active { background: #fff; color: var(--blue); box-shadow: inset 0 3px 0 var(--action); }
.rx-tab-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; }
.rx-js .rx-tab-panel:not(.is-active) { display: none; }
html:not(.rx-js) .rx-tabs { display: none; }

/* Refund and FAQ */
.rx-refund { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.5rem 1.6rem; border-radius: 16px; background: var(--right-bg); border: 1px solid var(--right-line); }
.rx-refund .rx-feature-icon { background: #fff; color: var(--right); flex: none; }
.rx-refund h2 { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin: 0 0 .4rem; }
.rx-refund p { margin: 0; line-height: 1.65; }
.rx-faq { display: grid; gap: .6rem; }
.rx-faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.rx-faq-q { margin: 0; font-size: 1rem; }
.rx-faq-btn { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: .95rem 1.1rem; border: 0; background: none; text-align: left; font-weight: 700; color: var(--navy); cursor: pointer; }
.rx-faq-btn::after { content: "\2212"; font-size: 1.3rem; color: var(--action); }
.rx-faq-btn.collapsed::after { content: "+"; }
.rx-faq-a { margin: 0; padding: 0 1.1rem 1rem; line-height: 1.7; color: var(--muted); }

/* Related exams */
.rx-related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.rx-related a { display: grid; gap: .2rem; height: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: #fff; }
.rx-related a:hover { border-color: #93c5fd; background: var(--tint); }
.rx-related-code { font-weight: 800; color: var(--blue); }
.rx-related-code em { font-style: normal; margin-left: .3rem; padding: .05rem .4rem; border-radius: 6px; background: var(--tint-2); font-size: .72rem; }
.rx-related-name { font-size: .88rem; color: var(--muted); line-height: 1.45; }

/* Responsive */
@media (max-width: 1100px) {
    .rx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rx-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .rx-hero-grid, .rx-split, .rx-builder, .rx-next, .rx-notes { grid-template-columns: minmax(0, 1fr); }
    .rx-art { order: -1; }
    .rx-art-window { max-width: 460px; }
    .rx-builder-total, .rx-notes-toc { position: static; }
    .rx-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .rx-hero { padding: 1.8rem 0 2.2rem; }
    .rx-art { display: none; }
    .rx-section { padding: 2.2rem 0; }
    .rx-steps, .rx-grid-2, .rx-grid-3, .rx-grid-4 { grid-template-columns: minmax(0, 1fr); }
    .rx-pick { grid-template-columns: auto minmax(0, 1fr); }
    .rx-pick-main { grid-template-columns: minmax(0, 1fr); }
    .rx-pick-main .rx-pick-icon, .rx-pick .rx-pick-icon { display: none; }
    .rx-pick-price { grid-column: 2; text-align: left; }
    .rx-pick-main .rx-pick-price { grid-column: 1; }
    .rx-facts div { grid-template-columns: minmax(0, 1fr); }
    .rx-facts dt { padding-bottom: .2rem; }
    .rx-refund { flex-direction: column; }
    .rx-actions .rx-btn { width: 100%; }
    .rx-q { padding: 1rem; }
    .rx-next { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .rx-card-face, .rx-score-bar span { transition: none; }
}
@media print {
    .rx-jump, .rx-actions, .rx-q-tools, .rx-builder, .rx-final { display: none; }
    .rx-js .rx-answer, .rx-js .rx-tab-panel { display: block !important; }
    .rx-card { min-height: 0; } .rx-card-face { position: static; transform: none !important; }
}
