/* Shared structure for the clinic pages: layout, forms, booking, treatment page, FAQ, footer basics.
   Colours, fonts and shapes come from the variables in style.css, so this file rarely needs editing. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body, 1rem)/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus, var(--brand)); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 32px, var(--wrap, 1180px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.sample { font-size: .78em; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .3em; min-height: 48px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: var(--btn-radius, var(--radius)); font-weight: 600; text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover, var(--brand)); }
.btn-ghost { border-color: var(--line-strong, var(--line)); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* ---------- header + mobile menu (each theme styles the look) ---------- */
.header { position: sticky; top: 0; z-index: 40; }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; text-decoration: none; border-radius: var(--radius); }
.nav a[aria-current="page"] { font-weight: 700; }
.header-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; margin: auto; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav, .header-cta .btn-ghost { display: none; }
  .nav-open .nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--menu-bg, var(--bg)); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0,0,0,.25); }
  .nav-open .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header-cta { order: 2; }
  .nav-toggle { order: 3; margin-left: 0; }
  .header .logo { margin-right: auto; }
}
@media (max-width: 520px) { .hide-sm { display: none; } }
@media (max-width: 420px) { .header-cta .btn { padding: 10px 14px; min-height: 44px; font-size: .92rem; } }

/* ---------- open status ---------- */
[data-open-status] { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
[data-open-status]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
[data-open-status].is-open::before { background: var(--ok, #1a9e6f); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok, #1a9e6f) 22%, transparent); }

/* ---------- page heading ---------- */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 10px 0 14px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow, var(--brand)); }

/* ---------- treatment list ---------- */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--gap, 20px); list-style: none; }
.t-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.t-card h3 { font-size: 1.3rem; }
.t-card p { color: var(--muted); }
.t-card .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 12px; font-size: .9rem; }
.t-card .meta b { font-weight: 700; }
.t-card .links { display: flex; gap: 16px; font-weight: 600; }
.t-card .links a { text-underline-offset: 4px; }
.price-note { margin-top: 28px; color: var(--muted); font-size: .95rem; }

/* ---------- treatment page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-underline-offset: 3px; }
.t-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 28px 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; max-width: 640px; }
.facts div { padding: 16px 18px; background: var(--surface); }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 700; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.t-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.t-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 820px) { .t-body { grid-template-columns: 1fr; } }
.t-body h2, .t-faq h2, .t-more h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 18px; }
.t-steps ol { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.t-steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.t-steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--step-bg, var(--brand)); color: var(--step-ink, var(--brand-ink)); font-weight: 700; }
.t-after ul { display: grid; gap: 12px; padding-left: 1.2em; }
.t-after .note { margin-top: 20px; padding: 16px; border-radius: var(--radius); background: var(--soft, var(--surface)); color: var(--muted); font-size: .92rem; }
.t-faq, .t-more { margin-top: clamp(40px, 6vw, 72px); max-width: 820px; }
.t-more-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; max-width: none; }
.t-more-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.t-more-list a:hover { border-color: var(--ink); }
.t-more-list span { color: var(--muted); font-size: .9rem; }
.empty { display: grid; gap: 16px; justify-items: start; padding-block: 40px; }

/* ---------- FAQ accordion ---------- */
details { border-bottom: 1px solid var(--line); }
details summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }
.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-index { position: sticky; top: 100px; display: grid; gap: 4px; list-style: none; }
.faq-index a { display: block; padding: 8px 12px; border-radius: var(--radius); text-decoration: none; color: var(--muted); }
.faq-index a:hover { color: var(--ink); background: var(--soft, var(--surface)); }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 8px; }
@media (max-width: 820px) { .faq-layout { grid-template-columns: 1fr; } .faq-index { position: static; display: flex; flex-wrap: wrap; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field .hint { font-size: .85rem; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--input-bg, var(--surface)); border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius); }
.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input[aria-invalid="true"] { border-color: var(--danger, #c4372b); }
.field-error { color: var(--danger, #c4372b); font-size: .88rem; font-weight: 600; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius); cursor: pointer; }
.choice input { accent-color: var(--brand); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot span { display: grid; place-items: center; min-height: 44px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius); font-size: .92rem; font-variant-numeric: tabular-nums; background: var(--input-bg, var(--surface)); }
.slot input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 700; }
.slot input:focus-visible + span { outline: 3px solid var(--focus, var(--brand)); outline-offset: 2px; }
.slot.is-taken span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.slots-hint { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; padding: 12px 0; }
.form-note { font-size: .88rem; color: var(--muted); }
.done { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.done:focus { outline: none; }
.done h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.done dl { display: grid; gap: 10px; margin: 24px 0; }
.done dl div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.done dt { color: var(--muted); }
.done dd { margin: 0; font-weight: 600; }
.done .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- booking + contact layout ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.aside { display: grid; gap: 20px; }
.card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card h2, .card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: 8px 0; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--brand-text, var(--ink)); }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a { text-underline-offset: 3px; font-weight: 600; }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--soft, var(--surface)); }
.map svg { width: 100%; height: 100%; }

