/* Avenmore Facility Services: concept website by Rellan.
   One family (Instrument Sans), a 12-column grid, hairline rules, white space. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrumentsans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --porcelain: #f1f4f6;
  --porcelain-2: #e6ebee;
  --rule: #d5dce1;
  --rule-soft: #e4e9ec;
  --ink: #1f2429;
  --slate: #58626c;
  --teal: #0b6f78;
  --teal-hover: #085a62;
  --teal-bright: #0e8f9a;
  --mint: #e4f3f1;
  --amber-ink: #8a4b0c;
  --amber-wash: #fbf0e2;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-b: 1.0625rem;
  --fs-m: 1.25rem;
  --fs-l: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-xl: clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);
  --fs-xxl: clamp(2.25rem, 1.35rem + 3.3vw, 4.125rem);

  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 2px;
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-b);
  line-height: 1.6;
  font-weight: 400;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main:focus { outline: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
img { max-width: 100%; }
a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--teal-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th { font-weight: 600; text-align: left; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

/* Skip link */
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 1100;
  background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 52px; color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 var(--fs-s)/1.2 var(--font); letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-hover); color: var(--white); text-decoration: none; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); text-decoration: none; }
.btn--small { min-height: 44px; padding: 10px 16px; }
.btn--large { min-height: 56px; padding: 16px 28px; font-size: var(--fs-b); }
.btn:disabled { background: var(--porcelain-2); color: var(--slate); border-color: var(--rule); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.lead { font-size: var(--fs-m); line-height: 1.5; color: var(--ink); max-width: 38em; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--rule);
}
.site-head__in { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__mark { width: 24px; height: 24px; flex: none; color: var(--ink); }
.brand__cell { fill: var(--teal-bright); }
.brand__name { font-weight: 650; font-size: 1.3125rem; letter-spacing: -0.025em; line-height: 1; }
.brand__sub { font-size: var(--fs-s); color: var(--slate); line-height: 1; padding-left: 10px; border-left: 1px solid var(--rule); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; list-style: none; gap: 4px; }
.site-nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--ink); text-decoration: none; font-size: var(--fs-s); font-weight: 500;
  position: relative;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px;
  background: var(--teal-bright); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__end { display: flex; align-items: center; gap: 18px; }
.site-nav__tel { color: var(--ink); font-weight: 600; font-size: var(--fs-s); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-nav__tel:hover { color: var(--teal); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: 600 var(--fs-s)/1 var(--font); cursor: pointer;
}
.nav-toggle__icon { position: relative; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { border-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before,
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: currentColor; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: rotate(-45deg); }

@media (max-width: 1239px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--ink);
    padding: 8px var(--gutter) 24px;
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--rule-soft); }
  .site-nav__list a { width: 100%; min-height: 52px; padding: 0; font-size: var(--fs-b); }
  .site-nav__list a::after { left: 0; right: auto; width: 32px; bottom: 10px; }
  .site-nav__end { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 20px; }
  .site-nav__tel { min-height: 44px; display: inline-flex; align-items: center; font-size: var(--fs-b); }
  .site-head__in { position: relative; }
  .site-head { position: sticky; }
}
@media (max-width: 520px) {
  .brand__sub { display: none; }
}

/* Section scaffolding */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--porcelain { background: var(--porcelain); }
.section:not(.section--porcelain) + .section:not(.section--porcelain):not(.section--tight) { padding-top: 0; }
.section--porcelain + .section { padding-top: var(--section); }

.sh {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px;
  border-top: 1px solid var(--ink); padding-top: 22px; margin-bottom: clamp(36px, 5vw, 64px);
}
.sh h2 { grid-column: 1 / span 6; font-size: var(--fs-xl); letter-spacing: -0.025em; line-height: 1.08; max-width: 16em; }
.sh__intro { grid-column: 8 / -1; color: var(--slate); max-width: 34em; padding-top: 6px; }
@media (max-width: 899px) {
  .sh h2, .sh__intro { grid-column: 1 / -1; }
  .sh__intro { padding-top: 0; }
}

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: var(--section); }
.hero__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.hero__title { grid-column: 1 / span 8; font-size: var(--fs-xxl); letter-spacing: -0.035em; line-height: 1.02; max-width: 15.5em; }
.hero__aside { grid-column: 9 / -1; }
.hero__aside .lead { font-size: var(--fs-b); line-height: 1.6; color: var(--slate); }
.hero__aside .actions { margin-top: 24px; }
.hero__fig { position: relative; overflow: hidden; background: #67635f; }
img.hero__img { width: 100%; height: clamp(300px, 46vw, 600px); object-fit: cover; object-position: 50% 62%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: hero-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes hero-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
}
.spec {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap);
  margin: 0; border-bottom: 1px solid var(--rule);
}
.spec > div { padding: 18px 0 22px; border-top: 2px solid var(--ink); }
.spec dt { font-size: var(--fs-xs); font-weight: 600; color: var(--teal); margin-bottom: 6px; }
.spec dd { margin: 0; font-size: var(--fs-s); line-height: 1.5; }
@media (max-width: 1099px) {
  .hero__title { grid-column: 1 / -1; }
  .hero__aside { grid-column: 1 / span 9; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero__aside { grid-column: 1 / -1; }
  .hero__title { letter-spacing: -0.03em; }
  .spec { grid-template-columns: 1fr; }
  .spec > div { border-top-width: 1px; padding: 14px 0 16px; }
  .spec > div:first-child { border-top-width: 2px; }
  img.hero__img { height: 300px; object-position: 40% 60%; }
}

/* Facility tabs */
.tabs__list {
  display: flex; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: clamp(28px, 4vw, 48px);
}
.tabs__tab {
  position: relative; flex: 0 1 auto;
  min-height: 56px; padding: 14px 28px 16px 0; margin-right: 28px;
  background: none; border: 0; color: var(--slate);
  font: 600 var(--fs-m)/1.2 var(--font); letter-spacing: -0.01em; text-align: left; cursor: pointer;
}
.tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; transition: background-color .15s ease; }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--ink); }
.tabs__tab[aria-selected="true"]::after { background: var(--teal-bright); }
.tabs__tab:focus-visible { outline-offset: -2px; }
.tabs__panel:focus-visible { outline-offset: 8px; }
@media (max-width: 899px) {
  .tabs__list { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 0; border-top: 1px solid var(--rule); }
  .tabs__tab { margin: 0; padding: 12px 12px 12px 0; font-size: var(--fs-b); border-bottom: 1px solid var(--rule); }
  .tabs__tab:nth-child(odd) { padding-right: 16px; }
  .tabs__tab:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .tabs__tab::after { bottom: -1px; }
}

