/* Festival pages (/festivals/<slug>/, /mr/festivals/<slug>/) - shared static
   CSS for FestivalPage.astro + its child components (FestivalFaq.astro,
   FestivalComplianceFooter.astro, BonusAllocator.astro).

   Deliberately a plain static file, NOT an Astro scoped <style> block: Astro's
   scoped-CSS pipeline non-deterministically dropped this component's CSS
   chunk from the production build (found 2026-09-09, affecting all 6
   festival pages x en/mr - the WhatsApp/callback CTA buttons ran together
   with no gap). A clean rebuild "fixed" it once by luck, then the next clean
   deploy.bat run (caches cleared, as it always does) reproduced the exact
   same missing-CSS bug - proving the flake is non-deterministic per build,
   not a caching artifact to chase. Same root cause and same fix already
   applied to the NRI wizard-tool pages (see verify_build.py's
   NRI_WIZARD_STEP_PREFIXES comment): move the CSS to a plain static file
   under public/, linked via a normal <link rel="stylesheet">, which is
   copied as-is and can't be dropped by the build. Do not move this back into
   a component-scoped <style> block. */

.festival-answer {
  font-size: 1.1rem;
  font-weight: 500;
  background: #f7f5fc;
  border-left: 3px solid #693BB8;
  padding: 14px 18px;
  margin: 0 0 24px;
}
.festival-glance {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  margin: 0 0 28px;
  font-size: 0.92rem;
}
.festival-glance th, .festival-glance td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #ececf2;
}
.festival-glance th { color: #555568; font-weight: 600; width: 45%; }
.festival-local-proof { margin: 28px 0; color: #444; }
.festival-related-calc { margin: 20px 0 0; font-weight: 600; }
.festival-related-calc a { color: #693BB8; }
.festival-author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  padding: 16px;
  background: #f9f9fb;
  border-radius: 8px;
}
.festival-author-box img { border-radius: 50%; object-fit: cover; }
.festival-author-name { margin: 0; font-weight: 600; }
.festival-author-cred { margin: 2px 0 0; font-size: 0.85rem; color: #666; }
.festival-cta-block { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.festival-cta-primary, .festival-cta-secondary {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.festival-cta-primary { background: #25D366; color: #fff; }
.festival-cta-secondary { border: 1px solid #693BB8; color: #693BB8; }
.festival-last-updated { font-size: 0.8rem; color: #888; margin-top: 16px; }

/* FestivalFaq.astro */
.festival-faq-item {
  border-bottom: 1px solid #ececf2;
  padding: 14px 0;
}
.festival-faq-question {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.festival-faq-question::-webkit-details-marker { display: none; }
.festival-faq-question::after {
  content: '+';
  float: right;
  font-weight: 400;
}
details[open] .festival-faq-question::after { content: '\2212'; }
.festival-faq-answer {
  margin: 10px 0 0;
  color: #444;
}

/* FestivalComplianceFooter.astro */
.festival-compliance {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #ececf2;
  font-size: 0.82rem;
  color: #666;
}
.festival-compliance p { margin: 0 0 8px; }

/* BonusAllocator.astro */
.bonus-allocator {
  margin: 32px 0;
  padding: 20px;
  background: #f9f9fb;
  border: 1px solid #ececf2;
  border-radius: 10px;
}
.bonus-allocator h2 { margin-top: 0; }
.ba-intro { color: #555568; margin-bottom: 18px; }
.ba-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 16px;
  margin-bottom: 24px;
}
.ba-form label { font-size: 0.85rem; font-weight: 600; color: #333; margin-top: 8px; }
.ba-form input {
  padding: 10px 12px;
  border: 1px solid #d5d5df;
  border-radius: 6px;
  font-size: 1rem;
  max-width: 320px;
}
.ba-results-heading { margin-bottom: 12px; }
.ba-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(100px, 2fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ba-row-label { font-weight: 600; font-size: 0.92rem; }
.ba-row-instrument { display: block; font-weight: 400; font-size: 0.78rem; color: #666; }
.ba-row-bar { background: #e5e5ee; border-radius: 4px; height: 10px; overflow: hidden; }
.ba-row-fill { background: #693BB8; height: 100%; width: 0%; transition: width 0.2s ease; }
.ba-row-amount { font-weight: 700; min-width: 90px; text-align: right; }
.ba-disclaimer { font-size: 0.78rem; color: #777; margin-top: 16px; margin-bottom: 0; }

@media (min-width: 640px) {
  .ba-form { grid-template-columns: 1fr 1fr; align-items: center; }
  .ba-form label { margin-top: 0; }
}
