/* ============================================================
   Righteous Roots — Premium design system
   Refined Islamic family education palette:
   roots · garden · parchment · knowledge · calm growth
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Core palette */
  --forest:        #123C34;  /* deep forest — primary */
  --forest-deep:   #0D2A24;
  --ink:           #1F2A25;  /* charcoal — body text */
  --ivory:         #F8F3EA;  /* main background */
  --parchment:     #EFE4D2;  /* section contrast */
  --sand:          #E7D8C2;  /* deeper section contrast */
  --gold:          #B99A5B;  /* muted gold accent */
  --gold-soft:     #C9B07A;
  --olive:         #6F7F55;  /* secondary accent */
  --clay:          #A86F4C;  /* secondary accent */
  --border-soft:   #D8C6A3;  /* card borders */
  --border-faint:  #EADFC8;

  --muted:         #6B6A63;
  --muted-strong:  #4A4940;

  /* Legacy aliases (older inline styles + JS may reference these) */
  --cream:         var(--ivory);
  --off-white:     #FBF7EE;
  --beige:         var(--parchment);
  --green:         var(--forest);
  --green-dark:    var(--forest-deep);
  --gold-dark:     #8C7038;

  /* Shape & motion */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(18, 60, 52, 0.04);
  --shadow:    0 4px 18px rgba(18, 60, 52, 0.06);
  --shadow-lg: 0 12px 32px rgba(18, 60, 52, 0.10);

  --max: 1140px;
  --max-prose: 720px;

  --font-serif: "Fraunces", "Cormorant Garamond", "Literata", Georgia, serif;
  --font-sans:  "Inter", "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--forest);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 .55em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.05rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--muted-strong); max-width: 70ch; }
strong { color: var(--ink); }

a { color: var(--forest); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Geometric accent (subtle gold rule) ---------- */
.geo-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-soft) 20%, var(--gold) 50%, var(--border-soft) 80%, transparent);
  opacity: .55;
  margin: 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 234, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-faint);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.5rem; max-width: var(--max); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--font-serif); font-weight: 600;
  font-size: 1.2rem; color: var(--forest);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--forest);
  position: relative; flex-shrink: 0;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 5px;
  border: 1.5px solid var(--gold); border-radius: 50%;
}
.brand-mark::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  transform: translate(-50%, -50%);
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: .92rem;
  padding: .35rem 0; position: relative;
}
.nav-links a:hover { color: var(--forest); }
.nav-links a.active { color: var(--forest); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.4rem;
  height: 2px; background: var(--gold); border-radius: 2px;
}

.hamburger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px; border-radius: 6px;
}
.hamburger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem 1.5rem 1rem;
    background: var(--ivory); border-bottom: 1px solid var(--border-faint);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem 0; width: 100%; border-bottom: 1px solid var(--border-faint); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 500; font-size: .94rem;
  cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  text-decoration: none; letter-spacing: 0;
  line-height: 1.2;
}
.btn:hover { transform: none; }

.btn-primary {
  background: var(--forest); color: var(--ivory);
  border-color: var(--forest);
}
.btn-primary:hover { background: var(--forest-deep); color: var(--ivory); border-color: var(--forest-deep); }

.btn-outline {
  background: transparent; color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--ivory); }

.btn-gold {
  background: transparent; color: var(--forest);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold); color: var(--forest-deep); border-color: var(--gold); }

.btn-link {
  background: transparent; padding: .3rem 0; border: 0; color: var(--forest);
  border-bottom: 1px solid var(--gold); border-radius: 0;
}
.btn-link:hover { color: var(--gold); }

.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--parchment);
  background-image:
    radial-gradient(circle at 1.5px 1.5px, rgba(185, 154, 91, 0.10) 1px, transparent 1.5px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--border-faint);
  padding: 6rem 1.5rem 5rem;
  position: relative;
}
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.hero h1 { color: var(--forest); font-weight: 600; margin-bottom: 1rem; }
.hero .sub { color: var(--muted-strong); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2.25rem; }
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { color: var(--forest); margin-bottom: .65rem; }
.section-head p { color: var(--muted); margin: 0 auto; }