.fac { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.fac__fig { grid-column: 1 / span 5; position: sticky; top: calc(var(--head-h) + 24px); }
.fac__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fac-img--desks { object-position: 62% 50%; }
.fac-img--dental { object-position: 55% 50%; }
.fac-img--lobby { object-position: 50% 60%; }
.fac-img--scrubber { object-position: 40% 55%; }
.fac__body { grid-column: 7 / -1; }
.fac__title { font-size: var(--fs-l); margin-bottom: 14px; }
.fac__lede { max-width: 36em; margin-bottom: 32px; }
.scope-table { margin-bottom: 32px; }
.scope-table caption { text-align: left; font-weight: 600; font-size: var(--fs-s); padding-bottom: 10px; }
.scope-table thead th { font-size: var(--fs-xs); color: var(--slate); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--ink); }
.scope-table tbody th, .scope-table tbody td { padding: 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: var(--fs-s); line-height: 1.5; }
.scope-table tbody th { width: 34%; padding-right: 20px; }
.scope-table tbody td { color: var(--ink); }
.note { background: var(--mint); padding: 22px 24px; border-left: 3px solid var(--teal-bright); }
.note h4 { font-size: var(--fs-b); margin-bottom: 6px; }
.note p { font-size: var(--fs-s); }
.fac__link { margin-top: 24px; }
.link-strong { font-weight: 600; }
@media (max-width: 899px) {
  .fac__fig, .fac__body { grid-column: 1 / -1; }
  .fac__fig { position: static; }
  .fac__img { aspect-ratio: 3 / 2; }
}
@media (max-width: 520px) {
  .scope-table tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .scope-table tbody th, .scope-table tbody td { display: block; width: auto; padding: 0; border: 0; }
  .scope-table tbody th { margin-bottom: 2px; }
  .scope-table thead { display: none; }
  .scope-table caption { border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
}

/* Programs comparison */
.compare { border-top: 1px solid var(--ink); }
.compare thead th { font-size: var(--fs-xs); color: var(--slate); font-weight: 600; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.compare tbody th, .compare tbody td { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: var(--fs-s); line-height: 1.55; }
.compare tbody th { width: 21%; }
.compare tbody td:nth-child(2) { width: 27%; }
.compare tbody td:last-child { padding-right: 0; }
.compare__name { display: block; font-size: var(--fs-m); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 6px; }
.compare__tag { display: block; font-weight: 400; color: var(--slate); font-size: var(--fs-s); }
@media (max-width: 899px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); padding: 24px 0 8px; border-bottom: 1px solid var(--rule); }
  .compare tbody th, .compare tbody td { display: block; width: auto !important; padding: 0 0 16px; border: 0; }
  .compare tbody th { grid-column: 1 / -1; padding-bottom: 18px; }
  .compare tbody td::before { content: attr(data-label); display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--teal); margin-bottom: 2px; }
}
@media (max-width: 560px) {
  .compare tbody tr { grid-template-columns: 1fr; }
}

/* Photo band */
.band { margin: 0 0 var(--section); }
img.band__img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; object-position: 50% 72%; }
.band__cap { padding-top: 14px; font-size: var(--fs-s); color: var(--slate); }

/* Process steps */
.steps { list-style: none; border-top: 1px solid var(--rule); counter-reset: none; }
.step {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: 28px 0 30px; border-bottom: 1px solid var(--rule); position: relative;
}
.step__when { grid-column: 1 / span 3; font-size: var(--fs-s); color: var(--slate); padding-top: 6px; margin: 0; }
.step__main { grid-column: 4 / span 5; }
.step__title { display: flex; align-items: baseline; gap: 16px; font-size: var(--fs-l); margin-bottom: 10px; }
.step__n {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--ink); font-size: var(--fs-s); font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums;
  transform: translateY(-3px);
}
.step__main p { max-width: 34em; margin-left: 50px; }
.step__out { grid-column: 10 / -1; font-size: var(--fs-s); padding-top: 6px; margin: 0; }
.step__label { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--teal); margin-bottom: 4px; }
.step:last-child .step__n { background: var(--ink); color: var(--white); }
@media (max-width: 1099px) {
  .step__when { grid-column: 1 / -1; padding: 0 0 8px 50px; }
  .step__main { grid-column: 1 / span 8; }
  .step__out { grid-column: 9 / -1; padding-top: 50px; }
}
@media (max-width: 720px) {
  .step__main, .step__out { grid-column: 1 / -1; }
  .step__out { padding: 12px 0 0 50px; }
}

