/* ================================================
   Lionex Site Base – Global Header, Nav, Footer
   Shared across all pages.
   ================================================ */

/* ================================================
   Design tokens
   ================================================ */

/* Colors – derived from logo (#006eb7 blue, #e30613 red) */
:root {
    --lionex-primary: #006eb7;
    --lionex-primary-dark: #004d8c;
    --lionex-primary-soft: #4a8fc4;
    /* Hero vignette: narrow black top/bottom + wider corporate navy bottom (page/category heroes) */
    --lionex-hero-narrow-black-scrim-stops: rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.12) 14%,
        rgba(0, 0, 0, 0.04) 22%, transparent 32%;
    --lionex-hero-bottom-scrim-stops: rgba(13, 45, 82, 0.44) 0%, rgba(13, 45, 82, 0.32) 10%,
        rgba(13, 45, 82, 0.2) 22%, rgba(13, 45, 82, 0.11) 36%, rgba(13, 45, 82, 0.05) 50%,
        rgba(6, 26, 51, 0.025) 64%, rgba(6, 26, 51, 0.01) 76%, transparent 88%;
    --lionex-hero-top-scrim: linear-gradient(to bottom, var(--lionex-hero-narrow-black-scrim-stops));
    --lionex-hero-bottom-black-scrim: linear-gradient(to top, var(--lionex-hero-narrow-black-scrim-stops));
    --lionex-hero-bottom-scrim: linear-gradient(to top, var(--lionex-hero-bottom-scrim-stops));
    --lionex-hero-scrim: var(--lionex-hero-top-scrim), var(--lionex-hero-bottom-black-scrim),
        var(--lionex-hero-bottom-scrim);
    --lionex-accent: #0088a3;
    --lionex-text: #111;
    --lionex-text-muted: #5a6a75;
    --lionex-text-secondary: #333;
    --lionex-text-light: #7a8893;
    --lionex-heading: #0d2d52;
    --lionex-intro-text: #4a5568;
    --lionex-bg: #fff;
    --lionex-bg-intro: #f0f5fa;
    --lionex-container-width: 1000px;
    --lionex-content-width: calc(var(--lionex-container-width) - 2 * var(--lionex-space-7));
    --lionex-accent-red: #e30613;
    --lionex-accent-red-hover: #b80510;
    --lionex-accent-red-bg: #fde8e9;
    --lionex-accent-gold: #c9a227;
    --lionex-bg-muted: #f5f5f5;
    --lionex-bg-muted-hover: #e8e8e8;
    --lionex-bg-intro-alt: #e8f0f8;
    --lionex-bg-cta-start: #e8f1f8;
    --lionex-bg-cta-end: #d8e8f4;
    --lionex-success: #4CAF50;
    --lionex-success-hover: #45a049;
    --lionex-page-hero-max-height: calc(252px * 1.2);
}

/* Spacing (consistent across framework) */
:root {
    --lionex-space-1: 4px;
    --lionex-space-2: 8px;
    --lionex-space-3: 12px;
    --lionex-space-4: 16px;
    --lionex-space-5: 20px;
    --lionex-space-6: 24px;
    --lionex-space-7: 28px;
    --lionex-space-8: 32px;
    --lionex-space-10: 40px;
    --lionex-space-12: 48px;
}

