/* Hintling 4.0.x: the guides (owned by the guides worker). Loads after v4.css on single guides, the /guides/ hub and the
   archives (inc/v4-guides.php). Layout only: no words are set here; every colour comes from the v4.css tokens.

   A single guide (templates/single.html): the title area is a split stage: the category pill, the title and the byline
   (the checked date as a quiet chip) on the left, and on the right a drawing of the guide's topic (a page of the guide
   with a small example screen in front, two glass chips; inc/v4-guides.php), which assembles once and follows the
   pointer a little. Then a calm reading column of about 68 characters at 18px (36em: Plus Jakarta Sans's "0" is wide,
   so 68ch would give about 95 characters a line). Stored guide markup is styled as it is: the "Key takeaways" quote
   becomes a wash card, the "On this page" list a card (a sticky rail beside the text on wide screens, with a reading
   line that fills), each listed section's heading carries its number, the closing "Free help" list becomes link cards
   with the linked guide's topic icon, question-and-answer paragraphs become quiet cards, and tables, quotes, figures,
   code and separators get the V4 look. Paragraphs never move.

   The hub (templates/home.html, inc/guides-hub.php): a split stage with a drawing of three guide pages and four topic
   chips; each topic opens with its icon, and its cards sit in an uneven bento (7+5 then 4+4+4) led by the topic's first
   guide on a soft field with the topic's drawing. Free website wording keeps its own field with compact cards. */

/* ---------- the page ---------- */
main.v4-guide { margin-top: 0; padding: clamp(16px, 2.4vw, 28px) 0 clamp(40px, 5vw, 64px); }
.v4-guide-top { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); box-sizing: border-box; }

/* ---------- title area: the split stage ---------- */
.v4-guide-stage {
	display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 16px; text-align: left;
	padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(32px, 5.4vw, 64px);
}
.v4-guide-stage > *, .v4-guide-head > * { margin: 0; }
/* phones and tablets: the drawing sits small beside the pill (it drops under the pill when the pill is long) */
.v4-guide-head { display: contents; }
.v4-guide-stage .hs-eyebrow { order: 1; background: var(--paper); box-shadow: var(--sh-1); }
.v4-guide-stage > .v4-g-art { order: 2; flex: none; width: clamp(104px, 27vw, 200px); margin-left: auto; margin-top: -6px; }
.v4-guide-stage .wp-block-post-title { order: 3; flex: 1 1 100%; }
.v4-guide-stage .hs-byline { order: 4; flex: 1 1 100%; }
.v4-guide-stage .hs-eyebrow a { text-decoration: none; }
.v4-guide-stage .hs-eyebrow a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; }
main.v4-guide .v4-guide-stage .wp-block-post-title {
	margin-top: clamp(14px, 2vw, 24px); max-width: 17em; font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 1.05; letter-spacing: -.042em; color: var(--ink);
}
main.v4-guide .v4-guide-stage .hs-byline { margin-top: clamp(16px, 2vw, 24px); max-width: 40em; font-size: .9375rem; line-height: 1.75; color: var(--mute); }
.v4-guide-stage .hs-byline a { color: var(--accent-text); font-weight: 600; }
.v4-guide-stage .hs-byline a:hover { color: var(--ink); }
/* the checked date: a quiet white chip inside the sentence */
/* (integrator, 17 Nov: inline, not inline-block, with no right margin, so the full stop after it sits against the chip
   and can never wrap away from it) */
.v4-guide-stage .hs-byline time {
	display: inline; margin: 0 -2px 0 0; padding: 3px 7px 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px var(--line);
	color: var(--ink); font-weight: 600; white-space: nowrap;
}
/* two hairline rings behind the drawing, like the closing call's (decoration only) */
.v4-guide-stage::after, .v4-hub-stage::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(circle at 84% 22%, transparent 0 calc(var(--ring, 150px) - 1px), rgba(var(--glow), .32) var(--ring, 150px) calc(var(--ring, 150px) + 1px), transparent calc(var(--ring, 150px) + 2px) calc(var(--ring, 150px) * 1.62 - 1px), rgba(var(--glow), .22) calc(var(--ring, 150px) * 1.62) calc(var(--ring, 150px) * 1.62 + 1px), transparent calc(var(--ring, 150px) * 1.62 + 2px));
}
@media (min-width: 1000px) {
	.v4-guide-stage::after { background-image: radial-gradient(circle at 80% 50%, transparent 0 209px, rgba(var(--glow), .3) 210px 211px, transparent 212px 279px, rgba(var(--glow), .2) 280px 281px, transparent 282px); }
	.v4-hub-stage::after { background-image: radial-gradient(circle at 79% 50%, transparent 0 229px, rgba(var(--glow), .3) 230px 231px, transparent 232px 299px, rgba(var(--glow), .2) 300px 301px, transparent 302px); }
	.v4-guide-stage {
		display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center; column-gap: clamp(40px, 5vw, 88px);
		min-height: clamp(400px, 36vw, 500px); box-sizing: border-box; padding: clamp(56px, 5vw, 80px) clamp(48px, 5vw, 80px);
	}
	.v4-guide-head { display: block; }
	.v4-guide-stage > .v4-g-art { width: 100%; max-width: 470px; margin: 0; justify-self: end; }
	main.v4-guide .v4-guide-stage .wp-block-post-title { margin-top: 24px; }
}

/* a featured picture, when a guide has one, rises over the foot of the stage */
.v4-guide-top:has(.v4-guide-pic img) .v4-guide-stage { padding-bottom: clamp(88px, 11vw, 168px); }
.v4-guide-top .v4-guide-pic { position: relative; z-index: 1; max-width: 1040px; margin: calc(-1 * clamp(56px, 8vw, 120px)) auto 0; padding-inline: clamp(0px, 3vw, 40px); box-sizing: border-box; }
.v4-guide-top .v4-guide-pic img { display: block; width: 100%; border-radius: var(--r-l); box-shadow: var(--sh-3); }

