/*
Theme Name:  Rhizome 2026
Description: Child theme for the Rhizome Fellowship 2026 open call landing page.
Template:    nhtbl-sage
Version:     1.0.0
Text Domain: rhizome-2026
*/

/*
 * Rhizome Design System
 * Shared styles for all Rhizome pages on culturehack.io
 * Loaded automatically on any page using the "Rhizome" page template.
 *
 * TABLE OF CONTENTS
 * 1. Tokens & Reset
 * 2. Typography
 * 3. Layout Utilities
 * 4. Hero
 * 5. Stats Bar
 * 6. Video Embed
 * 7. Pathway Cards
 * 8. Fellow Cards  (fellows directory)
 * 9. Case Study Layout
 * 10. Phase Blocks
 * 11. Expect Grid
 * 12. Timeline
 * 13. Funding Note
 * 14. Parallax Banners
 * 15. CTA Section
 * 16. Animations
 */


/* ─────────────────────────────────────────────
   1. TOKENS & RESET
───────────────────────────────────────────── */
#rhizome {
  --dark:       #292826;
  --dark-alt:   #1f1f1d;
  --sea:        #6BD4EA;
  --eggshell:   #F5F0E8;
  --white:      #ffffff;
  --sea-dim:    rgba(107,212,234,0.12);
  --sea-border: rgba(107,212,234,0.2);

  --font-sans:  'IBM Plex Sans',  sans-serif;
  --font-serif: 'IBM Plex Serif', serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* re-expose WP spacing tokens */
  --sp-20: 0.44rem;
  --sp-30: 0.67rem;
  --sp-40: 1rem;
  --sp-50: 1.5rem;
  --sp-60: 2.25rem;
  --sp-70: 3.38rem;
  --sp-80: 5.06rem;

  font-family: var(--font-sans);
  background:  var(--dark);
  color:       var(--white);
  overflow-x:  hidden;
}

#rhizome *, #rhizome *::before, #rhizome *::after {
  box-sizing: border-box;
}

/* ─────────────────────────────────────────────
   2. TYPOGRAPHY
───────────────────────────────────────────── */
#rhizome h1,
#rhizome h2,
#rhizome h3,
#rhizome h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

#rhizome .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 10px;
  display: block;
}

#rhizome .body-text {
  font-size: 1.05rem;
  color: var(--eggshell);
  line-height: 1.8;
  opacity: 0.85;
}

#rhizome .section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}

/* ─────────────────────────────────────────────
   3. LAYOUT UTILITIES
───────────────────────────────────────────── */
#rhizome .container {
  padding: 72px 24px;
  max-width: 900px;
  margin: 0 auto;
}

#rhizome .container--wide {
  padding: 72px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

#rhizome .dark-band {
  background: var(--dark-alt);
}

#rhizome .checklist {
  list-style: none;
  padding-left: 0;
}
#rhizome .checklist li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.75;
}
#rhizome .checklist li::before {
  content: '✔  ';
  color: var(--sea);
}


/* ─────────────────────────────────────────────
   4. HERO
───────────────────────────────────────────── */
#rhizome .hero {
  min-height: 88vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
}

#rhizome .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  transform: scale(1.05);
}

#rhizome .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(41,40,38,0.55) 0%,
    rgba(41,40,38,0.70) 60%,
    rgba(41,40,38,0.95) 100%
  );
}

#rhizome .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#rhizome .hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 20px;
  background: rgba(41,40,38,0.5);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(107,212,234,0.3);
  backdrop-filter: blur(8px);
}

#rhizome .hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--white);
  max-width: 760px;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
#rhizome .hero h1 span { color: var(--sea); }

#rhizome .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245,240,232,0.9);
  max-width: 620px;
  line-height: 1.7;
  margin: 20px 0 16px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

#rhizome .hero-deadline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--sea);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

/* Compact hero variant — for inner pages (fellows, case studies) */
#rhizome .hero--compact {
  min-height: 50vh;
}


/* ─────────────────────────────────────────────
   5. STATS BAR
───────────────────────────────────────────── */
#rhizome .stats-video-block {
  background: var(--sea-dim);
  border-top: 1px solid var(--sea-border);
  border-bottom: 1px solid var(--sea-border);
}

#rhizome .stats-bar {
  display: flex;
  justify-content: center;
  padding: 32px 24px 0;
  flex-wrap: wrap;
}

#rhizome .stat-item {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(107,212,234,0.18);
}
#rhizome .stat-item:last-child { border-right: none; }

#rhizome .stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--sea);
  display: block;
  line-height: 1;
}

#rhizome .stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--eggshell);
  margin-top: 6px;
  display: block;
  opacity: 0.75;
}

#rhizome .stat-sublabel {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.5);
  margin-top: 2px;
  display: block;
}


