/* Service pages on the kit: /services, /services/{pillar}, /services/{pillar}/{sub}.
   Every selector is scoped to .svc-* classes or a services section id, since this file loads on every kit page. */

/* Service sections hold admin-edited lists of any length: at least one screen, growing past it
   rather than lay the last rows over the next section (system.css already does this below 1280px). */
@media (min-width: 1280px) {
  main > section.svc-sec { height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh); }
  main > section.svc-sec > .wrap { height: auto; }
}

/* What we deliver: intro and tags left, the deliverables as ruled lines right */
.svc-intro { margin: 0; max-width: 56ch; color: var(--ink-2, #3d3833); }
.svc-tags { display: grid; gap: var(--s-2); }
.svc-tags .t-label { margin: 0; }
.svc-tags .tag a { color: inherit; text-decoration: none; }
.svc-tags .tag a:hover { text-decoration: underline; }
.svc-deliver__copy > .svc-tags { margin-top: var(--s-5); }

.svc-lines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); align-self: start; }
.svc-lines > li { padding: var(--s-4) 0 var(--s-4) 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 17px; line-height: 1.5; }
.svc-lines > li::before { content: ""; position: absolute; left: 4px; top: calc(var(--s-4) + .62em); width: 10px; height: 1.5px; background: var(--ink); }

/* Use cases: a two-column ruled list (title, optional sentence) */
.svc-points { margin: 0; padding: 0; list-style: none; display: grid; column-gap: var(--gutter); border-top: 1px solid var(--line); }
@media (min-width: 860px) { .svc-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc-points > li { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.svc-points__title { margin: 0; font: 600 var(--t-card)/1.3 var(--font-display); letter-spacing: -0.01em; }
.svc-points__text { margin: 0; color: var(--muted); max-width: 52ch; }

/* How a project runs: one row of step cards (3 or 4 across; 5 and 6 wrap evenly) */
.svc-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--card-gap, 24px); }
@media (min-width: 860px) { .svc-steps { grid-template-columns: repeat(min(var(--cols, 3), 3), minmax(0, 1fr)); } }
@media (min-width: 1100px) { .svc-steps { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.svc-step { display: flex; flex-direction: column; gap: var(--s-2); }
.svc-step p { margin: 0; }
.svc-step .step-num { margin-bottom: var(--s-3); }

/* Who it is for */
.svc-fit__label { margin: 0 0 var(--s-4); font-size: var(--t-label, 13px); font-weight: 500; }
.svc-principles { margin: 0; display: grid; border-top: 1px solid var(--line); }
.svc-principles > div { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.svc-principles dt { font: 600 18px/1.35 var(--font-display); }
.svc-principles dd { margin: 0; color: var(--muted); }

/* An example run: a flat sunken panel holding the steps, each with what it touched */
.svc-run { margin: 0; padding: var(--s-6); background: var(--p-surface, #f4f2ee); border-radius: var(--r-sm, 8px); }
.svc-run__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg, 12px); overflow: hidden; }
.svc-run__line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.svc-run__line:last-child { border-bottom: 0; }
.svc-run__tag { font: 500 12px/1.9 var(--font-mono); color: var(--muted); }
.svc-run__line--done .svc-run__tag { color: #1f7a4d; }
.svc-run__text { font-size: 15px; line-height: 1.5; }
.svc-run__text small { display: block; margin-top: 2px; font: 12px/1.5 var(--font-mono); color: var(--muted); }

/* Engagement models */
.svc-tier { display: flex; flex-direction: column; gap: var(--s-2); }
.svc-tier p { margin: 0; }
.svc-tier .t-label { margin: 0; }
.svc-tier__links { margin-top: auto !important; padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.svc-note { margin: var(--s-6) 0 0; font-size: var(--t-small); }

/* Case cards: one figure at the foot */
.svc-case p { margin: 0; }

/* Hub: every service grouped by practice */
.svc-index { border-top: 1px solid var(--line); }
.svc-index__group { padding: var(--s-6) 0; border-bottom: 1px solid var(--line); row-gap: var(--s-4); }
.svc-index__group .t-card { margin: 0; }
.svc-index__pillar { color: inherit; text-decoration: none; }
.svc-index__pillar:hover { color: var(--red-ink); }
.svc-index__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3) var(--gutter); }
@media (min-width: 640px) { .svc-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .svc-index__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-index__list a { color: var(--ink); text-decoration: none; font-size: 16px; }
.svc-index__list a:hover { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }

/* A closer look (long text from the editor) */
.svc-guide .prose { max-width: 68ch; }
@media (max-width: 1023px) { .svc-guide .prose { margin-top: var(--s-5); } }

/* Long, specific link labels ("See Kubernetes consulting & management") wrap on phones instead of widening the page */
@media (max-width: 859px) { .svc-sec .rows-list__go { white-space: normal; } }
