/* Arvanu design system, Nov 2026 redesign "Shown working" (PRODUCT.md, Design System).
   Loaded by every page (build.mjs, newDesign), before the page's own stylesheet.
   Holds what more than one page needs: tokens, type, the 12-column grid, header, footer, consent banner, buttons and links,
   margin notes with leader lines, side facts, sections, rows and project stages, and the film player.
   Rule: approved material sits in columns 1 to 9, with margin notes in columns 10 to 12 that point at real details. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-latin-600-normal.woff2) format("woff2");
}

:root {
  /* Named colours, one job each */
  --paper: #FFFFFF;  /* page, and leader lines where they cross a dark screenshot */
  --ink: #1F3329;    /* text, primary button fill, leader lines, focus ring */
  --muted: #55605A;  /* secondary text */
  --rule: #DADFD8;   /* hairlines between rows and sections */
  --control-border: #7D877F; /* the edge of controls (calendar days, times, the copy button): 3:1 on white */
  --mark: #FFE45C;   /* highlight behind key facts only (fixed fee, in writing) */

  /* Type scale, desktop 16 / 20 / 26 / 36 / 72, plus 14 for captions and small print */
  --t-h1: 72px;
  --t-h2: 36px;
  --t-h3: 26px;
  --t-lead: 20px;
  --t-body: 16px;
  --t-small: 14px;

  /* Spacing, 8px base */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --sec: 64px;

  --gap: 24px;
  --gutter: clamp(16px, 5vw, 56px);
  --font: "Schibsted Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* While the consent banner shows, the page ends above it and focused elements scroll clear of it (consent.js sets --consent-space). */
body:has(> .consent-banner:not([hidden])) { padding-bottom: var(--consent-space, 200px); }
html:has(.consent-banner:not([hidden])) { scroll-padding-bottom: var(--consent-space, 200px); }
/* The open phone menu stops above a visible banner (consent.js sets --consent-h to the banner height; this is the fallback). */
html:has(.consent-banner:not([hidden])) { --consent-h: var(--consent-space, 200px); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; }
a { color: var(--ink); }
button { font: inherit; color: inherit; }
mark {
  color: var(--ink);
  background: linear-gradient(transparent 6%, var(--mark) 6%, var(--mark) 94%, transparent 94%);
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.muted { color: var(--muted); }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* "15-minute" never breaks at its hyphen (build.mjs wraps each one). display: contents keeps the words in their parent's
   line, so inside a flex button the label stays one run with its spaces; the text still inherits nowrap. */
.nobreak { display: contents; white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: fixed; left: var(--gutter); top: -100px; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 6px; z-index: 1200; font-weight: 600; }
.skip-link:focus { top: 8px; }

/* ---------- One container and one 12-column grid for header, body and footer ---------- */
.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: content-box;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.c-main { grid-column: 1 / 10; }
.c-side { grid-column: 10 / 13; }

/* ---------- Buttons and links ---------- */
.btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font: 600 var(--t-body)/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 150ms ease;
}
/* Hover lightens the button and never lifts it (redesign, 13 Nov 2026) */
.btn:hover, .button:hover { opacity: 0.88; }
.button-small { min-height: 44px; padding: 0 16px; }
.btn-line { background: var(--paper); color: var(--ink); }
.quiet, .text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.quiet, .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.quiet:hover, .text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header (layout.html markup, shared with the old system) ---------- */
/* Pinned header (Michael, 6 Nov 2026). The header keeps its full height in the page (--header-h), so nothing below it ever
   moves (CLS 0). With JavaScript it is sticky with a negative top, so once pinned only a compact band (--header-pin) shows;
   app.js adds .is-compact after a few pixels of scroll, which centres the row in that band and scales the logo (transforms
   only). The surface stays solid white with its hairline (redesign, 13 Nov 2026: no frost, no backdrop blur, and no
   reading-progress line, as marker yellow means "fixed in writing"). Without JavaScript the header is pinned at full height on
   wider screens; on phones it scrolls away, because there its links show in the header (no menu button) and it would cover most of the screen.
   Anchors and focused elements land below the pinned band (scroll-padding-top). Print: a static header. */
