/* /services/ on the new design system: loaded on top of site.css (build.mjs, newDesign).
   The hub is a chooser (redesign, 13 Nov 2026): three paths compared across five lines. One source for every width: each path
   is a heading and a definition list. From 900px the paths sit side by side as columns of one grid, their lines aligned across
   (subgrid), with the line labels in a first column that is decorative (each list keeps its own labels for screen readers).
   On phones each path is a labelled block, with no sideways scrolling. Prices live on /prices/ (prices.css). */
/* The chooser opens straight under the page head: its heading is for screen readers only, so the page head's rule is enough */
#services::before { display: none; }
#services > .chooser { margin-top: 0; }
.chooser { grid-column: 1 / -1; }
.cp-path h3 { font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }
/* padding with an equal negative margin gives the path link a 44px target without opening the line (20px or 18px at 1.3) */
.cp-path h3 a { display: inline-block; padding-block: 11px; margin-block: -11px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--muted); }
.cp-path h3 a:hover, .cp-path h3 a:focus-visible { text-decoration-color: var(--ink); }
.cp-sub { display: block; margin-top: 4px; font-size: var(--t-small); font-weight: 400; color: var(--muted); }
.cp-path dl { margin: 0; }
.cp-path dd { margin: 0; }
.cp-price { font-size: var(--t-h3); font-weight: 600; line-height: 1.2; }
.cp-retainer { font-size: var(--t-lead); line-height: 1.3; }
.chooser dt, .cp-labels span { font-size: var(--t-small); color: var(--muted); }

@media (min-width: 900px) {
  .chooser { display: grid; grid-template-columns: 16% repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); }
  .cp-labels, .cp-path { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; }
  .cp-path dl { display: contents; }
  /* each list keeps its labels for screen readers; the first column shows them once */
  .chooser dt { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .cp-labels > *, .cp-path > h3, .cp-path dd { padding: 14px var(--gap) 14px 0; border-top: 1px solid var(--rule); }
  .cp-labels > :first-child, .cp-path > h3 { border-top: 0; padding-bottom: var(--s2); }
  .cp-labels > :last-child, .cp-path dd:last-child { border-bottom: 1px solid var(--rule); }
  .cp-labels span { padding-top: 17px; }
  /* the first path is marked with an ink rule along its top */
  .cp-first > h3 { box-shadow: inset 0 3px 0 var(--ink); padding-top: 14px; }
}

/* Phones and small tablets: one labelled block per path, the first one marked by an ink rule */
@media (max-width: 899px) {
  .cp-labels { display: none; }
  .cp-path { padding-block: var(--s2); border-top: 1px solid var(--rule); }
  .cp-first { border-top: 3px solid var(--ink); }
  .cp-path:last-child { border-bottom: 1px solid var(--rule); }
  .cp-path dl { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); gap: 6px var(--s2); margin-top: var(--s1); }
  .chooser dt { padding-top: 2px; }
  .cp-price { font-size: 22px; }
  .cp-retainer { font-size: var(--t-lead); }
}

/* One hairline between sections: the FAQ's last rule closes the page before the booking row, which needs no rule of its own */
#faq + .sec::before { display: none; }
/* the two case-study links under "See the work behind the paths" stay apart on every width */
#work .c-main > p + p { margin-top: var(--s2); }
/* the page head's links to the prices and the sample proposal sit at the foot of the head's margin column */
.page-head .head-jump { grid-row: 1; align-self: end; gap: 0; }
@media (max-width: 899px) { .page-head .head-jump { display: none; } }