.section-eyebrow {
  display: inline-block; font-family: var(--font-sans);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: .85rem;
}

.bg-soft     { background: #FBF7EE; }
.bg-beige,
.bg-parchment { background: var(--parchment); }
.bg-sand     { background: var(--sand); }
.bg-forest   { background: var(--forest); color: var(--ivory); }
.bg-forest h1, .bg-forest h2, .bg-forest h3 { color: var(--ivory); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-6 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards (one premium style, reused) ---------- */
.card {
  background: #FBF7EE;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: border-color .2s, box-shadow .25s, transform .2s;
  display: flex; flex-direction: column;
  position: relative;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 1.5rem; right: 1.5rem;
  height: 2px; background: var(--gold); opacity: 0;
  transition: opacity .25s;
  border-radius: 0 0 2px 2px;
}
.card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); transform: translateY(-2px); }
.card:hover::before { opacity: .8; }
.card h3 { color: var(--forest); margin-bottom: .5rem; font-family: var(--font-serif); font-weight: 600; }
.card p { color: var(--muted-strong); flex: 1; font-size: .96rem; }

/* ---------- Badges (small, neat, muted) ---------- */
.badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .85rem; }
.badge {
  font-family: var(--font-sans);
  font-size: .68rem; font-weight: 600;
  padding: .22rem .55rem;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--border-soft);
}
.badge.age     { background: rgba(111, 127, 85, 0.10); color: var(--olive); border-color: rgba(111,127,85,.25); }
.badge.topic   { background: rgba(185, 154, 91, 0.10); color: var(--gold-dark); border-color: rgba(185,154,91,.30); }
.badge.time    { background: transparent; color: var(--muted); border-color: transparent; padding-left: 0; letter-spacing: .04em; text-transform: none; font-weight: 500; }

.badge.type-article    { color: var(--forest);   border-color: rgba(18,60,52,.25); }
.badge.type-video      { color: var(--clay);     border-color: rgba(168,111,76,.30); }
.badge.type-worksheet  { color: var(--gold-dark);border-color: rgba(185,154,91,.30); }
.badge.type-checklist  { color: var(--olive);    border-color: rgba(111,127,85,.30); }
.badge.type-lesson     { color: #2f5b78;         border-color: rgba(47,91,120,.28); }

.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--border-faint); }

/* ---------- Roadmap strip ---------- */
.roadmap-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 760px) { .roadmap-strip { grid-template-columns: repeat(2, 1fr); } }
.stage-tile {
  background: #FBF7EE;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  transition: border-color .2s, background .2s, transform .2s;
}
.stage-tile:hover { border-color: var(--gold-soft); background: var(--ivory); transform: translateY(-2px); }
.stage-tile .num {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600;
  color: var(--gold-dark); letter-spacing: -0.02em;
}
.stage-tile .label { color: var(--forest); font-weight: 600; font-size: .95rem; }
.stage-tile .desc { font-size: .82rem; color: var(--muted); }

/* ---------- Category icon cards ---------- */
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: .85rem;
  background: #FBF7EE;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.cat-card:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.cat-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--border-soft);
  display: grid; place-items: center;
  color: var(--forest);
}
.cat-icon svg { width: 22px; height: 22px; stroke: var(--forest); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cat-card span { font-weight: 600; color: var(--forest); font-size: .92rem; }

/* ---------- Filters ---------- */
.filters {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: end;
  background: #FBF7EE; padding: 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--border-soft); margin-bottom: 2rem;
}
.filters label { font-size: .72rem; color: var(--muted); font-weight: 600; display: block; margin-bottom: .35rem; letter-spacing: .08em; text-transform: uppercase; }
.filters .field { flex: 1 1 180px; }
.filters select, .filters input {
  width: 100%; padding: .6rem .75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft); background: var(--ivory);
  font: inherit; color: var(--ink); font-size: .94rem;
}
.filters select:focus, .filters input:focus { border-color: var(--gold); outline: none; }
.filter-empty { text-align: center; padding: 3rem; color: var(--muted); }