/* Typography — single source (3 sizes + heading levels) */
:root {
    --lionex-font-body: 1rem;
    --lionex-font-small: 0.875rem;
    --lionex-font-caption: 0.75rem;
    --lionex-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.text-small {
    font-size: var(--lionex-font-small);
}

.text-caption {
    font-size: var(--lionex-font-caption);
}

/* Shadows and borders */
:root {
    --lionex-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --lionex-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
    --lionex-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    --lionex-border-subtle: 1px solid rgba(0, 0, 0, 0.06);
    --lionex-border-default: 1px solid rgba(0, 0, 0, 0.1);
    --lionex-radius: 0;
    --lionex-transition: 0.2s ease;
    --lionex-input-border: 1px solid #d0d0d0;
}

/* Eyebrow / overline labels — one source of truth (home, resources, contact) */
.eyebrow-label,
.home-newsroom-eyebrow,
.home-products-eyebrow,
.home-partners-eyebrow,
.home-contact-eyebrow,
.page-resources .resources-eyebrow,
.page-documents .resources-eyebrow {
    margin: 0 0 8px 0;
    font-size: var(--lionex-font-caption);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lionex-text-muted);
    font-family: inherit;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Global page background and typography */
html {
    font-size: 100%;
}

html,
body {
    /* Blue and white only – lighter overall, darker blue at top */
    background:
        radial-gradient(ellipse 60% 150% at 0% 50%, rgba(30, 90, 168, 0.08) 0%, rgba(30, 90, 168, 0.02) 50%, transparent 70%),
        radial-gradient(ellipse 60% 150% at 100% 50%, rgba(30, 90, 168, 0.08) 0%, rgba(30, 90, 168, 0.02) 50%, transparent 70%),
        radial-gradient(ellipse 120% 95% at 50% 100%, #ffffff 0%, #f8fbfd 30%, #eef6fc 55%, #d8eef8 75%, #2e7ab8 92%, #1e5a8a 100%);
    background-attachment: fixed;
    min-height: 100%;
}

body {
    font-family: var(--lionex-font-sans);
    font-size: var(--lionex-font-body);
    color: var(--lionex-text);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Headings — main content */
.main-content h1,
.page-title.page-title--visible {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lionex-heading);
    margin: 0 0 var(--lionex-space-4) 0;
    line-height: 1.2;
}

.main-content h2,
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--lionex-heading);
    margin: 0 0 var(--lionex-space-4) 0;
    line-height: 1.3;
}

.main-content h3,
.section-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--lionex-heading);
    margin: 0 0 var(--lionex-space-3) 0;
    line-height: 1.3;
}

.main-content h4,
.main-content h5,
.main-content h6 {
    font-size: var(--lionex-font-body);
    font-weight: 600;
    color: var(--lionex-heading);
    margin: 0 0 var(--lionex-space-3) 0;
    line-height: 1.4;
}

/* Legacy global h1–h6 (outside .main-content, e.g. rare edge cases) */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lionex-heading);
    margin: 0 0 var(--lionex-space-4) 0;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--lionex-heading);
    margin: 0 0 var(--lionex-space-4) 0;
    line-height: 1.3;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--lionex-heading);
    margin: 0 0 var(--lionex-space-3) 0;
    line-height: 1.3;
}

h4,
h5,
h6 {
    font-size: var(--lionex-font-body);
    font-weight: 600;
    color: var(--lionex-heading);
    margin: 0 0 var(--lionex-space-3) 0;
    line-height: 1.4;
}

p {
    margin: 0 0 var(--lionex-space-4) 0;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin: 0 0 var(--lionex-space-4) 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: var(--lionex-space-2);
}

li:last-child {
    margin-bottom: 0;
}

/* Typography — shared UI (cards, tables, chrome, forms, heroes) */
.site-nav a,
.site-nav a:link,
.site-nav a:visited {
    font-size: var(--lionex-font-body);
}

.breadcrumb ol,
.breadcrumb-back {
    font-size: var(--lionex-font-small);
}

.site-footer {
    font-size: var(--lionex-font-small);
}

.site-footer .footer-contact-item h3 {
    font-size: 1.125rem;
}

.site-footer .footer-contact-item .contact-details,
.site-footer .footer-nav,
.site-footer .footer-note {
    font-size: var(--lionex-font-small);
}

.intro h2 {
    font-size: 1.5rem;
}

.intro p {
    font-size: var(--lionex-font-body);
}

.product-card h3,
.resource-card h3,
.home-card h3 {
    font-size: var(--lionex-font-body);
    font-weight: 600;
}

.product-card p,
.product-card__descriptor,
.resource-card p,
.home-card p {
    font-size: inherit;
}

.main-content table,
.category-product-table {
    font-size: var(--lionex-font-small);
}

.page-hero__title {
    font-size: 1.5rem;
}

.page-hero__subtitle {
    font-size: var(--lionex-font-body);
}

.section-card__link,
.category-body__link,
.category-product-table__link a {
    font-size: var(--lionex-font-small);
}