/* Scope builder */
.builder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.builder__controls { grid-column: 1 / span 6; display: grid; gap: 36px; }
.builder__out { grid-column: 8 / -1; position: sticky; top: calc(var(--head-h) + 24px); }
@media (max-width: 999px) {
  .builder__controls, .builder__out { grid-column: 1 / -1; }
  .builder__out { position: static; }
}
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { display: block; padding: 0; font-weight: 600; font-size: var(--fs-b); margin-bottom: 10px; }
.field__hint { font-size: var(--fs-s); color: var(--slate); margin: -6px 0 12px; max-width: 40em; }
.seg { display: grid; border: 1px solid var(--ink); background: var(--white); }
.seg--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg__opt { position: relative; display: flex; }
.seg__opt + .seg__opt { border-left: 1px solid var(--ink); }
.seg__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg__opt span {
  flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 10px 12px; font-size: var(--fs-s); font-weight: 500; line-height: 1.25; font-variant-numeric: tabular-nums;
  transition: background-color .12s ease, color .12s ease;
}
.seg__opt:hover span { background: var(--porcelain); }
.seg__opt input:checked + span { background: var(--ink); color: var(--white); font-weight: 600; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--teal-bright); outline-offset: -5px; }
.seg--5 .seg__opt span { font-size: var(--fs-m); }
@media (max-width: 640px) {
  .seg--4 { grid-template-columns: 1fr 1fr; }
  .seg--4 .seg__opt:nth-child(3) { border-left: 0; }
  .seg--4 .seg__opt:nth-child(n+3) { border-top: 1px solid var(--ink); }
}

.range { display: flex; align-items: flex-start; gap: 24px; }
.range__track { flex: 1; min-width: 0; }
.range__slider { display: block; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.range__slider::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
.range__slider::-moz-range-track { height: 2px; background: var(--ink); }
.range__slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; background: var(--teal); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--ink); border-radius: 50%; }
.range__slider::-moz-range-thumb { width: 18px; height: 18px; background: var(--teal); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--ink); border-radius: 50%; }
.range__slider:focus-visible { outline-offset: 2px; }
.range__num { display: flex; align-items: center; gap: 8px; font-size: var(--fs-s); color: var(--slate); }
.range__scale { position: relative; height: 1.4em; margin: 0 11px; font-size: var(--fs-xs); color: var(--slate); font-variant-numeric: tabular-nums; }
.rs { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.rs::before { content: ""; position: absolute; left: 50%; top: -8px; height: 5px; border-left: 1px solid var(--slate); }
.rs--0 { left: 0; transform: none; margin-left: -11px; }
.rs--0::before { left: 11px; }
.rs--10 { left: 41.667%; }
.rs--19 { left: 79.167%; }
.rs--24 { right: 0; transform: none; margin-right: -11px; }
.rs--24::before { left: auto; right: 11px; }
@media (max-width: 520px) {
  .range { flex-direction: column; gap: 4px; }
  .range__track { width: 100%; }
  .range__num { margin-top: 10px; }
}

.input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--slate); border-radius: var(--radius); background: var(--white); color: var(--ink);
  font: 400 var(--fs-b)/1.4 var(--font); font-variant-numeric: tabular-nums;
}
.input:hover { border-color: var(--ink); }
.input:focus { outline: 2px solid var(--teal-bright); outline-offset: 0; border-color: var(--teal); }
.input--num { width: 9.5rem; text-align: right; font-weight: 600; }
.input--half { max-width: 24rem; }
textarea.input { resize: vertical; min-height: 120px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.input[aria-invalid="true"] { border-color: #a12a1c; border-width: 2px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); cursor: pointer; font-size: var(--fs-s); line-height: 1.4; min-height: 44px; }
.check:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
.check strong { display: block; font-size: var(--fs-b); font-weight: 600; }
.check span { color: var(--slate); }
.check strong { color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
@media (max-width: 560px) {
  .checks { grid-template-columns: 1fr; }
  .check:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Sheets: draft scope, inspection, checklist, summary */
.sheet, .summary, .cl__sheet { background: var(--white); border: 1px solid var(--ink); }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--ink); }
.sheet__title { margin: 0; font-weight: 600; font-size: var(--fs-s); }
.sheet__flag { margin: 0; font-size: var(--fs-xs); color: var(--slate); font-variant-numeric: tabular-nums; }
.sheet--draft { padding-bottom: 28px; }
.sheet--draft > :not(.sheet__head) { margin-inline: 28px; }
.out__title { font-size: var(--fs-l); margin-top: 26px; margin-bottom: 12px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.out__summary { font-size: var(--fs-b); padding-bottom: 20px; border-bottom: 1px solid var(--rule); margin-bottom: 0; }
.out__summary strong { font-weight: 600; }
.out__rows { margin: 0; }
.out__rows > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.out__rows dt { font-size: var(--fs-xs); font-weight: 600; color: var(--teal); padding-top: 3px; }
.out__rows dd { margin: 0; font-size: var(--fs-s); line-height: 1.5; font-variant-numeric: tabular-nums; }
.out__rows ul { list-style: none; }
.out__rows li { position: relative; padding-left: 16px; }
.out__rows li + li { margin-top: 4px; }
.out__rows li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--teal-bright); }
.out__rows #out-confirm li::before { background: none; border: 1px solid var(--ink); width: 7px; height: 7px; top: 0.55em; }
.out__addons-list li::before { background: var(--ink); }
.out__price { margin: 20px 0 22px; font-size: var(--fs-s); color: var(--slate); }
.out__price strong { color: var(--ink); }
.is-updated { animation: flash .6s ease; }
@keyframes flash { from { background-color: var(--mint); } to { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .is-updated { animation: none; } }
@media (max-width: 520px) {
  .sheet--draft > :not(.sheet__head) { margin-inline: 18px; }
  .sheet__head { padding: 12px 18px; }
  .out__rows > div { grid-template-columns: 1fr; gap: 4px; }
  #out-cta { display: flex; white-space: normal; text-align: center; }
}

/* Sample schedule */
.sched-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.sched-wrap:focus-visible { outline-offset: 4px; }
.sched { min-width: 760px; }
.sched caption { caption-side: bottom; text-align: left; font-size: var(--fs-s); color: var(--slate); padding-top: 14px; }
.sched__task { width: 40%; }
.sched thead th { position: sticky; top: 0; font-size: var(--fs-xs); color: var(--slate); padding: 14px 16px 12px 0; border-bottom: 1px solid var(--ink); background: var(--white); }
.sched thead th + th, .sched td { padding-left: 16px; border-left: 1px solid var(--rule-soft); }
.sched tbody th, .sched td { padding-top: 11px; padding-bottom: 11px; border-bottom: 1px solid var(--rule-soft); font-size: var(--fs-s); line-height: 1.4; vertical-align: top; }
.sched tbody th { font-weight: 400; padding-right: 16px; }
.sched td.is-on { font-weight: 600; color: var(--ink); white-space: nowrap; }
.sched td.is-on::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--teal-bright); margin-right: 8px; vertical-align: 0.08em; }
.sched .sched__group th { padding: 26px 0 10px; font-weight: 600; font-size: var(--fs-b); border-bottom: 1px solid var(--rule); border-left: 0; }
.sched tbody:first-of-type .sched__group th { padding-top: 18px; }
@media (max-width: 640px) {
  .sched-wrap { overflow: visible; }
  .sched { min-width: 0; }
  .sched colgroup, .sched thead { display: none; }
  .sched tbody tr:not(.sched__group) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
  .sched tbody th, .sched td { border: 0 !important; padding: 0 !important; }
  .sched td.is-off { display: none; }
  .sched td.is-on { text-align: right; font-size: var(--fs-s); }
  .sched td.is-on::before { content: attr(data-label); display: block; width: auto; height: auto; background: none; margin: 0 0 1px; font-size: var(--fs-xs); font-weight: 600; color: var(--teal); }
  .sched .sched__group { display: block; }
  .sched .sched__group th { display: block; padding: 22px 0 8px !important; border-bottom: 1px solid var(--ink) !important; }
}
.sched-key { max-width: 44em; margin-top: 16px; font-size: var(--fs-s); color: var(--slate); }