/* ---------- the drawings (title stage, hub hero, a topic's first card): decorative, aria-hidden, no words ---------- */
.v4-g-art { position: relative; container-type: inline-size; aspect-ratio: 5 / 4; box-sizing: border-box; }
.v4-g-rig { position: absolute; inset: 0; transition: transform 700ms var(--e-soft); }
.v4-g-floor { position: absolute; left: 10%; right: 4%; bottom: 1%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 32, 51, .13), rgba(20, 32, 51, 0)); }
/* a page of the guide */
.v4-g-sheet {
	position: absolute; left: 3%; top: 3%; width: 54%; height: 84%; box-sizing: border-box; padding: 8cqw 6.5cqw;
	display: flex; flex-direction: column; gap: 2.4cqw; border-radius: 5cqw; background: var(--paper);
	box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); rotate: -5deg;
}
.v4-g-b { display: block; height: 2.2cqw; border-radius: var(--pill); background: color-mix(in srgb, var(--edge) 30%, var(--paper)); }
.v4-g-b--t { width: 86%; height: 3.6cqw; background: var(--ink); }
.v4-g-b--t2 { width: 58%; height: 3.6cqw; margin-bottom: 2.2cqw; background: var(--ink); }
.v4-g-b--s { width: 72%; }
.v4-g-b--m { width: 46%; background: var(--accent); }
.v4-g-list { display: grid; gap: 2.4cqw; margin-top: auto; padding: 4cqw; border-radius: 3.4cqw; background: var(--wash); }
.v4-g-list i { display: flex; align-items: center; gap: 2cqw; height: 3cqw; }
.v4-g-list i::before { content: ""; flex: none; width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--mark); }
.v4-g-list i::after { content: ""; flex: 1; height: 1.8cqw; border-radius: var(--pill); background: color-mix(in srgb, var(--edge) 34%, var(--paper)); }
.v4-g-list i:nth-child(2)::after { flex: 0 0 62%; }
.v4-g-list i:nth-child(3)::after { flex: 0 0 74%; }
/* the topic's example screen, in front */
.v4-g-card {
	position: absolute; right: 0; bottom: 8%; width: 64%; aspect-ratio: 240 / 168; border-radius: 4.6cqw; overflow: hidden;
	background: var(--paper); box-shadow: var(--sh-3), inset 0 0 0 1px var(--line); rotate: 3deg;
	transition: translate 700ms var(--spring), rotate 700ms var(--spring);
}
.v4-g-scene { display: block; width: 100%; height: 100%; }
.v4-g-scene .wa { fill: var(--wash); }
.v4-g-scene .a2 { fill: var(--wash-2); }
.v4-g-scene .ac { fill: var(--accent); }
.v4-g-scene .mk { fill: var(--mark); }
.v4-g-scene .ln { fill: color-mix(in srgb, var(--edge) 30%, var(--paper)); }
.v4-g-scene .pp { fill: var(--paper); }
.v4-g-scene .ink { fill: var(--ink); }
.v4-g-scene [class*="s-"] { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.v4-g-scene .s-mk { stroke: var(--mark); }
.v4-g-scene .s-ln { stroke: var(--line); stroke-width: 2; }
.v4-g-scene .s-ed { stroke: var(--edge); stroke-width: 2; }
.v4-g-scene .s-a2 { stroke: var(--wash-2); }
.v4-g-scene .s-ink { stroke: var(--ink); }
.v4-g-scene .s-pp { stroke: var(--paper); stroke-width: 2.4; }
.v4-g-scene .s-th { stroke-width: 6; }
.v4-g-scene .s-xl { stroke-width: 16; }
/* glass chips: over the field, never on white */
.v4-g-chip {
	position: absolute; display: grid; place-items: center; width: 15cqw; aspect-ratio: 1; border-radius: 4.4cqw; color: var(--accent-deep);
	background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px);
	box-shadow: var(--sh-2), inset 0 0 0 1px rgba(255, 255, 255, .9);
	transition: translate 700ms var(--spring);
}
.v4-g-chip .v4-g-icon { width: 48%; height: 48%; }
.v4-g-chip--a { top: 0; right: 7%; rotate: 6deg; }
.v4-g-chip--b { left: 0; bottom: 6%; width: 11cqw; border-radius: 50%; color: var(--b-ink, var(--ink)); background: linear-gradient(180deg, var(--b-top), var(--b-bot)); box-shadow: 0 10px 22px -10px rgba(var(--b-glow), .85), inset 0 1px 0 rgba(255, 255, 255, .5); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (hover: hover) and (pointer: fine) {
	.v4-g-art:hover .v4-g-card { translate: 0 -2.4cqw; rotate: 1.5deg; }
	.v4-g-art:hover .v4-g-chip--a { translate: 0 -1.6cqw; }
}

/* the hub's drawing: two pages behind the costs screen, four topic chips around */
.v4-g-art--hub .v4-g-sheet--back { left: 0; top: 9%; width: 46%; height: 78%; rotate: -10deg; opacity: 1; }
.v4-g-art--hub .v4-g-sheet--back .v4-g-list { display: none; }
.v4-g-art--hub .v4-g-sheet--mid { left: 19%; top: 1%; width: 48%; height: 84%; rotate: -2deg; }
.v4-g-art--hub .v4-g-card { right: 1%; bottom: 7%; width: 60%; rotate: 4deg; }
.v4-g-art--hub .v4-g-chip { width: 12.5cqw; border-radius: 3.8cqw; }
.v4-g-art--hub .v4-g-chip--1 { top: 1%; right: 17%; rotate: 7deg; }
.v4-g-art--hub .v4-g-chip--2 { top: 21%; right: -1%; rotate: -5deg; }
.v4-g-art--hub .v4-g-chip--3 { left: -2%; top: 56%; rotate: -8deg; }
.v4-g-art--hub .v4-g-chip--4 { left: 30%; bottom: -1%; rotate: 4deg; }

/* ---------- the reading column ---------- */
main.v4-guide .v4-guide-body { box-sizing: border-box; width: 100%; max-width: calc(36em + 2 * var(--gut)); margin: clamp(44px, 5.6vw, 80px) auto 0; padding-inline: var(--gut); font-size: 1.125rem; line-height: 1.7; color: var(--body); }
main.v4-guide .v4-guide-body > * { max-width: none; margin-block: 0; }
main.v4-guide .v4-guide-body > * + * { margin-top: 1.15em; }
main.v4-guide .v4-guide-body :where(p, li) { max-width: none; }
main.v4-guide .v4-guide-body > p:first-child { font-size: 1.1875rem; line-height: 1.65; color: var(--body); }
main.v4-guide .v4-guide-body strong { color: var(--ink); }
/* emphasis inside the prose keeps its meaning (v4.css sets em upright for the accent phrase in headings) */
main.v4-guide .v4-guide-body :is(p, li, td, blockquote) em { font-style: italic; }

/* headings: V4 weight, calm sizes, room above */
main.v4-guide .v4-guide-body > h2 { margin-top: clamp(56px, 6vw, 80px); font-size: clamp(1.625rem, 1.22rem + 1.5vw, 2.25rem); line-height: 1.12; letter-spacing: -.036em; color: var(--ink); scroll-margin-top: 16px; }
main.v4-guide .v4-guide-body > h3 { margin-top: clamp(36px, 4vw, 48px); font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); line-height: 1.3; letter-spacing: -.022em; color: var(--ink); scroll-margin-top: 16px; }
main.v4-guide .v4-guide-body > h4 { margin-top: 32px; font-size: 1.125rem; line-height: 1.35; color: var(--ink); }
main.v4-guide .v4-guide-body > :is(h2, h3, h4) + * { margin-top: 16px; }
/* a listed section's number (the same number "On this page" gives it; drawn, and silent for screen readers) */
main.v4-guide .v4-guide-body > h2[data-v4-n]::before {
	content: attr(data-v4-n); content: attr(data-v4-n) / "";
	display: flex; align-items: center; justify-content: center; width: 46px; height: 36px; margin-bottom: 18px; box-sizing: border-box;
	border-radius: 12px; background: var(--wash); box-shadow: inset 0 0 0 1px rgba(var(--glow), .45);
	color: var(--accent-deep); font-size: .875rem; font-weight: 800; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums;
}

