/* ==========================================================================
   Wavewell v4 Detail Pages - Leica/WHOI Restraint + B2 Chamfered Instrument
   Extends assets/css/wavewell-v4.css (which stays untouched & locked)
   Zero neon mint boxes | Zero pastel pills | Zero loud orange fill CTAs
   ========================================================================== */

:root {
  --kelp-deep: #0a5c52;
  --studio: #eef2f5;
  --slate-meta: #526a7c;
}

.detail-hero {
  position: relative;
  background:
    linear-gradient(98deg, rgba(4, 19, 37, 0.94) 0%, rgba(10, 45, 84, 0.80) 54%, rgba(6, 43, 46, 0.80) 100%),
    url('../img/sf-bay-banner-cool.jpg') center/cover no-repeat;
  background-color: var(--abyss);
  color: #ffffff;
  padding: 68px 0 84px;
  overflow: hidden;
}

.detail-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.crumb a:hover { color: #ffffff; }

/* Plain unboxed silver monospace status metadata on dark hero */
.hero-meta-plain {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Plain unboxed slate monospace status metadata on light canvas */
.status-plain {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate-meta);
  margin-bottom: 6px;
}

.detail-hero h1 {
  font-family: var(--f-disp);
  font-optical-sizing: auto;
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 700;
  letter-spacing: -0.036em;
  line-height: 1.04;
  color: #ffffff;
  margin-bottom: 14px;
  max-width: 860px;
}

.detail-hero-sub {
  font-size: 16.5px;
  color: #c2d6e4;
  max-width: 680px;
  line-height: 1.54;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

/* --- Main Studio Stage + Instrument Readout --- */
.detail-band {
  padding: 64px 0 76px;
}

.detail-band--white {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.detail-band--abyss {
  position: relative;
  background: var(--abyss);
  color: #ffffff;
  padding: 76px 0 84px;
}

.plate-stage {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 980px) {
  .plate-stage { grid-template-columns: 1fr; gap: 28px; }
}

.plate-frame {
  background: var(--studio);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.plate-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.plate-caption {
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.sub-plates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 680px) {
  .sub-plates { grid-template-columns: 1fr; }
}

.sub-plates .plate-frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Right-Column Instrument Readout Panel */
.readout-panel {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 26px 26px 28px;
}

.readout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-bottom: 22px;
}

.readout-cell {
  padding: 14px 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--salt);
}

.readout-k {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.readout-v {
  font-family: var(--f-mono);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.note-ledger {
  background: var(--salt);
  border-left: 2.5px solid var(--ink);
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.54;
  margin-bottom: 16px;
}

.note-ledger--subtle {
  border-left-color: var(--slate-meta);
}

.note-ledger strong {
  color: var(--ink);
  font-weight: 600;
}

/* Interactive B2 Chamfered Transducer Switch */
.xdcr-switch {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  margin-bottom: 20px;
}

.x-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.x-btn {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid rgba(7, 25, 40, 0.24);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.x-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.x-btn.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.x-copy {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Section Heading (Zero Eyebrow: Deep Kelp Numeral + Title) */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.sec-title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.sec-num {
  font-family: var(--f-disp);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--kelp-deep);
}

.detail-band--abyss .sec-num {
  color: rgba(255, 255, 255, 0.56);
}

.sec-h2 {
  font-family: var(--f-disp);
  font-optical-sizing: auto;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}

.detail-band--abyss .sec-h2 {
  color: #ffffff;
}

.sec-lead {
  max-width: 480px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.54;
}

.detail-band--abyss .sec-lead {
  color: #a7c2d6;
}

/* Hairline Specification Ledgers */
.ledger-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

@media (max-width: 900px) {
  .ledger-cols { grid-template-columns: 1fr; gap: 28px; }
}

.ledger-block h3 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 4px;
}

.spec-tbl {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.spec-tbl td {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.8px;
  vertical-align: top;
  line-height: 1.48;
}

.spec-tbl td:first-child {
  width: 175px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-right: 16px;
  padding-top: 12px;
}

.spec-tbl td:last-child {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 600px) {
  .spec-tbl td:first-child { width: 125px; }
}

/* Full-width Matrix Table */
.matrix-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1.5px solid var(--ink);
}

.matrix-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.8px;
  font-variant-numeric: tabular-nums;
}

.matrix-tbl th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--mineral);
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
}

.matrix-tbl td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  vertical-align: top;
  background: var(--white);
}

.matrix-tbl td:first-child {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: 220px;
}

/* Transducers Side-by-Side Comparison */
.xdcr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 920px) {
  .xdcr-grid { grid-template-columns: 1fr; }
}

.xdcr-col {
  background: var(--white);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

.xdcr-col-media {
  position: relative;
  background: var(--studio);
  border-bottom: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.xdcr-col-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xdcr-col-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.xdcr-col-body h3 {
  font-family: var(--f-disp);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 4px 0 8px;
}

.xdcr-col-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.54;
}

.diagram-shell {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #030f1e;
  padding: 28px;
  overflow-x: auto;
}

.cta-strip {
  background: var(--mineral);
  border-top: 1px solid var(--rule);
  padding: 58px 0;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-row h2 {
  font-family: var(--f-disp);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
}

.cta-row p {
  font-size: 14.8px;
  color: var(--ink-soft);
  max-width: 580px;
}
