/* ===========================================================================
   Compare Toilet Hire: page components. Tokens, type, buttons, header, nav and
   footer live in styles.css, which also documents every component below.
   =========================================================================== */

/* ---------- Photos and placeholders ---------- */

.photo { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; background: var(--ph); }
/* Wide crops of the weddings photo keep the steps, lanterns and flowers in frame (keyed to the file name) */
img[src*="job-weddings"] { object-position: 50% 85%; }

/* ---------- Breadcrumbs ---------- */

.crumbs { padding-block: 14px 0; font-size: .9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .55rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-height: 24px; }
.crumbs li + li::before {
  content: ""; width: 6px; height: 6px; margin-right: .55rem;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .7;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 820px) {
  .crumbs { padding-block: 0; }
  .crumbs li, .crumbs a { min-height: 44px; }
  .crumbs a { display: inline-flex; align-items: center; }
}
.crumbs [aria-current="page"] { color: var(--ink-2); }

/* ---------- Page hero (interior) + legacy hero ---------- */

.page-hero, .hero, .hero-tight { padding-block: clamp(12px, 1rem + 1.2vw, 36px) clamp(32px, 2rem + 2.5vw, 64px); }
.page-hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.page-hero:not(.page-hero--plain) .page-hero-grid { grid-template-columns: 1.15fr .85fr; }
.page-hero h1, .hero h1 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.2rem); margin-bottom: .4em; max-width: 20ch; }
.page-hero .lede, .hero .lede { max-width: 58ch; }
.page-hero .btn-row, .hero .btn-row { margin-top: 1.5rem; }
.page-hero-img { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-surf); overflow: hidden; box-shadow: var(--shadow-1); background: var(--ph); }
@media (max-width: 820px) {
  .page-hero:not(.page-hero--plain) .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-img { aspect-ratio: 16 / 10; }
}

.hero-proof, .ticks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .65rem; }
.ticks { margin-top: 0; }
.hero-proof li, .ticks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-2); }
.hero-proof svg, .ticks svg { flex: none; width: 20px; height: 20px; margin-top: .22rem; color: var(--accent); }

/* ---------- Fact strip ---------- */

.fact-section { padding-block: 0; }
.fact-strip {
  list-style: none; margin: 0; padding: 1.25rem 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 2rem;
  border-block: 1px solid var(--line);
}
.fact-strip li { display: flex; align-items: center; gap: .75rem; font-weight: 550; color: var(--ink-2); line-height: 1.35; }
.fact-strip svg { flex: none; width: 26px; height: 26px; color: var(--accent); }
@media (max-width: 760px) { .fact-strip { grid-template-columns: 1fr; gap: .9rem; } }

/* ---------- Price hero ---------- */

.price-hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surf);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.price-hero-q { font: 650 1.1rem var(--font-display); letter-spacing: -.015em; margin: 0 0 1rem; }
.price-hero-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem 2rem; }
.price-hero-item { display: flex; flex-direction: column; gap: .2rem; }
.price-hero-fig { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.7rem); font-weight: 600; line-height: 1.05; color: var(--ink); }
.price-hero-unit { font-size: .92rem; color: var(--muted); }
.price-hero-note { margin: 1.1rem 0 0; font-size: .92rem; color: var(--ink-2); max-width: 66ch; }

/* ---------- Finder ---------- */

.finder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surf); padding: clamp(1rem, 2.5vw, 1.4rem); box-shadow: var(--shadow-1); }
.finder-form { display: none; }
.js .finder-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .9rem; align-items: end; }
.finder-field { display: grid; gap: .4rem; min-width: 0; }
.finder-msg { grid-column: 1 / -1; margin: 0; font-size: .92rem; color: var(--bad-ink); }
.finder-msg:empty { display: none; }
.finder-go { min-height: 48px; }
.finder-links { display: grid; gap: 1rem; }
.finder-links-h { font: 650 1rem var(--font-body); letter-spacing: 0; margin: 0 0 .5rem; }
@media (max-width: 700px) {
  .js .finder-form { grid-template-columns: 1fr; }
  .finder-go { width: 100%; min-height: 52px; }
}

