/* ==========================================================================
   COLOR SYSTEM — Quick reference for changing colors
   ==========================================================================
   To change a specific area, edit the variable in the relevant section below.

   QUICK EDIT GUIDE:
   • Brand red (CTAs, nav hover, links, buttons)     → --red, --accent
   • Applications / category cards (emerald theme)  → --emerald-embrace
   • Index cards (dark cards, coral accents)       → --midnight-slate, --coral-pink
   • Default content cards (navy + red)             → --chem-navy, --red
   • Page background, subpage gradient             → --background, --leather-cream
   • Text on light / dark                          → --text, --white, --gray
   ========================================================================== */

:root {
    /* ----------------------------------------------------------------------
       BASE PALETTE — Core brand and neutrals
       Change --red to update brand color across CTAs, nav, buttons, links.
       --accent is used for btn-read, links; keep in sync with --red if desired.
       ---------------------------------------------------------------------- */
    --red: #e5241f;
    --black: #1d1d1b;
    --white: #f5f5f5;
    --gray: #333;

    /* Brand red at various opacities — auto-update when --red changes (color-mix) */
    --red-04: color-mix(in srgb, var(--red) 4%, transparent);
    --red-06: color-mix(in srgb, var(--red) 6%, transparent);
    --red-08: color-mix(in srgb, var(--red) 8%, transparent);
    --red-10: color-mix(in srgb, var(--red) 10%, transparent);
    --red-12: color-mix(in srgb, var(--red) 12%, transparent);
    --red-15: color-mix(in srgb, var(--red) 15%, transparent);
    --red-20: color-mix(in srgb, var(--red) 20%, transparent);
    --red-25: color-mix(in srgb, var(--red) 25%, transparent);
    --red-30: color-mix(in srgb, var(--red) 30%, transparent);
    --red-35: color-mix(in srgb, var(--red) 35%, transparent);
    --red-40: color-mix(in srgb, var(--red) 40%, transparent);
    --red-45: color-mix(in srgb, var(--red) 45%, transparent);

    /* ----------------------------------------------------------------------
       UI & LAYOUT — Text, backgrounds, links
       ---------------------------------------------------------------------- */
    --text: #100707;
    --background: #fcf9f9;
    --primary: #b55655;
    --secondary: #9ac1d3;
    --accent: #e0211a;

    /* Secondary */
    --secondary-04: color-mix(in srgb, var(--secondary) 4%, transparent);
    --secondary-06: color-mix(in srgb, var(--secondary) 6%, transparent);
    --secondary-08: color-mix(in srgb, var(--secondary) 8%, transparent);
    --secondary-10: color-mix(in srgb, var(--secondary) 10%, transparent);
    --secondary-12: color-mix(in srgb, var(--secondary) 12%, transparent);
    --secondary-15: color-mix(in srgb, var(--secondary) 15%, transparent);
    --secondary-20: color-mix(in srgb, var(--secondary) 20%, transparent);
    --secondary-25: color-mix(in srgb, var(--secondary) 25%, transparent);
    --secondary-30: color-mix(in srgb, var(--secondary) 30%, transparent);
    --secondary-35: color-mix(in srgb, var(--secondary) 35%, transparent);
    --secondary-40: color-mix(in srgb, var(--secondary) 40%, transparent);
    --secondary-45: color-mix(in srgb, var(--secondary) 45%, transparent);

    /* ----------------------------------------------------------------------
       LEATHER TONES — Gradients, decorative elements
       ---------------------------------------------------------------------- */
    --leather-dark: #2c2419;
    --leather-mid: #5c4a3a;
    --leather-tan: #8b7355;
    --leather-light: #c4a574;
    --leather-cream: #e8ddd0;

    /* ----------------------------------------------------------------------
       COLOR CHEMICALS — Dyed leather palette, default card background
       --chem-navy: used for .content-card background (index, horizontal cards)
       ---------------------------------------------------------------------- */
    --chem-blue: #2d5a7b;
    --chem-green: #3d6b4f;
    --chem-gold: #b8860b;
    --chem-burgundy: #722f37;
    --chem-navy: #1a2a3a;
    
    /* Chem Blue */
    --chem-blue-04: color-mix(in srgb, var(--chem-blue) 4%, transparent);
    --chem-blue-06: color-mix(in srgb, var(--chem-blue) 6%, transparent);
    --chem-blue-08: color-mix(in srgb, var(--chem-blue) 8%, transparent);
    --chem-blue-10: color-mix(in srgb, var(--chem-blue) 10%, transparent);
    --chem-blue-12: color-mix(in srgb, var(--chem-blue) 12%, transparent);
    --chem-blue-15: color-mix(in srgb, var(--chem-blue) 15%, transparent);
    --chem-blue-20: color-mix(in srgb, var(--chem-blue) 20%, transparent);
    --chem-blue-25: color-mix(in srgb, var(--chem-blue) 25%, transparent);
    --chem-blue-30: color-mix(in srgb, var(--chem-blue) 30%, transparent);
    --chem-blue-35: color-mix(in srgb, var(--chem-blue) 35%, transparent);
    --chem-blue-40: color-mix(in srgb, var(--chem-blue) 40%, transparent);
    --chem-blue-45: color-mix(in srgb, var(--chem-blue) 45%, transparent);

    /* Chem Green */
    --chem-green-04: color-mix(in srgb, var(--chem-green) 4%, transparent);
    --chem-green-06: color-mix(in srgb, var(--chem-green) 6%, transparent);
    --chem-green-08: color-mix(in srgb, var(--chem-green) 8%, transparent);
    --chem-green-10: color-mix(in srgb, var(--chem-green) 10%, transparent);
    --chem-green-12: color-mix(in srgb, var(--chem-green) 12%, transparent);
    --chem-green-15: color-mix(in srgb, var(--chem-green) 15%, transparent);
    --chem-green-20: color-mix(in srgb, var(--chem-green) 20%, transparent);
    --chem-green-25: color-mix(in srgb, var(--chem-green) 25%, transparent);
    --chem-green-30: color-mix(in srgb, var(--chem-green) 30%, transparent);
    --chem-green-35: color-mix(in srgb, var(--chem-green) 35%, transparent);
    --chem-green-40: color-mix(in srgb, var(--chem-green) 40%, transparent);
    --chem-green-45: color-mix(in srgb, var(--chem-green) 45%, transparent);

    /* Chem Burgundy */ 
    --chem-burgundy-04: color-mix(in srgb, var(--chem-burgundy) 4%, transparent);
    --chem-burgundy-06: color-mix(in srgb, var(--chem-burgundy) 6%, transparent);
    --chem-burgundy-08: color-mix(in srgb, var(--chem-burgundy) 8%, transparent);
    --chem-burgundy-10: color-mix(in srgb, var(--chem-burgundy) 10%, transparent);
    --chem-burgundy-12: color-mix(in srgb, var(--chem-burgundy) 12%, transparent);
    --chem-burgundy-15: color-mix(in srgb, var(--chem-burgundy) 15%, transparent);
    --chem-burgundy-20: color-mix(in srgb, var(--chem-burgundy) 20%, transparent);
    --chem-burgundy-25: color-mix(in srgb, var(--chem-burgundy) 25%, transparent);
    --chem-burgundy-30: color-mix(in srgb, var(--chem-burgundy) 30%, transparent);
    --chem-burgundy-35: color-mix(in srgb, var(--chem-burgundy) 35%, transparent);
    --chem-burgundy-40: color-mix(in srgb, var(--chem-burgundy) 40%, transparent);
    --chem-burgundy-45: color-mix(in srgb, var(--chem-burgundy) 45%, transparent);

    /* ----------------------------------------------------------------------
       HARMONIZING PALETTE — Section-specific themes
       --emerald-embrace: Applications page, category cards, light sections
       --midnight-slate: Dark cards on emerald section (index)
       --coral-pink: Card accents on emerald section (index)
       ---------------------------------------------------------------------- */
    --emerald-embrace: #0A6F69;
    --emerald-embrace-4: color-mix(in srgb, var(--emerald-embrace) 4%, transparent);
    --emerald-embrace-6: color-mix(in srgb, var(--emerald-embrace) 6%, transparent);
    --emerald-embrace-8: color-mix(in srgb, var(--emerald-embrace) 8%, transparent);
    --emerald-embrace-10: color-mix(in srgb, var(--emerald-embrace) 10%, transparent);
    --emerald-embrace-12: color-mix(in srgb, var(--emerald-embrace) 12%, transparent);
    --emerald-embrace-15: color-mix(in srgb, var(--emerald-embrace) 15%, transparent);
    --emerald-embrace-25: color-mix(in srgb, var(--emerald-embrace) 25%, transparent);
    --emerald-embrace-35: color-mix(in srgb, var(--emerald-embrace) 35%, transparent);
    --emerald-embrace-50: color-mix(in srgb, var(--emerald-embrace) 50%, transparent);
    --emerald-embrace-75: color-mix(in srgb, var(--emerald-embrace) 75%, transparent);
    --terracotta: #C27D56;
    --cream: #F1E4C3;
    --midnight-slate: #1A2A2D;
    --coral-pink: #FF7F70;

    /* ----------------------------------------------------------------------
       ANY PAGE — Colors I find interesting and may use if it works
       These three are triadic colors so i may use them cards etc.
       ---------------------------------------------------------------------- */
    --dark-sapphire: #0a146f;
    --purple-curse: #6f0a6b;
    --worn-olive: #6c6f0a;

    --purple-curse-04: color-mix(in srgb, var(--purple-curse) 4%, transparent);
    --purple-curse-06: color-mix(in srgb, var(--purple-curse) 6%, transparent);
    --purple-curse-08: color-mix(in srgb, var(--purple-curse) 8%, transparent);
    --purple-curse-10: color-mix(in srgb, var(--purple-curse) 10%, transparent);
    --purple-curse-12: color-mix(in srgb, var(--purple-curse) 12%, transparent);
    --purple-curse-15: color-mix(in srgb, var(--purple-curse) 15%, transparent);
    --purple-curse-20: color-mix(in srgb, var(--purple-curse) 20%, transparent);
    --purple-curse-25: color-mix(in srgb, var(--purple-curse) 25%, transparent);
    --purple-curse-30: color-mix(in srgb, var(--purple-curse) 30%, transparent);
    --purple-curse-35: color-mix(in srgb, var(--purple-curse) 35%, transparent);
    --purple-curse-40: color-mix(in srgb, var(--purple-curse) 40%, transparent);
    --purple-curse-45: color-mix(in srgb, var(--purple-curse) 45%, transparent);

    /* ----------------------------------------------------------------------
       MONOTONE PALETTE — Colors I find interesting and may use if it works
       These three are triadic colors so i may use them cards etc.
       ---------------------------------------------------------------------- */
    --off-white: #f5f5f5;
    --light-gray: #999;

    /* ----------------------------------------------------------------------
       APPLICATIONS PAGE — Muted text colors (derived from emerald)
       Change --emerald-embrace; these are complementary muted tones.
       ---------------------------------------------------------------------- */
    --applications-lead: #3d5c5a;
    --applications-intro: #4a5c5a;

     /* ----------------------------------------------------------------------
       ANY PAGE — Vibrant colors 
       Some Vibrant colors that could be well suited to 
       some aspects of the site.
       ---------------------------------------------------------------------- */
    --lime-green: #c5d87c;


    /* ----------------------------------------------------------------------
       PRIVATE SEARCH — Colors for the tags/pills/badges.
       ---------------------------------------------------------------------- */
    --blue-gray: #44546a;
    --green-leaf: #70ad47;
    --blue-pilot: #4472c4;
    --orange-tiger: #ed7d31;
    --gray-cloud: #A5A5A5;

    /* ----------------------------------------------------------------------
       PLYR vars (read by the Vidstack Plyr layout) — Uses --red for Samia branding
       Include Vidstack's plyr.css (https://cdn.vidstack.io/plyr.css) before stylesheet.css
       ---------------------------------------------------------------------- */
    --plyr-color-main: var(--red);
    --plyr-video-progress-buffered-background: var(--red-25);
    --plyr-video-control-background-hover: var(--red);
    --plyr-audio-control-background-hover: var(--red);
    --plyr-control-toggle-checked-background: var(--red);
    --plyr-focus-visible-color: var(--red);
    --plyr-range-fill-background: var(--red);
    --plyr-range-thumb-shadow: 0 1px 1px var(--red-15), 0 0 0 1px var(--red-20);

    /* Optional: ACF Aesthetics (see samia_inline_theme_aesthetics_css) */
    --samia-ui-scale: 1;
}

html {
    font-size: calc(100% * var(--samia-ui-scale, 1));
}

/* Zschimmer & Schwarz (and variants) — wrapped by scripts/i18n.js */
.zs-brand-name {
    color: var(--chem-blue);
    font-weight: inherit;
}

a .zs-brand-name,
a.zs-brand-name {
    color: var(--chem-blue);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Akshar', sans-serif;
    background: var(--black);
    color: var(--white);
}

/* Subpages: light background so no black strips on desktop sides */
body.subpage {
    background: linear-gradient(to right, var(--leather-cream) 0%, var(--background) 12%, var(--background) 88%, var(--leather-cream) 100%);
    color: var(--text);
}

body.legal-subpage {
    background: var(--background);
    color: var(--text);
}

h1, h2, h3, h4, h5, h6,
.video-hero-title,
.section-anniversary h2,
.content-card-body h3,
.work-cta-inner h2,
.contact-column h2,
.page-content-new h1 {
    font-family: 'Aleo', serif;
}

/* English ordinal suffixes (1st, 2nd, 3rd, …) via samia_format_en_ordinals / i18n */
.page-content-new h1 sup,
.page-content-new h2 sup,
.footer sup {
    font-size: 0.65em;
    line-height: 0;
    position: relative;
    vertical-align: super;
}

/* === HEADER / NAVBAR ===
   Colors: --red (nav hover), --white/--black (scrolled state), --text
   Submenu: --red-08 (hover bg), --red (link hover) */
   /* If you are admin disabling top: 0; will help you see the navbar better but if you are a normal user it moves the navbar slighly lower, it will look bad.
   */
.header {
    position: fixed;
    top: 0; 
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease;
}

@media (min-width: 769px) and (max-width: 1240px) {
    .header {
        padding: 0.85rem 1.35rem;
    }

    .nav-links-wrap {
        gap: 0.65rem;
    }

    .nav-links {
        gap: 0.85rem 1.1rem;
    }

    .nav-links > li > a,
    .nav-links > li > .nav-parent-link {
        font-size: 0.92rem;
    }

    
}

/* === Bento grid (career page collage) === */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 133.9px;
    grid-auto-flow: dense;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
}

