/* ============================================================================
   UPTILES DESIGN SYSTEM  (uptiles-ds.css)
   ----------------------------------------------------------------------------
   Governed by the Uptiles Strathpine Brand Guide: a disciplined greyscale,
   the system sans stack (Helvetica Neue / Arial), square "tile-edge" corners,
   hairline "grout" rules, generous whitespace, no shadows, no accent colour.
   Personality comes from weight, size, letter-spacing and case — never a
   second font or a colour. Prefix: everything is `u-` and this file loads
   AFTER the legacy CSS so it wins. Mobile-first.
   ========================================================================== */

:root {
    /* --- Palette (greyscale) --- */
    --u-onyx:      #121212;   /* primary ink: wordmark, headings, emphasis */
    --u-graphite:  #333333;   /* body & secondary text */
    --u-slate:     #6E6E6E;   /* muted text, captions, meta */
    --u-silver:    #CBCBCB;   /* hairlines / the grout line */
    --u-fog:       #E6E6E4;   /* faint rules, tile grid lines */
    --u-porcelain: #F4F4F3;   /* soft section fill */
    --u-white:     #FFFFFF;   /* primary ground */
    --u-stone:     #9B9186;   /* optional material accent — use almost never */

    /* Compatibility aliases (older component code referenced these names) */
    --u-ink:    var(--u-onyx);
    --u-body:   var(--u-graphite);
    --u-border: var(--u-fog);

    /* --- 8-point spacing scale (names kept stable for inline usage) --- */
    --u-8:   8px;   --u-12: 12px;  --u-16: 16px;  --u-24: 24px;  --u-32: 32px;
    --u-40: 40px;   --u-48: 48px;  --u-56: 56px;  --u-64: 64px;
    --u-80: 80px;   --u-96: 96px;  --u-120: 120px; --u-160: 160px;

    /* --- Type scale (brand guide; clamped for mobile) --- */
    --u-t-hero:    clamp(38px, 7vw, 68px);
    --u-t-h2:      clamp(22px, 3.4vw, 30px);
    --u-t-sub:     clamp(18px, 2vw, 22px);
    --u-t-card:    16px;
    --u-t-body:    16px;
    --u-t-small:   14px;
    --u-t-caption: 12px;

    --u-w-light: 300;   /* display & headings */
    --u-w-reg:   400;   /* body, buttons, captions */

    --u-radius: 0;      /* square, like a tile edge */

    /* Full-bleed: fill the page, only a slim gutter left and right */
    --u-edge: clamp(18px, 4vw, 64px);

    --u-fade:   250ms ease;
    --u-hover:  200ms ease;
    --u-header: 350ms ease;

    --u-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------------------------
   Container / section rhythm — full width with a slim gutter
   ------------------------------------------------------------------------- */
.u-container {
    width: 100%;
    max-width: none;          /* stretch to the page edges */
    margin-inline: auto;
    padding-inline: var(--u-edge);
    box-sizing: border-box;
}

.u-section { padding-block: clamp(var(--u-56), 9vw, var(--u-96)); background: var(--u-white); }
.u-section--tight { padding-block: clamp(var(--u-40), 6vw, var(--u-64)); }
.u-section--alt { background: var(--u-porcelain); }

/* Curated Collections — even white space top and bottom. */
#popular-ranges { padding-block: clamp(var(--u-56), 8vw, var(--u-96)); }

/* Backstops so no legacy mobile dark background bleeds onto redesigned pages */
body.u-has-hero, body.u-no-hero { background: var(--u-white); }
body.u-has-hero .site-main, body.u-no-hero .site-main { background: var(--u-white); }

/* ---------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
.u-h1, .u-h2, .u-h3, .u-sub, .u-body, .u-eyebrow {
    font-family: var(--u-font);
    color: var(--u-onyx);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.u-h1 { font-size: var(--u-t-hero); line-height: 1.05; font-weight: var(--u-w-light); letter-spacing: .02em; }
.u-h2 {
    font-size: var(--u-t-h2); line-height: 1.15; font-weight: var(--u-w-light);
    text-align: center; letter-spacing: .14em; text-transform: uppercase;
}
.u-h3  { font-size: var(--u-t-card); line-height: 1.3; font-weight: var(--u-w-reg); letter-spacing: .02em; }
.u-sub { font-size: var(--u-t-sub);  line-height: 1.3; font-weight: var(--u-w-light); }
.u-body {
    font-size: var(--u-t-body); line-height: 1.75; color: var(--u-graphite);
    font-weight: var(--u-w-reg); letter-spacing: .012em;
}
.u-eyebrow {
    font-size: var(--u-t-caption); letter-spacing: .28em; text-transform: uppercase;
    color: var(--u-slate); font-weight: var(--u-w-reg);
}

/* Section heading block: eyebrow + H2, centred, consistent everywhere */
.u-heading { text-align: center; margin-bottom: var(--u-56); }
.u-heading .u-eyebrow { display: block; margin-bottom: var(--u-16); }

/* Editorial prose (Exclusive Ranges / Since 1979) — short measure, centred,
   with a single even vertical rhythm (no per-element inline margins). */
.u-prose { max-width: 62ch; margin-inline: auto; text-align: center; }
.u-prose .u-eyebrow { display: block; margin: 0 0 var(--u-16); }
.u-prose .u-h2 { margin: 0 0 var(--u-24); }
.u-prose .u-body { margin: 0; }
.u-prose .u-body + .u-body { margin-top: var(--u-16); }
.u-prose__cta { margin: var(--u-32) 0 0; }

/* ---------------------------------------------------------------------------
   Buttons — square, uppercase, widely tracked. One filled per view.
   ------------------------------------------------------------------------- */
.u-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 var(--u-32);
    font-family: var(--u-font); font-size: var(--u-t-caption); font-weight: var(--u-w-reg);
    letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer;
    border: 1px solid var(--u-onyx); border-radius: 0;
    background: var(--u-onyx); color: var(--u-white) !important; /* beat legacy a{} colour */
    transition: background var(--u-hover), color var(--u-hover);
}
.u-btn:hover, .u-btn:focus-visible { background: transparent; color: var(--u-onyx) !important; }
.u-btn--ghost { background: transparent; color: var(--u-onyx) !important; }
.u-btn--ghost:hover, .u-btn--ghost:focus-visible { background: var(--u-onyx); color: var(--u-white) !important; }
/* Over a hero photo: white outline reads cleanly on any image */
.u-hero__content .u-btn { border-color: var(--u-white); background: transparent; color: var(--u-white) !important; }
.u-hero__content .u-btn:hover { background: var(--u-white); color: var(--u-onyx) !important; }

/* ---------------------------------------------------------------------------
   Card — square, hairline, no shadow. Cross-fades to a lifestyle image.
   ------------------------------------------------------------------------- */
.u-card {
    display: flex; flex-direction: column;
    background: var(--u-white);
    border: 1px solid var(--u-fog);
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
}
.u-card__media { position: relative; overflow: hidden; background: var(--u-porcelain); }
.u-card__media--1x1  { aspect-ratio: 1 / 1; }
.u-card__media--16x9 { aspect-ratio: 16 / 9; }
.u-card__media--4x5  { aspect-ratio: 4 / 5; }
.u-card__img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.u-card__img--hover { opacity: 0; transition: opacity var(--u-fade); }
.u-card:hover .u-card__img--hover, .u-card:focus-visible .u-card__img--hover { opacity: 1; }

/* Range/size name overlaid top-left */
.u-card__label {
    position: absolute; top: var(--u-16); left: var(--u-16); z-index: 2;
    font-family: var(--u-font); font-size: var(--u-t-caption);
    letter-spacing: .2em; text-transform: uppercase; color: var(--u-white); font-weight: var(--u-w-reg);
    text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.u-card__panel { padding: var(--u-24); display: flex; flex-direction: column; gap: var(--u-16); }
.u-card__title { font-family: var(--u-font); font-size: var(--u-t-card); color: var(--u-onyx); letter-spacing: .02em; }

/* ---------------------------------------------------------------------------
   Colour swatches — small squares, laid like tiles
   ------------------------------------------------------------------------- */
.u-swatches { display: flex; gap: var(--u-8); align-items: center; }
.u-swatch {
    width: 28px; height: 28px; border-radius: 0;
    border: 1px solid var(--u-silver); background-size: cover; background-position: center;
    background-color: var(--u-porcelain); flex: 0 0 auto;
}

/* ---------------------------------------------------------------------------
   Card rows: horizontal scroll (mobile) -> tiled grout grid (desktop)
   Popular Ranges 2/4 · Shop the Look 1/2 · Shop by Size 2/4
   ------------------------------------------------------------------------- */
.u-hrow {
    display: flex; gap: var(--u-24);
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding-bottom: var(--u-8);
    scrollbar-width: none;
}
.u-hrow::-webkit-scrollbar { display: none; }
.u-hrow > * { scroll-snap-align: start; flex: 0 0 auto; }
.u-hrow--ranges > * { width: 46%; }
.u-hrow--look   > * { width: 72%; }
.u-hrow--sizes  > * { width: 46%; }

@media (min-width: 1024px) {
    /* Even, separated cards (no grout). Ranges & sizes settle into a tidy
       grid; the "look" strip stays a left-right scroll through all ranges. */
    .u-hrow--ranges, .u-hrow--sizes {
        display: grid; gap: var(--u-24); overflow: visible; padding: 0;
    }
    .u-hrow--ranges > *, .u-hrow--sizes > * { width: auto; }
    .u-hrow--ranges { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .u-hrow--sizes  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    /* exactly three cards fill the width (no cut-off 4th); scroll for the rest */
    .u-hrow--look   > * { width: calc((100% - 2 * var(--u-24)) / 3); }
}

/* ===========================================================================
   HEADER — transparent over hero -> solid white on scroll
   ========================================================================= */
.u-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent;
    transition: background var(--u-header), box-shadow var(--u-header);
}
.u-header__inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    gap: var(--u-16); min-height: 68px; padding-block: var(--u-16);
}
@media (min-width: 1024px) { .u-header__inner { min-height: 84px; } }

.u-header__left  { display: flex; align-items: center; gap: var(--u-24); justify-self: start; }
.u-header__right { justify-self: end; text-align: right; }
.u-header__logo  { justify-self: center; display: block; text-decoration: none; text-align: center; }

/* Minimal icon buttons — thin strokes, no fill.
   The legacy base.css styles every <button> with a grey fill + inset
   box-shadow + border; reset all of it so only the line icon shows. */
.u-iconbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0;
    border: 0; background: none; box-shadow: none; text-shadow: none;
    -webkit-appearance: none; appearance: none; border-radius: 0;
    cursor: pointer; color: var(--u-white);
    transition: opacity var(--u-hover), color var(--u-hover);
}
.u-iconbtn:hover, .u-iconbtn:focus { box-shadow: none; border: 0; }

/* My Selection heart — an <a>, so legacy `a{}` colour rules tint it; force
   it to follow the icon colour (white over the hero, onyx when solid). */
.u-fav { position: relative; text-decoration: none; color: var(--u-white) !important; }
.u-header.is-solid .u-fav, body.u-no-hero .u-fav { color: var(--u-onyx) !important; }
/* subtle count that only appears when items exist */
.u-fav-count {
    position: absolute; top: -5px; right: -8px;
    min-width: 15px; height: 15px; padding: 0 3px;
    align-items: center; justify-content: center;
    font-family: var(--u-font); font-size: 9px; font-weight: var(--u-w-reg); line-height: 1;
    color: var(--u-white); background: var(--u-onyx); border-radius: 0;
}
.u-header.is-solid .u-fav-count, body.u-no-hero .u-fav-count { background: var(--u-onyx); color: var(--u-white); }
.u-iconbtn:hover { opacity: .6; }
.u-iconbtn svg { width: 22px; height: 22px; display: block; }

/* Text wordmark — geometric monoline (Jost, already loaded) to match the
   supplied logo: even strokes, medium weight, moderate tracking. */
