/* 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; }
}

/* ---------- agriculture and dairy additions: item cards, info sections, tables, tools ---------- */
html, body { overflow-x: clip; }
[hidden] { display: none !important; }
h1, h2, h3 { overflow-wrap: break-word; }
.ico { width: 24px; height: 24px; flex: none; }
.ico-sm { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.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: 28px; }
.sec-head .sec-title { margin-bottom: 0; }
.sec-head .lede { margin-top: 10px; }
.text-link { font-weight: 700; text-underline-offset: 5px; color: var(--brand-text, var(--brand)); display: inline-flex; align-items: center; min-height: 40px; }
.t-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.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; }
.band-soft { background: var(--soft, var(--surface)); }
.nf-title { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.topbar { font-size: .84rem; }
.header .topbar .wrap { min-height: 36px; gap: 16px; justify-content: space-between; }
.topbar a { font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; }
@media (max-width: 520px) { .header-cta { display: none; } .topbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } }
.nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) { .nav a { padding: 8px 8px; font-size: .92rem; } .header .wrap { gap: 14px; } }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo span { display: grid; line-height: 1.05; min-width: 0; }
.logo small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer .logo small { white-space: normal; }
.price-note { margin-top: 28px; color: var(--muted); font-size: .95rem; }

/* products */
.products { display: grid; gap: 22px; }
.p-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.p-filters button { min-height: 44px; padding: 6px 16px; 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; }
.p-filters button span { opacity: .6; margin-left: 2px; }
.p-filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.prod-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: var(--gap, 22px); }
.prod-item[hidden] { display: none; }
.prod-item[id] { scroll-margin-top: 110px; }
.prod { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.prod-art { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.prod-art svg { width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.prod:hover .prod-art svg { transform: scale(1.04); }
.prod-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.prod-cat { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prod-body h3 { font-size: 1.22rem; }
.prod-short { color: var(--muted); font-size: .95rem; }
.prod-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 4px 0 0; }
.prod-specs div { padding: 7px 0; border-top: 1px solid var(--line); min-width: 0; }
.prod-specs dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.prod-specs dd { margin: 2px 0 0; font-weight: 700; font-size: .9rem; }
.prod-moq { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-strong, var(--line)); font-size: .88rem; color: var(--muted); }
.prod-moq b { color: var(--ink); }

/* tables */
.spec-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.spec-table th, .spec-table td { padding: 12px 10px 12px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.spec-table td:first-child { font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table-scroll .spec-table th, .table-scroll .spec-table td { padding: 12px 14px; }
.table-scroll .spec-table { min-width: 560px; }

/* stats, quotes, steps, values, team, timeline */
.stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 20px; }
.stats li { display: grid; gap: 4px; align-content: start; }
.stats b { font: 700 clamp(1.9rem, 4vw, 2.6rem)/1 var(--head); color: var(--brand-text, var(--brand)); }
.stats span { color: var(--muted); font-size: .94rem; }
.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: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.quotes blockquote { margin: 0; font-size: 1.04rem; }
.q-by { margin-top: auto; color: var(--muted); font-size: .9rem; font-weight: 600; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--gap, 20px); }
.steps li { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step-n { font: 700 1.6rem/1 var(--head); color: var(--brand-text, var(--brand)); }
.steps h3 { font-size: 1.12rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .96rem; }
.values { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--gap, 20px); }
.values li { padding-top: 16px; border-top: 3px solid var(--brand); }
.values h3 { font-size: 1.15rem; margin-bottom: 6px; }
.values p { color: var(--muted); }
.team { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--gap, 20px); }
.team-art { aspect-ratio: 5 / 6; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; }
.team-art svg { width: 100%; height: 100%; }
.team h3 { font-size: 1.15rem; }
.team-role { font-weight: 600; color: var(--brand-text, var(--brand)); }
.team-note { color: var(--muted); font-size: .92rem; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; border-top: 2px solid var(--line-strong, var(--line)); }
.timeline li { position: relative; padding: 22px 18px 8px 0; }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); }
.timeline b { font: 700 1.5rem/1 var(--head); display: block; margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: .95rem; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.about-grid h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 10px 0 18px; }
.about-intro { display: grid; gap: 14px; color: var(--muted); font-size: 1.05rem; }
.about-intro strong { color: var(--ink); }
.about-art, .infra-art { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.about-art svg, .infra-art svg { width: 100%; height: auto; }

/* infrastructure */
.infra-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 860px) { .infra-top { grid-template-columns: minmax(0, 1fr); } }
.cap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
.units { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--gap, 20px); }
.units li { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.unit-ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: var(--radius); background: var(--soft, var(--bg)); color: var(--brand-text, var(--brand)); }
.units h3 { font-size: 1.1rem; margin-bottom: 4px; }
.units p { color: var(--muted); font-size: .95rem; }
.qc-list { list-style: none; counter-reset: qc; display: grid; gap: 14px; }
.qc-list li { counter-increment: qc; display: grid; grid-template-columns: 32px 1fr; gap: 2px 12px; }
.qc-list li::before { content: counter(qc); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .9rem; }
.qc-list span { color: var(--muted); font-size: .93rem; }

