/* ==========================================================================
   tabs.css: the tab boxes (the chapters of Home's opening and every tab group
   on Services), the price note with its "Ask about" button on Services, and
   "What you can count on", the reasons to start on Home.
   Linked after styles.css (?v=40), so these rules take the place of the
   Round 26 look of the same parts.

   Why. The owner, 16 Nov 2026, on a tab box: "these boxes feel kinda
   underwhelming a bit with info". Each tab now opens a page with a heading,
   two short sentences, four short points (or numbered steps, or the two
   parts of a price) and a foot line of short facts or a link. The names sit
   in the top of the same card, so a tab box reads as one object. And Home
   should make a business owner want to start: "What you can count on" is
   five reasons, each under a bronze numeral, then one plain invitation.

   Behaviour is main.js (initTabs): .tabs[data-tabs], .tab, .tab-panel and
   .is-on are read there and keep their names; it adds .tabs-on, .tab-track
   and the sliding marker span.tab-mark (drawn in styles.css, Round 29, in
   --tb-acc from here). Every page of a box sits in the same grid cell, so the
   box is as tall as its longest page and never jumps when a tab is chosen,
   and the foot line sits on the same bottom edge on every page.

   Colour: only the site's own tokens (styles.css :root and Round 29), never
   a typed colour. Navy and cream lead. The bronze-gold accent appears only in
   its roles:
     - the fine hairline along the top of a card;
     - the marker under the chosen tab;
     - the small marks before points, the numerals of steps, the dots between
       facts and the underline of a link;
     - the large numerals of "What you can count on" and their hairlines.
   Words are cream on navy and navy on cream, never bronze. On cream the marks
   take the deep bronze (--accent-deep). White and black appear only as light
   and shadow, at low strength.
   ========================================================================== */

/* ---- 1. The card ----------------------------------------------------------- */
.tabs {
  --tb-acc: var(--accent);
  --tb-acc-hi: var(--accent-hi);
  --tb-line: rgb(var(--fg-rgb) / .13);
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin-top: 26px;
  border: 1px solid rgb(var(--fg-rgb) / .17);
  border-radius: 8px;
  background-color: var(--navy-mid);
  background-image:
    radial-gradient(120% 64% at 0% 0%, rgb(var(--fg-rgb) / .065), transparent 64%),
    linear-gradient(180deg, var(--navy-lift), var(--navy-mid) 54%, var(--ink));
  box-shadow: inset 0 1px 0 rgb(var(--fg-rgb) / .08), 0 36px 60px -40px rgb(0 0 0 / .85);
  text-align: left;
  container-type: inline-size;
}
/* the bronze hairline along the top edge, brightest in the middle */
.tabs::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tb-acc) 16%, var(--tb-acc-hi) 50%, var(--tb-acc) 84%, transparent);
  pointer-events: none;
}

/* ---- 2. The names: a strip across the top of the card ------------------------ */
.tabs .tab-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 2px;
  padding: 4px 12px 0;
  border-bottom: 1px solid var(--tb-line);
}
.tabs .tab {
  position: relative;
  min-height: 44px;
  padding: 11px 12px 12px;
  border: 0;
  border-radius: 4px 4px 0 0;
  background: none;
  color: rgb(var(--fg-rgb) / .8);
  font: 500 0.9375rem/1.3 var(--font-body);
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  transition: color var(--t-fast, 200ms) var(--ease), background-color var(--t-fast, 200ms) var(--ease);
}
/* the chosen name: full strength, with a bronze mark under it. main.js draws
   one sliding mark per row (span.tab-mark) and hides this one; this one stays
   as the fallback. */