.form-field label,
.form-field input,
.form-field textarea,
.form-field select,
.home-form label,
.home-form input,
.home-form textarea,
.home-form select,
.home-contact-form-block h4 {
    font-size: var(--lionex-font-body);
}

.form-hint,
.form-note,
.product-card__badge {
    font-size: var(--lionex-font-caption);
}

.page-toc a,
.category-layout__nav a {
    font-size: var(--lionex-font-small);
}

/* In-page section nav — pill links (FAQ TOC, page TOC, category sticky nav) */
.page-toc__pills a,
.page-toc > a,
.category-layout__nav a,
.category-layout__nav a:visited {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(90, 106, 117, 0.25);
    color: var(--lionex-text-muted);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.25;
    transition: border-color var(--lionex-transition), box-shadow var(--lionex-transition), color var(--lionex-transition), background var(--lionex-transition);
}

.page-toc__pills a:hover,
.page-toc > a:hover,
.category-layout__nav a:hover,
.page-toc__pills a:focus,
.page-toc > a:focus,
.category-layout__nav a:focus {
    border-color: rgba(90, 106, 117, 0.45);
    color: var(--lionex-text-secondary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.page-toc__pills a:focus,
.page-toc > a:focus,
.category-layout__nav a:focus {
    outline: none;
}

.page-toc__pills a:focus-visible,
.page-toc > a:focus-visible,
.category-layout__nav a:focus-visible {
    outline: 2px solid var(--lionex-primary);
    outline-offset: 2px;
}

.product-ordering-catalogue-note {
    font-size: var(--lionex-font-small);
}

.fact-quote p,
.fact-quote cite,
.category-body .fact-quote--hero-overlay p,
.category-body .fact-quote--hero-overlay cite {
    font-size: var(--lionex-font-small);
}

.product-hero .spec-card--hero,
.product-hero .spec-card--hero li {
    font-size: var(--lionex-font-small);
}

.category-body__title {
    font-size: 1.5rem;
}

.category-body__subheading {
    font-size: var(--lionex-font-body);
}

/*
 * Site-wide links: Lionex blue for :link and :visited (visited must not turn gray).
 * Default: no underline — opt in via hover/focus or component rules below and in page CSS.
 * Exceptions: footer, CTAs, inherit-on-purpose, logo, nav highlights, Documents chrome, etc.
 */
a:link {
    color: var(--lionex-primary);
    text-decoration: none;
}

a:visited {
    color: var(--lionex-primary);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--lionex-primary-dark);
}

/* In-page section nav pills — grey text (override site-wide link blue) */
.page-toc__pills a:any-link,
.page-toc > a:any-link,
.category-layout__nav a:any-link {
    color: var(--lionex-text-muted);
}

.page-toc__pills a:hover,
.page-toc > a:hover,
.category-layout__nav a:hover,
.page-toc__pills a:focus,
.page-toc > a:focus,
.category-layout__nav a:focus {
    color: var(--lionex-text-secondary);
}

/* CTA buttons styled as links – never use global link blue */
a.order-button--hero:link,
a.order-button--hero:visited,
a.order-button--hero:hover,
a.order-button--hero:active,
a.order-button--hero:focus {
    color: #fff;
}

a.order-button:not(.order-button--hero):link,
a.order-button:not(.order-button--hero):visited,
a.order-button:not(.order-button--hero):hover,
a.order-button:not(.order-button--hero):focus {
    color: var(--lionex-heading);
}

.reference-link:link,
.reference-link:visited {
    color: var(--lionex-primary);
}

.home-card h2 a:link,
.home-card h2 a:visited,
.home-newsroom-list article h3 a:link,
.home-newsroom-list article h3 a:visited {
    color: inherit;
}

/* » link suffix — same font as body (inherit) */
.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card h2 a::after,
.page-home.page-our-mission .intro-site-statement-cta::after {
    content: "»";
    font-family: inherit;
    margin-left: 0.35em;
    font-size: 1em;
    font-weight: inherit;
    letter-spacing: 0.02em;
    opacity: 0.88;
    display: inline;
    vertical-align: baseline;
    line-height: inherit;
}

.page-home.page-our-mission .intro-site-statement-cta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Smooth scroll for hash links; scroll-margin avoids content hiding under fixed header */
html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 1.25rem;
}