/* Quality */
.quality { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.quality__text { grid-column: 1 / span 4; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.qblock { padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.qblock h3 { font-size: var(--fs-m); margin-bottom: 8px; }
.qblock p { font-size: var(--fs-s); max-width: 34em; }
.sheet--inspect { grid-column: 6 / -1; position: sticky; top: calc(var(--head-h) + 24px); }
.sheet__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--rule); }
.sheet__meta > div { padding: 12px 24px; }
.sheet__meta > div + div { border-left: 1px solid var(--rule); }
.sheet__meta dt { font-size: var(--fs-xs); color: var(--slate); }
.sheet__meta dd { margin: 0; font-size: var(--fs-s); font-weight: 600; }
.sheet__scroll { overflow-x: auto; }
.inspect th, .inspect td { padding: 12px 14px; font-size: var(--fs-s); line-height: 1.4; border-bottom: 1px solid var(--rule-soft); vertical-align: top; text-align: left; }
.inspect th:first-child, .inspect td:first-child { padding-left: 24px; }
.inspect th:last-child, .inspect td:last-child { padding-right: 24px; }
.inspect thead th { font-size: var(--fs-xs); color: var(--slate); font-weight: 600; border-bottom: 1px solid var(--rule); }
.inspect td:first-child { color: var(--slate); width: 17%; }
.inspect td:nth-child(2) { width: 31%; }
.inspect td:nth-child(3) { width: 20%; }
.inspect td:last-child { color: var(--slate); }
.res { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 600; }
.res::before { content: ""; width: 8px; height: 8px; flex: none; }
.res--ok { color: var(--teal); }
.res--ok::before { background: var(--teal-bright); }
.res--attn { color: var(--amber-ink); }
.res--attn::before { background: transparent; border: 2px solid var(--amber-ink); width: 9px; height: 9px; }
.sheet--inspect figcaption { padding: 14px 24px; font-size: var(--fs-xs); color: var(--slate); }
@media (max-width: 999px) {
  .quality__text, .sheet--inspect { grid-column: 1 / -1; }
  .sheet--inspect { position: static; }
  .quality__text { grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
}
@media (max-width: 640px) {
  .quality__text { grid-template-columns: 1fr; }
  .sheet__meta { grid-template-columns: 1fr; }
  .sheet__meta > div + div { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .sheet__meta > div { padding: 10px 18px; }
  .inspect { min-width: 560px; }
}

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.faq__head { grid-column: 1 / span 4; border-top: 1px solid var(--ink); padding-top: 22px; }
.faq__head h2 { font-size: var(--fs-xl); letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 20px; }
.faq__head p { font-size: var(--fs-s); color: var(--slate); max-width: 26em; }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: var(--fs-m); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { background: linear-gradient(var(--teal), var(--teal)) center / 14px 2px no-repeat; }
.faq__item summary:hover { color: var(--teal); }
.faq__item summary:focus-visible { outline-offset: 2px; }
.faq__a { padding: 0 48px 26px 0; max-width: 46em; }
.faq__a p { font-size: var(--fs-b); color: var(--ink); }
@media (max-width: 999px) {
  .faq__head, .faq__list { grid-column: 1 / -1; }
  .faq__list { border-top: 0; }
  .faq__a { padding-right: 0; }
}
@media (max-width: 520px) { .faq__item summary { font-size: var(--fs-b); } }

/* CTA */
.cta { background: var(--porcelain); padding-block: var(--section); }
.cta__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: center; }
.cta__text { grid-column: 1 / span 6; }
.cta__text h2 { font-size: var(--fs-xxl); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 24px; }
.cta__text .lead { color: var(--slate); font-size: var(--fs-m); max-width: 30em; }
.cta__fig { grid-column: 8 / -1; }
.cta__img { width: 100%; aspect-ratio: 4 / 5; max-height: 580px; object-fit: cover; object-position: 50% 60%; }
.cta__img--mop { aspect-ratio: 1 / 1; object-position: 62% 60%; }
@media (max-width: 899px) {
  .cta__text, .cta__fig { grid-column: 1 / -1; }
  .cta__img { aspect-ratio: 3 / 2; }
  .cta__img--mop { aspect-ratio: 3 / 2; }
}

/* Footer */
.site-foot { background: var(--ink); color: #c7ced4; padding: 72px 0 32px; font-size: var(--fs-s); }
.site-foot a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .4); }
.site-foot a:hover { color: var(--white); text-decoration-color: var(--white); }
.site-foot :focus-visible { outline-color: #5fc4cc; }
.site-foot__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #3a424a; }
.site-foot__brand { grid-column: 1 / span 4; }
.brand--foot { color: var(--white); margin-bottom: 18px; text-decoration: none; }
.brand--foot:hover { color: var(--white); }
.brand--foot .brand__mark { color: var(--white); }
.brand--foot .brand__sub { color: #b9c2c9; border-left-color: #3a424a; }
.site-foot__brand p { max-width: 28em; }
.site-foot__info { grid-column: 5 / span 5; margin: 0; display: grid; gap: 20px; }
.site-foot__info dt { color: var(--white); font-weight: 600; margin-bottom: 4px; }
.site-foot__info dd { margin: 0; }
.site-foot__nav { grid-column: 10 / -1; }
.site-foot__nav ul { list-style: none; }
.site-foot__nav a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.site-foot__nav a:hover { text-decoration: underline; }
.site-foot__nav a[aria-current="page"] { text-decoration: underline; }
.site-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: var(--fs-xs); color: #b9c2c9; }
.site-foot__legal p { margin: 0; }
@media (max-width: 899px) {
  .site-foot__brand { grid-column: 1 / -1; }
  .site-foot__info { grid-column: 1 / span 7; }
  .site-foot__nav { grid-column: 8 / -1; }
}
@media (max-width: 600px) {
  .site-foot__info, .site-foot__nav { grid-column: 1 / -1; }
  .site-foot__nav a { min-height: 44px; }
}

/* ---------------------------------------------------------------- Medical page */
.mhero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: var(--section); }
.mhero__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.mhero__text { grid-column: 1 / span 6; padding-bottom: 8px; }
.mhero__text h1 { font-size: var(--fs-xxl); letter-spacing: -0.035em; line-height: 1.03; margin-bottom: 24px; }
.mhero__text .lead { color: var(--slate); font-size: var(--fs-b); line-height: 1.6; max-width: 34em; }
.mhero__fig { grid-column: 7 / -1; }
.mhero__img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 30% 60%; }
.crumb { font-size: var(--fs-s); color: var(--slate); margin-bottom: 20px; }
.crumb a { color: var(--slate); }
.bounds { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); margin: 0; }
.bounds > div { padding: 18px 0 4px; border-top: 2px solid var(--ink); }
.bounds dt { font-weight: 600; margin-bottom: 4px; }
.bounds__in dt { color: var(--teal); }
.bounds__out dt { color: var(--amber-ink); }
.bounds__out { border-top-color: var(--amber-ink) !important; }
.bounds dd { margin: 0; font-size: var(--fs-s); max-width: 38em; }
@media (max-width: 899px) {
  .mhero__text, .mhero__fig { grid-column: 1 / -1; }
  .mhero__fig { order: -1; }
  .mhero__img { aspect-ratio: 3 / 2; }
  .bounds { grid-template-columns: 1fr; row-gap: 20px; }
}