.u-wordmark__name {
    display: block;
    font-family: "Jost", var(--u-font); font-weight: 700;
    font-size: clamp(22px, 2.7vw, 30px); letter-spacing: .04em; text-indent: 0;
    text-transform: uppercase; color: var(--u-white); line-height: 1;
    transition: color var(--u-header);
}
/* Brand red square accent after the wordmark ("UPTILES ■"). A fixed background
   colour, so it stays red in BOTH header states while the letters swap
   white <-> onyx. Adjust --u-logo-red (below) to fine-tune the shade. */
.u-wordmark__name::after {
    content: ""; display: inline-block;
    width: .22em; height: .22em; margin-left: .2em;
    background: var(--u-logo-red, #b23a2b); vertical-align: baseline;
}
.u-wordmark__loc {
    display: none; /* new logo is "UPTILES ■" only — no location subtitle */
    font-family: "Jost", var(--u-font); font-weight: 400;
    font-size: 9px; letter-spacing: .4em; text-indent: .4em;
    text-transform: uppercase; color: var(--u-silver); margin-top: 7px;
    transition: color var(--u-header);
}
@media (max-width: 767px) { .u-wordmark__loc { display: none; } }

.u-header__contact { font-family: var(--u-font); color: var(--u-white); line-height: 1.35; transition: color var(--u-header); }
.u-header__contact a { color: inherit; text-decoration: none; }
.u-header__phone { font-size: var(--u-t-small); letter-spacing: .08em; display: inline-flex; align-items: center; gap: var(--u-8); justify-content: flex-end; }
.u-header__addr  { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--u-silver); margin-top: 4px; }
@media (max-width: 767px) { .u-header__addr { display: none; } }

/* Solid (scrolled) state */
.u-header.is-solid { background: var(--u-white); box-shadow: 0 1px 0 var(--u-fog); }
.u-header.is-solid .u-iconbtn { color: var(--u-onyx); }
.u-header.is-solid .u-header__contact { color: var(--u-graphite); }
.u-header.is-solid .u-wordmark__name { color: var(--u-onyx); }
.u-header.is-solid .u-wordmark__loc,
.u-header.is-solid .u-header__addr { color: var(--u-slate); }

/* Pages without a hero start solid */
body.u-no-hero .u-header { background: var(--u-white); box-shadow: 0 1px 0 var(--u-fog); }
body.u-no-hero .u-iconbtn { color: var(--u-onyx); }
body.u-no-hero .u-header__contact { color: var(--u-graphite); }
body.u-no-hero .u-wordmark__name { color: var(--u-onyx); }
body.u-no-hero .u-wordmark__loc,
body.u-no-hero .u-header__addr { color: var(--u-slate); }

.u-header-spacer { height: 68px; }
@media (min-width: 1024px) { .u-header-spacer { height: 84px; } }

/* --- Mobile header tuning --- */
@media (max-width: 767px) {
    /* Squish the icon cluster tight to the left so the wordmark stays truly
       centred and the phone number on the right is never clipped. */
    .u-header__inner { gap: var(--u-8); }
    .u-header__left { gap: 10px; }
    .u-iconbtn { width: 22px; height: 22px; }
    .u-iconbtn svg { width: 19px; height: 19px; }
    .u-wordmark__name { font-size: 20px; letter-spacing: .04em; text-indent: 0; }
    /* drop the phone icon on mobile and slim the number so it always fits */
    .u-header__phone { font-size: 12px; letter-spacing: .02em; white-space: nowrap; gap: 0; }
    .u-header__phone svg { display: none; }

    /* Header content dark on mobile for EVERY page: over the light hero
       (home) and on the solid white header (inner pages) alike. */
    body.u-has-hero .u-iconbtn, body.u-no-hero .u-iconbtn,
    body.u-has-hero .u-header__contact, body.u-no-hero .u-header__contact,
    body.u-has-hero .u-header__phone, body.u-no-hero .u-header__phone { color: var(--u-onyx) !important; }
    body.u-has-hero .u-fav, body.u-no-hero .u-fav { color: var(--u-onyx) !important; }
    body.u-has-hero .u-wordmark__name, body.u-no-hero .u-wordmark__name { color: var(--u-onyx) !important; }
    body.u-has-hero .u-wordmark__loc, body.u-no-hero .u-wordmark__loc { color: var(--u-slate) !important; }
}

/* Front-page mobile header: WHITE over the hero (turns dark only once the
   header goes solid on scroll). Inner pages (u-no-hero) stay dark. */
@media (max-width: 767px) {
    body.u-has-hero .u-header:not(.is-solid) .u-iconbtn,
    body.u-has-hero .u-header:not(.is-solid) .u-header__contact,
    body.u-has-hero .u-header:not(.is-solid) .u-header__phone,
    body.u-has-hero .u-header:not(.is-solid) .u-fav,
    body.u-has-hero .u-header:not(.is-solid) .u-wordmark__name { color: var(--u-white) !important; }
    body.u-has-hero .u-header:not(.is-solid) .u-wordmark__loc { color: var(--u-silver) !important; }
    body.u-has-hero .u-header:not(.is-solid) .u-wordmark__name,
    body.u-has-hero .u-header:not(.is-solid) .u-header__phone { text-shadow: 0 1px 10px rgba(0,0,0,.5); }
    body.u-has-hero .u-header:not(.is-solid) .u-iconbtn svg,
    body.u-has-hero .u-header:not(.is-solid) .u-fav svg { filter: drop-shadow(0 1px 6px rgba(0,0,0,.55)); }
}

/* Product breadcrumb + "Add to My Selection" — legible dark on mobile */
@media (max-width: 767px) {
    body.single-collection .bc-current { color: var(--u-onyx) !important; }
    body.single-collection .coll-breadcrumbs,
    body.single-collection .coll-breadcrumbs a { color: var(--u-graphite) !important; }
}

/* Mobile product page — final contrast pass. High-specificity + near-black to
   beat the legacy dark-theme rules that keep these elements white/light. */
@media (max-width: 767px) {
    /* heart + "Add to My Selection" (target the children, they carry colour) */
    body.single-collection .coll-like-row,
    body.single-collection .coll-like-row .tile-like-btn,
    body.single-collection .coll-like-row .like-heart,
    body.single-collection .coll-like-row .like-label { color: var(--u-onyx) !important; }

    /* "By {manufacturer}" line — the "By" prefix was white */
    body.single-collection .coll-mfr { color: var(--u-graphite) !important; }
    body.single-collection .coll-mfr strong { color: var(--u-onyx) !important; }

    /* thickness label under each size (6mm / 12mm / 20mm) */
    body.single-collection .size-thick { color: var(--u-graphite) !important; }

    /* "Suitable For" pills — black text, bubbles unchanged */
    body.single-collection .suit-pill,
    body.single-collection .suit-pill * { color: var(--u-onyx) !important; }

    /* product description copy + subheadings */
    body.single-collection .coll-description,
    body.single-collection .coll-description p,
    body.single-collection .coll-description li,
    body.single-collection .coll-description ul,
    body.single-collection .coll-description ol,
    body.single-collection .coll-description span,
    body.single-collection .coll-catalog,
    body.single-collection .coll-catalog p { color: var(--u-graphite) !important; }
    body.single-collection .coll-description h2,
    body.single-collection .coll-description h3 { color: var(--u-onyx) !important; }
}

/* --- Nav drawer --- */
.u-drawer {
    position: fixed; inset: 0 auto 0 0; z-index: 1100;
    width: min(88vw, 400px); background: var(--u-white);
    transform: translateX(-100%); opacity: 0;
    transition: transform 480ms cubic-bezier(.16,1,.3,1), opacity 320ms ease;
    display: flex; flex-direction: column; padding: var(--u-40) var(--u-32); overflow-y: auto;
}
.u-drawer.is-open { transform: translateX(0); opacity: 1; }
.u-scrim {
    position: fixed; inset: 0; z-index: 1090; background: rgba(18,18,18,.4);
    opacity: 0; visibility: hidden; transition: opacity var(--u-fade), visibility var(--u-fade);
}
.u-scrim.is-open { opacity: 1; visibility: visible; }
.u-drawer__close { align-self: flex-end; margin-bottom: var(--u-24); color: var(--u-onyx); }
.u-drawer nav ul { list-style: none; margin: 0; padding: 0; }
.u-drawer nav li {
    border-bottom: 1px solid var(--u-fog);
    opacity: 0; transform: translateX(-16px);
    transition: opacity 360ms ease, transform 460ms cubic-bezier(.16,1,.3,1);
}
/* Staggered fade + slide of items once the drawer opens */
.u-drawer.is-open nav li { opacity: 1; transform: translateX(0); }
.u-drawer.is-open nav li:nth-child(1) { transition-delay: 120ms; }
.u-drawer.is-open nav li:nth-child(2) { transition-delay: 165ms; }
.u-drawer.is-open nav li:nth-child(3) { transition-delay: 210ms; }
.u-drawer.is-open nav li:nth-child(4) { transition-delay: 255ms; }
.u-drawer.is-open nav li:nth-child(5) { transition-delay: 300ms; }
.u-drawer.is-open nav li:nth-child(6) { transition-delay: 345ms; }
.u-drawer.is-open nav li:nth-child(7) { transition-delay: 390ms; }
.u-drawer nav a {
    display: block; padding-block: var(--u-16);
    font-family: var(--u-font); font-size: var(--u-t-small); font-weight: var(--u-w-reg);
    letter-spacing: .18em; text-transform: uppercase; color: var(--u-onyx);
    text-decoration: none; transition: color var(--u-hover);
}
.u-drawer nav a:hover { color: var(--u-slate); }
.u-drawer__foot {
    margin-top: var(--u-40); font-family: var(--u-font); color: var(--u-slate);
    font-size: var(--u-t-small); line-height: 1.7; letter-spacing: .04em;
    opacity: 0; transform: translateY(8px);
    transition: opacity 360ms ease 380ms, transform 420ms cubic-bezier(.16,1,.3,1) 380ms;
}
.u-drawer.is-open .u-drawer__foot { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .u-drawer, .u-drawer nav li, .u-drawer__foot { transition: opacity 150ms ease; transform: none !important; }
}

/* --- Inline search bar (drops down over the header strip; not a new page) --- */
.u-searchbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1200;
    background: var(--u-white); border-bottom: 1px solid var(--u-silver);
    transform: translateY(-100%); transition: transform var(--u-header);
}
.u-searchbar.is-open { transform: translateY(0); }
.u-searchbar__inner { display: flex; align-items: center; gap: var(--u-16); padding: var(--u-24) var(--u-edge); }
.u-searchbar svg { flex: 0 0 auto; color: var(--u-slate); }
.u-searchbar input {
    flex: 1; border: none; outline: none; background: none;
    font-family: var(--u-font); font-weight: var(--u-w-light); font-size: clamp(18px, 3vw, 28px);
    color: var(--u-onyx); letter-spacing: .01em;
}
.u-searchbar input::placeholder { color: var(--u-silver); }
.u-searchbar__close { color: var(--u-onyx); }

/* ===========================================================================
   HERO — single image, no slideshow
   ========================================================================= */
.u-hero { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 90vh; overflow: hidden; background: var(--u-porcelain); }
@media (max-width: 767px) { .u-hero { aspect-ratio: 4 / 5; } }
/* Capped to 90vh so the hero always fits within the screen. object-position:top
   anchors the crop to the TOP of the photo, so whatever doesn't fit is trimmed
   off the BOTTOM (never the top). */
.u-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.u-hero::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 240px; z-index: 1;
    background: linear-gradient(to bottom, rgba(18,18,18,.30), rgba(18,18,18,0)); pointer-events: none;
}
/* Bottom scrim so white hero content stays legible on light imagery (the
   marble-kitchen hero is very bright, so this is a touch stronger than a hint). */
.u-hero::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 420px; z-index: 1;
    background: linear-gradient(to top, rgba(18,18,18,.58), rgba(18,18,18,.12) 55%, rgba(18,18,18,0)); pointer-events: none;
}
.u-hero__content {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(var(--u-40), 8vw, var(--u-96));
    text-align: center; padding-inline: var(--u-24);
}

/* ---- Promo ticker: thin, bright-red scrolling banner under the hero ----
   10 identical items animate translateX 0 -> -50%: the first five == the last
   five, so the loop point is seamless. Symmetric 6vw item padding makes every
   gap (including the seam) identical, so the phrases stay evenly spaced. */
