:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --border: #e1e4e9;
  --text: #333745;
  --text-muted: #58595b;
  --brand: #333745;
  --brand-blue: #0098DB;
  --brand-grey: #494B52;
  --brand-light: var(--brand-blue);
  --accent: var(--brand-blue);
  --accent-hover: #007fb8;
  --on-accent: #ffffff;
  --available: #1f8a4c;
  --available-bg: #e6f6ec;
  --planned-bg: #f0f1f3;
  --planned-text: #8a8f98;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.06);
  --font-heading: Tahoma, Geneva, "Segoe UI", Arial, sans-serif;
  --font-ui: "Gudea", Tahoma, Geneva, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

a { color: inherit; text-decoration: none; }

/* ---- Site header: utility strip, main header, lead-time strip ---- */
:root { --wrap-max: 1500px; --wrap-pad: 32px; }
.site-wrap { max-width: var(--wrap-max); margin: 0 auto; padding-left: var(--wrap-pad); padding-right: var(--wrap-pad); box-sizing: border-box; }
header.site-header { position: relative; background: #fff; border-bottom: 1px solid var(--border); }
.util-strip { background: #F3F5F7; color: #494B52; font-size: 12px; line-height: 32px; height: 32px; }
.util-inner { display: flex; justify-content: space-between; gap: 16px; white-space: nowrap; }
header.site-header .header-inner { min-height: 112px; display: flex; align-items: center; gap: 36px; }
header.site-header .brand-block { display: flex; flex-direction: column; align-items: flex-start; flex: 0 0 auto; }
header.site-header img.logo { height: 84px; width: auto; display: block; }
.brand-pair { display: flex; align-items: flex-start; gap: 28px; flex: 0 0 auto; }
header.site-header .brand-office { padding-left: 28px; border-left: 1px solid #E3E6EA; }
header.site-header .brand-office:hover .brand-tagline { text-decoration: underline; }
header.site-header .brand-tagline { font-size: 15px; font-weight: 600; line-height: 1.3; color: #494B52; margin-top: 4px; white-space: nowrap; }
.header-search-slot { flex: 1 1 auto; min-width: 0; }
.header-actions { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.header-contact-block { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.header-phone { font-size: 18px; font-weight: 700; color: #2F3542; white-space: nowrap; }
.header-email { font-size: 13px; color: #0098DB; }
.header-email:hover, .header-phone:hover { text-decoration: underline; }
.btn-enquiry-pill { font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: #0098DB; border: none; border-radius: 999px; padding: 11px 22px; cursor: pointer; white-space: nowrap; }
.btn-enquiry-pill:hover { background: #007fb8; }
.header-mobile-actions { display: none; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #2F3542; background: #fff; border: 1px solid #D3D1C7; border-radius: 50%; cursor: pointer; padding: 0; }
.lead-strip { background: #E6F4FB; color: #0C447C; font-size: 13px; line-height: 1.4; margin: 0 0 24px; }
.lead-inner { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 6px; padding-bottom: 6px; }
.lead-left { display: flex; align-items: center; gap: 8px; }
.lead-icon { flex: 0 0 auto; }
.lead-right { display: inline-flex; align-items: center; gap: 12px; color: #0C447C; text-decoration: none; }
.lead-right img { height: 28px; width: auto; display: block; }
.lead-right:hover .lead-right-text, .lead-right:focus-visible .lead-right-text { text-decoration: underline; }
/* nav bar lines up with the same container as the header rows */
@media (min-width: 1100px) {
  body .tabs { justify-content: space-between; padding-left: max(calc(var(--wrap-pad) - 18px), calc((100% - var(--wrap-max)) / 2 + var(--wrap-pad) - 18px)); padding-right: max(calc(var(--wrap-pad) - 18px), calc((100% - var(--wrap-max)) / 2 + var(--wrap-pad) - 18px)); }
}

@media (min-width: 768px) and (max-width: 1180px) {
  header.site-header .header-inner { flex-wrap: wrap; gap: 12px 24px; padding-top: 10px; padding-bottom: 12px; min-height: 0; }
  header.site-header img.logo { height: 64px; }
  header.site-header .brand-tagline { font-size: 13px; }
  .brand-pair { gap: 18px; }
  header.site-header .brand-office { padding-left: 18px; }
  .header-actions { margin-left: auto; }
  .header-search-slot { order: 3; flex: 1 1 100%; }
  .site-search { max-width: none; }
}

@media (max-width: 767px) {
  .util-strip { display: none; }
  :root { --wrap-pad: 16px; }
  header.site-header .header-inner { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  header.site-header .brand-tagline { display: none; }
  header.site-header .brand-office { display: none; }
  header.site-header img.logo { height: 44px; }
  .header-actions { display: none; }
  .header-mobile-actions { display: flex; gap: 10px; margin-left: auto; }
  .header-search-slot { order: 3; flex: 1 1 100%; }
  .lead-inner { flex-direction: column; align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
  .lead-right { flex-wrap: wrap; }
  body .tabs { display: none; }
  body.nav-open .tabs { display: flex; }
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Category tabs */
.tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  position: sticky;
  top: 0;
  background: var(--brand);
  padding: 0;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.tab-btn {
  padding: 13px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.tab-btn:hover { background: rgba(255,255,255,0.12); }

.tab-btn.active {
  background: rgba(255,255,255,0.08);
  border-bottom-color: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 28px 20px;
  padding-top: 8px;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.15s ease;
}
.product-card.available:hover .product-thumb img {
  transform: scale(1.04);
}
.product-thumb-empty {
  width: 100%;
  height: 100%;
  background: #eef2f7;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
}

.product-card .name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand);
}

.status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 99px;
}

.status-pill.planned {
  color: var(--planned-text);
  background: var(--planned-bg);
}

.product-card.available { cursor: pointer; }
.product-card.planned { opacity: 0.6; }

/* Product page */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a:hover { text-decoration: underline; }

/* Hero */
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 12px;
}
@media (max-width: 760px) {
  .product-hero { grid-template-columns: 1fr; }
}
.hero-media {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.hero-media img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  display: block;
}
.hero-thumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; }
.hero-thumbs:empty { display: none; }
.hero-thumbs img { width: calc(25% - 6px); aspect-ratio: 1; object-fit: contain; border-radius: 6px; cursor: zoom-in; border: 1px solid var(--border); background: #fff; }
.hero-thumbs img:hover { opacity: 0.85; }
.hero-thumbs-overflow:empty { display: none; }
.hero-thumbs-overflow.sliding { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 8px; padding: 0 6px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.hero-thumbs-overflow.sliding::-webkit-scrollbar { display: none; }
.hero-thumbs-overflow.sliding img { flex: 0 0 calc(25% - 6px); width: calc(25% - 6px); aspect-ratio: 1; object-fit: contain; border-radius: 6px; cursor: zoom-in; border: 1px solid var(--border); background: #fff; scroll-snap-align: start; }
.hero-thumbs-overflow.sliding img:hover { opacity: 0.85; }
.hero-carousel { display: flex; align-items: center; gap: 2px; }
.hero-carousel-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.hero-carousel-arrow:hover { background: var(--panel); }
.hero-media-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.3rem;
}
.hero-content h1 {
  margin: 0 0 6px;
  font-size: 2.1rem;
  color: var(--brand);
  font-weight: 800;
}
.hero-tagline {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hero-content p {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0 0 14px;
}
.hero-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lead-time-note {
  color: #c0392b;
  font-weight: 700;
  font-size: 0.85rem;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 0.92rem;
  box-shadow: 0 2px 6px rgba(30,154,214,0.4);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 99px;
  font-size: 0.92rem;
  border: 2px solid var(--accent);
}
.btn-secondary:hover { background: #e8f4fb; }

/* Spec chips */
.spec-chip-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 36px;
}
.spec-chip {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  box-shadow: var(--shadow);
}
.spec-chip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}
.spec-chip-value {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--brand);
}

/* Gallery */
.gallery-section h2,
.pdf-section h2 {
  font-size: 1.3rem;
  color: var(--brand);
  margin: 0 0 14px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  background: #eef2f7;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(16,24,40,0.15);
}
.image-credit {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 8px 0 32px;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 28, 0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  min-height: 0;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-caption {
  text-align: center;
  color: #fff;
}
.lightbox-caption-group {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 4px;
}
.lightbox-caption-name {
  font-size: 1.1rem;
  font-weight: 700;
}
.lightbox-caption-code {
  font-weight: 400;
  color: #c7ccd4;
}
.lightbox-nav {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { margin-right: 20px; }
.lightbox-next { margin-left: 20px; }
@media (max-width: 700px) {
  .lightbox { padding: 12px; }
  .lightbox-nav { width: 40px; height: 40px; min-width: 40px; font-size: 1.2rem; }
  .lightbox-prev { margin-right: 8px; }
  .lightbox-next { margin-left: 8px; }
}

.pdf-section { margin-top: 8px; }

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pdf-toolbar a {
  color: var(--brand-light);
  font-weight: 600;
}
.pdf-toolbar a:hover { text-decoration: underline; }

.pdf-frame {
  width: 100%;
  /* tall enough that one whole catalogue page fits on screen (viewer opens at "fit page", no thumbnail sidebar) */
  height: calc(100vh - 90px);
  height: calc(100dvh - 90px);
  min-height: 560px;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  display: block;
  margin-bottom: 20px;
  background: #525659;
}

/* Catalogue page viewer (assets/js/pdf-viewer.js): one whole page at a time, sized to the screen */
.pdf-section { scroll-margin-top: 110px; }
.pv { --pv-stage-h: calc(100vh - 190px); --pv-stage-h: calc(100dvh - 190px); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; background: #fff; outline: none; }
.pv:fullscreen { --pv-stage-h: calc(100vh - 56px); --pv-stage-h: calc(100dvh - 56px); border: none; border-radius: 0; margin: 0; display: flex; flex-direction: column; }
.pv-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }
.pv-label { min-width: 0; }
.pv-spacer { flex: 1 1 auto; }
.pv-btn { font: inherit; font-weight: 600; color: var(--brand); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; cursor: pointer; line-height: 1.2; }
.pv-btn:hover:not(:disabled) { border-color: var(--accent); }
.pv-btn:disabled { opacity: 0.4; cursor: default; }
.pv-pageno { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.pv-page { width: 3.4em; font: inherit; text-align: center; padding: 4px 2px; border: 1px solid var(--border); border-radius: 6px; }
.pv-link { color: var(--brand-light); font-weight: 600; margin-left: 4px; }
.pv-link:hover { text-decoration: underline; }
.pv-body { display: flex; background: #525659; }
.pv:fullscreen .pv-body { flex: 1 1 auto; min-height: 0; }
.pv-rail { flex: 0 0 150px; height: var(--pv-stage-h); min-height: 420px; overflow-y: auto; padding: 10px; background: #2b2d30; display: flex; flex-direction: column; gap: 10px; }
.pv-single .pv-rail { display: none; }
.pv-thumb { all: unset; box-sizing: border-box; cursor: pointer; display: block; text-align: center; color: #cfd2d6; font-size: 0.75rem; padding: 4px; border-radius: 6px; border: 2px solid transparent; }
.pv-thumb canvas { display: block; width: 100%; height: auto; background: #fff; min-height: 60px; }
.pv-thumb span { display: block; margin-top: 3px; }
.pv-thumb.active { border-color: var(--accent); background: rgba(255,255,255,0.08); }
.pv-stage { position: relative; flex: 1 1 auto; min-width: 0; height: var(--pv-stage-h); min-height: 420px; }
.pv-scroll { position: absolute; inset: 0; overflow: auto; display: flex; justify-content: center; align-items: flex-start; }
.pv:not(.pv-fitwidth) .pv-scroll { align-items: center; overflow: hidden; }
.pv-canvas { display: block; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.35); flex: 0 0 auto; }
.pv-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #cfd2d6; font-size: 0.95rem; }
.pv-ready .pv-loading { display: none; }
.pv-side { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 64px; border: none; border-radius: 8px; background: rgba(32,34,37,0.55); color: #fff; font-size: 1.1rem; cursor: pointer; opacity: 0; transition: opacity .15s; }
.pv-side-prev { left: 8px; }
.pv-side-next { right: 8px; }
.pv-stage:hover .pv-side:not(:disabled), .pv-side:focus-visible { opacity: 1; }
.pv-side:disabled { display: none; }
.pv:not(.pv-ready) .pv-side, .pv-single .pv-side { display: none; }
@media (max-width: 900px) {
  .pv { --pv-stage-h: calc(100vh - 230px); --pv-stage-h: calc(100dvh - 230px); }
  .pv-rail { display: none; }
  .pv-side { opacity: 0.85; width: 32px; height: 52px; }
  .pv-label { display: none; }
}

.empty-note {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--brand-light);
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

.tab-link {
  margin-left: auto;
  background: rgba(255,255,255,0.14) !important;
}
.tab-link:hover { background: rgba(255,255,255,0.24) !important; }

/* Colours page */
.colours-intro {
  margin-bottom: 30px;
}
.manufacturer-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: #e6f4fb;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.colours-intro h1 {
  font-size: 2rem;
  color: var(--brand);
  margin: 0 0 10px;
}
.colours-intro p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 720px;
  line-height: 1.6;
}

.band-section {
  margin-bottom: 40px;
}
.band-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.band-badge {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}
.band-badge.frame-badge { background: var(--brand); }
.band-heading h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--brand);
  font-weight: 700;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.frame-swatch-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 640px; }

.swatch-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.swatch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(16,24,40,0.12);
}
.swatch-color {
  aspect-ratio: 1.4 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px;
  position: relative;
}
.swatch-clickable {
  cursor: zoom-in;
}
.swatch-clickable::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.15s ease;
}
.swatch-clickable:hover::after {
  background: rgba(0,0,0,0.12);
}
.swatch-code {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(255,255,255,0.0);
}
.swatch-info { padding: 10px 12px 12px; }
.swatch-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand);
  margin-bottom: 2px;
}
.swatch-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.band-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fff8e8;
  border: 1px solid #f0e0b0;
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: #7a5e17;
  max-width: 760px;
}

.frame-availability {
  margin-top: 20px;
  overflow-x: auto;
}
table.avail-table {
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.85rem;
  min-width: 480px;
}
table.avail-table th {
  background: #eef2f7;
  text-align: left;
  padding: 9px 14px;
  color: var(--brand);
  font-weight: 700;
}
table.avail-table td {
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  text-align: center;
}
table.avail-table td.range-name {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}
.avail-yes { color: var(--available); font-weight: 800; }
.avail-no { color: #c7cbd1; }
.avail-note { color: var(--text-muted); font-size: 0.75rem; }

.colours-embed {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 16px;
}
.colours-embed-heading {
  margin-bottom: 20px;
}
.colours-embed-heading h2 {
  font-size: 1.5rem;
  color: var(--brand);
  margin: 4px 0 8px;
}
.colours-embed-heading p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 700px;
  line-height: 1.6;
}
.colours-embed-heading p.colours-note {
  font-style: italic;
  color: var(--brand-light);
}
.band-section p.band-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 700px;
  line-height: 1.6;
  margin: 6px 0 16px;
}
.band-section p.colours-note {
  font-style: italic;
  color: var(--brand-light);
  font-size: 0.85rem;
  margin: 6px 0 10px;
}
.colours-embed-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 700px;
  line-height: 1.6;
  margin: 8px 0 20px;
}
#full-spec, #desktop-options { scroll-margin-top: 16px; }

.topshape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  max-width: 640px;
  margin-bottom: 24px;
}
.topshape-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  text-align: center;
}
.topshape-svg { width: 100%; height: auto; margin-bottom: 8px; }
.topshape-label { font-weight: 700; font-size: 0.82rem; color: var(--brand); }
.topshape-code { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.dto-footnotes {
  margin: 14px 2px 0;
  padding-left: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.dto-footnotes li { margin-bottom: 3px; }

tr.current-range { background: #e6f4fb; }
tr.current-range td.range-name { color: var(--brand-light); }

.site-footer {
  background: var(--brand);
  color: #fff;
  padding: 28px 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.footer-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa3b2;
  margin-bottom: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.footer-links a {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.footer-links a:hover { text-decoration: underline; }

.btn-enquiry {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 18px 24px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin: 0 0 32px;
  box-shadow: 0 3px 10px rgba(133,201,200,0.5);
  font-family: inherit;
}
.btn-enquiry:hover { background: var(--accent-hover); }

.enquiry-modal {
  position: fixed;
  inset: 0;
  background: rgba(20,22,28,0.7);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.enquiry-dialog {
  position: relative;
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.enquiry-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.enquiry-ring {
  background: var(--brand);
  color: #fff;
  padding: 18px 44px 18px 24px;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
}
.enquiry-ring a { color: #5cc8f5; text-decoration: underline; }
.enquiry-dialog h2 {
  margin: 20px 24px 4px;
  font-size: 1.2rem;
  color: var(--brand);
}
.enquiry-form { padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.enquiry-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.enquiry-form input, .enquiry-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
}
.enquiry-form input:focus, .enquiry-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.enquiry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .enquiry-row { grid-template-columns: 1fr; } }
.enquiry-submit { border: none; cursor: pointer; font-family: inherit; font-size: 1rem; align-self: stretch; text-align: center; }
.enquiry-note { margin: 0; font-size: 0.75rem; color: var(--text-muted); text-align: center; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.container { width: 100%; }
.site-footer { margin-top: auto; }
.container + .site-footer, .site-footer { flex-shrink: 0; }

.btn-enquiry {
  background: var(--brand);
  box-shadow: 0 3px 10px rgba(51,55,69,0.3);
}
.btn-enquiry:hover { background: #22252f; }

.price-notice {
  background: #fff8e8;
  border: 1px solid #f0e0b0;
  border-left: 5px solid #e0a800;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 24px;
  color: #6b5210;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-heading { font-size: 1.15rem; font-weight: 700; color: var(--brand); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line, #e3e6ea); }
.section-heading:first-child { margin-top: 4px; }

.acoustic-badge { margin: 0 auto 14px; padding: 4px 12px; border-radius: 999px; background: #eceef1; color: var(--text-muted); font-size: 0.75rem; font-weight: 500; text-align: center; width: fit-content; }
.acoustic-badge.is-acoustic { background: var(--accent); color: var(--on-accent); }

.fabric-tech { margin-top: 18px; max-width: 720px; }
.fabric-tech td { font-size: 0.85rem; padding: 6px 12px; text-align: left; }

.footer-about { max-width: 760px; margin: 0 auto 22px; font-size: 0.88rem; line-height: 1.6; color: #d5d9e0; text-align: center; }
.footer-about strong { color: #fff; }

/* Home page */
.home-hero {
  position: relative;
  background: #1f2834; overflow: hidden;
  color: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.home-hero-inner { max-width: 1180px; margin: 0 auto; padding: 56px 24px; width: 100%; }
.home-hero-inner > * { max-width: 620px; }
.home-hero-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.home-hero h1 { font-size: 2.6rem; line-height: 1.12; margin: 0 0 16px; font-weight: 800; }
.home-hero p { font-size: 1.05rem; line-height: 1.6; color: #e8ecf1; margin: 0 0 26px; }
.home-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-ghost { background: transparent; color: #fff; border: 2px solid #fff; border-radius: 99px; padding: 10px 24px; font-weight: 700; font-size: 0.92rem; cursor: pointer; font-family: inherit; }
.btn-hero-ghost:hover { background: rgba(255,255,255,0.15); }
button.btn-primary { border: none; cursor: pointer; font-family: inherit; }

.home-section { max-width: 1180px; margin: 0 auto; padding: 56px 24px 8px; }
.home-section-head { text-align: center; margin-bottom: 28px; }
.home-section-head h2 { font-size: 1.8rem; margin: 0 0 8px; color: var(--brand); }
.home-section-head p { margin: 0; color: var(--text-muted); }

.category-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.category-tile { display: block; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.category-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(16,24,40,0.14); }
.category-tile-img { aspect-ratio: 4 / 3; background: #f4f6f8; overflow: hidden; }
.category-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.category-tile:hover .category-tile-img img { transform: scale(1.04); }
.category-tile-body { padding: 16px 18px 18px; border-top: 4px solid var(--accent); }
.category-tile-name { font-size: 1.1rem; font-weight: 800; color: var(--brand); }
.category-tile-blurb { font-size: 0.88rem; color: var(--text-muted); margin: 4px 0 10px; line-height: 1.45; }
.category-tile-count { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--on-accent); background: var(--accent); padding: 3px 10px; border-radius: 99px; }
.category-tile-count.soon { background: #eceef1; color: var(--text-muted); }

.home-why { padding-top: 64px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.why-card { text-align: center; padding: 26px 20px; background: #f1f8fc; border-radius: 10px; }
.why-num { font-size: 2rem; font-weight: 800; color: var(--brand-light); }
.why-title { font-weight: 800; color: var(--brand); margin: 4px 0 8px; }
.why-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.home-cta { max-width: 1132px; margin: 56px auto 60px; padding: 30px 34px; background: var(--accent); color: var(--on-accent); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.home-cta h2 { margin: 0 0 6px; font-size: 1.5rem; }
.home-cta p { margin: 0; }
.home-cta a { font-weight: 700; text-decoration: underline; }
.home-cta .btn-primary { background: var(--brand); color: #fff; box-shadow: none; }
.home-cta .btn-primary:hover { background: #22252f; }
.breadcrumb a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .home-hero h1 { font-size: 1.9rem; }
  .home-hero { min-height: 340px; }
  .home-cta { margin: 40px 16px 48px; }
}
.lead-strip + .home { margin-top: -24px; }

.subtabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.subtab-btn { display: inline-flex; align-items: center; gap: 10px; font-family: inherit; font-size: 0.95rem; font-weight: 700; color: var(--brand); background: #fff; border: 2px solid var(--border); border-radius: 99px; padding: 9px 20px; cursor: pointer; }
.subtab-btn:hover { border-color: var(--accent); }
.subtab-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.subtab-count { font-weight: 600; font-size: 0.75rem; opacity: 0.7; margin-left: 4px; }
.subtab-panel { display: none; }
.subtab-panel.active { display: grid; }

.btn-enquiry-sm { display: inline-block; background: var(--brand); color: #fff; border: none; border-radius: 99px; padding: 12px 24px; font-weight: 700; font-size: 0.92rem; cursor: pointer; font-family: inherit; }
.btn-enquiry-sm:hover { background: #22252f; }

.sf-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 12px; }
.sf-row { display: flex; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.sf-row:last-child { border-bottom: none; }
.sf-band { flex: 0 0 90px; font-weight: 800; color: var(--brand); }
.sf-fabrics { display: flex; flex-direction: column; gap: 8px; }
.sf-sup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sf-sup-name { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); min-width: 64px; }
.sf-chip { background: #e8f4fb; color: var(--brand); border-radius: 99px; padding: 4px 12px; font-size: 0.85rem; font-weight: 600; }
.sf-none { color: var(--text-muted); font-size: 0.9rem; }
.sf-row-empty .sf-band { opacity: 0.55; }
@media (max-width: 600px) { .sf-row { flex-direction: column; gap: 8px; } }
.sf-chair { margin: 22px 0 6px; font-size: 1.05rem; color: var(--brand); }
.subtab-btn { padding-left: 8px; }
.subtab-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--border); flex: 0 0 auto; }
.tab-btn { font-family: inherit; font-size: 0.88rem; }

.subtab-group { display: none; }
.subtab-group.active { display: block; }
.subtabs.level2 { margin-top: 0; padding-bottom: 12px; border-bottom: none; }
.subtab-btn.level2 { font-size: 0.85rem; padding: 6px 16px 6px 6px; }
.subtab-btn.level2 .subtab-img { width: 30px; height: 30px; }

.hero-features { margin: 12px 0 18px; padding-left: 20px; color: var(--text); line-height: 1.6; }
.hero-features li { margin-bottom: 3px; }
.spec-table-wrap { margin: 0 0 26px; }
.spec-table-title { font-size: 1rem; color: var(--brand); margin: 18px 0 8px; }
.spec-table-scroll { overflow-x: auto; }
.spec-table th, .spec-table td { padding: 7px 12px; font-size: 0.85rem; text-align: left; white-space: nowrap; }
.colour-chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; margin: 14px 0 26px; }
.colour-chart { margin: 0; }
.colour-chart-title { font-size: 0.85rem; color: var(--text); margin: 8px 0 0; font-weight: 600; }
.colour-chart img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; display: block; cursor: zoom-in; }
.downloads-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.downloads-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: #fafbfc; color: var(--text); text-decoration: none; font-size: 0.92rem; }
.downloads-row:last-child { border-bottom: none; }
.downloads-row:hover { background: #f0f3f7; }
.downloads-icon { color: var(--brand); font-weight: 700; }
.subtab-btn.all-pill { padding-left: 20px; }
.subtab-btn.all-pill.level2 { padding-left: 16px; }

.detail-sections { margin: 40px 0; display: flex; flex-direction: column; gap: 48px; }
.detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.detail-block.no-img { grid-template-columns: 1fr; max-width: 720px; }
.detail-block.img-right .detail-media { order: 2; }
.detail-block.img-right .detail-copy { order: 1; }
.detail-media img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.detail-copy h2 { font-size: 1.5rem; color: var(--brand); margin: 0 0 12px; font-weight: 700; }
.detail-copy p { color: var(--text-muted); line-height: 1.6; margin: 0 0 12px; }
.detail-items { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.detail-item { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; }
.detail-item img { width: 100%; height: auto; border-radius: var(--radius); background: #f4f6f8; }
.detail-item-title { font-weight: 700; color: var(--text); margin-bottom: 2px; }
.detail-item p { margin: 0; font-size: 0.9rem; }
@media (max-width: 800px) {
  .detail-block { grid-template-columns: 1fr; }
  .detail-block.img-right .detail-media, .detail-block.img-right .detail-copy { order: initial; }
  .detail-item { grid-template-columns: 100px 1fr; }
}

.kf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px 40px; margin-top: 14px; }
.kf-item { display: flex; gap: 18px; align-items: flex-start; }
.kf-icon { width: 76px; height: auto; flex: 0 0 76px; }
.kf-title { font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.kf-text p { margin: 0; color: var(--text); line-height: 1.55; font-size: 0.92rem; }
.kf-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 40px; }
.kf-list h3 { font-size: 1rem; color: var(--brand); margin: 0 0 8px; }
.kf-list ul { margin: 0; padding-left: 20px; line-height: 1.6; }
.spec-table td:first-child { font-weight: 700; }
.spec-table td { white-space: normal; min-width: 90px; }

.btn-related{display:block;width:100%;box-sizing:border-box;margin-top:18px;padding:18px 24px;background:var(--brand);color:#fff;font-family:var(--font-ui);font-weight:700;font-size:1.15rem;letter-spacing:.02em;text-align:center;text-decoration:none;border-radius:8px;transition:background .15s}
.btn-related:hover{background:var(--accent);color:var(--on-accent)}
.related-ranges{margin-top:16px}.related-ranges-title{font-weight:700;color:var(--brand);margin-bottom:8px;font-size:1rem}.related-ranges-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}.related-range{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px;border:1px solid #e3e6ea;border-radius:8px;background:#fff;text-decoration:none;color:var(--brand);font-size:.85rem;text-align:center;font-weight:600}.related-range:hover{border-color:var(--accent)}.related-range img{width:100%;aspect-ratio:1/1;object-fit:contain}

.hidden-group-intro{margin:1.2rem 0 1.4rem}
.hidden-group-intro h2{margin:0 0 .4rem}
.hidden-group-intro p{margin:.25rem 0;color:#555}

.related-ranges-full{margin:28px 0 24px;padding:22px 24px 24px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);box-sizing:border-box;width:100%}
.related-ranges-full .related-ranges{margin-top:0}
.related-ranges-full .related-ranges-title{font-size:1.25rem;margin-bottom:12px}
.related-ranges-full .related-ranges-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}

/* Enquiry modal header redesign */
.enquiry-ring { padding: 22px 24px 22px; font-weight: 400; }
.enquiry-ring-title { font-size: 18px; font-weight: 600; color: #fff; padding-right: 28px; }
.enquiry-ring-sub { font-size: 13px; color: #C9CCD3; margin-top: 4px; line-height: 1.45; }
.enquiry-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.enquiry-contact { display: flex; align-items: center; gap: 12px; background: #3B4252; border-radius: 8px; padding: 12px 14px; text-decoration: none !important; color: #fff !important; transition: background .15s, transform .15s; min-width: 0; }
.enquiry-contact:hover { background: #4A5266; transform: translateY(-1px); }
.enquiry-contact-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #0098DB; display: flex; align-items: center; justify-content: center; }
.enquiry-contact-text { display: flex; flex-direction: column; min-width: 0; }
.enquiry-contact-label { font-size: 12px; color: #C9CCD3; }
.enquiry-contact-value { font-size: 15px; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.enquiry-or { margin: 18px 24px 0; font-size: 13px; color: #494B52; }
.enquiry-or + h2 { margin-top: 4px; }
.enquiry-submit { background: #0098DB; }
.enquiry-submit:hover { background: #007fb8; }
@media (max-width: 520px) { .enquiry-contacts { grid-template-columns: 1fr; } }

/* Brand: tagline logo card in the home hero */

/* Header product search (assets/js/search.js) */
.site-search { position: relative; width: 100%; max-width: 560px; margin: 0 auto; z-index: 60; }
.site-search-icon { position: absolute; left: 12px; top: 11px; color: var(--brand); pointer-events: none; }
.site-search-input { width: 100%; box-sizing: border-box; height: 40px; padding: 0 14px 0 38px; font: inherit; font-size: 0.95rem; color: var(--text); background: #fff; border: 1px solid #D3D1C7; border-radius: 999px; box-shadow: 0 1px 4px rgba(20,30,50,0.08); outline: none; -webkit-appearance: none; appearance: none; }
.site-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,152,219,0.18); }
.site-search-results { text-align: left; position: absolute; top: 46px; left: 0; right: 0; width: auto; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(20,30,50,0.22); padding: 6px; }
.site-search-item { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--text); }
.site-search-item.active { background: #eef6fb; }
.site-search-item img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid #e6e9ee; border-radius: 6px; flex: 0 0 auto; }
.site-search-text { display: flex; flex-direction: column; min-width: 0; }
.site-search-name { font-weight: 700; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-search-meta { font-size: 0.8rem; color: var(--text-muted); }
.site-search-snippet { display: block; margin-top: 2px; font-size: 0.78rem; line-height: 1.35; color: var(--text-muted); }
.site-search-snippet mark { background: #fff1b8; color: inherit; padding: 0 1px; border-radius: 2px; }
.site-search-empty { padding: 14px 12px; font-size: 0.9rem; color: var(--text-muted); }


/* ---- One-line category bar on wide screens; a Menu button with a tidy grid on smaller ones ---- */
@media (min-width: 1240px) {
  body .tabs { flex-wrap: nowrap; }
  body .tabs .tab-btn { padding: 13px 8px; font-size: 0.82rem; letter-spacing: 0; }
  .header-mobile-actions { display: none; }
}
@media (min-width: 768px) and (max-width: 1239px) {
  .header-mobile-actions { display: flex; gap: 10px; }
  .header-mobile-actions a.icon-btn { display: none; }
  .header-actions { margin-left: auto; }
  body .tabs { display: none; }
  body.nav-open .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 8px 16px 12px; justify-content: stretch; }
  body.nav-open .tabs .tab-btn { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.86rem; white-space: normal; }
}
@media (max-width: 767px) {
  body.nav-open .tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; padding: 8px 12px 12px; justify-content: stretch; }
  body.nav-open .tabs .tab-btn { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.84rem; white-space: normal; }
}
body.nav-open #menu-btn { background: #0098DB; color: #fff; border-color: #0098DB; }
/* thin dividers between the categories in the bar */
@media (min-width: 1240px) {
  body .tabs .tab-btn { position: relative; }
  body .tabs .tab-btn + .tab-btn::before { content: ''; position: absolute; left: -1px; top: 50%; height: 18px; width: 1px; margin-top: -9px; background: rgba(255,255,255,0.28); }
  body .tabs .tab-btn.active::before, body .tabs .tab-btn.active + .tab-btn::before { opacity: 0; }
}

/* Sub-categories: centred, compact, one line where there is room */
.subtabs { justify-content: center; gap: 8px; margin: 6px 0 28px; padding-bottom: 20px; }
.subtab-btn { font-size: 0.9rem; gap: 8px; min-height: 0; padding: 5px 16px 5px 5px; box-shadow: none; }
.subtab-btn .subtab-img { width: 36px; height: 36px; }
.subtab-btn.all-pill { padding: 9px 22px; }
.subtabs.level2 { margin: -8px 0 26px; padding-bottom: 0; }
.subtab-btn.level2 { font-size: 0.84rem; padding: 4px 14px 4px 4px; }
.subtab-btn.level2 .subtab-img { width: 28px; height: 28px; }
.subtab-btn.all-pill.level2 { padding: 6px 16px; }
@media (max-width: 600px) {
  .subtabs { gap: 6px; margin-bottom: 20px; padding-bottom: 16px; }
  .subtab-btn { font-size: 0.85rem; padding: 4px 12px 4px 4px; }
  .subtab-btn .subtab-img { width: 32px; height: 32px; }
  .subtab-btn.all-pill { padding: 8px 18px; }
}

/* search: "see all" row and results page */
.site-search-all { display: block; padding: 12px 14px; font-weight: 700; color: var(--accent, #0098DB); text-decoration: none; border-top: 1px solid var(--border); background: #f6fafc; position: sticky; bottom: 0; }
.site-search-all:hover { background: #e6f4fb; }
.search-page { max-width: 1180px; margin: 0 auto; padding: 8px 20px 60px; }
.search-page h1 { font-size: 1.5rem; margin: 6px 0 4px; color: var(--brand); }
.search-page .search-meta { color: var(--text-muted); margin: 0 0 22px; }
.search-card-snippet { display: block; margin-top: 6px; font-size: 0.78rem; line-height: 1.35; color: var(--text-muted); text-align: center; }
.search-card-snippet mark { background: #fff1b8; color: inherit; padding: 0 1px; border-radius: 2px; }
.search-card-group { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-muted); text-align: center; }

/* home hero slider */
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(31,40,52,0.84) 0%, rgba(31,40,52,0.58) 55%, rgba(31,40,52,0.12) 100%); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
.home-hero-inner { position: relative; z-index: 2; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.16); color: #fff; font-size: 18px; cursor: pointer; backdrop-filter: blur(2px); }
.hero-arrow:hover { background: rgba(255,255,255,0.32); }
.hero-prev { left: 14px; } .hero-next { right: 14px; }
.hero-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 99px; border: none; padding: 0; background: rgba(255,255,255,0.5); cursor: pointer; transition: width .2s, background .2s; }
.hero-dot.active { width: 26px; background: #fff; }
@media (max-width: 700px) { .hero-arrow { display: none; } }

/* Footer legal line and privacy page */
.footer-links { margin-bottom: 14px; }
.footer-legal { color: #9aa3b2; font-size: 0.78rem; line-height: 1.5; }
.footer-legal p { margin: 3px 0; }
.legal-page { max-width: 820px; margin: 0 auto; padding: 8px 20px 60px; line-height: 1.6; }
.legal-page h1 { font-size: 1.5rem; margin: 6px 0 4px; color: var(--brand); }
.legal-page h2 { font-size: 1.05rem; margin: 26px 0 6px; color: var(--brand); }
.legal-page p { margin: 0 0 10px; }
.legal-updated { color: var(--text-muted); margin: 0 0 12px; }

/* Matching ranges: collapsed by default */
.related-ranges-full { padding: 0; }
.related-ranges-full .related-ranges-title { margin: 0; padding: 16px 24px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.related-ranges-full .related-ranges-title::-webkit-details-marker { display: none; }
.related-ranges-full .related-ranges-title::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .15s; flex: none; }
.related-ranges-full details[open] > .related-ranges-title::after { transform: rotate(-135deg); margin-top: 4px; }
.related-ranges-full .related-ranges-title:hover { color: var(--brand-light); }
.related-ranges-full .related-ranges-grid { padding: 0 24px 24px; }
