/* =========================================================================
   Skoll base theme
   -------------------------------------------------------------------------
   Every brand colour, size and font comes from the custom properties in
   :root below. A skin (public/themes/<skin>/skin.css) normally only
   redefines these tokens; it should rarely need selectors of its own.
   Layers: tokens → reset → layout → chrome (header/nav/footer) → elements
   → legacy compatibility. Content components live in components.css.
   ========================================================================= */

:root {
  /* Brand */
  --brand-primary: #00326d;          /* headings, buttons, active states */
  --brand-primary-contrast: #fff;
  --brand-accent: #a82630;           /* icons, highlights */
  --brand-accent-strong: #98282c;    /* search button */
  --brand-accent-stronger: #701d20;  /* search button hover */
  --search-button-fg: #fff;          /* Header search, quick-search and Get a quote label colour */
  --brand-nav-bg: #647882;           /* main navigation bar */
  --brand-nav-text: #fff;
  --brand-topbar: #003369;           /* thin strip above the header */
  --brand-ink: #003369;              /* headings in page content */
  --brand-footer-strip: var(--brand-nav-bg);
  --brand-footer-bar: var(--brand-primary);
  --header-bg: var(--surface);       /* logo / search / actions row */
  --action-title: var(--brand-primary); /* "Location", "My Account" */
  --action-sub: var(--text);         /* "Finder", "Sign In / Register" */
  --action-icon: var(--brand-accent);
  --nav-hover-text: var(--brand-primary);
  --link: var(--brand-primary);
  --link-hover: var(--brand-accent);
  --footer-link-hover: var(--brand-primary);
  --mobile-bar-bg: var(--brand-primary);
  --tile-text: var(--brand-primary); /* home page tile captions */
  --dock-height: 56px;
  /* t248u: coloured account block at the top of the mobile drawer.
     Defaults to the thin header top bar; skins with a light top bar (or a
     more distinctive header colour) override these two tokens. */
  --drawer-account-bg: var(--brand-topbar);
  --drawer-account-text: #fff;

  /* Neutrals */
  --text: #333;
  --text-muted: #6b7378;
  --surface: #fff;
  --surface-muted: #efedec;          /* content panels, active tab */
  --surface-sunken: #eee;
  --border: #ccc;
  --border-soft: #e3e1df;
  --divider: #57585a88;

  /* Typography */
  --font-body: "Arimo", Arial, Helvetica, sans-serif;
  --font-heading: var(--font-body);
  --font-size: 16px;
  --line-height: 1.5;
  --h1-size: 32px;
  --h2-size: 32px;
  --h3-size: 22px;

  /* Rhythm */
  --space: 32px;
  --space-half: calc(var(--space) / 2);
  --container: 1280px;               /* content width (gutters sit outside it) */
  --gutter: 15px;
  --radius: 4px;
  --radius-tab: 15px;

  /* Header */
  --topbar-height: 32px;
  --header-height: 100px;
  --nav-link-pad: 12px;
  --logo-width: 240px;
  --logo-max-height: calc(var(--header-height) - 20px);   /* 80px: tall logos keep 10px clear above and below */
  --search-height: 50px;
  --action-icon-size: 32px;

  /* ---- Compatibility aliases ------------------------------------------
     Existing CMS content uses these names in inline styles, so they must
     keep working. Map them onto the tokens above; do not use them in new
     CSS. */
  --fixed-height: var(--space);
  --fixed-height-half: var(--space-half);
  --highlight-color: var(--brand-primary);
  --secondary-color: var(--brand-accent);
  --content-background-color: var(--surface-muted);
  --nav-color: var(--brand-nav-bg);
  --nav-link-color: var(--brand-nav-text);
}

/* Below the desktop max width the page is edge-to-edge with normal gutters
   (t214u). The old Bootstrap 2 fixed widths of 940px / 724px left large
   side margins at tablet sizes such as 979px. */
