/* Roots & Reason™ — editorial journal course styles */

:root {
  --rr-ink: #2a261f;
  --rr-ink-soft: #3f3a32;
  --rr-muted: rgba(42, 38, 31, 0.72);
  --rr-faint: rgba(42, 38, 31, 0.48);
  --rr-parchment: #f4efe4;
  --rr-paper: #faf6ee;
  --rr-paper-aged: #ebe4d4;
  --rr-soil: #5c4636;
  --rr-soil-deep: #3d2f24;
  --rr-forest: #3f5a45;
  --rr-moss: #6a8168;
  --rr-moss-soft: rgba(106, 129, 104, 0.18);
  --rr-charcoal: #1c1a16;
  --rr-line: rgba(92, 70, 54, 0.22);
  --rr-line-strong: rgba(63, 90, 69, 0.35);
  --rr-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --rr-sans: "Avenir Next", "Segoe UI", Candara, Calibri, sans-serif;
  --rr-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  --rr-radius: 6px;
  --rr-measure: 62ch;

  /* Week accents — solid, warm, earthy */
  --rr-week-1: #934b3d;
  --rr-week-2: #743e55;
  --rr-week-3: #536738;
  --rr-week-4: #934719;
  --rr-week-5: #2f6663;
  --rr-week-6: #725515;

  /* Non-week emphasis drawn from the existing course palette */
  --rr-emphasis-privacy: var(--rr-soil-deep);
  --rr-emphasis-progress: var(--rr-forest);
}

.rr-page {
  --division-accent: var(--rr-forest);
  --division-glow: rgba(63, 90, 69, 0.22);
  scroll-padding-top: var(--section-nav-height, 4.5rem);
  --rr-text: var(--rr-ink);
  --rr-warm-white: #f7f2e8;
  --rr-warm-muted: rgba(247, 242, 232, 0.72);
  --rr-green: var(--rr-forest);
  --rr-green-soft: var(--rr-moss);
  --rr-brown: var(--rr-soil);
  --rr-tan: #a69076;
  --rr-gold: #b08a52;
  color: var(--rr-ink);
  background-color: var(--rr-parchment);
  background-image:
    radial-gradient(ellipse 90% 55% at 8% -10%, rgba(106, 129, 104, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 20%, rgba(92, 70, 54, 0.1), transparent 50%),
    linear-gradient(180deg, #f7f2e8 0%, var(--rr-parchment) 38%, #efe8d8 100%);
  font-family: var(--rr-sans);
}

.rr-page .main {
  max-width: 920px;
}

/* ── Shared section language ── */
.rr-section {
  margin: 0;
  padding: 48px 0 8px;
  scroll-margin-top: var(--section-nav-height, 4.5rem);
}

.rr-section-head {
  margin-bottom: 28px;
  max-width: var(--rr-measure);
}

.rr-section-label,
.rr-path-label {
  margin: 0 0 10px;
  font-family: var(--rr-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rr-forest);
}

.rr-section-title {
  margin: 0;
  font-family: var(--rr-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--rr-charcoal);
}

.rr-section-desc {
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--rr-muted);
  max-width: var(--rr-measure);
}

.rr-page .hr,
.rr-page .rr-section-gap {
  border: 0;
  height: 1px;
  margin: 40px 0;
  background: linear-gradient(90deg, transparent, var(--rr-line), transparent);
}

/* ── Hero ── */
.rr-hero {
  position: relative;
  padding: 28px 0 36px;
  overflow: hidden;
}

.rr-hero-atmosphere {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(106, 129, 104, 0.14), transparent 70%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(92, 70, 54, 0.035) 18px,
      rgba(92, 70, 54, 0.035) 19px
    );
  pointer-events: none;
  opacity: 0.9;
}

.rr-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.rr-brand-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  margin-bottom: 22px;
  background: var(--rr-paper);
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  box-shadow: 0 10px 28px rgba(60, 47, 36, 0.08);
}

.rr-hero-logo {
  display: block;
  max-width: min(108px, 30vw);
  max-height: 108px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.rr-hero-eyebrow {
  margin: 0 0 12px;
  font-family: var(--rr-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rr-forest);
  font-weight: 600;
}

.rr-title {
  margin: 0;
  font-family: var(--rr-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--rr-charcoal);
  letter-spacing: -0.015em;
}

.rr-hero-lead {
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--rr-muted);
  max-width: 36rem;
}

.rr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.rr-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--rr-radius);
  font-family: var(--rr-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.rr-hero-cta--primary {
  background: var(--rr-forest);
  color: #f7f2e8;
  border: 1px solid var(--rr-forest);
}

.rr-hero-cta--primary:hover,
.rr-hero-cta--primary:focus-visible {
  background: #334a38;
  border-color: #334a38;
  outline: none;
  transform: translateY(-1px);
}

.rr-hero-cta--secondary {
  background: transparent;
  color: var(--rr-soil-deep);
  border: 1px solid var(--rr-line-strong);
}

.rr-hero-cta--secondary:hover,
.rr-hero-cta--secondary:focus-visible {
  background: rgba(63, 90, 69, 0.08);
  outline: none;
}

.rr-root-line {
  width: min(180px, 40%);
  height: 2px;
  margin: 18px 0;
  background: linear-gradient(90deg, var(--rr-forest), var(--rr-soil), transparent);
  opacity: 0.7;
}

/* ── Sticky subnav (file-based pages) ── */
.rr-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 0 24px;
  padding: 0;
  background: linear-gradient(180deg, rgba(247, 242, 232, 0.98) 45%, rgba(247, 242, 232, 0.82) 100%);
}

.rr-subnav-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: var(--maxw);
  min-height: 64px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--rr-line);
  border-radius: 12px;
  background: rgba(250, 246, 238, 0.94);
  box-shadow: 0 10px 24px rgba(42, 38, 31, 0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.rr-subnav a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--rr-soil);
  text-decoration: none;
  font-family: var(--rr-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rr-subnav a:hover,
.rr-subnav a:focus-visible {
  color: var(--rr-forest);
  background: var(--rr-moss-soft);
  outline: none;
}

.rr-subnav a:focus-visible {
  outline: 2px solid var(--rr-forest);
  outline-offset: 2px;
}

.rr-subnav a[aria-current="page"] {
  color: var(--rr-paper);
  background: var(--rr-forest);
}

.wrap > .rr-subnav {
  margin: 0 0 20px;
}

/* ── Page nav (legacy single-page) ── */
.rr-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 14px 0 6px;
  margin: 8px 0 12px;
  border-top: 1px solid var(--rr-line);
  border-bottom: 1px solid var(--rr-line);
}

.rr-page-nav a {
  font-family: var(--rr-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rr-soil);
}

.rr-page-nav a:hover,
.rr-page-nav a:focus-visible {
  color: var(--rr-forest);
  outline: none;
}

/* ── Status / settings mounts ── */
.rr-settings-mount {
  margin: 18px 0 0;
}

.rr-packet-secondary.rr-settings-overlay,
.rr-settings-mount .rr-packet-secondary {
  padding: 14px 16px;
  border: 1px solid var(--rr-line);
  border-left: 3px solid var(--rr-forest);
  background: var(--rr-paper);
  border-radius: var(--rr-radius);
  color: var(--rr-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── Orientation ── */
.rr-orient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-bottom: 28px;
}

.rr-orient-block,
.rr-complete-block {
  padding: 0 0 4px;
  border-top: 1px solid var(--rr-line);
  padding-top: 16px;
}

.rr-orient-title {
  margin: 0 0 10px;
  font-family: var(--rr-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--rr-charcoal);
}

.rr-orient-block p,
.rr-complete-block p,
.rr-orient-paths p,
.rr-orient-note p,
.rr-orient-values p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--rr-muted);
  max-width: var(--rr-measure);
}

