/* =========================================================================
   Xinbaian Migration — main.css
   Single organized stylesheet implementing design/design-tokens.json as CSS
   custom properties. Desktop-first (matches the Magento "Simplified/Safety"
   source). No external assets; no hotlinks.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens (design/design-tokens.json → custom properties)
   ------------------------------------------------------------------------- */
:root {
    /* Palette */
    --xb-navy: #21293a;
    --xb-navy-light: #40485b;
    --xb-yellow: #ffea00;
    --xb-yellow-hover: #fffb00;
    --xb-cyan: #1dbfea;
    --xb-cyan-hover: #14a0d9;
    --xb-cyan-light: #4cccee;
    --xb-link: #3568b5;
    --xb-link-hover: #5182cc;
    --xb-text: #646975;
    --xb-text-dark: #171717;
    --xb-muted: #797e89;
    --xb-border: #d3d3d3;
    --xb-line: #e1e3e8;
    --xb-bg-light: #f4f4f4;
    --xb-bg-f8: #f8f8f9;
    --xb-danger: #f8584e;
    --xb-footer-bg: var(--xb-navy);
    --xb-footer-text: #a7adba;
    --xb-footer-border: #40485b;

    /* Type */
    --xb-font-sans: 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
                    'Helvetica Neue', Arial, sans-serif;
    --xb-font-size: 15px;
    --xb-line-height: 1.65;
    --xb-weight-normal: 400;
    --xb-weight-bold: 700;
    --xb-weight-thin: 100;

    /* Shape / shadow */
    --xb-radius: 4px;
    --xb-radius-top: 4px 4px 0 0;
    --xb-card-border: 1px solid var(--xb-border);
    --xb-shadow-hover: 0 1px 5px rgba(30, 43, 50, 0.12);
    --xb-hero-overlay: rgba(33, 41, 58, 0.6);
    --xb-hero-fade: linear-gradient(0deg, rgba(33, 41, 58, 0.7) 15%, transparent 75%),
                    radial-gradient(ellipse closest-corner at 50%, rgba(33, 41, 58, 0.8), transparent 75%);
    --xb-navcard-fade: linear-gradient(0deg, rgba(33, 41, 58, 0.8) 13%, rgba(33, 41, 58, 0.1) 89%);

    /* Layout */
    --xb-container: 91rem;          /* 1456px */
    --xb-gutter-desktop: 4vw;
    --xb-gutter-mobile: 2vw;
    --xb-section-space: calc(3.5rem + 1.5vmin);
    --xb-section-space-sm: calc(1rem + 3vmin);
    --xb-grid-gap: 3rem 2vw;

    /* Motion */
    --xb-ease: 200ms ease;
    --xb-ease-fast: 100ms ease;
    --xb-drawer-width: 300px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--xb-font-sans);
    font-size: var(--xb-font-size);
    line-height: var(--xb-line-height);
    color: var(--xb-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--xb-link); text-decoration: none; }
a:hover { color: var(--xb-link-hover); }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    color: var(--xb-navy);
    font-weight: var(--xb-weight-bold);
    line-height: 1.2;
}
h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.45; padding-bottom: 1em; }
h2 { font-size: clamp(1.375rem, 5vw, 1.5rem); padding-bottom: 1em; }
h3 { font-size: clamp(1.5rem, 6vw, 2.5rem); line-height: 1.45; padding-bottom: 1em; }
h4 { font-size: clamp(1.25rem, 5vw, 1.5rem); padding-bottom: 1em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }

::selection { background: var(--xb-yellow); color: var(--xb-navy); }

/* -------------------------------------------------------------------------
   3. Accessibility helpers
   ------------------------------------------------------------------------- */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100000;
    background: var(--xb-navy); color: #fff; padding: 0.8em 1.2em;
}
.skip-link:focus { left: 0; color: #fff; }

:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--xb-cyan);
    outline-offset: 2px;
    border-radius: 2px;
}

@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;
    }
}

/* -------------------------------------------------------------------------
   4. Layout primitives
   ------------------------------------------------------------------------- */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

.page-main { flex: 1 0 auto; }

/* Responsive visibility helpers (small boundary = 40rem / 640px, source parity) */
.only-small-min { display: none; }
.only-small-max { display: block; }
@media (min-width: 40rem) {
    .only-small-min { display: block; }
    .only-small-max { display: none; }
}

/* -------------------------------------------------------------------------
   5. Header / top bar
   ------------------------------------------------------------------------- */
