/* ============================================================================
   tfm-chrome.css — THE master header, footer and site-search stylesheet.
   The Flooring Mart Inc.  Generated to the site root by outputs/chrome/site_chrome.py
   from outputs/chrome/tfm-chrome.css. Edit the source, run the build.

   Every rule is namespaced `tfm-`. The 1,400 pages this loads on each carry
   their own inline stylesheet with the OLD header rules (.site-header, .navbar,
   .nav-link …); a fresh namespace means none of those can reach this markup and
   this file cannot reach page content. The one deliberate exception is at the
   end: legacy fixed-top bars are pushed below the header.

   Locked dimensions (owner brief 2026-09-10 §4): every template renders the
   same header height, logo size, nav spacing, type sizes, dropdown, search and
   CTA dimensions. They are CSS custom properties so the render gate can read
   them back from the live page.
   ========================================================================== */

:root{
  --tfm-ink:#1A1A18; --tfm-ink2:#3A3A36; --tfm-muted:#6A665F;
  --tfm-warm:#FAF8F5; --tfm-warm2:#EDE9E2; --tfm-white:#FFFFFF;
  --tfm-gold:#9B7940; --tfm-gold2:#7D5F2E; --tfm-gold-lt:#C4A96A;
  --tfm-gold-btn:#8A6A36;            /* white text on this is 5.0:1 — the brand gold is 4.0 */
  --tfm-red:#C41230;                  /* the logo's tagline red */
  --tfm-border:#E2DDD6; --tfm-field:#D8D2C8; --tfm-border-dk:rgba(255,255,255,.12);
  --tfm-nav-txt:#F2EFE8; --tfm-ftr-txt:#D2CEC6; --tfm-ftr-meta:#A9A59D; --tfm-util-txt:#E8E4DC;
  /* OWNER DIRECTIVE 2026-09-10: every font in the chrome is Times New Roman.
     Both variables resolve to it; Times has only regular and bold, so weights
     are 400 or 700 throughout and sizes run ~1px larger than the Inter build. */
  --tfm-serif:'Times New Roman',Times,'Liberation Serif',serif;
  --tfm-sans:'Times New Roman',Times,'Liberation Serif',serif;
  /* tiers: utility (scrolls away) · brand row + nav bar (stay stuck) */
  --tfm-util-h:36px; --tfm-bar-h:84px; --tfm-navbar-h:48px;
  --tfm-hdr-h:133px;                  /* what remains stuck = bar (84 + 1px rule) + nav bar */
  --tfm-logo:52px; --tfm-search-h:48px; --tfm-cta-h:48px;
  --tfm-nav-fs:14.5px; --tfm-util-fs:14.5px; --tfm-cta-fs:14px;
  /* ONE PAGE WIDTH (owner, 2026-10-08) — see the block at the end of this file */
  --tfm-wrap:1520px; --tfm-gutter:40px; --tfm-z:1000;
}
@media(max-width:1023px){
  :root{--tfm-util-h:34px;--tfm-bar-h:56px;--tfm-navbar-h:0px;--tfm-search-h:44px;
        --tfm-hdr-h:113px;--tfm-logo:40px;--tfm-gutter:16px}
}

/* The header must sit flush at the top. The landing-page family never reset
   the browser's default 8px body margin, so its pages rendered with a white
   frame and the header 8px down — measured on /stair-renovation/ at 1280 and
   375. A page reset is part of the chrome's contract. */
body{margin:0}

/* ── skip link ──────────────────────────────────────────────────────────── */
.tfm-skip{position:absolute;left:-999px;top:8px;z-index:calc(var(--tfm-z) + 5);background:var(--tfm-ink);
 color:#fff;padding:10px 16px;font:600 14px/1 var(--tfm-sans);border-radius:3px;text-decoration:none}
.tfm-skip:focus{left:8px;outline:2px solid var(--tfm-gold-lt);outline-offset:2px}
.tfm-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0;margin:-1px}

/* ── header shell ───────────────────────────────────────────────────────── */
/* Sticky with a NEGATIVE top: the utility bar scrolls out of view and the
   brand row + nav bar stay — 132px on desktop, 112px on mobile — so the
   search and the sections are always one glance away without the whole
   168px stack pinned to the viewport. */
.tfm-hdr{position:sticky;top:calc(-1 * var(--tfm-util-h));z-index:var(--tfm-z);font-family:var(--tfm-sans);
 color:var(--tfm-ink);-webkit-font-smoothing:antialiased;text-align:left;line-height:1.3;background:var(--tfm-white)}
.tfm-hdr *,.tfm-hdr *::before,.tfm-hdr *::after,.tfm-ftr *,.tfm-ftr *::before,.tfm-ftr *::after,
.tfm-drawer *,.tfm-drawer *::before,.tfm-drawer *::after{box-sizing:border-box}
/* :where() keeps this reset at zero specificity. As `.tfm-hdr a` it out-ranked
   every single-class colour rule (.tfm-link, .tfm-cta, .tfm-ftr-dir) and the
   nav bar rendered ink-on-ink — found in Safari 2026-09-10, invisible to
   every gate. */
:where(.tfm-hdr a,.tfm-ftr a,.tfm-drawer a){text-decoration:none;color:inherit}
:where(.tfm-hdr ul,.tfm-ftr ul,.tfm-drawer ul){list-style:none;margin:0;padding:0}
:where(.tfm-hdr button,.tfm-drawer button){font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0;margin:0}
.tfm-wrap{max-width:var(--tfm-wrap);margin:0 auto;padding:0 var(--tfm-gutter);display:flex;align-items:center;min-width:0}

/* ── 1. utility bar ─────────────────────────────────────────────────────── */
.tfm-util{background:var(--tfm-ink);color:var(--tfm-util-txt);height:var(--tfm-util-h);font-size:var(--tfm-util-fs);
 font-weight:400;letter-spacing:.01em}
.tfm-util .tfm-wrap{height:100%;justify-content:space-between;gap:16px}
.tfm-util a{display:inline-flex;align-items:center;gap:8px;height:100%;color:var(--tfm-util-txt);white-space:nowrap;
 transition:color .18s}
