/* Responsive layer for the site.
   The pages are a fixed 1440px desktop export with inline styles and no
   breakpoints, so this targets the repeated inline-style patterns directly.
   IMPORTANT: support.js renders these through React, which re-serializes
   every inline style attribute (adds a space after each ':'/';', converts
   hex colors to rgb(), appends "px" to unitless 0). Selectors below match
   that RENDERED form, not the literal source markup. */

html { overflow-x: hidden; }
body { max-width: 100%; }
img { max-width: 100%; }

/* ------------------------------------------------------------------------
   BRAND COLOURS (see CLAUDE.md). Every brand's content uses its own colour
   for accents, borders, labels, links, buttons and coloured text:
     Toro red · Spectrum maroon · TourTurf green · Nexmow blue ·
     SpotOn (Innoquest) black + red. TTI's own content keeps the site
     blue/green.
   Put .tti-brand--<name> on a brand's section (or page content wrapper).
   It re-points the design system's blue and green accent tokens to the
   brand colour inside that element, so inline var(--blue-700),
   var(--text-water), tone="water" labels, DS buttons and so on all follow
   without per-element changes. Keep the site header/nav OUTSIDE the scope.
   ------------------------------------------------------------------------ */
:root {
  --brand-toro: #E13A3E;      --brand-toro-dark: #B8282C;      --brand-toro-tint: #F9DCDD;      --brand-toro-faint: #FDF3F3;
  --brand-spectrum: #B71F3F;  --brand-spectrum-dark: #8E1730;  --brand-spectrum-tint: #F3D9DF;  --brand-spectrum-faint: #FBF1F3;
  --brand-tourturf: #379B57;  --brand-tourturf-dark: #266C3C;  --brand-tourturf-tint: #E1F0E5;  --brand-tourturf-faint: #F2F9F4;
  --brand-nexmow: #2C7BB6;    --brand-nexmow-dark: #1E567F;    --brand-nexmow-tint: #DFEBF4;    --brand-nexmow-faint: #F1F7FB;
  --brand-spoton: #D52B1E;    --brand-spoton-dark: #A8201A;    --brand-spoton-tint: #F8DCD9;    --brand-spoton-faint: #FDF3F2;
  --brand-spoton-ink: #1C2622;
}
/* --b-on-ink: a lighter shade of each brand colour for small text on the
   dark (ink) bands, where the full colour would be too dark to read */