.finder--compact { background: none; border: 0; padding: 0; box-shadow: none; }
.start-band { background: var(--surface-2); padding-block: clamp(32px, 4vw, 52px); }
.start-band-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem 3rem; align-items: center; }
.start-band h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: .3rem; }
.start-band p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 900px) { .start-band-inner { grid-template-columns: 1fr; } }

/* ---------- Switcher + chips ---------- */

.switcher { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.switcher-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.switcher-label { margin: 0; font: 650 1.05rem var(--font-display); letter-spacing: -.015em; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chips li { display: contents; }
.chip {
  position: relative;   /* contains the visually-hidden count text so a scrolling chip row cannot widen the page */
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; padding: .45rem .95rem;
  font-size: .95rem; font-weight: 550;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl);
  text-decoration: none;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), transform 160ms var(--ease);
}
a.chip:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--ink); transform: translateY(-1px); }
.chip > span {
  min-width: 1.9em; padding: .1em .6em; text-align: center;
  font: 600 .78rem/1.5 var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--ink-2); background: var(--surface-2); border-radius: 100px;
}
.chip.is-active, .chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* Inverted badge on the active chip: accent text on the light (or, in dark mode, dark) ink colour, AA in both schemes and on hover */
.chip.is-active > span, .chip[aria-current="true"] > span { background: var(--accent-ink); color: var(--accent); }
.chip-primary { border-color: var(--accent-line); background: var(--accent-tint); color: var(--ink); }
.chips { margin-top: 1.25rem; }
.switcher .chips { margin-top: 0; }
.switcher-note { margin: -.25rem 0 0; font-size: .88rem; color: var(--muted); max-width: 70ch; }
.switcher-row .switcher-note { margin-top: -.1rem; }
@media (max-width: 600px) {
  /* One scrolling row per chip group, the active chip first, so the list is not two screens down */
  .switcher .chips {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .1rem; scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
  .switcher .chips::-webkit-scrollbar { display: none; }
  .switcher .chip { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .switcher .chip.is-active, .switcher .chip[aria-current="true"] { order: -1; }
}

/* ---------- Job bento (6 tiles: 2 wide + 4 square on four columns) ---------- */

.job-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; gap: 16px; }
.job-tile {
  position: relative; display: block; isolation: isolate; overflow: hidden;
  border-radius: var(--r-surf); background: var(--ph);
  color: #F7F9FF; text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.job-tile:hover { color: #F7F9FF; transform: translateY(-3px); box-shadow: var(--shadow-2); }
.job-tile--wide { grid-column: span 2; }
.job-tile > img, .job-tile > .ph, .job-tile > .photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 420ms var(--ease);
}
.job-tile:hover > img, .job-tile:hover > .photo { transform: scale(1.03); }
.job-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(var(--scrim) / .92) 0%, rgb(var(--scrim) / .8) 32%, rgb(var(--scrim) / .44) 58%, rgb(var(--scrim) / 0) 88%);
}
.job-tile-body { position: absolute; inset: auto 0 0 0; padding: 1.1rem 1.25rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.job-tile-name { font: 650 1.4rem/1.1 var(--font-display); letter-spacing: -.025em; text-shadow: 0 1px 3px rgb(var(--scrim) / .45); }
.job-tile-meta { font-size: .92rem; line-height: 1.4; color: rgb(247 249 255 / .94); text-shadow: 0 1px 3px rgb(var(--scrim) / .45); }
.job-tile-meta .mono { font-weight: 600; }
@media (max-width: 900px) {
  .job-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
}
@media (max-width: 560px) {
  .job-bento { grid-template-columns: 1fr; grid-auto-rows: 210px; gap: 12px; }
  .job-tile--wide { grid-column: auto; }
}

/* ---------- State map (cartogram on a CSS grid) ---------- */

.state-map {
  display: grid; gap: 10px; max-width: 540px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(92px, auto));
  grid-template-areas:
    "wa nt  qld qld"
    "wa sa  nsw nsw"
    "wa sa  vic act"
    ".  .   tas .";
}
.state-tile {
  display: flex; flex-direction: column; justify-content: flex-start; gap: .2rem;
  padding: .8rem .9rem; min-width: 0;
  color: var(--ink); text-decoration: none;
  background: color-mix(in srgb, var(--accent) calc(var(--n, 0) * 20%), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-surf);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.state-tile:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-1); }