.rr-orient-paths {
  margin: 8px 0 24px;
  padding: 22px 0 0;
  border-top: 1px solid var(--rr-line);
}

.rr-path-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
  align-items: stretch;
}

.rr-path-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  background: var(--rr-paper);
  overflow: hidden;
}

.rr-path-card-header {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rr-line);
}

.rr-path-card-header .rr-path-label {
  margin: 0;
}

.rr-path-card-body {
  flex: 1;
  padding: 16px;
}

.rr-path-card-body p {
  margin: 0;
  max-width: none;
}

.rr-path-card--youth {
  --rr-path-card-accent: var(--rr-week-1);
}

.rr-path-card--adult {
  --rr-path-card-accent: var(--rr-week-5);
}

.rr-path-card--youth .rr-path-card-header {
  background: rgba(147, 75, 61, 0.12);
  border-bottom-color: rgba(147, 75, 61, 0.28);
  border-top: 3px solid var(--rr-path-card-accent);
}

.rr-path-card--adult .rr-path-card-header {
  background: rgba(47, 102, 99, 0.12);
  border-bottom-color: rgba(47, 102, 99, 0.28);
  border-top: 3px solid var(--rr-path-card-accent);
}

.rr-path-card--youth .rr-path-card-header .rr-path-label {
  color: var(--rr-week-1);
}

.rr-path-card--adult .rr-path-card-header .rr-path-label {
  color: var(--rr-week-5);
}

.rr-orient-note {
  margin: 0 0 16px;
  padding: 16px 18px;
  background: rgba(63, 90, 69, 0.07);
  border-left: 3px solid var(--rr-moss);
  border-radius: 0 var(--rr-radius) var(--rr-radius) 0;
}

.rr-orient-note--safety {
  background: rgba(92, 70, 54, 0.07);
  border-left-color: var(--rr-soil);
}

.rr-orient-values {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--rr-line);
}

.rr-journal-method-line {
  margin-top: 12px !important;
  font-size: 0.95rem !important;
  color: var(--rr-faint) !important;
}

.rr-orient-howto .rr-path-label {
  margin-top: 16px;
}

.rr-orient-howto .rr-path-label:first-of-type {
  margin-top: 14px;
}

.rr-howto-closing {
  margin-top: 16px !important;
  font-size: 0.95rem !important;
  color: var(--rr-faint) !important;
}

/* ── Six-week path overview (vertical progression; Myth / Truth) ── */
.rr-path-weeks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 8px 0 0;
}

.rr-path-week {
  --rr-week-accent: var(--rr-forest);
  padding: 28px 0;
  border-top: 1px solid var(--rr-line);
}

.rr-path-week:first-child {
  border-top: 0;
  padding-top: 4px;
}

.rr-path-week--week-1 { --rr-week-accent: var(--rr-week-1); }
.rr-path-week--week-2 { --rr-week-accent: var(--rr-week-2); }
.rr-path-week--week-3 { --rr-week-accent: var(--rr-week-3); }
.rr-path-week--week-4 { --rr-week-accent: var(--rr-week-4); }
.rr-path-week--week-5 { --rr-week-accent: var(--rr-week-5); }
.rr-path-week--week-6 { --rr-week-accent: var(--rr-week-6); }

.rr-path-week-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 4px solid var(--rr-week-accent);
}

.rr-path-num {
  font-family: var(--rr-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--rr-week-accent);
}

.rr-path-name {
  margin: 0;
  font-family: var(--rr-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--rr-ink);
}

.rr-path-summary {
  margin: 0 0 20px;
  padding: 0 0 16px;
  max-width: var(--rr-measure);
  border-bottom: 1px solid var(--rr-line);
  font-family: var(--rr-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--rr-ink-soft);
}

.rr-path-myth {
  padding: 20px 18px 18px;
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  background: var(--rr-paper);
  box-shadow: 0 2px 12px rgba(42, 38, 31, 0.05);
}

.rr-path-myth-label,
.rr-path-truth-label {
  margin: 0 0 8px;
  font-family: var(--rr-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rr-path-myth-label {
  color: var(--rr-week-1);
}

.rr-path-week--week-2 .rr-path-myth-label { color: var(--rr-week-2); }
.rr-path-week--week-3 .rr-path-myth-label { color: var(--rr-week-3); }
.rr-path-week--week-4 .rr-path-myth-label { color: var(--rr-week-4); }
.rr-path-week--week-5 .rr-path-myth-label { color: var(--rr-week-5); }
.rr-path-week--week-6 .rr-path-myth-label { color: var(--rr-week-6); }

.rr-path-myth-claim {
  margin: 0;
  font-family: var(--rr-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--rr-ink-soft);
}

.rr-path-myth-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 18px;
  min-height: 44px;
  border: 1px solid var(--rr-forest);
  border-radius: var(--rr-radius);
  background: var(--rr-forest);
  color: var(--rr-paper);
  font-family: var(--rr-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.rr-path-myth-toggle:hover,
.rr-path-myth-toggle:focus-visible {
  background: var(--rr-soil-deep);
  border-color: var(--rr-soil-deep);
  color: var(--rr-paper);
  outline: none;
}

.rr-path-myth-toggle:focus-visible {
  outline: 2px solid var(--rr-week-accent);
  outline-offset: 3px;
}

.rr-path-myth-reveal {
  margin: 16px 0 0;
  padding: 16px 16px 4px;
  border-left: 3px solid var(--rr-forest);
  border-radius: 0 var(--rr-radius) var(--rr-radius) 0;
  background: var(--rr-moss-soft);
}

.rr-path-truth-label {
  color: var(--rr-forest);
}

.rr-path-truth-text {
  margin: 0 0 12px;
  font-family: var(--rr-serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--rr-ink);
}

.rr-path-myth-explanation {
  margin: 0;
  font-family: var(--rr-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--rr-muted);
}

.no-js .rr-path-myth-toggle {
  display: none;
}

.no-js .rr-path-myth-reveal[hidden] {
  display: block;
}

.rr-path-cta-wrap {
  margin: 32px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--rr-line);
}

.rr-path .rr-path-cta-wrap .rr-hero-cta {
  width: auto;
}

.rr-inline-link {
  color: var(--rr-forest);
  font-weight: 600;
  text-underline-offset: 3px;
}

.rr-inline-link:hover,
.rr-inline-link:focus-visible {
  color: var(--rr-soil-deep);
  outline: none;
}

/* ── Integrity gate ── */
.rr-integrity-gate,
.rr-threshold {
  position: relative;
  margin-top: 20px;
  padding: 36px 28px 32px;
  background:
    linear-gradient(180deg, rgba(250, 246, 238, 0.95), rgba(244, 239, 228, 0.92)),
    var(--rr-paper);
  border: 1px solid var(--rr-line);
  border-top: 3px solid var(--rr-forest);
  border-radius: var(--rr-radius);
  box-shadow: 0 18px 40px rgba(60, 47, 36, 0.06);
}

.rr-gate-form {
  margin-top: 8px;
  max-width: 40rem;
}

.rr-gate-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.rr-gate-legend {
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--rr-serif);
  font-size: 1.15rem;
  color: var(--rr-charcoal);
}

.rr-gate-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--rr-ink-soft);
  cursor: pointer;
}

.rr-gate-check:last-of-type {
  margin-bottom: 0;
}

.rr-gate-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--rr-forest);
  flex-shrink: 0;
}

.rr-gate-check:focus-within {
  border-color: var(--rr-forest);
  box-shadow: 0 0 0 3px var(--rr-moss-soft);
}

