/* ============================================
   Understanding Ramadan - Styles
   Inspired by the Alhambra & Cordoba Mosque
   ============================================ */

:root {
  /* Color palette - warm, grounded, elegant */
  --bg-primary: #FDFAF5;
  --bg-secondary: #F5EDE1;
  --bg-tertiary: #EDE3D3;
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-light: #A8A29E;
  --accent-gold: #C4956A;
  --accent-gold-light: #D4B896;
  --accent-gold-dark: #A67B5B;
  --accent-green: #2D6A4F;
  --accent-green-light: #40916C;
  --accent-green-dark: #1B4332;
  --accent-rose: #C2847A;
  --accent-terracotta: #B07156;
  --border-color: #E7DFD3;
  --shadow-sm: 0 1px 3px rgba(28,25,23,0.04);
  --shadow-md: 0 4px 20px rgba(28,25,23,0.06);
  --shadow-lg: 0 12px 40px rgba(28,25,23,0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-green-dark); }
ul, ol { padding-left: 1.5em; }
::selection { background: var(--accent-gold-light); color: var(--text-primary); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.2em; color: var(--text-secondary); line-height: 1.8; }
.small { font-size: 0.85em; color: var(--text-light); }
.arabic-text {
  font-size: 1.6em;
  direction: rtl;
  font-family: 'Traditional Arabic', 'Amiri', serif;
  color: var(--accent-gold-dark);
  margin: 0.5em 0;
  line-height: 1.8;
}
em { font-family: var(--font-serif); font-style: italic; }
strong { font-weight: 600; }

/* ---- Geometric Pattern (Alhambra-inspired SVG background) ---- */
.geo-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C4956A' stroke-width='0.5' opacity='0.15'%3E%3Cpath d='M0 40 L20 20 L40 40 L20 60Z'/%3E%3Cpath d='M40 40 L60 20 L80 40 L60 60Z'/%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20Z'/%3E%3Cpath d='M60 0 L80 20 L60 40 L40 20Z'/%3E%3Cpath d='M20 40 L40 60 L20 80 L0 60Z'/%3E%3Cpath d='M60 40 L80 60 L60 80 L40 60Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 250, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}
.nav-logo:hover { color: var(--accent-gold-dark); }
.nav-logo-icon { color: var(--accent-gold); }
.nav-logo span {
  display: inline-block;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.35rem;
  padding: 0;
  align-items: center;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
}
.nav-links .nav-cta {
  position: relative;
  color: #fff !important;
  background: var(--accent-gold) !important;
  margin-left: 0.25rem;
}
.nav-links .nav-cta:hover {
  background: var(--accent-gold-dark) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(196,149,106,0.35);
}
.day-nav-links .day-nav-cta {
  position: relative;
}
.nav-pill {
  border: 1px solid rgba(45,106,79,0.28);
  color: var(--accent-green-dark) !important;
  background: rgba(45,106,79,0.08);
}
.nav-pill:hover,
.nav-pill.active {
  border-color: var(--accent-green);
  color: #fff !important;
  background: var(--accent-green);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Progress Bar ---- */
.progress-bar {
  position: fixed;
  top: 72px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-green));
  z-index: 999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #255a42;
  background: radial-gradient(ellipse at center, #3d8265 0%, #2a6048 60%, #1e4332 100%);
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  /* Córdoba Mosque - Repeating horseshoe arches with radiating stripes */
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='100' viewBox='0 0 120 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CclipPath id='arch'%3E%3Cpath d='M10,100 L10,50 A50,50 0 0,1 110,50 L110,100 Z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23arch)'%3E%3C!-- Radiating stripes from arch center --%3E%3Cg fill='none' stroke='%23D4B896' stroke-width='3'%3E%3Cline x1='60' y1='50' x2='60' y2='0'/%3E%3Cline x1='60' y1='50' x2='30' y2='5'/%3E%3Cline x1='60' y1='50' x2='90' y2='5'/%3E%3Cline x1='60' y1='50' x2='10' y2='20'/%3E%3Cline x1='60' y1='50' x2='110' y2='20'/%3E%3Cline x1='60' y1='50' x2='0' y2='40'/%3E%3Cline x1='60' y1='50' x2='120' y2='40'/%3E%3Cline x1='60' y1='50' x2='0' y2='60'/%3E%3Cline x1='60' y1='50' x2='120' y2='60'/%3E%3Cline x1='60' y1='50' x2='5' y2='80'/%3E%3Cline x1='60' y1='50' x2='115' y2='80'/%3E%3Cline x1='60' y1='50' x2='20' y2='100'/%3E%3Cline x1='60' y1='50' x2='100' y2='100'/%3E%3Cline x1='60' y1='50' x2='45' y2='0'/%3E%3Cline x1='60' y1='50' x2='75' y2='0'/%3E%3Cline x1='60' y1='50' x2='20' y2='10'/%3E%3Cline x1='60' y1='50' x2='100' y2='10'/%3E%3C/g%3E%3C/g%3E%3C!-- Arch outline --%3E%3Cpath d='M10,100 L10,50 A50,50 0 0,1 110,50 L110,100' fill='none' stroke='%23D4B896' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 120px 100px;
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 700px;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  margin-bottom: 1.5rem;
}
.hero-title {
  color: #FDFAF5;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #FDFAF5;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent-gold);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(196,149,106,0.3);
}
.hero-cta:hover {
  background: var(--accent-gold-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(196,149,106,0.4);
}
.hero-cta-secondary {
  background: transparent;
  color: #FDFAF5;
  border: 2px solid rgba(253,250,245,0.6);
  box-shadow: none;
}
.hero-cta-secondary:hover {
  background: rgba(253,250,245,0.15);
  border-color: #FDFAF5;
  color: #fff;
}
.hero-dates {
  margin-top: 0;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(253,250,245,0.95);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(196,149,106,0.4);
  border-radius: 999px;
  text-align: center;
  line-height: 1.5;
}
.hero-dates-label { display: block; font-weight: 600; }
.hero-dates-range { display: block; font-size: 0.8em; opacity: 0.9; font-weight: 400; }
.hero-arch {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
}
.hero-arch svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ---- Guide Map ---- */
.guide-map {
  margin-top: -1px;
  padding: 1.15rem 2rem 1.35rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border-color);
}
.guide-map-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
}
.guide-map-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  font-weight: 600;
}
.guide-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.guide-map-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1;
}
.guide-map-links a:hover {
  color: var(--text-primary);
  border-color: rgba(196,149,106,0.5);
  background: #fffdf9;
}