/* exports */
.markets { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--gap, 20px); }
.markets li { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.markets h3 { font-size: 1.1rem; margin-bottom: 6px; }
.markets p { color: var(--muted); font-size: .95rem; }
.cert-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--gap, 20px); }
.cert { display: grid; gap: 6px; align-content: start; }
.cert-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 8px; }
.cert-art svg { width: 100%; height: auto; }
.cert h3 { font-size: 1.05rem; }
.cert p { color: var(--muted); font-size: .9rem; }
.cert-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.cert-strip li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--surface); }
.doc-list { list-style: none; display: grid; gap: 10px; }
.doc-list li { display: flex; gap: 10px; align-items: baseline; }
.buyers { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.buyers li { padding: 10px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }

/* CTA band */
.cta-band { padding-block: clamp(44px, 6vw, 80px); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { margin-top: 6px; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.f-about { margin-top: 12px; max-width: 36ch; }

/* tools: shared skeleton (themes do the look) */
.tool { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
@media (max-width: 920px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.tool-in { display: grid; gap: 22px; }
.tool-out { position: sticky; top: 96px; display: grid; gap: 14px; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 920px) { .tool-out { position: static; } }
.tool-total { font: 700 clamp(2rem, 5vw, 2.8rem)/1.05 var(--head); color: var(--brand-text, var(--brand)); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tool-range { color: var(--muted); font-size: .95rem; }
.tool-lines { display: grid; gap: 6px; margin: 0; font-size: .95rem; }
.tool-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tool-lines dt { color: var(--muted); }
.tool-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.tool-note { font-size: .86rem; color: var(--muted); }
.tool-empty { padding: 18px; border: 1.5px dashed var(--line-strong, var(--line)); border-radius: var(--radius); color: var(--muted); text-align: center; }
.btn.is-off { opacity: .45; pointer-events: none; }
.tool-actions { display: grid; gap: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; gap: 2px; min-height: 44px; align-content: center; padding: 8px 14px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius); background: var(--input-bg, var(--surface)); cursor: pointer; font-weight: 600; font-size: .95rem; }
.seg span small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.seg input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.seg input:checked + span small { color: inherit; opacity: .85; }
.seg input:focus-visible + span { outline: 3px solid var(--focus, var(--brand)); outline-offset: 2px; }
.seg.is-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); }
.seg.is-cards label { display: grid; }
.seg.is-cards span { height: 100%; padding: 12px 14px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius); cursor: pointer; background: var(--input-bg, var(--surface)); }
.checks input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.checks small { color: var(--muted); display: block; font-size: .8rem; }
.range { width: 100%; accent-color: var(--brand); height: 32px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row .input { width: 120px; flex: none; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius); overflow: hidden; background: var(--input-bg, var(--surface)); }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--soft, var(--surface)); cursor: pointer; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.stepper input { width: 76px; height: 42px; border: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; }
.tool-out, .tool-in, .tool-in > *, .tool-lines dt { min-width: 0; }
.tool-out .btn { white-space: normal; text-align: center; }
.tool-lines dd { white-space: nowrap; }
.mini { font-size: .82rem; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--soft, var(--surface)); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .78rem; font-weight: 800; }

/* RFQ / order lines shared by several tools */
.lines { list-style: none; display: grid; gap: 10px; }
.lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lines .l-name { font-weight: 700; }
.lines .l-meta { grid-column: 1; color: var(--muted); font-size: .86rem; }
.lines .l-x { grid-row: 1 / span 2; grid-column: 2; min-width: 40px; min-height: 40px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; }
.lines .l-qty { display: flex; gap: 8px; align-items: center; grid-column: 1 / -1; }
.lines .l-qty .input { width: 120px; min-height: 40px; padding: 6px 10px; }