:root { --header-h: 80px; --header-pin: 64px; }
/* the hairline under the header is 1px, so the pinned band is --header-pin + 1px */
html { scroll-padding-top: calc(var(--header-pin) + 1px); }
html:not(.has-js) { scroll-padding-top: calc(var(--header-h) + 1px); }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
html.has-js .site-header { top: calc(var(--header-pin) - var(--header-h)); }
.header-inner { transition: transform 200ms ease; }
.wordmark img { transform-origin: 0 50%; transition: transform 200ms ease; }
.site-header.is-compact .header-inner { transform: translateY(calc((var(--header-h) - var(--header-pin)) / 2)); }
.site-header.is-compact .wordmark img { transform: scale(0.86); }
@media print {
  .site-header, html.has-js .site-header { position: static; }
  .site-header.is-compact .header-inner, .site-header.is-compact .wordmark img { transform: none; }
}
.header-inner { display: flex; align-items: center; gap: var(--s3); min-height: 80px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.wordmark img { height: 36px; width: auto; }
#site-nav { display: flex; align-items: center; gap: var(--s3); }
#site-nav > a, .nav-group > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
#site-nav > a:hover, .nav-group > a:hover, #site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
#site-nav > .button { display: none; }  /* the header keeps one "Book a call", the one after the navigation */
.header-book { order: 2; }
.menu-toggle { display: none; order: 3; }
.nav-group { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 44px; padding: 0; background: none; border: 0; border-radius: 4px; cursor: pointer; color: var(--ink); }
.nav-sub-toggle svg { stroke: currentColor; stroke-width: 1.6; fill: none; transition: transform 150ms ease; }
.nav-sub-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.nav-sub { display: none; position: absolute; top: calc(100% - 2px); left: -12px; z-index: 50; min-width: 300px; margin: 0; padding: var(--s1); background: var(--paper); border: 1px solid var(--ink); border-radius: 6px; }
.nav-sub a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 4px; text-decoration: none; white-space: nowrap; }
.nav-sub a:hover, .nav-sub a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
/* A path with a second line ("Have someone own AI", then "Fractional Head of AI"): the two lines stack inside one 44px+ link */
.nav-sub a:has(.nav-sub-note) { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 6px; }
.nav-sub-note { display: block; font-size: var(--t-small); line-height: 1.3; color: var(--muted); }
.nav-sub li:last-child { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 6px; }
@media (min-width: 701px) {
  .nav-group:not(.sub-dismissed):hover .nav-sub, .nav-sub-toggle[aria-expanded=true] + .nav-sub { display: block; }
}
@media (min-width: 701px) and (max-width: 1099px) {
  .header-inner, #site-nav { gap: var(--s2); }
  #site-nav { font-size: 15px; }
}
@media (min-width: 701px) and (max-width: 860px) {
  .header-inner { gap: 12px; }
  #site-nav { gap: 12px; font-size: var(--t-small); }
  .wordmark img { height: 30px; }
  .header-book { padding-inline: 12px; font-size: var(--t-small); }
}

h2, h3 { text-wrap: balance; }

/* ---------- The bench: an artefact in columns 1 to 9, margin notes in 10 to 12, tied by leader lines ---------- */
.bench {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: var(--s4);
}
.art {
  grid-column: 1 / 10;
  grid-row: 1;
  position: relative;
  --w: 1440;
  --h: 870;
}
.art img { width: 100%; border-radius: 2px; }
.leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.leaders path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: square; }
.art-dark .leaders .halo path { stroke: rgb(31 51 41 / 0.6); stroke-width: 3.5px; }
.art-dark .leaders .line path { stroke: var(--paper); stroke-width: 1.25px; }
.art-light .leaders .line path { stroke: var(--ink); stroke-width: 1.25px; }
/* Where a leader leaves the dark screenshot it continues in ink across the gutter to its note */
.leaders .ink path { stroke: var(--ink); stroke-width: 1.25px; }
.leaders-up, .leaders-mid, .leaders-phone, .leaders-film-phone { display: none; }

.notes {
  grid-column: 10 / 13;
  grid-row: 1;
  position: relative;
  --h: 870;
}
.notes li {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--y) / var(--h) * 100%);
  transform: translateY(-12px);
  font-size: var(--t-body);
  line-height: 1.5;
}
/* the leader leaves the artefact, crosses the gutter and stops just short of the note */
.notes li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(var(--gap) * -1);
  width: calc(var(--gap) - 8px);
  border-top: 1.25px solid var(--ink);
}
.caption {
  grid-column: 1 / 10;
  grid-row: 2;
  margin-top: var(--s2);
  font-size: var(--t-small);
  color: var(--muted);
}

/* No lone last words in notes and side text */
.notes li, .side-facts li, .side-note, .row-side, .lead, .caption { text-wrap: pretty; }

/* ---------- Side column notes in text-led sections ---------- */
.side-note, .side-facts { font-size: var(--t-body); line-height: 1.5; }
.side-facts { display: grid; gap: var(--s2); align-content: start; }
.side-facts span { display: block; }
/* Text-led facts point at nothing, so they carry no tick: the margin column itself marks them (ticks are kept for notes with leaders) */
.side-facts .label { font-size: var(--t-small); color: var(--muted); }

/* ---------- Sections ---------- */
.sec {
  margin-top: var(--s3);   /* one 64px interval per section: 24 above the rule, 40 below (was 64 + 64) */
  padding-top: var(--s4);
  position: relative;
}
.sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--rule);
}
.sec h2 {
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 22em;
}
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 36em; }
.sec > .lead { margin-top: var(--s3); }
.cta-row { margin-top: var(--s4); }

/* A quoted line from approved material (the page places it) */
.quote blockquote p {
  font-size: var(--t-h3);
  line-height: 1.35;
  max-width: 30em;
  text-indent: -0.4em;
}
.quote figcaption { margin-top: var(--s3); }

/* Rows: paths and stages share one row system, with key facts in the side column */
.rows { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin-top: var(--s4); }
.row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding-block: var(--s4);
  border-top: 1px solid var(--rule);
}
.row:last-child { border-bottom: 1px solid var(--rule); }
.row-title { grid-column: 1 / 5; font-size: var(--t-h3); font-weight: 600; line-height: 1.2; }
/* padding with an equal negative margin gives the title link a 44px tap target without moving the layout */
.row-title a { display: inline-block; padding-block: 9px; margin-block: -9px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--muted); }
.row-title a:hover, .row-title a:focus-visible { text-decoration-color: var(--ink); }
.row-body { grid-column: 5 / 10; max-width: 32em; padding-right: var(--s3); }
.row-side { grid-column: 10 / 13; gap: 2px; }
.small-print { margin-top: var(--s3); color: var(--muted); }
.small-print .text-link { display: flex; width: max-content; }
/* Starting prices as rows (/services/, AI implementation, custom development): the offer, what it is, and the price in the
   margin column */