/* ---- Subpage Hero ---- */
.subpage-hero {
  position: relative;
  padding: 7rem 2rem 3.5rem;
  background: linear-gradient(180deg, #3a7a5c 0%, #2f6b50 100%);
  color: #fff;
  overflow: hidden;
}
.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  /* Same Córdoba Mosque pattern as hero-pattern */
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='100' viewBox='0 0 120 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CclipPath id='arch'%3E%3Cpath d='M10,100 L10,50 A50,50 0 0,1 110,50 L110,100 Z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23arch)'%3E%3Cg fill='none' stroke='%23D4B896' stroke-width='3'%3E%3Cline x1='60' y1='50' x2='60' y2='0'/%3E%3Cline x1='60' y1='50' x2='30' y2='5'/%3E%3Cline x1='60' y1='50' x2='90' y2='5'/%3E%3Cline x1='60' y1='50' x2='10' y2='20'/%3E%3Cline x1='60' y1='50' x2='110' y2='20'/%3E%3Cline x1='60' y1='50' x2='0' y2='40'/%3E%3Cline x1='60' y1='50' x2='120' y2='40'/%3E%3Cline x1='60' y1='50' x2='0' y2='60'/%3E%3Cline x1='60' y1='50' x2='120' y2='60'/%3E%3Cline x1='60' y1='50' x2='5' y2='80'/%3E%3Cline x1='60' y1='50' x2='115' y2='80'/%3E%3Cline x1='60' y1='50' x2='20' y2='100'/%3E%3Cline x1='60' y1='50' x2='100' y2='100'/%3E%3Cline x1='60' y1='50' x2='45' y2='0'/%3E%3Cline x1='60' y1='50' x2='75' y2='0'/%3E%3Cline x1='60' y1='50' x2='20' y2='10'/%3E%3Cline x1='60' y1='50' x2='100' y2='10'/%3E%3C/g%3E%3C/g%3E%3Cpath d='M10,100 L10,50 A50,50 0 0,1 110,50 L110,100' fill='none' stroke='%23D4B896' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 120px 100px;
}
.subpage-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.subpage-eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
}
.subpage-title {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 0.9rem;
}
.subpage-intro {
  margin: 0;
  color: rgba(255,255,255,0.9);
  max-width: 740px;
  font-size: 1.08rem;
}
.hero-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.hero-tab {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  transition: all var(--transition);
  text-decoration: none;
}
.hero-tab:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* ---- Page Hub ---- */
.page-hub {
  margin-top: 2rem;
}
.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.25rem;
}
.persona-card {
  text-decoration: none;
}
.persona-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
}
.page-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.page-card:hover {
  border-color: rgba(196,149,106,0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.page-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}
.page-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- Sections ---- */
.section {
  padding: 6rem 2rem;
}
.section-alt {
  background: var(--bg-secondary);
}
.section-container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 3rem;
}
.section-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.section-title {
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  border-radius: 2px;
}

