/* =============================================================================
   COST PAGES AND GUIDES (guide.html, guide_hub.html, how_we_price.html,
   compare_bids.html). Loaded by those pages only, after style.css. Every class
   starts with g-, and colors, fonts and the range-line idea are style.css's.

   The page: a sand band across the top on a faint drawing grid, holding the
   trail, the headline and the answer (a sheet with the range drawn as a
   dimension line). Under it one reading column and, from 1100px, a quiet
   rail: the sections, and the same button as the one at the bottom.

   CSP: no style="" anywhere. Every computed position (the brass points, the
   bars on one scale, the per-sq-ft bars, the composition) sits in guide.html's
   nonce'd <style>, worked out from the engine's figures.

   Every table fits a 320px phone with no sideways scroll: fixed layout, and the
   wide column wraps.
   ========================================================================== */

/* ------------------------------------------------------------------ frame */
main.g-wide { max-width: none; padding: 0 0 clamp(64px, 8vw, 112px); }
.g-in { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.g-page { min-width: 0; }
.g-page p { max-width: var(--measure); }

/* Hidden from the eye, kept for screen readers (repeat table headers). */
.g-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* A small label over a figure or a list, in sentence case like every label here. */
.g-label { margin: 0; font: 600 .8125rem/1.3 var(--sans); color: var(--muted); }
/* The key: the brass point beside "Most likely", the same point as on the line. */
.g-key::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0;
  border-radius: 50%; background: var(--brass); vertical-align: middle; }

/* ------------------------------------------------------------------- hero */
.g-hero { position: relative; isolation: isolate; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
/* The drawing grid, strongest behind the answer, gone behind the words. */
.g-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(15 47 79 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(15 47 79 / .06) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 85%); }
.g-hero-in { display: grid; gap: 28px; padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(36px, 5vw, 64px); }
.g-hero-text { min-width: 0; max-width: 760px; }
.g-page h1 { margin: 20px 0 0; font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.018em; }
.g-answer { margin: 20px 0 0; font-size: var(--fs-lede); line-height: 1.62; color: var(--ink-2); max-width: 41em; }
.g-answer strong { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.g-updated { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: .875rem; color: var(--muted); }
.g-updated::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

/* The trail. Links are 44px tall (style.css), the text stays small. */
.g-crumbs { font-size: .875rem; color: var(--muted); }
.g-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; list-style: none; margin: 0; padding: 0; }
.g-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.g-crumbs li + li::before { content: "/"; color: var(--rule-strong); }
/* A few px more each side to tap ("Home" alone is 39px wide), given back so nothing moves. */
.g-crumbs a { padding-inline: 4px; margin-inline: -4px; color: var(--ink-2); text-decoration: none; }
.g-crumbs a:hover { color: var(--navy); text-decoration: underline; }
.g-crumbs [aria-current] { color: var(--muted); }

/* The answer: a sheet, the headline sample's range as a dimension line. */
.g-ans { align-self: end; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow-doc); }
.g-ans-head { padding: 16px 22px 14px; border-bottom: 1px solid var(--rule-soft); }
.g-ans-name { margin: 4px 0 0; font-weight: 600; font-size: .9375rem; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.g-ans-body { padding: 18px 22px 8px; }
.g-ans-likely { margin: 0; }
.g-ans-likely .g-key { display: block; font: 500 .8125rem/1.3 var(--sans); color: var(--muted); }
.g-ans-unit { display: block; margin-top: 6px; font-size: .875rem; color: var(--muted); }
.g-ans-likely strong { display: block; margin-top: 4px; font: 600 2.375rem/1.05 var(--sans); letter-spacing: -.03em;
  color: var(--navy); font-variant-numeric: tabular-nums; }
.g-ans-line { margin-top: 16px; }
.g-ans-facts { margin: 16px 0 0; }
.g-ans-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0;
  border-top: 1px solid var(--rule-soft); font-size: .875rem; }
.g-ans-facts dt { color: var(--muted); }
.g-ans-facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* The range line: a dimension line, capped at both ends, a tick at each
   quarter, the brass point at the most likely figure (left from the nonce). */