.tabs .tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--tb-acc);
  transform: scaleX(0);
  transition: transform 260ms var(--ease);
}
.tabs .tab[aria-selected="true"] { color: var(--chalk); background: none; border-color: transparent; }
.tabs .tab[aria-selected="true"]::after { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .tabs .tab:not([aria-selected="true"]):hover { color: var(--chalk); background: rgb(var(--fg-rgb) / .05); border-color: transparent; transform: none; }
}
.tabs .tab:focus-visible { outline: 2px solid var(--tb-acc-hi); outline-offset: -4px; border-radius: 6px; }
.calm .tabs .tab::after { transition: none; }
/* When four, five or six names do not fit on one line they fall into even
   rows (two by two, three and two, three and three), never one name alone on
   a line. Three names always fit on one line. Counted by type, because
   main.js adds its sliding marker (span.tab-mark) to the same row. */
.tabs-on .tab-row:has(> button.tab:nth-of-type(4):last-of-type),
.tabs-on .tab-row:has(> button.tab:nth-of-type(5):last-of-type),
.tabs-on .tab-row:has(> button.tab:nth-of-type(6):last-of-type) { display: grid; justify-content: start; justify-items: start; column-gap: 2px; }
.tabs-on .tab-row:has(> button.tab:nth-of-type(4):last-of-type) { grid-template-columns: repeat(2, auto); }
.tabs-on .tab-row:has(> button.tab:nth-of-type(5):last-of-type),
.tabs-on .tab-row:has(> button.tab:nth-of-type(6):last-of-type) { grid-template-columns: repeat(3, auto); }
/* six names keep two rows of three on a phone (the names sit closer, see 6);
   only a very narrow card takes three rows of two */
@container (max-width: 329px) {
  .tabs-on .tab-row:has(> button.tab:nth-of-type(6):last-of-type) { grid-template-columns: repeat(2, auto); }
}
@container (min-width: 440px) {
  .tabs-on .tab-row:has(> button.tab:nth-of-type(5):last-of-type) { display: flex; }
}
@container (min-width: 460px) {
  .tabs-on .tab-row:has(> button.tab:nth-of-type(4):last-of-type) { display: flex; }
}
@container (min-width: 660px) {
  .tabs-on .tab-row:has(> button.tab:nth-of-type(6):last-of-type) { display: flex; }
}

/* ---- 3. The page under the names ---------------------------------------------- */
/* --tb-pad is the page's side padding: the foot line (5) runs edge to edge. */
.tabs .tab-screen { margin: 0; border: 0; border-radius: 0 0 7px 7px; background: none; box-shadow: none; }
.tabs .tab-panel { --tb-pad: 24px; --tb-pad-b: 22px; display: flex; flex-direction: column; padding: 20px var(--tb-pad) var(--tb-pad-b); }
.tabs .tab-name { font-size: 1.625rem; line-height: 1.12; color: var(--chalk); text-wrap: balance; }
.tabs .tab-panel > p { margin-top: 10px; font-size: 1rem; line-height: 1.55; color: rgb(var(--fg-rgb) / .9); text-wrap: pretty; }

/* ---- 4. The points: two columns where the card is wide enough --------------- */
.tab-points {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--tb-line);
}
@container (min-width: 380px) {
  .tab-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* on a Services card the column is narrower and height is free: one point to a line */
@container (max-width: 439px) {
  .svc .tab-points { grid-template-columns: minmax(0, 1fr); }
}
.tab-points li { position: relative; padding-left: 18px; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--chalk); }
.tab-points li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .5em;
  width: 6px;
  height: 6px;
  background: var(--tb-acc);
  transform: rotate(45deg);
}
/* the same points as numbered steps, read across then down */
.tab-steps { counter-reset: tab-step; }
.tab-steps li { counter-increment: tab-step; padding-left: 24px; }
.tab-steps li::before {
  content: counter(tab-step);
  top: -.08em;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  transform: none;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--tb-acc);
}
/* the two parts of a price, as on Pricing: a name in small capitals over what it pays for */
.tab-parts li { font-weight: 400; color: rgb(var(--fg-rgb) / .9); }
.tab-parts li b { display: block; margin-bottom: 3px; font-size: 0.8125rem; font-weight: 500; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--chalk); }
.tab-parts li::before { top: .38em; }