.rooms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.rooms__fig { grid-column: 1 / span 4; position: sticky; top: calc(var(--head-h) + 24px); }
.rooms__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 42% 50%; }
.rooms__list { grid-column: 6 / -1; }
.room { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 0 36px; }
.room + .room { padding-top: 28px; border-top: 1px solid var(--ink); }
.room__head { margin-bottom: 14px; }
.room__head h3 { font-size: var(--fs-l); margin-bottom: 6px; }
.room__head p { color: var(--slate); font-size: var(--fs-s); max-width: 40em; }
.room__table thead th { font-size: var(--fs-xs); color: var(--slate); padding: 6px 0 8px; border-bottom: 1px solid var(--rule); }
.room__table thead th:last-child, .room__table td:last-child { text-align: right; width: 9rem; }
.room__table td { padding: 11px 0; border-bottom: 1px solid var(--rule-soft); font-size: var(--fs-s); line-height: 1.45; vertical-align: top; }
.room__table td:first-child { padding-right: 24px; }
.freq { font-weight: 600; white-space: nowrap; }
.freq--nightly { color: var(--teal); }
@media (max-width: 899px) {
  .rooms__fig { grid-column: 1 / -1; position: static; }
  .rooms__img { aspect-ratio: 16 / 9; }
  .rooms__list { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .room__table thead th:last-child, .room__table td:last-child { width: 6.5rem; }
}

.touch { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; margin-bottom: clamp(48px, 6vw, 80px); }
.touch__plan { grid-column: 1 / span 7; background: var(--white); border: 1px solid var(--ink); padding: clamp(16px, 2.5vw, 32px); }
.plan { display: block; width: 100%; height: auto; font-family: var(--font); }
.plan__floor { fill: var(--white); }
.plan__wall { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linejoin: miter; }
.plan__door { fill: none; stroke: var(--slate); stroke-width: 1.25; stroke-dasharray: 4 4; }
.plan__fix { fill: var(--porcelain); stroke: var(--slate); stroke-width: 1.25; }
.plan__sink { fill: var(--white); stroke: var(--slate); stroke-width: 1.25; }
.plan__clin { fill: url(#hatch); stroke: var(--amber-ink); stroke-width: 1.5; }
.plan__hatch { stroke: var(--amber-ink); stroke-width: 1.25; opacity: .55; }
.plan__lbl { font-size: 13px; fill: var(--slate); }
.plan__pt circle { fill: var(--teal); stroke: var(--white); stroke-width: 3; }
.plan__pt text { fill: var(--white); font-size: 14px; font-weight: 600; }
.touch__plan figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--slate); }
.plan-key { display: inline-block; width: 14px; height: 14px; flex: none; }
.plan-key--pt { background: var(--teal); border-radius: 50%; }
.key-item { display: inline-flex; align-items: center; gap: 10px; }
.plan-key--clin { border: 1.5px solid var(--amber-ink); background: repeating-linear-gradient(45deg, var(--amber-ink) 0 1px, transparent 1px 5px); opacity: .9; }
.touch__list { grid-column: 9 / -1; list-style: none; counter-reset: tp; border-top: 1px solid var(--ink); }
.touch__list li { counter-increment: tp; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--rule); font-size: var(--fs-s); line-height: 1.45; color: var(--slate); }
.touch__list li::before {
  content: counter(tp); position: absolute; left: 0; top: 11px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: var(--white);
  display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums;
}
.touch__list strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 999px) {
  .touch__plan, .touch__list { grid-column: 1 / -1; }
  .touch__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
}
@media (max-width: 560px) { .touch__list { grid-template-columns: 1fr; } }

