/* nes20-extension.css: styles for R-Z5.2.X-NES20-HEADER-2026-05-16.
 *
 * Adds NES 2.0 toggle-bar + warn-banner styles for the hex viewer
 * embedded in courses/spk-101/week-2-rom-bytes.md. Scoped under
 * .va-cog-hex-* tokens so it composes cleanly with the Z5.2 portal.css
 * surface without touching that file (per acceptance criterion 8 of
 * the R-Z5.2.X brief).
 *
 * Per Jon's standing directive (highest quality), the toggle buttons:
 *   - reuse the same amber-on-dark palette as the bookmark-bar buttons
 *   - meet the 44x44 tap-target floor (primary nav affordance) per
 *     WCAG 2.5.5; mobile-friendly out of the box
 *   - carry a clear active state so students see which ROM is loaded
 *   - degrade to a stacked layout on narrow viewports
 */

.va-cog-hex-rom-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0.4rem 0;
  padding: 0.7rem 0.85rem;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 6px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.92rem;
}

.va-cog-hex-rom-toggle-label {
  color: var(--fg-muted, #94a3b8);
  margin-right: 0.4rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.va-cog-hex-rom-toggle-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--fg, #e2e8f0);
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 4px;
  padding: 0.55rem 0.85rem;
  min-width: 44px;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  flex: 0 0 auto;
}

.va-cog-hex-rom-toggle-btn:hover {
  background: rgba(251, 191, 36, 0.18);
}

.va-cog-hex-rom-toggle-btn:focus {
  outline: 2px solid var(--gold, #fbbf24);
  outline-offset: 2px;
}

.va-cog-hex-rom-toggle-btn-active {
  background: rgba(251, 191, 36, 0.32);
  border-color: var(--gold, #fbbf24);
  color: #fff;
  font-weight: 600;
}

/* NES 2.0 detected-banner. Distinct from the Z5.2 default warn styling
 * so students see "this ROM is the NES 2.0 demo" at a glance.
 */
.va-cog-hex-warn-nes20 {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: var(--fg, #e2e8f0);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  margin: 0.6rem 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .va-cog-hex-rom-toggle {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }
  .va-cog-hex-rom-toggle-label {
    margin-right: 0;
  }
  .va-cog-hex-rom-toggle-btn {
    width: 100%;
  }
}