/* ---- 5. The foot line: short facts, or a link onward, on the bottom edge ------ */
/* A quiet strip across the foot of the page, the same on every tab of a box. */
.tabs .tab-panel > :has(+ .tab-facts) { margin-bottom: 18px; }
.tabs .tab-panel > .tab-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  margin: auto calc(var(--tb-pad) * -1) calc(var(--tb-pad-b) * -1);
  padding: 11px var(--tb-pad) 12px;
  border-top: 1px solid var(--tb-line);
  border-radius: 0 0 7px 7px;
  background: rgb(var(--fg-rgb) / .04);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgb(var(--fg-rgb) / .86);
}
/* the dot belongs to the fact before it, so a line that wraps never starts with a dot */
.tab-facts > span:has(+ span)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px 0 11px;
  border-radius: 50%;
  background: var(--tb-acc);
  vertical-align: .2em;
}
/* a link sits at the right-hand end of the strip */
.tabs .tab-facts > a { margin-left: auto; padding-left: 16px; }
.tabs .tab-go, .tabs .tab-link {
  font-weight: 500;
  white-space: nowrap;
  color: var(--chalk);
  text-decoration: underline;
  text-decoration-color: var(--tb-acc);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--t-fast, 200ms) var(--ease);
}
.tabs .tab-go:hover, .tabs .tab-link:hover { text-decoration-color: var(--tb-acc-hi); text-decoration-thickness: 2px; }
.tabs .tab-link::after { content: " \2192"; }

/* ---- 6. Narrow cards (a phone, or a narrow column): a little tighter ---------- */
@container (max-width: 439px) {
  .tabs .tab-panel { --tb-pad: 20px; }
}
@container (max-width: 379px) {
  .tabs .tab-row { padding-inline: 6px; }
  .tabs .tab { padding-inline: 9px; }
  .tabs .tab::after { left: 9px; right: 9px; }
  .tabs .tab-panel { --tb-pad: 18px; --tb-pad-b: 18px; padding-top: 16px; }
  .tabs .tab-name { font-size: 1.5rem; }
  .tab-points { gap: 7px 16px; margin-top: 14px; padding-top: 14px; }
  .tabs .tab-panel > :has(+ .tab-facts) { margin-bottom: 16px; }
  .tabs .tab-panel > .tab-facts { padding-block: 10px 11px; }
  .tab-facts > span:has(+ span)::after { margin-inline: 8px 9px; }
}

/* ---- 7. On cream: a lighter card, navy words, the deep bronze ---------------- */
.on-cream .tabs {
  --tb-acc: var(--accent-deep);
  --tb-acc-hi: var(--accent);
  border-color: rgb(var(--fg-rgb) / .13);
  background-color: var(--cream-hi);
  background-image: linear-gradient(180deg, rgb(255 255 255 / .78), rgb(255 255 255 / .22) 70%, rgb(255 255 255 / .08));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 28px 46px -34px rgb(var(--fg-rgb) / .5);
}
.on-cream .tabs .tab-panel > .tab-facts { background: rgb(var(--fg-rgb) / .03); color: rgb(var(--fg-rgb) / .82); }

/* ---- 8. Without JavaScript: no names, every page listed in the card ----------- */
.tabs:not(.tabs-on) .tab-panel + .tab-panel { border-top: 1px solid var(--tb-line); }
.tabs:not(.tabs-on) .tab-panel > .tab-facts { border-radius: 0; }

/* ---- 9. Blueprint view keeps its drawing-office look -------------------------- */
.bp .tabs, .bp .on-cream .tabs { background: none; box-shadow: none; border-style: dashed; border-color: var(--chalk-60); }
.bp .tabs::before { display: none; }
.bp .tabs .tab-panel > .tab-facts { background: none; border-top-style: dashed; }

