/* Industry page — the "editorial" layout of /industries/<slug>/.
   Loaded after industry-reference.css and industry-stanvac.css. The figure,
   the table and the filter script are shared with the older layout
   (templates/core/industry_detail.html, still the fallback for a sector with
   no site render); everything here is arrangement and skin: a centred head,
   the render on a wide stage, the areas as a numbered route, ruled rows. */

/* ---------- base ---------- */

.sxv { color: var(--ink); }

.sxv .sxv-h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  color: inherit;
}

.sxv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.sxv-btn--solid { background: var(--accent); color: #fff; }
.sxv-btn--solid:hover, .sxv-btn--solid:focus { background: var(--green-dark); color: #fff; }
.sxv-btn--outline { border-color: var(--green); color: var(--green-dark); background: transparent; }
.sxv-btn--outline:hover, .sxv-btn--outline:focus { border-color: var(--forest); background: var(--forest); color: #fff; }
.sxv-btn--light { background: #fff; color: var(--forest); }
.sxv-btn--light:hover, .sxv-btn--light:focus { background: var(--mint); color: var(--forest); }
.sxv-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.sxv-btn--ghost:hover, .sxv-btn--ghost:focus { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

/* The render keeps its own 3:2 in every layout; the pins are per cent of it. */
.sxv .sx-ind-visual__frame { aspect-ratio: 3 / 2; }

/* Area buttons. They carry .sx-chip so industry-map.js wires them as the
   filter; the route below restyles them from this neutral base. */
.sxv .sxv-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--body);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}
.sxv .sxv-area__n,
.sxv .sxv-area__count {
  font-family: var(--sx-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}
.sxv .sxv-area:focus { outline: none; }
.sxv .sxv-area:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* Heading over the component list. */
.sxv-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 18px;
}
.sxv-list__titles { flex: 1 1 320px; min-width: 0; }
.sxv-list__kicker {
  display: block;
  font-family: var(--eyebrow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}
.sxv .sxv-list__title {
  margin: 6px 0 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
  color: var(--forest);
}
.sxv-list__sub {
  margin: 8px 0 0;
  max-width: 64ch;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--body);
}
.sxv-list__search { flex: 0 1 340px; min-width: 200px; }
.sxv .sx-comp__search input { background-color: #fff; border-color: var(--input); }

.sxv a.sx-comp-tag,
.sxv .sx-filterbar__pill { background: #eaf5ee; color: var(--green-dark); }
.sxv a.sx-comp-tag:hover, .sxv a.sx-comp-tag:focus { background: var(--accent); color: #fff; }

/* Phone cards in the brand greens rather than the inherited warm tints. */
.sxv .sx-comp-card__head { background: var(--soft); border-bottom-color: var(--line); }
.sxv .sx-comp-card__row { border-bottom-color: var(--line); }
.sxv .sx-comp-card__prod { background: #eaf5ee; color: var(--green-dark); }
.sxv .sx-comp-card__prod--none { background: var(--soft); color: var(--muted); }

/* ---------- layout ---------- */

.sxv-c-head { padding: 64px 0 40px; text-align: center; }
.sxv .sxv-c-head__h1 {
  margin: 0 auto 20px;
  max-width: 20ch;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  color: var(--forest);
}
.sxv-c-head__lede {
  margin: 0 auto;
  max-width: 66ch;
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--body);
}
.sxv-c-figs { display: flex; justify-content: center; margin: 36px 0 0; }
.sxv-c-fig { padding: 0 clamp(16px, 3.2vw, 48px); border-left: 1px solid var(--line-2); }
.sxv-c-fig:first-child { border-left: 0; }
.sxv-c-fig dt {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--forest);
}
.sxv-c-fig dd {
  margin: 8px 0 0;
  font-family: var(--eyebrow);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sxv-c-stage__panel {
  padding: clamp(18px, 3vw, 44px) clamp(14px, 3vw, 44px) clamp(14px, 2vw, 24px);
  background: var(--soft);
  border: 1px solid var(--line);
}
.sxv-c-stage .sx-ind-visual { max-width: 1040px; margin: 0 auto; }
.sxv-c-stage .sx-ind-visual__cap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }

.sxv-c-body { padding: 44px 0 84px; }

/* The areas as one numbered route, the numbers matching the pins above. */
/* It stays pinned under the site header for as long as the list is on screen,
   so the reader can change area from any row without scrolling back up. */
.sxv-c-route {
  position: sticky;
  top: var(--header-height);
  z-index: 5;
  margin-bottom: 40px;
  padding-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 14px -14px rgba(15, 42, 29, .35);
}
/* The list is sized to what is left of the window under the header and the
   pinned route, so the whole of it is on screen at once. */
@media (min-width: 768px) {
  .sxv-c .sx-comp--flat .sx-comp-table { max-height: clamp(320px, calc(100vh - 300px), 660px); }
}
.sxv-c-route__row {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 1fr);
  /* Size the row to its content so the connector line spans every step when the route scrolls. */
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 4px 0 12px;
  list-style: none;
}
.sxv-c-route__row::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 59px;
  right: 59px;
  height: 2px;
  background: var(--line-2);
}
.sxv-c-route__row li { position: relative; margin: 0; }
.sxv-c .sxv-area {
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 0 8px;
  text-align: center;
  font-size: 13.5px;
}
.sxv-c .sxv-area__n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  color: var(--green-dark);
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.sxv-c .sxv-area__name { color: var(--body); }
.sxv-c .sxv-area__count { margin-top: 5px; font-weight: 500; color: var(--muted); }
.sxv-c .sxv-area:hover .sxv-area__n { border-color: var(--accent); }
.sxv-c .sxv-area:hover .sxv-area__name { color: var(--forest); }
.sxv-c .sxv-area.is-active .sxv-area__n {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(27, 127, 69, .16);
}
.sxv-c .sxv-area.is-active .sxv-area__name { color: var(--forest); font-weight: 700; }

/* A ruled table, not a boxed one. */
.sxv-c .sx-comp--flat .sx-comp-table {
  border: 0;
  border-top: 2px solid var(--forest);
  border-bottom: 1px solid var(--line);
}
.sxv-c .sx-comp-table__row--head { background: #fff; color: var(--forest); }
.sxv-c .sx-comp--flat .sx-comp-table__row { padding-left: 4px; padding-right: 4px; }
.sxv-c .sx-comp-table__row:not(.sx-comp-table__row--head):hover { background: var(--soft); }
.sxv-c .sx-comp--flat .sx-comp__foot { border: 0; padding-left: 4px; padding-right: 4px; }

.sxv-c-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.sxv-c-cols__intro .sxv-h2 { color: var(--forest); margin: 0; }

.sxv-c-wear { padding: 64px 0; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sxv-c-wear .sx__eyebrow { margin: 0; }
.sxv-c-wear__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sxv-c-wear__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 20px 0 24px;
  border-top: 1px solid var(--line-2);
}
.sxv-c-wear__n {
  grid-row: span 2;
  padding-top: 4px;
  font-family: var(--sx-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.sxv .sxv-c-wear__name { margin: 0 0 6px; font-size: 20px; color: var(--forest); }
.sxv-c-wear__desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }

.sxv-c-range { padding: 72px 0; }
.sxv-c-range__list { border-bottom: 1px solid var(--line-2); }
.sxv-c-range__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 24px;
  gap: 8px 28px;
  align-items: baseline;
  padding: 18px 4px;
  border-top: 1px solid var(--line-2);
  color: inherit;
  text-decoration: none;
  transition: background-color .16s ease;
}
.sxv-c-range__row:hover, .sxv-c-range__row:focus { background: var(--soft); color: inherit; }
.sxv-c-range__name { font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--forest); }
.sxv-c-range__desc { font-size: 15px; line-height: 1.5; color: var(--body); }
.sxv-c-range__go { font-size: 18px; color: var(--accent); transition: transform .16s ease; }
.sxv-c-range__row:hover .sxv-c-range__go { transform: translateX(4px); }

.sxv-c-cta { padding: 0 0 72px; }
.sxv-c-cta__card {
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  text-align: center;
}
.sxv-c-cta__card .sxv-h2 { color: var(--forest); }
.sxv-c-cta__lede { margin: 0 auto; max-width: 60ch; font-size: 17px; color: var(--body); }
.sxv-c-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.sxv-c-others {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
  margin-top: 32px;
  font-size: 14.5px;
}
.sxv-c-others__label {
  font-family: var(--eyebrow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sxv-c-others a { font-weight: 600; color: var(--forest); text-decoration: none; }
.sxv-c-others a:hover { color: var(--green-dark); text-decoration: underline; }

@media (max-width: 991.98px) {
  .sxv-c-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767.98px) {
  .sxv-c-head { padding: 36px 0 28px; }
  .sxv-c-figs { margin-top: 24px; }
  .sxv-c-fig dd { font-size: 10.5px; letter-spacing: .06em; }
  .sxv-c-body { padding: 28px 0 44px; }
  .sxv-c-route { margin-bottom: 24px; padding-top: 8px; }
  .sxv-c-route__row { grid-auto-columns: minmax(104px, 1fr); padding-bottom: 8px; }
  .sxv-c-route__row::before { top: 21px; left: 52px; right: 52px; }
  .sxv-c .sxv-area { font-size: 12.5px; }
  .sxv-c .sxv-area__n { width: 36px; height: 36px; margin-bottom: 8px; }
  .sxv-c .sxv-area__count { display: none; }
  .sxv-c-wear, .sxv-c-range { padding: 40px 0; }
  .sxv-c-wear__list { grid-template-columns: minmax(0, 1fr); }
  .sxv-c-range__row { grid-template-columns: minmax(0, 1fr) 24px; }
  .sxv-c-range__desc { grid-column: 1; grid-row: 2; }
  .sxv-c-range__go { grid-column: 2; grid-row: 1; }
  .sxv-c-cta { padding-bottom: 44px; }
  .sxv-c-cta__actions .sxv-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sxv-btn, .sxv .sxv-area, .sxv-c-range__go { transition: none; }
}