.u-ticker { background: #e11b12; overflow: hidden; }
.u-ticker__track {
    display: flex; width: max-content; will-change: transform;
    animation: u-ticker-scroll 24s linear infinite;
}
.u-ticker__item {
    flex: 0 0 auto; padding: 8px 6vw; white-space: nowrap;
    font-family: var(--u-font); font-weight: 700; font-size: 13px;
    letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.u-ticker:hover .u-ticker__track { animation-play-state: paused; }
@keyframes u-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .u-ticker__track { animation: none; } }
.u-hero__content .u-h1 { color: var(--u-white); font-weight: var(--u-w-light); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.u-hero__content .u-btn { margin-top: var(--u-32); }

/* ===========================================================================
   ENQUIRE NOW — contact form (intro left, fields right)
   ========================================================================= */
/* Full-width two-column — intro beside the form so it stays a short, slim
   band across the page; the columns centre vertically so the shorter intro
   doesn't leave a tall void beneath it. */
.u-enquiry { display: grid; grid-template-columns: 1fr; gap: var(--u-32); align-items: center; }
@media (min-width: 820px) { .u-enquiry { grid-template-columns: 1fr 1fr; gap: clamp(var(--u-48), 8vw, var(--u-120)); } }
/* "--stack" variant (homepage Enquire Now): intro on top, form centred below,
   single column at all widths (overrides the 2-col rule above). */
.u-enquiry.u-enquiry--stack { grid-template-columns: 1fr; }
.u-enquiry--stack .u-enquiry__intro { text-align: center; max-width: 620px; margin: 0 auto var(--u-24); }
.u-enquiry--stack .u-enquiry__intro .u-h2,
.u-enquiry--stack .u-enquiry__intro .u-body { text-align: center; }
.u-enquiry--stack .u-enquiry__form { max-width: 620px; margin: 0 auto; width: 100%; }
.u-enquiry--stack .u-enquiry__actions { align-items: center; }
/* trim the band height */
#enquire.u-section { padding-block: clamp(var(--u-40), 4.5vw, var(--u-56)); }
.u-enquiry__intro .u-eyebrow { display: block; margin-bottom: var(--u-16); }
.u-enquiry__intro .u-h2 { text-align: left; margin-bottom: var(--u-16); }
.u-enquiry__intro .u-body { text-align: left; }
.u-enquiry__intro .u-body a { color: var(--u-onyx); text-decoration: underline; text-underline-offset: 3px; }

.u-enquiry__form { display: flex; flex-direction: column; gap: var(--u-16); }
.u-field { display: flex; flex-direction: column; gap: var(--u-8); }
/* a display rule on .u-field would otherwise defeat the [hidden] attribute */
.u-field[hidden] { display: none; }
.u-field-row { display: grid; grid-template-columns: 1fr; gap: var(--u-24); }
@media (min-width: 560px) { .u-field-row { grid-template-columns: 1fr 1fr; } }
.u-field label, .u-field__label {
    font-family: var(--u-font); font-size: var(--u-t-caption); letter-spacing: .16em;
    text-transform: uppercase; color: var(--u-slate);
}
.u-field input, .u-field textarea {
    font-family: var(--u-font); font-size: var(--u-t-body); color: var(--u-onyx);
    border: 0; border-bottom: 1px solid var(--u-silver); background: transparent;
    padding: 7px 0; border-radius: 0; outline: none; width: 100%;
    transition: border-color var(--u-hover);
    -webkit-appearance: none; appearance: none; box-shadow: none;
}
.u-field input:focus, .u-field textarea:focus { border-bottom-color: var(--u-onyx); }
.u-field textarea { resize: vertical; min-height: 50px; }
.u-radios { display: flex; gap: var(--u-32); margin-top: var(--u-8); }
.u-radio {
    display: inline-flex; align-items: center; gap: var(--u-8);
    font-family: var(--u-font); font-size: var(--u-t-body); color: var(--u-graphite);
    text-transform: none; letter-spacing: 0; cursor: pointer;
}
.u-radio input { width: 16px; height: 16px; accent-color: var(--u-onyx); margin: 0; }
.u-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.u-enquiry__actions { display: flex; flex-direction: column; gap: var(--u-16); align-items: flex-start; }
.u-enquiry__msg { font-family: var(--u-font); font-size: var(--u-t-small); letter-spacing: .02em; margin: 0; min-height: 1em; }
.u-enquiry__msg.is-ok  { color: var(--u-onyx); }
.u-enquiry__msg.is-err { color: var(--u-onyx); font-style: italic; }

/* ===========================================================================
   FOOTER
   ========================================================================= */
.u-footer { background: var(--u-white); border-top: 1px solid var(--u-fog); }
/* Centred stack: nav, then social, then address + hours underneath */
.u-footer__top {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: var(--u-40); padding-block: var(--u-64);
}
.u-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--u-24) var(--u-40); }
.u-footer__nav a {
    font-family: var(--u-font); font-size: var(--u-t-caption); letter-spacing: .18em;
    text-transform: uppercase; color: var(--u-onyx); text-decoration: none; transition: color var(--u-hover);
}
.u-footer__nav a:hover { color: var(--u-slate); }
.u-footer__details {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: var(--u-40) var(--u-80); width: 100%;
}
.u-footer__col { font-family: var(--u-font); color: var(--u-slate); font-size: var(--u-t-small); line-height: 1.9; letter-spacing: .03em; text-align: center; }
.u-footer__col strong { color: var(--u-onyx); font-weight: var(--u-w-reg); }
.u-footer__col a { color: var(--u-slate); text-decoration: none; }
.u-footer__col a:hover { color: var(--u-onyx); }
.u-footer__social { display: flex; gap: var(--u-16); justify-content: center; }
.u-footer__social a { color: var(--u-onyx); transition: opacity var(--u-hover); }
.u-footer__social a:hover { opacity: .6; }
.u-footer__social svg { width: 20px; height: 20px; }
.u-footer__bar { border-top: 1px solid var(--u-fog); padding-block: var(--u-24); text-align: center; }
.u-footer__bar { font-family: var(--u-font); font-size: 11px; color: var(--u-slate); letter-spacing: .12em; text-transform: uppercase; }

/* ===========================================================================
   REVEAL — gentle fade + rise as elements enter the viewport.
   The .u-reveal class is added by JS, so with JS off nothing is hidden.
   ========================================================================= */
.u-reveal { opacity: 0; transform: translateY(20px); will-change: opacity, transform;
    transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.u-reveal.is-in { opacity: 1; transform: none; }
/* card images ease up on hover for a subtle, premium lift (opacity/scale only) */
.u-card .u-card__img { transition: opacity var(--u-fade), transform 1.2s cubic-bezier(.16,1,.3,1); }
.u-card:hover .u-card__img { transform: scale(1.03); }
.u-card:hover .u-card__img--hover { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
    .u-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .u-card:hover .u-card__img, .u-card:hover .u-card__img--hover { transform: none; }
}

/* Utility */
.u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.u-no-scroll { overflow: hidden; }

/* ==========================================================================
   SITE-WIDE ROLLOUT — bring every non-home page into the light greyscale DS
   and neutralise the legacy "mobile dark theme" systems in uptilescustom.css
   that repaint the site dark + force white text at <=767px (invisible on the
   new light design). This file loads last; overrides use !important because
   the legacy rules do. Everything is scoped to leave Build My Space
   (body.page-template-page-room-designer) untouched — its dark UI is intended.
   ========================================================================== */

/* Brand font everywhere (legacy body was Jost) — beats style.css by load order */
body { font-family: var(--u-font); }

/* ---- All viewports: retire the legacy red/pink accents (DS is greyscale) ---- */
.page-btn--active { background: var(--u-onyx) !important; border-color: var(--u-onyx) !important; color: var(--u-white) !important; }
.search-tile-item:hover .tile-name,
.filter-group details ul li a:hover,
.filter-group details ul li a.filter-active,
.search-no-results-heading em,
.page-btn:hover,
.news-loop .entry-title a:hover,
.coll-breadcrumbs a:hover,
.coll-description a,
.about-stat-num, .about-why-icon, .about-visit-details a,
.coll-like-row .tile-like-btn:hover, .coll-like-row .tile-like-btn.is-liked,
.tile-like-btn.is-liked, .tile-favorites-heart { color: var(--u-onyx) !important; }
.filter-active .filter-count { color: var(--u-slate) !important; }
.filter-active-dot, .coll-thumb-item.is-active { border-color: var(--u-onyx) !important; }
.filter-active-dot, .coll-gallery-main .swiper-pagination-bullet-active { background: var(--u-onyx) !important; }
.page-btn:hover { border-color: var(--u-onyx) !important; }
.coll-range-swatch:hover { border-color: var(--u-onyx) !important; }
.active-filter-chip:hover { background: var(--u-fog) !important; border-color: var(--u-silver) !important; color: var(--u-onyx) !important; }
.about-faq-item summary::after { color: var(--u-slate) !important; }
.brand-btn, .enquire-btn, #open-product-enquiry, .about-cta-btn,
.finder-btn--active, .sidebar-search-btn { background: var(--u-onyx) !important; color: var(--u-white) !important; -webkit-text-fill-color: var(--u-white) !important; border-color: var(--u-onyx) !important; }
.brand-btn:hover, .enquire-btn:hover, #open-product-enquiry:hover, .about-cta-btn:hover, .sidebar-search-btn:hover { background: var(--u-graphite) !important; }
/* Outline variant. -webkit-text-fill-color MUST be reset too: the filled rule
   above sets it to white, and in Chrome/Edge/Safari text-fill beats `color` —
   so without this the label renders white on a white page (invisible button). */
.about-cta-btn--outline {
    background: transparent !important;
    border-color: var(--u-onyx) !important;
    color: var(--u-onyx) !important;
    -webkit-text-fill-color: var(--u-onyx) !important;
}
.about-cta-btn--outline:hover {
    background: var(--u-onyx) !important;
    color: var(--u-white) !important;
    -webkit-text-fill-color: var(--u-white) !important;
}
.tile-favorites-count { background: var(--u-onyx) !important; color: var(--u-white) !important; }
.coll-description a { text-decoration: underline; text-underline-offset: 3px; }
/* the 'Clear all' filter chip carries inline red in the PHP — the template
   edit removes it; this is a belt-and-braces fallback */
.active-filter-chip[style] { background: var(--u-porcelain) !important; border-color: var(--u-silver) !important; color: var(--u-onyx) !important; }

/* ---- All viewports: desktop contrast lifts (muted greys below AA) ---- */
.coll-section-label, .coll-mfr, .size-thick, .coll-range-count, .coll-breadcrumbs, .coll-range-noimg { color: var(--u-slate) !important; }
.coll-title, .coll-mfr strong, .size-dim, .slip-text, .bc-current { color: var(--u-onyx) !important; }
.size-thumb-bg { background: var(--u-porcelain) !important; }

/* About page hero — light porcelain band (was a dark #1C1B1B block on desktop)
   so it matches the light greyscale brand used everywhere else */
.about-hero { background: var(--u-porcelain) !important; color: var(--u-graphite) !important; }
.about-hero .about-h1 { color: var(--u-onyx) !important; }
.about-hero .about-eyebrow { color: var(--u-slate) !important; }
.about-hero .about-lead { color: var(--u-graphite) !important; }

/* ==========================================================================
   SINGLE PRODUCT gallery — mobile keeps the swiper; desktop shows all images
   in a 2-column grid down the left with the info column sticky on the right.
   ========================================================================== */
.coll-gallery-grid { display: none; }
@media (min-width: 1024px) {
    /* swiper + thumbnails are mobile-only */
    .coll-gallery-col .coll-gallery-main,
    .coll-gallery-col .coll-thumb-grid { display: none !important; }
    .coll-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--u-24); }
    .coll-gallery-cell { background: var(--u-porcelain); overflow: hidden; border-radius: 0; }
    .coll-gallery-cell img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
    .coll-gallery-cell:only-child { grid-column: 1 / -1; }         /* lone image = full width */
    .coll-gallery-cell:only-child img { aspect-ratio: 16 / 10; }
    /* the description now lives in the info column, so the whole right side
       (info + description) flows down beside the gallery on the left */
    .coll-hero .coll-info-col { align-self: start; }
    .coll-hero .coll-below { margin-top: var(--u-40); }
}