/* ---------- dentists ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--gap, 20px); list-style: none; }
.doc { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.doc .portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; }
.doc .portrait svg { width: 100%; height: 100%; }
.doc h3 { font-size: 1.25rem; }
.doc .role { font-weight: 600; color: var(--brand-text, var(--brand)); }
.doc .quals, .doc .langs { font-size: .9rem; color: var(--muted); }
.doc .bio { color: var(--muted); }
.doc a { margin-top: auto; font-weight: 600; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.footer { padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h2 { font-family: var(--body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; opacity: .7; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--footer-line, var(--line)); font-size: .85rem; opacity: .85; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #1f8a4c; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float:hover { background: #18723e; }
@media (max-width: 480px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- staffing additions: cards, item page, enquiry steps, team, about, tool panels ---------- */
.sec-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 20px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head .sec-title { margin-bottom: 0; }
.text-link { font-weight: 700; text-underline-offset: 5px; color: var(--brand-text, var(--brand)); }
.t-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.plain-list { display: grid; gap: 6px; padding-left: 1.1em; }
.announce { margin: 0; padding: 8px 16px; text-align: center; font-size: .86rem; font-weight: 600; background: var(--announce-bg, var(--ink)); color: var(--announce-ink, var(--bg)); }
.announce a { color: inherit; }
.range { width: 100%; accent-color: var(--brand); height: 28px; }
.choice input { accent-color: var(--brand); }