/* lists */
main.v4-guide .v4-guide-body :where(ul, ol) { padding-left: 1.35em; }
main.v4-guide .v4-guide-body li + li { margin-top: .55em; }
main.v4-guide .v4-guide-body li > :is(ul, ol) { margin-top: .55em; }
main.v4-guide .v4-guide-body ul > li::marker { color: var(--mark); }
main.v4-guide .v4-guide-body ol > li::marker { color: var(--accent-text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* checklists written with a ballot box ("☐ ..."): inc/v4-guides.php marks them on output; the box is drawn here (the same
   character stays in the text, so a copy or a print still has it) and the bullet goes */
main.v4-guide .v4-guide-body :is(ul, ol):has(> li.v4-g-tick) { padding-left: 0; list-style: none; }
main.v4-guide .v4-guide-body li.v4-g-tick { position: relative; padding-left: 36px; list-style: none; }
main.v4-guide .v4-guide-body li.v4-g-tick + li.v4-g-tick { margin-top: .6em; }
main.v4-guide .v4-guide-body li.v4-g-tick::before {
	content: ""; position: absolute; left: 0; top: .26em; width: 22px; height: 22px; box-sizing: border-box;
	border-radius: 7px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--edge), 0 1px 2px rgba(20, 32, 51, .06);
}
/* the character itself stays in place for copying and screen readers, unseen under the drawn box */
main.v4-guide .v4-guide-body .v4-g-box { position: absolute; left: 0; top: .26em; width: 22px; height: 22px; overflow: hidden; clip-path: inset(50%); color: var(--ink); font-size: 16px; line-height: 22px; }

/* ---------- key takeaways: the quote that opens with a bold title becomes a wash card ---------- */
main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child) {
	position: relative; isolation: isolate; overflow: hidden; margin: clamp(32px, 4vw, 44px) 0 0; padding: clamp(24px, 3.6vw, 40px);
	border: 0; border-radius: var(--r-l); background: linear-gradient(160deg, var(--wash) 0%, var(--wash-2) 100%);
	box-shadow: inset 0 0 0 1px rgba(var(--glow), .3);
	color: var(--body); font-family: var(--font); font-size: 1.0625rem; font-weight: 400; font-style: normal; line-height: 1.65;
}
main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child)::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(55% 80% at 92% 0%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%), radial-gradient(40% 60% at 0% 100%, rgba(var(--glow), .18), rgba(var(--glow), 0) 70%);
}
/* a drawn tick tile in the corner (decoration only) */
main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child)::after {
	content: ""; position: absolute; top: clamp(20px, 3.2vw, 34px); right: clamp(20px, 3.2vw, 34px); width: 40px; height: 40px; border-radius: 13px;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5786' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.6C10.3 5.1 7.8 4.6 4 4.6v13c3.8 0 6.3.5 8 2 1.7-1.5 4.2-2 8-2v-13c-3.8 0-6.3.5-8 2Z'/%3E%3Cpath d='M12 6.6v13'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: var(--sh-1); rotate: 6deg;
}
main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child) > p:first-child {
	display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 32px; padding: 5px 14px 5px 12px; box-sizing: border-box;
	border-radius: var(--pill); background: var(--paper); box-shadow: var(--sh-1); color: var(--accent-deep); font-size: .875rem; line-height: 1.3; letter-spacing: -.005em;
}
main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child) > p:first-child::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mark); }
main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child) > p:first-child strong { color: inherit; font-weight: 700; }
main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child) > :is(ul, ol) { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 1.0625rem; font-weight: 400; font-family: var(--font); }
main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child) li { position: relative; margin: 0; padding-left: 36px; color: var(--ink); }
main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child) li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23142033' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 11.4l2.9 2.9 5.9-6.1'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: 0 1px 2px rgba(20, 32, 51, .08), inset 0 0 0 1px rgba(var(--glow), .55);
}
main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child) > p + p { margin-top: 14px; }
main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child) > * + :is(p) { margin-top: 16px; }

/* any other quote (in the guides these are mostly wording to copy: a sample email, a notice): a quiet card with a powder edge */
main.v4-guide .v4-guide-body > blockquote:not(:has(> p:first-child > strong:only-child)) {
	margin: clamp(28px, 3.4vw, 36px) 0 0; padding: clamp(18px, 2.4vw, 24px) clamp(20px, 2.8vw, 28px); border: 0; border-radius: var(--r-m);
	background: var(--mist); box-shadow: inset 3px 0 0 var(--accent);
	color: var(--ink); font-family: var(--font); font-size: 1.0625rem; font-weight: 400; font-style: normal; line-height: 1.65;
}
main.v4-guide .v4-guide-body > blockquote:not(:has(> p:first-child > strong:only-child)) > * { margin-block: 0; }
main.v4-guide .v4-guide-body > blockquote:not(:has(> p:first-child > strong:only-child)) > * + * { margin-top: 12px; }
main.v4-guide .v4-guide-body > blockquote + blockquote:not(:has(> p:first-child > strong:only-child)) { margin-top: 14px; }
main.v4-guide .v4-guide-body blockquote cite { display: block; margin-top: 12px; font-size: .9375rem; font-style: normal; font-weight: 600; color: var(--mute); }

/* ---------- "On this page": a card in the column; a sticky rail beside the text on wide screens ---------- */
main.v4-guide .v4-guide-body > nav[aria-label] {
	position: relative; margin-top: clamp(28px, 3.4vw, 40px); padding: clamp(20px, 2.6vw, 28px); border-radius: var(--r-l);
	background: var(--paper); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); font-size: 1rem; line-height: 1.4;
}
main.v4-guide .v4-guide-body > nav[aria-label] > p:first-child { margin: 0 0 10px; padding-left: 12px; font-size: .9375rem; color: var(--ink); }
main.v4-guide .v4-guide-body > nav[aria-label] :is(ol, ul) { margin: 0; padding: 0; list-style: none; counter-reset: v4-toc; }
main.v4-guide .v4-guide-body > nav[aria-label] li { margin: 0; counter-increment: v4-toc; break-inside: avoid; }
main.v4-guide .v4-guide-body > nav[aria-label] a {
	display: flex; align-items: baseline; gap: 12px; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border-radius: 14px;
	color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color 220ms var(--e-soft), color 220ms var(--e-soft);
}
main.v4-guide .v4-guide-body > nav[aria-label] ol a::before { content: counter(v4-toc, decimal-leading-zero); flex: none; min-width: 1.5em; color: var(--accent-text); font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
main.v4-guide .v4-guide-body > nav[aria-label] a:hover { background: var(--mist); color: var(--ink); }
main.v4-guide .v4-guide-body > nav[aria-label] a[aria-current] { background: var(--wash); color: var(--ink); }
@media (min-width: 720px) and (max-width: 1199px) {
	main.v4-guide .v4-guide-body > nav[aria-label] :is(ol, ul) { columns: 2; column-gap: 16px; }
}
@media (min-width: 1200px) {
	main.v4-guide .v4-guide-body:has(> nav[aria-label]) {
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36em) minmax(0, 1fr); column-gap: clamp(40px, 4vw, 72px); align-items: start;
		max-width: calc(var(--wrap) + 2 * var(--gut));
	}
	main.v4-guide .v4-guide-body:has(> nav[aria-label]) > * { grid-column: 2; }
	/* tables may use the free column on the right, so their cells wrap less */
	main.v4-guide .v4-guide-body:has(> nav[aria-label]) > :is(figure.wp-block-table, table) { grid-column: 2 / 4; }
	main.v4-guide .v4-guide-body > nav[aria-label] {
		grid-column: 1; grid-row: 1 / span 999; position: sticky; top: calc(var(--v4-stuck, 76px) + 28px); justify-self: end; width: 100%; max-width: 260px; box-sizing: border-box;
		max-height: calc(100vh - var(--v4-stuck, 76px) - 52px); overflow-y: auto; overscroll-behavior: contain; /* 4.0.1 (P4 r2 N2): follows the header, admin bar included */
		margin-top: 6px; padding: 0 0 0 14px; border-radius: 0; background: none; box-shadow: inset 2px 0 0 var(--line); font-size: .875rem; line-height: 1.35;
	}
	/* the reading line: fills down the rail as the guide is read (v4-guides.js sets --v4-read, 0 to 1) */
	main.v4-guide .v4-guide-body > nav[aria-label]::after {
		content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 100%; border-radius: 2px; background: var(--mark);
		transform-origin: 50% 0; transform: scaleY(var(--v4-read, 0)); transition: transform 180ms linear; pointer-events: none;
	}
	.admin-bar main.v4-guide .v4-guide-body > nav[aria-label] { top: 136px; }
	main.v4-guide .v4-guide-body > nav[aria-label] > p:first-child { margin-bottom: 8px; padding-left: 10px; font-size: .875rem; }
	main.v4-guide .v4-guide-body > nav[aria-label] a { gap: 10px; min-height: 40px; padding: 9px 10px; border-radius: 12px; color: var(--body); font-weight: 600; }
	main.v4-guide .v4-guide-body > nav[aria-label] a:hover { color: var(--ink); }
	main.v4-guide .v4-guide-body > nav[aria-label] a[aria-current] { color: var(--ink); }
}

