/* Equipment options explorer: hero index, system tabs, option matrix (column highlight, phone cards), drawings, sources. */

/* ---------- hero ---------- */
.eq-hero .eq-honest { margin-top: 20px; max-width: 54ch; font-size: var(--fs-small); color: var(--on-dark-3); padding-inline-start: 14px; border-inline-start: 2px solid var(--copper-lite); }
.eq-toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--hair-dark); }
.eq-toc a { display: flex; align-items: baseline; gap: 12px; min-height: 48px; padding: 14px 16px 12px 0; color: var(--on-dark-2); font-size: var(--fs-small); font-weight: 500; line-height: 1.4; border-bottom: 1px solid var(--hair-dark); transition: color .15s; }
html[dir="rtl"] .eq-toc a { padding: 14px 0 12px 16px; }
.eq-toc a:not(:nth-child(3n+1)) { padding-inline-start: 16px; border-inline-start: 1px solid var(--hair-dark); }
.eq-toc a:hover { color: #fff; }
.eq-toc b { color: var(--copper-lite); font-weight: 500; font-size: var(--fs-2xs); }
@media (max-width: 760px) {
  .eq-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-toc a:not(:nth-child(3n+1)) { padding-inline-start: 0; border-inline-start: 0; }
  .eq-toc a:nth-child(even) { padding-inline-start: 14px; border-inline-start: 1px solid var(--hair-dark); }
}

/* ---------- explorer ---------- */
.eq-section { scroll-margin-top: var(--header-h); }
.eq-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: clamp(32px, 4vw, 48px); background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: inset 0 1px 2px rgba(17, 21, 28, .08); }
.eq-tabs[hidden] { display: none; }
.eq-tabs button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: var(--r); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; color: var(--ink-2); transition: background .12s, color .12s, transform 80ms linear; }
.eq-tabs button:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.eq-tabs button:active { transform: translateY(1px); }
.eq-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .6); }
.eq-tabs button i { flex: none; width: 9px; height: 9px; background: var(--c, var(--slate)); }
.eq-tabs button[aria-selected="true"] i { box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
@media (max-width: 640px) {
  .eq-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-tabs button { padding: 0 12px; }
}

/* panels: stacked and all visible without JS; one at a time with JS */
.eq-panel { scroll-margin-top: calc(var(--header-h) + 16px); }
.eq-panel[hidden] { display: none; }
/* first paint skips layout of everything below the hero: six full matrices are ~2,000 nodes */
.eq-panel, #survey, #sources { content-visibility: auto; contain-intrinsic-size: auto 1600px; }
#survey, #sources { contain-intrinsic-size: auto 900px; }
.eq-panel + .eq-panel { margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.eq-ready .eq-panel + .eq-panel { margin-top: 0; padding-top: 0; border-top: 0; }
.eq-dwg .title-block > span { white-space: normal; }
/* the closing call to action: the shared ghost button doesn't wrap, which overflows a 360px phone */
@media (max-width: 480px) {
  .page-equipment .cta-band .btn { white-space: normal; text-align: center; width: 100%; padding-block: 10px; }
}

.eq-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; margin-bottom: clamp(32px, 4vw, 48px); }
.eq-intro-text { display: grid; gap: 16px; align-content: start; }
.eq-intro-text h3 { font-size: var(--fs-h3); }
.eq-intro-text > p:not([class]) { color: var(--ink-2); }
.eq-sys { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 600 var(--fs-cap)/1.4 var(--f-body); color: var(--slate); }
.eq-sys .mono { color: var(--copper-ink); font-weight: 500; }
.eq-hosp { padding: 14px 18px; background: var(--paper-hi); border: 1px solid var(--hair); border-inline-start: 3px solid var(--copper); font-size: var(--fs-small); color: var(--ink-2); max-width: none; }
.eq-hosp b { color: var(--ink); }
.eq-links { display: flex; flex-wrap: wrap; gap: 12px 28px; max-width: none; }
.eq-links .arrow-link { max-width: 100%; min-height: 44px; padding-top: 10px; box-sizing: border-box; border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 960px) { .eq-intro { grid-template-columns: minmax(0, 1fr); } }

/* ---------- drawing ---------- */
.eq-dwg { margin: 0; background: var(--white); }
.eq-dwg svg { direction: ltr; width: 100%; height: auto; padding: clamp(10px, 2vw, 20px) clamp(8px, 2vw, 20px) 4px; fill: none; stroke-linecap: butt; stroke-linejoin: miter; }
.eq-dwg svg .dash { stroke-dasharray: 3 3; }
.eq-dwg svg .f-white { fill: var(--white); }
.eq-dwg .bl path { stroke: var(--hair-strong); stroke-width: .75px; }
.eq-dwg .bl circle { fill: var(--white); stroke: var(--ink); stroke-width: 1px; }
.eq-dwg .bl text { stroke: none; fill: var(--ink); font: 600 13px/1 var(--f-mono); text-anchor: middle; }
.eq-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 8px clamp(14px, 2vw, 22px) 14px; counter-reset: k; border-top: 1px solid var(--hair); }
.eq-key li { counter-increment: k; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--hair-soft); font-size: var(--fs-cap); line-height: 1.45; color: var(--ink-2); }
.eq-key li::before { content: counter(k); display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%; font: 600 11px/1 var(--f-mono); color: var(--ink); }
html[lang="ar"] .eq-key li { font-size: var(--fs-sm); }
@media (max-width: 560px) { .eq-key { grid-template-columns: minmax(0, 1fr); } }