/* course cards */
.courses { display: grid; gap: 22px; }
.c-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.c-filters button { min-height: 42px; padding: 6px 15px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--btn-radius, var(--radius)); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; }
.c-filters button span { opacity: .6; margin-left: 2px; }
.c-filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.c-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--gap, 22px); }
.c-item[hidden] { display: none; }
.c-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.c-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.c-img svg, .c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.c-card:hover .c-img svg { transform: scale(1.04); }
.c-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.c-cat { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.c-cat b { color: var(--brand-text, var(--brand)); }
.c-body h3 { font-size: 1.25rem; }
.c-body h3 a { text-decoration: none; }
.c-for { color: var(--muted); font-size: .94rem; }
.c-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 4px 0 6px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.c-facts div { padding: 8px 10px; background: var(--surface); }
.c-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.c-facts dd { margin: 2px 0 0; font-weight: 700; font-size: .92rem; }
.c-body .text-link { margin-top: auto; }

/* course page */
.cd-wrap { padding-top: clamp(28px, 4vw, 48px); }
.cd { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .cd { grid-template-columns: minmax(0, 1fr); } }
.cd h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 8px 0 12px; }
.cd-for { font-size: 1.1rem; color: var(--muted); }
.cd-art { margin: 24px 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.cd-art svg, .cd-art img { width: 100%; height: auto; display: block; }
.cd-main section { margin-top: 32px; }
.cd-main h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 12px; }
.cd-main p { color: var(--muted); }
.cd-high { list-style: none; display: grid; gap: 8px; }
.cd-high li { display: flex; gap: 10px; }
.cd-high li::before { content: "✓"; flex: none; color: var(--brand-text, var(--brand)); font-weight: 800; }
.cd-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.cd-out div { padding: 16px; border-radius: var(--radius); background: var(--soft, var(--surface)); border: 1px solid var(--line); }
.cd-out dt { font: 700 1.7rem/1 var(--head); color: var(--brand-text, var(--brand)); }
.cd-out dd { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.cd-side { position: sticky; top: 96px; display: grid; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 900px) { .cd-side { position: static; } }
.cd-side dl { display: grid; gap: 10px; margin: 0; }
.cd-side dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cd-side dt { color: var(--muted); }
.cd-side dd { margin: 0; font-weight: 700; text-align: right; }
.cd-side .btn { width: 100%; }
.cd-more { margin-top: clamp(40px, 6vw, 72px); }

/* admissions */
.adm-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--gap, 20px); }
.adm-steps li { counter-increment: s; display: grid; gap: 8px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.adm-steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.adm-steps h3 { font-size: 1.15rem; }
.adm-steps p { color: var(--muted); font-size: .95rem; }
.dates { list-style: none; display: grid; gap: 10px; }
.dates li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.dates b { color: var(--brand-text, var(--brand)); font-variant-numeric: tabular-nums; }

/* faculty, about, quotes */
.fac-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--gap, 22px); }
.fac { display: flex; flex-direction: column; gap: 6px; }
.fac-art { aspect-ratio: 5 / 6; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 6px; }
.fac-art svg { width: 100%; height: 100%; }
.fac h3 { font-size: 1.2rem; }
.fac-role { font-weight: 700; color: var(--brand-text, var(--brand)); }
.fac-qual, .fac-note { color: var(--muted); font-size: .92rem; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-art { max-width: 420px; } }
.about-grid h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 10px 0 18px; }
.about-intro { display: grid; gap: 14px; color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.about-intro strong { color: var(--ink); }
.about-art { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.about-art svg { width: 100%; height: auto; }
.numbers-band { background: var(--soft, var(--surface)); }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr 1fr; } }
.numbers div { display: grid; gap: 4px; }
.numbers b { font: 700 clamp(2rem, 4.4vw, 3rem)/1 var(--head); color: var(--brand-text, var(--brand)); }
.numbers span { color: var(--muted); }
.values { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--gap, 20px); }
.values li { display: grid; gap: 8px; padding-top: 16px; border-top: 3px solid var(--brand); }
.values h3 { font-size: 1.2rem; }
.values p { color: var(--muted); }
.quotes { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--gap, 20px); }
.quotes li { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.quotes blockquote { margin: 0; font-size: 1.05rem; }
.q-by { margin-top: auto; color: var(--muted); font-size: .9rem; font-weight: 600; }
.results { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.results li { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.results b { font: 700 1.8rem/1 var(--head); color: var(--brand-text, var(--brand)); }
.results span { font-weight: 700; }
.results small { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .92rem; max-width: calc(100% - 32px); }

/* layout safety */
.split > *, .aside > * { min-width: 0; }
.aside { grid-template-columns: minmax(0, 1fr); }
.empty[hidden], .done[hidden], .field[hidden], .form[hidden] { display: none; }

/* segmented radio buttons, used by the signature tools */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 9px 16px; border-radius: var(--btn-radius, 999px); border: 1px solid var(--line-strong); font-weight: 600; }
.seg input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

/* the hidden attribute always wins over display rules on components */
[hidden] { display: none !important; }

/* ---------- pets: cards ---------- */
.show-sm { display: none; }
@media (max-width: 520px) { .show-sm { display: inline; } }
.c-img { position: relative; }
.c-badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--badge-bg, var(--brand)); color: var(--badge-ink, var(--brand-ink)); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.c-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; }
.c-links .text-link { margin-top: 0; }
.c-enq { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: var(--btn-radius, var(--radius)); border: 1.5px solid var(--line-strong, var(--line)); font-weight: 600; font-size: .9rem; text-decoration: none; }
.c-enq:hover { border-color: var(--ink); }
.ic { width: 24px; height: 24px; flex: none; }