/* ---------- Mission band ---------- */
.mission {
  background: var(--forest);
  color: var(--ivory);
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
}
.mission::before, .mission::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 40px; height: 1px; background: var(--gold);
}
.mission::before { top: 2rem; }
.mission::after { bottom: 2rem; }
.mission h2 { color: var(--ivory); font-weight: 500; }
.mission p { color: rgba(248, 243, 234, 0.85); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

/* ---------- Tabs / panels ---------- */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; justify-content: center; }
.tab-btn {
  padding: .6rem 1.2rem; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border-soft);
  font-family: var(--font-sans); font-weight: 500; font-size: .92rem;
  cursor: pointer; color: var(--ink); transition: all .2s;
}
.tab-btn:hover { border-color: var(--gold); color: var(--forest); }
.tab-btn.active { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.stage-block { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 820px) { .stage-block { grid-template-columns: 1fr; } }
.stage-panel {
  background: #FBF7EE; border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.75rem;
}
.stage-panel h3 {
  display: flex; align-items: center; gap: .5rem;
  color: var(--forest); border-bottom: 1px solid var(--border-faint);
  padding-bottom: .65rem; margin-bottom: .85rem;
}
.stage-panel ul { padding-left: 1.1rem; margin: 0; }
.stage-panel li { margin-bottom: .5rem; color: var(--muted-strong); }

/* ---------- Note / disclaimer ---------- */
.disclaimer {
  border-left: 3px solid var(--gold);
  background: rgba(185, 154, 91, 0.08);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
}
.disclaimer strong {
  color: var(--forest); display: block; margin-bottom: .35rem;
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
}
.disclaimer p { color: var(--muted-strong); margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer {
  background: var(--forest-deep);
  color: #C7C2B5;
  padding: 4rem 1.5rem 1.5rem;
  margin-top: 5rem;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 3rem;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }
footer .brand { color: var(--ivory); }
footer h4 {
  color: var(--gold); font-family: var(--font-sans);
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 1rem;
}
footer a { color: #C7C2B5; }
footer a:hover { color: var(--gold); }
footer p { color: #9A968A; font-size: .92rem; }
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 3rem auto 0; padding-top: 1.5rem;
  text-align: center; font-size: .82rem; color: #7E7B72;
  max-width: var(--max);
}

/* ---------- Page header ---------- */
.page-head {
  background: var(--parchment);
  background-image:
    radial-gradient(circle at 1.5px 1.5px, rgba(185, 154, 91, 0.08) 1px, transparent 1.5px);
  background-size: 28px 28px;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-faint);
}
.page-head h1 { color: var(--forest); margin-bottom: .75rem; }
.page-head p { color: var(--muted-strong); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Utility ---------- */
.prose { max-width: var(--max-prose); margin: 0 auto; }
.text-muted { color: var(--muted); }
.text-gold  { color: var(--gold-dark); }

/* ---------- Print ---------- */
@media print {
  .nav, .geo-divider, footer, .filters, .hero-cta { display: none !important; }
  body { background: white; color: black; }
}

/* ============================================================
   Family Flow — site-wide IA components
   ============================================================ */

/* Page purpose statement — sits just under page hero */
.rr-purpose {
  background: var(--ivory);
  border-bottom: 1px solid var(--border-faint);
  padding: 1.5rem 1.25rem;
}
.rr-purpose .rr-purpose-inner {
  max-width: 880px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 1rem;
  font-family: var(--font-serif); font-style: italic;
  color: var(--forest); font-size: 1.05rem; line-height: 1.55;
}
.rr-purpose .rr-purpose-mark {
  flex: 0 0 auto; width: 6px; align-self: stretch;
  background: linear-gradient(to bottom, var(--gold), transparent);
  border-radius: 3px;
}

/* "Where this fits" subtle box */
.rr-fit {
  max-width: 880px; margin: 1.5rem auto 0; padding: 1rem 1.25rem;
  background: rgba(185,154,91,.06);
  border: 1px solid var(--border-faint);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  color: var(--muted-strong); font-size: .95rem;
}
.rr-fit .rr-fit-label {
  display: block; font-family: var(--font-serif); color: var(--forest);
  font-weight: 600; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .35rem;
}

/* Family Flow — premium four-step strip */
.rr-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 980px) { .rr-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rr-flow { grid-template-columns: 1fr; } }
.rr-flow-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-faint);
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.rr-flow-card::before {
  content: ""; position: absolute; top: 0; left: 1.25rem; right: 1.25rem;
  height: 2px; background: var(--gold); border-radius: 2px;
  opacity: .5; transition: opacity .2s;
}
.rr-flow-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-soft);
  box-shadow: 0 8px 24px rgba(18,60,52,.08);
}
.rr-flow-card:hover::before { opacity: 1; }
.rr-flow-num {
  font-family: var(--font-serif); font-size: .78rem; letter-spacing: .14em;
  color: var(--gold-dark); text-transform: uppercase; font-weight: 600;
}
.rr-flow-card h3 {
  font-family: var(--font-serif); color: var(--forest);
  font-size: 1.15rem; margin: 0;
}
.rr-flow-card p {
  color: var(--muted-strong); font-size: .94rem; margin: 0; flex: 1;
}
.rr-flow-q {
  font-style: italic; color: var(--muted); font-size: .88rem;
  border-left: 2px solid var(--border-soft); padding-left: .65rem; margin: 0;
}
.rr-flow-card .btn { margin-top: .75rem; align-self: flex-start; }