.tfm-util-call{flex:none}
.tfm-util-visit{min-width:0;overflow:hidden}
.tfm-util-visit span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.tfm-util a:hover,.tfm-util a:focus-visible{color:#fff;outline:none}
.tfm-util a:focus-visible{box-shadow:inset 0 -2px 0 var(--tfm-gold-lt)}
.tfm-util svg{width:14px;height:14px;flex:none;color:var(--tfm-gold-lt)}
.tfm-util-addr{color:rgba(232,228,220,.68);font-weight:400}
.tfm-util-addr::before{content:"·";margin:0 8px 0 2px;color:rgba(232,228,220,.45)}

/* ── 2. brand row: logo · master search · CTA ───────────────────────────── */
.tfm-bar{background:var(--tfm-white);border-bottom:1px solid var(--tfm-border)}
.tfm-bar .tfm-wrap{height:var(--tfm-bar-h);gap:40px}

.tfm-logo{display:flex;align-items:center;gap:13px;flex:none;color:var(--tfm-ink);min-width:0}
.tfm-logo img{width:var(--tfm-logo);height:var(--tfm-logo);border-radius:50%;flex:none;display:block}
.tfm-logo-txt{display:flex;flex-direction:column;line-height:1}
.tfm-logo-name{font-family:var(--tfm-serif);font-size:26px;font-weight:700;letter-spacing:.2px;white-space:nowrap}
.tfm-logo-tag{font-size:10px;font-weight:700;letter-spacing:3px;text-transform:uppercase;color:var(--tfm-red);
 margin-top:5px;white-space:nowrap}
.tfm-logo:focus-visible{outline:2px solid var(--tfm-gold);outline-offset:4px;border-radius:2px}

/* the master search — wide, centred between the logo and the CTA */
.tfm-search{position:relative;flex:1 1 auto;max-width:640px;min-width:0;height:var(--tfm-search-h);
 margin:0 auto;display:flex;align-items:center}
.tfm-search-ico{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;
 color:var(--tfm-muted);pointer-events:none;display:flex}
.tfm-search-ico svg{width:18px;height:18px}
.tfm-search input{width:100%;height:100%;padding:0 128px 0 46px;font:400 16px/1 var(--tfm-sans);color:var(--tfm-ink);
 background:var(--tfm-white);border:1px solid var(--tfm-field);border-radius:6px;-webkit-appearance:none;appearance:none;
 outline:none;transition:border-color .18s,box-shadow .18s}
.tfm-search input::placeholder{color:#8A8880}
.tfm-search input:focus{border-color:var(--tfm-gold);box-shadow:0 0 0 3px rgba(155,121,64,.16)}
.tfm-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.tfm-search-go{position:absolute;right:0;top:0;height:100%;padding:0 22px;display:inline-flex;align-items:center;gap:9px;
 background:var(--tfm-ink);color:#fff;font:700 13px/1 var(--tfm-sans);letter-spacing:.08em;text-transform:uppercase;
 border-radius:0 6px 6px 0;transition:background .15s}
.tfm-search-go svg{width:16px;height:16px}
.tfm-search-go:hover,.tfm-search-go:focus-visible{background:var(--tfm-gold-btn);color:#fff;outline:none}
.tfm-search-go:focus-visible{box-shadow:0 0 0 3px rgba(155,121,64,.35)}

/* autocomplete — restrained, grouped, keyboardable */
.tfm-ac{position:absolute;top:calc(100% + 8px);left:0;right:0;background:var(--tfm-white);
 border:1px solid var(--tfm-border);border-radius:6px;box-shadow:0 22px 56px rgba(26,26,24,.16);padding:6px 0;
 z-index:3;max-height:min(70vh,560px);overflow:auto;text-align:left}
.tfm-ac[hidden]{display:none}
.tfm-ac-grp{font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--tfm-gold2);
 padding:10px 14px 4px}
.tfm-ac-item{display:flex;align-items:center;gap:12px;padding:8px 14px;cursor:pointer;color:var(--tfm-ink)}
.tfm-ac-item[aria-selected="true"],.tfm-ac-item:hover{background:var(--tfm-warm)}
.tfm-ac-img{width:44px;height:44px;flex:none;border-radius:3px;object-fit:cover;background:var(--tfm-warm2);border:1px solid var(--tfm-border)}
.tfm-ac-txt{min-width:0;flex:1}
.tfm-ac-t{display:block;font-size:16px;font-weight:400;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tfm-ac-t mark{background:none;color:var(--tfm-gold2);font-weight:700}
.tfm-ac-s{display:block;font-size:13.5px;color:var(--tfm-muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tfm-ac-k{flex:none;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tfm-muted);
 border:1px solid var(--tfm-border);border-radius:999px;padding:3px 8px}
.tfm-ac-all{display:block;margin:6px 8px 2px;padding:10px 12px;font-size:14.5px;font-weight:700;color:var(--tfm-gold2);
 border-top:1px solid var(--tfm-border);text-align:center;cursor:pointer}
.tfm-ac-all[aria-selected="true"],.tfm-ac-all:hover{background:var(--tfm-warm)}
.tfm-ac-empty{padding:14px;font-size:14.5px;color:var(--tfm-muted)}


/* CTA — the one wording, the one style */
.tfm-cta{display:inline-flex;align-items:center;justify-content:center;height:var(--tfm-cta-h);padding:0 26px;flex:none;
 background:var(--tfm-gold-btn);color:#fff;font-size:var(--tfm-cta-fs);font-weight:700;letter-spacing:.1em;
 text-transform:uppercase;border-radius:4px;white-space:nowrap;transition:background .18s;font-family:var(--tfm-sans)}
.tfm-cta:hover{background:var(--tfm-gold2);color:#fff}
.tfm-cta:focus-visible{outline:2px solid var(--tfm-ink);outline-offset:3px}

/* mobile-only controls (burger, call) */
.tfm-icon-btn{width:44px;height:44px;display:none;align-items:center;justify-content:center;border-radius:50%;
 color:var(--tfm-ink);flex:none;transition:background .15s}
.tfm-icon-btn svg{width:22px;height:22px}
.tfm-icon-btn:hover,.tfm-icon-btn:focus-visible{background:var(--tfm-warm2);outline:none}
.tfm-icon-btn:focus-visible{box-shadow:0 0 0 2px var(--tfm-gold)}
.tfm-icon-btn[aria-expanded="true"]{background:var(--tfm-ink);color:#fff}
.tfm-icon-btn .tfm-ico-close{display:none}
.tfm-icon-btn[aria-expanded="true"] .tfm-ico-open{display:none}
.tfm-icon-btn[aria-expanded="true"] .tfm-ico-close{display:block}
.tfm-mob-call{color:var(--tfm-gold2)}
/* (owner, 2026-11-03) the header's WhatsApp link — docked with the header, every page, every width (below 1024px it
   replaces the floating control, which never covers the page); #0D7C43 on white is 5.3:1 */
.tfm-bar .tfm-hdr-wa{display:inline-flex;color:#0D7C43;margin-left:-24px}

/* ── 3. nav bar: the six sections on a dark band ───────────────────────── */
.tfm-navbar{background:var(--tfm-ink);height:var(--tfm-navbar-h)}
.tfm-navbar .tfm-wrap{height:100%;justify-content:center}
.tfm-nav{display:flex;justify-content:center;min-width:0}
.tfm-menu{display:flex;align-items:center;gap:6px}
.tfm-item{position:relative;display:flex;align-items:center;height:var(--tfm-navbar-h)}
.tfm-link{display:inline-flex;align-items:center;height:100%;padding:0 18px;font-size:var(--tfm-nav-fs);font-weight:700;
 letter-spacing:.08em;text-transform:uppercase;color:var(--tfm-nav-txt);white-space:nowrap;position:relative;
 transition:color .18s}
.tfm-link::after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:2px;background:var(--tfm-gold-lt);
 transform:scaleX(0);transform-origin:left;transition:transform .2s}
.tfm-item:hover>.tfm-link,.tfm-link:focus-visible,.tfm-item.is-open>.tfm-link,.tfm-link[aria-current="page"]{color:var(--tfm-gold-lt)}
.tfm-item:hover>.tfm-link::after,.tfm-item.is-open>.tfm-link::after,.tfm-link[aria-current="page"]::after{transform:scaleX(1)}
.tfm-link:focus-visible{outline:2px solid var(--tfm-gold-lt);outline-offset:-2px}
.tfm-has-sub>.tfm-link{padding-right:8px}
.tfm-has-sub>.tfm-link::after{right:8px}
.tfm-sub-btn{width:24px;height:100%;margin:0 6px 0 -2px;display:inline-flex;align-items:center;justify-content:center;
 color:rgba(242,239,232,.62)}
.tfm-sub-btn svg{width:11px;height:11px;transition:transform .2s}
.tfm-item.is-open>.tfm-sub-btn,.tfm-item:hover>.tfm-sub-btn{color:var(--tfm-gold-lt)}
.tfm-item.is-open>.tfm-sub-btn svg,.tfm-item:hover>.tfm-sub-btn svg{transform:rotate(180deg)}
.tfm-sub-btn:focus-visible{outline:2px solid var(--tfm-gold-lt);outline-offset:-2px}

/* dropdown: one restrained white panel beneath the band; two columns only when the model has groups */
.tfm-sub{position:absolute;top:100%;left:0;min-width:256px;background:var(--tfm-white);
 border:1px solid var(--tfm-border);border-top:3px solid var(--tfm-gold);border-radius:0 0 6px 6px;
 box-shadow:0 22px 48px rgba(26,26,24,.16);padding:12px 8px;display:none;z-index:2;text-transform:none;letter-spacing:0}
.tfm-sub.tfm-sub-grouped{display:none;grid-template-columns:repeat(2,minmax(216px,1fr));gap:4px 18px;min-width:540px}
/* three groups (Services) get three columns rather than a 2×2 with an orphan.
   Centred under its item instead of left-aligned to it, because a 760px panel
   hung off the left edge of a menu item sitting right of centre runs off the
   viewport at 1024. */
.tfm-sub.tfm-sub-3{grid-template-columns:repeat(3,minmax(208px,1fr));min-width:740px;
 left:50%;transform:translateX(-50%)}
.tfm-item.is-open>.tfm-sub{display:block}
.tfm-item.is-open>.tfm-sub.tfm-sub-grouped{display:grid}
.tfm-sub.tfm-flip{left:auto;right:0}
@media(hover:hover) and (min-width:1024px){
  .tfm-item:hover>.tfm-sub{display:block}
  .tfm-item:hover>.tfm-sub.tfm-sub-grouped{display:grid}
}
.tfm-sub-lbl{font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--tfm-gold2);
 margin:6px 12px 6px;padding-bottom:6px;border-bottom:1px solid var(--tfm-border)}
.tfm-sub a{display:block;padding:10px 12px;font-size:16px;font-weight:400;color:var(--tfm-ink2);border-radius:3px;
 line-height:1.25;transition:background .15s,color .15s}
.tfm-sub a:hover,.tfm-sub a:focus-visible{background:var(--tfm-warm);color:var(--tfm-ink);outline:none}
.tfm-sub a:focus-visible{box-shadow:inset 0 0 0 2px var(--tfm-gold)}
.tfm-sub a[aria-current="page"]{color:var(--tfm-gold2);font-weight:600}

/* drawer */
.tfm-scrim{position:fixed;inset:0;background:rgba(26,26,24,.46);z-index:calc(var(--tfm-z) + 1);display:none}
.tfm-drawer{position:fixed;top:0;right:0;bottom:0;width:min(88vw,380px);background:var(--tfm-white);z-index:calc(var(--tfm-z) + 2);
 display:none;flex-direction:column;overflow:auto;-webkit-overflow-scrolling:touch;font-family:var(--tfm-sans);
 box-shadow:-18px 0 48px rgba(26,26,24,.2);transform:translateX(100%);transition:transform .28s cubic-bezier(.22,.61,.36,1)}
.tfm-drawer.is-in{transform:none}
.tfm-drawer-head{display:flex;align-items:center;justify-content:space-between;height:var(--tfm-bar-h);
 padding:0 8px 0 var(--tfm-gutter);border-bottom:1px solid var(--tfm-border);flex:none}
.tfm-drawer-title{font-family:var(--tfm-serif);font-size:22px;font-weight:700;color:var(--tfm-ink)}
.tfm-drawer .tfm-icon-btn{display:inline-flex}
.tfm-drawer-menu>li{border-bottom:1px solid var(--tfm-border)}
.tfm-drawer-row{display:flex;align-items:stretch}
.tfm-drawer-row>a{flex:1;display:flex;align-items:center;min-height:52px;padding:0 var(--tfm-gutter);font-size:18px;
 font-weight:400;color:var(--tfm-ink)}
.tfm-drawer-row>a:active{background:var(--tfm-warm)}
.tfm-acc-btn{width:56px;display:inline-flex;align-items:center;justify-content:center;color:var(--tfm-muted);
 border-left:1px solid var(--tfm-border)}
.tfm-acc-btn svg{width:14px;height:14px;transition:transform .2s}
.tfm-acc-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.tfm-acc-btn:focus-visible,.tfm-drawer-row>a:focus-visible{outline:2px solid var(--tfm-gold);outline-offset:-2px}
.tfm-acc{display:none;background:var(--tfm-warm);padding:4px 0 8px}
.tfm-acc.is-open{display:block}
.tfm-acc .tfm-sub-lbl{margin:10px var(--tfm-gutter) 4px;border:0;padding:0}
.tfm-acc a{display:flex;align-items:center;min-height:46px;padding:0 var(--tfm-gutter) 0 calc(var(--tfm-gutter) + 14px);
 font-size:16.5px;color:var(--tfm-ink2)}
.tfm-acc a:active{color:var(--tfm-ink)}
.tfm-drawer-extra a{display:flex;align-items:center;min-height:48px;padding:0 var(--tfm-gutter);font-size:16.5px;color:var(--tfm-ink2)}
.tfm-drawer-extra{border-bottom:1px solid var(--tfm-border)}
.tfm-drawer-cta{padding:18px var(--tfm-gutter);display:grid;gap:10px;margin-top:auto}
.tfm-drawer-cta .tfm-cta{height:50px;width:100%}
.tfm-drawer-call{display:flex;align-items:center;justify-content:center;gap:10px;height:50px;border:1.5px solid var(--tfm-ink);
 border-radius:3px;font-size:15px;font-weight:700;letter-spacing:.06em;color:var(--tfm-ink)}
.tfm-drawer-call svg{width:16px;height:16px}
.tfm-drawer-visit{text-align:center;font-size:14.5px;color:var(--tfm-muted);line-height:1.5}
.tfm-drawer-visit b{display:block;color:var(--tfm-ink2);font-weight:600}
body.tfm-lock{overflow:hidden}


/* ── responsive: mobile is designed, not shrunk ────────────────────────── */
@media(max-width:1199px){
  .tfm-search-go{padding:0 16px}
  .tfm-search-go-txt{display:none}
  .tfm-search input{padding-right:58px}
  .tfm-bar .tfm-wrap{gap:28px}
  /* EIGHT items have to fit between 1024 and 1199 (owner, 2026-09-11: Areas We
     Serve and About Us are back on the bar). The type does NOT get smaller —
     14.5px everywhere — so the room comes out of the space around the words:
     tighter link padding, a hairline gap, and a narrower chevron button.
     Measured at 1024: 1,003px of menu in a 960px bar before, 905px after. */
  :root{--tfm-gutter:24px}      /* the menu is content; the gutter is not */
  .tfm-menu{gap:2px}
  .tfm-link{padding:0 9px}
  .tfm-link::after{left:9px;right:9px}
  .tfm-sub-btn{width:20px;margin:0 2px 0 -2px}
}
@media(max-width:1023px){
  .tfm-util-addr{display:none}
  .tfm-navbar,.tfm-bar .tfm-cta{display:none}
  .tfm-icon-btn{display:inline-flex}
  /* burger · logo · call on the first line, the SAME search form full-width on the second */
  .tfm-bar .tfm-wrap{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-rows:var(--tfm-bar-h) 56px;
   align-items:center;height:auto;gap:0 8px}
  .tfm-burger{grid-column:1;grid-row:1;margin-left:-6px}
  /* stretch to the cell (justify-self:start sized it to its content and the
     wordmark ran 25px under the call icon at 320px — caught by the harness's
     overlap check); the name ellipsises inside */
  .tfm-logo{grid-column:2;grid-row:1;gap:9px;max-width:100%}
  .tfm-mob-call{grid-column:3;grid-row:1;margin-right:-6px}
  .tfm-search{grid-column:1/3;grid-row:2;max-width:none;margin:0;align-self:start}
  .tfm-bar .tfm-hdr-wa{grid-column:3;grid-row:2;margin:0 -6px 0 0;align-self:start}
  .tfm-search input{height:44px;font-size:16px;padding-left:42px}  /* 16px: iOS does not zoom */
  .tfm-search-ico{left:14px}
  .tfm-ac{min-width:0;left:0;right:0;max-height:min(60vh,480px)}
  .tfm-logo-txt{min-width:0}
  .tfm-logo-name{font-size:20px;overflow:hidden;text-overflow:ellipsis}
  .tfm-logo-tag{font-size:9px;letter-spacing:2.2px;margin-top:3px}
  .tfm-drawer.is-on,.tfm-scrim.is-on{display:flex}
}
@media(max-width:379px){ .tfm-logo-tag{display:none} .tfm-logo-name{font-size:18.5px} }
@media(max-width:479px){ .tfm-ac-k{display:none} }   /* the group heading already names the kind */
@media(prefers-reduced-motion:reduce){
  .tfm-drawer,.tfm-link::after,.tfm-sub-btn svg,.tfm-acc-btn svg{transition:none}
  /* Phase 8.1 (2026-10-09, WCAG 2.2.2 / 2.3.3): the product hero's "scroll" line pulsed forever on 1,365 pages and the
     product pages scroll smoothly to an anchor — neither when the visitor asks for reduced motion. !important because
     both rules live in each page's own <style>, which loads after this file. */
  .hero-scroll{animation:none!important}
  html{scroll-behavior:auto!important}
}

/* ── footer ─────────────────────────────────────────────────────────────── */
.tfm-ftr{background:var(--tfm-ink);color:var(--tfm-ftr-txt);font-family:var(--tfm-sans);line-height:1.55;
 -webkit-font-smoothing:antialiased;text-align:left;margin-top:0;border-top:3px solid var(--tfm-gold)}
/* ONE FOOTER, THE SAME SIZE ON EVERY PAGE (2026-10-16). It set no base type size of its own, so it took each page's —
   15px on most pages, 17px on the product pages (whose root is 17px) — and the pages that still carry their old
   `footer li{margin-bottom:9px}` added a gap to its lists: measured in Chrome and WebKit, its column was 11–30px taller
   or shorter from one page to the next. Its own base (the measured majority, 15px) and its own list spacing now. */
.tfm-ftr{font-size:15px}
.tfm-ftr li{margin:0;padding:0}
.tfm-ftr-grid{display:grid;grid-template-columns:1.55fr 1fr 1.2fr 1fr 1.35fr;gap:40px 44px;padding-top:64px;padding-bottom:56px;
 align-items:start}
.tfm-ftr-brand{padding-right:24px}
.tfm-ftr-logo{color:#fff;margin-bottom:22px}
.tfm-ftr-logo img{width:48px;height:48px}
.tfm-ftr-logo .tfm-logo-name{font-size:25px;color:#fff}
.tfm-ftr-logo .tfm-logo-tag{color:var(--tfm-gold-lt)}
.tfm-ftr-about{margin:0 0 12px;font-size:16px;color:var(--tfm-ftr-txt);line-height:1.6;max-width:34ch}
.tfm-ftr-serve{margin:0;font-size:15px;color:var(--tfm-ftr-meta);line-height:1.6;max-width:34ch}
.tfm-ftr-h{font-family:var(--tfm-serif);font-size:21px;font-weight:700;letter-spacing:.01em;color:#fff;margin:6px 0 16px;
 padding-bottom:10px;border-bottom:1px solid var(--tfm-border-dk);position:relative;line-height:1.2}
.tfm-ftr-h::after{content:"";position:absolute;left:0;bottom:-1px;width:36px;height:1px;background:var(--tfm-gold-lt)}
.tfm-ftr-col li+li{margin-top:9px}
.tfm-ftr-col a{font-size:16px;color:var(--tfm-ftr-txt);transition:color .15s}
.tfm-ftr-col a:hover,.tfm-ftr-col a:focus-visible{color:#fff;outline:none;text-decoration:underline;text-underline-offset:3px}
.tfm-ftr-visit address{font-style:normal;font-size:16px;color:#fff;line-height:1.55;margin:0 0 12px}
.tfm-ftr-visit .tfm-ftr-line{font-size:17px;margin:0 0 6px}
.tfm-ftr-visit .tfm-ftr-line a{display:inline-flex;align-items:center;gap:9px;color:#fff;font-weight:700}
.tfm-ftr-visit .tfm-ftr-line svg{width:15px;height:15px;color:var(--tfm-gold-lt)}
.tfm-ftr-visit .tfm-ftr-mail a{font-weight:400;font-size:16px;color:var(--tfm-ftr-txt)}
.tfm-ftr-hours{margin:14px 0 0;font-size:15.5px;color:var(--tfm-ftr-meta);line-height:1.6}
.tfm-ftr-hours b{display:block;font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--tfm-gold-lt);margin-bottom:4px}
.tfm-ftr-dir{display:inline-flex;align-items:center;gap:8px;margin:14px 0 0;font-size:15px;font-weight:700;color:var(--tfm-gold-lt)}
.tfm-ftr-dir svg{width:14px;height:14px}
.tfm-ftr-dir:hover{color:#fff}
.tfm-ftr-visit .tfm-cta{margin-top:20px;height:46px;width:100%;max-width:280px;display:flex}
.tfm-ftr-legal{border-top:1px solid var(--tfm-border-dk);background:#141412}
.tfm-ftr-legal .tfm-wrap{justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:18px;padding-bottom:18px}
.tfm-ftr-legal p{margin:0;font-size:14.5px;color:var(--tfm-ftr-meta)}
.tfm-ftr-legal ul{display:flex;gap:22px}
.tfm-ftr-legal a{font-size:14.5px;color:var(--tfm-ftr-meta)}
.tfm-ftr-legal a:hover,.tfm-ftr-legal a:focus-visible{color:#fff;outline:none;text-decoration:underline;text-underline-offset:3px}
@media(max-width:1199px){
  .tfm-ftr-grid{grid-template-columns:1fr 1fr 1fr;gap:36px 32px;padding-top:56px}
  .tfm-ftr-brand{grid-column:1/-1;padding-right:0}
  .tfm-ftr-about,.tfm-ftr-serve{max-width:60ch}
}
@media(max-width:1023px){
  .tfm-ftr-grid{grid-template-columns:1fr 1fr;gap:34px 28px;padding-top:48px;padding-bottom:40px}
  .tfm-ftr-brand,.tfm-ftr-visit{grid-column:1/-1}
}
@media(max-width:639px){
  .tfm-ftr-grid{grid-template-columns:1fr;gap:30px;padding-top:40px}
  .tfm-ftr-legal .tfm-wrap{flex-direction:column;align-items:flex-start}
}

/* ── legacy fixed-top bars sit under the master header ─────────────────
   1,362 product pages carry a `.quote-bar` (fixed, top:0, z-index 800) that
   slides in past the hero. Under the old fixed header it was hidden (#613).
   This file loads AFTER every inline stylesheet, so an equal-specificity rule
   here wins: the bar now docks to the bottom edge of the stuck header. */
.quote-bar{top:var(--tfm-hdr-h)}
/* WCAG 2.2 — 2.4.11 focus not obscured (2026-10-04, Phase 7): while the bar is tucked under the header (not .show) its
   "Get a Quote" link was still reachable by Tab — keyboard focus went out of sight. Hidden then (not focusable, not read
   out); it slides in and out exactly as before: visibility switches at the start of the slide-in and at the END of the
   slide-out (every page's own rule is `transition:transform .35s cubic-bezier(.4,0,.2,1)`, measured on 1,357 pages). */
.quote-bar{visibility:hidden;transition:transform .35s cubic-bezier(.4,0,.2,1),visibility 0s linear .35s}
.quote-bar.show{visibility:visible;transition:transform .35s cubic-bezier(.4,0,.2,1),visibility 0s}

/* Category and guide heroes on phones (2026-09-29 — pre-launch audit P0, 2026-09-28).
   Every listing hero is a FIXED-height box (310–380 px) whose text is pinned to its bottom edge
   (justify-content / align-items: flex-end). On a phone the heading, intro and stat row are
   taller than the box, so the text grew UPWARD: measured at 390 px, the Engineered Hardwood H1
   sat at y=22–107 under a sticky header that ends at y=147, and overflow:hidden clipped it.
   Below 761 px the box grows with its content instead; the background layers are absolutely
   positioned, so they still fill it. Desktop is unchanged. */
@media (max-width:760px){
  .cat-hero{height:auto !important;min-height:310px}
  .cat-hero-inner{height:auto !important;min-height:310px;padding-top:56px !important}
  .cat-hero-content{position:relative !important;inset:auto !important;min-height:310px;padding-top:56px}
}

/* Buying-guide body grid (2026-09-29): .g-cols collapses to one column on phones, but a grid
   item's default min-width:auto let one wide child hold the column at 520 px — the three
   buying guides scrolled sideways at 320–390 px. min-width:0 lets the column shrink; wide
   tables scroll inside their own box instead of widening the page. */
.g-cols>*{min-width:0}
.g-main table{max-width:100%}
@media (max-width:760px){.g-main table{display:block;overflow-x:auto}}

/* Estimate privacy notice (tfm-estimate.js, 2026-09-29) — the same quiet style as the line above it */
.tfm-privacy-note{margin-top:6px}
.tfm-privacy-note a{color:inherit;text-decoration:underline}

/* Company Google rating on product pages (Phase 3B, 2026-09-30) — the star line names the business and links to
   its Google profile, so it cannot be read as a rating of the product. Quiet like the line it replaced. */
.rating-row .r-google{font-size:.76rem;color:#5f5a53;text-decoration:none}
.rating-row .r-google .r-val{color:var(--ink,#111010)}
.rating-row .r-google:hover,.rating-row .r-google:focus-visible{text-decoration:underline}
/* Phase 6 (2026-10-02): self-hosted photo sets. <picture class="tfm-pic"> wraps a main gallery or hero photo for its
   AVIF/WebP sources; it generates no box, so every rule written for the <img> applies unchanged. A LIMITED RESOLUTION
   photo (the only one a product has) is never enlarged past its own pixels. */
.tfm-pic{display:contents}
img.tfm-lowres{object-fit:scale-down!important;background:#ECEAE6}
/* the neutral "photo temporarily unavailable" graphic is shown WHOLE wherever it stands in for a photo (never cropped) */
img[src$="images/ui/photo-unavailable.svg"],img.tfm-img-unavailable{object-fit:contain!important;background:#ECEAE6}

/* ── Flooring category tabs (owner 2026-10-06: "increase the font size … Times New Roman … professional") ─────────
   The tab row under the hero of every flooring listing and guide (Engineered · Solid · Vinyl · Laminate · Tile ·
   Guides) — one style for all twelve pages, linked after their own styles so it wins. Colours pass WCAG AA: tab text
   #4E4A44 (8.8:1), Guides #7D5F2E (5.9:1), the gold rule #9B7940 is a 3:1 non-text mark. */
.tfm-cattabs{background:#fff;border-bottom:1px solid #E2DDD6}
.tfm-cattabs .tfm-cattab{font-family:var(--tfm-serif);font-size:18px;font-weight:400;line-height:1.25;letter-spacing:.01em;
  color:#4E4A44;padding:18px 26px 15px;border-bottom:3px solid transparent;text-decoration:none;
  transition:color .2s ease,border-color .2s ease}
.tfm-cattabs .tfm-cattab:hover{color:#1A1A18;border-bottom-color:#E2DDD6}
.tfm-cattabs .tfm-cattab.active,.tfm-cattabs .tfm-cattab[aria-current="page"]{color:#1A1A18;font-weight:700;border-bottom-color:#9B7940}
.tfm-cattabs .tfm-cattab-guides{color:#7D5F2E;font-weight:700}
.tfm-cattabs .tfm-cattab-guides:hover{color:#5E4722}
.tfm-cattabs .tfm-cattab-guides::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;
  background:#9B7940;margin-right:9px;vertical-align:middle;opacity:1}
.tfm-cattabs .tfm-cattab:focus-visible{outline:2px solid #1A1A18;outline-offset:-6px}
@media (max-width:1199px){.tfm-cattabs .tfm-cattab{font-size:17px;padding:16px 20px 13px}}
@media (max-width:767px){.tfm-cattabs .tfm-cattab{font-size:16px;padding:14px 16px 12px}}
@media (prefers-reduced-motion:reduce){.tfm-cattabs .tfm-cattab{transition:none}}
/* a row wider than the screen scrolls sideways: a soft fade marks the side with more tabs (tfm-chrome.js §9) */
.tfm-cattabs.tfm-ct-r{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 44px),transparent)}
.tfm-cattabs.tfm-ct-l{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 44px),transparent)}
.tfm-cattabs.tfm-ct-l.tfm-ct-r{-webkit-mask-image:linear-gradient(to right,transparent,#000 44px,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(to right,transparent,#000 44px,#000 calc(100% - 44px),transparent)}

/* ── WhatsApp badge (owner 2026-10-06: "bottom right corner … visible all the time"; movable — owner brief 2026-10-24,
   D230) ────────────────────────────────────────────────────────────────────────────────────────────────────────────
   The DOCK is the fixed box; the link inside it is the badge: a pill "Chat with The Flooring Mart" from 1024px up (below
   that the header's WhatsApp link replaces it — owner, 2026-11-03). Above page content and the product pages' quote
   bar (z 800); below the header, the drawer, every dialog and the photo viewer (9999). By default bottom right, inside
   the safe area; on the homepage it rides above the fixed call/quote bar. tfm-chrome.js §7 moves it (a drag of the
   control itself, or Shift + arrow keys — no separate handle, D235), snaps it to the nearer side and keeps it clear of
   fixed bars and form controls: it then sets .is-left / .is-placed and the top. #0D7C43 with white is 5.3:1. */
.tfm-wa-dock{position:fixed;right:calc(20px + env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));
  z-index:calc(var(--tfm-z) - 10);display:block;
  transition:top .25s ease,left .25s ease,right .25s ease,transform .25s ease,opacity .18s ease,visibility .18s}
/* (owner, 2026-11-03) never over text, a link, a control, a picture or the focused element: §7 tucks it away where it
   would be, until a free place comes; below 1024px it is not shown — the header's WhatsApp link is there instead */
.tfm-wa-dock.is-tucked{opacity:0;visibility:hidden;pointer-events:none}
@media (max-width:1023px){.tfm-wa-dock{display:none}}
.tfm-wa-dock[hidden]{display:none}                 /* §7 sets hidden while the page prints */
.tfm-wa-dock.is-left{right:auto;left:calc(20px + env(safe-area-inset-left,0px))}
.tfm-wa-dock.is-placed{bottom:auto}
.tfm-wa-dock.is-dragging{transition:none}
.tfm-wa{position:relative;display:inline-flex;align-items:center;gap:10px;
  height:56px;padding:0 20px 0 14px;border-radius:28px;background:#0D7C43;color:#fff;font-family:var(--tfm-sans);
  font-size:16px;font-weight:700;letter-spacing:.01em;line-height:1;text-decoration:none;white-space:nowrap;
  touch-action:pinch-zoom;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
  box-shadow:0 10px 28px rgba(26,26,24,.22),0 2px 6px rgba(26,26,24,.18);transition:background .2s ease,transform .2s ease,box-shadow .2s ease}
.tfm-wa svg{width:30px;height:30px;flex:none}
.tfm-wa:hover{background:#0A6A39;color:#fff;transform:translateY(-2px);box-shadow:0 14px 32px rgba(26,26,24,.26),0 3px 8px rgba(26,26,24,.2)}
.tfm-wa:focus-visible{outline:3px solid #1A1A18;outline-offset:3px}
.tfm-wa-dock.is-dragging .tfm-wa{cursor:grabbing;transform:scale(1.04);box-shadow:0 18px 38px rgba(26,26,24,.3)}
/* the homepage's fixed call/quote bar is 53px tall from 768px up and 72px below it: the badge keeps 16px above it
   (tfm-chrome.js §7 measures the bar and sets --tfm-wa-lift; these are the fallbacks) */
body:has(.float-bar) .tfm-wa-dock:not(.is-placed){bottom:var(--tfm-wa-lift,69px)}
@media (max-width:767px){body:has(.float-bar) .tfm-wa-dock:not(.is-placed){bottom:var(--tfm-wa-lift,88px)}}
/* (launch brief 2026-10-30) the same for the town pages' mobile bar and the two bathroom pages' sticky bars, measured by
   §7 (no fallback: where the bar is hidden, nothing is lifted); and the badge steps aside while a field has the focus */
body:has(.lp-mobar) .tfm-wa-dock:not(.is-placed),body:has(.br-sticky) .tfm-wa-dock:not(.is-placed),
body:has(.bs-sticky) .tfm-wa-dock:not(.is-placed){bottom:var(--tfm-wa-lift,calc(20px + env(safe-area-inset-bottom,0px)))}
.tfm-wa-dock.is-typing{visibility:hidden}
@media (prefers-reduced-motion:reduce){.tfm-wa-dock,.tfm-wa{transition:none}.tfm-wa:hover,.tfm-wa-dock.is-dragging .tfm-wa{transform:none}}

/* ── "Help me choose" dialog (owner 2026-10-06; tfm-chrome.js §8) ───────────────────────────────────────────────── */
.tfm-nudge-scrim{position:fixed;inset:0;background:rgba(26,26,24,.5);z-index:calc(var(--tfm-z) + 3)}
.tfm-nudge{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:calc(var(--tfm-z) + 4);
  width:min(calc(100vw - 32px),480px);max-height:calc(100vh - 32px);overflow:auto;box-sizing:border-box;background:#fff;
  border-top:3px solid #9B7940;box-shadow:0 24px 64px rgba(26,26,24,.3);padding:34px 32px 24px;text-align:center;
  font-family:var(--tfm-serif);color:#1A1A18}
.tfm-nudge-k{margin:0 0 8px;font-size:14px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#7D5F2E}
.tfm-nudge-t{margin:0 0 12px;font-family:var(--tfm-serif);font-size:30px;font-weight:700;line-height:1.15;color:#1A1A18}
.tfm-nudge-d{margin:0 0 22px;font-size:18px;line-height:1.55;color:#3A3A36}
.tfm-nudge .tfm-nudge-go{width:100%;box-sizing:border-box;height:52px;font-size:15px}
.tfm-nudge-later{display:block;margin:10px auto 0;min-height:44px;padding:10px 16px;border:0;background:none;
  font-family:var(--tfm-serif);font-size:17px;color:#4E4A44;text-decoration:underline;cursor:pointer}
.tfm-nudge-later:hover{color:#1A1A18}
.tfm-nudge-x{position:absolute;top:6px;right:6px;width:44px;height:44px;border:0;background:none;font-size:30px;line-height:1;
  color:#4E4A44;cursor:pointer}
.tfm-nudge-x:hover{color:#1A1A18}
.tfm-nudge-later:focus-visible,.tfm-nudge-x:focus-visible{outline:2px solid #1A1A18;outline-offset:2px}
@media (max-width:480px){.tfm-nudge{padding:30px 20px 18px}.tfm-nudge-t{font-size:26px}.tfm-nudge-d{font-size:17px}}

/* ═══ ONE PAGE WIDTH — header, footer and every page column (owner, 2026-10-08) ════════════════════════════════
   "make sure our header and footers are aligned properly", with two red lines drawn at the edges of the engineered
   hardwood listing. The header and the footer had ONE width (1320px with 32px gutters: 1256px of content) and the
   pages under them had EIGHT (1024 to 1440px): at 1920 wide the listings ran 92px past the logo on each side, the
   product pages' title sat 68px from the window edge, and the city, contact and project pages sat 26px inside it.
   Now there is one width, 1520px with 40px gutters (24px under 1200px): the listings' own column, so the header
   and footer moved out to the owner's lines and every other page column moved to the same edges.

   This is the second deliberate reach into page content from this file (the first is the legacy fixed bars,
   above). Only the OUTER column of each page layout is set — max-width and the side gutters, from the same two
   tokens the header and footer use. Everything inside a column (grids, type, images, vertical spacing) is the
   page's own. Columns that are deliberately narrower — an article's reading measure, the privacy notice, the
   search results, a product page's advice text — stay narrow and centred.
   Selectors are as specific as the page rules they replace (this file loads after every page's own <style>);
   the product pages already size every column from --max and --px, so they follow through those. */
:root{--max:var(--tfm-wrap);--px:var(--tfm-gutter)}
@media(max-width:1199px){:root{--tfm-gutter:24px}}
.container,.cat-hero-inner,.cat-hero-body,.floor-tabs-inner,.catalog-outer,.rngidx,.tsrch-inner,
.pj-hero,.fic-wrap,.sp-wrap,.sp-sect,.bc-inner,.pdp-wrap,
.svc-crumb div,.pj-crumb div,.ab-crumb div,.fg-crumb div,
.collection-hero-inner,.badges-strip-inner,.catalogue-wrap,.specs-banner-inner,
body:has(.collection-hero-inner) :is(.breadcrumb,.guide-section,.related-section),
.g-wrap,.g-meta{
  max-width:var(--tfm-wrap);padding-left:var(--tfm-gutter);padding-right:var(--tfm-gutter);box-sizing:border-box}
/* already inside a column (the vinyl listing's tabs): the column has the gutter */
.container .floor-tabs-inner{max-width:none;padding-left:0;padding-right:0}
/* the warranty band's section carries the gutter itself; its inner block is the column's width */
.wty-in{max-width:calc(var(--max) - 2 * var(--px))}
/* the listings' "browse the whole range" index sits inside the product column, which already has the edge */
.product-area .rngidx{padding-left:0;padding-right:0}
/* the search results stay a narrow centred column on a desktop; on a phone or tablet their edge is the header's */
.srp{padding-left:var(--tfm-gutter);padding-right:var(--tfm-gutter)}

/* NOTHING WIDER THAN THE SCREEN (2026-10-08). On a phone 32 product pages and one collection page scrolled sideways
   (measured 378–653px wide at 375; none of it new — the same with the old stylesheet). The causes, each fixed with what
   the newer templates already do:
     - a grid track of 1fr cannot shrink below its widest word or picture (feature blocks, the gallery column, the
       colour grids): grid items may shrink to their track;
     - the older laminate template never had phone rules for its "why" and care grids or its quote bar: it gets the
       ones every newer template has (2 columns under 1200px, 1 under 500px; the bar keeps name, price and button);
     - a gallery placeholder took its WIDTH from its minimum height through aspect-ratio;
     - the herringbone pages' "ask about matching planks" button could not wrap;
     - a feature block's giant decorative word ran past the screen (it is clipped to its block on a phone);
     - the one legacy collection page had no phone layout for its catalogue and guide grids. */
.feat-block>*,.pdp-wrap>*,.mc-grid>*,.care-grid>*,.why-grid>*{min-width:0}
.pdp-wrap>*{max-width:100%}            /* one product template lays this column out as a shrink-to-fit flex item */
.quote-bar>*{min-width:0}
.gal-main{max-width:100%}
@media(max-width:1200px){.care-grid,.why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){body:has(.collection-hero-inner) :is(.catalogue-wrap,.guide-grid){grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.quote-bar .qb-divider,.quote-bar .qb-mat,.quote-bar .qb-install,.quote-bar .qb-price-was{display:none}
  .feat-copy{overflow:hidden}.hb-planks-cta{white-space:normal}}
@media(max-width:1100px){.pdp-wrap{grid-template-columns:minmax(0,1fr)}}
@media(max-width:500px){.care-grid,.why-grid{grid-template-columns:minmax(0,1fr)}}
/* …and in Safari, the tile calculator's size picker (2026-10-15). WebKit lays a <select>'s chosen option out at its full
   length, so a long size-and-finish label ran past the full-width control and widened the page — 642px on a 320–375px
   screen on one mosaic page, 388px on another tile page. Clipped to the control, as every other engine already draws it. */
.tcalc-pick-sel{overflow:hidden}
/* …and the product name (2026-10-16). 956 product pages keep it on one line on a desktop (`white-space:nowrap`, the
   design refresh) — and 298–352 of those names are wider than the column at 1280–1920px, so the end of the name was cut
   off at the window's edge ("Carrara 1"x2" Basketweave with Black Dot Polished Marble Mosaic": 962px in a 589px column at
   1440px). A name that fits stays on one line; a longer one wraps, balanced, inside its column. */
.info-title{white-space:normal;text-wrap:balance}
/* the narrowest phones (320px): a two-column spec table and the legacy collection page's banner and product cards */
@media(max-width:400px){.sp-tbl{table-layout:fixed;width:100%}.sp-tbl th,.sp-tbl td{overflow-wrap:anywhere}
  body:has(.collection-hero-inner) :is(.specs-banner-inner,.products-grid){grid-template-columns:minmax(0,1fr)}}
/* the product page's full-bleed hero: its words were placed from the window's edge; they start where the column does */
#heroSection>.hero-body{padding-left:max(var(--px),calc((100% - var(--max)) / 2 + var(--px)));
  padding-right:max(var(--px),calc((100% - var(--max)) / 2 + var(--px)))}
#heroSection>.hero-location{right:max(var(--px),calc((100% - var(--max)) / 2 + var(--px)))}
/* …and its quote bar, which docks directly under the header: full-bleed, words on the column */
.quote-bar{padding-left:max(var(--px),calc((100% - var(--max)) / 2 + var(--px)));
  padding-right:max(var(--px),calc((100% - var(--max)) / 2 + var(--px)))}

/* ── Touch (Phase 9.1, owner brief 2026-10-17 — tfm-chrome.js §10) ─────────────────────────────────────────────────────
   Sideways swipes on the product photo, the photo viewer and a catalogue card with a room photo reach the page's own
   controls; up/down stays the browser's, so the page always scrolls, and pinch stays the browser's (or, in the product
   viewer, the viewer's own pinch and — when zoomed — a one-finger pan). */
#galMain{touch-action:pan-y pinch-zoom}
#lightbox{touch-action:pan-y pinch-zoom}
#lightbox .lb-wrap,#lightbox .lb-wrap #lbImg{touch-action:none}
/* the "enlarge" mark appeared only under a mouse; a touch screen shows it, so a tap is known to open the viewer */
@media (hover:none){.gal-main .gal-zoom{opacity:1}}
/* ── The utility bar on phones and tablets (Phase 9.1, owner brief 2026-10-17, item 7) ───────────────────────────────
   The phone number and "Ask Us Any Question" (the model's CTA, the existing enquiry form) are in the top bar on every
   screen up to 1023px: one row on a tablet, two on a phone (the call and the question first, the showroom under them).
   The bar wraps rather than clipping, so large text adds a row instead of cutting a word; its real height is measured
   (tfm-chrome.js §1, --tfm-util-h) so the header still docks exactly under it. Every link is a 40px+ target. A desktop
   is unchanged: the question link there is the brand row's button. */
.tfm-util .tfm-util-ask{display:none}          /* (0,2,0): .tfm-util a sets inline-flex */
@media(max-width:1023px){
  :root{--tfm-util-h:40px}
  .tfm-util{height:auto;min-height:40px}          /* never var(--tfm-util-h): the script MEASURES this bar into it */
  .tfm-util .tfm-wrap{flex-wrap:wrap;height:auto;justify-content:flex-start;gap:0 18px}
  .tfm-util a{min-height:40px}
  .tfm-util .tfm-util-ask{display:inline-flex;margin-left:auto;font-weight:600}
}
@media(max-width:599px){
  :root{--tfm-util-h:82px}
  .tfm-util{font-size:13.5px}
  .tfm-util .tfm-wrap{gap:0 14px}
  .tfm-util-call{order:1}
  .tfm-util-ask{order:2}
  .tfm-util-visit{order:3;flex:1 0 100%;min-height:40px;border-top:1px solid rgba(232,228,220,.14)}
}

/* ═══ CONTRAST — owner decision 4 (launch brief 2026-10-30) ═══════════════════════════════════════════════════════
   Small gold and grey text reaches WCAG AA (4.5:1) on the site's light backgrounds, in the same hues. The page palettes
   live in ~1,400 inline <style> copies (cloned from donor pages); this file loads after every one of them on every page
   that carries the chrome, so these few rules re-tone them all — and the colours the shared scripts inject (var(--gold),
   var(--ash)) follow. Measured 2026-10-31: PDP gold #B79030 2.98:1 on white, the site gold #9B7940 4.04, the PDP grey
   #97928B 2.74 on linen, the install label #CCA840 2.17, white at 18–36 % on the dark bands 1.6–3.3. Now: gold #876A23
   (5.10 white · 4.53 linen; white text on it 5.10), gold2 #765B1E (6.39 · 5.67), grey #726D66 (5.13 · 4.55), white at
   72 %+ on dark. On the two dark bands the bright gold IS the contrast (6.56:1) and stays. */
:root,body.is-pdp{--gold:#876A23;--gold2:#765B1E;--ash:#726D66}
.why-sect,.cta-sect{--gold:#B79030;--gold2:#CCA840}
.apw-opt.active{--gold2:#CCA840}                          /* the chosen width card is dark (#111010) */
.quote-bar .qb-install-p{color:#CCA840}
.tfm-ftr .tfm-cta{color:#fff}                              /* the footer's button took the footer's grey (3.19:1) */
.mc-ow{color:rgba(255,255,255,.85)}
[class^="cat-crumb"],[class^="cat-crumb"] a,.cat-stat-lbl{color:rgba(255,255,255,.75)}
.hero-location,.hero-price-label,.qb-sku,.qb-mat-l,.qb-install-l,.why-item p,.wty-sub,.cta-body,.lb-cap,.lb-hint{color:rgba(255,255,255,.72)}
.hero-colour{color:rgba(255,255,255,.82)}
.tfm-search input::placeholder{color:#6F6D66}

/* ═══ PRODUCT PAGE FIRST SCREEN — owner decision 5 (launch brief 2026-10-30) ════════════════════════════════════════
   The product hero filled 100svh BELOW a header that is already on the screen, so the name, the price and "Book a Free
   Estimate" (pinned to the hero's foot) sat under the fold — measured 2026-10-31: the button at 904–955 px on a 375×812
   phone and 952–1003 px on 1440×900. The hero now fills the screen the header leaves (the utility bar's height is
   measured into --tfm-util-h by §3), never less than its content needs. The id outranks every page's own .hero rule. */
#heroSection:not(.hero-nophoto){height:calc(100svh - var(--tfm-util-h) - var(--tfm-hdr-h));min-height:520px}
@media (max-width:760px){#heroSection:not(.hero-nophoto){min-height:440px}}
/* on a wider screen the price and the button stand in the right-hand column, above the WhatsApp badge's corner
   (bottom 20px, 56px tall): the column ends 96px up instead of 64px, so the badge never covers the button */
@media (min-width:761px){#heroSection .hero-body{padding-bottom:96px}}
@media (max-height:520px) and (orientation:landscape){#heroSection:not(.hero-nophoto){min-height:340px}}

/* ═══ LANDINGS BELOW THE STICKY HEADER (launch brief 2026-10-30) ═══════════════════════════════════════════════════
   An anchor jump (a menu link to a section, "#grade-guide" on 193 product pages) landed under the stuck header — and on
   a product page also under its quote bar. A page's own rule for a named target still wins (higher specificity). */
:target{scroll-margin-top:calc(var(--tfm-hdr-h) + 16px)}
body:has(.quote-bar) :target{scroll-margin-top:calc(var(--tfm-hdr-h) + var(--h,72px) + 16px)}
/* (launch brief 2026-10-30) a listing's sticky filter column stuck at 68–74px — under the 133px stuck header, which hid
   its first 65px (the Filters heading, Clear all) on every desktop listing. It now sticks below the header. From 1024px:
   below that the filters are the Filters & Sort dialog (listing-glow.css), which this never touches. */
@media (min-width:1024px){
  .filter-sidebar{top:calc(var(--tfm-hdr-h) + 12px);max-height:calc(100vh - var(--tfm-hdr-h) - 12px)}
}