.state-tile--wa { grid-area: wa; } .state-tile--nt { grid-area: nt; } .state-tile--qld { grid-area: qld; }
.state-tile--sa { grid-area: sa; } .state-tile--nsw { grid-area: nsw; } .state-tile--vic { grid-area: vic; }
.state-tile--act { grid-area: act; } .state-tile--tas { grid-area: tas; }
.state-abbr { font: 700 1.5rem/1 var(--font-display); letter-spacing: -.03em; }
.state-name { font-size: .82rem; line-height: 1.25; color: var(--ink-2); }
.state-n { margin-top: auto; padding-top: .4rem; font-size: .9rem; color: var(--ink); }
.state-n b { font-family: var(--font-mono); font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; }
.map-note { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); max-width: 540px; }
.map-title { font: 650 1.05rem var(--font-display); letter-spacing: -.015em; margin: 0 0 .75rem; }
.state-n { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .3rem; }
.state-n .lbl { font-size: .8rem; color: var(--ink-2); }
@media (max-width: 480px) {
  .state-map { gap: 8px; grid-template-rows: repeat(4, minmax(84px, auto)); }
  .state-name { display: none; }
  .state-tile { padding: .65rem .7rem; }
  .state-abbr { font-size: 1.25rem; }
  .state-n { flex-direction: column; align-items: flex-start; gap: 0; }
  .state-n b { font-size: 1.05rem; }
  .state-n .lbl { font-size: .72rem; line-height: 1.2; }
}

/* ---------- Provider rows ---------- */

