/* The light layer for the guides' own parts (.g-*, drawn in guides.css for a black ground), loaded
   last on the three guide pages: after studio.css, services.css, guides.css and ax-services.css,
   which has already moved the page shell onto the gradient hero and the paper panel.

   On paper: white cards for cards and sets of peers, ink text, nothing under 12px.
   Still dark, on purpose: the street scene under the hero (.g-scene), the phone story (.g-story)
   and the phone itself (.g-phone). They are pictures of lit screens at night and need the dark. */

/* ---- 0 · Layout on the panel ---- */
/* a section whose parts run the full width keeps its heading in place (it would slide over them) */
.service-page main > .block:not(.block--wide):not(:has(> .cs-versus)):not(:has(.included, .steps, .related, .region)):has(> .g-stats, > .g-flow, > .g-story, > .g-dodont, > .g-channels, > .g-next, > .g-dumb, > .g-short) > header {
  position: static;
}
/* where the content is only a grid of cards, the heading sits above it at full width */
.service-page main > .block:has(> .g-channels, > .g-next) {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.service-page main > .block:has(> .g-channels, > .g-next) h2 {
  max-width: 820px;
}
/* a grid child never grows wider than its column (the chart's table scrolls inside itself) */
.service-page main > .block > * {
  min-width: 0;
}
@media (min-width: 901px) {
  /* the reading text after the do and don't cards goes back to the right-hand column */
  .service-page .g-dodont + .prose {
    grid-column: 2;
  }
}

/* ---- 1 · The scene under the hero: a dark card paired with the gradient card ---- */
.service-page .art.g-scene {
  height: clamp(300px, 30vw, 440px);
  margin-top: 14px;
  border-radius: 28px;
}

/* ---- 2 · The short version: one white card ---- */
.service-page .g-short {
  gap: 28px 56px;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--ax-card-shadow);
  color: var(--ax-ink);
}
.service-page .g-short .eyebrow {
  font-size: 12px;
  color: var(--ax-muted);
}
.service-page .g-short h2 {
  color: var(--ax-ink);
}
.service-page .g-short li {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px 0;
  border-bottom-color: var(--ax-line);
  font-size: clamp(16.5px, 1.45vw, 20px);
  color: var(--ax-ink-2);
}
.service-page .g-short li::before {
  justify-self: start;
  margin-top: 1px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--ax-ink);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.service-page .g-short strong {
  color: var(--ax-ink);
}

/* ---- 3 · In this guide: one white card of jump links ---- */
.service-page .g-toc {
  gap: 0 28px;
  padding: 6px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ax-card-shadow);
}
.service-page .g-toc li {
  border-bottom-color: var(--ax-line);
}
.service-page .g-toc li:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.service-page .g-toc a {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 15px 0;
  font-size: 16.5px;
  color: var(--ax-ink);
}
.service-page .g-toc a::before {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ax-muted);
  font-variant-numeric: tabular-nums;
}
.service-page .g-toc a::after {
  font-size: 14px;
  color: var(--ax-muted);
}
.service-page .g-toc a:hover,
.service-page .g-toc a:hover::after {
  color: var(--ax-ink);
}
.service-page .g-toc a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 16, 0.4);
  text-underline-offset: 3px;
}

/* ---- 4 · Big numbers: a white card each, the source in readable grey ---- */
.service-page .g-stats {
  gap: 14px;
}
.service-page .g-stats li {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ax-card-shadow);
  transition: var(--ax-lift);
}
.service-page .g-stats .big {
  font-size: clamp(48px, 5.4vw, 84px);
  color: var(--ax-ink);
}
.service-page .g-stats .label {
  max-width: 340px;
  margin-top: 16px;
  color: var(--ax-ink-2);
}
.service-page .g-stats .src {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ax-ink-2);
}
.service-page .g-stats .src a,
.service-page .g-quote cite a {
  color: var(--ax-ink);
  text-decoration-color: rgba(17, 17, 16, 0.4);
}
.service-page .g-stats .src a:hover,
.service-page .g-quote cite a:hover {
  text-decoration-color: currentColor;
}

/* ---- 5 · A quote from the source ---- */
.service-page .g-quote {
  border-left: 2px solid var(--ax-ink);
}
.service-page .g-quote p {
  color: var(--ax-ink);
}
.service-page .g-quote cite {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ax-ink-2);
}