.bento .career-page__collage-item {
    margin: 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Wide images (landscape ratio ≥ 1.5) — span 2 columns */
.bento .career-page__collage-item.bento-item--wide {
    grid-column: span 2;
}

/* Tall images (portrait ratio ≤ 0.75) — span 2 rows */
.bento .career-page__collage-item.bento-item--tall {
    grid-row: span 2;
}

/* Square images — 1×1 */
.bento .career-page__collage-item.bento-item--square {
    grid-column: span 1;
    grid-row: span 1;
}

.bento .career-page__collage-frame {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
}

/* Career bento tiles: cover frame, centered crop */
.bento .career-page__collage-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.bento .career-page__collage-item:hover .career-page__collage-frame img {
    transform: scale(1.05);
}

@media (max-width: 1047px) {
    .bento {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: minmax(131px, 16px);
    }
}

/* Bento breakpoints — readable cells on tablet/mobile */
@media (max-width: 1024px) {
    .bento {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: minmax(100px, 16vw);
    }
}

@media (max-width: 1023px) {
    .bento {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: minmax(128px, 16vw);
    }
}

@media (max-width: 960px) {
    .bento {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: minmax(60px, 15vw);
    }
}

@media (max-width: 767px) {
    .bento {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        grid-auto-rows: minmax(60px, 15vw);
        gap: 0.45rem;
        padding: 0.42rem;
    }
}

@media (max-width: 420px) {
    .bento {
        grid-auto-rows: minmax(44px, 16vw);
        
    }
}

/* Bento-linked galleries: undo fixed 4/3 thumbnail box */
.gallery--bento .gallery-item--bento {
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery--bento .gallery-item--bento img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-wrap.gallery-bento-cell {
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

/* Gallery bento grid: rows sized by grid-auto-rows + content (not parent stretch). */
.gallery--bento .bento.gallery-bento-inner {
    height: auto;
    min-height: 0;
}

/* Mirror career collage spans for gallery figures (.gallery-bento-cell + bento-item--*). */
.gallery--bento .gallery-bento-inner figure.gallery-bento-cell {
    margin: 0;
    min-width: 0;
    min-height: 0;
}

.gallery--bento .gallery-bento-inner figure.gallery-bento-cell.bento-item--wide {
    grid-column: span 2;
}

.gallery--bento .gallery-bento-inner figure.gallery-bento-cell.bento-item--tall {
    grid-row: span 2;
}

.gallery--bento .gallery-bento-inner figure.gallery-bento-cell.bento-item--square {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item-wrap.gallery-bento-cell .gallery-item--bento {
    flex: 1;
    min-height: 120px;
}

/* Production / Laboratories — constrain reading width */
.production-page .page-content-inner,
.lab-page .page-content-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
    box-sizing: border-box;
}

.production-page .page-section:first-of-type .page-lead,
.lab-page .page-section:first-of-type,
.lab-page h1:first-of-type {
    margin-top: 0;
}

.page-section.page-section--gallery {
    margin-top: 2rem;
}

/* Inline gallery captions: match lightbox chip; corner follows Options / ACF */
.gallery-item-wrap.samia-gallery-item--overlay-caption {
    position: relative;
}

.gallery-item-wrap.samia-gallery-item--overlay-caption .image-caption.image-caption--overlay-chip {
    position: absolute;
    z-index: 2;
    margin: 0;
    max-width: min(94%, 20rem);
    padding: 0.45rem 0.65rem;
    font-size: 0.84rem;
    line-height: 1.35;
    font-style: normal;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    border-radius: 6px;
    border-left: none;
    padding-left: 0.65rem;
    box-sizing: border-box;
    pointer-events: none;
}

.samia-inline-caption--tl .image-caption.image-caption--overlay-chip {
    top: 8px;
    left: 8px;
}

.samia-inline-caption--tr .image-caption.image-caption--overlay-chip {
    top: 8px;
    right: 8px;
}

.samia-inline-caption--bl .image-caption.image-caption--overlay-chip {
    bottom: 8px;
    left: 8px;
}

.samia-inline-caption--br .image-caption.image-caption--overlay-chip {
    bottom: 8px;
    right: 8px;
}

ul#nav-sub-lang {
        min-width: max-content;
    }

.header__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 1 auto;
    min-width: 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Policy pages: logo only, no navbar */
.header-policy {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 2rem;
    background: var(--background);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-policy__logo {
    display: block;
}

.header-policy__logo img {
    height: 56px;
    width: auto;
    display: block;
}

.policy-page .page-content-new {
    padding-top: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Hide nav logo at top of index (hero already has logo); show when scrolled */
.header:not(.scrolled) .nav-logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.header.scrolled .nav-logo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-logo img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}

.header.scrolled .nav-logo img {
    filter: none;
}

/* Mobile: main nav logo coin (Samia payoff ↔ ZS); desktop keeps single image */
.nav-logo-coin {
    display: none;
}

.nav-logo-desktop {
    display: block;
}

.nav-logo-coin__axis {
    transform-style: preserve-3d;
}

.nav-logo-coin__face {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-coin__face img {
    max-width: min(200px, 42vw);
}

@media (max-width: 385px) {
    .nav-logo-coin {
        display: block;
        perspective: 200px;
        width: min(200px, 42vw);
        height: 44px;
    }

    .nav-logo-desktop {
        display: none !important;
    }

    .nav-logo-coin__axis {
        position: relative;
        width: 100%;
        height: 100%;
        animation: navZsLogoCoin var(--nav-zs-logo-spin-duration, 16s) ease-in-out infinite;
    }

    .nav-logo-coin__face {
        position: absolute;
        inset: 0;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .nav-logo-coin__face--back {
        transform: rotateY(180deg);
    }

    body.nav-zs-spin-style--fade .nav-logo-coin__axis {
        animation-name: navZsLogoCoinFade;
    }
}

@media (min-width: 768px) {
    .nav-logo-coin {
        display: none !important;
    }

    .nav-logo-desktop {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-logo-coin__axis {
        animation: none !important;
    }

    .nav-logo-coin__face--back {
        display: none;
    }

    .nav-logo-coin__face--front {
        transform: none;
    }
}

.nav-center-cluster {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 1 auto;
    justify-content: center;
    min-width: 0;
    margin: 0 0.35rem;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .nav-center-cluster {
        transition: max-width 0.2s ease, opacity 0.2s ease;
    }
}

.header.scrolled .nav-center-cluster {
    max-width: min(400px, 42vw);
    opacity: 1;
}

.nav-slogan {
    font-size: 1rem;
    font-style: italic;
    color: var(--black);
    margin: 0;
    min-width: 0;
}

.nav-zs-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 140px;
}

.nav-zs-logo {
    width: 40px;
    height: auto;
    display: block;
    transform-style: preserve-3d;
    backface-visibility: visible;
    animation: navZsLogoCoin var(--nav-zs-logo-spin-duration, 16s) ease-in-out infinite;
}

@keyframes navZsLogoCoin {
    0% { transform: rotateY(0deg); }
    15% { transform: rotateY(0deg); }
    22% { transform: rotateY(180deg); }
    35% { transform: rotateY(360deg); }
    42% { transform: rotateY(360deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes navZsLogoCoinFade {
    0% { transform: rotateY(0deg); opacity: 1; }
    12% { transform: rotateY(0deg); opacity: 1; }
    18% { transform: rotateY(180deg); opacity: 0; }
    26% { transform: rotateY(180deg); opacity: 0; }
    32% { transform: rotateY(360deg); opacity: 1; }
    40% { transform: rotateY(360deg); opacity: 1; }
    100% { transform: rotateY(360deg); opacity: 1; }
}

body.nav-zs-spin-style--fade .nav-zs-logo {
    animation-name: navZsLogoCoinFade;
}

@media (prefers-reduced-motion: reduce) {
    .nav-zs-logo {
        animation: none;
        opacity: 1;
    }

    body.nav-zs-spin-style--fade .nav-zs-logo {
        animation: none;
    }
}

@media (max-width: 768px) {
    .nav-zs-logo-wrap {
        display: none;
    }
}

.nav-slogan .slogan-marquee {
    overflow: visible;
    display: block;
    width: 105%;
}

.video-hero-slogan .slogan-marquee {
    overflow: visible;
}

.nav-slogan .slogan-marquee-text,
.video-hero-slogan .slogan-marquee-text {
    display: inline-block;
    white-space: normal;
}

.nav-links-wrap {
    margin-left: auto;
    display: flex;
    align-items: flex-end;
    /* gap: 1rem; */
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-reserved-pill__label {
    white-space: nowrap;
    padding-right: 0.15rem;
    display: block;
}

a.nav-parent-link.nav-reserved-pill.nav-reserved-pill--logged.nav-reserved-pill-link--adjust {
    padding: 0;
}

a.nav-parent-link.nav-reserved-pill.nav-reserved-pill--logged.nav-reserved-pill-link--adjust:hover {
    color: var(--red);
}

@media (max-width: 769px){
    .nav-links {
        flex-direction: column;
        gap: 0;
        align-items: normal;
    }

    /* .nav-reserved-pill__label {
        white-space: nowrap;
        padding-right: 0.15rem;
        display: block;
    } */
}



span.samia-tag-pill__hint {
    color: var(--black) !important;
    text-align: center;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.3s ease;
}

.header.scrolled .nav-links a {
    color: var(--black);
}


.nav-links a:hover {
    color: var(--red);
}

.header.scrolled .nav-links a:hover {
    color: var(--red);
}

.nav-links a.nav-link--active {
    color: var(--red);
}

.header.scrolled .nav-links a.nav-link--active {
    color: var(--red);
}

.nav-links a.nav-link--sustainability.nav-link--active {
    color: var(--emerald-embrace) !important;
}

.header.scrolled .nav-links a.nav-link--sustainability.nav-link--active {
    color: var(--emerald-embrace) !important;
}

@media (min-width: 769px) {
    .nav-reserved-pill__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (max-width: 768px) {
    .nav-reserved-pill__label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
    }
}

/* Nav submenu dropdown (template 5a) — desktop: hover; mobile: accordion */
.nav-item-has-submenu {
    position: relative;
}

/* Bridge gap so hover doesn't break when moving mouse to submenu */
.nav-item-has-submenu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.5rem;
    height: 0.5rem;
}

.nav-submenu-toggle {
    display: none;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(2px);
    margin-top: 0;
    /* padding: 0.5rem 0; */
    min-width: 200px;
    max-height: min(70vh, 22rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--red-06);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 500;
    color: var(--black);
    -webkit-overflow-scrolling: touch;
}

.nav-submenu.nav-submenu-anni {
    padding: 0.5rem 0;
}

@media (min-width: 769px) {
    .nav-item-has-submenu:focus-within .nav-submenu,
    .lang-dropdown .nav-item-has-submenu:focus-within .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

@media (min-width: 769px) {
    .nav-item-has-submenu:hover .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-submenu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-submenu li:last-child {
    border-bottom: none;
}

.nav-submenu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text) !important;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-submenu a:hover {
    background: var(--red-06);
    color: var(--red);
}

.nav-submenu a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: -2px;
    background: var(--red-06);
    color: var(--red);
}

.nav-submenu a.nav-link--active {
    color: var(--red) !important;
    background: var(--red-06);
}

.header.scrolled .nav-submenu a.nav-link--active {
    color: var(--red) !important;
    background: var(--red-06);
}

.header.scrolled .nav-submenu a {
    color: var(--text);
}

.lang-dropdown {
    position: relative;
}

/* button#langGlobeBtn {
    /* color: var(--anniv-exp-gold);
} */

.lang-globe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-globe-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.header.scrolled .lang-globe-btn {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--gray);
}

.header.scrolled .lang-globe-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--black);
}

.lang-globe-btn:hover svg {
    color: var(--red);
}

@media (min-width: 769px) {
    .lang-dropdown .nav-item-has-submenu:hover .nav-submenu,
    .lang-dropdown .nav-item-has-submenu:focus-within .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-item--reserved.nav-item-has-submenu:hover .nav-submenu,
    .nav-item--reserved.nav-item-has-submenu:focus-within .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-submenu .lang-toggle-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 1.1rem;
    margin: 0;
    background: none;
    border: none;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    color: inherit;
}

.nav-submenu .lang-toggle-btn:hover {
    color: var(--white);
    background: var(--red);
}

/* Reserved area — pill (icon + label) */
.nav-item--reserved {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.nav-item--reserved.nav-item-has-submenu .nav-submenu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .nav-item--reserved.nav-item-has-submenu .nav-submenu-toggle {
        display: inline-flex;
        justify-content: flex-end;
    }
}

.nav-reserved-pill,
a.nav-parent-link.nav-reserved-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* padding: 0.32rem 1rem 0.32rem 0.32rem; */
    border-radius: 999px;
    /* border: 1px solid rgba(255, 255, 255, 0.52); */
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-reserved-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.header.scrolled .nav-reserved-pill,
.header.scrolled a.nav-parent-link.nav-reserved-pill {
    border-color: rgba(0, 0, 0, 0.18);
    color: var(--gray);
}

.header.scrolled .nav-reserved-pill:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--black);
}

.nav-reserved-pill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.42);
    flex-shrink: 0;
}

.header.scrolled .nav-reserved-pill__icon {
    border-color: rgba(0, 0, 0, 0.12);
}

.nav-reserved-pill__label {
    white-space: nowrap;
    padding-right: 0.15rem;
}

@media (max-width: 768px) {
    .nav-item--reserved {
        margin-top: 0.25rem;
        margin-left: 0;
        width: 100%;
    }

    .nav-item--reserved .nav-reserved-pill,
    .nav-item--reserved a.nav-parent-link.nav-reserved-pill {
        width: 100%;
        justify-content: flex-start;
        border-radius: 14px;
        border-color: rgba(227, 30, 36, 0.35);
        background: rgba(227, 30, 36, 0.08);
        color: var(--text, #111);
        padding-left: 10px !important;
    }

    .nav-item--reserved .nav-reserved-pill__icon {
        border-color: rgba(0, 0, 0, 0.14);
        color: var(--text, #111);
    }

    .header.scrolled .nav-item--reserved .nav-reserved-pill,
    .header.scrolled .nav-item--reserved a.nav-parent-link.nav-reserved-pill {
        border-color: rgba(227, 30, 36, 0.45);
        color: var(--text, #111);
    }
}

.mobile-menu-only {
    display: none !important;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.35rem;
    min-width: 120px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.35rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 200;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.lang-dropdown-menu .lang-toggle-btn {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--black) !important;
    text-align: left;
}

.lang-dropdown-menu .lang-toggle-btn:hover {
    background: var(--red-08);
    color: var(--red);
}

.lang-dropdown-menu .lang-toggle-btn.active {
    background: var(--red-12);
    color: var(--red);
}

.lang-toggle {
    display: flex;
    gap: 0;
    margin-left: 0.5rem;
}

.lang-toggle-mobile {
    display: none;
}

.lang-toggle-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-toggle-btn:first-child {
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.lang-toggle-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.lang-toggle-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.header.scrolled .lang-toggle-btn {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--gray);
}

.header.scrolled .lang-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--black);
}

.header.scrolled .lang-toggle-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* Hamburger - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.scrolled .hamburger span {
    background: var(--black);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-link--sustainability:hover {
	color: var(--emerald-embrace) !important;
}

.header .nav-links:active {
    color: red;
}


@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .lang-dropdown {
        display: none;
    }

    .lang-toggle-mobile {
        display: flex;
    }

    /* Body scroll lock when side sheet is open (fixes iOS scroll bleed) */
    body.nav-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links-wrap {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 280px;
        max-width: 85vw;
        height: 100%;
        height: 100dvh;
        height: 100vh;
        min-height: -webkit-fill-available;
        background: var(--white);
        padding: 5rem 1.5rem 2rem;
        margin: 0;
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        -webkit-transition: -webkit-transform 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 105;
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .nav-links-wrap.open {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        flex: 0 0 auto;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        color: var(--black);
        font-size: 1rem;
    }

    .nav-links a:hover {
        color: var(--red);
    }

    /* Nav submenu - mobile (accordion in slide-out) */
    .nav-item-has-submenu {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        background: transparent;
    }

    .nav-item-has-submenu::before {
        display: none;
    }

    .nav-item-has-submenu .nav-parent-link {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        font-weight: 500;
    }

    .nav-item-has-submenu .nav-submenu-toggle {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 48px;
        min-width: 48px;
        height: 48px;
        padding: 0;
        background: none;
        border: none;
        color: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .nav-item-has-submenu .nav-submenu-toggle:hover {
        color: var(--red);
    }

    .nav-item-has-submenu.open .nav-submenu-toggle {
        color: var(--red);
    }

    .nav-item-has-submenu .nav-submenu {
        order: 3;
        flex-basis: 100%;
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        padding-left: 1.25rem;
        padding-right: 0.75rem;
        padding-bottom: 0.75rem;
        padding-top: 0.25rem;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--red-04);
        border-left: 3px solid var(--red-25);
        margin-left: 0;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item-has-submenu.open .nav-submenu {
        max-height: 340px;
        visibility:visible;
    }

    /* Reserved pill + submenu: single block (radius + background continuity) */
    .nav-item--reserved.nav-item-has-submenu .nav-submenu {
        background: rgba(227, 30, 36, 0.08);
        border-left: none;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 0;
        border-radius: 0 0 14px 14px;
        margin-top: -1px;
        margin-bottom: 20px;
    }

    .nav-item--reserved.nav-item-has-submenu.open .nav-reserved-pill,
    .nav-item--reserved.nav-item-has-submenu.open a.nav-parent-link.nav-reserved-pill,
    .header.scrolled .nav-item--reserved.nav-item-has-submenu.open .nav-reserved-pill,
    .header.scrolled .nav-item--reserved.nav-item-has-submenu.open a.nav-parent-link.nav-reserved-pill {
        border-radius: 14px 14px 0 0;
    }

    .nav-submenu li {
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-submenu li:last-child {
        border-bottom: none;
    }

    .nav-submenu a {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 0.75rem 0;
        padding-right: 0.35rem;
        min-height: 44px;
        font-size: 1rem;
        color: var(--text);
        opacity: 1;
        -webkit-text-fill-color: var(--text);
        transition: color 0.2s ease;
    }

    .nav-links-wrap.open .nav-submenu a {
        color: var(--text);
    }

    .nav-submenu a.nav-link--active,
    .nav-links-wrap.open .nav-submenu a.nav-link--active {
        color: var(--red) !important;
        -webkit-text-fill-color: var(--red);
        background: var(--red-06);
    }

    .nav-submenu a:hover {
        color: var(--red);
    }

    .nav-submenu-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    .nav-submenu-toggle svg {
        transition: transform 0.2s ease;
    }

    .nav-links-wrap .lang-toggle {
        margin-top: 1.1rem;
        margin-left: 0;
        flex: 0 0 auto;
        gap: 0;
    }

    .nav-links-wrap .lang-toggle-btn {
        border-color: rgba(0, 0, 0, 0.2);
        color: var(--black);
    }

    .nav-links-wrap .lang-toggle-btn:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .nav-links-wrap .lang-toggle-btn.active {
        background: var(--red);
        border-color: var(--red);
        color: var(--white);
    }

    /* Below .header (z-index 100) so chrome stays clickable; above in-flow main content */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 90;
    }

    .nav-overlay.open {
        opacity: 1;
        visibility: visible;
    }
}

@media (min-width: 769px) {
    .nav-overlay {
        display: none !important;
    }
}

/* === VIDEO HERO === */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
}

.video-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
    transform: scale(1.1);
}

.video-hero-overlay {
    position: absolute;
    inset: 0;
    --vho-t: 0.28;
    --vho-b: 0.48;
    --vho-blur: 6px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, var(--vho-t)) 0%,
        rgba(0, 0, 0, var(--vho-b)) 100%
    );
    backdrop-filter: blur(var(--vho-blur));
    -webkit-backdrop-filter: blur(var(--vho-blur));
    z-index: 1;
}

.video-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 3rem;
    gap: 1.25rem;
}

.video-hero-logo {
    width: clamp(180px, 45vw, 570px);
    height: auto;
    display: block;
    filter: drop-shadow(8px 8px 10px var(--light-gray));
}

.video-hero-title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.video-hero-accent {
    color: var(--secondary);
}

.video-hero-accent .zs-brand-name{
    color: var(--secondary);
}

.video-hero-slogan {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    margin: 0 auto;
    text-align: center;
}

.video-hero-slogan .slogan-marquee {
    display: inline-block;
    margin: 0 auto;
}

/* Slogan marquee: scroll with pauses (mobile video hero only; header .nav-slogan stays static/wrapped). */
@keyframes slogan-marquee-scroll {
    0%, 15% { transform: translateX(0); }
    15%, 50% { transform: translateX(-100%); }
    50%, 60% { transform: translateX(-100%); }
    60%, 65% { transform: translateX(0); }
    65%, 100% { transform: translateX(0); }
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    animation: bounce 2s ease infinite;
}