.price-row h3 { grid-column: 1 / 5; font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }
.price-row .price-note { grid-column: 5 / 10; grid-row: 1; max-width: 32em; padding-right: var(--s3); }
.price-row .price { grid-column: 10 / 13; grid-row: 1; font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }
.price-terms { max-width: 48em; }
@media (max-width: 899px) {
  .price-row { display: block; }
  .price-row .price { margin-top: 4px; }
  .price-row .price-note { margin-top: 4px; padding-right: 0; }
}

/* Project stages (Find it, Build it, Hand it over): a real sequence on the row system (the page places the groups) */
.stages .row { padding-block: var(--s3); }  /* the stages read as one sequence (phones override below) */
.stages .row:last-child { border-bottom: 0; }
.stages-end .row { padding-bottom: 0; }
/* the stage number and its text read as one unit: number in column 1, text from column 2, deliverables stay in the margin */
.row-when { grid-column: 1 / 2; font-size: var(--t-h3); font-weight: 600; line-height: 1.2; }
.stages .row-body { grid-column: 2 / 10; max-width: 36em; }
.stages h3 { font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }
.stages .row-body p { margin-top: var(--s1); }
.stages .row-side b { font-size: var(--t-lead); line-height: 1.3; }
.have { margin-top: var(--s1); display: grid; gap: 4px; }
/* "How it works" ends on its own last rule; the next section's rule follows, so no double hairline */
#how-it-works .principles .row:last-child { border-bottom: 0; }
/* The same for "Does this sound like your company?" on /services/ai-implementation/, which ends on "The admin trap" */
#problems .row:last-child { border-bottom: 0; }
/* ...and its FAQ: the last question's rule closes the list, so "When to go further" needs no rule of its own */
#faq + [aria-labelledby="h-further"]::before { display: none; }
/* And "What we build" on /services/custom-ai-development/, which ends on "Full platforms and products" */
#build .row:last-child { border-bottom: 0; }
.have li { padding-left: 24px; position: relative; }
.have li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; border-top: 1px solid var(--rule); }  /* a list mark, not a pointer: no ink */

/* ---------- Proposal sheet (/sample-proposal/; the home hero's shorter sheet uses the same parts) ----------
   A bordered page of terms: a head with the title and a muted note, a definition list of terms (label, value), the fixed
   terms in bold with marker yellow behind the fixed value, then the signature lines. Marker yellow means "fixed in writing". */