.ops { border-top: 1px solid var(--line); }
.op, .op-card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem 1.5rem;
  padding: .95rem .5rem .95rem .75rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms var(--ease);
}
/* Only an Unconfirmed listing carries a stripe, in the warning colour */
.op.is-unconfirmed::before, .op-card.is-unconfirmed::before {
  content: ""; position: absolute; left: 0; top: .8rem; bottom: .8rem; width: 3px; border-radius: 3px;
  background: var(--warn-line);
}
.op.is-unconfirmed, .op-card.is-unconfirmed { padding-left: 1.1rem; }
.op:hover, .op-card:hover { background: var(--surface); }
.op-main, .op-card-main { min-width: 0; }
.op h3, .op-card-name { margin: 0; font: 600 1.06rem/1.3 var(--font-body); letter-spacing: -.01em; }
.op h3 a, .op-card-name a { color: var(--ink); text-decoration: none; }
.op h3 a:hover, .op-card-name a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.op-where, .op-card-where { margin: .1rem 0 0; font-size: .92rem; color: var(--muted); }
.op-flag {
  display: inline-flex; align-items: center; gap: .35rem;
  margin: .3rem 0 .1rem; padding: .12rem .55rem;
  font-size: .8rem; font-weight: 600; line-height: 1.4;
  color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-ctl);
}
.op-flag svg { width: 14px; height: 14px; flex: none; }
.op-tags, .op-card-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: .45rem 0 0; padding: 0; }
.op-tags li, .op-card-tags li {
  padding: .1rem .55rem; font-size: .8rem; font-weight: 500; line-height: 1.5;
  color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-ctl);
}
.op-card-tags li.is-match { color: var(--accent); background: var(--accent-tint); font-weight: 650; }
.op-act, .op-card-act { display: flex; align-items: center; gap: .35rem; }
.op-nophone { display: inline-flex; align-items: center; justify-content: center; min-width: 9.5rem; min-height: 40px; padding-inline: .95rem; font-size: .92rem; font-weight: 500; color: var(--muted); }
.op-card-act .btn-ghost { min-width: 9.5rem; border-color: var(--line-strong); }
.op-card-act .btn-ghost:hover { border-color: var(--ink); }
.state-head { font-size: 1.1rem; margin: 2.25rem 0 .6rem; }
.state-head:first-child { margin-top: 0; }
.state-head + .ops { margin-top: 0; }
@media (max-width: 720px) {
  .op, .op-card { grid-template-columns: 1fr; padding-right: .25rem; }
  .op-act, .op-card-act { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
  .op-card-act .btn-ghost { min-width: 0; }
  .op-card-act .btn { min-height: 44px; }
  .op-nophone { min-width: 0; justify-content: flex-start; padding-inline: 0; min-height: 44px; }
  .op-card-name a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .op-card-act:has(.btn-quiet:only-child) { grid-template-columns: 1fr; }
}

/* ---------- Tables ---------- */

.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; border-collapse: collapse; font-size: .98rem; }
.ptable caption { text-align: left; font: 650 1.1rem var(--font-display); letter-spacing: -.015em; color: var(--ink); padding-bottom: .8rem; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
.ptable thead th { font-size: .82rem; font-weight: 600; color: var(--muted); border-bottom: 1.5px solid var(--line-strong); white-space: nowrap; }
.ptable th.num, .ptable td.num { text-align: right; white-space: nowrap; }
.ptable th.num { font-family: var(--font-body); letter-spacing: 0; }
.ptable td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.08rem; letter-spacing: -.02em; color: var(--ink); }
.ptable td .per { display: block; font-size: .84rem; color: var(--muted); font-weight: 400; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable.ref thead th { white-space: normal; vertical-align: bottom; }
@media (max-width: 560px) {
  .ptable.ref th, .ptable.ref td { padding: .6rem .45rem; }
  .ptable-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable-stack, .ptable-stack tbody, .ptable-stack caption { display: block; width: 100%; }
  .ptable-stack tr { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .ptable-stack tbody tr:last-child { border-bottom: 0; }
  .ptable-stack td { display: block; padding: 0; border: 0; }
  .ptable-stack td:nth-child(1) { font-weight: 600; }
  .ptable-stack td.num { grid-column: 2; grid-row: 1; font-size: 1.2rem; }
  .ptable-stack td:nth-child(3) { grid-column: 1 / -1; color: var(--ink-2); }
  .ptable-stack td:nth-child(4) { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
  .ptable-stack td:nth-child(4)::before { content: "Based in "; }
}

.note + .tscroll { margin-top: 1.25rem; }
.note { color: var(--muted); font-size: .92rem; margin: .9rem 0 0; max-width: 70ch; }
.tool-note { margin: 1.1rem 0 0; font-weight: 600; }
.src { padding-left: 1.1rem; font-size: .95rem; color: var(--ink-2); }
.src li { margin: .35rem 0; }

/* ---------- Next band ---------- */

.next-band { padding-block: clamp(32px, 4vw, 64px); }
.next-band-inner {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  background: var(--accent-tint); border: 1px solid var(--accent-line); border-radius: var(--r-surf);
  padding: clamp(1.4rem, 4vw, 2.75rem);
}
.next-band-copy h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); margin-bottom: .45em; }
.next-band-copy p { color: var(--ink-2); max-width: 44ch; }
.next-band-copy .btn { margin-top: 1.25rem; }
.next-band-links { list-style: none; margin: 0; padding: 0; }
.next-band-links li + li { border-top: 1px solid var(--accent-line); }
.next-link {
  display: flex; align-items: center; gap: 1rem; padding: 1rem .25rem;
  color: var(--ink); text-decoration: none;
  transition: transform 160ms var(--ease), color 160ms var(--ease);
}
.next-link:hover { color: var(--accent); transform: translateX(3px); }
.next-link > .ico:first-child { width: 28px; height: 28px; color: var(--accent); flex: none; }
.next-link > .ico:last-child { width: 18px; height: 18px; flex: none; margin-left: auto; color: var(--accent); }
.next-link-text { display: flex; flex-direction: column; line-height: 1.35; }
.next-link-name { font-weight: 650; }
.next-link-desc { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 820px) { .next-band-inner { grid-template-columns: 1fr; } }

/* ---------- Honesty notes and panels ---------- */

.claim {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surf);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}
.claim h3 { font-size: 1.1rem; margin: 0 0 .45rem; }
.claim p { margin: 0; color: var(--ink-2); max-width: 78ch; }
.claim-slim { padding-block: 0 clamp(40px, 5vw, 72px); }
.cm { margin-inline: -.18em; }
.unconfirmed {
  margin: 1.1rem 0 0; padding: .85rem 1rem; max-width: 44rem;
  color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-surf);
  font-size: .95rem;
}
.unconfirmed b { font-weight: 700; }

.trap {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-surf); padding: 1.25rem 1.4rem;
}
.trap h3 { font: 650 1.1rem var(--font-display); margin: 0 0 .4rem; }
.trap p { margin: 0; color: var(--ink-2); }

