/**
 * Shrichakra Theme - UI Components & Interactive Elements
 */

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.6rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-maroon);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 30, 63, 0.35);
  color: var(--color-text-inverse);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-gold);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
  transform: translateY(-2px);
  color: var(--color-text-inverse);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-secondary-dark);
  border-color: var(--color-secondary);
}
.btn-outline-gold:hover {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: var(--text-lg);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background-color: #20BA56;
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Badges & Tags
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-gold {
  background-color: rgba(197, 138, 42, 0.15);
  color: var(--color-secondary-dark);
  border: 1px solid var(--color-border-gold);
}

.badge-maroon {
  background-color: rgba(139, 30, 63, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(139, 30, 63, 0.2);
}

.badge-green {
  background-color: rgba(21, 128, 61, 0.12);
  color: var(--color-accent-green);
  border: 1px solid rgba(21, 128, 61, 0.25);
}

/* ==========================================================================
   Cards (General, Pooja, Seva, Event, Astrology)
   ========================================================================== */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-gold);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background-color: var(--color-bg-alt);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}
.card-title a:hover {
  color: var(--color-secondary-dark);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  margin-bottom: var(--space-3);
}

.card-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  flex: 1;
}

.card-footer {
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Pooja Card */
.pooja-card {
  position: relative;
  border-top: 4px solid var(--color-secondary);
}
.pooja-schedule {
  display: inline-block;
  font-weight: 700;
  color: var(--color-secondary-dark);
  margin-bottom: var(--space-2);
}

/* Seva Tier Card */
.seva-card {
  text-align: center;
  border: 1px solid var(--color-border-gold);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
}
.seva-amount {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  font-weight: 700;
  margin: var(--space-3) 0 var(--space-1);
}
.seva-period {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.seva-features {
  text-align: left;
  margin: var(--space-4) 0;
}
.seva-features li {
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.seva-features li::before {
  content: '✓';
  color: var(--color-accent-green);
  font-weight: bold;
}

/* Mahayaga Progress Component */
.progress-card {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-text-inverse);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-border-gold);
  text-align: center;
}
.progress-card h3 {
  color: var(--color-accent-light);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}
.progress-counter-display {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
.counter-current {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent-light);
}
.counter-target {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.75);
}
.progress-bar-wrap {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-4);
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent-light) 100%);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Astrology Rashi Grid Card */
.rashi-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.rashi-card:hover, .rashi-card.active {
  border-color: var(--color-secondary);
  background: var(--color-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
.rashi-icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
  display: block;
}
.rashi-sanskrit {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--text-lg);
}
.rashi-english {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  text-transform: uppercase;
}

/* Devotional Audio Player */
.audio-player-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.audio-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.btn-play-pause {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--transition-fast);
}
.btn-play-pause:hover {
  background: var(--color-primary-light);
}
.audio-timeline {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.audio-progress-slider {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.audio-time {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  min-width: 40px;
}

/* Multi-Step Parayana Form */
.parayana-form-wrap {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-md);
}
.form-step {
  display: none;
}
.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
.form-step-indicators {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  position: relative;
}
.form-step-indicators::before {
  content: '';
  position: absolute;
  top: 50%;
  /* Inset by half a bubble so the connector does not stick out past the
     first and last steps */
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}
.step-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  position: relative;
  z-index: 2;
}
.step-bubble.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.step-bubble.completed {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
.form-group {
  margin-bottom: var(--space-4);
  text-align: left;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-text-main);
  font-size: var(--text-sm);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
}
.form-control:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 138, 42, 0.15);
}

/* Accordion (FAQ) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item.active {
  border-color: var(--color-border-gold);
}
.faq-question {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
}
.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
  color: var(--color-secondary);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 var(--space-5);
}
.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 var(--space-5) var(--space-5);
  transition: max-height 0.3s ease-in-out;
}

/* Floating WhatsApp Bot Trigger */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: var(--z-modal);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

/* WhatsApp Bot Modal / Chat Box */
.whatsapp-chat-box {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-gold);
  z-index: var(--z-modal);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.whatsapp-chat-box.open {
  display: flex;
  animation: slideUp 0.3s ease;
}
.chat-header {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-body {
  padding: var(--space-4);
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-bg);
}
.chat-bubble-bot {
  background: #fff;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-secondary);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
}
.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chat-option-btn {
  background: #fff;
  border: 1px solid var(--color-secondary);
  color: var(--color-primary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: all var(--transition-fast);
}
.chat-option-btn:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* ==========================================================================
   Temple Updates - bottom popup
   Replaces the old header bell dropdown. Anchored bottom-left so it never
   fights the WhatsApp bubble on the right.
   ========================================================================== */
.site-notifications {
  position: fixed;
  left: 16px;
  bottom: 24px;
  z-index: var(--z-modal);
}

.notif-launcher {
  position: relative;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast),
    opacity var(--transition-fast), visibility var(--transition-fast);
}
.notif-launcher:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
.site-notifications.open .notif-launcher {
  opacity: 0;
  visibility: hidden;
}