/* Choose Your Path — homepage intent cards */
.rr-paths { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .rr-paths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rr-paths { grid-template-columns: 1fr; } }
.rr-path-card {
  background: var(--ivory);
  border: 1px solid var(--border-faint);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rr-path-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-soft);
  box-shadow: 0 8px 22px rgba(18,60,52,.07);
}
.rr-path-card h3 {
  font-family: var(--font-serif); color: var(--forest);
  font-size: 1.1rem; margin: 0;
}
.rr-path-card p { color: var(--muted-strong); font-size: .94rem; margin: 0; flex: 1; }
.rr-path-card .btn { align-self: flex-start; margin-top: .65rem; }

/* "Where to go next" — compact bottom block */
.rr-next {
  background: var(--parchment);
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
  padding: 2.5rem 1.25rem;
}
.rr-next-inner { max-width: 1080px; margin: 0 auto; }
.rr-next-head {
  text-align: center; margin-bottom: 1.5rem;
}
.rr-next-head .eyebrow {
  font-size: .72rem; letter-spacing: .18em; color: var(--gold-dark);
  text-transform: uppercase; font-weight: 600;
}
.rr-next-head h2 {
  font-family: var(--font-serif); color: var(--forest);
  font-size: 1.6rem; margin: .35rem 0 0;
}
.rr-next-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 760px) { .rr-next-grid { grid-template-columns: 1fr; } }
.rr-next-card {
  background: #fff; border: 1px solid var(--border-faint);
  border-radius: 10px; padding: 1.1rem 1.15rem;
  display: flex; flex-direction: column; gap: .35rem;
  transition: border-color .2s, transform .2s;
}
.rr-next-card:hover {
  border-color: var(--gold); transform: translateY(-1px);
}
.rr-next-card .lbl {
  font-size: .72rem; letter-spacing: .14em; color: var(--gold-dark);
  text-transform: uppercase; font-weight: 600;
}
.rr-next-card h4 {
  font-family: var(--font-serif); color: var(--forest);
  font-size: 1.05rem; margin: .1rem 0 .15rem;
}
.rr-next-card p {
  color: var(--muted-strong); font-size: .88rem; margin: 0 0 .55rem;
}
.rr-next-card a.arrow {
  margin-top: auto; color: var(--forest); font-weight: 600; font-size: .9rem;
}
.rr-next-card a.arrow:hover { color: var(--gold-dark); }

/* Section eyebrow used in flow */
.rr-section-eyebrow {
  display: inline-block; font-family: var(--font-sans);
  font-size: .72rem; letter-spacing: .18em; color: var(--gold-dark);
  text-transform: uppercase; font-weight: 600; margin-bottom: .5rem;
}

/* ============================================================
   Part Final — "You are here" + Journeys + Practice + Rootling links
   ============================================================ */