.method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surf); padding: clamp(1.2rem, 3vw, 1.75rem); }
.method ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.method li { color: var(--ink-2); font-size: .98rem; }
.method li b { color: var(--ink); }
.sources { margin-top: 1.2rem; color: var(--muted); font-size: .92rem; line-height: 1.7; }

.cta-band { background: var(--footer-bg); color: var(--footer-head); }
.cta-band h2 { color: var(--footer-head); }
.cta-band .lede, .cta-band p { color: var(--footer-ink); margin-inline: auto; }

figure { margin: 0; }
figcaption { margin-top: 1rem; color: var(--muted); font-size: .93rem; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surf); box-shadow: var(--shadow-1); padding: 1.5rem 1.3rem 1.1rem; }
/* The cost page chart carries fixed hex colours; map them to tokens so dark mode works */
.chart-card svg text { font-family: var(--font-body); }
.chart-card [fill="#10201F"] { fill: var(--ink); }
.chart-card [fill="#3D4F4D"] { fill: var(--ink-2); }
.chart-card [fill="#6B7C7A"] { fill: var(--muted); }
.chart-card [fill="#0B5D52"] { fill: var(--accent); }
.chart-card [stroke="#DFE6E5"] { stroke: var(--line); }
.chart-card [stroke="#B9C7C5"] { stroke: var(--line-strong); }

/* ---------- Estimator and calculators ---------- */

.est { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surf); box-shadow: var(--shadow-1); overflow: hidden; }
.est-head { padding: 1.5rem 1.6rem 1.25rem; border-bottom: 1px solid var(--line); }
.est-head h2 { font-size: 1.4rem; margin: 0 0 .3rem; }
.est-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.est-body { padding: 1.6rem; display: flex; flex-direction: column; gap: 1.5rem; }
.est fieldset { border: 0; padding: 0; margin: 0; }
.est legend { padding: 0; margin-bottom: .7rem; font-size: .95rem; font-weight: 650; color: var(--ink); }
.est legend label { font-size: inherit; }

.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; min-height: 44px; padding: .5rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl);
  font-size: .95rem; font-weight: 500; color: var(--ink-2); background: var(--surface);
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.opt span:hover { border-color: var(--accent); color: var(--accent); }
.opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.num-in { font-family: var(--font-mono); font-size: 1.15rem; font-variant-numeric: tabular-nums; width: 9rem; }

.result { background: var(--accent-tint); border-top: 1px solid var(--accent-line); padding: 1.6rem; }
.result-label { font-size: .92rem; font-weight: 650; color: var(--accent); margin-bottom: .4rem; }
.result-figure { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.result-sub { margin: .6rem 0 0; color: var(--ink-2); }
.breakdown { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--accent-line); display: flex; flex-direction: column; gap: .5rem; }
.brow { display: flex; justify-content: space-between; gap: 1rem; font-size: .96rem; }
.brow span:first-child { color: var(--ink-2); }
.brow span:last-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.brow.mute span { color: var(--muted); font-family: var(--font-body); font-style: italic; font-weight: 400; white-space: normal; }
@media (max-width: 560px) { .est-body, .result, .est-head { padding-left: 1.1rem; padding-right: 1.1rem; } }

/* ---------- Home ---------- */

.home-hero { padding-block: clamp(20px, 2vw, 40px) clamp(36px, 4vw, 64px); }
.home-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.home-hero h1 { font-size: clamp(2.1rem, 1.1rem + 3.1vw, 3.6rem); margin-bottom: .35em; max-width: 17ch; }
.home-hero .lede { margin-bottom: 1.6rem; max-width: 50ch; }
.home-hero-img { margin: 0; aspect-ratio: 5 / 4; border-radius: var(--r-surf); overflow: hidden; box-shadow: var(--shadow-2); background: var(--ph); }
@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-img { aspect-ratio: 16 / 10; }
}

.sec-head { max-width: 62ch; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.sec-head p { margin: 0; color: var(--ink-2); }

.map-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .map-split { grid-template-columns: 1fr; } .map-col { order: 2; } }

