/* ========================================
   Connecting with Christ — Combined Styles
   Peaceful, calming religious site theme
   ======================================== */


/* ========================================
   1. GLOBAL STYLES (from global.css)
   ======================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  /* Colors — soft, serene palette */
  --sky: #6b8fa3;
  --sky-light: #8fb3c9;
  --sky-soft: rgba(107, 143, 163, 0.08);
  --sage: #7a9a7e;
  --sage-soft: rgba(122, 154, 126, 0.1);
  --gold: #c4a35a;
  --gold-soft: rgba(196, 163, 90, 0.1);
  --warm-white: #faf8f5;
  --cream: #f5f1eb;
  --dark: #2c2c2c;
  --dark-deep: #1a1a1a;
  --text: #3d3d3d;
  --text-muted: #666;
  --text-light: #999;
  --border: #e8e4de;
  --bg-white: #ffffff;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --content-width: 720px;
  --site-width: 1140px;
  --gutter: 1.5rem;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 50px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  --transition: 0.25s ease;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
}

a {
  color: var(--sky);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--sage);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.25;
}

/* --- Container --- */
.container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Prose (blog content) --- */
.prose {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.prose h2 {
  font-size: 1.6rem;
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--dark);
}

.prose h3 {
  font-size: 1.3rem;
  margin: var(--space-xl) 0 var(--space-md);
}

.prose p {
  margin-bottom: var(--space-lg);
}

.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose img {
  border-radius: var(--radius-md);
  margin: var(--space-xl) auto;
}

.prose a {
  color: var(--sky);
  text-decoration: underline;
  text-decoration-color: rgba(107, 143, 163, 0.3);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--sky);
}

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: var(--space-lg);
}

.prose li {
  margin-bottom: var(--space-sm);
}

.prose strong {
  color: var(--dark);
  font-weight: 600;
}

.prose em {
  color: var(--text-muted);
}

/* Video embeds */
.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
}

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ========================================
   2. HEADER (from Header.astro)
   ======================================== */

.site-header {
  background: rgba(250, 248, 245, 0.97);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
  border-radius: var(--radius-pill);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover,
.nav a.active {
  color: var(--dark);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: var(--space-lg) var(--gutter);
    gap: var(--space-md);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }
}


/* ========================================
   3. FOOTER (from Footer.astro)
   ======================================== */

.site-footer {
  background: var(--dark-deep);
  padding: var(--space-3xl) 0 var(--space-2xl);
  margin-top: var(--space-3xl);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin-bottom: var(--space-xl);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.footer-verse {
  color: var(--gold);
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  color: #555;
  font-size: 0.8rem;
}


/* ========================================
   4. POST CARD (from PostCard.astro)
   ======================================== */

.post-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--cream);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.04);
}

.post-card-image.rotate-90 img {
  transform: rotate(90deg);
}

.post-card-image.rotate-180 img {
  transform: rotate(180deg);
}

.post-card-image.rotate-270 img {
  transform: rotate(270deg);
}

.post-card:hover .post-card-image.rotate-90 img {
  transform: rotate(90deg) scale(1.04);
}

.post-card:hover .post-card-image.rotate-180 img {
  transform: rotate(180deg) scale(1.04);
}

.post-card:hover .post-card-image.rotate-270 img {
  transform: rotate(270deg) scale(1.04);
}

.post-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky-soft) 0%, var(--sage-soft) 100%);
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  opacity: 0.4;
}

.post-card-body {
  padding: var(--space-lg);
}