/* Mobile product page: title left-aligned (legacy `body.single-collection h1`
   forces centre with high specificity, so match it), labels clearly dark */
@media (max-width: 767px) {
    body.single-collection .coll-title,
    body.single-collection .coll-title-block,
    body.single-collection .coll-info-col,
    body.single-collection .coll-mfr,
    body.single-collection .coll-like-row { text-align: left !important; }
    body.single-collection .coll-title { margin-left: 0 !important; margin-right: 0 !important; }
    body.single-collection .coll-section-label { color: var(--u-graphite) !important; }
    body.single-collection .size-dim,
    body.single-collection .coll-range-selected strong { color: var(--u-onyx) !important; }
}

/* ---- Blog / News article typography (Helvetica, onyx underlined links) ---- */
.entry-title, .archive-page-title, .widget-title { font-family: var(--u-font) !important; }
.entry-content, .entry-content p, .entry-content li { color: var(--u-graphite); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--u-onyx) !important; font-family: var(--u-font) !important; }
.entry-content a, .news-loop .entry-content a, .readmore-blog a, .widget-area a,
.cat-seo-intro a, .coll-description a { color: var(--u-onyx) !important; text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover, .news-loop .entry-content a:hover, .readmore-blog a:hover, .widget-area a:hover,
.cat-seo-intro a:hover, .coll-description a:hover { color: var(--u-slate) !important; }
.news-loop .entry-title a { text-decoration: none; }

/* =====================  MOBILE (<=767px) DARK-THEME NEUTRALISER  ===================== */
@media (max-width: 767px) {

    /* 1 — light ground + graphite text on every content wrapper (not the room designer) */
    body:not(.page-template-page-room-designer),
    body:not(.page-template-page-room-designer) .site,
    body:not(.page-template-page-room-designer) .site-content,
    body:not(.page-template-page-room-designer) #content,
    body:not(.page-template-page-room-designer) #main-content,
    body:not(.page-template-page-room-designer) .site-main,
    body:not(.page-template-page-room-designer) .page-content,
    body:not(.page-template-page-room-designer) .entry-content,
    body:not(.page-template-page-room-designer) .container,
    body:not(.page-template-page-room-designer) .container-fluid,
    body:not(.page-template-page-room-designer) .vc_row,
    body:not(.page-template-page-room-designer) .wpb_row,
    body:not(.page-template-page-room-designer) .vc_column-inner {
        background: var(--u-white) !important;
        color: var(--u-graphite) !important;
    }

    /* 2 — headings dark (kills the blanket h1,h2/.page-title/.entry-title white) */
    body:not(.page-template-page-room-designer) h1,
    body:not(.page-template-page-room-designer) h2,
    body:not(.page-template-page-room-designer) h3,
    .page-title, .entry-title, .collection-title, .page-header, .entry-header,
    .comments-title, .coll-title, .about-h1,
    #main-content .cat-seo-h1, #main-content .cat-seo-intro h2 { color: var(--u-onyx) !important; }
    #main-content .cat-seo-intro { color: var(--u-graphite) !important; }

    /* 3 — category / search archive */
    .search-results-page, .search-results-layout, .search-sidebar, .search-results-grid,
    .search-results-bar, .search-no-results, .active-filters-bar { background: var(--u-white) !important; }
    .search-results-count { color: var(--u-onyx) !important; }
    .search-results-for, .search-results-meta, .filter-group-label, .filter-count { color: var(--u-slate) !important; }
    .search-results-bar { border-bottom: 1px solid var(--u-fog) !important; }
    #sortby { background: var(--u-white) !important; color: var(--u-graphite) !important; border: 1px solid var(--u-silver) !important; }
    .filter-group summary { color: var(--u-onyx) !important; }
    .filter-group summary::after { color: var(--u-slate) !important; }
    .filter-group details { border-bottom: 1px solid var(--u-fog) !important; }
    .filter-group details ul li a { color: var(--u-graphite) !important; }
    .search-tile-item .tile-card, .tile-card { background: var(--u-white) !important; }
    .search-tile-item .tile-image { background: var(--u-porcelain) !important; }
    .tile-name, .search-tile-item .tile-name, .collection-title, .collection-title a,
    .product-title, .product-title a, .tile-title, .tile-title a { color: var(--u-onyx) !important; }
    .search-no-results-heading { color: var(--u-onyx) !important; }
    .search-no-results-hint { color: var(--u-slate) !important; }
    .page-btn { background: var(--u-white) !important; color: var(--u-onyx) !important; border: 1px solid var(--u-silver) !important; }
    .active-filter-chip { background: var(--u-porcelain) !important; border: 1px solid var(--u-silver) !important; color: var(--u-onyx) !important; }

    /* 4 — single product page */
    .single-collection, .coll-hero, .coll-info-col, .coll-below { background: var(--u-white) !important; }
    body.single-collection, body.single-collection * { color: var(--u-graphite) !important; }
    body.single-collection h1, body.single-collection h2, body.single-collection h3,
    body.single-collection h4, .coll-title, .coll-description h2, .coll-description h3,
    .coll-mfr strong, .size-dim, .slip-text, .bc-current, .coll-range-selected strong { color: var(--u-onyx) !important; }
    .coll-breadcrumbs a { color: var(--u-onyx) !important; }
    .coll-mfr, .coll-section-label, .size-thick, .coll-range-count, .coll-range-selected,
    .coll-like-row .tile-like-btn, .coll-breadcrumbs { color: var(--u-slate) !important; }
    .coll-description p, .coll-description ul, .coll-description ol, .coll-catalog, .coll-catalog p { color: var(--u-graphite) !important; }
    .coll-breadcrumbs { background: var(--u-white) !important; border-bottom: 1px solid var(--u-fog) !important; }
    .coll-gallery-main, .coll-gallery-main .swiper-slide, .coll-gallery-main .swiper-slide img { background: var(--u-porcelain) !important; }
    .size-item { background: var(--u-white) !important; border: 1px solid var(--u-fog) !important; }
    .suit-pill, .suitable-pill { background: var(--u-porcelain) !important; border: 1px solid var(--u-fog) !important; color: var(--u-graphite) !important; }
    .tech-pill { background: var(--u-onyx) !important; color: var(--u-white) !important; }
    .coll-range-swatch { background: var(--u-porcelain) !important; border-color: var(--u-silver) !important; }
    .coll-range-swatch.is-current { border-color: var(--u-onyx) !important; box-shadow: inset 0 0 0 2px var(--u-white) !important; }
    .coll-section, .coll-description, .coll-catalog, .coll-variants { border-top: 1px solid var(--u-fog) !important; }
    .enquiry-modal-content { background: var(--u-white) !important; color: var(--u-graphite) !important; }
    .enquiry-modal-content label, .enquiry-modal-content .gfield_label, .enquiry-modal-content h3, .enquiry-modal-content p { color: var(--u-onyx) !important; -webkit-text-fill-color: var(--u-onyx) !important; }

    /* 5 — About Us page */
    .about-page, .about-section, .about-why { background: var(--u-white) !important; color: var(--u-graphite) !important; }
    .about-cat, .about-stat, .about-why-item, .about-hero { background: var(--u-porcelain) !important; }
    .about-hero, .about-h1, .about-section h2, .about-cat h3, .about-why-item h3, .about-faq-item summary { color: var(--u-onyx) !important; }
    .about-lead, .about-section p, .about-cat p, .about-why-item p, .about-section-intro,
    .about-visit-details li, .about-faq-item p { color: var(--u-graphite) !important; }
    .about-eyebrow, .about-stat-label { color: var(--u-slate) !important; }

    /* 6 — forms: legacy dark inputs -> light; DS underline fields kept */
    input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
    input[type="password"], input[type="number"], input[type="url"], textarea, select {
        background: var(--u-white) !important; color: var(--u-onyx) !important;
        -webkit-text-fill-color: var(--u-onyx) !important; border: 1px solid var(--u-silver) !important;
    }
    .u-field input, .u-field textarea { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--u-silver) !important; }
    .u-searchbar input { background: transparent !important; border: 0 !important; }
    .gfield_label, .gform_wrapper label { color: var(--u-graphite) !important; }
    .tile-title, .tile-title a { color: var(--u-onyx) !important; }
    #no-saved-tiles { color: var(--u-slate) !important; }

    /* 7 — restore the DS hairlines/borders the legacy `*{border:none!important}` strips */
    .u-btn, .u-btn--ghost { border: 1px solid var(--u-onyx) !important; }
    .u-card { border: 1px solid var(--u-fog) !important; }
    .u-swatch, .active-filter-chip, .page-btn { border: 1px solid var(--u-silver) !important; }
    .u-footer { border-top: 1px solid var(--u-fog) !important; }
}

/* ==========================================================================
   COLLECTION PAGE TYPOGRAPHY — standardise to the front-page design system
   (Helvetica stack + DS sizes / weights / tracking) on mobile AND desktop.
   ========================================================================== */
body.single-collection .coll-breadcrumbs,
body.single-collection .coll-title,
body.single-collection .coll-mfr,
body.single-collection .coll-section-label,
body.single-collection .size-dim, body.single-collection .size-thick,
body.single-collection .slip-text,
body.single-collection .suit-pill, body.single-collection .tech-pill,
body.single-collection .coll-like-row, body.single-collection .coll-like-row .like-label,
body.single-collection .coll-range-selected, body.single-collection .coll-range-count, body.single-collection .coll-range-tip,
body.single-collection .coll-variant-name,
body.single-collection .brand-btn, body.single-collection .enquire-btn, body.single-collection .coll-download-btn,
body.single-collection .coll-description, body.single-collection .coll-description p, body.single-collection .coll-description li,
body.single-collection .coll-description h2, body.single-collection .coll-description h3,
body.single-collection .coll-catalog, body.single-collection .coll-catalog p { font-family: var(--u-font) !important; }

/* Product title → DS light heading */
body.single-collection .coll-title {
    font-weight: var(--u-w-light) !important; font-size: clamp(26px, 3.8vw, 38px) !important;
    line-height: 1.12 !important; letter-spacing: .01em !important; text-transform: none !important;
}
/* Manufacturer line */
body.single-collection .coll-mfr { font-size: var(--u-t-small) !important; font-weight: var(--u-w-reg) !important; letter-spacing: .02em !important; }
body.single-collection .coll-mfr strong { font-weight: var(--u-w-reg) !important; }
/* Section eyebrows → DS eyebrow */
body.single-collection .coll-section-label {
    font-size: var(--u-t-caption) !important; font-weight: var(--u-w-reg) !important;
    letter-spacing: .28em !important; text-transform: uppercase !important;
}
/* "Add to My Selection" */
body.single-collection .coll-like-row .tile-like-btn,
body.single-collection .coll-like-row .like-label { font-size: var(--u-t-caption) !important; letter-spacing: .16em !important; text-transform: uppercase !important; }
/* Sizes / slip / pills / variants */
body.single-collection .size-dim { font-size: var(--u-t-body) !important; font-weight: var(--u-w-reg) !important; letter-spacing: .01em !important; }
body.single-collection .size-thick { font-size: var(--u-t-small) !important; font-weight: var(--u-w-reg) !important; }
body.single-collection .slip-text { font-size: var(--u-t-body) !important; }
body.single-collection .suit-pill, body.single-collection .tech-pill { font-size: var(--u-t-small) !important; letter-spacing: .02em !important; text-transform: none !important; }
body.single-collection .coll-variant-name { font-size: var(--u-t-small) !important; }
body.single-collection .coll-range-selected, body.single-collection .coll-range-count { font-size: var(--u-t-small) !important; }
/* Buttons → DS button type */
body.single-collection .brand-btn, body.single-collection .enquire-btn, body.single-collection .coll-download-btn {
    font-size: var(--u-t-caption) !important; letter-spacing: .2em !important;
    text-transform: uppercase !important; font-weight: var(--u-w-reg) !important;
}
/* Description prose → DS body; its headings → DS sub / card */
body.single-collection .coll-description, body.single-collection .coll-description p, body.single-collection .coll-description li,
body.single-collection .coll-catalog, body.single-collection .coll-catalog p {
    font-size: var(--u-t-body) !important; line-height: 1.75 !important; letter-spacing: .012em !important; font-weight: var(--u-w-reg) !important;
}
body.single-collection .coll-description h2 { font-size: var(--u-t-sub) !important; font-weight: var(--u-w-light) !important; letter-spacing: .01em !important; line-height: 1.3 !important; }
body.single-collection .coll-description h3 { font-size: var(--u-t-card) !important; font-weight: var(--u-w-reg) !important; letter-spacing: .02em !important; }
body.single-collection .coll-breadcrumbs { font-size: var(--u-t-small) !important; letter-spacing: .04em !important; }

