/* ============================================================
   home.css — Phase 8 (page-specific layout; no global rules)
   ============================================================ */

/* Header clearance fallback handled in _header.css or here if needed */

/* Page wrapper spacing */
.home-feature { margin-top: 2rem; margin-bottom: 3rem; }

/* Two-column wrapper (columns defined via media query in _responsive.css) */
.home-columns { display: grid; gap: 2rem; }

/* Columns */
.home-column { display: flex; flex-direction: column; justify-content: flex-start; }

/* Hero image */
.home-hero img { width: 100%; height: auto; display: block; border-radius: 10px; margin-bottom: .75rem; }

/* Let prose fill the column width (don’t clamp to 70ch here) */
.home-columns .prose { max-width: none; margin-inline: 0; }

/* Normalize first-child spacing */
.home-column > *:first-child { margin-top: 0; }
.home-devo h2 { margin-top: 0; }

/* --- Restoration Ridge teaser (2-across strip) --- */
.home-rr { margin: 2rem 0 3rem; text-align: center; }
.rr-heading { margin-bottom: .25rem; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.rr-blurb { margin: 0 auto 1rem; opacity: .85; font-size: .95rem; }

.rr-row { display: flex; justify-content: center; align-items: stretch; gap: .75rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
.rr-img { flex: 0 0 50%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background:#111; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.rr-img img { width: 100%; height: 100%; object-fit: cover; display:block; transition: transform .3s ease; }
.rr-img:hover img { transform: scale(1.05); }

/* Optional full-bleed on very large displays (enable by adding .fullbleed to the section) */
@media (min-width: 80rem) {
  .home-rr.fullbleed .rr-row {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: clamp(16px, 3vw, 40px);
    gap: clamp(.75rem, 1.2vw, 1.25rem);
  }
  .home-rr.fullbleed .rr-img { aspect-ratio: 21/9; }
}

/* Fade-up reveal */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; will-change: opacity, transform; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ——— Mobile: show more of “A Word From My Heart” above the fold ——— */
@media (max-width: 600px) {
  /* Trim top spacing on hero + columns */
  .page-home .home-hero { margin-block: 0.5rem 0; }
  .page-home .home-columns { margin-block-start: 0.5rem; }

  /* Images: less vertical drag */
  .page-home .home-column img { margin-block: 0.5rem; }

  /* Paragraph rhythm: tighter but still readable */
  .page-home .home-column.article .prose > p { margin-block: 0.6rem; }
  .page-home .home-column.article .prose h2,
  .page-home .home-column.article .prose h3 { margin-block: 0.75rem 0.5rem; }
}

/* Optional: clamp hero height on very small screens */
@media (max-width: 600px) {
  .page-home .home-hero img {
    max-height: 36vh;
    width: 100%;
    object-fit: cover;
  }
}

/* Wrapper (aside) should not cap or shrink the inner card */
.page-home aside.home-devo {
  max-width: none;
  width: 100%;
  padding: 0;
  align-self: start;
}

/* —— Home: stable desktop split —— */
@media (min-width: 1200px) {
  .page-home .home-columns {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(420px, 1.4fr);
    gap: var(--gap-xl, 2rem);
  }
}

/* —— Home: devotional card fills its column (no hacks) —— */
.page-home #home-devo > section.home-devo {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-top: 0;   /* kill any global section margin */
  padding: 0;      /* kill extra top padding */
}

.page-home #home-devo .devotional-thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: .35rem 0 .5rem;
}

.page-home #home-devo h2 { margin: 0 0 .5rem; }
.page-home #home-devo h3 { margin: .25rem 0 .35rem; }

/* Desktop: keep the Home hero tasteful in height, still full-width */
@media (min-width: 1024px) {
  .page-home .home-hero img {
    max-height: 48vh;      /* try 44–52vh to taste */
    width: 100%;
    object-fit: cover;
  }
}
/* === Ultra-tight, invisible-panel accordion toggle === */

#page-home .home-accordion {
  margin: 0.1rem 0 0.1rem;
  border: none;
  background: transparent;
}

/* TINY "more" button */
#page-home .home-accordion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  background: rgba(234, 223, 199, 0.10);   /* faint parchment tint */
  border: 1px solid rgba(234, 223, 199, 0.22);
  border-radius: 5px;
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}

#page-home .home-accordion-toggle:hover,
#page-home .home-accordion-toggle:focus-visible {
  background: rgba(234, 223, 199, 0.16);
  border-color: rgba(234, 223, 199, 0.32);
  outline: none;
}

/* Tiny +/– icon */
#page-home .home-accordion-icon {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.65;
  line-height: 1;
}

/* === INVISIBLE PANEL: no background, no box, just text === */
#page-home .home-accordion-panel {
  padding: 0.45rem 0 0.45rem 0;  /* tiny vertical padding */
  margin: 0.15rem 0 0.15rem 0;   /* minimal spacing */
  
  background: transparent;       /* <-- FIXED */
  border: none;                  /* <-- FIXED */
  
  font-size: 1rem;               /* normal text */
  line-height: 1.6;              /* matches prose */
  color: var(--text);            /* ensure consistent color */
}

.rr-blurb a.rr-inline {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.rr-blurb a.rr-inline:hover {
  color: var(--parchment);
}
.home-rr .rr-link {
  margin-top: -0.3rem;
  margin-bottom: 0.6rem;
}
.home-rr .rr-link {
  text-align: center;
}

.home-rr .rr-link a {
  color: var(--parchment);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.home-rr .rr-link a:hover {
  color: var(--gold);
}
/* === Home vertical rhythm cleanup ========================= */

/* Keep the three main bands evenly separated */
.page-home .home-feature {
  margin-bottom: 3rem;
}

.page-home .home-rr {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Featured nav grid (Inkwell / Board / Chat) */
.page-home .newsgrid {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

/* Center the Ridge link under the photos (if not already) */
.page-home .home-rr .rr-link {
  text-align: center;
}
/* === Home: "New Here? Start Here" === */

.home-start-here {
  margin: 32px 0 40px;
}

.start-here-inner {
  border-radius: 18px;
  padding: 1.75rem 1.75rem 2rem;
  background: #111013;
  border: 1px solid rgba(234, 223, 199, 0.2); /* parchment edge */
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.6);
}

.start-here-title {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--parchment, #eadfc7);
}

.start-here-tagline {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: rgba(234, 223, 199, 0.85);
}

.start-here-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .start-here-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.start-card {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(234, 223, 199, 0.22);
  background: radial-gradient(circle at top left, rgba(234, 223, 199, 0.08), #090909);
  text-decoration: none;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

.start-card:hover,
.start-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
  border-color: rgba(234, 223, 199, 0.45);
}

.start-card-title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  color: var(--parchment, #eadfc7);
}

.start-card-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(234, 223, 199, 0.8);
}
.home-feature .home-columns {
  align-items: flex-start;
}


