/* Aqueon Global: additions to the shared Geo Constech design system (site.css).
   Same tokens, type and layout; this file adds the side gutter with safe-area insets,
   the product catalogue (families, rows, job filter) and a few small pieces. */

/* side gutter that also clears a phone's side system bar */
.wrap {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.actionbar {
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: var(--paper); }

/* logo: text sits inside the SVG and uses the page fonts */
.brand svg { height: 42px; }
.hero .drawing .tag { animation: none; }
.sheet-head .brand svg { height: 32px; }
.foot-brand svg { height: 42px; }

/* home */
.cards.ways { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card .card-go { margin-top: auto; }
.fam-name { font-family: var(--font-display); font-stretch: 112%; font-size: 1.4rem; font-weight: 750; }
.more-link { margin-top: 18px; }

/* catalogue */
.job-filter { border: 0; margin: 0 0 clamp(20px, 3vw, 32px); padding: 0; min-width: 0; display: grid; gap: 12px; }
.job-filter legend { padding: 0; margin-bottom: 12px; }
.group { padding-top: clamp(20px, 3vw, 36px); }
.group + .group { margin-top: clamp(24px, 4vw, 48px); }
.group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.group-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.mcb { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 1.02rem; color: var(--green); margin: 0; }
.family { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 12px clamp(20px, 4vw, 48px); padding-block: 22px 8px; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.family > * { min-width: 0; }
.fam-head { display: grid; gap: 6px; align-content: start; }
.fam-title { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 750; }
.fam-head .muted { font-size: 0.95rem; }
.family .rows { border-top: 0; }
.family .rows li { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.6fr); padding: 12px 0; }
.family .rows li:last-child { border-bottom: 0; }
.rows li:target { background: color-mix(in srgb, var(--green-hi) 16%, transparent); }
@media (max-width: 860px) {
  .family { grid-template-columns: minmax(0, 1fr); }
  .family .rows li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.catalogue:has(#j-water:checked) .rows li:not([data-j~="water"]),
.catalogue:has(#j-water:checked) .family:not(:has(li[data-j~="water"])),
.catalogue:has(#j-water:checked) .group:not(:has(li[data-j~="water"])),
.catalogue:has(#j-void:checked) .rows li:not([data-j~="void"]),
.catalogue:has(#j-void:checked) .family:not(:has(li[data-j~="void"])),
.catalogue:has(#j-void:checked) .group:not(:has(li[data-j~="void"])),
.catalogue:has(#j-ground:checked) .rows li:not([data-j~="ground"]),
.catalogue:has(#j-ground:checked) .family:not(:has(li[data-j~="ground"])),
.catalogue:has(#j-ground:checked) .group:not(:has(li[data-j~="ground"])),
.catalogue:has(#j-lift:checked) .rows li:not([data-j~="lift"]),
.catalogue:has(#j-lift:checked) .family:not(:has(li[data-j~="lift"])),
.catalogue:has(#j-lift:checked) .group:not(:has(li[data-j~="lift"])),
.catalogue:has(#j-crack:checked) .rows li:not([data-j~="crack"]),
.catalogue:has(#j-crack:checked) .family:not(:has(li[data-j~="crack"])),
.catalogue:has(#j-crack:checked) .group:not(:has(li[data-j~="crack"])),
.catalogue:has(#j-tbm:checked) .rows li:not([data-j~="tbm"]),
.catalogue:has(#j-tbm:checked) .family:not(:has(li[data-j~="tbm"])),
.catalogue:has(#j-tbm:checked) .group:not(:has(li[data-j~="tbm"])),
.catalogue:has(#j-membrane:checked) .rows li:not([data-j~="membrane"]),
.catalogue:has(#j-membrane:checked) .family:not(:has(li[data-j~="membrane"])),
.catalogue:has(#j-membrane:checked) .group:not(:has(li[data-j~="membrane"])),
.catalogue:has(#j-floor:checked) .rows li:not([data-j~="floor"]),
.catalogue:has(#j-floor:checked) .family:not(:has(li[data-j~="floor"])),
.catalogue:has(#j-floor:checked) .group:not(:has(li[data-j~="floor"])),
.catalogue:has(#j-coat:checked) .rows li:not([data-j~="coat"]),
.catalogue:has(#j-coat:checked) .family:not(:has(li[data-j~="coat"])),
.catalogue:has(#j-coat:checked) .group:not(:has(li[data-j~="coat"])) { display: none; }

.catalogue:has(#c-pu:checked) .rows li:not([data-c~="pu"]),
.catalogue:has(#c-pu:checked) .family:not(:has(li[data-c~="pu"])),
.catalogue:has(#c-pu:checked) .group:not(:has(li[data-c~="pu"])),
.catalogue:has(#c-silicate:checked) .rows li:not([data-c~="silicate"]),
.catalogue:has(#c-silicate:checked) .family:not(:has(li[data-c~="silicate"])),
.catalogue:has(#c-silicate:checked) .group:not(:has(li[data-c~="silicate"])),
.catalogue:has(#c-acrylate:checked) .rows li:not([data-c~="acrylate"]),
.catalogue:has(#c-acrylate:checked) .family:not(:has(li[data-c~="acrylate"])),
.catalogue:has(#c-acrylate:checked) .group:not(:has(li[data-c~="acrylate"])),
.catalogue:has(#c-epoxy:checked) .rows li:not([data-c~="epoxy"]),
.catalogue:has(#c-epoxy:checked) .family:not(:has(li[data-c~="epoxy"])),
.catalogue:has(#c-epoxy:checked) .group:not(:has(li[data-c~="epoxy"])),
.catalogue:has(#c-polyurea:checked) .rows li:not([data-c~="polyurea"]),
.catalogue:has(#c-polyurea:checked) .family:not(:has(li[data-c~="polyurea"])),
.catalogue:has(#c-polyurea:checked) .group:not(:has(li[data-c~="polyurea"])),
.catalogue:has(#c-mineral:checked) .rows li:not([data-c~="mineral"]),
.catalogue:has(#c-mineral:checked) .family:not(:has(li[data-c~="mineral"])),
.catalogue:has(#c-mineral:checked) .group:not(:has(li[data-c~="mineral"])) { display: none; }
.filters-2 { display: grid; gap: 18px; margin-bottom: clamp(20px, 3vw, 32px); }
.filters-2 .job-filter { margin: 0; }

/* legal drafts */
.legal { max-width: 70ch; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; margin-bottom: .4em; }
.pending-note { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: .04em; text-transform: uppercase; }

[hidden] { display: none !important; }

/* live contact page until a form endpoint exists */
.mail-box { border: 1px solid var(--ink); padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; align-content: start; }
.mail-box h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