.scroll-hint svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.6);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 768px) {
    /* Keep logo + hamburger on one row; header slogan is static (readable wrap), no marquee */
    .header__brand {
        flex: 1 1 auto;
        min-width: 0;
        align-items: center;
    }

    .header .nav-logo {
        flex-shrink: 0;
    }

    .header.scrolled .nav-center-cluster {
        max-width: min(200px, calc(100vw - 10.5rem));
        margin-left: 0.35rem;
        margin-right: 0.25rem;
    }

    .header .nav-slogan {
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .header .nav-slogan .slogan-marquee {
        max-width: 100%;
        width: 100%;
        overflow: visible;
        display: block;
    }

    .header .nav-slogan .slogan-marquee-text {
        white-space: normal;
        animation: none;
        will-change: auto;
        transform: none;
    }

    .hamburger {
        flex-shrink: 0;
        align-self: center;
    }

    /* .video-hero-slogan .slogan-marquee {
        overflow: hidden;
        max-width: min(300px, 95vw);
        margin-left: auto;
        margin-right: auto;
    } */

    /* .video-hero-slogan .slogan-marquee-text {
        animation: slogan-marquee-scroll 18s ease-in-out infinite;
        will-change: transform;
    } */

    .video-hero {
        height: 75%;
    }

    .scroll-hint {
        display: none;
    }

    .section-anniversary, .anniversary-inner {
        height: 75%;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .video-hero-slogan .slogan-marquee-text {
        animation: none;
        will-change: auto;
    }
}

@media (min-width: 769px) {
    .nav-slogan .slogan-marquee-text,
    .video-hero-slogan .slogan-marquee-text {
        animation: none;
        will-change: auto;
    }
}



/* === 50th ANNIVERSARY SECTION === */
.section-anniversary {
    padding: 4rem 2rem;
    background: var(--background);
    color: var(--text);
}

.anniversary-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    border: 1px dashed var(--accent);
    padding: 1.25rem;
    border-radius: 25px;
}

.anniversary-inner:hover {
    border: 1px double red;
    box-shadow: 2px 10px 20px var(--red-25);
}

.anniversary-visual {
    flex: 1 1 300px;
}

.anniversary-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.anniversary-text {
    flex: 1 1 300px;
}

.section-anniversary--page {
    padding-top: 2rem;
}

.section-anniversary--page .anniversary-text h1 {
    font-size: clamp(2rem, 4.2vw, 2.25rem);
    color: var(--red);
    margin-bottom: 0.75rem;
}

.anniversary-lead {
    font-size: 1.05rem;
}

.anniversary-rich__body {
    max-width: 760px;
    margin: 0 auto;
}

.bilingual-rich__it,
.bilingual-rich__en {
    line-height: 1.75;
    color: var(--text);
}

.bilingual-rich__it p + p,
.bilingual-rich__en p + p {
    margin-top: 1rem;
}

.anniversary-text h2 {
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.anniversary-text p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* === CONTENT CARDS (template) ===
   Section variants:
   • .section-cards (no --light): emerald bg, midnight-slate cards, coral-pink accents
   • .section-cards--light: transparent bg, emerald cards OR white category cards
   • .content-card (default): chem-navy bg, --red border/hover
   • .content-card--category: white bg, emerald accents (applications page) */
.section-cards {
    padding: 4rem 2rem;
    background: var(--chem-blue);
    /* box-shadow: inset 3px 3px 8px var(--black); */
}

.section-cards h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

/* Cards on emerald section: Midnight Slate cards with Coral Pink button */
.section-cards:not(.section-cards--light) .content-card {
    background: var(--chem-navy);
    border-color: color-mix(in srgb, var(--chem-gold) 35%, transparent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.section-cards:not(.section-cards--light) .content-card:hover {
    border-color: var(--chem-gold);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--chem-gold) 20%, transparent);
}

.section-cards:not(.section-cards--light) .content-card-body h3 {
    color: var(--white);
}

.section-cards:not(.section-cards--light) .content-card-body p {
    color: rgba(255, 255, 255, 0.85);
}

.section-cards:not(.section-cards--light) .cards-grid--horizontal .content-card-body p {
    color: rgba(255, 255, 255, 0.85);
}

.section-cards:not(.section-cards--light) .content-card .btn-read {
    border-color: var(--chem-gold);
    color: var(--chem-gold);
    background: transparent;
}

.section-cards:not(.section-cards--light) .content-card .btn-read:hover {
    background: var(--chem-gold);
    color: var(--midnight-slate);
    border-color: var(--chem-gold);
}

/* Sustainability Theme Styles — emerald accents; subtle green-tinted panel on blue section */
.section-cards:not(.section-cards--light) .content-card.card--sustainability {
    background: color-mix(in srgb, var(--emerald-embrace) 18%, var(--chem-navy));
    border-color: color-mix(in srgb, var(--emerald-embrace) 35%, transparent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.section-cards:not(.section-cards--light) .content-card.card--sustainability:hover {
    border-color: var(--emerald-embrace);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--emerald-embrace) 20%, transparent);
}

.section-cards:not(.section-cards--light) .card--sustainability .content-card-body h3,
.section-cards:not(.section-cards--light) .card--sustainability .content-card-body p {
    color: var(--white);
}

.section-cards:not(.section-cards--light) .card--sustainability .btn-read {
    border-color: var(--emerald-embrace);
    color: var(--emerald-embrace);
}

.section-cards:not(.section-cards--light) .card--sustainability .btn-read:hover {
    border-color: var(--emerald-embrace);
    background: var(--emerald-embrace);
    color: var(--midnight-slate);
}



/* Light variant: for pages with light background (e.g. applications) */
.section-cards--light {
    background: transparent;
}

.section-cards--light h2 {
    color: var(--emerald-embrace);
}

.section-cards--light .content-card {
    background: var(--emerald-embrace);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Categories cards w/ on hover action*/
.section-cards--light .content-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px var(--purple-curse-25);
    color: var(--purple-curse);
}
.section-cards--light .content-card-body h3 {
    color: var(--white);
}

.section-cards--light .content-card-body p {
    color: rgba(255, 255, 255, 0.85);
}

/* Applications page: harmonize all colors with emerald */
.applications-page h1 {
    color: var(--purple-curse);
}

.applications-page .page-lead {
    color: var(--text);
}

.applications-page .breadcrumb a:hover {
    color: var(--red);
}

.applications-page .lab-intro p {
    color: var(--text);
}

.applications-page .lab-intro {
    max-width: 44rem;
    margin: 0 auto 1.5rem;
    text-align: center;
    font-size: 1.08rem;
    line-height: 1.65;
}

.applications-page .section-cards--light > h2 {
    margin: 2.25rem auto 1.35rem;
    text-align: center;
    font-family: 'Aleo', serif;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--purple-curse);
    max-width: 40rem;
}

.applications-page .applications-category-grid {
    margin-top: 0.25rem;
    padding-bottom: 0.5rem;
}

/* Application category pages: optional hero image (ACF) + readable scrim */
.applications-page.application-page--category-hero {
    position: relative;
}

.applications-page.application-page--category-hero::before {
    content: "";
    display: block;
    height: min(40vh, 280px);
    margin: 0 0 1.25rem;
    border-radius: 0 0 10px 10px;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.96) 55%, rgba(255, 255, 255, 1) 100%),
        var(--application-category-hero);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.applications-page.application-page--category-hero .breadcrumb,
.applications-page.application-page--category-hero h1,
.applications-page.application-page--category-hero .page-lead,
.applications-page.application-page--category-hero .page-section {
    position: relative;
    z-index: 1;
}

/* Anniversary template: badge on layout-original + Samia span injection (functions.php filter) */
.page-anniversary .anniversary-badge {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--chem-blue);
    margin-bottom: 0.5rem;
}

.page-anniversary .anniversary-brand-name {
    color: var(--red);
}

.page-anniversary .anniversary-brand-scs {
    color: var(--gray) !important;
}

/* a:visited {
    color: var(--purple-curse);
} */

/* .callout-info .callout-info--zs a:visited {
    color: var(--lime-green) !important;
} */

.footer .anniversary-brand-name,
.footer-pages .anniversary-brand-name {
    color: inherit;
    font-weight: inherit;
}

/* Applications hub — category links only (subpages use accordions) */
.applications-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-template-rows: auto;
}

a.applications-category-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-height: 6rem;
    justify-content: center;
    text-align: center;
    
}

.applications-category-link__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0 0.25rem;
}

.applications-category-link__text-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.applications-category-link__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--purple-curse);
}

.applications-category-link__desc {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--gray);
    font-weight: 400;
}

.applications-category-link__arrow {
    content: url("../assets/icons/caret-right.svg");
    
    flex-shrink: 0;
    color: var(--purple-curse);
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

a.applications-category-link__arrow svg {
    color: var(--white);
}

a.applications-category-link:hover .applications-category-link__arrow {
    
    transform: translateX(4px);
    opacity: 1;
    
}

/* Hub card with background image — hover blur + zoom */
a.applications-category-link--has-image {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 14rem;
    
}

a.applications-category-link--has-image:hover .applications-category-link__arrow {
    color: var(--lime-green);
    content: url("../assets/icons/caret-right-fill.svg");
}

.applications-category-link__bg {
    position: absolute;
    inset: 0;
    background-image: var(--hub-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.55s ease-in-out, filter 0.55s ease-in-out;
    z-index: 0;
}

.applications-category-link__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
    transition: background 0.35s ease-in-out;
}

a.applications-category-link--has-image .applications-category-link__body {
    position: relative;
    z-index: 2;
}

a.applications-category-link--has-image .applications-category-link__title {
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    
}
a.applications-category-link--has-image:hover .applications-category-link__title {
    color: var(--lime-green);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    
}

a.applications-category-link--has-image .applications-category-link__desc {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

a.applications-category-link--has-image:hover .applications-category-link__desc {
    color: var(--lime-green);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}


a.applications-category-link--has-image .applications-category-link__arrow {
    color: var(--white);
}

/* .applications-category-link__arrow-icon::after {
    content: url("../assets/icons/caret-right.svg");
}
.applications-category-link__arrow-icon.hover::after {
    content: url("../assets/icons/caret-right-fill.svg");
} */

a.applications-category-link--has-image:hover .applications-category-link__bg {
    transform: scale(1.06);
    filter: blur(2px) brightness(0.85);
}

a.applications-category-link--has-image:hover .applications-category-link__scrim {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.62) 100%);
    
}

.section-cards--light a.applications-category-link--has-image {
    background: transparent !important;
}

/* ============================================================
   Standalone SCS button — same look as hub cards, but separate
   (not part of the cards-grid), horizontally centered.
   ============================================================ */
.applications-scs-btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 2rem 0;
}

a.applications-scs-btn {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-height: 6rem;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 640px;
}

.applications-scs-btn__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0 0.25rem;
}

.applications-scs-btn__text-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.applications-scs-btn__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--purple-curse);
}

.applications-scs-btn__arrow {
    content: url("../assets/icons/caret-right.svg");
    flex-shrink: 0;
    color: var(--purple-curse);
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

a.applications-scs-btn:hover .applications-scs-btn__arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* With background image — same hover blur + zoom as hub cards */
a.applications-scs-btn--has-image {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 14rem;
    border-radius: 8px;
}

a.applications-scs-btn--has-image:hover .applications-scs-btn__arrow {
    color: var(--lime-green);
    content: url("../assets/icons/caret-right-fill.svg");
    
}

a.applications-scs-btn.applications-scs-btn--has-image:hover {
    border-color: var(--purple-curse);
    box-shadow: 0 8px 24px var(--purple-curse-15);
    transform: translateY(-2px);
}

.applications-scs-btn__bg {
    position: absolute;
    inset: 0;
    background-image: var(--hub-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.55s ease-in-out, filter 0.55s ease-in-out;
    z-index: 0;
}

.applications-scs-btn__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
    transition: background 0.35s ease-in-out;
}

a.applications-scs-btn--has-image .applications-scs-btn__body {
    position: relative;
    z-index: 2;
}

a.applications-scs-btn--has-image .applications-scs-btn__title {
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

a.applications-scs-btn--has-image:hover .applications-scs-btn__title {
    color: var(--lime-green);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

a.applications-scs-btn--has-image .applications-scs-btn__arrow {
    color: var(--white);
}

a.applications-scs-btn--has-image:hover .applications-scs-btn__bg {
    transform: scale(1.06);
    filter: blur(2px) brightness(0.85);
}

a.applications-scs-btn--has-image:hover .applications-scs-btn__scrim {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.62) 100%);
}

@media (max-width: 600px) {
    a.applications-scs-btn {
        max-width: 100%;
    }
}

/* Count-driven hub layout: 5 cards -> 3 on top, 2 centered on bottom.
   Specificity bumped via .applications-category-grid so .cards-grid base
   columns (declared later in this file) cannot override these layouts. */
.applications-category-grid.cards-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.applications-category-grid.cards-grid--3x2 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.applications-category-grid.cards-grid--tail2-centered {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
}
.applications-category-grid.cards-grid--tail2-centered > * {
    grid-column: span 2;
}
.applications-category-grid.cards-grid--tail2-centered > :nth-child(4) {
    grid-column: 2 / span 2;
}
.applications-category-grid.cards-grid--tail2-centered > :nth-child(5) {
    grid-column: 4 / span 2;
}

@media (max-width: 900px) {
    .applications-category-grid.cards-grid--2x2,
    .applications-category-grid.cards-grid--3x2,
    .applications-category-grid.cards-grid--tail2-centered {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .applications-category-grid.cards-grid--tail2-centered > *,
    .applications-category-grid.cards-grid--tail2-centered > :nth-child(4),
    .applications-category-grid.cards-grid--tail2-centered > :nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .private-filters__title {
        margin-right: 10px;
}
}

@media (max-width: 600px) {
    .applications-category-grid.cards-grid--2x2,
    .applications-category-grid.cards-grid--3x2,
    .applications-category-grid.cards-grid--tail2-centered {
        grid-template-columns: 1fr;
    }
}

.section-cards--light .content-card .btn-read {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
    background: transparent;
}

.section-cards--light .content-card .btn-read:hover {
    background: var(--white);
    color: var(--purple-curse);
    border-color: var(--white);
}

/* Category cards — minimal elevated style (applications) */
.section-cards--light .content-card--category {
    background: var(--white) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.section-cards--light .content-card--category:hover {
    border-color: var(--purple-curse);
    box-shadow: 0 8px 24px var(--purple-curse-15);
    transform: translateY(-2px);
}

.section-cards--light .content-card--category:hover .content-card-category-image svg {
    color: var(--white);
}

.content-card--category .content-card-category-image {
    margin: 0;
    border-radius: 0;
    background: var(--purple-curse);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    aspect-ratio: 16/10;
}

.content-card--category .content-card-category-image svg {
    width: 100%;
    height: 100%;
    max-width: 80px;
    max-height: 80px;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.section-cards--light .content-card--category .content-card-body h3 {
    color: var(--purple-curse);
}

.section-cards--light .content-card--category .content-card-body p {
    color: var(--gray);
}

.section-cards--light .content-card--category .btn-read {
    border-color: var(--purple-curse);
    color: var(--purple-curse);
    background: transparent;
}

.section-cards--light .content-card--category .btn-read:hover {
    background: var(--purple-curse);
    color: var(--white);
    border-color: var(--purple-curse);
}

.cards-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 2fr));
    gap: 2rem;
}

/* Cards grid layouts — add to .cards-grid, e.g. cards-grid cards-grid--2x2 */
.cards-grid--2x1 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
}
.cards-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.cards-grid--3x2 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.cards-grid--3x3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}
.cards-grid--4x2 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .cards-grid--2x1,
    .cards-grid--2x2,
    .cards-grid--3x2,
    .cards-grid--3x3,
    .cards-grid--4x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

/* Applications category / accordion grid — responsive */
.applicationsCardsGrid.cards-grid--category,
#applicationsCardsGrid.cards-grid--category,
#pigmentsCardsGrid.cards-grid--category {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-template-rows: auto;
    align-items: stretch;
}

.app-subpage-filter-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.app-subpage-filter-block .app-subpage-filter {
    margin-bottom: 1.5rem;
}

.app-filter-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.app-filter-item .app-card-accordion {
    flex: 1;
    height: 100%;
    align-self: stretch;
}

.app-filter-item .app-card-accordion__trigger {
    flex: 1;
    align-items: stretch;
}

.app-filter-item .app-card-accordion__body {
    flex: 1;
}

/* Applications: card + accordion (expandable description + category tags) */
.section-cards--light .app-card-accordion {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    height: 100%;
    align-self: stretch;
    border-radius: 8px;
}

.app-card-accordion--no-image .app-card-accordion__trigger-inner {
    width: 100%;
}

.app-card-accordion__trigger {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.app-card-accordion__trigger-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

@media (min-width: 480px) {
    .app-card-accordion__trigger-inner {
        flex-direction: row;
        align-items: stretch;
    }
}

.app-card-accordion__image {
    flex-shrink: 0;
}

.app-card-accordion__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-cards--light .app-card-accordion .content-card-image {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.app-card-accordion__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0.95rem;
    min-width: 0;
}

.app-card-accordion__heading-wrap {
    display: block;
}

.app-card-accordion__title {
    margin: 0 0 0.35rem;
    font-size: 1.12rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(2 * 1.12rem * 1.25);
}

.app-card-accordion__teaser {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--gray);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(2 * 0.9rem * 1.45);
}

.app-card-accordion__teaser-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--gray);
    margin-top: 0.3rem;
    opacity: 0.92;
}

.app-card-accordion.is-open .app-card-accordion__teaser-desc {
    display: none;
}

.app-card-accordion__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    flex-shrink: 0;
    color: var(--purple-curse);
}

.app-card-accordion__chevron svg {
    transition: transform 0.3s ease;
}

.app-card-accordion.is-open .app-card-accordion__chevron svg {
    transform: rotate(180deg);
}

.app-card-accordion__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.app-card-accordion.is-open .app-card-accordion__panel {
    grid-template-rows: 1fr;
}

.app-card-accordion__panel-inner {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    padding: 0 1rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.65);
}

.app-card-accordion__panel-foot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.app-card-accordion__desc {
    margin: 0 0 0.85rem;
    padding-top: 0.85rem;
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--text);
}

.app-card-accordion__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.app-card-accordion__tag {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--purple-curse);
    background: rgba(61, 92, 90, 0.07);
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

a.app-card-accordion__tag:hover {
    background: rgba(61, 92, 90, 0.2);
    color: var(--purple-curse);
}

.app-card-accordion__link {
    align-self: flex-start;
}

/* Horizontal cards: image left, title + text right — responsive */
.cards-grid--horizontal {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    align-items: stretch;
}

.cards-grid--horizontal .content-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cards-grid--horizontal .content-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cards-grid--horizontal .content-card-image {
    flex: 0 0 140px;
    width: 140px;
    min-width: 140px;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    flex-shrink: 0;
    align-self: flex-start; /* prevent stretch so aspect-ratio is preserved */
}

.cards-grid--horizontal .content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.cards-grid--horizontal .content-card:hover .content-card-image img {
    transform: scale(1.05);
}

.cards-grid--horizontal .content-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 0;
    padding: 0;
}

.cards-grid--horizontal .content-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.cards-grid--horizontal .content-card-body p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    
    /* Clamping Properties */
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    /* Move margin to parent if this doesn't work */
    margin-bottom: 0; 
}


.cards-grid--horizontal .content-card-body .btn-read {
    align-self: flex-end;
    margin-top: auto;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
}