/* ---- Content Layout ---- */
.section-body { display: block; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.col-main { max-width: 680px; }
.col-main-wide { max-width: 800px; }
.col-main-full { max-width: 1100px; }

/* ---- Info Cards ---- */
.info-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.section-alt .info-card {
  background: #fff;
}
.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--accent-green-dark);
}
.info-card p { font-size: 0.95rem; color: var(--text-secondary); }
.info-card ol, .info-card ul {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
}
.info-card li { margin-bottom: 0.4rem; }
.template-card { position: relative; padding-bottom: 2.75rem; }
.copy-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--accent-green-dark);
  background: rgba(45,106,79,0.08);
  border: 1px solid rgba(45,106,79,0.25);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}
.copy-btn:hover {
  background: rgba(45,106,79,0.12);
  border-color: var(--accent-green);
}
.copy-btn.copied {
  color: #fff;
  background: var(--accent-green);
  border-color: var(--accent-green);
}
.highlight-card {
  background: linear-gradient(135deg, var(--accent-green-dark), var(--accent-green));
  border: none;
  color: #fff;
}
.highlight-card h3 { color: var(--accent-gold-light); }
.highlight-card p { color: rgba(255,255,255,0.9); }
.highlight-card .small { color: rgba(255,255,255,0.6); }
.highlight-card .arabic-text { color: var(--accent-gold-light); }

/* ---- Definition Lists ---- */
.definition-list { margin: 0; }
.definition-list dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-top: 0.75rem;
}
.definition-list dt:first-child { margin-top: 0; }
.definition-list dd {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-left: 0;
}

/* ---- Meals Grid ---- */
.meals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.meal-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.section-alt .meal-card { background: #fff; }
.meal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.meal-icon {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}
.meal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.meal-time {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.meal-card p:last-child { font-size: 0.95rem; color: var(--text-secondary); }

/* ---- Styled List ---- */
.styled-list {
  list-style: none;
  padding: 0;
}
.styled-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
}
.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  opacity: 0.6;
}

/* ---- Tips Grid ---- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.tip-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.section-alt .tip-card { background: var(--bg-primary); }
.tip-card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tip-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.tip-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.tip-card p { font-size: 0.95rem; color: var(--text-secondary); }

/* ---- Callout ---- */
.callout {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2rem;
  margin: 2rem 0;
}
.section-alt .callout {
  background: linear-gradient(135deg, #fff, var(--bg-primary));
}
.callout h3 {
  font-size: 1.1rem;
  color: var(--accent-gold-dark);
  margin-bottom: 0.75rem;
}
.callout p { font-size: 0.95rem; color: var(--text-secondary); }

.donate-band {
  position: relative;
  padding: 4.25rem 2rem;
  background-color: #1B4332;
  background: radial-gradient(ellipse at center, #2D6A4F 0%, #1B4332 60%, #0D261C 100%);
  overflow: hidden;
}
.donate-band-pattern {
  opacity: 0.025;
}
.donate-band-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.donate-band-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  margin-bottom: 1rem;
}
.donate-band-title {
  color: #FDFAF5;
  margin-bottom: 1rem;
}
.donate-band-copy {
  font-size: 1.05rem;
  color: rgba(253,250,245,0.92);
  line-height: 1.8;
  margin: 0 auto 1.75rem;
  max-width: 620px;
  text-wrap: balance;
}

/* ---- Body CTA (inline link prompt) ---- */
.body-cta {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(212,184,150,0.12), rgba(212,184,150,0.06));
  border: 1px solid rgba(212,184,150,0.35);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.body-cta a {
  font-weight: 600;
  color: var(--accent-gold-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-gold);
  transition: color var(--transition), border-color var(--transition);
}
.body-cta a:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* ---- Subsection Titles ---- */
.subsection-title {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* ---- Prayer Timeline ---- */
.prayer-timeline {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 2rem;
}
.prayer-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-gold), var(--accent-green), var(--accent-gold));
  border-radius: 2px;
}
.prayer-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}
.prayer-item:last-child { padding-bottom: 0; }
.prayer-dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 3px solid var(--accent-gold);
  border-radius: 50%;
}
.section-alt .prayer-dot { background: var(--bg-secondary); }
.prayer-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}
.prayer-time-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.prayer-info p:last-child { font-size: 0.95rem; color: var(--text-secondary); }