.g-rl { position: relative; height: 12px; margin-top: 14px; }
.g-rl::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1.5px; background: var(--navy); }
.g-rl::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--navy) 0 0) 0 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--navy) 0 0) 100% 0 / 1.5px 100% no-repeat,
    linear-gradient(rgb(15 47 79 / .45) 0 0) 25% 3px / 1px 6px no-repeat,
    linear-gradient(rgb(15 47 79 / .45) 0 0) 50% 3px / 1px 6px no-repeat,
    linear-gradient(rgb(15 47 79 / .45) 0 0) 75% 3px / 1px 6px no-repeat; }
.g-rl-pt { position: absolute; z-index: 1; top: 50%; left: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: var(--brass); transform: translate(-50%, -50%); box-shadow: 0 0 0 2.5px var(--card); }
.g-rl-lg { height: 14px; margin-top: 0; }
.g-rl-lg::before { top: 6px; height: 2px; }
.g-rl-lg::after { background:
    linear-gradient(var(--navy) 0 0) 0 0 / 2px 100% no-repeat,
    linear-gradient(var(--navy) 0 0) 100% 0 / 2px 100% no-repeat,
    linear-gradient(rgb(15 47 79 / .5) 0 0) 25% 3px / 1px 8px no-repeat,
    linear-gradient(rgb(15 47 79 / .5) 0 0) 50% 3px / 1px 8px no-repeat,
    linear-gradient(rgb(15 47 79 / .5) 0 0) 75% 3px / 1px 8px no-repeat; }
.g-rl-lg .g-rl-pt { width: 16px; height: 16px; box-shadow: 0 0 0 3px var(--card), 0 1px 3px 3px rgb(17 26 36 / .12); }
.g-rl-ends { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; margin: 9px 0 0; max-width: none;
  font: 500 .8125rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.g-rl-ends span:last-child { text-align: right; }
.g-rl-mid { font: 500 .75rem/1 var(--sans); }

/* ------------------------------------------------------------------- body */
.g-body { display: block; }
.g-main { min-width: 0; }
.g-rail { display: none; }
.g-sec, .g-faq { margin-top: clamp(52px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--rule); }
.g-sec-first { margin-top: clamp(36px, 4.5vw, 56px); padding-top: 0; border-top: 0; }
/* The size is every document's h2 (--fs-h2, style.css): one step for a section head. */
.g-page h2 { margin: 0 0 20px; }
.g-page h3 { font-size: 1rem; line-height: 1.35; }
.g-sec > p { color: var(--ink-2); line-height: 1.65; }
.g-sec > h2 + p { margin-top: 0; }
.g-fine { margin: 14px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.g-extra { margin: 16px 0 0; color: var(--ink-2); }
.g-section-lede { margin: -6px 0 16px; color: var(--muted); }
.g-see { margin-top: 28px; }
.g-more { margin: 12px 0 0; }

/* A link that goes somewhere, on its own or ending a sentence: 44px tall.
   No arrow: the words say where it goes. */
.g-go { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-block: calc((1lh - 44px) / 2);
  font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: rgb(15 47 79 / .3);
  text-underline-offset: 4px; }
.g-go:hover { color: var(--navy-hi); text-decoration-color: currentColor; }

/* A sourced fact's source: small, navy, an outward arrow; 44px to tap. */
.g-src { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-block: calc((1lh - 44px) / 2);
  font-size: .84375rem; font-weight: 500; color: var(--navy); white-space: normal; }
.g-ext { width: 10px; height: 10px; flex: none; }
.g-inl { white-space: normal; }
/* An outside link inside a sentence: the sentence's size, and the sources'
   outward arrow, so every link that leaves the site says so. */
.g-xl { white-space: nowrap; }
.g-xl .g-ext { display: inline-block; width: .6em; height: .6em; margin-left: .2em; vertical-align: .08em; }

/* To "On this page" from the top (guide_crumbs.html): only where the rail shows.
   It comes after the trail in the Tab order, so it shows over the trail, on
   the column's left edge (the logo's): over the rail's column it ran past the
   page edge under 1200px, and on the hub it covered the top of the card. */
.g-skip-toc { display: none; }
@media (min-width: 1100px) {
  .g-skip-toc { display: inline-flex; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
  /* Its slide up ends inside the header band: clipped as well until focused. */
  .g-skip-toc:not(:focus) { clip-path: inset(50%); }
}

/* ----------------------------------------------------------- sample cards */
.g-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g-card { display: flex; flex-direction: column; padding: 20px 20px 18px; background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.g-card h3 { min-height: 2.8em; font-size: .9375rem; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.g-card p { margin: 0; }
.g-card .g-card-likely { margin-top: 16px; }
.g-card-likely .g-key, .g-card-range span { display: block; font: 500 .78125rem/1.3 var(--sans); color: var(--muted); }
.g-card-likely strong { display: block; margin-top: 4px; font: 600 1.75rem/1.05 var(--sans); letter-spacing: -.03em;
  color: var(--navy); font-variant-numeric: tabular-nums; }
.g-card .g-card-range { margin-top: 12px; }
.g-card-range { font-size: .90625rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.g-card-range span { margin-bottom: 2px; }
.g-card .g-card-per { margin-top: auto; }
.g-card-per { padding-top: 14px; font-size: .84375rem; color: var(--muted); }
.g-card-per::before { content: ""; display: block; height: 1px; margin-bottom: 12px; background: var(--rule-soft); }
.g-cards-held .g-card h3 { min-height: 0; }
/* The answer in the hero is this sample: at every width its card isn't shown a
   second time, and the other two share the row. (Two classes, so the phone
   layout's .g-card { display: grid } below can't bring it back.) */
.g-cards > .g-card-ans { display: none; }
.g-cards:has(> .g-card-ans) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* The samples on one scale: the lowest low to the highest high, each range
   a capped navy line with its brass point. Left and width from the nonce. */
.g-scale { margin-top: 18px; padding: 20px 22px 16px; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.g-scale-h { margin: 0 0 8px; font: 600 .8125rem/1.3 var(--sans); color: var(--muted); }
.g-scale ul { list-style: none; margin: 0; padding: 0; }
.g-scale li { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); align-items: center; gap: 20px; }
.g-scale-name { padding: 9px 0; font-size: .875rem; line-height: 1.35; color: var(--ink-2); text-wrap: pretty; }
/* The track: a hairline, and a faint rule at each quarter of the scale that
   runs on through the rows. The scale itself (the bars' 0 to 100%) sits 10px
   inside the frame's two end rules, so the cheapest range's left cap and the
   dearest one's right cap stand clear of them instead of on them. */
.g-scale-track { position: relative; align-self: stretch; min-height: 40px; margin-inline: 10px;
  background:
    linear-gradient(var(--rule-soft) 0 0) 25% 0 / 1px 100% no-repeat,
    linear-gradient(var(--rule-soft) 0 0) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--rule-soft) 0 0) 75% 0 / 1px 100% no-repeat; }
.g-scale-track::before { content: ""; position: absolute; inset: 0 -10px;
  background:
    linear-gradient(var(--rule) 0 0) 0 50% / 100% 1px no-repeat,
    linear-gradient(var(--rule) 0 0) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--rule) 0 0) 100% 0 / 1px 100% no-repeat; }
.g-scale-bar { position: absolute; top: 50%; height: 12px; margin-top: -6px; min-width: 4px;
  background:
    linear-gradient(var(--navy) 0 0) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--navy) 0 0) 0 0 / 2px 100% no-repeat,
    linear-gradient(var(--navy) 0 0) 100% 0 / 2px 100% no-repeat; }