.notification-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}

.notif-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition-normal), transform var(--transition-normal),
    visibility var(--transition-normal);
}
.site-notifications.open .notif-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
}
.notif-head-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.notif-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--color-text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.notif-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-primary);
}

.notif-body {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.notif-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-xs);
  transition: background var(--transition-fast);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: var(--color-bg);
}
.notif-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--color-primary);
}
.notif-item span {
  color: var(--color-text-muted);
  line-height: 1.5;
}

.notif-foot {
  padding: var(--space-2) var(--space-4);
  text-align: center;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.notif-foot a {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-secondary-dark);
}
.notif-foot a:hover {
  color: var(--color-primary);
}

/* The panel is tall enough to sit under the back-to-top control, so that one
   steps aside while updates are open. */
.notif-open .back-to-top {
  opacity: 0;
  visibility: hidden;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Design Reference Layout Components
   ========================================================================== */
.quick-nav-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-4);
  padding: var(--space-6) 0;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}
@media (max-width: 992px) {
  .quick-nav-strip {
    grid-template-columns: repeat(4, 1fr);
    margin-top: var(--space-4);
  }
}
@media (max-width: 576px) {
  .quick-nav-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }
}
.quick-nav-item {
  background: #FFF9F2;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(103, 14, 40, 0.06);
  transition: all var(--transition-fast);
}
.quick-nav-item:hover {
  background: #fff;
  transform: translateY(-4px);
  border-color: var(--color-secondary);
  box-shadow: 0 8px 20px rgba(103, 14, 40, 0.12);
}
.quick-nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFF2DF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.quick-nav-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #333;
}

/* Two-column Portal Layout */
.portal-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-8);
}
@media (max-width: 992px) {
  .portal-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Golden Highlight Card */
.golden-info-card {
  background: linear-gradient(135deg, #FFFDF8 0%, #FFF5E6 100%);
  border: 1px solid #E8D3B0;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  box-shadow: 0 4px 12px rgba(103, 14, 40, 0.04);
}
.golden-info-icon {
  font-size: 2.2rem;
  color: var(--color-secondary);
  flex-shrink: 0;
}
.golden-info-content {
  flex-grow: 1;
}
.golden-info-title {
  font-size: var(--text-base);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 2px;
}
.golden-info-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

/* Pre-footer 3 Column Bar */
.prefooter-strip {
  background: #FFF8EE;
  border-top: 1px solid #ECDCC8;
  border-bottom: 1px solid #ECDCC8;
  padding: var(--space-10) 0;
}
.prefooter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-8);
}
@media (max-width: 992px) {
  .prefooter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #4E0A1E 100%);
  color: rgba(255, 255, 255, 0.85);
  border-top: 3px solid var(--color-secondary);
  padding: var(--space-10) 0 var(--space-6);
  margin-top: auto;
}
.site-footer h3 {
  color: var(--color-accent-light);
}
.site-footer p,
.site-footer li,
.site-footer span {
  color: rgba(255, 255, 255, 0.85);
}
.site-footer a:not(.btn) {
  color: rgba(255, 255, 255, 0.85);
}
.site-footer a:not(.btn):hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}
.site-footer .btn:hover {
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-8);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border-gold);
  flex-shrink: 0;
}

.footer-text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-4);
}

.footer-address {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Utility spacing helpers used by legal / long-form pages */
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }


/* ==========================================================================
   Site Search
   The utility-bar magnifier toggles this panel; navigation.js flips [hidden].
   ========================================================================== */
.site-search-panel {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border-gold);
    padding: var(--space-4) 0;
}

.search-form {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
}

.search-form .search-field {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-main);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.search-form .search-field:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 1px;
    border-color: var(--color-secondary);
}

.search-form .search-submit {
    flex: 0 0 auto;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-family: var(--font-title);
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-5);
}

.comments-area .comment-list {
    list-style: none;
    margin: 0 0 var(--space-8);
    padding: 0;
}

.comments-area .comment-list .children {
    list-style: none;
    margin: 0;
    padding-left: var(--space-6);
}

.comments-area .comment-body {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

.comments-area .comment-author {
    font-weight: 600;
    color: var(--color-text-main);
}

.comments-area .comment-author img {
    border-radius: var(--radius-full);
    vertical-align: middle;
    margin-right: var(--space-2);
}

.comments-area .comment-metadata,
.comments-area .comment-notes {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.comments-area .comment-form input:not([type="submit"]):not([type="checkbox"]),
.comments-area .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-main);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.comments-area .comment-form p {
    margin-bottom: var(--space-4);
}

.comments-area .no-comments {
    color: var(--color-text-muted);
    font-style: italic;
}