/* ---- Fasting Times ---- */
.fasting-times {
  margin-top: 1.1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(245,237,225,0.3));
  border-radius: var(--radius-lg);
}
.fasting-intro {
  margin-bottom: 0.85rem;
}
.fasting-help {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.fasting-help span {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}
.fasting-help span:first-child {
  color: var(--accent-green-dark);
  border-color: rgba(45,106,79,0.25);
  background: rgba(45,106,79,0.08);
  font-weight: 600;
}
.city-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.15rem;
}
.city-selector label {
  font-weight: 500;
  font-size: 0.95rem;
}
.city-selector select {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}
.city-selector select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(196,149,106,0.15);
}
.fasting-chart {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  min-height: 260px;
  align-items: end;
  padding: 1rem 0.8rem 0.6rem;
  border-radius: 14px;
  background:
    linear-gradient(to top, rgba(196,149,106,0.08) 0%, rgba(196,149,106,0.08) 1px, transparent 1px) 0 100% / 100% 25%,
    linear-gradient(to top, rgba(196,149,106,0.08) 0%, rgba(196,149,106,0.08) 1px, transparent 1px) 0 75% / 100% 25%,
    linear-gradient(to top, rgba(196,149,106,0.08) 0%, rgba(196,149,106,0.08) 1px, transparent 1px) 0 50% / 100% 25%,
    linear-gradient(to top, rgba(196,149,106,0.08) 0%, rgba(196,149,106,0.08) 1px, transparent 1px) 0 25% / 100% 25%,
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(253,250,245,0.6));
  border: 1px solid rgba(196,149,106,0.2);
}
.fasting-chart-layout {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: stretch;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.fasting-y-axis {
  min-height: 260px;
  padding: 1rem 0 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.fasting-y-tick {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1;
}
.fasting-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  cursor: default;
  height: 100%;
}
.fasting-bar-inner {
  width: 100%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #e6c499 0%, #cd9f6f 55%, #bc8755 100%);
  transition: all var(--transition);
  position: relative;
  min-height: 48px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.fasting-bar:hover .fasting-bar-inner {
  background: linear-gradient(180deg, #efcfab 0%, #d0a06d 55%, #b77f4c 100%);
  transform: translateY(-2px);
}
.fasting-bar-label {
  font-size: 0.68rem;
  line-height: 1;
  color: var(--text-light);
  min-height: 0.9rem;
}
.fasting-bar-label-muted {
  opacity: 0;
}
.fasting-bar-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}
.fasting-bar:hover .fasting-bar-tooltip { display: block; }
.fasting-bar-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-primary);
}
.fasting-summary {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.fasting-total-note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.fasting-stat {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}
.fasting-stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}
.fasting-stat-value {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 700px;
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 0;
}
.faq-item summary {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1.25rem 2rem 1.25rem 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-gold);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item summary:hover { color: var(--accent-green-dark); }
.faq-item p {
  padding: 0 0 1.25rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  background: linear-gradient(180deg, #f5f3f0 0%, #ebe8e4 100%);
  color: #5c5a57;
  padding: 1rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(920px, 90vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(196,149,106,0.4) 50%, transparent 100%);
  opacity: 0.8;
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}
.footer-pattern {
  display: none;
}
.footer p { margin-bottom: 0.25rem; font-size: 0.85rem; }
.footer .small { color: #787674; font-size: 0.8rem; }
.footer-cta-text {
  margin: 0 auto 0.5rem;
  max-width: 52ch;
  color: #5c5a57;
}
.footer-cta-btn {
  display: inline-block;
}
.footer-credit { margin-top: 0; margin-bottom: 0; color: #787674; font-size: 0.8rem; }
.footer-credit a { color: var(--accent-gold-dark); text-decoration: none; border-bottom: 1px solid rgba(180,140,90,0.4); transition: color var(--transition), border-color var(--transition); }
.footer-credit a:hover { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .col-main, .col-main-wide, .col-main-full { max-width: 100%; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .meals-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.5rem; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-inner {
    padding: 0 1rem;
    gap: 0.6rem;
  }
  .nav-logo {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.05rem;
  }
  .nav-logo span {
    max-width: 56vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-cta-text {
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
  }
  .footer-cta-btn {
    width: 100%;
    max-width: 320px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 250, 245, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-content { padding: 1.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .guide-map { padding: 1rem 1.25rem 1.15rem; }
  .guide-map-inner { gap: 0.7rem; }
  .guide-map-links { gap: 0.45rem; }

  .section { padding: 3rem 1.25rem; }
  .section-header { margin-bottom: 2rem; }
  .subpage-hero { padding: 6.3rem 1.25rem 3rem; }
  .tips-grid { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; }

  .prayer-timeline { padding-left: 1.5rem; }
  .prayer-item { padding-left: 1.5rem; }

  .fasting-times { padding: 1.1rem; }
  .city-selector { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
  .city-selector select { width: 100%; }
  .fasting-chart {
    gap: 4px;
    min-height: 230px;
    padding: 0.75rem 0.5rem 0.45rem;
  }
  .fasting-chart-layout {
    grid-template-columns: 44px 1fr;
    gap: 0.3rem;
    margin: 1.1rem 0;
  }
  .fasting-y-axis {
    min-height: 230px;
    padding: 0.75rem 0 0.45rem;
  }
  .fasting-y-tick {
    font-size: 0.68rem;
  }
  .fasting-help { gap: 0.4rem; }
  .fasting-help span { font-size: 0.75rem; padding: 0.3rem 0.5rem; }
  .fasting-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fasting-stat-value { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 90vh; }
  h1 { font-size: 2.8rem; }
  .nav-logo span { max-width: 52vw; }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta {
    width: 100%;
    text-align: center;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .tips-grid { gap: 1rem; }
  .tip-card { padding: 1.5rem; }
  .meal-card { padding: 1.5rem; }
  .fasting-summary { grid-template-columns: 1fr; }
}

/* ============================================
   A Day in Ramadan - Horizontal sky experience
   ============================================ */

/* ---- Sky Canvas ---- */
.sky-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sky-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(7,11,30) 0%, rgb(15,21,56) 50%, rgb(26,31,74) 100%);
}
.sky-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  opacity: 0;
  pointer-events: none;
}
.sky-stars {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease;
}
.sky-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: sky-twinkle 4s ease-in-out infinite alternate;
}
@keyframes sky-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.sky-sun {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF8E8 0%, #FFD700 30%, #FFA500 70%, rgba(255,140,0,0) 100%);
  box-shadow: 0 0 60px 20px rgba(255,200,50,0.35), 0 0 120px 50px rgba(255,150,0,0.15);
  opacity: 0;
  will-change: transform, left, top, opacity;
}
.sky-moon {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  overflow: visible;
  opacity: 0;
  will-change: transform, left, top, opacity;
  filter: drop-shadow(0 0 12px rgba(245,230,182,0.35));
}
.sky-moon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #F5E6B6;
  clip-path: path('M21,0 A21,21,0,1,1,21,42 A15,21,0,1,0,21,0 Z');
}
.sky-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  color: #0a0d18;
  fill: currentColor;
}

/* ---- Day page - full viewport, no scroll on body ---- */
.day-page {
  position: relative;
  overflow: hidden;
  overscroll-behavior-x: none;
  height: 100vh;
  height: 100dvh;
}
.day-page .progress-bar { display: none; }

/* Nav - transparent over sky */
.day-page .nav {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,0.06);
}
.day-page .nav.scrolled {
  background: rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(255,255,255,0.1);
}
.day-page .nav-logo { color: rgba(255,255,255,0.9); }
.day-page .nav-logo:hover { color: #fff; }
.day-page .nav-logo-icon { color: var(--accent-gold-light); }
.day-page .nav-toggle span { background: rgba(255,255,255,0.9); }
.day-nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.day-nav-links a {
  display: inline-block;
  flex: 0 0 auto;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.day-nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.day-nav-links .day-nav-active {
  color: #fff;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.12);
}
.day-nav-links .day-nav-cta {
  color: #fff;
  background: var(--accent-gold);
  border: 1px solid transparent;
  margin-left: 0.25rem;
}
.day-nav-links .day-nav-cta:hover {
  background: var(--accent-gold-dark);
  color: #fff;
  box-shadow: 0 2px 12px rgba(196,149,106,0.35);
}

/* ---- Horizontal Scroll Container ---- */
.day-scroll-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}
.day-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.day-scroll::-webkit-scrollbar { display: none; }

.day-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
  pointer-events: auto;
}
.day-nav-arrow:hover:not(:disabled) {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.day-nav-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.day-nav-arrow-prev { left: 1.5rem; }
.day-nav-arrow-next { right: 1.5rem; }

@media (max-width: 768px) {
  .day-nav-arrow {
    width: 36px;
    height: 36px;
    opacity: 0.7;
  }
  .day-nav-arrow-prev { left: 1rem; }
  .day-nav-arrow-next { right: 1rem; }
  .day-nav-arrow svg { width: 20px; height: 20px; }
}

/* ---- Each Slide ---- */
.day-slide {
  width: 100%;
  min-width: 100%;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.day-slide-inner {
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}
.day-slide:not(.day-slide-hero) .day-slide-inner {
  max-width: 680px;
}

/* ---- Hero Slide ---- */
.day-slide-hero .day-slide-inner {
  max-width: 680px;
}
.day-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  margin-bottom: 1rem;
}
.day-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  line-height: 1.1;
}
.day-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.day-hero-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0;
}
.day-hero-controls label { font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.day-hero-controls select {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.day-hero-controls select option { color: var(--text-primary); background: #fff; }

.day-scroll-hint {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  animation: hint-pulse 2.5s ease-in-out infinite;
}
.day-scroll-hint svg { color: rgba(255,255,255,0.45); }
@keyframes hint-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(6px); }
}

/* ---- Milestone Slides ---- */
.day-slide-time {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  letter-spacing: -0.01em;
}
.day-slide-time-prayer {
  color: #fff;
}

.day-slide-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  text-align: left;
}
.day-slide-highlight .day-slide-card {
  background: rgba(255,248,235,0.92);
  border-color: rgba(235,155,103,0.35);
}

/* Card kicker (phase + prayer label) */
.day-card-kicker {
  margin: -0.15rem 0 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(28,25,23,0.08);
}
.day-card-kicker-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.day-card-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}
.day-card-phase {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(45,106,79,0.85);
  line-height: 1.1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-card-prayer {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(196, 149, 106, 0.12);
  border: 1px solid rgba(196, 149, 106, 0.22);
  color: rgba(166, 123, 91, 0.95);
  flex-shrink: 0;
}

.day-card-nav {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.day-card-nav-btn {
  appearance: none;
  border: 1px solid rgba(28,25,23,0.12);
  background: rgba(255,255,255,0.65);
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(28,25,23,0.7);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.day-card-nav-btn:hover {
  border-color: rgba(45,106,79,0.28);
  background: rgba(45,106,79,0.08);
  color: rgba(27,67,50,0.9);
  transform: translateY(-1px);
}

.day-card-nav-btn.active {
  border-color: rgba(45,106,79,0.35);
  background: rgba(45,106,79,0.12);
  color: rgba(27,67,50,0.95);
}

.day-slide-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.day-slide-card .day-card-kicker ~ .day-slide-title {
  display: none;
}
.day-slide-story {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

.day-night-sections {
  display: grid;
  gap: 0.8rem;
}

.day-night-item {
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(28,25,23,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.45);
}

.day-night-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.day-night-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.day-inline-time {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(196,149,106,0.22);
  background: rgba(196,149,106,0.1);
  color: rgba(166,123,91,0.95);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---- Footer Slide ---- */
.day-slide-footer .day-slide-inner {
  max-width: 480px;
}
.day-slide-footer .day-hero-summary {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
  background: none;
  border: none;
  border-radius: 0;
  width: min(100%, 400px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
}
.day-footer-msg {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  line-height: 1.3;
}
.day-footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.day-hero-summary {
  margin: 1.25rem 0 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.day-footer-cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.day-footer-cta:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-2px);
}
.day-footer-ctas .day-footer-cta { margin-bottom: 0; }
.day-footer-share {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 2.5rem 0 0;
}

/* ---- Timeline Bar ---- */
.day-dots {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100vw - 2rem));
  z-index: 100;
  padding: 0.55rem 0.8rem 0.55rem;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.day-tl-time {
  display: none;
}

/* Track container */
.tl-track {
  position: relative;
  width: 100%;
  height: 64px;
  padding: 0;
  box-sizing: border-box;
}

.tl-markers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--tl-count), minmax(0, 1fr));
}

/* Background rail */
.tl-rail {
  position: absolute;
  left: var(--tl-edge-inset, 5%);
  right: var(--tl-edge-inset, 5%);
  top: 50%;
  transform: translateY(-50%);
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(165,180,210,0.45), rgba(150,164,193,0.4));
}