/* ---- 6 · A checklist: one white card, each row ticked ---- */
.service-page .g-check {
  padding: 4px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ax-card-shadow);
}
.service-page .g-check li,
.service-page .g-check li:first-child {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom-color: var(--ax-line);
  font-size: 16px;
  color: var(--ax-ink-2);
}
.service-page .g-check li:last-child {
  border-bottom: 0;
}
.service-page .g-check li::before {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 0;
  border-radius: 7px;
  background: var(--ax-ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3.6 8.4 2.9 2.9 5.9-6.4' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
}
.service-page .g-check strong {
  color: var(--ax-ink);
}

/* ---- 7 · A short note: a quiet grey card ---- */
.service-page .g-note {
  margin-top: 14px;
  padding: 20px 22px;
  border: 0;
  border-radius: 20px;
  background: #e9e7e0;
  color: var(--ax-ink-2);
}
.service-page .g-note strong,
.service-page .g-note a {
  color: var(--ax-ink);
}
.service-page .g-note a {
  text-decoration-color: rgba(17, 17, 16, 0.4);
}

/* ---- 8 · The routine: a white card per step, a black number pill ---- */
.service-page .g-flow {
  gap: 14px;
  margin-top: 0;
}
.service-page .g-flow li {
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ax-card-shadow);
  transition: var(--ax-lift);
}
.service-page .g-flow li:not(:last-child)::after {
  content: none;
}
.service-page .g-flow .dot,
.service-page .g-flow li:first-child .dot {
  display: inline-block;
  width: auto;
  height: auto;
  margin-bottom: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 99px;
  background: var(--ax-ink);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.service-page .g-flow .when {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ax-muted);
}
.service-page .g-flow h3,
.service-page .g-channels h3,
.service-page .g-card h3 {
  font-size: 23px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ax-ink);
}
.service-page .g-flow h3 {
  margin-bottom: 10px;
}
.service-page .g-flow p,
.service-page .g-channels p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ax-ink-2);
}

/* ---- 9 · The phone story and the phone: dark, as lit screens ---- */
.service-page .g-story {
  border: 0;
  border-radius: 28px;
  background: var(--ax-ink);
  color: #eeedea;
  overflow: hidden;
}
.g-story.is-live .g-beat {
  color: #85857f;
}
.g-story.is-live .g-beat:hover {
  color: #b9b9b4;
}
.g-story .g-who,
.g-story .g-time,
.g-story .g-ava,
.g-story .g-chead .g-amber,
.g-story .g-reply-l,
.g-story .g-site-bar span {
  font-size: 12px;
}
.g-story .g-who {
  letter-spacing: 0.08em;
  color: #a5a5a0;
}
.g-story .g-time {
  color: #a5a5a0;
}
.service-page .g-split {
  gap: 32px 40px;
}
.service-page .g-phone {
  border-color: #2c2c29;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 22px 44px rgba(0, 0, 0, 0.2);
}
.service-page .g-phone .time {
  font-size: 12px;
  color: #a5a5a0;
}
.service-page .g-caption {
  font-size: 12.5px;
  color: var(--ax-ink-2);
}

/* ---- 10 · A review and the owner's reply: white cards ---- */
.service-page .g-reviews {
  gap: 10px;
}
.service-page .g-label {
  justify-self: start;
  margin-bottom: 2px;
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  background: #e6e4dd;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ax-ink);
}
.service-page .g-review,
.service-page .g-review.reply {
  padding: 20px 22px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ax-card-shadow);
}
.service-page .g-review.reply {
  margin-left: clamp(20px, 4vw, 48px);
}
.service-page .g-review .avatar {
  background: var(--ax-ink);
  color: #fff;
  font-size: 12px;
}
.service-page .g-review .name {
  font-size: 15px;
  color: var(--ax-ink);
}
.service-page .g-review .meta {
  font-size: 12.5px;
  color: var(--ax-ink-2);
}
.service-page .g-review.reply .meta {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ecece8;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ax-ink);
}
.service-page .g-review .stars {
  color: var(--ax-ink);
}
.service-page .g-review .stars .off {
  color: #c9c6be;
}
.service-page .g-review p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ax-ink-2);
}

/* ---- 11 · Do and don't: two white cards ---- */
.service-page .g-dodont {
  gap: 14px;
}
.service-page .g-card {
  padding: 24px 24px 12px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ax-card-shadow);
}
.service-page .g-card h3 {
  margin-bottom: 14px;
}
.service-page .g-card li {
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 12px 0;
  border-top-color: var(--ax-line);
  font-size: 15px;
  color: var(--ax-ink-2);
}
.service-page .g-card li strong {
  color: var(--ax-ink);
}
.service-page .g-icon {
  border-radius: 8px;
}
.service-page .g-do .g-icon {
  background: var(--ax-ink);
  color: #fff;
}
.service-page .g-dont .g-icon {
  border: 1.5px solid var(--ax-ink);
  background: #fff;
  color: var(--ax-ink);
}
.service-page .g-card li .g-icon {
  border-radius: 7px;
  font-size: 12px;
}

