/*
 * Website cost calculator, v4 (2026-10-12). Figma "◰ Blog + Quiz" > "Website cost calculator page v4" (162427:13005).
 * Built on the theme's tokens (THEME-SPEC): type has-large / has-medium / fs-20, greys #757677 on white, #6E6E73 on
 * #F8F8F8 and #808080 on black, hairlines #E2E3E6 (#333 on dark), fields #F8F8F8 r20, the 60px pill button, focus
 * 2px #0967F4. Phones are max-width 781px, tablets 782 to 1112, desktop from 1113.
 * Two-class selectors beat the customizer's inline heading colours (theme gotcha, 2026-10-05).
 *
 * 0.7.0 (Daniel, 2026-10-13): on phones the bar is a bottom sheet as in apps (HC Demo's Vaul drawer) with a plain
 * grab line; answer icons are bare line glyphs again; checklist rows put the box, the icon and the text in columns.
 *
 * 0.6.0 (Daniel, 2026-10-12): country and industry questions, nothing selected at the start (the bar shows no price
 * until the first answer), Remix line icons on the answers and the guide's blocks, much less text on phones, the
 * breakdown drawer removed (Breakdown goes to "Your estimate"), and on phones an app-style bar with a grip.
 *
 * 0.5.0 (QA, 2026-10-12): every focus ring also draws a transparent outline, which Windows high contrast shows; the
 * breakdown follows Figma (desktop 162434:14089, phone sheet 162434:14899); the guide's grey on #F8F8F8 is #6E6E73.
 * Deliberate differences from Figma, with their reasons: the phone dock's tax line is 15/20 in a lighter grey
 * (usability test: the price with tax is what many visitors pay); the phone lead keeps 32 above "Your project"
 * (Figma 56), because the dock already covers the first question on a 659px screen.
 */

/* One weight, the theme's Euclid Circular A Regular, as everywhere on the site (Daniel, 2026-10-16: no bold; the
   Medium figures and their font are gone). */