/* ---- Remaining contrast fixes ---- */
/* Download Catalogue button — was white/invisible; DS ghost (onyx) everywhere */
.coll-download-btn {
    border: 1px solid var(--u-onyx) !important; color: var(--u-onyx) !important;
    background: transparent !important; -webkit-text-fill-color: var(--u-onyx) !important;
}
.coll-download-btn:hover { background: var(--u-onyx) !important; color: var(--u-white) !important; -webkit-text-fill-color: var(--u-white) !important; }

/* ---- Product downloads: one button, several files ----
   A <details> disclosure, so no JavaScript and it stays keyboard accessible.
   The default triangle marker is removed in both marker syntaxes. */
.coll-downloads { width: 100%; }
.coll-downloads > summary {
    width: 100%; cursor: pointer; list-style: none;
    box-sizing: border-box;
}
.coll-downloads > summary::-webkit-details-marker { display: none; }
.coll-downloads > summary::marker { content: ''; }
.coll-downloads > summary:focus-visible { outline: 2px solid var(--u-onyx); outline-offset: 2px; }
/* Count sits inside the button so the label still reads as one control. */
.coll-downloads__count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; margin-left: 8px; padding: 0 5px;
    border-radius: 99px; font-size: 10px; line-height: 1;
    background: var(--u-onyx); color: var(--u-white);
    -webkit-text-fill-color: var(--u-white);
}
.coll-downloads > summary:hover .coll-downloads__count {
    background: var(--u-white); color: var(--u-onyx); -webkit-text-fill-color: var(--u-onyx);
}
/* Literal colours with !important here: the legacy product CSS overrides
   borders on this page, and a bare var() in a shorthand gets dropped. */
.coll-downloads__list {
    list-style: none; margin: 8px 0 0; padding: 0;
    border: 1px solid #E6E6E4 !important; border-radius: 5px; overflow: hidden;
}
.coll-downloads__list li + li { border-top: 1px solid #E6E6E4 !important; }
.coll-downloads__list a {
    display: block; padding: 12px 16px;
    font-size: 13px; line-height: 1.35; text-decoration: none;
    color: var(--u-onyx) !important; -webkit-text-fill-color: var(--u-onyx) !important;
    background: var(--u-white);
    transition: background var(--u-hover);
}
.coll-downloads__list a:hover,
.coll-downloads__list a:focus-visible {
    background: var(--u-porcelain);
}
/* Slip rating value dark (was white on mobile) */
body.single-collection .slip-text { color: var(--u-onyx) !important; }
/* Footer text dark (legacy mobile turned links/text white) */
.u-footer__nav a { color: var(--u-onyx) !important; }
.u-footer__col { color: var(--u-graphite) !important; }
.u-footer__col strong { color: var(--u-onyx) !important; }
.u-footer__col a { color: var(--u-graphite) !important; }
.u-footer__bar, .u-footer__bar a { color: var(--u-graphite) !important; }
.u-footer__social a { color: var(--u-onyx) !important; }

/* ---- "Our Collections" horizontal strip — desktop prev/next arrows ---- */
.u-hrow-wrap { position: relative; }
.u-hrow-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
    width: 44px; height: 44px; padding: 0; border: 1px solid var(--u-silver);
    background: var(--u-white); color: var(--u-onyx); border-radius: 0; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    transition: background var(--u-hover), color var(--u-hover);
}
.u-hrow-nav svg { width: 20px; height: 20px; display: block; }
.u-hrow-nav:hover { background: var(--u-onyx); color: var(--u-white); }
.u-hrow-nav--prev { left: 8px; }
.u-hrow-nav--next { right: 8px; }
@media (min-width: 1024px) {
    .u-hrow-nav { display: inline-flex; }               /* mouse users get arrows */
    .u-hrow--look { scroll-snap-type: none; }           /* smooth wheel/arrow scroll */
}

/* ---- Contact Us / My Selection page (page-contactus.php) ---- */
/* Also inlined in the template so it renders even against a stale stylesheet. */
.u-contact__lead { max-width: 60ch; margin-left: auto; margin-right: auto; }
.u-selection {
    list-style: none; margin: var(--u-32) 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--u-fog);
}
@media (min-width: 640px)  { .u-selection { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .u-selection { grid-template-columns: repeat(4, 1fr); } }
.u-selection .loop-article {
    background: var(--u-white) !important; margin: 0 !important; padding: 0 !important;
    width: auto !important; float: none !important; list-style: none;
    display: flex; flex-direction: column;
}
.u-selection .tile-card { display: block; text-decoration: none; order: 0; }
.u-selection .tile-image { aspect-ratio: 4 / 5; background: var(--u-porcelain); overflow: hidden; }
.u-selection .tile-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u-selection .tile-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: var(--u-12); padding: var(--u-16); order: 1;
}
.u-selection .tile-title {
    font-family: var(--u-font); font-size: 13px; font-weight: var(--u-w-reg);
    letter-spacing: .1em; text-transform: uppercase; color: var(--u-onyx); line-height: 1.5;
}
.u-selection .tile-like-btn {
    border: 0 !important; background: none !important; box-shadow: none !important;
    padding: 0 !important; margin: 0; cursor: pointer; line-height: 1; font-size: 15px;
    color: var(--u-slate); -webkit-appearance: none; appearance: none; flex: 0 0 auto;
    transition: color var(--u-hover);
}
.u-selection .tile-like-btn:hover { color: var(--u-onyx); }
.u-selection__empty {
    font-family: var(--u-font); font-size: 16px; color: var(--u-slate);
    margin: var(--u-24) 0 0; line-height: 1.7; text-align: center;
}
.u-selection__empty a { color: var(--u-onyx); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   LANDING PAGE (page-home.php) — owner's supplied design, re-skinned to
   the Uptiles DS. Mobile-first; every block collapses to a single column
   and stays within the viewport.
   ===================================================================== */

/* ---- Global: kill stray horizontal overflow site-wide. overflow-x:clip
   (not hidden) does NOT create a scroll container, so position:sticky on the
   product page keeps working. ---- */
#page-container { overflow-x: clip; }

/* ---- Hero: eyebrow + title + lead + two CTAs, anchored bottom-left ---- */
.u-hero__content {
    position: absolute; inset: auto 0 0 0; z-index: 2;
    display: flex; flex-direction: column; align-items: flex-start; text-align: left;
    max-width: 780px; margin: 0; width: 100%;   /* margin:0 keeps the copy hard-left; 780 gives the title room for a clean 2-line break */
    padding: 0 var(--u-edge) clamp(var(--u-40), 9vh, var(--u-96));
    pointer-events: none;
}
.u-hero__content > * { pointer-events: auto; }
.u-hero__eyebrow {
    font-family: var(--u-font); font-size: var(--u-t-caption); letter-spacing: .26em;
    /* White (was silver) — silver washed out against the bright marble hero.
       The heavier shadow keeps it readable over light areas of the photo. */
    text-transform: uppercase; color: var(--u-white); margin-bottom: var(--u-16);
    text-shadow: 0 1px 14px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.4);
}
.u-hero__title {
    font-family: var(--u-font); font-weight: var(--u-w-light); color: var(--u-white);
    font-size: clamp(20px, 3vw, 38px); line-height: 1.12; letter-spacing: .01em;
    text-transform: uppercase; margin: 0 0 var(--u-16); max-width: 720px;
    text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.u-hero__lead {
    font-family: var(--u-font); color: var(--u-porcelain);
    font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; margin: 0 0 var(--u-24);
    max-width: 480px; text-shadow: 0 1px 14px rgba(0,0,0,.45);
}
.u-hero__cta { display: flex; flex-wrap: wrap; gap: var(--u-12); }
/* primary hero button = filled white; secondary = outline. Overrides the
   earlier generic .u-hero__content .u-btn rule (same specificity, later wins). */
.u-hero__content .u-btn { margin-top: 0; border-color: var(--u-white); background: var(--u-white); color: var(--u-onyx) !important; }
.u-hero__content .u-btn:hover, .u-hero__content .u-btn:focus-visible { background: transparent; color: var(--u-white) !important; }
.u-hero__content .u-btn--hero-outline { background: transparent; color: var(--u-white) !important; border-color: rgba(255,255,255,.6); }
.u-hero__content .u-btn--hero-outline:hover, .u-hero__content .u-btn--hero-outline:focus-visible { border-color: var(--u-white); background: rgba(255,255,255,.14); color: var(--u-white) !important; }
@media (max-width: 599px) { .u-hero__lead { font-size: 14px; line-height: 1.5; margin-bottom: var(--u-16); } }

/* ---- Section head with a right-aligned link (Curated Collections, Gallery) ---- */
.u-sec-head { display: flex; flex-direction: column; gap: var(--u-16); margin-bottom: var(--u-40); }
.u-sec-head .u-eyebrow { display: block; margin-bottom: var(--u-12); }
.u-sec-head .u-h2 { text-align: left; }
.u-sec-head__link {
    align-self: flex-start; font-family: var(--u-font); font-size: var(--u-t-small);
    letter-spacing: .02em; color: var(--u-onyx); border-bottom: 1px solid var(--u-onyx);
    padding-bottom: 2px; text-decoration: none; white-space: nowrap; transition: color var(--u-hover), border-color var(--u-hover);
}
.u-sec-head__link:hover { color: var(--u-slate); border-color: var(--u-slate); }
.u-sec-head__note { font-family: var(--u-font); font-size: var(--u-t-small); color: var(--u-slate); max-width: 360px; margin: 0; line-height: 1.6; }
@media (min-width: 768px) { .u-sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--u-24); } }

.u-heading--left { text-align: left; }
/* Editorial / statement headings — left-aligned, tighter tracking than the
   short section titles so full sentences stay readable. */
.u-h2--left {
    text-align: left; text-transform: uppercase; letter-spacing: .03em;
    font-size: clamp(22px, 3vw, 34px); line-height: 1.22;
}