/* Mobile: stack card content (image on top, text below) */
@media (max-width: 600px) {
    .cards-grid--horizontal .content-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
    }

    .cards-grid--horizontal .content-card-image {
        flex: 0 0 auto;
        width: 100%;
        min-width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        border-radius: 0;
    }

    .cards-grid--horizontal .content-card-body {
        padding: 1.25rem 1.5rem;
    }

    /* .cards-grid--horizontal .content-card-body p {
        -webkit-line-clamp: 4;
    } */
}

/* Last row: single card centered when total visible count is odd (modifier from front-page.php) — two-column widths only */
@media (min-width: 601px) and (max-width: 900px) {
    .cards-grid--horizontal.cards-grid--horizontal--odd-last .content-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: min(100%, 720px);
        width: 100%;
    }
}

/* Three-column desktop: last row of two cards centered (12-column grid) */
@media (min-width: 901px) {
    .cards-grid--horizontal.cards-grid--horizontal--3col-tail2 {
        grid-template-columns: repeat(12, 1fr);
        gap: 1.75rem;
    }

    .cards-grid--horizontal.cards-grid--horizontal--3col-tail2 .content-card {
        grid-column: span 4;
    }

    .cards-grid--horizontal.cards-grid--horizontal--3col-tail2 .content-card:nth-last-child(2) {
        grid-column: 3 / span 4;
    }

    .cards-grid--horizontal.cards-grid--horizontal--3col-tail2 .content-card:last-child {
        grid-column: 7 / span 4;
    }
}

.content-card {
    /* background: rgba(255, 255, 255, 0.05) !important; */
    border: 1px solid var(--red-30);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
    background-color: var(--chem-navy);
}

.content-card:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}

.content-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card-body {
    padding: 1.5rem;
}

.content-card-body h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.content-card-body p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-card-category-image {
    border-radius: 2% !important;
    margin: 1.5rem;
    overflow: hidden;
}

/* This styling for button will be used in other things */
.btn-read {
    display: inline-block;
    background: var(--red-20);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.callout-info {
    display: block;
    width: 100%;
    max-width: 100%;
    background: var(--chem-blue-06);
    border: 1px solid var(--chem-blue-20);
    border-left: 4px solid var(--chem-blue);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.65;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
}
.callout-info::before {
    content: "ⓘ Info";
    display: block;
    color: var(--chem-blue);
}

.callout-info.callout-info--sustainability {
    background: var(--emerald-embrace-6);
    border: 1px solid var(--chem-green-20);
    border-left: 4px solid var(--chem-green);
}
.callout-info.callout-info--sustainability::before {
    color: var(--chem-green);
}

.callout-info.callout-info--zs {
    background: var(--secondary-06);
    border: 1px solid var(--secondary-45);
    border-left: 4px solid var(--secondary);
}
.callout-info.callout-info--zs {
    padding-bottom: 0;
}

.callout-info.callout-info--zs::before {
    color: var(--chem-blue);
}

.callout-info--zs *::selection {
    background: var(--secondary-45);
    color: var(--chem-blue-45);
}

.callout-info.callout-info--zs b, .callout-info.callout-info--zs strong {
    color: var(--chem-blue);
    font-weight: 600;
}

.callout-info b,
.callout-info strong {
    color: var(--chem-blue);
    font-weight: 600;
}

@media (max-width: 768px) {
    .callout-info {
        margin: 1.5rem 0;
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

.btn-read:hover {
    background: var(--accent);
    color: var(--white) !important;
}

/* === WORK WITH US CTA ===
   Colors: --red background, --white text */
.section-work-cta {
    padding: 4rem 2rem;
    background: var(--red);
    text-align: center;
}

.work-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.work-cta-inner h2 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.work-cta-inner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.btn-cta {
    display: inline-block;
    background: var(--white);
    color: var(--red);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-cta:hover {
    background: var(--gray);
    color: var(--white);
}

a.btn-cta {
    text-decoration: none;
    text-align: center;
}

/* === MAP + CONTACT === */
.section-map-contact {
    padding: 4rem 2rem;
    background: var(--background);
    color: var(--text);
    box-shadow: inset 3px 3px 8px var(--black);
}

.map-contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.map-column {
    position: relative;
}

.map-column #contact-map {
    width: 100%;
    height: 400px;
    border-radius: 6px;
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
}

/* Inset "window" shadow — makes the map read as recessed under the container */
.map-column::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    border-radius: 6px;
    pointer-events: none;
    box-shadow: inset 0 0 30px -8px rgba(0, 0, 0, 0.45);
    z-index: 400;
}

.contact-map-carousel {
    margin-top: 1rem;
}

.contact-map-carousel__inner {
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: var(--white, #fff);
}

.contact-map-carousel .gallery-carousel {
    margin: 0;
}

.contact-map-carousel .gallery-carousel__track {
    min-height: 180px;
}

.contact-map-carousel .gallery-carousel__slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Keep Leaflet map below fixed navbar (z-index: 100) */
#contact-map.leaflet-container,
#samia-map.leaflet-container {
    z-index: 1;
}
.leaflet-container a {
    color: #0078A8;
    display: contents;
}

.leaflet-home-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0 10px 10px 0;
    background: var(--red);
    border: 1px solid var(--red);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.leaflet-home-btn:hover {
    background: var(--black);
    border-color: var(--black);
    cursor: pointer;
}

.leaflet-home-btn svg {
    color: var(--white);
}

/* === Samia nel Mondo — pulsing glow dot marker === */
.snm-glow-dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--glow-color, var(--red));
    animation: snm-glow-pulse 2s ease-out infinite;
    position: relative;
}

.snm-glow-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #fff;
}

@keyframes snm-glow-pulse {
    0%   { box-shadow: 0 0 0 0   var(--glow-color, var(--red)); opacity: 1; }
    70%  { box-shadow: 0 0 0 10px transparent; opacity: 0; }
    100% { box-shadow: 0 0 0 0   transparent; opacity: 0; }
}


.leaflet-popup-content .contact-map-popup__text {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.leaflet-popup-content .contact-map-popup__carousel {
    margin-top: 0.35rem;
    max-width: 360px;
}

.leaflet-popup-content .contact-map-popup__carousel .gallery-carousel__track {
    min-height: 90px;
}

.leaflet-popup-content .contact-map-popup__carousel .gallery-carousel__slide img {
    display: block;
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

.contact-column h2 {
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.accordion {
    margin-top: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: var(--red-06);
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.accordion-trigger:hover {
    background: var(--red-12);
}

.accordion-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion.open .accordion-body {
    max-height: 120px;
}

.accordion-body p {
    padding: 0 1rem 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

.accordion-body p:first-child {
    padding-top: 0.5rem;
}

.accordian-body a {
    text-decoration: none;
    color: var(--accent);
}

.accordian-body a:hover {
    text-decoration: underline;
}

.btn-contact-link {
    display: inline-block;
    margin-top: 0;
    padding: 0.6rem 1.25rem;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--red);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-contact-link:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.contact-column__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 1.25rem;
}

@media (max-width: 768px) {
    .contact-column__links {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .map-contact-inner {
        grid-template-columns: 1fr;
    }
    .map-column #contact-map {
        height: 300px;
    }
    .map-column::after {
        height: 300px;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
}

/* === FOOTER ===
   Colors: --black bg, --white/--gray text */
.footer {
    padding: 2rem;
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-pages {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-pages__title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.footer-pages__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.footer-pages__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-pages__links a:hover {
    color: var(--red);
}

.footer-legal {
    max-width: 700px;
    margin: 0 auto;
}

.footer-legal p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--red);
}

.footer-legal__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15em 0.35em;
    line-height: 1.5;
}

.footer-legal__sep {
    opacity: 0.55;
    user-select: none;
}

/* Site index template */
.page-sitemap h1 {
    margin-bottom: 0.75rem;
}

.page-sitemap .page-lead {
    max-width: 42rem;
    margin-bottom: 1.75rem;
    color: var(--gray);
    line-height: 1.65;
    font-size: 1.05rem;
}

.page-sitemap .sitemap-section__title {
    font-family: 'Aleo', serif;
    font-size: 1.35rem;
    margin: 1.75rem 0 0.85rem;
    color: var(--text);
}

.page-sitemap .sitemap-section:first-child .sitemap-section__title {
    margin-top: 0;
}

.page-sitemap .sitemap-section {
    margin-bottom: 2rem;
}

.page-sitemap .sitemap-section:last-child {
    margin-bottom: 0;
}

.page-sitemap .sitemap-section__empty {
    margin: 0 0 1rem;
    color: var(--gray);
    font-size: 0.98rem;
}

.page-sitemap .sitemap-nav {
    text-align: left;
    max-width: 44rem;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    background: var(--background);
    border: 1px solid var(--red-15);
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.page-sitemap .sitemap-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.page-sitemap .sitemap-list--root > .sitemap-list__item {
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
    border-bottom: 1px solid var(--red-08);
}

.page-sitemap .sitemap-list--root > .sitemap-list__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-sitemap .sitemap-list--nested {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--red-20);
}

.page-sitemap .sitemap-list__item {
    margin: 0.3rem 0;
    line-height: 1.5;
}

.page-sitemap .sitemap-list--nested .sitemap-list__item {
    margin: 0.25rem 0;
}

.page-sitemap .sitemap-list__item > a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
}

.page-sitemap .sitemap-list--nested .sitemap-list__item > a {
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--text);
}

.page-sitemap .sitemap-list--nested .sitemap-list__item > a:hover {
    color: var(--red);
}

.page-sitemap .sitemap-list__item > a:hover {
    text-decoration: underline;
}

@media (min-width: 900px) {
    .page-sitemap .sitemap-nav {
        max-width: 56rem;
    }

    .page-sitemap .sitemap-section .sitemap-list--root {
        column-count: 2;
        column-gap: 2.5rem;
    }

    .page-sitemap .sitemap-list--root > .sitemap-list__item {
        break-inside: avoid;
    }
}

/* Privacy policy — table of contents */
.privacy-toc {
    max-width: 40rem;
    margin: 1.5rem 0 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--red-20);
    border-radius: 8px;
    background: var(--background);
}

.privacy-toc__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.privacy-toc__list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text);
}

.privacy-toc__list a {
    color: var(--red);
    text-decoration: none;
}

.privacy-toc__list a:hover {
    text-decoration: underline;
}

/* Legal pages — minimal header (header-legal.php) */
.legal-header-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
    padding: 1.25rem 1rem 1rem;
    background: var(--background);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-content: space-between;
    align-items: center;
}

.legal-header-bar__logo-link {
    display: block;
    line-height: 0;
}

.legal-header-bar__lang {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
}

.legal-header-bar__lang .lang-toggle-btn {
    min-width: 2.5rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background: var(--white);
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.legal-header-bar__lang .lang-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.legal-header-bar__lang .lang-toggle-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.legal-header-bar__logo {
    max-width: min(280px, 72vw);
    height: auto;
    width: auto;
    display: block;
}

.samia-legal-header .page-content-new {
    padding-top: 2rem;
}

.whistle-pdf-link {
    margin-top: 0.75rem;
}

.whistle-pdf-link__anchor {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.whistle-pdf-link__anchor:hover {
    text-decoration: underline;
}

.whistle-pdf-link__icon {
    flex-shrink: 0;
    color: var(--accent);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === MODAL (legacy JS: .active; Bootstrap 5 uses .show on other .modal nodes) === */
#workWithUsModal.modal,
#newsModal.modal,
#newsletterModal.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#workWithUsModal.modal.active,
#newsModal.modal.active,
#newsletterModal.modal.active {
    opacity: 1;
    visibility: visible;
}

#workWithUsModal > .modal-backdrop,
#newsletterModal > .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

#workWithUsModal > .modal-content,
#newsletterModal > .modal-content {
    position: relative;
    background: var(--white);
    color: var(--text);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

#workWithUsModal .modal-close,
#newsletterModal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}

#workWithUsModal .modal-close:hover,
#newsletterModal .modal-close:hover {
    color: var(--red);
}

/* === NEWS MODAL === */
.news-modal {
    z-index: 1001;
}

.newsletter-modal {
    z-index: 1002;
}

.news-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.news-modal__content {
    position: relative;
    z-index: 1;
    background: var(--white);
    color: var(--text);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.news-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}

.news-modal__close:hover {
    color: var(--red);
}

/* Source templates: never paint in the document flow (backup if [hidden] is overridden). */
.news-detail-templates-root[hidden],
.news-detail-template[hidden] {
    display: none !important;
}

/* Cloned content inside the modal slot (clone has class news-detail-template removed by JS). */
.news-modal__slot > * {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 100%;
}

.news-modal__section {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.news-modal__title {
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 1.25rem;
}

.news-modal__body {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
    max-width: 100%;
    overflow: hidden;
}

.news-modal__body > * {
    max-width: 100%;
    overflow: hidden;
}

.news-modal__body p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 1rem;
}

.news-modal__body p:last-child {
    margin-bottom: 0;
}

.news-modal__body b {
    font-weight: 600;
    color: var(--red);
}

.news-modal__video {
    margin-top: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 60vh;
    background: #000;
}

.news-modal__video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

/* Gallery height + strip slide box (flex track); captions: see .gallery-carousel__slide-visual */
.news-modal .gallery-carousel,
.news-modal__body .gallery-carousel {
    width: 100%;
    max-width: 100%;
}

.news-modal .gallery-carousel__slide {
    max-height: 60vh;
    display: contents;
}

.news-modal .gallery-carousel__slide img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    display: block;
}

.news-modal .gallery-item {
    display: block;
    width: 100%;
}

/* News page: top banner + newsletter CTA */
.news-top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.65rem 1.25rem;
    background: rgba(229, 36, 31, 0.12);
    border-bottom: 1px solid rgba(229, 36, 31, 0.25);
    font-size: 0.9rem;
}

body.page-template-page-news-php .page-content-new,
body.page-news .page-content-new {
    padding-top: 2rem;
}

body.page-template-page-news-php.has-news-banner .page-content-new,
body.page-news.has-news-banner .page-content-new {
    padding-top: 5rem;
}

/* News banner in header (all / selected scopes): offset main content on non–News templates */
body:not(.page-template-page-news-php):not(.page-news).has-news-banner .page-content-new {
    padding-top: 4.5rem;
}

body.home.has-news-banner .video-hero {
    padding-top: 3.5rem;
}

@media (min-width: 769px) {
    .news-top-banner {
        top: 72px;
    }
}

body.has-news-banner .header {
    top: 0;
}

.news-top-banner__text {
    margin: 0;
    text-align: center;
    max-width: 60ch;
}

.news-top-banner__cta {
    flex-shrink: 0;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid var(--red);
    background: var(--white);
    color: var(--red);
    cursor: pointer;
    font-family: inherit;
}

.news-top-banner__cta:hover {
    background: var(--red);
    color: var(--white);
}

.newsletter-card {
    margin: 0 0 2rem;
    padding: 1.5rem 1.5rem 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--chem-blue-15);
    background: linear-gradient(145deg, var(--chem-blue-08) 0%, var(--white) 48%, var(--chem-blue-04) 100%);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);
    max-width: 42rem;
}

.newsletter-card__intro {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.55;
}

.newsletter-card__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
}

.newsletter-card__btn {
    padding: 0rem 15rem;
    border-radius: 8px;
    border: none;
    background: var(--red);
    color: var(--white);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(229, 36, 31, 0.25);
    transition: background 0.2s ease, transform 0.15s ease;
}

.newsletter-card__btn:hover {
    background: color-mix(in srgb, var(--red) 92%, black);
    transform: translateY(-1px);
}

.newsletter-card__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--chem-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.newsletter-card__link:hover {
    color: var(--red);
}

.newsletter-actions {
    margin-bottom: 1rem;
}

.btn-newsletter-open {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--red);
    background: transparent;
    color: var(--red);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-newsletter-open:hover {
    background: var(--red);
    color: var(--white);
}

.newsletter-modal__content {
    max-width: 520px;
}

.newsletter-modal__form label {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.newsletter-modal__form input[type="email"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    font: inherit;
}

.newsletter-modal__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.newsletter-modal__consent input {
    margin-top: 0.2rem;
}

.newsletter-modal__reassurance {
    cursor: text;
    text-align: center;
    font-size: 0.7rem;
    color: #a0a0a0;
}



@media (max-width: 768px) {
    .news-modal__content {
        padding: 1.5rem 1.25rem;
        max-height: 85vh;
    }

    .news-modal__title {
        font-size: 1.25rem;
    }
}

/* === GALLERY + LIGHTBOX (template) === */
.gallery {
    margin-bottom: 3rem;
}

.gallery-item-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
}



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-bento-empty {
    margin: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--gray, #555);
}

/* Gallery grid layouts — add to .gallery-grid, e.g. gallery-grid gallery-grid--2x1 */
.gallery-grid--2x1 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
}
.gallery-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.gallery-grid--3x2 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.gallery-grid--3x3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.gallery-item-wrap {
    display: flex;
    flex-direction: column;
}

.gallery-item {
    display: block;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, transform 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    border-color: var(--red);
    transform: scale(1.02);
}



.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Optional image caption — under image on page, in lightbox */
.image-caption {
    display: block;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--red);
    margin-top: 0.5rem;
    padding: 0.25rem 0;
    border-left: 3px solid var(--red);
    padding-left: 0.75rem;
}

.image-with-caption .image-caption,
.gallery-item-wrap .image-caption,
.gallery-carousel__slide .image-caption:not(.image-caption--overlay-chip),
.gallery-grid .image-caption {
    margin-top: 0.5rem;
}

/* Hide caption when empty — remove span or leave empty to omit caption */
.image-caption:empty {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

/* Row: prev | (image + aside) | next — caption only in .lightbox-aside */
.lightbox-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: min(96vw, 1400px);
    width: 100%;
}

.lightbox-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    flex: 0 1 auto;
    max-width: min(85vw, 900px);
    max-height: 90vh;
}

.lightbox-counter {
    position: absolute;
    top: -2.65rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    margin: 0;
    padding: 0.22rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--white, #fff);
    background: rgba(0, 0, 0, 0.55);
    border-radius: 6px;
    pointer-events: none;
}