.cost-band { position: relative; isolation: isolate; overflow: hidden; color: #F7F9FF; background: var(--ph); padding-block: clamp(56px, 3rem + 5vw, 120px); }
.cost-band-bg { position: absolute; inset: 0; z-index: -2; }
.cost-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(var(--scrim) / .9) 0%, rgb(var(--scrim) / .62) 55%, rgb(var(--scrim) / .35) 100%); }
@media (max-width: 700px) {
  /* Phone: the copy runs across the whole photo, so the scrim does too */
  .cost-band::after { background: linear-gradient(90deg, rgb(var(--scrim) / .88) 0%, rgb(var(--scrim) / .8) 60%, rgb(var(--scrim) / .72) 100%); }
}
.cost-band :focus-visible { outline-color: #E8EEF5; }
.cost-band h2 { color: #F7F9FF; max-width: 18ch; }
.cost-band .lede { color: rgb(247 249 255 / .92); max-width: 50ch; }
.cost-figs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 2.25rem; margin: 1.75rem 0 2rem; }
.cost-fig { display: flex; flex-direction: column; gap: .2rem; }
.cost-fig-n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: clamp(2.5rem, 1.2rem + 5vw, 4.6rem); line-height: 1; letter-spacing: -.04em; }
.cost-fig-l { font-size: .98rem; color: rgb(247 249 255 / .92); max-width: 15em; }
.cost-figs > .ico { width: 36px; height: 36px; margin-bottom: 1.6rem; opacity: .85; }
@media (max-width: 560px) { .cost-figs > .ico { display: none; } }

.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 5vw, 4rem); }
.tool-row {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem .25rem;
  border-top: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform 160ms var(--ease), color 160ms var(--ease);
}
.tool-row:hover { color: var(--accent); transform: translateX(3px); }
.tool-row > .ico:first-child { width: 28px; height: 28px; color: var(--accent); flex: none; }
.tool-row > .ico:last-child { width: 18px; height: 18px; color: var(--accent); flex: none; margin-left: auto; }
.tool-row-text { display: flex; flex-direction: column; line-height: 1.35; }
.tool-row-name { font-weight: 650; }
.tool-row-desc { font-size: .92rem; color: var(--muted); }
.tool-grid li:nth-last-child(-n+2) .tool-row { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-grid li:nth-last-child(2) .tool-row { border-bottom: 0; }
}

.nf-links { display: grid; gap: 1.5rem; }


/* ---------- Interior pages: switcher in the hero, provider page, disclosure lists ---------- */

.page-hero .switcher { margin-top: 1.5rem; max-width: 62rem; }
.page-hero .switcher .chip { min-height: 42px; }
@media (max-width: 720px) { .page-hero .switcher .chip { min-height: 44px; } }
.page-hero .note { margin-top: 1rem; }
.page-hero--plain .page-hero-grid { grid-template-columns: 1fr; }

/* Provider page header: name, where, tags, honesty flag; contact panel on the right */
.pv-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.pv-hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); max-width: 24ch; margin-bottom: .35em; }
.pv-where { display: flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; font-size: 1.05rem; font-weight: 550; color: var(--ink-2); }
.pv-where svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.pv-tags { margin: 0 0 1rem; }
.pv-tags li { font-size: .86rem; padding: .18rem .65rem; }
.pv-hero .op-flag { margin: 0 0 1rem; font-size: .86rem; }
.pv-hero .lede { margin-bottom: 0; }
.pv-actions {
  display: grid; gap: .75rem; padding: 1.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surf); box-shadow: var(--shadow-1);
}
.pv-actions-title { margin: 0 0 .15rem; font: 650 1.1rem var(--font-display); letter-spacing: -.015em; }
.pv-actions .btn { width: 100%; }
@media (max-width: 900px) { .pv-hero-grid { grid-template-columns: 1fr; } .pv-actions { max-width: 26rem; } }

.pv-section { padding-bottom: clamp(32px, 3vw, 56px); }
.hire-grid { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); column-count: 2; column-gap: clamp(2rem, 5vw, 4rem); }
.hire-item {
  display: flex; gap: 1rem; align-items: flex-start; break-inside: avoid;
  padding: 1rem .25rem; border-bottom: 1px solid var(--line);
}
.hire-item > svg { flex: none; width: 24px; height: 24px; margin-top: .15rem; color: var(--accent); }
.hire-item b { display: block; font: 650 1.05rem/1.3 var(--font-body); letter-spacing: -.01em; margin-bottom: .1rem; }
.hire-item b a { color: var(--ink); text-decoration: none; }
.hire-item b a { display: inline-block; padding-block: .6rem; margin-block: -.6rem; }
.hire-item b a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.hire-item span span { display: block; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 640px) { .hire-grid { column-count: 1; } }
.pv-section .note { margin-top: 1rem; }
.section-paper2 .lede { margin-bottom: 1.5rem; }