/* ---- Featured collection cards (4-up) ---- */
/* Mobile: a horizontal, swipeable rail showing ~2 cards at a time. */
.u-featured {
    display: flex; gap: var(--u-16); overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.u-featured::-webkit-scrollbar { display: none; }
.u-featured > .u-fcard { flex: 0 0 46%; scroll-snap-align: start; }
@media (min-width: 768px) {
    /* Desktop: a static grid, columns matched to the real card count. */
    .u-featured { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--u-24); overflow: visible; }
    .u-featured > .u-fcard { flex: none; }
    .u-featured--3 { grid-template-columns: repeat(3, 1fr); }
    .u-featured--2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
    .u-featured--1 { grid-template-columns: minmax(0, 360px); }
}
.u-fcard { display: block; text-decoration: none; color: inherit; }
.u-fcard__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--u-porcelain); }
.u-fcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform .6s ease; }
.u-fcard__img--hover { opacity: 0; }
.u-fcard:hover .u-fcard__img--hover { opacity: 1; }
.u-fcard:hover .u-fcard__img { transform: scale(1.03); }
.u-fcard__badge {
    position: absolute; top: var(--u-16); left: var(--u-16); z-index: 2;
    font-family: var(--u-font); font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
    color: var(--u-white); font-weight: var(--u-w-reg); text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.u-fcard__swatches { display: flex; gap: 8px; margin-top: var(--u-16); }
.u-fcard__swatches .u-swatch { width: 22px; height: 22px; }
.u-fcard__name { font-family: var(--u-font); font-weight: var(--u-w-light); font-size: var(--u-t-sub); letter-spacing: .02em; color: var(--u-onyx); margin-top: var(--u-16); }
.u-fcard__tag { font-family: var(--u-font); font-size: var(--u-t-small); color: var(--u-slate); margin-top: 4px; margin-bottom: var(--u-8); }
/* Our Collections cards: borderless (no boxed panel), name + "X+ Tiles" below. */
.u-hrow--look .u-card { border: 0 !important; background: transparent; overflow: visible; }
.u-hrow--look .u-card__media { overflow: hidden; }
.u-hrow--look .u-card__name { font-family: var(--u-font); font-weight: var(--u-w-light); font-size: var(--u-t-sub); letter-spacing: .02em; color: var(--u-onyx); margin-top: var(--u-12); }
.u-hrow--look .u-card__count { font-family: var(--u-font); font-size: var(--u-t-small); color: var(--u-slate); margin-top: 4px; }
/* Drawer (hamburger) text always dark — beats legacy link tints on mobile. */
.u-drawer nav a { color: var(--u-onyx) !important; }
.u-drawer__foot { color: var(--u-graphite) !important; }
.u-drawer__foot strong { color: var(--u-onyx) !important; }
.u-drawer__foot a { color: var(--u-graphite) !important; }

/* ---- Split: two-column text + image (Brand Story, Exclusive, Services) ---- */
.u-split { display: grid; grid-template-columns: 1fr; gap: var(--u-40); align-items: center; }
@media (min-width: 900px) { .u-split { grid-template-columns: 1fr 1fr; gap: clamp(var(--u-48), 6vw, var(--u-96)); } }
/* Column-order modifiers (desktop only; mobile keeps DOM stacking order). */
@media (min-width: 900px) {
    .u-split--text-left  .u-split__text  { order: 1; }
    .u-split--text-left  .u-split__media { order: 2; }
    .u-split--text-right .u-split__text  { order: 2; }
    .u-split--text-right .u-split__media { order: 1; }
}
.u-split__media { overflow: hidden; background: var(--u-porcelain); }
.u-split__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.u-ratio-4x3 { aspect-ratio: 4 / 3; }
.u-split__text .u-eyebrow { display: block; margin-bottom: var(--u-16); }
.u-split__text .u-h2 { margin-bottom: var(--u-24); }
.u-split__text .u-body + .u-body { margin-top: var(--u-16); }
.u-split__cta { margin: var(--u-32) 0 0; }
.u-split__cta--row { display: flex; flex-wrap: wrap; gap: var(--u-12); }

.u-ticks { list-style: none; margin: var(--u-24) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--u-16); }
.u-ticks li { position: relative; padding-left: var(--u-24); font-family: var(--u-font); font-size: var(--u-t-body); line-height: 1.7; color: var(--u-graphite); }
.u-ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--u-slate); }
.u-ticks strong { font-weight: var(--u-w-reg); color: var(--u-onyx); }

/* ---- Brand Story (dark band) ---- */
.u-story { background: var(--u-onyx); color: var(--u-white); padding-block: clamp(var(--u-64), 9vw, var(--u-120)); }
.u-story .u-eyebrow { color: var(--u-silver); }
.u-story .u-h2 { color: var(--u-white); }
.u-story .u-body { color: var(--u-silver); }
.u-story .u-split__media { background: #1c1c1c; }
/* Reusable dark band (e.g. "Right now at Uptiles"), same treatment as the story. */
.u-section--dark { background: var(--u-onyx); color: var(--u-white); }
.u-section--dark .u-h2, .u-section--dark .u-body { color: var(--u-white); }
.u-section--dark .u-eyebrow { color: var(--u-silver); }
@media (max-width: 767px) {
    .u-section--dark .u-h2, .u-section--dark .u-body { color: var(--u-white) !important; }
    .u-section--dark .u-eyebrow { color: var(--u-silver) !important; }
}
.u-btn--on-dark { border-color: rgba(255,255,255,.5); color: var(--u-white) !important; background: transparent; }
.u-btn--on-dark:hover, .u-btn--on-dark:focus-visible { background: var(--u-white); color: var(--u-onyx) !important; }

/* ---- Promo spotlight (Versace / Porceluxe) ---- */
.u-promos { display: grid; grid-template-columns: 1fr; gap: var(--u-16); }
@media (min-width: 768px) { .u-promos { grid-template-columns: 1fr 1fr; gap: var(--u-24); } }
.u-promo { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--u-porcelain); text-decoration: none; }
.u-promo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.u-promo:hover .u-promo__img { transform: scale(1.06); }
.u-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(18,18,18,.8) 100%); transition: background .45s ease; }
.u-promo:hover::after { background: linear-gradient(180deg, transparent 12%, rgba(18,18,18,.88) 100%); }
.u-promo__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--u-32); display: flex; flex-direction: column; gap: 6px; color: var(--u-white); text-shadow: 0 1px 12px rgba(0,0,0,.55); transition: transform .45s cubic-bezier(.2,.6,.2,1); }
.u-promo:hover .u-promo__body { transform: translateY(-6px); }
.u-promo__eyebrow { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--u-silver); }
.u-promo__headline { font-family: var(--u-font); font-weight: var(--u-w-light); text-transform: uppercase; letter-spacing: .02em; font-size: clamp(22px, 2.6vw, 30px); color: var(--u-white); }
.u-promo__subline { font-size: var(--u-t-small); color: var(--u-porcelain); }
.u-promo__cta { margin-top: var(--u-8); align-self: flex-start; font-size: var(--u-t-small); letter-spacing: .05em; text-transform: uppercase; color: var(--u-white); border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px; }

/* ---- Gallery (Recently Completed) ---- */
.u-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--u-fog); }
@media (min-width: 640px)  { .u-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
    .u-gallery { grid-template-columns: repeat(6, 1fr); }
    /* match columns to how many images actually resolved, so the row never
       ends in empty cells */
    .u-gallery--4 { grid-template-columns: repeat(4, 1fr); }
    .u-gallery--5 { grid-template-columns: repeat(5, 1fr); }
    .u-gallery--6 { grid-template-columns: repeat(6, 1fr); }
}
.u-gallery__cell { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--u-porcelain); display: block; }
.u-gallery__cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.u-gallery__cell:hover img { transform: scale(1.05); }
.u-gallery__cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18,18,18,.62) 100%); opacity: 0; transition: opacity .4s ease; }
.u-gallery__cell:hover::after { opacity: 1; }
.u-gallery__cap {
    position: absolute; left: var(--u-16); right: var(--u-16); bottom: var(--u-16); z-index: 2;
    font-family: var(--u-font); font-size: 12px; letter-spacing: .04em; line-height: 1.3;
    color: var(--u-white); text-shadow: 0 1px 8px rgba(0,0,0,.6);
    opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease;
}
.u-gallery__cell:hover .u-gallery__cap { opacity: 1; transform: none; }
@media (max-width: 767px) { .u-gallery__cell::after, .u-gallery__cap { opacity: 1; transform: none; } }

/* ---- Header: on phones, collapse phone number to a tap-to-call ICON so the
   wordmark centres and nothing clips; keep full phone+address on tablet/desktop. ---- */
@media (max-width: 599px) {
    .u-header__addr { display: none; }
    .u-header__phone { font-size: 0 !important; letter-spacing: 0; gap: 0; }
    .u-header__phone svg { display: block !important; width: 22px; height: 22px; }
}

/* ---- Mobile: keep dark/overlay text light (the legacy <=767 neutraliser
   repaints text dark; these win it back for the dark band, promos and hero). ---- */
@media (max-width: 767px) {
    .u-story .u-h2, .u-story .u-eyebrow { color: var(--u-white) !important; }
    .u-story .u-body { color: var(--u-silver) !important; }
    .u-story .u-btn--on-dark { color: var(--u-white) !important; }
    .u-promo__body, .u-promo__headline, .u-promo__cta { color: var(--u-white) !important; }
    .u-promo__eyebrow { color: var(--u-silver) !important; }
    .u-promo__subline { color: var(--u-porcelain) !important; }
    .u-fcard__badge { color: var(--u-white) !important; }
    /* Hero copy is white over the photo (the legacy <=767 rule repaints it dark)
       and centred on mobile only. Stronger shadow keeps it legible over light
       images like the kitchen shot. */
    .u-hero__content { align-items: center; text-align: center; max-width: 100%; }
    .u-hero__lead { margin-left: auto; margin-right: auto; }
    .u-hero__cta { justify-content: center; }
    /* High-specificity selectors so the legacy "all mobile text is dark" rule
       can never repaint the hero heading black, regardless of load order. */
    body.u-has-hero .u-hero .u-hero__title { color: var(--u-white) !important; text-shadow: 0 2px 22px rgba(0,0,0,.6); }
    body.u-has-hero .u-hero .u-hero__eyebrow { color: var(--u-white) !important; text-shadow: 0 1px 14px rgba(0,0,0,.7); }
    body.u-has-hero .u-hero .u-hero__lead { color: var(--u-porcelain) !important; text-shadow: 0 1px 16px rgba(0,0,0,.7); }
    .u-hero__content .u-btn { color: var(--u-onyx) !important; background: var(--u-white) !important; }
    .u-hero__content .u-btn--hero-outline { color: var(--u-white) !important; background: transparent !important; }
}

/* ---- Button + link micro-interactions (every button animates on hover) ---- */
.u-btn { transition: background .3s ease, color .3s ease, border-color .3s ease, transform .25s ease; }
.u-btn:hover, .u-btn:focus-visible { transform: translateY(-2px); }
.u-sec-head__link span, .u-promo__cta span { display: inline-block; transition: transform .3s ease; }
.u-sec-head__link:hover span, .u-promo:hover .u-promo__cta span { transform: translateX(5px); }

/* ---- Desktop: white header glyphs over a light hero need a shadow until the
   header goes solid on scroll (mobile header is dark text, left untouched). ---- */
@media (min-width: 768px) {
    body.u-has-hero .u-header:not(.is-solid) .u-wordmark__name,
    body.u-has-hero .u-header:not(.is-solid) .u-wordmark__loc,
    body.u-has-hero .u-header:not(.is-solid) .u-header__contact,
    body.u-has-hero .u-header:not(.is-solid) .u-iconbtn { text-shadow: 0 1px 12px rgba(0,0,0,.55); }
    body.u-has-hero .u-header:not(.is-solid) .u-iconbtn svg,
    body.u-has-hero .u-header:not(.is-solid) .u-fav svg { filter: drop-shadow(0 1px 6px rgba(0,0,0,.55)); }
}

/* ---- Mobile: the legacy *{border:none} + onyx border-restore strips the
   LIGHT outlines on dark/hero buttons and the DS hairline underlines. Restore. ---- */
@media (max-width: 767px) {
    .u-story .u-btn--on-dark { border: 1px solid rgba(255,255,255,.5) !important; }
    .u-hero__content .u-btn--hero-outline { border: 1px solid rgba(255,255,255,.6) !important; }
    .u-sec-head__link { border-bottom: 1px solid var(--u-onyx) !important; }
    .u-promo__cta { border-bottom: 1px solid rgba(255,255,255,.6) !important; }
}