/* Progress fill */
.tl-fill {
  position: absolute;
  left: var(--tl-edge-inset, 5%);
  top: 50%;
  transform: translateY(-50%);
  height: 5px;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(180,200,235,0.7) 0%,
    rgba(247,215,154,0.85) 40%,
    rgba(235,155,103,0.8) 70%,
    rgba(160,180,220,0.65) 100%
  );
  transition: width 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}

.tl-indicator {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.95), rgba(247,215,154,0.85) 65%, rgba(247,215,154,0.3) 100%);
  box-shadow: 0 0 22px 6px rgba(247,215,154,0.26);
  transition: left 0.45s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.25s ease;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
}

/* Milestone markers */
.tl-marker {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: center;
  background: none;
  border: none;
  padding: 0.15rem 0.08rem 0.15rem;
  cursor: pointer;
  z-index: 3;
}
.tl-edge-left { justify-items: center; }
.tl-edge-right { justify-items: center; }

.tl-marker-label {
  align-self: end;
  margin-bottom: 0.22rem;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.015em;
  color: rgba(255,255,255,0.68);
  white-space: nowrap;
  transition: color 0.25s ease;
}

/* Dot on the rail */
.tl-marker-dot {
  display: block;
  width: 11px;
  height: 11px;
  align-self: center;
  border-radius: 50%;
  background: rgba(226,234,246,0.78);
  border: 2px solid rgba(180,194,220,0.55);
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.tl-marker:hover .tl-marker-dot {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.85);
  transform: scale(1.12);
}