.rr-gate-error {
  margin: 14px 0 0;
  color: #8a3b2b;
  font-size: 0.95rem;
}

.rr-gate-submit {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--rr-forest);
  border-radius: var(--rr-radius);
  background: var(--rr-forest);
  color: #f7f2e8;
  font-family: var(--rr-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}

.rr-gate-submit:hover,
.rr-gate-submit:focus-visible {
  background: #334a38;
  outline: none;
  transform: translateY(-1px);
}

/* ── Course workspace ── */
.rr-course-shell {
  margin-top: 8px;
}

.rr-course-interface {
  padding-top: 24px;
}

.rr-course-intro {
  margin-bottom: 24px;
  max-width: var(--rr-measure);
}

.rr-week-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 28px;
}

.rr-week-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 72px;
  padding: 12px 10px;
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  background: var(--rr-paper);
  color: var(--rr-ink);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 140ms ease, background-color 140ms ease, opacity 140ms ease;
}

.rr-week-nav-btn.is-unlocked:hover,
.rr-week-nav-btn.is-current {
  border-color: var(--rr-week-accent, var(--rr-forest));
  background: #fffdf8;
}

.rr-week-nav-btn.is-current {
  box-shadow: inset 0 -3px 0 var(--rr-week-accent, var(--rr-forest));
}

.rr-week-nav-btn.is-locked::after {
  content: "Locked";
  font-family: var(--rr-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rr-faint);
}

.rr-week-nav-btn:focus-visible {
  outline: 2px solid var(--rr-week-accent, var(--rr-forest));
  outline-offset: 2px;
}

.rr-week-nav-btn[data-week-nav="1"] { --rr-week-accent: var(--rr-week-1); }
.rr-week-nav-btn[data-week-nav="2"] { --rr-week-accent: var(--rr-week-2); }
.rr-week-nav-btn[data-week-nav="3"] { --rr-week-accent: var(--rr-week-3); }
.rr-week-nav-btn[data-week-nav="4"] { --rr-week-accent: var(--rr-week-4); }
.rr-week-nav-btn[data-week-nav="5"] { --rr-week-accent: var(--rr-week-5); }
.rr-week-nav-btn[data-week-nav="6"] { --rr-week-accent: var(--rr-week-6); }

.rr-week-nav-btn[data-week-nav="1"].is-unlocked { background: rgba(147, 75, 61, 0.08); }
.rr-week-nav-btn[data-week-nav="2"].is-unlocked { background: rgba(116, 62, 85, 0.08); }
.rr-week-nav-btn[data-week-nav="3"].is-unlocked { background: rgba(83, 103, 56, 0.08); }
.rr-week-nav-btn[data-week-nav="4"].is-unlocked { background: rgba(147, 71, 25, 0.08); }
.rr-week-nav-btn[data-week-nav="5"].is-unlocked { background: rgba(47, 102, 99, 0.08); }
.rr-week-nav-btn[data-week-nav="6"].is-unlocked { background: rgba(114, 85, 21, 0.08); }

.rr-week-nav-btn.is-locked {
  opacity: 0.62;
  cursor: not-allowed;
}

.rr-week-nav-btn[data-week-nav="1"].is-locked { background: rgba(147, 75, 61, 0.05); }
.rr-week-nav-btn[data-week-nav="2"].is-locked { background: rgba(116, 62, 85, 0.05); }
.rr-week-nav-btn[data-week-nav="3"].is-locked { background: rgba(83, 103, 56, 0.05); }
.rr-week-nav-btn[data-week-nav="4"].is-locked { background: rgba(147, 71, 25, 0.05); }
.rr-week-nav-btn[data-week-nav="5"].is-locked { background: rgba(47, 102, 99, 0.05); }
.rr-week-nav-btn[data-week-nav="6"].is-locked { background: rgba(114, 85, 21, 0.05); }

.rr-week-nav-num {
  font-family: var(--rr-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--rr-week-accent, var(--rr-forest));
}

.rr-week-nav-label {
  font-family: var(--rr-serif);
  font-size: 0.98rem;
  color: var(--rr-charcoal);
}

.rr-week-nav-btn.is-current .rr-week-nav-label {
  font-weight: 600;
  color: var(--rr-week-accent, var(--rr-charcoal));
}

.rr-week-modules {
  margin: 0;
}

.rr-week-module {
  padding: 8px 0 12px;
}

.rr-week-module[data-week="1"] { --rr-week-accent: var(--rr-week-1); }
.rr-week-module[data-week="2"] { --rr-week-accent: var(--rr-week-2); }
.rr-week-module[data-week="3"] { --rr-week-accent: var(--rr-week-3); }
.rr-week-module[data-week="4"] { --rr-week-accent: var(--rr-week-4); }
.rr-week-module[data-week="5"] { --rr-week-accent: var(--rr-week-5); }
.rr-week-module[data-week="6"] { --rr-week-accent: var(--rr-week-6); }

.rr-module-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rr-line);
  box-shadow: inset 0 -2px 0 var(--rr-week-accent, transparent);
}

.rr-module-kicker {
  margin: 0 0 8px;
  font-family: var(--rr-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rr-week-accent, var(--rr-moss));
}

.rr-module-title {
  margin: 0;
  font-family: var(--rr-serif);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--rr-charcoal);
  line-height: 1.2;
}

.rr-week-module .rr-module-title {
  color: var(--rr-week-accent, var(--rr-charcoal));
}

.rr-module-body {
  display: grid;
  gap: 18px;
  max-width: var(--rr-measure);
}

.rr-module-block {
  margin: 0;
}

.rr-module-block-title {
  margin: 0 0 10px;
  font-family: var(--rr-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rr-soil);
}

.rr-lesson-block p,
.rr-assignment-block p,
.rr-journal-continue {
  margin: 0 0 12px;
  font-family: var(--rr-serif);
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--rr-ink-soft);
}

.rr-lesson-block p:last-child,
.rr-assignment-block p:last-child {
  margin-bottom: 0;
}

.rr-integrity-quote {
  margin: 0;
  padding: 8px 0 8px 16px;
  border-left: 3px solid var(--rr-soil);
  font-family: var(--rr-serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--rr-charcoal);
  font-style: italic;
}

.rr-quote-note {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--rr-muted);
}

/* Journal panel — notebook cue */
.rr-journal-panel {
  position: relative;
  padding: 18px 18px 18px 28px;
  background:
    linear-gradient(90deg, rgba(176, 58, 58, 0.12) 0 2px, transparent 2px),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 27px,
      rgba(92, 70, 54, 0.1) 27px,
      rgba(92, 70, 54, 0.1) 28px
    ),
    var(--rr-paper);
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.rr-prompt-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
}

.rr-prompt-list li {
  margin: 0 0 10px;
  font-family: var(--rr-serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--rr-ink);
}

.rr-prompt-list li:last-child {
  margin-bottom: 0;
}

.rr-journal-prompts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rr-journal-prompt-item {
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(92, 70, 54, 0.14);
}

.rr-journal-prompt-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.rr-week-goal {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--rr-line);
  border-left: 3px solid var(--rr-week-accent, var(--rr-forest));
  border-radius: var(--rr-radius);
  background: var(--rr-paper);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--rr-ink-soft);
}

.rr-week-goal-label {
  display: inline-block;
  margin-right: 0.35em;
  font-family: var(--rr-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rr-week-accent, var(--rr-forest));
}

.rr-journal-prompt-text {
  margin: 0 0 8px;
  font-family: var(--rr-serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--rr-ink);
}

.rr-prompt-emphasis {
  font-weight: 700;
  color: var(--rr-week-accent, var(--rr-ink));
  text-shadow: 0 1px 0 rgba(42, 38, 31, 0.12);
}