.page-header { background: #fff; }

.panel.wrapper { background: rgba(30, 43, 50, 0.06); }

.header-top {
    align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.3em var(--xb-gutter-desktop); line-height: 32px;
    font-size: 13px; color: var(--xb-navy);
    max-width: var(--xb-container); margin: 0 auto;
}
/* Topbar only shows ≥40rem (mobile uses the hamburger bar instead). */
@media (min-width: 40rem) {
    .header-top { display: flex; }
}
.header-top-component { display: flex; align-items: center; gap: 1.25rem; }
.header-top-slogan { flex: 1 1 auto; padding: 1em 0; font-weight: var(--xb-weight-bold); }
/* Source pill: white bg, 1px #d3d3d3 border, radius 3px, ~35px tall */
.header-top-contact-link {
    display: inline-flex; align-items: center; gap: 0.5em;
    padding: 0.6rem 1.2rem; background: #fff;
    border: 1px solid var(--xb-border); border-radius: 3px;
    white-space: nowrap; line-height: 1.2;
    color: var(--xb-navy); font-weight: var(--xb-weight-bold);
}
.header-top-contact-link:hover { color: var(--xb-navy); border-color: var(--xb-cyan); }
/* Constrain inline SVG icons so they can never blow up the top bar height */
.header-top-contact-link .header-top-icon-contact { width: 14px; height: 14px; flex: 0 0 auto; }

/* Search form (top bar / mobile / 404 / search page) */
.xb-search-form { display: flex; }
.xb-search-form__field {
    display: inline-flex; align-items: center; gap: 0;
    border: 1px solid var(--xb-border); border-radius: var(--xb-radius);
    background: #fff; overflow: hidden; max-width: 100%;
}
.xb-search-form__input {
    border: 0; padding: 0.45em 0.8em; font: inherit; color: var(--xb-text-dark);
    background: transparent; min-width: 0; width: 14em;
}
.xb-search-form__input:focus-visible { outline: 2px solid var(--xb-cyan); outline-offset: -2px; }
.xb-search-form__button {
    border: 0; background: var(--xb-navy); color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.4em; height: 2.4em; flex: 0 0 auto;
}
.xb-search-form__button:hover { background: var(--xb-cyan); }
.xb-search-form__button svg { width: 18px; height: 18px; }

/* Logo */
.logo { display: inline-block; }
.logo-image { display: block; width: 103px; height: 38px; }

/* Primary header row */
.header-primary-container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2vw; padding: 1em 2vw;
    max-width: var(--xb-container); margin: 0 auto;
}
.header-navigation .header-navigation-items { display: flex; width: 100%; }
.header-navigation .header-navigation-items > * { flex: 1 1 auto; min-width: 0; }

/* Navigation (desktop navy bar + mobile drawer). Links are white on the
   navy bar (≥64rem, source #21293A) and white on the navy drawer below. */
.navigation.nav-header-container { display: flex; flex: 1 1 auto; min-width: 0; width: 100%; }
.nav-header { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 0; }
.nav-header-item { position: relative; }
.nav-header-link {
    display: flex; align-items: center; justify-content: center;
    width: 100%; gap: 0.4em;
    padding: 1em 0.35em; font-size: 15px; font-weight: 400;
    color: #fff; text-align: center; line-height: inherit;
}
.nav-header-item:hover > .nav-header-link,
.nav-header-item:focus-within > .nav-header-link,
.nav-header-item.is-active > .nav-header-link,
.nav-header-item.is-open > .nav-header-link {
    background: var(--xb-cyan); color: #fff;
}
/* Chevron shown at desktop (source keeps .nav-header-icon visible ≥40.01rem);
   rotates while the panel is open. */
.nav-header-icon {
    width: 14px; height: 14px; flex: 0 0 auto;
    fill: rgba(255, 255, 255, 0.88);
    transition: transform 150ms ease;
}
.nav-header-item.is-open > .nav-header-link .nav-header-icon { transform: rotate(180deg); }