/* ---- 10. The opening on Home -------------------------------------------------- */
@media (min-width: 900px) {
  .saga .beat .tabs { margin-top: 22px; }
}
@media (max-width: 899px) {
  .saga .beat .tabs { margin-top: 20px; }
}

/* ==========================================================================
   Services: each service ends with a price note: what sets its price, in
   words (every price is set for the job), an "Ask about" button that opens
   Contact with the service named (contact.html?plan=..., main.js initPlan)
   and a link to Pricing. On a card it sits in the drawing's column, under
   the drawing; in Marketing, under the words.
   ========================================================================== */
.svc-price .svc-price-k {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.svc-price .svc-price-k::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--gold); }
.svc-price > p:not(.svc-price-k):not(.svc-ask) { font-size: 1.0625rem; line-height: 1.55; font-weight: 400; color: var(--chalk); }
.svc-price .svc-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 20px;
}
.svc-price .svc-ask .text-link { font-weight: 500; white-space: nowrap; }
/* Marketing: under the words, after a fine rule */
.mkt .svc-price { max-width: 30em; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgb(var(--fg-rgb) / .14); }
/* ...and on a narrow screen, where everything is one column, after the tabs,
   as on the cards: what it is, what is in it, then the price and the button */
@media (max-width: 899px) {
  .mkt .mkt-inner { row-gap: 0; }
  .mkt .mkt-text { display: contents; }
  .mkt .mkt-text > * { grid-column: 1 / -1; }
  .mkt .mkt-inner > .tabs { order: 1; margin-top: 26px; }
  .mkt .mkt-text > .svc-price { order: 2; margin-top: 28px; }
}
/* a card: in the drawing's column, at its foot, the words set flush left */
@media (min-width: 900px) {
  .svc > .svc-art { align-self: start; margin-top: clamp(8px, 2vw, 28px); }
  .svc > .svc-price { justify-self: stretch; max-width: none; padding-top: 22px; border-top: 1px solid rgb(var(--fg-rgb) / .14); text-align: left; }
}
@media (max-width: 899px) {
  .svc > .svc-price { padding-top: 20px; border-top: 1px solid rgb(var(--fg-rgb) / .14); text-align: left; }
}
.bp .svc-price, .bp .mkt .svc-price { border-top-style: dashed; }
/* The Services drawings: the metal gradients written into the page (#w-go,
   #s-go, #c-go; only the Care hub uses one) still held the old brass. Their
   stops follow the accent here, so the drawings match their bronze parts. */
