/* Guitar Pedals — page-specific styles (base theme comes from style.css) */

/* ── Board revisions: Rev A vs Rev B side by side ───────────── */
.boards-section { border-top: 1px solid var(--border-phosphor); }

.boards-intro {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 760px;
  margin: -1.2rem 0 2rem;
}

.board-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}
.board-legend span::before {
  content: '';
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  margin-right: 0.45rem;
  vertical-align: -0.05rem;
}
.board-legend .lg-top::before    { background: #e0a43a; }
.board-legend .lg-bottom::before { background: #1f6e8c; }
.board-legend .lg-silk::before   { background: #e8efe9; }

.rev-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.2rem;
  align-items: center;
  max-width: 880px;
}

.board-figure {
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-phosphor);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color var(--transition);
}
.board-figure:hover { border-color: var(--border-phosphor-strong); }
.board-figure img {
  display: block;
  width: 100%;
  height: auto;
  padding: 1rem 1rem 0.4rem;
}
.board-figure figcaption {
  padding: 0.8rem 1.1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-body);
  border-top: 1px solid var(--border-phosphor);
}
.board-figure .rev-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-phosphor);
  margin-bottom: 0.3rem;
}

.rev-arrow {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent-phosphor);
  text-shadow: 0 0 10px var(--accent-phosphor-glow);
}

/* Drippstortion prototype: wide figure with text alongside */
.proto-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}
.proto-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}
.proto-text p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

/* ── Enclosure: drill template + artwork sheet ──────────────── */
.enclosure-section { border-top: 1px solid var(--border-phosphor); }

.enclosure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.enclosure-panel {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-phosphor);
  border-radius: var(--radius);
  overflow: hidden;
}
.enclosure-panel .panel-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.enclosure-panel figcaption {
  padding: 0.8rem 1.1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-body);
  border-top: 1px solid var(--border-phosphor);
}
.enclosure-panel .rev-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-phosphor);
  margin-bottom: 0.3rem;
}

.drill-svg { width: 100%; max-width: 360px; height: auto; display: block; }
.dt-case  { fill: rgba(5, 8, 7, 0.6); stroke: var(--border-phosphor-strong); stroke-width: 0.5; }
.dt-hole  { fill: var(--bg-deep); stroke: var(--accent-phosphor); stroke-width: 0.45; }
.dt-cross { stroke: rgba(74, 222, 128, 0.45); stroke-width: 0.25; }
.dt-band  { fill: rgba(251, 191, 36, 0.12); stroke: rgba(251, 191, 36, 0.75); stroke-width: 0.35; }
.dt-limit { stroke: rgba(251, 191, 36, 0.55); stroke-width: 0.3; stroke-dasharray: 1.2 1; }
.dt-dim   { stroke: rgba(251, 191, 36, 0.8); stroke-width: 0.3; fill: none; }
.dt-dim-grey { stroke: var(--text-dim); stroke-width: 0.3; fill: none; }
.dt-label { font-family: var(--font-mono); font-size: 3.1px; fill: var(--text-body); }
.dt-label--strong { fill: var(--text-primary); font-weight: 600; }
.dt-label--amber  { fill: #fbbf24; }
.dt-label--dim    { fill: var(--text-dim); }

/* Black-on-white laser art, inverted to read on the dark theme */
.art-sheet {
  width: 100%;
  max-width: 330px;
  height: auto;
  display: block;
  filter: invert(0.9);
  border-radius: 4px;
  cursor: zoom-in;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .proto-row { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 700px) {
  .rev-compare { grid-template-columns: 1fr; }
  .rev-arrow { justify-self: center; transform: rotate(90deg); }
  .enclosure-grid { grid-template-columns: 1fr; }
}
