/*!
 * Helderkruin Kultuur Widgets — frontend styles
 *
 * Sections:
 *   1. Shared tokens
 *   2. Kultuur Hero
 *   3. Kultuur Disciplines
 *   4. Kultuur Showcase (polaroid gallery + lightbox)
 *   5. Kultuur Ticker (marquee)
 */

/* =========================================================================
   1. SHARED TOKENS
   ========================================================================= */
.hkkw-hero *,
.hkkw-disc *,
.hkkw-showcase *,
.hkkw-ticker * {
    box-sizing: border-box;
}

/* =========================================================================
   2. KULTUUR HERO
   ========================================================================= */
.hkkw-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px; /* default — overridden by Elementor control or full-width */
    padding: 56px 28px 48px; /* default — overridden by Elementor Padding control */
    min-height: 380px;
    font-family: 'Montserrat', sans-serif;
    isolation: isolate;
    color: #FFFFFF;
}

/* Full-width — breaks out of any Elementor container and spans the viewport.
   calc(50% - 50vw) gives a negative margin that matches exactly half the
   viewport-minus-container width, so the hero extends both edges out to
   the viewport bounds regardless of the section's max-width. */
.hkkw-hero--full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left:  calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
}

/* Text alignment — affects the inner block + the pills row (via justify-content) */
.hkkw-hero--align-left   .hkkw-hero__inner { text-align: left;   margin-left: 0;    margin-right: auto; }
.hkkw-hero--align-center .hkkw-hero__inner { text-align: center; margin-left: auto; margin-right: auto; }
.hkkw-hero--align-right  .hkkw-hero__inner { text-align: right;  margin-left: auto; margin-right: 0; }

.hkkw-hero--align-left   .hkkw-hero__pills { justify-content: flex-start; }
.hkkw-hero--align-center .hkkw-hero__pills { justify-content: center; }
.hkkw-hero--align-right  .hkkw-hero__pills { justify-content: flex-end; }

/* Background layers — z-index: -1 with source order determining paint order.
   Order: .hkkw-hero__bg (base), .hkkw-hero__bg-image (image), .hkkw-hero__bg-overlay (tint) */
.hkkw-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg,
        var(--hkkw-grad-start, #15204D) 0%,
        var(--hkkw-grad-mid, #2a3d7a)   55%,
        var(--hkkw-grad-end, #7096C8)   100%);
}

.hkkw-hero[data-hkkw-bg="plain"] .hkkw-hero__bg {
    background: #15204D;
}

.hkkw-hero[data-hkkw-bg="spotlight"] .hkkw-hero__bg {
    background:
        radial-gradient(ellipse 60% 80% at 50% 20%, rgba(255, 230, 150, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, #0f1735 0%, #15204D 55%, #2a3d7a 100%);
}

.hkkw-hero__bg-image {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.hkkw-hero__bg-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(21, 32, 77, 0.5);
}

/* Marquee lights along the top edge */
.hkkw-hero__marquee {
    position: absolute;
    top: 14px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1;
}

.hkkw-hero__light {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #FFD24A;
    box-shadow: 0 0 8px rgba(255, 210, 74, 0.8),
                0 0 14px rgba(255, 210, 74, 0.4);
    animation: hkkw-light-twinkle 2.2s ease-in-out infinite;
    animation-delay: var(--hkkw-light-delay, 0s);
}

@keyframes hkkw-light-twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.85); }
}

/* Main content inner — default values; Elementor controls override max-width,
   alignment class overrides text-align + horizontal margins */
.hkkw-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto; /* default = centered; alignment class may override */
    text-align: center; /* default = centered; alignment class overrides */
    padding-top: 16px;
}