.wgc {
  --wgc-ink: #000;
  --wgc-black: #111;
  --wgc-grey: #757677;
  --wgc-grey-on-tint: #6E6E73;
  --wgc-grey-on-dark: #808080;
  --wgc-tint: #F8F8F8;
  --wgc-tint-hover: #F3F3F3;
  --wgc-rule: #E2E3E6;
  --wgc-rule-dark: #333;
  --wgc-blue: #0967F4;
  --wgc-col: calc(33.333% - 20px);
  --wgc-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wgc-ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out (Emil Kowalski's animate skill) */
  --wgc-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* iOS-like drawer curve (Emil Kowalski's animate skill) */
  color: var(--wgc-ink);
}

html { scroll-padding-top: 94px; scroll-padding-bottom: var(--wgc-dock, 0px); } /* the dock's footprint, the safe area in it (calculator.js) */
/* the dock floats over the whole page (Daniel, 2026-11-08) and goes when the closing section reaches it (2026-11-09,
   calculator.js), so the footer needs no room for it under its last links (0.21.0 to 0.23.2 added its footprint there) */
/* 1020-1280: the theme takes the hero's top padding away; its two-line title then touched the header (QA 2026-10-16) */
@media (min-width: 1020px) and (max-width: 1280px) { .page-template-page-calculator .hero-wrapper .section--hero { padding-top: 40px; } }

.wgc .wgc-icon { display: block; flex: none; }
.wgc [hidden] { display: none !important; }

/* Without JavaScript: nothing that needs the script. */
.wgc:not(.is-ready) .wgc-dock, .wgc:not(.is-ready) .wgc-drawer { display: none !important; }

/* The guide's grey text on #F8F8F8 bands: #6E6E73 (4.78:1) for the theme's #757677 (4.29:1). This page only. */
.page-template-templatespage-calculator-php .bg-secondary,
.page-template-templatespage-calculator-php .bg-secondary :is(.text__content, .grid-3__item p, .section__text > p, .wgc-table thead th, .wgc-table td.wgc-table__text, .wgc-byline p) { color: #6E6E73; }

/* ---------- groups and questions ---------- */

.wgc .wgc-group { padding-top: 120px; }
.wgc .wgc-group--first { padding-top: 74px; }
/* a city page's block (0.24.0): the page's section spacing (pt--150, pt-sm--64) is above it */
.wgc.wgc--city .wgc-group--first { padding-top: 0; }
/* no price on the answers in the city block, only in the dock (Figma 162866:12016, Daniel's pick 2026-10-27) */
.wgc.wgc--city .wgc-tile__price, .wgc.wgc--city .wgc-check__price { display: none; }
/* the card's timeline stays off city pages, whose own copy gives Daniel's confirmed 30 to 120 days (facts.json
   timeline-by-scope); the calculator page picks one of them by the estimate's hours (0.25.7) */
.wgc-layer--city .wgc-lines--extra { display: none; }
.wgc .wgc-group__head { padding-bottom: 30px; }
.wgc .wgc-group__title { margin: 0; color: var(--wgc-ink); }
.wgc .wgc-group__title:focus { outline: none; }
/* the first head is the theme's section head (.section__text.text.d-flex.d-flex--sb), as on the home page: heading
   left, description right, below it on phones, in the theme's sizes (Daniel, 2026-10-19) */
.wgc .wgc-group__lead { margin: 0; color: var(--wgc-grey); }
/* no "Your estimate" block after the questions (2026-11-08): the guide's head brings its own 150px (64px on phones) */
.wgc .wgc-form > .wgc-group:last-child { padding-bottom: 0; }
.wgc .wgc-noscript { margin: 0 0 40px; font-size: 20px; line-height: 30px; letter-spacing: -0.8px; color: var(--wgc-grey); }

.wgc .wgc-q {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 50px 0;
  border-top: 1px solid var(--wgc-rule);
}
.wgc .wgc-q__title { margin: 0; color: var(--wgc-ink); }
.wgc .wgc-q__title:focus { outline: none; } /* the dock takes the focus here on a tap, never as a ring (calculator.js goTo) */
.wgc .wgc-q__help { margin: 12px 0 0; color: var(--wgc-grey); }
.wgc .wgc-q__control { min-width: 0; }
/* the store's follow-ups, one step smaller (Figma 162433:14078) */
.wgc .wgc-q--follow { border-top: 0; padding: 30px 0; }
.wgc .wgc-q--follow .wgc-q__title { font-size: 28px; line-height: 34px; letter-spacing: -1px; }
.wgc .wgc-q--follow .wgc-q__help { font-size: 17px; line-height: 24px; letter-spacing: -0.6px; }

/* an answer reached by keyboard scrolls clear of the header and the dock; a click or a tap scrolls nothing (0.25.1: in
   Chrome these margins came on top of the page's scroll padding and a clicked answer jumped 60 to 170px) */
.wgc .wgc-tile__input:focus-visible, .wgc .wgc-check__input:focus-visible { scroll-margin-top: 100px; scroll-margin-bottom: calc(var(--wgc-dock, 0px) + 140px); }

@media (min-width: 1113px) {
  .wgc .wgc-q { grid-template-columns: var(--wgc-col) 1fr; gap: 30px; }
  .wgc .wgc-q--follow .wgc-q__text { padding-left: 40px; }
}

/* the rows (Daniel, 2026-10-18): where the dock's Next question goes sits on a soft band, a required question still
   without an answer at the end on a warm one, with no line of text (Daniel: "i dont think we need to write in text";
   screen readers still hear it). The band is a layer under the row, 20px into the gutter (10px on phones), so nothing
   moves when it comes or goes. It stops 8px short of the row's top and bottom (5px on phones), so two bands in a row
   keep the tiles' gap between them (Daniel: "a bit of spacing between those"). The answers on it turn white. Colours
   change in 250ms. */
.wgc { --wgc-skip-bg: #FCEDED; } /* a tint of the error red, #E34343 (2026-11-05; was the Webgamma orange's #FEF2EB) */
.wgc .wgc-q { position: relative; isolation: isolate; transition: border-color 250ms var(--wgc-ease-out); }
.wgc .wgc-q::before {
  content: ""; position: absolute; inset: 8px -20px; z-index: -1; border-radius: 24px; pointer-events: none;
  background-color: transparent; transition: background-color 250ms var(--wgc-ease-out);
}
.wgc .wgc-q.is-next, .wgc .wgc-q.is-skipped, .wgc .wgc-q.is-next + .wgc-q, .wgc .wgc-q.is-skipped + .wgc-q { border-top-color: transparent; }
.wgc .wgc-q.is-next::before { background-color: var(--wgc-tint); }
.wgc .wgc-q.is-skipped::before { background-color: var(--wgc-skip-bg); }
.wgc .wgc-q.is-next .wgc-tile:not(.is-checked), .wgc .wgc-q.is-skipped .wgc-tile:not(.is-checked),
.wgc .wgc-q.is-next .wgc-select__input, .wgc .wgc-q.is-skipped .wgc-select__input,
.wgc .wgc-q.is-next .wgc-toggle, .wgc .wgc-q.is-skipped .wgc-toggle { background: #fff; }
.wgc .wgc-tile, .wgc .wgc-select__input { transition-property: background-color, color, border-color, box-shadow; }
/* the theme's gutter is 16px up to 1024px (30px above), so the band reaches 10px into it there: 20px scrolled the
   page 4px sideways (page check, 2026-10-19) */
@media (max-width: 1024px) {
  .wgc .wgc-q::before { left: -10px; right: -10px; }
}
@media (max-width: 781px) {
  .wgc .wgc-q::before { inset: 5px -10px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .wgc .wgc-q, .wgc .wgc-q::before { transition: none; } }

/* ---------- notes ---------- */

.wgc .wgc-note { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-size: 17px; line-height: 24px; letter-spacing: -0.4px; color: var(--wgc-ink); }
.wgc .wgc-note .wgc-icon { margin-top: 2px; }

/* ---------- tags ---------- */

.wgc .wgc-tag {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 3px 10px; border-radius: 100px;
  background: #fff; color: var(--wgc-ink);
  font-size: 13px; line-height: 18px; letter-spacing: -0.2px; font-weight: 400;
}
.wgc .wgc-tag .wgc-icon { display: none; }
.wgc .wgc-tag.is-required .wgc-icon { display: block; }
.wgc .wgc-checks .wgc-tag { background: var(--wgc-tint); }

/* ---------- single-choice tiles ---------- */

.wgc .wgc-tiles { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wgc .wgc-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wgc .wgc-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 782px) {
  /* Quebec hides "One language": the other two tiles share the row (Figma 162433:13924) */
  .wgc .wgc-tiles--3:has(> .wgc-tile[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.wgc .wgc-tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "icon tag mark" "label label label" "desc desc desc" "price price price";
  grid-template-rows: auto auto 1fr auto;
  column-gap: 8px;
  align-content: start;
  row-gap: 2px;
  min-height: 130px;
  margin: 0;
  padding: 20px;
  border-radius: 20px;
  background: var(--wgc-tint);
  color: var(--wgc-ink);
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
@media (hover: hover) and (pointer: fine) { .wgc .wgc-tile:hover { background: var(--wgc-tint-hover); } }
.wgc .wgc-tile__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.wgc .wgc-tile__top { display: contents; }
.wgc .wgc-tile .wgc-mark { grid-area: mark; margin-bottom: 14px; }
.wgc .wgc-tile .wgc-tag { grid-area: tag; align-self: start; justify-self: end; }
/* answer icons: the bare glyph, no square (Daniel, 2026-10-13: "it was fine without it") */
.wgc .wgc-tile__icon { grid-area: icon; display: flex; color: var(--wgc-ink); margin-bottom: 14px; }
.wgc .wgc-tile.is-checked .wgc-tile__icon, .wgc .wgc-tile.is-required .wgc-tile__icon { color: #fff; }
.wgc .wgc-ri { display: block; flex: none; width: 24px; height: 24px; max-width: none; }
.wgc .wgc-tile__label { grid-area: label; font-size: 20px; line-height: 30px; letter-spacing: -0.8px; }
.wgc .wgc-tile__desc { grid-area: desc; align-self: start; font-size: 17px; line-height: 24px; letter-spacing: -0.4px; color: var(--wgc-grey-on-tint); }
.wgc .wgc-tile__price { grid-area: price; font-size: 17px; line-height: 24px; letter-spacing: -0.4px; color: var(--wgc-grey-on-tint); }
.wgc .wgc-tile__price { min-height: 24px; } /* its line is kept when empty, so a tile never changes height as answers change (Daniel, 2026-10-15) */
.wgc [data-q="ontario"] .wgc-tile__price { display: none; } /* these never have a price, so no empty line under the label */
@media (min-width: 1113px) and (max-width: 1279px) { .wgc .wgc-tiles--4 .wgc-tile__price { min-height: 48px; } } /* narrow four-up tiles: a price may take two lines */

.wgc .wgc-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 1px solid var(--wgc-grey);
  display: grid; place-items: center;
  transition: border-color 150ms ease-out;
}
@media (hover: hover) and (pointer: fine) { .wgc .wgc-tile:hover .wgc-mark { border-color: #000; } }
.wgc .wgc-tile.is-checked, .wgc .wgc-tile.is-required { background: var(--wgc-black); color: #fff; cursor: default; }
.wgc .wgc-tile.is-checked .wgc-tile__desc, .wgc .wgc-tile.is-required .wgc-tile__desc,
.wgc .wgc-tile.is-checked .wgc-tile__price, .wgc .wgc-tile.is-required .wgc-tile__price { color: var(--wgc-grey-on-dark); }
.wgc .wgc-tile.is-checked .wgc-mark, .wgc .wgc-tile.is-required .wgc-mark { border-color: #fff; }
.wgc .wgc-tile.is-checked .wgc-mark::after, .wgc .wgc-tile.is-required .wgc-mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wgc-black); }
.wgc .wgc-tile.is-checked .wgc-tag, .wgc .wgc-tile.is-required .wgc-tag { background: var(--wgc-rule-dark); color: #fff; }
.wgc .wgc-tile.is-disabled { cursor: not-allowed; background: var(--wgc-tint); }
.wgc .wgc-tile.is-disabled .wgc-tile__label { color: var(--wgc-grey-on-tint); }
.wgc .wgc-tile.is-disabled .wgc-mark { opacity: 0.5; }
.wgc .wgc-tile:has(.wgc-tile__input:focus-visible) { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wgc-blue); outline: 2px solid transparent; outline-offset: 2px; }
/* Safari sets no :focus-visible when an arrow key moves between radios: calculator.js marks keyboard use (0.26.0) */
.wgc.is-keys .wgc-tile:has(.wgc-tile__input:focus) { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wgc-blue); outline: 2px solid transparent; outline-offset: 2px; }

/* ---------- pick-any checklists ---------- */

.wgc .wgc-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 31px; }
.wgc .wgc-check {
  position: relative;
  display: grid; grid-template-columns: 26px 22px minmax(0, 1fr); column-gap: 12px; align-items: start;
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--wgc-rule);
  color: var(--wgc-ink);
  cursor: pointer;
}
.wgc .wgc-check__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.wgc .wgc-check__box {
  width: 26px; height: 26px; border-radius: 6px;
  background: #fff; border: 1px solid var(--wgc-grey); color: #fff;
  display: grid; place-items: center;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.wgc .wgc-check__box .wgc-icon { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .wgc .wgc-check:hover .wgc-check__box { border-color: #000; } }
.wgc .wgc-check.is-checked .wgc-check__box { background: var(--wgc-black); border-color: var(--wgc-black); }
.wgc .wgc-check.is-checked .wgc-check__box .wgc-icon { opacity: 1; }
.wgc .wgc-check > .wgc-check__box { grid-column: 1; margin-top: 2px; } /* centred on the label's 30px first line */
.wgc .wgc-check__text { grid-column: 3; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wgc .wgc-check__icon { grid-column: 2; display: flex; margin-top: 4px; color: var(--wgc-ink); }
.wgc .wgc-check__icon .wgc-ri { width: 22px; height: 22px; }
.wgc .wgc-check__label { font-size: 20px; line-height: 30px; letter-spacing: -0.8px; }
.wgc .wgc-check__desc, .wgc .wgc-check__price { font-size: 17px; line-height: 24px; letter-spacing: -0.4px; color: var(--wgc-grey); }
.wgc .wgc-check__price { min-height: 24px; }
.wgc .wgc-check:has(.wgc-check__input:focus-visible) .wgc-check__box { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wgc-blue); outline: 2px solid transparent; outline-offset: 2px; }

.wgc .wgc-toggle { display: none; }

/* ---------- the dropdowns: the industry, the country and its region ---------- */

.wgc .wgc-select { position: relative; max-width: 500px; }
.wgc .wgc-select__input {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 60px; padding: 0 52px 0 20px;
  border: 0; border-radius: 20px; background: var(--wgc-tint); color: var(--wgc-ink);
  font: inherit; font-size: 20px; line-height: 30px; letter-spacing: -0.8px;
  cursor: pointer;
}
.wgc .wgc-select__input:has(option[value=""]:checked) { color: var(--wgc-grey-on-tint); }
.wgc .wgc-select__input option { color: #000; }
@media (hover: hover) and (pointer: fine) { .wgc .wgc-select__input:hover { background: var(--wgc-tint-hover); } }
.wgc .wgc-select__input:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wgc-blue); }
.wgc .wgc-select .wgc-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--wgc-ink); transition: transform 300ms ease; } /* black in every field (the country's and region's were labels, which the theme greys) */

/* The Work page's list (theme.css .select__list) instead of the browser's own (Daniel, 2026-11-08: "make the dropdowns
   instead of the WebKit selections similar to the ones we have in work page"). calculator.js puts a button in each field,
   in the select's place: the select stays under it for the answers, and is the field without JavaScript. The field keeps
   its look; its chevron turns as the list opens. The list, as on the Work page: #1D1D1F, 20px corners, 15px under the
   field, the options in #D4D4D4 and white under the pointer or once chosen, in 300ms with a 5px rise. Without the room
   below (the dock floats at the bottom) the page scrolls the field up, or the list opens above it (calculator.js,
   --wgc-list-h). Its options take the field's type, 20/30 (16/22 on phones), with the Work page's spacing as padding, so
   each is one target and the keyboard's place can be ringed in the calculator's blue. A long list scrolls inside, with
   the chosen option in view. */
.wgc .wgc-select__btn {
  display: flex; align-items: center; margin: 0; text-align: left; font-weight: 400;
  transition: background-color 150ms ease-out, color 150ms ease-out; /* as the tiles; never the theme's "all 0.2s" */
}
.wgc .wgc-select__btn.is-empty { color: var(--wgc-grey-on-tint); }
.wgc .wgc-select__btn:focus, .wgc .wgc-select__btn:active { box-shadow: none; } /* the theme's pressed-button shadow (phones) */
.wgc .wgc-select__btn:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wgc-blue); }
.wgc .wgc-select__value { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgc .wgc-select.is-open .wgc-icon { transform: translateY(-50%) rotate(180deg); }
.wgc .wgc-q.is-picking { z-index: 3; } /* the rows are their own layers (isolation): the open list over the rows under it */
.wgc .wgc-select__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 15px); z-index: 1;
  max-height: var(--wgc-list-h, 408px); margin: 0; padding: 9px 5px; list-style: none;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background-color: #1D1D1F; border-radius: 20px; box-shadow: 0 0 100px 0 rgba(0, 0, 0, 0.05);
  color-scheme: dark; /* its scrollbar */
  opacity: 0; visibility: hidden; transform: translate3d(0, 5px, 0);
  transition: opacity 300ms ease, transform 300ms ease, visibility 0s linear 300ms;
}
.wgc .wgc-select.is-up .wgc-select__list { top: auto; bottom: calc(100% + 15px); transform: translate3d(0, -5px, 0); }
.wgc .wgc-select.is-open .wgc-select__list { opacity: 1; visibility: visible; transform: none; transition: opacity 300ms ease, transform 300ms ease, visibility 0s; }
.wgc .wgc-select__opt {
  display: block; margin: 0 8px; padding: 6px 12px; border-radius: 12px;
  color: #D4D4D4; font-size: 20px; line-height: 30px; letter-spacing: -0.8px;
  cursor: pointer; transition: color 0.2s ease; -webkit-tap-highlight-color: transparent;
}
.wgc .wgc-select__opt[aria-selected="true"], .wgc .wgc-select__list.is-keys .wgc-select__opt.is-active { color: #fff; }
@media (hover: hover) and (pointer: fine) { .wgc .wgc-select__opt:hover { color: #fff; } }
.wgc .wgc-select__opt:active { color: #fff; }
.wgc .wgc-select__list.is-keys .wgc-select__opt.is-active { outline: 2px solid var(--wgc-blue); outline-offset: -2px; }
/* one list straight after another swaps at once, both ways (Daniel, 2026-11-08: "a small blink"; calculator.js) */
.wgc .wgc-select.is-instant .wgc-select__list, .wgc .wgc-select.is-instant .wgc-select__bar, .wgc .wgc-select.is-instant .wgc-icon { transition: none !important; }
/* the list's scroll thumb (Daniel, 2026-11-09: "the scroller indicator on the side of the dropdown ... make it so it fits
   the design"): the browser's scrollbar sat on the list's edge, through its round corners, in each browser's own look.
   Ours is a 4px pill 6px in from the edge, on a track 12px short of each end, #545458 (the dock's grab-line grey under the
   pointer); it comes and goes with the list and shows only when the list scrolls. A mouse can drag it (calculator.js). */
.wgc .wgc-select__list { scrollbar-width: none; }
.wgc .wgc-select__list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.wgc .wgc-select__bar {
  position: absolute; right: 6px; top: 0; z-index: 2; width: 4px; height: 0; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translate3d(0, 5px, 0);
  transition: opacity 300ms ease, transform 300ms ease, visibility 0s linear 300ms;
}
.wgc .wgc-select.is-up .wgc-select__bar { transform: translate3d(0, -5px, 0); }
.wgc .wgc-select.is-open.is-scrolly .wgc-select__bar { opacity: 1; visibility: visible; transform: none; transition: opacity 300ms ease, transform 300ms ease, visibility 0s; }
.wgc .wgc-select__thumb {
  position: absolute; left: 0; top: 0; width: 4px; height: 32px; border-radius: 2px; background: #545458;
  pointer-events: auto; touch-action: none; transition: background-color 150ms ease-out;
}
.wgc .wgc-select__thumb::before { content: ""; position: absolute; inset: -4px -6px; } /* an easier target to drag */
.wgc .wgc-select__thumb.is-dragging { background: #808080; }
@media (hover: hover) and (pointer: fine) { .wgc .wgc-select__thumb:hover { background: #808080; } }
@media (prefers-reduced-motion: reduce) {
  .wgc .wgc-select__bar, .wgc .wgc-select.is-up .wgc-select__bar { transform: none; transition: opacity 150ms ease, visibility 0s linear 150ms; }
  .wgc .wgc-select.is-open.is-scrolly .wgc-select__bar { transition: opacity 150ms ease, visibility 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .wgc .wgc-select .wgc-icon { transition: none; }
  .wgc .wgc-select__list, .wgc .wgc-select.is-up .wgc-select__list { transform: none; transition: opacity 150ms ease, visibility 0s linear 150ms; }
  .wgc .wgc-select.is-open .wgc-select__list { transition: opacity 150ms ease, visibility 0s; }
}
@media (forced-colors: active) {
  .wgc .wgc-select__list { border: 1px solid CanvasText; }
  .wgc .wgc-select__opt[aria-selected="true"] { outline: 1px solid CanvasText; }
}

/* where they're based, the second question (Daniel, 2026-11-08: "lets try moving the countries to the page"; Figma
   163060:12325): the country at the industry field's 500px, then its province, state or region across the rest of the
   row, never under 300px (on narrower rows the country gives way first); on phones they stack. The region field comes
   with a country that has regions: it fades in beside the country, or slides open under it on phones (calculator.js). */
.wgc .wgc-where { display: grid; grid-template-columns: minmax(0, 500px) minmax(300px, 1fr); column-gap: 16px; }
.wgc .wgc-where .wgc-select { max-width: none; }
.wgc .wgc-where__field { margin: 0; }
@media (min-width: 782px) { .wgc [data-q="industry"] .wgc-select { max-width: min(500px, calc(100% - 316px)); } } /* the country's column (0.25.1) */
@media (max-width: 781px) {
  .wgc .wgc-where { grid-template-columns: minmax(0, 1fr); }
  .wgc .wgc-where [data-w="region"] { padding-top: 10px; } /* not a gap, so it slides open with the field */
  .wgc .wgc-where [data-w="region"] .wgc-icon { top: calc(50% + 5px); } /* on its field's middle, under that padding (Daniel, 2026-11-08: "some spacing are off") */
  .wgc .wgc-where [data-w="region"].is-up .wgc-select__list { bottom: calc(100% + 5px); } /* 15px over the field, not that padding */
  /* the Work page's list on phones: no padding of its own, each option 11px above and below, in the field's 16/22: a
     44px row, the touch minimum (Daniel, 2026-11-09: "make sure that the pressing area for mobile is good in our
     dropdowns"; it was 10px, 42px rows). The cap is eight and a half rows, as before. */
  .wgc .wgc-select__list { max-height: var(--wgc-list-h, 374px); padding: 0; }
  .wgc .wgc-select__opt { padding: 11px 12px; font-size: 16px; line-height: 22px; letter-spacing: -0.6px; }
}
/* tablets: the theme sizes every button 16-20px (!important, theme.css "Buttons, fs-20 text and form fields"); the
   field's button keeps the select's 20/30 */
@media (min-width: 782px) and (max-width: 1279px) {
  .wgc .wgc-select__btn { font-size: 20px !important; line-height: 30px !important; letter-spacing: -0.8px !important; }
}
/* touch screens from 782px (iPads, which get this layout; Daniel, 2026-11-09: "we need to check tablets too"): each
   option 44px, the touch minimum (6px above and below made 42px), and the cap still nine and a half of them under the
   list's 9px; a mouse keeps the compact list. The card's X (40px) answers 2px past its circle, 44px. */
@media (pointer: coarse) and (min-width: 782px) {
  .wgc .wgc-select__opt { padding-top: 7px; padding-bottom: 7px; }
  .wgc .wgc-select__list { max-height: var(--wgc-list-h, 427px); }
  .wgc .wgc-dock__close::before { content: ""; position: absolute; inset: -2px; }
}

/* ---------- the estimate's parts (in the dock's card since 2026-11-08: no "Your estimate" block) ---------- */
/* text buttons: a 44px target without moving the line (padding taken back by the margin) */
.wgc .wgc-link { display: inline-block; background: none; border: 0; padding: 10px 0; margin: -10px 0; color: inherit; font: inherit; font-size: 17px; line-height: 24px; letter-spacing: -0.4px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wgc .button:focus-visible, .wgc .wgc-link:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wgc-blue) !important; border-radius: 100px; }

.wgc .wgc-lines { margin: 0; }
.wgc .wgc-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--wgc-rule-dark); color: #fff; font-size: 17px; line-height: 24px; letter-spacing: -0.4px; }
.wgc .wgc-line dt { margin: 0; font-weight: 400; }
.wgc .wgc-line dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wgc .wgc-line--note dd { white-space: normal; } /* design support's "Quoted after our intro call" wraps on a 320px phone (0.26.0) */

.wgc .wgc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- the dock ---------- */

.wgc .wgc-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--wgc-black); color: #fff;
  border-radius: 20px 20px 0 0;
  transform: translateY(0);
  transition: transform 200ms var(--wgc-ease), visibility 0s;
}
.wgc .wgc-dock__grip, .wgc .wgc-dock__more, .wgc-layer .wgc-scrim { display: none; }
body.menu-toggled .wgc-layer .wgc-dock, body.popup-active .wgc-layer .wgc-dock { transform: translateY(110%); visibility: hidden; transition: transform 200ms var(--wgc-ease), visibility 0s linear 200ms; }
.wgc .wgc-dock.is-empty .wgc-dock__range { color: #fff; }
.wgc .wgc-dock.is-empty .wgc-dock__summary .wgc-dock__text:empty { display: none; }
.wgc .wgc-dock__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 30px; background: var(--wgc-black); border-radius: 20px 20px 0 0; }
.wgc .wgc-dock__price { display: flex; flex-direction: column; gap: 2px; flex: 0 1 auto; min-width: 0; }
.wgc .wgc-dock__range { font-size: 36px; line-height: 40px; letter-spacing: -1.6px; font-weight: 400; font-variant-numeric: tabular-nums; }
.wgc .wgc-dock__sub { font-size: 15px; line-height: 24px; letter-spacing: -0.4px; color: var(--wgc-grey-on-dark); }
.wgc .wgc-dock__summary { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-left: 24px; border-left: 1px solid var(--wgc-rule-dark); }
.wgc .wgc-dock__text { font-size: 17px; line-height: 24px; letter-spacing: -0.4px; }
.wgc .wgc-dock__status { font-size: 15px; line-height: 24px; letter-spacing: -0.4px; color: var(--wgc-grey-on-dark); }
.wgc .wgc-dock__actions { display: flex; gap: 10px; flex: none; }
.wgc .wgc-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 20px; border-radius: 100px;
  font: inherit; font-size: 15px; line-height: 24px; letter-spacing: -0.4px; cursor: pointer;
  transition: background-color 150ms ease-out;
}
.wgc .wgc-pill::before { content: ""; position: absolute; inset: -3px 0; } /* a 44px+ target around the 38-42px pill */
.wgc .wgc-pill--ghost { background: transparent; color: #fff; border: 1px solid var(--wgc-grey); }
@media (hover: hover) and (pointer: fine) { .wgc .wgc-pill--ghost:hover { background: #1D1D1F; } }
.wgc .wgc-pill--solid { background: #fff; color: #000; border: 0; }
@media (hover: hover) and (pointer: fine) { .wgc .wgc-pill--solid:hover { background: #DEDEDE; } }
.wgc .wgc-pill:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px var(--wgc-black), 0 0 0 4px var(--wgc-blue); }
.wgc .wgc-pill__phone { display: none; }
.wgc .wgc-pill .wgc-icon--chevron { transition: transform 200ms ease-out; }
.wgc .wgc-pill[aria-expanded="true"] .wgc-icon--chevron { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .wgc .wgc-dock, .wgc .wgc-tile, .wgc .wgc-check__box, .wgc .wgc-pill .wgc-icon--chevron { transition: none; }
  .wgc .wgc-dock__more, .wgc-layer .wgc-scrim { transition-duration: 150ms; } /* the sheet jumps; the dimming still fades */
}

/* ---------- tables in the guide ---------- */

.wgc-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.wgc-table th, .wgc-table td { padding: 16px 0; border-top: 1px solid #E2E3E6; text-align: left; vertical-align: top; font-weight: 400; color: #000; }
.wgc-table thead th { font-size: 20px; line-height: 30px; letter-spacing: -0.8px; color: #757677; }
.wgc-table tbody th { padding-right: 30px; font-size: 24px; line-height: 30px; letter-spacing: -1px; }
.wgc-table thead th:first-child, .wgc-table tbody th { width: calc(33.333% + 10px); }
.wgc-table td.wgc-table__text { padding-right: 30px; font-size: 20px; line-height: 30px; letter-spacing: -0.8px; color: #757677; }
.wgc-table .wgc-table__num { width: 300px; text-align: right; font-size: 24px; line-height: 30px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.wgc-table thead .wgc-table__num { font-size: 20px; }
/* Between 782 and 1279px the theme sizes every button 16-20px (!important, theme.css "Buttons, fs-20 text and form
   fields"), so the dock's pills read 16-20px beside its 15px "Start a project" link (QA 2026-10-18). The calculator's
   own buttons keep their sizes there. */
@media (min-width: 782px) and (max-width: 1279px) {
  .wgc .wgc-pill { font-size: 15px !important; line-height: 24px !important; letter-spacing: -0.4px !important; }
  .wgc .wgc-link { font-size: 17px !important; line-height: 24px !important; letter-spacing: -0.4px !important; }
}
.wgc-byline p { margin: 0; font-size: 17px; line-height: 24px; letter-spacing: -0.4px; color: #757677; }
/* this page's closing section; its button gets the page's focus ring */
.page-template-templatespage-calculator-php .section__text .button:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0967F4 !important; } /* the theme's .button has box-shadow: none !important */

/* ---------- Windows high contrast: the selected answer and focus stay visible ---------- */

@media (forced-colors: active) {
  .wgc .wgc-tile { border: 1px solid CanvasText; }
  .wgc .wgc-tile.is-checked, .wgc .wgc-tile.is-required { outline: 3px solid Highlight; outline-offset: -3px; }
  .wgc .wgc-mark, .wgc .wgc-check__box { border-color: CanvasText; }
  .wgc .wgc-tile.is-checked .wgc-mark::after, .wgc .wgc-tile.is-required .wgc-mark::after { forced-color-adjust: none; background: Highlight; }
  .wgc .wgc-dock { border-top: 1px solid CanvasText; }
}

/* ---------- tablets ---------- */

@media (min-width: 782px) and (max-width: 1112px) {
  .wgc .wgc-dock__inner { padding: 16px; }
  .wgc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wgc-table, .wgc-table tbody, .wgc-table tr { display: block; width: 100%; }
  .wgc-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; padding: 20px 0; border-top: 1px solid #E2E3E6; }
  .wgc-table th, .wgc-table td { padding: 0; border: 0; }
  .wgc-table tbody th { width: auto; padding: 0; }
  .wgc-table .wgc-table__num { width: auto; grid-column: 2; grid-row: 1; }
  .wgc-table td.wgc-table__text { grid-column: 1 / -1; padding: 6px 0 0; }
  .wgc .wgc-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wgc .wgc-dock__summary { display: none; }
}

/* short landscape screens: a compact dock */
@media (min-width: 782px) and (max-height: 500px) {
  .wgc .wgc-dock__inner { padding: 10px 24px; }
  .wgc .wgc-dock__range { font-size: 24px; line-height: 28px; letter-spacing: -0.8px; }
  .wgc .wgc-dock__summary { display: none; }
}

/* ---------- phones ---------- */

@media (max-width: 781px) {
  html { scroll-padding-top: 70px; }
  .wgc .wgc-group { padding-top: 64px; }
  .wgc .wgc-group--first { padding-top: 32px; }
  .wgc .wgc-group__head { padding-bottom: 18px; }
  .wgc .wgc-q { padding: 32px 0; gap: 18px; }
  .wgc .wgc-q__help { margin-top: 8px; }
  .wgc .wgc-q--follow { padding: 16px 0; }
  .wgc .wgc-q--follow .wgc-q__title { font-size: 20px; line-height: 26px; letter-spacing: -0.8px; }
  .wgc .wgc-q--follow .wgc-q__help { font-size: 15px; line-height: 22px; letter-spacing: -0.3px; }
  .wgc .wgc-note { margin-top: 10px; }

  .wgc .wgc-tiles, .wgc .wgc-tiles--2, .wgc .wgc-tiles--4 { grid-template-columns: 1fr; gap: 10px; }
  /* less text on phones (Daniel, 2026-10-12): no option descriptions, help only where it changes the answer */
  .wgc .wgc-tile__desc, .wgc .wgc-check__desc, .wgc .wgc-q:not(.wgc-q--keep-help) .wgc-q__help { display: none; }
  /* spacer rows above and below centre the label (and its price line, when shown) on the icon */
  .wgc .wgc-tile { grid-template-columns: 24px 1fr auto auto; grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "icon . tag mark" "icon label tag mark" "icon price tag mark" "icon . tag mark"; column-gap: 12px; row-gap: 0; align-items: center; min-height: 0; padding: 14px 16px; }
  .wgc .wgc-tile__icon { margin-bottom: 0; }
  .wgc .wgc-tile .wgc-mark { margin-bottom: 0; width: 22px; height: 22px; }
  .wgc .wgc-tile .wgc-tag { display: none; }
  .wgc .wgc-tile__label { font-size: 17px; line-height: 22px; letter-spacing: -0.6px; }
  .wgc .wgc-tile__desc, .wgc .wgc-tile__price { font-size: 15px; line-height: 22px; letter-spacing: -0.3px; }
  .wgc .wgc-tile__price { min-height: 22px; }

  .wgc .wgc-checks { grid-template-columns: 1fr; }
  /* the box and the icon at the icon's 22px, on the label's line, with the price under the label (Daniel, 2026-10-15) */
  .wgc .wgc-check { padding: 14px 0; grid-template-columns: 22px 22px minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .wgc .wgc-check > .wgc-check__box, .wgc .wgc-check__icon { margin-top: 0; }
  .wgc .wgc-check__box { width: 22px; height: 22px; border-radius: 5px; }
  .wgc .wgc-check__price { min-height: 22px; }
  .wgc .wgc-check__label { font-size: 17px; line-height: 22px; letter-spacing: -0.6px; }
  .wgc .wgc-check__desc, .wgc .wgc-check__price { font-size: 15px; line-height: 22px; letter-spacing: -0.3px; }
  .wgc.is-ready .wgc-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 54px; padding: 0 16px 0 20px;
    border: 0; border-radius: 20px; background: var(--wgc-tint); color: var(--wgc-ink);
    font: inherit; font-size: 16px; line-height: 22px; letter-spacing: -0.6px; cursor: pointer;
  }
  .wgc .wgc-toggle__open { display: inline-flex; align-items: center; gap: 4px; }
  .wgc .wgc-toggle[aria-expanded="true"] .wgc-icon { transform: rotate(180deg); }
  .wgc .wgc-toggle:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wgc-blue); }
  .wgc.is-ready #wgc-tools:not(.is-open) { display: none; }
  .wgc.is-ready #wgc-tools.is-open { margin-top: 10px; }

  .wgc .wgc-select { max-width: none; }
  /* fields at the contact form's size on phones: 54px, 16/22 type, 20px in (Daniel, 2026-10-16: "the input fields are too big") */
  .wgc .wgc-select__input { height: 54px; font-size: 16px; line-height: 22px; letter-spacing: -0.6px; }

  .wgc .wgc-line--key { flex-direction: column; gap: 2px; }
  .wgc .wgc-line--key dd { text-align: left; max-width: none; }

  /* The bar on phones is a bottom sheet, as in apps (Daniel, 2026-10-13: "like it's in apps", the HC demo's Vaul
     drawer). Closed: a grab line, the price, one line, one button; the line's strip drags it, a tap on it or on the
     price opens it, and the rest of the bar scrolls the page. Open: the whole sheet rises (transform only), the page
     dims and stops scrolling, and a drag down anywhere on the sheet, a tap on the dimmed page or Escape lowers it.
     Vaul's motion: 500ms on the drawer curve. calculator.js sets --wgc-travel, the height of what the sheet opens,
     and moves the sheet with the finger. */
  .wgc .wgc-dock {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    touch-action: pan-y;
    transform: translate3d(0, var(--wgc-travel, 0px), 0);
    transition: transform 500ms var(--wgc-ease-drawer), visibility 0s;
    will-change: transform;
  }
  /* a pull past the top never shows a gap under the sheet (Vaul does the same) */
  .wgc .wgc-dock::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 200px; background: inherit; pointer-events: none; }
  .wgc .wgc-dock.is-expanded { transform: translate3d(0, 0, 0); }
  .wgc .wgc-dock:not(.is-empty) { touch-action: none; }
  .wgc .wgc-dock.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
  .wgc .wgc-dock.is-dragging, .wgc .wgc-dock.is-dragging .wgc-dock__more, .wgc-layer.is-dragging .wgc-scrim { transition: none; }

  .wgc .wgc-dock__grip { position: relative; display: block; width: 100%; height: 22px; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: none; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
  .wgc .wgc-dock__grip::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: 0; } /* a 30px strip to grab */
  .wgc .wgc-dock__grip:focus-visible { outline: 2px solid var(--wgc-blue); outline-offset: -4px; }
  .wgc .wgc-dock.is-empty .wgc-dock__grip { visibility: hidden; } /* with any answer it is there: Daniel, 2026-11-08, "it is there always" */
  /* the grab line, the same closed and open (Daniel, 2026-10-13: "it was fine having just a line") */
  .wgc .wgc-grabber { position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--wgc-grey-on-dark); pointer-events: none; }

  .wgc .wgc-dock__inner { align-items: center; padding: 0 16px 14px; gap: 12px; }
  .wgc .wgc-dock:not(.is-empty) .wgc-dock__price { cursor: pointer; }
  .wgc .wgc-dock__price { flex: 1 1 auto; min-width: 0; }
  .wgc .wgc-dock__range { font-size: 24px; line-height: 30px; letter-spacing: -0.8px; }
  .wgc .wgc-dock__sub { font-size: 15px; line-height: 20px; letter-spacing: -0.3px; color: #A1A1A6; }
  .wgc .wgc-dock__summary, .wgc .wgc-dock__actions [data-dock-email] { display: none !important; }
  .wgc .wgc-dock__actions { flex: none; }
  .wgc .wgc-dock:not(.is-empty) .wgc-dock__actions [data-next] { display: none; }
  .wgc .wgc-pill { height: 44px; padding: 0 20px; font-size: 15px; }
  .wgc .wgc-pill--ghost, .wgc .wgc-dock__actions .wgc-pill--solid { background: #fff; color: #000; border: 0; box-shadow: none; }
  .wgc .wgc-pill--outline { background: transparent; color: #fff; border: 0; box-shadow: inset 0 0 0 1px var(--wgc-grey); text-decoration: none; }
  .wgc .wgc-pill__desk { display: none; }
  .wgc .wgc-pill__phone { display: inline; }

  /* what the open sheet adds: label and value rows on hairlines, one note, two actions; it never scrolls */
  .wgc .wgc-dock__more { display: block; padding: 0 16px 16px; opacity: 0; transition: opacity 500ms var(--wgc-ease-drawer); }
  .wgc .wgc-dock.is-expanded .wgc-dock__more { opacity: 1; }
  .wgc .wgc-dock__rows { margin: 0; border-top: 1px solid var(--wgc-rule-dark); }
  .wgc .wgc-dock__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--wgc-rule-dark); font-size: 15px; line-height: 20px; letter-spacing: -0.3px; }
  .wgc .wgc-dock__row dt { color: #A1A1A6; }
  .wgc .wgc-dock__row dd { margin: 0 0 0 auto; color: #fff; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .wgc .wgc-dock__note { margin: 12px 0 0; color: #A1A1A6; font-size: 15px; line-height: 20px; letter-spacing: -0.3px; }
  .wgc .wgc-dock__note:empty { display: none; }

  /* behind the open card: catches the tap that closes it; no dimming (Daniel, 2026-10-16).
     Only there while the card is open, and 6px short of the screen's top and bottom, so iOS 26 Safari never reads it
     for the colour around its address bar or above the nav (2026-10-18). */
  .wgc-layer .wgc-scrim { display: none; position: fixed; inset: 6px 0; z-index: 89; background: transparent; -webkit-tap-highlight-color: transparent; }
  .wgc-layer.is-sheet-open .wgc-scrim { display: block; }

  .wgc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wgc-table, .wgc-table tbody, .wgc-table tr { display: block; width: 100%; }
  .wgc-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 16px 0; border-top: 1px solid #E2E3E6; }
  .wgc-table th, .wgc-table td { padding: 0; border: 0; }
  .wgc-table tbody th { width: auto; padding: 0; font-size: 17px; line-height: 24px; letter-spacing: -0.6px; }
  .wgc-table .wgc-table__num { width: auto; grid-column: 2; grid-row: 1; font-size: 17px; line-height: 24px; letter-spacing: -0.6px; }
  .wgc-table td.wgc-table__text { grid-column: 1 / -1; padding: 6px 0 0; font-size: 15px; line-height: 22px; letter-spacing: -0.3px; }
  .wgc-byline p { font-size: 15px; line-height: 22px; }
}

/* reduced motion on phones: the sheet jumps open and shut; the dimming and its rows still fade, briefly */
@media (max-width: 781px) and (prefers-reduced-motion: reduce) {
  .wgc .wgc-dock { transition: none; }
  .wgc .wgc-dock__more { transition-duration: 150ms; }
}

/* ---------- the island (0.8.0, Daniel 2026-10-15) ----------
   The dock is a black pill in the site's pill shape: the price, one line under it ("Your estimate") and the next step.
   Before any answer there is none; it rises in with the first answer (250ms on --wgc-ease) and floats over the whole page
   (Daniel, 2026-11-08). Once there is a price it opens as one object. On desktop "Details" (or the price) grows
   it upward from its own row, which never moves, into a panel of the same width. On phones the pill becomes the bottom
   sheet: today's motion and drag. Figma: "Calculator dock · Island, refined (2026-10-15)". */

.wgc .wgc-pill--outline { background: transparent; color: #fff; border: 0; box-shadow: inset 0 0 0 1px var(--wgc-grey); text-decoration: none; justify-content: center; }
@media (hover: hover) and (pointer: fine) { .wgc .wgc-pill--outline:hover { background: #1D1D1F; } }
.wgc .wgc-dock__row dt { color: #A1A1A6; }
.wgc .wgc-dock__row dd { margin: 0 0 0 auto; color: #fff; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wgc .wgc-dock__note:empty { display: none; }

/* desktop and tablets: the island opens as the phone's card does (Daniel, 2026-10-16: "move up the price ... like it is
   on mobile"; Figma 162533:11257). 560 wide, 24px above the bottom, the phone's tab on top. Only its panel grows, so the
   bottom stays, the price rides up with the top edge into the heading, and the pill's button stays at the bottom and
   stretches across the card. */
@media (min-width: 782px) {
  .wgc .wgc-dock {
    --wgc-p: 0;
    --wgc-w: min(560px, calc(100vw - 48px));
    left: 50%; right: auto; bottom: 24px; width: var(--wgc-w); margin-left: calc(var(--wgc-w) / -2);
    display: flex; flex-direction: column; padding: 0; overflow: visible;
    background: var(--wgc-black); border-radius: 32px;
    /* a small shadow that ends 11px under the card, 24px above the bottom (Daniel, 2026-11-17: "add one but very small so
       it doesnt reach the bottom of the screen"; October's spread 56px); as good as nothing over its top edge */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 5px 6px rgba(0, 0, 0, 0.12);
    transform: none; opacity: 1;
    transition: transform 250ms var(--wgc-ease), opacity 250ms var(--wgc-ease), visibility 0s;
  }
  .wgc .wgc-dock::after { display: none; }
  .wgc .wgc-dock.is-expanded { --wgc-p: 1; }
  .wgc .wgc-dock.is-empty, .wgc .wgc-dock.is-away,
  body.menu-toggled .wgc-layer .wgc-dock, body.popup-active .wgc-layer .wgc-dock {
    transform: translateY(16px); opacity: 0; visibility: hidden;
    transition: transform 200ms var(--wgc-ease), opacity 200ms var(--wgc-ease), visibility 0s linear 200ms;
  }
  /* desktop works with buttons, not the phone's tab (Daniel, 2026-10-16): "Details" opens it, the close button or a click
     outside closes it; the price still rides up into the heading */
  .wgc .wgc-dock__grip {
    display: none; position: absolute; top: -44px; left: 50%; z-index: 2; width: 96px; height: 46px; margin-left: -48px; padding: 0; border: 0; border-radius: 0; cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 18'%3E%3Cpath fill='%23111' d='M0 16C14.4 16 9.6 0 24 0h48c14.4 0 9.6 16 24 16v2H0z'/%3E%3C/svg%3E") center bottom / 96px 18px no-repeat;
  }
  .wgc .wgc-grabber { position: absolute; top: 34px; left: 50%; width: 32px; height: 4px; margin-left: -16px; border-radius: 2px; background: var(--wgc-grey-on-dark); pointer-events: none; }
  .wgc .wgc-dock__grip:focus, .wgc .wgc-dock__grip:active { box-shadow: none; }
  .wgc .wgc-dock__grip:focus-visible { outline: 2px solid var(--wgc-blue); outline-offset: -4px; }
  /* the pill: the card's top 64px; the price is laid out as the open heading (36px, 24px in) and drawn at 17px in it */
  .wgc .wgc-dock__inner { display: block; position: static; flex: none; height: 64px; padding: 0; background: none; border-radius: 0; }
  .wgc .wgc-dock.is-complete .wgc-dock__inner { cursor: pointer; } /* a click on the price opens it once there is one */
  .wgc .wgc-dock__price { position: absolute; left: 24px; top: 24px; display: block; pointer-events: none; }
  .wgc .wgc-dock__range, .wgc .wgc-dock__sub { display: block; white-space: nowrap; transform-origin: 0 0; transition: transform 350ms var(--wgc-ease-drawer); }
  .wgc .wgc-dock__range { font-size: 36px; line-height: 40px; letter-spacing: -1.6px;
    transform: translate(0, calc(-11px * (1 - var(--wgc-p)))) scale(calc((0.4722 + 0.5278 * var(--wgc-p)) * (var(--wgc-k, 1) + (1 - var(--wgc-k, 1)) * var(--wgc-p)))); }
  .wgc .wgc-dock__sub { margin-top: 6px; font-size: 15px; line-height: 20px; letter-spacing: -0.3px; color: #A1A1A6;
    transform: translate(0, calc(-35px * (1 - var(--wgc-p)))) scale(calc(0.8 + 0.2 * var(--wgc-p))); }
  .wgc .wgc-dock__actions { position: absolute; top: auto; right: 8px; bottom: 8px; z-index: 1; display: flex; gap: 8px; }
  .wgc .wgc-dock__actions .wgc-pill { height: 48px; justify-content: center; }
  /* Details stands out of the row, at its closed place left of the closed button (--wgc-bw): in the row it came back as
     the card began to close and was pushed out past the card's left edge while that button shrank (Daniel, 2026-11-17:
     "the button details has an glitch where it shows streched when the dock is closing"). It goes at once as the card
     opens and fades in as the button gets back to its size; it can take the focus at once. */
  .wgc .wgc-dock__actions [data-dock-toggle] {
    position: absolute; right: calc(var(--wgc-bw, 0px) + 8px); bottom: 0;
    transition: background-color 150ms ease-out, opacity 150ms ease-out 250ms;
  }
  .wgc .wgc-dock.is-expanded .wgc-dock__actions [data-dock-toggle] { opacity: 0; visibility: hidden; transition: none; }
  /* the card has no button of its own (no "Email me this estimate" since 2026-11-08), so the pill's button, Next question
     or Start a project, takes the whole row (Daniel, 2026-10-18: "not full width on desktop"; Figma 163047:12711) */
  .wgc .wgc-dock__actions .wgc-pill:not([data-dock-toggle]) {
    min-width: calc(var(--wgc-bw, 0px) + (var(--wgc-w) - 16px - var(--wgc-bw, 0px)) * var(--wgc-p));
    transition: min-width 350ms var(--wgc-ease-drawer), background-color 150ms ease-out; }
  .wgc .wgc-dock__actions .wgc-pill--solid { background: #fff; color: #000; }
  @media (hover: hover) and (pointer: fine) { .wgc .wgc-dock__actions .wgc-pill--solid:hover { background: #DEDEDE; } } /* 0.25.1: this rule had covered it */
  /* the X shows once the card is open (Daniel, 2026-11-08: "make sure the X appears then the dock is fully open"): it
     faded in while riding up on the rising top edge, which read as a double blink. It fades in after the card's 350ms
     and goes at once as the card closes, so it never rides the moving edge either way. */
  .wgc .wgc-dock__close {
    position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0;
    border-radius: 50%; background: #262626; color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0s, background-color 150ms ease-out;
  }
  .wgc .wgc-dock.is-expanded .wgc-dock__close { opacity: 1; pointer-events: auto; transition: opacity 150ms ease-out 350ms, background-color 150ms ease-out; }
  @media (hover: hover) and (pointer: fine) { .wgc .wgc-dock__close:hover { background: #333; } }
  .wgc .wgc-dock__close:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px #111, 0 0 0 4px var(--wgc-blue); }
  .wgc .wgc-dock__more {
    display: flex; flex-direction: column; justify-content: flex-end; flex: none; overflow: hidden; margin: 0; padding: 0;
    height: calc(var(--wgc-travel, 0px) * var(--wgc-p)); opacity: calc((var(--wgc-p) - 0.3) / 0.7);
    transition: height 350ms var(--wgc-ease-drawer), opacity 350ms var(--wgc-ease-drawer);
  }
  .wgc .wgc-dock.is-expanded .wgc-dock__more { opacity: 1; }
  .wgc .wgc-dock__more-in { flex: none; min-height: 0; overflow: visible; padding: 56px 8px 72px; } /* what's in the price 30px under the heading's line (Figma 163062:12440); its last line 16px over the button (no Start over since 0.23.0) */
  .wgc .wgc-dock__rows { margin: 8px 16px 0; }
  .wgc .wgc-dock__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--wgc-rule-dark); font-size: 15px; line-height: 20px; letter-spacing: -0.3px; }
}
@media (min-width: 782px) and (prefers-reduced-motion: reduce) {
  .wgc .wgc-dock, .wgc .wgc-dock__range, .wgc .wgc-dock__sub, .wgc .wgc-dock__actions .wgc-pill { transition: none; }
  .wgc .wgc-dock__more { transition: opacity 150ms ease; }
  .wgc .wgc-dock.is-expanded .wgc-dock__close { transition: opacity 150ms ease, background-color 150ms ease-out; } /* the card doesn't grow: no wait */
}

/* the estimate in the card (Daniel, 2026-11-08; Figma 163062:12440): what's in the price (its label 8px over the lines).
   No Start over since 0.23.0 (Daniel: "I think remove the start over"). The card's type, 15/20, 24px in (22px on
   phones) as the heading. */
.wgc .wgc-dock__label { margin: 0 16px 8px; color: #A1A1A6; font-size: 15px; line-height: 20px; letter-spacing: -0.3px; }
.wgc .wgc-dock .wgc-lines { margin: 0 16px; }
/* desktop has its own "Details" beside it: there the button only reads "Start a project" */
.wgc .wgc-book__view { display: none; }
/* before the price (phones): the questions still to answer, on the lines' hairlines, each a 44px row that closes the card and
   goes to its question */
.wgc .wgc-todo { margin: 0 16px; padding: 0; list-style: none; }
.wgc .wgc-todo li { margin: 0; padding: 0; }
.wgc .wgc-todo__go {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 0; padding: 12px 0;
  border: 0; border-top: 1px solid var(--wgc-rule-dark); border-radius: 0; background: none; color: #fff; text-align: left;
  font: inherit; font-size: 15px; line-height: 20px; letter-spacing: -0.3px; cursor: pointer; transition: color 150ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.wgc .wgc-todo__go .wgc-icon { color: #A1A1A6; }
.wgc .wgc-todo__go:active { color: #A1A1A6; }
.wgc .wgc-todo__go:focus-visible { outline: 2px solid var(--wgc-blue); outline-offset: -2px; }
.wgc .wgc-dock .wgc-line { padding: 10px 0; font-size: 15px; line-height: 20px; letter-spacing: -0.3px; }
@media (max-width: 781px) {
  .wgc .wgc-dock__label, .wgc .wgc-dock .wgc-lines, .wgc .wgc-todo { margin-left: 14px; margin-right: 14px; }
}


/* the open card at rest takes its content's height (calculator.js, is-settled): a row sliding open or shut inside it
   moves the top edge in the same motion. It never grows past the screen (--wgc-max): then it scrolls inside, from its top. */
.wgc .wgc-dock__more { max-height: var(--wgc-max, none); }
.wgc .wgc-dock.is-settled .wgc-dock__more { height: auto; }
.wgc .wgc-dock.is-tall .wgc-dock__more { justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
/* a tall card's lines are a keyboard stop (calculator.js, 0.26.0); the ring goes round the card, since its clip would
   cut one drawn on the lines' box */
.wgc .wgc-dock__more:focus { outline: none; }
.wgc .wgc-dock:has(.wgc-dock__more:focus-visible) { box-shadow: 0 0 0 2px var(--wgc-black), 0 0 0 4px var(--wgc-blue), 0 1px 2px rgba(0, 0, 0, 0.12), 0 5px 6px rgba(0, 0, 0, 0.12); }
/* the estimate scrolls between the price and Start a project, which stay put (Daniel, 2026-11-08; Figma 163047:13597).
   0.23.1's fades at those edges are gone (Daniel, 2026-11-09: "lets remove them"): Safari repainted their mask on every
   frame of a scroll (frames up to 96ms). */
.wgc .wgc-dock.is-tall .wgc-dock__more { clip-path: inset(28px 0 64px 0); }
/* the closed pill: the line under the price ends in an ellipsis before the buttons (calculator.js measures --wgc-subw) */
.wgc .wgc-dock:not(.is-expanded) .wgc-dock__sub { max-width: var(--wgc-subw, none); overflow: hidden; text-overflow: ellipsis; }

/* phones: the 64px pill from before, 16px from the edges, with a grab tab on top (Daniel, 2026-10-15: "make it like
   before", "a little rectangle that blends into the dock", then the rounder version over "Apple style"; Figma 162515:14771,
   tab B with smooth sides). Open, it is a floating card that only grows up: its bottom, sides and 32px corners stay put
   (Daniel, 2026-10-15/16: "dont change the corner radius", "the shape just gets bigger", not touching the bottom of the
   screen). The dock is the card, fixed 16px from the sides and 8px from the bottom of the page's area, which in iOS 26
   Safari ends above its toolbar (Daniel, 2026-11-18: "a little lower on mobile it looks like it sits too high", "not to
   close to safari"; 16px until 0.25.8); only the panel under the pill changes height, so
   the top edge, the tab and the heading rise together in one layout and the bottom never moves (0.8.7 moved the dock and
   grew a background separately, which drifted a frame apart). --wgc-p is how open it is (0 to 1): the class sets it, a
   drag sets it inline (calculator.js). */
@media (max-width: 781px) {
  .wgc .wgc-dock {
    --wgc-p: 0;
    left: 16px; right: 16px; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; padding: 0;
    background: transparent; border-radius: 32px; box-shadow: none;
    /* the shadow is the black layer's (below) and no filter (2026-11-09: "make sure its not laggy"; a drop-shadow made
       Safari redraw the opening card on every frame) */
    transform: none;
    transition: transform 250ms var(--wgc-ease), visibility 0s;
  }
  .wgc .wgc-dock::after { display: none; }
  /* iOS 26 Safari fills the space around its address bar from a fixed element at the bottom of the screen, and the
     dock's shadow reaches the bottom edge, so it filled it from the dock (Daniel, 2026-10-19: "when there's no dock it
     is transparent", "the shadow is coming from the dock"). The dock is drawn inside a fixed layer of no height at the
     bottom and is itself absolute: Safari never reads an absolute child of a fixed element. Same place, look and shadow. */
  .wgc-layer { position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: 90; }
  .wgc .wgc-dock { position: absolute; }
  /* the card's black, on a layer inside it: iOS 26 Safari fills the space around its address bar with the background of a
     fixed element at the bottom, and it read the dock's #111 there (Daniel's screenshot, 2026-10-18); it ignores
     pseudo-elements. Same look. */
  /* Its shadow is desktop's small one, about 11px deep; 8px from the bottom only its faint tail (2% black) reaches the edge (Daniel, 2026-11-17: "so it doesnt
     reach the bottom of the screen"); nothing shows over the top edge, so the tab needs none of its own. */
  .wgc .wgc-dock::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--wgc-black); pointer-events: none; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 5px 6px rgba(0, 0, 0, 0.12); }
  .wgc .wgc-dock.is-expanded { --wgc-p: 1; transform: none; }
  .wgc .wgc-dock.is-empty, .wgc .wgc-dock.is-away,
  body.menu-toggled .wgc-layer .wgc-dock, body.popup-active .wgc-layer .wgc-dock {
    transform: translate3d(0, calc(100% + 48px + env(safe-area-inset-bottom, 0px)), 0); visibility: hidden;
    transition: transform 250ms var(--wgc-ease), visibility 0s linear 250ms;
  }
  .wgc .wgc-dock.is-dragging .wgc-dock__more, .wgc .wgc-dock.is-dragging .wgc-dock__range, .wgc .wgc-dock.is-dragging .wgc-dock__sub,
  .wgc .wgc-dock.is-dragging .wgc-dock__actions .wgc-pill { transition: none; } /* they follow the finger */
  @media (forced-colors: active) {
    .wgc .wgc-dock { border: 1px solid CanvasText; }
  }
  /* the tab: the grab line on a 96 x 18 shape whose sides are one smooth curve each (Figma 162515:14771), its last
     2px over the card so there is no seam. The button reaches 44px up, a touch area that never covers the price or the button.
     The shape is an image (40px wider on each side and 40px taller: it held the card's shadow until 0.25.2), so nothing
     is redrawn as the tab rides up with the opening card (2026-11-09). */
  .wgc .wgc-dock__grip {
    position: absolute; top: -44px; left: 50%; z-index: 2; width: 96px; height: 46px; margin-left: -48px; border-radius: 0;
    background: none;
  }
  .wgc .wgc-dock__grip::after {
    content: ""; position: absolute; left: -40px; right: -40px; bottom: 0; height: 58px; z-index: -1; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 176 58'%3E%3Cpath fill='%23111' d='M40 56C54.4 56 49.6 40 64 40h48c14.4 0 9.6 16 24 16v2H40z'/%3E%3C/svg%3E") center bottom / 176px 58px no-repeat;
  }
  .wgc .wgc-grabber { top: 34px; width: 32px; height: 4px; margin-left: -16px; border-radius: 2px; }
  .wgc .wgc-dock__grip:focus, .wgc .wgc-dock__grip:active { box-shadow: none; } /* the theme's pressed-button shadow would outline the touch area */
  .wgc .wgc-dock__close { display: none; }
  /* the pill: the card's top 64px. The price is laid out at the open card's heading size and place, 22px in, and drawn
     smaller and centred in the pill. */
  .wgc .wgc-dock__inner { display: block; position: static; flex: none; height: 64px; padding: 0; background: none; border-radius: 0; }
  .wgc .wgc-dock__price { position: absolute; left: 22px; top: 24px; display: block; pointer-events: none; } /* a tap on it reaches the row, which opens the card */
  .wgc .wgc-dock__range, .wgc .wgc-dock__sub { display: block; white-space: nowrap; transform-origin: 0 0; transition: transform 500ms var(--wgc-ease-drawer); }
  .wgc .wgc-dock__range { font-size: 24px; line-height: 30px; letter-spacing: -0.8px;
    transform: translate(0, calc(-11px * (1 - var(--wgc-p)))) scale(calc((0.7083 + 0.2917 * var(--wgc-p)) * (var(--wgc-k, 1) + (var(--wgc-ko, 1) - var(--wgc-k, 1)) * var(--wgc-p)))); } /* --wgc-k: a long price fits beside the button; --wgc-ko: open, the card's width (0.26.0) */
  .wgc .wgc-dock__sub { margin-top: 4px; font-size: 15px; line-height: 20px; letter-spacing: -0.3px; color: #A1A1A6;
    transform: translate(0, calc(-23px * (1 - var(--wgc-p)))) scale(calc(0.8 + 0.2 * var(--wgc-p))); }
  /* the pill's button is also the card's bottom button (Daniel, 2026-10-16: "animate the buttons inside of the dock too"):
     8px from the card's right and bottom, so it stays put while the card grows, and it stretches to the card's width from
     its right edge, keeping its height and round ends. Closing reverses it. */
  .wgc .wgc-dock__actions { position: absolute; top: auto; right: 8px; bottom: 8px; z-index: 1; }
  /* open, it is the card's width less 8px a side: the card's own measured width (--wgc-dw, calculator.js place()), not
     100vw, which counts a desktop browser's scrollbar the card doesn't have, so in a window narrower than 782px with
     scrollbars showing the open button stuck out of the card on the left (Daniel, 2026-11-09: "the start the project
     button goes outside the dock when its open") */
  .wgc .wgc-dock__actions .wgc-pill { height: 48px; justify-content: center; min-width: calc(var(--wgc-bw, 0px) + (var(--wgc-dw, calc(100vw - 32px)) - 16px - var(--wgc-bw, 0px)) * var(--wgc-p)); transition: min-width 500ms var(--wgc-ease-drawer), background-color 150ms ease-out; }
  .wgc .wgc-dock:not(.is-empty) .wgc-dock__actions [data-next]:not([hidden]) { display: inline-flex; }
  .wgc .wgc-dock__actions [data-dock-toggle] { display: none !important; }
  .wgc .wgc-dock__actions .wgc-pill--solid { background: #fff; color: #000; }
  /* with a price, the closed pill's button is "Details" in the dock's black with desktop's grey outline, and the same
     button becomes the white "Start a project" as the card opens (Daniel, 2026-11-08: "put it in black like in desktop",
     "make details instead of view the estimate", "this button changes on the open state"). Both labels sit over each other, so its
     width comes only from its stretch; the first fades out, then the second in, while the fill turns white and the outline
     goes; all of it follows a drag (--wgc-p). */
  .wgc .wgc-dock__actions .wgc-pill[data-dock-book] {
    background-color: rgb(255 255 255 / var(--wgc-p)); box-shadow: inset 0 0 0 1px rgb(117 118 119 / calc(1 - var(--wgc-p)));
    transition: min-width 500ms var(--wgc-ease-drawer), background-color 350ms var(--wgc-ease-out), box-shadow 350ms var(--wgc-ease-out);
  }
  .wgc .wgc-dock__actions .wgc-pill[data-dock-book]:focus-visible { box-shadow: inset 0 0 0 1px rgb(117 118 119 / calc(1 - var(--wgc-p))), 0 0 0 2px var(--wgc-black), 0 0 0 4px var(--wgc-blue); }
  .wgc .wgc-dock__actions [data-dock-book] .wgc-book__start,
  .wgc .wgc-dock__actions [data-dock-book] .wgc-book__view { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
  .wgc .wgc-book__view { color: #fff; opacity: calc(1 - 2 * var(--wgc-p)); transition: opacity 200ms var(--wgc-ease-out) 120ms; }
  .wgc .wgc-dock.is-expanded .wgc-book__view { transition: opacity 120ms var(--wgc-ease-out); }
  .wgc .wgc-book__start { color: #000; opacity: calc(2 * var(--wgc-p) - 1); transition: opacity 120ms var(--wgc-ease-out); }
  .wgc .wgc-dock.is-expanded .wgc-book__start { transition: opacity 200ms var(--wgc-ease-out) 120ms; }
  .wgc .wgc-dock.is-dragging .wgc-book__start, .wgc .wgc-dock.is-dragging .wgc-book__view { transition: none; }
  /* what the card opens: the panel goes from 0 to the height of what it holds (calculator.js measures it into
     --wgc-travel). Its content sits on the card's bottom, so the rising top edge uncovers it. Text 22px in, as the price;
     the buttons 8px from the card's sides and 8px apart, 48px tall, so their round ends sit in the card's corners. */
  .wgc .wgc-dock__more {
    display: flex; flex-direction: column; justify-content: flex-end; flex: none; overflow: hidden; margin: 0; padding: 0;
    height: calc(var(--wgc-travel, 0px) * var(--wgc-p)); opacity: calc((var(--wgc-p) - 0.3) / 0.7);
    transition: height 500ms var(--wgc-ease-drawer), opacity 500ms var(--wgc-ease-drawer);
  }
  .wgc .wgc-dock.is-expanded .wgc-dock__more { opacity: 1; }
  .wgc .wgc-dock__more-in { flex: none; min-height: 0; padding: 34px 8px 72px; } /* what's in the price 20px under the heading's line (Figma 163062:12742); 72: the pill's button sits under the rest, 16px under the last line (no Start over since 0.23.0) */
  .wgc .wgc-dock__rows, .wgc .wgc-dock__note { margin-left: 14px; margin-right: 14px; }
  .wgc .wgc-dock a { -webkit-user-drag: none; }
}
/* phones on their side: the open card keeps to the heading and the buttons, so it fits under the screen's top (QA 2026-10-16) */
@media (max-width: 781px) and (max-height: 480px) {
  .wgc .wgc-dock__rows, .wgc .wgc-dock__note { display: none; }
}
@media (max-width: 781px) and (prefers-reduced-motion: reduce) {
  .wgc .wgc-dock, .wgc .wgc-dock__range, .wgc .wgc-dock__sub, .wgc .wgc-dock__actions .wgc-pill { transition: none; }
  .wgc .wgc-dock__more { transition: opacity 150ms ease; }
}

/* ---------- the dock's progress (0.24.2, 0.24.3; Daniel, 2026-11-15/16; Figma 163278:12415, his "Phone dock · 7 left") ----------
   Before the price, a ring that fills as they answer, from the top and clockwise, beside what's left ("5 left / to see
   your price"): 38px, 15px in from the dock's edge and centred on its 64px, a 3px line with round ends (his frame),
   white all the way (2026-11-16: "just keep it white"). Its path is 100 long and calculator.js
   sets what's left as its dash offset; the gap is 101 so no empty dash sits on the path's end. No check (2026-11-16): the
   last answer closes the ring as it fades out with the words and Next question (is-finishing, 150ms), then the price
   fades in. The standalone and the city block, desktop and phones. */
.wgc .wgc-ring {
  position: absolute; left: 15px; top: 13px; z-index: 1; display: block; width: 38px; height: 38px; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity 150ms var(--wgc-ease-out), visibility 0s linear 150ms;
}
.wgc .wgc-dock.is-early .wgc-ring { opacity: 1; visibility: visible; transition: opacity 150ms var(--wgc-ease-out); }
.wgc .wgc-dock.is-early .wgc-dock__price, .wgc .wgc-dock.is-finishing .wgc-dock__price { left: 65px; }
.wgc .wgc-ring svg { display: block; overflow: visible; }
.wgc .wgc-ring path { fill: none; stroke-width: 3px; }
.wgc .wgc-ring__track { stroke: rgb(255 255 255 / 0.24); }
.wgc .wgc-ring__bar { stroke: #fff; stroke-linecap: round; stroke-dasharray: 100 101; stroke-dashoffset: 100; transition: stroke-dashoffset 200ms var(--wgc-ease-out); }
.wgc .wgc-dock__price, .wgc .wgc-dock__actions { transition: opacity 200ms var(--wgc-ease-out); }
.wgc .wgc-dock.is-finishing .wgc-dock__price, .wgc .wgc-dock.is-finishing .wgc-dock__actions { opacity: 0; pointer-events: none; transition-duration: 150ms; }
/* the figure's change (calculator.js figure, roll): what comes in and what leaves move on their own, the leaving one
   laid over it, so the words beside a number stay put */
.wgc .wgc-dock__range { position: relative; }
.wgc .wgc-fig, .wgc .wgc-num, .wgc .wgc-num > span { display: inline-block; }
.wgc .wgc-num { position: relative; }
.wgc .wgc-out { position: absolute; left: 0; top: 0; pointer-events: none; transform-origin: 0 0; } /* fitPill may scale a leaving price to keep its size */
@media (max-width: 781px) {
  /* the card opened before the price (the questions still to answer) keeps the count at the pill's size beside the
     ring, also while it fades out at the last answer (Daniel, 2026-11-16: "the text to the ring loader is too big when
     we open the dock"; his pill, 163278:12415: 17 and 12px). It grew to the price's 24px heading with the card. */
  .wgc .wgc-dock:is(.is-early, .is-finishing) .wgc-dock__range { transform: translate(0, -11px) scale(calc(0.7083 * var(--wgc-k, 1))); }
  .wgc .wgc-dock:is(.is-early, .is-finishing) .wgc-dock__sub { transform: translate(0, -23px) scale(0.8); }
  .wgc .wgc-dock.is-early .wgc-dock__more-in { padding-top: 7px; } /* "Still to answer" 20px under the words, as the price's list */
  .wgc .wgc-dock.is-early.is-tall .wgc-dock__more { clip-path: inset(0 0 64px 0); } /* the tall card's clip is set for the price's taller heading */
}
/* reduced motion: fewer and gentler, the fades stay; the arc changes at once */
@media (prefers-reduced-motion: reduce) {
  .wgc .wgc-ring path { transition: none; }
}
@media (forced-colors: active) {
  .wgc .wgc-ring__track { stroke: GrayText; }
  .wgc .wgc-ring__bar { stroke: CanvasText; }
}

/* ---------- the calculator's form (Daniel, 2026-10-19; Figma 162611:11860) ----------
   The contact popup's parts (.popup--steps in contact-steps.css): the name, email and company (no note: Daniel,
   2026-11-02; no email version since 2026-11-08). Here only what the contact popup doesn't have: the
   estimate being sent (as the dock shows it) and the record after a good send. Google's reCAPTCHA notice sits above
   Send as in the contact popup (0.23.7); on phones that cost 60px, won back by the range alone in the estimate (no
   place line) and 16px instead of 24 above and below it, so the form still fits an iPhone 15 (393 x 659). Shorter
   phones keep the range too since 0.25.5 (Daniel, 2026-11-17: "on mobile there's no pricing attached"; 0.23.7 left
   it out under 655px tall): see the rule at the end. */
.wgc-send .wgc-send__est { margin-top: 40px; padding: 30px; border-radius: 20px; background: #111; }
.wgc-send .wgc-send__range { margin: 0; color: #fff; font-size: 36px; line-height: 40px; letter-spacing: -1.6px; font-variant-numeric: tabular-nums; text-wrap: balance; } /* a range that wraps (a narrow card, 0.27.7) splits evenly, never "CAD" alone */
.wgc-send .wgc-send__line { margin: 8px 0 0; color: #808080; font-size: 17px; line-height: 24px; letter-spacing: -0.6px; }
.wgc-send .cs.is-sent .cs-consent { display: none; }
.wgc-send .wgc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 781px) {
  .wgc-send .wgc-send__est { margin-top: 16px; padding: 16px; }
  .wgc-send .wgc-send__range { font-size: 22px; line-height: 28px; letter-spacing: -0.8px; }
  .wgc-send.popup--steps .cs-step { row-gap: 16px; }
}
/* shorter phones (a 13 mini, an 11 Pro, 360 x 640) take the contact popup's short-phone title and gaps
   (contact-steps.css, 600px tall and less) from 655px, so the range fits without a scroll; an SE in Safari scrolls
   its fields under the pinned Send */
@media (max-width: 781px) and (max-height: 655px) {
  .wgc-send.popup--steps .cs-step__title { font-size: 28px; line-height: 34px; letter-spacing: -1px; }
  .wgc-send.popup--steps .cs-steps { margin-top: 12px; }
  .wgc-send.popup--steps .cs-actions { margin-top: 12px; }
}
/* tablets held sideways (782 to 1112 wide in landscape: 1024 x 768, 1080 x 810, 1112 x 834) take the desktop's two
   columns, as from 1113px: the estimate beside the fields. The stacked tablet column ran 84 to 122px past the screen
   there and hid the company field and the terms box (0.27.7, QA 2026-11-27). The contact popup keeps its column: its
   steps fit. */
@media (min-width: 782px) and (max-width: 1112px) and (orientation: landscape) {
  .wgc-send.popup--steps .cs-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); row-gap: 0; }
  .wgc-send.popup--steps .cs-step__a { padding-top: 12px; }
  .wgc-send.popup--steps .cs-actions { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wgc-send.popup--steps .cs-actions > .cs-terms { grid-area: 2 / 1; align-self: center; margin-bottom: 0; }
  .wgc-send.popup--steps .cs-actions > .cs-fail { grid-area: 1 / 2; }
  .wgc-send.popup--steps .cs-actions > .cs-actions__row { grid-area: 2 / 2; }
}

/* ---------- 0.25.0: hero A (Daniel's pick, 2026-11-16; Figma 163309:2, phone 163310:20) ---------- */
/* the app icon over the title, the lead and a button to the first question; white, centered, in the theme's font */
.wgc-hero { padding: 192px 0 160px; text-align: center; } /* Figma 163309:4: 192 over the icon, 160 under the button */
/* no group heading under it (0.25.0): the first question starts where the hero ends, as in the frame; the theme's line
   under the hero is its rule, so the question's own goes (0.25.1). The first row, not the first child: the group's
   heading for screen readers comes first since 2026-11-17, and the two lines had stacked into one thick line (0.25.9) */
.wgc-hero-wrap ~ .page-content .wgc .wgc-group--first { padding-top: 0; }
.wgc-hero-wrap ~ .page-content .wgc .wgc-group--first .wgc-q:first-of-type { border-top-color: transparent; }
/* "Calculate your cost" lands with that line right under the header (74px, 54 on phones), not 20px lower: the page's
   scroll padding is 94 (70) */
.wgc-hero-wrap ~ .page-content #calculator { scroll-margin-top: -19px; }
@media (max-width: 781px) { .wgc-hero-wrap ~ .page-content #calculator { scroll-margin-top: -15px; } }
/* no lone last word in titles, fewer in text (0.25.1, the page check) */
.wgc-hero__title, .page-template-templatespage-calculator-php .page-content :is(h2, h3) { text-wrap: balance; }
.wgc-hero__lead, .page-template-templatespage-calculator-php .page-content :is(p, li, td) { text-wrap: pretty; }
/* in the theme's sticky hero (0.25.1; Daniel, 2026-11-16: "make the page slide on the hero like we have the behavior
   before"): the page slides up over it, held under the header (54px, 74 from 782; the admin bar adds its own). One
   taller than the screen first scrolls up until its bottom shows, then holds (--wgc-hero-h, calculator.js). */
.site-main > .hero-wrapper.wgc-hero-wrap {
  --wgc-head: 54px;
  top: min(var(--wgc-head), calc(100vh - var(--wgc-hero-h, 0px))) !important;
  top: min(var(--wgc-head), calc(100svh - var(--wgc-hero-h, 0px))) !important;
}
.admin-bar .site-main > .hero-wrapper.wgc-hero-wrap { --wgc-head: 100px; }
@media (min-width: 782px) {
  .site-main > .hero-wrapper.wgc-hero-wrap { --wgc-head: 74px; }
  .admin-bar .site-main > .hero-wrapper.wgc-hero-wrap { --wgc-head: 106px; }
}
.wgc-hero__in { display: flex; flex-direction: column; align-items: center; }
.wgc-hero__icon { display: block; width: 152px; height: 152px; max-width: none; }
/* the theme's h1 size carries !important (--fs--huge, 120px) */
.wgc-hero .wgc-hero__title { margin: 40px 0 0; max-width: 900px; font-size: 64px !important; line-height: 72px; letter-spacing: -1.6px; font-weight: 400; color: #111; }
.wgc-hero__lead { margin: 24px 0 0; max-width: 588px; font-size: 20px; line-height: 28px; letter-spacing: -0.4px; color: #6E6E73; }
.wgc-hero__btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; margin-top: 40px; padding: 0 12px 0 24px;
  border-radius: 100px; background: #111; color: #fff; font-size: 17px; line-height: 24px; letter-spacing: -0.3px; text-decoration: none;
  transition: background-color 150ms ease; /* the hover only, no press (Daniel, 2026-11-20) */
}
.wgc-hero__btn:hover, .wgc-hero__btn:focus { color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .wgc-hero__btn:hover { background: #1D1D1F; } } /* as the theme's black buttons */
.wgc-hero__btn:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0967F4; }
.wgc-hero__badge { padding: 3px 10px; border-radius: 100px; background: #fff; color: #111; font-size: 14px; line-height: 20px; letter-spacing: -0.1px; }
@media (max-width: 781px) {
  .wgc-hero { padding: 72px 0 80px; }
  .wgc-hero__icon { width: 96px; height: 96px; }
  .wgc-hero .wgc-hero__title { margin-top: 32px; font-size: 40px !important; line-height: 44px; letter-spacing: -1.2px; }
  .wgc-hero__lead { margin-top: 16px; font-size: 17px; line-height: 24px; letter-spacing: -0.2px; }
  .wgc-hero__btn { margin-top: 32px; }
}

/* ---------- 0.25.0: pictures in the look and brand answers, and the explainer (Figma 163307:12453) ---------- */
/* from 1113px the picked answer's picture sits under the question (or the one under the mouse, or the first before a
   pick); below that every answer carries its own picture, two to a row on tablets and one on phones (Daniel, 2026-11-17:
   "on the phone you can't really see the images"), and "No, not now" stays a plain row. One
   image per answer, exported from its 880 x 660 frame, so the drawn interface keeps its alignment at every size. */
.wgc .wgc-q__pics { display: none; }
.wgc .wgc-tile__pic { display: none; }
@media (min-width: 1113px) {
  .wgc .wgc-q--pics .wgc-q__pics { display: block; position: relative; margin-top: 24px; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #F1F1F1; }
  .wgc .wgc-q__pic { position: absolute; inset: 0; opacity: 0; transition: opacity 200ms ease; }
  .wgc .wgc-q__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .wgc .wgc-q__pic.is-on { opacity: 1; }
  /* the answers start level with the picture, not with the title (Daniel, 2026-11-17: "maybe it is better if we show the
     options aligned with the image no?"): the title takes the row's first line on its own and the picture and the answers
     share the next (these questions have no help line). Two to a row, the answers fill the picture's height, so their
     bottoms line up too where they fit in it: the picture's column (--wgc-col) at 4:3. */
  .wgc .wgc-q--pics { container-type: inline-size; row-gap: 0; }
  .wgc .wgc-q--pics .wgc-q__text { display: contents; }
  .wgc .wgc-q--pics .wgc-q__title { grid-area: 1 / 1; margin-bottom: 24px; }
  .wgc .wgc-q--pics .wgc-q__pics { grid-area: 2 / 1; margin-top: 0; }
  .wgc .wgc-q--pics .wgc-q__control { grid-area: 2 / 2; }
  .wgc .wgc-q--pics .wgc-tiles--2 { grid-auto-rows: 1fr; min-height: calc((100cqw / 3 - 20px) * 0.75); }
}
@media (max-width: 1112px) {
  .wgc .wgc-q--pics .wgc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wgc .wgc-q--pics .wgc-tile:not(.has-pic) { grid-column: 1 / -1; }
  .wgc .wgc-tile.has-pic { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "pic" "label" "price"; align-items: start; min-height: 0; padding: 8px 8px 14px; row-gap: 0; }
  .wgc .wgc-tile.has-pic .wgc-tile__icon, .wgc .wgc-tile.has-pic .wgc-tile__desc { display: none; }
  /* no radio circle over the picture (Daniel, 2026-11-16: "remove those circular holes they block the view of images"):
     the tile's black fill shows the pick */
  .wgc .wgc-tile.has-pic .wgc-mark { display: none; }
  .wgc .wgc-tile.has-pic .wgc-tag { position: absolute; top: 18px; left: 18px; z-index: 1; }
  .wgc .wgc-tile.has-pic .wgc-tile__label, .wgc .wgc-tile.has-pic .wgc-tile__price { padding: 0 6px; }
  .wgc .wgc-tile__pic { grid-area: pic; display: block; margin-bottom: 12px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #F1F1F1; }
  .wgc .wgc-tile__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 781px) {
  .wgc .wgc-q--pics .wgc-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .wgc .wgc-tile.has-pic { padding: 8px 8px 12px; }
  .wgc .wgc-tile.has-pic .wgc-tile__pic { margin-bottom: 10px; border-radius: 12px; }
  .wgc .wgc-tile.has-pic .wgc-tile__label, .wgc .wgc-tile.has-pic .wgc-tile__price { padding: 0 4px; }
}
/* the explainer: opens under the answers and types in, as the startup quiz's does (quiz.js animateText) */
.wgc .wgc-explain { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: 0; transition: grid-template-rows 220ms var(--wgc-ease-out), margin-top 220ms var(--wgc-ease-out), opacity 160ms ease-out; }
.wgc .wgc-explain.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 16px; }
.wgc .wgc-explain__in { min-height: 0; overflow: hidden; }
.wgc .wgc-explain__text { margin: 0; padding: 20px; border-radius: 20px; background: #F1F1F1; color: #111; font-size: 17px; line-height: 24px; letter-spacing: -0.4px; }
.wgc .wgc-explain__text .wgc-ch { opacity: 0; animation: wgc-type 50ms linear forwards; animation-delay: calc(var(--i) * 10ms); }
@keyframes wgc-type { to { opacity: 1; } }
@media (max-width: 781px) {
  .wgc .wgc-explain.is-open { margin-top: 10px; }
  .wgc .wgc-explain__text { padding: 16px; font-size: 15px; line-height: 22px; letter-spacing: -0.3px; }
}
/* below 1113px, where each answer carries its picture, the picked one's line opens inside it, where its price line stands
   (a picked answer has none), in the tile's own type (Daniel, 2026-11-17: "show inside of the option we have selected ...
   the user can see the explanation text on mobile right away"). The question's box stays for screen readers only. A line
   leaving goes at once, so it never shows over the price that comes back; its space folds in the box's 220ms. */
.wgc .wgc-tile__explain { display: none; }
@media (max-width: 1112px) {
  .wgc .wgc-q--pics .wgc-q__control > .wgc-explain { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wgc .wgc-tile__explain { display: grid; grid-area: price; align-self: start; transition: grid-template-rows 220ms var(--wgc-ease-out), margin-top 220ms var(--wgc-ease-out); }
  .wgc .wgc-tile__explain.is-open { margin-top: 6px; }
  .wgc .wgc-tile__explain .wgc-explain__text { display: block; padding: 0; border-radius: 0; background: none; color: var(--wgc-grey-on-dark); font-size: 17px; line-height: 24px; letter-spacing: -0.4px; }
  .wgc .wgc-tile.has-pic .wgc-tile__explain .wgc-explain__text { padding: 0 6px; }
}
@media (max-width: 781px) {
  .wgc .wgc-tile__explain.is-open { margin-top: 4px; }
  .wgc .wgc-tile__explain .wgc-explain__text { font-size: 15px; line-height: 22px; letter-spacing: -0.3px; }
  .wgc .wgc-tile.has-pic .wgc-tile__explain .wgc-explain__text { padding: 0 4px; }
  /* the brand's "No, not now": its icon, circle and price line keep their places as its line opens (they were centred on the row) */
  .wgc .wgc-q--pics .wgc-tile:not(.has-pic) .wgc-tile__icon { align-self: start; margin-top: 10px; }
  .wgc .wgc-q--pics .wgc-tile:not(.has-pic) .wgc-mark { align-self: start; margin-top: 11px; }
  .wgc .wgc-q--pics .wgc-tile:not(.has-pic) .wgc-tile__price { align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .wgc .wgc-explain { transition: none; } /* the pictures keep their fade: opacity only */
  .wgc .wgc-explain__text .wgc-ch { animation: none; opacity: 1; }
}

/* QA 2026-11-17. The checklists' grey on the bands: their rows don't turn white like the tiles, so #6A6A6F (4.73:1 on the
   red tint, 5.07:1 on the grey) for the theme's #757677 (4.00:1 and 4.29:1). */
.wgc .wgc-q.is-next .wgc-check__desc, .wgc .wgc-q.is-next .wgc-check__price,
.wgc .wgc-q.is-skipped .wgc-check__desc, .wgc .wgc-q.is-skipped .wgc-check__price { color: #6A6A6F; }
/* reduced motion: Start a project takes its new width at once as the card opens and closes (it stretched over 350ms) */
@media (prefers-reduced-motion: reduce) {
  .wgc .wgc-dock__actions .wgc-pill:not([data-dock-toggle]), .wgc .wgc-dock__actions .wgc-pill[data-dock-book] { transition: none; }
}