/* ─────────────────────────────────────────────
   6. VIDEO EMBED
───────────────────────────────────────────── */
#rhizome .video-wrapper {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 0 24px 32px;
}

#rhizome .video-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  opacity: 0.7;
  margin-bottom: 10px;
  text-align: center;
}

#rhizome .video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(107,212,234,0.15);
}

#rhizome .video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}


/* ─────────────────────────────────────────────
   7. PATHWAY CARDS
───────────────────────────────────────────── */
#rhizome .pathways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

#rhizome .pathway-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(107,212,234,0.14);
  border-radius: 14px;
  padding: 28px 22px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}
#rhizome .pathway-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--sea));
  border-radius: 14px 14px 0 0;
}
#rhizome .pathway-card:hover {
  transform: translateY(-5px);
  border-color: rgba(107,212,234,0.35);
  background: rgba(107,212,234,0.05);
}
#rhizome .pathway-card .pathway-icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
#rhizome .pathway-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
#rhizome .pathway-card p  { font-size: 0.84rem; color: rgba(245,240,232,0.65); line-height: 1.6; }

/* Pathway accent colors — add class to .pathway-card */
#rhizome .pc-justice    { --card-accent: #7ED4B0; }
#rhizome .pc-economies  { --card-accent: #F0B85A; }
#rhizome .pc-land       { --card-accent: #6BD4EA; }
#rhizome .pc-bioregion  { --card-accent: #A8D85A; }
#rhizome .pc-healing    { --card-accent: #D48AEA; }


/* ─────────────────────────────────────────────
   8. FELLOW CARDS
   Usage: <div class="fellows-grid"> <div class="fellow-card"> ...
───────────────────────────────────────────── */
#rhizome .fellows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

#rhizome .fellow-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(107,212,234,0.12);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}
#rhizome .fellow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107,212,234,0.3);
}

#rhizome .fellow-card .fellow-pathway {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sea);
  background: rgba(107,212,234,0.1);
  border: 1px solid rgba(107,212,234,0.2);
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 14px;
}

#rhizome .fellow-card .fellow-names {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}

#rhizome .fellow-card .fellow-country {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(107,212,234,0.7);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

#rhizome .fellow-card .fellow-desc {
  font-size: 0.84rem;
  color: rgba(245,240,232,0.6);
  line-height: 1.6;
}

#rhizome .fellow-card .fellow-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--sea);
  text-decoration: none;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
#rhizome .fellow-card .fellow-link:hover { opacity: 1; }


/* ─────────────────────────────────────────────
   9. CASE STUDY LAYOUT
   Usage: <div class="case-study"> ...
───────────────────────────────────────────── */
#rhizome .case-study-header {
  border-left: 3px solid var(--sea);
  padding-left: 24px;
  margin-bottom: 48px;
}

#rhizome .case-study-header .cs-pathway {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 10px;
  display: block;
}

#rhizome .case-study-header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 8px;
}

#rhizome .case-study-header .cs-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(107,212,234,0.7);
  margin-top: 8px;
}

#rhizome .case-study-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 700px) {
  #rhizome .case-study-body { grid-template-columns: 1fr; }
}

#rhizome .case-study-body .cs-content p {
  font-size: 1rem;
  color: rgba(245,240,232,0.8);
  line-height: 1.85;
  margin-bottom: 20px;
}

#rhizome .case-study-body .cs-sidebar {
  background: var(--sea-dim);
  border: 1px solid var(--sea-border);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 24px;
}

#rhizome .cs-sidebar .cs-sidebar-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 14px;
  display: block;
}

#rhizome .cs-sidebar ul {
  list-style: none;
  padding: 0;
}

#rhizome .cs-sidebar ul li {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.7);
  padding: 8px 0;
  border-bottom: 1px solid rgba(107,212,234,0.1);
  line-height: 1.5;
}
#rhizome .cs-sidebar ul li:last-child { border-bottom: none; }
#rhizome .cs-sidebar ul li strong { color: var(--white); display: block; font-size: 0.78rem; }


/* ─────────────────────────────────────────────
   10. PHASE BLOCKS
───────────────────────────────────────────── */
#rhizome .phase-block {
  border-left: 2px solid rgba(107,212,234,0.3);
  padding-left: 24px;
  margin-bottom: 40px;
}

#rhizome .phase-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  background: rgba(107,212,234,0.1);
  border: 1px solid rgba(107,212,234,0.25);
  border-radius: 4px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 10px;
}

#rhizome .phase-block h3 { font-size: 1.2rem; margin-bottom: 6px; }

#rhizome .phase-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(107,212,234,0.7);
  margin-bottom: 14px;
  display: block;
}

#rhizome .phase-block p,
#rhizome .phase-block ul {
  font-size: 0.95rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.75;
}
#rhizome .phase-block ul { padding-left: 18px; }
#rhizome .phase-block ul li { margin-bottom: 6px; }


