/*
 * CrossAIHub · Atlas · For Families page · v1.0
 * ----------------------------------------------
 * Standalone stylesheet for /atlas/for-families/.
 * Palette + typography inherited from CrossAIHub House Bible.
 * Zero global CSS changes; zero shared-file modifications.
 *
 * Peace be to this house.
 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #FDFBF5;
  color: #2B2418;
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.atlas-family__skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.atlas-family__skip:focus {
  left: 8px;
  top: 8px;
  background: #6B1F2E;
  color: #FDFBF5;
  padding: 8px 12px;
  z-index: 100;
  font-family: 'Inter', system-ui, sans-serif;
  text-decoration: none;
  border-radius: 4px;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */

.atlas-family__header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #E7DFC7;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.atlas-family__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #6B1F2E;
  width: fit-content;
}
.atlas-family__wordmark-cross { width: 28px; height: 28px; }
.atlas-family__wordmark-text { display: flex; flex-direction: column; line-height: 1.1; }
.atlas-family__wordmark-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; font-weight: 500; }
.atlas-family__wordmark-tag { font-family: 'Inter', system-ui, sans-serif; font-size: 0.7rem; color: #3C2E1B; letter-spacing: 0.04em; }

.atlas-family__breadcrumb {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #3C2E1B;
}
.atlas-family__breadcrumb a {
  color: #6B1F2E;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.atlas-family__breadcrumb a:hover,
.atlas-family__breadcrumb a:focus-visible { border-bottom-color: #B48748; }

/* ─── Main container ──────────────────────────────────────────────────────── */

.atlas-family__main {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.atlas-family__hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid #E7DFC7;
  margin-bottom: 3rem;
}

.atlas-family__kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B48748;
  margin: 0 0 0.75rem;
}

.atlas-family__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: #6B1F2E;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.atlas-family__lede {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #3C2E1B;
  margin: 0 auto 2rem;
  max-width: 640px;
  line-height: 1.55;
}

.atlas-family__verse {
  margin: 2rem auto 0;
  max-width: 620px;
  padding: 1.25rem 1.5rem;
  background: #F6EFDC;
  border-left: 3px solid #B48748;
  border-radius: 0 8px 8px 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #2B2418;
  line-height: 1.55;
  text-align: left;
}
.atlas-family__verse cite {
  display: block;
  margin-top: 0.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 500;
  color: #B48748;
  letter-spacing: 0.04em;
}

/* ─── Section title (consistent across all sections) ─────────────────────── */

.atlas-family__section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: #6B1F2E;
  margin: 0 0 1rem;
  line-height: 1.25;
}

/* ─── New Here? (3-step first-visit path) ─────────────────────────────────── */

.atlas-family__new-here {
  margin: 0 auto 3rem;
  padding: 2rem;
  background: #F6EFDC;
  border: 1px solid #B48748;
  border-radius: 12px;
}

.atlas-family__new-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #B48748;
  margin: 0 0 0.5rem;
}

.atlas-family__new-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #6B1F2E;
  margin: 0 0 1.5rem;
  line-height: 1.25;
}

.atlas-family__new-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.atlas-family__new-steps li {
  padding: 1.15rem 1.25rem;
  background: #FDFBF5;
  border: 1px solid #E7DFC7;
  border-radius: 8px;
}

.atlas-family__new-step-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B48748;
  margin: 0 0 0.5rem;
}

.atlas-family__new-step-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: #2B2418;
  margin: 0;
  line-height: 1.55;
}

.atlas-family__new-step-body a {
  color: #6B1F2E;
  text-decoration: none;
  border-bottom: 1px solid #B48748;
}
.atlas-family__new-step-body a:hover,
.atlas-family__new-step-body a:focus-visible {
  border-bottom-width: 2px;
}

.atlas-family__new-note {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #3C2E1B;
  text-align: center;
}

/* ─── Print button (v1.2 addition) ────────────────────────────────────────── */

.atlas-family__print-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
}

.atlas-family__print-btn {
  padding: 0.5rem 1.1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #6B1F2E;
  background: #FDFBF5;
  border: 1px solid #6B1F2E;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.atlas-family__print-btn:hover,
.atlas-family__print-btn:focus-visible {
  background: #6B1F2E;
  color: #FDFBF5;
}
.atlas-family__print-btn:focus-visible {
  outline: 2px solid #B48748;
  outline-offset: 2px;
}

.atlas-family__print-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #3C2E1B;
}

/* ─── Intro ───────────────────────────────────────────────────────────────── */

.atlas-family__intro {
  margin-bottom: 3rem;
}
.atlas-family__intro p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

/* ─── How-to grid ─────────────────────────────────────────────────────────── */

.atlas-family__how {
  margin-bottom: 3rem;
}

.atlas-family__how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.atlas-family__how-card {
  padding: 1.25rem 1.5rem;
  background: #F6EFDC;
  border: 1px solid #E7DFC7;
  border-radius: 8px;
}

.atlas-family__how-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B48748;
  margin: 0 0 0.5rem;
}

.atlas-family__how-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: #2B2418;
  margin: 0;
  line-height: 1.55;
}

/* ─── Plan ────────────────────────────────────────────────────────────────── */

.atlas-family__plan {
  margin-bottom: 3rem;
}

.atlas-family__plan > p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: #3C2E1B;
}

.atlas-family__plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: week;
}