/* ---- 12 · Channels: white cards, a black number pill, grey tags ---- */
.service-page .g-channels {
  gap: 14px;
}
.service-page .g-channels li {
  align-items: flex-start;
  padding: 24px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ax-card-shadow);
  transition: var(--ax-lift);
}
.service-page .g-channels .n {
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--ax-ink);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.service-page .g-channels h3 {
  margin: 36px 0 10px;
}
.service-page .g-channels a {
  color: var(--ax-ink);
  text-decoration-color: rgba(17, 17, 16, 0.4);
}
.service-page .g-channels a:hover {
  text-decoration-color: currentColor;
}
.service-page .g-tags {
  margin-top: 20px;
}
.service-page .g-tags span {
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  background: #ecece8;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ax-ink);
}

/* ---- 13 · Next guides: white link cards, the studio's arrow on a black disc ---- */
.service-page .g-next {
  gap: 14px;
}
.service-page .g-next li {
  display: flex;
}
.service-page .g-next a {
  position: relative;
  flex: 1;
  justify-content: flex-start;
  gap: 0;
  min-height: 150px;
  height: auto;
  padding: 24px 64px 24px 24px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ax-card-shadow);
  color: var(--ax-ink);
  transition: var(--ax-lift);
}
.service-page .g-next a:hover {
  background: #fff;
}
.service-page .g-next a::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ax-ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 13 13 3M3 3h10v10' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
}
.service-page .g-next a:focus-visible {
  outline: 2px solid var(--ax-ink);
  outline-offset: 3px;
}
.service-page .g-next .kind {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 6px;
  background: #ecece8;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ax-ink);
}
.service-page .g-next .title {
  margin-top: auto;
  padding-top: 28px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

@media (hover: hover) {
  .service-page .g-stats li:hover,
  .service-page .g-flow li:hover,
  .service-page .g-channels li:hover,
  .service-page .g-next a:hover {
    transform: translateY(-4px);
    box-shadow: var(--ax-card-shadow-up);
  }
}

/* ---- 14 · The chart: a white card; grey is the first term, ink is what comes after ---- */
.service-page .g-dumb {
  margin-top: 0;
  padding: clamp(24px, 2.6vw, 36px);
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--ax-card-shadow);
  color: var(--ax-ink);
}
.service-page .g-dumb-t {
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ax-ink);
}
.service-page .g-dumb-s {
  font-size: 14.5px;
  color: var(--ax-ink-2);
}
.service-page .g-legend {
  color: var(--ax-ink-2);
}
.service-page .g-key-a,
.service-page .g-dot-a {
  background: #a3a39c;
}
.service-page .g-key-b,
.service-page .g-dot-b {
  background: var(--ax-ink);
}
.service-page .g-dot {
  box-shadow: 0 0 0 2px #fff;
}
.service-page .g-dot-b {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
}
.service-page .g-span {
  background: linear-gradient(to right, #a3a39c, var(--ax-ink));
}
.service-page .g-row:hover,
.service-page .g-row:focus-visible {
  background: var(--ax-paper);
}
.service-page .g-row:focus-visible {
  outline: 2px solid var(--ax-ink);
}
.service-page .g-name {
  color: var(--ax-ink);
}
.service-page .g-track {
  border-right-color: var(--ax-line);
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
}
.service-page .g-val {
  color: var(--ax-ink);
}
.service-page .g-times {
  color: var(--ax-muted);
}
.service-page .g-axis {
  font-size: 12px;
  color: var(--ax-muted);
}
/* the table behind the chart: hairline rows, scrolls sideways inside its wrapper */
.service-page .g-table {
  margin-top: 20px;
}
.service-page .g-table summary {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 99px;
  background: #ecece8;
  font-size: 14px;
  color: var(--ax-ink);
  transition: background 0.2s;
}
.service-page .g-table summary:hover {
  background: #e2e0d9;
  color: var(--ax-ink);
}
.service-page .g-table-wrap {
  max-width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.service-page .g-table table {
  font-size: 14px;
}
.service-page .g-table th,
.service-page .g-table td {
  padding: 12px 16px 12px 0;
  border-bottom-color: var(--ax-line);
  color: var(--ax-ink-2);
}
.service-page .g-table tbody tr:last-child > * {
  border-bottom: 0;
}
.service-page .g-table thead th {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ax-muted);
}
.service-page .g-table tbody th,
.service-page .g-table .g-num {
  color: var(--ax-ink);
}

/* ---- Narrower screens ---- */
@media (max-width: 900px) {
  .service-page .g-flow {
    gap: 14px;
  }
}
@media (max-width: 760px) {
  /* the guides are long: sections sit closer together on a phone */
  .service-page main > :is(.block, .cs-numbers):not(:has(> .cs-versus)) {
    gap: 18px;
    padding-bottom: 40px;
  }
  .service-page main > .block:has(> .g-channels, > .g-next) {
    gap: 18px;
  }
  .service-page .art.g-scene {
    height: 250px;
    margin-top: 10px;
    border-radius: 22px;
  }
  .service-page .g-short {
    gap: 20px;
    padding: 22px 18px;
    border-radius: 22px;
  }
  .service-page .g-short h2 {
    margin-top: 10px;
  }
  .service-page .g-short li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    font-size: 16px;
  }
  /* jump links: two short columns */
  .service-page .g-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    padding: 4px 16px;
  }
  .service-page .g-toc a {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 6px;
    min-height: 48px;
    padding: 12px 0;
    font-size: 14.5px;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }
  .service-page .g-toc a::after {
    content: none;
  }
  /* numbers: one compact card each */
  .service-page .g-stats {
    gap: 10px;
  }
  .service-page .g-stats li {
    padding: 18px 20px;
  }
  .service-page .g-stats .big {
    font-size: 44px;
  }
  .service-page .g-stats .label {
    max-width: none;
    margin-top: 10px;
    font-size: 14.5px;
  }
  .service-page .g-stats .src {
    padding-top: 8px;
  }
  .service-page .g-quote {
    padding-left: 18px;
  }
  .service-page .g-quote + .prose {
    margin-top: 20px;
  }
  .service-page .g-check {
    padding: 2px 18px;
  }
  .service-page .g-check li,
  .service-page .g-check li:first-child {
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    line-height: 1.45;
  }
  .service-page .g-note {
    padding: 16px 18px;
    font-size: 14.5px;
  }
  /* the routine: a compact card per step, the number beside the words */
  .service-page .g-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .service-page .g-flow li {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 14px;
    padding: 16px 20px;
  }
  .service-page .g-flow .dot,
  .service-page .g-flow li:first-child .dot {
    grid-row: span 3;
    align-self: start;
    margin-bottom: 0;
  }
  .service-page .g-flow .when {
    letter-spacing: 0.04em;
  }
  .service-page .g-flow h3 {
    margin-bottom: 6px;
    font-size: 20px;
  }
  .service-page .g-flow p {
    font-size: 14.5px;
  }
  /* the numbered cards of the cost guide: the number beside the heading */
  .service-page .block .included li,
  .service-page .block .included li:first-child {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
    padding: 18px 20px;
  }
  .service-page .block .included .n {
    margin-bottom: 0;
  }
  .service-page .block .included h3 {
    margin-bottom: 0;
    font-size: 20px;
  }
  .service-page .block .included p {
    grid-column: 1 / -1;
    font-size: 14.5px;
  }
  .service-page .g-story {
    padding: 22px 18px;
    border-radius: 22px;
  }
  .service-page .g-reviews {
    margin-top: 20px !important;
  }
  .service-page .g-review,
  .service-page .g-review.reply {
    padding: 16px 18px;
  }
  .service-page .g-review.reply {
    margin-left: 18px;
  }
  .service-page .g-dodont {
    gap: 10px;
  }
  .service-page .g-card {
    padding: 20px 20px 8px;
  }
  .service-page .g-card h3 {
    margin-bottom: 10px;
    font-size: 21px;
  }
  .service-page .g-card li {
    padding: 10px 0;
    font-size: 14.5px;
    line-height: 1.45;
  }
  /* channels: one compact card each, the number beside the name */
  .service-page .g-channels {
    gap: 10px;
  }
  .service-page .g-channels li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
    padding: 18px 20px;
  }
  .service-page .g-channels h3 {
    margin: 0;
    font-size: 20px;
  }
  .service-page .g-channels p,
  .service-page .g-channels .g-tags {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .service-page .g-channels p {
    font-size: 14.5px;
  }
  /* next: a short row per card */
  .service-page .g-next {
    gap: 10px;
  }
  .service-page .g-next a {
    min-height: 0;
    padding: 16px 64px 16px 20px;
  }
  .service-page .g-next a::after {
    top: 50%;
    right: 16px;
    translate: 0 -50%;
  }
  .service-page .g-next .title {
    padding-top: 10px;
    font-size: 19px;
  }
  .service-page .g-dumb {
    padding: 20px 16px;
    border-radius: 22px;
  }
  .service-page .g-dumb-head {
    margin-bottom: 18px;
  }
  .service-page .g-row {
    min-height: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-page .g-stats li,
  .service-page .g-flow li,
  .service-page .g-channels li,
  .service-page .g-next a,
  .service-page .g-table summary {
    transition: none;
  }
}