/* ---------- tables (the table block's figure, and the plain tables most older guides use) ---------- */
main.v4-guide .v4-guide-body > figure.wp-block-table { margin: clamp(28px, 3.4vw, 40px) 0 0; overflow-x: auto; border-radius: var(--r-m); box-shadow: var(--sh-1); }
main.v4-guide .v4-guide-body > table {
	width: 100%; margin: clamp(28px, 3.4vw, 40px) 0 0; border-collapse: separate; border-spacing: 0; border-radius: var(--r-m); overflow: hidden;
	background: var(--paper); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
main.v4-guide .v4-guide-body > table :where(th, td) { border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
main.v4-guide .v4-guide-body > table tr:last-child :where(th, td) { border-bottom: 0; }
main.v4-guide .v4-guide-body > table thead th { background: var(--wash); color: var(--ink); font-weight: 700; }
main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) { font-size: .9375rem; line-height: 1.5; }
main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) :where(th, td) { padding: 14px 18px; }
main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) thead th { font-size: .875rem; letter-spacing: -.005em; }
main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) tbody td:first-child { color: var(--ink); font-weight: 600; }
main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) tbody tr { transition: background-color 200ms var(--e-soft); }
@media (hover: hover) { main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) tbody tr:hover { background: var(--mist); } }
main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) td { font-variant-numeric: tabular-nums; }
main.v4-guide .v4-guide-body .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: transparent; }
main.v4-guide .v4-guide-body .wp-block-table figcaption { margin-top: 10px; padding-inline: 4px; font-size: .875rem; text-align: left; }
@media (max-width: 600px) {
	/* a plain table can't sit in a scrolling box of its own, so on phones it becomes one (only scrolls if a word can't wrap) */
	main.v4-guide .v4-guide-body > table { display: block; overflow-x: auto; }
	main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) { font-size: .875rem; }
	main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) :where(th, td) { padding: 12px 9px; overflow-wrap: break-word; }
	main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) td:not(:first-child) { -webkit-hyphens: auto; hyphens: auto; }
	main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) :where(th, td):first-child { padding-left: 14px; }
	main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) :where(th, td):last-child { padding-right: 14px; }
}
@media (max-width: 359px) {
	main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) { font-size: .8125rem; }
	main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) :where(th, td) { padding: 11px 6px; }
	main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) :where(th, td):first-child { padding-left: 10px; }
	main.v4-guide :is(.v4-guide-body > table, .v4-guide-body .wp-block-table table) :where(th, td):last-child { padding-right: 10px; }
}

/* ---------- question-and-answer paragraphs (a bold question, a line break, the answer): quiet cards ---------- */
main.v4-guide .v4-guide-body > p:has(> strong:first-child + br) {
	position: relative; padding: clamp(18px, 2.4vw, 24px) clamp(18px, 2.6vw, 26px); border-radius: var(--r-m); background: var(--mist);
	box-shadow: inset 0 0 0 1px rgba(20, 32, 51, .03); font-size: 1.0625rem; line-height: 1.65;
}
main.v4-guide .v4-guide-body > p:has(> strong:first-child + br) + p:has(> strong:first-child + br) { margin-top: 12px; }
main.v4-guide .v4-guide-body > p:has(> strong:first-child + br) > strong:first-child { display: block; margin-bottom: 6px; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -.012em; }
main.v4-guide .v4-guide-body > p:has(> strong:first-child + br) > strong:first-child + br { display: none; }

/* ---------- "Free help": a list of guide links straight after a heading becomes link cards (its first and last items are
   a lone link and no item holds anything but one link); each card shows the linked guide's topic icon ---------- */