.post-card-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.cat-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sky);
  background: var(--sky-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.post-card-author {
  font-weight: 500;
}

.post-card-date {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ========================================
   5. BLOG POST LAYOUT (from BlogPost.astro)
   ======================================== */

.post {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.post-header {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}

.post-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.post-cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky);
  background: var(--sky-soft);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: var(--space-md);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.post-author {
  font-weight: 500;
  color: var(--text-muted);
}

.updated {
  color: var(--text-light);
}

.post-hero {
  margin-bottom: var(--space-2xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-hero img {
  width: 100%;
}

.post-hero.rotate-90 img {
  transform: rotate(90deg);
}

.post-hero.rotate-180 img {
  transform: rotate(180deg);
}

.post-hero.rotate-270 img {
  transform: rotate(270deg);
}

.photo-credit {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 0.35rem;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.post-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.tags-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.tag-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition);
}

.tag-link:hover {
  color: var(--bg-white);
  background: var(--sage);
}

.post-share {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-2xl);
}

.share-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.share-btn {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.share-btn:hover {
  color: var(--sky);
  border-color: var(--sky);
  background: var(--sky-soft);
}

.post-footer {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.back-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--sky);
}


/* ========================================
   6. HOMEPAGE (from index.astro)
   ======================================== */

/* Hero */
.hero {
  position: relative;
  background: #2c3e50;
  padding: var(--space-3xl) 0;
  text-align: center;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero-divider {
  width: 80px;
  border: none;
  border-top: 2px solid var(--gold);
  margin: var(--space-md) auto var(--space-lg);
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Featured */
.featured-section {
  margin-top: calc(-1 * var(--space-xl));
  padding: 0 0 var(--space-xl);
  position: relative;
  z-index: 2;
}

.featured-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  transition: transform var(--transition);
}

.featured-card:hover {
  transform: translateY(-2px);
}

.featured-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  color: inherit;
}

.featured-image {
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.03);
}

.featured-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky-soft) 0%, var(--sage-soft) 100%);
}

.featured-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--gold);
  opacity: 0.3;
}

.featured-body {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.featured-body .featured-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.featured-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.featured-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.featured-read {
  color: var(--sky);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Quick links */
.quick-links {
  padding: var(--space-xl) 0;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.quick-link {
  display: block;
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}

.quick-link:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ql-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.ql-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Posts section (homepage) */
.posts-section {
  padding: var(--space-xl) 0 var(--space-xl);
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* Scripture banner */
.scripture-banner {
  background: var(--dark);
  padding: var(--space-3xl) 0;
  margin-top: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scripture-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(196, 163, 90, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.banner-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto var(--space-md);
  border: none;
  padding: 0;
  background: none;
}

.banner-cite {
  color: var(--gold);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Homepage responsive */
@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-link {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 220px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 250px;
    padding: var(--space-2xl) 0;
  }

  .featured-body {
    padding: var(--space-lg);
  }

  .featured-body .featured-title {
    font-size: 1.3rem;
  }
}


/* ========================================
   7. SECTION LISTING PAGES
      (our-days-are-his/index, prayers/index)
   ======================================== */

.section-hero {
  background: linear-gradient(135deg, #3a4a5c 0%, #4a6741 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
}

/* Prayers section hero override — applied via inline style or body class in PHP */
.section-hero.prayers-hero {
  background: linear-gradient(135deg, #3a4a5c 0%, #5c4a6e 100%);
}

.section-hero .hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.section-hero .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.section-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-style: italic;
  max-width: 460px;
  margin: 0 auto var(--space-md);
  line-height: 1.5;
}

.hero-author {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Listing page posts section */
.section-hero ~ .posts-section {
  padding: var(--space-2xl) 0;
}

.section-hero ~ .posts-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.post-count {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Listing page responsive */
@media (max-width: 600px) {
  .section-hero {
    padding: var(--space-2xl) 0;
  }
}


/* ========================================
   8. TAGS INDEX (from tags/index.astro)
   ======================================== */

.tags-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--gutter);
}

.tags-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.tags-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.tags-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition);
}

.tag-chip:hover {
  color: var(--bg-white);
  background: var(--sage);
}

.tag-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}

.tag-chip:hover .tag-count {
  background: rgba(255, 255, 255, 0.25);
}

.no-tags {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
}


/* ========================================
   9. TAG DETAIL (from tags/[tag].astro)
   ======================================== */

.tag-page {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--gutter) var(--space-3xl);
}

.tag-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.back-to-tags {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.back-to-tags:hover {
  color: var(--sky);
}

.tag-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--dark);
  margin: var(--space-md) 0 var(--space-sm);
}

.tag-label {
  color: var(--sage);
}

.tag-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}