@media (min-width: 64rem) {
    /* Desktop: solid navy bar, right-aligned, ~55px tall (source nav y=106 h=55) */
    .header-navigation { background: var(--xb-navy); flex: 1 1 auto; min-width: 0; }
    .navigation.nav-header-container .nav-header { flex: 1 1 auto; }
    .nav-header { justify-content: flex-end; align-items: center; padding-right: 4px; }
    .nav-header-item { flex-grow: 1; }
    .nav-header-link { background: var(--xb-navy); }
    .nav-header-link:hover { color: #fff; }
    .nav-header-item:first-child > .nav-header-link { border-radius: 4px 0 0 4px; }
    .nav-header-item:last-child > .nav-header-link { border-radius: 0 4px 4px 0; }
    .nav-header-item:not(:first-child):not(:last-child) > .nav-header-link { border-radius: 0; }
}

/* Mega menu panel — hidden by default; opens on :hover / :focus-within /
   .is-open (JS click/keyboard toggle). Geometry matches the source measured
   at 1440x900: white box, 1px #d3d3d3 border, radius 5px, shadow
   0 2px 10px 1px rgba(0,0,0,.09), 3×200px grid with 30px gaps, z-index 100. */
.menu-panel {
    display: none;
    position: absolute; left: 0; top: 80%;
    z-index: 100;
    width: max-content;
    max-width: calc(100vw - 20px - 2em);   /* off-screen prevention */
    margin-top: 1.5em;
    padding: 0; border: 0; box-shadow: none; background: transparent;
    transform-origin: top center;
    animation: xb-panel-in 120ms ease-out;
}
/* Hover bridge: keeps the pointer inside the hover chain when moving from the
   nav link down into the panel (source .menu-panel::before). */
.menu-panel::before {
    content: ""; position: absolute; height: 1.6em; width: 100%;
    left: 0; bottom: 100%;
}
/* Open states: hover, click-pinned (.is-open), or keyboard focus strictly
   INSIDE the panel (:has(> .menu-panel :focus)). The trigger link's own focus
   deliberately does NOT open/hold the panel — otherwise a click on the trigger
   (which keeps focus on the link) leaves the panel stuck open until the user
   clicks elsewhere (live defect, fixed 2026-08-12). */
.nav-header-item:hover > .menu-panel,
.nav-header-item.is-open > .menu-panel,
.nav-header-item:has(> .menu-panel :focus) > .menu-panel { display: block; }
@keyframes xb-panel-in {
    from { opacity: 0; transform: translateY(-4px); }
}
/* Panels of the last two items align to the right edge so they can never
   overflow the viewport (source .nav-header-item:nth-last-child(-n+2)). */
.nav-header-item:nth-last-child(-n+2) > .menu-panel { left: auto; right: 0; }
.menu-panel__exit {
    position: absolute; top: 0.5em; right: 0.5em; z-index: 10;
    padding: 0.25em; border: 0; background: transparent; cursor: pointer;
    color: var(--xb-muted); display: inline-flex;
}
.menu-panel__exit:hover { color: var(--xb-navy); }
.menu-panel__exit svg { width: 18px; height: 18px; }
/* The visible box: grid lives on the contents wrapper (source
   .menu-panel__contents--grid), columns driven by the inline --column-count. */
.menu-panel--grid .menu-panel__contents {
    display: grid;
    grid-template-columns: repeat(var(--column-count, 3), minmax(0, 200px));
    gap: 30px;
    margin: 0; padding: 37.5px 30px 30px;
    background: #fff;
    border: 1px solid var(--xb-border);
    border-radius: 5px;
    box-shadow: 0 2px 10px 1px rgba(0, 0, 0, 0.09);
}
.menu-panel__contents { list-style: none; margin: 0; padding: 0; }
.menu-panel__section { break-inside: avoid; }
.menu-panel__header {
    display: block; margin-bottom: 0.65em;
    font-size: 18px; font-weight: var(--xb-weight-bold);
    color: var(--xb-navy);
}
.menu-panel__header:hover { color: var(--xb-link); }
/* Panel link list is plain (the homepage .nav-card card chrome is scoped out). */
.menu-panel .nav-card {
    display: block; height: auto; margin: 0; padding: 0;
    background: transparent; border: 0; border-radius: 0; overflow: visible;
}
.menu-panel .nav-card__item-wrap { list-style: none; }
.menu-panel .nav-card__item {
    display: block; padding: 0.25em 0; font-size: 15px;
    line-height: 1.8em; color: var(--xb-text); border-bottom: 0;
}
.menu-panel .nav-card__item:hover { color: var(--xb-link); background: transparent; }
.menu-panel .nav-card__link:hover { text-decoration: underline; }

/* Mobile bar + drawer */
.header-small {
    align-items: center; justify-content: space-between;
    gap: 0.5rem; padding: 0.6rem var(--xb-gutter-mobile); background: #fff;
}
@media (max-width: 39.99rem) {
    .header-small { display: flex; }
}
.header-small-action {
    border: 0; background: transparent; color: var(--xb-navy); cursor: pointer;
    padding: 0.4em; display: inline-flex;
}
.header-small-action svg { width: 24px; height: 24px; }
.header-small-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.menu-small-close svg { width: 24px; height: 24px; }

/* -------------------------------------------------------------------------
   RUN6: mobile header parity with source at 390x844.
   Source mobile header = 68px bar (hamburger | centered logo | phone, on the
   light-gray rgba(30,43,50,0.06) panel) + 35px full-width search row = 103px
   total; hero then starts at y=103 (previously 57px bar, no search row).
   All rules below are scoped to <40rem so desktop top bar + mega menu are
   untouched. The no-JS fallback is unaffected (no JS involvement).
   ------------------------------------------------------------------------- */
.header-small-search { display: none; }
@media (max-width: 39.99rem) {
    .header-small {
        height: 68px; padding: 0;
        background: rgba(30, 43, 50, 0.06);
    }
    .header-small .logo {
        width: 148px; margin-left: auto; margin-right: auto; padding-left: 30px;
        display: flex; align-items: center;
    }
    .header-small .logo img { width: 94px; height: 38px; }
    .header-small-action { padding: 1.25em; align-self: flex-start; }
    /* <button> does not inherit font-size; 1.25em padding must equal 18.75px
       (source .header-small-action is a <span> at 15px base). */
    .header-small-toggle { font-size: inherit; }
    .header-small-toggle .header-small-icon { width: 25px; height: 20px; }
    .header-small-phone .header-small-icon { width: 18px; height: 18px; }
    .header-small-search { display: block; background: #fff; }
    .header-small-search .xb-search-form { height: 35px; width: 100%; }
    .header-small-search .xb-search-form__field {
        border: 0; border-bottom: 1px solid var(--xb-border); border-radius: 0;
        height: 35px; width: 100%;
    }
    .header-small-search .xb-search-form__input {
        height: 34px; padding: 0 0.8em; font-size: 15px; flex: 1 1 auto; width: auto;
    }
    .header-small-search .xb-search-form__button {
        width: 43px; height: 35px; background: transparent; color: var(--xb-navy);
    }
    .header-small-search .xb-search-form__button:hover { background: transparent; color: var(--xb-cyan-hover); }
    .header-small-search .xb-search-form__button svg { width: 14px; height: 14px; }
}

.menu-small-container {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 90;
    width: var(--xb-drawer-width); max-width: 85vw;
    background: var(--xb-navy); color: #fff; overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 300ms ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}
.menu-small-container.is-open { transform: translateX(0); }
body.xb-menu-open { overflow: hidden; }
.menu-small { padding: 1rem 0 2rem; }
.menu-small-section { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--xb-footer-border); }
.menu-small-header {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.menu-small-close { border: 0; background: transparent; color: #fff; cursor: pointer; padding: 0.4em; }
.menu-small-nav { list-style: none; margin: 0; padding: 0; }
.menu-small-nav a {
    display: block; color: #fff; padding: 0.6em 0.25em; border-bottom: 1px solid var(--xb-footer-border);
}
.menu-small-nav a:hover { color: var(--xb-yellow); }
.menu-small-phone { color: #fff; font-weight: var(--xb-weight-bold); font-size: 1.1em; }
.menu-small-address { font-style: normal; color: var(--xb-footer-text); font-size: 13px; margin-top: 0.4em; }

/* Drawer re-uses the primary nav as an accordion: top-level rows white on
   navy, parents toggle their (static, in-flow) mega panel via .is-open. */
.menu-small-container .navigation.nav-header-container { display: block; width: 100%; }
.menu-small-container .nav-header { display: block; list-style: none; margin: 0; padding: 0; }
.menu-small-container .nav-header-item { position: static; flex: none; width: 100%; }
.menu-small-container .nav-header-link {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; gap: 0.4em;
    padding: 0.6em 0.25em; font-size: 15px; font-weight: var(--xb-weight-bold);
    color: #fff; text-align: left; background: transparent;
    border-bottom: 1px solid var(--xb-footer-border);
}
.menu-small-container .nav-header-item:hover > .nav-header-link,
.menu-small-container .nav-header-item:focus-within > .nav-header-link,
.menu-small-container .nav-header-item.is-open > .nav-header-link {
    background: transparent; color: var(--xb-yellow);
}
.menu-small-container .nav-header-icon { display: block; width: 14px; height: 14px; flex: 0 0 auto; }
.menu-small-container .nav-header-item.is-open > .nav-header-link .nav-header-icon { transform: rotate(180deg); }
.menu-small-container .menu-panel {
    display: none; position: static; width: 100%; max-width: none;
    margin: 0; padding: 0 0 0.5em 1em;
    background: transparent; border: 0; box-shadow: none;
    animation: none;
}
.menu-small-container .menu-panel--grid .menu-panel__contents {
    display: block; width: 100%; max-width: none;
    margin: 0; padding: 0;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.menu-small-container .menu-panel__section { margin-bottom: 0.75em; }
.menu-small-container .menu-panel__header {
    margin-bottom: 0.35em; font-size: 14px; font-weight: var(--xb-weight-bold);
    color: var(--xb-yellow);
}
.menu-small-container .menu-panel__header:hover { color: var(--xb-yellow); }
.menu-small-container .menu-panel .nav-card {
    display: block; height: auto; margin: 0; padding: 0;
    background: transparent; border: 0; border-radius: 0; overflow: visible;
}
.menu-small-container .menu-panel .nav-card__item {
    padding: 0.3em 0; font-size: 13px; line-height: 1.6;
    color: #fff; border-bottom: 0;
}
.menu-small-container .menu-panel .nav-card__item:hover {
    color: var(--xb-yellow); background: transparent; text-decoration: none;
}
.menu-small-container .menu-panel__exit { display: none; }

/* -------------------------------------------------------------------------
   6. Breadcrumbs
   ------------------------------------------------------------------------- */
.xb-breadcrumbs {
    padding: 0.6em var(--xb-gutter-desktop); font-size: 13px;
    max-width: var(--xb-container); margin: 0 auto;
}
.xb-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4em; margin: 0; padding: 0; }
.xb-breadcrumbs li { display: flex; align-items: center; gap: 0.4em; }
.xb-breadcrumbs a { color: var(--xb-text); }
.xb-breadcrumbs a:hover { color: var(--xb-link); }
.xb-breadcrumbs__sep { color: var(--xb-muted); }
.xb-breadcrumbs [aria-current="page"] { color: var(--xb-navy); font-weight: var(--xb-weight-bold); }

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */
.masthead { width: 100%; }
.hero__container { position: relative; }
.hero {
    position: relative; min-height: calc(22em + 4vw);
    max-height: 50vmin; height: 35vmin; overflow: hidden;
    display: flex; align-items: center;
}
.hero--fade::after {
    content: ""; position: absolute; inset: 0;
    background: var(--xb-hero-fade); pointer-events: none;
}
.hero__image {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__image--placeholder {
    background: linear-gradient(135deg, var(--xb-navy) 0%, var(--xb-cyan) 100%);
    background-size: cover; display: block;
}
.hero__bkg-overlay {
    position: absolute; inset: 0; background: var(--xb-hero-overlay);
}
.hero__art { position: absolute; inset: 0; }
.hero__content-wrapper {
    position: relative; z-index: 2; width: 100%;
    max-width: var(--xb-container); margin: 0 auto; padding: 2rem var(--xb-gutter-desktop);
}
.hero__content { color: #fff; max-width: 46rem; }
.hero__primary { color: #fff; }
.u-heading-2.hero__primary { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25); }
.hero__sub-content p { margin: 0 0 1em; color: #f0f2f6; font-size: 1.05em; }
.hero__column { margin-top: 1.25em; }

/* -------------------------------------------------------------------------
   8. Buttons
   ------------------------------------------------------------------------- */
.link-as-button {
    display: inline-block; border-radius: var(--xb-radius);
    font-size: 15px; font-weight: var(--xb-weight-bold); text-align: center;
    cursor: pointer;
}
.button-light-large {
    background: var(--xb-yellow); color: var(--xb-navy);
    padding: 0.65em 2.5em;
}
.button-light-large:hover { background: var(--xb-yellow-hover); color: var(--xb-navy); }
.button-cyan {
    background: var(--xb-cyan); color: #fff; padding: 0.8em 2.5em;
}
.button-cyan:hover { background: var(--xb-cyan-hover); color: #fff; }
.button-outline {
    background: #fff; color: var(--xb-cyan); border: 3px solid var(--xb-cyan);
    padding: 0.6em 1em;
}
.button-outline:hover { background: var(--xb-cyan); color: #fff; }

/* -------------------------------------------------------------------------
   9. Section rhythm / headings
   ------------------------------------------------------------------------- */
.u-section-divider { padding-top: var(--xb-section-space-sm); }
.u-space-top { padding-top: var(--xb-section-space); }
.u-heading-1 { font-size: clamp(2.25rem, 12vw, 4.375rem); line-height: 1.2; }
.u-heading-2 { font-size: clamp(1.75rem, 8vw, 3.375rem); line-height: 1.2; padding-bottom: 0.5em; }
.u-heading-3 { font-size: clamp(1.5rem, 6vw, 2.5rem); line-height: 1.45; padding-bottom: 1em; }
.u-heading-4 { font-size: clamp(1.25rem, 5vw, 1.5rem); padding-bottom: 1em; }

.layout--full { width: 100%; }
.layout--large { max-width: 70rem; }
.layout--medium { max-width: 40rem; }
.layout--small-med { max-width: 34rem; }
.layout--large, .layout--medium, .layout--small-med {
    margin-left: auto; margin-right: auto; padding-left: var(--xb-gutter-desktop);
    padding-right: var(--xb-gutter-desktop);
}
.u-expand-med { max-width: 91rem; }

.page-layout { padding-left: var(--xb-gutter-mobile); padding-right: var(--xb-gutter-mobile); }
@media (min-width: 40rem) {
    .page-layout { padding-left: var(--xb-gutter-desktop); padding-right: var(--xb-gutter-desktop); }
}
.page-layout { max-width: 100%; }
.main-container {
    max-width: var(--xb-container); margin: 0 auto; padding-top: 1.5rem;
}
.columns { display: block; }
.column.main { max-width: 100%; }

/* -------------------------------------------------------------------------
   10. Grids + cards
   ------------------------------------------------------------------------- */
.grid {
    display: grid; grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: var(--xb-grid-gap); list-style: none; margin: 0 0 var(--xb-grid-gap); padding: 0;
}
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 54rem) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.grid__item { margin-bottom: 0; }

.card { background: #fff; border: var(--xb-card-border); border-radius: var(--xb-radius); }

.article-card { overflow: hidden; height: 100%; display: flex; }
.article-card__link {
    display: flex; flex-direction: column; width: 100%; color: inherit;
}
.article-card__link:hover { color: inherit; }
.article-card:hover { box-shadow: var(--xb-shadow-hover); }
.article-card__image-container { overflow: hidden; }
.article-card__image { display: block; width: 100%; aspect-ratio: 100 / 65; object-fit: cover; }
.xb-placeholder.article-card__image,
.article-card__image-container .xb-placeholder {
    display: block; width: 100%; aspect-ratio: 100 / 65;
    background: var(--xb-bg-light) repeating-linear-gradient(
        45deg, #eceef1 0 12px, var(--xb-bg-f8) 12px 24px);
}
.article-card__info { padding: 1em 1em 3em; position: relative; flex: 1 1 auto; }
.article-card__heading { color: var(--xb-link); font-size: clamp(1.3em, 4.5vw, 1.6em); padding-bottom: 0.5em; }
.article-card__meta { font-size: 11px; color: var(--xb-muted); text-transform: uppercase; }
.article-card__meta time { letter-spacing: 0.04em; }
.article-card__description {
    font-size: 13px; color: var(--xb-text); line-height: 1.6; margin-top: 0.6em;
}
.article-card__continue-link {
    position: absolute; left: 1em; bottom: 1em;
    color: var(--xb-link); font-weight: var(--xb-weight-bold); font-size: 18px;
    display: inline-flex; align-items: center; gap: 0.35em;
}
.article-card__continue-link svg { width: 16px; height: 16px; }

/* Product link card (related sections) */
.xb-product-link {
    display: flex; flex-direction: column; gap: 0.75em; height: 100%;
    border: var(--xb-card-border); border-radius: var(--xb-radius); padding: 1em;
    color: inherit; background: #fff;
}
.xb-product-link:hover { box-shadow: var(--xb-shadow-hover); color: inherit; }
.xb-product-link__media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.xb-product-link__body { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; }
.xb-product-link__title { font-weight: var(--xb-weight-bold); color: var(--xb-navy); }
.xb-product-link__arrow { width: 18px; height: 18px; color: var(--xb-cyan); flex: 0 0 auto; }

/* Nav cards (homepage / category children) */
.nav-card-row {
    display: grid; grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem 2vw; margin: 0 0 var(--xb-grid-gap);
}
@media (min-width: 40rem) { .nav-card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 54rem) { .nav-card-row--3, .nav-card-row--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .nav-card-row--four, .nav-card-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.nav-card {
    background: #fff; border: var(--xb-card-border); border-radius: var(--xb-radius-top);
    overflow: hidden; margin: 0; padding: 0; list-style: none;
    display: flex; flex-direction: column; height: 100%;
}
.nav-card__header { display: block; position: relative; overflow: hidden; }
.nav-card__header:hover { text-decoration: none; }
.nav-card__media {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    max-height: 14em;
}
.nav-card__media--placeholder {
    display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 14em;
    background: var(--xb-navcard-fade), var(--xb-bg-light);
}
.nav-card__heading {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    margin: 0; padding: 2em 0.8em 0.5em; color: #fff; font-size: 30px; font-weight: var(--xb-weight-bold);
    background: var(--xb-navcard-fade); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.nav-card__item-wrap { list-style: none; }
.nav-card__item {
    display: block; padding: 1em; border-bottom: 1px solid var(--xb-border);
    color: var(--xb-text); font-size: 14px;
}
.nav-card__item:hover { color: var(--xb-link); background: var(--xb-bg-f8); }
.nav-card__footer {
    display: block; margin-top: auto; padding: 1em; color: var(--xb-link);
    font-weight: var(--xb-weight-bold); font-size: 14px; border-top: 1px solid var(--xb-line);
}
.nav-card__footer svg { width: 16px; height: 16px; vertical-align: -3px; }

/* Icon link rows (nav-minimal) */
.nav-minimal { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; margin-bottom: var(--xb-grid-gap); }
.nav-minimal__link {
    display: inline-flex; align-items: center; gap: 0.5em;
    color: var(--xb-navy); font-weight: var(--xb-weight-bold); font-size: 15px;
    padding: 0.3em 0;
}
.nav-minimal__link:hover { color: var(--xb-cyan-hover); }
.nav-minimal__link svg { width: 20px; height: 20px; color: var(--xb-cyan); }

/* Logo strip */
.logo-holder { margin-bottom: var(--xb-grid-gap); }
.xb-logo-strip {
    display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0;
}
.xb-logo-strip__item {
    flex: 1 1 8rem; max-width: 12rem; min-height: 4.5rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--xb-line); border-radius: var(--xb-radius);
    background: var(--xb-bg-f8); color: var(--xb-muted); font-size: 13px;
    padding: 0.75rem;
}
.xb-logo-strip__item img { max-height: 3rem; }

/* Help card */
.help-card { background: var(--xb-navy); color: #fff; border-radius: var(--xb-radius); padding: 2em; }
.help-card__heading { color: #fff; padding-bottom: 0.5em; }
.help-card__content { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5em; justify-content: space-between; }
.help-card__description { color: var(--xb-footer-text); margin: 0; max-width: 40rem; }

/* Anchor nav (sticky) */
.xb-anchor-nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--xb-line); }
.sticky__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0.5em 0; max-width: var(--xb-container); margin: 0 auto; }
.sticky__link { font-size: 13px; font-weight: var(--xb-weight-bold); color: var(--xb-navy); padding: 0.3em 0; }
.sticky__link:hover { color: var(--xb-cyan-hover); }
.sticky__link.is-active { color: var(--xb-cyan-hover); border-bottom: 2px solid var(--xb-cyan); }
.sticky-button { margin: 0.3em 0 0.3em auto; font-size: 13px; }
.sticky-button svg { width: 18px; height: 18px; vertical-align: -2px; margin-right: 0.35em; }

/* -------------------------------------------------------------------------
   11. Prose / content
   ------------------------------------------------------------------------- */
.xb-prose { color: var(--xb-text); }
.xb-prose h2, .xb-prose h3, .xb-prose h4 { margin-top: 1.5em; }
.xb-prose a { text-decoration: underline; }
.xb-prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.xb-prose th, .xb-prose td { border: 1px solid var(--xb-border); padding: 0.6em 0.8em; text-align: left; }
.xb-prose th { background: var(--xb-bg-f8); color: var(--xb-navy); }
.xb-prose ul, .xb-prose ol { margin-bottom: 1em; }
.xb-prose img { border-radius: var(--xb-radius); }
.xb-prose blockquote { border-left: 3px solid var(--xb-cyan); margin: 1em 0; padding: 0.2em 1em; color: var(--xb-muted); }
.xb-prose pre { background: var(--xb-bg-f8); padding: 1em; overflow: auto; border-radius: var(--xb-radius); }
.xb-prose code { background: var(--xb-bg-f8); padding: 0.1em 0.35em; border-radius: 3px; }

.xb-image { display: block; }
.xb-placeholder { display: block; }

/* Specs / features / standards / gallery */
.xb-specs { width: 100%; border-collapse: collapse; margin: 1em 0; }
.xb-specs th, .xb-specs td { border: 1px solid var(--xb-border); padding: 0.6em 0.8em; text-align: left; font-size: 14px; }
.xb-specs th { width: 32%; background: var(--xb-bg-f8); color: var(--xb-navy); }

.xb-features { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem 2vw; list-style: none; margin: 0 0 1em; padding: 0; }
@media (min-width: 40rem) { .xb-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .xb-features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.xb-features__item { border: var(--xb-card-border); border-radius: var(--xb-radius); padding: 1.25em; }
.xb-features__icon { width: 44px; height: 44px; object-fit: contain; margin-bottom: 0.75em; }
.xb-features__title { color: var(--xb-navy); padding-bottom: 0.4em; }
.xb-features__text { font-size: 14px; color: var(--xb-text); margin: 0; }

.xb-standards { list-style: none; margin: 0 0 1em; padding: 0; }
.xb-standards li { padding: 0.5em 0; border-bottom: 1px solid var(--xb-line); }
.xb-standards strong { color: var(--xb-navy); }
.xb-standards span { color: var(--xb-muted); font-size: 14px; }

.xb-gallery { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem 2vw; list-style: none; margin: 0 0 1em; padding: 0; }
@media (min-width: 40rem) { .xb-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.xb-gallery__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--xb-radius); }

/* Badge */
.xb-badge {
    display: inline-block; background: var(--xb-cyan); color: #fff;
    font-size: 12px; font-weight: var(--xb-weight-bold); letter-spacing: 0.05em;
    border-radius: 3px; padding: 0.3em 0.8em; margin-bottom: 1em;
}

/* -------------------------------------------------------------------------
   12. Template-specific blocks
   ------------------------------------------------------------------------- */
/* Single product / solution / insight / download */
.page-title { margin: 0 0 0.35em; }
.product-header { margin-bottom: 1.25em; }
.product-subtitle { color: var(--xb-muted); font-size: 1.05em; margin-top: -0.5em; }
.product-hero { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--xb-radius); margin-bottom: 1.5em; }
.product-summary { font-size: 1.05em; color: var(--xb-navy); background: var(--xb-bg-f8); border-left: 3px solid var(--xb-yellow); padding: 1em 1.25em; margin-bottom: 1em; }
.product-summary p { margin: 0; }
.product-description { margin-top: 1em; }

.xb-article__header { margin-bottom: 1.25em; }
.xb-article__meta { color: var(--xb-muted); font-size: 13px; margin-top: -0.6em; }
.xb-article__cats { color: var(--xb-muted); }
.xb-search-term { color: var(--xb-cyan-hover); font-weight: var(--xb-weight-bold); }
.xb-article__hero { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--xb-radius); margin-bottom: 1.5em; }

.xb-download__version { color: var(--xb-muted); font-size: 13px; }
.xb-download__action { margin: 1.5em 0; }

/* Category / archive headers */
.category-header, .archive-header { margin-bottom: 1.5em; }
.category-banner { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--xb-radius); margin-bottom: 1.25em; }
.category-description, .archive-description { color: var(--xb-muted); }
.archive-description p { margin: 0; }

/* Pagination */
.xb-pagination { margin: 2rem 0; }
.xb-pagination ul { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.xb-pagination a, .xb-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.4em; height: 2.4em; padding: 0 0.6em;
    border: 1px solid var(--xb-border); border-radius: var(--xb-radius);
    color: var(--xb-navy); font-size: 13px;
}
.xb-pagination .current { background: var(--xb-navy); color: #fff; border-color: var(--xb-navy); }
.xb-pagination a:hover { border-color: var(--xb-cyan); color: var(--xb-cyan-hover); }

.xb-empty { color: var(--xb-muted); padding: 2em 0; }

/* -------------------------------------------------------------------------
   13. Search results
   ------------------------------------------------------------------------- */
.search-header .page-title { word-break: break-word; }
.xb-search-empty {
    background: var(--xb-bg-f8); border: 1px dashed var(--xb-border);
    border-radius: var(--xb-radius); padding: 2.5em 1.5em; text-align: center;
    margin: 1.5em 0;
}
.xb-search-empty p { max-width: 34rem; margin: 0 auto 1.25em; }

/* -------------------------------------------------------------------------
   14. 404
   ------------------------------------------------------------------------- */
.xb-404 { text-align: center; padding: 3rem 0 4rem; }
.xb-404__code {
    font-size: clamp(4rem, 20vw, 9rem); font-weight: var(--xb-weight-bold);
    color: var(--xb-navy); line-height: 1; margin: 0;
}
.xb-404__panel {
    background: var(--xb-bg-f8); border-radius: var(--xb-radius);
    border: 1px solid var(--xb-line); padding: 2rem 1.5rem; max-width: 40rem;
    margin: 1.5rem auto 0;
}
.xb-404__panel .page-title { padding-bottom: 0.5em; }
.xb-404__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; }
.xb-404__links a { font-weight: var(--xb-weight-bold); }

/* -------------------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------------------- */
.footer-pre { background: var(--xb-bg-f8); padding: 1.5rem var(--xb-gutter-desktop); }
.related-site-banner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem; max-width: var(--xb-container); margin: 0 auto;
    background: var(--xb-navy-light); color: #fff; border-radius: var(--xb-radius);
    padding: 2em;
}
.related-site-banner:hover { background: #464f64; color: #fff; }
.related-site-description { display: flex; flex-direction: column; gap: 0.2em; }
.related-site-primary { font-size: 15px; font-weight: var(--xb-weight-bold); }
.related-site-secondary { font-size: 13px; color: var(--xb-footer-text); }
.related-site-icon-group { display: flex; align-items: center; gap: 0.6em; font-size: 13px; }
.related-site-domain { color: var(--xb-yellow); font-weight: var(--xb-weight-bold); }

.related-site-icon-more { width: 16px; height: 16px; flex: 0 0 auto; }

.footer-container { background: var(--xb-footer-bg); color: #fff; }
.footer {
    max-width: var(--xb-container); margin: 0 auto;
    padding: 2rem var(--xb-gutter-desktop);
    display: grid; grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem 3vw; font-size: 13px;
}
@media (min-width: 40rem) { .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .footer { grid-template-columns: 1fr 1fr 1.2fr; } }
.footer-content-section { border-top: 1px solid var(--xb-footer-border); padding-top: 1.25rem; }
.footer-logo { margin-bottom: 1rem; }
.footer-links-column { list-style: none; margin: 0; padding: 0; }
.footer-links-column a { display: block; color: var(--xb-footer-text); padding: 0.5em 0; }
.footer-links-column a:hover { color: var(--xb-yellow); }
.footer-address { font-style: normal; color: var(--xb-footer-text); padding: 0.5em 0; }
.footer-phone { display: inline-block; color: #fff; font-weight: var(--xb-weight-bold); padding: 0.5em 0; }
.footer-phone:hover { color: var(--xb-yellow); }
.payment-icon-group { display: flex; gap: 0.6em; margin-top: 0.75rem; }
.payment-icon {
    display: inline-block; border: 1px solid var(--xb-footer-border); border-radius: 3px;
    color: var(--xb-footer-text); font-size: 11px; padding: 0.25em 0.6em; letter-spacing: 0.03em;
}
.copyright {
    max-width: var(--xb-container); margin: 0 auto; text-align: center;
    color: var(--xb-footer-text); font-weight: var(--xb-weight-thin);
    font-size: 13px; padding: 2em 1em 3em;
}

/* Sticky phone button (category/product pages, source parity) */
.sticky-button { position: sticky; }

/* -------------------------------------------------------------------------
   16. Responsive refinements
   ------------------------------------------------------------------------- */
@media (max-width: 63.99rem) {
    .header-navigation { display: none; }
}
@media (min-width: 40rem) {
    .header-small, .menu-small-container { display: none; }
}
@media (min-width: 64rem) {
    /* Desktop logo: source renders 233x77 (pixel-verified 232x76). The theme
       logo.svg is 206x76; height 77px keeps source header rhythm without
       distorting the placeholder mark (width auto ≈ 209px). Mobile keeps 103x38. */
    .header-primary-container .logo-image { height: 77px; width: auto; }

    /* Desktop header row parity (source measured at 1440x900): topbar 65px +
       logo/nav row 122px = header ≈187px. Base padding 1em gives a 107px row;
       1.4em lifts it to ≈122px so the navy nav bar sits at the source height. */
    .header-primary-container { padding-top: 1.4em; padding-bottom: 1.4em; }

    /* Hero desktop parity (measured source at 1440x900):
       heading 48px, left edge ≈147px; CTA 255x74 yellow, right-anchored. */
    .hero__content { margin-left: 2.5rem; padding-left: calc(1rem + 3.5vmin); }
    .u-heading-2.hero__primary {
        font-size: clamp(2.25rem, 3.35vw, 3rem);
        line-height: 1.2; text-shadow: none;
    }
    .hero__column {
        position: absolute; right: calc(1rem + 2.5vmin);
        top: calc(50% + 0.75rem); transform: translateY(-50%);
        margin-top: 0;
    }
    .hero__column-button { font-size: 25px; width: 255px; max-width: 70vw; }
}

@media (max-width: 40rem) {
    .header-primary-container { display: none; }
    .hero { height: auto; min-height: 0; padding: 18vh 0 8vh; }
    .hero__content { max-width: 100%; }
    .header-top { justify-content: center; }
    .xb-search-form__input { width: 100%; }
    .article-card__description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .sticky__links { flex-wrap: nowrap; overflow-x: auto; }
}

/* -------------------------------------------------------------------------
   17. Print
   ------------------------------------------------------------------------- */
@media print {
    .page-header, .footer-pre, .xb-anchor-nav, .help-card, .sticky-button,
    .xb-search-form, .xb-breadcrumbs, .messages { display: none !important; }
    .hero { min-height: 0; height: auto; }
    .hero__bkg-overlay, .hero--fade::after { display: none; }
    body { font-size: 12px; }
    .footer-container { background: #fff; color: #000; }
    .footer, .copyright { color: #000; }
    a { color: inherit; }
}