.hkkw-hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #E71615;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    animation: hkkw-hero-fade-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hkkw-hero__title {
    margin: 0 0 18px 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5.5vw, 62px);
    line-height: 1.02;
    letter-spacing: 1.4px;
    font-weight: 400;
    text-transform: uppercase;
    animation: hkkw-hero-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hkkw-hero__lead {
    margin: 0 auto 14px auto;
    max-width: 680px;
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.6;
    animation: hkkw-hero-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.hkkw-hero__tagline {
    margin: 6px auto 26px auto;
    max-width: 680px;
    font-family: 'Caveat', cursive;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.35;
    font-weight: 500;
    animation: hkkw-hero-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hkkw-hero__tagline-star {
    display: inline-block;
    font-family: initial;
    transform: translateY(-2px);
}

/* Pills — default centered; alignment classes on parent override */
.hkkw-hero__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.hkkw-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #15204D;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.35);
    border-top: 2px solid var(--hkkw-pill-accent, #E71615);
    opacity: 0;
    transform: translateY(14px);
    animation: hkkw-pill-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--hkkw-pill-delay, 0.3s);
    cursor: default;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s ease;
}

.hkkw-hero__pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.4);
}

@keyframes hkkw-pill-in {
    0%   { opacity: 0; transform: translateY(14px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0)    scale(1);    }
}

.hkkw-hero__pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--hkkw-pill-accent, #E71615);
    font-size: 14px;
}

.hkkw-hero__pill-icon i,
.hkkw-hero__pill-icon svg {
    width: 14px;
    height: 14px;
}

/* Stage curtain at the bottom */
.hkkw-hero__curtain {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px; /* avoids hairline gap */
    width: 100%;
    height: 40px;
    z-index: 3;
    color: #ffffff; /* matches page background by default */
    pointer-events: none;
}

/* Entrance keyframes */
@keyframes hkkw-hero-fade-down {
    0%   { opacity: 0; transform: translateY(-12px); }
    100% { opacity: 1; transform: translateY(0);     }
}
@keyframes hkkw-hero-fade-up {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0);    }
}

/* Mobile — only pill sizing; padding / border-radius / min-height are all
   responsive Elementor controls now */
@media (max-width: 640px) {
    .hkkw-hero__marquee { left: 16px; right: 16px; }
    .hkkw-hero__pills { gap: 8px; }
    .hkkw-hero__pill {
        font-size: 12px;
        padding: 8px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hkkw-hero__light,
    .hkkw-hero__eyebrow,
    .hkkw-hero__title,
    .hkkw-hero__lead,
    .hkkw-hero__tagline,
    .hkkw-hero__pill {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .hkkw-hero__pill:hover { transform: none; }
}

/* =========================================================================
   3. KULTUUR DISCIPLINES
   ========================================================================= */
.hkkw-disc {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

/* Tab bar */
.hkkw-disc__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    background: #F0F3F9;
    border-radius: 18px;
    margin-bottom: 28px;
}

.hkkw-disc__tab {
    position: relative;
    flex: 1 1 auto;
    min-width: 140px;
    border: none;
    background: transparent;
    padding: 14px 18px;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #15204D;
    transition: background 0.25s ease, transform 0.2s ease,
                box-shadow 0.25s ease, color 0.2s ease;
    --hkkw-disc-accent: #E71615;
}

.hkkw-disc__tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.7);
}

.hkkw-disc__tab.is-active {
    background: #FFFFFF;
    box-shadow: 0 6px 16px -6px rgba(21, 32, 77, 0.18);
    transform: translateY(-1px);
    color: var(--hkkw-disc-accent);
}

.hkkw-disc__tab-emoji {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 2px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hkkw-disc__tab.is-active .hkkw-disc__tab-emoji {
    transform: scale(1.15) rotate(-3deg);
}

.hkkw-disc__tab-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.hkkw-disc__tab-underline {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 2px;
    background: var(--hkkw-disc-accent);
    border-radius: 1px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hkkw-disc__tab.is-active .hkkw-disc__tab-underline {
    transform: translateX(-50%) scaleX(1);
}

/* Panels — all children are position:absolute inside the relatively-positioned
   container. JS sets the container's explicit height to match the active
   panel's natural height, and transitions it on tab switch — so switching
   between a 2-card tab and a 4-card tab smoothly expands/collapses the
   container with no empty space. */
.hkkw-disc__panels {
    position: relative;
    min-height: 200px; /* pre-JS fallback so the container isn't 0px tall */
    transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden; /* clip the translateY offset of outgoing panels */
}

.hkkw-disc__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.45s;
    --hkkw-disc-accent: #E71615;
}

.hkkw-disc__panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1;
}

