/* All / Electrical / Mechanical views of the homepage
   (Stanvac_IT_Implementation_Brief + Stanvac_Interactive_Reference.html,
   1 Oct 2026). Only the area from the selector down to the contact band is
   styled here; the header and the introduction above it are untouched.

   Every rule hangs off #stv-views so it outranks the older homepage sheets
   (several of which are scoped to #documents) without !important.
   Palette (brief, section 3):
     Electrical  accent #008D86 · selected control #006D68 · dark #263238
     Mechanical  accent #F6C344 · dark #3E3B35 (dark text on the yellow)
     All         selector #353D47 */

/* ---------- which panels a view shows ---------- */
#stv-views[data-view="all"] [data-views]:not([data-views~="all"]),
#stv-views[data-view="electrical"] [data-views]:not([data-views~="electrical"]),
#stv-views[data-view="mechanical"] [data-views]:not([data-views~="mechanical"]) {
  display: none !important;
}

#stv-views { overflow-wrap: normal; hyphens: none; -webkit-hyphens: none; }

@media (max-width: 760px) {
  #stv-views .wrap { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 520px) {
  #stv-views .wrap { padding-left: 18px; padding-right: 18px; }
}

/* ---------- selector ---------- */
#stv-views .focus-choices {
  position: sticky; top: 0; z-index: 8;
  margin-top: 26px; padding: 8px 0 12px;
  background: #fafaf9; border-bottom: 1px solid #dfdfd8;
  scroll-margin-top: 12px;
}
#stv-views .focus-controls {
  display: grid; grid-template-columns: .72fr 1fr 1fr; gap: 14px;
}
#stv-views .focus-control {
  --switch: #53675d; --switch-fill: #29493d;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  min-width: 0; min-height: 55px; padding: 13px 18px;
  font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  background: #fff; color: var(--switch-fill);
  border: 1px solid #d5ded8; border-bottom: 4px solid var(--switch);
  border-radius: 0; box-shadow: none;
}
#stv-views .focus-control b {
  font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2;
}
#stv-views .focus-control:hover b { text-decoration: underline; text-underline-offset: 4px; }
#stv-views .focus-control:focus-visible { outline: 3px solid #1c1917; outline-offset: 3px; }
#stv-views .focus-control[data-mode="all"] {
  --switch: #737d88; --switch-fill: #353d47;
  color: #353d47; border-color: #d6dbe0; border-bottom-color: #737d88;
}
#stv-views .focus-control[data-mode="electrical"] {
  --switch: #008d86; --switch-fill: #008d86;
  color: #006d68; border-color: #d5ded8; border-bottom-color: #008d86;
}
#stv-views .focus-control[data-mode="mechanical"] {
  --switch: #f6c344; --switch-fill: #f6c344;
  color: #3e3b35; border-color: #e5d8b8; border-bottom-color: #f6c344;
}
#stv-views .focus-control[data-mode="all"][aria-pressed="true"] {
  background: #353d47; border-color: #353d47; color: #fff;
}
#stv-views .focus-control[data-mode="electrical"][aria-pressed="true"] {
  background: #006d68; border-color: #006d68; color: #fff;
}
#stv-views .focus-control[data-mode="mechanical"][aria-pressed="true"] {
  background: #f6c344; border-color: #f6c344; color: #3e3b35;
}

/* ---------- department heading ---------- */
#stv-views .focus-heading {
  margin: 30px 0 20px;
  font-size: 12px; font-weight: bold; letter-spacing: .14em; line-height: 1.5;
  text-transform: uppercase; color: #006d68;
}
#stv-views[data-view="mechanical"] .focus-heading { color: #936313; }

/* ---------- the technologies (world-first cards) ---------- */
#stv-views .focus-doc-number {
  position: absolute; inset-inline-start: 12px; top: 16px; z-index: 5;
  padding: 7px 10px; background: #183e39; color: #fff;
  font: bold 18px/1.2 Arial, Helvetica, sans-serif;
}
#stv-views a.svwf-card:hover { box-shadow: none; transform: none; }
#stv-views[data-view="all"] .svwf { margin-top: 36px; }

#stv-views:not([data-view="all"]) .stv-world { padding-top: 48px; }
#stv-views:not([data-view="all"]) .svwf { margin-top: 0; }
#stv-views:not([data-view="all"]) .svwf-h2 { font-size: 28px; text-transform: none; }
#stv-views:not([data-view="all"]) .svwf-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; min-width: 0;
}
#stv-views:not([data-view="all"]) a.svwf-card {
  aspect-ratio: 4 / 3; min-height: 380px; min-width: 0; width: 100%; max-width: 100%;
}
#stv-views:not([data-view="all"]) .svwf-fig::after { height: 65%; }
#stv-views[data-view="mechanical"] .svwf-grid { grid-template-columns: minmax(0, 1fr); }
#stv-views[data-view="mechanical"] a.svwf-card { aspect-ratio: 2 / 1; min-height: 390px; }