/* ========================================
   10. STATIC PAGES
       (about, contact, life-verses)
   ======================================== */

.page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-header {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--dark);
}


/* ========================================
   11. SEARCH PAGE (from search.astro)
   ======================================== */

.search-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--gutter);
}

.search-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.search-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.search-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-container {
  max-width: 640px;
  margin: 0 auto;
}


/* ========================================
   12. BIBLE READINGS PAGE
       (from bible-readings.astro)
   ======================================== */

.readings-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Invitation block */
.intro-invitation {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.intro-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-xl);
}

.intro-invitation p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  max-width: 620px;
  margin: 0 auto;
}

/* How it works block */
.intro-howto {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.howto-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
}

.intro-howto p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 var(--space-lg);
}

.intro-howto p:last-child {
  margin-bottom: 0;
}

/* About / personal note */
.intro-about {
  border-left: 3px solid var(--sage);
  padding-left: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.intro-about p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

.intro-about a {
  color: var(--sky);
  font-weight: 500;
  font-style: normal;
}

/* Progress bar */
.progress-bar-container {
  margin-bottom: var(--space-xl);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.progress-pct {
  color: var(--sage);
}

.progress-track {
  height: 6px;
  background: var(--cream);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage) 0%, var(--sky) 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.8s ease;
}

/* Week cards */
.weeks-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.week-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.week-card[open] {
  border-color: var(--sky-light);
}

.week-card.current-week {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-soft), 0 2px 8px rgba(196, 163, 90, 0.15);
}

.week-card.past-week:not([open]) {
  opacity: 0.65;
}

.week-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  list-style: none;
  user-select: none;
}

.week-header::-webkit-details-marker {
  display: none;
}

.week-label {
  flex: 1;
}

.current-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.check-icon {
  color: var(--sage);
  font-size: 0.85rem;
  font-weight: 700;
}

.chevron {
  font-size: 0.7rem;
  color: var(--text-light);
  transition: transform 0.2s;
}

.week-card[open] .chevron {
  transform: rotate(180deg);
}

/* Readings table */
.week-body {
  padding: 0 var(--space-lg) var(--space-lg);
}

.readings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.readings-table thead th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding: 0 0 var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.readings-table tbody tr {
  border-bottom: 1px solid rgba(232, 228, 222, 0.5);
}

.readings-table tbody tr:last-child {
  border-bottom: none;
}

.readings-table td {
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 0;
  color: var(--text);
}

.day-col {
  width: 40px;
}

.day-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  width: 40px;
}

.nt-reading {
  font-weight: 500;
}

.ot-reading {
  color: var(--text-muted);
}

/* Reflection note */
.reflection-note {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--sage-soft);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--sage);
  font-style: italic;
}

.reflection-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Footer note */
.footer-note {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-3xl);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

.footer-note a {
  color: var(--sky);
  font-weight: 500;
}

.footer-note p {
  margin: 0 0 var(--space-xs);
}

/* Bible readings responsive */
@media (max-width: 600px) {
  .week-header {
    padding: var(--space-md);
  }

  .week-body {
    padding: 0 var(--space-md) var(--space-md);
  }

  .readings-table {
    font-size: 0.85rem;
  }
}


/* ========================================
   13. PAGEFIND SEARCH UI OVERRIDES
       (global styles from search.astro)
   ======================================== */

:root {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: #6b8fa3;
  --pagefind-ui-text: #2d3436;
  --pagefind-ui-background: #ffffff;
  --pagefind-ui-border: #e8e4df;
  --pagefind-ui-tag: #e8f0e8;
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 12px;
  --pagefind-ui-image-border-radius: 8px;
  --pagefind-ui-image-box-ratio: 3 / 2;
  --pagefind-ui-font: 'Inter', sans-serif;
}

.pagefind-ui__search-input {
  font-size: 1rem !important;
  padding: 0.75rem 1rem !important;
}

.pagefind-ui__result-link {
  font-family: 'Playfair Display', serif !important;
  font-weight: 600 !important;
  color: var(--dark) !important;
}

.pagefind-ui__result-link:hover {
  color: #6b8fa3 !important;
}