.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; margin-bottom: clamp(40px, 5vw, 64px); }
.method__item { border-top: 1px solid var(--ink); padding-top: 18px; }
.method__item h3 { font-size: var(--fs-m); margin-bottom: 8px; }
.method__item p { font-size: var(--fs-s); }
.method__fig { width: 100%; }
img.method__img { width: 100%; height: clamp(220px, 30vw, 420px); object-fit: cover; object-position: 50% 52%; }
@media (max-width: 899px) { .method { grid-template-columns: 1fr; } }

.tl { margin-bottom: 40px; border-top: 1px solid var(--ink); padding-top: 14px; }
.tl__cap { font-size: var(--fs-s); font-weight: 600; margin-bottom: 18px; }
.tl__axis, .tl__track { display: grid; grid-template-columns: repeat(36, minmax(0, 1fr)); }
.tl__axis { display: block; position: relative; height: 26px; margin-left: 15rem; margin-right: 10rem; font-size: var(--fs-xs); color: var(--slate); font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--rule); }
.tl__axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.tl__axis span::before { content: ""; position: absolute; left: 50%; bottom: -7px; height: 6px; border-left: 1px solid var(--slate); }
.tl__axis span:nth-child(1) { left: 0; transform: none; }
.tl__axis span:nth-child(1)::before { left: 0; }
.tl__axis span:nth-child(2) { left: 16.667%; }
.tl__axis span:nth-child(3) { left: 33.333%; }
.tl__axis span:nth-child(4) { left: 50%; }
.tl__axis span:nth-child(5) { left: 66.667%; }
.tl__axis span:nth-child(6) { left: 83.333%; }
.tl__axis span:nth-child(7) { right: 0; transform: none; }
.tl__axis span:nth-child(7)::before { left: auto; right: 0; }
.tl__rows { list-style: none; }
.tl__row { display: grid; grid-template-columns: 15rem 1fr 10rem; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule-soft); }
.tl__label { font-size: var(--fs-s); font-weight: 600; padding-right: 16px; }
.tl__time { font-size: var(--fs-s); color: var(--slate); text-align: right; font-variant-numeric: tabular-nums; }
.tl__track {
  height: 52px; align-items: center;
  background-image: repeating-linear-gradient(to right, var(--rule-soft) 0 1px, transparent 1px calc(100% / 6));
}
.tl__bar { height: 16px; display: block; }
.tl__bar--patients { grid-column: 5 / 23; background: var(--porcelain-2); border: 1px solid var(--slate); }
.tl__bar--closeout { grid-column: 23 / 25; background: repeating-linear-gradient(45deg, var(--amber-ink) 0 1px, transparent 1px 5px); border: 1px solid var(--amber-ink); }
.tl__bar--crew { grid-column: 26 / 32; background: var(--teal); }
.tl__bar--alarm { grid-column: 32 / 37; background: var(--ink); }
.cols2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; }
.cols2 > p { grid-column: span 5; font-size: var(--fs-s); color: var(--slate); }
.cols2 > p:first-child { grid-column: 1 / span 5; }
.cols2 > p:last-child { grid-column: 7 / span 5; }
@media (max-width: 899px) {
  .tl__axis { margin-left: 0; margin-right: 0; }
  .tl__row { grid-template-columns: 1fr auto; grid-template-areas: "label time" "track track"; padding: 10px 0; row-gap: 8px; }
  .tl__label { grid-area: label; }
  .tl__time { grid-area: time; }
  .tl__track { grid-area: track; height: 20px; }
  .cols2 > p:first-child, .cols2 > p:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .tl__axis span:nth-child(even) { visibility: hidden; }
}

