/* Family guide pages (source/build_guides.py): the print guides'
   components (marketing/tiktok/guides/guide.css) restyled for reading on a
   screen. Every guide class carries a g- prefix so it can't meet a site class.
   Body text is Source Serif 4, as in the PDFs; headings, labels and figures
   are Inter, as on the rest of the site. */

.g {
  --g-teal: #00666e; --g-deep: #004a50; --g-ink: #102a2c; --g-text: #26393a; --g-muted: #56696a;
  --g-line: #d6e1dd; --g-mist: #eef4f1; --g-panel: #f4f8f8; --g-lime: #b0d133; --g-clay: #c96a3b; --g-clay-text: #a24a22;
  /* names the print markup's inline styles use */
  --teal: var(--g-teal); --teal-deep: var(--g-deep); --clay: var(--g-clay); --ink: var(--g-ink);
  --muted: var(--g-muted); --mist: var(--g-mist); --line: var(--g-line); --lime: var(--g-lime);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: var(--font-body);
  color: var(--g-text);
}
.g .breadcrumb { background: var(--g-panel); border-bottom: 0; }
.g .breadcrumb .container { max-width: 1092px; }
.g-wrap { max-width: 1092px; margin: 0 auto; padding: 0 20px; }

/* ── header ─────────────────────────────────────────────── */
.g-hero { background: var(--g-panel); border-bottom: 1px solid #dbe7e7; padding: 26px 0 44px; }
.g-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; }
.g-eyebrow { font-weight: 700; font-size: .9rem; color: var(--g-teal); margin: 0 0 14px; }
.g-hero h1 { font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.02; letter-spacing: -.035em;
  color: #062f35; margin: 0; text-wrap: balance; }
.g-hero h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--g-lime); margin: 22px 0 0; }
.g-who { font-family: var(--serif); font-size: 1.24rem; line-height: 1.5; color: #3d5251; margin: 18px 0 0; max-width: 40em; }
.g-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 20px 0 0; font-size: .9rem; color: var(--g-muted); }
.g-meta i { color: var(--g-teal); margin-right: 7px; }

