/* Site-wide Novice / Developer reading mode.
   Include this stylesheet on every article. Future articles: mark
   blocks with .mode-novice or .mode-dev. Unmarked content stays visible
   in both modes. Default is Novice. Tokens only. */

html[data-read-mode="novice"] .mode-dev { display: none !important; }
html[data-read-mode="dev"] .mode-novice { display: none !important; }
html:not([data-read-mode]) .mode-dev { display: none !important; }

.read-mode-bar {
  position: sticky;
  top: 56px;
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 40px;
  /* Tint over an opaque base so article text never shows through while sticky. */
  background: linear-gradient(90deg, rgba(255, 0, 110, 0.14), rgba(0, 217, 255, 0.10), rgba(143, 90, 247, 0.12)), #0a0e27;
  border-top: 2px solid #ff006e;
  border-bottom: 2px solid #00d9ff;
  box-shadow: 0 8px 28px rgba(5, 7, 15, 0.55), 0 0 24px rgba(0, 217, 255, 0.12);
  font-family: 'Courier New', 'IBM Plex Mono', monospace;
  animation: read-mode-bar-pulse 3.2s ease-in-out infinite;
}

@keyframes read-mode-bar-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(5, 7, 15, 0.55), 0 0 16px rgba(0, 217, 255, 0.10); }
  50% { box-shadow: 0 8px 28px rgba(5, 7, 15, 0.55), 0 0 28px rgba(255, 0, 110, 0.22); }
}

.read-mode-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff006e;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: bold;
}

.read-mode-kicker::before {
  content: '▸';
  color: #00d9ff;
}

.read-mode-copy {
  color: #e0e0ff;
  font-size: 13px;
  line-height: 1.45;
  max-width: 42rem;
  margin: 0;
}

.read-mode-copy strong { color: #00d9ff; }

.read-mode-now {
  margin-left: auto;
  color: #00ff88;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.read-mode-btn {
  border: 1px solid #2d3856;
  background: #1a1f3a;
  color: #a0a0c0;
  border-radius: 999px;
  padding: 8px 18px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.28s ease, color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.read-mode-btn:hover {
  transform: translateY(-1px);
  border-color: #00d9ff;
  color: #e0e0ff;
}

.read-mode-btn.active {
  border-color: #00d9ff;
  color: #05070f;
  background: #00d9ff;
  box-shadow: 0 0 22px rgba(0, 217, 255, 0.35);
}

.read-mode-btn[data-mode="novice"].active {
  border-color: #00ff88;
  background: #00ff88;
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.28);
}

.mode-callout {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px dashed #00d9ff;
  border-radius: 8px;
  background: rgba(0, 217, 255, 0.06);
  color: #e0e0ff;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  max-width: 720px;
  font-family: 'Courier New', 'IBM Plex Mono', monospace;
}

.mode-callout strong { color: #00d9ff; }
.mode-callout em { color: #ff006e; font-style: normal; }

@media (max-width: 720px) {
  .read-mode-bar { padding-left: 16px; padding-right: 16px; }
  .read-mode-now { margin-left: 0; width: 100%; }
}
