/* ==========================================================================
   SECTOR PAGES (industry-*.html): site map with hotspots, needs x services
   matrix, delivery track. Shared by all six sector pages; each page supplies
   its own drawing and copy. Semantic tokens only, so both themes work.
   Behaviour: js/sector.js.
   ========================================================================== */

/* hero: typical sites as chips instead of a card */
.sx-sites { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.sx-sites li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 0.88rem; font-weight: 600; }
.sx-sites li i { color: var(--accent-text); }

/* shared section head */
.sx-head { max-width: 720px; margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem); text-align: center; }
.sx-head h2 { margin: 0.6rem 0 0; color: var(--text); font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; }
.sx-head h2 em { font-style: normal; color: var(--accent-text); }

/* ---------- 1. site map with hotspots ---------- */
.sx-map { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.sx-dia { position: relative; margin: 0; padding: clamp(0.75rem, 2vw, 1.25rem); border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.sx-dia svg { display: block; width: 100%; height: auto; }
.sx-dia .ln { fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-dia .ln-thin { fill: none; stroke: var(--border-strong); stroke-width: 1.2; }
.sx-dia .wan { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 6; }
.sx-dia .acc { fill: var(--accent); }
.sx-dia .acc-ln { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sx-dia .soft { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.2; }
.sx-dia .lbl { fill: var(--text-muted); font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; }
@media (prefers-reduced-motion: no-preference) {
  .sx-dia .wan { animation: sxFlow 1.4s linear infinite; }
}
@keyframes sxFlow { to { stroke-dashoffset: -24; } }

/* hotspot numbers on the drawing */
.sx-dot { position: absolute; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; margin-block: -15px 0; margin-inline: -15px 0; padding: 0; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); color: var(--accent-text); font-family: var(--font-display); font-size: 0.8rem; font-weight: 800; cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.sx-dot.is-on { background: var(--accent); color: var(--on-accent); }
.sx-dot:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
@media (hover: hover) { .sx-dot:hover { transform: scale(1.1); } }
@media (prefers-reduced-motion: no-preference) {
  .sx-dot.is-on::after { content: ""; position: absolute; inset: -6px; border: 2px solid var(--accent); border-radius: 50%; animation: sxPulse 1.8s ease-out infinite; }
}
@keyframes sxPulse { from { opacity: 0.7; transform: scale(0.85); } to { opacity: 0; transform: scale(1.35); } }

/* the four needs beside the drawing */
.sx-needs { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.sx-need { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0 0.85rem; padding: 0.95rem 1.1rem; border: 1px solid var(--border); border-inline-start-width: 3px; border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.sx-need b { grid-row: span 2; color: var(--accent-text); font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.sx-need h3 { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.sx-need p { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.sx-need.is-on { border-color: var(--accent); }

/* ---------- 3. delivery track ---------- */
.sx-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.25rem); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.sx-track::before { content: ""; position: absolute; top: 22px; inset-inline-start: 12%; inset-inline-end: 12%; height: 2px; background: var(--accent); opacity: 0.6; }
.sx-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.sx-step b { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; }
.sx-step h3 { margin: 0.2rem 0 0; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.sx-step ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.sx-step li { padding: 0.3rem 0.65rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); font-size: 0.8rem; line-height: 1.3; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .sx-map { grid-template-columns: 1fr; }
  .sx-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .sx-track::before { display: none; }
}
@media (max-width: 575.98px) {
  .sx-need { padding: 0.8rem 0.85rem; }
  .sx-need p { display: none; }
  .sx-step li { font-size: 0.75rem; }
  .sx-dot { width: 26px; height: 26px; margin-block: -13px 0; margin-inline: -13px 0; font-size: 0.72rem; }
}

.sx-dia-in { position: relative; }

/* ==========================================================================
   SECTOR VARIANTS: each sector page uses its own set below (no two pages
   share an infographic). Prefix per component.
   ========================================================================== */
.sx-card { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.sx-n { color: var(--accent-text); font-family: var(--font-display); font-weight: 800; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.sx-chips li { padding: 0.28rem 0.65rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); font-size: 0.8rem; line-height: 1.3; }
.sx-go { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent-text); font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.sx-go:hover, .sx-go:focus-visible { text-decoration: underline; }
.sx-svg .ln { fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-svg .ln-thin { fill: none; stroke: var(--border-strong); stroke-width: 1.2; }
.sx-svg .dash { fill: none; stroke: var(--border-strong); stroke-width: 1.2; stroke-dasharray: 4 6; }
.sx-svg .acc { fill: var(--accent); }
.sx-svg .acc-ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sx-svg .soft { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.2; }
.sx-svg .lbl { fill: var(--text-muted); font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; }

/* ---------- GOVERNMENT: hub-and-outposts with callouts ---------- */
.sxg-hub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 1rem clamp(1rem, 3vw, 2.5rem); }
.sxg-hub figure { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.sxg-hub figure svg { display: block; width: 100%; height: auto; }
.sxg-call { padding: 1rem 1.1rem; }
.sxg-call h3 { margin: 0.2rem 0 0.25rem; color: var(--text); font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }
.sxg-call p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.sxg-call:nth-of-type(odd) { text-align: end; }
@media (prefers-reduced-motion: no-preference) { .sxg-hub .spin { transform-origin: 180px 180px; animation: sxgSpin 40s linear infinite; } }
@keyframes sxgSpin { to { transform: rotate(360deg); } }

/* rising staircase */
.sxg-stairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 0.75rem; min-height: 360px; margin: 0; padding: 0; list-style: none; }
.sxg-stairs > li { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.1rem; border-top: 4px solid var(--accent); }
.sxg-stairs > li:nth-child(1) { min-height: 55%; } .sxg-stairs > li:nth-child(2) { min-height: 70%; } .sxg-stairs > li:nth-child(3) { min-height: 85%; } .sxg-stairs > li:nth-child(4) { min-height: 100%; }
.sxg-stairs .sx-n { font-size: 1.6rem; }
.sxg-stairs h3 { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }

/* ---------- HEALTHCARE: segment ring ---------- */
.sxh-ring { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.sxh-ring svg { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
.sxh-ring .seg { fill: none; stroke: var(--surface-2); stroke-width: 34; transition: stroke 0.25s ease; }
.sxh-ring .seg.is-on { stroke: var(--accent); }
.sxh-ring .segn { fill: var(--text); font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.sxh-legend { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.sxh-legend > li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 0.8rem; padding: 0.9rem 1rem; cursor: default; }
.sxh-legend > li .sx-n { grid-row: span 2; font-size: 1.15rem; }
.sxh-legend > li h3 { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }
.sxh-legend > li p { margin: 0.2rem 0 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.sxh-legend > li.is-on { border-color: var(--accent); }

/* alternating vertical timeline */
.sxh-time { position: relative; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 1.25rem; }
.sxh-time::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--accent); opacity: 0.5; }
.sxh-time > li { position: relative; width: calc(50% - 2.25rem); padding: 1.1rem 1.2rem; }
.sxh-time > li:nth-child(even) { margin-inline-start: auto; }
.sxh-time > li::after { content: attr(data-n); position: absolute; top: 1rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; }
.sxh-time > li:nth-child(odd)::after { inset-inline-end: calc(-2.25rem - 20px); }
.sxh-time > li:nth-child(even)::after { inset-inline-start: calc(-2.25rem - 20px); }
.sxh-time h3 { margin: 0 0 0.6rem; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }

/* ---------- HOSPITALITY: winding journey ---------- */
.sxp-path { position: relative; }
.sxp-path svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sxp-path ol { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.sxp-stop { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.sxp-stop:nth-child(even) { margin-top: 4.5rem; }
.sxp-pin { display: grid; place-items: center; width: 64px; height: 64px; border: 3px solid var(--accent); border-start-start-radius: 50%; border-start-end-radius: 50%; border-end-end-radius: 50%; border-end-start-radius: 0; transform: rotate(-45deg); background: var(--surface); }
.sxp-pin i { transform: rotate(45deg); color: var(--accent-text); font-size: 1.5rem; }
.sxp-stop h3 { margin: 0.35rem 0 0; color: var(--text); font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }
.sxp-stop p { margin: 0; max-width: 26ch; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.sxp-path .route { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: 0.8; }

/* overlapping phase bars */
.sxp-gantt { display: grid; gap: 0.9rem; max-width: 1000px; margin: 0 auto; }
.sxp-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); align-items: center; gap: 1.25rem; }
.sxp-label { text-align: end; }
.sxp-row h3 { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.sxp-label p { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.4; }
.sxp-row h3 .sx-n { margin-inline-end: 0.5rem; }
.sxp-lane { position: relative; height: 46px; border-radius: 12px; background: var(--surface-2); }
.sxp-bar { position: absolute; top: 5px; bottom: 5px; display: flex; align-items: center; padding: 0 0.9rem; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxp-axis { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: 1.25rem; color: var(--text-muted); font-family: var(--font-display); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.sxp-axis span:last-child { display: flex; justify-content: space-between; }

/* ---------- MANUFACTURING: production line ---------- */
.sxm-line svg { display: block; width: 100%; height: auto; }
.sxm-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.sxm-cols > li { padding: 1rem; border-top: 3px solid var(--accent); }
.sxm-cols h3 { margin: 0.25rem 0; color: var(--text); font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }
.sxm-cols p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.sxm-line .belt { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.2; }
.sxm-line .roller { fill: var(--surface); stroke: var(--text-muted); stroke-width: 1.4; }
.sxm-line .box { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.sxm-line .boxn { fill: var(--accent-text); font-family: var(--font-display); font-size: 20px; font-weight: 800; }
@media (prefers-reduced-motion: no-preference) { .sxm-line .move { animation: sxmMove 6s linear infinite; } }
@keyframes sxmMove { from { transform: translateX(0); } to { transform: translateX(220px); } }

/* checklist with progress */
.sxm-check { display: grid; gap: 0.75rem; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.sxm-check > li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 170px; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.sxm-check > li > i { color: var(--accent-text); font-size: 1.8rem; }
.sxm-check h3 { margin: 0 0 0.45rem; color: var(--text); font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }
.sxm-meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sxm-meter span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.sxm-pct { display: grid; gap: 0.35rem; color: var(--text-muted); font-family: var(--font-display); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-align: end; }

/* ---------- PETROLEUM: field map with switchable layers ---------- */
.sxf { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.sxf-list { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.sxf-btn { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 0.85rem; width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); text-align: start; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.sxf-btn i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--accent-text); font-size: 1.2rem; }
.sxf-btn b { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.sxf-btn small { display: block; margin-top: 0.15rem; color: var(--text-muted); font-size: 0.85rem; line-height: 1.45; }
.sxf-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--surface-2); }
.sxf-btn[aria-pressed="true"] i { background: var(--accent); color: var(--on-accent); }
.sxf-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sxf-map { margin: 0; padding: clamp(0.5rem, 1.5vw, 1rem); border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.sxf-map svg { display: block; width: 100%; height: auto; }
.sxf .sxf-contour { opacity: 0.6; }
.sxf .sxf-pipe { fill: none; stroke: var(--border-strong); stroke-width: 6; stroke-linecap: round; }
.sxf .sxf-link { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 5 6; }
.sxf .sxf-solar { fill: color-mix(in srgb, var(--accent) 25%, var(--surface)); stroke: var(--accent); stroke-width: 1.4; }
.sxf .sxf-cone { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.sxf .sxf-fence { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 3 4; }
.sxf .sxf-dash { fill: var(--surface-2); stroke: var(--accent); stroke-width: 1.6; }
.sxf .sxf-data { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 2 5; }
.sxf .sxf-ly { opacity: 0.12; transition: opacity 0.35s ease; }
.sxf[data-layer="0"] .sxf-ly0, .sxf[data-layer="1"] .sxf-ly1, .sxf[data-layer="2"] .sxf-ly2, .sxf[data-layer="3"] .sxf-ly3 { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .sxf .sxf-link, .sxf .sxf-data { animation: sxFlow 1.4s linear infinite; }
}
@media (max-width: 991.98px) { .sxf { grid-template-columns: 1fr; } .sxf-map { order: -1; } }
@media (max-width: 575.98px) {
  .sxf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sxf-btn { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0.7rem 0.5rem; }
  .sxf-btn small { display: none; }
  .sxf-map .lbl { font-size: 15px; }
}

/* progress rings */
.sxo-rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.sxo-rings > li { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.sxo-ring { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.sxo-ring b { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--surface); color: var(--accent-text); font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.sxo-rings h3 { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }
.sxo-rings .sx-chips { justify-content: center; }

/* ---------- variants: tablet and phone ---------- */
@media (max-width: 991.98px) {
  .sxg-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sxg-hub figure { grid-column: 1 / -1; grid-row: auto; max-width: 340px; margin: 0 auto; }
  .sxg-call:nth-of-type(odd) { text-align: start; }
  .sxh-ring { grid-template-columns: 1fr; }
  .sxo-rings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .sxg-stairs { grid-template-columns: 1fr; min-height: 0; }
  .sxg-stairs > li { min-height: 0 !important; }
  .sxg-stairs > li:nth-child(1) { width: 85%; } .sxg-stairs > li:nth-child(2) { width: 90%; } .sxg-stairs > li:nth-child(3) { width: 95%; }
  .sxh-time::before { inset-inline-start: 20px; }
  .sxh-time > li { width: auto; margin-inline-start: 3.25rem !important; }
  .sxh-time > li:nth-child(odd)::after, .sxh-time > li:nth-child(even)::after { inset-inline-start: calc(-3.25rem); inset-inline-end: auto; }
  .sxp-path svg { display: none; }
  .sxp-path ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .sxp-stop:nth-child(even) { margin-top: 0; }
  .sxp-row { grid-template-columns: 1fr; gap: 0.45rem; }
  .sxp-label { text-align: start; }
  .sxp-lane { height: 14px; }
  .sxp-bar { top: 3px; bottom: 3px; }
  .sxp-axis { display: none; }
  .sxm-line { display: none; }
  .sxm-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sxm-check > li { grid-template-columns: 36px minmax(0, 1fr); }
  .sxm-check .sxm-pct { grid-column: 1 / -1; text-align: start; }
}
@media (max-width: 575.98px) {
  .sxg-hub { grid-template-columns: 1fr; }
  .sxg-call p, .sxh-legend > li p, .sxp-stop p, .sxm-cols p { display: none; }
  .sxo-rings { gap: 1.5rem 0.75rem; }
}

/* ---------- hero: copy beside the sector drawing ---------- */
.sx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.sx-hero-fig { margin: 0; padding: clamp(0.75rem, 2vw, 1.25rem); border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 60px rgb(var(--charcoal-rgb) / 0.08); }
.sx-hero-fig svg { display: block; width: 100%; height: auto; }
.sx-hero-fig .lbl { font-size: 10.5px; }
@media (max-width: 991.98px) {
  .sx-hero-grid { grid-template-columns: 1fr; }
  .sx-hero-fig { max-width: 560px; margin: 0 auto; }
}

/* ---------- solution mix: illustrated tiles, a few big words each ---------- */
.sx-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.sx-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; height: 100%; padding: 1.1rem 0.9rem 2.6rem; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 16px; background: var(--surface); color: var(--text); text-align: center; text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.sx-tile-pic { display: block; width: 100%; max-width: 132px; }
.sx-tile-pic svg { display: block; width: 100%; height: auto; }
.sx-tile b { color: var(--accent-text); font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.sx-tile ul { display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.sx-tile ul li { color: var(--text); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.sx-tile-go { position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%); color: var(--accent-text); }
.sx-tile:hover, .sx-tile:focus-visible { border-color: var(--accent); }
.sx-tile:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .sx-tile:hover { transform: translateY(-3px); } }
@media (max-width: 1199.98px) { .sx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .sx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .sx-tile { padding: 0.9rem 0.6rem 2.3rem; }
  .sx-tile ul li { font-size: 0.92rem; }
}
@media (max-width: 575.98px) {
  .sx-hero-fig { padding: 0.5rem; }
  .sx-hero-fig .lbl { font-size: 13px; letter-spacing: 0.04em; }
}
:root body .sx-tile ul li { text-align: center; }

/* ==========================================================================
   SOLUTION TILE LAYOUTS: one per sector page (manufacturing keeps the base)
   ========================================================================== */
/* Finance: ledger cards, drawing left, words right */
.sx-tiles--ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.sx-tiles--ledger .sx-tile { flex-direction: row; align-items: center; gap: 1rem; padding-block: 1.1rem 1.1rem; padding-inline: 1.1rem 2.6rem; border-top-width: 1px; border-inline-start: 4px solid var(--accent); text-align: start; }
.sx-tiles--ledger .sx-tile-pic { flex: 0 0 104px; }
.sx-tiles--ledger .sx-tile > b { display: none; }
.sx-tiles--ledger .sx-tile ul { flex: 1; }
.sx-tiles--ledger .sx-tile ul::before { content: attr(data-name); }
.sx-tiles--ledger .sx-tile ul li { text-align: start; }
.sx-tiles--ledger .sx-tile-go { top: 1rem; bottom: auto; inset-inline-start: auto; inset-inline-end: 1rem; transform: none; }

/* Government: bento, one feature tile and a wide strip */
.sx-tiles--bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
.sx-tiles--bento > li:first-child { grid-row: span 2; }
.sx-tiles--bento > li:first-child .sx-tile { justify-content: center; padding-top: 2rem; }
.sx-tiles--bento > li:first-child .sx-tile-pic { max-width: 220px; }
.sx-tiles--bento > li:first-child .sx-tile ul li { font-size: 1.35rem; }
.sx-tiles--bento > li:nth-child(6) { grid-column: 1 / -1; }
.sx-tiles--bento > li:nth-child(6) .sx-tile { flex-direction: row; justify-content: center; gap: 2rem; padding: 1rem 3rem; }
.sx-tiles--bento > li:nth-child(6) .sx-tile-pic { max-width: 110px; }
.sx-tiles--bento > li:nth-child(6) .sx-tile ul { display: flex; gap: 1.5rem; }
.sx-tiles--bento > li:nth-child(6) .sx-tile-go { inset-inline-start: auto; inset-inline-end: 1.25rem; bottom: 50%; transform: translateY(50%); }

/* Healthcare: open columns, drawings in circles, thin dividers */
.sx-tiles--open { gap: 0; }
.sx-tiles--open > li + li { border-inline-start: 1px solid var(--border); }
.sx-tiles--open .sx-tile { border: 0; border-radius: 0; background: none; padding-top: 0.5rem; }
.sx-tiles--open .sx-tile-pic { display: grid; place-items: center; width: 116px; height: 116px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); }
.sx-tiles--open .sx-tile-pic svg { width: 84px; }

/* Hospitality: postcards, drawing on a tinted band, keywords as chips */
.sx-tiles--postcard { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sx-tiles--postcard .sx-tile { align-items: stretch; padding: 0 0 1rem; overflow: hidden; border-top-width: 1px; text-align: start; }
.sx-tiles--postcard .sx-tile-pic { max-width: none; padding: 1rem 30%; background: var(--surface-2); border-bottom: 3px solid var(--accent); }
.sx-tiles--postcard .sx-tile > b { padding: 0.4rem 1rem 0; }
.sx-tiles--postcard .sx-tile ul { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 1rem; }
.sx-tiles--postcard .sx-tile ul li { padding: 0.25rem 0.7rem; border: 1px solid var(--border); border-radius: 999px; font-size: 0.9rem; }
:root body .sx-tiles--postcard .sx-tile ul li { text-align: start; }
.sx-tiles--postcard .sx-tile-go { top: 0.75rem; bottom: auto; inset-inline-start: auto; inset-inline-end: 0.75rem; transform: none; }

/* Petroleum: control panels, two columns of wide rows */
.sx-tiles--panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.sx-tiles--panel .sx-tile { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 0 1.1rem; padding-block: 0.75rem 0.75rem; padding-inline: 0.75rem 1.1rem; border-top-width: 1px; background: var(--surface-2); text-align: start; }
.sx-tiles--panel .sx-tile-pic { grid-row: span 2; padding: 0.5rem; border-radius: 12px; background: var(--surface); }
.sx-tiles--panel .sx-tile > b { align-self: end; }
.sx-tiles--panel .sx-tile ul { display: flex; flex-wrap: wrap; align-self: start; gap: 0 0.6rem; }
.sx-tiles--panel .sx-tile ul li { font-size: 1rem; }
.sx-tiles--panel .sx-tile ul li + li::before { content: "·"; margin-inline-end: 0.6rem; color: var(--accent-text); }
.sx-tiles--panel .sx-tile-go { position: static; grid-column: 3; grid-row: 1 / span 2; transform: none; }

@media (max-width: 1199.98px) {
  .sx-tiles--ledger, .sx-tiles--postcard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-tiles--open { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.5rem; }
  .sx-tiles--open > li:nth-child(4) { border-inline-start: 0; }
}
@media (max-width: 767.98px) {
  .sx-tiles--ledger, .sx-tiles--panel { grid-template-columns: 1fr; }
  .sx-tiles--bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-tiles--bento > li:first-child { grid-row: auto; grid-column: 1 / -1; }
  .sx-tiles--bento > li:nth-child(6) .sx-tile { flex-direction: column; gap: 0.5rem; padding: 1.1rem 0.9rem 2.6rem; }
  .sx-tiles--bento > li:nth-child(6) .sx-tile-go { left: 50%; inset-inline-end: auto; bottom: 0.8rem; transform: translateX(-50%); }
}
@media (max-width: 575.98px) {
  .sx-tiles--open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-tiles--open > li:nth-child(odd) { border-inline-start: 0; }
  .sx-tiles--open > li:nth-child(4) { border-inline-start: 1px solid var(--border); }
  .sx-tiles--open .sx-tile-pic { width: 92px; height: 92px; }
  .sx-tiles--postcard { grid-template-columns: 1fr; }
  .sx-tiles--panel .sx-tile { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .sx-tiles--bento > li:nth-child(6) .sx-tile ul { flex-direction: column; gap: 0.2rem; }
}
.sx-tiles--ledger .sx-tile ul::before { display: block; margin-bottom: 0.3rem; color: var(--accent-text); font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
:root body .sx-tiles--ledger .sx-tile ul, :root body .sx-tiles--ledger .sx-tile ul li { text-align: start; }
@media (max-width: 575.98px) {
  .sx-tiles--panel .sx-tile ul { flex-direction: column; gap: 0.1rem; }
  .sx-tiles--panel .sx-tile ul li + li::before { content: none; }
  .sx-tiles--postcard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .sx-tiles--postcard .sx-tile-pic { padding: 0.75rem 18%; }
  .sx-tiles--postcard .sx-tile ul li { font-size: 0.8rem; padding: 0.2rem 0.55rem; }
}

/* ---------- Solutions overview page drawings ---------- */
.sol-tile-top .sol-tile-pic { display: block; width: 96px; }
.sol-tile-top .sol-tile-pic svg { display: block; width: 100%; height: auto; }
.sol-sector-side .sol-sector-fig { display: block; margin: 0 0 1rem; padding: 0.5rem; border-radius: 12px; background: var(--surface); }
.sol-sector-side .sol-sector-fig svg { display: block; width: 100%; max-width: none; height: auto; margin: 0; }
.sol-pick .sol-pick-pic { display: block; width: 100%; max-width: 150px; margin-bottom: 0.4rem; }
.sol-pick .sol-pick-pic svg { display: block; width: 100%; height: auto; }
.sol-b .sol-b-pic { display: block; margin: 1rem 0; }
.sol-b .sol-b-pic svg { display: block; width: 100%; height: auto; }
.sol-rm-k i { margin-inline-start: 0.6rem; font-size: 1.1rem; vertical-align: 0.15em; }
@media (max-width: 575.98px) {
  .sol-pick .sol-pick-pic { max-width: 110px; margin-inline: auto; }
  .sol-tile-top .sol-tile-pic { width: 72px; }
}
.sol-sector-side .sol-sector-fig .lbl { display: none; }
.sol-b-1 .sol-b-pic { flex: 1 1 auto; display: flex; align-items: center; }
/* government hub: below desktop the callouts drop their fixed grid places so the drawing leads at full width */
@media (max-width: 991.98px) {
  .sxg-hub > .sxg-call { grid-column: auto !important; grid-row: auto !important; text-align: center !important; }
  .sxg-hub > figure { order: -1; width: 100%; max-width: 360px; }
}

/* Integrated solution: a typical scope for the sector, pillars down to the site */
.sxi-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.sxi-copy p { margin: 0 0 1rem; color: var(--text-muted); line-height: 1.7; }
.sxi-copy p:first-child { color: var(--text); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.45; }
.sxi-copy p:last-child { margin-bottom: 0; }
.sxi-fig { margin: 0; }
.sxi-svg { display: block; width: 100%; height: auto; }
.sx-svg .sxi-pill { fill: var(--accent); }
.sx-svg .sxi-pn { fill: var(--on-accent); font-family: var(--font-display); font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; }
.sx-svg .sxi-ct { fill: var(--text); font-family: var(--font-display); font-size: 13.5px; font-weight: 600; }
.sx-svg .sxi-site { fill: var(--surface-2); stroke: var(--accent); stroke-width: 2; }
.sx-svg .sxi-sn { fill: var(--text); font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.16em; }
.sx-svg .sxi-flow { stroke-dasharray: 3 7; }
@media (prefers-reduced-motion: no-preference) {
  .sx-svg .sxi-flow { animation: sxiFlow 1s linear infinite; }
  @keyframes sxiFlow { to { stroke-dashoffset: -10; } }
}
@media (max-width: 991.98px) { .sxi-grid { grid-template-columns: 1fr; } }