.g-scale-pt { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--brass);
  transform: translate(-50%, -50%); box-shadow: 0 0 0 2.5px var(--card); }
/* The two ends of the scale, under its 0 and 100% (the track's 10px in). */
.g-scale-axis { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 8px 0 0 calc(36% + 20px); padding-inline: 10px; max-width: none; font: 500 .8125rem/1.3 var(--sans);
  color: var(--muted); font-variant-numeric: tabular-nums; }
.g-scale-key { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: .75rem; }
.g-key-range::before { content: ""; display: inline-block; width: 14px; height: 8px; margin: 0 7px 1px 0; vertical-align: middle;
  background:
    linear-gradient(var(--navy) 0 0) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(var(--navy) 0 0) 0 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--navy) 0 0) 100% 0 / 1.5px 100% no-repeat; }

.g-scale + .g-fine { margin-top: 18px; }

/* The paragraph after the samples that sends you to your own job. */
.g-midcta { margin: 24px 0 0; padding: 16px 20px; border-radius: var(--r); background: var(--tint-navy);
  box-shadow: inset 2px 0 0 var(--navy); color: var(--ink-2); font-size: .96875rem; line-height: 1.6; max-width: none !important;
  border-top-left-radius: 0; border-bottom-left-radius: 0; }
.g-midcta .g-go { white-space: nowrap; }

