/* ==========================================================================
   Service page (app/pages/service.php)
   The layout, article rhythm, gaping, outcomes, help box, cards, widgets, steps, scope lists, relation
   map, pathway and FAQ are shared (wisdigix.css). This file sets the banner actions, the article's own
   blocks (what you get beside its photo, outcomes two across) and the heads of the sections after it.
   ========================================================================== */

/* Banner: the button and the add toggle side by side; the button takes the full width on phones */
.page-service .wg-banner .wg-actions { gap: var(--s-3) var(--s-6); }
@media (max-width: 575px) {
    .svc-banner-btn { width: 100%; }
}

/* Article
   ----------------------------------------------------------------------- */
.svc-about .wg-lead { max-width: 40rem; margin-bottom: var(--s-5); }
.svc-about .wg-lead strong { font-weight: 650; }
.svc-about > p:not(.wg-lead):not(.wg-meta) { max-width: 40rem; }
.svc-about > .wg-meta { margin: var(--s-4) 0 0; }

/* What you get: the list beside one library photo, a tall crop from 768px */
.svc-get {
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    border-top: 1px solid var(--rule);
}
@media (min-width: 768px) {
    .svc-get .wg-gaping__media { position: sticky; top: calc(72px + var(--s-6)); }
    .svc-get .wg-gaping__media img { aspect-ratio: 4 / 5; }
}
.svc-get .wg-checklist li + li { margin-top: .25rem; }

/* What it changes: two across from 768px, each block over its own hairline */
.svc-outcomes { display: grid; gap: 0 var(--gap); }
@media (min-width: 768px) {
    .svc-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-outcomes .wg-outcome { padding-bottom: var(--s-5); }
}

.svc-steps { margin-top: var(--s-2); }
.svc-steps + .svc-timeline {
    margin: var(--s-6) 0 0;
    padding-top: var(--s-4);
    border-top: 1px solid var(--rule);
    color: var(--fg-muted);
    font-size: var(--fs-small);
}

/* Sidebar */
.svc-cat__all { margin: var(--s-4) 0 0; }

/* Sections after the article
   ----------------------------------------------------------------------- */
/* Packages: two cards share the row, three take a third each */
@media (min-width: 768px) {
    .svc-packages { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
}
.wg-section-head--split > .svc-foot { gap: var(--s-3) var(--s-6); }

/* A section head beside its content needs no gap below it: the split's own gap applies when stacked */
.svc-guide .wg-section-head,
.svc-path--beside .wg-section-head { margin-bottom: 0; }

/* Questions on the page's left edge, at a reading measure */
.svc-faq .wg-faq { max-width: 56rem; }

/* Scope and delivery (UX pass, 2026-11-17): one ruled disclosure for how the work runs, what we need and what is left
   out. Closed, it is a heading, a one-line list of what is inside and the timeline; open, the three parts in turn. */
.wg-article > .svc-scope { margin-top: clamp(3rem, 2.2rem + 3vw, 5rem); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.svc-scope__summary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .375rem var(--s-5);
    align-items: center;
    padding: var(--s-6) 0;
    cursor: pointer;
    list-style: none;
}
.svc-scope__summary::-webkit-details-marker { display: none; }
.svc-scope__summary::marker { content: ""; }
.wg-article .svc-scope__title { grid-column: 1; margin: 0; }
.svc-scope__hint { grid-column: 1; color: var(--fg-muted); font-size: var(--fs-small); line-height: 1.5; }
.svc-scope__hint::first-letter { text-transform: uppercase; }
.svc-scope__icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 24px;
    height: 24px;
    color: var(--fg-strong);
    transition: transform var(--dur) var(--ease-out);
}
.svc-scope[open] .svc-scope__icon { transform: rotate(45deg); }
.svc-scope__summary:hover .svc-scope__title,
.svc-scope__summary:focus-visible .svc-scope__title { text-decoration: underline; text-decoration-color: var(--accent-fg); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.svc-scope__summary:focus-visible { outline-offset: 4px; }
.svc-scope__body { padding-bottom: var(--s-7); }
.svc-scope__body > section + section { margin-top: var(--s-7); }
.svc-scope__body h3 { margin: 0 0 var(--s-4); font-size: var(--fs-h3); font-weight: 640; line-height: 1.2; letter-spacing: -.016em; }
.svc-scope__body h4 { margin: 0 0 .35rem; font-size: var(--fs-h4); font-weight: 620; }
@media (prefers-reduced-motion: no-preference) {
    .svc-scope[open] .svc-scope__body { animation: svc-scope-in var(--dur) var(--ease-out); }
}
@keyframes svc-scope-in { from { opacity: 0; transform: translateY(-6px); } }
@media print {
    .svc-scope__icon { display: none; }
}

/* Where it fits (UX pass, 2026-11-17): the relation map at full width, then the usual order, the packages and the guide
   as three compact columns under one hairline, instead of three more bands */
.svc-fits__row {
    display: grid;
    gap: var(--s-7) var(--gap);
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
    padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    border-top: 1px solid var(--rule);
}
@media (min-width: 768px) {
    .svc-fits__row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); column-gap: clamp(2rem, 1rem + 3vw, 4.5rem); }
}
.svc-fits__block { min-width: 0; }
.svc-fits__title { margin: 0 0 var(--s-5); color: var(--fg-muted); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.svc-fits__list { margin: 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.svc-fits__list li { position: relative; padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.svc-fits__list p { margin: .35rem 0 0; color: var(--fg); font-size: var(--fs-small); line-height: 1.5; }
.svc-fits__list .wg-meta { margin: .35rem 0 0; }
.svc-fits__name { color: var(--fg-strong); font-size: var(--fs-h4); font-weight: 620; line-height: 1.3; letter-spacing: -.01em; text-decoration: none; }
.svc-fits__name::after { content: ""; position: absolute; inset: 0; }   /* the whole row is the link */
.svc-fits__name:focus-visible { outline: none; }
.svc-fits__list li:has(.svc-fits__name:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.svc-fits__list li:hover .svc-fits__name,
.svc-fits__list li:focus-within .svc-fits__name { text-decoration: underline; text-decoration-color: var(--accent-fg); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.svc-fits__more { margin: var(--s-4) 0 0; }
.svc-fits .wg-path { margin: 0; }