.sheet { border: 1px solid var(--ink); border-radius: 2px; padding: 20px 24px 22px; background: var(--paper); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.sheet-head h2, .sheet-head b { font-size: var(--t-lead); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.sheet-head p, .sheet-head span { font-size: var(--t-small); color: var(--muted); text-align: right; }
.terms { margin: 0; }
.term { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: var(--s2); padding-block: 11px; border-bottom: 1px solid var(--rule); }
.term dt { font-size: var(--t-small); color: var(--muted); padding-top: 2px; }
.term dd { margin: 0; line-height: 1.45; }
.term.is-fixed dd { font-weight: 600; }
.sign-note { margin-top: 20px; font-size: var(--t-small); color: var(--muted); }
.sign { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: 10px; font-size: var(--t-small); color: var(--muted); }
.sign-line { display: block; height: 22px; margin-bottom: 4px; border-bottom: 1px solid var(--ink); }
@media (max-width: 899px) {
  .sheet { padding: var(--s2); }
  .sheet-head { flex-direction: column; gap: 4px; }
  .sheet-head p, .sheet-head span { text-align: left; }
  .term { grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: 12px; }
}
/* On paper the marker's background may not print: the fixed values keep an underline instead */
@media print {
  mark { background: none; padding: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
}

/* ---------- Film frame: a poster button that becomes an inline player (app.js, film()) ----------
   Pressing play puts a <video> (.film-video) in the poster button's place at the same aspect ratio, so the frame
   keeps its size. The video sits above the frame's own leader marks; the margin note and its line outside the
   frame stay where they are. */
.film-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.film-btn[hidden] { display: none; }
.film-btn img { box-shadow: 0 0 0 1px var(--rule); }
.film-video { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 2px; background: var(--paper); box-shadow: 0 0 0 1px var(--rule); }
.play {
  position: absolute;
  left: 5.4%;
  bottom: 9%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 150ms ease;
}
.play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 21px;
  border-left: 18px solid var(--paper);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.film-btn:hover .play { transform: scale(1.05); }

/* Desktop: side facts point at nothing, so they carry no tick. One quiet hairline per group sits in the gutter
   (the same treatment as phones); the ink corner tick stays only where a leader arrives (hero and film notes). */
@media (min-width: 900px) {
  .side-facts, .side-note, p.row-side { align-self: start; margin-left: -16px; padding-left: 15px; border-left: 1px solid var(--rule); }
}

/* ---------- Footer (partials/site-footer.html) ---------- */
.site-footer { margin-top: var(--s6); border-top: 1px solid var(--rule); padding-block: var(--s4) var(--s3); font-size: var(--t-small); }
.foot-brand { grid-column: 1 / 4; }
.foot-brand img { height: 30px; width: auto; }
.foot-brand p { margin-top: var(--s2); color: var(--muted); }
.foot-col { grid-column: span 3; display: flex; flex-direction: column; align-items: flex-start; }
.foot-col:first-of-type { grid-column: 4 / 7; }
.foot-col a, .foot-legal a, .cookie-settings { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-col a:hover, .foot-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s3); padding-top: var(--s1); border-top: 1px solid var(--rule); color: var(--muted); }
.foot-legal a, .cookie-settings { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.foot-col a { min-width: 44px; }
/* the registry number sits in a sentence: padding with an equal negative margin gives it a 44px tap target without opening the line */
.foot-legal p:first-child a { display: inline-block; min-height: 0; padding-block: 12px; margin-block: -12px; }
.cookie-settings { padding: 0; border: 0; background: none; font-size: var(--t-small); cursor: pointer; }
.cookie-settings[hidden] { display: none; }
/* Fine pointers on desktop don't need phone-sized rows */
@media (min-width: 900px) and (pointer: fine) {
  .foot-col a { min-height: 32px; }
}

/* ---------- Consent banner (layout.html markup and consent.js, restyled as a bar on the page grid) ---------- */
.consent-banner {
  position: fixed;
  z-index: 1100;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--s5);
  padding-block: var(--s2);
  padding-inline: max(var(--gutter), (100% - 1200px) / 2);
  background: var(--paper);
  border-top: 1px solid var(--ink);
  font-size: var(--t-small);
  line-height: 1.5;
}
.consent-banner[hidden] { display: none; }
/* A soft fade above the banner's top edge: on a first visit, a line of text running under the banner fades out instead of
   being sliced by the line. 12px, measured: it hides the sliver of a cut line (the ink sits within 8px of the edge at 360x780,
   360x800 and 375x812) and leaves a line that clears the edge by 5px (390x844) crisp. Decoration only (clicks pass through),
   and well inside the 32px that consent.js adds to --consent-space, so a focused element scrolled into view stops above it. */
.consent-banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 1px);
  height: 12px;
  background: linear-gradient(rgb(255 255 255 / 0), var(--paper));
  pointer-events: none;
}
.consent-banner p { grid-column: 1; max-width: 62em; }
.consent-banner [data-consent-choice] { margin-top: 4px; font-weight: 600; }
.consent-banner a { text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: var(--s1); }
.consent-actions button { min-height: 44px; min-width: 120px; padding: 0 16px; font-size: var(--t-small); border-radius: 6px; transform: none; transition: none; }
.consent-actions button:hover { transform: none; }
.consent-reject { border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; }
.consent-reject:hover { background: var(--rule); }
.consent-actions .button:first-child { min-width: 172px; }
@media print { .consent-banner, .cookie-settings { display: none !important; } body { padding-bottom: 0 !important; } html { scroll-padding-bottom: 0 !important; } }

/* ---------- Inner pages (rollout batch 1 onwards): page head, text blocks, FAQ, ladder, "Let's talk" ----------
   Class names here are not used on the homepage, so its rendering is unchanged. A section is
   <section class="sec wrap grid">: the main column (.c-main) and its side facts (.c-side) share the section's first row. */
.page-head { padding-top: var(--s4); }
.page-head .back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: var(--t-small); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.page-head h1 { margin-top: var(--s1); font-size: 52px; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; max-width: 15em; text-wrap: balance; }
.page-head .lead { margin-top: var(--s3); }
.page-head .summary { margin-top: var(--s2); max-width: 40em; }
.head-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s4); }
.head-side { align-self: end; }
/* .flow sections place their children in order: each .c-main block in columns 1 to 9, a .c-side beside the block
   before it, and .rows across the grid with facts in the margin */
.flow > * + * { margin-top: var(--s3); }
.flow > .rows { margin-top: var(--s4); }
.prose > * + * { margin-top: var(--s2); }
.prose h3, .flow > h3 { font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }
.prose > * + h3 { margin-top: var(--s4); }
.prose p, .prose li { max-width: 40em; }
.flow .row-body > * + * { margin-top: var(--s1); }
.flow .row-title { font-size: var(--t-lead); line-height: 1.3; }
.links { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.pull { font-size: var(--t-h3); line-height: 1.35; max-width: 26em; text-wrap: balance; }
.status { font-size: var(--t-small); color: var(--muted); }
.side-facts h3 { font-size: var(--t-body); font-weight: 600; }
.side-facts ol, .side-facts ul { display: grid; gap: var(--s1); }
/* FAQ: plain disclosure rows (build.mjs reads the questions for the FAQPage structured data) */
.faq-items { margin-top: var(--s3); border-top: 1px solid var(--rule); }
.faq-items details { border-bottom: 1px solid var(--rule); }
.faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 56px; padding-block: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--muted); }
.faq-items details[open] summary::after { content: "\2212"; }
.faq-items details p { padding-bottom: var(--s3); max-width: 40em; }
/* Where a service sits: the seven steps from finding the work to running it, the page's own steps in ink */
.ladder { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); font-size: var(--t-small); }
h2.ladder-title, .flow > h2.ladder-title, .sec h2.ladder-title { margin-top: var(--s4); font-size: var(--t-body); font-weight: 600; line-height: 1.5; letter-spacing: 0; }
h2.ladder-title + .ladder { margin-top: var(--s1); }
.ladder li { padding: 6px 10px; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); }
.ladder li.on { border-color: var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; }
/* "Let's talk" (partials/site-talk.html) */
.talk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.mail { display: inline-flex; align-items: center; gap: var(--s1); }
.mail-addr { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
.copy-mail { min-height: 44px; padding: 0 12px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--paper); cursor: pointer; font-size: var(--t-small); }
.copy-mail:hover { border-color: var(--ink); }
.talk-face { align-self: start; }
.talk-face img { width: 100%; max-width: 220px; border-radius: 2px; }
.talk-face figcaption { margin-top: var(--s1); font-size: var(--t-small); }
.talk-face figcaption span { display: block; color: var(--muted); }

