/* ══════════════════════════════════════════════════════════════════════
   NATAL — seasonal chrome shared by every page (20 Nov → 6 Jan).
   The string of lights and the slim "Boas Festas" ribbon that sits under
   the shared site header. Self-contained: no dependency on a page's own
   tokens, so it is safe beside site-chrome.css on any page.
   The homepage and /christmas add natal.css on top of this.
   ══════════════════════════════════════════════════════════════════════ */

/* ── String of lights ──────────────────────────────────────────────
   Three stacked, repeating SVG layers: the wire with its unlit bulbs,
   then two alternating sets of lit bulbs that trade brightness. */
.natal-garland {
    position: absolute; left: 0; right: 0; top: 0; height: 44px;
    background: url('natal/garland-wire.svg') repeat-x 50% 0 / 168px 44px;
    pointer-events: none;
    /* the switch-on: lights come up along the street, left to right */
    clip-path: inset(0 100% 0 0);
    animation: natal-switch-on 1.5s .25s steps(14, end) forwards;
}
.natal-garland i {
    position: absolute; inset: 0;
    background: url('natal/garland-a.svg') repeat-x 50% 0 / 168px 44px;
    animation: natal-twinkle 3.2s ease-in-out infinite;
}
.natal-garland i + i {
    background-image: url('natal/garland-b.svg');
    animation-delay: -1.6s;
}
@keyframes natal-switch-on { to { clip-path: inset(0 0 0 0); } }
@keyframes natal-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }

/* ── Ribbon under the shared header ─────────────────────────────── */
.natal-ribbon {
    position: relative; display: block; overflow: hidden;
    background: #0F2747; color: #fff; text-decoration: none;
    font-family: 'Spectral', Georgia, 'Times New Roman', serif;
}
.natal-ribbon .natal-garland--ribbon { height: 30px; background-size: 115px 30px; opacity: .9; }
.natal-ribbon .natal-garland--ribbon i { background-size: 115px 30px; }
.natal-ribbon-in {
    position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px;
    max-width: 1200px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 32px) 11px;
    font-size: 14.5px; line-height: 1.4; color: #C7D4E8;
}
.natal-ribbon-in b { font-weight: 600; font-size: 16px; color: #FFE7A6; }
.natal-ribbon-cta {
    margin-left: auto; color: #fff; font-weight: 600;
    text-decoration: underline; text-decoration-color: #E9B23C; text-underline-offset: 4px;
}
.natal-ribbon:hover .natal-ribbon-cta { text-decoration-thickness: 2px; }
.natal-ribbon:focus-visible { outline: 2.5px solid #E9B23C; outline-offset: -3px; }
@media (max-width: 600px) {
    .natal-ribbon-in { padding-top: 26px; font-size: 13.5px; }
    .natal-ribbon-in > span:not(.natal-ribbon-cta) { flex-basis: 100%; }
    .natal-ribbon-cta { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .natal-garland { animation: none; clip-path: none; }
    .natal-garland i { animation: none; opacity: 1; }
}