.rr-prompt-emphasis--week-1 { color: var(--rr-week-1); }
.rr-prompt-emphasis--week-2 { color: var(--rr-week-2); }
.rr-prompt-emphasis--week-3 { color: var(--rr-week-3); }
.rr-prompt-emphasis--week-4 { color: var(--rr-week-4); }
.rr-prompt-emphasis--week-5 { color: var(--rr-week-5); }
.rr-prompt-emphasis--week-6 { color: var(--rr-week-6); }

.rr-emphasis {
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(42, 38, 31, 0.1);
}

.rr-emphasis--privacy {
  color: var(--rr-emphasis-privacy);
}

.rr-emphasis--progress {
  color: var(--rr-emphasis-progress);
}

.rr-week-module .rr-assignment-block .rr-module-block-title {
  color: var(--rr-week-accent, var(--rr-soil));
}

.rr-week-module .rr-checkpoint-block .rr-module-block-title,
.rr-week-module .rr-week-continue strong {
  color: var(--rr-week-accent, var(--rr-soil));
}

.rr-week-module .rr-week-continue {
  border-left: 3px solid var(--rr-week-accent, var(--rr-forest));
  padding-left: 12px;
}

@media (forced-colors: active) {
  .rr-prompt-emphasis,
  .rr-emphasis,
  .rr-week-goal-label,
  .rr-week-nav-num,
  .rr-week-nav-btn.is-current .rr-week-nav-label,
  .rr-week-module .rr-module-title,
  .rr-week-module .rr-module-kicker,
  .rr-week-module .rr-assignment-block .rr-module-block-title,
  .rr-week-module .rr-checkpoint-block .rr-module-block-title,
  .rr-week-module .rr-week-continue strong {
    color: CanvasText;
    text-shadow: none;
    forced-color-adjust: auto;
  }

  .rr-week-goal,
  .rr-week-module .rr-week-continue,
  .rr-week-nav-btn.is-current {
    border-color: CanvasText;
    box-shadow: none;
  }
}

.rr-journal-prompt-hint {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--rr-muted);
}

.rr-journal-field-label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--rr-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rr-forest);
}

.rr-journal-input {
  display: block;
  width: 100%;
  min-height: 7.5rem;
  padding: 12px 14px;
  border: 1px solid var(--rr-line-strong);
  border-radius: var(--rr-radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--rr-ink);
  font-family: var(--rr-sans);
  font-size: 1rem;
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rr-journal-input:focus {
  outline: none;
  border-color: var(--rr-forest);
  box-shadow: 0 0 0 3px rgba(63, 90, 69, 0.18);
}

.rr-journal-entry-status {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--rr-faint);
}

.rr-browser-journal-panel {
  margin: 28px 0 32px;
  padding: 20px 22px;
  background: var(--rr-paper);
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.rr-browser-journal-panel > p,
.rr-browser-journal-storage p {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--rr-muted);
}

.rr-browser-journal-warning {
  color: var(--rr-ink-soft);
}

.rr-browser-journal-privacy-cue {
  margin: 14px 0 8px;
  color: var(--rr-ink-soft);
}

.rr-browser-journal-privacy-link-wrap {
  margin: 0 0 14px;
}

.rr-browser-journal-privacy-link-wrap .rr-hero-cta {
  width: auto;
  max-width: 100%;
  text-align: center;
}

.rr-browser-journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rr-journal-action-btn,
.rr-journal-import-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--rr-line-strong);
  border-radius: var(--rr-radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--rr-charcoal);
  font-family: var(--rr-sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.rr-journal-action-btn:hover,
.rr-journal-import-label:hover {
  border-color: var(--rr-forest);
  background: rgba(106, 129, 104, 0.1);
}

.rr-journal-action-btn:focus-visible,
.rr-journal-import-label:focus-visible,
.rr-journal-input:focus-visible {
  outline: 2px solid var(--rr-forest);
  outline-offset: 2px;
}

.rr-journal-action-btn--danger {
  border-color: rgba(176, 58, 58, 0.35);
  color: #7a2f2f;
}

.rr-journal-import-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rr-journal-panel-status {
  margin: 14px 0 0;
  min-height: 1.25em;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--rr-forest);
}

.rr-journal-print-mount {
  display: none;
}

.rr-journal-print-title {
  margin: 0 0 8px;
  font-family: var(--rr-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: #000;
}

.rr-journal-print-meta {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: #333;
}

.rr-journal-print-week {
  margin: 28px 0 12px;
  font-family: var(--rr-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: #000;
  page-break-after: avoid;
}

.rr-journal-print-prompt {
  margin: 18px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  page-break-after: avoid;
}

.rr-journal-print-prompt-text {
  margin: 0 0 8px;
  font-family: var(--rr-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: #111;
}

.rr-journal-print-answer-label {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #444;
}

.rr-journal-print-answer {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  white-space: pre-wrap;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #111;
  page-break-inside: avoid;
}

@media (max-width: 640px) {
  .rr-browser-journal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rr-journal-action-btn,
  .rr-journal-import-label {
    width: 100%;
  }
}

.rr-assignment-block {
  padding: 16px 18px;
  background: rgba(63, 90, 69, 0.07);
  border: 1px solid rgba(63, 90, 69, 0.18);
  border-radius: var(--rr-radius);
}

.rr-checkpoint-block {
  padding: 4px 0 0;
}

.rr-checkpoint-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rr-check;
}

.rr-checkpoint-list li {
  position: relative;
  counter-increment: rr-check;
  margin: 0 0 10px;
  padding: 10px 12px 10px 44px;
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--rr-ink-soft);
}

.rr-checkpoint-list li::before {
  content: counter(rr-check, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 10px;
  font-family: var(--rr-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--rr-forest);
}

.rr-journal-continue {
  margin: 4px 0 0 !important;
  padding-top: 4px;
  color: var(--rr-muted) !important;
  font-size: 1rem !important;
}

.rr-module-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--rr-line);
}

.rr-advance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--rr-forest);
  border-radius: var(--rr-radius);
  background: var(--rr-forest);
  color: #f7f2e8;
  font-family: var(--rr-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}

.rr-advance-btn:hover,
.rr-advance-btn:focus-visible {
  background: #334a38;
  outline: none;
  transform: translateY(-1px);
}

.rr-packet-optional {
  font-size: 0.92rem;
  color: var(--rr-soil);
  text-underline-offset: 3px;
}

.rr-packet-optional:hover,
.rr-packet-optional:focus-visible {
  color: var(--rr-forest);
  outline: none;
}

/* ── Graduate gate ── */
.rr-graduate-gate {
  margin-top: 36px;
  padding: 28px 24px;
  background: linear-gradient(165deg, #2f3d32 0%, #243028 100%);
  border-radius: var(--rr-radius);
  color: var(--rr-warm-white);
  border: 1px solid rgba(247, 242, 232, 0.12);
}

.rr-graduate-gate .rr-section-label {
  color: rgba(196, 214, 190, 0.9);
}

.rr-graduate-gate .rr-section-title {
  color: var(--rr-warm-white);
}

.rr-graduate-gate-lead {
  margin: 12px 0 22px;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(247, 242, 232, 0.78);
}

.rr-graduation-locked-notice {
  margin: 0 0 18px;
  max-width: 52ch;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.08);
  border: 1px solid rgba(247, 242, 232, 0.14);
  color: rgba(247, 242, 232, 0.88);
  font-size: 0.95rem;
  line-height: 1.55;
}

.rr-graduate-gate.is-graduation-preview-locked {
  opacity: 0.96;
}