.tti-brand--toro     { --b: var(--brand-toro);     --b-dark: var(--brand-toro-dark);     --b-tint: var(--brand-toro-tint);     --b-faint: var(--brand-toro-faint);     --b-on-ink: #F27C7F; }
.tti-brand--spectrum { --b: var(--brand-spectrum); --b-dark: var(--brand-spectrum-dark); --b-tint: var(--brand-spectrum-tint); --b-faint: var(--brand-spectrum-faint); --b-on-ink: #E3728A; }
.tti-brand--tourturf { --b: var(--brand-tourturf); --b-dark: var(--brand-tourturf-dark); --b-tint: var(--brand-tourturf-tint); --b-faint: var(--brand-tourturf-faint); --b-on-ink: #74C98E; }
.tti-brand--nexmow   { --b: var(--brand-nexmow);   --b-dark: var(--brand-nexmow-dark);   --b-tint: var(--brand-nexmow-tint);   --b-faint: var(--brand-nexmow-faint);   --b-on-ink: #7FB4DA; }
.tti-brand--spoton   { --b: var(--brand-spoton);   --b-dark: var(--brand-spoton-dark);   --b-tint: var(--brand-spoton-tint);   --b-faint: var(--brand-spoton-faint);   --b-on-ink: #F2685D; }
.tti-brand--toro, .tti-brand--spectrum, .tti-brand--tourturf, .tti-brand--nexmow, .tti-brand--spoton {
  /* raw palette */
  --blue-500: var(--b); --blue-700: var(--b-dark); --blue-100: var(--b-tint); --blue-050: var(--b-faint);
  --green-500: var(--b); --green-700: var(--b-dark); --green-100: var(--b-tint); --green-050: var(--b-faint);
  /* semantic tokens (they resolve at :root, so each must be re-pointed here too) */
  --text-water: var(--b-dark); --text-turf: var(--b-dark);
  --text-link: var(--b); --text-link-hover: var(--b-dark);
  --surface-water: var(--b-tint); --surface-water-faint: var(--b-faint);
  --surface-turf: var(--b-tint); --surface-turf-faint: var(--b-faint);
  --border-water: var(--b); --border-turf: var(--b); --border-focus: var(--b);
  --accent-water: var(--b); --accent-turf: var(--b);
  --toro-red: var(--b); --toro-red-dark: var(--b-dark);
  --spoton-red: var(--b); --spoton-red-dark: var(--b-dark);
}

.tti-nav-toggle-input { display: none; }
.tti-nav-toggle-btn { display: none; }

/* floating back-to-top button, all pages, all screen sizes */
.tti-back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(28,38,34,.28);
}
.tti-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* clickable promo card (Mappr / TTI Tools call-outs scattered across pages),
   a photo background behind a dark overlay, matching the hero-panel pattern
   used elsewhere on the site (e.g. the product hero images). */
.tti-promo-card {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 40px;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.tti-promo-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tti-promo-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,38,34,.6);
  transition: background-color .15s ease;
}
.tti-promo-card:hover .tti-promo-card__overlay { background: rgba(28,38,34,.45); }
.tti-promo-card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  text-align: center;
}

/* header: keep the company name on one line each (EN / 中) and leave room
   before the nav; on narrower desktops tighten the nav spacing so it fits */
.tti-header-bar { gap: 24px; }
.tti-header-bar > a span { white-space: nowrap; }
/* menu labels never wrap (Chinese can otherwise break between any two
   characters when the bar is tight, e.g. 服務項 / 目) */
.tti-nav-links > a, .tti-nav-links > span { white-space: nowrap; flex-shrink: 0; }
@media (min-width: 1101px) and (max-width: 1180px) {
  .tti-nav-links { gap: 16px !important; }
}

/* main nav collapses behind a hamburger toggle at 1100px and below: ten
   items plus cart and contact don't fit on one line any narrower (Chinese
   labels especially). This is wider than the 900px breakpoint the rest of
   the mobile layout uses; the header only becomes fixed below 900px. */
@media (max-width: 1100px) {
  .tti-header-bar { position: relative; }
  .tti-nav-toggle-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--line-strong);
    background: transparent; cursor: pointer; font-size: 18px; color: var(--ink);
    flex: 0 0 auto;
  }
  .tti-nav-links {
    display: none !important;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column !important; align-items: stretch !important;
    gap: 0 !important; background: #fff; border-bottom: 1px solid var(--line-strong);
    padding: 8px 16px 16px; z-index: 40;
    box-shadow: 0 8px 16px rgba(28,38,34,.12);
  }
  .tti-nav-links > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tti-nav-toggle-input:checked ~ .tti-nav-links { display: flex !important; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .tti-nav-links { padding: 8px 40px 16px; }
}

/* collapsible service cards (about.html "What we do"): only the title row
   shows until the card is hovered (desktop) or tapped (any device), then the
   body slides open and pushes the cards below down. Same behaviour as the
   homepage's version (which targets the DS Card internals in index.html).
   Each card is a <label> around a hidden checkbox so a tap toggles it on
   every phone; the body opens with max-height, which behaves the same in
   every browser (a 0fr -> 1fr grid row stayed shut on some mobile Safari).
   Items are padded instead of using grid gap and stretch to the row height,
   with the card itself pinned to the top, so the hover area has no dead
   zones and moving between cards never collapses everything at once. */
.tti-svc-item { display: grid; padding: 8px; outline: none; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tti-svc-item > .tti-svc-card { align-self: start; }
.tti-svc-toggle { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tti-svc-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 320ms cubic-bezier(.2,0,.2,1), opacity 200ms ease;
}
.tti-svc-body__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 0;
  transition: padding 280ms cubic-bezier(.2,0,.2,1);
}
.tti-svc-toggle:checked ~ .tti-svc-card .tti-svc-body { max-height: 40em; opacity: 1; }
.tti-svc-toggle:checked ~ .tti-svc-card .tti-svc-body__inner { padding-top: 12px; }
@media (hover: hover) and (pointer: fine) {
  .tti-svc-item:hover .tti-svc-body { max-height: 40em; opacity: 1; }
  .tti-svc-item:hover .tti-svc-body__inner { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tti-svc-body, .tti-svc-body__inner { transition: none; }
}

/* brand logo on a white tile in the corner of a photo (homepage product-line
   panels); the tile keeps dark or transparent logos readable on any photo */
.tti-photo-logo {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 12px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 2px 10px rgba(28,38,34,.25);
}
.tti-photo-logo img { display: block; height: 36px; width: auto; max-width: 160px; object-fit: contain; }

/* TourTurf product page (tourturf.html): one long listing per product,
   reachable by #anchor from the homepage carousel and the jump nav */
.tti-tt-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tti-tt-jump a {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border: 1px solid #5B6B62; color: #fff;
  font: 600 13px/1 var(--font-en);
  transition: background .15s ease, border-color .15s ease;
}
.tti-tt-jump a:hover { color: #fff; background: rgba(255,255,255,.08); border-color: #9CCB7A; }
.tti-tt-jump__no { font: 400 11px/1 var(--font-mono); color: var(--b-on-ink, #9CCB7A); }
.tti-tt-jump--light { margin-top: 0; }
.tti-tt-jump--light a { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.tti-tt-jump--light a:hover { color: var(--ink); background: var(--surface-turf-faint); border-color: var(--green-500); }
.tti-tt-jump--light .tti-tt-jump__no { color: var(--green-700); }
.tti-tt-section { scroll-margin-top: 0; }
@media (max-width: 900px) { .tti-tt-section { scroll-margin-top: 110px; } }
.tti-tt-product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-500);
  scroll-margin-top: 24px;
  transition: box-shadow .4s ease;
}
.tti-tt-product.is-target { box-shadow: 0 0 0 3px var(--green-500); }
.tti-tt-product__media { display: flex; align-items: center; justify-content: center; height: 440px; padding: 24px; box-sizing: border-box; border-right: 1px solid var(--line); }
.tti-tt-product__media img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
/* photo (not packshot) fills the panel edge to edge */
.tti-tt-product__media--cover { padding: 0; overflow: hidden; }
.tti-tt-product__media--cover img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.tti-tt-product--toro { border-top-color: var(--toro-red); }
.tti-tt-product--toro .tti-tt-eyebrow { color: var(--toro-red-dark); }
.tti-tt-product--toro .tti-tt-name-tc { color: var(--toro-red); }
.tti-tt-bullets { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font: 400 15px/1.5 var(--font-en); color: var(--ink); }
.tti-tt-bullets li::marker { color: var(--toro-red); }
.tti-brand--tourturf .tti-tt-bullets li::marker { color: var(--brand-tourturf); }
.tti-tt-bullets--tc { font-family: var(--font-tc); font-weight: 300; line-height: 1.7; }
.tti-tt-bullets--on-ink { color: #C9D4CD; }
.tti-tt-more { align-self: flex-start; margin-top: 8px; font: 600 11px/1.2 var(--font-en); letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); }
.tti-tt-more:hover { color: var(--green-500); }
.tti-tt-product__info { display: flex; flex-direction: column; gap: 10px; padding: 32px; }
.tti-tt-eyebrow { font: 600 11px/1.2 var(--font-en); letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); }
.tti-tt-name { margin: 0; font: 700 30px/1.2 var(--font-en); letter-spacing: -.01em; color: var(--ink); }
.tti-tt-name-tc { font-family: var(--font-tc); font-weight: 500; font-size: 18px; line-height: 1.5; color: var(--text-turf); }
.tti-tt-sub { font: 400 15px/1.4 var(--font-en); color: var(--slate); }
.tti-tt-desc { margin: 6px 0 0; font: 400 16px/1.55 var(--font-en); max-width: 60ch; }
.tti-tt-desc--tc { font-family: var(--font-tc); font-weight: 300; line-height: 1.75; max-width: 36em; }
.tti-tt-specs { margin: 8px 0 0; border-top: 1px solid var(--line); }
.tti-tt-specs div { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tti-tt-specs dt { font: 500 14px/1.4 var(--font-core); color: var(--slate); }
.tti-tt-specs dd { margin: 0; font: 400 13px/1.4 var(--font-mono); color: var(--ink); text-align: right; }
.tti-tt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tti-tt-tags span { font: 500 12px/1 var(--font-core); padding: 6px 10px; border: 1px solid var(--line-strong); background: #fff; }
@media (max-width: 900px) {
  .tti-tt-product { grid-template-columns: minmax(0, 1fr); scroll-margin-top: 140px; }
  .tti-tt-product__media { height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tti-tt-product__info { padding: 20px; }
  .tti-tt-name { font-size: 24px; }
  .tti-tt-specs div { flex-direction: column; gap: 2px; }
  .tti-tt-specs dd { text-align: left; }
}

/* Tools page (tools.html): instrument and kit cards, no photos yet */
.tti-tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-500);
  min-width: 0;
}
.tti-tool-card--kit { border-top-color: var(--green-500); }
.tti-tool-card--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tti-tool-card__meta { font: 600 11px/1.2 var(--font-en); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.tti-tool-card__name { font: 700 24px/1.2 var(--font-en); letter-spacing: -.01em; color: var(--ink); }
.tti-tool-card__tc { font-family: var(--font-tc); font-weight: 400; font-size: 15px; line-height: 1.6; color: var(--slate); }
.tti-tool-card__text { margin: 4px 0 0; font: 400 15px/1.55 var(--font-en); max-width: 60ch; }
.tti-tool-card__text--tc { font-family: var(--font-tc); font-weight: 300; line-height: 1.75; max-width: 36em; }
.tti-tool-card .tti-tt-tags { margin-top: auto; padding-top: 8px; }
/* whole card is a link (TDR cards -> tdr.html#model) */
.tti-tool-card--link { color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.tti-tool-card--link:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: 0 8px 20px rgba(28,38,34,.10); }
.tti-tool-card--link:hover .tti-tool-card__media img { transform: scale(1.04); }
.tti-tool-card__media {
  display: flex; align-items: center; justify-content: center;
  height: 200px; margin: -24px -24px 12px; padding: 16px;
  background: #fff; border-bottom: 1px solid var(--line); overflow: hidden;
}
.tti-tool-card__media img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; transition: transform .2s ease; }
.tti-tool-card__media--empty { flex-direction: column; gap: 4px; background: var(--surface-sunken); font: 500 13px/1.4 var(--font-core); color: var(--slate); }
.tti-tool-card__media--empty span:first-child { font-weight: 700; color: var(--ink); }
/* TDR page (tdr.html): product listings reuse .tti-tt-product, blue accent */
.tti-tdr { border-top-color: var(--blue-500); }
/* photo gallery: radio inputs + labels so the chosen photo survives the
   page's re-renders; first photo shows when nothing is picked yet (a bare
   `checked` attribute doesn't survive the template renderer) */
.tti-gallery { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-right: 1px solid var(--line); min-width: 0; }
.tti-gallery__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tti-gallery__main { display: flex; align-items: center; justify-content: center; height: 420px; background: #fff; overflow: hidden; }
.tti-gallery__main--empty { flex-direction: column; gap: 4px; background: var(--surface-sunken); font: 500 13px/1.4 var(--font-core); color: var(--slate); }
.tti-gallery__main--empty span:first-child { font-weight: 700; color: var(--ink); }
.tti-gallery__img { display: none; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.tti-gallery__img--cover { width: 100%; height: 100%; object-fit: cover; }
.tti-gallery__img:first-child { display: block; }
.tti-gallery__radio:checked ~ .tti-gallery__main .tti-gallery__img { display: none; }
.tti-gallery__radio:nth-of-type(1):checked ~ .tti-gallery__main .tti-gallery__img:nth-child(1),
.tti-gallery__radio:nth-of-type(2):checked ~ .tti-gallery__main .tti-gallery__img:nth-child(2),
.tti-gallery__radio:nth-of-type(3):checked ~ .tti-gallery__main .tti-gallery__img:nth-child(3),
.tti-gallery__radio:nth-of-type(4):checked ~ .tti-gallery__main .tti-gallery__img:nth-child(4),
.tti-gallery__radio:nth-of-type(5):checked ~ .tti-gallery__main .tti-gallery__img:nth-child(5),
.tti-gallery__radio:nth-of-type(6):checked ~ .tti-gallery__main .tti-gallery__img:nth-child(6),
.tti-gallery__radio:nth-of-type(7):checked ~ .tti-gallery__main .tti-gallery__img:nth-child(7),
.tti-gallery__radio:nth-of-type(8):checked ~ .tti-gallery__main .tti-gallery__img:nth-child(8),
.tti-gallery__radio:nth-of-type(9):checked ~ .tti-gallery__main .tti-gallery__img:nth-child(9),
.tti-gallery__radio:nth-of-type(10):checked ~ .tti-gallery__main .tti-gallery__img:nth-child(10) { display: block; }
.tti-gallery__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.tti-gallery__thumbs label {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; padding: 4px; box-sizing: border-box;
  background: #fff; border: 1px solid var(--line); cursor: pointer; overflow: hidden;
}
.tti-gallery__thumbs label:hover { border-color: var(--blue-500); }
.tti-gallery__thumbs img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.tti-gallery__radio:nth-of-type(1):checked ~ .tti-gallery__thumbs label:nth-child(1),
.tti-gallery__radio:nth-of-type(2):checked ~ .tti-gallery__thumbs label:nth-child(2),
.tti-gallery__radio:nth-of-type(3):checked ~ .tti-gallery__thumbs label:nth-child(3),
.tti-gallery__radio:nth-of-type(4):checked ~ .tti-gallery__thumbs label:nth-child(4),
.tti-gallery__radio:nth-of-type(5):checked ~ .tti-gallery__thumbs label:nth-child(5),
.tti-gallery__radio:nth-of-type(6):checked ~ .tti-gallery__thumbs label:nth-child(6),
.tti-gallery__radio:nth-of-type(7):checked ~ .tti-gallery__thumbs label:nth-child(7),
.tti-gallery__radio:nth-of-type(8):checked ~ .tti-gallery__thumbs label:nth-child(8),
.tti-gallery__radio:nth-of-type(9):checked ~ .tti-gallery__thumbs label:nth-child(9),
.tti-gallery__radio:nth-of-type(10):checked ~ .tti-gallery__thumbs label:nth-child(10) { border: 2px solid var(--blue-500); }
/* gallery inside a small product tile (e.g. Flex800 on the turf irrigation page) */
.tti-gallery--tile { padding: 12px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
.tti-gallery--tile .tti-gallery__main { height: 220px; }
.tti-gallery--tile .tti-gallery__thumbs { gap: 6px; }
.tti-gallery--tile .tti-gallery__thumbs label { width: 44px; height: 44px; padding: 3px; }

/* gallery as a product page hero (e.g. INFINITY) */
.tti-gallery--hero { padding: 32px 40px; border-right: 0; justify-content: center; background: #fff; }
.tti-gallery--hero .tti-gallery__main { height: 400px; }
@media (max-width: 900px) {
  .tti-gallery--hero { padding: 16px; }
  .tti-gallery--hero .tti-gallery__main { height: 300px; }
}

/* gallery inside a Tools card: same size as a card photo, thumbs overlaid */
.tti-gallery.tti-gallery--card { position: relative; margin: -24px -24px 12px; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); gap: 0; }
.tti-gallery--card .tti-gallery__main { height: 200px; padding: 16px; box-sizing: border-box; }
.tti-gallery--card .tti-gallery__img--cover { margin: -16px; width: calc(100% + 32px); height: calc(100% + 32px); max-width: none; max-height: none; }
.tti-gallery--card .tti-gallery__thumbs { position: absolute; right: 8px; bottom: 8px; gap: 6px; }
.tti-gallery--card .tti-gallery__thumbs label { width: 36px; height: 36px; padding: 2px; }
@media (max-width: 900px) {
  .tti-gallery { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .tti-gallery__main { height: 300px; }
}
/* downloads (manuals); "coming soon" rows until the PDFs are uploaded */
.tti-dl { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tti-dl__item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  font: 500 14px/1.4 var(--font-core); color: var(--ink);
}
a.tti-dl__item:hover { border-color: var(--blue-500); color: var(--ink); }
.tti-dl__item.is-soon { color: var(--slate); }
.tti-dl__note { font: 400 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); white-space: nowrap; }
.tti-dl--list { max-width: 720px; margin-top: 0; }

/* WatchDog wide card: big context photo + small product shot */
.tti-tool-card__photos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.tti-tool-card__photo-main { display: block; width: 100%; height: 280px; object-fit: cover; }
.tti-tool-card__photo-side { display: block; width: 100%; height: 280px; object-fit: contain; background: #fff; border: 1px solid var(--line); box-sizing: border-box; }
@media (max-width: 900px) {
  .tti-tool-card__photo-main, .tti-tool-card__photo-side { height: 200px; }
}
@media (max-width: 900px) {
  .tti-tool-card--wide { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Lynx Central Control page: feature cards */
.tti-lynx-feature { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--toro-red); min-width: 0; }
.tti-lynx-feature__no { font: 400 11px/1.2 var(--font-mono); color: var(--slate); }
.tti-lynx-feature__name { font: 700 19px/1.25 var(--font-en); letter-spacing: -.01em; color: var(--ink); }
.tti-lynx-feature__name[style*="none"] + .tti-lynx-feature__name { font-family: var(--font-tc); }
.tti-lynx-feature__text { margin: 0; font: 400 14px/1.55 var(--font-en); color: var(--ink); }
.tti-lynx-feature__text--tc { font-family: var(--font-tc); font-weight: 300; line-height: 1.75; }
@media (max-width: 1100px) and (min-width: 901px) { .tti-lynx-features { grid-template-columns: repeat(2, 1fr) !important; } }

/* Tools page hero: turf-and-soil photo behind the text, faded to ink on the
   left so the white heading stays readable (photo: Pexels, free licence) */
.tti-tools-hero {
  min-height: 460px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
  background-image:
    linear-gradient(90deg, rgba(28,38,34,.96) 0%, rgba(28,38,34,.86) 38%, rgba(28,38,34,.35) 70%, rgba(28,38,34,.15) 100%),
    url("tools/tools-hero-turf-soil.webp") !important;
  background-size: cover !important;
  background-position: center 30% !important;
}
@media (max-width: 900px) {
  .tti-tools-hero {
    min-height: 0;
    background-image:
      linear-gradient(180deg, rgba(28,38,34,.82) 0%, rgba(28,38,34,.92) 100%),
      url("tools/tools-hero-turf-soil.webp") !important;
  }
}

/* Brand bands with a photo (Tools page): the photo fills the right side and
   fades into the ink band, text and logo sit on solid ink at the left.
   Add .tti-brand-head--photo plus a per-brand photo rule below. */
.tti-brand-head.tti-brand-head--photo {
  min-height: 340px;
  background-color: var(--ink);
  background-repeat: no-repeat;
  background-size: 100% 100%, 55% auto;
  background-position: 0 0, right var(--photo-y, 50%);
  /* logo sits under the text on the left so it doesn't cover the photo */
  flex-direction: column; align-items: flex-start; justify-content: center;
}
.tti-brand-head.tti-brand-head--photo .tti-brand-head__text { max-width: 44%; }
.tti-brand-head.tti-brand-head--photo .tti-brand-head__logo img { height: 40px; }
.tti-brand-head--spectrum.tti-brand-head.tti-brand-head--photo { --photo: url("tools/watchdog-on-course.jpg"); --photo-y: 40%; }
.tti-brand-head--spoton.tti-brand-head--photo   { --photo: url("tools/spoton/pressure-tester-3.webp"); --photo-y: 55%; }
.tti-brand-head.tti-brand-head--photo {
  background-image:
    linear-gradient(90deg, rgba(28,38,34,1) 0%, rgba(28,38,34,1) 47%, rgba(28,38,34,.6) 58%, rgba(28,38,34,.15) 76%, rgba(28,38,34,0) 100%),
    var(--photo);
}
@media (max-width: 900px) {
  .tti-brand-head.tti-brand-head--photo {
    min-height: 0;
    background-image:
      linear-gradient(180deg, rgba(28,38,34,.84) 0%, rgba(28,38,34,.93) 100%),
      var(--photo);
    background-size: cover;
    background-position: center;
  }
  .tti-brand-head.tti-brand-head--photo .tti-brand-head__text { max-width: none; }
}

/* Tools page brand bands (Spectrum / SpotOn / TTI) */
.tti-brand-head {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: 44px 40px; background: var(--ink); color: #fff;
  border-top: 4px solid var(--blue-500); scroll-margin-top: 0;
}
.tti-brand-head--spectrum { border-top-color: var(--brand-spectrum); }
.tti-brand-head--spoton { border-top-color: var(--spoton-red); }
.tti-brand-head--tti { border-top-color: var(--green-500); }
.tti-brand-head__text { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.tti-brand-head__no { font: 600 11px/1.2 var(--font-en); letter-spacing: .08em; text-transform: uppercase; color: var(--b-on-ink, #7FB4DA); }
.tti-brand-head__name { margin: 0; font: 700 36px/1.15 var(--font-en); letter-spacing: -.01em; color: #fff; }
.tti-brand-head__name sup { font-size: .45em; vertical-align: super; }
.tti-brand-head__by { font-weight: 400; font-size: .5em; color: #C9D4CD; letter-spacing: 0; }
.tti-brand-head__desc { margin: 0; font: 400 15px/1.5 var(--font-en); color: #C9D4CD; max-width: 60ch; }
.tti-brand-head__desc--tc { font-family: var(--font-tc); font-weight: 300; line-height: 1.7; max-width: 36em; }
.tti-brand-head__logo { display: flex; align-items: center; padding: 12px 16px; background: #fff; }
.tti-brand-head__logo img { display: block; height: 48px; width: auto; }
/* SpotOn product listings */
:root { --spoton-red: #D52B1E; --spoton-red-dark: #A8201A; }
.tti-spoton { border-top-color: var(--spoton-red); }
.tti-spoton .tti-tt-eyebrow { color: var(--spoton-red-dark); }
.tti-spoton .tti-tt-name-tc { color: var(--spoton-red-dark); }
@media (max-width: 900px) {
  .tti-brand-head { padding: 32px 20px; gap: 20px; scroll-margin-top: 110px; }
  .tti-brand-head__name { font-size: 28px; }
  .tti-brand-head__logo img { height: 36px; }
}

/* waitlist sign-up (Mappr): a button that turns into an email field.
   Open/closed is a checkbox (like the nav toggle) so it survives the page's
   re-renders; after a successful Netlify post the page comes back with
   #waitlist-joined and assets/waitlist.js puts .is-wl-joined on <html>. */
.tti-waitlist { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.tti-waitlist__toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tti-waitlist__open { cursor: pointer; }
.tti-waitlist__field { display: none; align-items: stretch; gap: 0; }
.tti-waitlist__field input {
  width: 260px; height: var(--control-h-lg, 44px); box-sizing: border-box;
  padding: 0 14px; border: 1px solid var(--accent-water); border-right: 0;
  font: 400 15px/1 var(--font-core); color: var(--ink); background: #fff; border-radius: 0;
}
.tti-waitlist__field input:focus { outline: 2px solid var(--blue-500); outline-offset: -2px; }
.tti-waitlist__field button { cursor: pointer; }
.tti-waitlist__toggle:checked ~ .tti-waitlist__open { display: none; }
.tti-waitlist__toggle:checked ~ .tti-waitlist__field { display: inline-flex; animation: tti-wl-in .2s ease; }
@keyframes tti-wl-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.tti-waitlist__done { display: none; align-items: center; gap: 8px; height: var(--control-h-lg, 44px); padding: 0 16px; border: 1px solid #9CCB7A; color: #fff; font: 600 14px/1 var(--font-core); }
html.is-wl-joined .tti-waitlist__open,
html.is-wl-joined .tti-waitlist__field { display: none !important; }
html.is-wl-joined .tti-waitlist__done { display: inline-flex; }
.tti-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
  .tti-waitlist__field input { width: 100%; min-width: 0; }
  .tti-waitlist__field { width: 100%; }
}

/* product photo that links to its product page: slight zoom on hover so it
   reads as clickable */
.tti-photo-link { overflow: hidden; cursor: pointer; }
.tti-photo-link img { transition: transform .2s ease; }
.tti-photo-link:hover img { transform: scale(1.04); }

/* Toro branding on the irrigation pages. Red sampled from assets/brands/toro.png
   so the accents match the logo. */
:root { --toro-red: #E13A3E; --toro-red-dark: #B8282C; }
.tti-toro-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 6px 14px 6px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--toro-red);
}
.tti-toro-badge img { display: block; height: 30px; width: auto; }
.tti-toro-badge__text { display: flex; flex-direction: column; gap: 2px; }
.tti-toro-badge__en { font: 600 11px/1.2 var(--font-en); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.tti-toro-badge__tc { font-family: var(--font-tc); font-weight: 400; font-size: 12px; line-height: 1.4; color: var(--slate); }
.tti-toro-hero { border-bottom: 4px solid var(--toro-red) !important; }
.tti-toro-rule { border-bottom-color: var(--toro-red) !important; }
.tti-toro-label { color: var(--toro-red) !important; font-weight: 600; }
/* DS Card only offers water/turf accents, so recolour the top rule here */
.tti-toro-cards section,
.tti-toro-cards > div { border-top-color: var(--toro-red) !important; }

/* Irrigation landing: one big clickable card per sector (golf/sports turf,
   agriculture), image on top, text below, accent rule in the sector colour. */
.tti-sector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-500);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tti-sector-card--ag { border-top-color: var(--green-500); }
.tti-sector-card:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: 0 8px 20px rgba(28,38,34,.10); }
.tti-sector-card__media { display: block; width: 100%; height: 280px; object-fit: cover; overflow: hidden; }
.tti-sector-card__logo { position: absolute; top: 16px; right: 16px; height: 40px; width: auto; box-shadow: 0 2px 8px rgba(28,38,34,.25); }
.tti-sector-card__body { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.tti-sector-card__eyebrow { font: 600 11px/1.2 var(--font-en); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.tti-sector-card__title { display: block; font: 700 28px/1.2 var(--font-en); letter-spacing: -.01em; }
.tti-sector-card__title-tc { font-family: var(--font-tc); font-weight: 400; font-size: 20px; line-height: 1.5; color: var(--slate); }
.tti-sector-card__text { display: block; font: 400 15px/1.5 var(--font-en); max-width: 52ch; }
.tti-sector-card__text--tc { font-family: var(--font-tc); font-weight: 300; line-height: 1.7; }
.tti-sector-card__cta { margin-top: 8px; font: 600 13px/1.2 var(--font-en); color: var(--blue-700); }
.tti-sector-card--ag .tti-sector-card__cta { color: var(--green-700); }
/* link styled with the design system Button's own tokens (the DS Button
   component renders a <button>, which can't navigate) */
.tti-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-inline);
  height: var(--control-h-lg);
  padding: 0 var(--pad-control-x);
  font: var(--weight-semibold) var(--size-body)/1 var(--font-core);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius-none);
  transition: var(--transition-control);
}
.tti-btn-link--primary { color: var(--text-on-brand); background: var(--accent-water); border: var(--border-w-hairline) solid var(--accent-water); }
.tti-btn-link--primary:hover { color: var(--text-on-brand); background: var(--blue-700); border-color: var(--blue-700); }
.tti-btn-link--md { height: var(--control-h-md, 36px); }
.tti-btn-link--outline { color: var(--accent-water); background: transparent; border: var(--border-w-hairline) solid var(--accent-water); }
.tti-btn-link--outline:hover { color: var(--text-on-brand); background: var(--accent-water); }
.tti-btn-link--turf { color: #fff; background: var(--green-500); border: var(--border-w-hairline) solid var(--green-500); }
.tti-btn-link--turf:hover { color: #fff; background: var(--green-700); border-color: var(--green-700); }
/* section title wrapped in a link: keep the heading's own colour */
.tti-title-link { display: block; color: inherit; }
.tti-title-link:hover { color: inherit; opacity: .8; }
/* clickable tag: same look as the DS Tag component, green accent + hover */
.tti-tag-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: var(--control-h-sm); padding: 0 var(--space-3);
  font: var(--weight-medium) var(--size-small)/1 var(--font-core);
  color: var(--text-body); background: var(--surface-card);
  border: var(--hairline, 1px solid var(--line));
  border-left: var(--border-w-accent) solid var(--green-500);
  transition: background .15s ease, color .15s ease;
}
.tti-tag-link::after { content: "→"; margin-left: 2px; color: var(--green-700); }
.tti-tag-link:hover { color: var(--ink); background: var(--surface-turf-faint); }
.tti-tag-link--toro { border-left-color: var(--toro-red); }
.tti-tag-link--toro::after { color: var(--toro-red); }
.tti-tag-link--toro:hover { background: #FCEBEC; }
/* homepage Toro product-line card in Toro red instead of the water blue
   (overrides the panel's inline colours and the DS heading's tone) */
.tti-toro-panel { background: #FDF5F5 !important; border-top-color: var(--toro-red) !important; }
.tti-toro-eyebrow { color: var(--toro-red-dark) !important; }
.tti-toro-title, .tti-toro-title * { color: var(--toro-red) !important; }
.tti-btn-link--toro-outline { color: var(--toro-red); background: transparent; border: var(--border-w-hairline) solid var(--toro-red); }
.tti-btn-link--toro-outline:hover { color: #fff; background: var(--toro-red); }

/* secondary DS Button on a dark panel: the component ignores a style prop,
   so recolour it from a wrapper */
.tti-on-ink button { color: #fff !important; border-color: rgba(255,255,255,.75) !important; background: transparent !important; }
.tti-on-ink button:hover { background: rgba(255,255,255,.08) !important; }

/* plain-link call-to-action styled like the design system's turf Button,
   for links (the DS Button component renders a <button>, not an <a>) */
.tti-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  background: var(--green-500);
  border: 1px solid var(--green-500);
  color: #fff;
  font: 600 13px/1 var(--font-en);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s ease;
}
.tti-cta-link:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
@media (max-width: 900px) {
  .tti-sector-card__media { height: 200px; }
  .tti-sector-card__title { font-size: 24px; }
}

/* Industry Partners logo carousel: swipeable, center slide scaled up, at
   every screen size — same treatment as the TourTurf carousel below. */
.tti-brand-carousel { padding: 8px 0 24px; border-top: 1px solid var(--line); }
.tti-brand-track {
  display: flex;
  min-width: 0;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px calc(50% - 100px);
  scrollbar-width: none;
}
.tti-brand-track::-webkit-scrollbar { display: none; }
.tti-brand-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 120px;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  opacity: .5;
  transform: scale(.85);
  transition: transform .25s ease, opacity .25s ease;
}
.tti-brand-slide img { display: block; max-width: 100%; max-height: 64px; width: auto; height: auto; }
/* logos with a page of their own link to it; fills the card so the whole
   card is the click target */
.tti-brand-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; -webkit-user-drag: none; }
.tti-brand-slide.is-active {
  opacity: 1;
  transform: scale(1.15);
  border-color: var(--line-strong);
  box-shadow: 0 8px 20px rgba(28,38,34,.12);
}
.tti-brand-carousel .tti-carousel-nav--prev { left: 40px; }
.tti-brand-carousel .tti-carousel-nav--next { right: 40px; }
@media (max-width: 900px) {
  .tti-brand-track { padding: 16px calc(50% - 72px); }
  .tti-brand-slide { width: 144px; height: 100px; padding: 16px; transform: scale(.8); }
  .tti-brand-slide img { max-height: 48px; }
  .tti-brand-slide.is-active { transform: scale(1.2); }
  .tti-brand-carousel .tti-carousel-nav--prev { left: 16px; }
  .tti-brand-carousel .tti-carousel-nav--next { right: 16px; }
}

/* TourTurf photo carousel: swipeable, center slide scaled up, at every
   screen size. */
.tti-tourturf-carousel { width: 100%; min-width: 0; box-sizing: border-box; }
.tti-tourturf-track {
  display: flex;
  min-width: 0;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px calc(50% - 110px);
  scrollbar-width: none;
}
.tti-tourturf-track::-webkit-scrollbar { display: none; }
.tti-tourturf-slide {
  flex: 0 0 auto;
  width: 220px;
  height: 275px;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  opacity: .5;
  transform: scale(.85);
  transition: transform .25s ease, opacity .25s ease;
}
.tti-tourturf-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tti-tourturf-link { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
.tti-tourturf-slide.is-active {
  opacity: 1;
  transform: scale(1.1);
  border-color: var(--line-strong);
  box-shadow: 0 8px 20px rgba(28,38,34,.12);
}
@media (max-width: 520px) {
  .tti-tourturf-slide { width: 180px; height: 225px; }
  .tti-tourturf-track { padding: 16px calc(50% - 90px); }
}
/* shared carousel controls (.tti-carousel): mouse users can't swipe a scroll
   container with no scrollbar, so carousels also get prev/next arrows and
   click-and-drag (wired up in assets/carousel.js). Snap is suspended
   mid-drag so it doesn't fight the pointer. */
.tti-carousel { position: relative; }
.tti-carousel-track { cursor: grab; }
.tti-carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tti-carousel-track.is-dragging > * { transition: none; }
.tti-carousel-track img { user-select: none; -webkit-user-drag: none; }
.tti-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  transition: opacity .2s ease, background .2s ease;
}
.tti-carousel-nav:hover { background: var(--surface-sunken); }
.tti-carousel-nav:disabled { opacity: .3; cursor: default; }
.tti-carousel-nav--prev { left: 0; }
.tti-carousel-nav--next { right: 0; }
/* product packshots: show the whole pack on white instead of cropping */
.tti-tourturf-slide--product img { object-fit: contain; padding: 12px; box-sizing: border-box; }

@media (max-width: 900px) {
  /* stop any flex row from forcing horizontal scroll */
  [style*="display: flex"] { flex-wrap: wrap; }

  /* collapse every grid layout (hero splits, card grids, spec rows) to one column.
     minmax(0, 1fr), not plain 1fr: a grid item's automatic minimum size is based on
     its content, so plain 1fr still refuses to shrink a track below a wide child's
     content width (this bit the TourTurf carousel once it moved inside a grid item). */
  [style*="display: grid"] { grid-template-columns: minmax(0, 1fr) !important; }

  /* shrink the big fixed desktop section paddings */
  [style*="padding: 56px 40px"] { padding: 32px 20px !important; }

  /* header row pins to the top of the viewport while scrolling.
     position:sticky doesn't work here: this row's containing block (a
     framework-internal wrapper div, not something in our markup) is
     shorter than the page, so sticky "runs out" and unsticks partway
     down. position:fixed isn't bounded by that, so it holds for the
     whole page; the JS below measures its height and pads body to
     compensate for it leaving normal flow. */
  .tti-header-bar {
    padding: 12px 16px !important;
    position: fixed !important;
    left: 0; right: 0;
    z-index: 30;
    /* top is set from JS to the topbar's real rendered height */
  }
  .tti-topbar {
    padding: 8px 16px !important;
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 31;
  }
  [style*="padding: 12px 40px; background: rgb(255, 255, 255); border-bottom: 1px solid var(--line);"] { padding: 10px 16px !important; }

  /* hero type scale */
  [style*="font: 700 44px/1.15 var(--font-en)"] { font-size: 30px !important; line-height: 1.2 !important; }
  [style*="font-size: 40px; line-height: 1.4"] { font-size: 26px !important; }
  [style*="font-size: 24px; line-height: 1.7"] { font-size: 17px !important; }

  /* fixed-height hero/media panels */
  [style*="height: 520px"], [style*="height: 480px"],
  [style*="height: 420px"], [style*="height: 600px"] { height: 260px !important; }

  /* fixed-width hero text panel pinned over a full-bleed background image */
  [style*="position: absolute; left: 0px; top: 0px; bottom: 0px; width:"] {
    width: 100% !important;
    right: 0px !important;
    padding: 24px 20px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .tti-topbar > span:first-child { display: none; }
  [style*="font: 700 44px/1.15 var(--font-en)"] { font-size: 26px !important; }
}