/* The pause control app.js adds to an animated scene (.stage): a 44px round button in the scene's top right corner */
html:not(.has-js) .stage { display: none; }
html:not(.has-js) .film-btn { cursor: default; }
html:not(.has-js) .film-btn .play { display: none; }
.film-nojs { grid-column: 1 / -1; margin-top: var(--s2); }
.stage-pause { position: absolute; z-index: 5; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; background: rgb(255 255 255 / 0.94); color: var(--ink); cursor: pointer; }
.stage-pause:hover { border-color: var(--ink); }
.stage-pause svg { width: 14px; height: 14px; fill: currentColor; }
.stage .hud.br { right: 12px; }

/* Forms (booking and the contact brief builder): one field per row, labels above, 44px controls */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: var(--s2); }
.field label { font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (forced-colors: active) {
  .field [aria-invalid="true"] { outline: 2px solid CanvasText; outline-offset: -3px; }
  .field [aria-invalid="true"]:focus-visible { outline: 3px double Highlight; outline-offset: 1px; }
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field-help { font-size: var(--t-small); color: var(--muted); }
.form-error { margin-top: var(--s2); padding-left: 15px; border-left: 2px solid var(--ink); font-weight: 600; }
.form-error[hidden] { display: none; }
/* Share the existing 6px label/control gap so insertion adds only the message height. */
.field .form-error { margin-block: -3px; }

/* Sections still in the old page markup (rollout batch 2 onwards): a heading block (.head), rows of rules (.rule: title in
   columns 1 to 4, text in 5 to 9) and two text panels (.split). Not used on the homepage. */
.block > div > .head { max-width: calc((100% - 11 * var(--gap)) / 12 * 9 + 8 * var(--gap)); }
.head h2 { font-size: var(--t-h2); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.case-block { margin-top: var(--s4); }
.head p { margin-top: var(--s2); font-size: var(--t-lead); max-width: 36em; }
.rules { margin-top: var(--s4); }
.rule { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: var(--s3); border-top: 1px solid var(--rule); }
.rule > h3 { grid-column: 1 / 5; font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }
.rule > div { grid-column: 5 / 10; }
.rule > div > * + * { margin-top: var(--s1); }
.rule .aside { color: var(--muted); }
.split { margin-top: var(--s4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); max-width: calc((100% - 11 * var(--gap)) / 12 * 9 + 8 * var(--gap)); }
.panel > * + * { margin-top: var(--s2); }
.panel h2, .panel h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.2; text-wrap: balance; }
.panel a:not(.btn) { font-weight: 600; text-underline-offset: 4px; }
@media (max-width: 899px) {
  .block > div > .head, .split { max-width: none; }
  .rule { display: block; padding-block: var(--s2); }
  .rule > div { margin-top: var(--s1); }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
}

/* ---------- One approved record: the Studio drawn as one record feeding five outputs (HTML and CSS, example values) ----------
   The drawing is partials/record-drawing.html, used on the homepage (#work) and /use-cases/one-record/; each page adds its notes
   (.rec-notes, columns 10 to 12) and caption. */
.record-bench { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin-top: var(--s4); }
.record-art { grid-column: 1 / 10; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); column-gap: 48px; align-items: center; padding: var(--s4); border: 1px solid var(--rule); border-radius: 2px; }
.rec { position: relative; padding: var(--s2); border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); }
.rec-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); font-weight: 600; }
.rec-state { font-size: var(--t-small); font-weight: 400; color: var(--muted); }
.rec dl { margin: var(--s2) 0 0; display: grid; gap: 6px; }
.rec dl div { display: flex; align-items: baseline; gap: var(--s2); padding-top: 6px; border-top: 1px solid var(--rule); }
.rec dt { min-width: 8em; color: var(--muted); }
.rec dd { margin: 0; font-weight: 600; }
/* A held value is outlined in ink, not marked: marker yellow only means "fixed in writing" */
.rec dd.held { padding: 0 6px; border: 1.25px solid var(--ink); border-radius: 2px; }
/* the leader: one ink run leaves the record and a bracket spans the five outputs */
.rec::after { content: ""; position: absolute; left: 100%; top: 50%; width: 24px; border-top: 1.25px solid var(--ink); }
.outs { position: relative; display: grid; gap: 10px; padding-left: 20px; }
.outs::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 8px; border: 1.25px solid var(--ink); border-right: 0; }
.outs li { position: relative; padding-left: 12px; }
.outs li::before { content: ""; position: absolute; left: -20px; top: 12px; width: 28px; border-top: 1px solid var(--rule); }
.rec-notes { grid-column: 10 / 13; grid-row: 1; }
.record-bench .caption { grid-column: 1 / 10; grid-row: 2; }
.rec-fact { margin-top: var(--s3); font-weight: 600; max-width: 36em; }
@media (min-width: 900px) {
  .rec-notes { align-self: center; }
}
@media (max-width: 899px) {
  .rec-notes, .record-bench .caption { grid-column: 1 / -1; grid-row: auto; }
  .record-bench { display: flex; flex-direction: column; margin-top: var(--s3); }
  .record-art { grid-template-columns: minmax(0, 1fr); row-gap: var(--s3); padding: var(--s2); }
  .rec::after { left: 24px; top: 100%; width: 0; height: var(--s3); border-top: 0; border-left: 1.25px solid var(--ink); }
  .rec dt { min-width: 7em; }
  .outs { margin-left: 24px; }
  .rec-notes { margin-top: var(--s2); }
  .record-bench .caption { order: 2; }
  .rec-fact { margin-top: var(--s2); }
}