.main > .rr-browser-journal-panel {
  margin-bottom: 28px;
}

.rr-graduation-page.is-graduation-locked .rr-cert-actions .rr-graduate-btn:disabled,
.rr-graduation-page.is-graduation-locked .rr-grad-cert-print-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.rr-graduation-page.is-graduation-locked .rr-grad-start-form button:disabled,
.rr-graduation-page.is-graduation-locked .rr-grad-start-form input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.rr-graduation-main > .rr-graduation-locked-notice {
  margin: 0 0 24px;
  max-width: 56ch;
}

.rr-page #rr-graduate-gate #rr-graduate-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border: 1px solid rgba(242, 237, 228, 0.22);
  border-radius: var(--rr-radius);
  background-color: #587a5c;
  background-image: linear-gradient(180deg, #6d916f 0%, #587a5c 52%, #4a6b4e 100%);
  color: #f2ede4;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transition: box-shadow 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.rr-page #rr-graduate-gate #rr-graduate-btn:hover,
.rr-page #rr-graduate-gate #rr-graduate-btn:focus-visible {
  background-color: #6d916f;
  background-image: linear-gradient(180deg, #7fa382 0%, #6d916f 100%);
  box-shadow: 0 0 26px rgba(88, 122, 92, 0.55);
  transform: translateY(-1px);
  outline: none;
}

.rr-page #rr-graduate-gate #rr-graduate-btn.is-graduation-locked,
.rr-page #rr-graduate-gate #rr-graduate-btn:disabled {
  background-color: #4a5248;
  background-image: linear-gradient(180deg, #5a6358 0%, #4a5248 100%);
  border-color: rgba(242, 237, 228, 0.12);
  color: rgba(242, 237, 228, 0.72);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 13px;
}

.rr-page #rr-graduate-gate #rr-graduate-btn.is-graduation-locked:hover,
.rr-page #rr-graduate-gate #rr-graduate-btn.is-graduation-locked:focus-visible,
.rr-page #rr-graduate-gate #rr-graduate-btn:disabled:hover,
.rr-page #rr-graduate-gate #rr-graduate-btn:disabled:focus-visible {
  background-color: #4a5248;
  background-image: linear-gradient(180deg, #5a6358 0%, #4a5248 100%);
  box-shadow: none;
  transform: none;
}

/* ── Completion ── */
.rr-declaration {
  margin: 0 0 16px;
  padding: 22px 22px 22px 20px;
  border-left: 3px solid var(--rr-forest);
  background: var(--rr-paper);
  font-family: var(--rr-serif);
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--rr-ink);
  font-style: italic;
}

.rr-complete-note {
  margin: 0 0 24px;
  color: var(--rr-muted);
  line-height: 1.6;
}

.rr-complete-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rr-graduation-disclaimer {
  margin-top: 12px !important;
  font-size: 0.92rem !important;
  color: var(--rr-faint) !important;
}

/* ── Resources ── */
.rr-resources-block {
  padding-top: 36px;
}

.rr-packet-secondary {
  padding: 24px 0 8px;
  border-top: 1px solid var(--rr-line);
}

.rr-packet-secondary-title {
  margin: 0 0 10px;
  font-family: var(--rr-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--rr-charcoal);
}

.rr-packet-secondary-desc {
  margin: 0 0 16px;
  max-width: var(--rr-measure);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--rr-muted);
}

.rr-packet-download,
.rr-packet-download-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--rr-line-strong);
  border-radius: var(--rr-radius);
  background: transparent;
  color: var(--rr-soil-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.rr-packet-download:hover,
.rr-packet-download-secondary:hover,
.rr-packet-download:focus-visible,
.rr-packet-download-secondary:focus-visible {
  background: rgba(63, 90, 69, 0.08);
  outline: none;
}

.rr-packet-privacy {
  margin: 14px 0 0;
  max-width: var(--rr-measure);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--rr-faint);
}

.rr-resources-section {
  margin-top: 18px;
}

.rr-resources-items,
.rr-prompt-list.rr-resources-items {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.rr-resource-item {
  margin: 0 0 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rr-line);
}

.rr-resource-item a {
  color: var(--rr-forest);
  font-weight: 600;
}

/* ── Connect ── */
.rr-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
  padding-top: 12px;
}

.rr-cta-title {
  margin: 0 0 10px;
  font-family: var(--rr-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--rr-charcoal);
}

.rr-cta-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--rr-muted);
}

/* Connection form — parchment surface with soil/charcoal text
   (overrides shared division-forms dark-theme defaults) */
.rr-page #connect .division-inquiry-panel {
  max-width: none;
  width: 100%;
  padding: 22px 22px 20px;
  background:
    linear-gradient(180deg, rgba(250, 246, 238, 0.98), rgba(244, 239, 228, 0.96));
  border: 1px solid var(--rr-line);
  border-top: 3px solid var(--rr-forest);
  border-radius: var(--rr-radius);
  box-shadow: 0 12px 28px rgba(60, 47, 36, 0.06);
  color: var(--rr-ink);
}

.rr-page #connect .division-form {
  gap: 16px;
}

.rr-page #connect .division-form__label {
  font-family: var(--rr-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rr-soil);
}

.rr-page #connect .division-form__input,
.rr-page #connect .division-form__textarea,
.rr-page #connect .division-form__select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 70, 54, 0.28);
  border-radius: var(--rr-radius);
  background: #fffdf8;
  color: var(--rr-charcoal);
  font-family: var(--rr-sans);
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.rr-page #connect .division-form__textarea {
  min-height: 120px;
  line-height: 1.55;
  resize: vertical;
}

.rr-page #connect .division-form__select {
  background-color: #fffdf8;
  background-image: linear-gradient(45deg, transparent 50%, var(--rr-soil) 50%),
    linear-gradient(135deg, var(--rr-soil) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
  color: var(--rr-charcoal);
}

.rr-page #connect .division-form__input::placeholder,
.rr-page #connect .division-form__textarea::placeholder {
  color: rgba(42, 38, 31, 0.45);
  opacity: 1;
}

.rr-page #connect .division-form__input:focus,
.rr-page #connect .division-form__textarea:focus,
.rr-page #connect .division-form__select:focus {
  outline: none;
  border-color: var(--rr-forest);
  box-shadow: 0 0 0 3px var(--rr-moss-soft);
}

.rr-page #connect .division-form__input:focus-visible,
.rr-page #connect .division-form__textarea:focus-visible,
.rr-page #connect .division-form__select:focus-visible {
  outline: none;
  border-color: var(--rr-forest);
  box-shadow: 0 0 0 3px var(--rr-moss-soft);
}

.rr-page #connect .division-form__input[aria-invalid="true"],
.rr-page #connect .division-form__textarea[aria-invalid="true"],
.rr-page #connect .division-form__select[aria-invalid="true"] {
  border-color: #8a3b2b;
  box-shadow: 0 0 0 3px rgba(138, 59, 43, 0.16);
}

.rr-page #connect .division-form__note {
  color: var(--rr-faint);
}

.rr-page #connect .division-form__errors {
  border: 1px solid rgba(138, 59, 43, 0.35);
  border-left: 3px solid #8a3b2b;
  border-radius: var(--rr-radius);
  background: #f8ece8;
  color: #5c2418;
}

.rr-page #connect .division-form__status {
  border: 1px solid rgba(63, 90, 69, 0.28);
  border-left: 3px solid var(--rr-forest);
  border-radius: var(--rr-radius);
  background: rgba(63, 90, 69, 0.08);
  color: var(--rr-ink-soft);
  box-shadow: none;
}

.rr-page #connect .division-form__status--error {
  border-color: rgba(138, 59, 43, 0.35);
  border-left-color: #8a3b2b;
  background: #f8ece8;
  color: #5c2418;
}