.lightbox-counter:empty:not([hidden]) {
    visibility: hidden;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-content__caption {
    position: absolute;
    z-index: 2;
    margin: 0;
    max-width: min(92%, 28rem);
    padding: 0.45rem 0.65rem;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    border-radius: 6px;
}

.lightbox-content__caption[hidden] {
    display: none !important;
}

.lightbox.samia-lightbox-caption--tl .lightbox-content__caption {
    top: 12px;
    left: 12px;
}

.lightbox.samia-lightbox-caption--tr .lightbox-content__caption {
    top: 12px;
    right: 12px;
}

.lightbox.samia-lightbox-caption--bl .lightbox-content__caption {
    bottom: 12px;
    left: 12px;
}

.lightbox.samia-lightbox-caption--br .lightbox-content__caption {
    bottom: 12px;
    right: 12px;
}

.lightbox-aside {
    position: relative;
    flex: 0 0 min(300px, 26vw);
    align-self: flex-start;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border-left: 3px solid var(--red);
    border-radius: 6px 8px 8px 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    font-size: 0.92rem;
    line-height: 1.55;
    animation: lightboxAsideIn 0.25s ease;
}

.lightbox-aside[hidden] { display: none; }

.lightbox-aside__caption {
    font-style: normal;
    color: var(--text);
}

@keyframes lightboxAsideIn {
    from { transform: translateX(12px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* Hide on-page captions while overlay is open (avoids duplicate text bleeding through). */
body.samia-lightbox-open .image-caption {
    visibility: hidden;
}

@media (max-width: 900px) {
    .lightbox-stage {
        flex-direction: column;
        gap: 0.5rem;
    }
    .lightbox-main {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .lightbox-content {
        max-width: 100%;
    }
    .lightbox-aside {
        flex: 0 1 auto;
        width: 100%;
        max-width: 100%;
        max-height: 32vh;
        border-left: none;
        border-top: 3px solid var(--red);
        border-radius: 8px;
    }
    @keyframes lightboxAsideIn {
        from { transform: translateY(10px); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }
    .lightbox-prev,
    .lightbox-next {
        position: relative;
        top: auto;
        transform: none;
        left: auto;
        right: auto;
    }
}

.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.9;
}

.lightbox-close:hover {
    opacity: 1;
    color: var(--red);
}

.lightbox-prev,
.lightbox-next {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    z-index: 2;
    flex: 0 0 auto;
    align-self: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--red);
}

.lightbox-prev.hidden,
.lightbox-next.hidden {
    display: none;
}

/* === GALLERY CAROUSEL (template 6e) === */
.gallery-carousel {
    position: relative;
    margin-bottom: 3rem;
    overflow: hidden;
}

.gallery-carousel__track {
    display: flex;
    transition: transform 0.4s ease;
    touch-action: pan-y pinch-zoom;
}

.gallery-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.gallery-carousel .gallery-carousel__slide-visual {
    position: relative;
    width: 100%;
}

/* Overlay caption chip on .gallery-carousel__slide-visual (news modal, anniversary); corner from samia-lightbox-caption--* */
.gallery-carousel .gallery-carousel__slide-visual .image-caption.image-caption--overlay-chip {
    position: absolute;
    z-index: 2;
    margin: 0;
    max-width: min(92%, 28rem);
    padding: 0.45rem 0.65rem;
    font-size: 0.84rem;
    line-height: 1.35;
    font-style: normal;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    border-radius: 6px;
    border-left: none;
    padding-left: 0.65rem;
    box-sizing: border-box;
    pointer-events: none;
}

.gallery-carousel.samia-lightbox-caption--tl .gallery-carousel__slide-visual .image-caption.image-caption--overlay-chip {
    top: 12px;
    left: 12px;
}

.gallery-carousel.samia-lightbox-caption--tr .gallery-carousel__slide-visual .image-caption.image-caption--overlay-chip {
    top: 12px;
    right: 12px;
}

.gallery-carousel.samia-lightbox-caption--bl .gallery-carousel__slide-visual .image-caption.image-caption--overlay-chip {
    bottom: 12px;
    left: 12px;
}

.gallery-carousel.samia-lightbox-caption--br .gallery-carousel__slide-visual .image-caption.image-caption--overlay-chip {
    bottom: 12px;
    right: 12px;
}

.gallery-carousel__slide a {
    display: block;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/10;
    margin: 0 0.5rem;
}

.gallery-carousel__slide a:hover {
    border-color: var(--red);
}

.gallery-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-carousel__nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.gallery-carousel__dot:hover,
.gallery-carousel__dot.active {
    background: var(--red);
}

.gallery-carousel__prev,
.gallery-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--black);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-carousel__prev:hover,
.gallery-carousel__next:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.gallery-carousel__prev {
    left: 0.5rem;
}

.gallery-carousel__next {
    right: 0.5rem;
}

@media (min-width: 600px) {
    .gallery-carousel__slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 900px) {
    .gallery-carousel__slide {
        flex: 0 0 33.333%;
    }
}

/* === CERTIFICATION CAROUSEL (document pages) === */
.cert-carousel {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cert-carousel__track {
    display: flex;
    transition: transform 0.35s ease;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    user-select: none;
}

.cert-carousel__track:active {
    cursor: grabbing;
}

.cert-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
}

.cert-carousel__slide img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

.cert-carousel__prev,
.cert-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--black);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cert-carousel__prev:hover,
.cert-carousel__next:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.cert-carousel__prev {
    left: 0.75rem;
}

.cert-carousel__next {
    right: 0.75rem;
}

.cert-carousel__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cert-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease;
}

.cert-carousel__dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

.cert-carousel__dot.active {
    background: var(--black);
}

/* === PLYR (Samia colors via :root vars) === */
/* Primary color, progress, hover states set in :root. Add overrides below if needed. */
.plyr--video .plyr__volume--display {
    background: var(--plyr-color-main);
}

/* === VIDSTACK (Plyr layout) — reads the same --plyr-* vars as legacy Plyr === */
/* Radius matches images / legacy .plyr rules (6px). */
media-player {
    border-radius: 6px;
    overflow: hidden;
}

/* Avoid layout shift while media loads (news modal player). */
.news-modal__video media-player {
    aspect-ratio: 16 / 9;
    width: 100%;
}

/* Anniversary timeline card video (Vidstack) — sized like the legacy
   <video class="timeline__video"> that filled the card width. */
media-player.timeline__video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
}

/* === NEWS FEED (template) === */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item__thumb {
    flex: 0 0 auto;
    width: 240px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    display: block;
    text-decoration: none;
}

.news-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-in-out;
}

.news-item__thumb:hover img {
    transform: scale(1.04);
}

.news-item__date {
    font-size: 0.85rem;
    color: var(--gray);
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.news-item--has-thumb .news-item__date {
    padding-top: 0;
}

.news-item__content {
    flex: 1;
    min-width: 0;
}

.news-item__content h3 {
    font-size: 1.1rem;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.news-item__content h3 a {
    color: inherit;
    text-decoration: none;
}

.news-item__content h3 a:hover {
    text-decoration: underline;
}

.news-item__content p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.news-pagination__status {
    font-size: 0.9rem;
    color: var(--gray);
}

.news-pagination__link {
    color: var(--red) !important;
    font-weight: 900 !important;
    font-size: 24px !important;
    text-decoration: none;
}

.news-pagination__link:hover {
    text-decoration: none !important;
    color: var(--red-45) !important;
}

.news-archive-cta {
    margin-top: 0.17rem;
    float: right;
}

.news-archive-back {
    margin-top: 2rem;
    margin-bottom: 1.25rem;
}

.news-archive-filters {
    margin: 2rem 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.news-archive-filters__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.news-archive-filters__field label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Closed-state polish only — native option list styling is OS-controlled. */
.news-archive-filters__select-wrap {
    position: relative;
    display: inline-flex;
    min-width: 10rem;
}

.news-archive-filters__select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 10rem;
    padding: 0.4rem 2rem 0.4rem 1rem;
    background-color: var(--red-20);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23E5241F' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 0.75rem;
    border: 1px solid var(--accent);
    border-radius: 2px;
    color: var(--accent);
    cursor: pointer;
    font-family: 'Akshar', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.news-archive-filters__select:hover {
    border-color: var(--red-25);
    background-color: var(--red-20);
}

.news-archive-filters__select:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 36, 31, 0.12);
}

.news-archive-filters__clear {
    color: var(--gray);
    font-size: 0.9rem;
}

.news-archive-months {
    margin-bottom: 1.5rem;
}

.news-archive-months__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-archive-months__link {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
}

.news-archive-months__link.is-active,
.news-archive-months__link:hover {
    border-color: var(--red);
    color: var(--red);
}

@media (max-width: 768px) {
    .news-item__thumb {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 600px) {
    .news-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    .news-item__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

#workWithUsModal > .modal-content h2 {
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 0.75rem;
}

#workWithUsModal > .modal-content > p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.resume-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.resume-form input,
.resume-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

.resume-form input[type="file"] {
    padding: 0.4rem 0;
}

.resume-form button[type="submit"] {
    /* margin-top: 0.5rem; */
    margin-bottom: 0.7rem;
}

/* === PAGE CONTENT (cert, lab) === */
.page-content-new {
    padding: 6rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text);
    background: var(--background);
    min-height: calc(100vh - 200px);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Desktop: wider content, slightly larger text (mobile unchanged) */
@media (min-width: 769px) {
    html {
        font-size: 112.5%; /* 18px base — scales all rem-based text */
    }
    .page-content-new {
        max-width: 1280px;
    }
    .page-content-anniversary {
        max-width: 1920px;
    }
    .cards-grid {
        max-width: 1200px;
    }
    .anniversary-inner {
        max-width: 1200px;
    }
    .map-contact-inner {
        max-width: 1200px;
    }
    .team-member--group .team-member-photo-link {
        max-width: 1200px;
    }
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--gray);
    padding: 1rem 0 1rem 1rem;
    background: var(--anniv-exp-cream);
}

.breadcrumb nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--red);
}

.breadcrumb__sep {
    color: rgba(0, 0, 0, 0.3);
    user-select: none;
}

