/* ════════════════════════════════════════════════════════════════════
   SymposiON · SITE BANNERS — drop-in (synthesis port)
   ────────────────────────────────────────────────────────────────────
   Production CSS from the design handoff, used as-is. Targets the markup
   emitted by js/banner-bar.js:
     #site-banners-wrap
       > .site-banner.site-banner--{info|promo|warning}
           > .site-banner-body > strong.site-banner-title
                               + span.site-banner-text
                               + button.site-banner-cta
           + button.site-banner-close

   Each --bn token drives the accent colour, left bar, glyph, CTA and the
   right-edge glow. Per-type backgrounds stay dark so text is legible.

   NOTE (synthesis adaptation): the original CSS reads --sym-font-mono from
   the theme, but synthesis does not define that token (nor load JetBrains
   Mono). The :root fallback below makes the CTA font resolve to a sane
   monospace stack without touching the rest of the design.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --sym-font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'Menlo',
                   'Consolas', monospace;
}

#site-banners-wrap { position: sticky; top: 0; z-index: 1100; }

.site-banner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .82rem 1.15rem .82rem 1.4rem;
  font-size: 14px;
  /* Crisper text on the glossy gradient ground — lifts legibility of both
     title and body without changing the colour tokens. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  border-bottom: 1px solid color-mix(in srgb, var(--bn) 28%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--bn) 18%, transparent);
  transition: opacity .28s ease;
}

/* left accent bar */
.site-banner::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--bn); opacity: .85;
}
/* soft glow on the right edge */
.site-banner::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0;
  width: 42%; pointer-events: none;
  background: radial-gradient(ellipse 70% 130% at 100% 50%,
    color-mix(in srgb, var(--bn) 13%, transparent), transparent 72%);
}

/* per-type accent + gradient ground (kept dark so text stays legible).
   Body colours brightened to near-white tints so they clear WCAG AA (≥4.5:1,
   in fact ≥10:1) on the dark grounds even at the .92 body opacity below —
   the previous tints (#CFEAF1 / #F6E7C4 / #F4C9B9) read a touch washed-out
   on the light alabaster shell because the banner ground is dark. */
.site-banner--info    { --bn:#7FC0CE; background:linear-gradient(100deg,#0f2530,#143341 58%,#163b4d); color:#E4F3F8; }
.site-banner--promo   { --bn:#E8B94E; background:linear-gradient(100deg,#241a04,#2f2307 52%,#3b2c08); color:#FBF1D6; }
.site-banner--warning { --bn:#EBA88E; background:linear-gradient(100deg,#2a0f0a,#3a1510 58%,#43170e); color:#FBDDD0; }

.site-banner-body {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  flex: 1; position: relative; z-index: 1;
}

/* leading geometric glyph — shape varies by type, brand-safe primitives */
.site-banner-body::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px;
  background: var(--bn);
  box-shadow: 0 0 10px color-mix(in srgb, var(--bn) 55%, transparent);
}
.site-banner--promo   .site-banner-body::before { width: 8px; height: 8px; transform: rotate(45deg); }   /* diamond */
.site-banner--info    .site-banner-body::before { border-radius: 50%; }                                   /* circle  */
.site-banner--warning .site-banner-body::before {                                                         /* triangle */
  width: 0; height: 0; background: transparent; box-shadow: none;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 10px solid var(--bn);
}

/* Title: bright, accent-leaning and bold so it stands clearly apart from the
   body. Was color-mix(--bn 32%, #fff) → an almost-white wash that lost both
   the accent identity AND its separation from the body line. 55% accent keeps
   it bright (high contrast on the dark ground) while reading as the type's
   colour, and weight 700 gives a firm hierarchy. */
.site-banner-title { font-weight: 700; color: color-mix(in srgb, var(--bn) 55%, #fff); letter-spacing: .1px; }
/* Body: was opacity .82 (a needless contrast tax). At .92 over the dark ground
   the brightened body colours stay well above WCAG AA. */
.site-banner-text  { opacity: .92; }

.site-banner-cta {
  font-family: var(--sym-font-mono);
  font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 600;
  padding: 8px 15px; border-radius: 7px; cursor: pointer; white-space: nowrap;
  position: relative; z-index: 1; text-shadow: none;
  /* slightly stronger fill + brighter accent text so the pill stands out on
     the gradient (was 14% bg / plain --bn text). */
  background: color-mix(in srgb, var(--bn) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--bn) 55%, transparent);
  color: color-mix(in srgb, var(--bn) 78%, #fff);
  transition: background .16s, color .16s, box-shadow .16s;
}
.site-banner-cta:hover {
  background: color-mix(in srgb, var(--bn) 30%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bn) 35%, transparent);
}
.site-banner-cta:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--bn) 75%, #fff);
  outline-offset: 2px;
}
/* promo = the primary growth action → solid fill for maximum visibility */
.site-banner--promo .site-banner-cta { background: var(--bn); border-color: var(--bn); color:#1F1503; font-weight:600; }
.site-banner--promo .site-banner-cta:hover {
  background: color-mix(in srgb, var(--bn) 88%, #fff);
  box-shadow: 0 2px 14px color-mix(in srgb, var(--bn) 40%, transparent);
}

/* Dismiss ✕ — was opacity .55 with no outline, easy to miss against the busy
   gradient. Raised to .85 with a faint ring + larger glyph/target so it reads
   as a clear, tappable control. */
.site-banner-close {
  background: color-mix(in srgb, #fff 6%, transparent);
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  color: inherit; opacity: .85;
  font-size: 16px; line-height: 1; cursor: pointer;
  padding: 5px 9px; border-radius: 7px;
  flex-shrink: 0; position: relative; z-index: 1;
  transition: opacity .15s, background .15s, border-color .15s;
}
.site-banner-close:hover {
  opacity: 1;
  background: color-mix(in srgb, #fff 16%, transparent);
  border-color: color-mix(in srgb, #fff 30%, transparent);
}
.site-banner-close:focus-visible {
  outline: 2px solid color-mix(in srgb, #fff 70%, transparent);
  outline-offset: 1px;
}