/* Section headline + intro — centered */
.hkkw-disc__headline {
    margin: 0 auto 6px auto;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    color: #15204D;
    line-height: 1.1;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
}

.hkkw-disc__intro {
    margin: 0 auto 22px auto;
    font-size: 14px;
    line-height: 1.55;
    font-style: italic;
    color: #55627E;
    max-width: 720px;
    text-align: center;
}

.hkkw-disc__programmes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hkkw-disc__card {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 22px 22px 20px;
    box-shadow: 0 12px 28px -14px rgba(21, 32, 77, 0.15);
    border-top: 4px solid var(--hkkw-disc-accent);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease;
}

.hkkw-disc__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -16px rgba(21, 32, 77, 0.22);
}

.hkkw-disc__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hkkw-disc__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--hkkw-disc-accent) 12%, white);
    color: var(--hkkw-disc-accent);
    font-size: 18px;
    flex-shrink: 0;
}

.hkkw-disc__card-icon i,
.hkkw-disc__card-icon svg {
    width: 18px;
    height: 18px;
}

.hkkw-disc__card-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--hkkw-disc-accent) 14%, white);
    color: var(--hkkw-disc-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hkkw-disc__card-title {
    margin: 0 0 8px 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.8px;
    line-height: 1.15;
    color: #15204D;
    font-weight: 400;
    text-transform: uppercase;
}

.hkkw-disc__card-desc {
    margin: 0 0 12px 0;
    font-size: 13px;
    line-height: 1.55;
    color: #55627E;
}

.hkkw-disc__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hkkw-disc__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #55627E;
}

.hkkw-disc__bullets i {
    color: var(--hkkw-disc-accent);
    font-size: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .hkkw-disc__tabs {
        gap: 4px;
        padding: 4px;
        border-radius: 14px;
    }
    .hkkw-disc__tab {
        min-width: 72px;
        padding: 10px 10px 14px;
        font-size: 10.5px;
    }
    .hkkw-disc__tab-emoji { font-size: 18px; }
    .hkkw-disc__tab-label {
        font-size: 10.5px;
        letter-spacing: 0.3px;
    }
    .hkkw-disc__tab-underline { bottom: 3px; width: 22px; }
    .hkkw-disc__programmes {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hkkw-disc__headline { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .hkkw-disc__panel { transition: opacity 0.2s; transform: none; }
    .hkkw-disc__tab, .hkkw-disc__card, .hkkw-disc__tab-emoji,
    .hkkw-disc__tab-underline { transition: none; }
}

/* =========================================================================
   4. KULTUUR SHOWCASE — polaroid gallery
   ========================================================================= */
.hkkw-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    padding: 10px 4px; /* breathing room so tilted cards don't get clipped */
}

.hkkw-showcase__item {
    display: block;
    text-align: left;
    border: none;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 12px 12px 14px;
    cursor: pointer;
    box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.25),
                0 2px 6px -2px rgba(0, 0, 0, 0.1);
    transform: rotate(var(--hkkw-item-rotation, 0deg));
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
    font-family: inherit;
    --hkkw-item-accent: #E71615;
}

/* When the hover can't be supported (real touch devices), don't try to
   straighten on hover — that looks weirdly stuck */
@media (hover: hover) {
    .hkkw-showcase__item:hover,
    .hkkw-showcase__item:focus-visible {
        transform: rotate(0deg) translateY(-6px) scale(1.03);
        box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.35),
                    0 6px 14px -6px rgba(0, 0, 0, 0.15);
        z-index: 2;
    }
}

.hkkw-showcase__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 3px;
    background: #F0F3F9;
}

.hkkw-showcase__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
    .hkkw-showcase__item:hover .hkkw-showcase__image img {
        transform: scale(1.05);
    }
}

.hkkw-showcase__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(21, 32, 77, 0.2);
    font-size: 46px;
}

.hkkw-showcase__category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--hkkw-item-accent, #E71615);
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.25);
}

