/* =====================================================
   CIRCUIT COPILOT — Shared Stylesheet
   v0.1.0
   ===================================================== */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --border: #2a2a2a;
  --border-bright: #3a3a3a;
  --text: #f0f0f0;
  --text-dim: #b8b8b8;     /* was #888 — bumped for contrast (4.5+ WCAG AA) */
  --text-faint: #8a8a8a;   /* was #555 — bumped for readable secondary text */
  --accent: #00ff88;
  --accent-dim: #00ff8830;
  --accent-glow: #00ff8815;
  --warn: #ffb800;
  --danger: #ff4d4d;
}

/* Better placeholder visibility */
input::placeholder { color: var(--text-faint); opacity: 1; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 0%, var(--accent-glow), transparent 40%),
    radial-gradient(circle at 80% 100%, var(--accent-glow), transparent 40%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ===== MARQUEE TICKER ===== */
.ticker {
  background: var(--accent);
  color: var(--bg);
  overflow: hidden;
  position: relative;
  z-index: 200;
  border-bottom: 1px solid var(--bg);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
  padding: 9px 0;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ticker-item {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-item.brand { font-weight: 700; letter-spacing: 0.25em; }

.ticker-sep {
  width: 6px; height: 6px;
  background: var(--bg);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.ticker-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.ticker-status-dot {
  width: 6px; height: 6px;
  background: var(--bg);
  border-radius: 50%;
  animation: ticker-pulse 1.5s ease-in-out infinite;
}

@keyframes ticker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker:hover .ticker-track { animation-play-state: paused; }

/* ===== NAV ===== */
nav {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  backdrop-filter: blur(10px);
  background: rgba(10,10,10,0.85);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.logo-mark::after {
  content: '';
  position: absolute;
  width: 14px; height: 1px;
  background: var(--accent);
  right: -14px;
}

.logo-text { font-size: 15px; }
.logo-text span { color: var(--text-dim); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  border: 1px solid var(--border-bright);
  padding: 8px 16px;
  color: var(--text) !important;
  background: var(--bg-elevated);
  transition: all 0.2s;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* ===== HERO ===== */
.hero {
  padding: 96px 0 80px;
  position: relative;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-meta-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  max-width: 900px;
}

.hero-title em { font-style: italic; font-weight: 400; color: var(--accent); }

.hero-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.btn-primary:hover {
  background: #00ffaa;
  box-shadow: 0 0 24px var(--accent-dim);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}

.btn-secondary:hover { border-color: var(--text-dim); }

.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.hero-schematic {
  position: absolute;
  top: 50%;
  right: -80px;
  width: 420px;
  height: 420px;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
  position: relative;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 720px;
}

.section-title em { font-style: italic; color: var(--accent); }

.section-intro {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ===== CALCULATOR CARD ===== */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  padding: 32px;
  position: relative;
  margin-bottom: 24px;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
}

.calc-tag {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.calc-tag.green { color: var(--accent); border-color: var(--accent); }
.calc-tag.warn { color: var(--warn); border-color: var(--warn); }

.calc-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.calc-desc {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.6;
}

.calc-live {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 24px;
}

.calc-formula {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--text-dim);
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border-bright);
  margin-bottom: 24px;
}

.calc-formula .var { color: var(--accent); font-weight: 500; }

.calc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.calc-inputs.two-col { grid-template-columns: 1fr 1fr; }
.calc-inputs.three-col { grid-template-columns: 1fr 1fr 1fr; }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.input-label .unit { color: var(--accent); }

.input-field {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  width: 100%;
  transition: border 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.input-field.result {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.input-field.result-warn {
  background: rgba(255, 184, 0, 0.08);
  border-color: var(--warn);
  color: var(--warn);
  font-weight: 600;
}

.select-field {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
}

.calc-output {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px dashed var(--border-bright);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 12px;
}

.output-label { text-transform: uppercase; }

.save-btn {
  color: var(--text-dim);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.save-btn:hover { color: var(--accent); }

.tab-row {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-bright);
}

.tab {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab:hover { color: var(--text); }

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===== CALCULATOR TILE GRID ===== */
.calc-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.calc-mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.calc-mini::after {
  content: '→';
  position: absolute;
  bottom: 16px;
  right: 20px;
  color: var(--text-faint);
  font-size: 18px;
  transition: all 0.2s;
}

.calc-mini:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.calc-mini:hover::after {
  color: var(--accent);
  transform: translateX(4px);
}

.calc-mini-number {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.calc-mini-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.calc-mini-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===== GLOSSARY ===== */
.glossary-section {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.glossary-feature {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  padding: 56px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.glossary-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}

.gloss-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gloss-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
}

.gloss-tag.primary { border-color: var(--accent); color: var(--accent); }

.gloss-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.gloss-title em { font-style: italic; color: var(--accent); }

.gloss-tldr {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 680px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.gloss-body {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 14.5px;
  max-width: 680px;
}

.gloss-body p { margin-bottom: 16px; }
.gloss-body h3 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  margin: 32px 0 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.gloss-body strong { color: var(--text); font-weight: 500; }
.gloss-body code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  color: var(--accent);
  font-size: 13px;
}
.gloss-body ul, .gloss-body ol {
  margin: 16px 0 16px 24px;
}
.gloss-body li { margin-bottom: 8px; }

.gloss-callout {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--accent-glow);
  border-left: 2px solid var(--accent);
  max-width: 680px;
}

.gloss-callout-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gloss-callout-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
}

.gloss-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.gloss-item {
  background: var(--bg-card);
  padding: 24px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.gloss-item:hover { background: var(--bg-elevated); }

.gloss-item-num {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.gloss-item-title {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.gloss-item-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===== LEAD CAPTURE ===== */
.leadcap {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  padding: 56px;
  margin-top: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.leadcap::before, .leadcap::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.leadcap::before { top: -100px; left: -100px; }
.leadcap::after { bottom: -100px; right: -100px; }

.leadcap-content { position: relative; z-index: 1; }

.leadcap-label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.leadcap-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.leadcap-title em { font-style: italic; color: var(--accent); }

.leadcap-sub {
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.leadcap-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.leadcap-form input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 13px;
}

.leadcap-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.leadcap-success {
  color: var(--accent);
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .credit {
  color: var(--text-dim);
}

.footer-bottom .credit a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-faint);
}

.footer-bottom .credit a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===== PAGE HEADER (sub-pages) ===== */
.page-header {
  padding: 64px 0 48px;
}

.page-eyebrow {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.page-title em { font-style: italic; color: var(--accent); }

.page-subtitle {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 600px;
  line-height: 1.7;
}

/* ===== RESISTOR VISUAL ===== */
.resistor-display {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 40px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.resistor-body {
  width: 320px;
  height: 80px;
  background: #d4b886;
  border-radius: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow:
    inset 0 -6px 20px rgba(0,0,0,0.2),
    inset 0 4px 10px rgba(255,255,255,0.15);
}

.resistor-leg {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, #888, #ccc, #888);
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
}
.resistor-leg.left { left: -60px; }
.resistor-leg.right { right: -60px; }

.band {
  width: 14px;
  height: 80px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.resistor-readout {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-bright);
}

.readout-value {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.readout-detail {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

.band-selectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.band-select-label {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}

/* ===== SVG SCHEMATIC CONTAINER ===== */
.divider-schematic {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.divider-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  padding: 40px 0 80px;
}

.about-content h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--text);
  margin: 48px 0 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.about-content p {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 15px;
  max-width: 680px;
}

.about-content strong { color: var(--text); }

/* ===== RESPONSIVE ===== */

/* Mobile menu using native <details>/<summary> — minimal, no JS needed */
.mobile-menu { display: none; }

@media (max-width: 880px) {
  .calc-mini-grid, .gloss-list, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  /* Hide desktop nav, show mobile menu */
  nav .nav-links { display: none !important; }
  nav .mobile-menu { display: block !important; }

  /* Logo stays compact */
  .logo-text { font-size: 13px; white-space: nowrap; }
  .logo-mark::after { display: none; }

  /* Hamburger button (the <summary>) */
  .mobile-menu summary {
    list-style: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-bright);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
    position: relative;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::marker { display: none; }
  .mobile-menu summary:hover { border-color: var(--accent); }

  /* Three lines that form the hamburger icon */
  .mobile-menu summary::before {
    content: '';
    width: 18px;
    height: 1.5px;
    background: var(--text);
    box-shadow: 0 -5px 0 var(--text), 0 5px 0 var(--text);
    transition: all 0.2s;
  }
  .mobile-menu[open] summary::before {
    background: var(--accent);
    box-shadow: 0 -5px 0 var(--accent), 0 5px 0 var(--accent);
  }

  /* Drawer panel */
  .mobile-menu-panel {
    position: fixed;
    top: 100px; /* below ticker + nav */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 99;
  }

  .mobile-menu-panel a {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu-panel a:hover,
  .mobile-menu-panel a.active { color: var(--accent); }

  .mobile-menu-panel a::after {
    content: '→';
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-size: 18px;
    color: var(--text-faint);
  }

  .mobile-menu-panel a:hover::after,
  .mobile-menu-panel a.active::after { color: var(--accent); }

  .mobile-menu-status {
    margin-top: auto;
    padding-top: 32px;
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .mobile-menu-status .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    margin-right: 8px;
    vertical-align: middle;
  }

  /* Stack & tighten other things on small screens */
  .calc-mini-grid, .gloss-list, .footer-grid {
    grid-template-columns: 1fr;
  }
  .calc-inputs.two-col, .calc-inputs.three-col { grid-template-columns: 1fr 1fr; }
  .band-selectors { grid-template-columns: 1fr 1fr; }
  .glossary-feature, .leadcap { padding: 32px 24px; }
  .resistor-body { width: 240px; }
  .hero-schematic { display: none; }
  .container, .container-narrow { padding: 0 20px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