.rr-page #connect .division-form__actions {
  margin-top: 6px;
}

.rr-page #connect .division-form__submit.rr-btn-mail,
.rr-page #connect .rr-btn-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 11rem;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--rr-forest);
  border-radius: var(--rr-radius);
  background: var(--rr-forest);
  color: #f7f2e8;
  font-family: var(--rr-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.rr-page #connect .division-form__submit.rr-btn-mail:hover,
.rr-page #connect .rr-btn-mail:hover {
  background: #334a38;
  border-color: #334a38;
  color: #f7f2e8;
  transform: translateY(-1px);
}

.rr-page #connect .division-form__submit.rr-btn-mail:focus-visible,
.rr-page #connect .rr-btn-mail:focus-visible {
  outline: none;
  background: #334a38;
  border-color: #334a38;
  color: #f7f2e8;
  box-shadow: 0 0 0 3px var(--rr-moss-soft);
}

.rr-page #connect .division-form__submit.rr-btn-mail:active,
.rr-page #connect .rr-btn-mail:active {
  background: #2a3c2f;
  border-color: #2a3c2f;
  transform: none;
}

.rr-page #connect .division-form__submit.rr-btn-mail[disabled],
.rr-page #connect .division-form__submit.rr-btn-mail[aria-busy="true"],
.rr-page #connect .rr-btn-mail[disabled] {
  background: #6a8168;
  border-color: #6a8168;
  color: rgba(247, 242, 232, 0.85);
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .rr-page #connect .division-form__submit.rr-btn-mail,
  .rr-page #connect .rr-btn-mail {
    transition: none;
  }

  .rr-page #connect .division-form__submit.rr-btn-mail:hover,
  .rr-page #connect .rr-btn-mail:hover {
    transform: none;
  }
}

@media (max-width: 720px) {
  .rr-page #connect .division-inquiry-panel {
    padding: 18px 16px 16px;
  }

  .rr-page #connect .division-form__submit.rr-btn-mail,
  .rr-page #connect .rr-btn-mail {
    width: 100%;
    min-width: 0;
  }
}

/* ── Divisions + footer ── */
.rr-divisions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 8px 0 24px;
}

.rr-divisions a {
  color: var(--rr-soil);
  text-decoration: none;
  font-size: 0.92rem;
}

.rr-divisions a:hover,
.rr-divisions a:focus-visible {
  color: var(--rr-forest);
  outline: none;
}

.rr-divisions a.is-hub {
  font-weight: 600;
  color: var(--rr-charcoal);
}

.rr-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--rr-line);
}

.rr-footer-brand {
  font-family: var(--rr-serif);
  font-size: 1.15rem;
  color: var(--rr-charcoal);
}

.rr-footer-parent {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--rr-muted);
}

.rr-page .rr-footer .site-legal-links a {
  color: var(--rr-soil);
}

.rr-page .rr-footer .site-legal-links a:hover,
.rr-page .rr-footer .site-legal-links a:focus-visible {
  color: var(--rr-forest);
}

@media (prefers-reduced-motion: reduce) {
  .rr-hero-cta,
  .rr-gate-submit,
  .rr-advance-btn,
  .rr-week-nav-btn,
  .rr-page #rr-graduate-gate #rr-graduate-btn {
    transition: none;
  }
  .rr-hero-cta--primary:hover,
  .rr-gate-submit:hover,
  .rr-advance-btn:hover {
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .rr-week-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rr-orient-grid,
  .rr-path-split,
  .rr-complete-grid,
  .rr-cta {
    grid-template-columns: 1fr;
  }

  .rr-week-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rr-path-myth {
    padding: 18px 14px 16px;
  }

  .rr-integrity-gate,
  .rr-threshold {
    padding: 24px 16px 22px;
  }

  .rr-module-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rr-advance-btn,
  .rr-gate-submit,
  .rr-hero-cta {
    width: 100%;
  }

  .rr-page-nav {
    gap: 10px 14px;
  }

  .rr-hero-inner {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .rr-week-nav {
    grid-template-columns: 1fr 1fr;
  }
}


/* ── Preserved graduation + modal styles ── */
.rr-graduate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--rr-green);
  color: #f2ede4;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.rr-graduate-btn:hover,
.rr-graduate-btn:focus-visible {
  box-shadow: 0 0 28px rgba(88, 122, 92, 0.42);
  transform: translateY(-1px);
  outline: none;
}

.rr-graduate-btn--inline {
  margin-top: 12px;
}

/* ── Graduation modals (course) ── */
body.rr-grad-modal-open {
  overflow: hidden;
}

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

.rr-grad-modal.rr-grad-modal--open {
  display: flex;
}

.rr-grad-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.rr-grad-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 16, 0.72);
  backdrop-filter: blur(4px);
}

.rr-grad-modal__dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px 24px 22px;
  border: 1px solid rgba(166, 144, 118, 0.35);
  border-top: 3px solid var(--rr-green);
  border-radius: var(--radius);
  background: #faf8f4;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.rr-grad-modal__title {
  margin: 0 0 12px;
  font-family: var(--rr-serif);
  font-size: 23px;
  font-weight: 400;
  color: var(--rr-text);
}

.rr-grad-modal__copy {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rr-muted);
}

.rr-grad-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.rr-grad-modal__link {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rr-brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rr-grad-modal__link:hover {
  color: var(--rr-green);
}

.rr-grad-name-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rr-grad-name-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rr-brown);
  font-weight: 600;
}

.rr-grad-name-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(88, 122, 92, 0.35);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 17px;
  color: var(--rr-text);
}

.rr-grad-name-input:focus {
  outline: 2px solid rgba(88, 122, 92, 0.45);
  outline-offset: 1px;
}

.rr-grad-name-error {
  margin: 0;
  font-size: 14px;
  color: #8b4513;
}

/* ── Graduation page ── */
.rr-graduation-page {
  background-color: #ebe6dc;
}

.rr-graduation-main {
  padding-bottom: 40px;
}

.rr-grad-hero {
  text-align: center;
  padding: 12px 0 8px;
}

.rr-grad-hero-mark {
  display: inline-flex;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(166, 144, 118, 0.35);
  border-radius: 8px;
  background: rgba(242, 237, 228, 0.5);
  box-shadow: 0 8px 24px rgba(42, 45, 40, 0.08);
}

.rr-grad-hero-mark img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.rr-grad-hero-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rr-green);
  font-weight: 700;
}

.rr-grad-hero-title {
  margin: 0;
  font-family: var(--rr-serif);
  font-size: clamp(33px, 6vw, 49px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--rr-text);
}

.rr-grad-root-line {
  margin: 20px auto;
  max-width: 120px;
}

.rr-grad-core-statement {
  margin: 0 auto 20px;
  max-width: 44ch;
  padding: 0;
  border: none;
  font-family: var(--rr-serif);
  font-size: clamp(19px, 3vw, 23px);
  line-height: 1.55;
  font-style: italic;
  color: var(--rr-text);
}

.rr-grad-support-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rr-brown);
  font-weight: 600;
}

.rr-grad-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rr-grad-pillar {
  padding: 20px 18px;
  border: 1px solid rgba(88, 122, 92, 0.28);
  border-left: 3px solid var(--rr-green);
  border-radius: var(--radius);
  background: #faf8f4;
}

.rr-grad-pillar-title {
  margin: 0 0 10px;
  font-family: var(--rr-serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--rr-green);
}

.rr-grad-pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--rr-muted);
}

.rr-certificate {
  max-width: 720px;
  margin: 0 auto;
}

