/* VoxType Premium announcement bar (2026-11-20; 20261120d: gradient, NEW / LIMITED pill, soft shine that stops for reduced motion). Identical file on voxtypekey.com, voxchrome.com, voxtypeapp.com and
   maplecodestudios.com; each site picks its colours with a modifier class.
   The bar sits at the top of the site header and has a FIXED height on every site, equal to the news banner it replaces
   (voxtypekey 68 / 64 px, the others 44 px), so the header height, the measured --header-h fallbacks and the page below do not
   move when the server text arrives. Text that does not fit is clamped, never wrapped into a taller bar.
   premium-pricing.js fills the text; html.promo-closed (set in <head> from localStorage) hides it before the first paint. */
.promo-bar {
    position: relative;
    height: 44px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
    font-family: inherit;
    text-align: left;
}
.promo-bar[hidden],
.promo-closed .promo-bar { display: none !important; }
.promo-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 65%, transparent 100%);
    background-size: 250% 100%;
    animation: promoShine 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes promoShine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .promo-bar::before { animation: none; background: none; } }
.promo-pill {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fde68a;
    color: #78350f;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
}
.promo-bar-inner {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4px 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}
.promo-bar-text {
    margin: 0;
    min-width: 0;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
}
.promo-short { display: none; }
.promo-bar-cta,
.promo-bar-cta:visited {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #003D99;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transform: none;
}
.promo-bar-cta:hover { background: #fef3c7; color: #003D99; text-decoration: none; transform: none; }
.promo-bar-cta:focus-visible,
.promo-bar-close:focus-visible { outline: 2px solid #fde68a; outline-offset: 2px; }
.promo-bar-close {
    flex: none;
    width: 40px;
    height: 40px;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}
.promo-bar-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }

@media (max-width: 700px) {
    .promo-long { display: none; }
    .promo-short { display: inline; }
    .promo-bar-inner { padding-left: 12px; gap: 8px; }
    .promo-bar-text { font-size: 0.8125rem; }
    .promo-bar-cta, .promo-bar-cta:visited { padding: 0 11px; font-size: 0.75rem; min-height: 30px; }
    .promo-bar-close { width: 36px; }
    .promo-pill { padding: 2px 6px; font-size: 0.625rem; }
}

/* voxtypekey.com: same blue as its old news banner, same height (68 px, 64 px up to 768 px) */
.promo-bar--vk { height: 68px; background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 45%, #6d28d9 100%); }
.promo-bar--vk .promo-bar-cta, .promo-bar--vk .promo-bar-cta:visited, .promo-bar--vk .promo-bar-cta:hover { color: #1e3a8a; }
@media (max-width: 768px) { .promo-bar--vk { height: 64px; } }

/* voxchrome.com: the green of its old news banner */
.promo-bar--vc { background: linear-gradient(90deg, #065f46 0%, #047857 45%, #0e7490 100%); }
.promo-bar--vc .promo-bar-cta, .promo-bar--vc .promo-bar-cta:visited, .promo-bar--vc .promo-bar-cta:hover { color: #065f46; }

/* voxtypeapp.com: the blue of its old news banner (--primary / --primary-dark) */
.promo-bar--va { background: linear-gradient(90deg, #003D99 0%, #0052CC 45%, #4338ca 100%); }

/* maplecodestudios.com: brand blue; the bar is new on this site (its header is sticky, so it sits above the nav row) */
.promo-bar--mc { background: linear-gradient(90deg, #003D99 0%, #0052CC 45%, #4338ca 100%); }