/* ----------------------------------------------------------------- tables */
.g-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9375rem; }
.g-table caption { text-align: left; padding: 0 0 10px; font: 600 .8125rem/1.3 var(--sans); color: var(--muted); }
.g-table th, .g-table td { padding: 13px 0; border-bottom: 1px solid var(--rule-soft); text-align: left;
  vertical-align: top; overflow-wrap: anywhere; }
.g-table thead th { padding: 0 0 10px; border-bottom: 1px solid var(--ink); font: 600 .8125rem/1.3 var(--sans);
  color: var(--muted); vertical-align: bottom; }
.g-table tbody th { font-weight: 500; color: var(--ink); }
.g-table .g-num { padding-left: 16px; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: normal; }
/* A figure never breaks across lines: its column is sized to hold it. */
.g-table td.g-num { white-space: nowrap; color: var(--ink-2); }
.g-table small { display: block; margin-top: 3px; color: var(--muted); font-size: .84375rem; font-weight: 400; line-height: 1.5; }

/* Cost per square foot: the installed figure in navy, the rest of the whole
   job in a pale navy, both to one scale. Not brass: on these pages brass is
   materials (the money split below), and one colour keeps one meaning. */
.g-products th.g-num { width: 6.6rem; }
.g-products td.g-num:last-child { font-weight: 600; color: var(--ink); }
.g-products tbody th, .g-products td { vertical-align: middle; }
.g-prow { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.15fr); align-items: center; gap: 20px; }
.g-pbar { display: flex; gap: 2px; height: 8px; }
.g-pbar i, .g-pkey i { display: block; height: 100%; border-radius: 1px; }
.g-pb-i { background: var(--navy); }
.g-pb-w { background: var(--navy-200); }
.g-pkey { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; font-size: .8125rem; color: var(--muted); }
.g-pkey span { display: inline-flex; align-items: center; gap: 8px; }
.g-pkey i { width: 14px; height: 8px; }

/* What moves the price */
.g-options th.g-num:last-child { width: 8rem; }
.g-options tbody th, .g-options td { vertical-align: middle; }
.g-options td.g-num { font-weight: 600; color: var(--ink); }
/* "saves" may go over its figure when the column is tight (wider text spacing);
   the figure itself has nowhere to break. */
.g-table.g-options td.g-num { white-space: normal; }
.g-options td.g-eff-saves { color: var(--navy); }

/* The hub: every sample, lowest to highest. */
.g-hub th.g-num { width: 6.8rem; }
.g-hub tbody th { font-weight: 500; }
.g-hub tbody th a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-underline-offset: .22em;
  /* A 44px tap target that doesn't make the row any taller: the padding
     reaches into the cell's own 13px, the negative margin gives it back. */
  display: inline-block; padding-block: 13.5px; margin-block: -13.5px; }
.g-hub tbody th a:hover { color: var(--navy); text-decoration-color: var(--navy); }
.g-hub td.g-likely b { font-weight: 600; color: var(--navy); }
.g-hub tbody tr:hover > * { background: rgb(255 255 255 / .55); }