/* ---------- Medium widths: the margin is too narrow for placed notes, so the notes stack in the margin ---------- */
@media (max-width: 1179px) {
  .leaders { display: none; }
  .notes { display: grid; gap: var(--s2); align-content: start; }
  .notes li { position: static; top: auto; transform: none; }
  .notes li::before { display: none; }
}

/* ---------- Phones and small tablets: one column ---------- */
@media (max-width: 899px) {
  :root {
    --t-h1: 44px;
    --t-h2: 28px;
    --t-h3: 22px;
    --t-lead: 18px;
    --t-body: 16px;
    --s5: 40px;
    --s6: 64px;
    --sec: 40px;
  }
  main .grid, .site-footer .grid { grid-template-columns: minmax(0, 1fr); }
  .c-main, .c-side, .bench, .art, .notes, .caption, .rows, .row, .row-title, .row-body, .row-side,
  .row-when, .stages .row-body, .foot-brand, .foot-col, .foot-col:first-of-type, .foot-legal {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  /* The bench becomes one column: artefact, identification line, notes */
  .bench { display: flex; flex-direction: column; margin-top: var(--s2); }
  .caption { margin-top: var(--s1); }
  .notes { margin-top: var(--s2); }

  .sec { margin-top: var(--s2); padding-top: var(--s3); }  /* 40px between sections (16 above the rule, 24 below), the phone minimum in the brief */
  .sec > .lead { margin-top: var(--s2); }
  /* Text-led facts: one quiet hairline per group, not a tick per item */
  .side-facts, .side-note, .row-side { padding-left: var(--s2); border-left: 1px solid var(--rule); }
  .small-print { margin-top: var(--s2); }
  .quote blockquote p { font-size: var(--t-lead); line-height: 1.45; }
  .quote figcaption { margin-top: var(--s2); }
  .rows { margin-top: var(--s2); }
  .side-facts { gap: var(--s1); }
  .cta-row { margin-top: var(--s3); }
  .row { padding-block: var(--s2); row-gap: var(--s1); }
  .row-side { display: block; }
  .row-side.prices { display: grid; gap: 2px; }  /* each price on its own line, as on desktop */
  .stages .row-side b { font-size: var(--t-body); }
  /* "You get" and its value share one line on phones: the small muted label and the bold value keep them apart, no colon added */
  .stages .row-side .label { display: inline; margin-right: var(--s1); }
  .row-when { font-size: var(--t-small); font-weight: 400; color: var(--muted); }
  .stages .row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s1); row-gap: 4px; padding-block: var(--s2); }
  .stages .row-body { display: contents; }
  .stages .row-body > p, .stages .have, .stages .row-side { flex: 1 0 100%; }
  .stages .row-side { margin-top: 4px; }
  .stages-end .row { padding-bottom: 0; }
  .stages .row-body p { margin-top: 0; }
  .row-body { padding-right: 0; }

  .play { width: 48px; height: 48px; }
  .play::after { left: 19px; top: 15px; border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }

  .site-footer { margin-top: var(--s5); padding-block: var(--s2); }
  .foot-brand p { margin-top: var(--s1); }
  /* Two groups side by side (site links, contact links), the legal line full width underneath */
  .site-footer .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-col, .foot-col:first-of-type { grid-column: auto; margin-top: var(--s1); }
  .foot-legal { flex-direction: column; align-items: flex-start; gap: 0; margin-top: var(--s1); }
  /* The registry number keeps its 44px target from the rule above (12px padding with an equal negative margin, so its line
     doesn't open). The links row sits 12px below that line, so the number's target ends where Privacy's begins, without overlap. */
  .foot-legal-links { column-gap: var(--s3); margin-top: 12px; }

  .consent-banner { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding-block: 12px; }
  .consent-actions { grid-column: 1; grid-row: auto; }
  .consent-actions button { flex: 1 1 auto; min-width: 0; }
  .consent-actions .button:first-child { min-width: 0; }
}