.setup { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.setup li { counter-increment: st; border-top: 1px solid var(--ink); padding-top: 16px; position: relative; }
.setup li::before {
  content: counter(st); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px;
  border: 1px solid var(--ink); font-weight: 600; font-size: var(--fs-s); font-variant-numeric: tabular-nums;
}
.setup h3 { font-size: var(--fs-m); margin-bottom: 8px; }
.setup p { font-size: var(--fs-s); color: var(--slate); }
@media (max-width: 1099px) { .setup { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .setup { grid-template-columns: 1fr; }
  .setup li { display: grid; grid-template-columns: 50px 1fr; }
  .setup li::before { grid-row: span 2; }
}

.limits { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; border: 2px solid var(--ink); padding: clamp(24px, 4vw, 48px); }
.limits__head { grid-column: 1 / span 4; }
.limits__head h2 { font-size: var(--fs-xl); letter-spacing: -0.025em; margin-bottom: 16px; }
.limits__head p { font-size: var(--fs-s); color: var(--slate); }
.limits__table { grid-column: 6 / -1; }
.limits__table thead th { font-size: var(--fs-xs); color: var(--slate); padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); }
.limits__table tbody th, .limits__table tbody td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: var(--fs-s); line-height: 1.5; }
.limits__table tbody th { width: 55%; padding-left: 26px; position: relative; }
.limits__table tbody th::before {
  content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 2px; background: var(--amber-ink);
}
.limits__table tbody td { color: var(--slate); }
.limits__table tbody tr:last-child th, .limits__table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 999px) { .limits__head, .limits__table { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .limits__table thead { display: none; }
  .limits__table tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .limits__table tbody th, .limits__table tbody td { display: block; width: auto; border: 0; padding-top: 0; padding-bottom: 0; }
  .limits__table tbody td { padding-left: 26px; margin-top: 4px; }
  .limits__table tbody th::before { top: 8px; }
}

.cl__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.cl__count { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl__actions { display: flex; gap: 10px; }
.cl__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cl__group { border: 0; margin: 0; padding: 20px 24px 24px; min-width: 0; border-bottom: 1px solid var(--rule); }
.cl__group:not(:nth-child(3n+1)) { border-left: 1px solid var(--rule); }
.cl__group:last-child { grid-column: span 2; border-bottom: 0; }
.cl__group:last-child ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.cl__group:nth-last-child(2) { border-bottom: 0; }
.cl__group legend { float: left; width: 100%; padding: 0; font-weight: 600; font-size: var(--fs-b); margin-bottom: 10px; }
.cl__group ul { clear: both; list-style: none; }
.cl__item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: var(--fs-s); line-height: 1.4; cursor: pointer; min-height: 44px; }
.cl__item input { width: 20px; height: 20px; margin: 0; flex: none; }
.cl__item input:checked + span { color: var(--slate); text-decoration: line-through; text-decoration-color: var(--teal-bright); text-decoration-thickness: 2px; }
@media (max-width: 999px) {
  .cl__groups { grid-template-columns: 1fr 1fr; }
  .cl__group:not(:nth-child(3n+1)) { border-left: 0; }
  .cl__group:nth-child(even) { border-left: 1px solid var(--rule); }
  .cl__group:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
  .cl__group:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .cl__groups { grid-template-columns: 1fr; }
  .cl__group:nth-child(even) { border-left: 0; }
  .cl__group { padding: 18px; }
  .cl__group:last-child ul { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Proposal page */
.phero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: var(--section); }
.phero__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.phero__text { grid-column: 1 / span 6; }
.phero__text h1 { font-size: var(--fs-xxl); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 24px; }
.phero__text .lead { color: var(--slate); max-width: 30em; }
.phero__alt { margin-top: 20px; font-size: var(--fs-s); color: var(--slate); }
.phero__fig { grid-column: 8 / -1; }
.phero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%; }
.walk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 8px; margin: 0; }
.walk > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.walk dt { font-weight: 600; margin-bottom: 6px; color: var(--teal); font-size: var(--fs-s); }
.walk dd { margin: 0; font-size: var(--fs-s); }
@media (max-width: 999px) {
  .phero__text { grid-column: 1 / span 7; }
  .phero__fig { grid-column: 8 / -1; }
  .walk { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}
@media (max-width: 720px) {
  .phero__text, .phero__fig { grid-column: 1 / -1; }
  .phero__img { aspect-ratio: 16 / 9; }
  .walk { grid-template-columns: 1fr; row-gap: 20px; }
}

.req { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.req__main { grid-column: 1 / span 7; }
.req__main > h2 { font-size: var(--fs-xl); letter-spacing: -0.025em; margin-bottom: 12px; }
.req__intro { color: var(--slate); font-size: var(--fs-s); margin-bottom: 28px; }
.req__side { grid-column: 9 / -1; position: sticky; top: calc(var(--head-h) + 24px); }
@media (max-width: 999px) {
  .req__main { grid-column: 1 / -1; }
  .req__side { grid-column: 1 / -1; position: static; }
}
.prefill { background: var(--mint); border-left: 3px solid var(--teal-bright); padding: 14px 18px; font-size: var(--fs-s); margin-bottom: 24px; }
.form { display: grid; gap: 0; }
.fs { border: 0; margin: 0; padding: 28px 0 32px; border-top: 1px solid var(--ink); min-width: 0; display: grid; gap: 28px; }
.fs__legend { float: left; width: 100%; padding: 0; font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.02em; }
.fs__legend + * { clear: both; }
.opts { display: grid; gap: 8px; }
.opts--2 { grid-template-columns: 1fr 1fr; }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; font-size: var(--fs-s); line-height: 1.35; }
.opt:hover { border-color: var(--ink); }
.opt input { width: 20px; height: 20px; margin: 0; flex: none; }
.opt:has(input:checked) { border-color: var(--teal); background: var(--mint); box-shadow: inset 0 0 0 1px var(--teal); }
.opt small { display: block; color: var(--slate); font-size: var(--fs-xs); }
.opt-tag { font-weight: 400; color: var(--slate); font-size: var(--fs-s); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--gap); }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gap); align-items: start; }
.field--wide { grid-column: 1 / -1; }
.unit { position: relative; }
.unit .input { padding-right: 64px; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--slate); font-size: var(--fs-s); pointer-events: none; }
.err { margin: 6px 0 0; color: #a12a1c; font-size: var(--fs-s); font-weight: 600; }
.err:empty { display: none; }
.field.has-error .opts .opt { border-color: #a12a1c; }
@media (max-width: 720px) {
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 .field:last-child { grid-column: 1 / -1; }
  .opts--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .opts--2, .row2 { grid-template-columns: 1fr; }
  .opts--3 { grid-template-columns: 1fr; }
  .input--half { max-width: none; }
}
.form__submit { border-top: 1px solid var(--ink); padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { margin: 0; font-size: var(--fs-s); color: var(--slate); }
.errsum { border: 2px solid #a12a1c; background: var(--white); padding: 18px 22px; margin-bottom: 28px; }
.errsum h3 { font-size: var(--fs-b); color: #a12a1c; margin-bottom: 8px; }
.errsum ul { padding-left: 20px; font-size: var(--fs-s); }
.errsum a { color: #a12a1c; font-weight: 600; }
.confirm { border: 1px solid var(--ink); border-top: 4px solid var(--teal-bright); background: var(--white); padding: clamp(24px, 4vw, 40px); }
.confirm h2 { font-size: var(--fs-xl); letter-spacing: -0.025em; margin-bottom: 16px; }
.confirm__tag { font-size: var(--fs-m); color: var(--slate); font-weight: 400; letter-spacing: 0; }
.confirm p { max-width: 40em; }
.confirm:focus { outline: 2px solid var(--teal-bright); outline-offset: 4px; }

.summary__prog { display: block; width: 100%; height: 4px; border: 0; background: var(--porcelain-2); appearance: none; -webkit-appearance: none; }
.summary__prog::-webkit-progress-bar { background: var(--porcelain-2); }
.summary__prog::-webkit-progress-value { background: var(--teal-bright); transition: width .2s ease; }
.summary__prog::-moz-progress-bar { background: var(--teal-bright); }
.summary__list { margin: 0; padding: 4px 24px 0; }
.summary__list > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.summary__list dt { font-size: var(--fs-xs); font-weight: 600; color: var(--slate); padding-top: 2px; }
.summary__list dd { margin: 0; font-size: var(--fs-s); line-height: 1.45; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.summary__list dd.is-empty { color: var(--slate); }
.summary__list dd:not(.is-empty) { font-weight: 500; }
.summary__next { padding: 16px 24px 20px; margin: 0; font-size: var(--fs-xs); color: var(--slate); }
@media (max-width: 999px) {
  .summary__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (max-width: 560px) {
  .summary__list { grid-template-columns: 1fr; padding-inline: 18px; }
  .summary__list > div { grid-template-columns: 7rem 1fr; }
  .summary__next { padding-inline: 18px; }
}

/* Print: the medical checklist */
@media print {
  .cbar, .skip, .site-head, .site-foot, .cl__bar { display: none !important; }
  body.print-checklist main > *:not(#checklist) { display: none !important; }
  body.print-checklist #checklist { padding: 0; background: none; }
  body.print-checklist .sh { margin-bottom: 16px; }
  .cl__groups { grid-template-columns: 1fr 1fr; }
  .cl__group { break-inside: avoid; }
  a { color: inherit; }
}

/* Spacing joins */
.band + .section { padding-top: 0; }
.hero + .section { padding-top: 0; }
.mhero + .section, .phero + .section:not(.section--porcelain) { padding-top: 0; }
