/*
  Community Roster site layer (ours, not the kit's). Loaded after the tasteskill kit by
  app/(site)/layout.tsx. Every value comes from the kit's tokens (system.css :root): spacing --s-*,
  type --t-*, radius --r-*, colours --ink --muted --line --surface --action. Read
  components/site/README.md before adding a rule here.

  1. Flow pages        every page but the home page (main without data-screens): long pages are exempt
                       from the kit's one-section-per-screen heights (README, rule 8).
  2. Shared blocks     the classes the shared components in components/site use on inner pages.
  3. Home page CSS     only what sits inside a visual on the home page (#roster, #record, #coverage ...).
*/

/* ------------------------------------------------------------------ 1. flow pages */
/* the fixed header (72 / 56) sits over the top of a flow page: its first block starts under it */
#main { padding-top: var(--nav); }
#main:has(> main[data-screens]) { padding-top: 0; }

main:not([data-screens]) > :is(section, .section) {
  height: auto; min-height: 0; display: block;
  padding: var(--s-9) 0;
}
@media (max-width: 639px) {
  main:not([data-screens]) > :is(section, .section) { padding: var(--s-8) 0; }
}
main:not([data-screens]) > :is(section, .section) > :is(.wrap, .container) { height: auto; display: block; }
.site-root .cr-sec { padding: var(--s-9) 0; }
@media (max-width: 639px) { .site-root .cr-sec { padding: var(--s-8) 0; } }
.site-root .cr-sec.cr-sec--flush-top { padding-top: 0; }
.site-root .cr-sec.cr-sec--tight { padding-block: var(--s-7); }
.site-root .cr-sec.cr-hero { padding-top: var(--s-8); padding-bottom: var(--s-8); }
@media (max-width: 639px) {
  .site-root .cr-sec.cr-hero { padding-top: var(--s-6); padding-bottom: var(--s-7); }
}
/* the kit's .grid columns only where the kit's markup asks for them; a Tailwind grid uses [display:grid] */
main:not([data-screens]) .grid > * { min-width: 0; }

/* on a flow page the footer is its links only (row 1, the big close, belongs to the home page) */
.site-root:not(:has(main[data-screens])) footer.closing {
  height: auto; min-height: 0; display: block; padding: var(--s-9) 0 var(--s-6);
}
.site-root:not(:has(main[data-screens])) footer.closing > .wrap { height: auto; display: block; }
.site-root:not(:has(main[data-screens], main[data-home])) footer.closing .closing__cta { display: none; }

/* ------------------------------------------------------------------ the footer (every page) */
.footer__brand { display: grid; gap: var(--s-4); align-content: start; }
.footer__brand .nav__logo img { height: 22px; }
.footer__email { font-size: var(--t-small); width: max-content; }
.footer__legal { display: grid; gap: var(--s-3); justify-content: stretch; }
.footer__legal-links { display: block; }
.footer__legal-links a:hover { color: var(--ink); }
.footer__colophon, .footer__entity { margin: 0; font-size: var(--t-label); color: var(--muted); }
@media (min-width: 1024px) {
  .footer__legal { grid-template-columns: auto 1fr; }
  .footer__colophon { justify-self: end; text-align: right; }
  .footer__entity { grid-column: 1 / -1; }
}
.footer .footer__col li { line-height: 1.35; }

/* ------------------------------------------------------------------ 2. shared blocks (inner pages) */
.cr-h1 { font-size: clamp(36px, 2.1vw + 28px, 56px); line-height: 1.06; max-width: 22ch; }
.cr-h1--display { font-size: var(--t-h1); line-height: 1.04; }
.cr-h2 { font-size: var(--t-h2); line-height: 1.1; max-width: 26ch; }
.cr-h3 { font-size: var(--t-h3); line-height: 1.2; }

/* hero */
.cr-hero__crumbs { margin-bottom: var(--s-6); }
.cr-hero__copy > * + * { margin-top: var(--s-5); }
.cr-hero__copy > .cr-hero__actions { margin-top: var(--s-6); }
.cr-hero__lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 62ch; }
.cr-hero__lead > p + p { margin-top: var(--s-3); }
.cr-hero__note { font-size: var(--t-small); color: var(--muted); }
.cr-hero__under { margin-top: var(--s-8); }
.cr-hero__split { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) {
  .cr-hero__split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .cr-hero__split > .cr-hero__copy { grid-column: 1 / span 6; }
  .cr-hero__split > .cr-hero__media { grid-column: 7 / -1; }
}
@media (max-width: 639px) { .cr-hero__actions > .btn { width: 100%; } }