/* ------------------------------------------------------- each sample's lines */
.g-scn { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.g-scn + .g-scn { margin-top: 12px; }
.g-scn > summary { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 16px 22px;
  list-style: none; cursor: pointer; border-radius: var(--r-lg); }
.g-scn > summary::-webkit-details-marker { display: none; }
.g-scn > summary span { flex: 1; font-weight: 600; font-size: .96875rem; line-height: 1.4; color: var(--ink); }
.g-scn > summary b { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Plus to open, minus to close, drawn: no glyph to fall back. */
.g-scn > summary::after, .g-qa > summary::after { content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(var(--navy) 0 0) center / 12px 1.5px no-repeat,
    linear-gradient(var(--navy) 0 0) center / 1.5px 12px no-repeat; }
.g-scn[open] > summary::after, .g-qa[open] > summary::after {
  background: linear-gradient(var(--navy) 0 0) center / 12px 1.5px no-repeat; }
.g-scn[open] > summary { border-bottom: 1px solid var(--rule-soft); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.g-scn > summary:hover span { color: var(--navy); }
.g-scn-body { padding: 4px 22px 22px; }

/* A phase: its name in the serif over a rule in ink, the lines on hairlines.
   Fixed columns, so every phase's figures stand on the same edges. */
.g-lines { margin-top: 20px; }
.g-lines caption { padding: 0 0 8px; border-bottom: 1px solid var(--ink); font: 400 1.125rem/1.3 var(--serif);
  letter-spacing: -.004em; text-transform: none; color: var(--ink); }
.g-lines thead th { padding-top: 12px; border-bottom: 0; }
.g-lines thead th:nth-child(2) { text-align: right; }
.g-lines td b { display: block; font-weight: 600; color: var(--ink); line-height: 1.4; }
/* On <col>, not the header cells: a table whose header row is the hidden .g-sr
   one would otherwise fall back to three equal columns. */
.g-c-qty { width: 7rem; }
.g-c-amt { width: 5.5rem; }
/* guides.qty_text joins a number to its unit ("1,000 sq ft"), so only a word
   after them ("wall") can wrap. */
.g-qty { padding-left: 12px !important; text-align: right !important; color: var(--muted); font-size: .875rem;
  overflow-wrap: normal !important; font-variant-numeric: tabular-nums; }
.g-lines td.g-num { font-weight: 600; color: var(--ink); }
.g-example thead th { border-bottom: 1px solid var(--ink); }
.g-note { margin: 20px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper-2);
  font-size: .875rem; line-height: 1.6; color: var(--ink-2); max-width: none !important; }

/* The totals: a card, the most likely figure last on a navy tint. */
.g-totals { margin-top: 16px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--rule);
  border-radius: var(--r); overflow: hidden; }
.g-totals th, .g-totals td { padding: 11px 16px; font-size: .90625rem; }
.g-totals tbody th { font-weight: 400; color: var(--ink-2); }
/* The figures' column, on its <col> (guide.html): see .g-c-qty. */
.g-c-tot { width: 7.5rem; }
.g-totals td.g-num { color: var(--ink); font-weight: 500; }
.g-totals small { font-size: .8125rem; }
.g-total th, .g-total td { border-bottom: 0; background: var(--tint-navy); padding-block: 15px; }
.g-totals .g-total th { font: 400 1.125rem/1.2 var(--serif); color: var(--ink); }
.g-totals .g-total td.g-num { font: 600 1.25rem/1.1 var(--sans); letter-spacing: -.02em; color: var(--navy); }

/* Where the money goes: the bar (its colors are style.css's .cb-*), then a
   ledger of its parts. */
.g-bar-h { margin-top: 22px !important; }
.g-bar { display: flex; gap: 2px; height: 10px; margin-top: 10px; }
.g-bar i { display: block; height: 100%; min-width: 2px; border-radius: 1px; }
.g-bar i:first-child { border-radius: 3px 1px 1px 3px; }
.g-bar i:last-child { border-radius: 1px 3px 3px 1px; }
.g-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; list-style: none;
  margin: 10px 0 0; padding: 0; }
.g-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--rule-soft); font-size: .84375rem; line-height: 1.35; color: var(--ink-2); }
.g-legend i { display: block; width: 10px; height: 10px; border-radius: 2px; }
.g-legend b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------- lists and notes */
/* Ruled rows with a dash; a sourced fact ends on its source. */
.g-rows { list-style: none; margin: 0; padding: 0; max-width: none; border-top: 1px solid var(--rule-soft); }
.g-rows li { position: relative; margin: 0; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-2); line-height: 1.6; }
.g-rows li::before { content: ""; position: absolute; left: 1px; top: calc(13px + .8em); width: 12px; height: 1px;
  background: var(--muted); }
.g-rows li::marker { content: none; }

/* ---------------------------------------------------- how-we-price, bids */
/* From your photos to a price: four numbered steps, a rule over each. */
.g-flow { list-style: none; counter-reset: g-step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px; margin: 8px 0 0; padding: 0; max-width: none; }
.g-flow li { counter-increment: g-step; margin: 0; padding-top: 16px; border-top: 2px solid var(--navy);
  color: var(--ink-2); line-height: 1.6; }
.g-flow li::before { content: counter(g-step, decimal-leading-zero); content: counter(g-step, decimal-leading-zero) / "";
  display: block; margin-bottom: 8px; font: 600 .8125rem/1 var(--sans); letter-spacing: .08em;
  color: var(--brass-ink); font-variant-numeric: tabular-nums; }

/* What's added on top, as a ledger beside the words. */
.g-ledger { float: right; width: min(300px, 42%); margin: 4px 0 20px 32px; padding: 18px 20px 6px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.g-ledger dl { margin: 8px 0 0; }
.g-ledger dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0;
  border-top: 1px solid var(--rule-soft); font-size: .875rem; }
