/* Skyrule promo widgets — announcement bar, entry modal, homepage section.
   Loaded by BaseLayout.astro for the pages where AnnouncementBar/PromoModal
   are client-injected (see the <script> in BaseLayout.astro). The homepage
   (src/pages/index.astro) renders the Astro components directly instead and
   carries an equivalent scoped <style> in each component — the class names
   here are kept identical to those so both rendering paths look the same. */

.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--skyrule--green, #a3d346);
  color: var(--skyrule--ink, #1c2a05);
  font-family: Inter, Arial, sans-serif;
}
.promo-bar_inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.3;
  text-align: center;
}
.promo-bar_eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.promo-bar_headline {
  font-weight: 500;
}
.promo-bar_cta {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Pushes the fixed navbar down by the bar's rendered height. Harmless when no
   bar is present — the custom property is unset, so the var() falls back to
   0px, identical to the navbar's own hardcoded `top: 0`. */
.navbar_component {
  top: var(--promo-bar-height, 0px);
}

.promo-modal_overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  font-family: Inter, Arial, sans-serif;
}
.promo-modal_card {
  background-color: #171717;
  color: #f5f5f5;
  border-radius: 1rem;
  max-width: 32rem;
  width: 100%;
  overflow: hidden;
}
.promo-modal_image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.promo-modal_body {
  padding: 1.5rem;
}
.promo-modal_eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--skyrule--green, #a3d346);
  margin: 0 0 0.5rem;
}
.promo-modal_headline {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.promo-modal_content {
  font-size: 0.875rem;
  color: #d4d4d4;
  line-height: 1.5;
}
.promo-modal_content a {
  color: var(--skyrule--green, #a3d346);
}
.promo-modal_actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.promo-modal_cta {
  border-radius: 0.5rem;
  background-color: var(--skyrule--green, #a3d346);
  color: var(--skyrule--ink, #1c2a05);
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: inline-block;
}
.promo-modal_dismiss {
  border-radius: 0.5rem;
  border: 1px solid #404040;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.promo-section {
  background-color: #171717;
  color: #f5f5f5;
  font-family: Inter, Arial, sans-serif;
}
.promo-section_inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .promo-section_inner {
    grid-template-columns: 1fr 1fr;
  }
}
.promo-section_image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  display: block;
}
.promo-section_eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--skyrule--green, #a3d346);
  margin: 0 0 0.75rem;
}
.promo-section_headline {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.promo-section_content {
  color: #d4d4d4;
  line-height: 1.6;
}
.promo-section_content a {
  color: var(--skyrule--green, #a3d346);
}
.promo-section_cta {
  display: inline-block;
  margin-top: 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--skyrule--green, #a3d346);
  color: var(--skyrule--ink, #1c2a05);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}