/* section heading: an optional label row on a hairline (index number + label), then the h2 */
.cr-head { margin-bottom: var(--head-gap); }
.cr-index { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-3); margin-bottom: var(--s-5);
  border-top: 1px solid var(--line); font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.cr-index__n { color: var(--action); font-variant-numeric: tabular-nums; }
.cr-head__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); }
.cr-head__text { display: grid; gap: var(--s-4); max-width: 760px; }
.cr-head__lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 60ch; }

/* cards */
.cr-cards { display: grid; gap: var(--card-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cr-cards--2, .cr-cards--3, .cr-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .cr-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cr-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cr-cards--image { row-gap: var(--s-7); }
.cr-card__media { margin-bottom: var(--s-5); }
.cr-card__tag { margin-bottom: var(--s-3); }
.cr-card__title { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; color: var(--ink); }
.cr-card__body { margin-top: var(--s-2); color: var(--ink); font-size: var(--t-body); line-height: 1.55; }
.cr-card__body > p + p { margin-top: var(--s-2); }
.cr-card__link { margin-top: auto; padding-top: var(--s-5); }
.card.cr-card--tinted { --card: var(--p-surface); }
.cr-card-img { display: flex; flex-direction: column; }

/* steps on one hairline */
.cr-steps { display: grid; gap: var(--s-7) var(--gutter); grid-template-columns: minmax(0, 1fr); counter-reset: none; }
@media (min-width: 768px) { .cr-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cr-steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cr-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cr-step { border-top: 1px solid var(--line-strong); padding-top: var(--s-5); }
.cr-step__n { display: block; font: var(--display-weight) var(--t-h3)/1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--action); font-variant-numeric: tabular-nums; }
.cr-step__title { margin-top: var(--s-5); font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.cr-step__body { margin-top: var(--s-2); color: var(--ink); }

/* FAQ answers */
.cr-faq .cr-faq__a { color: var(--ink); max-width: 64ch; }
.cr-faq .cr-faq__a > * + * { margin-top: var(--s-2); }
.cr-faq a, .cr-head__lead a, .cr-hero__lead a, .cr-card__body a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.cr-faq a:hover, .cr-hero__lead a:hover { text-decoration-color: currentColor; }

/* the ledger: dated figures on hairlines */
.cr-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); margin: 0; }
@media (min-width: 1024px) {
  .cr-ledger--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cr-ledger--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cr-ledger__cell { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5) var(--s-5) var(--s-5) 0; min-width: 0; }
.cr-ledger__cell + .cr-ledger__cell { border-left: 1px solid var(--line); padding-left: var(--s-5); }
@media (max-width: 1023px) {
  .cr-ledger__cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .cr-ledger__cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.cr-ledger__label { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.cr-ledger__value { margin: 0; font: var(--display-weight) var(--t-stat)/1.05 var(--font-display); letter-spacing: var(--display-tracking); font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.cr-ledger__sub { margin: 0; font-size: var(--t-label); color: var(--muted); }
.cr-ledger__note { margin-top: var(--s-4); font-size: var(--t-label); color: var(--muted); }

/* the inner-page close */
.cr-cta { display: grid; gap: var(--s-6); padding-top: var(--s-7); border-top: 1px solid var(--line-strong); }
.cr-cta__body { margin-top: var(--s-4); font-size: var(--t-lead); line-height: 1.5; max-width: 60ch; }
@media (min-width: 1024px) { .cr-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
@media (max-width: 639px) { .cr-btn--full { width: 100%; } }

/* tables and figures that old pages still draw with Tailwind keep the kit's text face and ink */
.site-root table { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ 3. home page (page CSS inside visuals) */
/* the roster: the product's own window (app-frame), live HTML, sample rows marked inside the frame */
.roster.ui { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink);
  box-shadow: 0 1px 2px rgb(28 28 26 / .05), 0 24px 48px -28px rgb(28 28 26 / .22); font-family: var(--font-text); }
.roster__bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); font-size: 14px; }
.roster__bar b { font-weight: 500; }
.roster__crumb { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.roster__sample { margin-left: auto; flex: none; padding: 2px 10px; border-radius: 999px; background: #f3efe6; color: #5e5232; font-size: 13px; font-weight: 500; }
.roster__filters { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); font-size: 13px; }
.roster__chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.roster__chip i { font-style: normal; color: var(--muted); }
.roster__chip--on { border-color: color-mix(in oklab, var(--action) 45%, transparent); background: color-mix(in oklab, var(--action) 7%, #fff); }
.roster__count { margin-left: auto; align-self: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.roster__body { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.roster__body::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.roster table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; table-layout: fixed; }
.roster th { text-align: left; font-weight: 500; color: var(--muted); background: var(--p-surface); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.roster td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.roster td b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster td span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster td.roster__email { color: var(--action); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster tr.is-open td { background: color-mix(in oklab, var(--action) 6%, #fff); }
.roster tr.is-open td:first-child { box-shadow: inset 3px 0 0 var(--action); }
.roster__ok { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.roster__ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2e7d4f; flex: none; }
.roster col.c-assoc { width: 38%; } .roster col.c-board { width: 26%; } .roster col.c-email { width: 36%; }
.roster .c-ver, .roster col.c-ver { display: none; }
@media (min-width: 1280px) {
  .roster col.c-assoc { width: 34%; } .roster col.c-board { width: 22%; } .roster col.c-email { width: 28%; } .roster col.c-ver { display: table-column; width: 16%; }
  .roster .c-ver { display: table-cell; }
}
@media (max-width: 639px) {
  .roster col.c-email, .roster .c-email-cell { display: none; }
  .roster col.c-assoc { width: 58%; } .roster col.c-board { width: 42%; }
}
/* the record: one board member's row, opened, in the [data-visual] frame on the page's one effect */
#record .frame--record { --ratio: 0px; min-height: 0; height: 100%; padding: 0; background: var(--ground-bg); border: 0; align-items: stretch; justify-content: flex-start; }
#record .frame--record > .frame__fx { position: absolute; inset: 0; }
#record .rec { position: relative; z-index: 1; display: grid; width: 100%; padding: clamp(24px, 4vw, 56px); align-content: center; }
.rec__card.ui { background: #fff; border: 1px solid rgb(28 28 26 / .1); border-radius: var(--r-md); box-shadow: 0 30px 60px -30px rgb(28 28 26 / .35); overflow: hidden; color: var(--p-ink); font-family: var(--font-text); }
.rec__head { display: flex; align-items: center; gap: var(--s-3); padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--p-muted); }
.rec__head b { color: var(--p-ink); font-weight: 500; }
.rec__head .roster__sample { margin-left: auto; }
.rec__rows { margin: 0; }
.rec__row { display: grid; grid-template-columns: 28px 120px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rec__note { display: none; color: var(--p-muted); }
@media (min-width: 1024px) { .rec__row { grid-template-columns: 28px 128px minmax(0, 5fr) minmax(0, 6fr); gap: 16px; padding: 10px 20px; } .rec__note { display: block; } }
.rec__row:last-child { border-bottom: 0; }
.rec__row dt { color: var(--p-muted); font-size: 13px; }
.rec__row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rec__n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--p-ink); color: #fff; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; align-self: center; }
.rec__email { color: var(--p-action); }
.rec__legend { display: grid; gap: 0; margin: 0; padding: 0; color: var(--ground-ink); }
.rec__legend li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid color-mix(in oklab, var(--ground-ink) 16%, transparent); font-size: 16px; line-height: 1.45; }
.rec__legend li:first-child { border-top: 0; padding-top: 0; }
.rec__legend .rec__n { background: var(--ground-ink); color: var(--ground-bg); }
@media (max-width: 1023px) { .rec__legend { display: none; } }
@media (max-width: 639px) { .rec__row { grid-template-columns: 24px 96px minmax(0, 1fr); padding: 8px 12px; } }

/* the tile map: status by fill and by pattern (the study's cadastral legend) */
.tiles { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: clamp(3px, .5vw, 8px); }
.tile-st { display: grid; place-items: center; aspect-ratio: 1; border-radius: clamp(4px, .5vw, 8px); font: 500 clamp(9px, .75vw, 13px)/1 var(--font-text); letter-spacing: .01em; }
.tile-st--live { background: var(--action); color: #fff; position: relative; }
.tile-st--live::after { content: ""; position: absolute; top: 18%; right: 18%; width: 14%; height: 14%; border-radius: 50%; background: #fff; }
.tile-st--built_to_order { background: #dce5f2; color: #1f3a66; }
.tile-st--on_request { background: repeating-linear-gradient(45deg, #f3efe6 0 4px, #e5dcc6 4px 5px); color: #5e5232; }
.tile-st--not_covered { background: transparent; color: #6b6a63; box-shadow: inset 0 0 0 1px rgb(28 28 26 / .22); }
.tile-key { display: grid; margin: 0; padding: 0; }
.tile-key li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.tile-key li:last-child { border-bottom: 1px solid var(--line); }
.tile-key .tile-st { width: 20px; aspect-ratio: 1; border-radius: 5px; }
.tile-key .tile-st--live::after { width: 4px; height: 4px; top: 4px; right: 4px; }
.tile-key b { font-weight: 500; }
.tile-key span.n { font: var(--display-weight) var(--t-h3)/1 var(--font-display); letter-spacing: var(--display-tracking); font-variant-numeric: tabular-nums; }
.tile-key small { display: block; font-size: var(--t-small); color: var(--muted); }


/* services: the small live samples on the card grounds */
#services .panel { --p-h: 300px; }
@media (max-width: 639px) { #services .panel { --p-h: 220px; } }
#services .card h3 a { color: inherit; }
@media (max-width: 639px) { #services .card h3 a { display: inline-flex; align-items: center; min-height: 44px; } }
.frag.ui { background: #fff; border: 1px solid rgb(28 28 26 / .1); border-radius: 12px; box-shadow: 0 18px 40px -24px rgb(28 28 26 / .4); font: 13px/1.4 var(--font-text); color: var(--p-ink); overflow: hidden; }
.frag__head { display: flex; align-items: center; gap: var(--s-3); padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--p-muted); font-family: var(--font-mono); font-size: 12px; }
.frag__head .roster__sample { margin-left: auto; font-family: var(--font-text); }
.frag__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); padding: 9px 14px; border-bottom: 1px solid var(--line); }
.frag__row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frag__email { color: var(--p-action); }
@media (max-width: 479px) { .frag__email { display: none; } }
.frag__msg { display: grid; gap: 4px; margin: 14px; padding: 12px 14px; background: var(--p-surface); border-radius: 10px; font-size: 14px; }
.frag__msg b { font-weight: 500; font-size: 13px; color: var(--p-muted); }
.frag__booked { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 12px 14px; border-radius: 10px; background: #eaf0e8; font-size: 14px; font-weight: 500; }
.frag__check { width: 18px; height: 18px; border-radius: 50%; background: #2e7d4f; flex: none; position: relative; }
.frag__check::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* how: the three steps as a short ordered list beside the diagram */
#how .how__lead { margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.5; }
#how .how__steps { display: grid; gap: var(--s-4); margin-top: var(--s-6); counter-reset: step; }
#how .how__steps li { position: relative; padding-left: 40px; counter-increment: step; }
#how .how__steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 500 var(--t-small)/1.6 var(--font-text); color: var(--action); font-variant-numeric: tabular-nums; }
#how .how__steps b { font-weight: 500; }
#how .how__frame { min-height: 0; height: 100%; padding: var(--s-5); }
#how .how__frame > .dg { width: 100%; }
@media (max-width: 1023px) { #how .how__frame { height: auto; min-height: 320px; margin-top: var(--s-7); } }
/* phones: the kit's diagram turns its nodes into 36px tiles with captions under them (cut-text) and lights
   its core on view (scroll-reveal); the three numbered steps beside it carry the same content there */
@media (max-width: 639px) { #how .how__frame { display: none; } }

/* coverage: the counts key beside the tile map */
#coverage .tile-key { align-self: start; }
#coverage .coverage__map { align-self: start; }

/* buyers: the trades as ruled rows beside one photograph (peek) */
#buyers .buyers__rows > li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: default; }
#buyers .buyers__rows .rows__name { display: flex; align-items: baseline; gap: var(--s-3); font: 500 var(--t-card)/1.3 var(--font-text); }
#buyers .buyers__rows .rows__name a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
#buyers .buyers__rows .rows__name a:hover { text-decoration-color: currentColor; }
#buyers .buyers__rows p { padding-left: 34px; color: var(--muted); font-size: var(--t-body); line-height: 1.5; }
#buyers .buyers__n { width: 22px; flex: none; color: var(--action); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { #buyers .buyers__photo { min-height: 280px; margin-top: var(--s-6); } }

/* faq */
#faq .faq p { font-size: var(--t-body); }

/* the price calculator as a receipt (PriceCalculator.tsx): input, tier ruler, ruled lines with leaders */
.cr-receipt { display: flex; flex-direction: column; padding: var(--s-6); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--p-bg); }
.cr-receipt__label { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.cr-receipt__hint { margin-top: var(--s-1); font-size: var(--t-small); color: var(--muted); }
.cr-receipt__input { margin-top: var(--s-4); height: 48px; width: 100%; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 400 16px/1 var(--font-text); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--p-bg); }
.cr-receipt__input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in oklab, var(--action) 25%, transparent); }
.cr-ruler { margin-top: var(--s-6); }
.cr-ruler__bar { position: relative; height: 8px; border-radius: 4px; background: var(--p-surface); overflow-x: clip; }
.cr-ruler__seg { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--p-bg); background: color-mix(in oklab, var(--action) 18%, var(--p-bg)); transition: background-color var(--m-in, 150ms) var(--m-ease, ease); }
.cr-ruler__seg:first-child { border-left: 0; border-radius: 4px 0 0 4px; }
.cr-ruler__seg.is-on { background: var(--action); }
/* the mark is a full-width track moved with transform (a percentage of its own width is a percentage of the bar), so it can travel between tiers without animating `left` */
.cr-ruler__mark { position: absolute; top: -6px; left: 0; right: 0; height: 20px; pointer-events: none; transition: transform var(--m-slide, 240ms) var(--m-ease-io, ease-in-out); }
.cr-ruler__mark::before { content: ""; position: absolute; top: 0; left: -1px; width: 2px; height: 100%; background: var(--ink); border-radius: 1px; }
.cr-ruler__ticks { position: relative; height: 20px; margin-top: var(--s-2); font-size: var(--t-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.cr-ruler__ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.cr-ruler__ticks span:first-child { transform: none; }
.cr-ruler__ticks span:last-child { transform: translateX(-100%); }
.cr-receipt__out { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.cr-receipt__line { display: flex; align-items: baseline; gap: var(--s-2); font-variant-numeric: tabular-nums; }
.cr-receipt__line > i { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.cr-receipt__line--total { margin-top: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line-strong); font: var(--display-weight) var(--t-h3)/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
.cr-receipt__note { font-size: var(--t-small); color: var(--muted); }

/* phones: the logo and the menu button fit 320; the big close button wraps; trade links are 44px targets */
@media (max-width: 639px) {
  .nav__bar { gap: var(--s-5); }
  .nav__logo img { height: 18px; }
  .closing__cta .btn--xl { width: 100%; height: auto; min-height: 56px; padding-block: var(--s-3); white-space: normal; font-size: 18px; }
  #buyers .buyers__rows .rows__name a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* faq: the board photograph under the heading */
#faq .faq__photo { margin-top: var(--s-6); aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 1024px) { #faq .faq__photo { aspect-ratio: auto; flex: 1 1 0; min-height: 200px; } }

/* home page shell: no wrapper boxes around header, main and footer (container-edges) */
.site-root:has(main[data-screens]), #main:has(> main[data-screens]) { display: contents; }

/* the phone bar: the logo's mark, the main button and the menu button fit 320 */
@media (max-width: 639px) { .nav__logo picture img { height: 24px; } }
@media (max-width: 359px) { .nav:not(.is-open) .nav__actions .btn { font-size: 13px; padding-inline: 10px; } }

.footer__lk { margin-left: var(--s-5); }
@media (max-width: 639px) { .footer__legal-links .footer__copy, .footer__lk { display: block; margin-left: 0; } }

/* ---------------------------------------------------------------- home page: a flow page (main[data-home])
   The kit's one-section-per-screen heights stretched every section to the window, which left large empty
   bands on a tall screen (client, 2026-11-12). The home page now uses the flow rules at the top of this
   file: each section is as tall as its content. Its footer keeps the big closing line. */

/* home hero: the kit's centred hero with a wide photograph in place of the product window (client's choice) */
/* sections sit closer on the home page than on the long inner pages: 64 above and below (128 between two) */
main[data-home] > :is(section, .section) { padding: var(--s-8) 0; }
main[data-home] > .cr-hero-photo { padding: var(--s-8) 0 var(--s-8); }
/* the closing line and the footer links were two rows of one screen; in the flow they need their own gap */
.site-root:has(main[data-home]) footer.closing .closing__links { margin-top: var(--s-9); }
.cr-hero-photo .hero__c { max-width: 960px; }
.cr-hero-photo h1 { max-width: 19ch; }
.cr-hero-photo .hero__lead { max-width: 60ch; color: var(--ink); text-wrap: balance; }
.cr-hero-photo .hero__window { flex: none; min-height: 0; aspect-ratio: 2.9 / 1; margin-top: var(--s-7); -webkit-mask-image: none; mask-image: none; border-radius: var(--r-lg); background: var(--surface); }
.cr-hero-photo .hero__window img { object-fit: cover; object-position: 50% 58%; }
@media (max-width: 1023px) { .cr-hero-photo .hero__window { aspect-ratio: 2 / 1; } }
@media (max-width: 639px) {
  main[data-home] > :is(section, .section) { padding: var(--s-7) 0; }
  main[data-home] > .cr-hero-photo { padding: var(--s-6) 0 var(--s-7); }
  .cr-hero-photo .hero__window { aspect-ratio: 4 / 3; margin-top: var(--s-6); -webkit-mask-image: none; mask-image: none; }
  .cr-hero-photo .btn-row .btn { width: 100%; }
}

/* phones: the diagram's steps as a still column of ruled rows on the lit ground, in its place */
.how__flow { display: none; }
@media (max-width: 639px) {
  #how .how__flow { display: grid; gap: 0; margin-top: var(--s-6); padding: var(--s-2) var(--s-4); border-radius: var(--r-lg);
    background: var(--ground-surface); color: var(--ground-ink); font-size: var(--t-body); }
  #how .how__flow li { display: flex; align-items: baseline; gap: var(--s-2); min-height: 48px; padding-block: 12px; border-top: 1px solid color-mix(in oklab, var(--ground-ink) 14%, transparent); }
  #how .how__flow li:first-child { border-top: 0; }
  #how .how__flow b { font-weight: 500; }
  #how .how__flow .how__flow-core { font-weight: 500; color: var(--action); }
  #buyers .buyers__photo { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 639px) { .cr-ruler__ticks span:nth-child(4) { display: none; } }

/* ---------------------------------------------------------------- motion: the lead form's states
   The confirmation and the error alert are new elements, so they enter once with @starting-style.
   Transitions only. Under reduced motion they fade and nothing moves. */
.cr-lead-ok { transition: opacity 300ms var(--m-ease-enter, ease-out), transform 300ms var(--m-ease-enter, ease-out); }
.cr-lead-ok__mark { transition: opacity var(--m-panel, 200ms) var(--m-ease, ease-out) 80ms, transform var(--m-panel, 200ms) var(--m-ease, ease-out) 80ms; }
.cr-lead-alert { transition: opacity var(--m-panel, 200ms) var(--m-ease, ease-out), transform var(--m-panel, 200ms) var(--m-ease, ease-out); }
.cr-lead-err { transition: opacity var(--m-in, 150ms) var(--m-ease, ease-out), transform var(--m-in, 150ms) var(--m-ease, ease-out); }
/* LeadForm scrolls the confirmation or the alert into view after a submit; this keeps it clear of the fixed header */
.cr-lead-ok, .cr-lead-alert { scroll-margin-top: calc(var(--nav, 72px) + var(--s-5)); scroll-margin-bottom: var(--s-5); }
@starting-style {
  .cr-lead-ok { opacity: 0; transform: translateY(8px); }
  .cr-lead-ok__mark { opacity: 0; transform: scale(.9); }
  .cr-lead-alert { opacity: 0; transform: translateY(-4px); }
  .cr-lead-err { opacity: 0; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .cr-ruler__mark { transition: none; }
  /* the kit sets every transition to .001ms here; these state changes keep a short fade (opacity only) so the change is still noticed */
  .cr-lead-ok, .cr-lead-ok__mark, .cr-lead-alert, .cr-lead-err { transition: opacity var(--m-in, 150ms) var(--m-ease, ease-out); transition-duration: var(--m-in, 150ms) !important; }
  @starting-style { .cr-lead-ok, .cr-lead-ok__mark, .cr-lead-alert, .cr-lead-err { transform: none; } }
}