.breadcrumb__current {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb--center nav {
    justify-content: center;
}

.page-content-new h1 {
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.page-lead {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.page-section {
    /* margin-bottom: 3rem; */
    border-top: none;
    border-bottom: none;
}

.page-section h2 {
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 1.25rem;
}

.page-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--gray);
}

/* Sustainability template: match generic subpage body size */
body.page-template-page-sustainability-php .page-content-new .page-section p,
body.page-template-page-sustainability-php .page-content-new .go-green p {
    font-size: 1rem;
    line-height: 1.8;
}

body.page-template-page-sustainability-php .page-content-new .callout-info {
    font-size: 1rem;
    line-height: 1.8;
}

.page-section--timeline {
    overflow: visible;
}

.page-section--timeline .timeline {
    min-height: 120px;
}

/* Two-column block (About us style, from old site) */
.two-col-block {
    /* display: flex; */
    align-items: flex-start;    
    text-align: justify; /* Stefano 13-07-2026*/    
    gap: 2.5rem;
    /* margin-bottom: 3rem; */
    flex-wrap: wrap;
    
}

.two-col-block__text {
    flex: 1 1 320px;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;        
}

.two-col-block__text p {
    margin-bottom: 1.25rem;    
}

.two-col-block__text p:last-child {
    margin-bottom: 0;
}

.two-col-block__text a {
    color: var(--accent);
    text-decoration: none;
}

.two-col-block__text a:hover {
    text-decoration: underline;
}

.two-col-block__visual {
    flex: 1 1 320px;
    min-width: 0;
}

.two-col-block__visual img,
.two-col-block__visual video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.two-col-block__visual video {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.two-col-block__visual--stacked {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.two-col-block--reverse {
    flex-direction: row-reverse;
}

/* Text wrap around image (desktop) — use .two-col-block--wrap + .two-col-block__float-img */
.two-col-block--wrap {
    display: block;
}

.two-col-block--wrap .two-col-block__float-img,
.two-col-block--wrap figure.two-col-block__float-caption-wrap.two-col-block__float-img {
    /* Block (not .gallery-item-wrap flex) so % width/max-width wins for floated captions */
    display: block;
    box-sizing: border-box;
    float: left;
    width: 40%;
    max-width: 360px;
    min-width: auto;
    margin: 0 1.5rem 1rem 0;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.two-col-block--wrap .two-col-block__float-img--right,
.two-col-block--wrap figure.two-col-block__float-caption-wrap.two-col-block__float-img--right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

/* Overlay caption on floated figure: sizing/float lives on figure, not inner img */
.two-col-block--wrap figure.two-col-block__float-caption-wrap .two-col-block__float-caption-el {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: auto;
    height: auto;
    float: none;
    margin: 0;
    border: none;
    border-radius: inherit;
}

/* Wrapper for stacked images in wrap layout */
.two-col-block--wrap .two-col-block__float-img-wrap {
    float: left;
    width: 40%;
    max-width: 360px;
    margin: 0 1.5rem 1rem 0;
}

.two-col-block--wrap .two-col-block__float-img-wrap--right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.two-col-block--wrap .two-col-block__float-img-wrap img,
.two-col-block--wrap .two-col-block__float-img-wrap .two-col-block__float-caption-el {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Wrapper owns float/width — inner caption figures must not flex-shrink (.gallery-item-wrap) */
.two-col-block--wrap .two-col-block__float-img-wrap figure.two-col-block__float-caption-wrap {
    display: block;
    box-sizing: border-box;
    float: none;
    width: 100%;
    max-width: 100%;
    min-width: auto;
    margin: 0;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.two-col-block--wrap .two-col-block__float-img-wrap figure.two-col-block__float-caption-wrap.two-col-block__float-img,
.two-col-block--wrap .two-col-block__float-img-wrap figure.two-col-block__float-caption-wrap.two-col-block__float-img--right {
    float: none;
    width: 100%;
    max-width: 100%;
}

.two-col-block--wrap .two-col-block__float-img-wrap img + img,
.two-col-block--wrap .two-col-block__float-img-wrap figure + figure,
.two-col-block--wrap .two-col-block__float-img-wrap img + figure,
.two-col-block--wrap .two-col-block__float-img-wrap figure + img {
    margin-top: 1rem;
}

/* Wrapper for any floated content (e.g. carousel) in wrap layout */
.two-col-block--wrap .two-col-block__float-wrap {
    float: right;
    width: 40%;
    max-width: 360px;
    margin: 0 0 1rem 1.5rem;
}

.two-col-block--wrap .two-col-block__float-wrap--left {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.two-col-block--wrap .two-col-block__float-wrap img,
.two-col-block--wrap .two-col-block__float-wrap .cert-carousel {
    width: 100%;
}

.two-col-block--wrap .two-col-block__text {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* No overflow:hidden — allows text to flow around float; clearfix on parent instead */
.two-col-block--wrap::after {
    content: '';
    display: table;
    clear: both;
}


@media (max-width: 768px) {
    .two-col-block--wrap .two-col-block__float-img,
    .two-col-block--wrap figure.two-col-block__float-caption-wrap.two-col-block__float-img,
    .two-col-block--wrap .two-col-block__float-img-wrap,
    .two-col-block--wrap .two-col-block__float-wrap {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 1rem 0;
    }

    .two-col-block--wrap .two-col-block__float-img--right,
    .two-col-block--wrap figure.two-col-block__float-caption-wrap.two-col-block__float-img--right,
    .two-col-block--wrap .two-col-block__float-img-wrap--right,
    .two-col-block--wrap .two-col-block__float-wrap--left {
        margin: 0 0 1rem 0;
    }
}

/* Two-column: video left + video right, images left + images right, or mixed media */
.two-col-block--double-visual .two-col-block__visual {
    flex: 1 1 280px;
}

.two-col-block--double-visual .two-col-block__visual img,
.two-col-block--double-visual .two-col-block__visual video {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.two-col-block--double-visual .two-col-block__visual video {
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Text-only two-column (no image) */
.two-col-block--text-only .two-col-block__text {
    flex: 1 1 280px;
}

.two-col-block__text ul,
.two-col-block__text ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--gray);
    line-height: 1.8;
}

.two-col-block__text ul {
    list-style-type: disc;
    list-style-position: inside;
}

.two-col-block__text ol {
    list-style-type: decimal;
}

.two-col-block__text li {
    margin-bottom: 0.5rem;
}

.two-col-block__text li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .two-col-block {
        flex-direction: column;
        gap: 1.5rem;
    }

    .two-col-block--reverse {
        flex-direction: column;
    }
}

/* Principle card (template) */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.principle-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--red-20);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 12px var(--red-10);
}

.principle-card h3 {
    font-size: 1rem;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.principle-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* special principles styling */
.principle-card.zs-styling {
    position: relative;
    border-color: var(--secondary);
}

.principle-card.zs-styling .zs-card-logo {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 42px;
    height: auto;
    display: block;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease-out;
}

.principle-card.zs-styling:hover .zs-card-logo {
    opacity: 1;
}

.principle-card.zs-styling:hover {
    border-color: var(--chem-blue);
    box-shadow: 0 4px 12px var(--secondary);
}





.principle-card.zs-styling h3 {
    color: var(--chem-blue);
    align-items: center;
    text-align: center;
    margin: 0.5rem;
}

.principle-card.zs-styling p {
    text-align: center;
    color: #347ea7;
}

/* Team member (template) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.team-member {
    text-align: center;
}

.team-member-photo {
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 5/6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member-info h3 {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.team-member-role {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

/* Team member — group/company photo (version 2) */
.team-member--group {
    grid-column: 1 / -1;
}

/* Shrink figure to photo width so overlay caption chip sits on the image, not full grid */
.team-member--group .gallery-item-wrap {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    vertical-align: top;
}

.team-member-photo--wide {
    aspect-ratio: 16 / 9;
    max-height: 400px;
}

/* Center group photo horizontally; lightbox link — override gallery-item defaults */
.team-member--group .team-member-photo-link {
    display: block;
    max-width: 900px;
    margin: 0 auto 1rem;
    text-decoration: none;
    cursor: pointer;
    aspect-ratio: auto; /* override gallery-item 4/3 */
    overflow: visible;
    color: inherit;
    border: none; /* box is on .team-member-photo only */
    border-radius: 0;
    width: fit-content;
}

.team-member--group .team-member-photo-link .team-member-photo {
    margin-bottom: 0; /* box = image, no extra space */
}

.team-member--group .team-member-photo-link:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

.team-member--group .team-member-photo-link:hover {
    transform: none; /* no scale on large team photo */
}

.team-member--group .team-member-photo-link:hover .team-member-photo {
    border-color: var(--red);
    box-shadow: 0 4px 12px var(--red-15);
}

.team-member-photo--wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team member — text only (version 3) */
.team-member--text-only .team-member-photo {
    display: none;
}

/* === MAP PAGE (Samia nel Mondo) === */
.map-page-intro {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.map-page-intro h1 {
    color: var(--red);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.map-page-intro p {
    color: var(--gray);
    line-height: 1.7;
}

#samia-map {
    width: 100%;
    height: 560px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

@media (max-width: 768px) {
    #samia-map {
        height: 380px;
    }
}

.partner-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.partner-stat {
    text-align: center;
}

.partner-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
    display: block;
}

.partner-stat-label {
    font-size: 0.8rem;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Partner popup (Samia nel Mondo map) */
.leaflet-popup.samia-popup .leaflet-popup-content-wrapper {
    background: var(--off-white);
    border: 1px solid var(--off-white); /*rgba(255,255,255,0.1);*/
    border-radius: 6px;
    color: var(--off-white);
    box-shadow: 0 3px 14px var(--leather-tan);
}

.leaflet-popup.samia-popup .leaflet-popup-tip {
    background: var(--off-white);
}

.partner-card {
    padding: 1.25rem;
}

.partner-card-logo {
    height: 40px;
    max-width: 140px;
    object-fit: contain;
    margin-bottom: 0.85rem;
    /* filter: brightness(0) invert(1); */
}

.partner-card-logo-placeholder {
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 0.85rem;
    display: none;
}

.partner-card-logo-placeholder span {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: transparent; /* var(--red) */
    border: 1px solid transparent; /* var(--red) */
    padding: 0.2rem 0.5rem;
    display: none;
}

.partner-card h3 {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.partner-card-location {
    color: var(--red);
    font-size: 0.78rem;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.partner-card-divider {
    border: none;
    border-top: 1px solid var(--leather-tan); /*rgba(255,255,255,0.2)*/
    margin: 0.75rem 0;
}

.partner-card-contact a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.25rem;
}

.partner-card-contact a:hover {
    color: var(--red);
}

.partner-card-website {
    display: inline-block;
    margin-top: 0.85rem;
    padding: 0.4rem 0.85rem;
    background: var(--red);
    color: var(--white) !important;
    font-size: 0.78rem;
    text-decoration: none !important;
    border-radius: 4px;
}

.partner-card-website:hover {
    background: var(--white) !important;
    color: var(--black) !important;
}

.cert-embed {
    margin-bottom: 2rem;
    border-radius: 6px;
    overflow: hidden;
}

.cert-embed embed {
    display: block;
}

.cert-text {
    line-height: 1.8;
}

.cert-text p {
    margin-bottom: 1rem;
}

.lab-intro p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* === DOWNLOAD BLOCK (template) === */
.download-block {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--background);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.download-item:hover {
    border-color: var(--red);
    box-shadow: 0 2px 8px var(--red-10);
}

.download-item__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--white);
    border-radius: 4px;
}

.download-item__icon svg {
    width: 20px;
    height: 20px;
}

.download-item__text {
    flex: 1;
}

.download-item__title {
    font-weight: 600;
    color: var(--red);
    margin-bottom: 0.15rem;
}

.download-item__meta {
    font-size: 0.85rem;
    color: var(--gray);
}

/* === QUOTE / TESTIMONIAL BLOCK (template) === */
.quote-block {
    padding: 2rem;
    background: var(--background);
    border-left: 4px solid var(--red);
    border-radius: 0 6px 6px 0;
}

.quote-block__text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.quote-block__text::before {
    content: '"';
}

.quote-block__text::after {
    content: '"';
}

.quote-block__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quote-block__photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-block__info h4 {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
}

.quote-block__info p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0.15rem 0 0 0;
}

/* === STANDALONE IMAGE HERO (template) === */
.image-hero {
    position: relative;
    width: 100%;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.image-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.image-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.image-hero-content h1 {
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.image-hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

/* === LOGO GRID / PARTNERS (template) === */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.logo-grid__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.logo-grid__item img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
}

.logo-grid__item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* === FULL-WIDTH VIDEO SECTION (template) === */
.video-section-full {
    width: 100%;
    background: var(--black);
    padding: 2rem 0;
}

.video-section-full .plyr,
.video-section-full media-player {
    width: 100%;
    max-width: 100%;
}

/* Plyr-layout video border radius — match images (6px).
   media-player outer radius is handled by the generic Vidstack rule above. */
.plyr,
.plyr__video-wrapper,
.plyr video {
    border-radius: 6px;
    overflow: hidden;
}

.two-col-block__visual .plyr,
.two-col-block__visual video {
    border-radius: 6px;
}

.video-section-full video {
    width: 100%;
}

/* === 404 PAGE === */
.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
    min-height: calc(100vh - 280px);
}

.page-404 .breadcrumb {
    margin-bottom: 2rem;
}

.page-404__number {
    font-family: 'Aleo', serif;
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 700;
    line-height: 1;
    color: var(--red);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px var(--red-15);
}

.page-404__title {
    font-family: 'Aleo', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.page-404__message {
    font-size: 1rem;
    color: var(--gray);
    max-width: 420px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.page-404__divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.page-404 .btn-read {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .page-404 {
        padding: 6rem 1.5rem 4rem;
        min-height: calc(100vh - 260px);
    }

    .page-404__number {
        font-size: clamp(4rem, 25vw, 6rem);
    }

    .page-404__title {
        font-size: 1.1rem;
    }

    .page-404__message {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
}

/* Timeline (Anniversary): see stylesheet/anniversary-timeline.css (enqueued after dist/css/timeline.min.css). */

/* === CLOSABLE FLOATING BANNER (50th anniversary) ===
   Colors: --red bg, --white text */
.floating-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    max-width: 90vw;
    background: var(--red);
    color: var(--white);
    padding: 1rem 2.5rem 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Site-wide Options banner: light surface + red accent (~60/30/10); image keeps aspect */
.floating-banner__image {
    max-height: 3.5rem;
    width: auto;
    max-width: 40%;
    object-fit: contain;
    flex-shrink: 0;
}

.floating-banner.site-global-banner {
    background: var(--white);
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--red);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

.floating-banner.site-global-banner .floating-banner__text {
    color: var(--text);
}

.floating-banner.site-global-banner .floating-banner__link {
    color: var(--red);
    font-weight: 600;
}

.floating-banner.site-global-banner .floating-banner__link:hover {
    color: var(--red);
    opacity: 0.88;
    text-decoration-thickness: 2px;
}

.floating-banner.site-global-banner .floating-banner__close {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text);
}

.floating-banner.site-global-banner .floating-banner__close:hover {
    background: rgba(0, 0, 0, 0.11);
}

.floating-banner--hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(1rem);
    pointer-events: none;
}

.floating-banner__text {
    font-size: 0.95rem;
}

.floating-banner__link {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.floating-banner__link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.floating-banner__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.floating-banner__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .floating-banner {
        bottom: max(1rem, env(safe-area-inset-bottom, 0px));
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        max-width: none;
        transform: none;
        margin: 0 auto;
        padding: 0.875rem 2.25rem 0.875rem 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }

    .floating-banner--hidden {
        transform: translateY(1rem);
    }

    .floating-banner__text {
        font-size: 0.875rem;
        flex: 1 1 12rem;
        min-width: 0;
    }

    /* Reserve space so fixed banner does not cover last cards / CTAs */
    body:has(#siteGlobalBanner.floating-banner:not(.floating-banner--hidden)) .page-content-new {
        padding-bottom: 7.5rem;
    }
}

/* Sustainability section - color change only for <bold> & <strong> text */
.go-green b, strong{
    color: var(--emerald-embrace);
}

/* Standard (Chrome, Edge, Safari, Modern Firefox) */
.go-green *::selection {
    background: var(--emerald-embrace-15);
    color: var(--emerald-embrace-75);
}

/* Firefox legacy support */
.go-green *::-moz-selection {
    background: var(--emerald-embrace-15);
    color: var(--emerald-embrace-75);
}

.newsletter-form {
    justify-content: flex-end;
    display: flex;

}


.newsletter-form button {
    margin-left: auto;
    display: block;
    padding: 0.5rem;
    position: relative;
    border-radius: 0.3rem;
    border: 1px double;
    background: var(--red);
    color: var(--background);
    font-family: Aleo, serif;
    
}

.newsletter-form button::after {
    content: "\1F4E9\00FE0E"; /* Envelope With Downwards Arrow Above but window version so look like send mail*/
    position: relative;
    font-size: 1rem;
    line-height: 1.375;
}

.newsletter-form button:hover {
    background: var(--red-45);
    color: var(--text);
    border-color: var(--red)-45 !important;
}

.accent-hyperlink a {
    color: var(--accent);
    text-decoration: none;
}

.accent-hyperlink a:hover {
    text-decoration: underline;
}

.ul-list-no-decoration ul li {
    list-style: none;
}

.privacy-instructions__list {
    margin: 0;
    padding-left: 1.1rem;
}

.samia-info-general p {
    font-weight: bold;
}

.politica-aziendale__list ul {
    list-style: none;
    padding-left: 0;
}

.politica-aziendale__list ul li {
    position: relative;
    padding-left: 1.5rem;
}

.politica-aziendale__list ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.12rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    justify-content: center;
}

.footer-social-link {
    color: var(--light-gray);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-social-link:hover {
    color: var(--accent);
}

/* Work with us page and form */
.resume-form__container {
    background-color: var(--emerald-embrace-35);
    padding: 2.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
}

.resume-form__container-image img{
    padding-right: 2.5rem;
    border-radius: 1.5rem;
}

.resume-form__background {
    background-color: var(--emerald-embrace-15);
}

/* ------------------------------------------------------------------
   Career page (ACF-driven panel + resume form)
   ------------------------------------------------------------------ */

.career-page {
    --career-panel-bg: #ffffff;
    --career-panel-border: color-mix(in srgb, var(--accent) 18%, transparent);
    --career-panel-shadow: 0 30px 80px -40px rgba(10, 40, 36, 0.35), 0 2px 8px rgba(10, 40, 36, 0.08);
    --career-field-border: color-mix(in srgb, var(--accent) 22%, #e4ebe9);
    --career-field-focus: var(--accent);
    --career-radius: 20px;
    background: linear-gradient(180deg, #f6faf8 0%, #eaf3ef 100%);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.page-content-new.career-page--has-image {
    max-width: none;
    padding-left: 2rem;
    padding-right: 2rem;
    background: none;
    background-image: linear-gradient(
            130deg,
            rgba(255, 255, 255, 0.88) 0%,
            rgba(232, 246, 241, 0.78) 45%,
            rgba(10, 111, 105, 0.55) 100%
        ),
        var(--career-outer-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Header block */
.career-page__header {
    max-width: 1120px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.career-page__title {
    margin: 0;
    font-size: clamp(2rem, 3.4vw + 1rem, 3.4rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text, #111);
    letter-spacing: -0.01em;
}

.career-page__rule {
    display: inline-block;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
    margin-top: 0.35rem;
}

/* Outer / inner wrappers */
.career-page__outer {
    padding: 0 1rem 1rem;
}

.career-page__outer-inner {
    max-width: 1120px;
    margin: 0 auto;
}

/* Panel */
.career-page__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-radius: var(--career-radius);
    background: var(--career-panel-bg);
    border: 1px solid var(--career-panel-border);
    box-shadow: var(--career-panel-shadow);
    overflow: hidden;
}

.career-page--has-inner .career-page__panel {
    grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1fr);
}

.career-page__collage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    grid-auto-flow: dense;
    gap: 0.4rem;
    min-height: 260px;
    align-content: stretch;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* Exactly four tiles: fixed mosaic (tall hero + three stacked) to avoid sparse gaps */
.career-page__collage:has(.career-page__collage-item:nth-child(4)):not(:has(.career-page__collage-item:nth-child(5))) {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(72px, 1fr));
    grid-auto-flow: row;
    align-items: stretch;
}

.career-page__collage:has(.career-page__collage-item:nth-child(4)):not(:has(.career-page__collage-item:nth-child(5))) > .career-page__collage-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / -1;
}

.career-page__collage:has(.career-page__collage-item:nth-child(4)):not(:has(.career-page__collage-item:nth-child(5))) > .career-page__collage-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.career-page__collage:has(.career-page__collage-item:nth-child(4)):not(:has(.career-page__collage-item:nth-child(5))) > .career-page__collage-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.career-page__collage:has(.career-page__collage-item:nth-child(4)):not(:has(.career-page__collage-item:nth-child(5))) > .career-page__collage-item:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
}

.career-page__collage:has(.career-page__collage-item:nth-child(4)):not(:has(.career-page__collage-item:nth-child(5))) > .career-page__collage-item:nth-child(1) .career-page__collage-frame {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
}

.career-page__collage-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.career-page__collage-frame {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--red-15, rgba(10, 111, 105, 0.12));
}

.career-page__collage-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: currentColor; /*rgba(255, 255, 255, 0.4);*/ /* using currentColor to see the frame*/
}

.career-page__collage-caption {
    font-size: 0.75rem;
    line-height: 1.35;
    color: color-mix(in srgb, var(--text, #111) 78%, transparent);
    padding: 0 0.1rem;
    margin: 0;
}

.career-page__panel-media {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    background: var(--red-15, rgba(10, 111, 105, 0.15));
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

/* Seamless horizontal marquee: duplicated strips, translate -50% of track width */
.career-page__marquee-viewport {
    container-type: inline-size;
    flex: 1 1 auto;
    width: 100%;
    min-height: 260px;
    overflow: hidden;
    position: relative;
    z-index: 0;
    box-shadow: inset 3px 3px 8px hsl(36deg 38.51% 21.14% / 59%);
}

.career-page__marquee-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: max-content;
    min-height: 260px;
    animation: career-marquee-shift var(--career-marquee-duration, 42s) linear infinite;
    animation-play-state: running;
    will-change: transform;
    backface-visibility: hidden;
}

.career-page__marquee-strip {
    flex: 0 0 100cqw;
    min-width: 0;
    box-sizing: border-box;
}

.career-page__panel-media:hover .career-page__marquee-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .career-page__marquee-track {
        animation: none !important;
    }
}

@supports not (width: 1cqw) {
    /* No reliable strip width for -50% loop without container query units: show one row, hide duplicate */
    .career-page__marquee-track {
        animation: none !important;
        display: block;
        width: 100%;
    }

    .career-page__marquee-strip[aria-hidden="true"] {
        display: none;
    }

    .career-page__marquee-strip {
        flex: unset;
        width: 100%;
    }
}

@keyframes career-marquee-shift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Fill each strip; grid keeps existing .bento cell rules */
.career-page__marquee-bento {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 260px;
    box-sizing: border-box;
}

/* Single-image legacy fallback: let the lone tile breathe */
.career-page__collage:has(.career-page__collage-item:only-child) {
    grid-template-columns: 1fr;
}

.career-page__collage:has(.career-page__collage-item:only-child) .career-page__collage-frame {
    aspect-ratio: 4 / 3;
    max-height: 420px;
    margin: 0 auto;
    width: 100%;
}

.career-page__panel-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10, 111, 105, 0.06), rgba(10, 111, 105, 0.22));
    pointer-events: none;
}

.career-page__panel-form {
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
}

.career-page__intro {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray, #555);
}

/* ------------------------------------------------------------------
   Resume form
   ------------------------------------------------------------------ */

.resume-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resume-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.resume-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.resume-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text, #111);
    margin: 0;
}

.resume-form input[type="text"],
.resume-form input[type="email"],
.resume-form textarea {
    width: 100%;
    margin: 0;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--career-field-border);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text, #111);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.resume-form input[type="text"]::placeholder,
.resume-form input[type="email"]::placeholder,
.resume-form textarea::placeholder {
    color: color-mix(in srgb, var(--gray, #555) 70%, transparent);
}

.resume-form input[type="text"]:hover,
.resume-form input[type="email"]:hover,
.resume-form textarea:hover {
    border-color: color-mix(in srgb, var(--red) 45%, #d0d7d4);
}

.resume-form input[type="text"]:focus,
.resume-form input[type="email"]:focus,
.resume-form textarea:focus,
.resume-form input[type="text"]:focus-visible,
.resume-form input[type="email"]:focus-visible,
.resume-form textarea:focus-visible {
    outline: none;
    border-color: var(--career-field-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--career-field-focus) 20%, transparent);
}

.resume-form input:invalid:not(:placeholder-shown),
.resume-form textarea:invalid:not(:placeholder-shown) {
    border-color: color-mix(in srgb, var(--red, #c8102e) 60%, #e5b7b7);
}

.resume-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* File input (visually hidden, styled wrapper) */
.resume-form__file-control {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.4rem 0.4rem 0.5rem;
    border: 1px dashed var(--career-field-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--red) 4%, #fff);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
    max-width: 100%;
}

.resume-form__file-control:hover {
    border-color: var(--career-field-focus);
    background: color-mix(in srgb, var(--accent) 8%, #fff);
}

.resume-form__file-control:focus-within {
    border-style: solid;
    border-color: var(--career-field-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--career-field-focus) 20%, transparent);
}

.resume-form__file-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    background: var(--red);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    pointer-events: none;
}

.resume-form__file-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9rem;
    color: var(--gray, #555);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resume-form__field--file input[type="file"] {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.resume-form__hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--gray, #666);
}

/* Actions */
.resume-form__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.career-page__submit {
    padding: 0.9rem 2.25rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    border: 1px solid var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    align-self: center;
}

.career-page__submit:hover {
    background: color-mix(in srgb, var(--accent) 85%, #000);
    border-color: color-mix(in srgb, var(--red) 85%, #000);
    color: #fff;
    box-shadow: 0 10px 24px -14px var(--accent);
}

.career-page__submit:active {
    transform: translateY(1px);
}

.career-page__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 30%, transparent);
}

.resume-form__consent {
    font-size: 0.78rem;
    color: var(--gray, #666);
    line-height: 1.4;
    text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
    .career-page--has-inner .career-page__panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .career-page__panel-media {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 720px) {
    .career-page {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .page-content-new.career-page--has-image {
        padding-left: 1rem;
        padding-right: 1rem;
        background-attachment: scroll;
    }

    .career-page__header {
        margin-bottom: 1.75rem;
    }

    .career-page__panel-form {
        padding: 1.75rem 1.25rem;
    }

    .resume-form__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .career-page__submit {
        width: 100%;
        text-align: center;
    }

    .resume-form__actions {
        align-items: stretch;
    }
}


/* ============================================================
   PRIVATE / RESERVED AREA
   ============================================================ */

body.private-area {
    background: var(--background);
    overflow-x: hidden;
}

.private-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* === Sidebar === */
.private-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--black);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.private-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Full wordmark is the default. The collapsed state swaps it for the small
   inverted simbolo mark (see .private-sidebar.collapsed rules below). */
.private-sidebar__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.private-sidebar__logo-mark {
    display: none;
    width: 28px;
    height: 28px;
    filter: invert(1) brightness(1.2);
}
.private-sidebar__logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.private-sidebar__close {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
}

.private-sidebar__close:hover { color: var(--white); }

/* Prominent Return-to-site link that sits above the nav. */
.private-sidebar__return {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.5rem 1rem 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.private-sidebar__return:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.private-sidebar__return-icon {
    display: inline-flex;
    flex-shrink: 0;
}

.private-sidebar__return-label { line-height: 1; }

.private-nav {
    flex: 1;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.25rem;
}

.private-nav__group { margin-bottom: 0.15rem; }

.private-nav__group-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease, background 0.2s ease;
    font-family: inherit;
}

.private-nav__group-trigger:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.private-nav__group-icon {
    flex-shrink: 0;
    opacity: 0.6;
    display: flex;
}

.private-nav__chevron {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    opacity: 0.5;
}

.private-nav__group.open .private-nav__chevron {
    transform: rotate(180deg);
}

.private-nav__sub {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.private-nav__group.open .private-nav__sub { max-height: 300px; }

.private-nav__sub li a {
    display: block;
    padding: 0.5rem 1.25rem 0.5rem 3rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.83rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.private-nav__sub li a:hover,
.private-nav__sub li a.active { color: var(--red); }

.private-sidebar__footer {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.private-sidebar__settings-link,
.private-sidebar__logout {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.5rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 4px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease, background 0.2s ease;
}

.private-sidebar__settings-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.private-sidebar__logout:hover {
    color: var(--red);
    background: rgba(229, 36, 31, 0.06);
}



.private-sidebar__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.private-sidebar__overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* === Content === */
.private-content-wrap {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.private-topbar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.88rem 2rem;
    background: var(--black);
    /* border-bottom: 1px solid var(--leather-cream); */
    z-index: 100;
    filter: drop-shadow(0px 4px 2px gray);
}

.private-topbar__hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 4px;
}

.private-topbar__title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
}

.private-topbar__user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--white);
}

.private-topbar__user a {
    color: var(--white);
    text-decoration: none;
    display: contents;
}

.private-topbar__user a:hover {
    color: var(--cream);
}

.private-main {
    padding: 2rem;
    flex: 1;
}

/* === Welcome === */
.private-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--black);
    color: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--red);
}

.private-welcome__text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.private-welcome__text p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.6;
}

.private-welcome__badge {
    color: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* === Sections === */
.private-section { margin-bottom: 2.5rem; }

.private-section__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--leather-cream);
}

/* === Cards === */
.private-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.private-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--leather-cream);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.private-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--red);
    transform: translateY(-2px);
}