/* ─────────────────────────────────────────────
   11. EXPECT GRID
───────────────────────────────────────────── */
#rhizome .expect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

#rhizome .expect-item {
  background: var(--sea-dim);
  border-radius: 12px;
  padding: 20px 18px;
  border: 1px solid rgba(107,212,234,0.1);
}
#rhizome .expect-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--sea);
  margin-bottom: 6px;
  font-family: var(--font-sans);
}
#rhizome .expect-item span {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.5;
}


/* ─────────────────────────────────────────────
   12. TIMELINE
───────────────────────────────────────────── */
#rhizome .timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 32px;
}
#rhizome .timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--sea), transparent);
}

#rhizome .tl-item { position: relative; margin-bottom: 28px; padding-left: 20px; }

#rhizome .tl-dot {
  position: absolute;
  left: -28px; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--sea);
  transition: background 0.2s;
}
#rhizome .tl-item:hover .tl-dot { background: var(--sea); }

#rhizome .tl-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--sea);
  margin-bottom: 4px;
}
#rhizome .tl-title { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 2px; font-family: var(--font-sans); }
#rhizome .tl-desc  { font-size: 0.85rem; color: rgba(245,240,232,0.6); }


/* ─────────────────────────────────────────────
   13. FUNDING NOTE
───────────────────────────────────────────── */
#rhizome .funding-note {
  background: rgba(107,212,234,0.06);
  border: 1px solid rgba(107,212,234,0.18);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 32px;
  font-size: 0.9rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.75;
}
#rhizome .funding-note strong { color: var(--white); }
#rhizome .visa-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.6;
  font-style: italic;
}


/* ─────────────────────────────────────────────
   14. PARALLAX BANNERS
───────────────────────────────────────────── */
#rhizome .parallax-banner {
  height: 42vw;
  max-height: 420px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
#rhizome .parallax-banner .pb-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
#rhizome .parallax-banner .pb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(41,40,38,0.55) 0%,
    rgba(41,40,38,0.2) 50%,
    rgba(41,40,38,0.55) 100%
  );
}
#rhizome .parallax-banner .pb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
#rhizome .parallax-banner .pb-label span {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
  text-transform: uppercase;
  border-bottom: 2px solid var(--sea);
  padding-bottom: 6px;
}


/* ─────────────────────────────────────────────
   15. CTA SECTION
───────────────────────────────────────────── */
#rhizome .cta-btn {
  display: inline-block;
  background: var(--white);
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 52px;
  border-radius: 12px;
  text-decoration: none;
  animation: rhizome-pulse 2.8s ease-in-out infinite;
  transition: background 0.15s, transform 0.15s;
}
#rhizome .cta-btn:hover {
  background: var(--sea);
  animation: none;
  transform: scale(1.03);
}

#rhizome .cta-section {
  text-align: center;
  padding: 80px 24px 90px;
  background: linear-gradient(180deg, transparent 0%, rgba(107,212,234,0.05) 100%);
}

#rhizome .cta-links {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
#rhizome .cta-link-secondary {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(107,212,234,0.3);
}
#rhizome .cta-link-secondary:hover { color: var(--sea); }

#rhizome .cta-divider { color: rgba(245,240,232,0.2); }

#rhizome .cta-tagline {
  margin-top: 36px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sea);
  letter-spacing: 0.06em;
}

/* scroll hint */
#rhizome .scroll-hint {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0.5;
}
#rhizome .scroll-hint span {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--eggshell);
}
#rhizome .scroll-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid var(--eggshell);
  border-bottom: 2px solid var(--eggshell);
  transform: rotate(45deg);
  animation: rhizome-bounce 1.6s ease-in-out infinite;
}


/* ─────────────────────────────────────────────
   16. ANIMATIONS
───────────────────────────────────────────── */
@keyframes rhizome-pulse {
  0%,100% { box-shadow: 0 0 0 0   rgba(107,212,234,0.0);  }
  50%      { box-shadow: 0 0 0 14px rgba(107,212,234,0.22); }
}
@keyframes rhizome-bounce {
  0%,100% { transform: rotate(45deg) translateY(0);  }
  50%      { transform: rotate(45deg) translateY(5px); }
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 600px) {
  #rhizome .stats-bar { flex-direction: column; }
  #rhizome .stat-item { border-right: none; border-bottom: 1px solid rgba(107,212,234,0.18); padding: 16px; }
  #rhizome .stat-item:last-child { border-bottom: none; }
  /* iOS Safari: disable fixed parallax (not supported) */
  #rhizome .hero-bg,
  #rhizome .parallax-banner .pb-bg { background-attachment: scroll; }
}

/*
Remove white border — only on pages using the Rhizome template
 */

.page-template-page-rhizome main.main {
  padding-left: 0;
  padding-right: 0;
}