/* Shared structure for every brand. Colours, faces and a few brand moves come from static/<brand>.css,
   which defines the tokens below on :root. Mobile first; one breakpoint family at 720 / 1000 px. */
* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.6; font-variant-numeric: lining-nums;
}
::selection { background: var(--accent-soft); color: var(--ink); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.15; margin: 0 0 .45em; letter-spacing: var(--display-track); text-wrap: balance; }
h1 { font-size: clamp(2rem, 7.4vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 4.4vw, 1.95rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
b, strong { font-weight: 700; }
small { font-size: .88em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--ground); padding: 8px 12px; z-index: 9; }
.main { min-height: 60vh; padding-bottom: 72px; }

/* header: brand + quote button + language on one row, the section links scroll on a second row on a phone */
.hdr { background: var(--ground); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.hdr-in { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "brand cta lang" "nav nav nav"; align-items: center; column-gap: 10px; padding-top: 10px; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 1.04rem; min-width: 0; white-space: normal; line-height: 1.15; letter-spacing: -.01em; }
.brand b { font-weight: 700; }
.brand.staff { font-weight: 700; font-size: 1.05rem; }
.mark { width: 24px; height: 24px; color: var(--accent); flex: none; }
.mark.big { width: 56px; height: 56px; }
.hdr-cta { grid-area: cta; }
.hdr-cta .long { display: none; }
.cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.cta:hover { background: var(--accent-deep); color: var(--on-accent); }
.nav { grid-area: nav; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 0; font-size: 1rem; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 9px 0 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 700; }
.staffnav { grid-area: cta; margin: 0; padding: 0; gap: 16px; align-items: center; }
.staffnav a { padding: 6px 0; }
.nav form { margin: 0; }
.langs { grid-area: lang; position: relative; }
.langs summary { cursor: pointer; list-style: none; min-height: 40px; display: flex; align-items: center; border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 0 22px 0 9px; font-size: .82rem; letter-spacing: .06em; font-weight: 700; color: var(--ink-2); position: relative; }
.langs summary::after { content: ""; position: absolute; right: 8px; top: 15px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.langs summary::-webkit-details-marker { display: none; }
.langs-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 6px; display: grid; min-width: 150px; box-shadow: 0 10px 28px rgba(10, 20, 30, .12); z-index: 6; }
.langs-menu a { padding: 9px 12px; text-decoration: none; color: var(--ink); border-radius: 4px; }
.langs-menu a.on, .langs-menu a:hover { background: var(--ground-2); }
.tabs { border-top: 1px solid var(--rule); background: var(--ground-2); }
.tabs-in { display: flex; gap: 6px; overflow-x: auto; }
.tabs a { padding: 11px 12px; text-decoration: none; color: var(--ink-2); white-space: nowrap; font-size: .97rem; }
.tabs a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px var(--accent); }
.count { background: var(--accent); color: var(--on-accent); border-radius: 99px; padding: 0 7px; font-size: .78rem; font-weight: 700; }
.area-partner .hdr-in, .area-admin .hdr-in { grid-template-areas: "brand cta lang"; padding-bottom: 10px; }

/* buttons and bits */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--rule-2); background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 0 18px; font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.btn.big { min-height: 54px; padding: 0 24px; font-size: 1.06rem; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.linkbtn { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.pill { display: inline-block; border: 1px solid var(--rule-2); border-radius: 99px; padding: 4px 12px; font-size: .88rem; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.4; }
.pill.ok { color: var(--ok); border-color: currentColor; }
.pill.warn { color: var(--warn); border-color: currentColor; }
.pill.bad { color: var(--bad); border-color: currentColor; }
.card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.alert { border: 1.5px solid var(--bad); color: var(--bad); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; background: var(--surface); }
.alert.ok { border-color: var(--ok); color: var(--ok); }
.alert.soft { border-color: var(--rule); color: var(--ink-2); background: var(--ground-2); }
.muted, .fine { color: var(--ink-2); }
.fine, .small { font-size: .92rem; }
.fine { max-width: 74ch; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .95em; }
.empty { color: var(--ink-2); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.phead { padding: 30px 0 8px; margin-bottom: 18px; }
.ptitle { font-size: clamp(1.7rem, 5vw, 2.2rem); margin-top: 28px; }
.crumbs { font-size: .95rem; color: var(--ink-2); padding-top: 20px; }
.crumbs a { color: var(--ink-2); }
.langnote { background: var(--ground-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 14px; font-size: .97rem; color: var(--ink-2); }
.draft { background: var(--warn-soft); color: var(--warn); padding: 8px 12px; border-radius: var(--radius); font-weight: 700; margin-top: 24px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.4em; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--ground-2); color: var(--ink-2); border-radius: 3px; padding: 2px 7px; }

/* opening */
.opening { display: grid; gap: 28px; padding-top: 34px; padding-bottom: 40px; }
.opening h1 { max-width: 18ch; }
.opening .lede { margin-bottom: 1.3em; }
.opening-bars { background: var(--surface); border: 1px solid var(--rule); border-radius: calc(var(--radius) + 4px); padding: 18px 18px 6px; box-shadow: 0 18px 40px -28px rgba(10, 25, 40, .35); }
.opening-bars .ledger { border-top: 0; padding-top: 0; }
.opening { isolation: isolate; position: relative; }
.facts-strip { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts-strip div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts-strip dt { color: var(--ink-2); font-size: .95rem; }
.facts-strip dd { margin: 0; font-size: 1.25rem; font-weight: 700; font-family: var(--display); letter-spacing: var(--display-track); }
.opening-bars .fine { margin: 10px 0 8px; }

/* the price ledger: each row a set of ranges on one euro axis */
.ledgers { display: grid; gap: 0; }
.ledger { border-top: 1px solid var(--rule); padding: 18px 0 14px; }
.ledger-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 10px; }
.ledger-head h3 { margin: 0; font-size: 1.15rem; font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.ledger-head h3 a { color: var(--ink); text-decoration: none; }
.ledger-head h3 a:hover { color: var(--accent-deep); text-decoration: underline; }
.unit { color: var(--ink-2); font-size: .92rem; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "bl bv" "tr tr"; column-gap: 12px; row-gap: 4px; align-items: center; font-size: .97rem; }
.bl { grid-area: bl; color: var(--ink-2); }
.bv { grid-area: bv; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
.track { grid-area: tr; position: relative; height: 10px; border-radius: 99px; background: var(--track); }
.bar { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 99px; background: var(--bar); }
.bars li.here .bl { color: var(--ink); font-weight: 700; }
.bars li.here .bv { color: var(--accent-deep); font-weight: 700; font-size: 1.04rem; }
.bars li.here .track { height: 14px; }
.bars li.here .bar { background: var(--accent); }
.bars li.peer .bar { background: repeating-linear-gradient(135deg, var(--bar) 0 4px, transparent 4px 7px); box-shadow: inset 0 0 0 1.5px var(--bar); }
.bl small { color: var(--ink-2); font-size: .82em; }
.bars li.none .bv { font-weight: 400; font-size: .92rem; color: var(--ink-2); font-style: italic; white-space: normal; text-align: right; }
.bars li.none .track { background: repeating-linear-gradient(90deg, var(--track) 0 6px, transparent 6px 10px); }

/* bands */
.band { margin-top: 56px; }
.band-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.band-head h2 { margin: 0; }
.band-head a { font-size: 1rem; font-weight: 700; }
.band-lede { color: var(--on-deep-2); max-width: 60ch; }
.band.deep { background: var(--deep); color: var(--on-deep); padding: 44px 0 48px; }
.band.deep h2 { color: var(--on-deep); }
.band.deep a { color: var(--on-deep); }

/* trip timetable: vertical on a phone, a proportional strip on desktop */
.trip { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.stage { position: relative; padding: 0 0 22px 26px; border-left: 3px solid var(--trip-away); }
.stage.home { border-left: 3px dashed var(--trip-home); }
.stage:last-child { padding-bottom: 0; }
.stage::before { content: ""; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--trip-dot-bg); border: 3px solid var(--trip-away); }
.stage.home::before { border-color: var(--trip-home); }
.where { display: block; font-size: .85rem; color: var(--trip-label); font-weight: 700; }
.sname { display: inline; font-size: 1.12rem; }
.slen { display: inline; margin-left: 8px; color: var(--trip-len); font-weight: 700; }
.stage p { margin: 4px 0 0; font-size: .98rem; color: var(--trip-text); max-width: 46ch; }
.guide-body .trip { margin: 10px 0 18px; }

/* steps of a request */
.steps { list-style: none; padding: 0; margin: 16px 0 0; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-deep); display: grid; place-items: center; font-weight: 700; }
.steps b { font-size: 1.1rem; }
.steps p { margin: 2px 0 0; color: var(--ink-2); }

/* guide index */
.index { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.index li a { display: grid; gap: 2px; padding: 15px 34px 15px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; position: relative; }
.index li a::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-top: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.index li a:hover b { color: var(--accent-deep); text-decoration: underline; text-underline-offset: .2em; }
.index b { font-size: 1.12rem; }
.index span { color: var(--ink-2); font-size: .98rem; max-width: 64ch; }
.index.big b { font-size: 1.22rem; }

/* the quote form */
.quote-band { display: grid; gap: 14px; }
.quote-intro p { color: var(--ink-2); max-width: 46ch; }
.qform { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: calc(var(--radius) + 4px); padding: 20px 16px; }
.qform .to { margin: 0; color: var(--ink-2); }
label { display: grid; gap: 6px; font-size: 1rem; }
label > span { color: var(--ink); font-size: .95rem; font-weight: 700; }
input, select, textarea { font: inherit; font-size: 1.06rem; min-height: 50px; padding: 10px 12px; border: 1.5px solid var(--rule-2); border-radius: var(--radius); background: var(--field); color: var(--ink); width: 100%; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--accent); }
label.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
label.check > span { font-weight: 400; color: var(--ink-2); font-size: .95rem; }
label.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--accent); }
.hint { color: var(--ink-2); font-size: .92rem; margin: -8px 0 0; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.send .btn { min-height: 54px; padding: 0 28px; font-size: 1.08rem; }
.send .fine { margin: 0; }
.grid-form { display: grid; gap: 16px; }
.grid-form .wide, .grid-form .btn { grid-column: 1 / -1; justify-self: start; }
.grid-form .wide { justify-self: stretch; }
.stack { display: grid; gap: 14px; }
.login { max-width: 400px; margin: 48px auto; }
.inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline input { width: auto; min-height: 40px; }
.askline { margin-top: 36px; padding: 20px; border-radius: calc(var(--radius) + 4px); background: var(--accent-soft); display: grid; gap: 12px; justify-items: start; }
.askline p { margin: 0; max-width: 56ch; }

/* thanks */
.done-page { padding-top: 48px; }
.tick { width: 52px; height: 52px; color: var(--accent); margin-bottom: 12px; }

/* clinics */
.nobody { display: grid; gap: 24px; }
.nobody-text { background: var(--surface); border: 1px solid var(--rule); border-radius: calc(var(--radius) + 4px); padding: 22px 18px; }
.nobody-text h2 { margin-top: 0; }
.nobody-checks h3 { font-size: 1.1rem; font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.clist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.crow { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.crow h3 { margin: 0; font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.crow h3 a { color: var(--ink); text-decoration: none; }
.cwhere { color: var(--ink-2); font-size: .95rem; }
.cprices { list-style: none; padding: 0; margin: 0; font-size: .97rem; }
.cprices li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.cprices b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cact { display: flex; gap: 8px; flex-wrap: wrap; }
.count-line { color: var(--ink-2); }
.chead { padding-top: 16px; }
.chead .cwhere { display: block; margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 18px; font-size: 1rem; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* guides */
.guide-body { max-width: 70ch; }
.guide-body > h2 { font-size: 1.45rem; margin-top: 1.8em; padding-top: .7em; border-top: 1px solid var(--rule); }
.guide-body > h2 + .ledgers > .ledger:first-child { border-top: 0; padding-top: 4px; }
.guide-body > h2:first-child { border-top: 0; padding-top: 0; margin-top: .4em; }
.guide-body li { margin-bottom: .45em; }
.numbered { list-style: none; padding: 0; counter-reset: n; }
.numbered li { counter-increment: n; position: relative; padding-left: 2.4em; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: .05em; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.others h2 { font-size: 1.25rem; }

/* tables (clinic page, clinic area, admin) */
.tablewrap { overflow-x: auto; }
.ptable, .stable { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ptable th, .ptable td, .stable th, .stable td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.stable thead th { font-size: .82rem; color: var(--ink-2); font-weight: 700; border-bottom: 1px solid var(--rule-2); }
.ptable th[scope=row] { font-weight: 700; }
.ptable th small, .stable td small { display: block; color: var(--ink-2); font-weight: 400; font-size: .87rem; }
.ptable td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.num { text-align: right !important; white-space: nowrap; }
.stable.compact td { padding: 6px 8px; }
.stable tr.off { opacity: .55; }
.stable tfoot td { font-weight: 700; border-bottom: 0; }
.note { white-space: pre-wrap; }

/* clinic area + admin */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 24px 0 22px; }
.kpis > * { border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; color: var(--ink); text-decoration: none; background: var(--surface); }
.kpis span, .kpis small { color: var(--ink-2); font-size: .88rem; }
.kpis b { font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpis .hf { border-color: var(--accent); }
.kpis .warnbox { border-color: var(--warn); }
.sub { font-size: 1.25rem; margin-top: 1.4em; }
.rcards { display: grid; gap: 14px; }
.rcard { border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; background: var(--surface); }
.rcard.gone { opacity: .6; }
.rcard header, .rcard footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.rcard header b { font-size: 1.15rem; }
.rcard footer { justify-content: flex-start; }
.rcard footer form { margin: 0; }
.rcard .facts { margin: 0; font-size: .97rem; }
.rcard .note { background: var(--ground-2); border-radius: var(--radius); padding: 8px 10px; margin: 0; }
.rlist { list-style: none; padding: 0; display: grid; gap: 10px; }
.rlist li { border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.rlist small { display: block; color: var(--ink-2); }
.prows { display: grid; gap: 10px; }
.prow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.prow .prow-name, .prow .wide { grid-column: 1 / -1; }
.prow-name { font-size: 1.05rem; }
.daynav { display: flex; gap: 12px; align-items: center; margin: 24px 0 16px; }
.daynav b { font-size: 1.25rem; }
.settings { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 24px 0 20px; }
.settings form { margin: 0; }
.dcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.dcols h2 { margin-top: 0; font-size: 1.1rem; }
.back { display: inline-block; margin: 20px 0 10px; }
details.card summary { cursor: pointer; }
details.card form { margin-top: 14px; }
.daynav .btn, .kpis .btn { min-height: 40px; }

/* footer */
.ftr { background: var(--deep); color: var(--on-deep-2); padding: 40px 0 28px; font-size: .95rem; }
.ftr .brand { color: var(--on-deep); margin-bottom: 12px; }
.ftr .mark { color: var(--on-deep); }
.ftr-top { display: grid; gap: 26px; }
.disclaimer { max-width: 62ch; margin: 0; }
.ftr-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; align-content: start; }
.ftr-links a { color: var(--on-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ftr-links a:hover { text-decoration: underline; }
.ftr-base { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--deep-rule); }
.hfmark { display: inline-flex; gap: 7px; align-items: center; color: var(--on-deep-2); text-decoration: none; font-size: .88rem; }
.hfmark:hover { color: var(--on-deep); }
.h77 { height: 20px; width: auto; flex: none; }

/* closed gate */
.closed { display: grid; place-items: center; min-height: 100vh; text-align: center; }
.closed-in { display: grid; gap: 8px; justify-items: center; padding: 24px; }
.closed-in h1 { font-weight: 400; margin: 8px 0 0; font-family: var(--font); letter-spacing: -.01em; }
.closed-in p { color: var(--ink-2); }

@media (min-width: 720px) {
  .wrap { padding: 0 28px; }
  .brand { font-size: 1.12rem; white-space: nowrap; }
  .mark { width: 26px; height: 26px; }
  .hdr-cta .long { display: inline; }
  .hdr-cta .short { display: none; }
  .nav { margin: 0 -28px; padding: 4px 28px 0; }
  .bars li { grid-template-columns: 9.5rem minmax(0, 1fr) 9.5rem; grid-template-areas: "bl tr bv"; }
  .bv { text-align: right; }
  .qform { grid-template-columns: 1fr 1fr; padding: 26px; column-gap: 18px; }
  .qform .wide { grid-column: 1 / -1; }
  .grid-form.two { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps li { grid-template-columns: 1fr; }
  .steps li::before { grid-row: auto; margin-bottom: 12px; }
  .crow { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 24px; }
  .askline { grid-template-columns: 1fr auto; align-items: center; }
  .ftr-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; }
  .prow { grid-template-columns: 1.3fr 110px 110px 2fr auto auto; }
  .prow .prow-name, .prow .wide { grid-column: auto; }
}
@media (min-width: 1000px) {
  .hdr-in { grid-template-columns: auto 1fr auto auto; grid-template-areas: "brand nav cta lang"; padding-top: 0; min-height: 70px; column-gap: 28px; }
  .nav { margin: 0; padding: 0; justify-content: flex-end; gap: 26px; }
  .nav a { padding: 23px 0 21px; }
  .area-partner .hdr-in, .area-admin .hdr-in { grid-template-columns: 1fr auto auto; grid-template-areas: "brand cta lang"; padding-bottom: 0; }
  .opening { padding-top: 64px; padding-bottom: 56px; gap: 56px; }
  .opening.with-bars { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
  .opening.with-facts { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
  .opening-bars { padding: 24px 26px 8px; }
  .opening-bars .bars li { grid-template-columns: 7.5rem minmax(0, 1fr) 8.6rem; }
  .band { margin-top: 80px; }
  .band.deep { padding: 64px 0 68px; }
  .ledgers { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .ledgers .ledger .bars li { grid-template-columns: 7.5rem minmax(0, 1fr) 8.6rem; }
  .guide-body .ledgers, .opening-bars .ledgers { grid-template-columns: 1fr; }
  .trip { display: flex; gap: 0; margin-top: 30px; }
  .stage { flex: var(--g) 1 0; padding: 26px 22px 0 0; border-left: 0; border-top: 4px solid var(--trip-away); }
  .stage.home { border-left: 0; border-top: 4px dashed var(--trip-home); }
  .stage::before { left: 0; top: -10px; }
  .stage p { max-width: 34ch; }
  .sname, .slen { display: block; margin-left: 0; }
  .quote-band { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
  .quote-intro { position: sticky; top: 100px; }
  .nobody { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
  .nobody-text { padding: 30px 32px; }
  .index:not(.big) { columns: 2; column-gap: 48px; border-top: 0; }
  .index:not(.big) li { break-inside: avoid; }
  .index:not(.big) li a { border-top: 1px solid var(--rule); border-bottom: 0; }
}
/* photos (static/art/<brand>/, deploy/art.py): fixed ratios so nothing moves while they load; brand files shape them */
.banner, .gart, .done-art { margin: 0; }
.banner { max-width: var(--wrap); margin: 0 auto 8px; padding: 0 16px; }
.banner img, .gart img, .done-art img { display: block; width: 100%; height: auto; background: var(--ground-2); }
.banner img { aspect-ratio: 4 / 3; object-fit: cover; }
.gart { max-width: 70ch; margin: 2px 0 28px; }
.gart img { aspect-ratio: 12 / 5; object-fit: cover; }
.done-art { max-width: 480px; margin-top: 32px; }
.done-art img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 720px) { .banner img { aspect-ratio: 1600 / 534; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* caret browsing: no blinking caret on empty page space; form fields keep theirs. Text stays selectable. */
html, body { caret-color: transparent; }
input, textarea, select, [contenteditable="true"] { caret-color: auto; }
