/* ════════════════════════════════════════════════════════════════════
   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;
}

/* ════════════════════════════════════════════════════════════════════
   THE STRIP — why it is no longer sticky.   (F-021 · F-009)
   ────────────────────────────────────────────────────────────────────
   It used to be `position:sticky; top:0; z-index:1100` while `.syn-nav`
   is `position:sticky; top:0; z-index:60`. Two things pinned to the same
   0 with the banners winning on z-index, so the moment the page scrolled
   the nav pill parked UNDERNEATH the banners and became unclickable —
   site-wide, on every route (F-021).

   Pinning the nav below the strip instead would need the strip's live
   height in CSS, which CSS cannot measure; it would also mean a phone
   permanently surrendering banner+nav ≈ 150px of an 844px screen, which
   is the other half of F-009. So the strip now scrolls away with the
   page and the nav pins alone. Announcement bars behaving this way is
   the norm, and it needs no measurement to stay correct.

   z-index drops to 40: above ordinary page content, below the nav's 60,
   so while the strip scrolls past the pinned pill it passes UNDER it.

   Nothing else has to change: js/screens-learn.js `stickyTop()` already
   asks each candidate whether it is actually `sticky`/`fixed` before
   counting its height, so the Έκθεση toolbar follows this automatically.
   ════════════════════════════════════════════════════════════════════ */
#site-banners-wrap { position: relative; z-index: 40; }

.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);
  /* F-019: NEVERon Greek — it strips the tonos
     («Απόκτησέ το» → «ΑΠΟΚΤΗΣΕ ΤΟ»). The small/wide/quiet look the CTA
     wants survives on letter-spacing + size + weight alone; caps, if
     ever wanted, get authored into the string. */
  font-size: 11.5px; letter-spacing: 1.3px; font-weight: 700;
  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;
}


/* ════════════════════════════════════════════════════════════════════
   PHONE — one banner tall, not two.   (F-009)
   ────────────────────────────────────────────────────────────────────
   Two stacked banners measured 260px of an 844px phone: 31% of the
   screen, and the hero pushed entirely below the fold. The owner must
   keep being able to run two, so nothing is removed from the data and
   nothing is hidden — the strip becomes a snap carousel instead:

     · one banner occupies the strip, so the strip costs ONE banner's
       height instead of the sum of all of them;
     · the next one peeks 22px at the right edge, which is the
       affordance — a visible sliver reads as "there is more", where a
       clean edge reads as "that's all";
     · scroll-snap makes the swipe land squarely on the next banner;
     · a single banner (`:only-child`) fills the width, so the common
       case looks exactly as it did.

   Padding, type size and line-height tighten as well, so even the one
   visible banner is shorter than it was.
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  #site-banners-wrap {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  #site-banners-wrap::-webkit-scrollbar { display: none; }

  .site-banner {
    flex: 0 0 calc(100% - 22px);
    scroll-snap-align: start;
    padding: .58rem .7rem .58rem .85rem;
    gap: .5rem;
    font-size: 13px;
    line-height: 1.35;
  }
  .site-banner:only-child { flex-basis: 100%; }
  /* the right-edge glow is decoration; on a 390px screen it eats the
     sliver that has to read as "there is another banner" */
  .site-banner::after { width: 24%; }

  /* The leading glyph is a flex item, so forcing the TITLE onto its own
     row left the glyph alone on a row of its own — 14px of pure air at
     the top of every banner. Breaking before the BODY TEXT instead keeps
     glyph+title together and gives that row back. */
  .site-banner-body { gap: .42rem .5rem; }
  .site-banner-title { font-size: 13px; }
  .site-banner-text { flex: 1 0 100%; font-size: 12.5px; }
  .site-banner-cta { padding: 6px 11px; font-size: 11px; letter-spacing: 1px; }
  .site-banner-close { padding: 3px 7px; font-size: 15px; align-self: flex-start; }
}
