/* vektr.app: the site banner and the homepage promotion's phases (T-858, T-859; D336-D339). Drawn by banner.js.
   Looks: event (D339, Teddy's pick: banner A round 5 with the fading scanline edge, planning/reference/2026-11-24/banner-a-r5/), and the
   earlier quiet and bold strips. A new look is a new .vb-<name> block here plus its name in LOOKS in banner.js and packages/core/src/site_banner.ts.
   The banner has fixed dark colors in both themes (it sits on the dark sky header). No motion anywhere. */

/* The promotion: banner.js sets data-offer on <html> to cyber, december or off.
   .offer-on shows in either phase, .offer-off only outside them; .phase-cyber and .phase-december only in their own phase. */
:root:not([data-offer="cyber"]):not([data-offer="december"]) .offer-on,
:root[data-offer="cyber"] .offer-off, :root[data-offer="december"] .offer-off,
:root:not([data-offer="cyber"]) .phase-cyber, :root:not([data-offer="december"]) .phase-december { display:none !important; }

.vb { position:relative; z-index:30; container-type:inline-size; container-name:vb; }
.vb-x { position:absolute; right:8px; top:50%; transform:translateY(-50%); width:40px; height:40px; display:grid; place-items:center; border:0; border-radius:8px; background:transparent; color:inherit; cursor:pointer; padding:0; }
.vb-x svg { width:18px; height:18px; }
.vb-x:focus-visible, .vb-btn:focus-visible { outline:2px solid #fff; outline-offset:2px; }

/* ----- event: the dark band with the stacked lockup, headline, line and button; a fading 2 px cyan scanline is its bottom edge ----- */
.vb-event { color:#f5f6f6;
  background:radial-gradient(50% 160% at 14% 55%,#17566266 0%,#17566200 70%),radial-gradient(40% 120% at 90% 100%,#34b6c533 0%,#34b6c500 70%),linear-gradient(180deg,#05080b 0%,#0a1319 60%,#0f2630 100%);
  box-shadow:0 8px 44px -6px #34b6c5aa; }
.vb-event::after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:linear-gradient(90deg,transparent,#34b6c5 30%,#5fd3e0 50%,#34b6c5 70%,transparent); }
.vb-event .vb-in { max-width:1160px; margin:0 auto; padding:18px 56px 40px 40px; display:grid; grid-template-columns:auto minmax(0,max-content) auto; justify-content:space-between; gap:12px 48px; align-items:center; }
/* Wide: the text column is only as wide as its words, and the spare room is shared equally between lockup | text | button (Teddy 11-23: the button sat off on its own). */
.vb-event.vb-nolock .vb-in { grid-template-columns:minmax(0,max-content) auto; }
.vb-event .vb-x { top:10px; transform:none; width:36px; height:36px; color:#c9ced1; }
.vb-event .vb-x:hover { background:#ffffff1a; color:#fff; }
/* The lockup: each line scaled by banner.js to the box's width, so both lines are equally wide; tight stack (line-height .8). */
.vb-lock { width:150px; display:flex; flex-direction:column; align-items:stretch; color:#fff; font:700 46px/1 "Exo 2","Sora",system-ui,sans-serif; letter-spacing:-.01em; filter:drop-shadow(0 0 18px #34b6c566); }
.vb-ln { display:flex; align-items:baseline; justify-content:space-between; line-height:.8; white-space:nowrap; }
.vb-ln + .vb-ln { margin-top:-.02em; }
.vb-k { height:.7em; width:auto; flex:none; margin-left:.1em; overflow:visible; align-self:baseline; display:block; color:#fff; }
/* An uploaded picture takes the lockup's place (Admin > Site banners): same width, never taller than the band needs. */
.vb-img { display:block; width:150px; height:auto; max-height:120px; object-fit:contain; }
.vb-msg p { margin:0; }
.vb-event .vb-h { font:500 clamp(22px,2.2vw,30px)/1.16 "Exo 2","Sora",system-ui,sans-serif; color:#fff; }
.vb-event .vb-s { margin-top:8px; font:500 clamp(16px,1.5vw,20px)/1.3 "Exo 2","Sora",system-ui,sans-serif; color:#34b6c5; }
.vb-event .vb-btn { white-space:nowrap; min-width:180px; height:52px; padding:0 28px; border-radius:10px; background:#0e7f8d; color:#fff; font:600 17px "Figtree",system-ui,sans-serif; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.vb-event .vb-btn:hover { background:#0b6a76; }
.vb-msg { min-width:0; overflow-wrap:normal; word-break:normal; }
/* More room after the lockup than before the button, and no one-word last line. */
.vb-event .vb-msg { margin-left:24px; }
.vb-event.vb-nolock .vb-msg { margin-left:0; }
.vb-event .vb-h, .vb-event .vb-s { text-wrap:pretty; }
/* The layout follows the banner's own width (container queries), so Admin's preview box and the real page agree.
   Wide: lockup | text | button. Medium: lockup + text, the button below. Narrow: the phone layout. */
@container vb (max-width:900px) {
  .vb-event .vb-in { grid-template-columns:auto 1fr; justify-content:stretch; column-gap:40px; }
  .vb-event.vb-nolock .vb-in { grid-template-columns:1fr; }
  .vb-event .vb-btn { grid-column:1/-1; width:100%; min-width:0; }
}
@container vb (max-width:560px) {
  .vb-event .vb-in { padding:14px 44px 26px 16px; gap:10px 14px; }
  .vb-event .vb-msg { margin-left:0; }
  .vb-lock, .vb-img { width:92px; }
  .vb-img { max-height:80px; }
  .vb-event .vb-h { font-size:19px; }
  .vb-event .vb-s { font-size:15px; }
  .vb-event .vb-btn { white-space:normal; text-align:center; }
}

/* ----- quiet: a dark strip with a cyan line on top; bold: the deep cyan strip (D225's #0e7f8d keeps white text at AA) ----- */
.vb-quiet, .vb-bold { display:flex; align-items:center; justify-content:center; padding:10px 52px 10px 20px; font:500 15px/1.45 "Figtree",system-ui,sans-serif; text-align:center; text-wrap:balance; }
.vb-quiet .vb-in, .vb-bold .vb-in { max-width:1040px; }
.vb-t { margin:0; }
.vb-eb { font-weight:600; }
.vb-eb::after { content:":"; }
.vb-quiet .vb-btn, .vb-bold .vb-btn { white-space:nowrap; font-weight:600; text-underline-offset:3px; }
.vb-quiet { background:#0a0d11; color:#dfe3e5; border-top:3px solid #34b6c5; border-bottom:1px solid #2f363e; }
.vb-quiet .vb-eb { color:#fff; }
.vb-quiet .vb-btn { color:#8adde6; text-decoration:underline; } /* a link shown by more than its color */
.vb-quiet .vb-x:hover { background:#ffffff14; }
.vb-bold { background:#0e7f8d; color:#fff; }
.vb-bold .vb-btn { color:#fff; text-decoration:underline; text-decoration-thickness:2px; }
.vb-bold .vb-x:hover { background:#ffffff26; }
@media (max-width:560px) {
  .vb-quiet, .vb-bold { font-size:14px; padding:10px 46px 10px 16px; text-align:left; justify-content:flex-start; }
  .vb-quiet .vb-x, .vb-bold .vb-x { right:4px; top:6px; transform:none; }
}
@media print { .vb { display:none; } }
