/* Directory pages: /services/ and /safety-products/
   Card grid, hazard tiles, icon headings. Loaded after each page's inline directory styles, so selectors start with "body". */

/* ---- trust strip (products hub) ---- */
body .pf-trustwrap { padding-top: 0.2rem; }
body .pf-trust { list-style: none; margin: 0; padding: 0.9rem 0 0.2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem 1.4rem; font-size: 0.92rem; line-height: 1.4; color: #2a2d31; }
body .pf-trust li { display: flex; gap: 0.55rem; align-items: flex-start; }
body .pf-trust li::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.12rem; background: var(--red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- intro, search, tiles ---- */
body .pf-intro { padding: clamp(1.4rem, 3.5vw, 2.4rem) 0 clamp(1rem, 2.5vw, 1.6rem); }
body .pf-intro h2 { max-width: 24ch; font-size: clamp(1.7rem, 3vw, 2.4rem); }
body .pf-intro p { color: #3a3f45; max-width: 62ch; }
body .svc-search input { border: 1px solid #c3c7ce; border-radius: 8px; padding: 0.85rem 1rem 0.85rem 2.9rem; font-size: 1.05rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6169' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") no-repeat 0.9rem center / 1.3rem; box-shadow: 0 1px 2px rgba(22, 24, 27, 0.05); }
body .svc-search input:focus-visible { border-color: var(--red); outline: 3px solid rgba(200, 16, 46, 0.25); outline-offset: 0; }
body .pf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 10px; margin: 1.1rem 0 0.9rem; }
body .pf-tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.65rem; text-align: left; font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
body .pf-tile .pf-ico { color: var(--red); flex: none; }
body .pf-tile__name { font-weight: 700; font-size: 0.93rem; line-height: 1.25; }
body .pf-tile__n { font-size: 0.8rem; font-weight: 700; color: var(--slate); background: var(--panel); border-radius: 999px; padding: 0.1rem 0.5rem; }
body .pf-tile:hover { border-color: #c3c7ce; box-shadow: 0 4px 14px rgba(22, 24, 27, 0.08); transform: translateY(-1px); }
body .pf-tile:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
body .pf-tile.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
body .pf-tile.is-on .pf-ico { color: #fff; }
body .pf-tile.is-on .pf-tile__n { background: rgba(255, 255, 255, 0.18); color: #fff; }
body .pf-bar--az { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.4rem 0 0; }
body .pf-letter { font: inherit; font-size: 0.85rem; font-weight: 700; min-width: 2.1rem; padding: 0.32rem 0.45rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }
body .pf-letter:hover:not([disabled]) { border-color: var(--ink); }
body .pf-letter.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
body .pf-letter[disabled] { opacity: 0.35; cursor: default; background: transparent; }
body .pf-letter:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---- group headings ---- */
body .svc-group { padding-bottom: clamp(0.8rem, 2vw, 1.2rem); border-bottom: 0; }
body .svc-group + .svc-group, body .svc-group + .svc-note-block { margin-top: 0.6rem; }
body .svc-group__head { border-top: 0; padding-top: 0; margin-bottom: 1rem; gap: 0.3rem; position: relative; }
body .svc-group__head::before { content: ""; display: block; width: 2.6rem; height: 4px; background: var(--red); margin-bottom: 0.7rem; }
body .svc-group__head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
body .pf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.8rem; }
body .pf-head::before { flex: 0 0 100%; max-width: 2.6rem; }
body .pf-head__ico { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 8px; background: #fdeef0; color: var(--red); }
body .pf-count { margin-left: auto; font-size: 0.85rem; font-weight: 700; color: var(--slate); }
body .svc-theme { padding: 0; border-top: 0; }

/* ---- card grid (used by both directories) ---- */
body .svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 14px; }
body .svc-theme:not(.svc-theme--flat) .svc-list { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
body .svc-row { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.7rem; padding: 1.1rem 1.15rem 1rem; border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 1px 0 rgba(22, 24, 27, 0.03); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; overflow: hidden; }
body .svc-row:last-child { border-bottom: 1px solid var(--line); }
body .svc-row::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 3px; transform: scaleX(0); transform-origin: left; }
body .svc-row:hover, body .svc-row:focus-within { background: #fff; border-color: #c3c7ce; box-shadow: 0 10px 24px rgba(22, 24, 27, 0.1); transform: translateY(-2px); }
body .svc-row:hover::before, body .svc-row:focus-within::before { transform: scaleX(1); }
body .svc-row__main { flex: 1; }
body .svc-row h4 { font-size: 1.08rem; line-height: 1.3; margin: 0 0 0.35rem; }
body .svc-row h4 a:hover { text-decoration: none; color: var(--red); }
body .svc-row p { font-size: 0.93rem; line-height: 1.5; color: #4a4f56; max-width: none; }
body .svc-row__quote { align-self: flex-start; min-height: 0; padding: 0; background: none; border: 0; box-shadow: none; color: var(--red); font-size: 0.88rem; font-weight: 700; letter-spacing: 0; text-transform: none; gap: 0.35rem; }
body .svc-row__quote::after { content: "→"; transition: transform 0.15s; }
body .svc-row:hover .svc-row__quote::after { transform: translateX(3px); }
body .svc-row__quote:hover { background: none; border: 0; box-shadow: none; text-decoration: underline; text-underline-offset: 0.18em; }
body .svc-row__quote:focus-visible { background: none; border: 0; outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---- side rail ---- */
body .svc-rail { border-left: 0; gap: 2px; }
body .svc-rail a { border-left: 0; margin-left: 0; border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.9rem; font-weight: 600; }
body .svc-rail a:hover { background: var(--panel); }
body .svc-rail a.is-active { background: #fdeef0; color: var(--red); }

/* ---- bulk procurement band ---- */
body .pf-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--ink); color: #fff; border-radius: 10px; box-shadow: inset 0 3px 0 var(--red); }
body .pf-band h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 0.4rem; }
body .pf-band p { margin: 0; color: #d5d7db; max-width: 56ch; }
body .pf-band__cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
body .pf-band .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
body .pf-bandwrap { padding-bottom: clamp(1.8rem, 4vw, 2.8rem); }

/* ---- guidance and FAQ ---- */
body .pf-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 1.2rem; }
body .pf-guide__card { padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
body .pf-guide__card h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
body .pf-guide__card p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: #3a3f45; }
body .pf-faq details { border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 8px; }
body .pf-faq summary { cursor: pointer; font-weight: 700; padding: 0.9rem 2.6rem 0.9rem 1rem; list-style: none; position: relative; }
body .pf-faq summary::-webkit-details-marker { display: none; }
body .pf-faq summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--red); }
body .pf-faq details[open] summary::after { content: "\2212"; }
body .pf-faq details p { margin: 0; padding: 0 1rem 1rem; color: #3a3f45; max-width: 68ch; }

/* ---- services page extras ---- */
body .svc-quals li a { border-radius: 8px; background: #fff; }
body .svc-quals li a:hover { box-shadow: 0 8px 20px rgba(22, 24, 27, 0.08); }
body .svc-process ol { border-top-color: var(--red); }

/* ---- tablet and phone ---- */
@media (max-width: 1000px) {
  body .pf-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .pf-guide { grid-template-columns: 1fr; }
  body .svc-jump select { border: 1px solid #c3c7ce; border-radius: 8px; }
}
@media (max-width: 700px) {
  body .pf-trust { grid-template-columns: 1fr; font-size: 0.9rem; }
  body .pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body .pf-tile { grid-template-columns: auto 1fr; padding: 0.65rem 0.7rem; gap: 0.5rem; }
  body .pf-tile__n { display: none; }
  body .pf-tile__name { font-size: 0.86rem; }
  body .pf-bar--az { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.4rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  body .pf-letter { flex: none; }
  body .svc-list { grid-template-columns: 1fr; gap: 10px; }
  body .svc-row { padding: 0.95rem 1rem; gap: 0.5rem; }
  body .svc-row__quote { width: auto; padding: 0; text-align: left; font-size: 0.88rem; }
  body .pf-count { margin-left: 0; flex: 0 0 100%; }
  body .pf-band { padding: 1.2rem; }
  body .pf-band__cta { width: 100%; }
  body .pf-band__cta .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  body .svc-row, body .pf-tile, body .svc-row__quote::after { transition: none; }
  body .svc-row:hover, body .pf-tile:hover { transform: none; }
}

/* ---- make each card read as a link (phones have no hover) ---- */
body .svc-row { padding-right: 3.6rem; }
body .svc-row h4 a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(200, 16, 46, 0.5); text-decoration-thickness: 2px; text-underline-offset: 0.24em; }
body .svc-row h4 a:hover, body .svc-row:focus-within h4 a { color: var(--red); text-decoration-color: var(--red); }
body .svc-row__main::after { content: ""; position: absolute; top: 1rem; right: 1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #fdeef0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / 1.05rem; transition: background-color 0.15s, transform 0.15s; pointer-events: none; }
body .svc-row:hover .svc-row__main::after, body .svc-row:focus-within .svc-row__main::after { background-color: #fbd9de; transform: translateX(2px); }
body .svc-row__quote { padding-top: 0.15rem; }
@media (max-width: 700px) {
  body .svc-row { padding-right: 3.4rem; border-color: #d9dce1; box-shadow: 0 2px 6px rgba(22, 24, 27, 0.06); }
  body .svc-row__main::after { top: 0.95rem; right: 0.9rem; }
}

/* ---- services cards with icon, View Details and Request a Quote (services/index.html, .svc-row--ico) ---- */
body .svc-row.svc-row--ico { position: relative; display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); align-items: start; column-gap: 0.9rem; row-gap: 0.85rem; padding: 1.05rem 1.05rem 1.1rem; border-color: #d9dce1; }
body .svc-row--ico .svc-row__ico { grid-column: 1; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 10px; background: #fdeef0; color: var(--red); }
body .svc-row--ico .svc-row__ico svg { width: 1.7rem; height: 1.7rem; }
body .svc-row--ico .svc-row__main { grid-column: 2; min-width: 0; padding-right: 2.5rem; }
body .svc-row--ico h4 { margin: 0.1rem 0 0.3rem; font-size: 1.1rem; }
body .svc-row--ico h4 a { text-decoration: none; }
body .svc-row--ico h4 a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 0.2em; }
body .svc-row--ico p { margin: 0; color: #3a3f45; font-size: 0.95rem; line-height: 1.5; }
/* chevron in the corner */
body .svc-row--ico .svc-row__main::after { top: 1rem; right: 1rem; width: 2.2rem; height: 2.2rem; background: #fdeef0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat center / 1.1rem; }
/* buttons */
body .svc-row--ico .svc-row__cta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.6rem, 1fr)); gap: 0.6rem; }
body .svc-row.svc-row--ico .svc-row__more,
body .svc-row.svc-row--ico .svc-row__quote { display: flex; align-items: center; justify-content: center; gap: 0.45rem; width: auto; min-height: 2.85rem; margin: 0; padding: 0.55rem 0.8rem; border-radius: 7px; font-size: 0.97rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; text-align: center; white-space: nowrap; text-decoration: none; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
body .svc-row.svc-row--ico .svc-row__more { border: 1.5px solid var(--red); background: #fff; color: var(--ink); }
body .svc-row.svc-row--ico .svc-row__quote { border: 1.5px solid var(--red); background: var(--red); color: #fff; box-shadow: none; }
body .svc-row.svc-row--ico .svc-row__more::after,
body .svc-row.svc-row--ico .svc-row__quote::after { content: "→"; font-weight: 700; transition: transform 0.15s; }
body .svc-row.svc-row--ico .svc-row__more::after { color: var(--red); }
body .svc-row.svc-row--ico .svc-row__more:hover { background: #fdeef0; text-decoration: none; }
body .svc-row.svc-row--ico .svc-row__quote:hover { background: var(--red-dark, #a50d26); border-color: var(--red-dark, #a50d26); color: #fff; text-decoration: none; }
body .svc-row.svc-row--ico .svc-row__more:hover::after, body .svc-row.svc-row--ico .svc-row__quote:hover::after { transform: translateX(3px); }
body .svc-row.svc-row--ico .svc-row__more:focus-visible, body .svc-row.svc-row--ico .svc-row__quote:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
body .svc-row.svc-row--ico:hover .svc-row__quote::after { transform: none; }
body .svc-theme:not(.svc-theme--flat) .svc-list:has(.svc-row--ico), body .svc-list:has(.svc-row--ico) { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
@media (max-width: 700px) {
  body .svc-list:has(.svc-row--ico), body .svc-theme:not(.svc-theme--flat) .svc-list:has(.svc-row--ico) { grid-template-columns: 1fr; gap: 12px; }
  body .svc-row.svc-row--ico { padding: 0.95rem 0.9rem 1rem; column-gap: 0.8rem; }
  body .svc-row--ico .svc-row__cta { grid-template-columns: 1fr 1fr; }
  body .svc-row.svc-row--ico .svc-row__more, body .svc-row.svc-row--ico .svc-row__quote { padding-inline: 0.4rem; font-size: 0.93rem; }
  body .svc-row--ico .svc-row__main::after { top: 0.9rem; right: 0.85rem; }
}
@media (min-width: 701px) {
  body .svc-row.svc-row--ico .svc-row__more, body .svc-row.svc-row--ico .svc-row__quote { padding-inline: 0.5rem; font-size: 0.92rem; gap: 0.35rem; }
}
@media (max-width: 359px) {
  body .svc-row--ico .svc-row__cta { grid-template-columns: 1fr; }
}

/* ---- professional qualifications cards (services/index.html, .qual-card) ---- */
body .svc-quals ul.qual-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 12px; margin: 0 0 1.3rem; padding: 0; list-style: none; }
body .svc-quals .qual-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.05rem 1.1rem; border: 1px solid #d9dce1; border-radius: 10px; background: #fff; box-shadow: 0 2px 6px rgba(22, 24, 27, 0.05); transition: border-color 0.15s, box-shadow 0.15s; }
body .svc-quals .qual-card:hover { border-color: #c3c7ce; box-shadow: 0 10px 24px rgba(22, 24, 27, 0.1); }
body .svc-quals .qual-card h4 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
body .svc-quals .qual-card h4 a { color: var(--ink); text-decoration: none; }
body .svc-quals .qual-card h4 a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 0.2em; }
body .svc-quals .qual-card p { margin: 0 0 0.5rem; color: #3a3f45; font-size: 0.95rem; line-height: 1.45; }
body .svc-quals .qual-card .svc-row__cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.6rem, 1fr)); gap: 0.6rem; margin-top: auto; }
body .svc-quals .qual-card .svc-row__more,
body .svc-quals .qual-card .svc-row__quote { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 2.85rem; margin: 0; padding: 0.55rem 0.6rem; border: 1.5px solid var(--red); border-radius: 7px; font-size: 0.97rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; white-space: nowrap; text-decoration: none; box-shadow: none; transition: background-color 0.15s, border-color 0.15s; }
body .svc-quals .qual-card .svc-row__more { background: #fff; color: var(--ink); }
body .svc-quals .qual-card .svc-row__quote { background: var(--red); color: #fff; }
body .svc-quals .qual-card .svc-row__more::after, body .svc-quals .qual-card .svc-row__quote::after { content: "→"; font-weight: 700; transition: transform 0.15s; }
body .svc-quals .qual-card .svc-row__more::after { color: var(--red); }
body .svc-quals .qual-card .svc-row__more:hover { background: #fdeef0; }
body .svc-quals .qual-card .svc-row__quote:hover { background: var(--red-dark, #a50d26); border-color: var(--red-dark, #a50d26); color: #fff; }
body .svc-quals .qual-card .svc-row__more:hover::after, body .svc-quals .qual-card .svc-row__quote:hover::after { transform: translateX(3px); }
body .svc-quals .qual-card .svc-row__more:focus-visible, body .svc-quals .qual-card .svc-row__quote:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
body .svc-quals .qual-compare { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 7px; text-transform: none; letter-spacing: 0; font-size: 1rem; }
body .svc-quals .qual-compare::after { content: "→"; transition: transform 0.15s; }
body .svc-quals .qual-compare:hover::after { transform: translateX(3px); }
@media (max-width: 700px) {
  body .svc-quals ul.qual-list { grid-template-columns: 1fr; gap: 10px; }
  body .svc-quals .qual-card { padding: 0.9rem 0.9rem 1rem; }
  body .svc-quals .qual-card .svc-row__cta { grid-template-columns: 1fr 1fr; }
  body .svc-quals .qual-card .svc-row__more, body .svc-quals .qual-card .svc-row__quote { padding-inline: 0.4rem; font-size: 0.93rem; }
}
@media (max-width: 359px) { body .svc-quals .qual-card .svc-row__cta { grid-template-columns: 1fr; } }
/* undo the page's older ".svc-quals li a" box style inside the new cards */
body .svc-quals .qual-card h4 a { display: inline; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body .svc-quals .qual-card .svc-row__cta a { flex-direction: row; height: auto; }
body .svc-quals .qual-card a:hover { box-shadow: none; }

/* ---- Safety Products page: fill the blank areas (scoped to .pf-* classes, which only this page uses) ---- */
/* intro: heading and text on the left, search on the right, tiles and A-Z full width below */
@media (min-width: 1000px) {
  body .pf-intro > .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
  body .pf-intro > .wrap > h2 { grid-column: 1; grid-row: 1; max-width: none; }
  body .pf-intro > .wrap > p { grid-column: 1; grid-row: 2; }
  body .pf-intro > .wrap > .svc-search { grid-column: 2; grid-row: 1 / span 2; margin: 0 0 0.2rem; max-width: none; align-self: end; }
  body .pf-intro > .wrap > .pf-tiles, body .pf-intro > .wrap > .pf-bar { grid-column: 1 / -1; }
}
/* tiles: "All categories" takes a full row so the other 12 fill complete rows at every width */
body .pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .pf-tile[data-group="all"] { grid-column: 1 / -1; }
@media (min-width: 701px) { body .pf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { body .pf-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { body .pf-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* product cards: two equal columns, buttons level along the bottom, a lone last card spans the row */
@media (min-width: 701px) {
  body .pf-head + .svc-theme .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-items: stretch; }
  body .pf-head + .svc-theme .svc-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
body .pf-head + .svc-theme .svc-row--ico { grid-template-rows: 1fr auto; }
body .pf-head + .svc-theme .svc-row--ico .svc-row__ico { align-self: start; }
/* tighter space between product groups (only groups that use the product heading) */
body .svc-group:has(> .pf-head) { padding-top: clamp(1.2rem, 2.6vw, 2rem); padding-bottom: 0.4rem; margin-top: 0; scroll-margin-top: 5.5rem; }

/* ---- Services page: remove the empty left column beside each sub-heading, fill the intro (scoped: only /services/ has non-flat themes and a plain .svc-intro) ---- */
body .svc-theme:not(.svc-theme--flat) { grid-template-columns: 1fr; padding: 1.3rem 0 0.4rem; }
body .svc-theme:not(.svc-theme--flat) h3 { position: static; margin: 0 0 0.9rem; font-size: 1.35rem; display: flex; align-items: center; gap: 0.7rem; }
body .svc-theme:not(.svc-theme--flat) h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (min-width: 701px) {
  body .svc-theme:not(.svc-theme--flat) .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-items: stretch; gap: 14px; }
  body .svc-theme:not(.svc-theme--flat) .svc-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
body .svc-theme:not(.svc-theme--flat) .svc-row--ico { grid-template-rows: 1fr auto; }
body .svc-theme:not(.svc-theme--flat) .svc-row--ico .svc-row__ico { align-self: start; }
@media (min-width: 1000px) {
  body .svc-intro:not(.pf-intro) > .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
  body .svc-intro:not(.pf-intro) > .wrap > h2 { grid-column: 1; grid-row: 1; max-width: none; align-self: end; }
  body .svc-intro:not(.pf-intro) > .wrap > p:not(.svc-help) { grid-column: 1; grid-row: 2; align-self: start; }
  body .svc-intro:not(.pf-intro) > .wrap > .svc-search { grid-column: 2; grid-row: 1; margin: 0; max-width: none; align-self: end; }
  body .svc-intro:not(.pf-intro) > .wrap > .svc-help { grid-column: 2; grid-row: 2; margin: 0.6rem 0 0; align-self: start; }
}
/* Services page enquiry block: heading and buttons on the left, form on the right (tablet landscape and wider) */
@media (min-width: 900px) {
  body:has(.svc-intro:not(.pf-intro)) .courses-enquire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); column-gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: clamp(2.4rem, 5vw, 3.6rem) max(1.2rem, calc((100% - var(--max)) / 2)); }
  body:has(.svc-intro:not(.pf-intro)) .courses-enquire > .wrap { width: auto; margin: 0; }
  body:has(.svc-intro:not(.pf-intro)) .courses-enquire__head { padding: 0; position: sticky; top: 7rem; }
  body:has(.svc-intro:not(.pf-intro)) .courses-enquire__form--solo { max-width: none; }
}