/* ===================== FOOTER — dark, matches the supplied mockup ===================== */
.u-footer { background: #0A0A0A !important; color: var(--u-silver) !important; padding: clamp(var(--u-48), 7vw, var(--u-64)) 0 var(--u-32); text-align: left; }
.u-footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--u-40); padding: 0 var(--u-edge); }
@media (min-width: 640px)  { .u-footer__grid { grid-template-columns: 1fr 1fr; } }
/* 5 columns since "Tiles Brisbane" joined Shop / Company / Visit. */
@media (min-width: 1000px) { .u-footer__grid { grid-template-columns: 1.5fr 1fr 1.1fr 1fr 1.15fr; gap: var(--u-40); } }
.u-footer__brand-name { font-family: var(--u-font); font-weight: var(--u-w-reg); text-transform: uppercase; letter-spacing: .18em; font-size: 20px; color: var(--u-white); margin: 0 0 var(--u-16); }
.u-footer__blurb { font-family: var(--u-font); font-size: var(--u-t-small); line-height: 1.7; color: var(--u-silver); margin: 0; max-width: 280px; }
.u-footer__group-title { font-family: var(--u-font); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--u-slate); margin: 0 0 var(--u-16); }
.u-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--u-12); }
.u-footer__list a { font-family: var(--u-font); font-size: var(--u-t-small); color: var(--u-silver); text-decoration: none; transition: color var(--u-hover); }
.u-footer__list a:hover { color: var(--u-white); }
.u-footer__group p { font-family: var(--u-font); font-size: var(--u-t-small); line-height: 1.9; color: var(--u-silver); margin: 0; }
.u-footer__group p a { color: var(--u-silver); text-decoration: none; transition: color var(--u-hover); }
.u-footer__group p a:hover { color: var(--u-white); }
.u-footer__social a { color: var(--u-silver) !important; display: inline-flex; transition: color var(--u-hover); }
.u-footer__social a:hover { color: var(--u-white) !important; }
.u-footer__social svg { width: 18px; height: 18px; }
.u-footer__bar { border-top: 1px solid #2A2A2A !important; margin-top: var(--u-40); padding-top: var(--u-24); color: var(--u-slate) !important; }
.u-footer__bar-inner { padding: 0 var(--u-edge); font-family: var(--u-font); font-size: var(--u-t-caption); letter-spacing: .04em; color: var(--u-slate) !important; }
@media (max-width: 767px) {
    .u-footer, .u-footer__blurb, .u-footer__group p, .u-footer__list a, .u-footer__group p a { color: var(--u-silver) !important; }
    .u-footer__brand-name, .u-footer__group p strong { color: var(--u-white) !important; }
    .u-footer__group-title, .u-footer__bar, .u-footer__bar-inner { color: var(--u-slate) !important; }
}

/* =====================================================================
   SITE-WIDE (owner request): one font everywhere + white page backgrounds.
   The homepage dark bands (.u-story, .u-section--dark), the dark footer and
   the Build My Space designer keep their own dark backgrounds — those set
   their own bg, so a white page background never overrides them.
   ===================================================================== */
html, body,
h1, h2, h3, h4, h5, h6,
p, a, li, dd, dt, blockquote, figcaption, caption,
label, input, select, textarea, button, optgroup, th, td,
.entry-title, .entry-content, .cat-seo-h1 {
    font-family: var(--u-font) !important;
}
body:not(.page-template-page-room-designer),
body:not(.page-template-page-room-designer) #content,
body:not(.page-template-page-room-designer) #main-content,
body:not(.page-template-page-room-designer) .site-main { background: var(--u-white); }
@media (max-width: 767px) {
    body:not(.page-template-page-room-designer),
    body:not(.page-template-page-room-designer) #content,
    body:not(.page-template-page-room-designer) #main-content,
    body:not(.page-template-page-room-designer) .site-main { background: var(--u-white) !important; }
}

/* ---- All headings & titles BOLD across the whole site (owner request) ---- */
h1, h2, h3, h4, h5, h6,
.u-h1, .u-h2, .u-h3, .u-hero__title, .u-h2--left,
.u-fcard__name, .u-card__name, .u-promo__headline, .u-footer__brand-name,
.entry-title, .cat-seo-h1, .coll-title {
    font-weight: 700 !important;
}

/* =====================================================================
   ARTICLE PAGES — single post layout.
   Previously a Bootstrap col-md-9/col-md-3 float pair with no .row and no
   clearfix: the floats escaped, the sidebar sat over the page and the footer
   climbed up beside the article. Now one contained, centred column with
   "More articles" as a block at the foot.
   ===================================================================== */
.article-page {
    float: none !important; width: auto !important;
    max-width: 860px; margin: 0 auto;
    padding: var(--u-48) var(--u-edge) var(--u-64);
    /* contains anything the post content floats, so the footer can't ride up */
    display: flow-root;
}
.article-page .site-main { float: none !important; width: auto !important; display: flow-root; }
/* The old floating sidebar never appears on articles now. */
.article-page .sidebar-area, .single-post .sidebar-area { display: none !important; }

.article-page .entry-content { font-family: var(--u-font); }
.article-page .entry-content p,
.article-page .entry-content li { font-size: 16px; line-height: 1.75; color: var(--u-graphite); }
.article-page .entry-content h2 { margin-top: var(--u-40); }
.article-page .entry-content h3 { margin-top: var(--u-32); }
.article-page .entry-content img { max-width: 100%; height: auto; }

/* =====================================================================
   GUIDES ARCHIVE (/news/) — card grid.
   Replaces the old full-width stacked rows whose uncontained Bootstrap
   columns stranded "Read More" out to the right.
   ===================================================================== */
.guides-archive {
    float: none !important; width: auto !important;
    max-width: 1240px; margin: 0 auto;
    padding: var(--u-56) var(--u-edge) var(--u-80);
    display: flow-root;
}
.guides-archive .site-main { float: none !important; width: auto !important; }
.guides-archive__head { text-align: center; max-width: 720px; margin: 0 auto var(--u-48); }
.guides-archive__eyebrow {
    display: block; font-family: var(--u-font); font-size: var(--u-t-caption);
    letter-spacing: .22em; text-transform: uppercase; color: var(--u-slate);
    margin-bottom: var(--u-12);
}
.guides-archive__title {
    font-family: var(--u-font); font-size: clamp(26px, 4vw, 40px); line-height: 1.1;
    font-weight: 700; letter-spacing: .01em; color: var(--u-onyx); margin: 0 0 var(--u-16);
}
.guides-archive__lead {
    font-family: var(--u-font); font-size: 16px; line-height: 1.7;
    color: var(--u-slate); margin: 0;
}

.guides-grid {
    display: grid; grid-template-columns: 1fr; gap: var(--u-32);
}
@media (min-width: 640px)  { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .guides-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- one guide card ---- */
.guide-card {
    display: flex; flex-direction: column;
    background: var(--u-white); border: 1px solid var(--u-fog);
    margin: 0 !important; padding: 0 !important; width: auto !important; float: none !important;
    transition: box-shadow .3s ease, transform .3s ease;
}
.guide-card:hover { box-shadow: 0 14px 40px rgba(0,0,0,.10); transform: translateY(-3px); }
.guide-card__media {
    display: block; aspect-ratio: 4 / 3; overflow: hidden;
    background: var(--u-porcelain); flex: 0 0 auto;
}
.guide-card__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .6s ease;
}
.guide-card:hover .guide-card__media img { transform: scale(1.04); }
.guide-card__placeholder { display: block; width: 100%; height: 100%; background: var(--u-porcelain); }

.guide-card__body {
    display: flex; flex-direction: column; flex: 1 1 auto;
    padding: var(--u-24) var(--u-24) var(--u-32); text-align: center;
}
.guide-card__title {
    font-family: var(--u-font); font-size: 17px; line-height: 1.35; font-weight: 700;
    letter-spacing: .01em; text-transform: none; color: var(--u-onyx);
    margin: 0 0 var(--u-12);
}
.guide-card__title a { color: inherit; text-decoration: none; }
.guide-card__title a:hover { color: var(--u-slate); }
.guide-card__excerpt { flex: 1 1 auto; }
.guide-card__excerpt p {
    font-family: var(--u-font); font-size: 14px; line-height: 1.65;
    color: var(--u-slate); margin: 0;
}
/* "Read More" pinned to the bottom so buttons align across a row. */
.guide-card__cta { margin: var(--u-24) 0 0; }
.guide-card__btn {
    display: inline-block; padding: 12px 24px;
    font-family: var(--u-font); font-size: 11px; letter-spacing: .16em;
    text-transform: uppercase; font-weight: 700; text-decoration: none;
    background: var(--u-onyx); color: var(--u-white) !important;
    -webkit-text-fill-color: var(--u-white); border: 1px solid var(--u-onyx);
    transition: background .25s ease, color .25s ease;
}
.guide-card__btn:hover {
    background: transparent; color: var(--u-onyx) !important;
    -webkit-text-fill-color: var(--u-onyx);
}

/* ---- "Shop this look" — guide -> collection ---- */
.article-shop {
    margin-top: var(--u-48); padding: var(--u-32);
    background: var(--u-porcelain); text-align: center;
}
.article-shop__label {
    margin: 0 0 var(--u-12); font-family: var(--u-font); font-size: 11px;
    letter-spacing: .16em; text-transform: uppercase; color: var(--u-slate);
}
.article-shop__btn {
    display: inline-block; padding: 14px 28px; font-family: var(--u-font);
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
    background: var(--u-onyx); color: var(--u-white) !important;
    -webkit-text-fill-color: var(--u-white); text-decoration: none;
    border: 1px solid var(--u-onyx); transition: background .25s ease, color .25s ease;
}
.article-shop__btn:hover {
    background: transparent; color: var(--u-onyx) !important;
    -webkit-text-fill-color: var(--u-onyx);
}
.article-shop__note {
    margin: var(--u-16) 0 0; font-family: var(--u-font);
    font-size: 13px; color: var(--u-slate);
}
.article-shop__note a { color: var(--u-onyx); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Category -> guides cross-links ---- */
.cat-guides {
    margin: var(--u-48) 0 0; padding: var(--u-32) 0 0;
    border-top: 1px solid var(--u-fog); clear: both;
}
.cat-guides__title {
    font-family: var(--u-font); font-size: 12px; letter-spacing: .16em;
    text-transform: uppercase; font-weight: 700; color: var(--u-onyx);
    margin: 0 0 var(--u-16);
}
.cat-guides__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: var(--u-12);
}
.cat-guides__list a {
    display: inline-block; padding: 10px 16px; font-family: var(--u-font);
    font-size: 13px; color: var(--u-onyx); text-decoration: none;
    border: 1px solid var(--u-silver); transition: border-color .2s ease, background .2s ease;
}
.cat-guides__list a:hover { border-color: var(--u-onyx); background: var(--u-porcelain); }
.cat-guides__list .cat-guides__all { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }

/* ---- More articles (foot of the page) ---- */
.article-more {
    margin-top: var(--u-64); padding-top: var(--u-40);
    border-top: 1px solid var(--u-fog); clear: both;
}
.article-more__title {
    font-family: var(--u-font); font-size: 13px; letter-spacing: .16em;
    text-transform: uppercase; font-weight: 700; color: var(--u-onyx);
    margin: 0 0 var(--u-24);
}
.article-more__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--u-24);
}
@media (min-width: 760px) { .article-more__grid { grid-template-columns: repeat(3, 1fr); } }
.article-more__item { margin: 0; }
.article-more__item a { display: block; text-decoration: none; color: inherit; }
.article-more__thumb {
    display: block; aspect-ratio: 4 / 3; overflow: hidden;
    background: var(--u-porcelain); margin-bottom: var(--u-12);
}
.article-more__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-more__name {
    display: block; font-family: var(--u-font); font-size: 14px; line-height: 1.5;
    font-weight: 700; color: var(--u-onyx);
}
.article-more__item a:hover .article-more__name { color: var(--u-slate); }
.article-more__all { margin: var(--u-32) 0 0; }
.article-more__all a {
    font-family: var(--u-font); font-size: 13px; letter-spacing: .08em;
    color: var(--u-onyx); text-decoration: underline; text-underline-offset: 4px;
}

/* About-page range cards are now clickable links. */
a.about-cat { text-decoration: none; color: inherit; display: block; transition: transform .25s ease; }
a.about-cat:hover { transform: translateY(-3px); }

/* No black focus box when a card is clicked (keyboard focus ring is kept). */
.u-fcard:focus:not(:focus-visible),
.u-card:focus:not(:focus-visible),
.u-gallery__cell:focus:not(:focus-visible),
.u-promo:focus:not(:focus-visible),
.u-hrow-nav:focus:not(:focus-visible),
.u-btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* Colour-filter swatch bubble next to each colour name. The colour is painted
   as a gradient IMAGE by the template and the element opts out of auto/forced
   dark, so phones running dark mode don't re-tint every swatch near-black. */
.filter-swatch {
    display: inline-block; width: 13px; height: 13px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,.18); margin-right: 8px; vertical-align: -1px; flex: 0 0 auto;
    color-scheme: light only; forced-color-adjust: none;
}