/* catalogue rows used by tools */
.cat-list { list-style: none; display: grid; gap: 12px; }
.cat-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cat-row[hidden] { display: none; }
.cat-row .sw { width: 96px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.cat-row .sw svg { width: 100%; height: 100%; }
.cat-row h3 { font-size: 1.05rem; }
.cat-row .mini b { color: var(--ink); }
@media (max-width: 560px) { .cat-row { grid-template-columns: 72px minmax(0, 1fr); } .cat-row .sw { width: 72px; } .cat-row > .btn, .cat-row > .cat-act { grid-column: 1 / -1; } }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.result-count { font-weight: 700; }

/* ---------- agriculture additions ---------- */
.prod-price { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.prod-price small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.prod-badge { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--soft, var(--surface)); color: var(--brand-text, var(--brand)); font-size: .74rem; font-weight: 800; letter-spacing: .02em; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.blocks { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--gap, 20px); }
.blocks li { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.blocks .unit-ico { margin-bottom: 4px; }
.blocks h3 { font-size: 1.12rem; }
.blocks p { color: var(--muted); font-size: .95rem; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--gap, 20px); }
.cards li { display: grid; gap: 8px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cards h3 { font-size: 1.15rem; }
.cards p { color: var(--muted); font-size: .95rem; }
.cards .c-meta { font-size: .85rem; font-weight: 700; color: var(--brand-text, var(--brand)); }
.split-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.split-art.is-flip > figure { order: -1; }
.split-art figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.split-art figure svg { width: 100%; height: auto; }
.split-art .prose { display: grid; gap: 14px; color: var(--muted); }
.split-art .prose strong { color: var(--ink); }
.split-art .prose ul { display: grid; gap: 8px; padding-left: 1.2em; }
@media (max-width: 860px) { .split-art { grid-template-columns: minmax(0, 1fr); } .split-art.is-flip > figure { order: 0; } }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .ico { color: var(--brand-text, var(--brand)); margin-top: 1px; }
.callout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--soft, var(--surface)); border: 1px solid var(--line); }
.callout h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.callout p { color: var(--muted); margin-top: 6px; max-width: 62ch; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--warn-bg, #FFF4D6); color: var(--warn-ink, #5A4300); font-size: .9rem; border: 1px solid var(--warn-line, #F0D58A); }
.disclaimer .ico { flex: none; }
.table-note { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: .92rem; font-weight: 600; }
.hero-badges li { display: inline-flex; gap: 8px; align-items: center; }
.hero-badges .ico { width: 20px; height: 20px; }
.mini-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; font-size: .74rem; text-align: center; }
.mini-cal span { padding: 6px 0; border-radius: 6px; background: var(--soft, var(--bg)); color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-cal span.is-on { background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.mini-cal span.is-head { background: none; font-weight: 700; }
.mini-cal span.is-blank { background: none; }
.meter { height: 12px; border-radius: 999px; background: var(--soft, var(--line)); overflow: hidden; border: 1px solid var(--line); }
.meter i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .25s; }
.meter.is-over i { background: var(--danger, #c4372b); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: calc(var(--radius) + 5px); background: var(--soft, var(--surface)); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs button { min-height: 44px; padding: 8px 18px; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; font-weight: 700; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
.res-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.res-table th, .res-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.res-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.res-table td.num, .res-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.up { color: var(--ok, #1a7f4b); font-weight: 700; }
.down { color: var(--danger, #c4372b); font-weight: 700; }
.match { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: var(--soft, var(--bg)); }
.qty-btns { display: inline-flex; align-items: center; gap: 6px; }
.qty-btns button { width: 40px; height: 40px; border-radius: var(--radius); border: 1.5px solid var(--line-strong, var(--line)); background: var(--surface); color: var(--ink); font-weight: 800; cursor: pointer; font-size: 1.1rem; }
.qty-btns output { min-width: 2.4em; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.credit a { text-decoration: underline; }
.field > .stepper, .field > .qty-btns { justify-self: start; }
@media (min-width: 921px) { body[data-page="tool"] .wa-float span { display: none; } body[data-page="tool"] .wa-float { padding: 14px; } }
.split-art .prose h2, .split-art .prose h3 { color: var(--ink); }