/* ---------- figures, customers, plant ---------- */
#stv-views .stats .num { white-space: nowrap; }
#stv-views .plantkit .svcust-h { hyphens: none; -webkit-hyphens: none; word-break: normal; overflow-wrap: normal; }
/* In a department view the plant is the last block before the contact band,
   so it needs its own space below. */
#stv-views:not([data-view="all"]) .proof { padding-top: 36px; }
#stv-views:not([data-view="all"]) .plantkit { padding-bottom: 60px; }
@media (max-width: 700px) {
  #stv-views .plantkit .pk-plant { margin-bottom: 32px; }
  #stv-views:not([data-view="all"]) .plantkit { padding-bottom: 18px; }
}
#stv-views .keep-word {
  display: inline-block; white-space: nowrap;
  hyphens: none; -webkit-hyphens: none; word-break: normal; overflow-wrap: normal;
}

/* ---------- Why Buy ---------- */
#stv-views .ws {
  padding-top: 42px; padding-bottom: 38px;
  background: #fafaf9; border-top: 1px solid #e1e5df;
}
#stv-views:not([data-view="all"]) .ws { margin-top: 0; padding: 0; background: none; border-top: 0; }
#stv-views .ws-grid.focus-guide { grid-template-columns: minmax(0, 1fr); gap: 32px; }
#stv-views:not([data-view="all"]) .ws-grid.focus-guide { margin-top: 0; }

#stv-views .ws-card {
  --guide-accent: #008d86; --guide-deep: #006d68; --guide-ink: #293d49;
  --guide-slate: #263238; --guide-band-text: #fff; --guide-rule: #c2dcd9;
  --a: var(--guide-accent); --ws-border: var(--guide-accent);
  display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  min-width: 0; background: #fff;
  border: 2px solid var(--guide-accent); border-radius: 0; box-shadow: none;
  scroll-margin-top: 100px;
}
#stv-views .ws-card.is-mech {
  --guide-accent: #f6c344; --guide-deep: #936313; --guide-ink: #3e3b35;
  --guide-slate: #3e3b35; --guide-band-text: #3e3b35; --guide-rule: #e5d8b8;
}
#stv-views .ws-card:hover { border-color: var(--guide-accent); }

#stv-views .ws-card .ws-kicker {
  grid-column: 1 / -1; margin: 0; padding: 17px 22px;
  background: var(--guide-slate); color: #fff;
  border-inline-start: 6px solid var(--guide-accent);
  font: 700 16px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .035em; text-transform: uppercase; -webkit-text-stroke: 0;
}

#stv-views .ws-card .ws-fig {
  height: 100%; min-height: 0; min-width: 0; width: 100%;
  align-self: stretch; aspect-ratio: auto;
}
#stv-views .ws-card .ws-fig::before { display: none; }
#stv-views .ws-card .ws-photo-link,
#stv-views .ws-card .ws-fig picture { display: block; width: 100%; height: 100%; }
#stv-views .ws-card .ws-fig img { max-width: 100%; object-fit: cover; object-position: 65% center; }
#stv-views .ws-card.is-mech .ws-fig img { object-position: 55% center; }
#stv-views .ws-card .ws-no { background: var(--guide-accent); color: var(--guide-band-text); border: 0; }
#stv-views .ws-card.is-mech .ws-no { bottom: 68px; }
#stv-views .ws-process {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  display: grid; grid-template-columns: 1fr auto 1.3fr auto 1.6fr; gap: 6px; align-items: center;
  padding: 11px 12px; background: #3e3b35; color: #fff;
  font-size: 11px; line-height: 1.35; letter-spacing: 0; text-transform: none; text-align: center;
}
#stv-views .ws-process strong { color: #f6c344; font-weight: 700; }
#stv-views .ws-process i { font-style: normal; color: #f6c344; }

#stv-views .ws-card .ws-field {
  min-width: 0; width: 100%; padding: 28px 30px 30px;
  background: #fff; border: 0; color: #26362f;
}
#stv-views .ws-card .ws-h3 {
  display: block; width: 100%; margin: 0 0 22px; padding: 13px 18px 15px;
  background: var(--guide-accent); color: var(--guide-band-text);
  font-size: 38px; font-weight: 700; line-height: 1.05; letter-spacing: -.015em;
  text-transform: uppercase;
}
#stv-views .ws-card .ws-h3 a { display: block; color: inherit; text-decoration: none; line-height: inherit; }
#stv-views .ws-card .ws-h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
#stv-views .ws-card .ws-uline { display: none; }
#stv-views .ws-card .ws-lead {
  margin: 0; color: var(--guide-ink);
  font: 700 20px/1.4 Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: uppercase;
}
#stv-views .ws-card .ws-lead strong { display: block; color: var(--guide-deep); font-weight: 700; }

#stv-views .ws-card .ws-count {
  display: flex; flex-flow: row nowrap; align-items: center; gap: 18px;
  margin: 24px 0 22px; padding: 0; background: #fff; border: 0;
}
#stv-views .ws-card .ws-count b {
  flex: none; color: var(--guide-accent);
  font-size: 58px; font-weight: 700; line-height: 1; letter-spacing: -.02em;
}
#stv-views .ws-card.is-mech .ws-count b { color: #ad7d05; }
#stv-views .ws-card .ws-count span {
  flex: 1; min-width: 0; padding: 5px 0 5px 18px; white-space: normal;
  border-inline-start: 1px solid var(--guide-rule); color: var(--guide-ink);
  font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase;
}