/* ---------- Phones: the header becomes a logo, "Book a call" and a menu button (app.js opens #site-nav) ---------- */
@media (max-width: 700px) {
  :root { --header-h: 64px; --header-pin: 56px; }
  .header-inner { min-height: 64px; gap: var(--s1); position: relative; }
  .wordmark { min-width: 0; }
  .wordmark img { height: 30px; }
  .header-book { flex-shrink: 0; padding-inline: 12px; white-space: nowrap; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;  /* fits both Menu and Close without moving the booking link */
    gap: var(--s1);
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font: 400 var(--t-body)/1 var(--font);
    cursor: pointer;
  }
  .menu-toggle svg { display: none; }  /* the word "Menu" (or "Close") is the label, as in the approved mockup */
  #site-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 45; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s1) var(--gutter) var(--s3); background: var(--paper); border-bottom: 1px solid var(--ink); }
  /* the open menu scrolls between the pinned header and any visible consent banner */
  /* compact, the row sits lower in the header by half the hidden strip: the panel moves up by the same, so it meets the hairline */
  .site-header.is-compact #site-nav { top: calc(100% - (var(--header-h) - var(--header-pin)) / 2); }
  #site-nav.is-open { display: flex; max-height: calc(100vh - var(--header-h) - var(--consent-h, 0px)); max-height: calc(100dvh - var(--header-h) - var(--consent-h, 0px)); overflow-y: auto; overscroll-behavior: contain; }
  #site-nav > a, .nav-group > a { min-height: 48px; border-bottom: 1px solid var(--rule); }
  .nav-group { flex-direction: column; align-items: stretch; }
  .nav-sub-toggle { display: none; }
  .nav-sub { display: block; position: static; min-width: 0; padding: 0 0 var(--s1) var(--s2); border: 0; }
  .nav-sub a { padding: 0; white-space: normal; }
  .nav-sub li:last-child { display: none; }
  /* Without JavaScript the menu button can't work, so the links show under the logo instead. */
  html:not(.has-js) .menu-toggle { display: none; }
  html:not(.has-js) .header-inner { flex-wrap: wrap; padding-block: var(--s1); }
  html:not(.has-js) #site-nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 var(--s2); padding: 0; border: 0; width: 100%; }
  html:not(.has-js) #site-nav > a, html:not(.has-js) .nav-group > a { border: 0; min-height: 44px; }
  html:not(.has-js) .nav-group { width: 100%; }
  html:not(.has-js) .site-header { position: relative; }
  html:not(.has-js) { scroll-padding-top: 0; }
}
/* Inner pages on phones and small tablets: one column, side facts under the text they belong to */
@media (max-width: 899px) {
  .page-head { padding-top: var(--s2); }
  .page-head h1 { font-size: clamp(32px, 9vw, 36px); line-height: 1.1; }
  .page-head .lead { margin-top: var(--s2); }
  .head-ctas { margin-top: var(--s3); }
  .prose + .c-side, .page-head .head-side { margin-top: var(--s3); }
  .flow > * + * { margin-top: var(--s2); }
  .flow .row-when { font-size: 24px; font-weight: 600; color: var(--ink); }
  .flow > .rows { margin-top: var(--s3); }
  .pull { font-size: var(--t-lead); }
  .talk-face { display: flex; align-items: center; gap: var(--s2); }
  .talk-face img { width: 96px; }
}