.hkkw-showcase__caption {
    margin-top: 10px;
    padding: 0 4px;
    font-family: 'Caveat', cursive;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #15204D;
    text-align: center;
}

/* Lightbox */
.hkkw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 12, 30, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.hkkw-lightbox[hidden] {
    display: flex; /* we animate in/out via .is-open, not hidden attr */
}

.hkkw-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.hkkw-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.18s ease;
}

.hkkw-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.08);
}

.hkkw-lightbox__figure {
    margin: 0;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hkkw-lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

.hkkw-lightbox__caption {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Caveat', cursive;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
}

/* Mobile */
@media (max-width: 640px) {
    .hkkw-showcase {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 6px 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hkkw-showcase__item,
    .hkkw-showcase__image img,
    .hkkw-lightbox { transition: none; }
}

/* =========================================================================
   5. KULTUUR TICKER — marquee
   ========================================================================= */
.hkkw-ticker {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 14px 0;
    font-family: 'Montserrat', sans-serif;
    --hkkw-ticker-speed: 32s;
}

.hkkw-ticker--edge-fade {
    mask-image: linear-gradient(
        to right,
        transparent 0,
        black 48px,
        black calc(100% - 48px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        black 48px,
        black calc(100% - 48px),
        transparent 100%
    );
}

.hkkw-ticker__track {
    display: flex;
    width: max-content;
    animation: hkkw-ticker-scroll var(--hkkw-ticker-speed) linear infinite;
    will-change: transform;
}

.hkkw-ticker--reverse .hkkw-ticker__track {
    animation-direction: reverse;
}

.hkkw-ticker--pause-on-hover:hover .hkkw-ticker__track,
.hkkw-ticker--pause-on-hover:focus-within .hkkw-ticker__track {
    animation-play-state: paused;
}

.hkkw-ticker__strip {
    display: flex;
    gap: 14px;
    padding-right: 14px; /* gap between strip-copies too */
    flex-shrink: 0;
}

/* The two strips are side by side. The animation translates the track
   by -50% which, because each strip is 50% of the track width, is
   exactly one strip's worth — so the second strip lands where the
   first was, seamlessly. */
@keyframes hkkw-ticker-scroll {
    0%   { transform: translateX(0);     }
    100% { transform: translateX(-50%);  }
}

.hkkw-ticker__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 14px;
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 6px 16px -8px rgba(21, 32, 77, 0.18);
    border-left: 3px solid var(--hkkw-badge-accent, #E71615);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hkkw-ticker--pause-on-hover .hkkw-ticker__badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(21, 32, 77, 0.25);
}

.hkkw-ticker__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--hkkw-badge-accent, #E71615) 14%, white);
    color: var(--hkkw-badge-accent, #E71615);
    font-size: 16px;
    flex-shrink: 0;
}

.hkkw-ticker__badge-icon i,
.hkkw-ticker__badge-icon svg {
    width: 16px;
    height: 16px;
}

.hkkw-ticker__badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hkkw-ticker__badge-title {
    font-size: 13px;
    font-weight: 700;
    color: #15204D;
    line-height: 1.2;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.hkkw-ticker__badge-sub {
    font-size: 11px;
    color: #55627E;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .hkkw-ticker { padding: 10px 0; }
    .hkkw-ticker__strip { gap: 10px; padding-right: 10px; }
    .hkkw-ticker__badge { padding: 10px 14px 10px 12px; gap: 10px; }
    .hkkw-ticker__badge-icon { width: 32px; height: 32px; font-size: 14px; }
    .hkkw-ticker__badge-icon i,
    .hkkw-ticker__badge-icon svg { width: 14px; height: 14px; }
    .hkkw-ticker__badge-title { font-size: 12px; }
    .hkkw-ticker__badge-sub   { font-size: 10.5px; }
    .hkkw-ticker--edge-fade {
        mask-image: linear-gradient(
            to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%
        );
    }
}

@media (prefers-reduced-motion: reduce) {
    .hkkw-ticker__track { animation: none; }
    .hkkw-ticker__badge { transition: none; }
}
