/* Scoped to the retirement roadmap. Brand colors come from styles.css tokens. */
.site-main:has(.rr) { padding-top: 1.15rem; }

.rr {
  --rr-gold: #8d6a2f;
  --rr-sand: #fbf7ef;
  --rr-sand-line: #e2d5bb;
  padding-top: 0.35rem;
  padding-bottom: 3rem;
}

.rr [hidden] { display: none !important; }

.rr a { overflow-wrap: anywhere; }

.rr-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.rr-crumb a { font-weight: 600; }

.rr-hero {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid #d5e3ea;
  border-radius: 1rem;
  background: linear-gradient(165deg, #f3fbfd 0%, #fff 58%, var(--rr-sand) 100%);
}

.rr-hero__copy,
.rr-arc { min-width: 0; }

.rr-kicker {
  margin: 0 0 0.7rem;
  color: var(--color-teal-text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rr-hero h1 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(1.85rem, 4.4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rr-lede {
  max-width: 38rem;
  margin: 0.9rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.45;
  color: #24384c;
}

.rr-hero__note {
  max-width: 40rem;
  margin: 0.85rem 0 0;
}

.rr-jobs {
  max-width: 40rem;
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--color-navy);
  border-radius: 0.35rem;
  background: #fff;
}

.rr-arc {
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.9rem;
  background: #fff;
}

.rr-arc figcaption {
  margin: 0 0 0.85rem;
  color: var(--color-navy);
  font-weight: 700;
}

.rr-arc ol {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0 0 0 0.15rem;
  background: linear-gradient(#10a6c8, #10a6c8) 1.35rem 0.4rem / 2px calc(100% - 0.8rem) no-repeat;
}

.rr-arc li {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: start;
}

.rr-arc__ico {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  background: #fff;
}

.rr-arc__name,
.rr-arc li p:last-child {
  grid-column: 2;
  min-width: 0;
}

.rr-arc__ico svg { display: block; }

.rr-arc__name,
.rr-arc p { margin: 0; }

.rr-arc__name {
  color: var(--color-navy);
  font-weight: 700;
}

.rr-arc li p:last-child { color: var(--color-text); }

.rr-paths {
  margin-top: 1.35rem;
}

.rr-paths p { margin: 0; }

#rr-path-label {
  color: var(--color-navy);
  font-size: 1.15rem;
  font-weight: 700;
}

.rr-path-help {
  margin-top: 0.35rem !important;
  color: var(--color-text-muted);
}

.rr-paths ul {
  display: grid;
  gap: 0.65rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.rr-paths a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--color-navy);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
}

.rr-paths a[aria-current="step"] {
  background: var(--color-navy);
  color: #fff;
}

.rr-status {
  margin-top: 0.8rem !important;
  color: var(--color-navy);
  font-weight: 600;
}

.rr-spine {
  margin-top: 1.6rem;
}

.rr-spine__count {
  margin: 0 0 0.75rem;
  color: var(--color-navy);
  font-weight: 700;
}

.rr-spine ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rr-spine a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3rem;
  height: 100%;
  padding: 0.65rem 0.75rem;
  border-left: 4px solid var(--color-teal);
  border-radius: 0.4rem;
  background: var(--color-gray);
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
}

.rr-spine a span {
  color: var(--color-teal-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rr-spine li[data-explored="true"] a { border-left-color: var(--color-green-text); }

.rr-spine__more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0.8rem 0 0;
}

.rr-conversations,
.rr-stage,
.rr-sheet,
.rr-sources {
  margin-top: 2.2rem;
}

.rr-conversations h2,
.rr-stage h2,
.rr-sheet h2,
.rr-sources h2 {
  max-width: 22em;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.rr-conversations ol,
.rr-framework {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.rr-conversations li,
.rr-framework li { margin: 0.85rem 0; }

.rr-conversations li p,
.rr-stage p,
.rr-stage li,
.rr-sheet p,
.rr-sources p,
.rr-sources li {
  max-width: 68ch;
}

.rr-stage {
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 1px solid var(--color-border);
  border-radius: 0.9rem;
  background: #fff;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.rr-stage[data-rr-suggested="true"] {
  border-color: var(--rr-gold);
  background: var(--rr-sand);
}

.rr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0 0 0.35rem;
  color: var(--color-teal-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.rr-suggest {
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.7rem;
  border-left: 3px solid var(--rr-gold);
  background: #fff;
  color: var(--color-navy);
  font-weight: 700;
}

.rr-hook {
  font-size: 1.12rem;
  color: #24384c;
}

.rr-stage ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }

.rr-stage li { margin: 0.65rem 0; }

.rr-next,
.rr-limit {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
}

.rr-next {
  background: var(--color-aqua);
  border: 1px solid #b6e4ec;
}

.rr-next h3,
.rr-limit h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.rr-limit {
  background: #fff;
  border: 1px solid var(--rr-sand-line);
}

.rr-ask { margin-bottom: 0; }

.rr-go {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.rr-go a { font-weight: 700; }

.rr-sheet {
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid var(--rr-sand-line);
  border-radius: 1rem;
  background: var(--rr-sand);
  color: var(--color-text);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.rr-sheet h2,
.rr-sheet h3 { color: var(--color-navy); }

.rr-privacy {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--color-navy);
  border-radius: 0.35rem;
  background: #fff;
  font-weight: 600;
}

.rr-sheet h3 { margin: 1.3rem 0 0.4rem; font-size: 1.2rem; }

.rr-facts,
.rr-actions {
  display: grid;
  gap: 0.85rem;
}

.rr-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }

.rr-field label,
.rr-checks label {
  color: var(--color-navy);
  font-weight: 700;
}

.rr select,
.rr textarea {
  width: 100%;
  max-width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
}

.rr textarea { min-height: 5.5rem; resize: vertical; }

.rr-checks { margin: 0.4rem 0 0; padding: 0; border: 0; }

.rr-checks legend {
  padding: 0;
  color: var(--color-navy);
  font-weight: 700;
}

.rr-checks label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 2.75rem;
  margin: 0.2rem 0;
  padding: 0.45rem 0;
}

.rr-checks input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--color-navy);
}

.rr-count {
  margin: 0.8rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--color-navy);
  font-weight: 700;
}