.rr-certificate__frame {
  padding: 14px;
  border: 3px solid #3d5240;
  border-radius: 4px;
  background: linear-gradient(145deg, #4a6350 0%, #3d5240 100%);
  box-shadow: 0 12px 40px rgba(42, 45, 40, 0.18);
}

.rr-certificate__inner {
  padding: 32px 28px 28px;
  border: 2px solid rgba(166, 144, 118, 0.65);
  background:
    linear-gradient(180deg, #f9f5ec 0%, #f2ede4 48%, #ebe4d6 100%);
  text-align: center;
}

.rr-certificate__header {
  margin-bottom: 16px;
}

.rr-certificate__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rr-certificate__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.rr-certificate__wordmark {
  font-family: var(--rr-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--rr-green);
  letter-spacing: 0.04em;
}

.rr-certificate__division {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rr-brown);
}

.rr-certificate__rule {
  height: 2px;
  margin: 0 auto 20px;
  max-width: 280px;
  background: linear-gradient(90deg, transparent, rgba(88, 122, 92, 0.5), transparent);
}

.rr-certificate__title {
  margin: 0 0 6px;
  font-family: var(--rr-serif);
  font-size: clamp(29px, 5vw, 37px);
  font-weight: 700;
  color: #121410;
  letter-spacing: 0.02em;
}

.rr-certificate__subtitle {
  margin: 0 0 24px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rr-green);
}

.rr-certificate__presented {
  margin: 0 0 8px;
  font-family: var(--rr-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--rr-brown);
}

.rr-certificate__recipient {
  margin: 0 0 22px;
  font-family: var(--rr-serif);
  font-size: clamp(27px, 4.5vw, 35px);
  font-weight: 700;
  color: #121410;
  line-height: 1.2;
}

.rr-certificate__message {
  margin: 0 auto 24px;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rr-muted);
}

.rr-certificate__footer {
  padding-top: 8px;
}

.rr-certificate__sig-line {
  width: 200px;
  height: 1px;
  margin: 0 auto 14px;
  background: rgba(166, 144, 118, 0.75);
}

.rr-certificate__sig-label {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rr-green);
}

.rr-certificate__sig-note {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rr-brown);
}

.rr-cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.rr-grad-cert-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid rgba(88, 122, 92, 0.45);
  border-radius: var(--radius);
  background: transparent;
  color: var(--rr-green);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.rr-grad-cert-print-btn:hover,
.rr-grad-cert-print-btn:focus-visible {
  background: rgba(88, 122, 92, 0.1);
  border-color: var(--rr-green);
  outline: none;
}

.rr-grad-return {
  margin-top: 32px;
  text-align: center;
}

.rr-grad-no-name {
  margin: 40px auto;
  max-width: 40ch;
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(88, 122, 92, 0.4);
  border-radius: var(--radius);
  background: #faf8f4;
}

.rr-grad-no-name p {
  margin: 0 0 8px;
  color: var(--rr-muted);
  line-height: 1.6;
}

/* ── Graduation page: mobile start=1 name entry ── */
.rr-grad-start-panel {
  max-width: 520px;
  margin: 24px auto 40px;
  padding: 28px 24px;
  border: 1px solid rgba(88, 122, 92, 0.35);
  border-left: 4px solid var(--rr-green);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(88, 122, 92, 0.1) 0%, transparent 55%),
    #faf8f4;
  box-shadow: 0 10px 32px rgba(42, 45, 40, 0.08);
}

.rr-grad-start-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rr-green);
  font-weight: 700;
}

.rr-grad-start-title {
  margin: 0 0 14px;
  font-family: var(--rr-serif);
  font-size: clamp(25px, 4vw, 31px);
  font-weight: 400;
  color: var(--rr-text);
}

.rr-grad-start-privacy {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rr-muted);
}

.rr-grad-start-privacy-link-wrap {
  margin: 0 0 20px;
}

.rr-grad-start-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rr-grad-start-back {
  margin-top: 20px;
  margin-bottom: 0;
  text-align: left;
}

@media (max-width: 720px) {
  .rr-grad-pillar-grid {
    grid-template-columns: 1fr;
  }

  .rr-page #rr-graduate-gate #rr-graduate-btn {
    width: 100%;
    max-width: 100%;
  }

  .rr-grad-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rr-grad-modal__link {
    text-align: center;
  }
}

@media print {
  body.rr-journal-printing .wrap,
  body.rr-journal-printing .rr-grad-modal {
    display: none !important;
  }

  body.rr-journal-printing .rr-journal-print-mount {
    display: block !important;
    position: static;
    width: auto;
    margin: 0;
    padding: 24px;
  }

  body.rr-journal-printing {
    background: #fff !important;
  }

  .rr-prompt-emphasis,
  .rr-emphasis,
  .rr-week-goal-label,
  .rr-week-nav-num,
  .rr-week-nav-btn.is-current .rr-week-nav-label,
  .rr-week-module .rr-module-title,
  .rr-week-module .rr-module-kicker,
  .rr-week-module .rr-assignment-block .rr-module-block-title,
  .rr-week-module .rr-checkpoint-block .rr-module-block-title,
  .rr-week-module .rr-week-continue strong {
    color: #1c1a16 !important;
    text-shadow: none !important;
  }

  .eco-nav,
  .rr-footer,
  .rr-grad-hero,
  .rr-grad-pillars,
  .rr-grad-return,
  .rr-grad-no-name,
  .rr-grad-cert-section .rr-section-head,
  .rr-cert-actions,
  .rr-section-gap,
  .hr {
    display: none !important;
  }

  .rr-graduation-page {
    background: #fff !important;
  }

  .rr-grad-cert-print-zone {
    margin: 0;
    padding: 0;
  }

  .rr-certificate {
    max-width: 100%;
    box-shadow: none;
  }

  .rr-certificate__frame {
    box-shadow: none;
    border-width: 2px;
  }
}

/* ── Always-visible top-bar Livingston quote ── */
.eco-nav-inner:has(> .eco-nav-quote--roots) {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto;
  grid-template-areas: "brand quote menu";
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
}
.eco-nav-inner:has(> .eco-nav-quote--roots) .eco-nav-brand-block {
  grid-area: brand;
  max-width: none;
  flex: none;
  padding-right: 0;
}
.eco-nav-inner:has(> .eco-nav-quote--roots) .eco-nav-menu {
  grid-area: menu;
}
.rr-page .eco-nav-quote.eco-nav-quote--roots {
  grid-area: quote;
  display: block !important;
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 0 6px;
  border: none;
  border-bottom: 1px solid #4a7350;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #f3efe4;
}
.rr-page .eco-nav-quote--roots .eco-nav-quote-text {
  display: block;
  margin: 0;
  font-style: italic;
  color: inherit;
}
.rr-page .eco-nav-quote--roots .eco-nav-quote-attr {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(243,239,228,0.65);
}
@media (max-width: 900px) {
  .eco-nav-inner:has(> .eco-nav-quote--roots) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand menu"
      "quote quote";
  }
  .rr-page .eco-nav-quote.eco-nav-quote--roots {
    max-width: none;
    margin: 0;
    text-align: left;
  }
  .rr-page {
    --eco-nav-height: 7.75rem;
  }
}
@media (max-width: 640px) {
  .rr-page .eco-nav-quote.eco-nav-quote--roots {
    font-size: 11px;
  }
  .rr-page .eco-nav-quote--roots .eco-nav-quote-attr {
    font-size: 9px;
  }
  .rr-page {
    --eco-nav-height: 8.5rem;
  }
}

