/* Guides group: the guides hub, six long-form guides and the two legal pages.
   Extends pages.css with tokens only. No one-sided accent borders; motion stays in pages.js. */

/* ---------- guide hero: smaller H1, a designed card in place of the photo (keeps the 3D tilt) */
.phero--guide .phero-title { font-size: clamp(2.3rem, 4.3vw, 3.75rem); line-height: 1.04; }
.phero--guide .phero-lead { max-width: 34em; }
.g-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.g-kicker .eyebrow { margin: 0; }
.g-kicker span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 14px; border-radius: 50%; background: #cfcdc6; vertical-align: middle; }
.g-kicker + .phero-title { margin-top: 14px; }
.byline { line-height: 1.45; }
.byline img { flex: none; }
.byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.byline > div { min-width: 0; }
.byline time { white-space: nowrap; }
.phero-media--card { width: min(460px, 100%); }
.phero-media--card .phero-media-in::before { left: -7%; right: -7%; top: 10%; bottom: -7%; height: auto; border-radius: 48px; background: radial-gradient(75% 70% at 55% 60%, #ffd27a, #ffe9bf 55%, rgba(255, 246, 226, 0) 88%); }
.phero-media--card .phero-tag.t1 { left: auto; right: -7%; top: -22px; }
.phero-media--card .phero-tag.t2 { left: auto; right: 10%; top: auto; bottom: -22px; }
.phero-media--card .phero-tag.t3 { left: -10%; top: auto; bottom: 30%; }

/* ---------- gx: the small designed interfaces (browser windows, listings, dashboards) */
.gx { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); font-size: 14.5px; line-height: 1.4; color: var(--ink); text-align: left; }
.gx-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #fbfaf7; border-bottom: 1px solid var(--line); }
.gx-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #e2e0da; }
.gx-bar > span { flex: 1; min-width: 0; margin-left: 8px; padding: 5px 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.gx-body { display: grid; gap: 12px; padding: 20px; }
.gx-k { font: 600 11.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gx-h { font: 600 18px/1.2 var(--sans); letter-spacing: -.02em; }
.gx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; background: #fbfaf7; border: 1px solid #efeee9; border-radius: 14px; }
.gx-row b { font-weight: 600; }
.gx-row small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.gx-v { font: 600 20px/1 var(--sans); letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gx-v small { display: inline; margin: 0 3px 0 0; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.gx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface); font: 500 12.5px/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.gx-pill svg { width: 13px; height: 13px; }
.gx-pill--ok { background: var(--ink); color: #fff; }
.gx-pill--fix { background: var(--ink); color: #fff; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gx-lines { display: grid; gap: 7px; }
.gx-lines i { display: block; height: 7px; border-radius: 6px; background: #ecebe6; }
.gx-lines i:nth-child(2) { width: 88%; } .gx-lines i:nth-child(3) { width: 64%; }
.gx-search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); font-size: 14px; }
.gx-search svg { width: 16px; height: 16px; color: var(--muted); }
.gx-block { display: grid; gap: 10px; padding: 14px; border: 1px solid #efeee9; border-radius: 16px; }
.gx-block--warm { background: var(--surface); border-color: var(--line); }
.gx-src { display: flex; gap: 6px; }
.gx-src span { padding: 4px 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--muted); }
.gx-src span.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gx-pin { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.gx-pin b { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font: 600 11px/1 var(--sans); }
.gx-pin i { flex: 1; height: 7px; border-radius: 6px; background: #ecebe6; }
.gx-map { position: relative; height: 128px; background: #f5f1e8; background-image: linear-gradient(115deg, transparent 46%, #fff 46%, #fff 52%, transparent 52%), linear-gradient(20deg, transparent 60%, #fff 60%, #fff 64%, transparent 64%), radial-gradient(38% 46% at 16% 78%, #e8efdc 0 99%, transparent 100%); }
.gx-map svg { position: absolute; left: 50%; top: 50%; width: 28px; height: 38px; color: var(--marigold-deep); transform: translate(-50%, -80%); filter: drop-shadow(0 6px 8px rgba(18, 18, 18, .22)); }
.gx-map::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(245, 165, 36, .22); }
.gx-sub { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.gx-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gx-acts span { display: grid; justify-items: center; gap: 4px; padding: 9px 4px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; color: var(--ink-2); }
.gx-acts svg { width: 15px; height: 15px; }
.gx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.gx-spark { width: 100%; height: 64px; }
.gx-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 9px 2px; border-top: 1px solid #efeee9; font-size: 14px; }
.gx-check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.gx-check i { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border: 1.5px solid #cfcdc6; border-radius: 5px; }
.gx-check i.on { background: var(--ink); border-color: var(--ink); }
.gx-check i.on::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gx-check i.radio { border-radius: 50%; }
.gx-check i.radio.on::after { width: 6px; height: 6px; margin: 0; border: 0; border-radius: 50%; background: #fff; transform: none; }
.gx-check code { padding: 2px 6px; background: var(--surface); border-radius: 6px; font-size: 12.5px; }

/* ---------- the article section under a guide hero */
.sec--article { padding-top: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line); }
.gx-axis { display: flex; justify-content: space-between; margin-top: -4px; font-size: 11.5px; color: var(--soft); font-variant-numeric: tabular-nums; }

/* ---------- long-form extras inside .prose */
.prose caption { caption-side: top; padding: 14px 16px 12px; text-align: left; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.prose tbody th { font-weight: 600; color: var(--ink); }
.prose thead td { background: var(--surface); border-bottom: 1px solid var(--line); }
.prose .table-wrap { background: #fff; }
.prose .table-wrap tr:last-child > * { border-bottom: 0; }
.prose .table-wrap td.me { background: rgba(18, 18, 18, .035); color: var(--ink); font-weight: 600; }
.prose .table-wrap thead th.me { background: var(--ink); color: #fff; }
.prose .callout > * + * { margin-top: .6em; }
.prose .callout li + li { margin-top: .3em; }
.prose .tnote { margin-top: .7em; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.prose .lede { font-size: 20px; line-height: 1.65; color: var(--ink); }
.prose hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--line); }

/* code blocks with a file label */
.prose .code { overflow: hidden; background: #151514; border-radius: 18px; box-shadow: var(--shadow-sm); }
.prose .code figcaption { display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 13px/1 var(--sans); color: rgba(255, 255, 255, .62); }
.prose .code figcaption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--marigold); }
.prose pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; color: #f1efe8; font: 14px/1.7 ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace; tab-size: 2; }
.prose pre code { padding: 0; background: none; border-radius: 0; font-size: inherit; color: inherit; }
.prose pre .c { color: #9c9a92; }
.prose pre .k { color: #ffc766; }

/* checklists and numbered steps */
.prose .checks { padding-left: 0; list-style: none; }
.prose .checks li { font-size: 17px; line-height: 1.55; }
.prose .checks li + li { margin-top: 0; }
.prose .checks--card { padding: 22px 24px; background: var(--surface); border-radius: 20px; }
.prose ol.gsteps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; list-style: none; counter-reset: step; }
.prose ol.gsteps--1 { grid-template-columns: minmax(0, 1fr); }
.prose ol.gsteps > li { position: relative; margin: 0; padding: 16px 20px 16px 64px; background: #fff; border: 1px solid var(--line); border-radius: 18px; counter-increment: step; font-size: 17px; line-height: 1.6; }
.prose ol.gsteps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.prose ol.gsteps--warm > li::before { background: var(--marigold); color: var(--ink); }

/* two or three cards side by side (examples, budgets, tiers) */
.prose .duo, .prose .trio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .card { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; font-size: 16.5px; line-height: 1.6; }
.prose .card > * + * { margin-top: .6em; }
.prose .card h3 { margin-top: 0; font-size: 1.2rem; }
.prose .card .k + h3 { margin-top: 8px; }
.prose .card .k { display: block; font: 600 12.5px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.prose .card-price { font: 600 2rem/1 var(--sans); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.prose .card-price small, .prose .card-price em { margin-right: 5px; font-size: .45em; font-style: normal; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.prose .card-price em { margin: 0 0 0 5px; }
.prose .card--dark .card-price { color: #fff; }
.prose .card--dark .card-price small, .prose .card--dark .card-price em { color: rgba(255, 255, 255, .6); }
.prose .card--warm { background: var(--surface); border-color: var(--line); }
.prose .card--dark { background: #151514 radial-gradient(80% 90% at 100% 0%, rgba(245, 165, 36, .18), rgba(245, 165, 36, 0) 70%); border-color: #151514; color: rgba(255, 255, 255, .78); }
.prose .card--dark h3, .prose .card--dark strong { color: #fff; }
.prose .card--dark .k { color: var(--marigold); }
.prose .card--dark a { color: #fff; }

/* the verification video as a five-frame reel (GBP guide) */
.prose .reel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 14px; background: #151514 radial-gradient(70% 120% at 100% 0%, rgba(245, 165, 36, .18), rgba(245, 165, 36, 0) 70%); border-radius: 22px; list-style: none; }
.prose .reel li { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; margin: 0; padding: 30px 6px 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; color: rgba(255, 255, 255, .84); font: 500 14px/1.25 var(--sans); text-align: center; }
.prose .reel li b { position: absolute; top: 9px; left: 10px; font: 600 11px/1 var(--sans); color: var(--marigold); font-variant-numeric: tabular-nums; }
.prose .reel svg { width: 22px; height: 22px; color: var(--marigold); }
.prose .reel .reel-rec { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; padding: 2px 4px 4px; background: none; border: 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); text-align: left; }
.prose .reel .reel-rec span { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.prose .reel .reel-rec span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); }

/* summary cards with a big label (map pack factors, SEO groups) */
.prose .trio .card strong, .prose .duo .card .card-t { display: block; font: 600 1.3rem/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.prose .duo .card--dark .card-t, .prose .trio .card--dark strong { color: #fff; }
.prose .duo .card .card-t + p { margin-top: .45em; }

/* a search result preview (title and description lengths) */
.snippet { padding: 20px 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.snippet-site { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.snippet-site b { display: block; font-weight: 500; color: var(--ink); }
.snippet-site i { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font: 600 12px/1 var(--sans); font-style: normal; }
.snippet-t { margin-top: 10px; font: 500 20px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.snippet-d { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.snippet-n { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0efea; }

/* a tool's "best for" and price, under its heading (SEO tools guide) */
.prose .tool-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14.5px; line-height: 1.4; }
.prose .tool-meta span { padding: 6px 12px; background: var(--surface); border-radius: 12px; color: var(--ink-2); }
.prose .tool-meta span.price { background: var(--ink); color: #fff; }
.prose .tool-meta span.price b { color: var(--marigold); }
.prose .tool-meta b { font-weight: 600; color: var(--ink); }
.prose .forms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prose .forms .card p:last-child { font: 600 1.4rem/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.prose .forms .card--dark p:last-child { color: #fff; }
.prose .forms [lang="ne"] { font-family: "Nirmala UI", "Noto Sans Devanagari", "Mukta", var(--sans); letter-spacing: 0; }

/* Core Web Vitals meters */
.vitals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vital { padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.vital-n { font: 600 13px/1.3 var(--sans); color: var(--muted); }
.vital-v { margin-top: 8px; font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--sans); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.vital-v small { font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.vital-bar { display: grid; grid-template-columns: 4fr 3fr 2fr; gap: 3px; margin-top: 14px; }
.vital-bar i { height: 8px; border-radius: 4px; background: #ecebe6; }
.vital-bar i:first-child { background: var(--marigold); }
.vital-bar i:nth-child(2) { background: #d8d6ce; }
.vital-scale { display: grid; grid-template-columns: 4fr 3fr 2fr; gap: 3px; margin-top: 6px; font-size: 11.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.vital-scale span:last-child { text-align: right; }
.vital-what { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }

/* price ranges (SEO cost guide) */
.ranges { padding: 22px 24px 18px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.ranges-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; font-size: 13.5px; color: var(--muted); }
.ranges-key { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ranges-key span { display: inline-flex; align-items: center; gap: 7px; }
.ranges-key i { width: 18px; height: 8px; border-radius: 4px; background: #d8d6ce; }
.ranges-key i.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.range { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 6px 18px; align-items: center; padding: 10px 0; border-top: 1px solid #f0efea; }
.range-l { font-size: 15px; line-height: 1.35; color: var(--ink); }
.range-l small { display: block; font-size: 13px; color: var(--muted); }
.range-t { position: relative; height: 22px; background: #f6f5f1; border-radius: 6px; }
.range-t b { position: absolute; top: 5px; bottom: 5px; left: var(--a); width: calc(var(--b) - var(--a)); border-radius: 6px; background: #d8d6ce; }
.range-t b.open { background: linear-gradient(90deg, #d8d6ce 60%, rgba(216, 214, 206, 0)); }
.range-t i { position: absolute; top: 50%; left: var(--m); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.range-axis { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 18px; padding-top: 8px; border-top: 1px solid #f0efea; font-size: 12px; color: var(--soft); }
.range-axis div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }

/* layers that depend on each other (technical checklist) */
.layers { display: flex; flex-direction: column-reverse; gap: 6px; padding: 0; list-style: none; counter-reset: layer; }
.prose .layers { padding: 0; list-style: none; }
.prose .layers > li { margin-top: 0; margin-bottom: 0; }
.layers > li { counter-increment: layer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 18px; margin-inline: calc((var(--i, 1) - 1) * 16px); background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 16px; line-height: 1.4; }
.layers > li::before { content: counter(layer); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); font: 600 13px/1 var(--sans); color: var(--ink); }
.layers > li:first-child { background: #151514; border-color: #151514; color: rgba(255, 255, 255, .78); }
.layers > li:first-child strong { color: #fff; }
.layers > li:first-child::before { background: var(--marigold); }
.layers small { font-size: 13px; color: var(--muted); white-space: nowrap; }
.layers > li:first-child small { color: rgba(255, 255, 255, .6); }

/* figures, case notes, bands and the author card inside prose */
.prose figure.shot { margin-top: 1.6em; }
.prose figure.shot + * { margin-top: 1.4em; }
.prose .case-note { text-decoration: none; color: inherit; }
.prose .case-note img { border-radius: 12px; }
.prose .case-note p { font-size: 15.5px; line-height: 1.5; }
.prose .band { margin-top: 1.8em; }
.prose .band + * { margin-top: 1.8em; }
.prose .band p { font-size: 17px; line-height: 1.55; }
.prose .band strong { color: #fff; }
.prose .band a { text-decoration: none; }
.prose .band .btn--light { color: var(--ink); }
.prose .author { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px 24px; align-items: start; margin-top: 2.6em; padding: 26px; background: var(--surface); border-radius: 26px; }
.author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: var(--surface); }
.author .k { font: 600 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--marigold-deep); }
.prose .author h2 { margin: 8px 0 0; font-size: 1.5rem; letter-spacing: -.02em; }
.author p { margin-top: 10px; font-size: 16.5px; line-height: 1.65; }
.author-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 15.5px; font-weight: 500; }

/* related blocks after the article */
.related-group + .related-group { margin-top: clamp(36px, 4vw, 52px); }
.related-label { margin-bottom: 16px; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.related a > em { font-style: normal; font: 600 12.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--marigold-deep); }

/* ---------- guides hub */
.gfeat { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 48px; align-items: center; padding: clamp(28px, 4vw, 52px); background: #151514 radial-gradient(70% 90% at 100% 100%, rgba(245, 165, 36, .22), rgba(245, 165, 36, 0) 70%); border-radius: 32px; color: #fff; transition: transform .35s var(--ease); }
.gfeat:hover { transform: translateY(-3px); }
.gfeat .g-meta { color: rgba(255, 255, 255, .62); }
.gfeat .g-meta b { margin-right: 8px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--marigold); font-weight: 600; }
.gfeat h3 { margin-top: 18px; font: 600 clamp(1.9rem, 3.2vw, 2.8rem)/1.06 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.gfeat p.g-desc { color: rgba(255, 255, 255, .7); }
.gfeat .g-checks li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .86); }
.gfeat .g-checks svg { color: var(--marigold); }
.gfeat .g-go { padding-top: 30px; }
.gfeat .gx { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); transform: rotate(1.5deg); transition: transform .4s var(--ease); }
.gfeat:hover .gx { transform: rotate(0deg); }
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.gcard { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gthumb { position: relative; display: grid; place-items: center; height: 168px; padding: 20px; overflow: hidden; background: var(--surface); }
.gthumb--warm { background: var(--surface); }
.gthumb--dark { background: #151514 radial-gradient(70% 90% at 100% 0%, rgba(245, 165, 36, .22), rgba(245, 165, 36, 0) 70%); color: #fff; }
.gcard-b { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.gcard-b .g-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.gcard-b .g-meta b { font-weight: 600; color: var(--marigold-deep); }
.gcard h3 { margin-top: 10px; font: 600 22px/1.18 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
.gcard p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.gcard .g-go { padding-top: 22px; font-size: 15.5px; }
.gcard:hover .g-go .ico { transform: translateX(3px); }
.gcard--cta { justify-content: space-between; padding: 28px; background: var(--surface); border-color: var(--line); }
.gcard--cta h3 { margin-top: 14px; font-size: 26px; }
.gcard--cta .btn { align-self: flex-start; margin-top: 26px; }
.gcard--cta .eyebrow { margin-bottom: 0; }
.gcard--cta p a { color: var(--ink); border-bottom: 1px solid var(--marigold-deep); }
.gcard--cta p a:hover { border-bottom-width: 2px; }
/* thumbnails: small, quiet versions of each guide's idea */
.t-price { text-align: center; }
.t-price span { display: block; font-size: 13px; color: var(--muted); }
.t-price strong { display: block; margin-top: 6px; font: 600 40px/1 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.t-price strong small { margin-right: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.t-vitals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.t-vitals span { display: grid; gap: 6px; padding: 12px 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.t-vitals b { font: 600 19px/1 var(--sans); letter-spacing: -.03em; color: #fff; }
.t-vitals i { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--marigold) 55%, rgba(255, 255, 255, .14) 55%); }
.t-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 290px; }
.t-pills span { padding: 7px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font: 500 13px/1 var(--sans); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.t-pills span:nth-child(3n + 1) { background: var(--ink); border-color: var(--ink); color: #fff; }
.t-map { position: absolute; inset: 0; }
.t-map .gx-map { height: 100%; }
.t-map .gx-map svg { width: 34px; height: 46px; z-index: 1; }
.t-map p { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 7px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); font: 500 13px/1 var(--sans); white-space: nowrap; }
.t-steps { display: grid; grid-template-columns: repeat(5, 30px); gap: 8px; }
.t-steps span { display: grid; place-items: center; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font: 600 12px/1 var(--sans); }
.t-steps span:nth-child(-n + 4) { background: var(--ink); border-color: var(--ink); color: #fff; }
.t-wp { display: grid; gap: 8px; width: min(250px, 100%); padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.t-wp .gx-check { font-size: 13px; }
/* "which guide first" chooser */
.pick { display: grid; gap: 10px; }
.pick a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 6px 24px; align-items: center; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s var(--ease), transform .3s var(--ease); }
.pick a:hover { border-color: rgba(18, 18, 18, .2); transform: translateY(-2px); }
.pick-goal { font-size: 15.5px; color: var(--muted); }
.pick-goal b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.pick-guide { font-size: 16px; font-weight: 500; color: var(--ink-2); }
.pick svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.pick a:hover svg { transform: translateX(3px); }
.hub-author .lead + .lead { margin-top: 16px; }
.hub-author .stats { margin-top: 32px; }
.hub-author .author-cta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; }

/* hub hero: the illustration sits in a rounded warm frame, its cropped edges hidden */
.phero-media--frame .phero-media-in::before { display: none; }
.phero-frame { position: relative; overflow: hidden; border-radius: 32px; background: linear-gradient(180deg, #fffaf0 0%, #ffe6b8 100%); box-shadow: var(--shadow-lg); }
.phero-media--frame .phero-frame img { filter: none; }

/* ---------- legal pages */
.phero--center .crumbs ol { justify-content: center; }
.phero--legal .phero-title { font-size: clamp(2.5rem, 5vw, 4.2rem); }
.legal-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.legal-meta li { padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; color: var(--ink-2); }
.prose .legal-n { margin-right: 10px; color: var(--marigold-deep); font-variant-numeric: tabular-nums; }
.prose address { font-style: normal; padding: 22px 24px; background: var(--surface); border-radius: 20px; font-size: 17px; line-height: 1.7; }
.prose .caps { font-size: 16px; letter-spacing: .01em; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phero--guide .phero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .phero--guide .phero-grid { grid-template-columns: minmax(0, 1fr); }
  .phero-media--card { width: min(380px, 88vw); margin-top: 8px; }
  .phero-media--card .phero-tag.t1 { right: -3%; top: -18px; }
  .phero-media--card .phero-tag.t2 { right: 6%; bottom: -18px; }
  .phero-media--card .phero-tag.t3 { display: none; }
  .gfeat { grid-template-columns: minmax(0, 1fr); }
  .gfeat .gx { transform: none; }
  .pick a { grid-template-columns: minmax(0, 1fr) auto; }
  .pick-guide { grid-column: 1; }
  .pick svg { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 640px) {
  .vitals, .prose .trio, .prose .duo, .prose .forms { grid-template-columns: minmax(0, 1fr); }
  .range, .range-axis { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .range-axis > span { display: none; }
  .gcards { grid-template-columns: minmax(0, 1fr); }
  .gfeat .gx { display: none; }
  .layers > li { margin-inline: 0; grid-template-columns: auto minmax(0, 1fr); }
  .layers small { grid-column: 2; white-space: normal; }
  .phero--guide .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .phero--guide .tile { padding: 16px 16px 14px; border-radius: 18px; }
  .phero--guide .tile-ico { display: none; }
  .phero--guide .tile .go { display: none; }
  .phero--guide .tile-v { font-size: 1.35rem; }
  .phero--guide .tile-k { font-size: 13.5px; }
  .phero--guide .tile-n { font-size: 13px; }
  .prose .author { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px; }
  .author img { width: 72px; height: 72px; }
  /* tables become stacked cards; each cell carries its column name */
  .prose .tw-stack table, .prose .tw-stack tbody, .prose .tw-stack tr, .prose .tw-stack th, .prose .tw-stack td { display: block; width: 100%; }
  .prose .tw-stack thead { display: none; }
  .prose .tw-stack caption { display: block; }
  .prose .tw-stack tr { padding: 14px 16px; border-top: 1px solid var(--line); }
  .prose .tw-stack th, .prose .tw-stack td { padding: 3px 0; border: 0; font-size: 15.5px; }
  .prose .tw-stack tbody th { font-size: 16.5px; }
  .prose .tw-stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
  .prose .tw-stack td.me { background: none; }
  .prose pre { font-size: 13px; padding: 16px; }
  .prose .reel { gap: 5px; padding: 10px; }
  .prose .reel li { padding: 26px 2px 10px; font-size: 11.5px; gap: 8px; }
  .prose .reel li b { left: 7px; top: 8px; }
  .prose .reel svg { width: 18px; height: 18px; }
  .prose .code { border-radius: 14px; }
  .prose ol.gsteps { grid-template-columns: minmax(0, 1fr); }
  .prose ol.gsteps > li { padding: 14px 16px 14px 58px; font-size: 16.5px; }
  .prose ol.gsteps > li::before { left: 14px; }
}