/* "You are here" subtle pill — sits at top of major pages */
.rr-here {
  max-width: 1080px; margin: -.5rem auto 0; padding: 0 1.25rem;
  display: flex; justify-content: flex-end;
}
.rr-here-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(18,60,52,.05);
  border: 1px solid var(--border-faint);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .78rem; color: var(--muted-strong);
  font-family: var(--font-sans);
}
.rr-here-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.rr-here-pill strong {
  color: var(--forest); font-weight: 600; font-family: var(--font-serif);
}

/* Common Parent Journeys — homepage cards */
.rr-journeys {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 980px) { .rr-journeys { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rr-journeys { grid-template-columns: 1fr; } }
.rr-journey {
  background: #fff;
  border: 1px solid var(--border-faint);
  border-radius: 12px;
  padding: 1.25rem 1.2rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rr-journey:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(18,60,52,.07);
}
.rr-journey .rr-jnum {
  font-family: var(--font-serif); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-dark); font-weight: 600;
}
.rr-journey h3 {
  font-family: var(--font-serif); color: var(--forest);
  font-size: 1.08rem; margin: 0;
}
.rr-journey .rr-jpath {
  display: flex; flex-wrap: wrap; gap: .3rem; align-items: center;
  margin-top: .4rem;
}
.rr-journey .rr-jstep {
  background: rgba(185,154,91,.08);
  border: 1px solid var(--border-faint);
  color: var(--muted-strong);
  font-size: .78rem; padding: .25rem .55rem; border-radius: 6px;
}
.rr-journey .rr-jarrow {
  color: var(--gold-dark); font-size: .85rem;
}

/* "Now Put It Into Practice" — inside guide reader */
.rr-practice {
  background: linear-gradient(180deg, rgba(185,154,91,.05), transparent);
  border: 1px solid var(--border-faint);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  margin: 1.5rem 0;
}
.rr-practice h3 {
  font-family: var(--font-serif); color: var(--forest);
  font-size: 1.15rem; margin: 0 0 .4rem;
}
.rr-practice .rr-practice-intro {
  color: var(--muted-strong); font-size: .94rem; margin: 0 0 1rem;
}
.rr-practice-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
}
@media (max-width: 640px) { .rr-practice-grid { grid-template-columns: 1fr; } }
.rr-practice-item {
  background: #fff; border: 1px solid var(--border-faint);
  border-radius: 8px; padding: .85rem 1rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.rr-practice-item .lbl {
  font-size: .7rem; letter-spacing: .14em; color: var(--gold-dark);
  text-transform: uppercase; font-weight: 600;
}
.rr-practice-item h4 {
  font-family: var(--font-serif); color: var(--forest);
  font-size: .98rem; margin: .1rem 0 .25rem;
}
.rr-practice-item p { font-size: .85rem; color: var(--muted-strong); margin: 0 0 .5rem; }
.rr-practice-item a {
  font-size: .85rem; color: var(--forest); font-weight: 600;
  margin-top: auto; align-self: flex-start;
}
.rr-practice-item a:hover { color: var(--gold-dark); }
.rr-practice-cta {
  margin-top: 1rem; text-align: center;
}

/* Rootling character connections — link strip in each rl-card */
.rl-connect {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px dashed var(--border-soft);
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.rl-connect a {
  font-size: .78rem; padding: .3rem .65rem;
  background: rgba(18,60,52,.05);
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  color: var(--forest); font-weight: 500;
  transition: background .2s, border-color .2s;
}
.rl-connect a:hover {
  background: rgba(185,154,91,.12);
  border-color: var(--gold);
}
.rl-connect a.soon {
  color: var(--muted); font-style: italic; cursor: default;
}

/* "Where these tools fit" small callout — for toolkit */
.rr-toolfit {
  max-width: 880px; margin: 1.5rem auto 0;
  background: rgba(111,127,85,.06);
  border: 1px solid var(--border-faint);
  border-left: 3px solid var(--olive);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--muted-strong); font-size: .95rem;
}
.rr-toolfit strong {
  display: block; color: var(--forest); font-family: var(--font-serif);
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .35rem;
}