/* ── Resources safety notice & tabs ── */
.rr-resources-safety-notice {
  margin: 0 0 22px;
  max-width: var(--rr-measure);
  padding: 12px 14px;
  border: 1px solid var(--rr-line-strong);
  border-radius: var(--rr-radius);
  background: rgba(143, 45, 61, 0.06);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--rr-soil-deep);
}

.rr-resources-tabs {
  margin-top: 8px;
}

.rr-resources-tabs__tablist-wrap {
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.rr-resources-tabs__tablist {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: min-content;
  padding-bottom: 4px;
}

.rr-resources-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  background: rgba(250, 246, 238, 0.94);
  color: var(--rr-soil-deep);
  font-family: var(--rr-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.rr-resources-tab:hover,
.rr-resources-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(88, 122, 92, 0.25);
}

.rr-resources-tab[aria-selected="true"] {
  color: #fff;
  border-color: transparent;
}

.rr-resources-tab--crisis[aria-selected="true"] { background-color: #8f2d3d; }
.rr-resources-tab--mental-health[aria-selected="true"] { background-color: #4b4f8a; }
.rr-resources-tab--abuse[aria-selected="true"] { background-color: #6f3d62; }
.rr-resources-tab--child-youth[aria-selected="true"] { background-color: #8a5d14; }
.rr-resources-tab--veterans[aria-selected="true"] { background-color: #2f5873; }
.rr-resources-tab--health-local[aria-selected="true"] { background-color: #35694b; }
.rr-resources-tab--course-packet[aria-selected="true"] { background-color: #7a4b35; }
.rr-resources-tab--program[aria-selected="true"] { background-color: #2f6663; }

.rr-resources-panel__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--rr-panel-accent, var(--rr-forest));
  font-family: var(--rr-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--rr-charcoal);
}

.rr-resources-panel--crisis { --rr-panel-accent: #8f2d3d; }
.rr-resources-panel--mental-health { --rr-panel-accent: #4b4f8a; }
.rr-resources-panel--abuse { --rr-panel-accent: #6f3d62; }
.rr-resources-panel--child-youth { --rr-panel-accent: #8a5d14; }
.rr-resources-panel--veterans { --rr-panel-accent: #2f5873; }
.rr-resources-panel--health-local { --rr-panel-accent: #35694b; }
.rr-resources-panel--course-packet { --rr-panel-accent: #7a4b35; }
.rr-resources-panel--program { --rr-panel-accent: #2f6663; }

.rr-resource-cards {
  display: grid;
  gap: 14px;
}

.rr-resource-card {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--rr-line);
  border-left: 4px solid var(--rr-panel-accent, var(--rr-forest));
  border-radius: var(--rr-radius);
  background: rgba(255, 255, 255, 0.55);
}

.rr-resource-card__title {
  margin: 0 0 8px;
  font-family: var(--rr-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--rr-charcoal);
}

.rr-resource-card__contact,
.rr-resource-card__links,
.rr-resource-card__copy {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--rr-muted);
}

.rr-resource-card__contact:last-child,
.rr-resource-card__links:last-child,
.rr-resource-card__copy:last-child {
  margin-bottom: 0;
}

.rr-resource-card a {
  color: var(--rr-forest);
  font-weight: 600;
}

.rr-resource-card a:hover,
.rr-resource-card a:focus-visible {
  color: var(--rr-soil-deep);
}

.rr-program-resources-empty {
  margin: 16px 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--rr-muted);
}

#rr-packet-overlay-mount,
#rr-resources-mount {
  margin-top: 20px;
}

#rr-resources-mount .rr-resources-items {
  margin-top: 0;
}

/* ── My Journal read-only viewer (Resources tab) ── */
.rr-journal-view-privacy {
  margin: 0 0 16px;
  max-width: var(--rr-measure);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--rr-muted);
}

.rr-journal-view-privacy a {
  color: var(--rr-forest);
  font-weight: 600;
}

.rr-journal-view-privacy a:hover,
.rr-journal-view-privacy a:focus-visible {
  color: var(--rr-soil-deep);
}

.rr-journal-view-status {
  margin: 0 0 14px;
  min-height: 1.25em;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--rr-forest);
}

.rr-journal-view-empty,
.rr-journal-view-unavailable {
  margin: 0 0 16px;
  max-width: var(--rr-measure);
  padding: 12px 14px;
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--rr-ink-soft);
}

.rr-journal-view-unavailable {
  border-color: rgba(176, 58, 58, 0.25);
  background: rgba(176, 58, 58, 0.05);
}

.rr-journal-view-mount {
  display: grid;
  gap: 24px;
}

.rr-journal-view-week {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  background: rgba(250, 246, 238, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.rr-journal-view-week-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(47, 102, 99, 0.35);
  font-family: var(--rr-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--rr-charcoal);
}

.rr-journal-view-entry {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--rr-line);
}

.rr-journal-view-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.rr-journal-view-prompt-heading {
  margin: 0 0 8px;
  font-family: var(--rr-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f6663;
}

.rr-journal-view-prompt-text {
  margin: 0 0 12px;
  font-family: var(--rr-serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--rr-charcoal);
}

.rr-journal-view-answer-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rr-faint);
}

.rr-journal-view-answer {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  background: rgba(255, 255, 255, 0.78);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--rr-ink-soft);
  cursor: default;
  user-select: text;
}

@media (max-width: 640px) {
  .rr-journal-view-week {
    padding: 14px 16px;
  }

  .rr-journal-view-answer {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rr-journal-view-week,
  .rr-journal-view-answer {
    transition: none;
  }
}

html.no-js .rr-resources-tabs__tablist-wrap {
  display: none;
}

html.no-js .rr-resources-tabs [role="tabpanel"] {
  display: block !important;
  margin-bottom: 28px;
}

html.no-js .rr-resources-tabs [role="tabpanel"][hidden] {
  display: block !important;
}

@media (prefers-reduced-motion: reduce) {
  .rr-resources-tab {
    transition: none;
  }
}


/* Standalone site header (no company menu) */
.rr-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--rr-paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rr-line);
}
.rr-site-header__inner {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.rr-site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.rr-site-brand__logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.rr-site-brand__copy { display: grid; gap: 0.1rem; min-width: 0; }
.rr-site-brand__name {
  font-family: var(--rr-serif);
  font-size: 1.05rem;
  line-height: 1.15;
}
.rr-site-brand__tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rr-forest);
}
.rr-site-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--rr-line);
  background: var(--rr-paper);
  color: var(--rr-ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.rr-site-nav-toggle__icon {
  display: inline-grid;
  gap: 3px;
  width: 1rem;
}
.rr-site-nav-toggle__icon span {
  display: block;
  height: 2px;
  background: currentColor;
}
.rr-site-nav {
  display: none;
  position: absolute;
  right: 1.25rem;
  top: calc(100% + 0.35rem);
  min-width: min(18rem, calc(100vw - 2rem));
  background: var(--rr-paper);
  border: 1px solid var(--rr-line);
  border-radius: 12px;
  padding: 0.55rem;
  box-shadow: 0 16px 40px rgba(61, 47, 36, 0.16);
}
.rr-site-header.is-open .rr-site-nav { display: grid; gap: 0.15rem; }
.rr-site-nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
}
.rr-site-nav a:hover,
.rr-site-nav a[aria-current="page"] {
  background: var(--rr-moss-soft);
}
.rr-footer-parent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
@media (min-width: 960px) {
  .rr-site-header__inner { position: relative; }
  .rr-site-nav-toggle { display: none; }
  .rr-site-nav {
    display: flex;
    position: static;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 0.15rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .rr-site-nav a { font-size: 0.86rem; }
}

/* Hub return helper on Blueprint footers */
.blib-hub-return {
  margin: 0 0 0.75rem;
}
.blib-hub-return a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