.g-ledger dt { color: var(--ink-2); }
.g-ledger dd { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-ledger-range dd { display: inline-flex; align-items: center; gap: 8px; }
/* -8% . +18%: the brass point between, as on the range line. */
.g-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.g-sec::after { content: ""; display: block; clear: both; }
/* Wide enough for both: the words in one column, the ledger in its own beside
   them, so a paragraph doesn't change width halfway down as it did round a float.
   (The 1fr row at the end takes whatever the ledger is taller than the words.) */
@media (min-width: 720px) {
  .g-sec:has(> .g-ledger) { display: grid; grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: auto auto auto 1fr; column-gap: 40px; }
  .g-sec:has(> .g-ledger)::after { display: none; }
  .g-sec:has(> .g-ledger) > * { grid-column: 1; }
  .g-sec:has(> .g-ledger) > p { margin-top: 0; }
  .g-sec > .g-ledger { grid-column: 2; grid-row: 2 / 5; align-self: start; float: none; width: auto; margin: 0; }
}

/* Compare bids: six steps, numbered in brass, ruled. */
.g-steps { list-style: none; counter-reset: g-step; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.g-steps li { counter-increment: g-step; position: relative; margin: 0; padding: 20px 0 20px 52px;
  border-bottom: 1px solid var(--rule-soft); }
.g-steps li::before { content: counter(g-step, decimal-leading-zero); content: counter(g-step, decimal-leading-zero) / "";
  position: absolute; left: 0; top: 22px; font: 600 .8125rem/1.4 var(--sans); letter-spacing: .06em;
  color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.g-steps h3 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -.008em; }
.g-steps p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.6; }

/* -------------------------------------------------------------------- FAQ */
/* Open in the HTML; static/faq.js closes all but the first on a phone. */
.g-qa { border-top: 1px solid var(--rule); }
.g-qa:last-child { border-bottom: 1px solid var(--rule); }
.g-qa > summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; min-height: 44px;
  padding: 18px 0; list-style: none; cursor: pointer; }
.g-qa > summary::-webkit-details-marker { display: none; }
.g-qa > summary::after { margin-top: 6px; }
.g-qa h3 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -.006em; color: var(--ink); }
.g-qa > summary:hover h3 { color: var(--navy); }
.g-qa p { margin: -6px 0 20px; color: var(--muted); line-height: 1.65; max-width: 40em; }

/* -------------------------------------------------------------------- CTA */
/* Navy, a faint drawing grid, the one paper button on the page. */
.g-cta { margin-top: clamp(56px, 7vw, 80px); padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg);
  background-color: var(--navy); color: var(--navy-200);
  background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 28px 28px; }
.g-page .g-cta h2 { margin: 0; color: #fff; max-width: 18em; }
.g-cta p { margin: 14px 0 0; line-height: 1.6; max-width: 38em; }
.g-cta-go { margin-top: 26px !important; }
.g-cta .primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  background: var(--paper); color: var(--navy); border-color: transparent;
  box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 8px 20px -10px rgb(0 0 0 / .5); }
.g-cta .primary:hover { background: #fff; color: var(--navy); }
.g-cta-fine { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .875rem; }
.g-cta-fine span { display: inline-flex; align-items: center; gap: 8px; }
.g-cta-fine .g-ico { color: var(--brass-lt); }

/* ---------------------------------------------------------------- related */
.g-related { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.g-related a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--card); color: var(--ink-2);
  font-size: .9375rem; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.g-related a:hover { border-color: var(--navy); color: var(--navy); }

/* ------------------------------------------------------------------- rail */
.g-ico { width: 18px; height: 18px; flex: none; }
@media (min-width: 1100px) {
  .g-hero-in.g-hero-2, .g-body { grid-template-columns: minmax(0, 1fr) var(--rail);
    column-gap: var(--rail-gap); }
  .g-hero-in.g-hero-2 { align-items: end; }
  .g-body { display: grid; align-items: start; }
  .g-rail { display: grid; gap: 24px; position: sticky; top: calc(var(--nav) + 32px);
    margin-top: clamp(36px, 4.5vw, 56px); }
}
.g-toc-h { margin: 0 0 10px; font: 600 .8125rem/1.3 var(--sans); color: var(--muted); }
/* Where "Jump to contents" lands (tabindex="-1"): the site's ring, not the
   browser's, round the words rather than the rail's whole width. */
.g-toc-h { width: fit-content; }
.g-toc-h:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-sm); }
.g-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.g-toc a { display: flex; align-items: center; min-height: 40px; margin-left: -1px; padding: 6px 0 6px 14px;
  border-left: 2px solid transparent; color: var(--ink-2); font-size: .90625rem; line-height: 1.3; text-decoration: none;
  transition: color .15s ease, border-color .15s ease; }