/* ---------- option matrix ---------- */
.eq-hint { margin-bottom: 14px; font-size: var(--fs-cap); color: var(--slate); }
html:not(.js) .eq-hint { display: none; }
.eq-matrix { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: var(--fs-small); }
.eq-matrix thead th { vertical-align: bottom; text-align: start; padding: 0; border-bottom: 1px solid var(--ink); font-weight: 400; }
.eq-matrix .eq-corner { width: 13rem; }
.eq-matrix thead th[data-o] { padding: 14px 16px 16px; border-top: 3px solid transparent; }
.eq-matrix.is-live thead th[data-o] { padding: 0; }
.eq-matrix thead th[data-o] > button { display: grid; gap: 4px; align-content: end; width: 100%; min-height: 44px; padding: 14px 16px 16px; text-align: start; border-radius: 0; transition: background .12s; }
.eq-matrix thead th[data-o] > button:hover { background: var(--paper-2); }
.eq-matrix thead th.is-sel > button:hover { background: var(--white); }
.eq-matrix:not(.is-live) thead th[data-o] > * { margin-bottom: 4px; }
.eq-ol { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; font: 600 var(--fs-2xs)/1 var(--f-body); color: var(--ink); }
html[lang="ar"] .eq-ol { font-size: var(--fs-sm); font-family: var(--f-ar); }
.eq-on { display: block; font: 600 var(--fs-base)/1.3 var(--f-display); color: var(--ink); letter-spacing: -0.005em; text-wrap: balance; }
.eq-matrix thead small { display: block; font-size: var(--fs-cap); line-height: 1.4; color: var(--slate); }
.eq-matrix tbody th { text-align: start; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--hair); font: 600 var(--fs-cap)/1.45 var(--f-body); color: var(--slate); }
html[dir="rtl"] .eq-matrix tbody th { padding: 18px 0 18px 20px; }
.eq-matrix td { vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--hair); color: var(--ink-2); line-height: 1.55; }
html[lang="ar"] .eq-matrix td { line-height: 1.8; }
.eq-matrix tbody tr:last-child > * { border-bottom-color: var(--ink); }

/* the selected option: a white column with a bronze cap (bronze marks the active state) */
.eq-matrix th.is-sel { background: var(--white); border-top-color: var(--copper); }
.eq-matrix th.is-sel .eq-ol { background: var(--ink); color: #fff; }
.eq-matrix td.is-sel { background: var(--white); color: var(--ink); box-shadow: inset 1px 0 0 var(--hair), inset -1px 0 0 var(--hair); }
.eq-matrix.is-live tbody td { cursor: pointer; }
.eq-matrix.is-live tbody td.is-sel { cursor: auto; }

/* relative scale: three steps, always with a word beside it */
.eq-lv { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 6px; font-size: var(--fs-cap); color: var(--ink); }
.eq-lv b { font-weight: 600; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 16px; height: 8px; border: 1px solid var(--ink-2); border-radius: 1px; }
.pips[data-v="1"] i:nth-child(1), .pips[data-v="2"] i:nth-child(-n+2), .pips[data-v="3"] i { background: var(--ink-2); }

/* references */
.eq-stds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.eq-stds a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; border: 1px solid var(--hair-strong); border-radius: var(--r-xs); background: var(--paper-hi); font-size: var(--fs-2xs); font-weight: 500; line-height: 1.3; color: var(--copper-ink); transition: border-color .12s; }
.eq-stds a:hover { border-color: var(--copper-ink); }
html[lang="ar"] .eq-stds a { font-size: var(--fs-xs); }
@media (pointer: coarse) { .eq-stds a { min-height: 44px; padding: 0 12px; } }