#stv-views .ws-card .ws-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; margin: 0; padding: 13px 16px;
  background: var(--guide-slate); color: #fff; border: 0;
  font-size: 13px; font-weight: 700; line-height: 1.45; letter-spacing: 0;
  text-align: start; text-decoration: none;
}
#stv-views .ws-card:hover .ws-cta { text-decoration: none; }
#stv-views .ws-card .ws-cta:hover { background: var(--guide-ink); text-decoration: underline; }

#stv-views .ws-category-group { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--guide-rule); }
#stv-views .ws-category-label {
  margin: 0 0 8px; color: #52616a;
  font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0;
}
#stv-views .ws-card .ws-category-group .ws-cats { margin: 0; padding: 0; border: 0; }
#stv-views .ws-card .ws-cats a {
  padding: 7px 0; min-height: 34px;
  color: var(--guide-ink); font-size: 14px; line-height: 1.5; letter-spacing: 0; text-transform: none;
}
#stv-views .ws-card .ws-cats a::before {
  content: '\2713'; width: auto; height: auto; margin-top: 3px; background: none;
  color: var(--guide-deep); font-size: 14px; font-weight: 700; line-height: 1;
}
#stv-views .ws-card .ws-cats a:hover { color: var(--guide-deep); }
#stv-views .ws-card .ws-cats a:focus-visible { outline: 2px solid var(--guide-deep); outline-offset: 1px; }

/* ---------- documents ---------- */
#stv-views .compact-grid { gap: 32px 26px; }
#stv-views .compact-no { font-size: 17px; }
#stv-views .compact-card { box-shadow: none; }
#stv-views:not([data-view="all"]) .compact-solutions { padding-top: 40px; padding-bottom: 30px; }
/* Mechanical ends its documents here (no Fire Map or Legal below), so the
   section needs more room before the figures strip. */
#stv-views[data-view="mechanical"] #unique-solutions { padding-bottom: 52px; }
#stv-views:not([data-view="all"]) .compact-solutions .compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#stv-views .survival-actions strong { hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; }

/* ---------- tablet ---------- */
@media (max-width: 760px) {
  #stv-views .focus-controls { gap: 12px; }
  #stv-views .focus-control { padding: 13px 14px; }
  #stv-views .focus-control b { font-size: 17px; }

  #stv-views .ws-card { grid-template-columns: minmax(0, 1fr); }
  #stv-views .ws-card .ws-kicker { padding: 15px 20px; font-size: 15px; }
  #stv-views .ws-card .ws-fig { height: 220px; }
  #stv-views .ws-card .ws-fig img { object-position: center 52%; }
  #stv-views .ws-card.is-mech .ws-fig img { object-position: center 53%; }
  #stv-views .ws-card .ws-field { padding: 26px; }

  #stv-views:not([data-view="all"]) a.svwf-card { aspect-ratio: 3 / 4; min-height: 390px; }
  #stv-views:not([data-view="all"]) .compact-solutions .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 520px) {
  #stv-views .focus-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #stv-views .focus-control { padding: 12px 8px; }
  #stv-views .focus-control b { font-size: 14px; }
  #stv-views .focus-heading { letter-spacing: .09em; }

  #stv-views .ws { padding-top: 30px; padding-bottom: 30px; }
  #stv-views .ws-grid.focus-guide { gap: 26px; }
  #stv-views .ws-card .ws-kicker { padding: 13px 16px; font-size: 13px; letter-spacing: .025em; }
  #stv-views .ws-card .ws-fig { height: 194px; }
  #stv-views .ws-card .ws-field { padding: 22px; }
  #stv-views .ws-card .ws-h3 { margin-bottom: 20px; padding: 13px 15px; font-size: 32px; }
  #stv-views .ws-card .ws-lead { font-size: 18px; line-height: 1.4; }
  #stv-views .ws-card .ws-count { gap: 16px; margin: 22px 0; }
  #stv-views .ws-card .ws-count b { font-size: 54px; }
  #stv-views .ws-card .ws-count span { padding-inline-start: 16px; font-size: 11px; letter-spacing: .025em; }
  #stv-views .ws-card .ws-cta { padding: 13px 14px; font-size: 12px; }

  #stv-views:not([data-view="all"]) .svwf-grid { grid-template-columns: 1fr; }
  #stv-views:not([data-view="all"]) a.svwf-card { aspect-ratio: 4 / 5; min-height: 360px; }
  #stv-views:not([data-view="all"]) .compact-solutions .compact-grid { grid-template-columns: 1fr; }

  #stv-views .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  #stv-views .stats .num { font-size: clamp(30px, 9vw, 38px); }
  #stv-views .stats .lab { font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: .03em; text-transform: none; }
}

@media (max-width: 360px) {
  #stv-views .focus-control { padding-left: 5px; padding-right: 5px; }
  #stv-views .focus-control b { font-size: 12px; }
}