.rr-summary {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  background: #fff;
  white-space: pre-line;
}

.rr-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.rr-sources ul { padding-left: 1.15rem; }

.rr-sources li { margin: 0.5rem 0; }

.rr-disclaimer {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.rr a:focus-visible,
.rr button:focus-visible,
.rr input:focus-visible,
.rr select:focus-visible,
.rr textarea:focus-visible,
.rr summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.rr-printhead { display: none; }

@media (max-width: 40rem) {
  .rr .btn { width: 100%; }
  .rr-crumb { margin-bottom: 0.55rem; }
  .rr-hero { padding: 0.85rem 0.9rem; gap: 0.85rem; }
  .rr-kicker { margin-bottom: 0.4rem; }
  .rr-lede { margin-top: 0.55rem; }
  .rr-hero__note,
  .rr-jobs { margin-top: 0.65rem; }
  .rr-hero .btn-row { margin-top: 0.85rem; }
}

@media (min-width: 40rem) {
  .rr-spine ol { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 48rem) {
  .rr-paths ul,
  .rr-facts { grid-template-columns: 1fr 1fr; }
  .rr-field--wide { grid-column: 1 / -1; }
}

@media (min-width: 60rem) {
  .rr-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    align-items: center;
  }

  .rr-arc ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0;
    background: linear-gradient(#10a6c8, #10a6c8) 8% 1.35rem / 84% 3px no-repeat;
  }

  .rr-arc li {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: center;
  }

  .rr-arc__ico,
  .rr-arc__name,
  .rr-arc li p:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .rr-arc__ico { justify-self: center; }

  .rr-paths ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .rr-spine ol { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .rr,
  .rr * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .skip-link,
  .site-header,
  .site-footer,
  .rr-paths,
  .rr-arc,
  .rr-controls,
  .rr-spine__more { display: none !important; }

  .rr { padding: 0; }

  .rr-printhead {
    display: block;
    margin: 0 0 0.75rem;
    color: #000;
    font-weight: 700;
  }

  .rr-hero,
  .rr-stage,
  .rr-sheet,
  .rr-next,
  .rr-limit,
  .rr-summary,
  .rr-count,
  .rr-privacy {
    background: #fff !important;
    box-shadow: none !important;
  }

  .rr-stage,
  .rr-conversations { break-inside: avoid; }

  .rr-sheet { break-before: page; border-color: #222; }

  .rr select,
  .rr textarea {
    border: 0;
    border-bottom: 1px solid #222;
    border-radius: 0;
    background: transparent;
    color: #000;
    min-height: 2.8rem;
  }

  .rr textarea { min-height: 5.5rem; }

  .rr a { color: #000; }
}