/* ---------- phones: one option at a time ---------- */
@media (max-width: 760px) {
  .eq-matrix, .eq-matrix caption, .eq-matrix thead, .eq-matrix tbody, .eq-matrix tr, .eq-matrix th, .eq-matrix td { display: block; width: auto; }
  .eq-matrix thead { display: none; }
  .eq-matrix tbody tr { padding: 4px 0 8px; border-bottom: 1px solid var(--hair-strong); }
  .eq-matrix tbody tr:last-child { border-bottom-color: var(--ink); }
  .eq-matrix tbody th, html[dir="rtl"] .eq-matrix tbody th { padding: 14px 0 4px; border: 0; color: var(--ink); font-size: var(--fs-sm); }
  .eq-matrix td { padding: 8px 0; border: 0; }
  .eq-matrix td + td { border-top: 1px dashed var(--hair); }
  .eq-matrix td::before { content: attr(data-o); display: block; margin-bottom: 4px; font: 600 var(--fs-2xs)/1.4 var(--f-body); color: var(--copper-ink); }
  html[lang="ar"] .eq-matrix td::before { font-size: var(--fs-xs); }
  .eq-matrix td.is-sel { box-shadow: none; }

  /* with JS: the option headers become the switcher, the rows show the chosen option only */
  .eq-matrix.is-live thead { display: block; margin-bottom: 14px; }
  .eq-matrix.is-live thead tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .eq-matrix.is-live thead .eq-corner { display: none; }
  .eq-matrix.is-live thead th[data-o] { padding: 0; border: 0; background: none; }
  .eq-matrix.is-live thead th[data-o] > button { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 12px; align-items: center; width: 100%; min-height: 56px; margin: 0; padding: 10px 14px; border: 1px solid var(--hair-strong); border-radius: var(--r); background: var(--white); }
  .eq-matrix.is-live thead th[data-o] > button .eq-ol { grid-row: span 2; }
  .eq-matrix.is-live thead th[data-o] > button:active { transform: translateY(1px); }
  .eq-matrix.is-live thead th[data-o] > button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
  .eq-matrix.is-live thead th[data-o] > button[aria-pressed="true"] :is(.eq-on, small) { color: #fff; }
  .eq-matrix.is-live thead th[data-o] > button[aria-pressed="true"] small { color: var(--on-dark-2); }
  .eq-matrix.is-live thead th[data-o] > button[aria-pressed="true"] .eq-ol { background: #fff; color: var(--ink); border-color: #fff; }
  .eq-matrix.is-live tbody { padding: 4px 16px 8px; background: var(--white); border: 1px solid var(--hair); border-top: 3px solid var(--copper); }
  .eq-matrix.is-live tbody tr:last-child { border-bottom: 0; }
  .eq-matrix.is-live td:not(.is-sel) { display: none; }
  .eq-matrix.is-live td + td { border-top: 0; }
  .eq-matrix.is-live tbody td { cursor: auto; }
  .eq-matrix.is-live tbody td::before { display: none; }
  /* card heading: the chosen option's name (equipment.js copies it to tbody[data-o]) */
  .eq-matrix.is-live tbody[data-o]::before { content: attr(data-o); display: block; padding: 14px 0 12px; border-bottom: 1px solid var(--hair); font: 600 var(--fs-base)/1.35 var(--f-display); color: var(--ink); }
}
@media (min-width: 480px) and (max-width: 760px) { .eq-matrix.is-live thead tr { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- sources ---------- */
.eq-src { display: grid; gap: 20px; }
.eq-src-h { font-size: var(--fs-lg); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.eq-src ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.eq-src li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.eq-src li b { font: 600 var(--fs-base)/1.4 var(--f-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.eq-src li > span { font-size: var(--fs-small); color: var(--ink-2); }
@media (max-width: 760px) { .eq-src ul { grid-template-columns: minmax(0, 1fr); } }