/* ---------- pets: tour page ---------- */
.itin { list-style: none; display: grid; gap: 0; margin: 0; padding: 0; }
.itin li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.itin li::before { content: ""; position: absolute; left: 27px; top: 40px; bottom: 0; width: 2px; background: var(--line-strong, var(--line)); }
.itin li:last-child::before { display: none; }
.itin .day { display: grid; place-items: center; width: 56px; height: 40px; border-radius: 999px; background: var(--soft, var(--surface)); border: 1.5px solid var(--line-strong, var(--line)); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-text, var(--brand)); }
.itin h3 { font-size: 1.08rem; margin: 8px 0 4px; }
.itin p { color: var(--muted); }
.inex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .inex { grid-template-columns: minmax(0, 1fr); } }
.inex ul { list-style: none; display: grid; gap: 8px; }
.inex li { display: flex; gap: 10px; color: var(--muted); }
.inex .yes li::before { content: "✓"; color: var(--ok, #1a9e6f); font-weight: 800; }
.inex .no li::before { content: "✕"; color: var(--danger, #c4372b); font-weight: 800; }
.inex h3 { font-size: 1rem; margin-bottom: 10px; }
.cd-side .note { font-size: .86rem; color: var(--muted); }

/* ---------- pets: tool panels shared by the signature pages ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
@media (max-width: 920px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.tool > * { min-width: 0; }
.tool-in { display: grid; gap: 22px; }
.tool-out { position: sticky; top: 96px; display: grid; gap: 14px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--out-bg, var(--ink)); color: var(--out-ink, var(--bg)); }
@media (max-width: 920px) { .tool-out { position: static; } }
.tool-out .eyebrow { color: var(--out-accent, var(--brand)); }
.tool-out h2, .tool-out h3 { font-size: 1.15rem; }
.out-total { font: 800 clamp(2.2rem, 5vw, 3rem)/1 var(--head); color: var(--out-accent, var(--brand)); font-variant-numeric: tabular-nums; }
.out-sub { font-size: .92rem; opacity: .85; }
.out-lines { display: grid; gap: 6px; margin: 0; font-size: .94rem; }
.out-lines div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.out-lines dt { opacity: .8; }
.out-lines dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.out-lines .is-disc dd { color: var(--ok-on-dark, #8FE0A8); }
.out-lines .is-total { border-bottom: 0; padding-top: 4px; font-size: 1.02rem; }
.tool-out .btn { width: 100%; white-space: normal; text-align: center; }
.tool-out .btn-primary { background: var(--out-btn, var(--brand)); color: var(--out-btn-ink, var(--brand-ink)); }
.tool-out .btn-primary[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.out-note { font-size: .82rem; opacity: .75; }
.out-warn { padding: 10px 12px; border-radius: var(--radius); background: color-mix(in srgb, #F2B233 22%, transparent); font-size: .9rem; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius); background: var(--input-bg, var(--surface)); }
.stepper button { width: 44px; height: 46px; border: 0; background: transparent; font-size: 1.3rem; font-weight: 700; cursor: pointer; color: inherit; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper input { width: 52px; height: 46px; border: 0; background: transparent; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.steppers { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.steppers .field { gap: 6px; }
.checklist { list-style: none; display: grid; gap: 8px; }
.checklist label { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.checklist input:checked + span { text-decoration: line-through; opacity: .6; }
.checklist small { display: block; color: var(--muted); font-size: .84rem; }
.meter { height: 10px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .3s; }
.pick-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.pick { position: relative; display: grid; gap: 4px; padding: 14px 16px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.pick:has(input:focus-visible) { outline: 3px solid var(--focus, var(--brand)); outline-offset: 3px; }
.pick:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.pick b { font-size: 1.02rem; }
.pick small { color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.cal button { min-height: 52px; padding: 4px 2px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius); background: var(--surface); color: inherit; cursor: pointer; display: grid; place-items: center; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cal button small { font-size: .66rem; color: var(--muted); }
.cal button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.cal button[aria-pressed="true"] small { color: inherit; }
.cal button:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.cal .blank { min-height: 52px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--muted); }
.result-list { list-style: none; display: grid; gap: 12px; }
.empty-note { padding: 18px; border: 1.5px dashed var(--line-strong, var(--line)); border-radius: var(--radius-lg); color: var(--muted); text-align: center; }
@media (max-width: 420px) {
  .tool-in.card, .tool-in .card { padding: 16px; }
  .cal { gap: 4px; }
  .cal button small { font-size: .62rem; }
}

/* ---------- pets: shared tool pieces ---------- */
.tool-in .card, .tool-in.card { min-width: 0; }
.tool-in h2 { font-size: 1.25rem; }
.tool-step { display: grid; gap: 14px; }
.tool-step > h2 { display: flex; align-items: center; gap: 10px; }
.tool-step > h2 .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: .95rem; flex: none; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; min-width: 0; }
.day-strip button { flex: 0 0 68px; scroll-snap-align: start; display: grid; gap: 0; justify-items: center; min-height: 72px; padding: 6px 4px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius); background: var(--input-bg, var(--surface)); color: inherit; cursor: pointer; line-height: 1.2; }
.day-strip button b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.day-strip button small { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.day-strip button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.day-strip button:disabled { opacity: .4; cursor: not-allowed; }
.slots { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px; border-radius: var(--btn-radius, 999px); border: 1.5px solid var(--line-strong, var(--line)); background: var(--input-bg, var(--surface)); font-weight: 600; font-size: .94rem; }
.chips input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chips input:checked + span::before { content: "✓"; font-weight: 800; }
.chips input:focus-visible + span { outline: 3px solid var(--focus, var(--brand)); outline-offset: 2px; }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.seg span { min-height: 42px; display: inline-flex; align-items: center; }
.rows { list-style: none; display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.row.is-picked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.row-art { border-radius: var(--radius); overflow: hidden; }
.row-art svg { width: 100%; height: auto; }
.row h3 { font-size: 1.08rem; }
.row p { color: var(--muted); font-size: .9rem; }
.row .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.row .tags span { padding: 2px 8px; border-radius: 999px; background: var(--soft, var(--surface)); border: 1px solid var(--line); font-size: .76rem; font-weight: 600; color: var(--ink); }
.row-end { display: grid; gap: 8px; justify-items: end; text-align: right; }
.row-end b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.row-end .btn { min-height: 42px; padding: 8px 14px; font-size: .92rem; }
@media (max-width: 560px) { .row { grid-template-columns: 88px minmax(0, 1fr); } .row-end { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; justify-items: start; text-align: left; } .row-end .btn { justify-self: end; } }
.count-line { color: var(--muted); font-size: .94rem; }
.bars { display: grid; gap: 10px; }
.bars div { display: grid; gap: 4px; }
.bars span { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.bars i { display: block; height: 14px; border-radius: 999px; background: currentColor; opacity: .9; transition: width .3s; min-width: 4px; }
.cart-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.cart-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); font-size: .92rem; }
.cart-list button { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; cursor: pointer; font-size: 1.1rem; }
.tool-out .field label, .tool-out .field legend { color: inherit; }
.tool-out .input { background: #fff; color: #1b1b1b; }
.tool-out .field-error { color: #FFB4A8; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { font-weight: 600; color: var(--muted); width: 45%; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.mini-steps { list-style: none; counter-reset: m; display: grid; gap: 10px; }
.mini-steps li { counter-increment: m; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.mini-steps li::before { content: counter(m); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.price-strip { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.price-strip li { display: grid; gap: 2px; padding: 18px 20px; background: var(--surface); }
.price-strip b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.price-strip span { color: var(--muted); font-size: .9rem; }
.why-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--gap, 20px); }
.why-list li { display: grid; gap: 6px; align-content: start; }
.why-list h3 { font-size: 1.12rem; }
.why-list p { color: var(--muted); font-size: .95rem; }
.why-list .ic { width: 30px; height: 30px; color: var(--brand-text, var(--brand)); }
@media (prefers-reduced-motion: reduce) { .spin { animation: none !important; } }
.tool-out > *, .tool-in > *, .tool-step > *, .td-form > *, [data-slots], .stock-list > * { min-width: 0; }

/* ---------- pets: small phones keep the logo on one line ---------- */
@media (max-width: 420px) {
  .header .logo small { display: none; }
  .header .logo b { font-size: 1.12rem; white-space: nowrap; }
  .header .logo-mark { width: 36px; height: 36px; }
  .header .logo { gap: 8px; min-width: 0; }
}

/* ---------- looks: header, hero and section styles. A template picks one header (h-a to h-j) and one hero (hero-a to hero-e)
   through the classes on <body>, and sets the colours with the variables at the top of style.css. ---------- */
h1, h2, h3 { font-weight: var(--h-weight, 700); letter-spacing: var(--h-track, -.02em); }
.btn { font-family: var(--btn-font, var(--head)); font-weight: var(--btn-weight, 700); letter-spacing: var(--btn-track, 0); text-transform: var(--btn-case, none); }
.eyebrow { color: var(--eyebrow, var(--brand)); }
.ic { color: var(--brand-text, var(--brand)); }

/* header */
.header { background: var(--hdr-bg, var(--bg)); color: var(--hdr-ink, var(--ink)); border-bottom: 1px solid var(--line); }
.header .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo span { display: grid; line-height: 1.1; }
.logo b { font: 700 1.2rem var(--head); }
.logo small { font-size: .78rem; opacity: .7; }
.nav a { font-weight: 600; color: inherit; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--nav-hover-bg, var(--soft)); color: var(--nav-hover-ink, var(--brand-text, var(--brand))); }
.topbar { background: var(--top-bg, var(--ink)); color: var(--top-ink, var(--bg)); font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .ic { width: 16px; height: 16px; color: inherit; }
.topbar a { color: inherit; font-weight: 700; text-decoration: none; }
@media (max-width: 600px) { .topbar span { display: none; } .topbar .wrap { justify-content: center; } }
.footer .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }

.h-b .header > .wrap { flex-wrap: wrap; justify-content: space-between; }
@media (min-width: 961px) {
  .h-b .header > .wrap { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: ". logo cta" "nav nav nav"; row-gap: 0; padding-top: 14px; }
  .h-b .logo { grid-area: logo; justify-self: center; }
  .h-b .header-cta { grid-area: cta; justify-self: end; }
  .h-b .nav { grid-area: nav; justify-content: center; margin: 4px 0 0; padding-bottom: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
}
.h-c .header { --hdr-bg: var(--brand); --hdr-ink: var(--brand-ink); --nav-hover-bg: rgba(255, 255, 255, .16); --nav-hover-ink: var(--brand-ink); border-bottom: 0; }
.h-c .header .btn-primary { background: var(--accent); color: var(--accent-ink, #111); }
.h-c .nav-toggle { border-color: rgba(255, 255, 255, .4); }
.h-d .header { border-bottom: 3px solid var(--ink); }
.h-d .nav a { border: 2px solid transparent; border-radius: 0; text-transform: uppercase; letter-spacing: .04em; font-size: .86rem; }
.h-d .nav a:hover, .h-d .nav a[aria-current="page"] { border-color: var(--ink); background: var(--brand); color: var(--brand-ink); }
.h-e .header { top: 10px; background: transparent; border: 0; }
.h-e .header > .wrap { min-height: 64px; padding-inline: 14px 10px; background: var(--hdr-bg, var(--bg)); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .25); }
.h-e .nav a { border-radius: 999px; }
.h-f .header { border-top: 6px solid var(--brand); }
.h-f .nav a { border-radius: 0; border-bottom: 3px solid transparent; }
.h-f .nav a:hover, .h-f .nav a[aria-current="page"] { background: transparent; border-bottom-color: var(--brand); }
@media (min-width: 961px) {
  .h-g .nav { padding: 4px; border-radius: 999px; background: var(--soft); margin-left: auto; }
  .h-g .nav a { border-radius: 999px; padding: 8px 16px; }
  .h-g .nav a:hover { background: transparent; }
  .h-g .nav a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); }
}
.h-h .header { border-bottom: 1px solid var(--ink); }
.h-h .header > .wrap { min-height: 92px; }
.h-h .logo b { font-size: 1.5rem; letter-spacing: .02em; }
.h-h .nav a { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; border-radius: 0; }
.h-h .nav a:hover, .h-h .nav a[aria-current="page"] { background: transparent; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
@media (min-width: 961px) {
  .h-i .header > .wrap { padding: 0; align-items: stretch; gap: 28px; }
  .h-i .logo { background: var(--brand); color: var(--brand-ink); padding: 0 26px; }
  .h-i .nav, .h-i .header-cta { align-self: center; }
  .h-i .header-cta { padding-right: 4px; }
}
.h-j .header { border-bottom: 5px double var(--ink); }
.h-j .nav a { border-radius: 2px; }

/* hero */
.hero { padding-block: clamp(32px, 6vw, 84px); background: var(--hero-bg, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 12px 0 16px; }
.hero .t-actions { margin-top: 24px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 30px; }
.hero-facts li { display: grid; gap: 0; }
.hero-facts b { font: 800 1.6rem/1.15 var(--head); color: var(--brand-text, var(--brand)); }
.hero-facts span { color: var(--muted); font-size: .9rem; }
.hero-card { position: relative; border-radius: var(--hero-radius, 24px); overflow: hidden; background: var(--soft); box-shadow: var(--hero-shadow, none); border: var(--hero-border, 0); }
.hero-card svg { display: block; width: 100%; height: auto; }
.next-slot { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .14); }
.next-slot span { font-size: .8rem; color: var(--muted); }
.next-slot b { font-family: var(--head); font-size: 1.1rem; }
.hero-d .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .hero-d .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-b { text-align: center; }
.hero-b .hero-copy { max-width: 860px; margin-inline: auto; }
.hero-b .lede { margin-inline: auto; }
.hero-b .t-actions, .hero-b .hero-facts { justify-content: center; }
.hero-b .hero-strip { margin-top: 36px; display: grid; gap: 4px; }
.hero-b .hero-card { max-width: 720px; margin-inline: auto; width: 100%; }
.hero-c { background: var(--brand); color: var(--brand-ink); }
.hero-c .lede, .hero-c .hero-facts span { color: inherit; opacity: .86; }
.hero-c .eyebrow, .hero-c .hero-facts b { color: var(--accent, var(--brand-ink)); }
.hero-c .btn-primary { background: var(--accent); color: var(--accent-ink, #111); }
.hero-c .btn-ghost { color: inherit; border-color: currentColor; }
.hero-panel { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .5); display: grid; gap: 12px; }
.hero-panel h2 { font-size: 1.3rem; }
.hero-panel p { color: var(--muted); }
.hero-panel ul { list-style: none; display: grid; gap: 8px; }
.hero-panel li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.hero-panel li b { font-variant-numeric: tabular-nums; }
.hero-e h1 { font-size: clamp(2.5rem, 8.4vw, 5.6rem); line-height: .98; max-width: 15ch; }
.hero-e .lede { max-width: 56ch; }
.stat-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; margin-top: 34px; }
.stat-cards li { display: grid; gap: 2px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: var(--radius-lg); background: var(--surface); }
.stat-cards b { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.05 var(--head); color: var(--brand-text, var(--brand)); }
.stat-cards span { color: var(--muted); font-size: .9rem; }
.hero-e .hero-card { margin-top: 26px; }
.hero-e .hero-card svg { max-height: 300px; }

/* sections */
.trust-band { padding-block: 0; }
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
@media (max-width: 760px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust li { display: flex; align-items: center; gap: 10px; padding: 18px 20px; font-weight: 700; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.logos-band { background: var(--soft); padding-block: clamp(28px, 4vw, 44px); }
.logos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 12px; }
.logos li { font: 700 1.1rem var(--head); opacity: .65; }
.page-head { background: var(--head-bg, var(--soft)); border-bottom: 1px solid var(--line); margin-bottom: clamp(24px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.numbers-band { background: var(--numbers-bg, var(--soft)); color: var(--numbers-ink, var(--ink)); }
.numbers-band .numbers b { color: var(--numbers-num, var(--brand-text, var(--brand))); }
.numbers-band .numbers span { color: inherit; opacity: .8; }
.quotes-band { background: var(--soft); }
.cta-band { background: var(--band-bg, var(--brand)); color: var(--band-ink, var(--brand-ink)); padding-block: clamp(40px, 6vw, 72px); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-band p { opacity: .86; margin-top: 8px; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: var(--cta-btn, var(--brand-ink)); color: var(--cta-btn-ink, var(--brand)); }
.cta-band .btn-ghost { color: inherit; border-color: currentColor; }
.footer { background: var(--foot-bg, var(--ink)); color: var(--foot-ink, var(--bg)); --footer-line: rgba(255, 255, 255, .18); }
.f-about { margin-top: 12px; opacity: .8; max-width: 34ch; }
.c-card { box-shadow: var(--card-shadow, none); }
.c-filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.numbers-band + .section .values li, .values li { border-top-color: var(--brand); }
.cd-high li::before { color: var(--brand-text, var(--brand)); }

/* ---------- tool extras shared by several templates ---------- */
.out-lines .is-sub dt, .out-lines .is-sub dd { font-weight: 500; opacity: .85; }
.rows-in { display: grid; gap: 10px; }
.role-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.role-row.is-on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.role-row b { display: block; }
.role-row small { color: var(--muted); }
.role-row .field { gap: 0; }
.role-row .field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 8px 6px; text-align: left; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); font-variant-numeric: tabular-nums; }
.tbl th { font-weight: 600; opacity: .75; }
.tbl td:last-child, .tbl th:last-child { text-align: right; }
.stack-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, currentColor 14%, transparent); }
.stack-bar i { display: block; height: 100%; transition: width .3s; }
.tl { list-style: none; display: grid; gap: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 0 0 14px; }
.tl li::before { content: ""; position: absolute; left: 90px; top: 8px; bottom: -4px; width: 2px; background: color-mix(in srgb, currentColor 22%, transparent); }
.tl li:last-child::before { display: none; }
.tl time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .9rem; }
.tl div { padding-left: 14px; }
.tl small { display: block; opacity: .75; }
.cand-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.cand { display: grid; gap: 8px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.cand.is-picked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.cand h3 { font-size: 1.05rem; }
.cand .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cand .tags span { padding: 2px 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .76rem; font-weight: 600; }
.cand dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: .88rem; }
.cand dt { color: var(--muted); }
.cand dd { margin: 0; font-weight: 600; text-align: right; }
.cand .btn { min-height: 40px; padding: 6px 12px; font-size: .9rem; }
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; align-items: end; margin-bottom: 18px; }
.sel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--soft); border: 1px solid var(--line); }
.sel-bar .btn { min-height: 42px; }
.board-band { background: var(--soft); }

.hero-f h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; max-width: 17ch; }
.hero-f .lede { max-width: 58ch; }
.rule-facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: clamp(28px, 5vw, 56px); border-top: 1px solid var(--ink); }
.rule-facts li { display: grid; gap: 2px; padding: 18px 20px 0 0; }
.rule-facts li + li { padding-left: 20px; border-left: 1px solid var(--line-strong); }
@media (max-width: 640px) { .rule-facts li + li { border-left: 0; padding-left: 0; } }
.rule-facts b { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1.05 var(--head); color: var(--brand-text, var(--brand)); }
.rule-facts span { color: var(--muted); font-size: .92rem; }
.hero-g .hero-panel { border: 1px solid var(--line-strong); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .4); }
.hero-g .hero-facts { margin-top: 0; padding-top: 28px; }
.inline-check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.inline-check input { accent-color: var(--brand); width: 20px; height: 20px; flex: none; }