.tl-marker.passed .tl-marker-dot {
  background: rgba(247,215,154,0.9);
  border-color: rgba(247,215,154,0.78);
}

.tl-marker.active .tl-marker-dot {
  width: 14px;
  height: 14px;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 12px 3px rgba(255,255,255,0.5), 0 0 18px 4px rgba(247,215,154,0.26);
}

.tl-marker-time {
  align-self: start;
  margin-top: 0.22rem;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: rgba(230,236,246,0.65);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.tl-marker.passed .tl-marker-label,
.tl-marker.passed .tl-marker-time {
  color: rgba(247,215,154,0.78);
}

.tl-marker.active .tl-marker-label {
  color: rgba(255,255,255,0.98);
}

.tl-marker.active .tl-marker-time {
  color: rgba(255,255,255,0.92);
}

/* ---- Day Page Responsive ---- */
@media (max-width: 768px) {
  .sky-sun { width: 48px; height: 48px; }
  .sky-moon { width: 32px; height: 32px; }
  .sky-moon::before { clip-path: path('M16,0 A16,16,0,1,1,16,32 A11.5,16,0,1,0,16,0 Z'); }
  .sky-silhouette { height: 50px; }

  .day-page .nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    gap: 0.55rem;
    height: 72px;
  }
  .day-page .nav-logo {
    font-size: 1.15rem;
    min-width: 0;
    flex: 1 1 auto;
  }
  .day-page .nav-logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48vw;
  }
  .day-page .day-nav-toggle {
    display: flex;
    flex: 0 0 auto;
  }
  .day-page .day-nav-links {
    display: none !important;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.7rem;
    margin: 0;
    background: rgba(5,16,40,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }
  .day-page .day-nav-links::-webkit-scrollbar { display: none; }
  .day-page .day-nav-links.open { display: flex !important; }
  .day-page .day-nav-links li { width: 100%; }
  .day-page .day-nav-links a {
    display: block;
    width: 100%;
    font-size: 0.86rem;
    padding: 0.68rem 0.75rem;
    border-radius: 10px;
    white-space: normal;
  }
  .day-slide-inner { padding: 1.25rem 1.25rem 5rem; }
  .day-slide-hero .day-hero-eyebrow { margin-bottom: 1.35rem; }
  .day-slide-hero .day-hero-title { margin-bottom: 1.35rem; }
  .day-slide-hero .day-hero-subtitle { margin-bottom: 2rem; }
  .day-slide-hero .day-hero-controls { gap: 1rem 1.25rem; margin-top: 0.25rem; }
  .day-slide-hero .day-scroll-hint { margin-top: 2.5rem; }
  .day-slide-footer .day-footer-msg { margin-bottom: 2.25rem; }
  .day-slide-footer .day-hero-summary { margin-top: 0.75rem; margin-bottom: 1.75rem; }
  .day-slide-footer .day-footer-cta { margin-bottom: 1.75rem; }
  .day-slide-footer .day-footer-share { margin-top: 2rem; }
  .day-slide-card {
    padding: 1.2rem 1.1rem;
    border-radius: 16px;
    max-height: calc(100dvh - 270px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    overscroll-behavior: contain;
  }
  .day-slide-card::-webkit-scrollbar { width: 0; height: 0; }
  .day-slide-time { font-size: 1.8rem; margin-bottom: 1rem; }
  .day-slide-story { font-size: 0.95rem; line-height: 1.62; }
  .day-night-sections { gap: 0.65rem; }
  .day-night-item { padding: 0.62rem 0.7rem; }
  .day-night-item h3 { font-size: 0.88rem; }
  .day-night-item p { font-size: 0.9rem; line-height: 1.55; }
  .day-inline-time { font-size: 0.68rem; padding: 0.14rem 0.45rem; }
  .day-card-kicker { padding-bottom: 0.65rem; }
  .day-card-phase { font-size: 0.68rem; }
  .day-card-prayer { font-size: 0.74rem; padding: 0.22rem 0.5rem; }
  .day-card-nav { margin-top: 0.6rem; gap: 0.3rem; }
  .day-card-nav-btn { font-size: 0.74rem; padding: 0.28rem 0.55rem; }

  .day-dots {
    bottom: 1rem;
    bottom: calc(env(safe-area-inset-bottom) + 1rem);
    padding: 0.48rem 0.6rem 0.5rem;
    width: calc(100vw - 1.5rem);
  }
  .tl-track { height: 56px; }
  .tl-marker-label {
    font-size: 0.54rem;
    width: 100%;
    max-width: 100%;
    padding: 0 0.12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }
  .tl-marker-time { font-size: 0.54rem; }
  .tl-marker-dot { width: 9px; height: 9px; }
  .tl-marker.active .tl-marker-dot { width: 12px; height: 12px; }
  .tl-indicator { width: 15px; height: 15px; }

  .day-scroll-hint { margin-top: 2rem; }
}

@media (max-width: 480px) {
  .day-page .nav-inner {
    padding: 0 0.55rem;
    gap: 0.45rem;
    height: 72px;
  }
  .day-page .nav-logo {
    font-size: 1.15rem;
  }
  .day-page .nav-logo span {
    max-width: 56vw;
  }
  .day-page .day-nav-links {
    top: 72px;
    max-height: calc(100dvh - 70px);
  }
  .day-page .day-nav-links a {
    font-size: 0.84rem;
    padding: 0.64rem 0.7rem;
  }
  .day-hero-title { font-size: 2.5rem; }
  .day-hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.48;
  }
  .day-hero-subtitle br { display: none; }
  .day-slide-hero .day-hero-eyebrow { margin-bottom: 1.5rem; }
  .day-slide-hero .day-hero-title { margin-bottom: 1.5rem; }
  .day-slide-hero .day-hero-subtitle { margin-bottom: 2.5rem; }
  .day-slide-hero .day-hero-controls { gap: 1rem 1.25rem; margin-top: 0.5rem; }
  .day-slide-hero .day-scroll-hint { margin-top: 3rem; }
  .day-slide-inner { padding: 1rem 0.9rem 4.75rem; }
  .day-slide-card {
    padding: 1rem 0.9rem;
    max-height: calc(100dvh - 245px);
  }
  .day-slide-story { font-size: 0.9rem; line-height: 1.56; }
  .day-night-sections { gap: 0.55rem; }
  .day-night-item { padding: 0.55rem 0.6rem; border-radius: 10px; }
  .day-night-item h3 { font-size: 0.8rem; }
  .day-night-item p { font-size: 0.84rem; line-height: 1.5; }
  .day-inline-time { font-size: 0.64rem; padding: 0.12rem 0.4rem; }
  .day-card-kicker { padding-bottom: 0.6rem; }
  .day-card-phase { font-size: 0.66rem; }
  .day-card-prayer { font-size: 0.72rem; padding: 0.2rem 0.48rem; }
  .day-card-nav { margin-top: 0.55rem; gap: 0.28rem; }
  .day-card-nav-btn { font-size: 0.72rem; padding: 0.26rem 0.52rem; }
  .day-slide-footer .day-hero-summary {
    font-size: 0.82rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
  .day-slide-footer .day-footer-msg { margin-bottom: 2.5rem; }
  .day-slide-footer .day-footer-cta { margin-bottom: 2rem; }
  .day-slide-footer .day-footer-share { margin-top: 2.5rem; }
  .day-footer-ctas { width: 100%; }
  .day-footer-cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  .day-dots {
    width: calc(100vw - 1rem);
    padding: 0.42rem 0.52rem 0.44rem;
    bottom: 0.9rem;
    bottom: calc(env(safe-area-inset-bottom) + 0.9rem);
  }
  .tl-track { height: 50px; }
  .tl-marker-label {
    font-size: 0.48rem;
    letter-spacing: 0.01em;
    padding: 0 0.08rem;
  }
  .tl-marker-time { font-size: 0.48rem; }
  .tl-marker-dot { width: 8px; height: 8px; }
  .tl-marker.active .tl-marker-dot { width: 10px; height: 10px; }
  .tl-indicator { width: 12px; height: 12px; box-shadow: 0 0 16px 4px rgba(247,215,154,0.22); }
}

/* ---- Print Styles ---- */
@media print {
  .nav, .progress-bar, .hero-arch, .hero-pattern, .footer-pattern, .sky-canvas { display: none; }
  .hero { min-height: auto; padding: 3rem 2rem; }
  .section { padding: 2rem 0; break-inside: avoid; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .info-card, .tip-card, .meal-card, .callout { break-inside: avoid; }
}
