/* SPDX-License-Identifier: AGPL-3.0-or-later | Copyright (c) 2026 Christopher Vivian Duguay (uh-oh! TECHNIQUE) */
/* Unified Swiss Editorial White + Signal Red (#CC1F1F) Theme for atechnique.github.io */

:root {
  --bg: #ffffff !important;
  --background: #ffffff !important;
  --surface: #faf9f7 !important;
  --surface-2: #f3f2ee !important;
  --panel: #faf9f7 !important;
  --panel2: #f3f2ee !important;
  --panel-alt: #f3f2ee !important;
  --card: #faf9f7 !important;
  --border: #e5e7eb !important;
  --border-strong: #d1d5db !important;

  --ink: #111111 !important;
  --ink-soft: #374151 !important;
  --text: #111111 !important;
  --txt: #111111 !important;
  --foreground: #111111 !important;
  --muted: #52525b !important;
  --muted-foreground: #52525b !important;
  --secondary-foreground: #374151 !important;

  /* Signal Red primary accent matching the A — uh-oh! TECHNIQUE mark */
  --red: #cc1f1f !important;
  --red-dark: #a61717 !important;
  --red-tint: #fef2f2 !important;
  --red-border: #fecaca !important;
  --crimson: #cc1f1f !important;
  --gold: #cc1f1f !important;
  --accent: #cc1f1f !important;
  --primary: #cc1f1f !important;
  --primary-foreground: #ffffff !important;

  /* Deep high-contrast secondary semantic accents for white paper */
  --emerald: #047857 !important;
  --green: #047857 !important;
  --good: #047857 !important;
  --ok: #047857 !important;
  --cyan: #1d4ed8 !important;
  --navy: #111111 !important;
  --navy-soft: #374151 !important;
  --rose: #b91c1c !important;
  --bad: #b91c1c !important;
  --danger: #b91c1c !important;
  --warn: #b45309 !important;
  --orange: #c2410c !important;
  --violet: #5b21b6 !important;
  --pink: #be185d !important;
  --pass-bg: #ecfdf5 !important;
  --pass-fg: #065f46 !important;
  --fail-bg: #fef2f2 !important;
  --fail-fg: #991b1b !important;
}

/* GLOBAL SWISS WHITE BASE */
html, body {
  background: #ffffff !important;
  background-image: none !important;
  color: #111111 !important;
  -webkit-font-smoothing: antialiased;
}

/* STICKY GLOBAL uh-oh! TECHNIQUE TOP BAR */
.uhoh-global-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  background: #ffffff !important;
  background-image: none !important;
  border-bottom: 1.5px solid #e5e7eb !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