.atlas-family__plan-list li {
  padding: 1.25rem 1.5rem;
  background: #FDFBF5;
  border: 1px solid #E7DFC7;
  border-radius: 8px;
  margin-bottom: 1rem;
  position: relative;
}

.atlas-family__plan-week {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B48748;
  margin: 0 0 0.5rem;
}

.atlas-family__plan-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #6B1F2E;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.atlas-family__plan-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #B48748;
  padding-bottom: 1px;
}
.atlas-family__plan-title a:hover,
.atlas-family__plan-title a:focus-visible {
  border-bottom-width: 2px;
}

.atlas-family__plan-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: #2B2418;
  margin: 0;
  line-height: 1.55;
}

/* ─── Curated cards grid ──────────────────────────────────────────────────── */

.atlas-family__curated {
  margin-bottom: 3rem;
}

.atlas-family__curated > p {
  margin: 0 0 1.5rem;
  color: #3C2E1B;
  font-size: 1.05rem;
}

.atlas-family__curated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.atlas-family__card {
  padding: 1.25rem 1.5rem;
  background: #FDFBF5;
  border: 1px solid #E7DFC7;
  border-radius: 8px;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.atlas-family__card:hover {
  box-shadow: 0 2px 10px rgba(43, 36, 24, 0.08);
  transform: translateY(-1px);
}

.atlas-family__card-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B48748;
  margin: 0 0 0.5rem;
}

.atlas-family__card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #6B1F2E;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.atlas-family__card-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.atlas-family__card-title a:hover,
.atlas-family__card-title a:focus-visible {
  border-bottom-color: #B48748;
}

.atlas-family__card-verse {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #3C2E1B;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.atlas-family__card-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: #2B2418;
  margin: 0;
  line-height: 1.5;
}

/* ─── Promise list ────────────────────────────────────────────────────────── */

.atlas-family__promise {
  margin-bottom: 3rem;
  padding: 2rem;
  background: #F6EFDC;
  border: 1px solid #E7DFC7;
  border-radius: 8px;
}

.atlas-family__promise-list {
  margin: 0;
  padding-left: 1.25rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2B2418;
}
.atlas-family__promise-list li {
  margin-bottom: 0.5rem;
}

/* ─── Pathways ────────────────────────────────────────────────────────────── */

.atlas-family__pathways {
  margin-top: 3rem;
  padding: 2rem;
  background: #F6EFDC;
  border: 1px solid #E7DFC7;
  border-radius: 12px;
  text-align: center;
}

.atlas-family__pathways-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B48748;
  margin: 0 0 0.5rem;
}

.atlas-family__pathways-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #6B1F2E;
  margin: 0 0 1.5rem;
}

.atlas-family__pathways-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.atlas-family__pathway {
  padding: 0.6rem 1.25rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6B1F2E;
  background: #FDFBF5;
  border: 1px solid #6B1F2E;
  border-radius: 999px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}
.atlas-family__pathway:hover,
.atlas-family__pathway:focus-visible {
  background: #6B1F2E;
  color: #FDFBF5;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.atlas-family__footer {
  border-top: 1px solid #E7DFC7;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #F6EFDC;
  margin-top: 3rem;
}

.atlas-family__footer-blessing {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #6B1F2E;
  margin: 0 0 0.5rem;
}

.atlas-family__footer-note {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  color: #3C2E1B;
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
}

.atlas-family__footer-nav {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  margin: 0;
}
.atlas-family__footer-nav a {
  color: #6B1F2E;
  text-decoration: none;
}
.atlas-family__footer-nav a:hover,
.atlas-family__footer-nav a:focus-visible {
  border-bottom: 1px solid #B48748;
}

/* ─── Reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .atlas-family__card,
  .atlas-family__pathway,
  .atlas-family__plan-title a,
  .atlas-family__print-btn {
    transition: none;
  }
  .atlas-family__card:hover {
    transform: none;
  }
}

/* ─── Mobile (≤ 640px) ────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .atlas-family__title { font-size: 1.85rem; }
  .atlas-family__lede { font-size: 1.05rem; }
  .atlas-family__section-title { font-size: 1.4rem; }
  .atlas-family__hero { padding: 2rem 0 2rem; }
  .atlas-family__main { padding: 1.5rem 1rem 3rem; }
  .atlas-family__verse { padding: 1rem 1.25rem; font-size: 1rem; }
  .atlas-family__promise, .atlas-family__pathways { padding: 1.5rem 1rem; }
  .atlas-family__card { padding: 1rem 1.25rem; }
  .atlas-family__new-here { padding: 1.5rem 1rem; }
  .atlas-family__new-title { font-size: 1.3rem; }
  .atlas-family__print-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ─── Print ───────────────────────────────────────────────────────────────── */

@media print {
  .atlas-family__header,
  .atlas-family__pathways,
  .atlas-family__footer-nav,
  .atlas-family__skip,
  .atlas-family__print-btn,
  .atlas-family__print-note {
    display: none;
  }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .atlas-family__card,
  .atlas-family__how-card,
  .atlas-family__plan-list li,
  .atlas-family__verse,
  .atlas-family__promise,
  .atlas-family__pathways,
  .atlas-family__new-here,
  .atlas-family__new-steps li {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .atlas-family__title, .atlas-family__section-title, .atlas-family__new-title { color: black; }
  .atlas-family__kicker, .atlas-family__new-kicker { color: #333; }
}