main.v4-guide .v4-guide-body > h2 + ul:has(> li:first-child > a:only-child):has(> li:last-child > a:only-child):not(:has(> li > :not(a))):not(:has(> li > a ~ a)) { display: grid; gap: 12px; padding: 0; list-style: none; }
main.v4-guide .v4-guide-body > h2 + ul:has(> li:first-child > a:only-child):has(> li:last-child > a:only-child):not(:has(> li > :not(a))):not(:has(> li > a ~ a)) > li { margin: 0; }
main.v4-guide .v4-guide-body > h2 + ul:has(> li:first-child > a:only-child):has(> li:last-child > a:only-child):not(:has(> li > :not(a))):not(:has(> li > a ~ a)) > li > a {
	display: flex; align-items: center; gap: 14px; min-height: 76px; box-sizing: border-box; height: 100%;
	padding: 14px 14px 14px 14px; border-radius: var(--r-m); background: var(--paper); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
	color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; text-decoration: none;
	transition: transform 280ms var(--e-soft), box-shadow 280ms var(--e-soft);
}
main.v4-guide .v4-guide-body > h2 + ul:has(> li:first-child > a:only-child):has(> li:last-child > a:only-child):not(:has(> li > :not(a))):not(:has(> li > a ~ a)) > li > a::before {
	content: ""; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--wash) var(--v4-gi, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5786' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.6C10.3 5.1 7.8 4.6 4 4.6v13c3.8 0 6.3.5 8 2 1.7-1.5 4.2-2 8-2v-13c-3.8 0-6.3.5-8 2Z'/%3E%3Cpath d='M12 6.6v13'/%3E%3C/svg%3E")) center / 22px no-repeat;
	box-shadow: inset 0 0 0 1px rgba(var(--glow), .4); transition: transform 420ms var(--spring);
}
main.v4-guide .v4-guide-body > h2 + ul:has(> li:first-child > a:only-child):has(> li:last-child > a:only-child):not(:has(> li > :not(a))):not(:has(> li > a ~ a)) > li > a::after {
	content: ""; flex: none; width: 34px; height: 34px; margin-left: auto; border-radius: 50%;
	background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34' fill='none' stroke='%23142033' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 17h11.5M17.5 12l5 5-5 5'/%3E%3C/svg%3E") center / 34px no-repeat;
	transition: transform 320ms var(--spring), background-color 220ms var(--e-soft);
}
@media (hover: hover) {
	main.v4-guide .v4-guide-body > h2 + ul:has(> li:first-child > a:only-child):has(> li:last-child > a:only-child):not(:has(> li > :not(a))):not(:has(> li > a ~ a)) > li > a:hover { transform: translateY(-3px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
	main.v4-guide .v4-guide-body > h2 + ul:has(> li:first-child > a:only-child):has(> li:last-child > a:only-child):not(:has(> li > :not(a))):not(:has(> li > a ~ a)) > li > a:hover::before { transform: rotate(-6deg) scale(1.06); }
	main.v4-guide .v4-guide-body > h2 + ul:has(> li:first-child > a:only-child):has(> li:last-child > a:only-child):not(:has(> li > :not(a))):not(:has(> li > a ~ a)) > li > a:hover::after { transform: translateX(3px); background-color: var(--wash-2); }
}
main.v4-guide .v4-guide-body > h2 + ul:has(> li:first-child > a:only-child):has(> li:last-child > a:only-child):not(:has(> li > :not(a))):not(:has(> li > a ~ a)) > li > a:active { transform: scale(.985); transition-duration: 110ms; }
@media (min-width: 720px) {
	main.v4-guide .v4-guide-body > h2 + ul:has(> li:first-child > a:only-child):has(> li:last-child > a:only-child):not(:has(> li > :not(a))):not(:has(> li > a ~ a)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the topic icons (the same drawings as inc/v4-guides.php, in the pill-text blue) */
main.v4-guide .v4-guide-body a[data-v4-g="cost"] { --v4-gi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5786' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.6 12.1V5A1.4 1.4 0 0 1 5 3.6h7.1c.37 0 .73.15.99.41l7.4 7.4a1.4 1.4 0 0 1 0 1.98l-7.1 7.1a1.4 1.4 0 0 1-1.98 0l-7.4-7.4a1.4 1.4 0 0 1-.41-.99Z'/%3E%3Ccircle cx='8.3' cy='8.3' r='1.7'/%3E%3C/svg%3E"); }
main.v4-guide .v4-guide-body a[data-v4-g="plan"] { --v4-gi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5786' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3.2' width='6' height='5' rx='1.5'/%3E%3Crect x='3.2' y='15.8' width='6' height='5' rx='1.5'/%3E%3Crect x='14.8' y='15.8' width='6' height='5' rx='1.5'/%3E%3Cpath d='M12 8.2v3.6M6.2 15.8v-1.9a2 2 0 0 1 2-2h7.6a2 2 0 0 1 2 2v1.9'/%3E%3C/svg%3E"); }
main.v4-guide .v4-guide-body a[data-v4-g="google"] { --v4-gi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5786' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.6' cy='10.6' r='6.4'/%3E%3Cpath d='m15.4 15.4 5.1 5.1'/%3E%3C/svg%3E"); }
main.v4-guide .v4-guide-body a[data-v4-g="law"] { --v4-gi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5786' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.2 4.8 6.1v5.4c0 4.5 3 8 7.2 9.3 4.2-1.3 7.2-4.8 7.2-9.3V6.1L12 3.2Z'/%3E%3Cpath d='m8.9 12.1 2.2 2.2 4-4.4'/%3E%3C/svg%3E"); }
main.v4-guide .v4-guide-body a[data-v4-g="run"] { --v4-gi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5786' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.3 17.4a8.6 8.6 0 1 1 15.4 0'/%3E%3Cpath d='m12 13.4 3.9-4.3'/%3E%3Ccircle cx='12' cy='13.6' r='1.5'/%3E%3C/svg%3E"); }
main.v4-guide .v4-guide-body a[data-v4-g="trade"] { --v4-gi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5786' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.2' y='8.2' width='17.6' height='11.8' rx='2.2'/%3E%3Cpath d='M8.6 8.2V6.4A1.6 1.6 0 0 1 10.2 4.8h3.6a1.6 1.6 0 0 1 1.6 1.6v1.8M3.2 13.2h17.6M10.2 13.2v2.2h3.6v-2.2'/%3E%3C/svg%3E"); }
main.v4-guide .v4-guide-body a[data-v4-g="words"] { --v4-gi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5786' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.6A2.6 2.6 0 0 1 6.6 4h10.8A2.6 2.6 0 0 1 20 6.6v6.8a2.6 2.6 0 0 1-2.6 2.6H10.2L5.6 20v-4.1A2.6 2.6 0 0 1 4 13.4V6.6Z'/%3E%3Cpath d='M8.2 8.6h7.6M8.2 11.8h4.8'/%3E%3C/svg%3E"); }

/* ---------- separators, pictures, code, details ---------- */
main.v4-guide .v4-guide-body > :is(hr, .wp-block-separator) { width: 100%; height: 1px; margin-top: clamp(44px, 5vw, 64px); border: 0; background: var(--line); color: var(--line); opacity: 1; }
main.v4-guide .v4-guide-body > :is(hr, .wp-block-separator) + h2 { margin-top: clamp(36px, 4.4vw, 52px); }
main.v4-guide .v4-guide-body > :is(figure.wp-block-image, .wp-block-image, figure:not(.wp-block-table)) { margin: clamp(28px, 3.4vw, 40px) 0 0; }
main.v4-guide .v4-guide-body figure img { display: block; max-width: 100%; height: auto; border-radius: var(--r-l); }
main.v4-guide .v4-guide-body figure figcaption { margin-top: 12px; font-size: .875rem; line-height: 1.5; color: var(--mute); text-align: center; }
main.v4-guide .v4-guide-body :not(pre) > code { padding: .12em .42em; border-radius: 7px; background: var(--wash); color: var(--ink); font-size: .86em; overflow-wrap: anywhere; }
main.v4-guide .v4-guide-body pre { margin-top: 28px; padding: 20px 22px; border-radius: var(--r-m); background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: .875rem; line-height: 1.6; overflow-x: auto; white-space: pre; }
main.v4-guide .v4-guide-body pre code { padding: 0; background: none; font-size: inherit; }
main.v4-guide .v4-guide-body > .wp-block-details { margin-top: 24px; font-size: 1.0625rem; }
main.v4-guide .v4-guide-body > .wp-block-details + .wp-block-details { margin-top: 12px; }
main.v4-guide .v4-guide-body > .wp-block-details > :not(summary) + :not(summary) { margin-top: 12px; }

/* ---------- the /guides/ hub ---------- */
main.v4-hub { margin-top: 0; padding: clamp(16px, 2.4vw, 28px) 0 clamp(24px, 3vw, 48px); }
.v4-hub-stage { display: grid; grid-template-columns: minmax(0, 1fr); text-align: left; padding: 44px 22px 32px; }
.v4-hub-stage > *, .v4-hub-head > * { margin: 0; }
.v4-hub-head { display: flex; flex-direction: column; align-items: flex-start; }
.v4-hub-stage .hs-eyebrow { background: var(--paper); box-shadow: var(--sh-1); }
main.v4-hub .v4-hub-stage h1 { margin-top: clamp(18px, 2vw, 26px); max-width: 12em; font-size: clamp(2.5rem, 1.35rem + 4.4vw, 4.25rem); line-height: 1.02; letter-spacing: -.045em; }
main.v4-hub .v4-hub-stage .v4-hub-lead { margin-top: clamp(18px, 2.2vw, 28px); max-width: 30em; font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem); line-height: 1.5; color: var(--body) !important; }
main.v4-hub .v4-hub-stage .hs-text-link { margin-top: clamp(22px, 2.6vw, 32px); font-size: .9375rem !important; }
main.v4-hub .v4-hub-stage .hs-text-link a {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 8px 14px 8px 20px; border-radius: var(--pill);
	background: var(--paper); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 700; text-decoration: none;
	transition: transform 260ms var(--e-soft), box-shadow 260ms var(--e-soft);
}
main.v4-hub .v4-hub-stage .hs-text-link a::after {
	content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%;
	background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23142033' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 13h9.5M13.5 9l4 4-4 4'/%3E%3C/svg%3E") center / 26px no-repeat;
	transition: transform 320ms var(--spring);
}
@media (hover: hover) {
	main.v4-hub .v4-hub-stage .hs-text-link a:hover { transform: translateY(-2px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
	main.v4-hub .v4-hub-stage .hs-text-link a:hover::after { transform: translateX(3px); }
}
.v4-hub-stage > .v4-g-art { width: 100%; max-width: 330px; margin: 36px auto 0; }
@media (min-width: 600px) { .v4-hub-stage { padding: clamp(56px, 7vw, 96px) clamp(28px, 5vw, 64px) clamp(48px, 6vw, 80px); } .v4-hub-stage > .v4-g-art { max-width: 420px; } }
@media (min-width: 1000px) {
	.v4-hub-stage { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; column-gap: clamp(40px, 5vw, 80px); padding: clamp(64px, 6vw, 96px) clamp(48px, 5vw, 80px); }
	.v4-hub-stage > .v4-g-art { max-width: 500px; margin: 0; justify-self: end; }
}

/* the groups: the topic's icon and heading, then the guide cards in an uneven bento */
main.v4-hub .hs-guides-hub { box-sizing: border-box; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: clamp(56px, 7vw, 104px) auto 0; padding-inline: var(--gut); }
main.v4-hub .hs-guide-group + .hs-guide-group { margin-top: clamp(72px, 8.4vw, 120px); }
main.v4-hub .v4-hub-gh { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 20px); margin: 0 0 clamp(24px, 2.8vw, 36px); }
main.v4-hub .v4-hub-ico {
	flex: none; display: grid; place-items: center; width: clamp(48px, 4.6vw, 60px); aspect-ratio: 1; border-radius: clamp(15px, 1.4vw, 19px);
	background: var(--wash); box-shadow: inset 0 0 0 1px rgba(var(--glow), .45); color: var(--accent-deep);
}
main.v4-hub .v4-hub-ico .v4-g-icon { width: 50%; height: 50%; }
main.v4-hub .hs-guide-group h2 { margin: 0; font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem) !important; line-height: 1.06; letter-spacing: -.04em; scroll-margin-top: 16px; }
main.v4-hub .hs-guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 640px) and (max-width: 999px) {
	main.v4-hub .hs-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	main.v4-hub .hs-guide-grid > .hs-card:first-child { grid-column: 1 / -1; }
	/* a lone last card takes the row */
	main.v4-hub .hs-guide-grid > .hs-card:last-child:nth-child(2n+2) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
	main.v4-hub .hs-guide-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	main.v4-hub .hs-guide-grid > .hs-card { grid-column: span 4; }
	main.v4-hub .hs-guide-grid > .hs-card:first-child { grid-column: span 7; }
	main.v4-hub .hs-guide-grid > .hs-card:nth-child(2), main.v4-hub .hs-guide-grid > .hs-card:nth-child(3) { grid-column: span 5; }
	/* with three or more guides the lead takes two rows, so the next two stack beside it */
	main.v4-hub .hs-guide-grid:has(> .hs-card:nth-child(3)) > .hs-card:first-child { grid-row: span 2; }
	main.v4-hub .hs-guide-grid > .hs-card:only-child { grid-column: 1 / -1; }
	/* after the first block the rows go three, then two wider quiet tiles (4+4+4, 6+6), so a long topic never reads as a
	   wall of equal cards; a last row that would be left with a gap is shared out */
	main.v4-hub .hs-guide-grid > .hs-card:nth-child(5n+7), main.v4-hub .hs-guide-grid > .hs-card:nth-child(5n+8) { grid-column: span 6; }
	main.v4-hub .hs-guide-grid > .hs-card:nth-child(n+4):last-child:nth-child(5n+4) { grid-column: 1 / -1; }
	main.v4-hub .hs-guide-grid:has(> .hs-card:nth-child(n+5):last-child:nth-child(5n)) > .hs-card:nth-last-child(-n+2) { grid-column: span 6; }
	main.v4-hub .hs-guide-grid > .hs-card:nth-child(n+7):last-child:nth-child(5n+2) { grid-column: 1 / -1; }
	/* every other topic leads from the right (5+7 instead of 7+5) */
	main.v4-hub .hs-guide-group:nth-child(even):not([aria-labelledby="free-website-wording"]) .hs-guide-grid:has(> .hs-card:nth-child(3)) > .hs-card:first-child { grid-area: 1 / 6 / span 2 / -1; }
	main.v4-hub .hs-guide-group:nth-child(even):not([aria-labelledby="free-website-wording"]) .hs-guide-grid:has(> .hs-card:nth-child(3)) > .hs-card:nth-child(2) { grid-area: 1 / 1 / auto / span 5; }
	main.v4-hub .hs-guide-group:nth-child(even):not([aria-labelledby="free-website-wording"]) .hs-guide-grid:has(> .hs-card:nth-child(3)) > .hs-card:nth-child(3) { grid-area: 2 / 1 / auto / span 5; }
}

/* free website wording: its own soft field, compact cards four across */
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] {
	position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 56px);
	border-radius: var(--r-xl); background: linear-gradient(168deg, var(--wash) 0%, var(--wash-2) 100%);
}
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"]::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(55% 60% at 85% 0%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%), radial-gradient(40% 55% at 0% 100%, rgba(var(--glow), .16), rgba(var(--glow), 0) 70%);
}
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .v4-hub-ico { background: var(--paper); box-shadow: var(--sh-1); }
@media (min-width: 1000px) {
	main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-guide-grid > .hs-card { grid-column: auto !important; grid-row: auto !important; }
}
@media (min-width: 640px) and (max-width: 999px) {
	main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-guide-grid > .hs-card { grid-column: auto; }
}

/* ---------- the guide card (hub and archives) ---------- */
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card {
	display: flex; flex-direction: column; align-items: flex-start; gap: 0; height: 100%; box-sizing: border-box; margin: 0;
	padding: clamp(22px, 2.4vw, 30px) !important; border-radius: var(--r-l) !important; background: var(--paper) !important;
	box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card > * { margin: 0; }
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card .hs-eyebrow { min-height: 28px; padding: 3px 12px 3px 10px !important; font-size: .75rem !important; background: var(--mist); color: var(--body) !important; }
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card .hs-eyebrow::before { width: 6px; height: 6px; background: var(--edge); }
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card :is(h2, h3) {
	margin-top: 16px; font-size: 1.25rem !important; line-height: 1.22; letter-spacing: -.025em; font-weight: 800; color: var(--ink); text-wrap: balance;
	transition: color 220ms var(--e-soft);
}
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card :is(h2, h3) a { color: inherit; text-decoration: none; }
/* the whole card is the link (the title link stretched over it) */
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
@supports selector(:has(a)) {
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card :is(h2, h3) a:focus-visible { outline: none; }
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
}
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card :is(.wp-block-post-excerpt__excerpt, .wp-block-post-excerpt) { margin-top: 10px; font-size: .9375rem; line-height: 1.6; color: var(--body); }
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card .wp-block-post-excerpt__excerpt { margin: 10px 0 0; }
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card::after {
	content: ""; flex: none; width: 36px; height: 36px; margin-top: auto; align-self: flex-end; translate: 0 8px; border-radius: 50%;
	background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' fill='none' stroke='%23142033' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 18h12M18.5 12.5 24 18l-5.5 5.5'/%3E%3C/svg%3E") center / 36px no-repeat;
	transition: transform 320ms var(--spring), background-color 220ms var(--e-soft);
}
@media (hover: hover) {
	:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
	:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card:hover::after { transform: translateX(3px); background-color: var(--wash-2); }
	:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card:hover :is(h2, h3) { color: var(--accent-text); }
}
:is(main.v4-hub .hs-guide-grid, main.v4-archive .wp-block-post-template) .hs-card:active { transform: scale(.99); transition-duration: 110ms; }

/* the wider tiles of the rhythm: mist, flat until hovered (wide screens; wording keeps its white cards) */
@media (min-width: 1000px) {
	main.v4-hub .hs-guide-group:not([aria-labelledby="free-website-wording"]) .hs-guide-grid > .hs-card:is(:nth-child(5n+7), :nth-child(5n+8)) { background: var(--mist) !important; box-shadow: inset 0 0 0 1px rgba(20, 32, 51, .04); }
	main.v4-hub .hs-guide-group:not([aria-labelledby="free-website-wording"]) .hs-guide-grid > .hs-card:is(:nth-child(5n+7), :nth-child(5n+8)) .hs-eyebrow { background: var(--paper); }
	main.v4-hub .hs-guide-group:not([aria-labelledby="free-website-wording"]) .hs-guide-grid > .hs-card:is(:nth-child(5n+7), :nth-child(5n+8))::after { background-color: var(--paper); }
}

/* the lead card of each topic: a soft field, a larger title and the topic's drawing */
main.v4-hub .hs-guide-grid > .hs-card:first-child { background: linear-gradient(160deg, var(--wash) 0%, var(--wash-2) 100%) !important; box-shadow: var(--sh-1), inset 0 0 0 1px rgba(var(--glow), .3); overflow: hidden; isolation: isolate; }
main.v4-hub .hs-guide-grid > .hs-card:first-child::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
	background: radial-gradient(60% 80% at 92% 0%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%), radial-gradient(45% 65% at 0% 100%, rgba(var(--glow), .2), rgba(var(--glow), 0) 70%);
}
main.v4-hub .hs-guide-grid > .hs-card:first-child .hs-eyebrow { background: var(--paper); }
main.v4-hub .hs-guide-grid > .hs-card:first-child h3 { margin-top: 20px; max-width: 20em; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem) !important; line-height: 1.12; letter-spacing: -.035em; }
main.v4-hub .hs-guide-grid > .hs-card:first-child .wp-block-post-excerpt__excerpt { max-width: 34em; font-size: 1rem; }
main.v4-hub .hs-guide-grid > .hs-card:first-child::after { background-color: var(--paper); }
@media (hover: hover) { main.v4-hub .hs-guide-grid > .hs-card:first-child:hover::after { background-color: var(--paper); } }
@media (min-width: 1000px) {
	main.v4-hub .hs-guide-grid:has(> .hs-card:nth-child(3)) > .hs-card:first-child h3 { font-size: clamp(1.625rem, 1.1rem + 1.4vw, 2.375rem) !important; }
	main.v4-hub .hs-guide-grid:has(> .hs-card:nth-child(3)) > .hs-card:first-child .wp-block-post-excerpt__excerpt { font-size: 1.0625rem; }
}
/* the topic's drawing: a small white screen on the field */
main.v4-hub .v4-hub-mini {
	display: block; width: min(60%, 280px); aspect-ratio: 240 / 168; margin-top: 24px; border-radius: clamp(14px, 1.6vw, 20px); overflow: hidden;
	background: var(--paper); box-shadow: var(--sh-3), inset 0 0 0 1px var(--line); rotate: -2deg;
	transition: rotate 600ms var(--spring), translate 600ms var(--spring);
}
main.v4-hub .v4-hub-mini .v4-g-scene { width: 100%; height: 100%; }
main.v4-hub .hs-card:has(.v4-hub-mini)::after { margin-top: -36px; }
@media (hover: hover) { main.v4-hub .hs-card:hover .v4-hub-mini { rotate: 0deg; translate: 0 -4px; } }
@media (min-width: 1000px) {
	main.v4-hub .hs-guide-grid:has(> .hs-card:nth-child(3)) .v4-hub-mini { width: min(62%, 340px); margin-top: auto; padding-top: 0; }
	main.v4-hub .hs-guide-grid:has(> .hs-card:nth-child(3)) > .hs-card:first-child .wp-block-post-excerpt__excerpt { margin-bottom: 28px; }
}

/* compact wording cards */
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-card { padding: 20px 20px 22px !important; border-radius: var(--r-m) !important; }
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-card h3 { margin-top: 14px; font-size: 1.0625rem !important; line-height: 1.3; letter-spacing: -.015em; }
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-card .wp-block-post-excerpt__excerpt { font-size: .875rem; line-height: 1.55; }
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-card::after { width: 30px; height: 30px; background-size: 30px; translate: 0 6px; }
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-guide-grid > .hs-card:first-child { background: var(--paper) !important; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-guide-grid > .hs-card:first-child::before { display: none; }
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-guide-grid > .hs-card:first-child h3 { margin-top: 14px; font-size: 1.0625rem !important; line-height: 1.3; letter-spacing: -.015em; }
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-guide-grid > .hs-card:first-child .wp-block-post-excerpt__excerpt { font-size: .875rem; }
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-guide-grid > .hs-card:first-child::after { background-color: var(--wash); }
main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] .hs-card .hs-eyebrow { background: var(--mist); }
/* light motion on the hub: cards rise (v4.js), their small labels stay still */
.v4-motion main.v4-hub .hs-card .hs-eyebrow.v4-in, .v4-motion main.v4-archive .hs-card .hs-eyebrow.v4-in { animation: none; }

/* ---------- archives (templates/archive.html; the topic and author archives send visitors to the hub) ---------- */
main.v4-archive { margin-top: 0; padding: clamp(16px, 2.4vw, 28px) 0 clamp(56px, 7vw, 96px); }
.v4-archive-stage { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: clamp(44px, 6.4vw, 96px) clamp(22px, 5vw, 80px); }
.v4-archive-stage > * { margin: 0; }
main.v4-archive .v4-archive-stage .wp-block-query-title { max-width: 16em; font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); line-height: 1.04; letter-spacing: -.042em; }
main.v4-archive .v4-archive-list { box-sizing: border-box; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: clamp(44px, 5.6vw, 80px) auto 0; padding-inline: var(--gut); }
main.v4-archive .wp-block-post-template { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: var(--gap) !important; margin: 0; padding: 0; list-style: none; }
main.v4-archive .wp-block-post-template > li { margin: 0; }
@media (min-width: 640px) and (max-width: 999px) {
	main.v4-archive .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	main.v4-archive .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
	main.v4-archive .wp-block-post-template { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
	main.v4-archive .wp-block-post-template > li { grid-column: span 4; }
	/* 7+5, then rows of three; a last row of one or two is shared out */
	main.v4-archive .wp-block-post-template > li:first-child { grid-column: span 7; }
	main.v4-archive .wp-block-post-template > li:nth-child(2) { grid-column: span 5; }
	main.v4-archive .wp-block-post-template > li:only-child { grid-column: 1 / -1; }
	main.v4-archive .wp-block-post-template > li:nth-child(n+3):last-child:nth-child(3n) { grid-column: 1 / -1; }
	main.v4-archive .wp-block-post-template:has(> li:nth-child(n+4):last-child:nth-child(3n+1)) > li:nth-last-child(-n+2) { grid-column: span 6; }
	main.v4-archive .wp-block-post-template > li:first-child .hs-card :is(h2, h3) { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem) !important; line-height: 1.14; letter-spacing: -.032em; }
}
main.v4-archive .wp-block-post-template > li:first-child .hs-card { background: linear-gradient(160deg, var(--wash) 0%, var(--wash-2) 100%) !important; box-shadow: var(--sh-1), inset 0 0 0 1px rgba(var(--glow), .3); }
main.v4-archive .wp-block-post-template > li:first-child .hs-card::after { background-color: var(--paper); }
main.v4-archive .hs-card .wp-block-post-date { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border-radius: var(--pill); background: var(--mist); font-size: .8125rem; font-weight: 600; color: var(--body) !important; }
main.v4-archive .wp-block-post-template > li:first-child .hs-card .wp-block-post-date { background: var(--paper); }
main.v4-archive .wp-block-query-pagination { margin-top: clamp(32px, 4vw, 48px); gap: 12px; }
main.v4-archive .wp-block-query-pagination > a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; box-sizing: border-box; padding: 10px 22px; border-radius: var(--pill);
	background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--edge); color: var(--ink); font-weight: 700; text-decoration: none;
	transition: transform 260ms var(--e-soft), box-shadow 260ms var(--e-soft);
}
main.v4-archive .wp-block-query-pagination > a:hover { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
main.v4-archive .wp-block-query-pagination-numbers { display: flex; gap: 6px; }
main.v4-archive .wp-block-query-pagination-numbers .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: var(--pill); color: var(--ink); font-weight: 700; text-decoration: none; }
main.v4-archive .wp-block-query-pagination-numbers .page-numbers.current { background: var(--wash-2); }

/* (the heading accent phrase, the Azure gradient with one shine, now comes from the foundation, v4.css: integrator, 17 Nov) */

/* ---------- motion (only with html.v4-motion; reduced motion: none of this runs) ----------
   Every start state is visible (opacity .3 or more); each runs once and leaves nothing behind (fill: backwards). */
@keyframes v4-guides-in { from { opacity: .3; translate: 0 7cqw; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes v4-guides-pop { from { opacity: .35; scale: .55; } to { opacity: 1; scale: 1; } }
@keyframes v4-guides-tile { from { opacity: .35; transform: translate3d(0, 8px, 0) scale(.82); } to { opacity: 1; transform: none; } }
.v4-motion :is(.v4-guide-stage, .v4-hub-stage) .v4-g-art :is(.v4-g-sheet, .v4-g-card) { animation: v4-guides-in 1100ms var(--e-out) backwards; animation-delay: calc(240ms + var(--k, 0) * 130ms); }
.v4-motion :is(.v4-guide-stage, .v4-hub-stage) .v4-g-art .v4-g-chip { animation: v4-guides-pop 820ms var(--spring) backwards; animation-delay: calc(520ms + var(--k, 0) * 110ms); }
.v4-motion :is(.v4-guide-stage, .v4-hub-stage) .v4-g-art .v4-g-floor { animation: v4-rise-s 1100ms var(--e-out) backwards; animation-delay: 200ms; }
.v4-motion main.v4-hub .hs-card.v4-in .v4-hub-mini { animation: v4-guides-in 1000ms var(--e-out) backwards; animation-delay: calc(var(--i, 0) * 85ms + 260ms); }
.v4-motion main.v4-hub .hs-guide-group .v4-hub-ico.v4-g-in { animation: v4-guides-tile 760ms var(--spring) backwards; }
.v4-motion main.v4-guide .v4-guide-body > h2[data-v4-n].v4-in::before { animation: v4-guides-tile 760ms var(--spring) backwards; }
/* blocks of the guide that v4.js leaves alone (v4-guides.js marks them): a small rise as they arrive */
.v4-motion main.v4-guide .v4-g-r.v4-g-in { animation: v4-rise-s 760ms var(--e-out) backwards; animation-delay: calc(var(--i, 0) * 70ms); }

/* ---------- phones ---------- */
@media (max-width: 600px) {
	.v4-guide-stage { padding: 30px 20px 30px; }
	main.v4-guide .v4-guide-stage .wp-block-post-title { font-size: clamp(1.875rem, 1.1rem + 3.6vw, 2.25rem); line-height: 1.08; }
	main.v4-guide .v4-guide-body { font-size: 1.0625rem; line-height: 1.7; }
	main.v4-guide .v4-guide-body > p:first-child { font-size: 1.125rem; }
	main.v4-guide .v4-guide-body > h2[data-v4-n]::before { width: 42px; height: 32px; margin-bottom: 14px; border-radius: 11px; font-size: .8125rem; }
	main.v4-guide .v4-guide-body > blockquote:has(> p:first-child > strong:only-child)::after { width: 36px; height: 36px; border-radius: 12px; background-size: 20px; }
	.v4-archive-stage { padding: 44px 22px 40px; }
	main.v4-hub .hs-guide-group[aria-labelledby="free-website-wording"] { padding: 32px 16px 20px; border-radius: var(--r-l); }
}
@media (max-width: 359px) {
	.v4-guide-stage { padding: 26px 16px 26px; }
	.v4-guide-stage > .v4-g-art { width: 96px; }
}

@media print {
	.v4-guide-stage { display: block; background: none; padding: 0; }
	.v4-guide-stage::before, .v4-g-art { display: none; }
	main.v4-guide .v4-guide-body > nav[aria-label] { position: static; }
}

/* 4.0.2 (Dan, 18 Nov 2026): the "Get a quote" card in the lead form's slot while the lead form is off (inc/guide-cta.php).
   A light card: one line and the house button; the button goes full width on phones. */
main.v4-guide .hs-gq { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 2em 0; padding: 22px 24px; border-radius: var(--r-l); background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
main.v4-guide .hs-gq-t { flex: 1 1 260px; margin: 0 !important; color: var(--ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
main.v4-guide .hs-gq .hs-gq-btn { flex: none; color: var(--b-ink); text-decoration: none; }
@media (max-width: 480px) {
	main.v4-guide .hs-gq { padding: 18px; }
	main.v4-guide .hs-gq .hs-gq-btn { width: 100%; }
}
@media print { main.v4-guide .hs-gq { display: none; } }