.uhoh-global-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.uhoh-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none !important;
  color: #111111 !important;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.uhoh-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #cc1f1f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13.5px;
}
.uhoh-tech-word {
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 12.5px;
}
.uhoh-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.uhoh-nav a {
  color: #374151 !important;
  text-decoration: none !important;
}
.uhoh-nav a:hover { color: #cc1f1f !important; }
.uhoh-nav a.uhoh-nav-red { color: #cc1f1f !important; font-weight: 700; }
.uhoh-nav a.uhoh-nav-cta {
  padding: 6px 12px;
  border-radius: 7px;
  background: #111111 !important;
  color: #ffffff !important;
  font-weight: 700;
}
.uhoh-nav a.uhoh-nav-cta:hover { background: #cc1f1f !important; color: #ffffff !important; }

/* PAGE HEADERS, HEROES & SURFACE CONTAINERS */
header:not(.uhoh-global-bar),
.hero,
.banner {
  background: #faf9f7 !important;
  background-image: none !important;
  border: 1px solid #e5e7eb !important;
  border-top: 3px solid #cc1f1f !important;
  color: #111111 !important;
}
header:not(.uhoh-global-bar) {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: 2px solid #111111 !important;
}

.card, .panel, .door, .pillar, .tier, .dl-card, .weapon-card, .contact-box, .box, .section-card, .module, .metric-card, .fighter-box, .quiz-card {
  background: #faf9f7 !important;
  background-image: none !important;
  border-color: #e5e7eb !important;
  color: #111111 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
.card.featured, .tier.featured {
  border-color: #cc1f1f !important;
  background: #ffffff !important;
}

.mini-kpi, .kpi, .ctrl-bar, .ctrl-grid, .form-pane, .item-link, .chip, .pill, .weapon-tag, .jelly-cell, .callout, .blurb-box, .explain, .explain-box, .weapon-proof, .stat-box, .badge-box, .receipt-box {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #d1d5db !important;
  color: #111111 !important;
}
.explain, .explain-box, .weapon-proof {
  border-left: 3.5px solid #047857 !important;
  color: #1f2937 !important;
}
.callout {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #111111 !important;
}
.callout strong { color: #991b1b !important; }
.blurb-box {
  border-left: 4px solid #cc1f1f !important;
  color: #111111 !important;
}

/* TYPOGRAPHY & HEADINGS */
h1, h2, h3, h4, h5, .sec-head h2, .sec-hdr h2 {
  color: #111111 !important;
}
h1 span, .acronym, .eyebrow, .dl-meta {
  color: #cc1f1f !important;
}
p, li, label, dd, dt {
  color: #374151;
}
.lead { color: #374151 !important; }
strong, b { color: #111111; }
a { color: #cc1f1f; }
a:hover { color: #991b1b; }

/* BADGES & PILLS */
.pill, .badge, .badge-live, .tag, .chip {
  color: #374151 !important;
  background: #ffffff !important;
  border-color: #d1d5db !important;
  line-height: 1.45;
  padding: 5px 11px;
}
.chip sub, .chip sup, .pill sub, .pill sup {
  line-height: 0;
  font-size: 72%;
  vertical-align: baseline;
  position: relative;
}
.chip sub, .pill sub { bottom: -0.22em; }
.chip sup, .pill sup { top: -0.35em; }
.chip.warn {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #991b1b !important;
}
.chip.ok {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
}
.badge-live, .pill.gold {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #991b1b !important;
}
.pill.emerald {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
}
.pill.cyan {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1e40af !important;
}
.pill.violet {
  background: #f5f3ff !important;
  border-color: #ddd6fe !important;
  color: #5b21b6 !important;
}

/* BUTTONS — CRISP HIGH-CONTRAST ON WHITE */
.btn, .btn-primary, .btn-gold, .btn-red, .btn-dl, button.primary {
  background: #cc1f1f !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1.5px solid #cc1f1f !important;
}
.btn:hover, .btn-primary:hover, .btn-gold:hover, .btn-red:hover, .btn-dl:hover {
  background: #a61717 !important;
  color: #ffffff !important;
}
.btn.emerald, .btn-emerald {
  background: #047857 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #047857 !important;
}
.btn.emerald:hover, .btn-emerald:hover {
  background: #065f46 !important;
}
.btn.alt, .btn.ghost, .btn-dark, .btn-secondary, .btn-crimson, .btn.violet, .btn-dl.alt, .tab-btn:not(.active) {
  background: #ffffff !important;
  background-image: none !important;
  color: #111111 !important;
  border: 1.5px solid #d1d5db !important;
}
.btn.alt:hover, .btn.ghost:hover, .btn-dark:hover, .btn-secondary:hover, .btn-crimson:hover, .btn-dl.alt:hover {
  border-color: #cc1f1f !important;
  color: #cc1f1f !important;
}
.btn.active-supes, .btn.active-supes:hover, .btn.alt.active-supes, .btn.alt.active-supes:hover {
  background: #cc1f1f !important;
  color: #ffffff !important;
  border: 2px solid #111111 !important;
}
.btn.active-goku, .btn.active-goku:hover, .btn.alt.active-goku, .btn.alt.active-goku:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border: 2px solid #111111 !important;
}
.tab-btn.active {
  background: #cc1f1f !important;
  color: #ffffff !important;
  border-color: #cc1f1f !important;
}
.btn strong, .btn-primary strong, .btn-emerald strong, .btn-gold strong { color: #ffffff !important; }

/* TABLES */
table {
  background: #ffffff !important;
  border-collapse: collapse;
}
th {
  background: #f3f2ee !important;
  color: #111111 !important;
  border-bottom: 2px solid #111111 !important;
}
td {
  color: #1f2937 !important;
  border-bottom: 1px solid #e5e7eb !important;
}
tr:hover td { background: #faf9f7; }

/* CODE, PRE, AND FORM INPUTS */
code {
  background: #f3f2ee !important;
  color: #991b1b !important;
  border: 1px solid #e5e7eb;
}
pre {
  background: #f8fafc !important;
  color: #111111 !important;
  border: 1px solid #d1d5db !important;
}
input[type="text"], input[type="number"], input[type="email"], input[type="search"], select, textarea {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1.5px solid #d1d5db !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #cc1f1f !important;
  outline: none !important;
}
input[type="range"] {
  accent-color: #cc1f1f !important;
}

/* FRAMED DARK INSTRUMENT CANVAS PANELS (Preserves 100% of JS chart drawing legibility!) */
canvas {
  background: #141923 !important;
  border: 1.5px solid #111111 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.08) !important;
}

/* PAPER LETTER PREVIEW ON /delaware-aic/ */
.paper-sheet {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 8px 26px rgba(17, 17, 17, 0.09) !important;
}
.paper-sheet p, .paper-sheet strong { color: #111111 !important; }
.paper-sheet .p-re { color: #991b1b !important; }
.paper-sheet .p-personal {
  background: #faf9f7 !important;
  border-left: 3px solid #cc1f1f !important;
  color: #1f2937 !important;
}

/* SUPERMAN VS GOKU & QUIZ OPTION CARDS */
.prog-wrap {
  background: #e5e7eb !important;
  border: 1px solid #d1d5db !important;
  height: 10px !important;
}
.arena-box {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-left: 4px solid #cc1f1f !important;
  color: #1f2937 !important;
}
.arena-box strong {
  color: #991b1b !important;
}
.opt-btn, .choice, .option-card, .answer-btn, .feat-card {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #d1d5db !important;
}
.opt-btn:hover, .choice:hover, .option-card:hover {
  border-color: #cc1f1f !important;
  background: #fef2f2 !important;
}
.opt-btn.selected, .choice.selected, .option-card.selected {
  border-color: #cc1f1f !important;
  background: #fef2f2 !important;
  color: #991b1b !important;
}

/* FOOTER */
footer {
  border-top: 2px solid #111111 !important;
  color: #52525b !important;
  background: transparent !important;
}
footer a { color: #111111 !important; font-weight: 600; }
footer a:hover { color: #cc1f1f !important; }

/* PRESERVE CLEAN PRINT STYLESHEET (e.g. /delaware-aic/ 1-page printable letter) */
@media print {
  .uhoh-global-bar { display: none !important; }
}