/* Product listing tiles: cross-fade to the second (lifestyle) image on hover,
   like the Curated Collections cards. The face image stays in normal flow (the
   1:1 box keeps its size); the hover image overlays it and fades in. Products
   with only a face image render no .tile-hover, so they just keep the base
   zoom. Falls back gracefully on touch (no hover) and when JS/media absent. */
.search-tile-item .tile-image { position: relative; }
.search-tile-item .tile-image .tile-hover {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .5s ease, transform .4s ease, filter .4s ease;
}
.search-tile-item:hover .tile-image .tile-hover { opacity: 1; }
@media (hover: none) { .search-tile-item .tile-image .tile-hover { display: none; } }

/* Product description as a collapsible dropdown (matches the FAQ accordions). */
.coll-desc-toggle { border-top: 1px solid var(--u-border); }
.coll-desc-toggle > summary {
    list-style: none; cursor: pointer; padding: var(--u-16) 0; margin: 0;
    font-family: var(--u-font); font-weight: 700; font-size: var(--u-t-card);
    letter-spacing: .02em; color: var(--u-onyx);
    display: flex; align-items: center; justify-content: space-between; gap: var(--u-16);
}
.coll-desc-toggle > summary::-webkit-details-marker { display: none; }
.coll-desc-toggle > summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--u-slate); }
.coll-desc-toggle[open] > summary::after { content: "\2013"; }
.coll-desc-toggle .coll-description { padding-bottom: var(--u-24); }

/* Product "Colours & Finishes" panel + labels legible black/grey on mobile. */
@media (max-width: 767px) {
    body.single-collection .coll-section-label { color: var(--u-onyx) !important; }
    body.single-collection .coll-range-selected { color: var(--u-graphite) !important; }
    body.single-collection .coll-range-selected strong { color: var(--u-onyx) !important; }
    body.single-collection .coll-range-count { color: var(--u-slate) !important; }
}

/* Contact-page enquiry: form on the LEFT, intro text on the RIGHT (desktop). */
@media (min-width: 820px) {
    .u-enquiry--rev .u-enquiry__intro { order: 2; }
    .u-enquiry--rev .u-enquiry__form  { order: 1; }
}

/* Staff-only drawer item — marked so it reads as internal, not a public page. */
.u-drawer__staff a { display: inline-flex; align-items: center; gap: 9px; }
.u-drawer__staff span {
    font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    padding: 2px 7px; border: 1px solid currentColor; border-radius: 99px; opacity: .65;
}

/* ===========================================================================
   TRADE ACCOUNTS  (/trade/)
   Hero -> what you get -> how it works -> application form.
   =========================================================================== */

.trade-page { background: var(--u-white); }

/* ---- hero ---- */
.trade-hero {
    padding-block: clamp(var(--u-56), 9vw, var(--u-120));
    padding-inline: var(--u-edge);
    border-bottom: 1px solid var(--u-fog);
}
.trade-hero__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.trade-eyebrow {
    font-size: var(--u-t-caption); letter-spacing: .28em; text-transform: uppercase;
    color: var(--u-slate); margin: 0 0 var(--u-16);
}
.trade-h1 {
    font-size: var(--u-t-hero); line-height: 1.05; font-weight: var(--u-w-light);
    letter-spacing: .02em; color: var(--u-onyx); margin: 0 0 var(--u-24);
    text-transform: uppercase;
}
.trade-lead {
    font-size: var(--u-t-sub); line-height: 1.5; font-weight: var(--u-w-light);
    color: var(--u-graphite); margin: 0 auto var(--u-32); max-width: 62ch;
}
.trade-hero__cta { margin-top: var(--u-8); }

/* ---- shared section shell ---- */
.trade-section {
    padding-block: clamp(var(--u-56), 8vw, var(--u-96));
    padding-inline: var(--u-edge);
}
.trade-section--alt { background: var(--u-porcelain); }
.trade-inner { max-width: 1080px; margin-inline: auto; }
.trade-inner--form { max-width: 780px; }
.trade-h2 {
    font-size: var(--u-t-h2); line-height: 1.15; font-weight: var(--u-w-light);
    text-align: center; letter-spacing: .14em; text-transform: uppercase;
    color: var(--u-onyx); margin: 0 0 clamp(var(--u-32), 5vw, var(--u-56));
}

/* ---- what you get ---- */
/* Eight benefits: 1 / 2 / 4 across, so the last row is never left ragged. */
.trade-cards { display: grid; grid-template-columns: 1fr; gap: var(--u-16); }
@media (min-width: 560px)  { .trade-cards { grid-template-columns: repeat(2, 1fr); gap: var(--u-24); } }
@media (min-width: 1000px) { .trade-cards { grid-template-columns: repeat(4, 1fr); } }
/* Two cards in a four-column grid leave half the row empty and look like a
   loading error. The careers page has exactly two, so it says so. */
@media (min-width: 560px) { .trade-cards--two { grid-template-columns: repeat(2, 1fr); } }
.trade-card {
    border: 1px solid var(--u-fog); background: var(--u-white);
    padding: var(--u-32) var(--u-24);
}
.trade-card h3 {
    font-size: var(--u-t-sub); font-weight: var(--u-w-light); letter-spacing: .02em;
    color: var(--u-onyx); margin: 0 0 var(--u-12);
}
.trade-card p { font-size: var(--u-t-body); line-height: 1.6; color: var(--u-graphite); margin: 0; }
/* Cards were single-paragraph until the careers page; without this a second
   one butts straight onto the first. */
.trade-card p + p { margin-top: var(--u-12); }

/* ---- how it works ---- */
.trade-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: var(--u-32);
}
@media (min-width: 760px) { .trade-steps { grid-template-columns: repeat(3, 1fr); gap: var(--u-40); } }
.trade-step { position: relative; padding-top: var(--u-24); border-top: 1px solid var(--u-silver); }
.trade-step__num {
    display: block; font-size: 28px; font-weight: var(--u-w-light);
    color: var(--u-onyx); line-height: 1; margin-bottom: var(--u-16);
}
.trade-step h3 {
    font-size: var(--u-t-sub); font-weight: var(--u-w-light); letter-spacing: .02em;
    color: var(--u-onyx); margin: 0 0 var(--u-8);
}
.trade-step p { font-size: var(--u-t-body); line-height: 1.6; color: var(--u-graphite); margin: 0; }

/* ---- application form ---- */
.trade-form__intro {
    font-size: var(--u-t-body); line-height: 1.6; color: var(--u-slate);
    text-align: center; margin: 0 0 var(--u-32);
}
.trade-form__intro i, .trade-field__label i { color: #b23a2b; font-style: normal; }
.trade-form__row { display: grid; grid-template-columns: 1fr; gap: var(--u-16); }
@media (min-width: 620px) { .trade-form__row { grid-template-columns: 1fr 1fr; gap: var(--u-24); } }
/* The three business dropdowns: 3 across once there is room, 2 before that. */
@media (min-width: 860px) { .trade-form__row--3 { grid-template-columns: repeat(3, 1fr); } }
.trade-field { display: block; margin-bottom: var(--u-24); }
.trade-form__row .trade-field { margin-bottom: 0; }
.trade-form__row + .trade-form__row,
.trade-form__row + .trade-field { margin-top: var(--u-24); }
.trade-field__label {
    display: block; margin: 0 0 var(--u-8);
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    font-weight: 700; color: var(--u-onyx);
}
.trade-field__label em {
    font-style: normal; font-weight: 400; letter-spacing: .06em;
    text-transform: none; color: var(--u-slate);
}
.trade-field input, .trade-field textarea, .trade-field select {
    width: 100%; box-sizing: border-box; padding: 13px 14px;
    font-size: 16px; /* 16px stops iOS zoom-on-focus */
    font-family: inherit; color: var(--u-onyx);
    background: var(--u-white); border: 1px solid var(--u-silver);
    border-radius: 0; -webkit-appearance: none; appearance: none;
    transition: border-color var(--u-hover);
}
.trade-field textarea { resize: vertical; min-height: 110px; }
.trade-field input:focus, .trade-field textarea:focus, .trade-field select:focus {
    outline: none; border-color: var(--u-onyx);
}
/* Native arrow removed above, so it is redrawn here. Scoped to .trade-field so
   it outranks `.trade-field select`, whose `background` shorthand would
   otherwise reset the arrow away. */
.trade-field .trade-select {
    padding-right: 40px; cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--u-onyx) 50%),
        linear-gradient(135deg, var(--u-onyx) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.trade-form__foot {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-24);
    margin-top: var(--u-32);
}
.trade-form__alt { font-size: var(--u-t-small); color: var(--u-slate); }
.trade-form__fine {
    font-size: var(--u-t-small); color: var(--u-slate);
    margin: var(--u-32) 0 0; text-align: center;
}

/* The careers form's file input. It inherits the shared field styling above,
   which strips the native appearance — that suits a text box and leaves a file
   input looking like an empty one, so the picker button is drawn back in. */
.careers-file { padding: 9px 10px; cursor: pointer; font-size: 14px; }
.careers-file::file-selector-button {
    margin-right: var(--u-16); padding: 8px 14px; cursor: pointer;
    font: 600 11px/1 inherit; letter-spacing: .12em; text-transform: uppercase;
    color: var(--u-white); background: var(--u-onyx);
    border: 1px solid var(--u-onyx); border-radius: 0;
    transition: background var(--u-hover);
}
.careers-file::file-selector-button:hover { background: #000; }

/* Yes / No, as two tappable cards rather than a dropdown — a binary question
   should show both answers. The shared `.trade-field input` rule stretches any
   input to full width and strips its native appearance, which erases a radio
   button entirely, so its size and appearance are handed back here. */
.careers-radios { display: flex; flex-wrap: wrap; gap: var(--u-16); }
.careers-radio {
    display: inline-flex; align-items: center; gap: var(--u-12);
    min-width: 120px; padding: 12px 20px; cursor: pointer;
    background: var(--u-white); border: 1px solid var(--u-silver);
    font-size: var(--u-t-body); color: var(--u-onyx);
    transition: border-color var(--u-hover), box-shadow var(--u-hover);
}
.careers-radio:hover { border-color: var(--u-onyx); }
.careers-radio input[type="radio"] {
    flex: 0 0 auto; width: 17px; height: 17px; margin: 0; padding: 0;
    -webkit-appearance: auto; appearance: auto; accent-color: var(--u-onyx);
}
/* Progressive: browsers without :has() simply show no selected outline. */
.careers-radio:has(input:checked) {
    border-color: var(--u-onyx); box-shadow: inset 0 0 0 1px var(--u-onyx);
}
.careers-radio input[type="radio"]:focus-visible { outline: 2px solid var(--u-onyx); outline-offset: 2px; }

/* The conditional forklift block sits BETWEEN two rows, so the adjacent-sibling
   spacing rules further up (`.trade-form__row + .trade-form__row`) never match
   it and it butts straight onto the row above. It carries its own spacing
   instead; when hidden it is display:none, so the margins cost nothing. */
#uc-forklift { margin: var(--u-24) 0; }

/* Shown by default, and hidden only once the page has said it is scripted.
   That way a browser with JavaScript off shows the questions rather than
   hiding fields the server will then insist on. Deliberately NOT keyed on the
   [hidden] attribute: .trade-field and friends set an explicit display, which
   silently beats the browser's own [hidden] rule. */
.careers-js #uc-forklift { display: none; }
.careers-js #uc-forklift.is-open { display: block; }

/* Status banners after a submit round-trip. */
.trade-note {
    padding: var(--u-16) var(--u-24); margin: 0 0 var(--u-32);
    font-size: var(--u-t-body); line-height: 1.55; border-left: 3px solid var(--u-onyx);
    background: var(--u-porcelain); color: var(--u-graphite);
}
.trade-note--ok  { border-left-color: #2f6b4f; background: #EDF5F0; }
.trade-note--err { border-left-color: #b23a2b; background: #F9EDEB; }

/* Honeypots: off-screen rather than display:none, which bots skip. */
.trade-hp {
    position: absolute; left: -9999px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
}