.private-card__icon { flex-shrink: 0; color: var(--red); opacity: 0.8; }
.private-card__body { flex: 1; min-width: 0; }
.private-card__body h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.2rem; }
.private-card__body p { font-size: 0.8rem; color: var(--gray); line-height: 1.5; }

.private-card__arrow {
    flex-shrink: 0;
    color: var(--red);
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.private-card:hover .private-card__arrow { opacity: 1; }

/* === Doc List === */
.private-doc-list {
    background: var(--white);
    border: 1px solid var(--leather-cream);
    border-radius: 6px;
    overflow: hidden;
}

.private-doc-list__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    color: var(--gray);
    opacity: 0.5;
    text-align: center;
    font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 900px) {
    .private-layout { grid-template-columns: 1fr; }
    .private-layout.sidebar-collapsed {
        grid-template-columns: 1fr;
    }
    .private-content-wrap { grid-column: 1; }
    .private-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 200;
    }
    .private-sidebar.open { transform: translateX(0); }
    .private-sidebar__close { display: flex; }
    .private-topbar__hamburger { display: inline-flex; align-items: center; justify-content: center; }
    .private-main { padding: 1.25rem; }
    .private-welcome { padding: 1.5rem; flex-wrap: wrap; gap: 1rem; }
    .private-welcome__badge { display: none; }
    .private-search-layout { grid-template-columns: 1fr; }
    .private-search-docs-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .private-topbar { padding: 0.75rem 1rem; }
    .private-main { padding: 1rem; }
    .private-welcome { padding: 1.25rem; }
    .private-welcome__text h1 { font-size: 1.3rem; }
    .private-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   PRIVATE AREA — Search & Settings
   ============================================================ */

.private-page-header { margin-bottom: 2rem; }
.private-page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); }

.private-search-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.75rem;
    align-items: start;
    justify-items: stretch;
}

@media (min-width: 1200px) {
    .private-search-layout {
        grid-template-columns: 220px 1fr;
    }
}

/* Horizontal orientation — filters on top, results below */
.private-search-layout--hor {
    grid-template-columns: 1fr;
}
.private-search-layout--hor .private-filters--horizontal {
    position: static;
    top: auto;
    padding: 1rem 1.25rem;
}
.private-search-layout--hor .private-filters--horizontal .private-filters__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem 1.25rem;
    align-items: start;
}
.private-search-layout--hor .private-filters--horizontal .private-filters__group {
    margin-bottom: 0;
    min-width: 0;
}
.private-search-layout--hor .private-filters--horizontal .private-filters__group--char {
    grid-column: span 2;
}
.private-search-layout--hor .private-filters--horizontal .private-filters__checkboxes {
    max-height: 9rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.private-search-layout--hor .private-filters--horizontal .private-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}
@media (max-width: 900px) {
    .private-search-layout--hor .private-filters--horizontal .private-filters__group--char {
        grid-column: span 1;
    }
}

.private-search-docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Filters panel */
.private-filters {
    background: var(--white);
    border: 1px solid var(--leather-cream);
    border-radius: 6px;
    padding: 1.25rem;
    position: sticky;
    top: 80px;
}

@media (min-width: 901px) {
    .private-search-layout:not(.private-search-layout--hor) .private-filters--vertical {
        max-height: calc(100vh - 5.5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .private-filters--vertical.private-filters--scrollable {
        box-shadow: inset 0 -14px 14px -10px rgba(0, 0, 0, 0.07);
    }
}

.private-filters__scroll-hint {
    display: none;
    font-size: 0.72rem;
    color: var(--light-gray);
    margin: 0.15rem 0 0;
    padding-top: 0.25rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    margin-bottom: 0.65rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 0.25rem;
    text-align: center;
    line-height: 1.35;
}

.private-filters__scroll-hint.is-visible {
    display: block;
}

.private-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--leather-cream);
}

.private-filters__title { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.private-filters__reset { font-size: 0.78rem; color: var(--red); text-decoration: none; }
.private-filters__reset:hover { text-decoration: underline; }
.private-filters__group { margin-bottom: 1rem; }

.private-filters__group--char {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.private-filters__char-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.private-filters__char-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.private-filters__char-input,
.private-filters__char-select {
    width: 100%;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--leather-cream, rgba(0, 0, 0, 0.12));
    border-radius: 4px;
    background: var(--white);
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text);
}

.private-filters__char-input:focus,
.private-filters__char-select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 36, 31, 0.12);
}

.private-filters__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Category group */
.private-filter-group { margin-bottom: 1rem; }

.private-filter-group__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
    margin-bottom: 0.4rem;
}

/* Search input */
.private-search-input-wrap { position: relative; }

.private-search-input {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.2rem;
    border: 1px solid var(--leather-cream);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text);
    background: var(--background);
    transition: border-color 0.2s ease;
}

.private-search-input:focus { outline: none; border-color: var(--red); }

.private-search-input__icon {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    opacity: 0.5;
    pointer-events: none;
}

/* Checkboxes */
.private-filters__checkboxes { display: flex; flex-direction: column; gap: 0.25rem; }

.private-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    padding: 0.15rem 0;
}

.private-checkbox-label--sub { padding-left: 0.5rem; }
.private-checkbox { display: none; }

.private-checkbox__box {
    width: 16px;
    height: 16px;
    border: 2px solid var(--leather-cream);
    border-radius: 3px;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
    position: relative;
}

.private-checkbox:checked + .private-checkbox__box { background: var(--red); border-color: var(--red); }

.private-checkbox:checked + .private-checkbox__box::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.private-checkbox__text { font-size: 0.85rem; color: var(--text); }

/* Radio buttons */
.private-filters__radios { display: flex; flex-direction: column; gap: 0.5rem; }

.private-radio-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.private-radio { display: none; }

.private-radio__dot {
    width: 16px;
    height: 16px;
    border: 2px solid var(--leather-cream);
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
    position: relative;
}

.private-radio:checked + .private-radio__dot { border-color: var(--red); }

.private-radio:checked + .private-radio__dot::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
}

.private-radio__text { font-size: 0.85rem; color: var(--text); }

/* Legacy submit (kept for any template still rendering it). */
.private-filters__submit {
    width: 100%;
    padding: 0.65rem;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 0.5rem;
}

.private-filters__submit:hover { background: var(--black); }

/* Primary Reset button — replaces the old submit footprint. Filters are live,
   so this button's job is to clear every input in one click. */
.private-filters__reset--primary {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.65rem;
    background: var(--red);
    color: var(--white);
    border: 1px solid var(--red);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.private-filters__reset--primary:hover,
.private-filters__reset--primary:focus-visible {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
    text-decoration: none;
    outline: none;
}

/* Results wrap — holds .private-results (scroll area) + .private-search__load-more-wrap
   as siblings so the Load-more button is always anchored below the container. */
.private-results-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Results — scroll container sized to exactly one page of cards. Rows modifier
   comes from PHP (`private-results--rows-3` for 3-col x 3 rows = 9 cards,
   `private-results--rows-4` for 2-col x 4 rows = 8 cards). */
.private-results {
    --card-min-h: 240px;
    --card-gap: 1rem;
    min-width: 0;
    max-height: calc(var(--card-min-h) * var(--rows, 3) + var(--card-gap) * (var(--rows, 3) - 1) + 1.5rem);
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding-right: 4px;
}
.private-results--rows-3 { --rows: 3; }
.private-results--rows-4 { --rows: 4; }
@media (max-width: 900px) {
    .private-results,
    .private-results--rows-3,
    .private-results--rows-4 {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}
.private-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    row-gap: 0.4rem;
    margin-bottom: 0.9rem;
    max-width: 100%;
}

.private-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    background: var(--leather-cream);
    border-radius: 3px;
    font-size: 0.78rem;
    color: var(--text);
}

.private-active-filter__remove { 
    color: var(--red); 
    text-decoration: none; 
    font-weight: 700; 
    line-height: 1;
    background: transparent;
    border: transparent;
}

.private-active-filter__remove:hover {
    cursor: pointer;
}

/* Document rows */
.private-doc-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--leather-cream);
    transition: background 0.15s ease;
}

.private-doc-row:last-child { border-bottom: none; }
.private-doc-row:hover { background: var(--background); }
.private-doc-row__icon { color: var(--red); opacity: 0.7; flex-shrink: 0; }
.private-doc-row__body { flex: 1; min-width: 0; }

.private-doc-row__title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.private-doc-row__meta { font-size: 0.78rem; color: var(--gray); margin-top: 0.15rem; }

.private-doc-row__cat {
    background: var(--leather-cream);
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.private-doc-row__download {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--leather-cream);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.private-doc-row__download:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.private-doc-list__empty-sub { font-size: 0.8rem; opacity: 0.7; }

/* Private product list (Reserved search) */
.private-product-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.private-product-list--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.private-product-list--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1200px) {
    .private-product-list,
    .private-product-list--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .private-product-list,
    .private-product-list--cols-2,
    .private-product-list--cols-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-height: 900px) and (max-width: 1200px) {
    .private-product-list,
    .private-product-list--cols-2,
    .private-product-list--cols-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .private-product-card { padding: 0.85rem; }
    .private-product-card__title { font-size: 0.95rem; }
}

.private-product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    background: var(--white);
    border: 1px solid var(--leather-cream, rgba(0, 0, 0, 0.08));
    border-radius: 8px;
    padding: 0.75rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.private-product-card[hidden] {
    display: none !important;
}

