/* Industry pages (/industries/*): a calmer layer over svc4.css and s4-legacy.css.
   Loaded only by the industry pages, and every rule is scoped to body.s4x-industries,
   so the service and location pages are untouched.
   - the hero headline is solid white, no tinted gradient
   - lists are one ruled list instead of a card per line
   - problems get a cross, not a green tick; the free check's questions are numbered
   - "why us" sections run as a single column now the number tiles are gone
   - the hub's six industries sit in one grid of cards */

/* ---------- hero ---------- */
body.s4x-industries .s4-hero .s4-h1,
body.s4x-industries .s4-hero .s4-h1 .w > span {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #fff; -webkit-text-fill-color: currentColor;
}

/* ---------- headings sit where the pill labels used to ---------- */
body.s4x-industries section.s4x .svc-detail-text > .svc-detail-h2:first-child { margin-top: 0; }

/* ---------- lists: one ruled list, not a stack of cards ---------- */
body.s4x-industries .svc-detail-list { gap: 0; }
body.s4x-industries .svc-detail-list li,
body.s4x-industries .s4x-night .svc-detail-list li {
  padding: 17px 0 17px 40px; border-radius: 0; background: none; box-shadow: none;
  border-top: 1px solid var(--s4-line);
}
body.s4x-industries .svc-detail-list li:last-child { border-bottom: 1px solid var(--s4-line); }
body.s4x-industries .s4x-night .svc-detail-list li { border-color: var(--s4-line-d); }
/* styles.css masks every marker to a tick shape; drop it so the green ring, the cross and the numbers draw */
body.s4x-industries .svc-detail-list li::before { left: 0; top: 18px; -webkit-mask: none; mask: none; }

/* problems: a muted cross in a ring */
body.s4x-industries .svc-detail-list--problems li::before {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4532a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 1.5px rgba(180,83,42,.35) inset;
}

/* free check: numbered questions, in a column that is not an image frame */
body.s4x-industries .svc-detail-visual--list { aspect-ratio: auto; overflow: visible; border: 0; border-radius: 0; box-shadow: none; background: none; }
body.s4x-industries .svc-detail-list--questions { counter-reset: q; }
body.s4x-industries .svc-detail-list--questions li { counter-increment: q; padding-left: 46px; font-size: 16.5px; }
body.s4x-industries .svc-detail-list--questions li::before {
  content: counter(q, decimal-leading-zero); width: auto; height: auto; border-radius: 0; background: none;
  top: 19px; font: 600 13px/1.5 var(--s4-mono); letter-spacing: .02em; color: var(--s4-violet-2);
}
body.s4x-industries .s4x-paper .svc-detail-list--questions li::before,
body.s4x-industries .s4x-alt .svc-detail-list--questions li::before { color: var(--s4-violet-ink); }

/* ---------- "why us": one readable column ---------- */
body.s4x-industries .svc-detail-grid.svc-detail-solo { grid-template-columns: minmax(0, 760px); }
body.s4x-industries .svc-detail-reverse .svc-detail-grid.svc-detail-solo > :first-child { order: 0; }

/* ---------- hub: pick your industry ---------- */
body.s4x-industries .ind-pick { padding: clamp(72px, 9vw, 120px) 0; }
body.s4x-industries .ind-pick-h { margin: 0 0 clamp(28px, 4vw, 44px); }
body.s4x-industries .ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.s4x-industries .ind-card {
  display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px; border-radius: 18px;
  background: var(--s4-card); box-shadow: 0 0 0 1px var(--s4-line); color: var(--s4-ink); text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
body.s4x-industries .ind-card:hover { box-shadow: 0 0 0 1px var(--s4-violet-ink), 0 18px 36px -28px rgba(40,30,90,.45); transform: translateY(-2px); }
body.s4x-industries .ind-card:focus-visible { outline: 2px solid var(--s4-violet-ink); outline-offset: 3px; }
body.s4x-industries section.ind-pick .ind-card-name { font-size: 14px; font-weight: 600; color: var(--s4-violet-ink); }
body.s4x-industries section.ind-pick .ind-card-h { margin: 0; font-family: var(--s4-display); font-size: 22px; line-height: 1.22; letter-spacing: -0.02em; color: var(--s4-ink); }
body.s4x-industries section.ind-pick .ind-card-p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--s4-ink-2); }
body.s4x-industries .ind-card-pts { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--s4-line); display: grid; gap: 6px; }
body.s4x-industries section.ind-pick .ind-card-pts li { position: relative; padding-left: 18px; font-size: 14px; color: var(--s4-ink-3); }
body.s4x-industries .ind-card-pts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--s4-green); }
body.s4x-industries section.ind-pick .ind-card-go { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: var(--s4-ink); }
body.s4x-industries .ind-card:hover .ind-card-go { color: var(--s4-violet-ink); }

@media (max-width: 980px) {
  body.s4x-industries .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.s4x-industries .ind-grid { grid-template-columns: 1fr; }
  body.s4x-industries .svc-detail-list li, body.s4x-industries .s4x-night .svc-detail-list li { padding-left: 36px; }
}

/* ---------- proof tiles (manufacturing, real estate, trades) ---------- */
body.s4x-industries .cs-outcome-label { text-transform: none; letter-spacing: 0; font-size: 14px; }
body.s4x-industries .svc-detail-visual:has(> .cs-outcomes) { aspect-ratio: auto; }