/* Narrowest phones: when the word no longer fits beside "Book a call", the icon shows in its place (the word stays for screen readers) */
@media (max-width: 349px) {
  html.has-js .menu-toggle { width: 44px; padding: 0; justify-content: center; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .menu-toggle svg { display: block; stroke: currentColor; stroke-width: 1.6; fill: none; }
}

/* Below 320px (zoomed phones, folded cover screens) the email address no longer fits half the footer: stack the footer groups. */
@media (max-width: 319px) {
  .site-footer .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .film-btn:hover .play { transform: none; }
}

/* ---------- Service path pages (service pages redesign, 13 Nov 2026): summary band, price table, detail rows, comparison ----------
   Shared by /services/ai-implementation/, /services/custom-ai-development/ and /services/fractional-head-of-ai/; the price table
   is also the /prices/ table (moved here from prices.css so the path pages show the same rows the same way). */
/* The summary band: four labelled cells on the row system (For, Start with, Starts at, Proof), then the path line and the button */
.page-head .band { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin: var(--s4) 0 0; border-block: 1px solid var(--rule); }
.band > div { grid-column: span 3; padding: var(--s2) var(--s2) var(--s2) 0; }
.band dt { font-size: var(--t-small); color: var(--muted); }
.band dd { margin: 4px 0 0; text-wrap: pretty; }
.band .band-price { font-size: var(--t-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.band .band-month { font-size: var(--t-lead); line-height: 1.3; }
.band .band-note { margin-top: 4px; font-size: var(--t-small); color: var(--muted); }
/* padding with an equal negative margin gives the proof link a 44px target without opening its line */
.band .text-link { display: inline; padding-block: 12px; margin-block: -12px; }
.page-head .band-cta { margin-top: var(--s3); }
.band-line { font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }
.band-cta .head-ctas { margin-top: var(--s2); }
/* A price in a row's margin (the review rows) */
.side-price { font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }

/* Starting prices: one table, smallest step first. Desktop: Offer, What you get and Starts at in columns 1 to 9, the margin
   (10 to 12) holds the notes, with an ink bracket tying each 90-day credit to the rows it applies to. Phones: one stacked row
   per offer, name and price on one line, no sideways scrolling. */
.ptable { grid-column: 1 / -1; }
.ptable table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 14px var(--gap) 14px 0; border-top: 1px solid var(--rule); }
.ptable thead th { font-size: var(--t-small); font-weight: 400; color: var(--muted); padding-block: 0 8px; border-top: 0; }
.ptable thead th:nth-child(1) { width: 25%; }
.ptable thead th:nth-child(2) { width: 34%; }
.ptable thead th:nth-child(3) { width: 16%; }
.ptable tbody th { font-weight: 600; }
.ptable .pt-group th { padding-top: var(--s4); font-size: var(--t-lead); font-weight: 600; line-height: 1.3; border-top: 0; }
.ptable tbody .pt-num { font-size: var(--t-lead); font-weight: 600; line-height: 1.3; white-space: nowrap; }
.ptable tbody .pt-ret { white-space: normal; }
.ptable td.pt-credit { position: relative; padding-left: 28px; border-top: 0; vertical-align: middle; }
.ptable .pt-credit .brk { position: absolute; left: 0; top: 14px; bottom: 14px; width: 10px; border: 1.25px solid var(--ink); border-left: 0; }
.ptable td.pt-plain { padding-left: 0; color: var(--muted); vertical-align: top; border-top: 1px solid var(--rule); }

/* Detail rows: the long reference material, closed, under one "The detail" heading. Each part's heading is in its summary,
   with a one-line description under it. */
.detail-rows { grid-column: 1 / 10; margin-top: var(--s3); border-top: 1px solid var(--rule); }
.detail-rows > details { border-bottom: 1px solid var(--rule); }
.detail-rows summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s2); min-height: 64px; padding-block: 12px; cursor: pointer; list-style: none; }
.detail-rows summary::-webkit-details-marker { display: none; }
.detail-rows summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; font-size: 22px; line-height: 1; color: var(--muted); }
.detail-rows details[open] > summary::after { content: "\2212"; }
.detail-rows summary h3 { grid-column: 1; font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }
.detail-rows summary:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.detail-sub { grid-column: 1; margin-top: 2px; font-size: var(--t-small); color: var(--muted); }
.detail-body { padding-bottom: var(--s4); max-width: 40em; }
.detail-body > * + * { margin-top: var(--s2); }
.detail-body h4 { font-size: var(--t-body); font-weight: 600; }
.detail-body > * + h4 { margin-top: var(--s3); }
.detail-body > h4 + p { margin-top: 4px; }
.detail-body ol { display: grid; gap: var(--s1); }

/* Comparison tables (custom development, fractional): rows of options on desktop, one labelled block per option on phones */
.compare { grid-column: 1 / 10; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 12px var(--s2) 12px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare thead th { font-size: var(--t-small); font-weight: 400; color: var(--muted); }
.compare tbody th { font-weight: 600; }
.compare .ours th, .compare .ours td { border-bottom-color: var(--ink); }

@media (max-width: 899px) {
  .page-head .band { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s2); margin-top: var(--s3); }
  .band > div { grid-column: auto; padding: 12px 0; }
  .band > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .band .band-price { font-size: 22px; }
  .band .band-month { font-size: var(--t-body); }
  .band-line { font-size: var(--t-body); }
  .ptable table, .ptable thead, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: auto; }
  .ptable thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .ptable tr:not(.pt-group) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s2); padding-block: 12px; border-top: 1px solid var(--rule); }
  .ptable tbody th, .ptable tbody td { padding: 0; border: 0; }
  .ptable .pt-group th { padding-top: var(--s3); padding-bottom: var(--s1); }
  .ptable tbody th[scope=row] { grid-column: 1; grid-row: 1; }
  .ptable tbody .pt-num { grid-column: 2; grid-row: 1; text-align: right; font-size: var(--t-body); }
  .ptable tbody .pt-ret { max-width: 11em; }
  .ptable td:not(.pt-num):not(.pt-credit) { grid-column: 1 / -1; margin-top: 4px; }
  .ptable td.pt-credit, .ptable td.pt-plain { grid-column: 1 / -1; margin-top: var(--s1); padding-left: 12px; border-left: 1.25px solid var(--ink); border-top: 0; font-size: var(--t-small); }
  .ptable td.pt-plain { border-left-color: var(--rule); }
  .ptable .pt-credit .brk { display: none; }
  .detail-rows, .compare { grid-column: 1 / -1; }
  .detail-body { padding-bottom: var(--s3); }
  .compare table, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .compare tbody tr { padding-block: 12px; border-top: 1px solid var(--rule); }
  .compare tbody tr:last-child { border-bottom: 1px solid var(--rule); }
  .compare tbody tr.ours { border-top-color: var(--ink); border-bottom-color: var(--ink); }
  .compare tbody th, .compare tbody td { padding: 0; border: 0; }
  .compare tbody td { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); column-gap: var(--s2); margin-top: 6px; }
  .compare tbody td::before { content: attr(data-label); font-size: var(--t-small); color: var(--muted); padding-top: 1px; }
}