:is(#w-go, #s-go, #c-go) stop:nth-child(1) { stop-color: var(--accent-hi); }
:is(#w-go, #s-go, #c-go) stop:nth-child(2) { stop-color: var(--accent); }
:is(#w-go, #s-go, #c-go) stop:nth-child(3) { stop-color: var(--accent-deep); }

/* ==========================================================================
   Home: "What you can count on", the reasons to start. Five of them, from
   the facts only, each under a bronze numeral with a fine rule, each closed
   by a foot line of short facts or one link; two wide cards over three. Then
   one plain invitation. The cards' surface, edge and lift on hover are the
   cream cards of styles.css (Round 29, "Cards").
   ========================================================================== */
.commit .commit-lead { margin-top: 2px; }
.commit .commit-list { counter-reset: none; }
.commit .commit-list > li { display: flex; flex-direction: column; }
@media (min-width: 900px) {
  .commit .commit-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
  .commit .commit-list > li { grid-column: span 2; }
  .commit .commit-list > li:nth-child(-n + 2) { grid-column: span 3; }
  .commit .commit-list > li:nth-child(-n + 2) h3 { font-size: clamp(1.875rem, 1.3rem + 1.2vw, 2.375rem); }
}
@media (min-width: 560px) and (max-width: 899px) {
  .commit .commit-list > li:last-child { grid-column: 1 / -1; }
}
/* the numeral, in bronze, and a fine bronze rule that fades out after it */
.commit .commit-n { display: flex; align-items: center; gap: 16px; }
.commit .commit-n::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgb(var(--acc-rgb) / .5), rgb(var(--acc-rgb) / 0) 80%); }
.commit .commit-n { color: var(--gold); }   /* the deep bronze on cream; Blueprint view's own accent there */
.commit .commit-list h3 { text-wrap: balance; }
.commit .commit-list li > p:not(.commit-facts) { margin-top: 12px; text-wrap: pretty; }
/* the foot line: short facts with bronze dots between them, or one link */
.commit .commit-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgb(var(--fg-rgb) / .12);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgb(var(--fg-rgb) / .82);
}
.commit .commit-list li > p:not(.commit-facts):has(+ .commit-facts) { margin-bottom: 20px; }
.commit-facts > span:has(+ span)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px 0 11px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: .2em;
}
.commit .commit-facts .text-link { font-weight: 500; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .on-cream.commit .commit-list li:hover { border-color: rgb(var(--accent-rgb) / .55); }
}
/* the invitation: one line in the serif, the main button, the way to Pricing */
.commit .commit-cta {
  position: relative;
  align-items: center;
  margin-top: clamp(36px, 4.4vw, 56px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid rgb(var(--fg-rgb) / .14);
}
/* a short bronze hairline where the invitation begins */
.commit .commit-cta::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 72px;
  height: 1px;
  background: var(--gold);
}
.commit .commit-close {
  flex: 1 1 18rem;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--chalk);
}
.commit .commit-close span { display: block; margin-top: 8px; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.5; letter-spacing: 0; color: var(--fg-2); }
.commit .commit-cta .text-link { font-weight: 500; }
.bp .commit .commit-cta::before, .bp .commit .commit-n::after { display: none; }
.bp .commit .commit-facts { border-top-style: dashed; }

/* A taller tap area for the small links at the foot of a tab card (24 px or
   more on a phone), without moving the words: padded, then pulled back. */
.tabs .tab-go, .tabs .tab-link { display: inline-block; padding-block: 4px; margin-block: -4px; }


/* ---- Some of what we design (Home, 18 Nov 2026) --------------------------- */
/* Four groups of the kinds of things we build, each a name and one line,
   on the same cream cards as "What you can count on". */
.designs .designs-lead { margin-top: 2px; }
.designs-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); margin-top: clamp(28px, 4vw, 48px); align-items: stretch; }
.designs-group { padding: 22px 22px 24px; border-top: 1px solid var(--chalk-16); }
.on-cream .designs-group { border: 1px solid rgb(14 26 56 / .1); border-radius: 8px; background: linear-gradient(180deg, #FFFBF4, #F7F0E3); box-shadow: 0 26px 44px -32px rgb(14 26 56 / .4), inset 0 1px 0 #fff; }
.designs-kicker { display: flex; align-items: center; gap: 14px; font: 500 .8125rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--acc-rgb)); }
.designs-kicker::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgb(var(--acc-rgb) / .5), rgb(var(--acc-rgb) / 0) 80%); }
.designs-list { display: grid; gap: 16px; margin-top: 18px; }
.designs-list li { font-size: 1.0625rem; line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.designs-list b { display: block; margin-bottom: 3px; font-family: var(--font-display); font-size: 1.4375rem; font-weight: 400; line-height: 1.15; color: var(--chalk); }
.designs-close { margin-top: clamp(28px, 4vw, 44px); font-family: var(--font-display); font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 400; line-height: 1.12; color: var(--chalk); }
.designs-close span { display: block; margin-top: 8px; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.5; color: var(--fg-2); }
.designs-close .chip-link { margin-top: 16px; font-family: var(--font-body); font-size: 1rem; }
@media (max-width: 1099px) { .designs-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .designs-groups { grid-template-columns: 1fr; } .designs-group { padding: 20px 18px 22px; } }
.bp .designs-group { background: none; box-shadow: none; border-style: dashed; }