.private-product-card:hover {
    border-color: rgba(229, 36, 31, 0.3);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.private-product-card__media {
    flex: 0 0 auto;
    width: 100%;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.private-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cards without an image skip the media block entirely — no placeholder. */
.private-product-card--no-media .private-product-card__body {
    justify-content: flex-start;
}

.private-product-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.private-product-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    color: var(--text, #111);
}

.private-product-card__desc {
    font-size: 0.85rem;
    color: var(--gray, #555);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.private-product-card__tags {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.private-product-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--gray, #555);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.private-product-tag:hover,
.private-product-tag:focus-visible {
    background: var(--red, #c8102e);
    color: var(--white, #fff);
    border-color: var(--red, #c8102e);
    outline: 2px solid rgba(229, 36, 31, 0.25);
    outline-offset: 2px;
}

.private-product-list__no-match {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    text-align: center;
}

.private-product-list__no-match--card {
    display: flex;
    flex-direction: column;
}

.private-product-list__no-match-card {
    margin: 0 auto;
    max-width: 28rem;
    width: 100%;
    padding: 0.5rem 1.5rem 5.5rem 1.5rem;
    border-radius: 12px;
    background: var(--white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.private-product-list__no-match-card svg {
    color: var(--red, #c8102e);
    flex-shrink: 0;
}

.private-product-list__no-match-title {
    margin: 0;
    font-weight: 600;
    color: var(--text, #111);
    font-size: 1.05rem;
}

.private-product-list__no-match-sub {
    margin: 0;
}

.private-product-list__no-match[hidden] {
    display: none !important;
}


.private-search__load-more-wrap {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem auto 0;
    padding: 0.75rem 0;
    flex-wrap: wrap;
}

.private-search__load-more[hidden] {
    display: none !important;
}

.private-search__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.5rem;
    background: var(--text, #111);
    color: var(--white, #fff);
    border: 1px solid var(--text, #111);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.private-search__load-more:hover {
    background: var(--red, #c8102e);
    border-color: var(--red, #c8102e);
}

.private-search__count {
    font-size: 0.8rem;
    color: var(--gray, #555);
}

.private-search__count[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .private-product-card {
        flex-direction: column;
    }
    .private-product-card__media {
        width: 100%;
        height: 180px;
    }
}

/* Settings */
.private-settings-card {
    background: var(--white);
    border: 1px solid var(--leather-cream);
    border-radius: 6px;
    padding: 1.5rem;
}

.private-settings-card--soon { opacity: 0.6; font-size: 0.9rem; color: var(--gray); }
.private-settings-card__desc { font-size: 0.9rem; color: var(--gray); margin-bottom: 1.25rem; line-height: 1.6; }
.private-settings-card__note { font-size: 0.78rem; color: var(--gray); opacity: 0.7; margin-top: 0.75rem; }

/* Profile */
.private-profile { display: flex; align-items: center; gap: 1.25rem; }

.private-profile__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.private-profile__avatar--placeholder {
    background: var(--leather-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.private-profile__name { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 0.2rem; }
.private-profile__email { font-size: 0.85rem; color: var(--gray); }

/* Language toggle */
.private-lang-toggle { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.private-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: 2px solid var(--leather-cream);
    border-radius: 6px;
    background: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.private-lang-btn.active {
    border-color: var(--red);
    background: rgba(229, 36, 31, 0.05);
    color: var(--red);
    font-weight: 700;
}

.private-lang-btn:hover:not(.active) { border-color: var(--gray); }
.private-lang-btn__flag { font-size: 1.2rem; }

/* Account button */
.private-settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.private-settings-btn--danger {
    background: rgba(229, 36, 31, 0.07);
    color: var(--red);
    border: 1px solid rgba(229, 36, 31, 0.25);
}

.private-settings-btn--danger:hover { background: var(--red); color: var(--white); }

/* Mobile filter drawer */
.private-filters__drawer-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--border, rgba(0,0,0,0.12));
    background: var(--white, #fff);
    color: var(--text, #111);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: background 0.18s ease;
}
.private-filters__drawer-toggle:hover { background: rgba(0,0,0,0.04); }
.private-filters__drawer-toggle svg { flex: 0 0 auto; }

.private-filters__drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    z-index: 1039;
}
.private-filters__drawer-close {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.25rem;
    margin-left: auto;
    color: var(--text);
    cursor: pointer;
    line-height: 0;
}
.private-filters__drawer-close:hover { color: var(--red); }

/* Responsive */
@media (max-width: 900px) {
    .private-filters__drawer-toggle { display: inline-flex; }
    .private-filters__drawer-close  { display: inline-flex; }

    .private-search-layout { grid-template-columns: 1fr; position: relative; }
    .private-search-docs-layout { grid-template-columns: 1fr; position: relative; }

    .private-filters {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: min(320px, 88vw);
        max-width: 100%;
        margin: 0;
        padding: 1.25rem;
        background: var(--white, #fff);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.12);
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 1040;
        overflow-y: auto;
    }

    .private-search-layout.is-drawer-open .private-filters { transform: translateX(0); }
    .private-search-layout.is-drawer-open .private-filters__drawer-overlay {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.2s ease, visibility 0s linear 0s;
    }
    .private-search-docs-layout.is-drawer-open .private-filters { transform: translateX(0); }
    .private-search-docs-layout.is-drawer-open .private-filters__drawer-overlay {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.2s ease, visibility 0s linear 0s;
    }
}

@media (max-width: 768px) {
    .private-filters { width: min(300px, 92vw); }
}

/* === Desktop sidebar collapse === */
.private-sidebar{
    transition: width 0.3s ease, transform 0.3s ease;
}

.private-sidebar.collapsed{
    width: 60px;
    overflow: hidden;
}

.private-sidebar.collapsed .private-sidebar__logo-full {
    display: none;
}
.private-sidebar.collapsed .private-sidebar__logo-mark {
    display: block;
}

.private-sidebar.collapsed .private-nav__group-trigger span:not(.private-nav__group-icon), 
.private-sidebar.collapsed .private-nav__chevron,
.private-sidebar.collapsed .private-nav__sub,
.private-sidebar.collapsed .private-sidebar__settings-link span,
.private-sidebar.collapsed .private-sidebar__logout span,
.private-sidebar.collapsed .private-sidebar__return-label {
    display: none;
}

.private-sidebar.collapsed .private-sidebar__return {
    margin: 0.5rem 0.5rem 0.75rem;
    padding: 0.55rem;
    justify-content: center;
}

.private-sidebar.collapsed .private-nav__group-trigger {
    justify-content: center;
    padding: 0.65rem;
}

.private-sidebar.collapsed .private-nav__group-icon {
    opacity: 1;
}

.private-sidebar.collapsed .private-sidebar__footer {
    align-items: center;
    padding: 1rem 0.5rem;
}

.private-sidebar.collapsed .private-sidebar__settings-link,
.private-sidebar.collapsed .private-sidebar__logout {
    justify-content: center;
    padding: 0.6rem;
}

.private-layout.sidebar-collapsed {
    grid-template-columns: 60px 1fr;
}

.private-sidebar__collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem;
    background: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 0.25rem;
}

.private-sidebar__collapse-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.private-sidebar__collapse-btn svg {
    transition: transform 0.3s ease;
}

.private-sidebar.collapsed .private-sidebar__collapse-btn svg {
    transform: rotate(180deg);
}

/* Maintenance shield (Reserved Area → Maintenance mode toggle). Full-viewport,
   suppresses the sidebar + main content so clients see a polite status while
   admins keep editing. */
.private-maintenance-shield {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(180deg, #1d1d1b, #2b2b28);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}
.private-maintenance-shield__inner {
    max-width: 480px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.private-maintenance-shield__inner svg { color: var(--red-override, var(--red, #E5241F)); margin-bottom: 0.75rem; }
.private-maintenance-shield__inner h1 { margin: 0 0 0.5rem; font-size: 1.3rem; font-weight: 700; }
.private-maintenance-shield__inner p  { margin: 0 0 1.25rem; opacity: 0.85; line-height: 1.5; }
.private-maintenance-shield__out {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: var(--red-override, var(--red, #E5241F));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.private-maintenance-shield__out:hover,
.private-maintenance-shield__out:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    color: #fff;
}

.private-maintenance-shield__out.private-maintenance-shield__logout::before {
    content: '←';
    padding-right: 0.55rem;
}

.private-maintenance-shield__out.private-maintenance-shield__logout {
    background: var(--gray);
    border: 1px solid var(--accent);
}

.private-maintenance-shield__out.private-maintenance-shield__logout:hover {
    background: var(--leather-dark);
    border: 1px solid var(--chem-burgundy);
    color: var(--leather-cream);
}
/* Collapsed-sidebar flyouts: label tooltip + mini submenu on hover/focus.
   Hidden completely while the sidebar is expanded so they never collide with
   the normal accordion. */
.private-nav__group { position: relative; }
.private-nav__flyout {
    position: absolute;
    left: calc(100% + 6px);
    top: 0;
    min-width: 180px;
    max-width: 240px;
    background: #1d1d1b;
    color: #fff;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 60;
    display: none;
}
.private-nav__flyout::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 14px;
    width: 10px;
    height: 10px;
    background: #1d1d1b;
    transform: rotate(45deg);
    border-radius: 2px;
}
.private-nav__flyout-title {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}
.private-nav__flyout-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.35rem;
}
.private-nav__flyout-list li { margin: 0; }
.private-nav__flyout-list a {
    display: block;
    padding: 0.35rem 0.25rem;
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
    font-size: 0.82rem;
    border-radius: 4px;
}
.private-nav__flyout-list a:hover,
.private-nav__flyout-list a:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.private-sidebar.collapsed .private-nav__flyout { display: block; }
.private-sidebar.collapsed .private-nav__group:hover .private-nav__flyout,
.private-sidebar.collapsed .private-nav__group:focus-within .private-nav__flyout {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* ============================================================
   SHARED DIALOG (reserved access, logout confirm, etc.)
   ============================================================ */

/* Fallback (div-based) dialog presentation */
.samia-dialog {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.samia-dialog[hidden] { display: none; }

.samia-dialog.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.samia-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

/* Native <dialog> progressive enhancement ---------------------------------- */
dialog.samia-dialog {
    /* Reset UA defaults so we can present like the fallback */
    position: fixed;
    inset: 0;
    padding: 1.25rem;
    border: 0;
    background: transparent;
    color: inherit;
    max-width: none;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

dialog.samia-dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

dialog.samia-dialog.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
}

dialog.samia-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.samia-dialog__panel {
    position: relative;
    background: var(--white, #fff);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
    max-width: 460px;
    width: 100%;
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.25s ease;
}

.samia-dialog.is-open .samia-dialog__panel {
    transform: translateY(0);
}

.samia-dialog__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--gray, #555);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.samia-dialog__close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text, #111);
}

.samia-dialog__icon {
    display: flex;
    justify-content: center;
    color: var(--red, #c8102e);
    margin-bottom: 0.75rem;
}

.samia-dialog__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text, #111);
    margin: 0 0 0.5rem;
}

.samia-dialog__body {
    color: var(--gray, #555);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
}

.samia-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.samia-dialog__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.samia-dialog__btn--primary {
    background: var(--red, #c8102e);
    color: var(--white, #fff);
    border-color: var(--red, #c8102e);
}

.samia-dialog__btn--primary:hover {
    background: var(--text, #111);
    border-color: var(--text, #111);
    color: var(--white, #fff);
}

.samia-dialog__btn--secondary {
    background: var(--white, #fff);
    color: var(--red, #c8102e);
    border-color: var(--red, #c8102e);
}

.samia-dialog__btn--secondary:hover {
    background: var(--red, #c8102e);
    color: var(--white, #fff);
}

.samia-dialog__btn--ghost {
    background: transparent;
    color: var(--gray, #555);
    border-color: rgba(0, 0, 0, 0.12);
}

.samia-dialog__btn--ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text, #111);
}

@media (max-width: 520px) {
    .samia-dialog__actions { flex-direction: column; }
    .samia-dialog__btn { width: 100%; }
}

/* Wide / 2-column product detail dialog */
.samia-dialog--wide .samia-dialog__panel {
    max-width: 820px;
    width: 100%;
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: left;
}

.samia-dialog__product-grid {
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    gap: 1.5rem;
    align-items: start;
    
}

.samia-dialog__product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.035);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.samia-dialog__product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.samia-dialog__product-placeholder {
    color: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.samia-dialog__product-body .samia-dialog__title {
    text-align: left;
    font-size: 1.35rem;
    margin-top: 0.25rem;
}

.samia-dialog__product-desc {
    text-align: left;
    margin-bottom: 1rem;
    white-space: pre-line;
}

.samia-dialog__product-tags {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.samia-dialog__product-tags .private-product-tag--static {
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text, #111);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: default;
}

.samia-dialog--wide .samia-dialog__actions {
    justify-content: flex-end;
}

.samia-dialog__product-sheets {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.samia-dialog__product-sheets-title {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text, #111);
    opacity: 0.75;
}

.samia-dialog__product-sheets-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.samia-dialog__product-left {
    border-right: 1px solid var(--leather-cream);
    padding-right: 1rem;
}

.samia-dialog__pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    background: var(--red, #E5241F);
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.samia-dialog__pdf-btn:hover,
.samia-dialog__pdf-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(229, 36, 31, 0.28);
    color: #fff;
    text-decoration: none;
}

.samia-dialog__pdf-btn--safety {
    background: #1d1d1b;
}

.samia-dialog__pdf-btn--other {
    background: #555;
}

.private-product-card__pdf-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--red, #E5241F);
    letter-spacing: 0.02em;
}

@media (max-width: 680px) {
    .samia-dialog__product-grid { grid-template-columns: 1fr; }
    .samia-dialog__product-media { aspect-ratio: 16 / 10; max-height: 240px; }
    .samia-dialog--wide .samia-dialog__panel { padding: 1.25rem 1.1rem 1rem; }
    .samia-dialog--wide .samia-dialog__actions { justify-content: stretch; }
}

/* Clickable card body keyboard focus ring */
.private-product-card__body[role="button"] {
    cursor: pointer;
    outline: none;
    border-radius: 6px;
}

.private-product-card__body[role="button"]:focus-visible {
    box-shadow: 0 0 0 2px var(--red, #c8102e);
}

/* Accordion panel actions row */
.app-card-accordion__panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.app-card-accordion__see-more {
    background: var(--red, #c8102e);
    color: var(--white, #fff);
    border-color: var(--red, #c8102e);
}

.app-card-accordion__see-more:hover {
    background: var(--text, #111);
    border-color: var(--text, #111);
    color: var(--white, #fff);
}

/* ============================================================
   PRODUCT MODAL — two-column redesign
   ============================================================ */

/* Title full width */
.samia-dialog--product .samia-dialog__product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.5rem;
    padding-right: 2rem; /* clear the close button */
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Two-column grid */
.samia-dialog__product-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* padding-bottom: 1.5rem; */
    /* border-bottom: 1px solid var(--leather-cream); */
    margin-bottom: 1.5rem;
}

/* Section labels (Description, Quality, etc.) */
.samia-dialog__product-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 0.6rem;
}

/* Description text */
.samia-dialog__product-desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* Tag group spacing */
.samia-dialog__product-tag-group {
    margin-bottom: 1.25rem;
}

.samia-dialog__product-tag-group:last-child {
    margin-bottom: 0;
}

/* Tag lists */
.samia-dialog__product-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.samia-dialog__product-tags li {
    display: contents;
}

/* Characteristic column: pill + overlay tooltip (speech bubble — no layout shift) */
.samia-dialog__product-tags--char li.samia-char-pill-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: 100%;
    position: relative;
    z-index: 0;
}

.samia-char-pill-wrap:focus-within,
.samia-char-pill-wrap:hover {
    z-index: 5;
}

.samia-dialog__product-tags .samia-tag-pill__hint {
    display: none;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    z-index: 20;
    min-width: 7rem;
    max-width: 14rem;
    padding: 0.55rem 0.72rem;
    font-size: 0.74rem;
    line-height: 1.38;
    font-weight: 500;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    border-radius: 10px;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.08);
}

.samia-tag-pill__hint::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
}

/* Default — bubble below pill */
.samia-char-pill-wrap:not([data-tooltip-place]) .samia-tag-pill__hint,
.samia-char-pill-wrap[data-tooltip-place='bottom'] .samia-tag-pill__hint {
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
}
.samia-char-pill-wrap:not([data-tooltip-place]) .samia-tag-pill__hint::before,
.samia-char-pill-wrap[data-tooltip-place='bottom'] .samia-tag-pill__hint::before {
    bottom: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 0 8px 8px 8px;
    border-bottom-color: #fff;
}

.samia-char-pill-wrap[data-tooltip-place='top'] .samia-tag-pill__hint {
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
}
.samia-char-pill-wrap[data-tooltip-place='top'] .samia-tag-pill__hint::before {
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px 8px 0 8px;
    border-top-color: #fff;
}

.samia-char-pill-wrap[data-tooltip-place='left'] .samia-tag-pill__hint {
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
}
.samia-char-pill-wrap[data-tooltip-place='left'] .samia-tag-pill__hint::before {
    left: 100%;
    top: 50%;
    margin-top: -7px;
    border-width: 7px 0 7px 8px;
    border-left-color: #fff;
}

.samia-char-pill-wrap[data-tooltip-place='right'] .samia-tag-pill__hint {
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
}
.samia-char-pill-wrap[data-tooltip-place='right'] .samia-tag-pill__hint::before {
    right: 100%;
    top: 50%;
    margin-top: -7px;
    border-width: 7px 8px 7px 0;
    border-right-color: #fff;
}

.samia-dialog__product-tags--char li.samia-char-pill-wrap:hover .samia-tag-pill__hint,
.samia-dialog__product-tags--char li.samia-char-pill-wrap:focus-within .samia-tag-pill__hint {
    display: block;
    visibility: visible;
}

/* Base pill */
.samia-dialog__product-tags .samia-tag-pill {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Color variants */
.samia-dialog__product-tags--quality .samia-tag-pill {
    background: var(--blue-gray);
    color: #fff;
}

.samia-dialog__product-tags--article .samia-tag-pill {
    background: var(--green-leaf);
    color: #fff;
}

.samia-dialog__product-tags--leather .samia-tag-pill {
    background: var(--blue-pilot);
    color: #fff;
}

.samia-dialog__product-tags--application .samia-tag-pill {
    background: var(--orange-tiger);
    color: #fff;
}

.samia-dialog__product-tags--char .samia-tag-pill {
    background: var(--gray-cloud);
    color: #fff;
}

/* Downloads section */
.samia-dialog__product-divider {
    border: none;
    border-top: 1px solid var(--leather-cream);
    margin: 0 0 1.25rem;
}

.samia-dialog__product-downloads .samia-dialog__product-section-label {
    margin-bottom: 1rem;
}

.samia-dialog__product-sheets-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Download buttons — outlined style (Image 1) */
.samia-dialog__pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--leather-cream);
    border-radius: 6px;
    background: none;
    color: var(--red);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.samia-dialog__pdf-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Responsive — stack to single column on narrow screens */
@media (max-width: 640px) {
    .samia-dialog__product-cols {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.snm-legend__box {
    background: var(--white);
    border: 1px solid var(--leather-cream);
    border-radius: 12px;
    padding: 1rem 1.5rem 1.1rem;
    margin: 1.5rem auto 0;
    max-width: 640px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.snm-legend__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray);
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--leather-cream);
}

.snm-legend__ZS { background: var(--chem-blue); }
.snm-legend__SM { background: var(--accent); }

.snm-legend__items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    flex-wrap: wrap;
    row-gap: 0.6rem;
}

.snm-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.2rem 0.25rem;
}

.snm-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.snm-legend__text {
    font-size: 0.88rem;
    line-height: 1.3;
    color: var(--text) !important;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .snm-legend__box { padding: 0.85rem 1rem; }
    .snm-legend__items {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .snm-legend__title { text-align: left; }
    .snm-legend__text { white-space: normal; }
}

hr.separator {
    border-top: 0.5px solid #e8e5e5;
    opacity: 75%;
    border-radius: 10px;
}

/* @media print {
    html, body {
        display: none;
    }
} */

.leaflet-container {
    font-family: "Akshar", Arial, Helvetica, sans-serif !important;
    font-size: 12px;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Options → Aesthetics: media discourage download (body.samia-protect-media)
   Scoped content images only; lighten drag/select inside lightbox/gallery
   modal/Swiper/Vidstack (Plyr layout).
   -------------------------------------------------------------------------- */
body.samia-protect-media .page-content-new img,
body.samia-protect-media .section-cards img,
body.samia-protect-media .section-anniversary img,
body.samia-protect-media .video-hero img,
body.samia-protect-media .private-content-wrap img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

body.samia-protect-media .lightbox img,
body.samia-protect-media .anniv-exp-gallery-modal img,
body.samia-protect-media .swiper img,
body.samia-protect-media .swiper-slide img,
body.samia-protect-media .swiper-slide-duplicate img,
body.samia-protect-media .plyr img,
body.samia-protect-media [class^="plyr-"] img,
body.samia-protect-media [class*=" plyr-"] img,
body.samia-protect-media media-player img {
    -webkit-user-drag: auto;
    user-drag: auto;
    -webkit-user-select: auto;
    user-select: auto;
}

body.page-anniversary-experimental .page-anniversary, body.page-anniversary-hybrid .page-anniversary {
    padding-top: 0;
    background: var(--anniv-exp-cream);
}

/* button.anniv-exp-gallery__nav.anniv-exp-gallery__nav--prev.swiper-button-prev {
    transform: translate(10px, 130%);
}

button.anniv-exp-gallery__nav.anniv-exp-gallery__nav--next.swiper-button-next {
    transform: translate(-10px, 130%);
}

@media (max-width: 768px) {
    button.anniv-exp-gallery__nav.anniv-exp-gallery__nav--prev.swiper-button-prev {
        transform: translate(10px, 50%);
    }

    button.anniv-exp-gallery__nav.anniv-exp-gallery__nav--next.swiper-button-next {
        transform: translate(-10px, 50%);
    }
} */

.reserved-access-form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reserved-access-form label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-top: 1rem;
}

.reserved-access-form input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--leather-cream);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: border-colo 0.2s ease, box-shadow 0.2s ease;
}

.reserved-access-form input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 36, 31, 0.12);
}

/* Invalid state after submit attempt */
.reserved-access-form input:invalid:not(:placeholder-shown) {
    border-color: var(--red);
}

.reserved-access-form button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.reserved-access-form button:hover {
    background: var(--black);
}

.reserved-access-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.applications-hub-footer {
    max-width: 760px;
    margin-inline: auto;
    margin-top: 1.5rem;
    text-decoration: none;
}

.applications-hub-footer:hover{
    color: var(--accent) !important;
}

.request-access-page .request-access-form__panel {
    max-width: 540px;
    margin-inline: auto;
    margin-top: 1.5rem;
}

.request-access-page__intro {
    max-width: 760px;
    margin-inline: auto;
    margin-top: 1rem;
    text-align: center;
}

.request-access-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.request-access-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.request-access-form__actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.request-access-page .reserved-access-form button[type="submit"] {
    width: auto;
    align-self: center;
    margin-top: 0;
}

@media (max-width: 600px) {
    .request-access-form__row {
        grid-template-columns: 1fr;
    }
}

.reserved-access-form__message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: none;
}

.reserved-access-form__message--success {
    display: block;
    background: rgba(74, 140, 63, 0.1);
    color: #4A8C3F;
}

.reserved-access-form__message--error {
    display: block;
    background: rgba(229, 36, 31, 0.08);
    color: var(--red);
}

section.page-section.section-cards.section-cards--light {
    padding: 0;
}
/* === Application subpage filter bar === */
.app-subpage-filter {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--off-white, #f9f9f9);
    border: 1px solid var(--leather-cream);
    border-radius: 6px;
}

.app-subpage-filter__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.app-subpage-filter__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    flex-shrink: 0;
}

.app-subpage-filter__checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    flex: 1;
}

.app-subpage-filter__checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text);
}

.app-subpage-filter__checkbox { display: none; }

.app-subpage-filter__checkbox-box {
    width: 16px;
    height: 16px;
    border: 2px solid var(--leather-cream);
    border-radius: 3px;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
    background: var(--white);
}

.app-subpage-filter__checkbox:checked + .app-subpage-filter__checkbox-box {
    background: var(--red);
    border-color: var(--red);
}

.app-subpage-filter__reset {
    background: none;
    border: none;
    color: var(--red);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.app-subpage-filter__reset:hover { text-decoration: underline; }

.app-filter-item[hidden] { display: none !important; }

@media (max-width: 600px) {
    .app-subpage-filter__form {
        flex-direction: column;
        align-items: flex-start;
    }
}