@media (max-width: 1199px) { :root { --container: 100%; } }
@media (max-width: 767px) {
  :root {
    --container: 100%;
    --space: 16px;
    --h1-size: 26px;
    --h2-size: 24px;
    --dock-height: 56px;
  }
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--text);
  background: var(--surface);
}
img, svg, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-primary);
  line-height: 1.2;
  margin: 0 0 var(--space-half);
}
h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: 18px; }
p, ul, ol, dl, table { margin: 0 0 var(--space-half); }
a { color: var(--link); }
a:hover, a:focus-visible { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space) 0; }


.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  padding: 8px 16px; background: var(--brand-primary); color: #fff;
}
.skip-link:focus { left: 8px; top: 8px; }

/* buttons */
.button, .btn {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .6em 1.2em;
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand-primary);
  font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.button:hover, .btn:hover { background: var(--surface-muted); color: var(--brand-primary); }
.button--primary, .btn-primary {
  background: var(--brand-primary); color: var(--brand-primary-contrast);
}
.button--primary:hover, .btn-primary:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }

/* forms */
.form { display: grid; gap: var(--space-half); max-width: 520px; }
.form__field { display: grid; gap: 4px; font-weight: 700; }
.form__field input, .form__field select, .form__field textarea {
  font: inherit; font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff;
}
.form__field input:focus { border-color: var(--brand-primary); outline: 2px solid color-mix(in srgb, var(--brand-primary) 25%, transparent); }
.form__aside { margin: 0; font-size: .9rem; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin: 0 0 var(--space-half); border-left: 4px solid; }
.alert--error { background: #fbeaea; border-color: #b3261e; color: #6b1510; }
.alert--success { background: #e9f5ec; border-color: #2e7d32; color: #1b4b1e; }
.alert--info, .alert--warning { background: #fff8e1; border-color: #f9a825; }
.flashes { padding-top: var(--space-half); }

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-main { min-height: 40vh; }
.container .container { max-width: none; padding-inline: 0; }
.site-main { padding-top: var(--space-half); }
.page { padding-block: 0; }
.page:not(.page--cms):not(.page--full-width) { padding-bottom: var(--space); }
.page--full-width { padding: 0; }
@media (max-width: 767px) {
  /* CMS pages run edge to edge on phones, like the old site */
  .site-main { padding-top: 0; }
  .container { padding-inline: 0; }
  .page--cms { padding-inline: 0; }
  .page--cms > .page__title { padding-inline: var(--gutter); }
  .page:not(.page--cms):not(.page--full-width) { padding-top: var(--space-half); }
  /* Inner inset so text does not touch the glass; grey account panel stays flush. */
  .flashes,
  .breadcrumbs ol,
  .acct-area__head,
  .acct-area__signout,
  .page:not(.page--cms):not(.page--full-width) > .page__title,
  .catalogue-toolbar,
  .catalogue-search,
  .catalogue__layout,
  .catalogue__empty,
  .product__layout,
  .basket-page__head,
  .basket-page__toolbar-wrap,
  .auth-grid {
    padding-inline: 12px;
  }
  .account-view { border-radius: 0; }
}

.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 0; padding: 12px 0 0;
  font-size: .85rem; color: var(--text-muted);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--header-bg); position: relative; z-index: 50; }
.site-header__top {
  height: var(--topbar-height); min-height: var(--topbar-height);
  background: var(--brand-topbar); color: #fff; overflow: visible;
}
.site-header__top-inner {
  display: flex; justify-content: flex-end; align-items: center;
  flex-wrap: nowrap; gap: 0 8px; min-width: 0;
  height: var(--topbar-height); min-height: var(--topbar-height);
  color: inherit;
}
.site-header__signout {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  color: inherit; font-size: .8rem; font-weight: 700; line-height: 1; text-decoration: none;
  white-space: nowrap;
}
.acct-switch--header { color: inherit; }
.site-header__signout .material-icons { font-size: 16px; }
.site-header__signout:hover, .site-header__signout:focus-visible { color: inherit; text-decoration: underline; }
.site-header__signout:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.site-header__main {
  display: grid;
  grid-template-columns: var(--logo-width) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space);
  min-height: var(--header-height);
  height: var(--header-height);
}
/* Logos are sized by width but capped by height (t139u), so tall or boxed logos (Plumb City's droplet,
   Gas Centre, MDS) stay inside the header row with room above and below, vertically centred. */
