/* ============================================================
   STRSCA PREVIEW MODE STYLES
   ------------------------------------------------------------
   Paired with strsca-preview.js
   Uses STRSCA design tokens:
     --color-blue-deep: #24407B
     --color-teal:      #2B8C96
     --color-gold:      #E8A838
   Typography: Source Serif 4 (headings), DM Sans (body/UI)
   ============================================================ */

/* ---------- Preview Banner (top of every page) ---------- */
#strsca-preview-banner {
  position: sticky;
  top: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 24px;
  background: linear-gradient(90deg, #24407B 0%, #2B8C96 100%);
  color: #ffffff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(36, 64, 123, 0.18);
}

.strsca-preview-banner-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E8A838;
  box-shadow: 0 0 0 0 rgba(232, 168, 56, 0.7);
  animation: strsca-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes strsca-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(232, 168, 56, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(232, 168, 56, 0); }
  100% { box-shadow: 0 0 0 0   rgba(232, 168, 56, 0); }
}

.strsca-preview-banner-text strong {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 6px;
}

.strsca-preview-banner-cta {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.strsca-preview-banner-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

@media (max-width: 640px) {
  #strsca-preview-banner {
    font-size: 13px;
    padding: 10px 16px;
    gap: 10px;
  }
  .strsca-preview-banner-cta {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* ---------- "Coming Soon" Modal ---------- */
#strsca-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#strsca-preview-modal.is-open {
  display: flex;
  animation: strsca-modal-fade 0.25s ease;
}

@keyframes strsca-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.strsca-preview-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 64, 123, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.strsca-preview-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  max-width: 520px;
  width: 100%;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 64px rgba(36, 64, 123, 0.35);
  animation: strsca-modal-rise 0.3s ease;
  font-family: "DM Sans", system-ui, sans-serif;
}

@keyframes strsca-modal-rise {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.strsca-preview-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #24407B;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.strsca-preview-modal-close:hover {
  background: rgba(36, 64, 123, 0.08);
}

.strsca-preview-modal-eyebrow {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2B8C96;
  margin-bottom: 10px;
}

.strsca-preview-modal-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  color: #24407B;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

.strsca-preview-modal-body {
  font-size: 16px;
  line-height: 1.6;
  color: #2b2b2b;
  margin: 0 0 16px 0;
}

.strsca-preview-modal-body strong {
  color: #24407B;
  font-weight: 600;
}

.strsca-preview-modal-link {
  color: #2B8C96;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 140, 150, 0.35);
  transition: border-color 0.2s ease;
}

.strsca-preview-modal-link:hover {
  border-bottom-color: #2B8C96;
}

.strsca-preview-modal-dismiss {
  display: inline-block;
  margin-top: 18px;
  background: #24407B;
  color: #ffffff;
  border: none;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.strsca-preview-modal-dismiss:hover {
  background: #2B8C96;
}

.strsca-preview-modal-dismiss:active {
  transform: translateY(1px);
}

/* ---------- Tiny accommodation: prevent banner from covering fixed headers ---------- */
body.strsca-has-preview-banner {
  /* No fixed padding — the banner is sticky, so it scrolls with content.
     If your site has its own fixed header, you may want to shift it
     down by ~44px when the banner is present. Add overrides here if needed. */
}