/* Respect reduced motion preference (centralized – do not duplicate in page CSS) */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Site header */
.site-header {
    position: relative;
    z-index: 200;
    background: #ffffff !important;
    color: var(--lionex-text);
}

/* Solid Lionex blue band below header (hidden when a full-width page hero is first in main) */
.site-header::after {
    content: '';
    display: block;
    height: 6px;
    background: var(--lionex-primary-dark);
}

body:has(.main-content > .page-hero:first-child) .site-header::after,
body:has(.main-content > .home-hero-float-stack:first-child) .site-header::after {
    display: none;
}

.site-header-inner {
    max-width: var(--lionex-container-width);
    margin: 0 auto;
    padding: 24px 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 90px;
    width: auto;
    display: block;
}

.site-logo:hover img,
.site-logo:focus img {
    opacity: 0.95;
}

.site-header-inner > .site-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.site-header-inner > .site-nav > ul {
    justify-content: flex-end;
}

.site-header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-nav-search {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    color: var(--lionex-text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav-search:hover,
.site-nav-search:focus {
    color: var(--lionex-primary);
    background: rgba(0, 110, 183, 0.08);
}

.site-nav-search:focus-visible {
    outline: 2px solid var(--lionex-primary);
    outline-offset: 2px;
}

.site-nav-search__icon {
    display: block;
    flex-shrink: 0;
    color: var(--lionex-text-muted);
    opacity: 1;
}

.site-nav-search__field {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-nav-email {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    color: var(--lionex-text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav-email:hover,
.site-nav-email:focus {
    color: var(--lionex-primary);
    background: rgba(0, 110, 183, 0.08);
    text-decoration: none;
}

.site-nav-email:focus-visible {
    outline: 2px solid var(--lionex-primary);
    outline-offset: 2px;
}

.site-nav-email__icon {
    display: block;
    flex-shrink: 0;
    color: var(--lionex-text-muted);
    opacity: 1;
}

.site-nav-email__field {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header.is-search-open .site-nav-search {
    color: var(--lionex-primary);
    background: rgba(0, 110, 183, 0.08);
}

@media (min-width: 1024px) {
    .site-header-inner {
        flex-wrap: nowrap;
    }

    .site-header-inner > .site-nav > ul {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .site-header-tools {
        margin-left: 12px;
        margin-bottom: 9px;
    }

    .site-header-inner > .site-nav > ul > li > a,
    .site-header-inner > .site-nav > ul > li > .nav-dropdown-trigger {
        line-height: 1.25;
    }

    .site-nav-search {
        width: auto;
        height: auto;
    }

    .site-nav-search:hover,
    .site-nav-search:focus {
        color: var(--lionex-text-muted);
        background: transparent;
    }

    .site-nav-search__field {
        box-sizing: border-box;
        min-height: 26px;
        padding: 4px 10px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.72);
        line-height: 1;
        transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    }

    .site-nav-search__icon {
        width: 16px;
        height: 16px;
        color: rgba(0, 0, 0, 0.58);
    }

    .site-nav-search:hover .site-nav-search__icon,
    .site-nav-search:focus-visible .site-nav-search__icon {
        color: var(--lionex-primary);
    }

    .site-nav-search:hover .site-nav-search__field,
    .site-nav-search:focus-visible .site-nav-search__field {
        border-color: rgba(0, 0, 0, 0.1);
    }

    .site-header.is-search-open .site-nav-search {
        background: transparent;
    }

    .site-header.is-search-open .site-nav-search__field {
        border-color: rgba(0, 110, 183, 0.22);
        box-shadow: 0 0 0 1px rgba(0, 110, 183, 0.06);
    }

    .site-header.is-search-open .site-nav-search__icon {
        color: var(--lionex-primary);
    }

    .site-nav-email {
        width: auto;
        height: auto;
    }

    .site-nav-email:hover,
    .site-nav-email:focus {
        color: var(--lionex-text-muted);
        background: transparent;
    }

    .site-nav-email__field {
        box-sizing: border-box;
        min-height: 26px;
        padding: 4px 10px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.72);
        line-height: 1;
        transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    }

    .site-nav-email__icon {
        width: 16px;
        height: 16px;
        color: rgba(0, 0, 0, 0.58);
    }

    .site-nav-email:hover .site-nav-email__icon,
    .site-nav-email:focus-visible .site-nav-email__icon {
        color: var(--lionex-primary);
    }

    .site-nav-email:hover .site-nav-email__field,
    .site-nav-email:focus-visible .site-nav-email__field {
        border-color: rgba(0, 0, 0, 0.1);
    }

    .site-nav-email[aria-current="page"] .site-nav-email__field {
        border-color: rgba(0, 110, 183, 0.22);
        box-shadow: 0 0 0 1px rgba(0, 110, 183, 0.06);
    }

    .site-nav-email[aria-current="page"] .site-nav-email__icon {
        color: var(--lionex-primary);
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .site-header-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header-inner > .site-nav > ul {
        gap: 8px 14px;
    }
}

.site-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 210;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.site-search-panel[hidden] {
    display: none;
}

.site-search-panel__inner {
    max-width: var(--lionex-container-width);
    margin: 0 auto;
    padding: 20px 24px 24px;
}

.site-search-panel__field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 6px;
    background: #fafafa;
}

.site-search-panel__field:focus-within {
    border-color: var(--lionex-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 110, 183, 0.15);
}

.site-search-panel__field-icon {
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.58);
    opacity: 1;
}

.site-search-panel__input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 1.0625rem;
    color: var(--lionex-text);
    outline: none;
}

.site-search-panel__input::placeholder {
    color: var(--lionex-text-muted);
    opacity: 0.85;
}

.site-search-status {
    margin: 10px 0 0;
    font-size: var(--lionex-font-caption, 0.8125rem);
    color: var(--lionex-text-muted);
    min-height: 1.25em;
}

.site-search-results {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    max-height: min(60vh, 420px);
    overflow-y: auto;
}

.site-search-results__link {
    display: block;
    padding: 12px 4px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-search-results__link:hover,
.site-search-results__link:focus {
    background: rgba(0, 110, 183, 0.06);
}

.site-search-results__link:focus-visible {
    outline: 2px solid var(--lionex-primary);
    outline-offset: -2px;
}

.site-search-results__title {
    display: block;
    font-weight: 600;
    color: var(--lionex-primary);
}

.site-search-results__desc {
    display: block;
    margin-top: 4px;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--lionex-text-muted);
}

.site-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.site-nav a,
.site-nav a:link,
.site-nav a:visited {
    color: var(--lionex-text-muted);
    text-decoration: none;
    font-weight: 500;
}

.site-nav .nav-dropdown-trigger {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: var(--lionex-text-muted);
    text-decoration: none;
    font-weight: 500;
}

/* Button-only dropdown labels: color only (no underline — not navigation) */
.site-nav .nav-dropdown-trigger:hover,
.site-nav .nav-dropdown-trigger:focus-visible {
    color: var(--lionex-primary);
}

.site-nav a:hover {
    color: var(--lionex-primary);
    text-decoration: underline;
}

.site-nav a:focus-visible {
    color: var(--lionex-primary);
    text-decoration: underline;
}

.site-nav a[aria-current="page"] {
    color: var(--lionex-primary);
}

/* Nav dropdown – simple hover, very minimal styling */
.site-nav .nav-dropdown {
    position: relative;
}

.site-nav .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 8px 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 100;
}

@media (min-width: 1024px) {
    .site-nav .nav-dropdown.is-desktop-open .nav-dropdown-menu {
        display: flex;
    }

    .site-nav .nav-dropdown.is-desktop-open > .nav-dropdown-trigger {
        color: var(--lionex-primary);
    }
}

.site-nav .nav-dropdown-menu a {
    display: block;
    padding: 6px 16px;
    white-space: nowrap;
}

.site-nav .nav-dropdown-menu a:hover {
    background: rgba(0, 91, 159, 0.08);
}

.site-nav .nav-dropdown-menu a.nav-item-highlight {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Mobile menu toggle (hidden on desktop) */
.site-nav-toggle {
    display: none;
}

.site-nav-toggle__bar {
    display: block;
    height: 2px;
    width: 22px;
    background: #444;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Breadcrumb – hierarchy path below header */
.page-home .breadcrumb {
    display: none;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    min-height: 1.75rem;
}

.breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--lionex-text-light);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    line-height: 1.5;
    color: var(--lionex-text-muted);
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
}

.breadcrumb li+li::before {
    content: " › ";
    margin: 0 6px 0 4px;
    color: var(--lionex-text-light);
    white-space: pre;
}

.breadcrumb a,
.breadcrumb a:visited {
    color: var(--lionex-primary);
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--lionex-text-light);
}

/* Breadcrumb bar – flex wrapper; fixed vertical rhythm on all pages */
.breadcrumb-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--lionex-space-2);
    padding: var(--lionex-space-4) 0 var(--lionex-space-3);
    box-sizing: border-box;
}