.site-logo img { display: block; width: auto; height: auto; max-width: var(--logo-width); max-height: var(--logo-max-height); }

.site-search { display: flex; height: var(--search-height); }
.site-actions { grid-column: 3; }
.site-search__input {
  flex: 1; min-width: 0;
  padding: 0 16px;
  font: inherit;
  border: 1px solid var(--border); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}
.site-search__input:focus { outline: none; border-color: var(--brand-primary); }
.site-search__button {
  width: 60px; border: 0; cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--brand-accent-strong); color: var(--search-button-fg, #fff);
}
.site-search__button:hover { background: var(--brand-accent-stronger); color: var(--search-button-fg, #fff); }
.site-search__close { display: none; }
.search-overlay-backdrop { display: none; }

.site-actions { display: flex; gap: var(--space); list-style: none; margin: 0; padding: 0; }
.site-actions li { position: relative; }
.site-action {
  display: grid;
  grid-template: "icon title" auto "icon sub" auto / auto auto;
  column-gap: 8px; align-items: center;
  color: var(--text); text-decoration: none; font-size: .85rem; line-height: 1.2;
}
.site-action__icon { grid-area: icon; font-size: var(--action-icon-size); color: var(--action-icon); }
.site-action strong { grid-area: title; font-size: 1rem; color: var(--action-title); }
.site-action span:last-child { grid-area: sub; color: var(--action-sub); }
.site-action:hover strong { color: var(--brand-accent); }

/* main navigation */
.site-nav { background: var(--brand-nav-bg); border-block: 1px solid var(--brand-nav-bg); }
.site-nav__items {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  list-style: none; margin: 0; padding: 0;
}
.site-nav__item { position: relative; }
.site-nav__link {
  display: block; padding: var(--nav-link-pad);
  color: var(--brand-nav-text); text-decoration: none; line-height: 1; text-align: center;
}
.site-nav__item:hover > .site-nav__link, .site-nav__link:focus-visible { color: var(--nav-hover-text); }
.site-nav__sub {
  display: none; position: absolute; left: 0; top: 100%; min-width: 220px;
  list-style: none; margin: 0; padding: 6px 0;
  background: var(--surface); box-shadow: 0 6px 18px rgb(0 0 0 / .15);
}
.site-nav__item:hover .site-nav__sub, .site-nav__item:focus-within .site-nav__sub { display: block; }
.site-nav__sub a { display: block; padding: 8px 16px; text-decoration: none; }

/* mobile header */
.mobile-bar { display: none; }

/* t220u: shared mobile bottom bar (all skins). Hidden on desktop. */
.sb-dock {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--dock-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  background: #fff; border-top: 1px solid #e5e5e5; box-shadow: 0 -2px 8px rgb(0 0 0 / .08);
}
.sb-dock__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text, #1c1c1b); text-decoration: none; background: none; border: 0;
  padding: 6px 0; position: relative; cursor: pointer; font: inherit;
}
.sb-dock__btn .material-icons { font-size: 24px; }
.sb-dock__badge {
  position: absolute; top: 2px; right: 22%;
  background: var(--brand-accent, var(--brand-primary)); color: #fff;
  border-radius: 8px; font-size: .65rem; min-width: 16px; text-align: center; padding: 0 3px;
  line-height: 16px;
}
.sb-dock__badge[hidden] { display: none; }

.mobile-drawer { position: fixed; inset: 0; z-index: 200; background: rgb(0 0 0 / .45); }
.mobile-drawer__panel {
  width: min(320px, 85vw); height: 100%; overflow-y: auto;
  background: var(--surface); padding: 0 0 24px; position: relative;
}
.mobile-drawer__account {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 48px 12px 16px;
  background: var(--drawer-account-bg, var(--brand-topbar, var(--brand-primary)));
  color: var(--drawer-account-text, #fff);
}
.mobile-drawer__account a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 0; color: inherit; text-decoration: none; font-weight: 700;
}
.mobile-drawer__account a:hover,
.mobile-drawer__account a:focus-visible { text-decoration: underline; }
.mobile-drawer__account .material-icons { font-size: 18px; }
.mobile-drawer__signout { font-size: .85rem; font-weight: 600; opacity: .95; }
.mobile-drawer__phone { font-size: .9rem; font-weight: 600; }
.mobile-drawer__account .mobile-drawer__social {
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  padding: 4px 0 8px;
}
.mobile-drawer__account .mobile-drawer__social-link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px; font-weight: 400; color: inherit; text-decoration: none;
}
.mobile-drawer__account .mobile-drawer__social-link:hover,
.mobile-drawer__account .mobile-drawer__social-link:focus-visible {
  text-decoration: none; opacity: .85;
}
.mobile-drawer__account .mobile-drawer__social-link:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}
.mobile-drawer__social-link svg { display: block; width: 18px; height: 18px; }
.mobile-drawer__close {
  position: absolute; top: 6px; right: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 4px;
  background: none; color: inherit; cursor: pointer;
}
.mobile-drawer__close:hover,
.mobile-drawer__close:focus-visible { background: color-mix(in srgb, var(--drawer-account-text, #fff) 16%, transparent); }
.mobile-drawer__nav { list-style: none; margin: 0; padding: 0; }
.mobile-drawer__nav a {
  display: block; padding: 14px 20px; border-bottom: 1px solid var(--border-soft);
  color: var(--brand-primary); text-decoration: none; font-weight: 700;
}

@media (max-width: 991px) {
  .site-header__main { grid-template-columns: 180px minmax(0, 1fr) auto; gap: var(--space-half); }
  :root { --logo-width: 180px; }
  .site-action span:last-child { display: none; }
}
@media (max-width: 767px) {
  .site-header__top, .site-header__main, .site-nav { display: none; }
  .site-header.is-search-open { z-index: 300; }
  .site-header.is-search-open .site-header__main {
    display: flex; align-items: center; gap: 8px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 301;
    min-height: 0; padding: 10px 12px calc(10px + env(safe-area-inset-top));
    background: #fff; box-shadow: 0 4px 16px rgb(0 0 0 / .2);
  }
  .site-header.is-search-open .site-logo,
  .site-header.is-search-open .site-actions,
  .site-header.is-search-open .site-header__burger { display: none; }
  .site-header.is-search-open .site-search { flex: 1; min-width: 0; height: 44px; }
  .site-header.is-search-open .site-search__close {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto; width: 44px; height: 44px; margin: 0; padding: 0;
    border: 0; background: none; color: #1c1c1b; cursor: pointer;
  }
  .search-overlay-backdrop {
    display: block; position: fixed; inset: 0; z-index: 299;
    background: rgb(0 0 0 / .45);
  }
  .mobile-bar {
    display: flex; align-items: center; justify-content: center;
    padding: 6px 8px; background: var(--mobile-bar-bg);
  }
  .mobile-bar__logo { margin-inline: auto; }
  .mobile-bar__logo img { display: block; max-height: 36px; width: auto; }
  .sb-dock { display: grid; }
  body { padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: var(--space-half); line-height: 16px; }
.site-footer__strip { background: var(--brand-footer-strip); color: #fff; font-size: .8rem; padding-block: var(--space-half); }
.site-footer__cols { display: grid; grid-template-columns: 270px minmax(0, 1fr); column-gap: 30px; }
.site-footer__contact { display: flex; align-items: flex-start; }
.site-footer__icon { font-size: 24px; margin-right: 8px; }
.site-footer__address { margin: 0; font-style: normal; }
.site-footer__contact:has(.site-footer__line) { flex-wrap: wrap; }
.site-footer__line { flex-basis: 100%; display: flex; align-items: center; margin: 10px 0 0; }
.site-footer__line a { color: inherit; text-decoration: none; }
.site-footer__line a:hover { text-decoration: underline; }
.site-footer__line .site-footer__icon { font-size: 20px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { line-height: 25px; }
.site-footer__strip a { color: #fff; text-decoration: none; }
.site-footer__strip a:hover { color: var(--footer-link-hover); }
.site-footer__bar { background: var(--brand-footer-bar); color: #fff; font-size: .75rem; }
.site-footer__bar p { margin: 0; padding: 12px 0; line-height: 8px; text-align: center; }
@media (max-width: 767px) {
  .site-footer { margin-top: 8px; }
  .site-footer__strip { padding-block: 8px; }
  .site-footer__cols { grid-template-columns: 1fr; padding-inline: 13px; }
  .site-footer__icon { display: none; }
  .site-footer__links { margin-top: 16px; }
  .site-footer__links a::before { content: "\2022"; margin: 0 3px; }
  .site-footer__bar p { line-height: 16px; padding-inline: var(--gutter); }
}

.to-top {
  /* t252: 60px above the bottom on desktop so the button sits clear of the Cookie Script tab */
  position: fixed; right: 10px; bottom: 60px; z-index: 999;
  width: 42px; height: 42px; padding: 0; border-radius: 5px; border: 1px solid transparent; cursor: pointer;
  display: grid; place-items: center;
  background: var(--brand-ink); color: #fff; box-shadow: 0 2px 15px rgb(0 0 0 / .3);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top .material-icons { font-size: 28px; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
@media (max-width: 767px) {
  .to-top {
    bottom: calc(var(--dock-height) + 8px + env(safe-area-inset-bottom, 0px));
  }
  /* t254: hide the Cookie Script revisit tab on small screens. Desktop is unchanged.
     The t248u lift / menu-open hiding rules are no longer needed for this badge. */
  #cookiescript_badge,
  [id^="cookiescript_badge"] {
    display: none !important;
  }
}
@media print {
  .sb-dock { display: none !important; }
}

/* ---------------------------------------------------------------- auth / account */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space); padding-top: var(--space-half); }
.auth-card { background: var(--surface); padding: var(--space); border: 1px solid var(--border-soft); border-radius: var(--radius); max-width: 560px; }
.auth-card--muted { background: var(--surface-muted); border-color: transparent; }
@media (max-width: 767px) { .auth-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- legacy compatibility
   Markup imported from the old platform uses Bootstrap 2 class names.
   Only the handful actually present in content are supported here. */
.row-fluid { display: flex; flex-wrap: wrap; gap: 2.5%; }
.row-fluid > [class*="span"] { flex: 0 0 auto; }
.row-fluid > .span12 { width: 100%; }
.row-fluid > .span6 { width: 48.7%; }
.row-fluid > .span4 { width: 31.6%; }
.row-fluid > .span3 { width: 23.1%; }
.row-fluid > .span8 { width: 65.8%; }
.row-fluid > .span9 { width: 74.3%; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.pull-right { float: right; }
.pull-left { float: left; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.clearfix::after { content: ""; display: table; clear: both; }
.visible-phone { display: none !important; }
@media (max-width: 767px) {
  .hidden-phone { display: none !important; }
  .visible-phone { display: block !important; }
  .row-fluid > [class*="span"] { width: 100%; }
}

/* old CMS section wrappers that are embedded in page content */
.cms-block-section__inner-container.container { padding-inline: 0; }
.cms-block-section--margin { margin-block: var(--space-half); }
.cms-block-section--padding-v-1 { padding-block: var(--space-half); }
.cms-block-section--padding-h-1 { padding-inline: var(--space-half); }
.page--full-width .cms-block-section__inner-container.container { padding-inline: var(--gutter); }
.page--full-width .container .cms-block-section__inner-container.container { padding-inline: 0; }
@media (max-width: 767px) {
  .page--full-width .container,
  .page--full-width .cms-block-section__inner-container.container { padding-inline: 0; }
}

/* new CMS sections */
.cms-section {
  display: flow-root; /* keep child margins inside the section background */
  background: var(--section-bg, transparent);
  padding: var(--section-pad-v, 0) var(--section-pad-h, 0);
}
.cms-section__inner { width: 100%; }
.cms-grid { display: grid; grid-template-columns: repeat(var(--grid-cols, 3), minmax(0, 1fr)); gap: var(--space); }
@media (max-width: 767px) { .cms-grid { grid-template-columns: 1fr 1fr; } }


/* header without the search box (settings.header_search = false) */
.site-header--no-search .site-header__main { grid-template-columns: var(--logo-width) minmax(0, 1fr); }
.site-header--no-search .site-actions { grid-column: 2; justify-self: end; }

/* optional "Call us on" strip text (settings.header_phone), as on Michael Pavis / MDS live */
.site-header__phone { margin-right: auto; flex-shrink: 0; color: inherit; font-size: 12px; line-height: var(--topbar-height); text-decoration: none; white-space: nowrap; }
.site-header__phone:hover, .site-header__phone:focus { color: inherit; text-decoration: underline; }
.site-header__phone strong { font-weight: 700; }
/* t265u: phone + optional settings.social links stay together on the left of the top bar */
.site-header__top-left {
  display: inline-flex; align-items: center; gap: 12px;
  margin-right: auto; min-width: 0; flex-shrink: 1;
}
.site-header__top-left .site-header__phone { margin-right: 0; }
.site-header__social { display: inline-flex; align-items: center; gap: 10px; }
.site-header__social-link {
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit; line-height: 1; text-decoration: none;
}
.site-header__social-link:hover,
.site-header__social-link:focus-visible { color: inherit; opacity: .85; }
.site-header__social-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.site-header__social-link svg { display: block; }

/* ---------------------------------------------------- fixed + compact header (t137u)
   site.js fixes the header to the top (html.has-fixed-header) and keeps its full height in the
   page flow with .site-header-spacer (--site-header-h), so nothing jumps. Scrolled past ~100px
   the header goes compact (.is-compact, desktop/tablet only): smaller logo, slimmer top bar and
   main row, and the main navigation folds into a burger next to the logo that opens it as a
   panel (sub-menus listed). Back near the top it returns to full size. Phones keep the mobile bar
   (fixed too) and drawer. Skins tune it with the --compact-* tokens. */
:root {
  --compact-topbar-height: 20px;
  --compact-header-height: 64px;
  --compact-logo-width: 150px;
  --compact-logo-max-height: calc(var(--compact-header-height) - 14px);   /* 50px: 7px clear above and below */
  --compact-search-height: 40px;
  --header-ease: .25s ease;
}
.site-header-spacer { display: none; }
.site-header__burger { display: none; }
html.has-fixed-header .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
html.has-fixed-header .site-header-spacer { display: block; height: var(--site-header-h, 0px); }
/* in-page anchors (#tab-…) and focus scrolling land below the compact header */
html.has-fixed-header { scroll-padding-top: calc(var(--compact-topbar-height) + var(--compact-header-height) + 8px); }

@media (min-width: 768px) {
  .site-header { transition: box-shadow var(--header-ease); }
  .site-header__top, .site-header__main { transition: height var(--header-ease), min-height var(--header-ease); }
  .site-header__phone { transition: line-height var(--header-ease), font-size var(--header-ease); }
  .site-logo img { transition: max-width var(--header-ease), max-height var(--header-ease), margin var(--header-ease); }
  .site-search { transition: height var(--header-ease); }
  .site-action__icon { transition: font-size var(--header-ease); }

  .site-header.is-compact { box-shadow: 0 2px 12px rgb(0 0 0 / .2); }
  .site-header.is-compact .site-header__top,
  .site-header.is-compact .site-header__top-inner {
    height: var(--compact-topbar-height); min-height: var(--compact-topbar-height);
  }
  .site-header.is-compact .site-header__phone { line-height: var(--compact-topbar-height); font-size: 11px; }
  .site-header.is-compact .site-header__top-left { gap: 10px; }
  .site-header.is-compact .site-header__social { gap: 8px; }
  .site-header.is-compact .site-header__signout, .site-header.is-compact .acct-switch--header .acct-switch__btn { font-size: .7rem; line-height: 1; }
  .site-header.is-compact .acct-switch--header .acct-switch__btn .material-icons { font-size: 14px; width: 14px; height: 14px; }
  .site-header.is-compact .site-header__main {
    height: var(--compact-header-height); min-height: var(--compact-header-height);
    grid-template-columns: auto var(--compact-logo-width) minmax(0, 1fr) auto; gap: var(--space-half);
  }
  .site-header.is-compact.site-header--no-search .site-header__main { grid-template-columns: auto var(--compact-logo-width) minmax(0, 1fr); }
  .site-header.is-compact .site-actions { grid-column: -2; justify-self: end; }
  .site-header.is-compact .site-logo img { width: auto; max-width: var(--compact-logo-width); max-height: var(--compact-logo-max-height); margin-top: 0; }
  .site-header.is-compact .site-search { height: var(--compact-search-height); }
  .site-header.is-compact .site-action__icon { font-size: 26px; }
  .site-header.is-compact .site-action { font-size: .8rem; }

  .site-header.is-compact .site-header__burger {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
    border: 0; border-radius: var(--radius); background: var(--brand-nav-bg); color: var(--brand-nav-text);
  }
  .site-header__burger .material-icons { font-size: 28px; }
  .site-header__burger:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }

  /* the main navigation as a panel under the compact header, aligned with the burger */
  .site-header.is-compact .site-nav {
    position: absolute; top: 100%; left: max(var(--gutter), calc((100% - var(--container)) / 2)); width: min(340px, calc(100vw - 2 * var(--gutter)));
    max-height: calc(100vh - var(--compact-topbar-height) - var(--compact-header-height) - 16px); overflow-y: auto; overscroll-behavior: contain;
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 24px rgb(0 0 0 / .25);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-header.is-compact.is-nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .site-header.is-compact .site-nav .container { width: auto; max-width: none; margin: 0; padding: 6px 0; }
  .site-header.is-compact .site-nav__items { display: block; }
  .site-header.is-compact .site-nav__link { padding: 12px 18px; text-align: left; line-height: 1.2; }
  .site-header.is-compact .site-nav__item + .site-nav__item { border-top: 1px solid rgb(255 255 255 / .15); }
  .site-header.is-compact .site-nav__sub,
  .site-header.is-compact .site-nav__item:hover .site-nav__sub { display: block; position: static; min-width: 0; padding: 0 0 8px; background: none; box-shadow: none; }
  .site-header.is-compact .site-nav__sub a { padding: 6px 18px 6px 34px; color: var(--brand-nav-text); opacity: .9; font-size: .9rem; }
  .site-header.is-compact .site-nav__sub a:hover, .site-header.is-compact .site-nav__sub a:focus-visible { opacity: 1; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header *, .site-header .site-nav { transition: none !important; }
}

/* t257u: when settings.locations_enabled is off, hide leftover locator / showroom map widgets
   so a site with no Profit Centres never shows an empty "0 locations" finder. */
body.locations-off #ukps-map-wrapper,
body.locations-off .ukps-image-map-wrapper,
body.locations-off .ukps-showroom-map,
body.locations-off #ukps-stores-list,
body.locations-off #ukps-stores-controls,
body.locations-off .ukps-showrooms-content-wrap .ukps-image-map-wrapper {
  display: none !important;
}
