/* fonts/fonts.css */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/hanken-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* system.css */
/*
  taste-skill system.css - the one system for the page. Link it first, then assets/ui/cards.css (the
  feature card, its panel and the fragment placements), then set the palette (--p-*), the fonts and
  the radius set on :root in the page (node scripts/start.mjs prints that block).
  Do not add a second grid, spacing scale, type scale, radius scale, button or card style.
*/

/* ---------------------------------------------------------------- tokens */
:root {
  /* palette (hex only; fx.js reads --bg --surface --ink --muted --accent --accent-ink) */
  --p-bg: #ffffff;
  --p-surface: #f4f4f4;
  --p-ink: #111111;
  --p-muted: #6b6b6b;
  --p-accent: #1a4be0;
  --p-accent-ink: #ffffff;
  --p-action: #1a4be0;      /* buttons, links, focus: the accent, or the ink when the accent is too pale */
  --p-action-ink: #ffffff;
  --p-inv-bg: #111111;
  --p-inv-surface: #1c1c1c;
  --p-inv-ink: #f4f4f4;
  --p-inv-muted: #a3a3a3;
  --p-inv-accent: #ffffff;
  --p-inv-accent-ink: #111111;
  --p-inv-action: #ffffff;
  --p-inv-action-ink: #111111;
  /* the lit ground behind UI and in the closing band (references/cards.md), one per page, tech pages only
     (none on kind other, which is flat): <html data-ground="sand|sky|sage|painting">. system.js gives it to every ground
     that holds UI, on light and dark pages alike; --hue on one panel changes only its accent */
  --ground-bg: #d9ccb7; --ground-surface: #e9e0d2; --ground-ink: #2a2622; --ground-muted: #5a534a; --ground-accent: #a8794a;

  /* fonts */
  --font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400;    /* headlines 400; 500 on a tech page (software, gaming, hardware) */
  --display-tracking: -0.025em;

  /* the page rhythm (references/layout-v4.md): one section per screen. The header is fixed and
     --nav tall; every section is padded --padt above and --padb (plus the phone action bar, --bar)
     below, and is exactly one or two screens tall (--h: 1 or 2; --hm on a phone). The hero's words
     start --hgap under the header and its content ends --hpadb above the fold. */
  --nav: 72px;
  --padt: 120px;
  --padb: 72px;
  --hgap: 48px;
  --hpadb: 64px;
  --bar: 0px;
  /* grid: one .wrap (alias .container) for the header, every section and the footer, the same
     --gut on both sides: 1280 wide at x 80-1360 at 1440, 342 at x 24-366 at 390 */
  --container: 1280px;
  --gut: 80px;
  --pad: var(--gut);
  --gutter: 24px;

  /* spacing: 4/8 scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: 40px;      /* only a .section outside main (the kit's demo pages); every main > section and
                           footer.closing take --padt and --padb */
  --section-band: 56px; /* the same for an older footer outside footer.closing */
  --head-gap: 48px;     /* the one heading-to-content gap, 32 on a phone (layout.css reads it as --ly-head-gap) */
  --card-pad: 16px;     /* card padding (cards.css sets its own for cards with a panel) */
  --card-gap: 16px;     /* gap between cards */

  /* type scale (the only sizes on the page) */
  --t-label: 13px;
  --t-small: 14px;
  --t-body: 16px;
  --t-lead: 18px;
  --t-card: 18px;
  --t-h3: 24px;
  /* straight lines from the phone size at 390 to the desktop size at 1440 (system.md's table) */
  --t-h2: clamp(30px, 1.72vw + 23.3px, 48px);
  --t-h1: clamp(38px, 3.24vw + 25.4px, 72px);
  /* a big number stays a step under the h2 (VI-11): 38 at 1440, 28 at 390, so it never reads as a
     section heading; a stats row and a price set their own, smaller still */
  --t-stat: clamp(28px, .952vw + 24.29px, 38px);

  /* radius: one scale (soft by default; data-radius on <html> switches it) */
  --r-sm: 8px;  --r-md: 12px; --r-lg: 20px; --r-btn: 8px;

  /* controls (fixed here; a page never adds its own) */
  --btn-h: 44px;
  --btn-h-sm: 36px;
  --nav-h: var(--nav);  /* the older name, kept for the kit's files */
  --icon: 16px;         /* small icons: socials, menu chevrons, mono brand marks */

  /* motion: the one UI ease-out (motion.css --m-ease and ui/base.css --u-ease read it; references/motion.md) */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 180ms;
}
html[data-radius="sharp"] { --r-sm: 4px; --r-md: 6px;  --r-lg: 8px;  --r-btn: 4px; }
html[data-radius="soft"]  { --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-btn: 8px; }
html[data-radius="round"] { --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-btn: 999px; }
/* the four lit grounds (references/cards.md); sand is the default above. painting goes with
   painterly-landscape (x.ai's daylight sky over olive hills) */
html[data-ground="sky"]      { --ground-bg: #c6d3df; --ground-surface: #d6e0e9; --ground-ink: #25303a; --ground-muted: #4d5964; --ground-accent: #3f6a92; }
html[data-ground="sage"]     { --ground-bg: #cdd6c6; --ground-surface: #dce3d6; --ground-ink: #262d24; --ground-muted: #535b51; --ground-accent: #6c8e63; }
html[data-ground="painting"] { --ground-bg: #79a8d6; --ground-surface: #a6c4e2; --ground-ink: #16212c; --ground-muted: #273949; --ground-accent: #9c9b3c; }
/* cards.css takes its card and panel radii from this scale */
html[data-radius] .card { --c-r: var(--r-lg); }
html[data-radius] .panel { --p-r: var(--r-md); }

/* a phone: the header 56, the sections padded 96 / 48, the hero's words 40 under the header and its
   content ending 24 above the fold, 24 at both sides, 12 between columns */
@media (max-width: 639px) {
  :root { --nav: 56px; --padt: 96px; --padb: 48px; --hgap: 40px; --hpadb: 24px; --gut: 24px; --gutter: 12px; --card-gap: 12px; --head-gap: 32px; }
}
@media (min-width: 640px) {
  :root { --gut: 48px; --section: 48px; --section-band: 72px; --card-pad: 24px; }
}
@media (min-width: 1024px) {
  :root { --gut: 80px; --section: 56px; --section-band: 96px; --card-gap: 24px;
          --t-lead: 20px; --t-card: 20px; --t-h3: 28px; }
  /* a place (and a local service): the 1200 column at x 120-1320 */
  html[data-type="place"] { --gut: 120px; --container: 1200px; }
}
/* a place (VI-06, ST-96, PH-23): its own smaller type (h1 48/53 and 32/37, h2 32/40 and 24/30, titles
   and the sub-line 20 and 18), the Recipe 3 hero's gap under its photograph (40, 24 on a phone),
   square photographs and cards and 2px buttons, whatever data-radius and data-buttons say */
:root[data-type="place"] {
  --hgap: 40px;
  --t-h1: clamp(32px, 1.524vw + 26.06px, 48px);
  --t-h2: clamp(24px, .762vw + 21px, 32px);
  --t-h3: clamp(20px, .381vw + 18.51px, 24px);
  --r-sm: 2px; --r-md: 0px; --r-lg: 0px; --r-btn: 2px;
}
:root[data-type="place"] :is(h1, .t-h1) { line-height: 1.104; }
:root[data-type="place"] :is(h2, .t-h2) { line-height: 1.25; }
@media (max-width: 639px) {
  :root[data-type="place"] { --hgap: 24px; }
  :root[data-type="place"] :is(h1, .t-h1) { line-height: 1.156; }
}

/* ---------------------------------------------------------------- grounds (at most three) */
:root, .ground-base {
  --bg: var(--p-bg); --surface: var(--p-surface); --ink: var(--p-ink); --muted: var(--p-muted);
  --accent: var(--p-accent); --accent-ink: var(--p-accent-ink); --card: var(--p-surface);
  --action: var(--p-action); --action-ink: var(--p-action-ink);
}
.ground-surface {
  --bg: var(--p-surface); --surface: var(--p-bg); --ink: var(--p-ink); --muted: var(--p-muted);
  --accent: var(--p-accent); --accent-ink: var(--p-accent-ink); --card: var(--p-bg);
  --action: var(--p-action); --action-ink: var(--p-action-ink);
}
.ground-inverse {
  --bg: var(--p-inv-bg); --surface: var(--p-inv-surface); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted);
  --accent: var(--p-inv-accent); --accent-ink: var(--p-inv-accent-ink); --card: var(--p-inv-surface);
  --action: var(--p-inv-action); --action-ink: var(--p-inv-action-ink);
}
:root, .ground-base, .ground-surface, .ground-inverse {
  --line: color-mix(in oklab, var(--ink) 11%, transparent);
  --line-strong: color-mix(in oklab, var(--ink) 20%, transparent);
  /* effects (fx.js) and UI fragments (assets/ui) take the colours of the ground they sit on */
  --fx-bg: var(--bg); --fx-surface: var(--surface); --fx-ink: var(--ink); --fx-muted: var(--muted);
  --fx-accent: var(--accent); --fx-accent-ink: var(--accent-ink);
  --ui-font: var(--font-text); --ui-mono: var(--font-mono); --ui-radius: var(--r-md);
}
.ground-base, .ground-surface, .ground-inverse { background: var(--bg); color: var(--ink); }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
/* an anchor lands on the section's top (the judge's frame): the fixed header covers --nav of its --padt */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; scroll-behavior: auto; margin: 0; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
/* hidden means hidden, also on an img the line above makes a block (a menu tab's photograph, a peek photograph) */
[hidden] { display: none !important; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-wrap: balance; overflow-wrap: break-word;
  /* a long word (a German compound at 390) breaks at a syllable with a hyphen, in the language of <html lang>;
     only words of 10 letters or more, 4 at least on each side, so a short English heading never breaks */
  hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4;
}
h1, .t-h1 { font-size: var(--t-h1); line-height: 1.04; }
h2, .t-h2 { font-size: var(--t-h2); line-height: 1.1; }
h3, .t-h3 { font-size: var(--t-h3); line-height: 1.2; }
h4, .t-card { font-family: var(--font-text); font-weight: 500; font-size: var(--t-card); line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.t-lead  { font-size: var(--t-lead); line-height: 1.5; }
.t-body  { font-size: var(--t-body); line-height: 1.55; }
.t-small { font-size: var(--t-small); line-height: 1.5; }
.t-label { font-size: var(--t-label); font-weight: 500; line-height: 1.4; letter-spacing: 0.01em; }
.t-stat  { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-stat);
           line-height: 1; letter-spacing: var(--display-tracking); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.mono  { font-family: var(--font-mono); }
.measure { max-width: 62ch; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 2px; }
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }

/* ---------------------------------------------------------------- grid */
.wrap, .container { width: min(100% - 2 * var(--gut), var(--container)); margin-inline: auto; padding-inline: 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--card-gap); }
.grid > * { min-width: 0; grid-column: 1 / -1; }
.section { padding-block: var(--section); }

/* ---------------------------------------------------------------- one section per screen
   The page is a stack of screens. Framed at scrollY = k x the screen height, a shot shows exactly one
   section: the hero alone on the first screen, every other section (and footer.closing, the close and
   the footer in one) exactly one or two screens tall, its h2 first, --padt under its top. Heights
   and padding do it: no pinning, snapping or script.
     <section class="section" id=".." style="--h: 2">     (2 screens; --hm sets a phone's count alone)
       <div class="wrap"> the h2 first, then the content </div>     (the one in-flow child)
     </section>
   A layer (a full-bleed photograph or ground behind the words) is an <img class="layer" aria-hidden="true">
   beside the .wrap. Content must fit: one screen holds 708px of content at 1440x900 (900 - 120 - 72),
   two hold 1,608 (the second screen's part starts --padt under its top with .g2). From 640 to 1279 a
   section keeps at least its screens and grows past them rather than overlap the next. */
main > :is(section, .section), footer.closing {
  position: relative; box-sizing: border-box;
  height: calc(var(--h, 1) * 100vh); height: calc(var(--h, 1) * 100svh);
  padding: var(--padt) 0 calc(var(--padb) + var(--bar));
}
main > :is(section, .section) > :is(.wrap, .container), footer.closing > .wrap { position: relative; z-index: 1; height: 100%; }
main > :is(section, .section) > :is(.wrap, .container):not(.grid) { display: flex; flex-direction: column; }
/* a .wrap that is the section's grid too (class="wrap grid"): its rows start at the top */
main > :is(section, .section) > :is(.wrap, .container).grid { align-content: start; }
/* .fill: the block that takes what the screen leaves under the heading (a photograph, a frame) */
main > :is(section, .section) > .wrap > .fill { flex: 1 1 0; min-height: 0; }
/* two screens as two groups: row 1 the h2 and the first group, row 2 the rest (no second h2), starting
   --padt under the second screen's top, so the second shot looks like any other section */
main > :is(section, .section).g2, footer.closing.g2 { --h: 2; }
main > :is(section, .section).g2 > :is(.wrap, .container), footer.closing.g2 > .wrap { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: calc(var(--padt) + var(--padb) + var(--bar)); }
main > :is(section, .section).g2 > :is(.wrap, .container) > *, footer.closing.g2 > .wrap > * { min-height: 0; align-self: start; }
main > :is(section, .section).g2 > :is(.wrap, .container) > :is(.group, .fill) { align-self: stretch; }
/* a group: one screen's part of a .g2 section (its h2 and first rows, or the rest) */
.group { display: flex; flex-direction: column; min-height: 0; }
/* each screen's card row runs down to that screen's foot (the cards stretch, their panels grow), so
   the second screen of a .g2 is never a short row over an empty ground; both rows end on the same line */
@media (min-width: 1024px) {
  main > :is(section, .section).g2 > .wrap > .grid:last-child,
  main > :is(section, .section).g2 > .wrap > .group > .grid:last-child { align-self: stretch; flex: 1 1 auto; min-height: 0; }
}
.group > .fill { flex: 1 1 0; min-height: 0; }
@media (min-width: 640px) and (max-width: 1279px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
  }
  /* the section is a column and its .wrap takes all of it, so a .fill (a photograph, a frame) still
     grows to the section's foot (a min-height percentage would not resolve, leaving it at its least) */
  /* :where() keeps it at no weight, so a page's own phone- or tablet-only hiding (section.desk-only { display: none }) wins */
  :where(main > :is(section, .section):not(.hero, .section--hero), footer.closing) { display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
/* a phone: lvh (the screen with its bars hidden) for every section but the hero; --hm when stacking
   makes the content taller than the desktop count */
@media (max-width: 639px) {
  /* at least its screens, never less: content a screen cannot hold makes the section taller (the rhythm
     check then asks for --hm: 2 or less content); a fixed height would lay its last rows over the next
     section, the fault the phone shots showed most (a list under the closing heading and its button) */
  main > :is(section, .section):not(.hero, .section--hero), footer.closing {
    height: auto; min-height: calc(var(--hm, var(--h, 1)) * 100vh); min-height: calc(var(--hm, var(--h, 1)) * 100lvh);
  }
  /* one grid row at least the screens tall that grows with the .wrap's content: the .wrap is stretched to
     it, so its .fill and its two groups still share a definite height */
  /* (at no weight, as on the tablet: a page's own section.desk-only { display: none } still hides it) */
  :where(main > :is(section, .section):not(.hero, .section--hero):has(> :is(.wrap, .container)), footer.closing) {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; grid-auto-rows: auto;
  }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { height: auto; }
  main > :is(section, .section).g2m, footer.closing.g2m { --hm: 2; }
  main > :is(section, .section).g2m > :is(.wrap, .container), footer.closing.g2m > .wrap { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: calc(var(--padt) + var(--padb) + var(--bar)); }
  /* stacked in one, the two groups keep the open cards' 32px, so the first group's last panel never meets
     the next card's title */
  main > :is(section, .section).g2:not(.g2m) > :is(.wrap, .container) { display: flex; row-gap: var(--s-6); }
  /* what the two screens leave goes around the second group, so it opens below the header, not on the fold */
  main > :is(section, .section).g2:not(.g2m) > :is(.wrap, .container) > :last-child { margin-block: auto; }
  main > :is(section, .section).g2:not(.g2m) > :is(.wrap, .container) > * { align-self: stretch; }
}
/* a layer: the photograph or ground of a whole section, under its words, edge to edge */
main > :is(section, .section) > :is(img, video, canvas, picture).layer,
footer.closing > :is(img, video, canvas, picture).layer {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%);
}
main > :is(section, .section) > picture.layer > img { width: 100%; height: 100%; object-fit: cover; }

/* the hero: exactly the first screen, the fixed header over its top. Its words start --hgap under the
   header (--photo adds a full-bleed photograph's height above them on a place); its content ends
   --hpadb above the fold, and nothing of the next section shows, at 1440, 1024, 820 and 390.
     <section class="hero hero--<type>"><div class="wrap"><div class="hero-text"> .. </div>[one strip]</div></section>
   .hero-text holds the whole composition (the words, and the picture or window beside or under them);
   one docked strip (logos, three facts) may follow it, at most 96px, desktop only. */
main > :is(.hero, .section--hero) {
  height: 100vh; height: 100svh; min-height: 0;
  padding: calc(var(--nav) + var(--photo, 0px) + var(--hgap)) 0 calc(var(--hpadb) + var(--bar));
}
:is(.hero, .section--hero) > .wrap { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; row-gap: var(--s-7); }
:is(.hero, .section--hero) > .wrap > .hero-text { min-height: 0; }
/* a phone: the hero is at least the first screen and grows when a short phone (320x640) cannot hold its
   words, buttons and picture, so nothing of it lies over the next section or under the header */
@media (max-width: 639px) {
  main > :is(.hero, .section--hero) { height: auto; min-height: 100vh; min-height: 100svh; }
  main > :is(.hero, .section--hero):has(> :is(.wrap, .container)) { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; grid-auto-rows: auto; }
  main > :is(.hero, .section--hero) > :is(.wrap, .container) { height: auto; }
}
:is(.hero, .section--hero) > .wrap > .hero-strip { grid-row: 2; max-height: 96px; }
@media (max-width: 639px) { :is(.hero, .section--hero) > .wrap > .hero-strip { display: none; } }
.section--hero .section-head { max-width: 860px; }
/* the starter's own hero (hero-split): the words on span-5 top-aligned, the picture on span-6 start-7
   as tall as the hero's content box (at most 716 at 1440x900); a phone stacks words, then the picture
   in what is left */
.hero-text.hero-split { height: 100%; align-items: stretch; }
.hero-split > .hero-copy { align-self: start; }
.hero-split > .hero-visual { position: relative; min-height: 0; height: 100%; }
@media (max-width: 1023px) {
  .hero-text.hero-split { display: flex; flex-direction: column; gap: var(--s-6); }
  .hero-split > .hero-visual { flex: 1 1 0; min-height: 200px; height: auto; }
}
.hero-copy > * + * { margin-top: var(--s-5); }
/* the h1 first in the words' column: its capitals start on the picture's top line, not the line box's
   (the leading above the capitals would put the words about 12px under the photograph's top) */
.hero-copy > h1:first-child { text-box: trim-start cap alphabetic; }
.hero-copy > .btn-row { margin-top: var(--s-6); }
/* three short facts at the foot of the words' column, on the picture's bottom line (no dead space
   under the buttons): <dl class="hero-facts"><div><dt>..</dt><dd>..</dd></div> x3</dl> */
@media (min-width: 1024px) {
  .hero-split > .hero-copy { height: 100%; display: flex; flex-direction: column; }
  .hero-split > .hero-copy > .hero-facts { margin-top: auto; }
}
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); margin: 0; }
.hero-facts > div { display: grid; gap: var(--s-1); align-content: start; }
.hero-facts dt { font-size: var(--t-small); color: var(--muted); }
.hero-facts dd { margin: 0; font-weight: 500; }
@media (max-width: 1023px) { .hero-facts { display: none; } }
/* a notice line above the h1 (changed hours, a delivery cut-off): one line with a number, static,
   starting on the left line like the h1 under it */
.hero-notice { font-size: var(--t-small); font-weight: 500; color: var(--ink); }
.hero-notice b, .hero-notice strong { font-weight: 500; color: var(--accent); }
.hero-copy > .hero-notice + h1 { margin-top: var(--s-5); }

/* a phone: open tiles from a row of three or four (rooms, goods, beans) go two-up, an odd last one
   across the row, so a row of three fits one 844px screen (stacked one under another they need two) */
@media (max-width: 639px) {
  .grid > .tile:is(.span-3, .span-4) { grid-column: auto / span 6; }
  .grid > .tile:is(.span-3, .span-4):nth-child(odd of .tile):nth-last-child(1 of .tile) { grid-column: 1 / -1; }
  .grid > .tile:is(.span-3, .span-4) .tile__head { flex-wrap: wrap; gap: 0 var(--s-2); }
}
/* a phone: open cards (words on the ground, the panel under them) stacked one under another keep 32px
   between a panel's foot and the next card's title, so a title never reads as the panel's caption */
@media (max-width: 639px) { .grid:has(> .card--open) { row-gap: var(--s-6); } }
/* a phone stacks a two-screen section's four open tiles into its two screens: their panels take 180px (a wide
   crop), so the h2 and the first two tiles of two lines each end on the first screen and the four inside both,
   not a third of a screen past. A page that sets its group's own --p-h (#features .panel) sets its phone value
   too, as the starter does */
@media (max-width: 639px) { main > :is(section, .section).g2 .card--open > .panel { --p-h: 180px; } }
/* spans: desktop >= 1024. Tablet 640-1023: text cards on span-3 and span-6 go two-up; cards with a
   panel (a visual needs the width; the one exception is a span-6 pair, below)
   and everything else (split text and visuals, span-4 cards, span-5/7/8 blocks) take the full row, so a split stacks and no row is left half empty. Phone < 640: one column. */
@media (min-width: 640px) and (max-width: 1023px) {
  .grid > .card.span-3:not(:has(> .panel)), .grid > .card.span-6:not(:has(> .panel)) { grid-column: auto / span 6; }
  /* the one exception with a panel: a 2x2 (or a pair) of span-6 cards stays two-up from 720px (a panel
     of about 310px and more, wide enough for a kit fragment), so four cards take one or two screens
     at 768-820 instead of a card per row (four stacked panels run past two screens). Split cards and
     every other span keep the full row. Under 720 a card per row. */
  @media (min-width: 720px) {
    .grid > .card.span-6:has(> .panel):not(.card--split) { grid-column: auto / span 6; }
    .grid > .card.span-6:has(> .panel):not(.card--split):nth-child(odd of .card.span-6):nth-last-child(1 of .card.span-6) { grid-column: 1 / -1; }
  }
  /* open tiles (rooms, models, people, a photo pair) go two-up; an odd last one takes the row */
  .grid > .tile:is(.span-3, .span-4, .span-6) { grid-column: auto / span 6; }
  .grid > .tile:is(.span-3, .span-4, .span-6):nth-child(odd of .tile):nth-last-child(1 of .tile) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .span-2  { grid-column: auto / span 2; }
  .span-3  { grid-column: auto / span 3; }
  .span-4  { grid-column: auto / span 4; }
  .span-5  { grid-column: auto / span 5; }
  .span-6  { grid-column: auto / span 6; }
  .span-7  { grid-column: auto / span 7; }
  .span-8  { grid-column: auto / span 8; }
  .span-9  { grid-column: auto / span 9; }
  .span-10 { grid-column: auto / span 10; }
  .span-12 { grid-column: auto / span 12; }
  .start-1 { grid-column-start: 1; } .start-2 { grid-column-start: 2; } .start-3 { grid-column-start: 3; }
  .start-5 { grid-column-start: 5; } .start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; }
  .start-4 { grid-column-start: 4; } .start-8 { grid-column-start: 8; } .start-9 { grid-column-start: 9; }
  .start-10 { grid-column-start: 10; }
  /* a split is top-aligned: the words' first line and the picture's top on one line (never centred
     against each other, never mirrored: text left, the visual right, on every split of the page) */
  .grid--middle, .grid--top { align-items: start; }
}
/* card rows: every card in a row the same height (a plain .grid stretches them) */
.grid:is(.grid--middle, .grid--top) > .card { align-self: stretch; }
/* 1024-1279: a span-4 card's panel would be about 220px wide, too narrow for real UI. Cards with a
   panel on span-4 go two-up, a span-8 one takes the row, and an odd last one takes the row too
   (steps, proof row: two, then one wide; bento: the wide card, then the four small ones two by two) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .grid > .card.span-4:has(> .panel) { grid-column: auto / span 6; }
  .grid > .card.span-8:has(> .panel),
  .grid > .card.span-4:has(> .panel):nth-child(odd of .card.span-4):nth-last-child(1 of .card.span-4) { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- section heading */
.section-head { max-width: 760px; margin-bottom: var(--head-gap); display: grid; gap: var(--s-4); }
/* every heading starts on the left line (a centred head among left ones reads as a mistake): the
   old centred head is left-aligned too */
.section-head--center { text-align: left; justify-items: start; }
/* a head row: the h2 (and its line) left, one link or the section's button at the right line */
.section-head--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.section-head--split > div { display: grid; gap: var(--s-4); max-width: 760px; }
.section-head p { color: var(--ink); font-size: var(--t-lead); line-height: 1.5; max-width: 60ch; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.section-head--row > div { display: grid; gap: var(--s-4); max-width: 760px; }
/* the hero row (hero-product, hero-cycle): the h1 and its line left, the buttons right, across 1280 */
.section--hero .section-head--row { max-width: none; }

/* ---------------------------------------------------------------- buttons (one pair, a dealt look)
   One pair a page, .btn--primary and .btn--secondary, in the look dealt with the page (sections.md)
   and set once on <html data-buttons>; the markup never changes:
     solid  filled primary, outlined secondary, the radius scale (Figma; the default)
     pill   pills, a chevron after the primary's label, a tinted secondary (x.ai)
     tonal  the radius scale, a tinted secondary with no outline (Linear, Vercel)
     arrow  an arrow after the primary's label; the secondary is a text link with an arrow (Stripe)
     block  near-square corners, 48px tall; the secondary is an underlined text link (shops, hotels) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--btn-h); padding: 0 var(--s-5); border-radius: var(--r-btn); border: 1px solid transparent;
  font: 500 var(--t-body)/1 var(--font-text); letter-spacing: 0; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--action) 86%, var(--ink)); }
/* an inverted primary (the action is the ground's ink: a brand band, a lit ground): its hover steps toward the ground, as the filled one steps toward the ink */
.ground-brand .btn--primary:hover { background: color-mix(in oklab, var(--action) 88%, var(--bg)); }
/* the ground's own colour with a clear border: never grey on grey, readable on an effect too */
.btn--secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { background: color-mix(in oklab, var(--bg) 94%, var(--ink)); border-color: color-mix(in oklab, var(--ink) 35%, transparent); }
.btn--sm { height: var(--btn-h-sm); padding: 0 var(--s-4); font-size: var(--t-small); }
html[data-buttons="pill"] { --r-btn: 999px; }
html[data-buttons="block"] { --r-btn: 2px; --btn-h: 48px; }
html:is([data-buttons="pill"], [data-buttons="tonal"]) .btn--secondary { background: color-mix(in oklab, var(--ink) 8%, var(--bg)); border-color: transparent; }
html:is([data-buttons="pill"], [data-buttons="tonal"]) .btn--secondary:hover { background: color-mix(in oklab, var(--ink) 14%, var(--bg)); border-color: transparent; }
/* arrow and block: the secondary is a text link at the button's height (no box: one button look) */
html:is([data-buttons="arrow"], [data-buttons="block"]) .btn--secondary {
  background: none; border-color: transparent; padding-inline: var(--s-2);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong);   /* the .link look */
}
html:is([data-buttons="arrow"], [data-buttons="block"]) .btn--secondary:hover { background: none; border-color: transparent; text-decoration-color: currentColor; }
/* the glyph after a label: a chevron (pill) or an arrow (arrow), drawn so every font shows the same */
html[data-buttons="pill"] .btn--primary::after,
html[data-buttons="arrow"] :is(.btn--primary, .btn--secondary)::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: -2px; background: currentColor;
  -webkit-mask: var(--btn-glyph) center / contain no-repeat; mask: var(--btn-glyph) center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
html[data-buttons="pill"] { --btn-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2.5 8 6l-3.5 3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-buttons="arrow"] { --btn-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6h8.5M6.5 2.5 10 6l-3.5 3.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (hover: hover) and (pointer: fine) { html:is([data-buttons="pill"], [data-buttons="arrow"]) .btn:hover::after { transform: translateX(3px); } }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--arrow::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn--arrow:hover::after { transform: translateX(3px); } }
/* the drawn arrow (assets/motion: its stem grows and its head moves 3px on hover), the last child of
   a primary button, a pill or a link: <svg class="m-arrow" viewBox="0 0 12 12" aria-hidden="true">
   <path class="m-arrow__stem" d="M1 6h8"/><path class="m-arrow__head" d="M4.5 2.5 8 6l-3.5 3.5"/></svg>.
   It replaces the dealt glyph, so a button never shows two */
.m-arrow { flex: none; width: 12px; height: 12px; margin-right: -2px; overflow: visible;
           fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn--xl .m-arrow { width: 0.62em; height: 0.62em; stroke-width: 1.4; }
:is(.btn, .link, .pill):has(> .m-arrow)::after { content: none; display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.section-head--center .btn-row { justify-content: center; }
/* on the phone every button row stacks full width */
@media (max-width: 639px) {
  .btn-row { flex-direction: column; align-items: stretch; width: 100%; justify-self: stretch; }
  /* full width, the second action is a text link at the button's height under the filled one (an
     outline across the whole screen reads as a rule, a pale fill as a switched-off button) */
  .btn-row > .btn--secondary { background: none; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
  .section-head--split > .btn { width: 100%; }
}
.link { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; color: var(--ink);
        text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
        transition: text-decoration-color var(--dur) var(--ease); }
.link:hover { text-decoration-color: currentColor; }
.link::after { content: "\2192"; display: inline-block; text-decoration: none; transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .link:hover::after { transform: translateX(3px); } }
.pill { display: inline-flex; align-items: center; gap: var(--s-2); height: 32px; padding: 0 var(--s-3);
        border-radius: 999px; border: 1px solid var(--line); background: var(--card);
        font-size: var(--t-label); color: var(--ink); }
.pill .muted { color: var(--muted); }

/* ---------------------------------------------------------------- card (one style) */
.card {
  display: flex; flex-direction: column; gap: var(--s-2); min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--card-pad);
}
/* small titles in the text face: a display face at 20px (a condensed or hairline serif) reads smaller than the body */
.card > h3, .card > h4, .card--plan h3 { font-family: var(--font-text); font-weight: 500; font-size: var(--t-card); line-height: 1.3; letter-spacing: -0.01em; }
/* the type floor (system.md): text people read is 16px or more in ink; cards.css sets it for its
   card text, this for a plain card's lines */
.card > p { color: var(--ink); font-size: var(--t-body); max-width: 52ch; }
/* at most two boxes one inside the other (sections.md): a card whose panel holds UI drops its own
   box, so its title and lines sit on the page ground over the panel (Figma's tiles), or runs the
   panel flush to its sides and bottom (cards.css .panel--flush) */
.card.card--open { --c-pad: 0px; background: none; border: 0; box-shadow: none; padding: 0; overflow: visible; }
.card.card--open > .panel { margin: var(--s-5) 0 0; border-radius: var(--r-lg); }
.card.card--open > .panel--top { margin: 0 0 var(--s-5); }
.card--plan.is-featured { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
/* cards.css (linked after this file) sets .card { gap: 0 } for feature cards; a plan keeps its 16px rows */
.card.card--plan { gap: var(--s-4); }

/* ---------------------------------------------------------------- visuals: panels and frames
   A card's .panel (the inset visual), .stage and the placements (.at-corner, .at-rise, .at-over,
   .at-right, .at-center, .stage--fade-*) come from assets/ui/cards.css (references/cards.md).
   This file adds the frames (hero, split, square, closing band) and lets a .stage work inside them.
   The grounds' colours: system.js lights every ground that holds UI (see there). */
:not(.card) > .panel { border-radius: var(--p-r, var(--r-md)); }   /* a panel on its own: four round corners */
.menu-card .panel { --p-h: 160px; }
.frame {
  position: relative; isolation: isolate; overflow: clip; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line);
  padding: clamp(var(--s-4), 4vw, var(--s-7));
}
/* a zero-width spacer keeps --ratio (height / width) as the frame's minimum height */
.frame::before { content: ""; flex: none; width: 0; padding-top: var(--ratio, 0px); }
/* an object or scene (assets/objects) and a photograph (.frame__img) fill the frame themselves */
.frame > :not(canvas, .stage, .loop-pause, .frame__fx, .frame__img, [data-print], [data-scene], .print3d) { position: relative; max-width: 100%; min-width: 0; }
/* a photograph is a plain rectangle in its frame: no border, no print, no filter */
.frame--photo { padding: 0; border: 0; }
/* .frame--fill: as tall as its row (a split's picture beside the words, down to the section's foot);
   stacked on a tablet or a phone it takes what the screen leaves, at least 200px */
.frame--fill { height: 100%; }
@media (max-width: 1023px) {
  .grid.fill:has(> .frame--fill) { display: flex; flex-direction: column; gap: var(--s-6); }
  .grid.fill > .frame--fill { flex: 1 1 0; height: auto; min-height: 200px; }
}
/* a split's words as a column: the last block (stats, a link) on the picture's bottom line */
.split-col { display: flex; flex-direction: column; gap: var(--s-5); }
@media (min-width: 1024px) { .split-col { height: 100%; } .split-col > .split-col__end { margin-top: auto; } }
:is(.frame, .panel) > .frame__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.frame--portrait { --ratio: 125%; }
/* the product stage (hero-product): wide, the product whole on it; a phone gets a tall stage */
.frame--stage { --ratio: 50%; }
@media (max-width: 639px) { .frame--stage, .frame--portrait { --ratio: 120%; } }
.frame--hero { padding: clamp(24px, 5vw, 64px); }
.frame--split { --ratio: 80%; }
.frame--square { --ratio: 100%; }
/* the closing band: the hero's echo, lit with the page's ground (sand, sky, sage or painting) on light
   and dark pages alike, so its text and buttons take that ground's ink. Its effect sits on a layer of
   its own, <div class="frame__fx" data-fx="..">, held still and calm where the text sits (system.js) */
.frame--cta { min-height: 420px; }
/* .frame--lit: the same for an object's frame that holds a few words in its clear half (the
   product statement's facts in a .frame__text, lower left; the object stands right of centre) */
.frame--cta, .frame--lit {
  border-color: transparent; background: var(--ground-bg); color: var(--ground-ink);
  --bg: var(--ground-surface); --surface: var(--ground-surface); --ink: var(--ground-ink); --muted: var(--ground-muted);
  --action: var(--ground-ink); --action-ink: var(--ground-surface);
  --line: color-mix(in oklab, var(--ground-ink) 12%, transparent); --line-strong: color-mix(in oklab, var(--ground-ink) 24%, transparent);
}
.frame > .frame__fx { position: absolute; inset: 0; z-index: 0; }
/* on a light page the buttons on a lit ground keep the page's own action colour: one action, one look
   (a dark page keeps the lit ground's ink, which reads on the bright ground) */
html:not([data-tone="dark"]) :is(.frame--cta, .frame--lit, .footer--statement) { --action: var(--p-action); --action-ink: var(--p-action-ink); }
/* a card on a photograph (a booking form over the room): the card holds the page's colours */
.frame--photo:has(> .card) { padding: clamp(var(--s-5), 5vw, var(--s-8)) clamp(var(--s-4), 4vw, var(--s-7)); }
.frame--photo > .card { position: relative; z-index: 1; width: min(100%, 480px); }   /* flat: no shadow at rest (ST-97) */
.frame--cta > .frame__fx { opacity: .85; }
.frame--lit > .frame__text { z-index: 2; align-self: flex-end; margin-right: auto; width: min(100%, 360px); display: grid; gap: var(--s-5); }
/* 2:1 on a desktop; a phone gets 2:3, the words at the top and the object smaller and low under
   them (its hero preset), so the facts never touch the object */
.frame--lit { --ratio: 50%; }
@media (max-width: 639px) { .frame--lit { --ratio: 150%; } .frame--lit > .frame__text { align-self: flex-start; } }
@media (max-width: 639px) { .frame--split { --ratio: 100%; } }
/* A hero, wide or split frame (x.ai's hero window): --w on the rising fragment's slot (its true width)
   centres it while it fits; anchored 24px in and cut by the right edge once the frame is narrower.
   --pair on the .stage (the main fragment's width plus the part of the second that sticks out)
   centres the pair; below 1024 the main one alone. In a card's panel cards.css places it (.at-corner,
   .at-rise, .at-right; a centred .at-rise.fit narrows with the panel), as its recipe says. */
.frame > .stage > .at-rise { --ax: max(24px, calc(50% - var(--w, 64%) / 2)); }
.frame--hero > .stage > .at-rise { --ax: max(24px, calc(50% - var(--pair, var(--w, 64%)) / 2)); }
.frame--hero > .stage > .at-over { --bx: max(24px, calc(50% - var(--pair, 800px) / 2)); }
@media (max-width: 1023px) { .frame--hero > .stage > .at-rise { --ax: max(24px, calc(50% - var(--w, 64%) / 2)); } }
/* a frame holding a cards.css .stage: the stage fills it and places the fragments (references/cards.md);
   the hero and wide frames are 16:7 and square on a phone; below 1024 only the main fragment shows */
.frame:has(> .stage) { padding: 0; }
.frame--hero:has(> .stage) { aspect-ratio: 16 / 7; }
@media (max-width: 1023px) {
  .frame--hero:has(> .stage) { aspect-ratio: 3 / 2; }   /* a tablet: room for the main fragment's rows */
}
/* a tablet held upright (820x1180): a taller frame, so the hero fills the screen without a gap */
@media (min-width: 640px) and (max-width: 1023px) and (orientation: portrait) {
  .frame--hero:has(> .stage) { aspect-ratio: 4 / 3; }
}
@media (max-width: 1023px) {
  .frame--hero > .stage > :is(.at-over, .at-over-l) { display: none; }
}
/* a split frame is about 440-560px wide from 1024 to 1279: the main piece alone there */
@media (min-width: 1024px) and (max-width: 1279px) {
  .frame--split > .stage > :is(.at-over, .at-over-l) { display: none; }
}
@media (max-width: 639px) {
  .frame--hero:has(> .stage) { aspect-ratio: 1; }
  .frame > .stage > :is(.at-over, .at-over-l) { display: none; }
  /* phone: cards.css sets a fragment 16px in on both sides, and system.js holds every loop on its
     finished picture, so no pause button lands on the UI */
}
/* a small object on a focal tile (.at-center): its true width (--w, 288px for the slider), narrowed
   on a small panel so 24px of ground always shows on both sides (a span-4 panel is 304px at 1280) */
.stage > .at-center { width: calc(100% - 48px); max-width: var(--w, 288px); }
.stage > .at-center > :is([data-ui], .ui) { width: 100%; max-width: none; }
/* .to-edge stretches a fragment's surface past the bottom (cards.css); doc's surface is its page */
.stage > .to-edge > .ui-doc > .ui-doc__page { min-height: 100%; }
/* .hero-stage: whole fragments side by side in a frame, never overlapping or cut (a row of app
   screens); the first is the main one, and the ones that no longer fit drop out from the end */
.hero-stage { container: hero-stage / inline-size; width: 100%; }
.hero-stage__row { display: flex; align-items: center; justify-content: center; gap: var(--s-5); }
.hero-stage__row > * { flex: none; max-width: 100%; }
@container hero-stage (max-width: 1060px) { .hero-stage__row > :nth-child(n + 3) { display: none; } }
@container hero-stage (max-width: 740px)  { .hero-stage__row > :nth-child(n + 2) { display: none; } }
/* the pause button on every visual that moves by itself for more than 5 s (WCAG 2.2.2): ui.js adds it
   to a loop when it starts to move, system.js to the hero's ground. Write a button.loop-pause into
   the frame only for a loop of your own (hero-cycle). The same solid 32px disc in the page colours as
   assets/ui/base.css's, 12px in from the bottom-right corner, with a 44px hit area. */
.loop-pause {
  position: absolute; right: 12px; bottom: 12px; z-index: 6; display: grid; place-items: center;
  width: 32px; height: 32px; margin: 0; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent); background: var(--bg); color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 4px 12px -4px rgb(0 0 0 / .28);
}
.loop-pause::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.loop-pause svg { width: 14px; height: 14px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .loop-pause { display: none; } }

/* ---------------------------------------------------------------- navigation */
/* The header: fixed, opaque, one hairline under it, the same at every depth (no blur, no shadow, no
   floating pill, never hidden on scroll). Its .wrap is the page's, so the logo starts on the left line
   and the main button ends on the right one. Plain words, 15px, sentence case; one filled button. */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav);
  background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line);
}
.nav__bar { height: 100%; display: flex; align-items: center; gap: var(--s-8); }
/* a text logo: the display face at 500, 22px (the client's SVG logo replaces it when there is one) */
.nav__logo { display: inline-flex; align-items: center; gap: var(--s-2); font: 500 22px/1 var(--font-display); letter-spacing: -0.02em; flex: none; }
@media (max-width: 639px) { .nav__logo { font-size: 20px; } }
.nav__logo svg, .nav__logo img { height: 24px; width: auto; }
/* the brand's mark beside its name, in the accent (the client's logo replaces both). Dealt shapes:
   <span class="mark" data-mark="dots|arc|ring|petal|leaf|stack" aria-hidden="true"></span> */
.mark { display: inline-block; flex: none; width: 22px; height: 22px; background: var(--accent);
        -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.mark[data-mark="dots"]  { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5'/%3E%3Ccircle cx='17.5' cy='6.5' r='4.5'/%3E%3Ccircle cx='6.5' cy='17.5' r='4.5'/%3E%3Crect x='13' y='13' width='9' height='9' rx='1.5'/%3E%3C/svg%3E"); }
.mark[data-mark="arc"]   { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 21.5V12a9.5 9.5 0 0 1 19 0v9.5h-6V12a3.5 3.5 0 0 0-7 0v9.5z'/%3E%3C/svg%3E"); }
.mark[data-mark="ring"]  { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 5.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9z'/%3E%3C/svg%3E"); }
.mark[data-mark="petal"] { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6.6' r='5'/%3E%3Ccircle cx='17.4' cy='12' r='5'/%3E%3Ccircle cx='12' cy='17.4' r='5'/%3E%3Ccircle cx='6.6' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
.mark[data-mark="leaf"]  { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21C3 10 10 3 21 3c0 11-7 18-18 18z'/%3E%3C/svg%3E"); }
.mark[data-mark="stack"] { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2.5' width='20' height='5.5' rx='2.75'/%3E%3Crect x='2' y='9.25' width='14' height='5.5' rx='2.75'/%3E%3Crect x='2' y='16' width='8' height='5.5' rx='2.75'/%3E%3C/svg%3E"); }
/* initial: the name's first letter on a small accent tile (<span class="mark mark--initial" aria-hidden="true">K</span>);
   wordmark: no mark, the name alone */
.mark.mark--initial { -webkit-mask: none; mask: none; display: inline-grid; place-items: center; border-radius: calc(var(--r-sm) * 0.75);
  color: var(--accent-ink); font: var(--display-weight, 400) 13px/1 var(--font-display); letter-spacing: 0; }
.footer__mark .mark, .footer .nav__logo .mark { width: 0.8em; height: 0.8em; margin-right: 0.18em; vertical-align: -0.04em; }
.footer__mark .mark--initial, .footer .nav__logo .mark--initial { width: 1em; height: 1em; font-size: 0.6em; }
.nav--split .nav__logo .mark--initial { width: 26px; height: 26px; font-size: 15px; }
.nav__links { display: flex; align-self: stretch; gap: var(--s-1); flex: 1; min-width: 0; }
.nav__item { display: flex; align-items: center; height: 100%; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: var(--s-1); height: 36px; padding: 0 var(--s-3); border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
/* a small laptop (1024-1279): the words sit closer, so a bar of four words never wraps or reaches the logo */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__bar { gap: var(--s-6); }
  .nav__link { padding: 0 var(--s-2); }
  .nav__link::before, .nav__link[aria-current="page"]::after { left: var(--s-2); right: var(--s-2); }
  .nav__links { gap: 0; }
}
/* the words take no pill or fill (ST-08, ST-11): a 2px line draws under the word from the left on hover and focus and leaves to the right */
.nav__link::before { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -2px; height: 2px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); pointer-events: none; }
.nav__link:hover::before, .nav__link:focus-visible::before, .nav__item:hover > .nav__link::before, .nav__item:focus-within > .nav__link::before { transform: scaleX(1); transform-origin: left; }
.nav__actions > .nav__link::before { left: var(--s-2); right: var(--s-2); }
.nav__link .chev { width: 12px; height: 12px; opacity: .6; transition: transform var(--dur) var(--ease); }
/* the page you are on: a 2px bar under its word (still, the same inset as the hover line) */
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -2px; height: 2px; border-radius: 2px; background: currentColor; }
.nav__expand { display: none; }
.nav__actions { display: flex; align-items: center; gap: var(--s-4); flex: none; }
/* the bar's button: the page's primary at the one button height (44, 48 with data-buttons="block"; ST-09) */
.nav__actions .btn { height: var(--btn-h); padding-inline: var(--s-5); font-size: 15px; }
.nav__actions > .nav__link { padding-inline: var(--s-2); }
.nav__toggle { display: none; }

.nav__menu {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: var(--s-7) 0 var(--s-8); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 120ms var(--ease), transform 120ms var(--ease), visibility 0s linear 120ms;
}
@media (min-width: 1024px) {
  /* hover opens the full-width panel after 150ms of intent; a click on the word goes to its page */
  .nav__item:hover > .nav__menu, .nav__item:focus-within > .nav__menu {
    opacity: 1; visibility: visible; transform: none; transition-duration: 200ms, 200ms, 0s; transition-delay: 150ms, 150ms, 150ms;
  }
  .nav__item:hover > .nav__link .chev, .nav__item:focus-within > .nav__link .chev { transform: rotate(180deg); }
}
.menu-col { display: grid; gap: var(--s-2); align-content: start; }
.menu-col > .t-label { color: var(--muted); margin-bottom: var(--s-2); }
.menu-col a { display: grid; gap: var(--s-1); padding: var(--s-2) 0; font-weight: 500; }
.menu-col a span { font-weight: 400; color: var(--muted); font-size: var(--t-small); }
.menu-col a:hover { color: var(--action); }
.menu-card { display: grid; gap: var(--s-3); }
.menu-card .panel { --ratio: 56.25%; }

@media (max-width: 1023px) {
  .nav__links, .nav__actions { display: none; }
  /* the menu button takes the secondary button's look on a 44px tap area */
  .nav__toggle {
    display: inline-grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-btn);
    border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; flex: none;
  }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: fixed; top: var(--nav); left: 0; right: 0; bottom: 0;
    padding: var(--s-4) var(--gut) calc(var(--btn-h) * 2 + 56px); background: var(--bg); overflow-y: auto; gap: 0;
  }
  .nav.is-open .nav__item { display: grid; grid-template-columns: 1fr auto; height: auto; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__link { height: 56px; padding: 0; font-size: 20px; background: none; }
  .nav.is-open .nav__link[aria-current="page"]::after { left: 0; right: auto; width: 24px; bottom: 10px; }
  .nav.is-open .nav__link::before { display: none; }
  .nav.is-open .nav__link .chev { display: none; }
  .nav.is-open .nav__expand {
    display: inline-grid; place-items: center; width: 44px; height: 56px; border: 0; background: none; color: var(--ink); cursor: pointer;
  }
  .nav__expand svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
  .nav__item.is-expanded .nav__expand svg { transform: rotate(180deg); }
  .nav.is-open .nav__menu {
    position: static; grid-column: 1 / -1; display: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 var(--s-4);
  }
  .nav.is-open .nav__item.is-expanded .nav__menu { display: block; }
  .nav.is-open .nav__menu :is(.container, .wrap) { width: 100%; }
  .nav.is-open .nav__menu .grid { row-gap: var(--s-4); }
  /* menu cards become plain rows in the sheet (their title and line), the picture panel hidden */
  .nav.is-open .menu-card { display: grid; gap: var(--s-1); padding: var(--s-2) 0; }
  .nav.is-open .menu-card .panel { display: none; }
  .nav.is-open .nav__actions {
    display: grid; gap: var(--s-2); position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
    padding: var(--s-4) var(--gut) calc(var(--s-4) + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
  }
  .nav.is-open .nav__actions .btn { width: 100%; height: 48px; font-size: var(--t-body); }
  /* a text action (Sign in, a phone line) under the buttons, centred at their height */
  .nav.is-open .nav__actions .nav__link { display: inline-flex; order: 2; justify-content: center; height: var(--btn-h); font-size: var(--t-body); }
  body.nav-locked { overflow: hidden; }
}
/* a tablet and a phone (1023 and below, ST-15): the main button stays in the bar, at the right line
   with the menu button 12px after it; the plain words go to the sheet */
@media (max-width: 1023px) {
  .nav__bar { gap: var(--s-3); }
  .nav:not(.is-open) .nav__actions { display: flex; margin-left: auto; }
  .nav:not(.is-open) .nav__actions > :not(.btn--primary) { display: none; }
  .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: 0; }
}
@media (max-width: 639px) {
  /* a long name (15 characters, "Verdigris Works"), the main button and the menu button fit 342px (390 wide) on
     one line each, with no page CSS: the name steps down with the screen (18px at 390), the button is the small
     size, and the three sit 8px apart. A name of 17 characters or more is the client's to shorten to its mark. */
  .nav__bar { gap: var(--s-2); }
  .nav__logo { font-size: clamp(16px, 4.6vw, 20px); gap: 6px; white-space: nowrap; }
  .nav__logo .mark:not(.mark--initial) { width: 20px; height: 20px; }
  .nav:not(.is-open) .nav__actions .btn { height: 44px; padding-inline: var(--s-3); font-size: var(--t-small); }
  /* with the phone action bar the bar's button is the action's copy at the foot: the nav's goes into the sheet, so
     the first screen shows it once, the hero's (the bar waits until that has scrolled away; without script, twice
     at most, the hero's and the bar's; copy.md rule 5, action-repeat) */
  :root:has(> body > nav.actionbar) .nav:not(.is-open) .nav__actions { display: none; }
  :root:has(> body > nav.actionbar) .nav:not(.is-open) .nav__toggle { margin-left: auto; }
}
/* no script: the sheet cannot open, so the words stay in the bar (it scrolls sideways) and the dead menu button goes */
@media (scripting: none) and (max-width: 1023px) {
  .nav__links { display: flex; overflow-x: auto; scrollbar-width: none; margin-right: var(--s-3); padding-right: var(--s-2); border-right: 1px solid var(--line); }   /* stops short of the button, and a hairline marks where the row is cut (it scrolls) */
  .nav__toggle { display: none; }
}
/* a phone leaves the words under 80px of bar ("Bre" at 320): they stay in the footer's columns, the bar keeps the name
   and the main button */
@media (scripting: none) and (max-width: 639px) { .nav__links { display: none; } }

/* nav types (dealt, sections.md). Every one is the same fixed bar on the page's .wrap; the full-width
   hover panel on a desktop and the full-screen sheet on a phone are shared, so only the bar's order
   and its panel's contents differ.
   (default) nav-mega: the logo, the words 64px right of it, the actions at the right line; the panel
              holds two or three link columns and one picture card (Figma)
   nav-cards: the same bar; its panel holds three or four picture cards (a.menu-card, span-4 or span-3)
   .nav--centre: the words in the middle of the bar (Linear, Vercel)
   .nav--split: the words left, the name in the middle, the actions right (shops, hotels, restaurants)
   .nav--tone: the bar on the page's inverse ground, a band of colour over a light page (x.ai's black
              bar); the panel under it stays on the page ground */
@media (min-width: 1024px) {
  .nav--split .nav__bar, .nav--centre .nav__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .nav--split .nav__logo { grid-column: 2; grid-row: 1; font-size: 26px; }
  .nav--split .nav__links { grid-column: 1; grid-row: 1; }
  /* the first word starts on the left line (its box, its letters and its underline) */
  .nav--split .nav__links > .nav__item:nth-child(1 of .nav__item) > .nav__link { padding-left: 0; }
  .nav--split .nav__links > .nav__item:nth-child(1 of .nav__item) > .nav__link::before,
  .nav--split .nav__links > .nav__item:nth-child(1 of .nav__item) > .nav__link[aria-current="page"]::after { left: 0; }
  .nav--split .nav__actions, .nav--centre .nav__actions { grid-column: 3; grid-row: 1; justify-self: end; }
  .nav--centre .nav__logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .nav--centre .nav__links { grid-column: 2; grid-row: 1; justify-content: center; flex: none; }
}
.nav--tone { --bg: var(--p-inv-bg); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted); --accent: var(--p-inv-accent); --accent-ink: var(--p-inv-accent-ink);
             --action: var(--p-inv-action); --action-ink: var(--p-inv-action-ink); --card: var(--p-inv-surface);
             --line: color-mix(in oklab, var(--p-inv-ink) 14%, transparent); --line-strong: color-mix(in oklab, var(--p-inv-ink) 26%, transparent); }
.nav--tone .nav__menu { --bg: var(--p-bg); --ink: var(--p-ink); --muted: var(--p-muted); --action: var(--p-action); --line: color-mix(in oklab, var(--p-ink) 11%, transparent); }
/* the older float type is the plain bar now (a floating, frosted pill is not a header) */

/* ---------------------------------------------------------------- logo row */
.logos { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5) var(--s-6); }
.logos > * { height: 28px; width: auto; max-width: 100%; color: var(--ink); }
.logos .wordmark { height: auto; font: 500 var(--t-card)/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
/* --mono marks in a logo row: 28px tall, each in the same box (the mask keeps its shape) */
.logos .icon-mono { width: 120px; height: 28px; }
/* tablet and phone: a grid, so a wrapped row never leaves one logo on its own */
@media (max-width: 1023px) { .logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; } }
@media (max-width: 639px)  { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- lists, quote, steps */
.checks { display: grid; gap: var(--s-3); }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; }
.checks li::before {
  content: ""; width: 20px; height: 20px; margin-top: 2px; background: var(--action);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Crect width='20' height='20' fill='white'/%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='10' cy='10' r='10' mask='url(%23m)'/%3E%3C/svg%3E") center / 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Crect width='20' height='20' fill='white'/%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='10' cy='10' r='10' mask='url(%23m)'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.quote blockquote { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-h3);
                    line-height: 1.3; letter-spacing: var(--display-tracking); text-wrap: pretty; }
/* cards.css styles .quote as quote text; who said it stays in the text face */
.quote figcaption, .quote .person { font: 400 var(--t-small)/1.45 var(--font-text); letter-spacing: 0; color: var(--ink); }
.person { display: flex; align-items: center; gap: var(--s-3); }
.person img, .person .avatar { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; background: var(--surface); flex: none; }
.person .avatar { display: grid; place-items: center; font: 500 var(--t-small)/1 var(--font-text); color: var(--muted); }
/* the number beside a quote (quote-stat): below 1024 it sits under the quote, by space alone (ST-43) */
@media (max-width: 1023px) { .stat-aside { margin-top: var(--s-7); } }
/* a stats row: two to four short facts, the number above its label (data-m-count on a count) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-5) var(--gutter); margin: 0; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-2); }
.stats dd { margin: 0; }
.stats .t-stat { font-size: clamp(26px, 1vw + 22px, 36px); }
@media (max-width: 639px) { .stats .t-stat { font-size: 26px; } }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
            border: 1px solid var(--line-strong); font: 500 var(--t-small)/1 var(--font-text); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tab {
  height: var(--btn-h-sm); padding: 0 var(--s-4); border-radius: var(--r-btn); border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: var(--t-small); font-weight: 500; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* the panel shown at load is there on the first frame (MO-62); system.js fades a chosen one in */
[role="tabpanel"][hidden] { display: none; }

/* ---------------------------------------------------------------- pricing */
.price { display: flex; align-items: baseline; gap: var(--s-2); }
.price .t-stat { font-size: var(--t-stat); }
.card--plan { gap: var(--s-4); }
.card--plan .btn { width: 100%; }
.card--plan .checks { margin-top: var(--s-2); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s-3); border-radius: 999px; vertical-align: middle;
         background: var(--action); color: var(--action-ink); font: 500 var(--t-label)/1 var(--font-text); letter-spacing: 0; }
.card--plan h3 .badge { margin-left: var(--s-2); }

/* ---------------------------------------------------------------- FAQ
   Every answer is open, always (ST-47, MO-70): no accordion, no +/- marker, nothing changes height.
     <div class="faq"><div class="faq__item"><h3>[Question]</h3><p>[Answer]</p></div> ...</div>
   Older <details> markup shows its answer open too (system.js also sets [open]). */
.faq > :is(.faq__item, details) { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }   /* each row closes with its rule (ST-43) */
.faq > :is(.faq__item, details):first-child { padding-top: 0; }
.faq :is(.faq__item > h3, summary) { display: block; font: 500 var(--t-lead)/1.4 var(--font-text); letter-spacing: 0; list-style: none; cursor: text; }
.faq summary { pointer-events: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details::details-content { content-visibility: visible; }
.faq :is(.faq__item, details) p { color: var(--ink); max-width: 64ch; }
@media (max-width: 639px) { .faq > :is(.faq__item, details) { padding: var(--s-4) 0; } }

/* ---------------------------------------------------------------- footer */
.footer { padding-block: var(--section) var(--s-6); border-top: 1px solid var(--line); }   /* an older footer after the last section; footer.closing (below) replaces it */
.footer .grid { row-gap: var(--s-7); }
.footer :is(h3, h4):not(.closing__cta *) { font: 500 var(--t-small)/1.4 var(--font-text); letter-spacing: 0; color: var(--muted); margin-bottom: var(--s-4); }
.footer ul { display: grid; gap: var(--s-3); font-size: var(--t-small); }
.footer ul a:hover { color: var(--action); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); justify-content: space-between;
                 margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line);
                 font-size: var(--t-label); color: var(--muted); }
.socials { display: flex; gap: var(--s-2); }
.socials a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.socials a:hover { border-color: var(--line-strong); }
.socials svg, .socials img, .socials .icon-mono { width: var(--icon); height: var(--icon); }
/* a brand mark in the text colour (icons.mjs --mono prints these): the SVG is a mask, so it
   follows currentColor on every ground. The mask image is set in the tag's style attribute. */
.icon-mono { display: inline-block; flex: none; width: var(--icon); height: var(--icon); background: currentColor;
             -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
@media (max-width: 1023px) { .footer .footer__col { grid-column: auto / span 6; } .footer .grid > .span-4 { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 1023px) { .footer .footer__col { grid-column: auto / span 3; } }

/* the company block's one line, set in the display face (footer-columns) */
.footer__lede { font: var(--display-weight) var(--t-h3)/1.25 var(--font-display); letter-spacing: var(--display-tracking); max-width: 22ch; }
/* the legal row's end: the socials sit right of the copyright line */
.footer__legal .socials a { width: 32px; height: 32px; }

/* footer types (dealt, sections.md).
   .footer--dark (Figma, x.ai): a dark ground (with .ground-inverse), the name set large top left, the
   link columns on the right. On a dark page it stays dark: a step darker than the page, a hairline
   on top (system.js sets <html data-tone="dark">), never a light slab under a dark page. */
.footer--dark { border-top: 0; padding-block: var(--section-band) var(--s-6); }   /* a change of ground: the gap a band gets */
html[data-tone="dark"] .footer--dark {
  --bg: color-mix(in oklab, var(--p-bg) 72%, #000); --surface: var(--p-surface); --ink: var(--p-ink); --muted: var(--p-muted);
  --accent: var(--p-accent); --accent-ink: var(--p-accent-ink); --action: var(--p-action); --action-ink: var(--p-action-ink);
  border-top: 1px solid var(--line);
}
.footer__mark { display: inline-flex; align-items: center; font: var(--display-weight) var(--t-h2)/1 var(--font-display); letter-spacing: var(--display-tracking); }
/* .footer--visit (a place): the address set large with the way there, the hours beside it, then
   one row of the nav's words; no third ask for the main action */
.footer__address { font: var(--display-weight) var(--t-h2)/1.1 var(--font-display); letter-spacing: var(--display-tracking); font-style: normal; }
.footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); font-weight: 500; }
.footer__nav a:hover { color: var(--action); }
.footer__nav .socials { margin-left: auto; }
.footer--visit .footer__legal { margin-top: var(--s-5); border-top: 0; padding-top: 0; }
/* .footer--statement: the close and the footer in one inset slab on the page's lit ground (sand,
   sky, sage or painting): one big line, one full-width button, then the columns */
.footer--statement {
  margin: 0; border: 0; border-radius: 0; padding-block: var(--s-10) var(--s-6);
  background: var(--ground-bg); color: var(--ground-ink);
  --bg: var(--ground-bg); --surface: var(--ground-surface); --ink: var(--ground-ink); --muted: var(--ground-muted);
  --action: var(--ground-ink); --action-ink: var(--ground-surface); --accent: var(--ground-accent);
  --line: color-mix(in oklab, var(--ground-ink) 14%, transparent); --line-strong: color-mix(in oklab, var(--ground-ink) 28%, transparent);
}
.footer--statement .cta-type { padding-bottom: var(--s-9); margin-bottom: var(--s-8); border-bottom: 1px solid var(--line); }
@media (max-width: 639px) { .footer--statement:not(.closing) { padding-top: var(--s-9); } }
/* opening hours: <dl class="hours" data-tz="Europe/Berlin">, one dt (its days: "Mon to Fri", "Sat and
   Sun", or data-days="mon-fri") and one dd a row. system.js marks today's row .is-today in the venue's
   time zone (never the visitor's clock); the labels are read, so they stay in ink */
.hours { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); font-variant-numeric: tabular-nums; }
.hours dt { color: var(--ink); } .hours dd { margin: 0; }
.hours .is-today { font-weight: 500; }
.hours dt.is-today::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: var(--s-2); border-radius: 999px; background: var(--accent); vertical-align: 0.2em; }
/* the visit block (a place, sections.md), on the container's lines. Open by default: the words on the page ground,
   no box (a box as wide as the section on a ground of its own reads as a band to the rhythm check, and a phone's
   padding moves its words off the left line). .visit--card is the panel on --g-alt for the full page, where it
   stands in a split column beside the client's photograph: from 1024px up only, at most half the container,
   48px inside; under 1024 it is open type again. .visit--cols is the short page's: address, hours and access as
   three columns, then the menu as .rows under it in the same section.
   Its head is the label "Visit" left and the open-now line right; under it the address column and the hours column 24
   apart; under both at most two 44px rows (access, a guesthouse's check-in, "By appointment").
   <section class="section" data-place="visit" aria-label="Visit"><div class="wrap"><div class="visit">
     <div class="visit__head"><p class="t-label muted">Visit</p><p class="t-small" data-open-now></p></div>
     <div class="visit__cols">
       <div class="visit__col stack-4"><address class="visit__address">Street<br>District</address>
         <a class="link" href="https://www.openstreetmap.org/search?query=..">Get directions</a></div>
       <div class="visit__col"><dl class="hours" data-tz="Europe/Berlin"><dt>Mon to Fri</dt><dd>8 to 18</dd></dl></div>
     </div>
     <ul class="visit__rows"><li><span>Access</span><span>Step-free at the front door</span></li></ul>
   </div></div></section> */
.visit { display: grid; gap: var(--s-5); color: var(--ink); }
.visit__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.visit__head > * { margin: 0; }
.visit__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-5); }   /* the columns stretch to one height (row-lines) */
.visit--cols .visit__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.visit__col { min-width: 0; }
.visit__col > .t-label { margin-bottom: var(--s-3); color: var(--muted); }
.visit__address { font: 400 20px/30px var(--font-text); font-style: normal; }
.visit__rows { display: grid; margin: 0; padding: 0; list-style: none; }
.visit__rows > li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 44px; border-top: 1px solid var(--line); }
.visit__rows > li > :first-child { color: var(--muted); }
.visit__rows > li > :last-child { text-align: right; }
@media (min-width: 1024px) {
  .visit--card { --bg: var(--p-surface); --surface: var(--p-bg); --card: var(--p-bg); background: var(--bg); border-radius: var(--r-lg); padding: var(--s-7); }
}
@media (max-width: 1023px) { .visit--cols .visit__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .visit__cols, .visit--cols .visit__cols { grid-template-columns: minmax(0, 1fr); }
  .visit__address { font-size: 18px; line-height: 28px; }
  .visit__rows > li { align-items: flex-start; flex-direction: column; justify-content: center; gap: 0; padding-block: var(--s-2); }
  .visit__rows > li > :last-child { text-align: left; }
}
/* photo credits: one short line that opens the full list (copy.md), at the end of the legal row:
   <details class="credits"><summary>Photographs via Unsplash and Wikimedia Commons</summary>
   <p>one line a photograph, as photos.mjs credits prints them</p></details> */
.credits { flex-basis: 100%; font-size: var(--t-label); color: var(--muted); }
.credits > summary { display: inline; cursor: pointer; list-style: none; }
.credits > summary::-webkit-details-marker { display: none; }
.credits > summary::after { content: "Credits"; margin-left: var(--s-2); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.credits[open] > summary::after { content: "Hide"; }
.credits > :not(summary) { margin-top: var(--s-2); max-width: 110ch; }
.credits a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- footer.closing: the close and the footer, one screen
   The page ends on one more section: <footer class="footer closing [footer--dark | footer--statement |
   footer--visit]"> whose .wrap holds exactly two children, the close (.closing__cta, row 1, the
   rest of the screen) and the links (.closing__links, row 2: the columns, then the legal row). The
   close sits on the footer's own ground, so it is never a slab flush on a footer under it. Its three
   looks (dealt, sections.md):
     .close--photo  the h2 and the button on one head row, then the client's photograph across the
                    .wrap down to the links (never the hero's photograph)
     .close--type   the h2 and a line, then the big button across the .wrap (Figma's close)
     .close--word   the name set across the .wrap in the display face under the h2 and the button
   A phone stacks it in one screen; add .g2m when the links need a screen of their own. */
footer.closing { border-top: 0; }
footer.closing > .wrap { display: grid; grid-template-rows: minmax(0, 1fr) auto; row-gap: var(--s-8); }
footer.closing.g2 > .wrap { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.closing__cta { min-height: 0; display: flex; flex-direction: column; gap: var(--s-6); }
.closing__cta > .section-head--split, .closing__cta > .section-head { margin-bottom: 0; }
.closing__cta h2 { max-width: 20ch; }
.closing__cta > .close__media { flex: 1 1 0; min-height: clamp(120px, 18svh, 160px); position: relative; overflow: clip; border-radius: var(--r-lg); background: var(--surface); }
.close__media > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.closing__cta.close--type > .btn--xl { align-self: stretch; }
/* the 640px button (product, service, place) stays within half the .wrap, so it never stands over half of it off its
   right line: on a place's 1200px column it is 600 (SR-6) */
@media (min-width: 640px) { .closing__cta.close--type > .btn--xl:not(.btn--wide) { width: min(50%, 640px); } }
/* the name across the .wrap: sized in layout.js-free CSS from the container (8 letters fill 1280) */
.close__word { margin-top: auto; font: var(--display-weight) clamp(64px, 14.5vw, 216px)/.86 var(--font-display); letter-spacing: -0.045em;
               white-space: nowrap; overflow: clip; color: var(--ink); }
.closing__links { display: grid; gap: var(--s-7); }
.closing__links > .footer__legal { margin-top: 0; }
.closing__links .footer__lede { font-size: var(--t-lead); max-width: 30ch; }
/* a phone: a close with a photograph takes a screen of its own (the photograph fills what the words
   leave) and the links the next; a close in type stays one screen with its links */
@media (max-width: 639px) {
  footer.closing:has(> .wrap > .closing__cta > .close__media) { --hm: 2; }
  footer.closing:has(> .wrap > .closing__cta > .close__media) > .wrap { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: calc(var(--padt) + var(--padb) + var(--bar)); }
  footer.closing:has(> .wrap > .closing__cta > .close__media) .closing__links { align-self: start; }
}
@media (max-width: 639px) {
  footer.closing > .wrap { row-gap: var(--s-7); }
  .closing__links { gap: var(--s-5); }
  .closing__links > .grid { row-gap: var(--s-5); }
  .closing__links .footer__col { grid-column: auto / span 6; }
  .closing__cta > .close__media { min-height: 140px; }
  .close__word { font-size: clamp(56px, 19vw, 96px); }
}
/* a phone: every link and control outside a line of running text is a 44px target (the bar's name, the
   footer's links, its legal row and credits line, a text link, the pill, a small button, the socials);
   a footer list of links loses its gap, since each row is now its own 44px (a plain row in it, "Two days'
   notice", is 44px too, so the rows keep one rhythm); a pill that is only a label keeps its 32px */
@media (max-width: 639px) {
  :root { --btn-h-sm: 44px; }
  .nav__logo, .footer__mark, .link, :is(a, button).pill { min-height: 44px; }
  :is(a, button).pill { height: auto; }
  .footer ul:has(> li > a) { gap: 0; }
  .footer ul:has(> li > a) > li:not(:has(> a)) { display: flex; align-items: center; min-height: 44px; }
  :is(.footer ul, .footer__legal, .footer__nav) a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  /* a block, not a flex row: "Credits" stays on the line after the sources instead of wrapping alone */
  .credits > summary { display: block; min-height: 44px; padding-block: 12px; line-height: 20px; }
  .socials a, .footer__legal .socials a { width: 44px; height: 44px; }
}

/* ---------------------------------------------------------------- the big close (closing-type) */
/* the close starts on the left line like every other heading; the big button runs across the .wrap */
.cta-type { display: grid; justify-items: start; gap: var(--s-6); text-align: left; }
.cta-type h2 { max-width: 22ch; }
/* the primary button at its one large size, once a page: 640px wide and centred; .btn--wide runs it
   across the container (Figma's close), on a software page only (system.md) */
.btn--xl { width: min(100%, 640px); height: clamp(64px, 1.4vw + 48px, 72px); font: var(--display-weight) clamp(20px, 0.6vw + 16px, 26px)/1 var(--font-display); letter-spacing: var(--display-tracking); }
.btn--xl.btn--wide { width: 100%; height: clamp(64px, 3vw + 40px, 88px); font-size: clamp(22px, 0.95vw + 18px, 32px); justify-content: space-between; padding-inline: var(--s-7); }
html[data-buttons] .btn--xl::after { width: 0.6em; height: 0.6em; }
/* on a phone it is the page's own button at full width, one step taller, so the pair stays one look */
@media (max-width: 639px) { .btn--xl, .btn--xl.btn--wide { width: 100%; height: 48px; font: 500 18px/1 var(--font-text); letter-spacing: 0; } }

/* ---------------------------------------------------------------- photographs
   .photo-band: one photograph (or film) and a few words. Three uses: the older photo hero
   (.photo-band--hero.photo-band--bleed), one media band mid-page (rhythm media-band) and the close
   (closing-photo). Nothing is laid over the photograph to make words readable: no scrim, gradient,
   veil or blurred panel (PH-31, VI-49). From 640 the words stand in a solid box in the section's own
   colours, lower left on the photograph (.photo-band--left: centred on the left side; --light is the
   same box, kept for old markup). On a phone, and on a place at every width (a place photograph
   carries no words), the photograph stands alone and the words go under it on the ground. */
.photo-band { position: relative; isolation: isolate; overflow: clip; display: grid; align-items: end;
              min-height: clamp(440px, 46vw, 720px); border-radius: var(--r-lg); background: var(--surface); }
.photo-band--bleed { border-radius: 0; }
.photo-band--hero { min-height: calc(100svh - var(--nav-h)); }
/* the older photo hero first in main (layout/hero-photo.html replaces it): the first screen, under the fixed header */
main > .photo-band--hero:first-child { height: 100svh; min-height: 0; }
main > .photo-band--hero:first-child > .photo-band__text { padding-top: calc(var(--nav) + var(--hgap)); }
.photo-band > :is(img, video, picture) { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.photo-band > picture > img { width: 100%; height: 100%; object-fit: cover; }
.photo-band__text { position: relative; display: grid; gap: var(--s-4); justify-items: start; color: var(--ink); }
.photo-band__text > :is(h1, h2, p) { max-width: 18ch; }
.photo-band__text > p { max-width: 44ch; font-size: var(--t-lead); }
/* from 640: a solid box in the section's colours, 32px in from the photograph's lower-left corner;
   on a full-bleed band it starts on the page's left line */
@media (min-width: 640px) {
  :root:not([data-type="place"]) .photo-band__text {
    width: fit-content; max-width: min(560px, calc(100% - 2 * var(--s-6))); margin: var(--s-6);
    padding: var(--s-6); background: var(--bg); border-radius: var(--r-md);
  }
  :root:not([data-type="place"]) .photo-band--bleed > .photo-band__text { margin: var(--s-8) max(var(--gut), (100% - var(--container)) / 2); }
  :root:not([data-type="place"]) main > .photo-band--hero:first-child > .photo-band__text { margin-top: calc(var(--nav) + var(--hgap)); padding-top: var(--s-6); }
  .photo-band--left { align-items: center; }
}
@media (max-width: 639px) {
  .photo-band { display: block; min-height: 0; overflow: visible; background: none; border-radius: 0; }
  .photo-band > :is(img, video, picture) { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
  .photo-band--bleed > :is(img, video, picture) { border-radius: 0; }
  .photo-band__text { padding: var(--s-5) 0 0; }
  .photo-band--bleed > .photo-band__text { padding: var(--s-5) var(--pad) 0; }
  .photo-band--hero > .photo-band__text { padding-bottom: var(--section); }
  /* the hero's photograph grows to fill the first screen above its words */
  .photo-band--hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--nav-h)); }
  .photo-band--hero > :is(img, video, picture) { flex: 1 0 0; min-height: 100vw; aspect-ratio: auto; object-fit: cover; }
}
:root[data-type="place"] .photo-band { display: flex; flex-direction: column; min-height: 0; overflow: visible; background: none; border-radius: 0; }
:root[data-type="place"] .photo-band > :is(img, video, picture) { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; height: auto; aspect-ratio: 4 / 3; }
:root[data-type="place"] .photo-band__text { padding: var(--s-6) 0 0; }
:root[data-type="place"] .photo-band--bleed > .photo-band__text { padding-inline: max(var(--gut), (100% - var(--container)) / 2); }

/* .pl-photo: every single in-flow photograph on a place (visit, menu, story, booking, close; PH-80).
   It keeps its ratio (--pl-r as a number: 1.3333 for 4:3, .8 for 4:5, 1 for 1:1) and its column, and
   when the screen is short it gets shorter, narrowing from its column's outer edge (.pl-photo--end
   for a photograph in the right-hand column). Square corners, nothing on it.
     <figure class="pl-photo" style="--pl-r: .8"><img src=".." alt=".." loading="lazy"></figure> */
:root { --pl-room: calc(100svh - var(--padt) - var(--padb) - var(--bar)); }
.pl-photo { container-type: inline-size; margin: 0; min-width: 0; }
.pl-photo > img, .pl-photo > picture > img {
  display: block; aspect-ratio: var(--pl-r, 1.3333); width: auto; max-width: 100%;
  height: min(calc(100cqw / var(--pl-r, 1.3333)), var(--pl-cap, calc(var(--pl-room) - var(--pl-head, 0px))));
  object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: var(--r-lg);
}
.pl-photo--end > img, .pl-photo--end > picture > img { margin-left: auto; }
@media (max-width: 1023px) { .pl-photo > img, .pl-photo > picture > img { width: 100%; height: auto; } }
/* the visit screen on a phone ends in its photograph: the .pl-photo after the words (the last in its row of the
   split) takes what they leave of the screen, from its own ratio to 4:5 at most, so the screen never ends in an
   empty band (the row becomes a column, its gaps kept) */
@media (max-width: 639px) {
  [data-place="visit"] > .wrap:not(.grid) > .grid:has(> .pl-photo:last-child) { flex: 1 0 auto; }
  [data-place="visit"] > .wrap.grid:has(> .pl-photo:last-child),
  [data-place="visit"] > .wrap > .grid:has(> .pl-photo:last-child) { display: flex; flex-direction: column; }
  [data-place="visit"] .grid > .pl-photo:last-child,
  [data-place="visit"] .grid > .pl-photo:last-child > picture { display: flex; flex-direction: column; flex: 1 0 auto; }
  [data-place="visit"] .grid > .pl-photo:last-child > img,
  [data-place="visit"] .grid > .pl-photo:last-child > picture > img { flex: 1 0 auto; max-height: calc(100cqw * 1.25); }
}

/* .tile: an open tile, the picture on top and its words on the page ground under it, no box
   (a room, a model, a person, a case). One --tile-ratio per row so the pictures line up. */
.tile { display: grid; gap: var(--s-4); align-content: start; color: inherit; }
.tile__media { position: relative; overflow: clip; aspect-ratio: var(--tile-ratio, 4 / 3); border-radius: var(--r-lg); background: var(--surface); }
.tile__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { a.tile:hover .tile__media > img { transform: scale(1.03); } }   /* inside its mask; the tile never grows (motion.css has the same) */
.tile--portrait { --tile-ratio: 4 / 5; }
.tile--wide { --tile-ratio: 16 / 9; }
.tile__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }
.tile__head > :is(h3, h4) { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.tile__price { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile__facts { color: var(--muted); font-size: var(--t-small); margin-top: calc(-1 * var(--s-3)); }
.tile > p { color: var(--ink); max-width: 52ch; }
/* an object render or a drawing in a tile (line-up): on the lit ground, the object filling the tile */
.tile__media:has(> [data-print], > .drawing) { display: grid; place-items: center; background: var(--ground-bg); }
.tile__media > [data-print] { position: absolute; inset: 0; }
.tile__media > .drawing { width: min(84%, calc(84% * var(--ar, 1.5))); }

/* .drawing: a product with no photograph and no object of its kind, drawn (sections.md, the weak
   case): one inline SVG in true proportions, its lines a fixed 1.5px at every size, one part in the
   accent, dimension lines with their figures as HTML labels placed in percent of the figure.
   <figure class="drawing" style="--ar: 1.6" role="img" aria-label="..">
     <svg viewBox="0 0 1600 1000" aria-hidden="true">
       <g class="part"><path class="fill" d=".."/><path class="ln" d=".."/></g>
       <g class="dim"><path d="M100 960H1500"/><path d="M100 945v30M1500 945v30"/></g>
     </svg>
     <span class="drawing__dim" style="left: 50%; top: 96%">1,400 mm</span>
   </figure>
   In a frame it fits the frame whole (--ar: the viewBox's width over its height); a crop for a
   feature section is the same SVG with the viewBox set round the part. */
.drawing { position: relative; margin: 0; flex: none; aspect-ratio: var(--ar, 1.5); color: var(--ink); }
.frame > .drawing { width: min(100%, calc(var(--ratio, 50%) * var(--ar, 1.5) * 0.86)); }
/* a crop (a feature section's close-up of one part): it fills the frame and runs out of its edges,
   <svg preserveAspectRatio="xMidYMid slice">, no figures on it */
.frame > .drawing.drawing--crop { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.drawing > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.drawing :is(.ln, .fill, .acc, .dim) { vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.drawing .ln { fill: none; stroke: currentColor; stroke-width: 1.5; }
.drawing .fill { fill: color-mix(in oklab, var(--ink) 6%, var(--bg)); stroke: currentColor; stroke-width: 1.5; }
.drawing .acc { fill: var(--accent); stroke: currentColor; stroke-width: 1.5; }
/* a dark part (a black steel frame, a rubber foot) solid in ink, its seams .ink-ln */
.drawing .ink { fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; }
.drawing .ink-ln { fill: none; stroke: color-mix(in oklab, var(--bg) 45%, var(--ink)); stroke-width: 1; vector-effect: non-scaling-stroke; }
.drawing .dim, .drawing .dim * { fill: none; stroke: var(--muted); stroke-width: 1; }
.drawing .part { pointer-events: bounding-box; }
.drawing .part :is(.ln, .fill, .ink, .acc) { transition: stroke var(--dur) var(--ease), fill var(--dur) var(--ease); }
@media (hover: hover) {
  .drawing .part:hover :is(.ln, .fill) { stroke: var(--accent); }
  .drawing .part:hover .fill { fill: color-mix(in oklab, var(--accent) 14%, var(--bg)); }
  .drawing .part:hover .ink { fill: var(--accent); stroke: var(--accent); }
}
.drawing__dim { position: absolute; transform: translate(-50%, -50%); padding: 2px var(--s-2); border-radius: 999px;
  background: var(--bg); color: var(--ink); font: 500 var(--t-label)/1.3 var(--font-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 639px) {
  .drawing__dim { font-size: var(--t-label); padding: 1px 6px; }
  /* room for a figure at the drawing's edge, which keeps its 13px while the drawing shrinks */
  .frame > .drawing:not(.drawing--crop) { width: min(84%, calc(var(--ratio, 50%) * var(--ar, 1.5) * 0.8)); }
  /* a whole drawing (wider than tall) in a phone frame: the frame shortens to it, so a desk or a bike is
     not a small line across a tall empty box (a hero stage still grows to the first screen) */
  .frame:not(:has(> .frame__text)):has(> .drawing:not(.drawing--crop)) { --ratio: 80%; }
}

/* .peek: a list beside one photograph that changes to the row under the pointer (a place's or a
   service's one moment: rooms, spaces, classes, services, the menu's kinds). system.js runs it:
   <div class="grid grid--middle" data-peek>
     <div class="frame frame--photo frame--portrait span-5">
       <img class="frame__img" data-peek-for="garden" src=".." alt="..">
       <img class="frame__img" data-peek-for="kitchen" src=".." alt=".." hidden> ...</div>
     <ul class="rows span-6 start-7"><li data-peek-to="garden">..</li><li data-peek-to="kitchen">..</li></ul>
   </div> */
/* every row's words stay on the left line; the row on show darkens its rule to ink and marks its name
   with a dot after it. The photograph swaps at once (MO-07). The list runs as tall as the photograph
   (the row's two boxes match), its rows from the top. */
[data-peek] > .rows { align-self: stretch; }
[data-peek-to] { cursor: default; transition: border-color var(--dur) var(--ease); }
[data-peek-to].is-on { border-bottom-color: var(--ink); }
[data-peek-to] .rows__name::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: var(--s-2); vertical-align: .1em;
  border-radius: 999px; background: var(--accent); opacity: 0; }
[data-peek-to].is-on .rows__name::after { opacity: 1; }
@media (max-width: 1023px) { [data-peek-to] .rows__name::after { display: none; } }
/* a tablet shows the photograph under the list, full width: 5:4, not a portrait taller than the screen */
@media (min-width: 640px) and (max-width: 1023px) { [data-peek] .frame--portrait { --ratio: 80%; } }

/* .rows: a list read across, a name (and a line) left, a value right, hairlines between: a menu, a
   price list, services with prices, specs, hours. Never cards for these. */
.rows { border-top: 0; }   /* each row closes with its own rule; no rule above the first (ST-43) */
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-5); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
/* no rule above the first row, so no padding either: its words start on the line beside it (a photograph's top) */
.rows > li:first-child { padding-top: 0; }
.rows__name { font-weight: 500; }
.rows__value { grid-column: 2; grid-row: 1; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* a narrow phone: a long value ("14 to 22 months") wraps in its own column instead of squeezing the name to a word a line */
@media (max-width: 479px) { .rows__value { white-space: normal; max-width: 11ch; text-wrap: balance; } }
.rows > li > p { grid-column: 1; color: var(--ink); max-width: 56ch; }
.rows--spec .rows__name { font-weight: 400; color: var(--muted); }

/* forms (booking-form): fields on the system's control height, one radius, labels above */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.form > :is(.field--full, .btn-row, p) { grid-column: 1 / -1; }
.field { display: grid; gap: var(--s-2); font-size: var(--t-small); font-weight: 500; }
.field :is(input, select, textarea) {
  width: 100%; height: var(--btn-h); padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.4 var(--font-text);
}
.field textarea { height: auto; min-height: 120px; padding-block: var(--s-3); resize: vertical; }
@media (max-width: 639px) { .form { grid-template-columns: minmax(0, 1fr); } }
/* a field that fails on submit (system.js, references/system.md Forms): a 2px border and the reason under it in words,
   so colour is never the only sign; the error colour is a red pulled towards the ink, 4.5:1 on a light or a dark ground */
.form { --error: color-mix(in oklab, #d92d20 72%, var(--ink)); }
.field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--error); }
.field__error { font: 500 var(--t-small)/1.4 var(--font-text); color: var(--error); }
.field__error[hidden] { display: none; }
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: var(--s-2);
  border-radius: 50%; background: var(--error); color: var(--bg); font-size: 12px; line-height: 1; vertical-align: -2px; }
/* the status line under the button (role="status"): sending, sent or not sent, in words */
.form__status { grid-column: 1 / -1; min-height: 1.5em; font-size: var(--t-small); color: var(--ink); }
.form__status:empty { min-height: 0; }

/* sections part by a change of ground or by space only: no rule between them (.section--rule is plain) */

/* the phone action bar (a place's directions and booking; other types may use it): fixed at the foot
   under 640px, one 342x48 button or two of 165, and every section's foot pads for it (--bar).
   system.js shows it (data-bar="shown") once the hero's main button has scrolled off the top, and hides it
   (data-bar="hidden", inert) while that button, or a control that does what one of the bar's does, is on the
   screen: the bar never repeats an action the screen already shows. The hero never pads for it then (the bar
   is not on the first screen). Without script it is simply always there at the foot, under every section's
   padding, covering nothing. */
.actionbar { display: none; }
@media (max-width: 639px) {
  :root:has(> body > nav.actionbar) { --bar: calc(64px + env(safe-area-inset-bottom)); }
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    gap: var(--s-3); align-items: center; height: calc(64px + env(safe-area-inset-bottom));
    padding: var(--s-2) var(--gut) env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line);
    transition: transform 240ms var(--ease), visibility 0s;
  }
  .actionbar .btn { width: 100%; height: 48px; }
  /* hidden: below the screen's edge and out of the focus order (visibility; system.js adds inert) */
  .actionbar[data-bar="hidden"] { transform: translateY(100%); visibility: hidden; transition: transform 240ms var(--ease), visibility 0s 240ms; }
  :root:has(> body > nav.actionbar:is([data-bar="shown"], [data-bar="hidden"])) main > :is(.hero, .section--hero) { --bar: 0px; }
}
/* with script on, hidden from the first frame until system.js has read the screen, so it never shows over the hero
   (data-bar="always": system.js could not wire it, so it stays, as without script, and the hero pads for it) */
@media (max-width: 639px) and (scripting: enabled) {
  .actionbar:not([data-bar="shown"], [data-bar="always"]) { transform: translateY(100%); visibility: hidden; }
  :root:not(:has(> body > nav.actionbar[data-bar="always"])) main > :is(.hero, .section--hero) { --bar: 0px; }
}
@media (max-width: 639px) and (prefers-reduced-motion: reduce) {
  .actionbar, .actionbar[data-bar="hidden"] { transition: none; }
}

/* a brand-colour band (product and place may add one, in the page's second half): the accent as the
   section's ground, its words in the accent's ink */
.ground-brand { --bg: var(--p-accent); --surface: color-mix(in oklab, var(--p-accent) 88%, var(--p-accent-ink)); --ink: var(--p-accent-ink);
  --muted: color-mix(in oklab, var(--p-accent-ink) 82%, var(--p-accent)); --card: var(--surface);
  --action: var(--p-accent-ink); --action-ink: var(--p-accent); background: var(--bg); color: var(--ink); }
.ground-brand { --line: color-mix(in oklab, var(--ink) 16%, transparent); --line-strong: color-mix(in oklab, var(--ink) 30%, transparent); }

/* a [bracketed placeholder] or a "(sample)" tag left in visible text: system.js marks it so it shows
   in every screenshot; nothing like it ships (copy.md) */
[data-placeholder] { outline: 2px dashed #d92d20; outline-offset: 2px; }

/* ---------------------------------------------------------------- highlight + entrance + motion */
/* data-hl (older markup) is plain ink from the first frame: nothing on the page changes colour on load
   (MO-62); a heading's second half in .muted is the one highlight */
/* the hero's words are set on the first frame: no entrance (.enter stays a no-op for old markup) */
.enter { animation: none; }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  /* a card loop of motion.css ([data-m-loop]) holds its own finished frame */
  :not([data-m-loop], [data-m-loop] *), ::before, ::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
                           transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* the skip link: the first child of the header's .wrap (starter.html), out of the layout until the first Tab, then
   a plain button over the logo on the page's ground, on the .wrap's left line of the fixed header, so it never
   moves the logo off that line */
.skip-link { position: absolute; left: max(var(--gut), (100% - var(--container)) / 2); top: 50%; z-index: 2; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { width: auto; height: var(--btn-h); padding: 0 var(--s-5); clip-path: none; transform: translateY(-50%);
  display: inline-flex; align-items: center; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: var(--r-btn); font: 500 var(--t-body)/1 var(--font-text); }
.stack-2 > * + * { margin-top: var(--s-2); }
.stack-4 > * + * { margin-top: var(--s-4); }
.stack-5 > * + * { margin-top: var(--s-5); }
.stack-6 > * + * { margin-top: var(--s-6); }

/* ui/cards.css */
/*
  taste-skill feature cards - the card, its inset panel and where a fragment sits on it.
  The rules and their reasons are in references/cards.md. Link after system.css (it refines .card
  and .panel there) or on its own with these tokens on a ground:
    --bg (page), --card (one step off the page), --ink, --muted, --accent, --accent-ink,
    --font-text, --font-mono
  Fragments in a panel take --fx-* from .stage (set below from the same tokens).
*/

/* ---------------------------------------------------------------- the card */
.card {
  --c-r: 20px;                      /* card radius */
  --c-pad: 28px;                    /* text padding = the panel's side inset */
  --c-gap: 8px;                     /* an inset panel's margin; its radius is --c-r minus this */
  --c-border: color-mix(in oklab, var(--ink) 8%, transparent);
  --c-text: color-mix(in oklab, var(--ink) 84%, var(--card));   /* card text: the ink, a touch softer than titles */
  --c-hi: oklch(from var(--card) 1 0 0 / clamp(0, calc(0.09 - l * 0.09), 0.07));
  --c-sh: oklch(from var(--card) 0 0 0 / calc(0.07 - l * 0.04));
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: var(--c-pad); border-radius: var(--c-r);
  background: var(--card); color: var(--ink);
  border: 1px solid var(--c-border);
  box-shadow: inset 0 1px 0 var(--c-hi), 0 1px 2px var(--c-sh);
  overflow: clip;
  gap: 0;
}
@media (min-width: 1024px) { .card { --c-pad: 32px; } }
@media (max-width: 639px) { .card { --c-r: 18px; --c-pad: 20px; } }

.card > h3, .card__title {
  margin: 0; font-family: var(--font-text); font-size: 18px; line-height: 26px; font-weight: 560;
  letter-spacing: -0.012em; color: var(--ink); text-wrap: balance;
}
/* the two lines under a title: 16px in the ink (a touch softer than the title), never small grey text */
.card > p, .card__text {
  margin: 8px 0 0; font-size: 16px; line-height: 24px; color: var(--c-text);
  max-width: 46ch; text-wrap: pretty;
}
/* two muted lines keep one height in a row so the panels line up; only where cards sit side by side
   (below 1024px a row is one column, and the held line would be an empty gap) */
@media (min-width: 1024px) { .card--row > p { min-height: 2lh; } }
.card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; width: max-content;
  font-size: 15px; font-weight: 500; line-height: 22px; color: var(--ink); text-decoration: none;
}
.card__link svg { width: 14px; height: 14px; transition: transform 200ms cubic-bezier(.2,.7,.2,1); }
.card__link:hover svg { transform: translateX(2px); }

/* ---------------------------------------------------------------- the inset panel */
/* Default (x.ai): aligned with the text column and running off the card's bottom edge.
   The effect canvas mounts on the panel (data-fx) and sits under everything in it. */
.panel {
  --p-r: 12px;
  display: block; padding: 0;
  --p-h: clamp(264px, 22vw + 8px, 340px);
  position: relative; isolation: isolate; overflow: clip;
  min-height: var(--p-h); flex: 1 0 auto;
  border-radius: var(--p-r) var(--p-r) 0 0;
  background: color-mix(in oklab, var(--ink) 4%, var(--card));
}
/* a panel with no effect mounted stands on the page's lit ground (system.css --ground-*: sand, sky,
   sage, painting), never a grey a shade off the white UI on it: flat on kind other (cafes, shops,
   studios); on a tech page (site-kind tech, software or gaming) a soft mesh of the ground's own tones,
   the Figma tile, with no grain (grain or texture would be the page's one effect). A [data-fx] panel
   draws its effect instead. */
.panel:not([data-fx], .panel--device) { background: var(--ground-bg, #d9ccb7); }
:root:has(meta[name="site-kind"]:is([content="tech"], [content="software"], [content="gaming"])) .panel:not([data-fx], .panel--device) {
  background-color: var(--ground-bg, #d9ccb7);
  background-image:
    radial-gradient(70% 90% at 12% 0%, color-mix(in oklab, var(--ground-surface, #e9e0d2) 92%, white), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, color-mix(in oklab, var(--ground-accent, #a8794a) 34%, var(--ground-bg, #d9ccb7)), transparent 72%),
    radial-gradient(50% 60% at 85% 10%, color-mix(in oklab, var(--ground-surface, #e9e0d2) 60%, transparent), transparent 70%);
}
.card > .panel { margin-top: 32px; margin-bottom: calc(-1 * var(--c-pad) - 1px); }
.card > .panel--device { margin-top: 24px; }
/* system.css spaces the text above a panel itself; here the panel carries the 32px */
.card > :has(+ .panel) { margin-bottom: 0; }
/* a crisp 1px edge over the ground and over any fragment it crops */
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 7%, transparent), inset 0 1px 0 color-mix(in oklab, var(--ink) 4%, transparent);
}
/* the vignette that calms the ground where the fragment sits (--vx, --vy: its centre) */
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; width: auto; padding: 0;
  background: radial-gradient(ellipse 70% 62% at var(--vx, 50%) var(--vy, 62%),
    color-mix(in oklab, var(--calm, var(--card)) var(--calm-k, 34%), transparent), transparent 72%);
}
/* inset on all sides by --c-gap; nested radius */
.card > .panel--inset {
  margin: 32px calc(var(--c-gap) - var(--c-pad)) calc(var(--c-gap) - var(--c-pad));
  border-radius: calc(var(--c-r) - var(--c-gap));
}
/* runs to the card's side and bottom edges (Figma's image band); the card's corners clip it */
.card > .panel--flush {
  margin: 32px calc(-1 * var(--c-pad) - 1px) calc(-1 * var(--c-pad) - 1px);
  border-radius: 0;
}
.panel--flush::after { box-shadow: inset 0 1px 0 color-mix(in oklab, var(--ink) 7%, transparent); }
/* the panel on top, the caption under it (tall cards) */
.card > .panel--top {
  order: -1; margin: calc(var(--c-gap) - var(--c-pad)) calc(var(--c-gap) - var(--c-pad)) 24px;
  border-radius: calc(var(--c-r) - var(--c-gap)); flex: none; min-height: 0; aspect-ratio: 1 / 1;
}
.panel--top.panel--wide { aspect-ratio: 4 / 3; }

/* a device (x.ai's "Computer" card): a status row, then the ground as its screen. The row sits on the
   card itself, not in a frame of its own, so the card stays two levels deep (card > picture > UI) */
.panel--device { display: flex; padding: 0; flex-direction: column; background: none; overflow: visible; isolation: auto; border-radius: 0; }
.panel--device::before, .panel--device::after { display: none; }
.panel__bar {
  display: flex; align-items: center; gap: 8px; height: 32px; margin-bottom: 12px; padding: 0; flex: none;
  font: 500 13px/20px var(--font-text); color: var(--ink);
}
.panel__bar .muted { color: var(--muted); font-weight: 400; }
.panel__bar .sp { flex: 1; }
/* the bar's status is quiet ink: the accent belongs to the one status inside the screen */
.panel__status {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px;
  font: 500 var(--t-label)/1 var(--font-text); color: var(--ink);
  background: color-mix(in oklab, var(--ink) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 8%, transparent);
}
.panel__bar .ui-agent { width: 20px; height: 20px; --u-ink: var(--ink); --u-bg: var(--card); }
/* a still dot: the bar's status never spins on its own (the moving part is the screen's one loop) */
.panel__status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.panel__screen {
  position: relative; isolation: isolate; overflow: clip; flex: 1;
  margin: 0; border-radius: var(--p-r) var(--p-r) 0 0;
  background: color-mix(in oklab, var(--ink) 4%, var(--card));
}
.panel__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 7%, transparent);
}
.panel__screen::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 62% at var(--vx, 50%) var(--vy, 70%),
    color-mix(in oklab, var(--calm, #000) var(--calm-k, 30%), transparent), transparent 72%);
}

/* ---------------------------------------------------------------- where a fragment sits */
/* .stage holds the fragment(s) and gives them their palette: the fragment surface is one step
   lighter than the card on dark grounds and white on light ones */
.stage, .panel > .stage, .panel__screen > .stage {
  position: absolute; inset: 0; z-index: 1; max-width: none;
  --ui-font: var(--font-text); --ui-mono: var(--font-mono); --ui-radius: 12px;
  /* the fragment surface: white on a light card, one step lighter than a dark card (--frag overrides) */
  --fx-bg: var(--frag, oklch(from var(--card) clamp(calc(l + 0.05), calc((l - 0.5) * 1000), 1) calc(c * 0.5) h));
  --fx-surface: var(--card); --fx-ink: var(--ink); --fx-muted: var(--muted);
  --fx-accent: var(--accent); --fx-accent-ink: var(--accent-ink);
}
.stage > * { position: absolute; max-width: none; }
/* from 640px a fragment keeps its true width and is cropped by the panel, never squeezed to fit
   (on a phone it takes the panel's width instead: see the end of this block) */
@media (min-width: 640px) { .stage > :not(.at-center) > [data-ui] { max-width: none; } }
/* a fragment cut by the panel's edge dissolves into the ground over its last --fade-h (64px; 40px for a
   short panel) instead of being sliced through a line of text (edge-fade-dissolve, 14 of 41 sites).
   The fade only ever covers context: the fragment's point (the row that changes, the number, the
   button) sits above it. */
.stage { --fade-h: 64px; }
.stage--fade-b { -webkit-mask: linear-gradient(to bottom, #000 calc(100% - var(--fade-h)), transparent calc(100% - 4px)); mask: linear-gradient(to bottom, #000 calc(100% - var(--fade-h)), transparent calc(100% - 4px)); }
.stage--fade-r { -webkit-mask: linear-gradient(to right, #000 calc(100% - 72px), transparent calc(100% - 4px)); mask: linear-gradient(to right, #000 calc(100% - 72px), transparent calc(100% - 4px)); }
.stage--fade-br {
  -webkit-mask: linear-gradient(to bottom, #000 calc(100% - var(--fade-h)), transparent calc(100% - 4px)), linear-gradient(to right, #000 calc(100% - 72px), transparent calc(100% - 4px));
  -webkit-mask-composite: source-in;
  mask: linear-gradient(to bottom, #000 calc(100% - var(--fade-h)), transparent calc(100% - 4px)), linear-gradient(to right, #000 calc(100% - 72px), transparent calc(100% - 4px));
  mask-composite: intersect;
}
/* anchored at the top-left inset, cut by the right and bottom edges (19 of 41 sites) */
.at-corner { left: var(--ax, 32px); top: var(--ay, 32px); }
/* anchored at the top-right inset, cut by the bottom only: on a narrow panel it narrows to the panel
   minus both insets rather than run out of the left edge through its text */
.at-right { right: var(--ax, 32px); top: var(--ay, 32px); max-width: calc(100% - 2 * var(--ax, 32px)); }
.stage > .at-right > :is([data-ui], .ui) { max-width: 100%; }
/* rising out of the bottom edge (x.ai) */
.at-rise { left: var(--ax, 18%); top: var(--ay, 48px); }
/* .to-edge: the wrapper reaches --cut (72px) past the panel's bottom edge whatever the panel's height,
   so a fragment that fills its wrapper (stat with opts.fill, a long list) is always cut on purpose and
   never by a few accidental px */
.stage > .to-edge { bottom: calc(-1 * var(--cut, 72px)); }
.stage > .to-edge > :is([data-ui], .ui) { height: 100%; }
/* .fit: the fragment takes the panel's width minus --ax on both sides instead of its own, for a narrow
   panel where a few px of overhang would cut its text (contain it, or cut it by 48px or more).
   --fit-max (its true width, e.g. 400px for chat) keeps it at that width on a wide panel, centred
   between the insets (x.ai's window rising out of the bottom edge), so it only narrows where the
   panel is too small: never a 1-23px sliver, a cut at 1024, or uneven ground at the sides */
.stage > .fit { right: var(--ax, 32px); }
.stage > .fit > :is([data-ui], .ui) { width: 100%; max-width: var(--fit-max, 100%); margin-inline: auto; }
/* .wide: a fluid fragment (files, calendar) set wider than the panel (--w), so it is cut by the right
   edge like a window, not centred with even ground round it; pair with .stage--fade-br. Whatever the
   panel's width it runs at least 64px past the right edge */
.stage > .wide { width: max(var(--w, 680px), 100% - var(--ax, 32px) + 64px); }
.stage > .wide > :is([data-ui], .ui) { width: 100%; max-width: none; }
/* a small control in the calm middle of a focal ground (Figma's Texture tile): never a window or a
   dialog. It never runs past the panel: at most the panel less 24px a side */
.at-center { left: 50%; top: 50%; translate: -50% -50%; max-width: calc(100% - 48px); }
.stage > .at-center > :is([data-ui], .ui) { max-width: 100%; }
/* a second fragment laid over the first one's edge */
.at-over { right: var(--bx, 24px); bottom: var(--by, 24px); z-index: 2; }
.at-over-l { left: var(--bx, 24px); bottom: var(--by, 24px); z-index: 2; }
/* phone: a fragment takes the panel's width minus the inset on both sides (its own width stays the upper
   bound), so it is only ever cut at the bottom, never through a line of text at the side. The desktop
   --ax and --ay are ignored here; --ay-sm sets the top. */
@media (max-width: 639px) {
  .stage > :is(.at-corner, .at-right, .at-rise) { left: var(--ax-sm, 16px); right: var(--ax-sm, 16px); top: var(--ay-sm, 24px); max-width: none; }
  .stage > :is(.at-corner, .at-right, .at-rise) > :is([data-ui], .ui) { max-width: 100%; }
  .stage > .wide { width: auto; }
  .stage > .at-center { max-width: calc(100% - 2 * var(--ax-sm, 16px)); }
  /* a dialog over a window takes the panel's width less 12px a side, never running past it */
  .stage > :is(.at-over, .at-over-l) { left: 12px; right: 12px; bottom: 16px; }
  .stage > :is(.at-over, .at-over-l) > :is([data-ui], .ui) { width: auto; max-width: 100%; }
}

/* ---------------------------------------------------------------- variants */
/* text beside the panel */
.card--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: stretch; }
.card--split > .card__body { display: flex; flex-direction: column; justify-content: center; padding: 16px 0; }
.card--split > .panel { margin: calc(var(--c-gap) - var(--c-pad)) calc(var(--c-gap) - var(--c-pad)) calc(var(--c-gap) - var(--c-pad)) 0; border-radius: calc(var(--c-r) - var(--c-gap)); min-height: 420px; }
@media (max-width: 899px) {
  .card--split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .card--split > .card__body { padding: 0; }
  .card--split > .panel { margin: 28px calc(var(--c-gap) - var(--c-pad)) calc(var(--c-gap) - var(--c-pad)); min-height: 360px; }
}
.card__points { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; }
.card__points li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-border); font-size: 16px; line-height: 24px; color: var(--c-text); }
.card__points li b { color: var(--ink); font-weight: 500; }
.card__points svg { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--ink); }

/* the big number: filled with an effect through a blend knock-out (see cards.md) */
.knock { position: relative; isolation: isolate; display: inline-block; line-height: 0.92; }
.knock__text {
  position: relative; z-index: 1; display: block;
  font: 600 var(--knock-size, 128px)/0.92 var(--font-display, var(--font-text)); letter-spacing: -0.05em;
  background: var(--card); color: #fff; mix-blend-mode: darken; padding: 0.04em 0.06em 0.08em 0;
}
.knock--light .knock__text { color: #000; mix-blend-mode: lighten; }
/* a plain big number beside a knocked-out one: the same size and the same box, so the rows under both
   start level */
.stat__num {
  display: block; font: 600 var(--knock-size, 128px)/0.92 var(--font-display, var(--font-text)); letter-spacing: -0.05em;
  padding: 0.04em 0.06em 0.08em 0; color: var(--ink); white-space: nowrap;
}
.stat__unit { font-size: 0.32em; letter-spacing: -0.01em; color: var(--muted); font-weight: 500; margin-left: 0.2em; }
.stat__label { font-size: 16px; line-height: 24px; color: var(--c-text); }
.stat__label b { color: var(--ink); font-weight: 500; }

/* testimonial: the quote and who said it, beside one result told as a number and two bars */
.quote { margin: 0; font-family: var(--font-display, var(--font-text)); font-size: clamp(22px, 1.1vw + 12px, 28px); line-height: 1.32; letter-spacing: -0.02em; font-weight: 450; color: var(--ink); text-wrap: pretty; }
.person { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.person__logo { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, var(--card)); box-shadow: inset 0 0 0 1px var(--c-border); }
.person__logo svg { width: 22px; height: 22px; }
.person__name { display: block; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); }
.person__role { display: block; font-size: 16px; line-height: 24px; color: var(--c-text); }
.result { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-left: 40px; border-left: 1px solid var(--c-border); }
.result__fig { font: 600 clamp(64px, 3.4vw + 24px, 88px)/0.95 var(--font-display, var(--font-text)); letter-spacing: -0.05em; color: var(--ink); }
.result__cap { margin: 12px 0 0; max-width: 28ch; font-size: 16px; line-height: 24px; color: var(--c-text); }
.result__bars { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.result__bars li { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; color: var(--c-text); }
.result__bars i { display: block; height: 8px; width: var(--w); border-radius: 4px; background: color-mix(in oklab, var(--ink) 16%, var(--card)); }
.result__bars li:last-child i { background: var(--accent); }
.result__bars b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .result { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--c-border); } }

/* pricing */
.plan { gap: 0; }
/* every plan's name row is the badge's height, so prices, buttons and lists sit level across the row */
.plan__name { height: 24px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; font: 600 44px/1 var(--font-display, var(--font-text)); letter-spacing: -0.04em; }
.plan__price small { font: 400 14px/20px var(--font-text); letter-spacing: 0; color: var(--muted); }
.plan__for { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--c-text); min-height: 2lh; }
.plan__btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; margin-top: 24px; border-radius: 10px;
  font: 500 14px/1 var(--font-text); text-decoration: none; color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 16%, transparent);
}
.plan__btn--primary { background: var(--ink); color: var(--card); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--card) 18%, transparent); }
.plan__list { display: grid; gap: 10px; margin: 24px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--c-border); font-size: 16px; line-height: 24px; color: var(--c-text); }
.plan__list li { display: flex; gap: 10px; }
.plan__list li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; background: var(--ink); opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.4 2.8 2.8 6.2-6.4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.4 2.8 2.8 6.2-6.4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
/* the featured plan: the same --card fill as its neighbours and a quiet accent hairline, its one accent
   touch (so the badge is quiet ink). On hover or focus a light runs once round the edge: an edge-glow
   canvas (fill 1, wash 0) mounted for that lap only, which paints the same fill under a lit border and
   then fades. Never a light that runs because the plan scrolled into view, never a comet left on one edge */
.plan.is-featured { border-color: color-mix(in oklab, var(--accent) 48%, transparent); background: var(--card); }
.plan.is-featured.is-fading > .fx-canvas { opacity: 0 !important; transition: opacity 600ms ease !important; }
.plan.is-featured .plan__badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 var(--t-label)/1 var(--font-text); color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent); }

/* on a phone a fragment fits the panel's width (see the placements), so it is only cut at the bottom:
   the side fades go, the bottom fade stays */
/* a phone: the card's link and the plan's button are 44px targets (the link keeps its look, its box grows round it) */
@media (max-width: 639px) { .card__link { min-height: 44px; margin-top: 5px; } .plan__btn { height: 44px; } }
@media (max-width: 639px) {
  .stage--fade-r { -webkit-mask: none; mask: none; }
  .stage--fade-b, .stage--fade-br {
    -webkit-mask: linear-gradient(to bottom, #000 calc(100% - min(56px, var(--fade-h))), transparent calc(100% - 4px));
    mask: linear-gradient(to bottom, #000 calc(100% - min(56px, var(--fade-h))), transparent calc(100% - 4px));
  }
}

@keyframes ui-spin { to { transform: rotate(360deg); } }

/* motion/motion.css */
/*
  taste-skill motion.css - the micro-interactions a company site has (figma.com, x.ai): one small
  opt-in layer over system.css and ui/cards.css. Link it after them (data-motion on <html> is optional);
  load motion.js once (it adds the tab indicator, the number tick and the card loops).
  The layer is ON as soon as this file is linked: no attribute is needed (a hover shot of a linked card or photo
  shows the 2px lift and the 1.03 zoom). <html data-motion="off"> switches the whole layer off; data-motion="live"
  is the number tick in a headless shot (motion.js).
  references/motion.md says what moves and how fast. Everything here answers the pointer, the
  keyboard or a number coming into view once, plus the hero's one entrance on load (the end of this
  file); nothing moves because the page scrolled (that is a dealt moment's job, assets/moments).

  Hover moves sit under (hover: hover) and (pointer: fine): a phone never keeps a stuck hover.
  Hover out runs 120ms against 150ms in (motion.md, tokens).
  Under prefers-reduced-motion colours still change and a press still shows; nothing moves or scales.
*/

:root {
  --m-in: 150ms;                              /* hover in: buttons, links, nav, tabs */
  --m-out: 120ms;                             /* hover out */
  --m-press: 90ms;                            /* a press */
  --m-panel: 200ms;                           /* a menu or sheet opening */
  --m-close: 120ms;                           /* a menu closing */
  --m-slide: 240ms;                           /* an indicator travelling between two tabs or links */
  --m-image: 600ms;                           /* a photograph scaling inside its mask */
  --m-image-out: 400ms;                       /* ...and settling back */
  --m-ease: var(--ease, cubic-bezier(.2, .8, .2, 1)); /* the one UI ease-out (system.css --ease): fast start, soft landing */
  --m-ease-io: cubic-bezier(.65, 0, .35, 1);  /* the indicator: leaves and lands softly */
  --m-ease-enter: cubic-bezier(.22, 1, .36, 1); /* an entrance settling: long soft tail, never past its mark */
  --m-cycle: 3.2s;                            /* one cycle of a card's loop (2.5-4 s) */
  --m-lift: -2px;
}

/* ---------------------------------------------------------------- buttons */
html:not([data-motion="off"]) .btn {
  position: relative;
  transition: background-color var(--m-out) var(--m-ease), color var(--m-out) var(--m-ease),
              border-color var(--m-out) var(--m-ease), box-shadow var(--m-out) var(--m-ease),
              transform var(--m-press) var(--m-ease);
}
/* the tone moves toward the ground: a black button greys a little on white, a white one on black */
html:not([data-motion="off"]) .btn--primary:hover { background: color-mix(in oklab, var(--action) 84%, var(--bg)); }
html:not([data-motion="off"]) .btn--secondary:hover {
  background: color-mix(in oklab, var(--bg) 92%, var(--ink));
  border-color: color-mix(in oklab, var(--ink) 32%, transparent);
}
html:not([data-motion="off"]) .btn:hover { transition-duration: var(--m-in), var(--m-in), var(--m-in), var(--m-in), var(--m-press); }
html:not([data-motion="off"]) .btn:active { transform: translateY(1px) scale(.985); }
/* the step: a button rises 1px on hover (2px on the large size) and presses 1px down with a 1.5% shrink on
   click; pointer only. The text-link secondary (arrow and block looks) keeps its underline and does not step.
   Reduced motion keeps the colour change only (see the end of this file). */
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) .btn:hover { transform: translateY(-1px); }
  html:not([data-motion="off"]) .btn--xl:hover { transform: translateY(-2px); }
  html:not([data-motion="off"]):is([data-buttons="arrow"], [data-buttons="block"]) .btn--secondary:hover { transform: none; }
  html:not([data-motion="off"]) .btn:active { transform: translateY(1px) scale(.985); }
  html:not([data-motion="off"]):is([data-buttons="arrow"], [data-buttons="block"]) .btn--secondary:active { transform: scale(.985); }
}

/* the arrow: the text arrow (.btn--arrow, .link) nudges 3px; the drawn arrow (.m-arrow) grows its
   stem and moves its head 3px, the way a good product site's "Learn more" does. The pointer's move
   only for a fine pointer; keyboard focus shows it anywhere */
html:not([data-motion="off"]) :is(.btn--arrow, .link)::after { transition: transform var(--m-out) var(--m-ease); }
html:not([data-motion="off"]) :is(.btn--arrow, .link):focus-visible::after { transform: translateX(3px); transition-duration: var(--m-in); }
.m-arrow { width: 12px; height: 12px; flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6;
           stroke-linecap: round; stroke-linejoin: round; }
.m-arrow__stem { opacity: 0; transform: scaleX(.2); transform-origin: 1px 50%; transform-box: fill-box;
                 transition: opacity var(--m-out) var(--m-ease), transform var(--m-out) var(--m-ease); }
.m-arrow__head { transition: transform var(--m-out) var(--m-ease); }
:is(a, button):focus-visible > .m-arrow .m-arrow__stem { opacity: 1; transform: none; transition-duration: var(--m-in); }
:is(a, button):focus-visible > .m-arrow .m-arrow__head { transform: translateX(3px); transition-duration: var(--m-in); }
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) :is(.btn--arrow, .link):hover::after { transform: translateX(3px); transition-duration: var(--m-in); }
  :is(a, button):hover > .m-arrow .m-arrow__stem { opacity: 1; transform: none; transition-duration: var(--m-in); }
  :is(a, button):hover > .m-arrow .m-arrow__head { transform: translateX(3px); transition-duration: var(--m-in); }
}

/* a pill that is a link (the line above a hero headline) */
html:not([data-motion="off"]) a.pill { transition: background-color var(--m-out) var(--m-ease), border-color var(--m-out) var(--m-ease); }
html:not([data-motion="off"]) a.pill:hover { background: color-mix(in oklab, var(--card) 90%, var(--ink)); border-color: var(--line-strong); transition-duration: var(--m-in); }

/* ---------------------------------------------------------------- links: an underline that draws */
/* .link and links in running text: a rest line, and the ink line draws left to right on hover and
   leaves to the right. A link in a sentence rests on its own colour at 45% (about 3.3:1 on its
   ground), so it reads as a link even when it is the same colour as the text (WCAG 1.4.1); .link
   and .m-link carry an arrow or sit alone and rest on the faint hairline */
html:not([data-motion="off"]) :is(.link, .m-link, p a:not([class]), .footer ul a, .footer .link) {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--m-rest, var(--line-strong)), var(--m-rest, var(--line-strong)));
  background-repeat: no-repeat; background-size: 0% 1px, 100% 1px;
  background-position: right 0 bottom 0, 0 100%;
  transition: background-size var(--m-out) var(--m-ease), color var(--m-out) var(--m-ease);
  padding-bottom: 2px;
}
/* set on its own rule: the shared rule above is (0,3,1) through :is(.footer .link) and would win */
html:not([data-motion="off"]) p a:not([class]) { --m-rest: color-mix(in oklab, currentColor 45%, transparent); }
html:not([data-motion="off"]) :is(.footer ul a, .m-link--bare):not(:hover, :focus-visible) { background-size: 0% 1px, 0% 1px; }
html:not([data-motion="off"]) :is(.link, .m-link, p a:not([class]), .footer ul a, .footer .link):is(:hover, :focus-visible) {
  background-size: 100% 1px, 100% 1px; background-position: left 0 bottom 0, 0 100%; transition-duration: var(--m-in);
}
/* the link's arrow is not underlined: the line runs under the words only */
html:not([data-motion="off"]) .link { background-size: 0% 1px, calc(100% - 1em - var(--s-2)) 1px; }
html:not([data-motion="off"]) .link:is(:hover, :focus-visible) { background-size: calc(100% - 1em - var(--s-2)) 1px, calc(100% - 1em - var(--s-2)) 1px; }
html:not([data-motion="off"]) .link, html:not([data-motion="off"]) .link:is(:hover, :focus-visible) { background-position: 0 100%, 0 100%; }
html:not([data-motion="off"]) .footer ul a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- navigation */
/* the nav words take no pill (ST-08, ST-11): system.css draws the underline under a word from the left on hover and focus, and
   takes it away to the right; the page you are on keeps its still bar (system.css draws it, at the same inset) */
@media (min-width: 1024px) {
  /* the full-width panel: fades and settles 6px in 200ms with its columns together (one surface, read
     as one); it closes in 120ms. While one menu is open, the next word swaps the panel at once
     (motion.js .m-menu-open) */
  html:not([data-motion="off"]) .nav__menu {
    transform: translateY(-6px);
    transition: opacity var(--m-close) var(--m-ease), transform var(--m-close) var(--m-ease), visibility 0s linear var(--m-close);
  }
  html:not([data-motion="off"]) .nav__item:is(:hover, :focus-within) > .nav__menu {
    transition: opacity var(--m-panel) var(--m-ease) 150ms, transform var(--m-panel) var(--m-ease) 150ms, visibility 0s linear 150ms;
  }
  /* .m-menu-open comes on when the first panel starts to show (150ms): from then the next word swaps
     the panel at once. Duration and delay go to 0, the properties stay listed, so the panel that is
     still fading in finishes its own 200ms instead of snapping */
  html:not([data-motion="off"]) .nav.m-menu-open .nav__menu,
  html:not([data-motion="off"]) .nav.m-menu-open .nav__item:is(:hover, :focus-within) > .nav__menu { transition-duration: 0s; transition-delay: 0s; }
  html:not([data-motion="off"]) .menu-col a { transition: color var(--m-out) var(--m-ease); }
  html:not([data-motion="off"]) .menu-col a:hover { transition-duration: var(--m-in); }
  html:not([data-motion="off"]) .menu-card .panel { transition: border-color var(--m-out) var(--m-ease); }
}
/* the phone sheet slides in 8px and fades (system.js opens it) */
@media (max-width: 1023px) {
  html:not([data-motion="off"]) .nav.is-open .nav__links { transition: opacity var(--m-panel) var(--m-ease), transform var(--m-panel) var(--m-ease); }
  @starting-style { html:not([data-motion="off"]) .nav.is-open .nav__links { opacity: 0; transform: translateY(-8px); } }
}

/* ---------------------------------------------------------------- tabs: the indicator slides */
html:not([data-motion="off"]) .tabs.m-has-ind { position: relative; isolation: isolate; }
html:not([data-motion="off"]) .tabs.m-has-ind .tab { position: relative; z-index: 1; }
html:not([data-motion="off"]) .tabs.m-has-ind .tab[aria-selected="true"] { background: transparent; border-color: transparent; }
/* the pill takes its new size at once and travels by transform alone (motion.js: it starts scaled to
   the old tab's size at the old place and settles to scale 1 at the new one), so nothing is laid out
   again while it moves and its corners are true at rest */
.m-tab-ind {
  position: absolute; left: 0; top: 0; z-index: 0; width: var(--w, 0px); height: var(--h, 0px);
  border-radius: var(--r-btn); background: var(--ink); pointer-events: none;
  transform: translate(var(--x, 0px), var(--y, 0px)) scale(var(--sx, 1), var(--sy, 1)); transform-origin: 0 0;
  transition: transform var(--m-slide) var(--m-ease-io);
}
.m-tab-ind.is-jump { transition: none; }
html:not([data-motion="off"]) .tab { transition: color var(--m-slide) var(--m-ease), border-color var(--m-out) var(--m-ease), background-color var(--m-out) var(--m-ease); }

/* ---------------------------------------------------------------- focus */
/* the ring (system.css) is drawn in full in the frame the focus lands; no transition */

/* ---------------------------------------------------------------- cards: a 2px lift */
/* the card rises 2px, its border and shadow deepen; a card without its own box (.card--open) lifts
   its panel. Never tilts, flips or follows the pointer */
html:not([data-motion="off"]) .card:not(.card--open, .card--plan) {
  transition: transform var(--m-out) var(--m-ease), border-color var(--m-out) var(--m-ease), box-shadow var(--m-out) var(--m-ease);
}
html:not([data-motion="off"]) .card--open > .panel { transition: transform var(--m-out) var(--m-ease), box-shadow var(--m-out) var(--m-ease); }
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) .card:not(.card--open, .card--plan, .m-nolift):hover {
    transform: translateY(var(--m-lift));
    border-color: color-mix(in oklab, var(--ink) 16%, transparent);
    /* the shadow is deeper on a dark card (its lightness l): about .2 on white, .64 on near-black */
    box-shadow: inset 0 1px 0 var(--c-hi, transparent), 0 1px 2px rgb(0 0 0 / .06),
                0 14px 32px -18px oklch(from var(--card, #fff) 0 0 0 / calc(0.75 - l * 0.55));
    transition-duration: 180ms;
  }
  html:not([data-motion="off"]) .card--open:not(.m-nolift):hover > .panel {
    transform: translateY(var(--m-lift)); box-shadow: 0 14px 32px -18px oklch(from var(--bg, #fff) 0 0 0 / calc(0.75 - l * 0.55)); transition-duration: 180ms;
  }
}

/* ---------------------------------------------------------------- photographs: 1.03 inside the mask */
/* a photograph in a link or a linked card grows 3% inside its own mask (the frame, the tile, a .m-zoom wrapper);
   the mask clips it, so the box never moves. .m-zoom is the hook for any other photograph: wrap it. */
.m-zoom { overflow: clip; }
html:not([data-motion="off"]) :is(.frame__img, .tile__media > img, .m-zoom img, .m-zoom > video) {
  transition: transform var(--m-image-out) var(--m-ease);
}
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) :is(a, .card:has(a), .m-zoom):hover :is(.frame__img, .tile__media > img),
  html:not([data-motion="off"]) .m-zoom:hover :is(img, video) { transform: scale(1.03); transition-duration: var(--m-image); }
}

/* ---------------------------------------------------------------- inputs, switches, checks */
html:not([data-motion="off"]) .field :is(input, select, textarea), .m-input {
  transition: border-color var(--m-out) var(--m-ease), box-shadow var(--m-out) var(--m-ease), background-color var(--m-out) var(--m-ease);
}
html:not([data-motion="off"]) .field :is(input, select, textarea):hover, .m-input:hover { border-color: color-mix(in oklab, var(--ink) 48%, transparent); }
html:not([data-motion="off"]) .field :is(input, select, textarea):focus, .m-input:focus {
  /* the field's own ring in place of the outline: a 2px line in --action (3:1 on the ground) and a soft halo,
     there at once like every focus ring (the hover's fade does not apply to focus) */
  outline: none; border-color: var(--action);
  box-shadow: 0 0 0 1px var(--action), 0 0 0 4px color-mix(in oklab, var(--action) 20%, transparent); transition-duration: 0s;
}
/* a switch: <button class="m-switch" role="switch" aria-checked="false" aria-label="..."></button>
   (motion.js flips aria-checked on click unless the page handles it). The knob slides in 180ms and
   stretches 4px while pressed, both by transform (a scaleX from its left edge; on, the 12px shift
   keeps its right edge where it rests). The off track is ink at 48% (3.3:1 or more against the knob
   and the ground, the 3:1 a control needs) */
.m-switch {
  position: relative; flex: none; width: 40px; height: 24px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: color-mix(in oklab, var(--ink) 48%, var(--bg));
  transition: background-color 180ms var(--m-ease);
}
.m-switch::before {
  content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 999px;
  background: var(--bg); box-shadow: 0 1px 3px rgb(0 0 0 / .25);
  transform-origin: 0 50%; transition: transform 180ms var(--m-ease);
}
.m-switch[aria-checked="true"] { background: var(--action); }
.m-switch[aria-checked="true"]::before { transform: translateX(16px); background: var(--action-ink); }
.m-switch:active::before { transform: scaleX(1.22); transition-duration: var(--m-press); }
.m-switch[aria-checked="true"]:active::before { transform: translateX(12px) scaleX(1.22); }
.m-switch:hover:not([aria-checked="true"]) { background: color-mix(in oklab, var(--ink) 58%, var(--bg)); }
/* a check box: <input type="checkbox" class="m-check">, the tick fades in as it grows from 70% to full size, 160ms */
.m-check {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; width: 20px; height: 20px; border-radius: 6px; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--ink) 48%, var(--bg)); background: var(--bg) no-repeat center / 14px 14px;
  display: inline-grid; place-items: center;
  transition: background-color var(--m-in) var(--m-ease), border-color var(--m-in) var(--m-ease);
}
.m-check::before {
  content: ""; width: 10px; height: 6px; margin-top: -2px; border: solid var(--action-ink); border-width: 0 0 2px 2px;
  opacity: 0; transform: rotate(-45deg) scale(.7); transform-origin: 50% 50%;
  transition: transform 160ms var(--m-ease), opacity 100ms var(--m-ease);
}
.m-check:hover:not(:checked) { border-color: color-mix(in oklab, var(--ink) 64%, var(--bg)); }
.m-check:checked { background-color: var(--action); border-color: var(--action); }
.m-check:checked::before { opacity: 1; transform: rotate(-45deg) scale(1); }

/* ---------------------------------------------------------------- FAQ
   Every answer stays open (ST-47, system.css): nothing here opens, closes or animates its height. */

/* ---------------------------------------------------------------- numbers that tick once */
[data-m-count] { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- loops inside a card's panel */
/* a CSS loop the page writes inside [data-m-loop] runs one cycle in --m-cycle (2.5-4 s) and repeats
   while on screen; motion.js pauses it off screen and restarts it on hover (motion.md) */
[data-m-loop] { --m-cycle: 3.2s; --m-still: 0.6; --m-safe: 48px; }
/* the pause button (a 32px disc 12px in from the bottom-right corner) gets a clear band: content in
   the flow ends --m-safe (48px) above the bottom edge, and a fading stage dissolves above that band,
   never under the button. Size the panel so the loop's subject sits above the fade */
[data-m-loop]:not(:has(> .stage)) { padding-bottom: var(--m-safe); }
[data-m-loop] > .stage:is(.stage--fade-b, .stage--fade-br) { bottom: var(--m-safe); }
/* on a phone (as ui.js does) and under reduced motion a loop holds its finished picture: the frame at
   --m-still (0-1) of the cycle, set on the loop where the picture is complete */
@media (max-width: 639px) {
  [data-m-loop] * { animation-duration: var(--m-cycle) !important; animation-delay: calc(-1 * var(--m-still) * var(--m-cycle)) !important;
                    animation-play-state: paused !important; }
}
[data-m-loop].is-m-off *, [data-m-loop].is-m-paused * { animation-play-state: paused !important; }

/* ---------------------------------------------------------------- the hero's entrance */
/* Once on load the hero enters (motion.js enter(), motion.md): the h1 line by line out of word masks,
   then its lead, each button and its facts 60ms apart, the picture settling; about 1.1 s.
   Markup: data-enter on the hero <section> and the one head line that sets html.m-enter before the
   first paint (with its 700ms safety mark, m-enter-done). Only the words wait, and only in that window
   until motion.js takes over (.is-entering): no script, reduced motion, print and data-motion="off"
   show the hero as written; a script later than the mark finds the words fading in here.
   The pictures (a photograph, a window, the collage) are never hidden, so nothing blinks or flashes
   the hero's ground: a photograph waits at 1.05 and a window or collage at .98, by the scale property
   (it composes with any transform of their own), and they settle by transition as soon as the
   entrance starts or the mark passes. */
@media screen and (prefers-reduced-motion: no-preference) {
  html.m-enter:not(.m-enter-done, [data-motion="off"]) .hero[data-enter]:not([data-enter="off"], .is-entering, .is-entered)
    :is(h1, h1 ~ *, :has(> h1) ~ *, :has(~ h1)):not([data-enter-media], .hero__bg, .hero__media, .hero__stage, .hero__art, .hero__window, .hero-visual, .ly-collage,
         :has([data-enter-media], .hero__bg, .hero__media, .hero__stage, .hero__art, .hero__window, .hero-visual, .ly-collage)) { opacity: 0; }
  /* the mark passed before motion.js arrived: the words fade in instead of appearing at once */
  html.m-enter.m-enter-done:not([data-motion="off"]) .hero[data-enter]:not([data-enter="off"], .is-entering, .is-entered)
    :is(h1, h1 ~ *, :has(> h1) ~ *, :has(~ h1)) { transition: opacity 400ms var(--m-ease); }
  /* the settle: a photograph from 1.05 inside its frame (the hero clips one of its own), anything else from .98 */
  html.m-enter:not([data-motion="off"]) .hero[data-enter]:not([data-enter="off"], .is-still)
    :is(:is([data-enter-media], .hero__bg, .hero__media, .hero__stage, .hero__art, .hero__window, .hero-visual, .ly-collage):is(img, picture, video),
        :is([data-enter-media], .hero__bg, .hero__media, .hero__stage, .hero__art, .hero__window, .hero-visual, .ly-collage) > :is(img, picture, video, .frame__img)) {
    transition: scale 1100ms var(--m-ease-enter), clip-path 1100ms var(--m-ease-enter);
  }
  /* the clip's resting value, kept below the waiting rule's weight so that one wins while it applies */
  .hero[data-enter] :is([data-enter-media], .hero__bg, .hero__media, .hero__stage, .hero__art, .hero__window, .hero-visual, .ly-collage):is(img, picture, video) { clip-path: inset(0); }
  html.m-enter:not([data-motion="off"]) .hero[data-enter]:not([data-enter="off"], .is-still)
    :is([data-enter-media], .hero__bg, .hero__media, .hero__stage, .hero__art, .hero__window, .hero-visual, .ly-collage):not(img, picture, video, :has(> :is(img, picture, video, .frame__img))) {
    transition: scale 900ms var(--m-ease-enter);
  }
  html.m-enter:not(.m-enter-done, [data-motion="off"]) .hero[data-enter]:not([data-enter="off"], .is-entering, .is-entered)
    :is(:is([data-enter-media], .hero__bg, .hero__media, .hero__stage, .hero__art, .hero__window, .hero-visual, .ly-collage):is(img, picture, video),
        :is([data-enter-media], .hero__bg, .hero__media, .hero__stage, .hero__art, .hero__window, .hero-visual, .ly-collage) > :is(img, picture, video, .frame__img)) { scale: 1.05; }
  html.m-enter:not(.m-enter-done, [data-motion="off"]) .hero[data-enter]:not([data-enter="off"], .is-entering, .is-entered)
    :is([data-enter-media], .hero__bg, .hero__media, .hero__stage, .hero__art, .hero__window, .hero-visual, .ly-collage):is(img, picture, video) { clip-path: inset(2.381%); }   /* a picture that is itself the media (a band under the header, a full-bleed layer) has no frame: its own clip keeps it inside its box while larger, (1 - 1/1.05) / 2 */
  html.m-enter:not(.m-enter-done, [data-motion="off"]) .hero[data-enter]:not([data-enter="off"], .is-entering, .is-entered)
    :is([data-enter-media], .hero__bg, .hero__media, .hero__stage, .hero__art, .hero__window, .hero-visual, .ly-collage):not(img, picture, video, :has(> :is(img, picture, video, .frame__img))) { scale: .98; }
  html.m-enter:not([data-motion="off"]) .hero[data-enter]:not([data-enter="off"], .is-entered) { overflow: clip; }
}
/* while it runs: each word of the h1 in its own mask (the masks go when the h1 gets its own nodes back) */
.hero[data-enter] .m-w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero[data-enter] .m-w__in { display: inline-block; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="off"]) .card:hover, html:not([data-motion="off"]) .card--open:hover > .panel,
  html:not([data-motion="off"]) :is(a, .card:has(a), .m-zoom):hover :is(.frame__img, .tile__media > img, img, video),
  html:not([data-motion="off"]) .btn:is(:hover, :active), html:not([data-motion="off"]) :is(.btn--arrow, .link):hover::after,
  :is(a, button):hover > .m-arrow :is(.m-arrow__head, .m-arrow__stem) { transform: none !important; }
  .m-arrow__stem { opacity: 1; transform: none; }
  html:not([data-motion="off"]) .nav__menu { transform: none !important; }
  /* the controls keep their state and their colour change, without travel: the tab pill and the switch
     knob jump, the tick fades in at full size, the underline is drawn at once */
  .m-tab-ind { transition: none; }
  .m-switch::before { transition-property: background-color; }
  .m-switch:active::before { transform: none; }
  .m-switch[aria-checked="true"]::before, .m-switch[aria-checked="true"]:active::before { transform: translateX(16px); }
  .m-check::before { transform: rotate(-45deg) scale(1); transition-property: opacity; }
  html:not([data-motion="off"]) :is(.link, .m-link, p a:not([class]), .footer ul a, .footer .link) { transition-property: color, opacity, background-color, border-color; }
  /* a press still shows, as a deeper tone instead of a move */
  html:not([data-motion="off"]) .btn--primary:active { background: color-mix(in oklab, var(--action) 74%, var(--bg)); }
  html:not([data-motion="off"]) .btn--secondary:active { background: color-mix(in oklab, var(--bg) 86%, var(--ink)); }
  [data-m-loop] * { animation-duration: var(--m-cycle) !important; animation-iteration-count: infinite !important;
                    animation-delay: calc(-1 * var(--m-still) * var(--m-cycle)) !important; animation-play-state: paused !important; }
}

/* backgrounds/backgrounds.css */
/*
  taste-skill backgrounds.css - 16 section and page grounds, drawn in CSS (no WebGL, no images except the
  photograph ground's own). Link after system.css and assets/ui/cards.css. Rules: references/backgrounds.md.

  A ground is one class on a <section> (or on <body> / a wrapper for the two page grounds, or on a panel for
  .bg-stage):
    <section class="section bg-halo"> ... </section>
  Every ground sets the page tokens for its own children (--bg --surface --ink --muted --accent --card
  --action --line, --fx-*), so the system's cards, buttons and fragments work on it unchanged. It draws on
  the page palette (--p-*) and the lit ground (--ground-*, system.css). Body text keeps 7:1 and muted text
  4.5:1 on its text zone (index.json "textZone"; check.mjs measures it on every palette). The one
  exception is .bg-stage, a panel for a visual: words on it sit on a card, never on the stage itself.

  Knobs, all optional, on :root or on one section:
    --g-hue      the colour the tints lean to (default: the accent, hue-guarded: never violet or lavender)
    --g-hue-b    its neighbour, 30 degrees round the wheel (default derived, and guarded the same way)
    --g-k, --g-kl, --g-kd   strength of the tints, of the lines, of the dark grounds: 1 at most; backgrounds.js
                 sets them from the palette's contrast headroom (see there)
    --tone       the second brand tone of .bg-band / .bg-field (default: the lit ground, system.css)
    --tone-ink   its text colour (default: the lit ground's ink)
    --g-photo    url(...) for .bg-photo
  <html data-mode="light|dark"> says whether the page ink is dark or light; <html data-tint="away"> marks a
  palette whose bg is a strong colour or a mid tone (tints then move away from the ink); <html
  data-lowchroma> marks a grey accent (the stage then takes the lit ground's colour). backgrounds.js sets
  them and --g-k / --g-kl / --g-kd from the palette, unless the page already has (load it plain in <head>).
*/

/* ---------------------------------------------------------------- tokens */
:root {
  /* the hue the tints lean to: the accent, with an oklch hue in 262-338 (violet, lavender, purple) moved
     to azure (262-300) or pink (300-338), so a cobalt or plum accent never tints a ground violet */
  --g-hue-src: var(--p-accent);
  /* the tint's lightness is held between these, so a pale lime on a dark page or a navy on a white one
     tints as deeply as a mid blue would */
  --g-L-lo: 0.62; --g-L-hi: 1;
  --g-hue: oklch(from var(--g-hue-src) clamp(var(--g-L-lo), l, var(--g-L-hi)) c
    calc(h + clamp(0, (h - 262) * 1000, 1) * clamp(0, (338 - h) * 1000, 1)
      * (250 + clamp(0, (h - 300) * 1000, 1) * 95 - h)));
  /* the neighbour: 30 degrees toward the cooler side (toward the warmer side for a red or a pink, hues under 40
     or over 330, so it never turns rose-violet). Any colour's own hue goes through this:
     oklch(from X l c calc(h + var(--g-hs))) */
  --g-hs: calc(30 - 60 * clamp(0, (h - 40) * 1000, 1) * clamp(0, (330 - h) * 1000, 1));
  --g-hue-b: oklch(from var(--g-hue) l c calc(h + var(--g-hs)));
  /* the hue as a pale pool, its lightness fixed: for the second-tone grounds, whose ink is dark whatever the page is */
  --g-pool: oklch(from var(--g-hue) 0.8 calc(c * 0.6) h);
  /* a second, different tone for two-colour fields: the lit ground (sand, sky, sage, painting) */
  --g-hue-2: var(--ground-bg, #d9ccb7);
  /* ...as a tint: its lightness held to the same band as --g-hue, so the contrast headroom (--g-k) counts for it too.
     The soft grounds take it as their SECOND hue (not the accent's 30-degree neighbour), so a blue page is not blue
     throughout: a blue wash with a sand light in the corner, as on Figma's colour fields */
  --g-hue-t: oklch(from var(--g-hue-2) clamp(var(--g-L-lo), l, var(--g-L-hi)) c h);
  /* the accent's own hue with the same guard: the stage uses it on a strong-colour page (data-tint="away"),
     where --g-hue is the page's own colour and a stage in it would be a muddy tan on the same colour */
  --g-acc: oklch(from var(--p-accent) 0.7 c calc(h + clamp(0, (h - 262) * 1000, 1) * clamp(0, (338 - h) * 1000, 1)
    * (250 + clamp(0, (h - 300) * 1000, 1) * 95 - h)));
  /* black when the page ink is light, white when it is dark: the way a shade moves away from the ink */
  --g-away: oklab(from var(--p-ink) calc(1 - round(l)) 0 0);
  --g-k: 1; --g-kl: 1; --g-kd: 1; --g-kp: 1;

  /* the dark side: the page's inverse on a light page, its own bg on a dark one (data-mode) */
  --g-dark-bg: var(--p-inv-bg);          --g-dark-surface: var(--p-inv-surface);
  --g-dark-ink: var(--p-inv-ink);        --g-dark-muted: var(--p-inv-muted);
  --g-dark-accent: var(--p-inv-accent);  --g-dark-accent-ink: var(--p-inv-accent-ink);
  --g-dark-action: var(--p-inv-action);  --g-dark-action-ink: var(--p-inv-action-ink);
  --g-light-bg: var(--p-bg);             --g-light-ink: var(--p-ink);        --g-light-muted: var(--p-muted);
  --g-light-action: var(--p-action);     --g-light-action-ink: var(--p-action-ink);
  --g-light-accent: var(--p-accent);     --g-light-accent-ink: var(--p-accent-ink);
  --g-card: var(--p-bg);                 /* a card on a tinted light ground is the page's own white */
  --g-grain: var(--g-noise-mul); --g-grain-mode: multiply;   /* grain on a light page darkens, on a dark page lightens */

  /* a cover over the grain, so it thins out with --g-k (--g-kd on the dark grounds) */
  --g-cover: color-mix(in oklab, var(--bg) calc(100% - 100% * var(--g-k)), transparent);
  --g-cover-d: color-mix(in oklab, var(--bg) calc(100% - 100% * var(--g-kd)), transparent);
  --g-fade: 120px;                       /* the soft grounds fade into the page over this much at top and bottom */
  --g-edge: 160px;                       /* .bg-dusk: how long the tone change takes */

  /* grain: SVG fractal noise as a data URI, 240px tile, two octaves at 1.2 so it is fine, like film, never
     like sand. soft is mean grey (neutral under soft-light, for the mid-tone grounds), mul sits near white
     (multiply, for light pages), scr near black (screen, for dark) */
  --g-noise-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.6' intercept='.2'/%3E%3CfeFuncG type='linear' slope='0.6' intercept='.2'/%3E%3CfeFuncB type='linear' slope='0.6' intercept='.2'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --g-noise-mul: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.26' intercept='.84'/%3E%3CfeFuncG type='linear' slope='.26' intercept='.84'/%3E%3CfeFuncB type='linear' slope='.26' intercept='.84'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --g-noise-scr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.17' intercept='-.05'/%3E%3CfeFuncG type='linear' slope='.17' intercept='-.05'/%3E%3CfeFuncB type='linear' slope='.17' intercept='-.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-mode="dark"] {
  --g-L-lo: 0; --g-L-hi: 0.55;
  --g-dark-bg: var(--p-bg);              --g-dark-surface: var(--p-surface);
  --g-dark-ink: var(--p-ink);            --g-dark-muted: var(--p-muted);
  --g-dark-accent: var(--p-accent);      --g-dark-accent-ink: var(--p-accent-ink);
  --g-dark-action: var(--p-action);      --g-dark-action-ink: var(--p-action-ink);
  --g-light-bg: var(--p-inv-bg);         --g-light-ink: var(--p-inv-ink);    --g-light-muted: var(--p-inv-muted);
  --g-light-action: var(--p-inv-action); --g-light-action-ink: var(--p-inv-action-ink);
  --g-light-accent: var(--p-inv-accent); --g-light-accent-ink: var(--p-inv-accent-ink);
  --g-card: var(--p-surface);            /* a card on a dark ground is one step lighter than it */
  --g-grain: var(--g-noise-scr); --g-grain-mode: screen;
}
/* a palette whose bg is a strong colour (cobalt, mustard, pink) or a mid tone (stone, slate): the accent is
   another hue, and mixing the two turns the ground to mud, so the tints are the bg's own colour pushed
   away from the ink: a deeper cobalt on white text, a paler mustard on black text */
html[data-tint="away"][data-mode="light"] { --g-grain: var(--g-noise-scr); --g-grain-mode: screen; }
html[data-tint="away"][data-mode="dark"] { --g-grain: var(--g-noise-mul); --g-grain-mode: multiply; }
html[data-tint="away"] { --g-hue-src: color-mix(in oklab, var(--p-bg) 58%, var(--g-away)); --g-hue-2: color-mix(in oklab, color-mix(in oklab, var(--p-bg) 66%, var(--g-away)) 90%, var(--p-accent)); }

/* ---------------------------------------------------------------- the contract of every ground */
.bg-mist, .bg-halo, .bg-grain, .bg-dusk, .bg-ruled, .bg-dots, .bg-arcs,
.bg-band, .bg-field, .bg-stage, .bg-photo, .bg-horizon, .bg-deep, .bg-liquid {
  position: relative; isolation: isolate; overflow: clip;
  --bg: var(--p-bg); --surface: var(--p-surface); --ink: var(--p-ink);
  /* muted leans to the ink (60/40), so a tint under it never costs the 4.5:1 (backgrounds.js counts on 60/40) */
  --muted: color-mix(in oklab, var(--p-ink) 60%, var(--p-muted));
  --accent: var(--p-accent); --accent-ink: var(--p-accent-ink);
  --action: var(--p-action); --action-ink: var(--p-action-ink);
  --card: var(--g-card);
  --line: color-mix(in oklab, var(--ink) 11%, transparent);
  --line-strong: color-mix(in oklab, var(--ink) 20%, transparent);
  --fx-bg: var(--bg); --fx-surface: var(--surface); --fx-ink: var(--ink); --fx-muted: var(--muted);
  --fx-accent: var(--accent); --fx-accent-ink: var(--accent-ink);
  --ui-font: var(--font-text); --ui-mono: var(--font-mono); --ui-radius: var(--r-md);
  background-color: var(--bg); color: var(--ink);
}
/* the two page grounds (.bg-paper on <body>, .bg-topglow on a wrapper) set NO tokens: the page keeps its own --card,
   --muted, --line and --accent (a ground that restyled the body would turn every card flat). They paint only
   background-image and ::before. */
.bg-paper, .bg-topglow { position: relative; isolation: isolate; }
.bg-paper { background-color: var(--bg); }   /* the base the grain blends with */
/* the soft grounds are overlays: they paint no colour of their own, so they sit on the page ground (plain or .bg-paper) */
:is(.bg-mist, .bg-halo, .bg-ruled, .bg-dots, .bg-arcs, .bg-liquid) { background-color: transparent; }
/* the decorations of the soft grounds sit on ::before, behind the content, and fade into the page at
   the top and bottom, so a soft ground can neighbour any other */
:is(.bg-mist, .bg-halo, .bg-ruled, .bg-dots, .bg-arcs)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--g-fade), #000 calc(100% - var(--g-fade)), transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 var(--g-fade), #000 calc(100% - var(--g-fade)), transparent);
}

/* dark grounds take the dark side's tokens */
.bg-horizon, .bg-deep, .bg-photo {
  --bg: color-mix(in oklab, var(--g-dark-bg) 80%, black);
  --surface: color-mix(in oklab, var(--g-dark-surface) 80%, black);
  --ink: var(--g-dark-ink);
  --muted: color-mix(in oklab, var(--g-dark-ink) 60%, var(--g-dark-muted));
  --accent: var(--g-dark-accent); --accent-ink: var(--g-dark-accent-ink);
  --action: var(--g-dark-action); --action-ink: var(--g-dark-action-ink);
  --card: color-mix(in oklab, var(--bg) 88%, var(--ink));
  /* the light on a dark ground: the ground's own colour and the hue, then pulled toward the ink */
  --lit: color-mix(in oklab, color-mix(in oklab, var(--bg) 55%, var(--g-hue)) 68%, var(--ink));
}
/* the second-tone grounds take the lit ground's tokens (sand, sky, sage, painting), or --tone */
.bg-band, .bg-field {
  /* a little lighter than the lit ground, so its dark ink keeps 7:1 on all four (painting is the darkest) */
  --bg: var(--tone, color-mix(in oklab, var(--ground-bg) 55%, var(--ground-surface)));
  --surface: var(--ground-surface);
  --ink: var(--tone-ink, color-mix(in oklab, var(--ground-ink) 85%, black));
  --muted: color-mix(in oklab, var(--ink) 60%, var(--ground-muted));
  --accent: var(--ground-accent); --accent-ink: var(--ground-surface);
  --action: var(--ink); --action-ink: var(--bg);
  --card: color-mix(in oklab, var(--ground-surface) 70%, white);
  /* the tone's own neighbours, so a field is one family of colour and never two that turn to mud: a richer
     neighbour 30 degrees round the wheel (a peach beside sand, cyan beside sky) and a deeper shade of itself */
  --t-b: oklch(from var(--bg) l clamp(0, c * 1.6 + 0.022, 0.075) calc(h + var(--g-hs)));
  --t-c: oklch(from var(--bg) calc(l - 0.032) calc(c * 1.3 + 0.012) h);
}

/* .bg-inset: a hard ground as a rounded panel on the page's grid, its left and right edges on the container's
   (Figma's colour panels, x.ai's video card). Add it next to the ground class: class="section bg-field bg-inset".
   On a dark page a band or a field is always inset (a pale full-bleed slab is the brightest thing on a dark page and
   harsh at a phone's width); .bg-bleed opts out. */
.bg-inset, html[data-mode="dark"] :is(.bg-band, .bg-field):not(.bg-bleed) { width: min(calc(100% - 2 * var(--pad)), var(--container)); margin-inline: auto; margin-block: var(--s-5); border-radius: var(--r-lg); }

/* Spacing. A ground that changes the colour is spaced like the system's own bands, and a little more; a soft one a half
   step more than a plain section; and each holds a screen of its own (min-height, the words centred), so a shot of one
   section never shows the next. The system's own variants keep what they set: the hero (.section--hero: its top, its
   screen-high box), .section--flush-top and .section--rule are never touched. --g-screen on a section sets its minimum
   height (0px = the words' own height). */
.section:is(.bg-band, .bg-field, .bg-grain, .bg-horizon, .bg-deep, .bg-photo):not(.section--hero, .section--flush-top, .section--rule) { padding-block: calc(var(--section-band) * 1.25); }
.section:is(.bg-mist, .bg-halo, .bg-ruled, .bg-dots, .bg-arcs, .bg-liquid):not(.section--hero, .section--flush-top, .section--rule) { padding-block: calc(var(--section) * 1.5); }
/* a hero on a ground keeps its system top and its screen height and gets the ground's room under it */
.section--hero:is(.bg-band, .bg-field, .bg-grain, .bg-horizon, .bg-deep, .bg-photo) { padding-bottom: calc(var(--section-band) * 1.25); }
.section--hero:is(.bg-mist, .bg-halo, .bg-ruled, .bg-dots, .bg-arcs, .bg-liquid) { padding-bottom: calc(var(--section) * 1.5); }
.section:is(.bg-band, .bg-field, .bg-grain, .bg-dusk, .bg-horizon, .bg-deep):not(.section--hero) { min-height: var(--g-screen, min(88svh, 860px)); display: grid; align-content: center; }
.section:is(.bg-mist, .bg-halo, .bg-ruled, .bg-dots, .bg-liquid):not(.section--hero) { min-height: var(--g-screen, min(76svh, 760px)); display: grid; align-content: center; }
/* on a phone the stacked words already fill the screen: the sections keep their padding and no minimum height */
@media (max-width: 767px) {
  .section:is(.bg-band, .bg-field, .bg-grain, .bg-dusk, .bg-horizon, .bg-deep, .bg-mist, .bg-halo, .bg-ruled, .bg-dots, .bg-liquid):not(.section--hero) { min-height: var(--g-screen, 0px); }
}
/* system.css forces the last section before the footer to one plain bottom padding (!important): a ground that closes the
   page keeps its own (the horizon's dome needs its 150px; a band stays even top and bottom) */
main > section.section:is(.bg-band, .bg-field, .bg-grain, .bg-deep, .bg-photo):not(.section--hero):last-of-type { padding-bottom: calc(var(--section-band) * 1.25) !important; }
main > section.section:is(.bg-mist, .bg-halo, .bg-ruled, .bg-dots, .bg-arcs, .bg-liquid):not(.section--hero):last-of-type { padding-bottom: calc(var(--section) * 1.5) !important; }
main > section.section.bg-horizon:last-of-type { padding-bottom: calc(var(--section-band) * 1.25 + 150px) !important; }

/* ---------------------------------------------------------------- 1 mist: a soft gradient field */
.bg-mist::before {
  background:
    radial-gradient(54% 70% at 4% 6%, color-mix(in oklab, var(--g-hue) calc(42% * var(--g-k)), transparent), transparent),
    radial-gradient(46% 62% at 98% 16%, color-mix(in oklab, var(--g-hue-t) calc(48% * var(--g-k)), transparent), transparent),
    radial-gradient(64% 64% at 66% 116%, color-mix(in oklab, var(--g-hue) calc(24% * var(--g-k)), transparent), transparent),
    radial-gradient(34% 46% at 22% 104%, color-mix(in oklab, var(--g-hue-b) calc(18% * var(--g-k)), transparent), transparent);
}

/* ---------------------------------------------------------------- 2 halo: a radial light behind the heading */
.bg-halo { --halo-x: 50%; --halo-y: 38%; }
.bg-halo::before {
  background:
    radial-gradient(34% 40% at var(--halo-x) var(--halo-y), color-mix(in oklab, var(--g-hue) calc(30% * var(--g-k)), transparent), transparent),
    radial-gradient(70% 76% at var(--halo-x) var(--halo-y), color-mix(in oklab, var(--g-hue) calc(15% * var(--g-k)), transparent), transparent),
    radial-gradient(30% 34% at calc(var(--halo-x) + 18%) calc(var(--halo-y) + 16%), color-mix(in oklab, var(--g-hue-t) calc(32% * var(--g-k)), transparent), transparent);
}

/* ---------------------------------------------------------------- 3 grain: a tint with fine grain on it */
.bg-grain {
  --bg: color-mix(in oklab, var(--p-bg) calc(100% - 11% * var(--g-k)), var(--g-hue));
  --surface: color-mix(in oklab, var(--p-surface) calc(100% - 11% * var(--g-k)), var(--g-hue));
  background-image:
    radial-gradient(90% 100% at 0% 0%, color-mix(in oklab, var(--p-bg) 74%, transparent), transparent 70%),
    radial-gradient(54% 80% at 100% 0%, color-mix(in oklab, var(--g-hue-b) calc(20% * var(--g-k)), transparent), transparent 72%),
    radial-gradient(80% 90% at 100% 100%, color-mix(in oklab, var(--g-hue) calc(26% * var(--g-k)), transparent), transparent 70%),
    radial-gradient(46% 70% at 0% 100%, color-mix(in oklab, var(--g-hue-b) calc(12% * var(--g-k)), transparent), transparent 72%),
    linear-gradient(var(--g-cover), var(--g-cover)),
    var(--g-grain);
  background-blend-mode: normal, normal, normal, normal, normal, var(--g-grain-mode);
}

/* ---------------------------------------------------------------- 4 paper: the page ground, never flat */
.bg-paper {
  overflow: visible;
  background-image:
    radial-gradient(120% 60vh at 50% 0, color-mix(in oklab, var(--g-hue) calc(9% * var(--g-kp)), transparent), transparent),
    radial-gradient(60% 50vh at 100% 0, color-mix(in oklab, var(--g-hue-b) calc(6% * var(--g-kp)), transparent), transparent),
    linear-gradient(to bottom, transparent 70%, color-mix(in oklab, var(--g-hue) calc(6% * var(--g-kp)), transparent)),
    /* the page ground carries every word of the page, so its grain is a quarter of the grain ground's */
    linear-gradient(color-mix(in oklab, var(--bg) calc(100% - 28% * var(--g-kp)), transparent), color-mix(in oklab, var(--bg) calc(100% - 28% * var(--g-kp)), transparent)),
    var(--g-grain);
  background-blend-mode: normal, normal, normal, normal, var(--g-grain-mode);
}

/* ---------------------------------------------------------------- 5 dusk: one tone moves into the next, no edge */
.bg-dusk {
  /* the two ends are transparent, so the tone melts into whatever the page really paints there (plain, .bg-paper's grain, a
     neighbouring tint) and never meets a page colour it was not. Set --g-from / --g-next to a colour to melt from or into one. */
  --g-from: transparent; --g-to: color-mix(in oklab, var(--p-bg) calc(100% - 15% * var(--g-k)), var(--g-hue)); --g-next: transparent;
  --bg: var(--g-to);
  --surface: color-mix(in oklab, var(--p-surface) calc(100% - 15% * var(--g-k)), var(--g-hue));
  background-color: transparent;
  background-repeat: no-repeat;
  /* the two melting edges and, between them (a pixel of overlap each side), the solid tone */
  background-size: 100% var(--g-edge), 100% var(--g-edge), 100% calc(100% - 2 * var(--g-edge) + 2px);
  background-position: top, bottom, center;
  /* a smoothstep: 0, .04, .16, .32, .5, .68, .84, .96, 1 of the way */
  background-image:
    linear-gradient(to bottom,
      var(--g-from), color-mix(in oklab, var(--g-to) 4%, var(--g-from)) 12.5%, color-mix(in oklab, var(--g-to) 16%, var(--g-from)) 25%,
      color-mix(in oklab, var(--g-to) 32%, var(--g-from)) 37.5%, color-mix(in oklab, var(--g-to) 50%, var(--g-from)) 50%,
      color-mix(in oklab, var(--g-to) 68%, var(--g-from)) 62.5%, color-mix(in oklab, var(--g-to) 84%, var(--g-from)) 75%,
      color-mix(in oklab, var(--g-to) 96%, var(--g-from)) 87.5%, var(--g-to)),
    linear-gradient(to top,
      var(--g-next), color-mix(in oklab, var(--g-to) 4%, var(--g-next)) 12.5%, color-mix(in oklab, var(--g-to) 16%, var(--g-next)) 25%,
      color-mix(in oklab, var(--g-to) 32%, var(--g-next)) 37.5%, color-mix(in oklab, var(--g-to) 50%, var(--g-next)) 50%,
      color-mix(in oklab, var(--g-to) 68%, var(--g-next)) 62.5%, color-mix(in oklab, var(--g-to) 84%, var(--g-next)) 75%,
      color-mix(in oklab, var(--g-to) 96%, var(--g-next)) 87.5%, var(--g-to)),
    linear-gradient(var(--g-to), var(--g-to));
}
.section.bg-dusk:not(.section--hero) { padding-block: calc(var(--section) + var(--g-edge) * .5); }

/* ---------------------------------------------------------------- 6 topglow: light under the nav, the page lifts out of it */
/* on <body> (with bg-paper) or a wrapper that holds the nav and the hero: a pool of light and a thin lit line just
   under the nav bar, fading out by 700px down, a second tone leaning in from the right. It draws on ::before, so it
   stacks with bg-paper on one element. */
.bg-topglow { overflow: visible; }
.bg-topglow::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: min(100%, 720px); pointer-events: none;
  background:
    linear-gradient(90deg, transparent, color-mix(in oklab, var(--g-hue) calc(60% * var(--g-kp)), transparent) 50%, transparent) 50% var(--nav-h, 64px) / 62% 1px no-repeat,
    radial-gradient(62% 470px at 50% var(--nav-h, 64px), color-mix(in oklab, var(--g-hue) calc(27% * var(--g-kp)), transparent), transparent),
    radial-gradient(42% 380px at 86% calc(var(--nav-h, 64px) + 60px), color-mix(in oklab, var(--g-hue-b) calc(18% * var(--g-kp)), transparent), transparent),
    radial-gradient(120% 300px at 50% var(--nav-h, 64px), color-mix(in oklab, var(--g-hue) calc(12% * var(--g-kp)), transparent), transparent);
}

/* ---------------------------------------------------------------- 7 ruled: a fine grid that fades out */
/* square rules (Vercel's and Linear's heroes). The glow is ::before, full width; the grid is ::after, exactly as wide as the
   container: its first rule lies on the container's left edge, the cells are spaced to fit, and its right edge is a rule too, so
   the grid is the page's own frame and never a second system across it. It is clear behind the heading (a hole in the mask)
   and fades toward the top and bottom. For a section with no row rules of its own: never over a table, pricing or a list
   (index.json: ruled is dealt only to the sections that list it). */
.bg-ruled::before {
  background: radial-gradient(50% 44% at 50% 0%, color-mix(in oklab, var(--g-hue) calc(20% * var(--g-k)), transparent), transparent);
}
.bg-ruled::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; pointer-events: none; box-sizing: border-box;
  --rule: color-mix(in oklab, var(--ink) calc(8% * var(--g-kl)), transparent);
  --cell: 72px;
  left: max(var(--pad), calc((100% - var(--container)) / 2)); right: max(var(--pad), calc((100% - var(--container)) / 2));
  border-right: 1px solid var(--rule);
  background:
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / var(--cell) var(--cell) space repeat,
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / var(--cell) var(--cell) repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--g-fade), #000 calc(100% - var(--g-fade)), transparent), radial-gradient(ellipse 120% 90% at 50% 40%, #000 30%, transparent 92%), radial-gradient(ellipse 46% 34% at 50% 38%, transparent 40%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent, #000 var(--g-fade), #000 calc(100% - var(--g-fade)), transparent), radial-gradient(ellipse 120% 90% at 50% 40%, #000 30%, transparent 92%), radial-gradient(ellipse 46% 34% at 50% 38%, transparent 40%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
@media (max-width: 767px) { .bg-ruled::after { --cell: 48px; } }

/* ---------------------------------------------------------------- 8 dots: a dot field that fades out */
/* the dots live in the margins and the corners and are clear behind the heading and the words (a hole in the middle of the mask,
   not a spotlight on it), at 24% of the ink, so no line of body copy ever sits on them */
.bg-dots::before {
  background:
    radial-gradient(34% 46% at 6% 34%, color-mix(in oklab, var(--g-hue) calc(16% * var(--g-k)), transparent), transparent),
    radial-gradient(30% 40% at 96% 70%, color-mix(in oklab, var(--g-hue-t) calc(24% * var(--g-k)), transparent), transparent),
    radial-gradient(circle at 11px 11px, color-mix(in oklab, var(--ink) calc(26% * var(--g-kl)), transparent) 1.15px, transparent 1.9px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--g-fade), #000 calc(100% - var(--g-fade)), transparent), radial-gradient(ellipse 58% 70% at 50% 40%, transparent 24%, #000 78%);
          mask-image: linear-gradient(to bottom, transparent, #000 var(--g-fade), #000 calc(100% - var(--g-fade)), transparent), radial-gradient(ellipse 58% 70% at 50% 40%, transparent 24%, #000 78%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* ---------------------------------------------------------------- 9 arcs: rings that rise from below, x.ai's footer */
/* the rings need room under the words: a minimum height (the words centred), not more padding, so the gaps stay the page's */
.section.bg-arcs { min-height: clamp(420px, 36vw, 540px); display: grid; align-content: center; }
.bg-arcs::before {
  background:
    radial-gradient(56% 56% at 50% 100%, color-mix(in oklab, var(--g-hue) calc(22% * var(--g-k)), transparent), transparent),
    radial-gradient(30% 40% at 78% 100%, color-mix(in oklab, var(--g-hue-t) calc(24% * var(--g-k)), transparent), transparent),
    repeating-radial-gradient(circle at 50% 140%, transparent 0 79px, color-mix(in oklab, var(--ink) calc(22% * var(--g-kl)), transparent) 79px 80px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--g-fade), #000 calc(100% - var(--g-fade)), transparent), radial-gradient(ellipse 84% 94% at 50% 100%, #000 30%, transparent 82%);
          mask-image: linear-gradient(to bottom, transparent, #000 var(--g-fade), #000 calc(100% - var(--g-fade)), transparent), radial-gradient(ellipse 84% 94% at 50% 100%, #000 30%, transparent 82%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* ---------------------------------------------------------------- 10 band: a coloured band in a second tone */
/* the lit ground's tone with a light corner, a richer neighbour of the same colour leaning in from the right and a
   deeper shade of itself in the far corner, under fine grain: one family of colour, never flat */
.bg-band {
  background-image:
    var(--g-noise-soft),
    radial-gradient(66% 120% at 0% 0%, color-mix(in oklab, var(--bg) 42%, var(--g-hi, white)), transparent 72%),
    radial-gradient(52% 96% at 100% 0%, color-mix(in oklab, var(--t-b) 62%, transparent), transparent 76%),
    radial-gradient(64% 104% at 100% 100%, color-mix(in oklab, var(--t-c) 70%, transparent), transparent 78%);
  background-blend-mode: soft-light, normal, normal, normal;
}

/* .bg-tint, with .bg-band or .bg-field: the second tone is a pale tint of the accent's own colour (a mint for a teal accent,
   an azure for a blue one, Figma's flat mint panel) instead of the lit ground, so the band is coloured on a sand page too */
.bg-tint {
  --tone: oklch(from var(--g-hue) 0.93 clamp(0.035, c * 0.32, 0.075) h);
  --tone-ink: color-mix(in oklab, var(--g-light-ink) 58%, black);
  --accent: var(--g-light-accent); --accent-ink: var(--g-light-accent-ink);
  --surface: color-mix(in oklab, var(--tone) 60%, white);
  --card: color-mix(in oklab, var(--g-light-bg) 80%, white);
}
/* on a dark page a pale tinted slab is the brightest thing there: the tint is a deep tone of the accent's colour with light words */
html[data-mode="dark"] .bg-tint {
  --tone: oklch(from var(--g-hue) 0.24 clamp(0.04, c * 0.42, 0.09) h);
  --tone-ink: color-mix(in oklab, var(--p-ink) 92%, white);
  --muted: color-mix(in oklab, var(--tone-ink) 82%, var(--tone));
  --accent: var(--p-accent); --accent-ink: var(--p-accent-ink);
  --surface: color-mix(in oklab, var(--tone) 80%, white);
  --card: color-mix(in oklab, var(--tone) 86%, black);
  --action: var(--tone-ink); --action-ink: var(--tone);
  --g-hi: color-mix(in oklab, var(--tone) 88%, white);   /* the light corner of the band and the field stays deep, under light words */
}

/* ---------------------------------------------------------------- 11 field: a grainy gradient in the lit tone, Figma's panel */
.bg-field {
  background-image:
    var(--g-noise-soft),
    linear-gradient(112deg, transparent 38%, color-mix(in oklab, var(--g-hi, white) 26%, transparent) 50%, transparent 62%),
    radial-gradient(58% 86% at 8% 0%, color-mix(in oklab, var(--g-hi, white) 58%, transparent), transparent),
    radial-gradient(54% 80% at 82% 6%, color-mix(in oklab, var(--t-b) 80%, transparent), transparent),
    radial-gradient(60% 96% at 100% 100%, color-mix(in oklab, var(--t-c) 76%, transparent), transparent),
    radial-gradient(40% 60% at 0% 100%, color-mix(in oklab, var(--t-b) 50%, transparent), transparent);
  background-blend-mode: soft-light, normal, normal, normal, normal, normal;
}

/* ---------------------------------------------------------------- 12 stage: a vivid panel for a visual, Figma's tiles */
/* a rounded panel (not a section) behind one card or window: the accent's colour as a mesh with a light corner and a
   deep one, and grain. It has NO text of its own: every word sits on a card on it (that is what lets it be vivid).
     <div class="bg-stage"><div class="mini">...</div></div>
   A grey accent (data-lowchroma) takes the lit ground's colour. --stage-pad is the room round the card. */
.bg-stage {
  --st-src: var(--g-hue);
  /* yellows go olive at mid lightness, so around hue 90 the mid and deep tones are lifted (+.12, +.1) */
  --st-1: oklch(from var(--st-src) calc(0.64 + 0.12 * clamp(0, 1 - max(h - 90, 90 - h) / 45, 1)) clamp(0.07, c * 0.8, 0.14) calc(h - 8 * clamp(0, 1 - max(h - 90, 90 - h) / 45, 1)));
  --st-2: oklch(from var(--st-src) 0.8 clamp(0.05, c * 0.6, 0.1) calc(h + var(--g-hs)));
  --st-3: oklch(from var(--st-src) 0.95 0.035 h);
  /* a yellow darkened turns olive: its deep tone leans to amber instead (hue -24 at yellow) */
  --st-4: oklch(from var(--st-src) calc(0.44 + 0.1 * clamp(0, 1 - max(h - 90, 90 - h) / 45, 1)) clamp(0.05, c * 0.7, 0.12) calc(h - 24 * clamp(0, 1 - max(h - 90, 90 - h) / 45, 1)));
  --stage-pad: clamp(20px, 4.5vw, 64px);
  display: grid; place-items: center; padding: var(--stage-pad); border-radius: var(--r-lg);
  background-color: var(--st-1);
  background-image:
    var(--g-noise-soft),
    radial-gradient(58% 78% at 10% 4%, color-mix(in oklab, var(--st-3) 90%, transparent), transparent 72%),
    radial-gradient(48% 70% at 90% 12%, color-mix(in oklab, var(--st-2) 92%, transparent), transparent 74%),
    radial-gradient(70% 90% at 78% 112%, color-mix(in oklab, var(--st-4) 94%, transparent), transparent 74%),
    radial-gradient(46% 62% at 4% 100%, color-mix(in oklab, var(--st-2) 60%, transparent), transparent 72%);
  background-blend-mode: soft-light, normal, normal, normal, normal;
}
html[data-tint="away"] .bg-stage { --st-src: var(--g-acc); }
html[data-lowchroma] .bg-stage { --st-src: oklch(from var(--ground-accent) l c h); }
.bg-stage > * { position: relative; width: min(100%, var(--stage-w, 520px)); }

/* ---------------------------------------------------------------- 13 photo: a full-bleed photograph under a calm scrim */
/* The photograph is an <img class="bg-photo__img" src alt> child (alt text, lazy loading, found early by the
   browser), or --g-photo: url(...) when the section cannot hold one. The scrim is the dark side's tone and is at
   least .76 deep from the bottom edge up to --scrim-h (the top of the words; backgrounds.js measures it from the
   section's own text and sets it, 66% by default, 86% on a phone), so white words keep 7:1 even on a white
   photograph (a scrim of .76 over white is darker than #595959). A pale photograph takes .bg-photo--light: the scrim is
   the light side's tone and the words are dark. The scrim is the section's ::before, above the photograph.
   --g-photo-pos: where the subject sits (object-position, e.g. "70% 30%"); --g-photo-pos-m the same on a phone, where the
   words take the lower part and the subject belongs in the upper one. */
.bg-photo {
  --scrim: color-mix(in oklab, var(--g-dark-bg) 70%, black);
  /* the scrim deepens as the palette's dark side loses headroom (--g-kd): .88 / .80 / .76 at 1, solid at 0 */
  --scrim-a: color-mix(in oklab, var(--scrim) calc(100% - 12% * var(--g-kd)), transparent);
  --scrim-b: color-mix(in oklab, var(--scrim) calc(100% - 20% * var(--g-kd)), transparent);
  --scrim-c: color-mix(in oklab, var(--scrim) calc(100% - 24% * var(--g-kd)), transparent);
  --scrim-h: 66%; --scrim-w: 56%;
  min-height: clamp(520px, 52vw, 760px); display: grid; align-content: end;
  background: var(--g-photo, none) var(--g-photo-pos, center) / cover no-repeat, var(--scrim);
}
.bg-photo__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--g-photo-pos, 50% 50%); }
.bg-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--scrim-a), var(--scrim-b) calc(var(--scrim-h) * .45), var(--scrim-c) var(--scrim-h), transparent calc(var(--scrim-h) + 26%));
}
.bg-photo--left { align-content: center; }
.bg-photo--left::before { background: linear-gradient(to right, var(--scrim-a), var(--scrim-b) calc(var(--scrim-w) * .64), var(--scrim-c) var(--scrim-w), transparent calc(var(--scrim-w) + 26%)); }
.bg-photo--light {
  --scrim: var(--g-light-bg);
  --scrim-a: color-mix(in oklab, var(--scrim) 94%, transparent);
  --scrim-b: color-mix(in oklab, var(--scrim) 88%, transparent);
  --scrim-c: color-mix(in oklab, var(--scrim) 76%, transparent);
  --bg: color-mix(in oklab, var(--g-light-bg) 90%, white); --surface: var(--p-surface); --ink: var(--g-light-ink);
  --muted: color-mix(in oklab, var(--g-light-ink) 60%, var(--g-light-muted));
  --accent: var(--g-light-accent); --accent-ink: var(--g-light-accent-ink);
  --action: var(--g-light-action); --action-ink: var(--g-light-action-ink);
  --card: var(--g-light-bg);
}
@media (max-width: 767px) {
  .bg-photo { --scrim-h: 86%; min-height: 640px; background-position: var(--g-photo-pos-m, var(--g-photo-pos, center)); }
  .bg-photo__img { object-position: var(--g-photo-pos-m, var(--g-photo-pos, 50% 50%)); }
  .bg-photo--left { align-content: end; }
  .bg-photo--left::before { background: linear-gradient(to top, var(--scrim-a), var(--scrim-b) calc(var(--scrim-h) * .45), var(--scrim-c) var(--scrim-h), transparent calc(var(--scrim-h) + 12%)); }
}

/* ---------------------------------------------------------------- 14 horizon: a dark band with a lit horizon */
/* a dome of the page's dark tone rising from the bottom edge, its rim a thin line of light that is brightest at the
   top and fades to both sides, with the glow above it (the planet's edge in x.ai's dark pages) */
.section.bg-horizon:not(.section--flush-top, .section--rule) { padding-bottom: calc(var(--section-band) * 1.25 + 150px); }   /* (0,3,0), after the spacing block: keeps the dome's room, hero or not */
.bg-horizon::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 640px; pointer-events: none;
  background:
    radial-gradient(26% 74px at 50% calc(100% - 140px), color-mix(in oklab, var(--lit) calc(70% * var(--g-kd)), transparent), transparent),
    radial-gradient(54% 76% at 50% 100%, color-mix(in oklab, var(--lit) calc(44% * var(--g-kd)), transparent), transparent 74%),
    radial-gradient(120% 84% at 50% 100%, color-mix(in oklab, var(--g-hue) calc(22% * var(--g-kd)), transparent), transparent 76%);
}
.bg-horizon::after {
  /* a dome as wide as 170% of the section and never less than 1200px, so its curve stays a flat planet's rim on a phone (a
     dome as wide as the phone is a pointed arch) */
  content: ""; position: absolute; z-index: -1; left: 50%; translate: -50% 0; width: max(170%, 1200px); bottom: -560px; height: 700px; pointer-events: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(60% 100% at 50% 0, color-mix(in oklab, var(--lit) 34%, var(--bg)), var(--bg) 72%);
  border-top: 2px solid color-mix(in oklab, var(--lit) 90%, white);
  box-shadow: 0 -12px 56px -8px color-mix(in oklab, var(--lit) 62%, transparent), 0 -1px 16px color-mix(in oklab, var(--lit) 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 36%, #000 64%, transparent 95%);
          mask-image: linear-gradient(90deg, transparent 5%, #000 36%, #000 64%, transparent 95%);
}

/* ---------------------------------------------------------------- 15 deep: near-black with a spotlight and grain, x.ai's dark */
.bg-deep {
  --bg: color-mix(in oklab, var(--g-dark-bg) 70%, black);
  background-image:
    radial-gradient(64% 70% at 50% 0%, color-mix(in oklab, var(--g-hue) calc(21% * var(--g-kd)), transparent), transparent 76%),
    radial-gradient(48% 60% at 100% 100%, color-mix(in oklab, var(--g-hue-t) calc(18% * var(--g-kd)), transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in oklab, var(--g-dark-surface) calc(40% * var(--g-kd)), var(--bg)), var(--bg) 70%),
    linear-gradient(var(--g-cover-d), var(--g-cover-d)),
    var(--g-noise-scr);
  background-blend-mode: normal, normal, normal, normal, screen;
}
/* a hairline of light along the top edge, brightest in the middle (a lit lip, as on x.ai's cards) */
.bg-deep::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 6%, color-mix(in oklab, var(--ink) calc(28% * var(--g-kd)), transparent) 50%, transparent 94%);
}

/* ---------------------------------------------------------------- 16 liquid: a slow mesh of colour, transform only */
/* two layers, each wider than the section (160%), each holding two wide ellipses of colour that fade to nothing inside the
   layer's own height (their radii end before the section's top and bottom, so nothing is clipped into an edge). They drift,
   skew and stretch against each other (translate, skewX, scaleY: transforms only, nothing repaints), so the mesh keeps
   changing shape. Three hues: the accent, the lit ground's tone (a second hue, so the wash is not blue all through) and
   the accent's neighbour, all low in chroma. Held still, it is the same picture. */
.bg-liquid::before, .bg-liquid::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; top: 0; bottom: 0; left: -30%; right: -30%; will-change: transform;
}
.bg-liquid::before {
  background:
    radial-gradient(ellipse 30% 36% at 30% 44%, color-mix(in oklab, var(--g-hue) calc(40% * var(--g-k)), transparent), transparent),
    radial-gradient(ellipse 22% 24% at 54% 74%, color-mix(in oklab, var(--g-hue-t) calc(44% * var(--g-k)), transparent), transparent);
  animation: g-liq-a 26s ease-in-out infinite alternate;
}
.bg-liquid::after {
  background:
    radial-gradient(ellipse 28% 30% at 68% 38%, color-mix(in oklab, var(--g-hue-b) calc(32% * var(--g-k)), transparent), transparent),
    radial-gradient(ellipse 20% 20% at 44% 26%, color-mix(in oklab, var(--g-hue-t) calc(36% * var(--g-k)), transparent), transparent);
  animation: g-liq-b 34s ease-in-out infinite alternate;
}
@keyframes g-liq-a { from { transform: translate3d(-7%, 0, 0) skewX(-7deg) scaleY(.94); } to { transform: translate3d(8%, 0, 0) skewX(6deg) scaleY(1.05); } }
@keyframes g-liq-b { from { transform: translate3d(8%, 0, 0) skewX(6deg) scaleY(1.04); } to { transform: translate3d(-9%, 0, 0) skewX(-6deg) scaleY(.92); } }
.bg-liquid.is-off::before, .bg-liquid.is-off::after, .bg-liquid.is-held::before, .bg-liquid.is-held::after { animation-play-state: paused; }
/* the pause disc sits on the container's right edge, not the section's corner */
.bg-liquid > .loop-pause { right: max(var(--pad), calc((100% - var(--container)) / 2)); bottom: 16px; }

/* ---------------------------------------------------------------- motion and print */
@media (prefers-reduced-motion: reduce) {
  .bg-liquid::before, .bg-liquid::after { animation: none; }
}
@media print { .bg-liquid::before, .bg-liquid::after { display: none; } }

/* layout/layout.css */
/*
  taste-skill layout.css - layout v4 (references/layout-v4.md): one section per screen, equal left and
  right edges, the ten hero types (heroes.json) and the display tokens a font pairing sets (fonts.json).
  Link it after system.css, ui/cards.css and backgrounds/backgrounds.css; load layout.js after system.js.

  Section   system.css sets the rhythm: every main > section exactly one or two screens (--h), its h2
            first, --padt under its top; this file adds the heroes and the display tokens.
  Hero      <section class="hero hero--<type>"><div class="wrap"><div class="hero-text ..">..</div></div>
            first in main: exactly the first screen, the fixed header over its top.
  Edges     one container; no one-sided bleed (a block stands on the lines or runs edge to edge).
  Type      start.mjs deals the pairing (VI-02) and prints --font-*, --display-weight (400; 400 to 500
            on tech) and --display-tracking; a page may add --display-stretch, --display-axes and
            --ly-scale (the face's optical size against the default grotesk, 1 when unsure).
  Place     a place's hero is never dealt: always hero--place (Recipe 3: the photograph under the
            header, the words under it on the ground). Nothing is laid over a photograph to make
            words readable, on any type: no scrim, gradient or veil (PH-31, VI-49).

  Every number here is in references/layout-v4.md with what it was measured on; change it there first.
*/

/* ---------------------------------------------------------------- tokens */
:root {
  --ly-nav: var(--nav, 72px);
  --ly-screen: calc(100svh - var(--ly-nav));      /* one screen under the fixed header: 828 at 1440x900, 788 at 390x844 */
  --ly-pad: var(--padt, 120px);
  --ly-hero-pad: var(--hgap, 48px);
  --ly-head-gap: var(--head-gap, 48px);            /* a section's heading block to its visual (system.css) */
  /* the content box of one screen (708 at 1440x900) and of the hero (716 = 900 - 72 - 48 - 64) */
  --ly-fit: calc(100svh - var(--padt, 120px) - var(--padb, 72px) - var(--bar, 0px));
  --ly-hero-h: calc(100svh - var(--nav, 72px) - var(--hgap, 48px) - var(--hpadb, 64px) - var(--bar, 0px));
  --ly-scale: 1;
  /* hero sizes: straight lines from 390 to 1440, times the pairing's --ly-scale (layout-v4.md, section 3) */
  --ly-h1:       calc(var(--ly-scale) * clamp(40px, 3.048vw + 28.11px, 72px));    /* 72 / 40: split, product, film, centred */
  --ly-h1-xl:    calc(var(--ly-scale) * clamp(44px, 3.429vw + 30.63px, 80px));    /* 80 / 44: photo */
  --ly-h1-col:   calc(var(--ly-scale) * clamp(40px, 2.286vw + 31.09px, 64px));    /* 64 / 40: collage */
  --ly-h1-mega:  calc(var(--ly-scale) * clamp(56px, 9.524vw + 18.86px, 156px));   /* 156 / 56: editorial */
  --ly-h1-word:  calc(var(--ly-scale) * clamp(54px, 8.571vw + 20.57px, 144px));   /* 144 / 54: word */
  --ly-h1-quiet: calc(var(--ly-scale) * clamp(34px, 2.095vw + 25.83px, 56px));    /* 56 / 34: statement */
  --ly-h1-side:  calc(var(--ly-scale) * clamp(40px, 1.143vw + 35.54px, 52px));    /* 52 / 40: triptych */
  --ly-lead: clamp(17px, .286vw + 15.89px, 20px);                                  /* 20 / 17 */
}

/* the pairing's display axes (fonts.json): width through font-stretch, the rest as settings */
h1, h2, h3, .ly-display { font-stretch: var(--display-stretch, 100%); font-variation-settings: var(--display-axes, normal); }
.card h3, .card h4, .tile h3 { font-stretch: 100%; font-variation-settings: normal; }

/* ---------------------------------------------------------------- one section per screen
   system.css makes every main > section exactly one or two screens (--h) with its h2 first; nothing
   here centres a section's content (a short block centred in a tall screen hides that it is short) */
main > .section .section-head { margin-bottom: var(--ly-head-gap); }
/* a visual sized to what one screen leaves after its heading (--ly-head, about 160px for a two-line
   h2 and a sub-line): or put .fill on it inside the section's .wrap */
.fit-screen { height: clamp(280px, calc(var(--ly-fit) - var(--ly-head, 160px) - var(--ly-head-gap)), 720px); }
@media (max-width: 1023px) { .fit-screen { height: auto; } }

/* ---------------------------------------------------------------- edges */
/* no one-sided bleed: a block either stands on the container's lines or runs edge to edge (a
   full-bleed photograph or ground). layout-check.js flags a block that touches one viewport edge. */

/* ---------------------------------------------------------------- the hero (every type) */
/* the box (exactly the first screen, padded under the fixed header) is system.css's; .hero-text fills
   what is left, and a type that grows a picture down to the fold lets it take the rest */
.hero { position: relative; isolation: isolate; }
.hero > .wrap > .hero-text { height: 100%; }
.hero__in { display: flex; flex-direction: column; }
.hero h1 { font-size: var(--ly-h1); line-height: 1.02; letter-spacing: var(--display-tracking-xl, var(--display-tracking)); text-wrap: balance; }
.hero .hero__lead { font-size: var(--ly-lead); line-height: 1.5; max-width: 42ch; text-wrap: pretty; color: var(--ink); }
.hero .hero__lead .muted, .hero__lead.muted { color: var(--muted); }
.hero__kicker { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero__text > * + * { margin-top: var(--s-5); }
.hero__text > .btn-row { margin-top: var(--s-6); }
.hero__text > .hero__kicker + h1 { margin-top: var(--s-4); }
.hero__grid { align-items: center; align-content: center; }
/* a hero grid with a picture as tall as the hero (split, collage, triptych): one row, the whole height */
.hero-text.hero__grid { grid-template-rows: minmax(0, 1fr); align-content: stretch; }
.hero__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-5); align-items: end; }
.hero__head > :first-child { grid-column: 1 / span 7; }
.hero__head > :first-child > * + * { margin-top: var(--s-4); }
.hero__head > .btn-row { grid-column: 9 / -1; justify-content: flex-end; }
.hero__foot { margin-top: var(--s-6); align-items: end; }
.hero__foot > .btn-row { justify-content: flex-end; }
.hero__fill { flex: 1 1 auto; position: relative; min-height: 0; }
.hero__media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.hero__media > img, .hero__media > video, .hero__media > picture > img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--ly-pos, 50% 50%);
}
@media (max-width: 1023px) {
  .hero__head > :first-child, .hero__head > .btn-row { grid-column: 1 / -1; justify-content: flex-start; }
  .hero__foot > .btn-row { justify-content: flex-start; }
  .hero__media > img { object-position: var(--ly-pos-phone, var(--ly-pos, 50% 50%)); }
}
/* facts docked to the hero's foot: a hairline and four short facts on the column lines */
.hero__facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-5);
               border-top: 1px solid var(--line); padding-top: var(--s-5); margin: 0; }
.hero__facts > div { grid-column: auto / span 3; display: grid; gap: var(--s-1); }
.hero__facts dt { font-size: var(--t-small); color: var(--muted); }
.hero__facts dd { margin: 0; font-size: var(--t-body); font-weight: 500; }
@media (max-width: 639px) { .hero__facts > div { grid-column: auto / span 6; } }
/* a proof strip (logos, a rating) docked to the hero's foot instead of a section of its own */
.hero__dock { margin-top: auto; padding-top: var(--s-7); }

/* a small card laid on a hero picture, 24px in from a corner (the opening hours, today's bake,
   an order's state): one, opaque, in the page's colours */
.ly-float {
  position: absolute; z-index: 2; left: var(--s-5); bottom: var(--s-5); width: min(300px, calc(100% - 2 * var(--s-5)));
  display: grid; gap: var(--s-1); padding: var(--s-4); border-radius: var(--r-md);
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);   /* flat: no shadow at rest (ST-97) */
}
.ly-float--tr { left: auto; bottom: auto; right: var(--s-5); top: var(--s-5); }
.ly-float__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.ly-float__title { font-weight: 500; font-size: var(--t-body); }
.ly-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-label); color: var(--ink); }
.ly-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); animation: ly-pulse 2.4s ease-out infinite; }
@keyframes ly-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
/* kind other (a cafe, a shop, a studio) and a place: nothing moves by itself (MO-07) */
:root:is([data-type="place"], :has(meta[name="site-kind"][content="other"])) .ly-live::before { animation: none; }

/* 1. hero--split: text on span-5, the picture on span-6 start-7, ending on the right line (never out
      to the viewport edge: the page's two edges stay equal), as tall as the screen less the hero's
      padding: 628 x 740 at 1440x900. A phone stacks text then picture, and the picture takes what the
      first screen leaves (at least 240px), so the hero is still one screen */
.hero--split .hero__media { height: 100%; min-height: 0; }
.hero--split .hero__grid { align-items: stretch; }
.hero--split .hero__text { align-self: start; }
.hero--collage .hero__text { align-self: start; }
/* the words' first line on the picture's top line: an h1 first in its column starts at its capitals */
:is(.hero--split, .hero--collage) .hero__text > h1:first-child { text-box: trim-start cap alphabetic; }
@media (max-width: 1023px) {
  .hero--split .hero__grid, .hero--collage .hero__grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero--split .hero__media { height: auto; flex: 1 1 0; min-height: 240px; margin-top: var(--s-6); }
}

/* 2. hero--photo (product, service, software): the photograph over the whole first screen and the
      words on its calm side, in a solid box in the page's own colours (the default), or with
      data-box="none" straight on a calm part of the photograph that is dark (data-tone="dark") or
      light (data-tone="light") and empty at the desktop crop. Nothing is laid over the photograph:
      no scrim, gradient or veil (PH-31, VI-49). From 1023 down the photograph is a layer under the
      header (--photo) and the words sit under it on the ground. On a place see hero--place. */
.hero--photo { color: var(--ink); background: #1b1b1b; }
.hero--photo > .hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--ly-pos, 50% 50%); }
.hero--photo[data-box="none"][data-tone="dark"] { --ink: #ffffff; --muted: #ffffff; --line: rgb(255 255 255 / .4); --line-strong: rgb(255 255 255 / .7); color: #fff; }
.hero--photo[data-box="none"][data-tone="light"] { --ink: #111111; --muted: #111111; --line: rgb(17 17 17 / .24); --line-strong: rgb(17 17 17 / .5); color: #111; }
.hero--photo:not([data-box="none"]) .hero__text {
  padding: var(--s-7); background: var(--p-bg); color: var(--p-ink); border-radius: var(--r-lg);
  --ink: var(--p-ink); --muted: var(--p-muted); --line: color-mix(in oklab, var(--p-ink) 11%, transparent); --line-strong: color-mix(in oklab, var(--p-ink) 20%, transparent);
}
/* the facts are small words: on the photograph only on a calm part (data-box="none"), never beside a box */
.hero--photo:not([data-box="none"]) .hero__facts { display: none; }
.hero--photo > .wrap > .hero-text { display: flex; flex-direction: column; justify-content: flex-end; }
.hero--photo[data-calm="left"] > .wrap > .hero-text, .hero--photo[data-calm="right"] > .wrap > .hero-text { justify-content: center; }
.hero--photo[data-calm="top"] > .wrap > .hero-text { justify-content: flex-start; }
.hero--photo .hero__text { width: calc(50% - var(--gutter) / 2); }   /* six of the twelve columns: 628 at 1440 */
@media (max-width: 1023px) { .hero--photo .hero__text { width: 100%; } }
.hero--photo[data-calm="right"] .hero__text { margin-left: auto; }
.hero--photo h1 { font-size: var(--ly-h1-xl); max-width: 14ch; }
.hero--photo .hero__facts { margin-top: var(--s-8); }
.hero--photo[data-calm="left"] > .wrap > .hero-text, .hero--photo[data-calm="right"] > .wrap > .hero-text { position: relative; }
.hero--photo[data-calm="left"] .hero__facts, .hero--photo[data-calm="right"] .hero__facts { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
/* the page's own button pair (never a third style) */
.hero--photo .btn-row { --ink: var(--p-ink); --bg: var(--p-bg); --action: var(--p-action); --action-ink: var(--p-action-ink); --line-strong: color-mix(in oklab, var(--p-ink) 20%, transparent); }
html:is([data-buttons="arrow"], [data-buttons="block"]) .hero--photo[data-box="none"][data-tone="dark"] .btn--secondary { color: #fff; text-decoration-color: rgb(255 255 255 / .6); }
/* a tablet and a phone: no calm part survives every crop, so the photograph is a layer under the
   header (--photo) and the words sit --hgap under it on the page ground, in the page's own colours */
@media (max-width: 1023px) {
  .hero--photo, .hero--photo[data-tone] { background: var(--bg); color: var(--p-ink); --ink: var(--p-ink); --muted: var(--p-muted);
    --line: color-mix(in oklab, var(--p-ink) 11%, transparent); --line-strong: color-mix(in oklab, var(--p-ink) 20%, transparent); }
  .hero--photo { --photo: min(46svh, 56vw); }
  .hero--photo > .hero__bg { top: var(--nav); bottom: auto; height: var(--photo); object-position: var(--ly-pos-phone, var(--ly-pos, 50% 50%)); }
  .hero--photo .hero__facts { display: none; }
  .hero--photo > .wrap > .hero-text, .hero--photo[data-calm] > .wrap > .hero-text { justify-content: flex-start; }
  .hero--photo .hero__text, .hero--photo:not([data-box="none"]) .hero__text { padding: 0; background: none; border-radius: 0; }
  .hero--photo[data-calm="right"] .hero__text { margin-left: 0; }
  html:is([data-buttons="arrow"], [data-buttons="block"]) .hero--photo[data-tone="dark"] .btn--secondary { color: var(--p-ink); text-decoration-color: var(--line-strong); }
}
@media (max-width: 639px) { .hero--photo { --photo: 42svh; } }

/* 0. hero--place: the only place hero, never dealt (local-business Recipe 3; ST-53, PH-47, PH-81).
      The client's photograph full-bleed under the header (--photo: 480 at 1440x900, y 72-552, at most
      53% of the screen; on a phone a 4:3 crop, 390x292, or with data-phone-fill grown to what the words leave, up to
      4:5), nothing on it. On the ground below, --hgap
      (40, 24 on a phone) under it: the h1 on columns 1-6 (48/53, 32/37 on a phone), and from the
      split line the sub-line (the kind of place, where, today's hours) and one filled 48px button.
      html[data-type="place"] .hero--photo is drawn the same way (the older markup).
      <section class="hero hero--place"><img class="hero__bg" src=".." alt=".." fetchpriority="high">
        <div class="wrap"><div class="hero-text"><div class="hero__text">
          <h1>..</h1><p class="hero__lead">..</p><div class="btn-row"><a class="btn btn--primary">..</a></div>
        </div></div></div></section> */
.hero--place, :root[data-type="place"] .hero--photo { --photo: min(480px, 53svh); background: var(--bg); color: var(--ink); }
.hero--place > .hero__bg, :root[data-type="place"] .hero--photo > .hero__bg {
  position: absolute; left: 0; right: 0; top: var(--nav); bottom: auto; z-index: 0; width: 100%; height: var(--photo); max-width: none;
  object-fit: cover; object-position: var(--ly-pos, 50% 50%); border-radius: 0;
}
/* the hero as photos.mjs fetch prints it: <picture class="hero__bg"><source media="(max-width: 639px)" ..><img ..></picture>.
   The picture is the layer (placed as img.hero__bg above, out of the flow beside the .wrap); its img fills it */
:is(.hero--photo, .hero--place) > picture.hero__bg { display: block; overflow: hidden; }
:is(.hero--photo, .hero--place) > picture.hero__bg > img {
  display: block; width: 100%; height: 100%; max-width: none; border-radius: 0;
  object-fit: cover; object-position: var(--ly-pos, 50% 50%);
}
@media (max-width: 1023px) {
  :is(.hero--photo, .hero--place) > picture.hero__bg > img { object-position: var(--ly-pos-phone, var(--ly-pos, 50% 50%)); }
}
:root[data-type="place"] .hero--photo, :root[data-type="place"] .hero--photo[data-tone] { --ink: var(--p-ink); --muted: var(--p-muted); color: var(--p-ink); }
:is(.hero--place, :root[data-type="place"] .hero--photo) > .wrap > .hero-text { display: block; }
:is(.hero--place, :root[data-type="place"] .hero--photo) .hero__text {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; align-items: start;
  width: 100%; margin: 0; padding: 0; background: none; border-radius: 0;
}
:is(.hero--place, :root[data-type="place"] .hero--photo) .hero__text > * { grid-column: 7 / -1; margin: 0; }
:is(.hero--place, :root[data-type="place"] .hero--photo) .hero__text > h1 {
  grid-column: 1 / span 6; grid-row: 1 / span 3; max-width: none; font-size: var(--t-h1); line-height: 1.104; text-box: trim-start cap alphabetic;
}
:is(.hero--place, :root[data-type="place"] .hero--photo) .hero__lead { font-size: var(--t-lead); line-height: 1.5; max-width: 40ch; color: var(--ink); }
:is(.hero--place, :root[data-type="place"] .hero--photo) .hero__text > .btn-row { margin-top: var(--s-5); }
:is(.hero--place, :root[data-type="place"] .hero--photo) .btn { height: 48px; }
:is(.hero--place, :root[data-type="place"] .hero--photo) .hero__facts { display: none; }
@media (max-width: 1023px) {
  .hero--place, :root[data-type="place"] .hero--photo { --photo: min(56vw, 46svh); }
  :is(.hero--place, :root[data-type="place"] .hero--photo) .hero__text { display: flex; flex-direction: column; gap: var(--s-5); }
  :is(.hero--place, :root[data-type="place"] .hero--photo) .hero__text > .btn-row { margin-top: 0; }
}
/* a tablet held upright (820x1180): a 56vw photograph would leave a third of the screen empty under
   the button, so the photograph grows to a little over half the screen (656 at 820x1180) */
@media (min-width: 640px) and (max-width: 1023px) and (orientation: portrait) {
  .hero--place, :root[data-type="place"] .hero--photo { --photo: min(80vw, 56svh); }
}
@media (max-width: 639px) {
  .hero--place, :root[data-type="place"] .hero--photo { --photo: 75vw; }
  :is(.hero--place, :root[data-type="place"] .hero--photo) .hero__text > h1 { line-height: 1.156; }
  :is(.hero--place, :root[data-type="place"] .hero--photo) .hero__lead { font-size: 18px; line-height: 1.556; }
  :is(.hero--place, :root[data-type="place"] .hero--photo) .hero__text > .btn-row { margin-top: 0; }
  /* a photograph whose phone source is tall enough (data-phone-fill: photos.mjs prints it with its 4:5 phone crop,
     or with a phone sizes term that covers a 4:5 box) takes what the words leave of the first screen, from --photo
     (390x292 at 390) to 4:5 (390x488), so the screen ends on the button, never on an empty band under it (a 390x844
     screen: about 390x480). Without the attribute it keeps --photo: a 4:3 crop shown taller is blown up. The section's
     grid has two rows, the photograph's (it is placed in that row, still out of the flow: both its lines named, as an
     absolute box's auto line is the section's edge) and the words' */
  main > :is(.hero--place, :root[data-type="place"] .hero--photo):has(> .hero__bg[data-phone-fill]):has(> .wrap) {
    padding-top: var(--nav); grid-template-rows: minmax(calc(var(--photo) + var(--hgap)), 1fr) auto;
  }
  main > :is(.hero--place, :root[data-type="place"] .hero--photo):has(> .wrap) > .hero__bg[data-phone-fill] {
    grid-row: 1 / 2; grid-column: 1 / -1; top: 0; bottom: auto; height: min(calc(100% - var(--hgap)), 125vw);
  }
  main > :is(.hero--place, :root[data-type="place"] .hero--photo):has(> .hero__bg[data-phone-fill]):has(> .wrap) > .wrap { grid-row: 2; }
}

/* 3. hero--product: the head row (h1 and line left, the buttons right on the line's baseline), then
      one object on a stage that fills the rest of the screen. The lit, rounded stage below is for a print
      or a scene (tech, games); the product itself (a render, a cut-out, a photograph) takes 3b: no box */
.hero--product .hero__stage { margin-top: var(--s-7); }
.hero__stage {
  position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: clamp(260px, 40svh, 400px); flex: 1 1 auto;
  background:
    radial-gradient(60% 70% at 50% 42%, color-mix(in oklab, var(--ground-surface, #e9e0d2) 90%, white), transparent 72%),
    linear-gradient(to bottom, var(--ground-bg, #d9ccb7) 0 72%, color-mix(in oklab, var(--ground-bg, #d9ccb7) 86%, black) 100%);
}
.hero__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--ly-pos, 50% 50%); }
.hero__stage > img.is-cutout { object-fit: contain; padding: 5% 0 4%; }
.hero__stage > [data-print], .hero__stage > [data-scene] { position: absolute; inset: 0; }
/* 3b. the product itself on the stage, never boxed (in testing: a render at 44% of a rounded lit box
      read as "small and boxed"). The lit box above stays for a print or a world scene (tech, games).
      - a render (a [data-product] frame) or a cut-out (img.is-cutout): no box, no gradient, no radius;
        the page's own ground. The stage runs across the wrap and down to --s-5 above the fold, the
        head row's gap is --s-6, and a render's frame reaches 7% past the stage's top and bottom, so
        the product's long side fills the stage's height (the place's 0.86-0.88 margin taken back):
        a wide product's widest view (a bike's side) spans 80% or more of the wrap at 1440.
      - a product photograph (any other img): edge to edge across the screen, square corners, no ground;
        crop it (--ly-pos) so the product spans 80% or more of the wrap.
      <div class="hero__stage"><div class="frame" data-product="…/specs/<id>.json" data-product-place="stage"
        data-product-view="side"></div></div> (.ly-spot hotspots only when the brief asks for them) */
.hero--product .hero__stage:is(:has(> [data-product]), :has(> img.is-cutout)) {
  margin-top: var(--s-6); margin-bottom: calc(var(--s-5) - var(--hpadb, 64px));
  border-radius: 0; background: none; overflow: visible;
}
.hero--product .hero__stage > [data-product] {
  position: absolute; inset: -7% 0; width: auto; height: auto; min-height: 0;
  padding: 0; border: 0; border-radius: 0; background: none; overflow: visible;
}
.hero--product .hero__stage > [data-product]::before { content: none; }
/* the head row gives the product its height: the h1 on cols 1-7 (two lines), the lead and the buttons
   stacked on cols 9-12, their foot on the h1's foot (the head ends at y 278 at 1440x900, against y 373
   with the lead under the h1); the stage takes the rest: 1280x566 at y 310 */
@media (min-width: 1024px) {
  .hero--product:has(.hero__stage > :is([data-product], img, picture)) .hero__head { grid-template-rows: auto auto; row-gap: var(--s-5); }
  .hero--product:has(.hero__stage > :is([data-product], img, picture)) .hero__head > :first-child { display: contents; }
  .hero--product:has(.hero__stage > :is([data-product], img, picture)) .hero__head h1 { grid-column: 1 / span 7; grid-row: 1 / span 2; align-self: end; margin: 0; }
  .hero--product:has(.hero__stage > :is([data-product], img, picture)) .hero__head .hero__lead { grid-column: 9 / -1; grid-row: 1; align-self: end; margin: 0; max-width: none; }
  .hero--product:has(.hero__stage > :is([data-product], img, picture)) .hero__head > .btn-row { grid-column: 9 / -1; grid-row: 2; justify-content: flex-start; }
}
/* a small laptop (1024-1279): h1 on cols 1-6, the lead and the buttons on cols 7-12, so the two
   buttons stay on one line and the lead on three */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero--product:has(.hero__stage > :is([data-product], img, picture)) .hero__head h1 { grid-column: 1 / span 6; }
  .hero--product:has(.hero__stage > :is([data-product], img, picture)) .hero__head .hero__lead,
  .hero--product:has(.hero__stage > :is([data-product], img, picture)) .hero__head > .btn-row { grid-column: 7 / -1; }
}
.hero--product .hero__stage:has(> img:not(.is-cutout), > picture) {
  border-radius: 0; background: none; margin-inline: calc(50% - 50vw); margin-bottom: calc(0px - var(--hpadb, 64px));
}
@media (max-width: 639px) { .hero--product .hero__stage:has(> img:not(.is-cutout), > picture) { margin-bottom: 0; } }
/* every product render frame is the product on its section's ground: never a grey panel (sections.md
   Product, rule 1); the frame keeps its size and clips a close-up at its edges */
.frame[data-product] { background: none; border: 0; padding: 0; }
/* a hotspot on the product: a disc that opens one short spec card on hover, focus or tap */
.ly-spot { position: absolute; z-index: 2; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.ly-spot > button {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: var(--p-bg, #fff); color: var(--p-ink, #111); box-shadow: 0 0 0 6px rgb(255 255 255 / .28), 0 6px 18px -6px rgb(0 0 0 / .45);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ly-spot > button svg { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.ly-spot > button:hover, .ly-spot.is-open > button { transform: scale(1.08); box-shadow: 0 0 0 9px rgb(255 255 255 / .32), 0 6px 18px -6px rgb(0 0 0 / .45); }
.ly-spot.is-open > button svg { transform: rotate(45deg); }
.ly-spot__card {
  position: absolute; left: calc(100% + 12px); top: 50%; width: 230px; padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  background: var(--p-bg, #fff); color: var(--p-ink, #111); font-size: var(--t-small); line-height: 1.45;
  box-shadow: 0 16px 36px -16px rgb(0 0 0 / .45); opacity: 0; visibility: hidden; transform: translate(-6px, -50%);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.ly-spot__card strong { display: block; font-size: var(--t-body); font-weight: 500; margin-bottom: 2px; }
.ly-spot--left .ly-spot__card { left: auto; right: calc(100% + 12px); transform: translate(6px, -50%); }
.ly-spot.is-open .ly-spot__card, .ly-spot:hover .ly-spot__card, .ly-spot:focus-within .ly-spot__card { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
/* a phone: the card opens under its disc, centred on it and nudged by layout.js (--dx) so it stays
   16px inside the stage; never beside the disc, where the stage would cut it */
@media (max-width: 639px) {
  .hero--product .hero__stage { margin-top: var(--s-6); flex: none; min-height: 0; aspect-ratio: 4 / 5; }
  /* a render or a cut-out takes what the head leaves, at least 240 tall: the product's width is the bound */
  .hero--product .hero__stage:is(:has(> [data-product]), :has(> img.is-cutout)) { flex: 1 1 auto; aspect-ratio: auto; min-height: 240px; margin-bottom: 0; }
  .ly-spot__card, .ly-spot--left .ly-spot__card { left: 50%; right: auto; top: calc(100% + 10px); width: 230px;
    transform: translate(calc(-50% + var(--dx, 0px)), -4px); }
  .ly-spot.is-open .ly-spot__card, .ly-spot:hover .ly-spot__card, .ly-spot:focus-within .ly-spot__card { transform: translate(calc(-50% + var(--dx, 0px)), 0); }
}

/* 4. hero--editorial: the headline IS the picture. Three lines of big left-aligned type (128px at
      1440, 52 at 390) across the whole container, with one or two photographs set in the line as
      pills (.ly-pic, 0.8em tall, 1.9em wide), whole on the first frame (no opening, no settle: the
      h1 never reflows after load, MO-62); the lead and the buttons dock to the foot under a
      hairline. No frame under it: the type fills the screen. */
.hero--editorial .hero__in { justify-content: space-between; }
.hero--editorial h1 { font-size: var(--ly-h1-mega); line-height: .98; letter-spacing: var(--display-tracking-xl, -0.04em); max-width: none; margin-block: auto; padding-block: var(--s-6); text-wrap: initial; }
.hero--editorial .hero__foot { margin-top: 0; padding-top: var(--s-5); border-top: 1px solid var(--line); align-items: end; }
.ly-pic {
  display: inline-block; position: relative; overflow: hidden; vertical-align: -0.04em;
  height: .8em; width: var(--w, 1.9em); margin-inline: .04em; border-radius: 999px; background: var(--surface);
}
.ly-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--ly-pos, 50% 50%); }
.ly-pic--sq { border-radius: .16em; }
@media (max-width: 639px) { .ly-pic { --w: 1.5em; } .hero--editorial h1 { padding-block: var(--s-5); } }

/* 5. hero--collage: text on span-5, a UI collage from column 7 out through the right viewport edge;
      the main window starts 56px in from its left and top and runs out through the right and bottom */
.hero--collage h1 { font-size: var(--ly-h1-col); }
.hero__art {
  position: relative; overflow: hidden; height: 100%; min-height: 0;
  border-radius: var(--r-lg); background: var(--ground-bg, #d9ccb7);
  --fx-bg: var(--ground-bg); --fx-surface: var(--ground-surface); --fx-ink: var(--ground-ink); --fx-accent: var(--ground-accent);
}
/* the frame stands on the container's right line; the window inside is cut by the frame's right and
   bottom edges, never by the viewport. It runs --ly-cut (28px) past the right edge and keeps that much
   plus 20px of its own empty margin at its right (--ly-cut-room, on its content), so the cut falls
   after the last column a visitor reads (the status chip), never through it. A window's widest
   columns (times, ids) are left out or hidden (.ly-cut-hide). */
.hero__art > .ly-piece { position: absolute; }
.hero__art { --ly-cut: 28px; --ly-cut-room: calc(var(--ly-cut) + 20px); }
.hero__art > .ly-piece--main { left: var(--s-8); top: var(--s-8); width: calc(100% - var(--s-8) + var(--ly-cut)); }
.hero__art .ly-cut-hide { display: none; }
@media (max-width: 1023px) {
  .hero__art { height: auto; flex: 1 1 0; min-height: 220px; margin-top: var(--s-6); }
  .hero__art > .ly-piece--main { left: var(--s-6); top: var(--s-6); width: calc(100% - var(--s-6) + var(--ly-cut)); }
}
/* a phone: the window alone, its side bar hidden, 16px in; the small card waits for a wider screen
   (a 300px card over a 340px frame covers the window and leaves a sliver of cut rows) */
@media (max-width: 639px) {
  .hero__art > .ly-piece--main { left: var(--s-4); top: var(--s-4); width: calc(100% - var(--s-4) + var(--ly-cut)); }
  .hero__art > .ly-piece:not(.ly-piece--main) { display: none; }
}

/* 6. hero--word: an oversized headline (144px) across the container with one live word last, then a
      foot row: the line and the buttons on span-6, the four facts as a column on span-5 start-8
      (the right half has a job: the prices and promises a visitor checks first) */
.hero--word, .hero--editorial { overflow-x: clip; }
.hero--word .hero__in { justify-content: center; }
.hero--word h1 { font-size: var(--ly-h1-word); line-height: .92; max-width: none; }
.hero--word .hero__foot { margin-top: var(--s-8); align-items: start; }
.hero--word .hero__foot .btn-row { margin-top: var(--s-6); }
.hero--word .hero__facts { margin-top: var(--s-8); }
/* facts as a column: one row each, the label left and the value right, hairlines between */
.hero__facts.hero__facts--col { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-top: 0; border-top: 0; margin-top: 0; }
.hero__facts--col > div { grid-column: auto; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4);
                          padding-block: var(--s-3); border-top: 1px solid var(--line); }
.hero__facts--col > div:last-child { border-bottom: 1px solid var(--line); }
.hero__facts--col dd { text-align: right; }
@media (max-width: 1023px) {
  .hero--word .hero__foot > .hero__facts--col { margin-top: var(--s-7); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .hero__facts--col > div { display: grid; gap: var(--s-1); justify-content: start; }
  .hero__facts--col > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .hero__facts--col dd { text-align: left; }
}
/* the live word: one slot in the headline as wide as its widest word (the grid's one cell holds them
   all), so a change never moves another word or breaks a line; each word carries its own underline in
   the accent and brings it with it */
.ly-word { position: relative; display: inline-grid; vertical-align: bottom; overflow: clip; overflow-clip-margin: .14em; margin-bottom: -.1em; }
.ly-word > span { grid-area: 1 / 1; justify-self: start; white-space: nowrap; padding-bottom: .1em;
                  background: linear-gradient(var(--accent), var(--accent)) 0 calc(100% - .05em) / 100% max(3px, .05em) no-repeat;
                  transition: transform .6s var(--ease, ease), opacity .6s var(--ease, ease); }
.ly-word > span.is-out { transform: translateY(-105%); opacity: 0; }
.ly-word > span.is-next { transform: translateY(105%); opacity: 0; }
/* letters that answer the pointer: each letter's weight (and width, on a face with a wdth axis). The
   headline's lines are locked first (layout.js puts a break where each line ends at rest and stops
   wrapping), so a heavier, wider letter never sends a word to the next line */
.ly-letters .ly-l { display: inline-block; font-weight: var(--w, inherit); font-stretch: var(--wd, inherit); transition: font-weight .32s var(--ease, ease), font-stretch .32s var(--ease, ease); }
h1.ly-locked { white-space: nowrap; text-wrap: nowrap; }

/* 7. hero--film: a cinema frame. The film's poster fills one rounded frame on the container's lines,
      the whole first screen less 16px (1280 x 804 at 1440x900); the headline, the line and the
      buttons stand in a solid box of the page's inverse ground at the frame's lower left, the play
      control and its label (a solid pill) at its right foot (x.ai's film card). Nothing is laid
      over the film to make words readable: no scrim or gradient (PH-31). */
.hero--film { padding-block: var(--s-4); }
.hero--film .hero__media { flex: 1 1 auto; min-height: 520px; background: #000; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__over { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-6); padding: var(--s-6); }
.hero__over > :first-child {
  justify-self: start; max-width: 600px; padding: var(--s-7); border-radius: var(--r-md);
  background: var(--p-inv-bg); color: var(--p-inv-ink);
  --bg: var(--p-inv-bg); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted); --action: var(--p-inv-action); --action-ink: var(--p-inv-action-ink);
  --line: color-mix(in oklab, var(--p-inv-ink) 14%, transparent); --line-strong: color-mix(in oklab, var(--p-inv-ink) 30%, transparent);
}
.hero__over h1 { max-width: 15ch; }
.hero__over .hero__lead { color: var(--p-inv-ink); margin-top: var(--s-4); }
.hero__over .btn-row { margin-top: var(--s-6); }
.hero--film .ly-play { position: relative; left: auto; bottom: auto; }
.hero--film .ly-play__label { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--p-inv-bg); color: var(--p-inv-ink); }
/* the running time under the play label (before the media block below, which hides it on a phone) */
.ly-play__label small { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--p-inv-muted); font-weight: 400; }
@media (max-width: 1023px) {
  .hero__over { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-5); }
  .hero__over > :first-child { max-width: none; justify-self: stretch; padding: var(--s-6); }
  .hero--film .ly-play { order: -1; justify-self: start; gap: var(--s-3); font-size: var(--t-body); }
  .ly-play__label small { display: none; }
}
@media (max-width: 639px) {
  .hero__over { padding: var(--s-3); }
  .hero__over > :first-child { padding: var(--s-5); }
  .hero--film .hero__media { min-height: 0; }
}
.ly-play { position: absolute; z-index: 2; left: var(--s-6); bottom: var(--s-6); display: inline-flex; align-items: center; gap: var(--s-4);
           padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: 500 var(--t-lead)/1.2 var(--font-text); text-align: left; }
.ly-play__disc { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #111; flex: none;
                 transition: transform var(--dur) var(--ease); }
.ly-play__disc svg { width: 18px; height: 18px; margin-left: 3px; }
.ly-play:hover .ly-play__disc, .ly-play:focus-visible .ly-play__disc { transform: scale(1.06); }
@media (max-width: 639px) { .ly-play__disc { width: 52px; height: 52px; } }

/* 8. hero--statement: a quiet statement over a ground (assets/backgrounds), facts docked at the foot */
.hero--statement .hero__in { justify-content: space-between; }   /* the h1 top-aligned at y 120 (layout-v4.md section 3), the facts docked at the foot */
.hero--statement h1 { font-size: var(--ly-h1-quiet); line-height: 1.1; max-width: 21ch; }
.hero--statement .hero__lead { margin-top: var(--s-5); }
.hero--statement .btn-row { margin-top: var(--s-6); }
.hero--statement .hero__facts { margin-top: var(--s-8); }
/* on a phone the facts of a photo or statement hero are a desktop line: the hero stays one screen and the
   ground's foot (a horizon's rim, the photograph) stays clear; the next section carries them */
@media (max-width: 639px) { .hero--statement .hero__facts { display: none; } }

/* 9. hero--triptych: the headline on span-3, a collage of three to five pieces on span-6 start-4
      that changes set every 2.8 s, one large button on span-3 at the right line (Figma's hero).
      Every set has one piece (a photograph or a piece with a quiet corner) that ends at 96% of the
      collage's width and height, so the pause disc sits on that piece's corner, never in empty ground;
      no piece covers a line of another piece's text */
.hero--triptych .hero__grid > :first-child { align-self: center; }
.hero--triptych h1 { font-size: var(--ly-h1-side); line-height: 1.04; }
.hero--triptych .hero__lead { font-size: var(--t-body); max-width: 30ch; margin-top: var(--s-4); }
.hero--triptych .hero__cta { display: flex; justify-content: flex-end; }
.hero--triptych .hero__cta .btn { height: 64px; padding-inline: var(--s-6); font-size: var(--t-lead); }
/* 1024 to 1279: three columns get too narrow, so it becomes a split: the headline and the button on
   span-4, the collage on span-7 start-6 to the right line */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero--triptych .hero__grid { grid-template-rows: 1fr auto 1fr; }
  .hero--triptych .hero__grid > :first-child { grid-column: 1 / span 4; grid-row: 1; align-self: end; }
  .hero--triptych .ly-collage { grid-column: 6 / span 7; grid-row: 1 / span 3; }
  .hero--triptych .hero__cta { grid-column: 1 / span 4; grid-row: 2; justify-content: flex-start; margin-top: var(--s-6); }
  .hero--triptych .hero__cta .btn { height: 56px; font-size: var(--t-body); }
}
.ly-collage { position: relative; height: 100%; min-height: 0; }
/* the crossfade only once the sets start to cycle (.is-cycling, layout.js): a set that changes as the
   page's styles arrive takes its place at once, never fades across the first paint */
.ly-collage__set { position: absolute; inset: 0; }
.ly-collage.is-cycling > .ly-collage__set { transition: opacity .7s var(--ease, ease); }
.ly-collage__set:not(.is-on) { opacity: 0; pointer-events: none; }
/* a copy of the markup that lost its .is-on: the first set shows rather than an empty hole */
.ly-collage:not(:has(> .ly-collage__set.is-on)) > .ly-collage__set:first-child { opacity: 1; pointer-events: auto; }
.ly-collage .ly-piece { position: absolute; overflow: hidden; border-radius: var(--r-md); background: var(--surface);
                        box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 18px 40px -18px rgb(0 0 0 / .32); }
.ly-collage .ly-piece > img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.ly-collage > button.loop-pause.loop-pause { right: calc(4% + 12px); bottom: calc(4% + 12px); }
@media (max-width: 1023px) {
  .hero--triptych .hero__cta { justify-content: stretch; } .hero--triptych .hero__cta .btn { width: 100%; height: 56px; }
  .hero--triptych .hero__grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero--triptych .hero__grid > :first-child { align-self: stretch; }
  .ly-collage { height: auto; flex: 1 1 0; min-height: 300px; margin-block: var(--s-6); }
}

/* 10. hero--centred: news pill, centred headline and two buttons, one product window rising out of
       a lit frame that takes the rest of the screen and fades at the hero's foot (x.ai's hero). The
       window's story (the question, the work, the answer, its actions) sits in its top 260px, so it
       stands whole above the fade, which starts at 82% of the frame */
.hero--centred .hero__c { display: grid; justify-items: center; text-align: center; gap: var(--s-4); max-width: 880px; margin-inline: auto; }
.hero--centred h1 { max-width: 16ch; }
.hero--centred .hero__lead { max-width: 52ch; color: var(--muted); }
.hero--centred .btn-row { justify-content: center; margin-top: var(--s-3); }
.hero--centred > .wrap > .hero-text { display: flex; flex-direction: column; }
.hero--centred .hero__window { flex: 1 1 0; min-height: clamp(220px, 32svh, 340px);
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent);
  position: relative; overflow: hidden; margin-top: var(--s-6);
  border-radius: var(--r-lg); background: var(--ground-bg, #d9ccb7);
  --fx-bg: var(--ground-bg); --fx-surface: var(--ground-surface); --fx-ink: var(--ground-ink); --fx-accent: var(--ground-accent); }
.hero--centred .hero__window > .ly-piece { position: absolute; z-index: 1; left: 50%; top: var(--s-6); width: min(880px, calc(100% - 2 * var(--s-6))); transform: translateX(-50%); }
.ly-mark { display: inline-block; width: .8em; height: .8em; vertical-align: -.06em; margin-inline: .06em; border-radius: 50%; background: var(--ink); position: relative; }
.ly-mark::before, .ly-mark::after { content: ""; position: absolute; top: 27%; width: 13%; height: 42%; border-radius: 99px; background: var(--bg); transform: skewX(-12deg); }
.ly-mark::before { left: 31%; } .ly-mark::after { left: 56%; }
@media (max-width: 639px) {
  .hero--centred .btn-row { width: 100%; }
  /* the frame can be 240 to 300px tall here, so its fade is the last 28px, not the last 18% */
  .hero--centred .hero__window { margin-top: var(--s-6); min-height: 240px;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
  .hero--centred .hero__window > .ly-piece { top: var(--s-4); width: calc(100% - 2 * var(--s-4)); left: var(--s-4); transform: none; }
}

/* ---------------------------------------------------------------- micro-interactions the heroes share */
/* buttons keep the page's one hover (system.css, motion.css: the fill steps, the arrow moves 3px, the
   press sinks 1px; no shadow on a button, ST-105); a text link draws its underline from the left */
.ly-link { position: relative; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .28s var(--ease); }
.ly-link:hover, .ly-link:focus-visible { background-size: 100% 1px; }

/* steps inside a piece of UI (layout.js [data-ly-steps]): each arrives in place, nothing travels */
[data-ly-steps] [data-step] { transition: opacity .35s var(--ease, ease), transform .35s var(--ease, ease); }
[data-ly-steps] [data-step].is-off { opacity: 0; transform: translateY(6px); }

/* ---------------------------------------------------------------- no entrance
   the hero is set on its first frame on every kind: no entrance fade, rise or opening (MO-62) */
@media (prefers-reduced-motion: reduce) {
  .ly-live::before { animation: none; }
  .ly-word > span, .ly-collage__set, .ly-collage.is-cycling > .ly-collage__set, .ly-letters .ly-l { transition: none; }
}

/* a short phone (320x640: under 700px tall): the first screen still ends whole with the hero's button on it.
   The photograph over the words takes less of it, the facts under the words go (the lead carries the hard
   fact), and a collage keeps less height */
@media (max-width: 639px) and (max-height: 700px) {
  :root { --hgap: 24px; }
  .hero--photo, .hero--place, :root[data-type="place"] .hero--photo { --photo: min(26svh, 48vw); }
  main > .hero .hero__facts { display: none; }
  .hero--triptych .ly-collage { min-height: 180px; margin-block: var(--s-5); }
}

/* icons/icon.css */
/*
  taste-skill icons/icon.css - how a real icon sits on the page: bare, in a tile, in a list row, in a chip,
  in an avatar stack, in an integration grid, on a file card. Link it after system.css. It reads the
  ground tokens (--bg --surface --card --ink --muted --accent --line) and the radius set, so the same
  markup is right on a light page, on .ground-surface and on .ground-inverse. Nothing here animates.

  Markup comes from `node scripts/icons.mjs fetch ... --out assets/icons`: a colour icon is an
  <img class="ic ic-24">, a glyph (ui:) or any --mono icon is an inline <svg class="ic ic-svg ic-24"> that
  takes the text colour (works from file:// too; --mask prints a <span class="ic-mask"> instead, which needs
  http). Sizes: ic-16 ic-20 ic-24 ic-28 ic-32 ic-36 ic-40 ic-48 ic-56.
*/

/* the only colours outside the ground tokens: a white plate for logos, and the connected dot */
:root { --ic-white: #fff; --ic-ok: var(--ok, #2f9e5b); }

/* ------------------------------------------------------------ the icon itself */
.ic { --ic-s: 24px; display: inline-block; flex: none; height: var(--ic-s); width: auto; max-width: none; vertical-align: middle; object-fit: contain; }
.ic-16 { --ic-s: 16px; } .ic-20 { --ic-s: 20px; } .ic-24 { --ic-s: 24px; } .ic-28 { --ic-s: 28px; } .ic-32 { --ic-s: 32px; }
.ic-36 { --ic-s: 36px; } .ic-40 { --ic-s: 40px; } .ic-48 { --ic-s: 48px; } .ic-56 { --ic-s: 56px; }
.ic-svg { width: var(--ic-s); }
.ic-mask { width: var(--ic-s); background-color: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.ic-muted { color: var(--muted); }
.ic-accent { color: var(--accent); }

/* a wordmark (aspect over 1.8, flagged ic-wide by the tool) is drawn smaller than a square mark of the same
   size, so a row of both has an even weight; inside a tile it is fitted by the tile rule below */
.ic-wide { height: calc(var(--ic-s) * 0.7); max-width: min(100%, calc(var(--ic-s) * 4.5)); }
.ic-svg.ic-wide { width: auto; }

/* One-tone marks. ic-ink is a black mark (GitHub, Apple, X): white on a dark ground. ic-paper is a white mark
   (Notion): it would vanish on a light ground, so it is shown black there, bare or in a light tile. A tile with
   a dark or brand fill keeps a white mark as drawn and turns a black one white (.ic-tile--ink, --brand). */
.ic-paper { filter: invert(1); }
:is(.ground-inverse, .ic-dark) .ic-ink { filter: invert(1); }
:is(.ground-inverse, .ic-dark) .ic-paper { filter: none; }
.ic-keep { filter: none !important; }

/* ------------------------------------------------------------ the tile behind a logo */
.ic-tile {
  --tile: 40px;
  --tile-bg: color-mix(in oklab, var(--ic-white) 72%, var(--bg));
  --tile-line: var(--line);
  display: inline-grid; place-items: center; flex: none;
  width: var(--tile); height: var(--tile); border-radius: calc(var(--tile) * 0.28);
  background: var(--tile-bg); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--tile-line), 0 1px 2px color-mix(in oklab, var(--ink) 7%, transparent);
}
.ic-tile > .ic { --ic-s: calc(var(--tile) * 0.6); }
/* a wordmark or an odd-shaped logo is fitted into the square box, never allowed to spill out of its tile */
.ic-tile > img.ic, .ic-file > img.ic, .ic-point > img.ic { width: var(--ic-s); object-fit: contain; }
/* a landscape mark (Salesforce, AWS, YouTube: ic-land) and a portrait one (Google Docs, Figma: ic-tall) are drawn on their long
   side a little larger than a square mark, so a row of marks has an even weight and none reads small in its tile */
.ic-tile > img.ic.ic-land, .ic-tile > .ic-svg.ic-land { width: calc(var(--tile) * 0.7); height: auto; max-height: 80%; }
.ic-tile > img.ic.ic-tall, .ic-tile > .ic-svg.ic-tall { height: calc(var(--tile) * 0.68); width: auto; max-width: 80%; }
.ic-tile--24 { --tile: 24px; } .ic-tile--32 { --tile: 32px; } .ic-tile--40 { --tile: 40px; }
.ic-tile--48 { --tile: 48px; } .ic-tile--56 { --tile: 56px; } .ic-tile--72 { --tile: 72px; }
.ic-tile--round { border-radius: 50%; }
/* a wordmark-only logo (Stripe, Visa): a wide tile, the mark enlarged to fill it (about 1.7 tiles wide, never
   taller than 58% of the tile), at its own proportions */
.ic-tile--wide { width: calc(var(--tile) * 2.4); }
.ic-tile.ic-tile--wide > .ic { width: calc(var(--tile) * 1.7); height: auto; max-width: 80%; max-height: 58%; object-fit: contain; }
.ic-tile--flat { box-shadow: inset 0 0 0 1px var(--tile-line); }
/* a glyph in a tile: the surface colour, ink strokes, or the accent */
.ic-tile--glyph { --tile-bg: color-mix(in oklab, var(--ink) 5%, var(--bg)); box-shadow: none; }
.ic-tile--accent { --tile-bg: color-mix(in oklab, var(--accent) 12%, var(--bg)); color: var(--accent); box-shadow: none; }
.ic-tile--ink { --tile-bg: var(--ink); color: var(--bg); box-shadow: none; }
/* on a dark ground --ink is light, so an ink tile is a dark plate (the ground lifted a little) instead (its black marks are
   inverted to white either way) */
:is(.ground-inverse, .ic-dark) .ic-tile--ink { --tile-bg: color-mix(in oklab, var(--ink) 10%, var(--bg)); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
/* a tile in a brand colour (set --tile-bg inline): white marks stay white, black marks turn white */
.ic-tile--brand { --tile-bg: var(--accent); color: var(--ic-white); box-shadow: none; }
:is(.ic-tile--ink, .ic-tile--brand) .ic-paper { filter: none; }
:is(.ic-tile--ink, .ic-tile--brand) .ic-ink { filter: invert(1); }
/* dark grounds: a light tile, so every brand colour reads and black marks need no inversion */
:is(.ground-inverse, .ic-dark) .ic-tile:not(.ic-tile--glyph, .ic-tile--accent, .ic-tile--ink) {
  --tile-bg: color-mix(in oklab, var(--ink) 94%, var(--bg)); --tile-line: transparent; color: var(--bg);
  box-shadow: 0 1px 2px color-mix(in oklab, var(--bg) 70%, transparent);
}
:is(.ground-inverse, .ic-dark) .ic-tile:not(.ic-tile--ink, .ic-tile--brand) .ic-ink { filter: none; }
:is(.ground-inverse, .ic-dark) .ic-tile:not(.ic-tile--ink, .ic-tile--brand) .ic-paper { filter: invert(1); }
:is(.ground-inverse, .ic-dark) .ic-tile--glyph { --tile-bg: color-mix(in oklab, var(--ink) 9%, var(--bg)); }
:is(.ground-inverse, .ic-dark) .ic-tile--accent { --tile-bg: color-mix(in oklab, var(--accent) 22%, var(--bg)); }
/* a tile of a dark-ground brand, glass: for one-colour marks only */
.ic-tile--ghost { --tile-bg: color-mix(in oklab, var(--ink) 6%, transparent); box-shadow: inset 0 0 0 1px var(--line); }

/* ------------------------------------------------------------ chip: icon and a name */
.ic-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 8px;
  border-radius: 999px; background: var(--card, var(--surface)); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line); font-size: var(--t-small, 14px); line-height: 1; white-space: nowrap;
}
.ic-chip > .ic { --ic-s: 18px; }
.ic-chip--lg { height: 40px; padding: 0 16px 0 10px; gap: 10px; font-size: var(--t-body, 16px); }
.ic-chip--lg > .ic { --ic-s: 22px; }
.ic-chip > .ic-wide { height: auto; width: calc(var(--ic-s) * 2.2); max-height: calc(var(--ic-s) * 0.9); }
/* on a dark ground a brand colour (Salesforce blue, Dropbox, Jira) or a dark file icon (InDesign) sits close to the
   ground: a bare mark in a chip or on a file card gets a small light plate, as a tile does */
:is(.ground-inverse, .ic-dark) :is(.ic-chip, .ic-file) > img.ic { box-sizing: content-box; padding: 3px; border-radius: 7px; background: color-mix(in oklab, var(--ink) 94%, var(--bg)); }
:is(.ground-inverse, .ic-dark) .ic-file > img.ic { padding: 4px; border-radius: 10px; }
:is(.ground-inverse, .ic-dark) :is(.ic-chip, .ic-file) > img.ic-ink { filter: none; }
:is(.ground-inverse, .ic-dark) :is(.ic-chip, .ic-file) > img.ic-paper { filter: invert(1); }
.ic-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
a.ic-chip:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ------------------------------------------------------------ list row: tile, text, a value at the end */
.ic-list { display: grid; }
.ic-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.ic-row:first-child { border-top: 0; }
.ic-row__main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ic-row__title { font-size: var(--t-body, 16px); font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-row__meta { font-size: var(--t-small, 14px); color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-row__end { flex: none; font-size: var(--t-small, 14px); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.ic-row__end .ic { --ic-s: 16px; }
/* a connected / off state as a dot with its word */
.ic-state { display: inline-flex; align-items: center; gap: 6px; }
.ic-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.ic-state--on { color: var(--ink); }
.ic-state--on::before { background: var(--ic-ok); }

/* ------------------------------------------------------------ avatar stack: overlapping tiles */
.ic-stack { display: inline-flex; align-items: center; }
.ic-stack > * { margin-left: -10px; box-shadow: 0 0 0 2px var(--bg); }
.ic-stack > :first-child { margin-left: 0; }
.ic-stack > .ic-tile { box-shadow: inset 0 0 0 1px var(--tile-line), 0 0 0 2px var(--bg); }
.ic-stack__more {
  display: inline-grid; place-items: center; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 8%, var(--bg)); color: var(--muted); font-size: var(--t-label, 13px); font-weight: 500;
}
.ic-stack--sm > .ic-tile { --tile: 32px; } .ic-stack--sm .ic-stack__more { height: 32px; min-width: 32px; }

/* ------------------------------------------------------------ integration grid */
.ic-grid { display: grid; gap: var(--card-gap, 16px); grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.ic-cell {
  display: grid; align-content: start; gap: 14px; padding: 20px; border-radius: var(--r-md, 12px);
  background: var(--card, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); min-width: 0;
}
.ic-cell__name { font-size: var(--t-body, 16px); font-weight: 500; line-height: 1.25; }
.ic-cell__meta { font-size: var(--t-small, 14px); color: var(--muted); line-height: 1.4; margin-top: 2px; }
a.ic-cell:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
/* the mosaic: one outline, cells divided by hairlines */
.ic-grid--mosaic { gap: 1px; background: var(--line); border-radius: var(--r-lg, 20px); overflow: hidden; border: 1px solid var(--line); }
.ic-grid--mosaic > .ic-cell { border-radius: 0; box-shadow: none; background: var(--bg); }
.ic-grid--mosaic > .ic-cell:hover { background: color-mix(in oklab, var(--ink) 3%, var(--bg)); }
/* a logo wall: tiles only, no names */
.ic-wall { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.ic-wall > .ic-tile { --tile: 64px; justify-self: start; }
.ic-wall > .ic-tile--wide { grid-column: span 2; }
.ic-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .ic-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ic-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) { .ic-grid--cols-3, .ic-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ file card */
.ic-file {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-width: 0;
  border-radius: var(--r-md, 12px); background: var(--card, var(--surface)); box-shadow: inset 0 0 0 1px var(--line);
}
.ic-file > .ic { --ic-s: 36px; }
/* a wordmark on a file card (a YAML, a Visa) keeps its own proportions at a readable width, never a strip in a 36px square */
.ic-file > img.ic.ic-wide, .ic-file > .ic-svg.ic-wide { width: calc(var(--ic-s) * 1.9); height: auto; max-height: var(--ic-s); }
.ic-file > img.ic.ic-land, .ic-file > .ic-svg.ic-land { width: calc(var(--ic-s) * 1.15); height: auto; }
.ic-file > img.ic.ic-tall, .ic-file > .ic-svg.ic-tall { width: auto; height: var(--ic-s); }
.ic-file__main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ic-file__name { font-size: var(--t-body, 16px); font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.ic-file__meta { font-size: var(--t-small, 14px); color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.ic-file__end { flex: none; color: var(--muted); font-size: var(--t-small, 14px); }
.ic-file-list { display: grid; gap: 10px; }
/* a file as a compact tile: icon on top, name under it */
.ic-file--tile { display: grid; justify-items: start; gap: 12px; padding: 18px; }
.ic-file--tile > .ic { --ic-s: 40px; }
.ic-file--tile > img.ic.ic-wide, .ic-file--tile > .ic-svg.ic-wide { width: calc(var(--ic-s) * 2.1); }
.ic-file--tile .ic-file__main { width: 100%; }

/* ------------------------------------------------------------ feature list with glyphs */
.ic-points { display: grid; gap: 16px; }
.ic-point { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.ic-point > .ic-tile { --tile: 36px; }
.ic-point > .ic-tile > .ic { --ic-s: 18px; }
.ic-point__title { font-weight: 500; line-height: 1.3; }
.ic-point__text { color: var(--muted); font-size: var(--t-small, 14px); line-height: 1.5; margin-top: 2px; }

/* ------------------------------------------------------------ a phone: names wrap, file tiles stack */
@media (max-width: 479px) {
  .ic-row__title, .ic-row__meta { white-space: normal; overflow: visible; text-overflow: clip; }
  .ic-grid--cols-2:has(> .ic-file--tile) { grid-template-columns: 1fr; }
  .ic-file--tile { grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
}

/* ui/calculadora/fragment.css */
  .calc { border-radius: var(--r-lg); background: var(--p-surface); padding: var(--s-7); }
  .calc__q { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.3; margin: 0 0 var(--s-5); }
  .calc__opts { display: grid; gap: var(--s-3); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
  .calc__opts { display:grid; gap: var(--s-3); margin: 0 0 var(--s-5); }
  .calc__opts label { display: flex; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-3) var(--s-5); border-radius: var(--r-md); background: var(--p-bg); color: var(--p-ink); cursor: pointer; box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 14%, transparent); transition: box-shadow .16s ease-out; }
  .calc__opts label:hover { box-shadow: 0 0 0 2px var(--p-action); }
  .calc__opts label:has(input:checked) { box-shadow: 0 0 0 2px var(--p-action); }
  .calc__opts input { width: 20px; height: 20px; accent-color: var(--p-action); margin: 0; flex: none; }
  .calc__old a { display: flex; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-3) var(--s-5); border-radius: var(--r-md); background: var(--p-bg); color: var(--p-ink); text-decoration: none; box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 14%, transparent); transition: box-shadow .16s ease-out, transform .16s ease-out; }
  .calc__opts a:hover { box-shadow: 0 0 0 2px var(--p-action); }
  .calc__opts a:active { transform: scale(.98); }
  .calc__opts .ring { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--p-ink) 40%, transparent); flex: none; }
  .calc__meta { font-size: var(--t-small); color: var(--p-muted); margin: 0; }
  .calc__meta { color: var(--p-ink) !important; margin-top: var(--s-4); }
  @media (max-width: 639px) { [data-ui="calculadora"] { margin-inline: calc(-1 * var(--gut)); } .calc { border-radius: 0; padding: var(--s-6) var(--s-4); } .calc__q { font-size: 24px; } .calc__opts label { padding: var(--s-3) var(--s-3); gap: var(--s-3); font-size: 16px; } }

/* site.css */
/* SACOM: tokens, reading options and page styles shared by every page of the prototype */
:root {
  --p-bg: #ffffff; --p-surface: #f2f5f8; --p-ink: #0e2a3d; --p-muted: #5b6e7c;
  --p-accent: #1a4be0; --p-accent-ink: #ffffff; --p-action: #1a4be0; --p-action-ink: #ffffff;
  --p-inv-bg: #0e2a3d; --p-inv-surface: #1d3749; --p-inv-ink: #ffffff; --p-inv-muted: #c4d3df;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #0e2a3d; --p-inv-action: #ffffff; --p-inv-action-ink: #0e2a3d;
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.038em;
}
/* Opciones de lectura (accesibilidad): alto contraste y letra grande, elegidas por la persona */
:root[data-contrast="alto"] {
  --p-bg: #ffffff; --p-surface: #ffffff; --p-ink: #000000; --p-muted: #1f1f1f;
  --p-accent: #0033b3; --p-action: #0033b3; --p-inv-bg: #000000; --p-inv-surface: #111111; --p-inv-muted: #e6e6e6;
}
:root[data-contrast="alto"] main a:not(.btn), :root[data-contrast="alto"] footer a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }

/* SACOM type: one step larger than the kit's defaults, the client reads it as too small otherwise */
  :root { --t-label: 14px; --t-small: 16px; --t-body: 18px; --t-lead: 20px; --t-card: 20px; --ly-lead: clamp(18px, .4vw + 16.5px, 22px); }
  @media (min-width: 1024px) { :root { --t-lead: 22px; --t-card: 22px; } }
  body { font-size: var(--t-body); }

  .esc-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(708px, 78svh); }
  @media (max-width: 1023px) { .esc-photo { height: 320px; margin-top: var(--s-7); } }
  .esc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; display: block; transition: transform .4s ease-out; }
  .tools-title { margin: var(--s-7) 0 0; font-size: var(--t-body); font-weight: 600; font-family: var(--font-text); letter-spacing: 0; color: var(--p-ink); }
  .tools-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
  .tools-list li { border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
  .tools-list li:last-child { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
  .tools-list a { display: grid; gap: 2px; padding: var(--s-3) 0; color: var(--p-ink); text-decoration: none; }
  .tools-list strong { font-weight: 600; font-size: var(--t-body); transition: color .15s ease-out; }
  .tools-list span { font-size: var(--t-small); line-height: 1.45; color: var(--p-muted); }
  .tools-list a:hover strong, .tools-list a:focus-visible strong { color: var(--p-accent); }
  @media (max-width: 639px) { main > #servicios[data-moment]:not(.is-live) { min-height: calc(2 * 100lvh); } }

  @media (min-width: 1024px) { #ayudas > .wrap { align-items: start; align-content: center; } }
  /* Nosotros */
  .accred { margin-top: var(--s-6); font-size: var(--t-small); line-height: 1.55; color: var(--p-ink); }

  /* reviews: two quotes on their own cards, one column of air before the photo */
  .review-list { display: grid; gap: var(--s-7); margin-top: var(--s-7); }
  .review { margin: 0; padding: var(--s-6) 0 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 16%, transparent); }
  .review p { margin: 0; font-size: var(--t-lead); line-height: 1.5; color: var(--p-ink); }
  .review footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); margin-top: var(--s-4); }
  .review cite { font-style: normal; font-weight: 600; font-size: var(--t-body); color: var(--p-ink); }
  .review footer span { font-size: var(--t-small); color: var(--p-muted); }
  .review-photo { height: min(620px, 70svh); }
  @media (max-width: 1023px) { .review-photo { height: 320px; margin-top: var(--s-7); } }

  /* footer */
  .footer__lede { line-height: 1.45; }
  .logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6) var(--s-7); margin: var(--s-8) 0 var(--s-6); }
  .logos img { justify-self: start; }
  .logos img { height: 48px; width: auto; }
  .logos img[src$=".svg"] { height: 56px; }
  @media (max-width: 639px) { .logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); } .logos img { height: 40px; justify-self: start; } .logos img[src$=".svg"] { height: 48px; } }

  /* reading options */
  .a11y-opts { display: flex; gap: var(--s-2); }
  .a11y-opts button { font: 500 15px/1 var(--font-text); min-height: 44px; min-width: 44px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--p-ink); cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-ink) 18%, transparent); transition: box-shadow .15s ease-out; }
  .a11y-opts button:hover { box-shadow: inset 0 0 0 1px var(--p-ink); }
  .a11y-opts button[aria-pressed="true"] { background: var(--p-ink); color: var(--p-bg); }
  @media (max-width: 1023px) { .a11y-opts { display: none; } }
  .footer--dark .a11y-opts { display: flex; }
  .footer--dark .a11y-opts button { color: var(--p-inv-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }

  /* the client asked for no underlined links: links read by colour and weight, and the arrow goes */
  html:not([data-motion="off"]) :is(.link, .m-link, p a:not([class]), .footer ul a, .footer .link) { background-image: none !important; padding-bottom: 0; }
  .link, p a:not([class]) { text-decoration: none !important; color: var(--p-accent); font-weight: 600; transition: color .15s ease-out; }
  .link::after { content: none !important; }
  .link:hover, p a:not([class]):hover { color: var(--p-ink); }
  .btn-row > .btn--secondary { text-decoration: none !important; }
  .form .field { align-content: start; }

  /* hero: the wide client photo shown whole enough for both people, the words centred on it, the accreditation strip at the foot */
  .hero--split .hero__grid { align-items: center; }
  .hero--split .hero__text { align-self: center; }
  .hero--split .hero__media { height: auto; aspect-ratio: 1.42; }
  .ly-float--br { left: auto; right: var(--s-5); bottom: var(--s-5); width: auto; max-width: calc(100% - 2 * var(--s-5)); }
  .ly-float__row { flex-wrap: wrap; gap: 0 var(--s-4); }
  .hero-proof { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-7); margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); }
  .hero-proof__text { margin: 0; font-size: var(--t-small); line-height: 1.45; font-weight: 500; color: var(--p-ink); }
  .hero-proof__logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-7); }
  .hero-proof__logos img { height: 40px; width: auto; filter: brightness(0); opacity: .75; }
  .hero-proof__logos .hero-proof__gen { height: 46px; filter: none; opacity: 1; }
  :root[data-contrast="alto"] .hero-proof__logos img { opacity: 1; }
  @media (max-width: 1023px) { .hero--split .hero__media { flex: none; aspect-ratio: 1.42; min-height: 0; align-self: stretch; } .hero--split .hero__text { align-self: stretch; } .hero-proof { margin-top: var(--s-6); } }
  @media (max-width: 639px) { .hero--split .ly-float { left: var(--s-3); right: var(--s-3); bottom: var(--s-3); max-width: none; padding: var(--s-2) var(--s-3); gap: 0; } .hero--split .ly-float__row { gap: 0 var(--s-3); font-size: 13px; } .hero--split .ly-float__title { font-size: 15px; } .hero-proof { display: none; } }

  /* A+ (letra grande): every type token one step up; sections grow with their text */
  :root[data-letra="grande"] { --t-label: 16px; --t-small: 19px; --t-body: 21px; --t-lead: 24px; --t-card: 24px; --t-h3: 32px; --t-h2: clamp(34px, 1.9vw + 26px, 54px); --ly-scale: 1.1; --ly-lead: clamp(21px, .4vw + 19.5px, 25px); }
  :root[data-letra="grande"] main > section:not([data-moment]) { min-height: auto !important; height: auto !important; }
  :root[data-letra="grande"] .hero-proof__logos .hero-proof__gen { height: 52px; }
  :root[data-letra="grande"] .hero-proof__logos img { height: 46px; }

/* ---------- subpages: lists, the developing picture, article and tool layouts ---------- */
.list-title { margin: 0 0 var(--s-3); font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; letter-spacing: 0; color: var(--p-ink); }
.plain-list { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.plain-list li { padding: var(--s-3) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); font-size: var(--t-body); line-height: 1.5; color: var(--p-ink); }
.plain-list li:last-child { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.lede-small { margin-top: var(--s-6); font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(620px, var(--ly-fit, 70svh)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* jobs: each offer opens in place; the CV form */
.jobs { margin-top: var(--s-7); border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.job { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.job > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); padding: var(--s-5) 0; min-height: 44px; }
.job > summary::-webkit-details-marker { display: none; }
.job > summary::after { content: ""; width: 12px; height: 12px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease-out; align-self: center; }
.job[open] > summary::after { transform: rotate(-135deg); }
.job__title { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; color: var(--p-ink); }
.job__meta { font-size: var(--t-small); color: var(--p-muted); }
.job > summary:hover .job__title { color: var(--p-accent); }
.job__body { padding: 0 0 var(--s-7); }
.job__body h3 { margin: var(--s-6) 0 0; font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; letter-spacing: 0; }
.job__body > div > p:first-child { font-size: var(--t-lead); line-height: 1.5; margin: 0; }
.job__body .plain-list { margin-top: var(--s-3); }
.job__body .btn { margin-top: var(--s-6); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); margin: var(--s-3) 0 0; font-size: var(--t-body); }
.facts dt { font-weight: 600; color: var(--p-ink); }
.facts dd { margin: 0; color: var(--p-ink); }
.cv-form { margin-top: var(--s-6); }
.cv-form input[type="file"] { padding: var(--s-3); background: var(--p-bg); border: 1px dashed color-mix(in oklab, var(--p-ink) 35%, transparent); border-radius: var(--r-md); min-height: 56px; font: inherit; cursor: pointer; }
.cv-form select { min-height: 48px; }
.consent { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-small); line-height: 1.5; color: var(--p-ink); grid-column: 1 / -1; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--p-action); }

/* article: header, reading column, sticky index */
.art-meta { margin: 0 0 var(--s-4); font-size: var(--t-small); color: var(--p-muted); }
.art-meta a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.art-updated { margin-top: var(--s-5); font-size: var(--t-small); font-weight: 600; color: var(--p-ink); }
.art-hero h1 { font-size: clamp(36px, 2.6vw + 22px, 60px); }
.art-photo { margin: 0; }
.article { padding-top: var(--s-7); }
.prose { font-size: var(--t-body); line-height: 1.7; color: var(--p-ink); max-width: 68ch; }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 { margin-top: var(--s-9, 72px); font-size: var(--t-h2); line-height: 1.15; scroll-margin-top: 96px; }
.prose h3 { margin-top: var(--s-7); font-family: var(--font-text); font-size: var(--t-lead); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.prose h3 + p { margin-top: var(--s-2); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--s-2); }
.prose a:not(.btn) { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.prose a:not(.btn):hover { color: var(--p-ink); }
.note { padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.note > * + * { margin-top: var(--s-3); }
.note__label { margin: 0; font-weight: 600; color: var(--p-ink); }
.note--answer { background: color-mix(in oklab, var(--p-accent) 7%, var(--p-bg)); }
.table-wrap { overflow-x: auto; border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.45; }
.prose th, .prose td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.prose thead th { font-weight: 600; background: var(--p-surface); }
.prose tbody th { font-weight: 600; }
.prose tbody th span { display: block; font-weight: 400; color: var(--p-muted); }
.prose td { font-variant-numeric: tabular-nums; }
.art-cta { margin-top: var(--s-8); padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-inv-bg); color: var(--p-inv-ink); }
.art-cta h3 { margin: 0; color: var(--p-inv-ink); }
.art-cta p { color: var(--p-inv-muted); }
.art-cta .btn--primary { background: var(--p-inv-action); color: var(--p-inv-action-ink); }
.art-cta .btn--secondary { color: var(--p-inv-ink); background: rgb(255 255 255 / .12); }
.faq details { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.faq summary { cursor: pointer; padding: var(--s-4) 0; font-weight: 600; min-height: 44px; }
.faq details p { margin: 0 0 var(--s-4); }
.sources { font-size: var(--t-small); }
.art-sign { font-size: var(--t-small); color: var(--p-muted); }
.art-aside { position: sticky; top: 96px; align-self: start; display: grid; gap: var(--s-6); }
.toc__title { margin: 0 0 var(--s-3); font-weight: 600; font-size: var(--t-small); color: var(--p-muted); }
.toc ol, .aside-tools ul { list-style: none; margin: 0; padding: 0; }
.toc a, .aside-tools a { display: block; padding: var(--s-2) 0; color: var(--p-ink); text-decoration: none; font-size: var(--t-small); border-top: 1px solid color-mix(in oklab, var(--p-ink) 10%, transparent); }
.toc a:hover, .aside-tools a:hover { color: var(--p-accent); }
.aside-cta { padding: var(--s-5); border-radius: var(--r-lg); background: var(--p-surface); }
.aside-cta__title { margin: 0; font-weight: 600; font-size: var(--t-lead); line-height: 1.3; }
.aside-cta p:not(.aside-cta__title) { margin: var(--s-2) 0 var(--s-4); font-size: var(--t-small); }
@media (max-width: 1023px) { .art-aside { position: static; margin-top: var(--s-8); } }

/* tool: the test card (same surface as the home calculator) and its result */
.test-count { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--p-ink); }
.test-bar { height: 6px; margin: var(--s-3) 0 var(--s-5); border-radius: 3px; background: color-mix(in oklab, var(--p-ink) 10%, transparent); overflow: hidden; }
.test-bar span { display: block; height: 100%; width: 0; background: var(--p-action); transition: width .25s ease-out; }
.test-card fieldset { border: 0; margin: 0; padding: 0; }
.test-q { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.25; color: var(--p-ink); }
.test-hint { margin: var(--s-2) 0 var(--s-5); font-size: var(--t-small); line-height: 1.5; color: var(--p-ink); }
.test-opts { display: grid; gap: var(--s-3); }
.test-opts label { display: flex; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-3) var(--s-5); border-radius: var(--r-md); background: var(--p-bg); color: var(--p-ink); cursor: pointer; box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 14%, transparent); transition: box-shadow .16s ease-out; }
.test-opts label:hover, .test-opts label:has(input:checked) { box-shadow: 0 0 0 2px var(--p-action); }
.test-opts input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--p-action); }
.test-opts span { display: grid; gap: 2px; }
.test-opts strong { font-weight: 600; font-size: var(--t-body); }
.test-opts small { font-size: var(--t-small); color: var(--p-muted); }
.test-nav { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-6); }
.test-nav [data-next] { margin-left: auto; }
.test-result > * + * { margin-top: var(--s-4); }
.test-result [data-r-sub] { font-size: var(--t-body); line-height: 1.55; }
.scale { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: var(--s-4); border-top: 6px solid color-mix(in oklab, var(--p-ink) 12%, transparent); font-size: var(--t-small); color: var(--p-muted); }
.scale__mark { position: absolute; top: -13px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--p-action); border: 3px solid var(--p-bg); }
.test-prests { list-style: none; margin: 0; padding: 0; }
.test-prests li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.test-prests span { display: grid; gap: 2px; }
.test-prests small { font-size: var(--t-small); color: var(--p-muted); }
.test-prests b { text-align: right; white-space: nowrap; font-size: var(--t-lead); }
.test-prests b small { display: block; font-weight: 400; }
.test-small { font-size: var(--t-small); line-height: 1.5; color: var(--p-ink); }
.tool-hero .hero__grid { align-items: start; }

/* long-form sections (an article, an offer list, a form): they grow with their text on every screen size */
main > :is(section, .section).flow { height: auto; min-height: calc(var(--h, 1) * 100svh); }
main > :is(section, .section).flow > .wrap { height: auto; }
.section-cta { margin-top: var(--s-6); }

/* the tool hero grows when the result card is longer than the screen */
main > section.tool-hero { height: auto; min-height: 100svh; }
main > section.tool-hero > .wrap { height: auto; }

/* contrast fix: the secondary button on the dark article call-out; even last lines in body copy */
html .art-cta .btn.btn--secondary { background: rgb(255 255 255 / .14) !important; color: #ffffff !important; border-color: transparent; }
html .art-cta .btn.btn--primary { background: #ffffff !important; color: var(--p-ink) !important; }
p, li, dd { text-wrap: pretty; }

.hero--split.hero--top .hero__grid { align-items: start; }
.hero--split.hero--top .hero__text { align-self: start; }
#tareas .plain-list { margin-top: var(--s-3); }
#tareas .list-title { margin-top: var(--s-6); }

/* ---------- round 6 ---------- */
/* lists: no rule under every line; a small accent square, the title carries the weight */
.plain-list { list-style: none; display: grid; gap: var(--s-3); margin: var(--s-4) 0 0; padding: 0; }
.plain-list li, .plain-list li:last-child { position: relative; padding: 0 0 0 var(--s-5); border: 0; font-size: var(--t-body); line-height: 1.5; }
.plain-list li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--p-accent); }
.list-title, .job__body h3, #tareas .list-title { margin: var(--s-7) 0 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); letter-spacing: -0.01em; line-height: 1.25; color: var(--p-ink); }
.job__body h3:first-of-type { margin-top: var(--s-6); }
.tools-list li, .tools-list li:last-child { border: 0; }
.tools-list { display: grid; gap: var(--s-2); }
.tools-list a { padding: var(--s-2) 0; }
.facts { row-gap: var(--s-3); }

/* the CV field sits on the section's ground like the rest of the form; its button matches the page's buttons */
.cv-form input[type="file"] { background: transparent; border: 1.5px dashed color-mix(in oklab, var(--p-ink) 30%, transparent); padding: var(--s-2); color: var(--p-ink); }
.cv-form input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: var(--s-4); padding: 10px 18px; min-height: 44px; border: 0; border-radius: var(--r-sm); background: var(--p-ink); color: var(--p-bg); cursor: pointer; transition: background-color .15s ease-out; }
.cv-form input[type="file"]:hover::file-selector-button { background: var(--p-accent); }

/* article: a header that is as tall as its words, the short answer as a lead, notes without boxes */
main > section.art-hero { padding-bottom: var(--s-7); }
.art-hero .hero__grid { align-items: center; }
.art-hero .hero__text { align-self: center; }
.note, .note--answer { padding: 0; border-radius: 0; background: none; }
.note--answer { padding-bottom: var(--s-6); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.note--answer p:not(.note__label) { font-size: var(--t-lead); line-height: 1.55; }
.note__label { font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); letter-spacing: -0.01em; }
.note:not(.note--answer) .note__label { font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; letter-spacing: 0; }
.note:not(.note--answer) { padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.prose ul { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.prose ul li { position: relative; padding-left: var(--s-5); }
.prose ul li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--p-accent); }
.prose li + li { margin-top: 0; }

/* sections that end where their content ends (the article header, the closed offer list) */
main > :is(section, .section).flow.fit { min-height: 0; }
main > section.art-hero.fit { padding-top: var(--s-7); }

main > section.article { padding-top: var(--s-5); }

/* ---------- round 7: quieter lists ---------- */
/* the list title is a label, not a second headline; items are plain lines with a soft dot, close together */
.list-title, .job__body h3, #tareas .list-title { font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; letter-spacing: 0; line-height: 1.4; margin-top: var(--s-6); }
.plain-list, .prose ul { gap: var(--s-2); }
.plain-list li, .plain-list li:last-child, .prose ul li { padding-left: var(--s-4); }
.plain-list li::before, .prose ul li::before { width: 5px; height: 5px; border-radius: 50%; top: .7em; background: color-mix(in oklab, var(--p-ink) 45%, transparent); }
/* sources: a plain small list on the text's left line */
.prose ul.sources { gap: var(--s-1); }
.prose ul.sources li { padding-left: 0; color: var(--p-muted); }
.prose ul.sources li::before { content: none; }
/* the CV button sits evenly inside its field */
.cv-form input[type="file"] { padding: 9px; line-height: 1; }
.cv-form input[type="file"]::file-selector-button { margin: 0 var(--s-4) 0 0; vertical-align: middle; }

/* ---------- WordPress theme ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.prose--wide { max-width: 860px; }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose figure { margin: var(--s-6) 0; }
.prose figcaption { display: none; }
.prose h4 { margin-top: var(--s-6); font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; letter-spacing: 0; }
.prose ol { padding-left: 1.3em; display: grid; gap: var(--s-2); }
.prose blockquote { margin: var(--s-6) 0; padding: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.35; }
.prose .wp-block-button__link, .prose a.btn { display: inline-flex; }
.prose hr { border: 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); margin: var(--s-7) 0; }
/* listings */
.listing { padding-top: calc(var(--padt) - var(--s-4)); }
.post-list { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-6); }
.post-row a { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: var(--s-6); align-items: center; color: var(--p-ink); text-decoration: none; }
.post-row__img { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--p-surface); }
.post-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.post-row a:hover .post-row__img img { transform: scale(1.03); }
.post-row__text { display: grid; gap: var(--s-2); }
.post-row__meta { font-size: var(--t-small); color: var(--p-muted); }
.post-row__title { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.25; }
.post-row a:hover .post-row__title { color: var(--p-accent); }
.post-row__sum { font-size: var(--t-body); line-height: 1.55; color: var(--p-ink); }
@media (max-width: 639px) { .post-row a { grid-template-columns: 1fr; gap: var(--s-3); } }
.pager { display: flex; gap: var(--s-3); margin-top: var(--s-7); }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-sm); background: var(--p-surface); color: var(--p-ink); text-decoration: none; }
.pager .current { background: var(--p-ink); color: var(--p-bg); }
.job__body .prose { max-width: 72ch; }
.job__body > .btn { margin-top: var(--s-6); }
/* WordPress admin bar on top of the sticky nav */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* the fixed nav sits over the first section: compact headers keep their words below it */
main > section.art-hero.fit, main > section.listing { padding-top: calc(var(--nav) + var(--s-7)); }

/* six menu links plus the reading buttons do not fit below 1280: the buttons stay in the footer there */
@media (max-width: 1279px) { header.nav .a11y-opts { display: none; } }

/* dónde encontrarnos: the map needs a height of its own */
#map.map { height: min(520px, 70svh); border-radius: var(--r-lg); overflow: hidden; background: var(--p-surface); }

/* home calculator: the box is as tall as the words beside it, its question centred in it */
@media (min-width: 1024px) {
  #ayudas > .wrap { align-items: stretch; }
  #ayudas [data-ui="calculadora"] { height: 100%; }
  #ayudas .calc { height: 100%; display: flex; flex-direction: column; justify-content: center; }
}
/* footer: room between the WhatsApp call and the link columns */
.footer .closing__cta { padding-bottom: var(--s-7); }
.footer .closing__cta .btn { margin-top: var(--s-4); }
@media (max-width: 1023px) { .footer .closing__cta { padding-bottom: var(--s-8); } .footer .closing__links { padding-top: var(--s-7); } }

/* footer: its two parts never overlap; it grows past one screen when its words need it */
footer.closing { height: auto; min-height: 100svh; }
footer.closing > .wrap { height: auto; min-height: calc(100svh - var(--padt) - var(--padb) - var(--bar, 0px)); grid-template-rows: auto auto; align-content: space-between; row-gap: var(--s-8); }

/* phones: a table without its wrapper scrolls inside the text; long button labels wrap */
.prose table { display: block; overflow-x: auto; max-width: 100%; }
.prose .table-wrap table { display: table; }
@media (max-width: 639px) { .btn { white-space: normal; text-align: center; height: auto; min-height: 48px; } }

/* SureForms forms (Madrid, Barcelona, calculators) in the page's look */
.srfm-form-container input:not([type="checkbox"]):not([type="radio"]), .srfm-form-container textarea, .srfm-form-container select {
  background: var(--p-bg) !important; border: 1px solid color-mix(in oklab, var(--p-ink) 22%, transparent) !important; border-radius: var(--r-md) !important; font: inherit !important; color: var(--p-ink) !important; }
.srfm-form-container label, .srfm-form-container .srfm-block-label { font-family: var(--font-text) !important; font-weight: 500 !important; color: var(--p-ink) !important; }
.srfm-form-container .srfm-submit-button, .srfm-form-container button[type="submit"] {
  background: var(--p-action) !important; color: var(--p-action-ink) !important; border: 0 !important; border-radius: var(--r-sm) !important; font: 600 var(--t-body)/1 var(--font-text) !important; min-height: 48px; padding: 0 var(--s-5) !important; }

/* contact bubble: closed until the visitor opens it; the SureForms form 706 inside sends to SACOM's mail */
.bubble { position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 60; }
.bubble__btn { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--p-ink); color: var(--p-bg); cursor: pointer; box-shadow: 0 6px 20px rgb(14 42 61 / .25); transition: transform .15s ease-out, background-color .15s ease-out; }
.bubble__btn:hover { background: var(--p-accent); transform: translateY(-2px); }
.bubble__btn:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 3px; }
.bubble__panel { position: absolute; right: 0; bottom: 72px; width: min(360px, calc(100vw - 2 * var(--s-5))); max-height: min(640px, calc(100svh - 140px)); overflow-y: auto; padding: var(--s-5); border-radius: var(--r-lg); background: var(--p-bg); color: var(--p-ink); box-shadow: 0 16px 48px rgb(14 42 61 / .22); border: 1px solid color-mix(in oklab, var(--p-ink) 10%, transparent); }
.bubble__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.bubble__head p { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.bubble__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--p-surface); color: var(--p-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.bubble .srfm-form-container a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
@media (max-width: 1023px) { .bubble { bottom: calc(var(--bar, 72px) + var(--s-4)); } }

/* long hero titles keep a comfortable line spacing */
.hero h1 { line-height: 1.08; }

/* mega menu card: title and line close together */
.nav__menu .menu-card { gap: var(--s-1); }
.nav__menu .menu-card .t-card { margin-top: var(--s-3); }
.nav__menu .menu-card .t-small { margin-top: 0; }

/* job offer opened: two columns on wide screens */
.job__cols { display: grid; gap: var(--s-6) var(--s-8); }
@media (min-width: 1024px) { .job__cols { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.job__cols > div > h3:first-child { margin-top: 0; }
.job__body .prose { max-width: none; }

/* offices: list beside the map */
.office-list { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.office-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); border-radius: var(--r-md); }
.office { flex: 1; display: grid; gap: 2px; text-align: left; padding: var(--s-3) var(--s-4); border: 0; border-radius: var(--r-md); background: transparent; color: var(--p-ink); font: inherit; cursor: pointer; min-height: 44px; }
.office:hover { background: var(--p-surface); }
.office.is-active { background: var(--p-surface); }
.office.is-active .office__name { color: var(--p-accent); }
.office__name { font-weight: 600; font-size: var(--t-body); }
.office__addr { font-size: var(--t-small); color: var(--p-muted); }
.office__tel { white-space: nowrap; font-weight: 600; color: var(--p-accent); text-decoration: none; padding-right: var(--s-3); }
.office-mail { margin-top: var(--s-5); font-size: var(--t-small); }
.office-map { height: min(560px, 70svh); border-radius: var(--r-lg); overflow: hidden; background: var(--p-surface); }
.office-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1023px) { .office-map { height: 360px; margin-top: var(--s-6); } }

/* bubble: in the accent so it reads on the dark footer; the footer legal row leaves it room */
.bubble__btn { background: var(--p-action); color: var(--p-action-ink); box-shadow: 0 6px 20px rgb(26 75 224 / .35); }
.bubble__btn:hover { background: var(--p-ink); }
@media (min-width: 1024px) { .footer__legal { padding-right: 88px; } }

/* ---------- link lists read as links: each item is a small card with a coloured title ---------- */
.tools-list { gap: var(--s-3); }
.tools-list li, .tools-list li:last-child { border: 0; }
.tools-list a { display: grid; gap: 4px; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--p-bg); box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 12%, transparent); transition: box-shadow .16s ease-out, transform .16s ease-out; }
.tools-list strong { color: var(--p-accent); font-size: var(--t-body); font-weight: 600; }
.tools-list span { color: var(--p-ink); opacity: .8; }
.tools-list a:hover, .tools-list a:focus-visible { box-shadow: 0 0 0 2px var(--p-accent); transform: translateY(-2px); }
.tools-list a:hover strong { color: var(--p-accent); }
.tools-list--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: var(--s-6); }
/* a group title above a link list is a real heading, clearly above its items */
.list-title:has(+ .tools-list) { font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); letter-spacing: -0.01em; margin: var(--s-7) 0 var(--s-4); }
/* home: the calculators list stays compact beside the calculator */
#ayudas .tools-list { gap: var(--s-2); }
#ayudas .tools-list a { padding: var(--s-3) var(--s-4); }
#ayudas .list-title:has(+ .tools-list), #ayudas .tools-title { font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; margin: var(--s-6) 0 var(--s-3); }

/* sections that end with their content keep the same air below as above */
main > :is(section, .section).flow { padding-bottom: var(--padt); }

/* official logos: on a light band in their official colours; vector where available, rasters at their own size */
.footer .logos--band { padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: #ffffff; align-items: center; }
.footer .logos--band img { height: 48px; width: auto; filter: none; opacity: 1; }
.footer .logos--band img[src*="ministerio-gobierno"] { height: 56px; }
.footer .logos--band img.is-raster { height: 40px; filter: brightness(0); opacity: .85; }
.hero-proof__logos img[src*="ministerio-gobierno"] { height: 46px; filter: none; opacity: 1; }
@media (max-width: 639px) { .footer .logos--band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); padding: var(--s-4); } .footer .logos--band img, .footer .logos--band img[src*="ministerio-gobierno"] { height: auto; max-height: 44px; max-width: 100%; } }

/* inner pages: a section is as tall as its content (the one-screen rhythm stays on the home only) */
body:not(.home) main > :is(section, .section):not(.hero):not([data-moment]) { height: auto; min-height: 0; padding-top: calc(var(--padt) - var(--s-5)); padding-bottom: calc(var(--padt) - var(--s-5)); }
body:not(.home) main > :is(section, .section):not(.hero):not([data-moment]) > .wrap { height: auto; }
body:not(.home) main > section.hero:not(.art-hero) { height: auto; min-height: min(100svh, 820px); }

/* Astra still prints its scroll-to-top arrow: the new design has none */
#ast-scroll-top, .ast-scroll-to-top-right, .ast-scroll-to-top-left { display: none !important; }
/* the Ministry SVG at its own proportion */
.footer .logos--band img[src*="ministerio-gobierno"] { width: 200px !important; height: auto !important; max-height: none; flex: none; }
.hero-proof__logos img[src*="ministerio-gobierno"] { width: 164px !important; height: auto !important; }

/* ---------- tools hub: a four-step path, links as text (no boxes) ---------- */
.path { list-style: none; counter-reset: paso; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .path { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.path__step { counter-increment: paso; padding-top: var(--s-5); border-top: 2px solid var(--p-ink); }
.path__q { margin: 0 0 var(--s-4); font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.path__step .path__q::before { content: counter(paso); display: block; margin-bottom: var(--s-2); font-family: var(--font-text); font-size: var(--t-small); font-weight: 600; color: var(--p-accent); }
.path ul, .path-extra ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.path__link { display: grid; gap: 4px; margin: calc(-1 * var(--s-3)); padding: var(--s-3); border-radius: var(--r-md); text-decoration: none; color: var(--p-ink); transition: background-color .15s ease-out; }
.path__link strong { font-weight: 600; font-size: var(--t-body); color: var(--p-accent); }
.path__link span { font-size: var(--t-small); line-height: 1.5; color: var(--p-ink); opacity: .78; }
.path__link:hover, .path__link:focus-visible { background: var(--p-surface); }
.path-extra { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
@media (min-width: 1024px) { .path-extra ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--gutter); } }

/* ---------- inner-page heroes: as tall as their content, words centred on the picture, equal air above and below ---------- */
body:not(.home) main > section.hero { height: auto !important; min-height: 0 !important; padding-top: calc(var(--nav) + var(--s-8)); padding-bottom: var(--s-8); }
body:not(.home) main > section.hero > .wrap { height: auto; }
body:not(.home) main > section.hero .hero__grid { align-items: center; }
body:not(.home) main > section.hero .hero__text { align-self: center; }
body:not(.home) main > section.hero .hero__media { height: auto; aspect-ratio: 1.42; }
body:not(.home) main > section.hero:has(.calc) .hero__grid { align-items: start; }

/* ---------- CV file field: a custom picker, its button and file name centred in the box ---------- */
.file-pick { position: relative; display: flex; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-2) var(--s-3); border: 1.5px dashed color-mix(in oklab, var(--p-ink) 30%, transparent); border-radius: var(--r-md); cursor: pointer; }
.file-pick input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-pick__btn { flex: none; display: inline-grid; place-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); background: var(--p-ink); color: var(--p-bg); font-weight: 600; }
.file-pick:hover .file-pick__btn { background: var(--p-accent); }
.file-pick:focus-within { outline: 3px solid var(--p-accent); outline-offset: 2px; }
.file-pick__name { font-size: var(--t-small); color: var(--p-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- logo band: more air at its ends ---------- */
.footer .logos--band { padding: var(--s-6) var(--s-9, 80px); justify-content: space-between; }
@media (max-width: 1023px) { .footer .logos--band { padding: var(--s-5) var(--s-6); } }

.file-pick { padding: 10px; min-height: 0; }

/* mega menu: the city column is a short list of plain links */
.nav__menu .menu-col--compact a { padding-top: 6px; padding-bottom: 6px; }

/* lists whose items start with a heading or a paragraph: the first block sits on the bullet's line */
li > :first-child { margin-top: 0 !important; }
li > :last-child { margin-bottom: 0; }
.prose ul li > p, .plain-list li > p { margin: 0; }
.prose ul li > :is(h3, h4, strong):first-child, .plain-list li > :is(h3, h4, strong):first-child { display: block; font-size: var(--t-body); font-weight: 600; line-height: 1.5; }

/* inner-page heroes: one full screen again, their content centred in it (nothing of the next section shows, no empty band) */
body:not(.home) main > section.hero:not(.art-hero) { min-height: calc(100svh - var(--nav)) !important; padding-top: calc(var(--nav) + var(--s-6)); padding-bottom: var(--s-6); display: flex; flex-direction: column; justify-content: center; }
body:not(.home) main > section.hero:not(.art-hero) > .wrap { align-self: center; }
@media (max-width: 1023px) { body:not(.home) main > section.hero:not(.art-hero) { min-height: 0 !important; } }

/* ---------- Servicios hub ---------- */
.svc-grid { display: grid; gap: var(--s-7); margin-top: var(--s-7); }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-8); align-items: start; } }
.svc-list { display: grid; gap: 2px; }
@media (min-width: 1024px) { .svc-list { position: sticky; top: calc(var(--nav) + var(--s-5)); } }
.svc-group { margin: var(--s-5) 0 var(--s-2); font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
.svc-group:first-child { margin-top: 0; }
.svc-tab { display: grid; gap: 2px; width: 100%; text-align: left; padding: var(--s-4) var(--s-4); border: 0; border-radius: var(--r-md); background: transparent; color: var(--p-ink); font: inherit; cursor: pointer; transition: background-color .15s ease-out; }
.svc-tab__name { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.svc-tab__line { font-size: var(--t-small); color: var(--p-muted); }
.svc-tab:hover { background: var(--p-surface); }
.svc-tab[aria-selected="true"] { background: var(--p-ink); color: var(--p-bg); }
.svc-tab[aria-selected="true"] .svc-tab__line { color: color-mix(in oklab, var(--p-bg) 75%, transparent); }
.svc-tab:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 2px; }
.svc-panel { display: grid; gap: var(--s-6); }
@media (min-width: 1280px) { .svc-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.svc-panel__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--p-surface); }
@media (max-width: 1279px) { .svc-panel__img { aspect-ratio: 16 / 10; } }
.svc-panel__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-panel__body h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h2); line-height: 1.12; letter-spacing: -0.02em; }
.svc-panel__body p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.65; }
.svc-panel__body p:first-of-type { font-size: var(--t-lead); line-height: 1.55; }
.svc-facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); margin: var(--s-6) 0; padding: var(--s-5) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.svc-facts dt { font-weight: 600; }
.svc-facts dd { margin: 0; }
/* process: a real sequence of four steps on one line */
.steps { list-style: none; counter-reset: st; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-6) var(--gutter); }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: st; position: relative; padding-top: var(--s-7); }
.steps li::before { content: counter(st); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--p-ink); color: var(--p-bg); font-weight: 600; font-size: var(--t-small); }
@media (min-width: 1024px) { .steps li::after { content: ""; position: absolute; top: 20px; left: 52px; right: calc(-1 * var(--gutter) + 12px); height: 1px; background: color-mix(in oklab, var(--p-ink) 25%, transparent); } .steps li:last-child::after { content: none; } }
.steps h3 { margin: var(--s-4) 0 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.steps p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; }
/* the aid band */
.svc-aid__box { display: grid; gap: var(--s-6); align-items: center; padding: var(--s-8) var(--s-8); border-radius: var(--r-lg); background: var(--p-inv-bg); color: var(--p-inv-ink); }
@media (min-width: 1024px) { .svc-aid__box { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .svc-aid__box .btn-row { justify-content: flex-end; } }
@media (max-width: 639px) { .svc-aid__box { padding: var(--s-6) var(--s-5); } }
.svc-aid__box h2 { margin: 0; color: var(--p-inv-ink); }
.svc-aid__box p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.5; color: var(--p-inv-muted); }
.svc-aid__box .btn--primary { background: #ffffff; color: var(--p-ink); }
.svc-aid__box .btn--secondary { background: rgb(255 255 255 / .14); color: #ffffff; }

/* steps: more air between the four columns, the line runs from circle to circle */
@media (min-width: 1024px) {
  .steps { column-gap: var(--s-8); }
  .steps li { padding-right: var(--s-4); }
  .steps li::after { left: 52px; right: calc(-1 * var(--s-8) + 12px); }
}
/* buttons on dark boxes keep their contrast */
html .svc-aid__box .btn.btn--secondary, html .art-cta .btn.btn--secondary { background: rgb(255 255 255 / .14) !important; color: #ffffff !important; border-color: transparent !important; }
html .svc-aid__box .btn.btn--secondary:hover, html .art-cta .btn.btn--secondary:hover { background: rgb(255 255 255 / .24) !important; }
html .svc-aid__box .btn.btn--primary { background: #ffffff !important; color: var(--p-ink) !important; }

/* primary buttons on dark grounds: on hover the blue fill carries white text */
html :is(.svc-aid__box, .art-cta, .footer--dark, .ground-inverse) .btn.btn--primary:hover, html :is(.svc-aid__box, .art-cta, .footer--dark, .ground-inverse) .btn.btn--primary:focus-visible { background: var(--p-action) !important; color: #ffffff !important; }

/* Home hero: the longer H1 (mayores y dependientes) needs a wider column, a calmer size and air under the nav */
.home main > section.hero:first-child { height: auto !important; min-height: 100svh !important; padding-top: calc(var(--nav) + clamp(32px, 6vh, 72px)) !important; padding-bottom: clamp(32px, 5vh, 64px) !important; display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 6vh, 64px); }
.home main > section.hero:first-child > .wrap { height: auto; align-self: center; }
.home main > section.hero:first-child .hero__grid { align-items: center; }
@media (max-width: 1023px) { .home main > section.hero:first-child { min-height: 0 !important; } }
.home main > section.hero:first-child h1 { font-size: clamp(40px, 2.4vw + 18px, 62px); line-height: 1.06; max-width: 15ch; text-wrap: balance; }
.home main > section.hero:first-child .hero__lead { max-width: 46ch; }

/* Home Nosotros: the two live counters (15+ años, 1.000+ familias), static, as a quiet pair under the intro */
.about-facts { display: flex; gap: var(--s-8); margin: var(--s-5) 0 var(--s-6); padding: var(--s-4) 0; border-block: 1px solid var(--line); }
.about-facts > div { display: flex; flex-direction: column; }
.about-facts dt { font-family: var(--font-display); font-size: clamp(36px, 1.6vw + 22px, 52px); line-height: 1; font-weight: 500; color: var(--p-ink); letter-spacing: -.02em; }
.about-facts dd { margin: var(--s-2) 0 0; font-size: var(--t-body); color: var(--p-ink); opacity: .75; }

/* Nav: the phone, visible on wide screens (families call); on phones the bottom action bar carries the call */
header.nav .nav__phone { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-2); font: 600 17px/1 var(--font-text); color: var(--p-ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
header.nav .nav__phone:hover { color: var(--p-action); }
@media (max-width: 1279px) { header.nav .nav__phone { display: none; } }
header.nav .nav__link .chev { flex-shrink: 0; }
@media (max-width: 639px) { .actionbar:has(> .btn + .btn) { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-2); } .actionbar:has(> .btn + .btn) .btn { width: 100%; justify-content: center; } }

/* ==== batch:servicios ==== */
/* ---------- Servicios (premium batch): 1197, 885, 976, 986, 1015, 1057, 1611 ----------
   Every selector is scoped under an .sv-* class. Tokens only (var(--p-*), var(--s-*), var(--t-*), var(--r-*)).
   Reuses from site.css: .steps, .svc-aid__box, .faq, .plain-list, .table-wrap, .prose, .section-head. */

/* shared type: body copy at 18-20px, support lines muted */
.sv-lead { margin: var(--s-5) 0 0; font-size: var(--t-lead); line-height: 1.6; color: var(--p-ink); max-width: 62ch; }
.sv-muted { color: var(--p-muted); }
.sv-h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.sv-line { border: 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); margin: var(--s-7) 0; }

/* hero: a quiet line under the buttons */
.sv-hero .hero__lead + .hero__lead { margin-top: var(--s-3); }
.sv-hero__note { margin: var(--s-5) 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--p-muted); max-width: 52ch; }
.sv-hero__note a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.sv-hero .hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }

/* statement: one large sentence on the left, the explanation on the right */
.sv-statement { display: grid; gap: var(--s-6) var(--s-8); }
@media (min-width: 1024px) { .sv-statement { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.sv-statement__big { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 1.4vw + 19px, 38px); line-height: 1.25; letter-spacing: -0.02em; color: var(--p-ink); }
.sv-statement__big strong { font-weight: inherit; color: var(--p-accent); }
.sv-statement__side > :first-child { margin-top: 0; }
.sv-statement__side p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.6; }
.sv-statement__side h2 { margin: 0 0 var(--s-2); }

/* split: photograph and text side by side */
.sv-split { display: grid; gap: var(--s-7) var(--s-8); align-items: center; }
@media (min-width: 1024px) {
  .sv-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .sv-split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .sv-split--rev > .sv-split__media { order: 2; }
  .sv-split--top { align-items: start; }
}
.sv-split__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--p-surface); }
.sv-split__media--wide { aspect-ratio: 4 / 3; }
.sv-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: var(--pos, 50% 50%); }
@media (max-width: 1023px) { .sv-split__media { aspect-ratio: 16 / 11; } }
.sv-split__body h2 { margin: 0; }
.sv-split__body > p { margin: var(--s-5) 0 0; font-size: var(--t-lead); line-height: 1.6; }
.sv-split__body .btn-row { margin-top: var(--s-6); }

/* what is included: a two-column list, each item a bold title in the line flow plus its explanation */
.sv-incl { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: 0 var(--s-8); }
@media (min-width: 768px) { .sv-incl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sv-incl--3 { }
@media (min-width: 1024px) { .sv-incl--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sv-incl li { padding: var(--s-5) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.sv-incl li strong { display: block; margin-bottom: var(--s-1); font-family: var(--font-display); font-size: var(--t-lead); font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
.sv-incl li span { color: var(--p-muted); }
.sv-after { margin: var(--s-6) 0 0; font-size: var(--t-lead); line-height: 1.6; max-width: 62ch; }

/* schedule options as rows: the option on the left, how it works on the right */
.sv-rows { margin: var(--s-7) 0 0; display: grid; }
.sv-rows > div { display: grid; gap: var(--s-2) var(--s-7); padding: var(--s-5) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.sv-rows > div:last-child { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
@media (min-width: 768px) { .sv-rows > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }
.sv-rows dt { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; }
.sv-rows dd { margin: 0; font-size: var(--t-lead); line-height: 1.55; color: var(--p-ink); }
.sv-rows dd span { display: block; margin-top: var(--s-1); font-size: var(--t-body); color: var(--p-muted); }

/* comparison table */
.sv-table { margin-top: var(--s-7); }
.sv-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--t-body); line-height: 1.5; }
.sv-table th, .sv-table td { padding: var(--s-4) var(--s-5); text-align: left; vertical-align: top; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.sv-table thead th { font-family: var(--font-display); font-size: var(--t-lead); font-weight: 600; border-bottom-color: var(--p-ink); }
.sv-table tbody th { font-weight: 600; width: 22%; }
.sv-table .is-here { background: color-mix(in oklab, var(--p-accent) 6%, var(--p-bg)); }
.sv-table a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.sv-table-note { margin: var(--s-4) 0 0; font-size: var(--t-small); color: var(--p-muted); }

/* the week: a ruler of eight days in half days (Sunday to Sunday), one bar per modality (885) */
.sv-week { margin-top: var(--s-7); }
.sv-week__days, .sv-week__row { display: grid; grid-template-columns: minmax(160px, 240px) repeat(16, minmax(0, 1fr)); align-items: center; column-gap: 0; }
.sv-week__days { font-size: var(--t-small); font-weight: 600; color: var(--p-muted); padding-bottom: var(--s-3); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.sv-week__days span { grid-column: span 2; padding-left: var(--s-2); border-left: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.sv-week__days span:first-child { grid-column: 1; border: 0; padding: 0; }
.sv-week__row { padding: var(--s-4) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 10%, transparent); row-gap: var(--s-2); }
.sv-week__name { grid-column: 1; grid-row: 1; font-weight: 600; font-size: var(--t-body); line-height: 1.3; padding-right: var(--s-4); }
.sv-week__name small { display: block; font-weight: 400; font-size: var(--t-small); color: var(--p-muted); }
.sv-week__bar { grid-row: 1; height: 40px; margin: 0 2px; border-radius: 999px; background: var(--p-ink); color: var(--p-bg); font-size: 14px; font-weight: 600; display: flex; align-items: center; padding: 0 var(--s-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-week__bar--b { background: var(--p-accent); color: #ffffff; }
@media (max-width: 767px) {
  .sv-week__days, .sv-week__row { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .sv-week__days span { padding-left: 3px; font-size: 12px; }
  .sv-week__days span:first-child { display: none; }
  .sv-week__name { grid-column: 1 / -1; }
  .sv-week__bar { grid-row: 2; height: 14px; padding: 0; font-size: 0; }
}
.sv-week__legend { margin: var(--s-4) 0 0; font-size: var(--t-small); color: var(--p-muted); }

/* three modalities with their photographs (885) */
.sv-modes { margin-top: var(--s-8); display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .sv-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-7); } }
.sv-mode { display: flex; flex-direction: column; }
.sv-mode__img { margin: 0 0 var(--s-5); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--p-surface); }
.sv-mode__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-mode h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.sv-mode p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.65; }
.sv-mode__when { margin: var(--s-4) 0 0; padding: var(--s-3) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); font-size: var(--t-body); }
.sv-mode__when dt { font-weight: 600; }
.sv-mode__when dd { margin: 0; }
.sv-mode .btn { margin-top: auto; align-self: flex-start; }
.sv-mode__foot { margin-top: var(--s-5); padding-top: 0; }

/* a person: large words, the name under them (885, Anna) */
.sv-person { display: grid; gap: var(--s-6) var(--s-8); }
@media (min-width: 1024px) { .sv-person { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
.sv-person__text { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 1vw + 17px, 30px); line-height: 1.4; letter-spacing: -0.015em; }
.sv-person__name { margin: var(--s-5) 0 0; font-size: var(--t-body); font-weight: 600; }
.sv-person__name span { display: block; font-weight: 400; color: var(--p-muted); }

/* questions: the heading on the left, the answers on the right */
.sv-faq { display: grid; gap: var(--s-6) var(--s-8); }
@media (min-width: 1024px) { .sv-faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
.sv-faq h2 { margin: 0; }
.sv-faq__side p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-muted); }
.sv-faq__side a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.sv-faq .faq { border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.sv-faq .faq summary { padding: var(--s-5) var(--s-7) var(--s-5) 0; font-size: var(--t-lead); line-height: 1.4; list-style: none; position: relative; }
.sv-faq .faq summary::-webkit-details-marker { display: none; }
.sv-faq .faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease-out; }
.sv-faq .faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.sv-faq .faq details p { margin: 0 0 var(--s-5); font-size: var(--t-body); line-height: 1.65; max-width: 64ch; }
.sv-faq .faq details a { color: var(--p-accent); font-weight: 600; text-decoration: none; }

/* the aid band: a third line with a link */
.sv-aid .svc-aid__box p a { color: #ffffff; font-weight: 600; text-decoration: none; }

/* two scenes side by side, each with its photograph, its list and its action (986) */
.sv-pair { display: grid; gap: var(--s-8) var(--s-8); }
@media (min-width: 1024px) { .sv-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sv-pair__img { margin: 0 0 var(--s-5); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--p-surface); }
.sv-pair__img img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: var(--pos, 50% 50%); }

/* a horizontal sequence of moments (986, 1015): words only, joined by a rule */
.sv-path { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: sp; }
@media (min-width: 1024px) { .sv-path { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--s-6); } }
.sv-path li { counter-increment: sp; padding-top: var(--s-4); border-top: 3px solid var(--p-ink); font-size: var(--t-body); line-height: 1.55; }
.sv-path li:nth-child(n+2) { border-top-color: color-mix(in oklab, var(--p-ink) 25%, transparent); }
.sv-path li strong { display: block; font-family: var(--font-display); font-size: var(--t-lead); font-weight: 600; margin-bottom: var(--s-2); }
.sv-path li strong::before { content: counter(sp) ". "; color: var(--p-accent); }

/* spec sheet: the van's equipment as large terms with a line of explanation (1015, 1611) */
.sv-spec { margin: var(--s-6) 0 0; display: grid; }
.sv-spec > div { padding: var(--s-5) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.sv-spec > div:last-child { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.sv-spec :is(dt, h3) { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.sv-spec :is(dd, p) { margin: var(--s-2) 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-muted); }
.sv-spec--grid { gap: 0 var(--s-8); }
@media (min-width: 768px) { .sv-spec--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sv-spec--grid > div:nth-last-child(2) { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); } }
@media (min-width: 1024px) { .sv-spec--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sv-spec--3 > div:nth-last-child(3) { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); } }

/* destinations: a big list of where the van goes, on the dark ground (1015) */
.sv-dest { background: var(--p-inv-bg); color: var(--p-inv-ink); }
.sv-dest h2, .sv-dest h3 { color: var(--p-inv-ink); }
.sv-dest .section-head p, .sv-dest p { color: var(--p-inv-muted); }
.sv-dest__list { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; }
.sv-dest__list li { display: grid; gap: var(--s-2) var(--s-7); padding: var(--s-5) 0; border-top: 1px solid rgb(255 255 255 / .16); }
.sv-dest__list li:last-child { border-bottom: 1px solid rgb(255 255 255 / .16); }
@media (min-width: 1024px) { .sv-dest__list li { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: baseline; } }
.sv-dest__list h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; }
.sv-dest__list p { margin: 0; font-size: var(--t-body); line-height: 1.55; }
.sv-dest__after { margin: var(--s-6) 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 60ch; }
.sv-dest .btn--primary { background: #ffffff; color: var(--p-ink); }
html .sv-dest .btn.btn--primary { background: #ffffff !important; color: var(--p-ink) !important; }
html .sv-dest .btn.btn--primary:hover { background: var(--p-action) !important; color: #ffffff !important; }

/* horizontal explorer: four tabs over one panel (1057). Every panel is in the HTML. */
.sv-tabs__list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-7); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.sv-tab { appearance: none; border: 0; background: transparent; font: inherit; color: var(--p-muted); cursor: pointer; padding: var(--s-4) var(--s-4) var(--s-4); margin-bottom: -1px; border-bottom: 3px solid transparent; font-family: var(--font-display); font-size: var(--t-lead); line-height: 1.2; transition: color .15s ease-out, border-color .15s ease-out; }
.sv-tab:hover { color: var(--p-ink); }
.sv-tab[aria-selected="true"] { color: var(--p-ink); border-bottom-color: var(--p-accent); }
.sv-tab:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 2px; }
.sv-tabs:not(.is-js) .sv-tabs__list { display: none; }
.sv-tabs:not(.is-js) .sv-panel[hidden] { display: grid; }
.sv-tabs:not(.is-js) .sv-panel + .sv-panel { margin-top: var(--s-9); }
.sv-panel { display: grid; gap: var(--s-7) var(--s-8); margin-top: var(--s-7); }
@media (min-width: 1024px) { .sv-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.sv-panel__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--p-surface); }
@media (max-width: 1023px) { .sv-panel__img { aspect-ratio: 16 / 10; } }
.sv-panel__img img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: var(--pos, 50% 50%); }
.sv-panel__body h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h2); line-height: 1.12; letter-spacing: -0.02em; }
.sv-panel__body > p { margin: var(--s-5) 0 0; font-size: var(--t-lead); line-height: 1.6; }
.sv-panel__body .sv-incl { margin-top: var(--s-6); }
.sv-panel__body .sv-incl li { padding: var(--s-4) 0; }
.sv-panel__body .sv-incl li strong { font-size: var(--t-body); }
.sv-panel__body .btn-row { margin-top: var(--s-6); }

/* four tasks, each its own block on a ruled grid (976) */
.sv-tasks { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: 0 var(--s-8); }
@media (min-width: 768px) { .sv-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sv-tasks > li { padding: var(--s-6) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.sv-tasks h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.sv-tasks p { margin: var(--s-3) 0 0; font-size: var(--t-lead); line-height: 1.55; }
.sv-tasks p.sv-muted { font-size: var(--t-body); }

/* the article (1611): long text in a reading column, with a side note */
.sv-read { display: grid; gap: var(--s-7) var(--s-8); }
@media (min-width: 1024px) { .sv-read { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; } .sv-read__aside { position: sticky; top: calc(var(--nav) + var(--s-6)); } }
.sv-read .prose { font-size: var(--t-lead); line-height: 1.7; max-width: 66ch; }
.sv-read .prose h2 { margin-top: var(--s-8); }
.sv-read .prose > :first-child { margin-top: 0; }
.sv-read .prose blockquote { font-size: clamp(24px, 1vw + 18px, 32px); line-height: 1.3; letter-spacing: -0.015em; }
.sv-read__aside { padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.sv-read__aside h2, .sv-read__aside h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.25; }
.sv-read__aside p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; }
.sv-read__aside .btn-row { margin-top: var(--s-5); flex-wrap: wrap; }

/* a highlighted condition (1611): the word "Importante" and the rule */
.sv-notice { margin-top: var(--s-7); padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-ink) 16%, transparent); font-size: var(--t-lead); line-height: 1.6; max-width: 900px; }
.sv-notice p { margin: 0; }

/* zones as a route: the base first, then the towns (1611) */
.sv-route { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); }
@media (min-width: 1024px) { .sv-route { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s-7); } }
.sv-route li { padding: var(--s-5) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.sv-route li strong { display: block; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.sv-route li span { display: block; margin-top: var(--s-1); font-size: var(--t-body); color: var(--p-muted); }
.sv-route li.is-base strong { color: var(--p-accent); }

/* the two day centres of the group (1611) */
.sv-centres { display: grid; gap: var(--s-7) var(--s-8); margin-top: var(--s-7); }
@media (min-width: 1024px) { .sv-centres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sv-centre__img { margin: 0 0 var(--s-5); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--p-surface); }
.sv-centre__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-centre h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; }
.sv-centre p { margin: var(--s-3) 0 0; font-size: var(--t-lead); line-height: 1.6; }
.sv-centre .btn-row { margin-top: var(--s-5); }

/* closing contact block (1611): words left, numbers right */
.sv-close { display: grid; gap: var(--s-6) var(--s-8); align-items: center; }
@media (min-width: 1024px) { .sv-close { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.sv-close h2 { margin: 0; }
.sv-close p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; }
.sv-close__tel { display: grid; gap: var(--s-1); }
.sv-close__tel a + span { margin-top: var(--s-5); }
.sv-close__tel a { font-family: var(--font-display); font-size: clamp(26px, 1.2vw + 20px, 36px); letter-spacing: -0.02em; color: var(--p-ink); text-decoration: none; }
.sv-close__tel a:hover { color: var(--p-accent); }
.sv-close__tel span { font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
.sv-tags { margin: var(--s-8) 0 0; padding-top: var(--s-4); border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); font-size: var(--t-small); line-height: 1.6; color: var(--p-muted); }

/* the comparison table on a phone: one block per row, each cell labelled with its column (data-label) */
@media (max-width: 639px) {
  .sv-table table { min-width: 0; }
  .sv-table thead { display: none; }
  .sv-table tr { display: block; padding: var(--s-4) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
  .sv-table tbody th[scope="row"] { display: block; width: auto; padding: 0 0 var(--s-2); border: 0; font-family: var(--font-display); font-size: var(--t-lead); }
  .sv-table td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-3); padding: var(--s-2) 0; border: 0; }
  .sv-table td::before { content: attr(data-label); font-weight: 600; color: var(--p-muted); }
  .sv-table .is-here { background: none; }
}
@media (min-width: 768px) { .sv-incl.sv-incl--1 { grid-template-columns: minmax(0, 1fr); } }
.sv-split__body .sv-incl { margin-top: var(--s-5); }
.sv-split__body .sv-incl li { padding: var(--s-4) 0; }
.sv-statement__big--gap { margin-top: var(--s-6); }
.sv-statement__big--sm { font-size: var(--t-h3); line-height: 1.35; }
.sv-spec--after { margin-top: var(--s-8); }
.sv-panel__body .sv-incl li strong { font-size: var(--t-lead); font-weight: 500; margin: 0; }
.sv-statement > .sv-split__media { align-self: start; }
.sv-hero--long h1 { font-size: clamp(34px, 1.9vw + 22px, 56px); line-height: 1.08; }
/* the section head already carries the heading-to-content gap: the block under it adds none */
.section-head + :is(.sv-rows, .sv-week, .sv-tasks, .sv-path, .sv-route, .sv-dest__list, .sv-centres, .sv-tabs, .sv-incl, .sv-table) { margin-top: 0; }
.sv-tabs > .sv-tabs__list { margin-top: 0; }
@media (max-width: 639px) {
  .sv-tabs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .sv-tab { text-align: left; font-size: var(--t-body); padding: var(--s-3) var(--s-2); }
}

/* ---------- Round 3 (copy pass): new components ---------- */

/* index: the heading and its explanation stay on the left, a ruled list of what is included on the right (1197, 885) */
.sv-index { display: grid; gap: var(--s-7) var(--s-9); }
@media (min-width: 1024px) {
  .sv-index { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .sv-index__head { position: sticky; top: calc(var(--nav) + var(--s-6)); }
}
.sv-index__head h2 { margin: 0; }
.sv-index__head .sv-lead { margin-top: var(--s-5); }
.sv-index__head .sv-muted { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.6; max-width: 46ch; }
.sv-index__head .btn-row { margin-top: var(--s-6); }
.sv-index__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.sv-index__list li { display: grid; gap: var(--s-2); padding: var(--s-6) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.sv-index__list li:last-child { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.sv-index__list strong { font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.sv-index__list span { font-size: var(--t-lead); line-height: 1.55; color: var(--p-muted); max-width: 52ch; }
@media (max-width: 1023px) { .sv-index__list li { padding: var(--s-5) 0; } }

/* cases: who it is for, each case a short term with one sentence (1197, 976) */
.sv-cases { margin: var(--s-6) 0 0; display: grid; }
.sv-cases > div { padding: var(--s-4) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.sv-cases > div:last-child { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.sv-cases dt { font-weight: 600; font-size: var(--t-lead); line-height: 1.4; }
.sv-cases dd { margin: var(--s-1) 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-muted); }

/* columns that align: every column shares the same rows (title, text, foot) through subgrid (1197, 986, 976, 1015) */
.sv-cols { --n: 3; display: grid; gap: var(--s-5) var(--s-7); }
@media (min-width: 768px) { .sv-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sv-cols { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); } }
.sv-col { display: grid; grid-row: span var(--rows, 2); grid-template-rows: subgrid; row-gap: var(--s-3); align-content: start; padding-top: var(--s-5); border-top: 2px solid var(--p-ink); }
.sv-col > :empty { display: none; }
.sv-col h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.sv-col p { margin: 0; font-size: var(--t-lead); line-height: 1.55; }
.sv-col .sv-col__foot { font-size: var(--t-body); color: var(--p-muted); }
@media (max-width: 767px) { .sv-col { grid-row: auto; grid-template-rows: none; padding-bottom: var(--s-4); } }

/* the close of every page: a short heading, one sentence, two buttons, one quiet line of facts */
.sv-end__grid { display: grid; gap: var(--s-5) var(--s-9); }
@media (min-width: 1024px) { .sv-end__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; } }
.sv-end h2 { margin: 0; max-width: 16ch; }
.sv-end__grid p { margin: 0; font-size: var(--t-lead); line-height: 1.55; max-width: 44ch; }
.sv-end__grid .btn-row { margin-top: var(--s-5); }
.sv-end__facts { margin: var(--s-8) 0 0; padding-top: var(--s-4); border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); font-size: var(--t-small); line-height: 1.6; color: var(--p-muted); }
.sv-end__facts a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.sv-faq__side h2 { max-width: 14ch; }

/* modalities (885): the three cards share their rows (photo, name, hours, text) so every part starts at the same height */
@media (min-width: 1024px) {
  .sv-modes { grid-template-rows: auto auto auto 1fr; }
  .sv-mode { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}
.sv-mode__img { margin-bottom: var(--s-5); }
.sv-mode__when { margin: var(--s-4) 0 0; padding: var(--s-3) 0; align-content: start; }
.sv-mode__when dt { color: var(--p-muted); font-weight: 600; }
.sv-mode > p { margin-top: var(--s-4); font-size: var(--t-lead); line-height: 1.55; }
.sv-modes + .section-cta { margin-top: var(--s-7); }
.sv-panel__list { margin-top: var(--s-5); }
.sv-panel__list li, .sv-panel__list li:last-child { font-size: var(--t-lead); line-height: 1.5; }
.sv-read__links { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.sv-read__links li { padding: var(--s-3) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); font-size: var(--t-lead); }
.sv-read__links a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
/* the two centres (1611) share their rows so the names, texts and buttons line up */
@media (min-width: 1024px) {
  .sv-centres { grid-template-rows: auto auto 1fr auto; }
  .sv-centre { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .sv-centre .btn-row { align-self: end; }
}
.sv-statement__note { margin: var(--s-5) 0 0; font-size: var(--t-body); line-height: 1.6; max-width: 56ch; }
/* ==== /batch:servicios ==== */

/* ==== batch:locales ==== */
/* ---------- Locales: city landing pages (Sabadell, Llinars, La Garriga, Cardedeu, Mataró, Sitges, Madrid, Barcelona, Vallès Oriental, Granollers) ----------
   One local-page system. Every selector hangs from a .loc-* section class.
   Each section has its own job: city sheet, services with photos, area + nearest office, reasons grid, steps, voices,
   price rows, the dependency-aid band, FAQ beside its question, closing summary. */

/* shared: hairline, display headings inside the system */
.loc-city, .loc-svc, .loc-cdd, .loc-area, .loc-why, .loc-process, .loc-voices, .loc-price, .loc-aid, .loc-faq, .loc-related, .loc-close,
.loc-tools, .loc-context, .loc-table, .loc-form, .loc-net, .loc-office-band, .loc-quiz, .loc-list8, .loc-facts4 { --loc-line: color-mix(in oklab, var(--p-ink) 13%, transparent); }
.loc-h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }

/* hero: a quiet line under the buttons */
.loc-hero__meta { margin: var(--s-5) 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--p-muted); }
.loc-hero .hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); display: block; }

/* 1. city sheet: the long introduction beside a short card with the town's figures */
.loc-city__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .loc-city__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: var(--s-9); align-items: start; } }
.loc-city__text > p { margin: 0; font-size: var(--t-body); line-height: 1.7; color: var(--p-ink); max-width: 68ch; }
.loc-city__text > p + p { margin-top: var(--s-5); }
.loc-city__text > p.loc-city__lead { font-family: var(--font-display); font-size: clamp(24px, 1.1vw + 18px, 34px); line-height: 1.3; letter-spacing: -0.015em; margin-bottom: var(--s-7); }
.loc-city__text a, .loc-area a:not(.btn), .loc-why a:not(.btn), .loc-price a:not(.btn), .loc-faq a:not(.btn), .loc-close a:not(.btn), .loc-context a:not(.btn), .loc-table a:not(.btn), .loc-form a:not(.btn), .loc-quiz a:not(.btn) { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.loc-sheet { padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
@media (min-width: 1024px) { .loc-sheet { position: sticky; top: calc(var(--nav) + var(--s-5)); } }
.loc-sheet__title { margin: 0 0 var(--s-4); font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.loc-sheet dl { margin: 0; display: grid; }
.loc-sheet dl > div { display: grid; gap: 2px; padding: var(--s-4) 0; border-top: 1px solid var(--loc-line); }
.loc-sheet dt { font-weight: 600; font-size: var(--t-lead); line-height: 1.3; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.loc-sheet dd { margin: 0; font-size: var(--t-small); line-height: 1.45; color: var(--p-ink); opacity: .82; }
.loc-sheet__foot { margin: var(--s-4) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--loc-line); font-size: var(--t-small); line-height: 1.5; }
.loc-sheet__foot a { color: var(--p-accent); font-weight: 600; text-decoration: none; }

/* 2. services: three photographs, each service with its own facts underneath; a help strip closes the section */
.loc-svc .section-head { max-width: 820px; }
.loc-svc__grid { display: grid; gap: var(--s-8) var(--gutter); margin-top: var(--s-7); }
@media (min-width: 768px) { .loc-svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .loc-svc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-7); } .loc-svc__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-6); } }
.loc-svc__item { display: flex; flex-direction: column; }
.loc-svc__img { margin: 0 0 var(--s-5); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--p-bg); }
.loc-svc__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-svc__item > p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.loc-svc__item .plain-list { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--loc-line); }
.loc-svc__item .plain-list li { font-size: var(--t-small); line-height: 1.5; }
.loc-help { display: grid; gap: var(--s-5) var(--gutter); align-items: center; margin-top: var(--s-8); padding: var(--s-6) 0 0; border-top: 1px solid var(--loc-line); }
@media (min-width: 1024px) { .loc-help { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .loc-help .btn-row { justify-content: flex-end; } }
.loc-help p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; max-width: 62ch; }

/* 3. Cardedeu day centre: a tall photograph beside what the centre offers */
.loc-cdd__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .loc-cdd__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-9); align-items: start; } }
.loc-cdd__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
@media (max-width: 1023px) { .loc-cdd__img { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) { .loc-cdd__img { position: sticky; top: calc(var(--nav) + var(--s-5)); } }
.loc-cdd__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-cdd__text h2 { margin: 0; }
.loc-cdd__text > p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.65; }
.loc-cdd__text > p.loc-cdd__lead { font-size: var(--t-lead); line-height: 1.55; }
.loc-dl { margin: var(--s-6) 0 0; display: grid; }
.loc-dl > div { display: grid; gap: var(--s-1) var(--s-5); padding: var(--s-4) 0; border-top: 1px solid var(--loc-line); }
.loc-dl > div:last-child { border-bottom: 1px solid var(--loc-line); }
@media (min-width: 640px) { .loc-dl > div { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); } }
.loc-dl dt { font-weight: 600; color: var(--p-ink); }
.loc-dl dd { margin: 0; line-height: 1.55; color: var(--p-ink); }
.loc-ask { margin-top: var(--s-7); padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.loc-ask p { margin: var(--s-3) 0 0; line-height: 1.6; }
.loc-ask .btn-row { margin-top: var(--s-5); }

/* 4. area served: the places as a directory, the nearest office with its map */
.loc-area__grid { display: grid; gap: var(--s-8) var(--gutter); }
@media (min-width: 1024px) { .loc-area__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: start; } }
.loc-area__grid h2 { margin: 0; }
.loc-area__lead { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 60ch; }
.loc-area__group { margin-top: var(--s-7); }
.loc-area__group > p { margin: var(--s-3) 0 0; line-height: 1.65; }
.loc-places { list-style: none; margin: var(--s-4) 0 0; padding: 0; columns: 2; column-gap: var(--s-6); }
@media (min-width: 640px) { .loc-places { columns: 3; } }
.loc-places li { break-inside: avoid; padding: var(--s-2) 0; border-bottom: 1px solid var(--loc-line); font-size: var(--t-body); line-height: 1.4; color: var(--p-ink); }
.loc-area__note { margin-top: var(--s-7); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.ground-surface .loc-area__note { background: var(--p-bg); }
.loc-area__note p { margin: 0; line-height: 1.65; }
.loc-office { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .loc-office { position: sticky; top: calc(var(--nav) + var(--s-5)); } }
.loc-office__title { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
.loc-office__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.loc-office__list li { display: grid; gap: 2px; }
.loc-office__name { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.loc-office__addr { font-size: var(--t-body); line-height: 1.45; color: var(--p-ink); }
.loc-office__tel { justify-self: start; font-weight: 600; color: var(--p-accent); text-decoration: none; }
.loc-office__tel:hover { color: var(--p-ink); }
.loc-office__map { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--p-surface); }
.loc-office__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* 5. reasons: a head that reads across, then the reasons as a grid under thick rules */
.loc-why__head { display: grid; gap: var(--s-5) var(--gutter); }
@media (min-width: 1024px) { .loc-why__head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-9); align-items: start; } }
.loc-why__head h2 { margin: 0; }
.loc-why__head p { margin: 0; font-size: var(--t-lead); line-height: 1.55; }
.loc-why__grid { display: grid; gap: var(--s-7) var(--s-7); margin-top: var(--s-8); }
@media (min-width: 768px) { .loc-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .loc-why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.loc-why__item { padding-top: var(--s-5); border-top: 2px solid var(--p-ink); }
.loc-why__item p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; }
.loc-why__item > p:first-child { margin-top: 0; }

/* 6. process: five real steps on one line */
@media (min-width: 1024px) { .loc-steps.steps { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--s-6); } .loc-steps.steps li::after { right: calc(-1 * var(--s-6) + 12px); } }
.loc-steps.steps li p + p { margin-top: var(--s-2); }
.loc-process .section-head { max-width: 820px; }
.loc-process__foot { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--loc-line); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); font-size: var(--t-small); color: var(--p-ink); }
.loc-process__foot p { margin: 0; }

/* 7. voices: one quote leads, the others follow beside it */
.loc-voices__grid { display: grid; gap: var(--s-7) var(--gutter); margin-top: var(--s-7); }
@media (min-width: 1024px) { .loc-voices__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: start; } }
.loc-voices .review { margin: 0; }
.loc-voices__lead .review { padding-top: 0; border-top: 0; }
.loc-voices__lead .review p { font-family: var(--font-display); font-size: clamp(24px, 1vw + 19px, 32px); line-height: 1.35; letter-spacing: -0.015em; }
.loc-voices__rest { display: grid; gap: var(--s-6); }
.loc-voices__rest .review p { font-size: var(--t-body); line-height: 1.6; }
.loc-voices__grid--3 { grid-template-columns: none; }
@media (min-width: 1024px) { .loc-voices__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-7); } }
.loc-voices__grid--3 .review p { font-size: var(--t-lead); line-height: 1.5; }
.loc-voices__note { margin: var(--s-3) 0 0; color: var(--p-muted); font-size: var(--t-body); }

/* 8. price: what makes the price, as rows */
.loc-price__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .loc-price__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; } .loc-price__head { position: sticky; top: calc(var(--nav) + var(--s-5)); } }
.loc-price__head h2 { margin: 0; }
.loc-price__head p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.65; }
.loc-rows { margin: 0; padding: 0; list-style: none; }
.loc-rows > li { display: grid; gap: var(--s-2) var(--s-6); padding: var(--s-5) 0; border-top: 1px solid var(--loc-line); }
.loc-rows > li:last-child { border-bottom: 1px solid var(--loc-line); }
@media (min-width: 640px) { .loc-rows > li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.loc-rows h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.loc-rows p { margin: 0; line-height: 1.6; }
.loc-price__aside { margin: var(--s-6) 0 0; font-size: var(--t-body); line-height: 1.6; }

/* 9. the dependency aid: the dark band of the pilot, with the page's own note inside */
.loc-aid .svc-aid__box p.loc-aid__label { margin-top: var(--s-5); font-weight: 600; color: var(--p-inv-ink); font-size: var(--t-body); }
.loc-aid .svc-aid__box p.loc-aid__label + p { margin-top: var(--s-2); font-size: var(--t-body); line-height: 1.6; }
.loc-aid .svc-aid__box a:not(.btn) { color: #ffffff; font-weight: 600; text-decoration: none; box-shadow: inset 0 -1px 0 rgb(255 255 255 / .5); }
.loc-aid .svc-aid__box strong { color: var(--p-inv-ink); }
.loc-aid .svc-aid__box .btn-row { align-self: center; }

/* 10. FAQ: the heading and a way to ask beside the answers */
.loc-faq__grid { display: grid; gap: var(--s-6) var(--gutter); }
@media (min-width: 1024px) { .loc-faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; } .loc-faq__head { position: sticky; top: calc(var(--nav) + var(--s-5)); } }
.loc-faq__head h2 { margin: 0; }
.loc-faq__head p { margin: var(--s-4) 0 0; line-height: 1.6; color: var(--p-ink); }
.loc-faq__head .btn-row { margin-top: var(--s-5); }
.loc-faq .faq { border-top: 1px solid var(--loc-line); }
.loc-faq .faq details { border-bottom: 1px solid var(--loc-line); }
.loc-faq .faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); padding: var(--s-5) 0; font-size: var(--t-lead); line-height: 1.35; font-weight: 500; color: var(--p-ink); }
.loc-faq .faq summary::-webkit-details-marker { display: none; }
.loc-faq .faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease-out; }
.loc-faq .faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.loc-faq .faq summary:hover { color: var(--p-accent); }
.loc-faq .faq details p { margin: 0 0 var(--s-5); font-size: var(--t-body); line-height: 1.7; max-width: 68ch; }
.loc-faq__sign { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.loc-faq__sign p { margin: 0; font-size: var(--t-small); line-height: 1.55; color: var(--p-muted); }

/* 11. related reading (Mataró) */
.loc-related .tools-list--grid { margin-top: var(--s-6); }

/* 12. closing: the call on the left, the summary of the page on a card */
.loc-close__grid { display: grid; gap: var(--s-8) var(--gutter); }
@media (min-width: 1024px) { .loc-close__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: start; } }
.loc-close__main h2 { margin: 0; }
.loc-close__main > p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 56ch; }
.loc-close__main .btn-row { margin-top: var(--s-6); }
.loc-close__sub { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--loc-line); }
.loc-close__sub p { margin: var(--s-2) 0 0; line-height: 1.6; }
.loc-close__card { padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); display: grid; gap: var(--s-6) var(--s-6); }
@media (min-width: 640px) { .loc-close__card { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.loc-close__card h3 { margin: 0; font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.loc-close__card .plain-list { margin-top: var(--s-2); }
.loc-close__card .plain-list li { font-size: var(--t-small); }
.loc-close--dark { background: var(--p-bg); }

/* ---------- Madrid / Barcelona ---------- */
/* two calculators, side by side, each a card with its step */
.loc-tools__head { display: grid; gap: var(--s-5) var(--gutter); }
@media (min-width: 1024px) { .loc-tools__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: end; } }
.loc-tools__head h2 { margin: 0; }
.loc-tools__head p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; }
.loc-figs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.loc-figs > div { display: grid; gap: 2px; padding-top: var(--s-3); border-top: 2px solid var(--p-ink); }
.loc-figs dt { font-weight: 600; font-size: var(--t-body); line-height: 1.3; font-variant-numeric: tabular-nums; }
.loc-figs dd { margin: 0; font-size: var(--t-small); line-height: 1.4; color: var(--p-muted); }
@media (max-width: 639px) { .loc-figs { grid-template-columns: 1fr; } }
.loc-tools__grid { display: grid; gap: var(--gutter); margin-top: var(--s-7); }
@media (min-width: 900px) { .loc-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.loc-tool { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-7) var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.ground-surface .loc-tool { background: var(--p-bg); }
.loc-tool__step { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--p-accent); }
.loc-tool p:not(.loc-tool__step) { margin: 0; line-height: 1.6; }
.loc-tool .btn-row { margin-top: auto; padding-top: var(--s-4); }

/* city context: four blocks in a 2 x 2 */
.loc-context__head { max-width: 860px; }
.loc-context__head h2 { margin: 0; }
.loc-context__head p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; }
.loc-context__grid { display: grid; gap: var(--s-7) var(--s-8); margin-top: var(--s-8); }
@media (min-width: 900px) { .loc-context__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.loc-context__block { padding-top: var(--s-5); border-top: 2px solid var(--p-ink); }
.loc-context__block > p { margin: var(--s-3) 0 0; line-height: 1.6; }
.loc-context__block .plain-list { margin-top: var(--s-3); }
.loc-respir { display: grid; gap: var(--s-6) var(--gutter); margin-top: var(--s-8); padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); align-items: center; }
.ground-surface .loc-respir { background: var(--p-bg); }
@media (min-width: 900px) { .loc-respir { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s-7); } }
.loc-respir__img { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.loc-respir__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-respir__kicker { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--p-accent); }
.loc-respir .loc-h3 { margin-top: var(--s-2); }
.loc-respir p:not(.loc-respir__kicker) { margin: var(--s-3) 0 0; line-height: 1.6; }

/* the price table */
.loc-table__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .loc-table__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; } }
.loc-table__grid h2 { margin: 0; }
.loc-table__grid > div > p { margin: var(--s-4) 0 0; line-height: 1.65; }
.loc-table table { width: 100%; border-collapse: collapse; font-size: var(--t-body); line-height: 1.45; }
.loc-table th, .loc-table td { padding: var(--s-4) var(--s-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--loc-line); }
.loc-table thead th { font-size: var(--t-small); font-weight: 600; color: var(--p-muted); border-bottom: 2px solid var(--p-ink); }
.loc-table tbody th { font-weight: 500; }
.loc-table td { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.loc-table thead th:last-child { text-align: right; }
@media (max-width: 639px) { .loc-table td { white-space: normal; } }
.loc-table__note { margin-top: var(--s-5); font-size: var(--t-small); line-height: 1.6; color: var(--p-ink); }

/* budget request: the call and what happens next, the form on a card */
.loc-form__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .loc-form__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-9); align-items: start; } }
.loc-form__grid h2 { margin: 0; }
.loc-form__grid > div > p { margin: var(--s-4) 0 0; line-height: 1.6; }
.loc-form__grid .btn-row { margin-top: var(--s-6); }
.loc-form__card { padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.ground-surface .loc-form__card { background: var(--p-bg); }
.loc-form__next { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--loc-line); }
.loc-form__next p { margin: var(--s-2) 0 0; line-height: 1.6; }
.loc-form__small { font-size: var(--t-small); color: var(--p-muted); }

/* national / regional network: places with their region */
.loc-net__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .loc-net__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; } }
.loc-net__grid h2 { margin: 0; }
.loc-net__grid > div > p { margin: var(--s-4) 0 0; line-height: 1.6; }
.loc-net__grid .btn-row { margin-top: var(--s-6); }
.loc-cities { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
@media (min-width: 640px) { .loc-cities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.loc-cities > div { display: grid; gap: 2px; padding: var(--s-4) 0; border-top: 1px solid var(--loc-line); }
.loc-cities dt { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.loc-cities dd { margin: 0; font-size: var(--t-small); color: var(--p-muted); }

/* Barcelona office band: words and figures beside the map */
.loc-office-band__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .loc-office-band__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: center; } }
.loc-office-band__grid h2 { margin: 0; }
.loc-office-band__grid > div > p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; }
.loc-office-band .loc-figs { margin-top: var(--s-6); }
.loc-office-band .btn-row { margin-top: var(--s-6); }

/* ---------- Vallès Oriental ---------- */
.loc-list8 { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-7) var(--s-6); }
@media (min-width: 768px) { .loc-list8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .loc-list8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.loc-list8 > li { padding-top: var(--s-5); border-top: 2px solid var(--p-ink); }
.loc-list8 p { margin: var(--s-3) 0 0; line-height: 1.6; }
.loc-towns { margin: var(--s-6) 0 0; display: grid; }
.loc-towns > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-5); padding: var(--s-3) 0; border-top: 1px solid var(--loc-line); }
.loc-towns > div:last-child { border-bottom: 1px solid var(--loc-line); }
.loc-towns dt { font-weight: 600; }
.loc-towns dd { margin: 0; color: var(--p-ink); opacity: .82; font-variant-numeric: tabular-nums; }
.loc-towns + p { margin: var(--s-4) 0 0; line-height: 1.6; }

/* facts as a four-row table (Granollers "por qué") */
.loc-facts4 { margin: 0; display: grid; }
.loc-facts4 > div { display: grid; grid-template-columns: minmax(96px, 1fr) minmax(0, 3fr); gap: var(--s-5); align-items: baseline; padding: var(--s-5) 0; border-top: 1px solid var(--loc-line); }
.loc-facts4 > div:last-child { border-bottom: 1px solid var(--loc-line); }
.loc-facts4 dt { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.loc-facts4 dd { margin: 0; font-size: var(--t-body); line-height: 1.55; }
.loc-split-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; }
.loc-split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Granollers questionnaire: every step is in the page, the script only shows one at a time ---------- */
.loc-quiz { padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
@media (max-width: 639px) { .loc-quiz { padding: var(--s-5) var(--s-4); } }
.loc-quiz__title { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.loc-quiz__intro { margin: var(--s-2) 0 var(--s-5); font-size: var(--t-small); line-height: 1.5; }
.loc-quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.loc-quiz legend { padding: 0; }
.loc-quiz legend small { font-family: var(--font-text); font-size: var(--t-small); color: var(--p-muted); }
.loc-quiz .test-hint { margin-bottom: var(--s-2); }
.loc-quiz__tip { margin: 0 0 var(--s-5); font-size: var(--t-small); line-height: 1.5; color: var(--p-muted); }
.loc-quiz .test-opts { gap: var(--s-2); }
.loc-quiz .test-opts label { min-height: 52px; padding: var(--s-2) var(--s-4); }
.loc-quiz__ins { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--p-bg); font-size: var(--t-small); line-height: 1.55; }
.loc-quiz__age { display: flex; align-items: baseline; gap: var(--s-3); margin: var(--s-2) 0 var(--s-3); font-family: var(--font-display); font-size: var(--t-h2); line-height: 1; }
.loc-quiz__age span { font-family: var(--font-text); font-size: var(--t-body); color: var(--p-muted); }
.loc-quiz input[type="range"] { width: 100%; accent-color: var(--p-action); min-height: 44px; }
.loc-quiz__scale { display: flex; justify-content: space-between; margin: 0; font-size: var(--t-small); color: var(--p-muted); }
.loc-quiz .field { display: grid; gap: var(--s-1); margin-top: var(--s-3); }
.loc-quiz .field label { font-size: var(--t-small); font-weight: 600; }
.loc-quiz .field input, .loc-quiz .field textarea { font: inherit; min-height: 48px; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); border: 1px solid color-mix(in oklab, var(--p-ink) 22%, transparent); background: var(--p-bg); color: var(--p-ink); }
.loc-quiz .field input:focus-visible, .loc-quiz .field textarea:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 1px; }
.loc-quiz .muted { font-weight: 400; color: var(--p-muted); }
.loc-quiz__busy { display: grid; gap: var(--s-3); }
.loc-quiz__busy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-small); color: var(--p-muted); }
.loc-quiz .test-result h3.list-title { margin-top: var(--s-6); }
.loc-quiz .test-result .plain-list li strong { display: inline; }
.loc-quiz__result-title { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; }
.loc-hero--quiz .hero__grid { align-items: start !important; }
.loc-hero--quiz .hero__text { align-self: start !important; padding-top: var(--s-5); }
.loc-hero__proof { margin: var(--s-5) 0 0; font-size: var(--t-small); font-weight: 600; color: var(--p-ink); }

/* quotes: the author line (a div, the page keeps <footer> for the site footer) */
.review .review__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); margin-top: var(--s-4); }
.review .review__foot cite { font-style: normal; font-weight: 600; font-size: var(--t-body); color: var(--p-ink); }
.review .review__foot span { font-size: var(--t-small); color: var(--p-muted); }
/* the page's own keywords, quiet, at the foot of the closing card */
.loc-close__tags { grid-column: 1 / -1; margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--loc-line); font-size: var(--t-small); line-height: 1.6; color: var(--p-muted); }
.loc-aid .svc-aid__box .loc-aid__h { color: var(--p-inv-ink); font-size: var(--t-h2); line-height: 1.1; }
.loc-figs--gap { margin-top: var(--s-5); }
.loc-price__head .loc-split-photo { margin-top: var(--s-6); }
/* ==== /batch:locales ==== */

/* ==== batch:institucional ==== */
/* ---------- Institucional: sobre nosotros (298), contacto (301), dónde encontrarnos (622), política de privacidad (3) ---------- */

/* shared: hairline used by rows and lists of this batch */
:is(.about-values, .about-accred, .contact-ways, .contact-offices, .where-offices, .where-arg, .where-cat, .legal-text) { --inst-line: color-mix(in oklab, var(--p-ink) 14%, transparent); }

/* ===== Sobre nosotros ===== */
/* hero: the wide client photo keeps the caregiver and the lady in frame */
.about-hero .hero__media img { object-position: 78% 45%; }

/* familia: one sentence set large in the display face, two short paragraphs beside it under a rule */
.about-family__kicker { margin: 0; font-family: var(--font-text); font-size: var(--t-lead); font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--p-accent); }
.about-family__grid { display: grid; gap: var(--s-6); margin-top: var(--s-5); }
@media (min-width: 1024px) { .about-family__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-9); align-items: end; } }
.about-family__statement { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: clamp(30px, 2.4vw + 14px, 52px); line-height: 1.14; letter-spacing: -0.025em; color: var(--p-ink); text-wrap: balance; }
.about-family__text { padding-top: var(--s-5); border-top: 2px solid var(--p-ink); }
.about-family__text p { margin: 0; font-size: var(--t-lead); line-height: 1.55; color: var(--p-ink); }
.about-family__text p + p { margin-top: var(--s-4); }

/* quiénes somos: a tall photograph beside the three steps of every service, numbered because the order is the content */
.about-values__photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--p-surface); aspect-ratio: 4 / 5; }
@media (min-width: 1024px) { .about-values__photo { aspect-ratio: auto; height: 100%; min-height: 560px; } }
.about-values__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-values__body { align-self: center; }
.about-values__body .section-head p { font-size: var(--t-lead); line-height: 1.55; }
.about-values__list { list-style: none; margin: var(--s-7) 0 0; padding: 0; counter-reset: about-step; }
.about-value { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--inst-line); counter-increment: about-step; }
.about-value:last-child { border-bottom: 1px solid var(--inst-line); }
.about-value::before { content: counter(about-step); grid-row: span 2; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; color: var(--p-accent); font-variant-numeric: tabular-nums; }
.about-value h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.about-value p { margin: var(--s-2) 0 0; font-size: var(--t-body); line-height: 1.6; }

/* historia: heading beside the two facts, then two equal columns (photo, title, one sentence) aligned by subgrid, then one line on Cardedeu */
.about-story__head { display: grid; gap: var(--s-4); }
@media (min-width: 1024px) { .about-story__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-9); align-items: end; } }
.about-story__head h2 { margin: 0; }
.about-story__head p { margin: 0; font-size: var(--t-lead); line-height: 1.55; }
.about-story__head p + p { margin-top: var(--s-3); }
.about-story__pair { display: grid; gap: var(--s-7) var(--s-6); margin-top: var(--s-8); }
@media (min-width: 768px) { .about-story__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; } .about-story__item { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; } }
.about-story__item { align-content: start; }
.about-story__item img { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; border-radius: var(--r-lg); object-fit: cover; background: var(--p-surface); }
.about-story__item h3 { margin: var(--s-5) 0 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.about-story__item p { margin: var(--s-2) 0 0; font-size: var(--t-body); line-height: 1.6; max-width: 48ch; }
.about-story__more { margin: var(--s-8) 0 0; padding-top: var(--s-5); border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); font-size: var(--t-lead); line-height: 1.55; max-width: 60ch; }

/* acreditaciones: a facts table, the registry numbers set in the display face */
.about-accred .section-head p { font-size: var(--t-body); line-height: 1.6; }
.about-accred__list { margin: 0; display: grid; }
.about-accred__list > div { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-top: 1px solid var(--inst-line); }
.about-accred__list > div:last-child { border-bottom: 1px solid var(--inst-line); }
@media (min-width: 640px) { .about-accred__list > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-5); } }
.about-accred__list dt { font-weight: 600; font-size: var(--t-body); line-height: 1.4; }
.about-accred__list dd { margin: 0; font-size: var(--t-body); line-height: 1.6; }
.about-accred__num { display: block; margin-bottom: var(--s-2); font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.about-accred__list a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.about-accred__list a:hover { color: var(--p-ink); }

/* colaboraciones: what the two partners are on the left, the two logos on white panels on the right */
.about-partners__grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .about-partners__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-9); align-items: center; } }
.about-partners__grid .section-head { margin: 0; }
.about-partners__grid .section-head p + p { margin-top: var(--s-4); }
.about-partners__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .about-partners__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-partners__list a { display: grid; gap: var(--s-1); color: var(--p-ink); text-decoration: none; }
.about-partners__logo { display: grid; place-items: center; height: 200px; margin-bottom: var(--s-3); padding: var(--s-6); border-radius: var(--r-lg); background: #ffffff; box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 12%, transparent); transition: box-shadow .16s ease-out; }
.about-partners__logo img { max-width: 100%; max-height: 120px; width: auto; height: auto; }
.about-partners__list strong { font-size: var(--t-body); font-weight: 600; color: var(--p-accent); }
.about-partners__list a:hover .about-partners__logo, .about-partners__list a:focus-visible .about-partners__logo { box-shadow: 0 0 0 2px var(--p-accent); }

/* canal ético: a quiet row, the title on the left and the text on the right */
.about-ethics__row { display: grid; gap: var(--s-4); }
@media (min-width: 1024px) { .about-ethics__row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-9); } }
.about-ethics__row h2 { margin: 0; }
.about-ethics__body p + p { margin-top: var(--s-4); }
.about-ethics__body p { margin: 0; font-size: var(--t-body); line-height: 1.7; }
.about-ethics__body a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.about-ethics__body a:hover { color: var(--p-ink); }

/* close: one quiet line of facts under the sentence */
.svc-aid__box p.about-close__facts { margin-top: var(--s-4); font-size: var(--t-body); }
html .svc-aid__box .about-close__facts a { color: #ffffff; font-weight: 600; text-decoration: none; }
html .svc-aid__box .about-close__facts a:hover { color: var(--p-inv-ink); opacity: .8; }

/* ===== Contacto ===== */
.contact-hero .hero__media img { object-position: 55% 40%; }

/* datos de contacto: four columns, the value is what the eye finds first */
.contact-ways__list { margin: var(--s-7) 0 0; display: grid; gap: var(--s-6) var(--gutter); }
@media (min-width: 640px) { .contact-ways__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .contact-ways__list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-7); } }
.contact-ways__list > div { padding-top: var(--s-4); border-top: 2px solid var(--p-ink); }
.contact-ways__list dt { font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
.contact-ways__list dd { margin: var(--s-3) 0 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-ways__list dd a { color: var(--p-accent); text-decoration: none; }
.contact-ways__list dd a + a { margin-left: var(--s-4); }
.contact-ways__list dd a:hover { color: var(--p-ink); }
.contact-ways__list dd span { display: block; margin-top: var(--s-2); font-family: var(--font-text); font-size: var(--t-small); letter-spacing: 0; color: var(--p-muted); }

/* formulario: the theme's form sits on a white panel beside the explanation */
.contact-form__note { margin: var(--s-5) 0 0; font-size: var(--t-body); line-height: 1.6; }
.contact-form__note a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.contact-form__panel { padding: var(--s-7); border-radius: var(--r-lg); background: var(--p-bg); box-shadow: 0 1px 2px rgb(14 42 61 / .06), 0 12px 32px rgb(14 42 61 / .08); min-height: 320px; }
@media (max-width: 1023px) { .contact-form__panel { margin-top: var(--s-6); } }
@media (max-width: 639px) { .contact-form__panel { padding: var(--s-5); } }

/* oficinas: a table of rows, name, address and phone on one line */
.contact-offices__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); }
.contact-offices__head h2 { margin: 0; }
.contact-offices__head p { margin: var(--s-3) 0 0; font-size: var(--t-body); color: var(--p-muted); }
.contact-offices__list { list-style: none; margin: var(--s-7) 0 0; padding: 0; }
.contact-offices__list li { display: grid; gap: var(--s-1) var(--s-5); padding: var(--s-4) 0; border-top: 1px solid var(--inst-line); }
.contact-offices__list li:last-child { border-bottom: 1px solid var(--inst-line); }
@media (min-width: 768px) { .contact-offices__list li { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) max-content; align-items: baseline; } }
.contact-offices__list strong { font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.contact-offices__list span { font-size: var(--t-body); color: var(--p-ink); }
.contact-offices__list a { font-weight: 600; font-size: var(--t-body); color: var(--p-accent); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-offices__list a:hover { color: var(--p-ink); }

/* ===== Dónde encontrarnos ===== */

/* oficinas: the five offices as selectable rows beside a large map */
.where-offices__grid { display: grid; gap: var(--s-6); margin-top: var(--s-7); }
@media (min-width: 1024px) { .where-offices__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); align-items: stretch; } }
.where-office-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.where-office-list li { position: relative; }
.where-office { display: grid; gap: 4px; width: 100%; min-height: 44px; padding: var(--s-4) 140px var(--s-4) var(--s-5); border: 0; border-radius: var(--r-md); background: transparent; color: var(--p-ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease-out; }
.where-office:hover { background: var(--p-surface); }
.where-office.is-active { background: var(--p-ink); color: var(--p-bg); }
.where-office:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 2px; }
.where-office__name { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.where-office__addr { font-size: var(--t-small); line-height: 1.45; color: var(--p-muted); }
.where-office.is-active .where-office__addr { color: color-mix(in oklab, var(--p-bg) 78%, transparent); }
.where-office__tel { position: absolute; right: var(--s-5); top: 50%; transform: translateY(-50%); font-weight: 600; font-size: var(--t-body); color: var(--p-accent); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.where-office-list li:has(.is-active) .where-office__tel { color: #ffffff; }
@media (max-width: 639px) {
  .where-office { padding-right: var(--s-4); }
  .where-office__tel { position: static; transform: none; display: inline-block; padding: var(--s-1) var(--s-4) var(--s-3); }
  .where-office-list li:has(.is-active) .where-office__tel { color: var(--p-accent); }
}
.where-offices__mail { margin: var(--s-5) 0 0; padding-left: var(--s-5); font-size: var(--t-body); }
.where-offices__mail a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.where-map { min-height: 420px; border-radius: var(--r-lg); overflow: hidden; background: var(--p-surface); }
@media (min-width: 1024px) { .where-map { height: 100%; min-height: 600px; } }
.where-map iframe { display: block; width: 100%; height: 100%; min-height: inherit; border: 0; }

/* Cataluña: a photo grid of the towns, each card a link to its local page */
.where-cat__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); }
.where-cat__head .section-head { max-width: 760px; margin: 0; }
.where-cities { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 640px) { .where-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .where-cities { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-6); } }
.where-city { display: grid; align-content: start; gap: var(--s-3); color: var(--p-ink); text-decoration: none; }
.where-city__img { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--p-bg); }
.where-city__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease-out; }
.where-city h3 { margin: var(--s-2) 0 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-card); line-height: 1.3; letter-spacing: -0.005em; transition: color .15s ease-out; }
.where-city p { margin: 0; font-size: var(--t-small); line-height: 1.5; color: var(--p-muted); }
.where-city:hover .where-city__img img, .where-city:focus-visible .where-city__img img { transform: scale(1.03); }
.where-city:hover h3, .where-city:focus-visible h3 { color: var(--p-accent); }

/* Aragón: the heading on the left, three towns as rows with a small photo on the right */
.where-arg__grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .where-arg__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-9); align-items: start; } }
.where-arg__head h2 { margin: 0; }
.where-arg__head p { margin: var(--s-4) 0 var(--s-6); font-size: var(--t-body); line-height: 1.6; }
.where-arg__head p a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.where-rows { list-style: none; margin: 0; padding: 0; }
.where-rows li { border-top: 1px solid var(--inst-line); }
.where-rows li:last-child { border-bottom: 1px solid var(--inst-line); }
.where-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-5); align-items: center; padding: var(--s-4) 0; color: var(--p-ink); text-decoration: none; }
@media (max-width: 639px) { .where-row { grid-template-columns: 104px minmax(0, 1fr); gap: var(--s-4); } }
.where-row__img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--p-surface); }
.where-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease-out; }
.where-row h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-card); line-height: 1.3; transition: color .15s ease-out; }
.where-row:hover h3, .where-row:focus-visible h3 { color: var(--p-accent); }
.where-row:hover .where-row__img img { transform: scale(1.04); }

/* ===== Política de privacidad ===== */
/* a compact header: the title and what the page answers, the key facts beside it */
.legal-hero .hero__lead { max-width: 56ch; }
.legal-summary { margin: 0; align-self: end; display: grid; }
@media (max-width: 1023px) { .legal-summary { margin-top: var(--s-6); } }
.legal-summary > div { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); font-size: var(--t-small); }
.legal-summary > div:last-child { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.legal-summary dt { font-weight: 600; }
.legal-summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.legal-summary a { color: var(--p-accent); font-weight: 600; text-decoration: none; }

/* the long read: an index that stays in view on wide screens, the text in a comfortable measure */
.legal-layout { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--s-9); align-items: start; } }
.legal-toc { padding: var(--s-5); border-radius: var(--r-lg); background: var(--p-surface); }
@media (min-width: 1024px) { .legal-toc { position: sticky; top: calc(var(--nav) + var(--s-5)); } }
.legal-toc__title { margin: 0 0 var(--s-3); font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc a { display: block; padding: var(--s-2) 0; font-size: var(--t-small); line-height: 1.4; font-weight: 600; color: var(--p-ink); text-decoration: none; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--p-accent); }
.legal-prose { max-width: 72ch; }
.legal-prose > h2:first-child { margin-top: 0; }
.legal-prose h2 { font-size: clamp(26px, 1vw + 20px, 36px); padding-top: var(--s-6); border-top: 1px solid var(--inst-line); }
.legal-prose > h2:first-child { padding-top: 0; border-top: 0; }
.legal-prose p { line-height: 1.75; }

/* ejercer derechos: a closing row with the e-mail as the action */
.legal-rights__row { display: grid; gap: var(--s-4); }
@media (min-width: 1024px) { .legal-rights__row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-9); align-items: start; } }
.legal-rights__row h2 { margin: 0; }
.legal-rights__row p { margin: 0 0 var(--s-5); font-size: var(--t-lead); line-height: 1.55; }

/* round 3, phones: the two partner logos sit side by side on smaller panels */
@media (max-width: 639px) {
  .about-partners__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
  .about-partners__logo { height: 140px; padding: var(--s-4); }
  .about-partners__logo img { max-height: 96px; }
  .about-partners__list strong { font-size: var(--t-small); }
}

/* round 3, phones: the nine towns become rows (small photo, name), like the Aragón list, so the list fits in two screens */
@media (max-width: 639px) {
  .where-cities { gap: 0; }
  .where-cities li { border-top: 1px solid var(--inst-line); }
  .where-cities li:last-child { border-bottom: 1px solid var(--inst-line); }
  .where-city { grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: var(--s-4); padding: var(--s-3) 0; }
  .where-city__img { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
  .where-city h3 { margin: 0; }
}
/* ==== /batch:institucional ==== */

/* Home fixes (17 nov): sections grow with their content instead of overflowing into the next one */
.home main > section:not(.hero) { height: auto !important; min-height: calc(var(--h, 1) * 100svh); }
/* Ayudas: head + calculator side by side at their natural height, the other calculators as one full-width row */
@media (min-width: 1024px) {
  #ayudas > .wrap { align-items: start !important; align-content: center; row-gap: var(--s-8); }
  #ayudas [data-ui="calculadora"], #ayudas .calc { height: auto !important; }
  #ayudas .calc { justify-content: flex-start !important; }
}
#ayudas .ayudas-more { padding-top: var(--s-6); border-top: 1px solid var(--line); }
#ayudas .ayudas-more .tools-title { margin: 0 0 var(--s-4) !important; }
#ayudas .ayudas-more .tools-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); }
#ayudas .ayudas-more .tools-list li { display: flex; }
#ayudas .ayudas-more .tools-list a { flex: 1; align-content: start; padding: var(--s-4) var(--s-4) var(--s-5); }
@media (max-width: 1279px) { #ayudas .ayudas-more .tools-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { #ayudas .ayudas-more .tools-list { grid-template-columns: minmax(0, 1fr); } }
/* Contact form: name and phone side by side, email and message full width, so every field lines up */
.form .field:has(> #f-email), .form .field:has(> textarea) { grid-column: 1 / -1; }
.form .field textarea { min-height: 120px; }
@media (min-width: 1024px) { #nosotros .frame--photo { position: sticky; top: calc(var(--nav) + var(--s-6)); align-self: start; } }

/* Home figures: no rule above, one quiet rule below */
#nosotros .about-facts { border-top: 0; padding-top: 0; flex-wrap: wrap; column-gap: var(--s-7); row-gap: var(--s-5); }
/* Home reviews: heading on top, three real reviews in one aligned row, no photo, no count */
.reviews--row .reviews__inner { display: flex; flex-direction: column; justify-content: center; gap: var(--s-8); width: 100%; }
.reviews--row .section-head { max-width: 640px; }
.reviews--row .review-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.reviews--row .review { display: grid; grid-template-rows: 1fr auto; margin: 0; padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-bg); border: 0; }
.reviews--row .review p { margin: 0; font-size: var(--t-lead); line-height: 1.5; color: var(--p-ink); }
.reviews--row .review footer { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); align-items: baseline; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.reviews--row .review cite { font-style: normal; font-weight: 600; color: var(--p-ink); }
.reviews--row .review footer span { font-size: var(--t-small); color: var(--p-muted); }
@media (max-width: 1023px) { .reviews--row .review-row { grid-template-columns: minmax(0, 1fr); } }

/* SureForms inside our panels: the plugin's own white box, padding and widths off; the panel is the card */
.srfm-form-container, .srfm-form-container.srfm-bg-color { background: transparent !important; background-image: none !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; border: 0 !important; max-width: none !important; width: 100% !important; }
.srfm-form-container *, .srfm-form-container *::before, .srfm-form-container *::after { box-sizing: border-box; }
.srfm-form-container .srfm-form { padding: 0 !important; background: transparent !important; width: 100% !important; max-width: none !important; }
.srfm-form-container input:not([type="checkbox"]):not([type="radio"]), .srfm-form-container textarea, .srfm-form-container select { width: 100% !important; max-width: 100% !important; min-height: 52px; padding: 12px 14px !important; }
.srfm-form-container textarea { min-height: 140px; }
.srfm-form-container .srfm-block-wrap, .srfm-form-container .srfm-block { margin-bottom: var(--s-4) !important; }
.srfm-form-container .srfm-description, .srfm-form-container .srfm-help-text { font-size: var(--t-small) !important; color: var(--p-muted) !important; }
.contact-form__panel { overflow: hidden; }
.form > .hp, .form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; grid-column: auto; }
.form > input[type="hidden"] { display: none; }
.contact-form__panel { min-height: 0; }
.contact-form__panel > .form:first-child { margin-top: 0 !important; }

/* ==== batch:locales-a ==== */
/* ---------- Locales A (round 3): Sabadell 1655, Llinars 1649, La Garriga 1646, Cardedeu 1642, Mataró 1639 ----------
   Every selector hangs from a .la-* class. Reuses from site.css: .hero, .steps, .svc-aid__box, .faq, .review, .btn,
   .tools-list. Cards take var(--surface), so they contrast on both grounds. */

.la-hero, .la-intro, .la-svc, .la-cdd, .la-area, .la-why, .la-process, .la-voices, .la-price, .la-aid, .la-faq, .la-related, .la-close {
  --la-line: color-mix(in oklab, var(--p-ink) 13%, transparent);
}
.la-h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.la-h3--s { font-family: var(--font-text); font-size: var(--t-lead); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.la-head { max-width: 780px; }
.la-head h2 { margin: 0; }
.la-head p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; color: var(--p-ink); }
:is(.la-intro, .la-svc, .la-area, .la-why, .la-price, .la-faq, .la-close, .la-cdd) a:not(.btn) { color: var(--p-accent); font-weight: 600; text-decoration: none; }
:is(.la-intro, .la-svc, .la-area, .la-why, .la-price, .la-faq, .la-close, .la-cdd) a:not(.btn):hover { color: var(--p-ink); }

/* hero: one quiet local fact under the buttons */
.la-hero__meta { margin: var(--s-5) 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--p-muted); }
.la-hero .hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); display: block; }

/* 1. the town: a short read beside three local facts */
.la-intro__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .la-intro__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: var(--s-9); align-items: start; } }
.la-intro__text > p { margin: 0; font-size: var(--t-body); line-height: 1.7; max-width: 64ch; color: var(--p-ink); }
.la-intro__text > p + p { margin-top: var(--s-5); }
.la-intro__text > p.la-intro__lead { margin-bottom: var(--s-7); font-family: var(--font-display); font-size: clamp(24px, 1.1vw + 18px, 34px); line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; }
.la-facts { padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); }
.la-facts__title { margin: 0 0 var(--s-2); font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.la-facts dl { margin: 0; display: grid; }
.la-facts dl > div { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-top: 1px solid var(--la-line); }
.la-facts dl > div:first-child { border-top: 0; }
.la-facts dt { font-size: var(--t-small); line-height: 1.4; color: var(--p-muted); }
.la-facts dd { margin: 0; font-size: var(--t-body); font-weight: 600; line-height: 1.4; color: var(--p-ink); }
.la-facts dd span { display: block; font-weight: 400; }

/* 2. services: three columns whose parts line up (photo, name, one paragraph, what is included) */
.la-svc__grid { display: grid; gap: var(--s-8) var(--gutter); margin-top: var(--s-8); }
.la-svc__item { display: grid; align-content: start; gap: 0; }
@media (min-width: 900px) {
  .la-svc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; column-gap: var(--s-7); row-gap: 0; }
  .la-svc__item { grid-row: span 4; grid-template-rows: subgrid; }
}
.la-svc__img { margin: 0 0 var(--s-5); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.la-svc__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.la-svc__item > p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.la-incl { list-style: none; margin: var(--s-5) 0 0; padding: 0; align-self: start; border-top: 2px solid var(--p-ink); }
.la-incl li { padding: var(--s-3) 0; border-bottom: 1px solid var(--la-line); font-size: var(--t-small); line-height: 1.45; color: var(--p-ink); }
.la-svc__help { display: grid; gap: var(--s-5) var(--gutter); align-items: center; margin-top: var(--s-8); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); }
@media (min-width: 900px) { .la-svc__help { grid-template-columns: minmax(0, 1fr) auto; padding: var(--s-6) var(--s-7); } }
.la-svc__help p { margin: var(--s-2) 0 0; font-size: var(--t-body); line-height: 1.55; max-width: 60ch; }

/* 3. Cardedeu: the day centre, a tall photograph beside what a day there holds */
.la-cdd__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .la-cdd__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-9); align-items: center; } }
.la-cdd__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
@media (max-width: 1023px) { .la-cdd__img { aspect-ratio: 16 / 10; } }
.la-cdd__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.la-cdd__text h2 { margin: 0; }
.la-cdd__text > p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.65; max-width: 60ch; }
.la-cdd__text > p.la-cdd__lead { font-size: var(--t-lead); line-height: 1.55; }
.la-cdd__text .btn-row { margin-top: var(--s-6); }
.la-dl { margin: var(--s-6) 0 0; display: grid; }
.la-dl > div { display: grid; gap: var(--s-1) var(--s-5); padding: var(--s-4) 0; border-top: 1px solid var(--la-line); }
.la-dl > div:last-child { border-bottom: 1px solid var(--la-line); }
@media (min-width: 640px) { .la-dl > div { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); } }
.la-dl dt { font-weight: 600; color: var(--p-ink); line-height: 1.5; }
.la-dl dd { margin: 0; line-height: 1.55; color: var(--p-ink); }

/* 4. area: the nearest office with its map on the left, the places as a directory on the right */
.la-area__grid { display: grid; gap: var(--s-8) var(--gutter); }
@media (min-width: 1024px) { .la-area__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; } .la-office { order: -1; position: sticky; top: calc(var(--nav) + var(--s-5)); } }
.la-area__text h2 { margin: 0; }
.la-area__lead { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 56ch; }
.la-area__text > .la-h3 { margin-top: var(--s-7); }
.la-places { display: grid; gap: var(--s-6) var(--s-7); margin-top: var(--s-4); }
@media (min-width: 640px) { .la-places--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.la-places__label { margin: 0 0 var(--s-2); font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
.la-places ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s-6); border-top: 2px solid var(--p-ink); }
.la-places--2 ul { columns: 1; }
@media (min-width: 640px) { .la-places--1 ul { columns: 3; } }
.la-places li { break-inside: avoid; padding: var(--s-2) 0; border-bottom: 1px solid var(--la-line); font-size: var(--t-body); line-height: 1.4; color: var(--p-ink); }
.la-area__more { margin: var(--s-5) 0 0; font-size: var(--t-body); line-height: 1.65; max-width: 62ch; }
.la-area__note { margin: var(--s-7) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--la-line); font-size: var(--t-body); line-height: 1.65; max-width: 62ch; }
.la-office { display: grid; gap: var(--s-5); align-content: start; }
.la-office__map { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.la-office__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.la-office__title { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
.la-office__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.la-office__list li { display: grid; gap: 2px; padding-top: var(--s-4); border-top: 1px solid var(--la-line); }
.la-office__name { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.la-office__addr { font-size: var(--t-body); line-height: 1.45; color: var(--p-ink); }
.la-office__tel { justify-self: start; font-weight: 600; color: var(--p-accent); text-decoration: none; font-variant-numeric: tabular-nums; }
.la-office__tel:hover { color: var(--p-ink); }

/* 5. why: a comparison table, the platform against SACOM, row by row */
.la-compare { margin-top: var(--s-8); }
.la-compare table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.la-compare thead th { padding: 0 var(--s-5) var(--s-4) 0; text-align: left; vertical-align: bottom; font-size: var(--t-small); font-weight: 600; line-height: 1.4; color: var(--p-muted); border-bottom: 2px solid var(--p-ink); }
.la-compare thead th.la-compare__us { color: var(--p-ink); }
.la-compare tbody th, .la-compare tbody td { padding: var(--s-5) var(--s-5) var(--s-5) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--la-line); line-height: 1.5; }
.la-compare tbody th { font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-lead); line-height: 1.3; color: var(--p-ink); }
.la-compare tbody td { font-size: var(--t-body); color: var(--p-muted); }
.la-compare tbody td.la-compare__us { color: var(--p-ink); font-weight: 500; }
@media (min-width: 900px) { .la-compare col.la-compare__c1 { width: 28%; } }
@media (max-width: 899px) {
  .la-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .la-compare table, .la-compare tbody, .la-compare tr, .la-compare th, .la-compare td { display: block; width: auto; }
  .la-compare tbody tr { padding: var(--s-5) 0; border-top: 1px solid var(--la-line); }
  .la-compare tbody tr:first-child { border-top: 2px solid var(--p-ink); }
  .la-compare tbody th, .la-compare tbody td { padding: 0; border: 0; }
  .la-compare tbody td { margin-top: var(--s-3); }
  .la-compare tbody td::before { content: attr(data-label); display: block; font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
}

/* 6. process: four real steps on one line (pilot .steps) */
.la-process .steps { margin-top: var(--s-8); }
.la-process .steps p { max-width: 34ch; }

/* 7. voices: the heading and one quote large, the two others beside */
.la-voices__grid { display: grid; gap: var(--s-8) var(--gutter); }
@media (min-width: 1024px) { .la-voices__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: start; } }
.la-voices h2 { margin: 0 0 var(--s-8); max-width: 22ch; }
.la-voices .review { margin: 0; }
.la-voices__lead .review { border-top: 2px solid var(--p-ink); }
.la-voices__lead .review p { font-family: var(--font-display); font-size: clamp(24px, 1vw + 19px, 32px); line-height: 1.35; letter-spacing: -0.015em; }
.la-voices__rest { display: grid; gap: var(--s-7); }
.la-voices__rest .review p { font-size: var(--t-body); line-height: 1.6; }

/* 8. price: the answer on the left, what moves the price as rows on the right */
.la-price__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .la-price__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-9); align-items: start; } }
.la-price__head h2 { margin: 0; }
.la-price__head p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 44ch; }
.la-rows { margin: 0; display: grid; border-top: 2px solid var(--p-ink); }
.la-rows > div { display: grid; gap: var(--s-1) var(--s-6); padding: var(--s-5) 0; border-bottom: 1px solid var(--la-line); }
@media (min-width: 640px) { .la-rows > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.la-rows dt { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.la-rows dd { margin: 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.la-price__aside { margin: var(--s-6) 0 0; padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--surface); font-size: var(--t-body); line-height: 1.6; }
.la-price__aside strong { font-weight: 600; }

/* 9. the dependency aid: the pilot's dark band */
.la-aid .svc-aid__box p + p { font-size: var(--t-body); line-height: 1.6; }
.la-aid .svc-aid__box strong { color: var(--p-inv-ink); font-weight: 600; }
.la-aid .svc-aid__box .btn-row { align-self: center; }

/* 10. FAQ: the heading and a way to ask beside the answers */
.la-faq__grid { display: grid; gap: var(--s-6) var(--gutter); }
@media (min-width: 1024px) { .la-faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; } .la-faq__head { position: sticky; top: calc(var(--nav) + var(--s-5)); } }
.la-faq__head h2 { margin: 0; }
.la-faq__head p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.6; }
.la-faq__head .btn-row { margin-top: var(--s-5); }
.la-faq .faq { border-top: 2px solid var(--p-ink); }
.la-faq .faq details { border-bottom: 1px solid var(--la-line); }
.la-faq .faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); padding: var(--s-5) 0; font-size: var(--t-lead); line-height: 1.35; font-weight: 500; color: var(--p-ink); }
.la-faq .faq summary::-webkit-details-marker { display: none; }
.la-faq .faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease-out; }
.la-faq .faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.la-faq .faq summary:hover { color: var(--p-accent); }
.la-faq .faq details p { margin: 0 0 var(--s-5); font-size: var(--t-body); line-height: 1.7; max-width: 68ch; }

/* 11. Mataró: related reading */
.la-related .tools-list--grid { margin-top: var(--s-7); }

/* 12. close: one heading, one sentence, two buttons, one quiet line */
.la-close__box { display: grid; gap: var(--s-6) var(--gutter); padding-top: var(--s-7); border-top: 2px solid var(--p-ink); }
@media (min-width: 1024px) { .la-close__box { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: end; } .la-close__box .btn-row { justify-content: flex-end; } }
.la-close__box h2 { margin: 0; max-width: 18ch; }
.la-close__box p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 48ch; }
.la-close__box p.la-close__facts { grid-column: 1 / -1; margin: 0; padding-top: var(--s-5); border-top: 1px solid var(--la-line); font-size: var(--t-small); line-height: 1.6; color: var(--p-muted); max-width: none; }
h3.la-places__label { font-family: var(--font-text); letter-spacing: 0; line-height: 1.4; }
/* two lists side by side: labels of different length still start both lists on one line */
@media (min-width: 640px) { .la-places--2 { grid-template-rows: auto auto; } .la-places--2 > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; } .la-places--2 .la-places__label { align-self: end; } }
.la-area .la-places h3.la-places__label { margin: 0 0 var(--s-2); }
/* ==== /batch:locales-a ==== */

/* ==== batch:herramientas ==== */
/* ---------- Herramientas: calculators and tests (batch "herramientas", premium rebuild) ----------
   Every selector hangs from a class introduced here (tl-*), or from .tl-page, the class each tool page's sections carry.
   Reuses the kit's tokens, .test-* (the step card), .steps, .faq, .svc-aid__box and .tools-list from site.css. */

/* hero: the words on the left, the tool on the right, both in the first screen */
.tl-hero .hero__grid { align-items: start; row-gap: var(--s-7); }
.tl-hero .hero__text { align-self: start; padding-top: var(--s-5); }
.tl-hero h1 { font-size: clamp(36px, 2.2vw + 24px, 58px); line-height: 1.06; }
.tl-hero .hero__lead { margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.55; }
.tl-hero .hero__lead a, .tl-line a, .tl-tool a:not(.btn) { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-hero .hero__lead a:hover, .tl-line a:hover, .tl-tool a:not(.btn):hover { color: var(--p-ink); }
.tl-meta { list-style: none; margin: var(--s-6) 0 0; padding: var(--s-5) 0 0; display: grid; gap: var(--s-2); border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); font-size: var(--t-small); line-height: 1.5; color: var(--p-ink); }
.tl-meta li { position: relative; padding-left: var(--s-4); }
.tl-meta li::before { content: ""; position: absolute; left: 1px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in oklab, var(--p-ink) 45%, transparent); }
.tl-meta strong { font-weight: 600; }
.tl-line { margin: var(--s-5) 0 0; font-size: var(--t-small); line-height: 1.55; color: var(--p-ink); }
.tl-line + .tl-line { margin-top: var(--s-3); }
.tl-line strong { font-weight: 600; }
.tl-hero .btn-row { margin-top: var(--s-6); }

/* the tool: the home calculator's surface, a little more air, the steps as plain fieldsets in the page */
.tl-tool { position: relative; }
.tl-tool .calc { padding: var(--s-7); }
.tl-tool .test-count { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); }
.tl-tool .test-q { font-size: clamp(24px, .6vw + 20px, 30px); line-height: 1.22; letter-spacing: -0.01em; font-weight: var(--display-weight, 400); }
.tl-tool legend { padding: 0; margin: 0; width: 100%; }
.tl-tool legend .test-q { margin: 0; }
.tl-tool fieldset + fieldset { margin-top: var(--s-6); }
.tl-tool [data-step][hidden], .tl-tool [hidden] { display: none !important; }
.tl-tool .test-opts label { min-height: 60px; }
.tl-tool .test-opts small { line-height: 1.4; }
.tl-tool .test-nav .btn { min-width: 128px; }
.tl-tool .test-nav .btn[disabled] { opacity: .45; cursor: not-allowed; }
.tl-tool .field :is(input, select) { background: var(--p-bg); }
.tl-tool .tl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.tl-tool .tl-fields > .field--full { grid-column: 1 / -1; }
@media (max-width: 639px) { .tl-tool .tl-fields { grid-template-columns: minmax(0, 1fr); } }
.tl-tool .tl-help { margin: var(--s-2) 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--p-muted); }

/* the result: a title in the display face, its lines, the hand-off */
.tl-tool .test-result { scroll-margin-top: calc(var(--nav, 72px) + var(--s-5)); }
.tl-tool .test-result h2.test-q { font-size: clamp(26px, .8vw + 21px, 34px); }
.tl-tool .test-result h3 { margin: var(--s-6) 0 0; font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.tl-tool .test-result h3 + * { margin-top: var(--s-3); }
.tl-tool .test-result ol { list-style: decimal; margin: var(--s-3) 0 0; padding-left: 1.3em; display: grid; gap: var(--s-3); font-size: var(--t-small); line-height: 1.55; }
.tl-tool .test-result ol a, .tl-tool .test-prests a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-tool .test-prests li { align-items: start; }
.tl-tool .test-prests strong { font-weight: 600; }
.tl-tool .tl-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); padding: var(--s-5) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.tl-tool .tl-amount b { font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: clamp(32px, 1.4vw + 24px, 44px); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tl-tool .tl-amount span { font-size: var(--t-small); color: var(--p-muted); }
.tl-tool .tl-handoff { margin-top: var(--s-6); padding: var(--s-6); border-radius: var(--r-md); background: var(--p-bg); }
.tl-tool .tl-handoff > * + * { margin-top: var(--s-3); }
.tl-tool .tl-handoff h3 { margin-top: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); letter-spacing: -0.01em; }
.tl-tool .tl-handoff .form { margin-top: var(--s-5); }
.tl-tool .tl-handoff .btn-row { margin-top: var(--s-4); }
.tl-tool .tl-restart { margin-top: var(--s-6); }
@media (max-width: 639px) {
  .tl-tool .calc { padding: var(--s-6) var(--s-4); border-radius: var(--r-lg); }
  .tl-tool .tl-handoff { padding: var(--s-5) var(--s-4); }
  .tl-tool .test-nav .btn { min-width: 0; flex: 1; }
}

/* section head used across the explanation: heading and its first line, left-aligned, no eyebrow */
.tl-head { max-width: 780px; display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.tl-head h2 { margin: 0; }
.tl-head p { margin: 0; font-size: var(--t-lead); line-height: 1.55; color: var(--p-ink); }
.tl-head a, .tl-text a, .tl-card a, .tl-figure a, .tl-split a:not(.btn), .tl-duo a, .tl-faq a, .tl-band a:not(.btn), .tl-quote a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-head a:hover, .tl-text a:hover, .tl-card a:hover, .tl-split a:not(.btn):hover, .tl-duo a:hover, .tl-faq a:hover { color: var(--p-ink); }
.tl-text { font-size: var(--t-body); line-height: 1.7; color: var(--p-ink); }
.tl-text > * + * { margin-top: var(--s-4); }
.tl-text strong { font-weight: 600; }

/* 1. short answer: the answer as a large lead on the left, the key figures as a definition list on the right */
.tl-answer__grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .tl-answer__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-9, 96px); align-items: start; } }
.tl-answer__label { margin: 0 0 var(--s-4); font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; color: var(--p-ink); }
.tl-answer__lead { font-size: clamp(20px, .5vw + 17px, 24px); line-height: 1.55; color: var(--p-ink); }
.tl-answer__lead > * + * { margin-top: var(--s-5); }
.tl-answer__lead p + p { font-size: var(--t-body); line-height: 1.65; }
.tl-answer__lead strong { font-weight: 600; }
.tl-figures { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 2px solid var(--p-ink); }
.tl-figures > div { display: contents; }
.tl-figures dt, .tl-figures dd { padding: var(--s-4) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.tl-figures dt { font-size: var(--t-body); line-height: 1.4; color: var(--p-ink); }
.tl-figures dt small { display: block; font-size: var(--t-small); color: var(--p-muted); }
.tl-figures dd { margin: 0; padding-left: var(--s-5); text-align: right; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--p-ink); }
.tl-figures dd small { display: block; font-family: var(--font-text); font-size: var(--t-small); color: var(--p-muted); white-space: normal; }
.tl-figures__title { margin: 0 0 var(--s-3); font-size: var(--t-small); font-weight: 600; color: var(--p-ink); }
.tl-figures__foot { margin: var(--s-3) 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--p-muted); }

/* 2. duo: two short questions side by side, each with its own heading, a rule above */
.tl-duo__grid { display: grid; gap: var(--s-8) var(--s-9, 96px); }
@media (min-width: 1024px) { .tl-duo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl-duo__item { padding-top: var(--s-5); border-top: 2px solid var(--p-ink); }
.tl-duo__item h2 { margin: 0 0 var(--s-5); font-size: clamp(26px, 1vw + 20px, 36px); line-height: 1.15; }
.tl-duo__item h3 { margin: 0 0 var(--s-4); font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; }

/* 3. data: a heading with its text on the left, the table wide on a light ground */
.tl-data .tl-head { max-width: 860px; }
.tl-table { overflow-x: auto; border-radius: var(--r-lg); background: var(--p-bg); box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 10%, transparent); }
.tl-table table { width: 100%; border-collapse: collapse; font-size: var(--t-body); line-height: 1.45; }
.tl-table th, .tl-table td { padding: var(--s-4) var(--s-5); text-align: left; vertical-align: top; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 10%, transparent); }
.tl-table tr:last-child > * { border-bottom: 0; }
.tl-table thead th { font-size: var(--t-small); font-weight: 600; color: var(--p-ink); background: color-mix(in oklab, var(--p-ink) 4%, var(--p-bg)); }
.tl-table tbody th { font-weight: 600; }
.tl-table tbody th span, .tl-table td span { display: block; font-weight: 400; font-size: var(--t-small); color: var(--p-muted); }
.tl-table td { font-variant-numeric: tabular-nums; }
.tl-table td.tl-num { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; white-space: nowrap; }
.tl-table a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-table caption { caption-side: bottom; padding: var(--s-3) var(--s-5); text-align: left; font-size: var(--t-small); color: var(--p-muted); }
.tl-data__after { max-width: 860px; margin-top: var(--s-6); }
@media (max-width: 639px) { .tl-table table { font-size: var(--t-small); } .tl-table th, .tl-table td { padding: var(--s-3); } .tl-table td.tl-num { font-size: var(--t-body); } }

/* 4. cards: two to four items, each with its name, one line and a real figure */
.tl-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .tl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tl-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tl-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tl-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); color: var(--p-ink); }
.ground-surface .tl-card { background: var(--p-bg); }
.tl-card h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.tl-card p { margin: 0; font-size: var(--t-small); line-height: 1.55; }
.tl-card .tl-card__fig { margin-top: auto !important; padding-top: var(--s-5); font-family: var(--font-display); font-size: clamp(26px, .8vw + 20px, 34px); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tl-card .tl-card__fig small { display: block; margin-top: var(--s-1); font-family: var(--font-text); font-size: var(--t-small); letter-spacing: 0; color: var(--p-muted); }
.tl-card__link { font-size: var(--t-small); }
.tl-card--dark { background: var(--p-inv-bg); color: var(--p-inv-ink); }
.tl-card--dark a { color: #ffffff; }
.tl-card--dark .tl-card__fig small, .tl-card--dark p { color: var(--p-inv-muted); }
.tl-aside-line { margin-top: var(--s-6); display: grid; gap: var(--s-2) var(--s-6); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); font-size: var(--t-body); line-height: 1.55; }
.ground-surface .tl-aside-line { background: var(--p-bg); }
@media (min-width: 1024px) { .tl-aside-line { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: baseline; } }
.tl-aside-line > p { margin: 0; }
.tl-aside-line > p:first-child { font-weight: 600; }
.tl-aside-line a { color: var(--p-accent); font-weight: 600; text-decoration: none; }

/* 5. split: a real photograph beside the words */
.tl-split__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .tl-split__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-9, 96px); } .tl-split--flip .tl-split__media { order: 2; } .tl-split--flip .tl-split__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.tl-split__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--p-surface); }
.tl-split__media--wide { aspect-ratio: 3 / 2; }
@media (max-width: 1023px) { .tl-split__media { aspect-ratio: 3 / 2; } }
.tl-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-split__body h2 { margin: 0 0 var(--s-5); }
.tl-split__body .btn-row { margin-top: var(--s-6); }

/* 6. FAQ: the heading stays on the left while the questions scroll on the right */
.tl-faq__grid { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .tl-faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-9, 96px); align-items: start; } .tl-faq__head { position: sticky; top: calc(var(--nav, 72px) + var(--s-6)); } }
.tl-faq__head h2 { margin: 0; }
.tl-faq__head p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.tl-faq .faq { border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.tl-faq .faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); padding: var(--s-5) 0; font-size: var(--t-body); line-height: 1.4; list-style: none; }
.tl-faq .faq summary::-webkit-details-marker { display: none; }
.tl-faq .faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .18s ease-out; }
.tl-faq .faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.tl-faq .faq summary:hover { color: var(--p-accent); }
.tl-faq .faq details > :not(summary) { margin: 0 0 var(--s-5); max-width: 68ch; font-size: var(--t-body); line-height: 1.7; }
.tl-faq .faq details > :not(summary) + :not(summary) { margin-top: calc(-1 * var(--s-2)); }
.tl-faq .faq strong { font-weight: 600; }

/* 7. related: guides and tools as linked cards on a grid */
.tl-related .tools-list--grid { margin-top: 0; }
@media (min-width: 1024px) { .tl-related .tools-list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tl-related .tools-list a { height: 100%; align-content: start; }
.tl-related .tools-list em { font-style: normal; font-size: var(--t-small); color: var(--p-muted); }

/* 8. a numbered sequence (reuses .steps); the band's small print; a signed note at the end */
.tl-steps .steps p a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-band .svc-aid__box p a { color: #ffffff; }
@media (min-width: 1024px) { .tl-band .svc-aid__box .btn-row { flex-direction: column; align-items: stretch; justify-self: end; min-width: 280px; } }
.tl-sign { max-width: 860px; margin: var(--s-6) 0 0; font-size: var(--t-small); line-height: 1.6; color: var(--p-muted); }

/* 9. long read: an editorial column for the long explanations, with notes beside it */
.tl-read__grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .tl-read__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s-9, 96px); align-items: start; } .tl-read__aside { position: sticky; top: calc(var(--nav, 72px) + var(--s-6)); } }
.tl-read .prose { max-width: 72ch; }
.tl-read .prose > h2:first-child { margin-top: 0; }
.tl-read__aside { display: grid; gap: var(--s-5); }
.tl-read__aside .note { margin: 0; }

/* 10. a quote from a real family */
.tl-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .tl-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tl-quote { display: flex; flex-direction: column; gap: var(--s-4); margin: 0; padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.tl-quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--t-lead); line-height: 1.45; color: var(--p-ink); }
.tl-quote figcaption { margin-top: auto; font-size: var(--t-small); font-weight: 600; color: var(--p-ink); }
.tl-quote figcaption span { display: block; font-weight: 400; color: var(--p-muted); }

/* the hero words stay at the top (and in view on wide screens) while a long result scrolls beside them */
body:not(.home) main > section.tl-hero .hero__text { align-self: start; }
@media (min-width: 1024px) { body:not(.home) main > section.tl-hero .hero__text { position: sticky; top: calc(var(--nav, 72px) + var(--s-6)); } }
.tl-tool [tabindex="-1"]:focus { outline: none; }
/* each step carries its own count and bar inside its legend (a legend always renders first in its fieldset) */
.tl-tool legend .test-count, .tl-tool legend .test-bar { display: block; }
.tl-tool legend .test-bar > span { display: block; }

/* ---------- tools hub (1771): the four-step path, each step with its tools as cards; the guides beside their heading ---------- */
.tl-path { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-7) var(--s-5); }
@media (min-width: 1024px) { .tl-path { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tl-path__step { display: flex; flex-direction: column; gap: var(--s-4); }
.tl-path__q { position: relative; margin: 0 0 var(--s-2); display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.tl-path__q span { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--p-ink); color: var(--p-bg); font-family: var(--font-text); font-size: var(--t-small); font-weight: 600; letter-spacing: 0; }
@media (min-width: 1024px) {
  .tl-path__step { position: relative; }
  .tl-path__step:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 52px; right: calc(-1 * var(--s-5) + 8px); height: 1px; background: color-mix(in oklab, var(--p-ink) 25%, transparent); z-index: 0; }
  .tl-path__step .tl-path__q { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .tl-path__q span { position: relative; z-index: 1; }
}
.tl-tile { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-bg); color: var(--p-ink); text-decoration: none; box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 8%, transparent); transition: box-shadow .16s ease-out, transform .16s ease-out; }
.tl-path__tiles { display: grid; gap: var(--s-4); align-content: start; }
.tl-tile:hover, .tl-tile:focus-visible { box-shadow: 0 0 0 2px var(--p-accent); transform: translateY(-2px); }
.tl-tile .tl-tile__name { margin: 0; font-family: var(--font-display); font-size: clamp(22px, .4vw + 19px, 26px); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.tl-tile p { margin: 0; font-size: var(--t-small); line-height: 1.55; color: var(--p-ink); opacity: .82; }
.tl-tile__go { margin-top: auto; padding-top: var(--s-3); font-size: var(--t-small); font-weight: 600; color: var(--p-accent); }
.tl-tile--dark { background: var(--p-inv-bg); color: var(--p-inv-ink); box-shadow: none; }
.tl-tile--dark .tl-tile__name { color: var(--p-inv-ink); }
.tl-tile--dark p { color: var(--p-inv-muted); opacity: 1; }
.tl-tile--dark .tl-tile__go { color: #ffffff; }
.tl-path__extra { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .tl-path__extra { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: start; } }
.tl-path__pair { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .tl-path__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl-guides-hub__grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .tl-guides-hub__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-9, 96px); align-items: start; } }
.tl-guides-hub__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--s-6); border-top: 2px solid var(--p-ink); }
@media (min-width: 640px) { .tl-guides-hub__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl-guides-hub__list a { display: grid; gap: 2px; padding: var(--s-5) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); color: var(--p-ink); text-decoration: none; }
.tl-guides-hub__list strong { font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-accent); transition: color .15s ease-out; }
.tl-guides-hub__list span { font-size: var(--t-small); color: var(--p-muted); }
.tl-guides-hub__list a:hover strong, .tl-guides-hub__list a:focus-visible strong { color: var(--p-ink); }
.tl-band .tl-band__title { margin: 0; font-family: var(--font-display); font-size: var(--t-h2); font-weight: var(--display-weight, 400); line-height: 1.12; letter-spacing: -0.02em; color: var(--p-inv-ink); }
.tl-band .svc-aid__box p + p { margin-top: var(--s-3); font-size: var(--t-body); }

/* ---------- shared fixes found while building the batch ---------- */
/* a list line that starts with <strong> keeps it inline in the tools (site.css puts a leading strong on its own line) */
.tl-tool .test-result :is(.plain-list, ul, ol) li > strong:first-child { display: inline; }
/* fieldsets inside any tool card start bare, numbered lists keep their numbers */
.tl-tool fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:is(.tl-tool, .tl-card, .tl-aside-line, .tl-read, .note) ol { list-style: decimal; }
/* a FAQ question that stays a heading reads like the other questions */
.tl-faq .faq summary :is(h2, h3, h4) { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }
/* four related links on one row when there are exactly four */
@media (min-width: 1024px) { .tl-related .tools-list--grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- page 1769 ---------- */
/* 1769 test de grado: the scale labels sit in the middle of their band; the coefficients and the grades table beside their text */
.tl-p1769 .scale span:not(.scale__mark) { text-align: center; }
.tl-p1769 .tl-duo__item .tl-figures { margin-top: var(--s-6); }
.tl-p1769 .tl-duo__item .tl-table { margin-top: var(--s-5); }
.tl-p1769 .tl-duo__item .tl-table tbody th { white-space: nowrap; }

/* ---------- page 1770 ---------- */
/* 1770 comparador: the short answers side by side, the result card under the form with the two prestaciones as two
   columns (the recommended one outlined), the two "¿Cuándo conviene…?" questions stacked beside the photo */
.tl-p1770 .tl-help { margin: 0 0 var(--s-5); }
.tl-p1770 fieldset .tl-help { margin: var(--s-4) 0 0; }
.tl-p1770 .test-count { color: var(--p-accent); }
@media (min-width: 640px) { .tl-p1770 .cmp-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.tl-p1770 .cmp-row label { min-height: 72px; }
.tl-p1770 .cmp-fields { margin-top: var(--s-5); }
.tl-p1770 .cmp-result { margin-top: var(--s-5); }
.tl-p1770 .cmp-result .test-count { color: var(--p-ink); }
.tl-p1770 .cmp-cols { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .tl-p1770 .cmp-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl-p1770 .cmp-col { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-md); background: var(--p-bg); box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 12%, transparent); }
.tl-p1770 .cmp-col.best { box-shadow: 0 0 0 2px var(--p-action); }
.tl-p1770 .cmp-col__who { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
.tl-p1770 .cmp-col.best .cmp-col__who { color: var(--p-action); }
.tl-p1770 .test-result .cmp-col h3 { margin: 0; font-size: var(--t-body); line-height: 1.35; }
.tl-p1770 .cmp-col__amt { margin: var(--s-3) 0 0; font-size: var(--t-small); color: var(--p-muted); }
.tl-p1770 .cmp-col__amt b { font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: clamp(28px, 1vw + 22px, 36px); line-height: 1.1; letter-spacing: -0.02em; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.tl-p1770 .cmp-col__year { margin: 0; font-size: var(--t-small); color: var(--p-ink); }
.tl-p1770 .cmp-col .plain-list { margin-top: var(--s-3); }
.tl-p1770 .cmp-col .plain-list li { font-size: var(--t-small); }
.tl-p1770 .cmp-cost { margin-top: var(--s-5); }
.tl-p1770 .tools-list { margin-top: var(--s-3); }
.tl-p1770.tl-split .cmp-when h2 + p { margin-top: var(--s-4); }
.tl-p1770.tl-split .cmp-when p + h2 { margin-top: var(--s-8); }
.tl-p1770 .tl-table tbody th, .tl-p1770 .tl-table td.tl-num { white-space: nowrap; }

/* ---------- page 1750 ---------- */
/* 1750 calculadora Grado III+: the warning under the hero words, the two conditions, the five-step procedure,
   the Grado III / III+ differences as a definition list */
.tl-p1750 .g3p-alert { margin-top: var(--s-6); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--p-inv-bg); color: var(--p-inv-ink); }
.tl-p1750 .g3p-alert h3 { margin: 0; font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; line-height: 1.4; color: var(--p-inv-ink); }
.tl-p1750 .g3p-alert p { margin: var(--s-2) 0 0; font-size: var(--t-small); line-height: 1.55; color: var(--p-inv-muted); }
.tl-p1750 .g3p-alert strong { color: var(--p-inv-ink); font-weight: 600; }
.tl-p1750 .g3p-amount-label { margin: var(--s-5) 0 0; font-size: var(--t-small); font-weight: 600; color: var(--p-ink); }
.tl-p1750 .g3p-amount-label + .tl-amount { margin-top: var(--s-2); }

.tl-p1750 .g3p-conds { counter-reset: cond; }
@media (min-width: 640px) { .tl-p1750 .g3p-conds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl-p1750 .g3p-conds .tl-card { counter-increment: cond; background: var(--p-bg); }
.tl-p1750 .g3p-conds .tl-card::before { content: counter(cond); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--p-ink); color: var(--p-bg); font-weight: 600; font-size: var(--t-small); }
.tl-p1750 .g3p-conds .tl-card p { font-size: var(--t-body); }
.tl-p1750 .g3p-who { display: grid; gap: var(--s-6); margin-top: var(--s-8); }
@media (min-width: 1024px) { .tl-p1750 .g3p-who { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-9, 96px); align-items: start; } }
.tl-p1750 .g3p-who h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; }
.tl-p1750 .g3p-who .plain-list strong { font-weight: 600; }
.tl-p1750 .g3p-note { padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--p-bg); font-size: var(--t-body); line-height: 1.6; }
.tl-p1750 .g3p-note p { margin: 0; }

@media (min-width: 1024px) {
  .tl-p1750 .g3p-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--s-6); }
  .tl-p1750 .g3p-steps li::after { right: calc(-1 * var(--s-6) + 12px); }
}
.tl-p1750 .g3p-steps strong { font-weight: 600; }
.tl-p1750 .g3p-errors { margin-top: var(--s-8); padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-bg); }
@media (min-width: 1024px) { .tl-p1750 .g3p-errors { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s-6); } }
.tl-p1750 .g3p-errors__title { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; }
.tl-p1750 .g3p-errors ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s-2); font-size: var(--t-body); line-height: 1.55; }
@media (max-width: 1023px) { .tl-p1750 .g3p-errors ol { margin-top: var(--s-4); } }

.tl-p1750 .g3p-diff { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .tl-p1750 .g3p-diff { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-9, 96px); align-items: start; } }
.tl-p1750 .g3p-diff h2 { margin: 0; }
.tl-p1750 .g3p-diff dl { margin: 0; border-top: 2px solid var(--p-ink); }
.tl-p1750 .g3p-diff dl > div { display: grid; gap: var(--s-1) var(--s-6); padding: var(--s-5) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
@media (min-width: 640px) { .tl-p1750 .g3p-diff dl > div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.tl-p1750 .g3p-diff dt { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; }
.tl-p1750 .g3p-diff dd { margin: 0; font-size: var(--t-body); line-height: 1.6; }

@media (min-width: 1024px) { .tl-p1750 .tools-list--grid.g3p-guides { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tl-p1750 :is(.g3p-who, .test-result) .plain-list li > strong:first-child { display: inline; }
.tl-p1750 .g3p-errors ol { list-style: decimal; }

/* ---------- page 1745 ---------- */
/* ---------- 1745 Calculadora del PIA ---------- */
/* the live questions are not headings: the question line is a block span inside the legend */
.tl-p1745 .tl-tool legend .test-q { display: block; margin: 0; }
.tl-p1745 .tl-tool .test-hint a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-p1745 .tl-tool .test-result .plain-list { font-size: var(--t-small); }
.tl-p1745 .tl-tool .test-result .plain-list a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
/* the "important" line under the PIA explanation */
.tl-p1745__important { padding: var(--s-5) 0 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); font-size: var(--t-body); }
/* cuantías: one row per grade, the grade on the left, its amounts as one line */
.tl-p1745__rates { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .tl-p1745__rates { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-9, 96px); align-items: start; } .tl-p1745__rates .tl-head { grid-row: span 2; margin-bottom: 0; } }
.tl-p1745__rows { margin: 0; border-top: 2px solid var(--p-ink); }
.tl-p1745__rows > div { display: grid; gap: var(--s-1) var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
@media (min-width: 640px) { .tl-p1745__rows > div { grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; } }
.tl-p1745__rows dt { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; color: var(--p-ink); }
.tl-p1745__rows dd { margin: 0; font-size: var(--t-body); line-height: 1.55; font-variant-numeric: tabular-nums; color: var(--p-ink); }
.tl-p1745__plus { background: var(--p-inv-bg); margin-top: var(--s-4); padding: var(--s-5) var(--s-5) !important; border-radius: var(--r-md); border-bottom: 0 !important; }
.tl-p1745__plus dt, .tl-p1745__plus dd { color: #ffffff; }
.tl-p1745__foot { margin: 0; font-size: var(--t-small); line-height: 1.6; color: var(--p-ink); }
/* five real steps on one line */
@media (min-width: 1024px) { .tl-p1745__steps.steps { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--s-6); } .tl-p1745__steps.steps li::after { right: calc(-1 * var(--s-6) + 12px); } }
.tl-p1745 .tl-aside-line { margin-top: var(--s-8); }
/* the mid-page band keeps the live h3 at the band's heading size */
.tl-p1745 .svc-aid__box .tl-p1745__bandh { margin: 0; font-family: var(--font-display); font-size: var(--t-h2); font-weight: var(--display-weight, 400); line-height: 1.1; letter-spacing: -0.02em; color: var(--p-inv-ink); }
.tl-p1745 .svc-aid__box p + p { font-size: var(--t-body); }
/* the reasons list beside the revision text */
.tl-p1745__reasons { margin-top: 0; }
.tl-p1745__reasons li { padding-top: var(--s-2); padding-bottom: var(--s-2); }
/* the three errors */
.tl-p1745 .tl-cards--3 .tl-card p { font-size: var(--t-body); line-height: 1.6; }
/* result details: a bold amount inside a line stays in the line (site.css lifts a first <strong> onto its own line) */
.tl-p1745 .test-result .plain-list li > strong:first-child { display: inline; font-size: inherit; line-height: inherit; }

/* ---------- page 1708 ---------- */
/* ---------- 1708 Calculadora precio cuidador a domicilio ---------- */
/* result: the notices as white boxes on the card's ground; the two-way comparison side by side */
.tl-p1708 .tl-p1708__avisos { display: grid; gap: var(--s-3); }
.tl-p1708 .tl-p1708__avisos .note { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--p-bg); font-size: var(--t-small); line-height: 1.55; }
.tl-p1708 .tl-p1708__avisos .note > * + * { margin-top: var(--s-2); }
.tl-p1708 .tl-p1708__avisos .note__label { font-family: var(--font-text); font-size: var(--t-small); font-weight: 600; letter-spacing: 0; }
.tl-p1708 .tl-p1708__avisos a, .tl-p1708 [data-o="linkcalc"] a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-p1708 .test-prests li > span > small:first-child { font-weight: 600; color: var(--p-ink); }
.tl-p1708__vs { display: grid; gap: var(--s-4); margin-top: var(--s-3); }
@media (min-width: 640px) { .tl-p1708__vs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl-p1708__vs > div { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 12%, transparent); }
.tl-p1708__vs > .tl-p1708__vs-us { background: var(--p-bg); box-shadow: 0 0 0 2px var(--p-action); }
.tl-p1708__vs .plain-list { margin-top: var(--s-3); font-size: var(--t-small); }
.tl-p1708__vs .plain-list li { font-size: var(--t-small); line-height: 1.45; }
/* prices: the table beside the text that explains it */
.tl-p1708__pricegrid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .tl-p1708__pricegrid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; } }
.tl-p1708 .tl-table caption { caption-side: top; padding: var(--s-4) var(--s-5) 0; font-weight: 600; color: var(--p-ink); }
/* the five reasons as a grid of short points under a rule, the summary as the last cell */
.tl-p1708__points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-7) var(--s-8); }
@media (min-width: 640px) { .tl-p1708__points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tl-p1708__points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tl-p1708__points li { padding-top: var(--s-4); border-top: 2px solid var(--p-ink); font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.tl-p1708__points li > strong:first-child { display: block; margin-bottom: var(--s-2); font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.tl-p1708__points .tl-p1708__points-sum { padding: var(--s-5); border-top: 0; border-radius: var(--r-lg); background: var(--p-inv-bg); color: var(--p-inv-ink); }
.tl-p1708__points li.tl-p1708__points-sum > strong { display: inline; margin: 0; letter-spacing: 0; line-height: inherit; font-family: var(--font-text); font-size: inherit; font-weight: 600; }
/* what the service includes */
.tl-p1708__incl { margin-top: 0; }
.tl-p1708 .tl-sign + .tl-sign { margin-top: var(--s-3); }
.tl-p1708 .tl-sign a { color: var(--p-accent); font-weight: 600; text-decoration: none; }

/* ---------- page 1605 ---------- */
/* 1605 calculadora ELA Grado III+: the card's own title, the zone question, the FAQ questions as headings, SACOM's offer as a list of terms */
.tl-p1605 .tl-tool__title { margin: 0; font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--p-ink); }
.tl-p1605 .tl-tool__sub { margin: var(--s-1) 0 var(--s-6); padding-bottom: var(--s-5); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); font-size: var(--t-small); color: var(--p-muted); }
.tl-p1605 .tl-tool .test-q { font-size: clamp(24px, .6vw + 20px, 30px); }
.tl-p1605 .tl-zone { margin-top: var(--s-6); }
.tl-p1605 .tl-zone__q { display: block; margin-bottom: var(--s-4); font-size: var(--t-body); font-weight: 600; color: var(--p-ink); }
.tl-p1605 .tl-help { margin-top: var(--s-4); color: var(--p-ink); }
.tl-p1605 .tl-handoff .btn-row { flex-direction: column; align-items: stretch; }
.tl-p1605 .tl-answer__grid h2 { margin: 0 0 var(--s-5); }
.tl-p1605 .tl-answer__grid .tl-text h3, .tl-p1605__amounts h3 { margin: var(--s-7) 0 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.tl-p1605 .tl-answer__grid .tl-text h3 + p { margin-top: var(--s-3); }
.tl-p1605__amounts h3 { margin-top: 0; }
.tl-p1605__amounts .tl-figures__foot:first-of-type { margin: var(--s-3) 0 var(--s-5); font-size: var(--t-body); color: var(--p-ink); }
.tl-p1605__amounts .tl-figures__foot a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-p1605__lead { font-size: var(--t-lead); line-height: 1.55; }
@media (min-width: 1024px) { .tl-p1605__amounts { position: sticky; top: calc(var(--nav, 72px) + var(--s-6)); } }
.tl-p1605 .tl-duo__grid + .tl-aside-line { margin-top: var(--s-8); }
.tl-p1605 .tl-aside-line + .tl-aside-line { margin-top: var(--s-4); }
.tl-p1605__offer { margin: var(--s-5) 0; display: grid; gap: 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.tl-p1605__offer > div { display: grid; gap: var(--s-1) var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
@media (min-width: 1280px) { .tl-p1605__offer > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.tl-p1605__offer dt { font-weight: 600; }
.tl-p1605__offer dd { margin: 0; font-size: var(--t-small); line-height: 1.55; }
.tl-p1605 .faq summary h3 { margin: 0; font: inherit; letter-spacing: 0; color: inherit; }
@media (min-width: 1024px) { .tl-p1605 .tl-p1605__links { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tl-p1605 .tl-split__grid { align-items: start; } .tl-p1605 .tl-split__media { position: sticky; top: calc(var(--nav, 72px) + var(--s-6)); } }

/* ---------- page 1659 ---------- */
/* 1659 ayudas Ley ELA Catalunya: the one-question calculator, the official logo, the three service plans, the five-step timeline */
.tl-p1659__calc .test-q { margin: 0; }
.tl-p1659__calc .test-hint { margin-bottom: var(--s-5); }
.tl-p1659__calc legend .test-count { display: block; margin-bottom: var(--s-3); }
.tl-p1659__hours { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.tl-p1659__hours label { flex-direction: column; align-items: flex-start; gap: var(--s-2); min-height: 0; padding: var(--s-4); }
.tl-p1659__hours strong { font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); }
@media (max-width: 639px) { .tl-p1659__hours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl-p1659__calc .test-bar { margin: var(--s-5) 0 var(--s-2); }
.tl-p1659__scale { margin: 0 0 var(--s-5); color: var(--p-muted) !important; }
.tl-p1659__calc .tl-amount { margin-bottom: var(--s-2); }
.tl-p1659__calc > .test-small { margin-top: var(--s-3); }
.tl-p1659__calc > .btn-row { margin-top: var(--s-5); }

.tl-p1659 .tl-answer__grid h2 { margin: 0 0 var(--s-5); }
.tl-p1659 .tl-answer__grid h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; }
.tl-p1659__logo { margin: var(--s-7) 0 0; padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--p-bg); width: fit-content; }
.tl-p1659__logo img { display: block; width: 240px; height: auto; }
.tl-p1659 .tl-figures dd small { font-size: var(--t-small); color: var(--p-ink); }
.tl-p1659__zones-h { margin-top: var(--s-6) !important; }
.tl-p1659__zones { margin: 0; font-size: var(--t-body); line-height: 1.6; }

.tl-p1659__n { font-size: var(--t-small); font-weight: 600; color: var(--p-accent) !important; }
.tl-p1659 .tl-card--dark .tl-p1659__n { color: #ffffff !important; }

.tl-p1659__plans { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 1024px) { .tl-p1659__plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.tl-p1659__plan { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-7) var(--s-6); border-radius: var(--r-lg); background: var(--p-bg); }
.tl-p1659__plan h3 { margin: 0; font-family: var(--font-display); font-size: clamp(24px, .6vw + 20px, 30px); line-height: 1.15; }
.tl-p1659__plan-line { margin: 0; padding-bottom: var(--s-4); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); font-size: var(--t-small); color: var(--p-muted); }
.tl-p1659__plan .plain-list { margin: 0 0 var(--s-5); }
.tl-p1659__plan .plain-list li { font-size: var(--t-small); }
.tl-p1659__plan .btn { margin-top: auto; align-self: flex-start; }
.tl-p1659__plan--main { background: var(--p-inv-bg); color: var(--p-inv-ink); }
.tl-p1659__plan--main h3 { color: var(--p-inv-ink); }
.tl-p1659__plan--main .tl-p1659__plan-line { color: var(--p-inv-muted); border-color: rgb(255 255 255 / .18); }
.tl-p1659__plan--main .plain-list li { color: var(--p-inv-ink); }
.tl-p1659__plan--main .plain-list li::before { background: rgb(255 255 255 / .6); }
html .tl-p1659__plan--main .btn.btn--primary { background: #ffffff !important; color: var(--p-ink) !important; }

@media (min-width: 1024px) { .tl-p1659__tramite { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.tl-p1659__tramite-head h2 { margin: 0; }
.tl-p1659__aside-note { margin-top: var(--s-6); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); font-size: var(--t-small); line-height: 1.6; }
.tl-p1659__aside-note p { margin: 0; }
.tl-p1659__aside-note p + p { margin-top: var(--s-2); }
.tl-p1659__aside-label { font-weight: 600; font-size: var(--t-body); }
.tl-p1659__timeline { list-style: none; counter-reset: tlp; margin: 0; padding: 0; display: grid; }
.tl-p1659__timeline li { counter-increment: tlp; position: relative; padding: 0 0 var(--s-7) 64px; }
.tl-p1659__timeline li::before { content: counter(tlp); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--p-ink); color: var(--p-bg); font-weight: 600; font-size: var(--t-small); }
.tl-p1659__timeline li::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 8px; width: 1px; background: color-mix(in oklab, var(--p-ink) 25%, transparent); }
.tl-p1659__timeline li:last-child { padding-bottom: 0; }
.tl-p1659__timeline li:last-child::after { content: none; }
.tl-p1659__timeline h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; }
.tl-p1659__timeline p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.65; }
.tl-p1659__timeline a { color: var(--p-accent); font-weight: 600; text-decoration: none; }

.tl-p1659 .tl-duo__grid { row-gap: var(--s-7); }
.tl-p1659 .tl-table tbody th { width: 42%; }
.tl-p1659 .tl-cards--3 .tl-card__link { margin-top: auto; padding-top: var(--s-3); }
.tl-p1659 .tl-aside-line + .tl-aside-line, .tl-p1659 .tl-cards + .tl-aside-line { margin-top: var(--s-4); }
.tl-p1659 .tl-cards + .tl-aside-line { margin-top: var(--s-6); }
.tl-p1659__band-line { font-size: var(--t-small) !important; color: #ffffff !important; }
.tl-p1659__contact { margin-top: var(--s-6); display: grid; gap: var(--s-2); font-size: var(--t-body); }
.tl-p1659__contact p { margin: 0; }
.tl-p1659__contact p + p { font-size: var(--t-small); color: var(--p-muted); }
.tl-p1659__contact a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-p1659__calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------- step transition (client, round 3): the incoming step fades in and rises 10px, the bar grows; nothing moves with reduced motion ---------- */
@keyframes tl-step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tl-tool :is([data-step], [data-paso]):not([hidden]) { animation: tl-step-in 240ms ease-out both; }
.tl-tool .test-bar > span { transition: width 300ms ease-out; }
.tl-tool legend:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .tl-tool :is([data-step], [data-paso]) { animation: none !important; } .tl-tool .test-bar > span { transition: none !important; } }
html[data-motion="off"] .tl-tool :is([data-step], [data-paso]) { animation: none !important; }

/* hub: every column shares the rows of the path (number and question, then the cards), so all first cards start on one line */
@media (min-width: 1024px) {
  .tl-path { grid-template-rows: auto auto; row-gap: var(--s-6); }
  .tl-path__step { grid-row: span 2; display: grid; grid-template-rows: subgrid; row-gap: var(--s-6); }
  .tl-path__step .tl-path__q { margin: 0; align-self: start; }
}

/* ---------- client round 3: one card size for every question ----------
   All steps share one grid cell, so the card is as tall as its tallest question at every width; only the visible one is
   shown, the nav sits at the foot of the card (or of each step, where the step carries its own buttons). */
.tl-tool [data-quiz] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "pre" "stage" "post"; grid-template-rows: auto 1fr auto; }
.tl-tool [data-quiz] > :is([data-step], [data-paso]) { grid-area: stage; margin: 0; display: flex; flex-direction: column; min-width: 0; }
.tl-tool [data-quiz] > :is([data-step], [data-paso])[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
.tl-tool [data-quiz] > :not([data-step], [data-paso]):has(~ :is([data-step], [data-paso])) { grid-area: pre; }
.tl-tool [data-quiz] > :is([data-step], [data-paso]) ~ :not([data-step], [data-paso]) { grid-area: post; }
.tl-tool [data-quiz] > :is([data-step], [data-paso]) > .test-nav { margin-top: auto; padding-top: var(--s-6); }
.tl-tool [data-quiz] > .test-nav { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid color-mix(in oklab, var(--p-ink) 10%, transparent); }

/* ---------- client round 3: the result is its own full-width view ----------
   When the result shows, the intro column steps aside, the tool takes the whole row and the page scrolls to it. */
.tl-hero.is-result .hero__text { display: none; }
.tl-hero.is-result .tl-tool { grid-column: 1 / -1; scroll-margin-top: calc(var(--nav, 72px) + var(--s-5)); }
.tl-tool .tl-result { padding: 0; background: none; border-radius: 0; }
.tl-tool .tl-result > * + * { margin-top: 0; }
/* 1. the verdict */
.tl-verdict { display: grid; gap: var(--s-4); padding: var(--s-8); border-radius: var(--r-lg); background: var(--p-surface); }
@media (min-width: 1024px) { .tl-verdict--fig { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-8); align-items: end; } .tl-verdict--fig .tl-verdict__fig { grid-column: 2; grid-row: 1 / span 3; justify-self: end; text-align: right; } }
.tl-verdict__kicker { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
.tl-tool .tl-verdict__title { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: clamp(36px, 2.6vw + 22px, 64px); line-height: 1.05; letter-spacing: -0.03em; color: var(--p-ink); }
.tl-verdict__title span { display: block; color: var(--p-muted); }
.tl-verdict__line { margin: 0; max-width: 62ch; font-size: var(--t-lead); line-height: 1.55; color: var(--p-ink); }
.tl-verdict__fig { margin: 0; font-family: var(--font-display); font-size: clamp(44px, 3vw + 26px, 80px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--p-ink); white-space: nowrap; }
.tl-verdict__fig small { display: block; margin-top: var(--s-2); font-family: var(--font-text); font-size: var(--t-small); letter-spacing: 0; color: var(--p-muted); white-space: normal; }
/* 2. groups: a heading row, then their content */
.tl-result__group { margin-top: var(--s-9, 96px) !important; }
.tl-result__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
@media (min-width: 1024px) { .tl-result__head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-8); align-items: start; } .tl-result__head p { padding-top: .6em; } }
.tl-tool .tl-result__head h3 { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 1vw + 20px, 36px); font-weight: var(--display-weight, 400); line-height: 1.15; letter-spacing: -0.02em; }
.tl-result__head p { margin: 0; font-size: var(--t-small); line-height: 1.55; color: var(--p-muted); }
/* rows: name, a quiet label, one sentence; the amount on the right in large figures */
.tl-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--p-ink); }
.tl-row { display: grid; gap: var(--s-2) var(--s-7); padding: var(--s-5) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
@media (min-width: 640px) { .tl-row { grid-template-columns: minmax(0, 1fr) minmax(160px, auto); align-items: start; } }
.tl-tool .tl-row h4 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.tl-row__label { margin: var(--s-1) 0 0; font-size: var(--t-small); color: var(--p-muted); }
.tl-row__text { margin: var(--s-2) 0 0; max-width: 64ch; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.tl-row__text a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-row__amt { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 1vw + 22px, 40px); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--p-ink); }
@media (min-width: 640px) { .tl-row__amt { text-align: right; } }
.tl-row__amt small { display: block; margin-top: var(--s-1); font-family: var(--font-text); font-size: var(--t-small); letter-spacing: 0; color: var(--p-muted); }
.tl-row__amt--none { font-family: var(--font-text); font-size: var(--t-small); color: var(--p-muted); letter-spacing: 0; }
/* 3. the next steps reuse .steps; inside a result they wrap to as many columns as there are steps */
.tl-tool .tl-result__steps { margin-top: 0; }
@media (min-width: 1024px) { .tl-tool .tl-result__steps { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: var(--s-6); } .tl-tool .tl-result__steps li { padding-right: 0; } .tl-tool .tl-result__steps li::after { right: calc(-1 * var(--s-6) + 12px); } }
.tl-tool ol.steps { list-style: none; padding-left: 0; }
.tl-tool .tl-result__steps h4 { margin: var(--s-4) 0 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.tl-tool .tl-result__steps p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; }
.tl-tool .tl-result__steps a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
/* 4. the disclaimer */
.tl-result__note { margin-top: var(--s-8) !important; max-width: 860px; font-size: var(--t-small); line-height: 1.6; color: var(--p-muted); }
/* 5. the dark action band with the hand-off */
.tl-result__band { margin-top: var(--s-8) !important; display: grid; gap: var(--s-6) var(--s-8); padding: var(--s-8); border-radius: var(--r-lg); background: var(--p-inv-bg); color: var(--p-inv-ink); }
@media (min-width: 1024px) { .tl-result__band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.tl-tool .tl-result__band h3 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 1.2vw + 20px, 40px); font-weight: var(--display-weight, 400); line-height: 1.12; letter-spacing: -0.02em; color: var(--p-inv-ink); }
.tl-result__band p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-inv-muted); }
.tl-result__band a:not(.btn) { color: #ffffff; font-weight: 600; text-decoration: none; }
.tl-result__band .form { margin: 0; }
.tl-result__band .field, .tl-result__band .consent { color: var(--p-inv-ink); }
.tl-result__band .field :is(input, select) { background: #ffffff; color: var(--p-ink); border-color: transparent; }
.tl-result__band .form__status { color: #ffffff; }
.tl-result__band .test-small, .tl-result__band small { color: var(--p-inv-muted); }
.tl-result__band .btn-row { margin-top: var(--s-5); }
html .tl-result__band .btn.btn--primary { background: #ffffff !important; color: var(--p-ink) !important; }
html .tl-result__band .btn.btn--secondary { background: rgb(255 255 255 / .14) !important; color: #ffffff !important; border-color: transparent !important; }
html .tl-result__band .btn.btn--primary:hover { background: var(--p-action) !important; color: #ffffff !important; }
.tl-result__band [data-o="lead-ok"] :is(h3, h4) { font-size: var(--t-h3); }
.tl-result__restart { margin-top: var(--s-6) !important; }
.tl-linkbtn { padding: var(--s-2) 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--p-accent); cursor: pointer; }
.tl-linkbtn:hover { color: var(--p-ink); }
@media (max-width: 639px) {
  .tl-verdict, .tl-result__band { padding: var(--s-6) var(--s-5); }
  .tl-result__group { margin-top: var(--s-8) !important; }
}

/* ---------- page 1769, round 3 ---------- */
/* 1769 round 3: the baremo scale runs under the whole verdict */
.tl-p1769 .tl-verdict .tl-p1769__scale { grid-column: 1 / -1; margin-top: var(--s-5); }
.tl-p1769 .tl-verdict__fig span { display: block; }

/* ---------- page 1770, round 3 ---------- */
/* 1770 round 3: the form stays in the hero card with a one-line live summary; the result is a full-width section under it */
.tl-p1770 .cmp-mini { margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); font-size: var(--t-small); line-height: 1.5; font-weight: 600; color: var(--p-ink); }
.tl-p1770 .cmp-mini a { color: var(--p-accent); text-decoration: none; white-space: nowrap; }
body:not(.home) main > section.cmp-res { padding-top: var(--s-6); }
.tl-p1770 .cmp-res__lead { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 1vw + 20px, 36px); line-height: 1.15; letter-spacing: -0.02em; color: var(--p-ink); }
.tl-p1770 .cmp-out .tl-row h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.tl-p1770 .cmp-best { display: none; }
.tl-p1770 .cmp-row-p.best .cmp-best { display: inline; font-weight: 600; color: var(--p-action); }
.tl-p1770 .cmp-row-p.best { margin-inline: calc(-1 * var(--s-5)); padding-inline: var(--s-5); border-radius: var(--r-md); background: var(--p-surface); }
.tl-p1770 .cmp-cost .tl-row { align-items: center; }
.tl-p1770 .cmp-cost .tl-row h4 { font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; }
.tl-p1770 .cmp-cost .tl-row__amt { font-size: clamp(22px, .6vw + 18px, 28px); }
.tl-p1770 .cmp-cost .cmp-net h4 { font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); }
.tl-p1770 .cmp-cost .cmp-net .tl-row__amt { font-size: clamp(28px, 1vw + 22px, 40px); }
.tl-p1770 .cmp-out .tl-result__band .test-small { margin: 0 0 var(--s-2); }
.tl-p1770 .cmp-out .tl-result__band > div:last-child > p:first-child { margin-top: 0; }
@media (max-width: 639px) { .tl-p1770 .cmp-row-p.best { margin-inline: calc(-1 * var(--s-3)); padding-inline: var(--s-3); } }

/* ---------- page 1750, round 3 ---------- */
/* 1750 round 3: the description beside "Detalles clave" reads as body text, not as a muted note */
.tl-p1750 .tl-result__head .tl-p1750__desc { font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.tl-p1750 .tl-verdict__fig span { display: block; white-space: normal; }
@media (min-width: 1024px) { .tl-p1750 .tl-verdict__fig { max-width: 520px; } }
.tl-p1750 .g3p-who > div > p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; }
.tl-p1750 .tl-result__head { align-items: start; }

/* ---------- page 1745, round 3 ---------- */
/* ---------- 1745 round 3: the result details as two columns of calm rows; the verdict amount fits its column ---------- */
.tl-p1745 .tl-p1745__details .tl-row { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .tl-p1745 .tl-p1745__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-8); } }
.tl-p1745 .tl-p1745__details .tl-row__text { margin-top: 0; }
.tl-p1745 .tl-p1745__details h4 + .tl-row__text { margin-top: var(--s-2); }
.tl-p1745 .tl-p1745__details .tl-row__text strong { font-weight: 600; }
.tl-p1745 .tl-p1745__details a, .tl-p1745 .tl-verdict__line a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-p1745 .tl-verdict__fig { font-size: clamp(36px, 2vw + 24px, 60px); white-space: normal; }
.tl-p1745 .tl-verdict__line strong { font-weight: 600; }

/* ---------- page 1708, round 3 ---------- */
/* ---------- 1708 round 3: the result view ---------- */
/* notices: short titled notes in two columns under a rule, no boxes */
.tl-p1708 .tl-p1708__avisos { display: grid; gap: var(--s-6) var(--s-8); }
@media (min-width: 1024px) { .tl-p1708 .tl-p1708__avisos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl-p1708 .tl-p1708__aviso { padding-top: var(--s-4); border-top: 2px solid var(--p-ink); }
.tl-p1708 .tl-p1708__aviso h4 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: var(--display-weight, 400); line-height: 1.2; letter-spacing: -0.01em; }
.tl-p1708 .tl-p1708__aviso p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.tl-p1708 .tl-p1708__aviso a, .tl-p1708 .tl-p1708__linkcalc a { color: var(--p-accent); font-weight: 600; text-decoration: none; }
.tl-p1708 .tl-p1708__linkcalc { margin: var(--s-5) 0 0; max-width: 72ch; font-size: var(--t-body); line-height: 1.6; }
/* SACOM in a paragraph, then the two ways side by side, SACOM's column outlined */
.tl-p1708 .tl-p1708__sector { margin: 0; max-width: 72ch; font-size: var(--t-body); line-height: 1.7; }
.tl-p1708 .tl-p1708__vs-title { margin: var(--s-7) 0 var(--s-4); font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; }
.tl-p1708 .tl-p1708__vs { display: grid; gap: var(--s-4); margin: 0; }
@media (min-width: 640px) { .tl-p1708 .tl-p1708__vs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; } .tl-p1708 .tl-p1708__vs > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; } }
.tl-p1708 .tl-p1708__vs > div { padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); box-shadow: none; }
.tl-p1708 .tl-p1708__vs > .tl-p1708__vs-us { background: var(--p-bg); box-shadow: 0 0 0 2px var(--p-action); }
.tl-p1708 .tl-p1708__vs-name { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; color: var(--p-ink); }
.tl-p1708 .tl-p1708__vs-sub { margin: var(--s-1) 0 0; font-size: var(--t-small); color: var(--p-muted); }
.tl-p1708 .tl-p1708__vs .plain-list { margin-top: var(--s-4); }
.tl-p1708 .tl-p1708__vs .plain-list li { font-size: var(--t-body); line-height: 1.5; }
.tl-p1708 .tl-result__band [data-o="ok-text"] strong { color: #ffffff; }

/* ---------- page 1605, round 3 ---------- */
/* 1605 round 3: the card's title block sits above the shared step stage; the result rows carry short values */
.tl-p1605__head { padding-bottom: var(--s-5); margin-bottom: var(--s-6); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.tl-p1605__head .tl-tool__sub { margin: var(--s-1) 0 0; padding: 0; border: 0; }
.tl-p1605 .tl-result .tl-row__amt { font-size: clamp(24px, .8vw + 20px, 32px); }
@media (min-width: 1024px) { .tl-p1605 .tl-result__band .btn-row { flex-direction: column; align-items: stretch; margin-top: 0; } }
.tl-p1605 .tl-result__band .btn-row { margin-top: 0; }
@media (min-width: 1024px) { .tl-p1605 .tl-result__band { align-items: center; } }
.tl-p1605 .tl-result__band .btn { height: auto; min-height: var(--btn-h, 48px); padding-block: var(--s-3); text-align: center; line-height: 1.3; }

/* ---------- page 1659, round 3 ---------- */
/* 1659 round 3: the live calculator's result as a verdict (big total) and two aligned rows; plans aligned by subgrid */
.tl-p1659__verdict { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.tl-p1659__total { margin: var(--s-2) 0 var(--s-5); }
.tl-p1659__total b { font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: clamp(44px, 2.4vw + 28px, 68px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tl-p1659__rows .tl-row { padding: var(--s-4) 0; }
.tl-p1659__rows .tl-row__amt { font-size: clamp(22px, .6vw + 19px, 28px); }
.tl-p1659__rows h4 { font-size: var(--t-body) !important; font-family: var(--font-text) !important; font-weight: 600 !important; }
.tl-p1659__rows .tl-row__text { font-size: var(--t-small); margin-top: 2px; }
@media (min-width: 640px) { .tl-p1659__rows .tl-row { grid-template-columns: minmax(0, 1fr) auto; } }
.tl-p1659__calc .tl-result__note { margin-top: var(--s-4) !important; }
.tl-p1659__plan-text { margin: 0; font-size: var(--t-body); line-height: 1.55; }
.tl-p1659__plan--main .tl-p1659__plan-text { color: var(--p-inv-ink); }
@media (min-width: 1024px) {
  .tl-p1659__plans { grid-template-rows: repeat(5, auto); }
  .tl-p1659__plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: var(--s-4); align-content: start; }
  .tl-p1659__plan .plain-list { margin: 0; align-content: start; }
  .tl-p1659__plan .btn { align-self: end; justify-self: start; }
}
/* ==== /batch:herramientas ==== */









/* ==== batch:locales-b ==== */
/* ---------- Locales B (round 3): Sitges ES 1692, Sitges EN 1695, Madrid 1720, Barcelona 1716, Vallès Oriental 1697, Granollers 1468 ----------
   Every selector hangs from an .lb-* class, so this file does not depend on locales.css.
   Reuses from site.css: .hero, .btn, .plain-list, .steps, .svc-aid__box, .faq, .table-wrap, .test-* (Granollers questionnaire).
   Tokens only: var(--p-*), var(--s-*), var(--t-*), var(--r-*), var(--font-display), var(--gutter), var(--nav). */

:is(.lb-intro, .lb-svc, .lb-why, .lb-area, .lb-voices, .lb-aid, .lb-faq, .lb-close, .lb-tools, .lb-city, .lb-respir, .lb-price, .lb-process, .lb-form, .lb-net, .lb-office-band, .lb-services8, .lb-proof, .lb-quiz-sec) {
  --lb-line: color-mix(in oklab, var(--p-ink) 14%, transparent);
}
.lb-h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.lb-lead { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 60ch; }
:is(.lb-intro, .lb-svc, .lb-why, .lb-area, .lb-faq, .lb-close, .lb-tools, .lb-city, .lb-respir, .lb-price, .lb-process, .lb-form, .lb-net, .lb-office-band, .lb-services8, .lb-proof, .lb-quiz-sec, .lb-hero) a:not(.btn) { color: var(--p-accent); font-weight: 600; text-decoration: none; }
:is(.lb-intro, .lb-svc, .lb-why, .lb-area, .lb-faq, .lb-close, .lb-tools, .lb-city, .lb-respir, .lb-price, .lb-process, .lb-form, .lb-net, .lb-office-band, .lb-services8, .lb-proof, .lb-quiz-sec, .lb-hero) a:not(.btn):hover { color: var(--p-ink); }

/* section head: the heading and one line under it */
.lb-head { max-width: 860px; }
.lb-head h2 { margin: 0; }
.lb-head > p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 60ch; }
/* a head that reads across: heading left, its line right */
.lb-split-head { display: grid; gap: var(--s-4) var(--gutter); }
@media (min-width: 1024px) { .lb-split-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: end; } }
.lb-split-head h2 { margin: 0; }
.lb-split-head > p { margin: 0; font-size: var(--t-lead); line-height: 1.55; color: var(--p-muted); }

/* hero: the photograph fills its frame; one quiet line under the buttons */
.lb-hero .hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); display: block; }
.lb-hero__meta { margin: var(--s-5) 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--p-muted); max-width: 52ch; }
.lb-hero--long h1 { font-size: clamp(34px, 1.9vw + 22px, 56px); line-height: 1.08; }

/* intro: one large sentence on the left, two short paragraphs and three quiet facts on the right */
.lb-intro__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .lb-intro__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: start; } }
.lb-intro__big { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 1.5vw + 20px, 42px); line-height: 1.22; letter-spacing: -0.02em; color: var(--p-ink); }
.lb-intro__side > p { margin: 0; font-size: var(--t-lead); line-height: 1.6; }
.lb-intro__side > p + p { margin-top: var(--s-5); }
.lb-facts { margin: var(--s-7) 0 0; display: grid; }
.lb-facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-4); align-items: baseline; padding: var(--s-4) 0; border-top: 1px solid var(--lb-line); }
.lb-facts > div:last-child { border-bottom: 1px solid var(--lb-line); }
.lb-facts dt { font-weight: 600; font-size: var(--t-body); line-height: 1.35; }
.lb-facts dd { margin: 0; font-size: var(--t-body); line-height: 1.45; color: var(--p-muted); }
@media (max-width: 479px) { .lb-facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* services: equal columns whose parts line up (photo, title, paragraph, list) through subgrid */
.lb-svc__grid { display: grid; gap: var(--s-8) var(--gutter); margin-top: var(--s-8); }
@media (min-width: 768px) { .lb-svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .lb-svc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-7); row-gap: 0; }
  .lb-svc__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-6); }
  .lb-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
  .lb-card--3 { grid-row: span 3; }
}
.lb-card { display: grid; align-content: start; }
.lb-card__img { margin: 0 0 var(--s-5); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--p-bg); }
.lb-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-card > p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.lb-card .plain-list { align-self: start; margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--lb-line); gap: var(--s-2); }
.lb-card .plain-list li { font-size: var(--t-small); line-height: 1.5; }
/* the help line under the services */
.lb-help { display: grid; gap: var(--s-5) var(--gutter); align-items: center; margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--lb-line); }
@media (min-width: 1024px) { .lb-help { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } .lb-help .btn-row { justify-content: flex-end; } }
.lb-help p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; max-width: 62ch; }

/* reasons as rows: the reason on the left in the display font, the explanation on the right */
.lb-rows { margin: var(--s-8) 0 0; display: grid; }
.lb-rows > div { display: grid; gap: var(--s-2) var(--s-8); padding: var(--s-5) 0; border-top: 1px solid var(--lb-line); }
.lb-rows > div:last-child { border-bottom: 1px solid var(--lb-line); }
@media (min-width: 900px) { .lb-rows > div { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; } }
.lb-rows dt { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; color: var(--p-ink); }
.lb-rows dd { margin: 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); max-width: 58ch; }
.lb-rows dd a { white-space: nowrap; }

/* area served: the places as a directory, a note, the nearest office with its map */
.lb-area__grid { display: grid; gap: var(--s-8) var(--gutter); }
@media (min-width: 1024px) { .lb-area__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: start; } }
.lb-area__grid h2 { margin: 0; }
.lb-places { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
@media (min-width: 640px) { .lb-places { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lb-places li { padding: var(--s-3) 0; border-bottom: 1px solid var(--lb-line); font-size: var(--t-body); line-height: 1.4; color: var(--p-ink); }
.lb-note { margin-top: var(--s-7); padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.ground-surface .lb-note { background: var(--p-bg); }
.lb-note p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; }
.lb-office { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .lb-office { position: sticky; top: calc(var(--nav, 72px) + var(--s-5)); } }
.lb-office__title { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
.lb-office__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.lb-office__list li { display: grid; gap: 2px; }
.lb-office__name { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.lb-office__addr { font-size: var(--t-body); line-height: 1.45; color: var(--p-ink); }
.lb-office a.lb-office__tel { justify-self: start; }
.lb-office__map { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--p-surface); }
.lb-office__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* quotes: one large, the other beside it */
.lb-voices__grid { display: grid; gap: var(--s-7) var(--gutter); margin-top: var(--s-8); }
@media (min-width: 1024px) { .lb-voices__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: start; } }
.lb-voices__grid--3 { grid-template-columns: none; }
@media (min-width: 1024px) { .lb-voices__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-7); } }
.lb-quote { margin: 0; padding-top: var(--s-5); border-top: 2px solid var(--p-ink); }
.lb-quote p { margin: 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.lb-quote--lead { padding-top: 0; border-top: 0; }
.lb-quote--lead p { font-family: var(--font-display); font-size: clamp(24px, 1vw + 19px, 32px); line-height: 1.35; letter-spacing: -0.015em; }
.lb-voices__grid--3 .lb-quote p { font-size: var(--t-lead); line-height: 1.5; }
.lb-quote__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); margin-top: var(--s-4); }
.lb-quote__by cite { font-style: normal; font-weight: 600; font-size: var(--t-body); color: var(--p-ink); }
.lb-quote__by span { font-size: var(--t-small); color: var(--p-muted); }

/* the dependency aid: the dark band of the pilot */
.lb-aid .svc-aid__box p + p { margin-top: var(--s-3); }
.lb-aid .svc-aid__box a:not(.btn) { color: #ffffff; font-weight: 600; text-decoration: none; box-shadow: inset 0 -1px 0 rgb(255 255 255 / .5); }
.lb-aid .svc-aid__box strong { color: var(--p-inv-ink); }
.lb-aid .svc-aid__box .lb-aid__small { font-size: var(--t-body); }

/* FAQ: the heading and a way to ask on the left, the answers on the right */
.lb-faq__grid { display: grid; gap: var(--s-6) var(--gutter); }
@media (min-width: 1024px) { .lb-faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; } .lb-faq__head { position: sticky; top: calc(var(--nav, 72px) + var(--s-5)); } }
.lb-faq__head h2 { margin: 0; }
.lb-faq__head p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }
.lb-faq__head .btn-row { margin-top: var(--s-5); }
.lb-faq .faq { border-top: 1px solid var(--lb-line); }
.lb-faq .faq details { border-bottom: 1px solid var(--lb-line); }
.lb-faq .faq summary { list-style: none; position: relative; padding: var(--s-5) var(--s-7) var(--s-5) 0; font-size: var(--t-lead); line-height: 1.4; font-weight: 500; color: var(--p-ink); cursor: pointer; }
.lb-faq .faq summary::-webkit-details-marker { display: none; }
.lb-faq .faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease-out; }
.lb-faq .faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.lb-faq .faq summary:hover { color: var(--p-accent); }
.lb-faq .faq details p { margin: 0 0 var(--s-5); font-size: var(--t-body); line-height: 1.7; max-width: 66ch; }
.lb-faq__notes { margin-top: var(--s-7); display: grid; gap: var(--s-3); }
.lb-faq__notes p { margin: 0; font-size: var(--t-small); line-height: 1.55; color: var(--p-muted); }

/* the close: a heading, one sentence, two buttons, one quiet line */
.lb-close__box { display: grid; gap: var(--s-6) var(--gutter); padding: var(--s-8) 0; border-top: 2px solid var(--p-ink); }
@media (min-width: 1024px) { .lb-close__box { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: end; } .lb-close__box .btn-row { justify-content: flex-end; } }
.lb-close__box h2 { margin: 0; }
.lb-close__box p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 52ch; }
.lb-close__line { margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--lb-line); font-size: var(--t-small); line-height: 1.6; color: var(--p-muted); }

/* ---------- Madrid / Barcelona ---------- */
/* the two calculators: a real order of two, each card with its number */
.lb-tools__grid { list-style: none; counter-reset: lbt; margin: var(--s-8) 0 0; padding: 0; display: grid; gap: var(--gutter); }
@media (min-width: 900px) { .lb-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lb-tool { counter-increment: lbt; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-7) var(--s-6) var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.ground-surface .lb-tool { background: var(--p-bg); }
.lb-tool::before { content: counter(lbt); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--s-2); background: var(--p-ink); color: var(--p-bg); font-weight: 600; font-size: var(--t-small); }
.lb-tool p { margin: 0; font-size: var(--t-body); line-height: 1.6; max-width: 52ch; }
.lb-tool .btn-row { margin-top: auto; padding-top: var(--s-4); }

/* the city: districts and hospitals as directories, then the two aid blocks */
.lb-city__grid { display: grid; gap: var(--s-8) var(--gutter); margin-top: var(--s-8); }
@media (min-width: 1024px) { .lb-city__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: start; } }
.lb-city__sub { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.55; color: var(--p-muted); }
.lb-city .lb-places { margin-top: var(--s-4); }
@media (min-width: 640px) { .lb-places--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lb-places--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lb-places--2 li, .lb-places--4 li { font-size: var(--t-body); }
.lb-aids { display: grid; gap: var(--s-7) var(--gutter); margin-top: var(--s-8); }
@media (min-width: 900px) { .lb-aids { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-8); } }
.lb-aids > div { padding-top: var(--s-5); border-top: 2px solid var(--p-ink); }
.lb-aids p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; max-width: 58ch; }

/* price: the words on the left, the table and its note on the right */
.lb-price__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .lb-price__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; } }
.lb-price__text h2 { margin: 0; }
.lb-price__text p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; }
.lb-price table { width: 100%; border-collapse: collapse; font-size: var(--t-body); line-height: 1.45; }
.lb-price th, .lb-price td { padding: var(--s-4) var(--s-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--lb-line); }
.lb-price thead th { font-size: var(--t-small); font-weight: 600; color: var(--p-muted); border-bottom: 2px solid var(--p-ink); }
.lb-price thead th:last-child { text-align: right; }
.lb-price tbody th { font-weight: 500; }
.lb-price td { font-weight: 600; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .lb-price th, .lb-price td { padding-left: 0; padding-right: 0; } .lb-price td { white-space: normal; padding-left: var(--s-3); } }
.lb-price__note { margin: var(--s-5) 0 0; font-size: var(--t-small); line-height: 1.6; color: var(--p-ink); }

/* process: four real steps, short */
.lb-process .lb-steps { margin-top: var(--s-8); }
.lb-process__foot { margin: var(--s-8) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--lb-line); font-size: var(--t-small); line-height: 1.6; color: var(--p-muted); }

/* national or regional network: the places with their region */
.lb-net__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .lb-net__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; } }
.lb-net__grid h2 { margin: 0; }
.lb-net__grid > div > p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; }
.lb-net__grid .btn-row { margin-top: var(--s-6); }
.lb-cities { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
@media (min-width: 640px) { .lb-cities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lb-cities > div { display: grid; gap: 2px; padding: var(--s-4) 0; border-top: 1px solid var(--lb-line); }
.lb-cities dt { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.lb-cities dd { margin: 0; font-size: var(--t-small); color: var(--p-muted); }

/* budget request: the words beside the form card (SureForms 706 renders inside .lb-form__card) */
.lb-form__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .lb-form__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-9); align-items: start; } }
.lb-form__text h2 { margin: 0; }
.lb-form__text > p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; }
.lb-form__text .btn-row { margin-top: var(--s-6); }
.lb-form__card { padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); min-height: 200px; }
.ground-surface .lb-form__card { background: var(--p-bg); }

/* Barcelona: the office beside its words; Respir Plus with its photograph */
.lb-office-band__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .lb-office-band__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: center; } }
.lb-office-band__grid h2 { margin: 0; }
.lb-office-band__grid > div > p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 56ch; }
.lb-office-band .btn-row { margin-top: var(--s-6); }
.lb-respir__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .lb-respir__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-9); align-items: center; } }
.lb-respir__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--p-surface); }
@media (max-width: 1023px) { .lb-respir__img { aspect-ratio: 16 / 10; } }
.lb-respir__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-respir__text h2 { margin: 0; }
.lb-respir__text > p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 56ch; }
.lb-respir__text > p.lb-respir__who { font-size: var(--t-body); font-weight: 600; color: var(--p-accent); }

/* equal columns line up their parts: the steps (title, text) and the calculator cards (number, title, text, button) */
@media (min-width: 1024px) {
  .lb-steps.steps li { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-content: start; }
  .lb-steps.steps h3 { align-self: start; }
}
@media (min-width: 900px) {
  .lb-tools__grid > .lb-tool { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: var(--s-3); }
  .lb-tool .btn-row { align-self: end; }
}

/* ---------- Vallès Oriental ---------- */
.lb-towns { margin: var(--s-6) 0 0; display: grid; }
.lb-towns > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-5); padding: var(--s-3) 0; border-top: 1px solid var(--lb-line); }
.lb-towns > div:last-child { border-bottom: 1px solid var(--lb-line); }
.lb-towns dt { font-weight: 600; font-size: var(--t-body); }
.lb-towns dd { margin: 0; font-size: var(--t-body); color: var(--p-muted); font-variant-numeric: tabular-nums; }
.lb-area__after { margin: var(--s-5) 0 0; font-size: var(--t-body); line-height: 1.6; max-width: 60ch; }

/* ---------- Granollers ---------- */
/* eight services as a two-column directory: the name, one line under it */
.lb-svc8 { margin: var(--s-8) 0 0; display: grid; column-gap: var(--s-8); }
@media (min-width: 900px) { .lb-svc8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lb-svc8 > div { display: grid; gap: var(--s-1); padding: var(--s-5) 0; border-top: 1px solid var(--lb-line); }
@media (min-width: 900px) { .lb-svc8 > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--lb-line); } }
@media (max-width: 899px) { .lb-svc8 > div:last-child { border-bottom: 1px solid var(--lb-line); } }
.lb-svc8 dt { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; color: var(--p-ink); }
.lb-svc8 dd { margin: 0; font-size: var(--t-body); line-height: 1.55; color: var(--p-muted); }
/* why: a photograph beside the claim and three rows */
.lb-proof__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .lb-proof__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-9); align-items: center; } }
.lb-proof__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
@media (max-width: 1023px) { .lb-proof__img { aspect-ratio: 16 / 10; } }
.lb-proof__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-proof h2 { margin: 0; }
.lb-rows--tight { margin-top: var(--s-7); }
@media (min-width: 900px) { .lb-rows--tight > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-2) var(--s-6); } }
.lb-towns--wide dd { text-align: right; }
/* questionnaire: the intro beside the card (the card keeps its .loc-quiz / .test-* markup for 1468.js) */
.lb-quiz__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .lb-quiz__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; } .lb-quiz__intro { position: sticky; top: calc(var(--nav, 72px) + var(--s-5)); } }
.lb-quiz__intro h2 { margin: 0; }
.lb-quiz__intro p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.6; max-width: 46ch; }
.lb-quiz__intro p:first-of-type { font-size: var(--t-lead); }
.lb-quiz__intro .lb-quiz__tel { font-weight: 600; }
.lb-quiz-sec.ground-surface .loc-quiz { background: var(--p-bg); }
.lb-svc8 > div { align-content: start; }
.lb-rows--tight dt { font-size: var(--t-lead); font-weight: 600; font-family: var(--font-text, inherit); letter-spacing: 0; }
@media (min-width: 900px) { .lb-rows--tight > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (max-width: 639px) { .lb-price td { white-space: nowrap; font-size: var(--t-small); } .lb-price tbody th { font-size: var(--t-small); } }
@media (max-width: 639px) { .lb-towns--wide > div { display: grid; gap: 2px; } .lb-towns--wide dd { text-align: left; } }
/* ==== /batch:locales-b ==== */

/* Previous / next article links (kept from Astra for internal linking) */
.post-nav { padding-block: var(--s-7) !important; min-height: 0 !important; height: auto !important; border-top: 1px solid var(--line); }
.post-nav__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); width: 100%; }
.post-nav__link { display: grid; gap: var(--s-1); padding: var(--s-5); border-radius: var(--r-md); background: var(--p-surface); color: var(--p-ink); text-decoration: none; transition: transform .16s ease-out, box-shadow .16s ease-out; }
.post-nav__link:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--p-accent); }
.post-nav__link span { font-size: var(--t-small); color: var(--p-muted); }
.post-nav__link strong { font-family: var(--font-display); font-weight: 500; font-size: var(--t-h3); line-height: 1.25; }
.post-nav__link--next { text-align: right; }
@media (max-width: 767px) { .post-nav__grid { grid-template-columns: 1fr; } .post-nav__link--next { text-align: left; } }
/* bold lead that continues the sentence ("Ley 39/2006, de 14 de…") stays on the same line */
li.run-in > strong:first-child { display: inline !important; font-size: inherit; line-height: inherit; margin: 0; }

/* ==== batch:poblaciones ==== */
/* ---------- Poblaciones (town posts 831 833 1137 1142 1145) and job offers (569 1420 1422 1424 1510 1616 1619) ----------
   Every selector hangs from a .pb-* (towns) or .jb-* (jobs) class. Reuses from site.css: .hero, .steps, .svc-aid__box,
   .btn, .btn-row, .ground-surface. Cards take var(--surface), so they contrast on both grounds. */

:is(.pb-hero, .pb-svc, .pb-split, .pb-office, .pb-two, .pb-steps, .pb-price, .pb-band, .pb-close, .jb) {
  --pb-line: color-mix(in oklab, var(--p-ink) 13%, transparent);
}
:is(.pb-svc, .pb-split, .pb-office, .pb-two, .pb-price, .pb-close, .jb) a:not(.btn) { color: var(--p-accent); font-weight: 600; text-decoration: none; }
:is(.pb-svc, .pb-split, .pb-office, .pb-two, .pb-price, .pb-close, .jb) a:not(.btn):hover { color: var(--p-ink); }

.pb-head { max-width: 760px; }
.pb-head h2 { margin: 0; }
.pb-head > p { margin: var(--s-4) 0 0; font-size: var(--t-lead); line-height: 1.55; color: var(--p-ink); }
.pb-head > p.pb-muted { font-size: var(--t-body); color: var(--p-muted); }
.pb-head .btn-row { margin-top: var(--s-6); }
.pb-lead { font-size: var(--t-lead) !important; line-height: 1.55 !important; }
.pb-h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }

/* hero: the town's photograph, one quiet line under the buttons */
.pb-hero__meta { margin: var(--s-5) 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--p-muted); }
.pb-hero .hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); display: block; }

/* services as an index: the heading on the left, each service a linked name and one sentence on the right */
.pb-svc__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .pb-svc__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; } }
.pb-svc__list { margin: 0; display: grid; border-top: 2px solid var(--p-ink); }
.pb-svc__list > div { display: grid; gap: var(--s-2) var(--s-6); padding: var(--s-5) 0; border-bottom: 1px solid var(--pb-line); }
@media (min-width: 640px) { .pb-svc__list > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; } }
.pb-svc__list dt { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.pb-svc__list dt a { font-weight: inherit !important; }
.pb-svc__list dd { margin: 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }

/* split: a photograph beside a short read and a few facts as rows */
.pb-split__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) {
  .pb-split__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-9); align-items: center; }
  .pb-split--flip .pb-split__img { order: 2; }
}
.pb-split__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
@media (max-width: 1023px) { .pb-split__img { aspect-ratio: 16 / 10; } }
.pb-split__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-split__text h2 { margin: 0; }
.pb-split__text > p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.65; max-width: 60ch; color: var(--p-ink); }
.pb-split__text .btn-row { margin-top: var(--s-6); }
.pb-dl { margin: var(--s-6) 0 0; display: grid; }
.pb-dl > div { display: grid; gap: var(--s-1) var(--s-5); padding: var(--s-4) 0; border-top: 1px solid var(--pb-line); }
.pb-dl > div:last-child { border-bottom: 1px solid var(--pb-line); }
@media (min-width: 640px) { .pb-dl > div { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); } }
.pb-dl dt { font-weight: 600; line-height: 1.5; color: var(--p-ink); }
.pb-dl dd { margin: 0; line-height: 1.55; color: var(--p-ink); }

/* office: the read and the nearby pages on the left, a card with the map and the address on the right */
.pb-office__grid { display: grid; gap: var(--s-8) var(--gutter); }
@media (min-width: 1024px) { .pb-office__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: center; } }
.pb-office__text h2 { margin: 0; }
.pb-office__text > p { margin: var(--s-4) 0 0; font-size: var(--t-body); line-height: 1.65; max-width: 58ch; color: var(--p-ink); }
.pb-near { margin-top: var(--s-7); }
.pb-near__title { margin: 0 0 var(--s-2); font-size: var(--t-small); font-weight: 600; color: var(--p-muted); }
.pb-near ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--p-ink); }
.pb-near li { padding: var(--s-3) 0; border-bottom: 1px solid var(--pb-line); font-size: var(--t-body); line-height: 1.4; }
.pb-card { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.ground-surface .pb-card { background: var(--p-bg); }
.pb-card__map { aspect-ratio: 4 / 3; background: var(--p-surface); }
.pb-card__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.pb-card__body { display: grid; gap: 2px; padding: var(--s-5) var(--s-6) var(--s-6); }
.pb-card__name { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.pb-card__addr { margin: var(--s-1) 0 0; font-size: var(--t-body); line-height: 1.45; color: var(--p-ink); }
.pb-card__tel { justify-self: start; margin-top: var(--s-2); font-size: var(--t-lead); font-variant-numeric: tabular-nums; }

/* two equal cards whose parts line up: photo, name, one paragraph, links */
.pb-two__grid { display: grid; gap: var(--s-8) var(--gutter); margin-top: var(--s-8); }
.pb-two__card { display: grid; align-content: start; }
@media (min-width: 900px) {
  .pb-two__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); column-gap: var(--s-8); row-gap: 0; }
  .pb-two__card { grid-row: span 4; grid-template-rows: subgrid; }
}
.pb-two__img { margin: 0 0 var(--s-5); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; }
.pb-two__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-two__card > p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.6; max-width: 52ch; color: var(--p-ink); }
.pb-links { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); align-self: start; }
.pb-links li { font-size: var(--t-body); }

/* steps: the pilot's sequence; three steps get three columns */
.pb-steps .steps { margin-top: var(--s-8); }
.pb-steps .steps p { max-width: 34ch; }
@media (min-width: 1024px) { .pb-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* price: the answer on the left, what moves it as rows on the right */
.pb-price__grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .pb-price__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-9); align-items: start; } }
.pb-rows { margin: 0; display: grid; border-top: 2px solid var(--p-ink); }
.pb-rows > div { display: grid; gap: var(--s-1) var(--s-6); padding: var(--s-5) 0; border-bottom: 1px solid var(--pb-line); }
@media (min-width: 640px) { .pb-rows > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.pb-rows dt { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.pb-rows dd { margin: 0; font-size: var(--t-body); line-height: 1.6; color: var(--p-ink); }

/* the dark band */
.pb-band .svc-aid__box .btn-row { align-self: center; }

/* close: a heading, one sentence, two buttons, one quiet line of facts */
.pb-close__grid { display: grid; gap: var(--s-5) var(--gutter); }
@media (min-width: 1024px) { .pb-close__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s-9); align-items: end; } }
.pb-close h2 { margin: 0; max-width: 18ch; }
.pb-close__grid p { margin: 0; font-size: var(--t-lead); line-height: 1.55; max-width: 44ch; }
.pb-close__grid .btn-row { margin-top: var(--s-5); }
.pb-close__facts { margin: var(--s-8) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--pb-line); font-size: var(--t-small); line-height: 1.6; color: var(--p-muted); }

/* ---------- job offers: the body sits in .prose, both on the offer page and inside the open row of the jobs page ---------- */
.prose:has(> .jb) { max-width: none; }
.jb { display: grid; gap: var(--s-7); max-width: 1120px; }
.jb > p.jb-lead { margin: 0; font-size: var(--t-lead); line-height: 1.55; max-width: 62ch; color: var(--p-ink); }
.jb-grid { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 1024px) { .jb-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-8); align-items: start; } }
.jb-main > * + * { margin-top: 0; }
.jb-block + .jb-block { margin-top: var(--s-7); }
.jb h3 { margin: 0 !important; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.jb-block > p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.65; max-width: 62ch; }
.jb ul.jb-list { list-style: none; display: grid; gap: 0; margin: var(--s-4) 0 0; padding: 0; border-top: 2px solid var(--p-ink); }
.jb ul.jb-list li { margin: 0; padding: var(--s-3) 0; border-bottom: 1px solid var(--pb-line); font-size: var(--t-body); line-height: 1.5; color: var(--p-ink); }
.jb ul.jb-list li::before { content: none; }
.jb-card { padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.jb-card .jb-block + .jb-block { margin-top: var(--s-6); }
.jb-card ul.jb-list { border-top-width: 1px; border-top-color: var(--pb-line); }
.jb-card ul.jb-list li:last-child { border-bottom: 0; }
.jb-apply { padding-top: var(--s-6); border-top: 1px solid var(--pb-line); }
.jb-apply p { margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.65; max-width: 64ch; }
/* ==== /batch:poblaciones ==== */

/* ==== batch:articulos-b ==== */
/* Articles (premium pass, batch articulos-b): calm components for the reading column of single.php.
   Posts 1687, 1699, 1726, 1736, 1755, 1756, 1757, 244. Every selector hangs from .prose plus a class introduced here
   (.ab-*, li.run-in). Tokens only; no colours of its own. */

/* 1. Run-in list items: "<strong>Term</strong>: Text" stays on one line flow (site.css makes a first strong a block). */
.prose li.run-in > strong:first-child { display: inline; font-size: inherit; line-height: inherit; }

/* 2. Key facts (replaces stat trios and figure boxes): a quiet definition list, value then meaning. */
.prose .ab-facts { margin: var(--s-6) 0 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.prose .ab-facts > div { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.prose .ab-facts dt { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.prose .ab-facts dd { margin: 0; color: var(--p-ink); line-height: 1.55; }
.prose .ab-facts dd small { display: block; margin-top: var(--s-1); font-size: var(--t-small); color: var(--p-muted); }
@media (min-width: 640px) {
  .prose .ab-facts > div { grid-template-columns: minmax(9rem, 13rem) 1fr; gap: var(--s-5); align-items: baseline; }
}

/* 3. Real sequences: steps down the reading column on a thin rule. The step number stays in the h3 text (SEO). */
.prose ol.ab-steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: 0; }
.prose ol.ab-steps > li { position: relative; padding: 0 0 var(--s-7) var(--s-6); }
.prose ol.ab-steps > li:last-child { padding-bottom: 0; }
.prose ol.ab-steps > li::before { content: ""; position: absolute; top: .55em; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--p-ink); }
.prose ol.ab-steps > li::after { content: ""; position: absolute; top: calc(.55em + 17px); bottom: 6px; left: 5px; width: 1px; background: color-mix(in oklab, var(--p-ink) 20%, transparent); }
.prose ol.ab-steps > li:last-child::after { content: none; }
.prose ol.ab-steps h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; }
.prose ol.ab-steps > li > * + * { margin-top: var(--s-3); }
.prose ol.ab-steps .note { margin-top: var(--s-5); }
.prose .ab-meta { font-size: var(--t-small); color: var(--p-muted); }
.prose ol.ab-steps > li > .ab-meta { margin-top: var(--s-2); }

/* 4. Options (benefits, modalities): each one a block with a hairline above, its figure set in the display face. */
.prose .ab-option { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.prose .ab-option > h3 { margin-top: 0; }
.prose .ab-option > * + * { margin-top: var(--s-3); }
.prose .ab-option .ab-amount { margin-top: var(--s-2); color: var(--p-muted); }
.prose .ab-option .ab-amount strong { display: block; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--p-ink); }
.prose .ab-option .ab-meta { margin-top: var(--s-3); }

/* 5. Term lists (types, signs, products): term in bold on the left, meaning on the right; stacked on phones. */
.prose dl.ab-terms { margin: var(--s-5) 0 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.prose dl.ab-terms > div { display: grid; gap: var(--s-1); padding: var(--s-3) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.prose dl.ab-terms dt { margin: 0; font-weight: 600; color: var(--p-ink); }
.prose dl.ab-terms dd { margin: 0; color: var(--p-ink); }
@media (min-width: 640px) {
  .prose dl.ab-terms > div { grid-template-columns: minmax(10rem, 15rem) 1fr; gap: var(--s-5); }
}

/* 6. A closing line said once, set larger (former pull quotes). */
.prose .ab-pull { margin-top: var(--s-7); font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: clamp(22px, .6vw + 18px, 28px); line-height: 1.35; letter-spacing: -0.01em; }
.prose .ab-pull strong { font-weight: inherit; }

/* 7. FAQ: larger questions with a quiet chevron. */
.prose .ab-faq { border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.prose .ab-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); padding: var(--s-4) 0; font-size: var(--t-lead); line-height: 1.4; font-weight: 500; color: var(--p-ink); }
.prose .ab-faq summary::-webkit-details-marker { display: none; }
.prose .ab-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease-out; }
.prose .ab-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.prose .ab-faq summary:hover { color: var(--p-accent); }
.prose .ab-faq details > p { margin: 0 0 var(--s-5); max-width: 64ch; }
@media (prefers-reduced-motion: reduce) { .prose .ab-faq summary::after { transition: none; } }

/* 8. Two short lists side by side (comparisons such as Alzheimer / Parkinson). */
.prose .ab-pair { display: grid; gap: var(--s-6); margin-top: var(--s-6); }
.prose .ab-pair > div > h3 { margin-top: 0; }
.prose .ab-pair > div > * + * { margin-top: var(--s-3); }
@media (min-width: 900px) {
  .prose .ab-pair { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: var(--s-3) var(--s-7); }
  .prose .ab-pair > div { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; }
  .prose .ab-pair > div > * + * { margin-top: 0; }
}

/* 9. Testimonials inside the reading column: the quote at body size. */
.prose .review-list.ab-reviews .review p { font-size: var(--t-body); line-height: 1.65; }
.prose .review-list.ab-reviews .review p::before, .prose .review-list.ab-reviews .review p::after { content: none; }

/* 5b. Term list whose terms are figures (the ELA guide's opening facts): figure in the display face, no stat-trio size. */
.prose dl.ab-terms--figures dt { font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: var(--t-lead); letter-spacing: -0.005em; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .prose dl.ab-terms--figures > div { grid-template-columns: 8rem 1fr; align-items: baseline; } }

/* 4b. A term list inside an option: the option's own rule is the top line; no rule under the last row. */
.prose .ab-option dl.ab-terms { border-top: 0; margin-top: var(--s-3); }
.prose .ab-option dl.ab-terms > div:last-child { border-bottom: 0; padding-bottom: 0; }

/* 10. Figure tables: row names on one line ("Grado III"), their muted sub-line may wrap. */
.prose .ab-table tbody th { white-space: nowrap; }
.prose .ab-table tbody th span { white-space: normal; }
.prose .ab-table td { white-space: nowrap; }
.prose .ab-table td[colspan] { white-space: normal; }
/* ==== /batch:articulos-b ==== */

/* ==== batch:articulos-a ==== */
/* ==== batch:articulos-a ==== Article bodies (posts 1443, 1566, 1574, 1577, 1581, 1588, 1623, 1635, 1681).
   Calm components inside the single.php reading column (.prose span-7). Every selector hangs from an .aa-* class.
   Reuses from site.css: .prose, .steps (counter + dot), .note, .faq, .table-wrap, li.run-in, .art-cta. */

/* 1. Real sequences: .steps turned into a vertical timeline that fits the reading column */
.prose ol.steps.aa-steps { list-style: none; margin-top: var(--s-6); padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: st; }
.prose .aa-steps > li { position: relative; padding: 0 0 var(--s-7) 40px; }
.prose .aa-steps > li:last-child { padding-bottom: 0; }
/* the heading carries its own number ("1. …"), so the rail only marks each step with a ring */
.prose .aa-steps > li::before { content: ""; position: absolute; top: 12px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--p-bg); box-shadow: inset 0 0 0 3px var(--p-accent); }
.prose .aa-steps > li::after { content: ""; position: absolute; top: 33px; bottom: 6px; left: 6px; right: auto; width: 1px; height: auto; background: color-mix(in oklab, var(--p-ink) 18%, transparent); }
.prose .aa-steps > li:last-child::after { content: none; }
.prose .aa-steps h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.prose .aa-steps > li > * + * { margin-top: var(--s-3); }
.prose .aa-steps p { font-size: var(--t-body); line-height: 1.65; }
.prose .aa-steps .note { margin-top: var(--s-4); }
@media (max-width: 639px) { .prose .aa-steps > li { padding-left: 30px; } .prose .aa-steps > li::before { top: 9px; } .prose .aa-steps > li::after { top: 30px; } }

/* quiet support line under a step or option ("Espera habitual: 2-6 meses…", "Trámite: 1 visita · Gratuito") */
.prose .aa-meta { font-size: var(--t-small); line-height: 1.5; color: var(--p-muted); }
.prose .aa-steps .aa-meta { margin-top: var(--s-2); }

/* 2. Stacked blocks separated by hairlines (grades, types, benefits, changes): one block = one idea */
.prose .aa-blocks { display: grid; gap: 0; margin-top: var(--s-6); border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.prose .aa-blocks > div { padding: var(--s-6) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.prose .aa-blocks > div > * + * { margin-top: var(--s-3); }
.prose .aa-blocks h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.prose .aa-blocks h3 + p { margin-top: var(--s-2); }
.prose .aa-blocks ul { margin-top: var(--s-3); }
@media (min-width: 640px) {
  .prose .aa-blocks--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); }
}
/* the figure of a benefit: the amount reads first, in the display face, the source after it */
.prose .aa-amount { color: var(--p-muted); font-size: var(--t-small); line-height: 1.5; }
.prose .aa-amount strong { margin-right: 2px; font-size: var(--t-lead); font-weight: 700; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.prose .aa-fit { font-weight: 600; }
/* a one-line verdict inside a block ("Piel intacta con enrojecimiento…", "La más frecuente.") */
.prose .aa-blocks .aa-lede { font-weight: 600; }

/* 3. Figures with their sentence: figure left, the sentence it belongs to beside it (no big stat trio) */
.prose .aa-figures { margin-top: var(--s-6); border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.prose .aa-figures > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: var(--s-5); align-items: baseline; padding: var(--s-4) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.prose .aa-figures dt { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose .aa-figures dd { margin: 0; line-height: 1.55; }
@media (max-width: 639px) { .prose .aa-figures > div { grid-template-columns: 1fr; row-gap: var(--s-1); } }

/* 3b. A long list of short phrases in two columns on wide screens */
@media (min-width: 640px) { .prose ul.aa-two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }

/* 4. A sentence the article wants remembered: display face, no box, no border */
.prose .aa-pull { font-family: var(--font-display); font-size: clamp(20px, .6vw + 16px, 26px); line-height: 1.35; letter-spacing: -0.01em; max-width: 34ch; }
.prose .aa-pull strong { font-weight: 500; }

/* 5. FAQ in the reading column: full-width rows with a chevron (wrapper keeps class="faq" for the theme's FAQ data) */
.prose .aa-faq .faq { border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.prose .aa-faq .faq details { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.prose .aa-faq .faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); padding: var(--s-5) 0; font-size: var(--t-lead); line-height: 1.4; font-weight: 600; }
.prose .aa-faq .faq summary::-webkit-details-marker { display: none; }
.prose .aa-faq .faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease-out; }
.prose .aa-faq .faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.prose .aa-faq .faq summary:hover { color: var(--p-accent); }
.prose .aa-faq .faq details > :not(summary) { margin: 0 0 var(--s-4); }
.prose .aa-faq .faq details > :last-child { margin-bottom: var(--s-5); }
.prose .aa-faq .faq details ul { margin-top: 0; }

/* 6. Second phone under the article CTA, so the CTA keeps two buttons */
.prose .art-cta .aa-cta-alt { margin-top: var(--s-4); font-size: var(--t-small); color: var(--p-inv-muted); }
.prose .art-cta .aa-cta-alt a { color: var(--p-inv-ink); }

/* 7. Key facts list inside an article (Grado III+): rows with hairlines instead of a bare two-column grid */
.prose dl.facts.aa-facts { grid-template-columns: minmax(0, 13ch) minmax(0, 1fr); gap: 0; margin-top: var(--s-5); border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.prose .aa-facts dt, .prose .aa-facts dd { padding: var(--s-3) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.prose .aa-facts dt { padding-right: var(--s-4); }
@media (max-width: 639px) {
  .prose dl.facts.aa-facts { grid-template-columns: 1fr; }
  .prose .aa-facts dt { padding-bottom: 0; border-bottom: 0; }
  .prose .aa-facts dd { padding-top: var(--s-1); }
}
/* ==== /batch:articulos-a ==== */
/* ==== /batch:articulos-a ==== */

/* Contact bubble, cleaned (18 nov): calm panel, compact form; on phones no floating button, the bottom bar opens it as a sheet */
@media (min-width: 640px) and (max-width: 1023px) { .bubble { bottom: var(--s-5); } }
.bubble__panel { width: min(380px, calc(100vw - 2 * var(--s-5))); padding: var(--s-5) var(--s-5) var(--s-4); border: 0; }
.bubble__head { align-items: flex-start; padding-bottom: var(--s-3); margin-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.bubble__head p { font-size: 20px; }
.bubble__sub { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--p-muted); }
.bubble__close { flex: none; width: 36px; height: 36px; font-size: 22px; }
.bubble .srfm-form-container form.srfm-form { gap: 0 !important; row-gap: 0 !important; }
.bubble .srfm-form-container .srfm-block { margin: 0 0 var(--s-3) !important; }
.bubble .srfm-form-container .srfm-block-wrap { margin: 0 !important; }
.bubble .srfm-form-container .srfm-error-wrap:empty, .bubble .srfm-form-container .srfm-error-wrap:not(:has(*:not(:empty))) { min-height: 0; height: auto; margin: 0; }
.bubble .srfm-form-container label, .bubble .srfm-form-container .srfm-block-label { font-size: 14px !important; margin-bottom: 4px !important; }
.bubble .srfm-form-container input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; padding: 8px 12px !important; }
.bubble .srfm-form-container textarea { min-height: 96px; }
.bubble .srfm-form-container .srfm-description, .bubble .srfm-form-container .srfm-help-text { display: none !important; }
.bubble .srfm-form-container .srfm-submit-button, .bubble .srfm-form-container button[type="submit"] { width: 100%; justify-content: center; }
.actionbar__write { display: none; }
@media (max-width: 639px) {
  .bubble { left: 0; right: 0; bottom: var(--bar, 64px); }
  .bubble__btn { display: none; }
  .bubble__panel { position: fixed; left: 0; right: 0; bottom: var(--bar, 64px); width: 100%; max-height: calc(100svh - var(--bar, 64px) - 56px); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -12px 40px rgb(14 42 61 / .18); }
  .actionbar:has(.actionbar__write) { grid-template-columns: 48px 1fr 1.4fr !important; }
  .actionbar__write { padding: 0 !important; width: 48px !important; }
  .actionbar__write { display: inline-flex; }
}

/* FAQ: closed by default, one clear chevron on every FAQ list */
.faq summary { list-style: none; position: relative; padding-right: var(--s-7) !important; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease-out; }
.faq details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > :not(summary) { animation: faq-in .22s ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .faq details > :not(summary) { animation: none; } }
/* undo the kit's "FAQ always open" (system.css): closed by default, the question is the tap target */
.faq details::details-content { content-visibility: hidden; }
.faq details[open]::details-content { content-visibility: visible; }
.faq summary { pointer-events: auto !important; cursor: pointer !important; }
.faq details > summary:hover { color: var(--p-accent); }
.faq details > summary:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 4px; border-radius: 4px; }
.faq > details:not([open]) { gap: 0; }

/* Cookie notice (CookieYes) on phones: a compact strip instead of half the screen; same three choices */
@media (max-width: 639px) {
  .cky-consent-container .cky-consent-bar { padding: 12px 16px !important; border-radius: 0 !important; }
  .cky-consent-container .cky-notice .cky-title { font-size: 15px !important; margin: 0 0 4px !important; }
  .cky-consent-container .cky-notice-des, .cky-consent-container .cky-notice-des * { font-size: 13px !important; line-height: 1.4 !important; }
  .cky-consent-container .cky-notice-des { max-height: 3.6em; overflow: hidden; margin-bottom: 8px !important; }
  .cky-consent-container .cky-notice-btn-wrapper { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; margin-top: 4px !important; }
  .cky-consent-container .cky-notice-btn-wrapper .cky-btn { margin: 0 !important; padding: 9px 8px !important; font-size: 14px !important; width: 100% !important; }
  .cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept { grid-column: 1 / -1; order: -1; }
}

/* Mobile review (18 nov) */
/* the footer's own WhatsApp close is dropped where the page already ends with a WhatsApp action, and it never fills a whole screen */
body:has(main > :last-child a[href*="wa.me"]) footer.closing .closing__cta { display: none; }
footer.closing { min-height: 0 !important; }
@media (max-width: 1023px) { footer.closing { padding-block: var(--s-8) calc(var(--s-7) + var(--bar, 0px)); } }
/* wide tables scroll sideways on phones instead of squeezing three columns into 390 px */
@media (max-width: 639px) { .prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .prose .table-wrap table { min-width: 560px; } }

/* licence credit of a town photo (Wikimedia Commons), one quiet line */
.photo-credit { margin: var(--s-5) 0 0; font-size: 12px; color: var(--p-muted); opacity: .8; }

/* ==== batch:ciudades-a ==== */
/* ---------- Ciudades A (new town pages, batch "a") ----------
   Only what .pb-* and .la-* do not cover. The "de cerca" read carries its own h2 above the display lead. */
.cx-intro .la-intro__text > h2 { margin: 0 0 var(--s-6); }
/* ==== /batch:ciudades-a ==== */

/* ==== batch:ciudades-b ==== */
/* ---------- Ciudades b (new town pages: Vallès Occidental, Barcelonès, Maresme) ----------
   Only what poblaciones.css (.pb-*) and locales-a.css (.la-*) do not already cover. Every selector hangs from .cx-b-*. */

/* the "de cerca" read carries its own heading above the display-font lead */
.la-intro__text > h2.cx-b-h2 { margin: 0 0 var(--s-5); }

/* service columns: the name is the link to the service page, in the display face */
.cx-b-svc .la-h3 a { font-weight: inherit; }

/* places lists inside the office section (pb-office) and in the list-only section */
.cx-b-office { --la-line: color-mix(in oklab, var(--p-ink) 13%, transparent); }
.cx-b-office .la-places { margin-top: var(--s-6); }
.cx-b-note { margin: var(--s-6) 0 0; font-size: var(--t-body); line-height: 1.65; max-width: 60ch; color: var(--p-ink); }
.cx-b-lists .la-places { margin-top: var(--s-7); max-width: 900px; }
.cx-b-lists .la-area__note { max-width: 900px; }

/* "de cerca" with its own h2: the lead steps down from display size so it does not read as a second heading */
.la-intro__text > h2.cx-b-h2 + p.la-intro__lead { margin-bottom: var(--s-6); font-family: var(--font-text); font-size: var(--t-lead); line-height: 1.5; letter-spacing: 0; max-width: 40ch; }

/* neighbourhoods beside nearby towns: the longer list in two columns, no gap between a label and its list */
.cx-b-places > div:first-child ul { columns: 2; column-gap: var(--s-6); }
@media (min-width: 640px) { .cx-b-places.la-places--2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); row-gap: 0; } }
/* ==== /batch:ciudades-b ==== */

/* Dónde encontrarnos: every town page, grouped by comarca */
.where-all__inner { width: 100%; }
.where-all__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-6) var(--s-7); margin-top: var(--s-6); }
.where-all__col h3 { font-size: var(--t-body); font-weight: 600; margin: 0 0 var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.where-all__col .plain-list li { margin: 0 0 var(--s-2); }
.where-all__col a { color: var(--p-ink); text-decoration: none; font-weight: 500; }
.where-all__col a:hover { color: var(--p-accent); }

/* calculator card on phones: inside the page gutters (the kit pulled it to the screen edge only on the left) */
@media (max-width: 639px) { [data-ui="calculadora"] { margin-inline: 0 !important; } [data-ui="calculadora"] .calc { border-radius: var(--r-lg); padding: var(--s-5) var(--s-4); } }

