/* THE BLUE PENCIL · services (board). Loads last, after v2.css and the pack's grain and type.
   Layout B: one unlined page under the hero. Each service is a passage: its head in the reading column, its tag as the
   coach's margin note beside it, the ticked list in the column with each tick hanging in the left gutter, outside the
   red line. Tokens only. Marks are decoration: aria-hidden, the words carry everything. */

/* the old Press bands: a bare section is a desk band with padding; inside the manuscript it is only a passage */
body.services .ms section {
  padding: 0;
  background: none;
  border: 0;
}

/* the hero's band is the same desk: let the desk's grain run through it, so no seam shows where the band ends.
   The hero's page, words and frame are untouched. */
body.services .hero {
  background-color: transparent;
}

/* the page sits on the desk under the hero: the hero band's own bottom padding is the gap */
body.services .svc-ms {
  margin-top: 0;
}

/* the margin note: the service's tag, in the coach's hand, level with the head's first line */
body.services .svc-tag {
  padding-top: var(--s3);
}

/* the head's own mark: a new-paragraph sign in the gutter, level with the head's first line */
body.services h2.ms-h.has-lm > svg.svc-mk {
  top: calc(var(--s3) + 0.15em);
  height: 38px;
}

/* the running text and its ticked list */
body.services .svc > p.tx {
  margin: 0 0 var(--s4);
}
body.services ul.svc-list {
  margin: 0;
  padding: 0;
  color: var(--ink);
}
body.services ul.svc-list > li {
  margin: 0;
  padding: 0;
}
body.services ul.svc-list > li + li {
  margin-top: var(--s3);
}
/* the tick hangs in the gutter, its foot on the item's first line */
body.services ul.svc-list > li > svg.lm {
  top: 0.05em;
  width: 40px;
  height: 32px;
}

/* the close: the button under its words */
body.services .svc-cta .tx p {
  max-width: 36rem;
}
body.services .svc-cta .btn {
  margin-top: var(--s2);
}

@media (max-width: 859px) {
  body.services .svc-tag {
    padding-top: 0;
  }
  body.services h2.ms-h.has-lm > svg.svc-mk {
    height: 26px;
  }
  body.services ul.svc-list > li > svg.lm {
    width: 28px;
    height: 23px;
  }
}

/* ── Pass 0: the home page's standard (16 Nov 2026) ── */

/* the home page's wider reading column and narrower margin */
body.services .svc-ms { --col: 52rem; --gap: 56px; }
@media (max-width: 1099px) { body.services .svc-ms { --col: 36rem; --gap: 48px; } }

/* each service takes its own rows, so the grey edge can run beside it without pushing anything down */
body.services .svc > h2 { grid-row: 1; }
body.services .svc > .svc-tag { grid-row: 1; }
body.services .svc > p.tx { grid-row: 2; }
body.services .svc > ul.svc-list { grid-row: 3; }

/* the margin note: Caveat at the home page's size, a six-point asterisk before it */
body.services .svc-tag { font-size: 32px; }
body.services svg.star-mk {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin: 0 10px 0 0;
  vertical-align: top;
  position: relative;
  top: 0.12em;
}

/* marks on the words themselves: an underline or a ring round one short phrase per item */
body.services svg.ul-mk {
  position: absolute;
  left: -0.05em;
  bottom: -0.45em;
  width: calc(100% + 0.1em);
  height: 0.5em;
  max-width: none;
  pointer-events: none;
}
body.services .boxed.circd { margin: 0 0.3em 0 0.8em; }
body.services svg.circ-mk {
  position: absolute;
  left: -0.8em;
  top: -0.5em;
  width: calc(100% + 1.55em);
  height: calc(100% + 1em);
  max-width: none;
  pointer-events: none;
}
body.services ul.svc-list > li { line-height: 1.9; }

/* the close spans both columns and sits closer under the last service */
body.services .svc-cta > h2,
body.services .svc-cta > .tx { grid-column: 1 / -1; }
body.services .svc + .svc-cta { margin-top: 56px; }

/* the margin's quiet grey edge is drawn per service, so it never crosses a rule that runs across both columns */
@media (min-width: 860px) {
  body.services .svc-ms::after { display: none; }
  body.services .svc::after {
    content: "";
    grid-column: 2;
    grid-row: 1 / span 3;
    justify-self: start;
    align-self: stretch;
    width: 0;
    margin-left: calc(var(--gap) / -2);
    border-left: var(--w-rule) solid var(--rule);
    pointer-events: none;
  }
}
/* the head's rule carries on across the margin, as the close's rule does (JC, 22 Nov 2026) */
@media (min-width: 860px) {
  body.services .svc::before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-left: calc(var(--gap) * -1);
    border-top: var(--w-head-rule) solid var(--ink);
    pointer-events: none;
  }
}
@media (max-width: 859px) {
  body.services .svc-tag { font-size: 26px; }
  body.services svg.star-mk { width: 20px; height: 20px; }
  body.services .svc + .svc-cta { margin-top: 48px; }
}

/* the ring needs room on its right, so it never touches the next word or the last letter */
body.services .boxed.circd { margin-right: 0.75em; padding-right: 0.2em; }

/* ── JC's notes, 16 Nov: two lines move to the margin as notes, and the white space tightens ── */
body.services .svc > .svc-note { grid-column: 2; grid-row: 3; font-size: 32px; }
body.services .svc + .svc { margin-top: 56px; }
body.services .svc-ms { padding-bottom: 64px; }
@media (max-width: 859px) {
  body.services .svc-note { font-size: 26px; margin: var(--s4) 0 0; }
  body.services .svc + .svc { margin-top: 48px; }
  body.services .svc-ms { padding-bottom: 48px; }
}

/* ── College essay pricing block (18 Nov): its own row under the list, in the reading column ── */
body.services .svc > .svc-pricing { grid-column: 1; grid-row: 4; margin-top: var(--s3); }
body.services .svc-pricing-h { margin: 0 0 var(--s3); font-size: 1.75rem; line-height: 1.2; }
body.services .svc-pricing p.tx { margin: 0 0 var(--s3); }
body.services ul.svc-pricing-list { margin: 0 0 var(--s3); padding: 0; list-style: none; color: var(--ink); }
body.services ul.svc-pricing-list > li { position: relative; margin: 0; padding: 0 0 0 30px; line-height: 1.9; }
body.services svg.pr-mk { position: absolute; left: 0; top: 0.55em; width: 16px; height: 16px; }
body.services ul.svc-pricing-list > li + li { margin-top: var(--s2, 8px); }
body.services .svc-pricing-fine { font-size: 0.9em; }
@media (min-width: 860px) {
  body.services .svc::after { grid-row: 1 / span 4; }
}

/* ── the hero line stays on one line wherever the page has room (18 Nov); on narrow screens it flows ── */
@media (min-width: 760px) {
  body.services .hero p.lead { max-width: none; white-space: nowrap; }
}
@media (max-width: 759px) {
  body.services .hero p.lead { text-wrap: balance; }
}
body.services .hero p.lead .nb { white-space: nowrap; }
