:root {
  color-scheme: light;
  --ink: #0b3444;
  --muted: #506774;
  --teal: #115e59;
  --teal-dark: #0d4a46;
  --line: #d9e3e8;
  --soft: #f4f8f9;
  --amber: #fff8dc;
  --white: #fff;
}

* { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }
*, *::before, *::after { overflow-wrap: anywhere; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--teal); text-underline-offset: .22em; }
a:hover { color: var(--teal-dark); }
.rg-wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.rg-skip { position: absolute; left: -9999px; top: 0; }
.rg-skip:focus { left: 1rem; top: 1rem; z-index: 20; padding: .7rem 1rem; background: var(--white); border-radius: .6rem; box-shadow: 0 8px 24px rgba(11,52,68,.18); }
.rg-header { background: var(--white); border-bottom: 1px solid var(--line); }
.rg-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rg-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.4rem; font-weight: 900; text-decoration: none; }
.rg-brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--teal); color: var(--white); font-size: 1.5rem; }
.rg-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.rg-nav a { padding: .5rem .65rem; color: var(--ink); font-size: .9rem; font-weight: 750; text-decoration: none; border-radius: .55rem; }
.rg-nav a:hover { background: var(--soft); color: var(--teal); }
.rg-hero { position: relative; overflow: hidden; padding: 3.25rem 0 3.75rem; background: var(--ink); color: var(--white); }
.rg-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 90% 12%, rgba(20,184,166,.25), transparent 34%), radial-gradient(circle at 5% 95%, rgba(14,165,233,.18), transparent 28%); }
.rg-hero-inner { position: relative; z-index: 1; max-width: 850px; }
.rg-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 0 0 1.7rem; padding: 0; list-style: none; font-size: .9rem; }
.rg-breadcrumb a { color: var(--teal); }
.rg-breadcrumb a:hover { color: var(--teal-dark); }
.rg-hero .rg-breadcrumb { color: #c8d5da; }
.rg-hero .rg-breadcrumb a { color: #c8d5da; }
.rg-hero .rg-breadcrumb a:hover { color: #ffffff; }
.rg-kicker { margin: 0 0 .65rem; color: #fde047; font-size: .8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; max-width: 820px; font-size: clamp(2.15rem, 6vw, 4.3rem); line-height: 1.07; letter-spacing: -.035em; }
.rg-lead { max-width: 760px; margin: 1.25rem 0 0; color: #d8e3e7; font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
.rg-main { padding: 2.5rem 0 4rem; }
.rg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 2rem; align-items: start; }
.rg-prose { min-width: 0; }
.rg-card { margin-bottom: 1.25rem; padding: clamp(1.35rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 5px 18px rgba(11,52,68,.04); }
.rg-card h2 { margin: 0 0 .75rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.rg-card h3 { margin: 1.35rem 0 .45rem; font-size: 1.15rem; line-height: 1.3; }
.rg-card p { margin: .65rem 0; }
.rg-card ul, .rg-card ol { padding-left: 1.35rem; }
.rg-card li + li { margin-top: .55rem; }
.rg-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rg-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 1.2rem 0; font-size: .95rem; }
.rg-table-wrap > .rg-table { min-width: 640px; }
.rg-table caption { text-align: left; font-weight: 800; margin-bottom: .6rem; }
.rg-table th, .rg-table td { padding: .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.rg-table thead th { background: #edf8f7; }
.rg-card dt { margin-top: .85rem; }
.rg-card dd { margin: .2rem 0 0; }
.rg-answer { border-left: 5px solid #14b8a6; }
.rg-answer > p:first-of-type { font-size: 1.08rem; }
.rg-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.15rem; }
.rg-fact { padding: 1rem; background: #edf8f7; border-radius: .8rem; }
.rg-fact strong { display: block; color: var(--teal-dark); font-size: 1.2rem; }
.rg-fact span { display: block; margin-top: .2rem; color: var(--muted); font-size: .88rem; }
.rg-note { background: var(--amber); border-color: #f0df9c; }
.rg-steps { counter-reset: rg-step; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.rg-steps li { position: relative; min-height: 2.3rem; padding-left: 3rem; }
.rg-steps li::before { counter-increment: rg-step; content: counter(rg-step); position: absolute; left: 0; top: -.05rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 900; }
.rg-source-list { margin-bottom: 0; }
.rg-source-list a { font-weight: 750; }
.rg-source-list small { display: block; margin-top: .15rem; color: var(--muted); }
.rg-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.rg-related a { display: block; padding: 1rem; background: var(--soft); border: 1px solid var(--line); border-radius: .8rem; font-weight: 800; text-decoration: none; }
.rg-side { position: sticky; top: 1rem; }
.rg-side-card { margin-bottom: 1rem; padding: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 1rem; }
.rg-side-card h2 { margin: 0 0 .7rem; font-size: 1.05rem; }
.rg-side-card ul { margin: 0; padding-left: 1.1rem; }
.rg-side-card li + li { margin-top: .45rem; }
.rg-cta { background: var(--ink); color: var(--white); }
.rg-cta p { color: #d8e3e7; }
.rg-cta a { color: #b8fff3; }
.rg-cta a:hover { color: #e6fffb; }
.rg-cta a.rg-button { color: var(--ink); }
.rg-cta a.rg-button:hover { color: var(--ink); }
.rg-button { display: inline-flex; justify-content: center; margin-top: .7rem; padding: .75rem 1rem; border-radius: .65rem; background: var(--white); color: var(--ink); font-weight: 900; text-decoration: none; }
.rg-button:hover { background: #eaf4f5; color: var(--ink); }
.rt-start, .rt-submit { border: 0; border-radius: .7rem; background: var(--teal); color: var(--white); padding: .85rem 1.15rem; font: inherit; font-weight: 900; cursor: pointer; }
.rt-start:hover, .rt-submit:hover { background: var(--teal-dark); }
.rt-start:focus-visible, .rt-submit:focus-visible, .rt-option input:focus-visible + label { outline: 3px solid #f59e0b; outline-offset: 3px; }
.rt-status { color: var(--muted); }
.rt-question { margin: 1.4rem 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; }
.rt-question legend { padding: 0 .35rem; font-weight: 850; line-height: 1.4; }
.rt-question legend span { color: var(--teal); }
.rt-option { position: relative; margin-top: .65rem; }
.rt-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rt-option label { display: block; padding: .72rem .85rem; border: 1px solid var(--line); border-radius: .65rem; cursor: pointer; }
.rt-option label:hover { background: var(--soft); }
.rt-option input:checked + label { border-color: var(--teal); background: #edf8f7; box-shadow: inset 0 0 0 1px var(--teal); }
.rt-results { margin-top: 2rem; }
.rt-results:focus { outline: none; }
.rt-score { padding: 1.3rem; border-radius: .9rem; background: #edf8f7; border-left: 5px solid var(--teal); }
.rt-score h2 { margin: .15rem 0 .5rem; }
.rt-score-number { margin: 0; color: var(--teal-dark); font-size: 2rem; font-weight: 950; }
.rt-review-list { padding: 0; list-style: none; }
.rt-review { margin-top: 1rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: .8rem; }
.rt-review.is-correct { border-left: 5px solid #15803d; }
.rt-review.is-wrong { border-left: 5px solid #b45309; }
.rt-review h3 { margin-top: 0; }
.rt-source { font-size: .9rem; }
.rt-paid-button { background: var(--teal); color: var(--white); }
.rt-paid-button:hover { background: var(--teal-dark); color: var(--white); }
.rt-topic-summary, .rt-next-step { margin-top: 1.25rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; }
.rt-topic-summary h3, .rt-next-step h3 { margin: 0 0 .45rem; }
.rt-topic-summary p, .rt-next-step p { margin: .35rem 0 .75rem; }
.rt-topic-summary ul { list-style: none; padding: 0; margin: .65rem 0 0; display: grid; gap: .45rem; }
.rt-topic-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .7rem; border-radius: .55rem; background: var(--soft); }
.rt-topic-summary li strong { color: var(--teal-dark); white-space: nowrap; }
.rt-course-cta { display: inline-flex; align-items: center; justify-content: center; border-radius: .65rem; background: var(--teal); color: var(--white); padding: .72rem 1rem; font-weight: 900; text-decoration: none; }
.rt-course-cta:hover { background: var(--teal-dark); color: var(--white); }
@media (max-width: 480px) {
  .rt-topic-summary li { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .rt-course-cta { width: 100%; }
}
.rg-disclaimer { padding: 1rem 1.15rem; background: #e9f3f5; border-radius: .8rem; color: #385361; font-size: .92rem; }
.rg-meta { color: var(--muted); font-size: .88rem; }
.rg-hero .rg-meta { color: #d8e3e7; }
.rg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rg-guide-card { display: flex; flex-direction: column; padding: 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: 1rem; }
.rg-guide-card h2 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.rg-guide-card p { flex: 1; color: var(--muted); }
.rg-guide-card a { font-weight: 850; }
.rg-footer { padding: 2rem 0; background: var(--white); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.rg-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.rg-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 860px) {
  .rg-layout { grid-template-columns: 1fr; }
  .rg-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .rg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rg-header-inner { align-items: flex-start; padding-block: .8rem; }
  .rg-nav { flex-direction: column; align-items: flex-end; }
  .rg-hero { padding: 2.4rem 0 3rem; }
  .rg-facts, .rg-related, .rg-side { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Offer boxes and mobile buy bar on content pages (S5, 2026-09-26). */
.rg-offer { margin: 1.25rem 0; padding: 1.2rem 1.3rem; background: #0b3444; color: #eef6f7; border-radius: 1rem; }
.rg-offer h2 { margin: 0 0 .5rem; color: #fff; font-size: 1.2rem; line-height: 1.3; }
.rg-offer p { margin: .35rem 0; }
.rg-offer a { color: #99f6e4; }
.rg-offer .rg-offer-price { color: #d8e3e7; font-size: .95rem; }
.rg-offer .rg-offer-price strong { color: #fff; }
.rg-offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: .8rem !important; }
.rg-offer-actions a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 800; }
.rg-offer-actions .rg-offer-primary { padding: .6rem 1.1rem; border-radius: .7rem; background: #fff; color: #0b3444; text-decoration: none; }
.rg-offer-actions .rg-offer-primary:hover { background: #ccfbf1; }
.rg-offer a:focus-visible, .rg-sticky a:focus-visible, .rg-sticky button:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }
.rg-sticky { display: none; }
@media (max-width: 767px) {
  .rg-sticky:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: .6rem; min-height: 60px; padding: .45rem .75rem calc(.45rem + env(safe-area-inset-bottom)); background: #0b3444; color: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
  .rg-sticky-label { flex: 1; font-weight: 800; font-size: .95rem; }
  .rg-sticky-cta { min-height: 44px; display: inline-flex; align-items: center; padding: .4rem 1rem; border-radius: .7rem; background: #fff; color: #0b3444; font-weight: 850; text-decoration: none; }
  .rg-sticky-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
  html.rg-has-sticky { scroll-padding-bottom: 76px; }
}