.g-pdf { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; background: #fff;
  border: 1px solid #d5e3e3; border-radius: 14px; padding: 18px; box-shadow: 0 1px 2px rgba(16, 42, 44, .04), 0 8px 24px rgba(16, 42, 44, .06); }
.g-pdf .c-guide-cover { width: 96px; }
.g-pdf p { margin: 0; }
.g-pdf-k { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g-teal); }
.g-pdf-t { font-size: .93rem; line-height: 1.45; color: #3c4650; margin: 4px 0 12px !important; }
.g-btn { display: inline-block; font-weight: 700; font-size: .95rem; background: var(--g-teal); color: #fff !important;
  text-decoration: none !important; border-radius: 8px; padding: 11px 18px; line-height: 1.2; }
.g-btn:hover { background: var(--g-deep); }
.g-btn:focus-visible, .gcard:focus-visible, .g-tool:focus-visible, .g-toc a:focus-visible, .g-toc-btn:focus-visible {
  outline: 3px solid var(--g-lime); outline-offset: 2px; }

/* ── layout: contents beside the reading column ─────────── */
.g-layout { display: grid; grid-template-columns: 240px minmax(0, 740px); gap: 72px; justify-content: center;
  padding-top: 48px; padding-bottom: 72px; }
.g-toc { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto;
  font-size: .9rem; padding-bottom: 8px; }
.g-toc-h { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g-muted); margin: 0 0 10px; }
.g-toc-btn { display: none; }
.g-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #e1eaea; }
.g-toc ol a { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 6px 10px 6px 14px; margin-left: -2px;
  border-left: 2px solid transparent; color: #3c4650; line-height: 1.35; text-decoration: none; }
.g-toc ol a span { color: #8a9a99; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-toc ol a:hover { color: var(--g-teal); }
.g-toc ol a[aria-current="true"] { border-left-color: var(--g-teal); color: var(--g-deep); font-weight: 700; background: linear-gradient(90deg, #eaf3f3, transparent); }
.g-toc ol a[aria-current="true"] span { color: var(--g-teal); }
.g-toc-pdf { display: inline-block; margin: 18px 0 0 14px; font-weight: 700; font-size: .88rem; color: var(--g-teal); text-decoration: underline; text-underline-offset: 3px; }

/* ── reading column ─────────────────────────────────────── */
.g-body { font-family: var(--serif); font-size: 1.125rem; line-height: 1.7; color: var(--g-text); min-width: 0; }
.g-body p { margin: 0 0 1em; max-width: 68ch; }
.g-body a { color: var(--g-teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.g-body a:hover { color: var(--g-deep); }
.g-body b, .g-body strong { font-weight: 600; color: var(--g-ink); }
.g-body h3 { font-family: var(--sans); font-weight: 700; font-size: 1.14rem; line-height: 1.3; color: var(--g-deep);
  margin: 2em 0 .55em; letter-spacing: -.005em; }
.g-body h3.g-part { font-size: 1.5rem; font-weight: 800; color: var(--g-ink); letter-spacing: -.02em; margin-top: 2.4em;
  padding-top: 1.2em; border-top: 1px solid var(--g-line); }
.g-intro .g-lede, .g-lede { font-size: 1.27rem; line-height: 1.55; color: #1d3234; }
.g-intro { padding-bottom: 8px; }

.g-ch { margin-top: 76px; scroll-margin-top: 20px; }
.g-ch-head { margin-bottom: 18px; }
.g-ch-k { font-family: var(--sans); font-size: .88rem; font-weight: 600; color: var(--g-muted); margin: 0 0 10px !important;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.g-ch-k::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--g-lime); }
.g-ch-k span { font-weight: 800; color: var(--g-teal); }
.g-ch-k span::after { content: "·"; margin-left: 10px; color: #9fb3b1; font-weight: 400; }
.g-ch h2 { font-family: var(--sans); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.2rem); line-height: 1.12;
  letter-spacing: -.025em; color: var(--g-ink); margin: 0; text-wrap: balance; }

/* lists */
.g-dots { list-style: none; margin: .4em 0 1em; padding: 0; display: grid; gap: .45em; }
.g-dots li { position: relative; padding-left: 1.35em; }
.g-dots li::before { content: ""; position: absolute; left: .2em; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--g-teal); }
.g-ch > .g-dots, .g-intro > .g-dots, .g-steps, .g-flags { max-width: 68ch; }
@media (min-width: 640px) { .g-dots.g-cols2 { display: block; columns: 2; column-gap: 32px; } .g-dots.g-cols2 li { break-inside: avoid; margin-bottom: .45em; } }

.g-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin: 1.3em 0; align-items: start; }
.g-two > div > h3:first-child, .g-two > div > ul:first-child { margin-top: 0; }
.g-card { background: #fff; border: 1px solid var(--g-line); border-radius: 12px; padding: 18px 20px; font-size: 1.04rem; line-height: 1.6; }
.g-card h3 { margin-top: 0 !important; }
.g-card p:last-child, .g-card ul:last-child { margin-bottom: 0; }

/* callouts */
.g-note { margin: 1.4em 0; background: var(--g-mist); border-left: 4px solid var(--g-teal); border-radius: 0 12px 12px 0;
  padding: 16px 20px; font-size: 1.04rem; line-height: 1.6; max-width: 68ch; }
.g-note b:first-child { font-family: var(--sans); font-weight: 700; font-size: .95rem; color: var(--g-deep); display: block; margin-bottom: 4px; }
.g-warnnote { border-left-color: var(--g-clay); background: #fbf1ea; }
.g-warnnote b:first-child { color: #8a4220; }
.g-fast { margin: 1.4em 0 0; background: var(--g-teal); color: #fff; border-radius: 12px; padding: 16px 20px;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.5; max-width: 68ch; }
.g-fast b { color: #d8ef7c; font-weight: 700; display: block; margin-bottom: 2px; }
.g-body .g-fast a { color: #fff; font-weight: 700; }
.g-src, .g-small { font-family: var(--sans); font-size: .84rem !important; line-height: 1.5; color: var(--g-muted); margin-top: .8em; }
.g-src a, .g-small a { color: inherit; }
.g-more { font-family: var(--sans); font-size: .95rem !important; line-height: 1.55; color: #3c4650; margin-top: 1.4em !important;
  padding: 12px 0 0 28px; border-top: 1px solid var(--g-line); position: relative; }
.g-more::before { content: "\f02d"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 2px; top: 13px; color: var(--g-teal); font-size: .9rem; }
.g-more a { font-weight: 600; }

/* next steps the web pages add */
.g-next { display: flex; gap: 14px; align-items: flex-start; margin: 2em 0 0; background: var(--g-panel); border: 1px solid #dbe7e7;
  border-radius: 12px; padding: 14px 18px; max-width: 68ch; }
.g-next > i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--g-lime); color: #23400c; display: grid;
  place-items: center; font-size: .8rem; margin-top: 1px; }
.g-next p { margin: 0 !important; font-family: var(--sans); font-size: .98rem; line-height: 1.55; color: #26393a; }
.g-next a { font-weight: 700; }

/* tables */
.g-table { margin: 1.2em 0 1.4em; }
.g-table table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; line-height: 1.5; }
.g-table thead th { text-align: left; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--g-muted); padding: 8px 12px; border-bottom: 2px solid var(--g-teal); vertical-align: bottom; }
.g-table td, .g-table tbody th { padding: 11px 12px; border-bottom: 1px solid var(--g-line); vertical-align: top; text-align: left; }
.g-table tbody th, .g-table td:first-child { font-weight: 700; color: var(--g-ink); }
.g-table tbody th { width: 30%; }
.g-days td:nth-child(2) { font-weight: 800; color: var(--g-teal); white-space: nowrap; font-size: 1.05rem; }
.g-covered td.g-no { color: var(--g-clay-text); font-weight: 700; white-space: nowrap; }
.g-covered td.g-yes { color: var(--g-teal); font-weight: 700; white-space: nowrap; }
.g-covered td.g-some { color: #7a6100; font-weight: 700; white-space: nowrap; }

/* worksheets: typed into on screen, lines on paper */
.g-sheet { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--g-line); border-radius: 12px; }
.g-sheet table { min-width: 560px; }
.g-sheet table.g-budget { min-width: 0; }
.g-sheet thead th { background: var(--g-panel); border-bottom-width: 2px; }
.g-sheet td { padding: 0; height: 48px; vertical-align: middle; }
.g-sheet td:first-child { padding: 8px 12px; font-size: .9rem; line-height: 1.35; width: 32%; position: sticky; left: 0; background: #fff; z-index: 1; }
.g-sheet td + td { border-left: 1px solid var(--g-line); }
.g-sheet tr:last-child td { border-bottom: 0; }
.g-sheet input { display: block; width: 100%; height: 100%; min-height: 48px; border: 0; background: transparent; font: inherit;
  font-weight: 500; color: var(--g-ink); padding: 8px 12px; }
.g-sheet input:focus { outline: 2px solid var(--g-teal); outline-offset: -2px; background: #f7fbfb; }
.g-budget td:first-child { width: auto; }
.g-budget td:last-child { width: 11rem; }
.g-body a[href^="tel:"] { white-space: nowrap; }
.g-swipe { display: none; }
.g-budget input { text-align: right; font-variant-numeric: tabular-nums; }
.g-budget output { display: block; text-align: right; padding: 8px 12px; font-weight: 800; color: var(--g-deep); font-variant-numeric: tabular-nums; }
.g-budget tr.g-total td { background: var(--g-mist); border-top: 2px solid var(--g-teal); }
.g-budget tr.g-sub td { font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--g-deep);
  background: #fff; padding: 18px 12px 6px; height: auto; border-left: 0; }

.g-fields { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 1em 0 .6em; font-family: var(--sans); font-size: .92rem; }
.g-fields label { display: flex; align-items: baseline; gap: 8px; flex: 1 1 200px; font-weight: 600; color: var(--g-ink); }
.g-fields label:last-child { flex: 0 1 190px; }
.g-fields input { flex: 1; min-width: 0; border: 0; border-bottom: 1.5px solid #a9bcbb; background: transparent; font: inherit;
  font-weight: 500; padding: 4px 2px; }
.g-fields input:focus { outline: none; border-bottom-color: var(--g-teal); }

/* checklists that can be ticked */
.g-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 36px; }
.g-checks section h3 { margin-top: 1.5em; }
.g-box { list-style: none; margin: .5em 0 1em; padding: 0; display: grid; gap: 4px; font-size: 1.04rem; line-height: 1.45; }
.g-check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 6px 8px 6px 4px; margin-left: -4px;
  border-radius: 8px; cursor: pointer; }
.g-check:hover { background: var(--g-panel); }
.g-check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 2px solid var(--g-teal);
  border-radius: 5px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.g-check input::after { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.g-check input:checked { background: var(--g-teal); }
.g-check input:checked::after { opacity: 1; }
.g-check input:focus-visible { outline: 3px solid var(--g-lime); outline-offset: 2px; }
.g-check input:checked + span { color: #4c5f5e; }

.g-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.g-tool { font: inherit; font-family: var(--sans); font-size: .88rem; font-weight: 600; color: var(--g-teal); background: #fff;
  border: 1.5px solid #c7dbdc; border-radius: 999px; padding: 7px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; min-height: 38px; }
.g-tool:hover { border-color: var(--g-teal); background: #f2f8f8; }
.g-tool i { font-size: .85rem; }

/* figures, rebuilt from the print guide in HTML and CSS */
.g-bigstat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; margin: 1.4em 0 .6em;
  border: 1px solid var(--g-line); border-radius: 14px; padding: 22px 26px; font-family: var(--sans); font-size: .95rem; line-height: 1.5; }
.g-bigstat .g-num { font-weight: 900; font-size: 3.1rem; letter-spacing: -.035em; color: var(--g-teal); line-height: 1; white-space: nowrap; }
.g-bigstat .g-num small { font-size: 1rem; font-weight: 700; color: var(--g-muted); letter-spacing: 0; margin-left: 2px; }
.g-bigstat .g-sans { font-weight: 700; color: var(--g-ink); font-size: 1rem; }
.g-range { margin: 14px 0 4px; position: relative; height: 46px; }
.g-range .g-track { position: absolute; top: 19px; left: 0; right: 0; height: 8px; background: #e4eeec; border-radius: 4px; }
.g-range .g-mid { position: absolute; top: 17px; height: 12px; background: var(--g-teal); border-radius: 6px; opacity: .85; }
.g-range .g-tick { position: absolute; top: 0; font-size: .76rem; color: var(--g-muted); transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-range .g-tick.g-b { top: 32px; font-weight: 800; color: var(--g-ink); }
.g-range .g-tick.g-edge-l { transform: none; }
.g-range .g-tick.g-edge-r { transform: translateX(-100%); }

.g-bars { display: grid; gap: 10px; margin: 12px 0 8px; font-family: var(--sans); font-size: .9rem; color: var(--g-ink); }
.g-bars > div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) 4.2rem; align-items: center; gap: 12px; }
.g-bars i { display: block; height: 14px; border-radius: 7px; background: var(--g-teal); }
.g-bars.g-warm i { background: var(--g-clay); }
.g-bars b { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.g-bars.g-price .g-hl span, .g-bars.g-price .g-hl b { color: var(--g-deep); font-weight: 800; }
.g-bars.g-price .g-hl i { background: var(--g-lime); }
.g-two .g-bars > div { grid-template-columns: 8.6rem minmax(0, 1fr) 3rem; }

.g-costchart { margin: 1.4em 0 .8em; border: 1px solid var(--g-line); border-radius: 14px; padding: 10px 22px 16px; font-family: var(--sans); }
.g-costrow { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) 7.8rem; align-items: center; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--g-line); }
.g-costrow .g-name { font-weight: 700; color: var(--g-ink); font-size: .95rem; line-height: 1.25; }
.g-costrow .g-name small { display: block; font-weight: 500; color: var(--g-muted); font-size: .76rem; margin-top: 3px; line-height: 1.35; }
.g-costrow .g-med { text-align: right; font-weight: 900; color: var(--g-teal); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; }
.g-costrow .g-med small { display: block; font-size: .74rem; font-weight: 600; color: var(--g-muted); letter-spacing: 0; margin-top: 4px; }
.g-track2 { position: relative; height: 24px; }
.g-track2::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; background: #e4eeec; border-radius: 2px; }
.g-track2 .g-half { position: absolute; top: 6px; height: 12px; background: var(--g-teal); opacity: .28; border-radius: 6px; }
.g-track2 .g-dot { position: absolute; top: 4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--g-teal);
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--g-teal); }
.g-track2.g-est .g-half { background: var(--g-clay); }
.g-track2.g-est .g-dot { background: var(--g-clay); box-shadow: 0 0 0 1px var(--g-clay); }
.g-scale { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) 7.8rem; gap: 16px; font-size: .74rem; color: var(--g-muted); margin-top: 8px; }
.g-scale div { position: relative; height: 14px; }
.g-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.g-scale span.g-edge-l { transform: none; }
.g-scale span.g-edge-r { transform: translateX(-50%); }  /* the empty third column leaves room */
.g-key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .8rem; color: var(--g-muted); margin-top: 12px; }
.g-key i { display: inline-block; vertical-align: middle; margin-right: 6px; }

.g-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.2em 0 .6em; }
.g-facts > div { border: 1px solid var(--g-line); border-radius: 12px; padding: 14px 16px; font-family: var(--sans); font-size: .9rem; line-height: 1.45; }
.g-facts b { display: block; font-weight: 900; color: var(--g-teal) !important; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 6px; }

.g-formula { margin: 1.2em 0; font-family: var(--sans); font-weight: 700; color: var(--g-ink); font-size: 1.05rem; background: var(--g-mist);
  border-radius: 10px; padding: 14px 18px; text-align: center; }
.g-formula span { color: var(--g-teal); margin: 0 4px; }
.g-example { margin: 1.2em 0; border: 1px solid var(--g-line); border-radius: 12px; padding: 18px 22px 8px; font-size: 1.02rem; }
.g-example h3 { margin-top: 0 !important; }
.g-example .g-table { margin: .4em 0 1em; }
.g-example td:last-child { text-align: right; font-weight: 600; color: var(--g-ink); white-space: nowrap; }
.g-example td:first-child { font-weight: 500; color: var(--g-text); }
.g-example tr.g-total td { border-top: 2px solid var(--g-teal); font-weight: 800; color: var(--g-ink); }

/* steps */
.g-steps { list-style: none; counter-reset: s; margin: 1.4em 0; padding: 0; display: grid; gap: 20px; }
.g-steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.g-steps li::before { content: counter(s); font-family: var(--sans); font-weight: 800; font-size: 1rem; color: #fff; background: var(--g-teal);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.g-steps strong { font-family: var(--sans); font-weight: 700; color: var(--g-ink); display: block; font-size: 1.05rem; margin-bottom: 2px; }

/* warning signs */
.g-flags { margin: 1.4em 0; display: grid; gap: 12px; }
.g-flags > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; background: #fff; border: 1px solid var(--g-line);
  border-radius: 12px; padding: 15px 18px; font-size: 1.04rem; line-height: 1.55; }
.g-flags > div::before { content: "!"; font-family: var(--sans); font-weight: 900; color: #fff; background: var(--g-clay); width: 26px; height: 26px;
  border-radius: 50%; display: grid; place-items: center; font-size: .95rem; margin-top: 1px; }
.g-flags strong { font-family: var(--sans); color: var(--g-ink); font-weight: 700; }

/* one guide's pieces */
.g-day { margin: 1em 0; font-size: 1.02rem; line-height: 1.5; }
.g-day > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--g-line); }
.g-day > div span:first-child { font-family: var(--sans); font-weight: 800; color: var(--g-teal); font-size: .9rem; padding-top: 2px; }
.g-help { margin: 1.2em 0; display: grid; gap: 12px; }
.g-help > div:not(.g-card) { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 18px; padding: 14px 18px; border: 1px solid var(--g-line);
  border-radius: 12px; font-size: 1rem; line-height: 1.5; }
.g-help strong { font-family: var(--sans); color: var(--g-ink); font-size: .98rem; display: block; }
.g-help em { font-style: normal; font-family: var(--sans); font-weight: 700; color: var(--g-teal); font-size: .9rem; }
.g-help:has(> .g-card) { grid-template-columns: 1fr 1fr; gap: 14px; }
.g-help .g-card { font-size: .98rem; }
.g-help .g-card h3 { font-size: 1.04rem; margin-bottom: 4px; }
.g-help .g-contact { font-family: var(--sans); font-weight: 700; color: var(--g-teal); font-size: .88rem; margin-top: 8px; overflow-wrap: anywhere; }
.g-plans { margin: 1.4em 0; display: grid; gap: 12px; }
.g-plans .g-card { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 20px; align-items: start; }
.g-plans .g-tag { font-family: var(--sans); }
.g-plans .g-tag b { display: block; font-size: 1.1rem; font-weight: 800; color: var(--g-ink); line-height: 1.2; }
.g-plans .g-tag span { display: block; margin-top: 3px; font-size: .82rem; font-weight: 700; color: var(--g-teal); }
.g-plans .g-tag i { display: block; margin-top: 8px; font-style: normal; font-size: .8rem; color: var(--g-muted); line-height: 1.35; }
.g-plans p { margin: 0; }

/* end of the guide */
.g-closing { margin-top: 84px; }
.g-here { background: var(--g-deep); color: #dbe9e6; border-radius: 16px; padding: 30px 32px; position: relative; overflow: hidden; }
.g-here h2 { font-family: var(--sans); color: #fff; font-weight: 800; font-size: 1.8rem; letter-spacing: -.02em; margin: 0 0 10px; }
.g-here p { color: #dbe9e6; font-size: 1.1rem; }
.g-body .g-here a:not(.g-btn) { color: #fff; font-weight: 600; }
.g-here-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-family: var(--sans); }
.g-btn-light { background: #fff; color: var(--g-deep) !important; }
.g-btn-light:hover { background: #e9f3f2; }
.g-btn-ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .6); padding: 10px 17px; }
.g-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.g-pdf-end { margin-top: 20px; font-family: var(--sans); box-shadow: none; }
.g-fine { font-family: var(--sans); font-size: .82rem !important; line-height: 1.55; color: var(--g-muted); margin-top: 22px !important; }

.g-more-guides { background: var(--g-panel); border-top: 1px solid #dbe7e7; padding: 52px 0 60px; }
.g-more-guides h2 { font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; color: var(--g-ink); margin: 0 0 20px; }

/* ── narrower screens ───────────────────────────────────── */
@media (max-width: 1060px) {
  .g-layout { grid-template-columns: minmax(0, 740px); gap: 0; padding-top: 0; }
  .g-toc { position: sticky; top: 0; z-index: 30; max-height: none; overflow: visible; margin: 0 -20px; padding: 0;
    background: #fff; border-bottom: 1px solid #dbe7e7; box-shadow: 0 6px 16px -12px rgba(16, 42, 44, .35); }
  .g-toc-h, .g-toc-pdf { display: none; }
  .g-toc ol { border-left: 0; padding: 4px 8px 12px; }
  .g-toc ol a { border-left: 0; border-radius: 8px; padding: 10px 12px; margin: 0; }
  .g-toc.g-toc-js .g-toc-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: #fff;
    font: inherit; font-weight: 700; color: var(--g-deep); padding: 13px 20px; min-height: 50px; cursor: pointer; text-align: left; }
  .g-toc-now { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .g-toc-chev { flex: none; width: 10px; height: 10px; border: solid var(--g-teal); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
  .g-toc.is-open .g-toc-chev { transform: rotate(-135deg) translate(-2px, -2px); }
  .g-toc.g-toc-js ol { display: none; max-height: 65vh; overflow-y: auto; border-top: 1px solid #e6eeee; }
  .g-toc.g-toc-js.is-open ol { display: grid; }
  .g-intro { padding-top: 32px; }
  .g-ch { scroll-margin-top: 64px; }
  .g-hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .g-pdf-top { max-width: 460px; }
}
@media (max-width: 700px) {
  .g-two, .g-checks, .g-help:has(> .g-card) { grid-template-columns: 1fr; }
  .g-two { gap: 14px; }
  .g-facts { grid-template-columns: 1fr; }
  .g-help > div:not(.g-card), .g-plans .g-card { grid-template-columns: 1fr; gap: 6px; }
  .g-bigstat { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .g-costchart { padding: 6px 16px 14px; }
  .g-costrow { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .g-costrow .g-track2 { grid-column: 1 / -1; grid-row: 2; }
  .g-scale { grid-template-columns: minmax(0, 1fr); }
  .g-scale > div:first-child, .g-scale > div:last-child { display: none; }
  .g-scale span.g-edge-r { transform: translateX(-100%); }
  .g-scale span:nth-child(4) { display: none; }
  .g-bars > div, .g-two .g-bars > div { grid-template-columns: 7.6rem minmax(0, 1fr) 3.6rem; gap: 10px; }
  .g-day > div { grid-template-columns: 6.4rem minmax(0, 1fr); gap: 12px; }
  .g-stack thead { display: none; }
  .g-stack table, .g-stack tbody, .g-stack tr, .g-stack td, .g-stack tbody th { display: block; width: auto; }
  .g-stack tr { border: 1px solid var(--g-line); border-radius: 12px; padding: 4px 14px; margin-bottom: 10px; }
  .g-stack tbody th { border-bottom: 1px solid var(--g-line); padding: 10px 0; font-size: 1rem; }
  .g-stack td { border-bottom: 0; padding: 8px 0; }
  .g-stack td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--g-muted); margin-bottom: 2px; }
  .g-stack td + td { border-top: 1px dashed #e1eaea; }
  .g-body { font-size: 1.09rem; }
  .g-ch-k span::after { content: none; }
  .g-budget td:last-child { width: 8.5rem; }
  .g-swipe { display: block; font-family: var(--sans); font-size: .82rem !important; color: var(--g-muted); margin: 0 0 6px !important; }
  .g-here { padding: 24px 20px; }
}
@media (max-width: 460px) {
  .g-hero { padding-bottom: 32px; }
  .g-pdf { grid-template-columns: 76px 1fr; gap: 14px; padding: 14px; }
  .g-pdf .c-guide-cover { width: 76px; }
  .g-bigstat .g-num { font-size: 2.6rem; }
  .g-fields label, .g-fields label:last-child { flex: 1 1 100%; }
  .g-fields label span { min-width: 6.2rem; }
}

/* ── paper ──────────────────────────────────────────────── */
@media print {
  @page { margin: .55in .6in; }
  .header-top, .header-main, header.site-header, .footer, .footer-bottom, .breadcrumb, .g-toc, .g-pdf, .g-tools, .g-next,
  .g-more-guides, .g-state-costs, .g-here-btns, .g-swipe, dialog, .advisor-float, .lead-band, .skip-link { display: none !important; }
  body { background: #fff; }
  .g, .g-body { color: #1d2a2b; }
  .g-hero { background: none; border: 0; padding: 0 0 10px; }
  .g-hero-in, .g-layout { display: block; padding: 0; }
  .g-wrap { padding: 0; max-width: none; }
  .g-hero h1 { font-size: 26pt; }
  .g-who { font-size: 12pt; }
  .g-body { font-size: 11pt; line-height: 1.5; }
  .g-body p { max-width: none; }
  .g-lede, .g-intro .g-lede { font-size: 12.5pt; }
  .g-ch { margin-top: 26pt; }
  .g-ch h2 { font-size: 19pt; }
  .g-body h3, .g-ch-head, .g-ch-head + .g-tools { break-after: avoid; page-break-after: avoid; }
  .g-ch-head + *, .g-body h3 + * { break-before: avoid; }
  .g-card, .g-note, .g-flags > div, .g-bigstat, .g-costchart, .g-facts > div, .g-steps li, .g-checks section, .g-example,
  .g-help > div, .g-plans .g-card, .g-table tr, .g-day > div { break-inside: avoid; }
  .g-body a { color: inherit; text-decoration: none; }
  .g-fast { background: none; color: inherit; border: 1.5px solid #00666e; }
  .g-fast b { color: #004a50; }
  .g-here { background: none; color: inherit; padding: 0; border-top: 1px solid #ccc; padding-top: 14pt; border-radius: 0; }
  .g-here h2 { color: #102a2c; font-size: 15pt; }
  .g-here p, .g-body .g-here a:not(.g-btn) { color: inherit; }
  .g-sheet { overflow: visible; border-radius: 0; }
  .g-sheet table { min-width: 0; }
  .g-sheet td { height: 30pt; }
  .g-sheet table.g-budget td { height: 21pt; }
  .g-budget tr.g-sub td { padding-top: 8pt; }
  .g-sheet td:first-child { position: static; }
  .g-check:hover { background: none; }
  .g-check input, .g-range, .g-bars i, .g-track2, .g-steps li::before, .g-flags > div::before, .g-note, .g-budget tr.g-total td {
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .g-fields input { border-bottom-color: #777; }
  /* one chapter printed on its own (guides.js) */
  html.g-print-one .g-hero, html.g-print-one .g-intro, html.g-print-one .g-closing,
  html.g-print-one .g-ch:not(.g-print-target) { display: none !important; }
  html.g-print-one .g-print-target { margin-top: 0; }
  html.g-print-one .g-print-target::before { content: attr(data-print-title); display: block; font-family: var(--sans); font-size: 9pt;
    color: #56696a; border-bottom: 1px solid #ccc; padding-bottom: 6pt; margin-bottom: 14pt; }
}