.g-toc a:hover { color: var(--navy); border-left-color: var(--navy); }
@media (pointer: coarse) { .g-toc a { min-height: 44px; } }
.g-rail-cta { padding: 20px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); }
.g-rail-h { margin: 0; font: 400 1.25rem/1.25 var(--serif); letter-spacing: -.006em; color: var(--ink); }
.g-rail-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px;
  margin-top: 16px; padding: 0 16px; }
.g-trust { list-style: none; display: grid; gap: 10px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule-soft); }
.g-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.g-trust .g-ico { width: 17px; height: 17px; margin-top: 1px; color: var(--navy); }

/* --------------------------------------------------------------- narrower */
@media (max-width: 1099px) {
  /* One centred reading column; the answer under the words, not beside them. */
  .g-in { max-width: calc(760px + 2 * var(--gutter)); }
  .g-ans { max-width: 480px; }
}

@media (max-width: 719px) {
  .g-cards, .g-cards:has(> .g-card-ans) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* A card on a phone: the name across, the two figures side by side, the
     line under them. */
  .g-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: end;
    padding: 18px 18px 16px; }
  .g-card h3 { grid-column: 1 / -1; min-height: 0; }
  .g-card .g-card-likely { grid-row: 2; grid-column: 1; margin-top: 12px; }
  .g-card .g-card-range { grid-row: 2; grid-column: 2; margin-top: 0; text-align: right; }
  .g-card .g-rl { grid-row: 3; grid-column: 1 / -1; }
  .g-card .g-card-per { grid-row: 4; grid-column: 1 / -1; margin-top: 0; }
  .g-card-likely strong { font-size: 1.625rem; }
  .g-scale-pt { width: 10px; height: 10px; }
  .g-scale { padding: 16px 16px 12px; }
  .g-scale li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .g-scale-name { padding: 10px 0 2px; }
  .g-scale-track { min-height: 28px; }
  .g-scale-axis { margin-left: 0; }
  .g-prow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .g-legend { grid-template-columns: minmax(0, 1fr); }
  .g-flow { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .g-ledger { float: none; width: auto; margin: 0 0 20px; }
}

/* Too narrow for the two figures side by side: one under the other. */
@media (max-width: 419px) {
  .g-card { display: flex; align-items: stretch; }
  .g-card .g-card-range { margin-top: 12px; text-align: left; }
  .g-card .g-card-per { margin-top: 0; }
}

@media (max-width: 639px) {
  .g-page h1 { margin-top: 14px; }
  .g-ans-head { padding: 14px 18px 12px; }
  .g-ans-body { padding: 16px 18px 6px; }
  .g-ans-likely strong { font-size: 2.125rem; }
  .g-scn > summary { padding: 14px 16px; }
  .g-scn-body { padding: 2px 16px 18px; }
  .g-steps li { padding-left: 40px; }
  .g-cta-fine { flex-direction: column; }
}

@media (max-width: 559px) {
  /* A sample's lines on a phone: the work across the full width, its
     quantity and amount on a line under it, at the two edges. */
  .g-lines, .g-lines caption, .g-lines tbody { display: block; width: 100%; }
  .g-lines colgroup { display: none; }
  .g-lines thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .g-lines tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 13px 0;
    border-bottom: 1px solid var(--rule-soft); }
  .g-lines tbody td { padding: 0; border: 0; }
  .g-lines tbody td:first-child { grid-column: 1 / -1; }
  .g-lines td.g-qty { padding: 6px 0 0 !important; text-align: left !important; }
  .g-lines td.g-num { padding: 6px 0 0; }
  /* Their header row is hidden here, so each figure says what it is, as the
     estimate's own lines do at this width (CSS words: the cell keeps its header). */
  .g-lines td.g-qty::before, .g-lines td.g-num::before { content: "Qty"; content: "Qty" / ""; margin-right: 8px;
    font: 600 .75rem/1 var(--sans); color: var(--muted); }
  .g-lines td.g-num::before { content: "Amount"; content: "Amount" / ""; }

  /* The hub's table: each job on a line of its own, its three figures in a
     row under it, each with its label. */
  .g-hub, .g-hub tbody { display: block; width: 100%; }
  .g-hub thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .g-hub tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 0;
    border-bottom: 1px solid var(--rule-soft); }
  .g-hub tbody th, .g-hub tbody td { padding: 0; border: 0; }
  .g-hub tbody th { grid-column: 1 / -1; margin-bottom: 8px; }
  .g-hub td.g-num { text-align: left; padding: 0; }
  .g-hub td.g-num::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 .75rem/1.3 var(--sans);
    color: var(--muted); }
  .g-hub.g-hub-plain tbody tr { display: block; }
}