.breadcrumb-back,
.breadcrumb-back:visited {
    line-height: 1.5;
    color: var(--lionex-primary);
    text-decoration: none;
    white-space: nowrap;
}

.breadcrumb-back:hover,
.breadcrumb-back:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Mobile: separate abbreviated list (... + last two levels); desktop keeps full trail */
.breadcrumb ol.breadcrumb__list--mobile {
    display: none;
}

@media (max-width: 768px) {
    .breadcrumb--use-mobile-abbrev ol.breadcrumb__list--full {
        display: none;
    }

    .breadcrumb--use-mobile-abbrev ol.breadcrumb__list--mobile {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: baseline;
        max-width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .breadcrumb--use-mobile-abbrev ol.breadcrumb__list--mobile .breadcrumb__ellipsis {
        flex: 0 0 auto;
        color: var(--lionex-text-light);
    }

    .breadcrumb--use-mobile-abbrev ol.breadcrumb__list--mobile > li:nth-last-child(2):not(.breadcrumb__ellipsis) {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 55%;
    }

    .breadcrumb--use-mobile-abbrev ol.breadcrumb__list--mobile > li:nth-last-child(2):not(.breadcrumb__ellipsis) a {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .breadcrumb--use-mobile-abbrev ol.breadcrumb__list--mobile > li:last-child {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Page title – section or product name (h1)
   Hidden visually; shown in nav only. Kept for SEO and accessibility. */
.page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    left: -10000px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Exception: product-specific pages – show title, aligned with breadcrumb and content */
.page-title.page-title--visible {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 0 20px 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    border: 0;
    font-weight: 600;
    color: var(--lionex-heading);
    line-height: 1.3;
}

/* Site footer – logo blue, full viewport width, constant across entire site */
.site-footer {
    margin-top: 0;
    padding: 42px 24px; /* 150% of previous 28px vertical padding */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    background: var(--lionex-primary);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.site-footer .footer-contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto 24px auto;
    text-align: left;
    align-items: start;
}

.site-footer .footer-contact-item {
    margin: 0;
    padding: 0;
}

.site-footer .footer-contact-item.footer-tuv {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.site-footer .footer-contact-item.footer-tuv a {
    display: block;
}

.site-footer .footer-contact-item.footer-tuv img {
    max-width: 200px;
    height: auto;
    display: block;
}

.site-footer .footer-contact-item h3 {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.site-footer .footer-contact-item .contact-details {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.site-footer .footer-contact-item .contact-details a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.site-footer .footer-contact-item .contact-details a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .site-footer .footer-contact-box {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .site-footer .footer-contact-item.footer-tuv {
        justify-self: start;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .site-footer .footer-contact-box {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-footer .footer-contact-item.footer-tuv {
        justify-self: center;
        align-items: center;
    }
}

.site-footer p {
    margin: 0 0 8px 0;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.site-footer a,
.site-footer a:visited {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
    text-decoration: underline;
}

.site-footer a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.site-footer .footer-note {
    color: rgba(255, 255, 255, 0.75);
}

.site-footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 1rem;
    margin: 0 0 28px 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer .footer-nav a {
    color: rgba(255, 255, 255, 0.95);
}

.site-footer .footer-nav-sep {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.25rem;
}

.site-footer .footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer .footer-copyright {
    margin: 0 0 16px 0;
}


.site-footer .footer-update {
    margin: 0;
    font-size: var(--lionex-font-caption);
    color: rgba(255, 255, 255, 0.6);
}

/* Main content area – full-width white; flex: 1 for sticky footer */
.main-content {
    flex: 1 1 auto;
    min-height: 60vh;
    padding-bottom: 24px;
    background: #ffffff;
}



.container {
    max-width: var(--lionex-container-width);
    margin: 0 auto;
    padding: var(--lionex-space-5);
    box-sizing: border-box;
}

/* Header container (breadcrumb) – horizontal padding only; vertical = .breadcrumb-bar */
.main-content .container--header {
    background: none;
    min-height: auto;
    margin: 0 auto;
    padding: 0 var(--lionex-space-5);
}

/* No extra gap under heroes — .breadcrumb-bar padding-top defines offset */
.page-hero + .container--header {
    margin-top: 0;
}

/* First container (direct child) – no top padding, except container--header which uses default for consistent gap */
.main-content>.container:first-child:not(.container--header) {
    padding-top: 0;
}

/* Body container – white background starts below intro; compact padding to match products */
.main-content .container--body {
    background: #ffffff;
    min-height: 60vh;
    padding: var(--lionex-space-5);
    margin: 0 auto;
}

/* Content after breadcrumb row: no extra top padding (gap = .breadcrumb-bar padding-bottom) */
.main-content .container--header + .main-backdrop .container--body,
.main-content .container--header + .container,
.main-content .container--header + section.intro {
    padding-top: 0;
    margin-top: 0;
}

/* First block in white body below breadcrumbs (Resources & Documents) */
.page-resources .main-backdrop .container--body > :first-child,
.page-documents .main-backdrop .container--body > :first-child {
    margin-top: var(--lionex-space-7);
}

/* Full-page containers (pages without intro: about, product detail) */
.main-content .container:not(.container--header):not(.container--body) {
    background: #ffffff;
    min-height: 100vh;
}

.page-research-project .main-content .container--body {
    min-height: auto;
}

/* Intro box – same width as page content, compact */
.intro {
    width: 100%;
    max-width: var(--lionex-container-width);
    margin: 0 auto var(--lionex-space-1);
    padding: var(--lionex-space-3) var(--lionex-space-5);
    box-sizing: border-box;
    background: linear-gradient(to right, #fff 0%, #eef2f7 50%, #fff 100%);
}

.intro h2 {
    margin: 0 auto 8px auto;
    max-width: 800px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--lionex-primary-dark);
    line-height: 1.25;
}

.intro p {
    margin: 0 auto;
    color: var(--lionex-intro-text);
    max-width: 800px;
    text-align: center;
    line-height: 1.6;
}

.intro > p.home-newsroom-eyebrow,
.intro > p.eyebrow-label,
.intro > p.intro__eyebrow {
    font-size: var(--lionex-font-caption);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lionex-text-muted);
    font-family: inherit;
    line-height: inherit;
    max-width: none;
    text-align: left;
}

/* Body copy: justified paragraphs (headings and UI blocks excluded below) */
.main-content p {
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.main-content .intro > p:not(.intro__eyebrow):not(.home-newsroom-eyebrow):not(.eyebrow-label) {
    text-align: center;
    text-align-last: center;
    hyphens: none;
}

.main-content .intro > p.intro__eyebrow,
.main-content .intro > p.home-newsroom-eyebrow,
.main-content .intro > p.eyebrow-label {
    text-align: left;
    text-align-last: left;
}

/* Site-statement card: left-aligned body (not centered intro band) */
.main-content .intro--site-statement__card p:not(.intro__eyebrow):not(.intro--site-statement__cta) {
    text-align: left;
    text-align-last: left;
    font-style: normal;
}

.main-content :is(
    .page-hero__content,
    .home-card,
    .home-newsroom,
    .product-card,
    .resource-card,
    .benefit-card,
    .contact-box,
    .why-lionex,
    .references--category,
    .page-footer-notes,
    .fact-quote,
    .product-ordering-catalogue-note,
    .site-search
) p,
.main-content p.product-ordering-catalogue-note {
    text-align: left;
    text-align-last: left;
    hyphens: none;
}

.main-content .benefit-card p {
    text-align: center;
    text-align-last: center;
}

.main-content .citation-list li {
    text-align: left;
}

/* Header nav: hamburger at max-width 1023px; full desktop header from 1024px */
@media (max-width: 1023px) {
    .site-header-inner {
        padding: 16px 16px 12px;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo tools"
            "nav nav";
        align-items: end;
        gap: 12px 16px;
    }

    .site-header-tools {
        grid-area: tools;
        align-self: end;
    }

    .site-logo {
        grid-area: logo;
        align-self: end;
    }

    .site-logo img {
        height: 70px;
    }

    .site-header-inner > .site-nav {
        grid-area: nav;
        flex: none;
        display: none;
        width: 100%;
        padding-top: 4px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .site-header-inner > .site-nav.is-open {
        display: block;
    }

    .site-header-inner > .site-nav > ul {
        justify-content: stretch;
    }

    .site-nav-search__field {
        min-height: 0;
        padding: 0;
        border: none;
        background: transparent;
    }

    .site-nav-email__field {
        min-height: 0;
        padding: 0;
        border: none;
        background: transparent;
    }

    .site-search-panel__inner {
        padding: 16px 16px 20px;
    }

    .site-nav-search {
        width: 44px;
        height: 44px;
    }

    .site-nav-email {
        width: 44px;
        height: 44px;
    }

    .site-nav-search__icon {
        width: 22px;
        height: 22px;
    }

    .site-nav-email__icon {
        width: 22px;
        height: 22px;
    }

    .site-nav-toggle {
        grid-area: unset;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        border-radius: 6px;
    }

    .site-nav-toggle:focus-visible {
        outline: 2px solid var(--lionex-primary);
        outline-offset: 2px;
    }

    .site-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav > ul > li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .site-nav > ul > li:last-child {
        border-bottom: none;
    }

    .site-nav > ul > li > a,
    .site-nav > ul > li > .nav-dropdown-trigger {
        display: block;
        padding: 12px 4px;
    }

    .site-nav > ul > li.nav-dropdown > a,
    .site-nav > ul > li.nav-dropdown > .nav-dropdown-trigger {
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .site-nav .nav-dropdown > a,
    .site-nav .nav-dropdown > .nav-dropdown-trigger {
        position: relative;
        padding-right: 2.5rem;
    }

    .site-nav .nav-dropdown > a::after,
    .site-nav .nav-dropdown > .nav-dropdown-trigger::after {
        content: "";
        position: absolute;
        right: 4px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-65%) rotate(45deg);
        transition: transform 0.2s ease;
    }

    .site-nav .nav-dropdown.is-open > a::after,
    .site-nav .nav-dropdown.is-open > .nav-dropdown-trigger::after {
        transform: translateY(-35%) rotate(-135deg);
    }

    .site-nav .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        padding: 4px 0 8px 12px;
        min-width: 0;
    }

    .site-nav .nav-dropdown.is-open > .nav-dropdown-menu {
        display: flex;
    }

    .site-nav .nav-dropdown:hover .nav-dropdown-menu,
    .site-nav .nav-dropdown:focus-within .nav-dropdown-menu {
        display: none;
    }

    .site-nav .nav-dropdown.is-open:hover .nav-dropdown-menu,
    .site-nav .nav-dropdown.is-open:focus-within .nav-dropdown-menu {
        display: flex;
    }

    .site-nav .nav-dropdown-menu a {
        padding: 8px 4px;
        white-space: normal;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: var(--lionex-space-4);
    }

    .main-content .container--body {
        padding: var(--lionex-space-4);
    }

    .intro {
        padding: var(--lionex-space-3) var(--lionex-space-4);
        margin: 0 auto var(--lionex-space-1);
    }

    .intro h2 {
        margin-bottom: 6px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: var(--lionex-space-3);
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--lionex-space-3);
        min-height: auto;
    }

    .main-content .container--body {
        padding: var(--lionex-space-3);
    }

    .page-title.page-title--visible {
        margin-bottom: 16px;
    }

    .intro {
        padding: var(--lionex-space-3);
        margin: 0 auto var(--lionex-space-1);
    }

    .intro h2 {
        margin-bottom: 6px;
    }
}