/* Phone contact bar: last in <main>, sticks to the bottom of the screen on phones only */
.action-bar { display: none; }
@media (max-width: 720px) {
  .pv-actions { display: none; }
  .action-bar {
    display: block; position: sticky; bottom: 0; z-index: var(--z-bar);
    padding: .65rem 0 calc(.65rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgb(14 27 43 / .08);
  }
  html:has(.action-bar) { scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .action-bar-inner { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .6rem; }
  .action-bar .btn { min-height: 50px; padding-inline: .6rem; }
}

/* Disclosure for the rest of a long list (native <details>, content stays in the HTML) */
.more { margin-top: 1rem; }
.more > summary {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .6rem 1.1rem;
  font: 600 .97rem/1.1 var(--font-body); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--r-ctl);
  cursor: pointer; list-style: none; user-select: none;
  transition: background-color 160ms var(--ease);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.more > summary svg { width: 16px; height: 16px; transition: transform 160ms var(--ease); }
.more[open] > summary svg { transform: rotate(180deg); }
.more[open] > summary { margin-bottom: 1rem; }
.more-open, .more[open] .more-closed { display: none; }
.more[open] .more-open { display: inline; }
.more .ops { border-top: 0; }
.more-all { margin: 1rem 0 0; font-weight: 550; }
.more[open] > .more-all, .more .more-all { margin-top: 1.25rem; }

/* National job pages: one group per state */
.state-group + .state-group { margin-top: clamp(2rem, 4vw, 3rem); }
.sg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.sg-head h3 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.3rem; }
.sg-head .count { white-space: nowrap; font-family: var(--font-body); font-weight: 550; font-size: .82rem; }
.sg-head a { font-size: .95rem; font-weight: 550; }

/* Spacing and phone order for interior heroes */
.page-hero--plain { padding-bottom: clamp(16px, 2vw, 32px); }
.page-hero + section:not(.section-paper2):not(.section-tint) { padding-top: clamp(24px, 3vw, 48px); }
/* No breadcrumb bar above it (the 404): more room under the header */
main > .page-hero:first-child { padding-top: clamp(28px, 2rem + 2vw, 56px); }

/* Phones: the headline comes first, then the photo, then the choosers and notes */
@media (max-width: 820px) {
  .page-hero:not(.page-hero--plain) .page-hero-grid { gap: 0; grid-template-columns: minmax(0, 1fr); }
  .page-hero:not(.page-hero--plain) .page-hero-copy { display: contents; }
  .page-hero:not(.page-hero--plain) .page-hero-copy > * { order: 4; }
  .page-hero:not(.page-hero--plain) .page-hero-copy > h1 { order: 1; }
  .page-hero:not(.page-hero--plain) .page-hero-copy > .lede { order: 2; }
  .page-hero:not(.page-hero--plain) .page-hero-img { order: 3; aspect-ratio: 2 / 1; margin: 1.1rem 0 1.5rem; }
}

/* Short captions break evenly instead of leaving one word on the last line */
.job-tile-name, .job-tile-meta, .cost-fig-l, .price-hero-unit, .next-link-desc, .tool-row-desc,
.np-desc, .sec-head p, .state-name, .hire-item span span { text-wrap: balance; }

/* Dark mode: a calculator result is a tinted panel, not a bright slab (tools.css sets the slab; this wins by specificity) */
@media (prefers-color-scheme: dark) {
  html .tool .result { background: var(--accent-tint); color: var(--ink); border: 1px solid var(--accent-line); box-shadow: none; }
  html .tool .result-label { color: var(--accent); opacity: 1; }
  html .tool .result-figure, html .tool .result-sub, html .tool .brow span:last-child { color: var(--ink); }
  html .tool .brow span:first-child, html .tool .brow.mute span { color: var(--ink-2); opacity: 1; }
  html .tool .breakdown { border-top-color: var(--accent-line); }
}