@media (max-width: 480px) {
  /* The key on a row of its own under the two ends, from the left, both keys
     on one line: between the figures it broke into a step. */
  .g-scale-axis { flex-wrap: wrap; row-gap: 10px; }
  .g-scale-key { order: 1; flex-basis: 100%; justify-content: flex-start; flex-wrap: nowrap; }
  .g-table { font-size: .875rem; }
  /* Wide enough for "4,000 sq ft" and "$12,345" on one line each; the work
     column takes what's left and wraps. */
  .g-c-qty { width: 5.6rem; }
  .g-c-amt { width: 4.6rem; }
  /* Wide enough for their own nowrap contents: the "INSTALLED" heading, and
     "saves $6,025", which ran 6px past the table's edge at 6.4rem. */
  .g-products th.g-num { width: 5.5rem; }
  .g-options th.g-num:last-child { width: 7.1rem; }
  .g-totals th, .g-totals td { padding-inline: 12px; }
  /* Wide enough for the most likely figure ("$46,450" at 20px) inside its padding;
     right-aligned, so 8px is gap enough on its left. */
  .g-c-tot { width: 6.5rem; }
  .g-totals td.g-num { padding-left: 8px; }
}

/* The closing card's button on one line at 320px. */
@media (max-width: 359px) {
  .g-cta { padding-inline: 20px; }
  .g-cta .primary { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .g-related a, .g-toc a { transition: none; }
}

/* High contrast (forced colors): every chart here was drawn with backgrounds
   and gradients, which the browser drops. Drawn again in system colors (as in
   style.css): lines in the text color, points in the highlight color, the
   per-square-foot bars solid and grey, the money split in its own colors with
   an edge, and each key the same as its marks. */
@media (forced-colors: active) {
  .g-rl, .g-key::before, .g-key-range::before, .g-scale-track, .g-pbar i, .g-pkey i, .g-bar i, .g-legend i,
  .g-dot { forced-color-adjust: none; }
  .g-rl::before { background: CanvasText; }
  .g-rl::after { background:
    linear-gradient(CanvasText 0 0) 0 0 / 2px 100% no-repeat,
    linear-gradient(CanvasText 0 0) 100% 0 / 2px 100% no-repeat,
    linear-gradient(CanvasText 0 0) 25% 3px / 1px 6px no-repeat,
    linear-gradient(CanvasText 0 0) 50% 3px / 1px 6px no-repeat,
    linear-gradient(CanvasText 0 0) 75% 3px / 1px 6px no-repeat; }
  .g-rl-pt, .g-scale-pt, .g-key::before, .g-dot { background: Highlight; box-shadow: 0 0 0 2px Canvas; outline: 1px solid CanvasText; }
  .g-scale-track { background: none; }
  .g-scale-track::before { background:
    linear-gradient(GrayText 0 0) 0 50% / 100% 1px no-repeat,
    linear-gradient(GrayText 0 0) 0 0 / 1px 100% no-repeat,
    linear-gradient(GrayText 0 0) 100% 0 / 1px 100% no-repeat; }
  .g-scale-bar, .g-key-range::before { background:
    linear-gradient(CanvasText 0 0) 0 50% / 100% 2px no-repeat,
    linear-gradient(CanvasText 0 0) 0 0 / 2px 100% no-repeat,
    linear-gradient(CanvasText 0 0) 100% 0 / 2px 100% no-repeat; }
  .g-pb-i { background: CanvasText; }
  .g-pb-w { background: GrayText; }
  .g-bar i, .g-legend i { outline: 1px solid CanvasText; outline-offset: -1px; }
}

/* Focus on the navy card: a paper ring, as on the home page's navy band. */
.g-cta .primary:focus-visible { outline-color: var(--paper); }
