/* overview-codex.css — Übersichts-Tab im Akh-Daemon-Stil (BB.10.42.1, 2026-05-14)
 *
 * v2: Alle "frontend-design-skill"-Patterns entfernt:
 *   - römische Ziffern Ⅰ Ⅱ Ⅲ raus
 *   - Fraunces-Serifen-Section-Header raus (war zu "Editorial-Skill")
 *   - Letter-Spacing-Uppercase-Eyebrows raus
 *   - Italic-Marginalia mit Stern + slight-rotation raus
 *   - Gradient-Line hinter Margin-Eyebrows raus
 *   - Akhilius-Sparkle-Ornament vor Hero-Eyebrow raus
 *
 * Stattdessen: Akh-Daemon-Voice in lowercase Mono mit `~` / `//` / `>` Prefixen.
 * Wirkt wie ein Terminal-Status, nicht wie ein SaaS-Dashboard.
 */

/* ═══════════════════════════════════════════════════════════════
   HERO-OVERRIDES — Eyebrow + Marginalia komplett neu
   ═══════════════════════════════════════════════════════════════ */
#tab-overview .editorial-hero {
  padding: 2.8rem 0 2.4rem;
  margin-bottom: 1.8rem;
  position: relative;
  isolation: isolate;
}

/* Eyebrow: weg vom Sparkle-Ornament + Letter-Spacing-Uppercase */
#tab-overview .editorial-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-dim);
  margin-bottom: 1rem;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
#tab-overview .editorial-hero-eyebrow::before,
#tab-overview .editorial-hero-eyebrow::after { display: none !important; content: none !important; }
#tab-overview .editorial-hero-eyebrow .ov-hero-prefix {
  color: var(--accent);
  font-weight: 500;
}
#tab-overview .editorial-hero-eyebrow .ov-sep {
  color: var(--ink-dimmer);
  opacity: 0.6;
}

/* Hero-Title bleibt Fraunces — das ist Akhs Name, das ist heilig */
#tab-overview .editorial-hero-title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Hero-Meta: Akh-Voice statt SaaS-Labels */
#tab-overview .editorial-hero-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}
#tab-overview .editorial-hero-meta strong {
  color: var(--ink);
  font-weight: 500;
}

/* Marginalia: kein Sternchen, kein rotation, kein border-right.
   Stattdessen: technischer Code-Kommentar-Stil. */
#tab-overview .editorial-hero-marginalia {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--ink-dim);
  transform: none;
  border-right: none;
  padding: 0;
  text-align: right;
  letter-spacing: 0.01em;
  max-width: 240px;
  top: 3.2rem;
  right: 0;
}
#tab-overview .editorial-hero-marginalia::before {
  content: 'note: ';
  color: var(--accent);
  font-weight: 500;
  font-style: normal;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════
   CODEX-LAYOUT — 2-Spalten bleibt
   ═══════════════════════════════════════════════════════════════ */
.ov-codex {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 0.5rem;
}
@media (min-width: 1020px) {
  .ov-codex {
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
    gap: 3rem;
    align-items: start;
  }
}
.ov-codex-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.ov-codex-margin {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
@media (min-width: 1020px) {
  .ov-codex-margin {
    position: sticky;
    top: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION-HEADER — Mono lowercase mit `~` Marker (kein Fraunces, keine Ziffern, kein Border)
   ═══════════════════════════════════════════════════════════════ */
.ov-section { position: relative; }
.ov-section-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: none;
  margin: 0 0 1rem;
  padding-bottom: 0;
  border-bottom: none;
}
.ov-marker {
  color: var(--accent);
  font-weight: 400;
  opacity: 0.85;
}
.ov-section-name {
  color: var(--accent);
  font-weight: 500;
}
.ov-section-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: none;
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════════
   MARGIN-BLOCKS — Akh-Voice statt Editorial-Stile
   ═══════════════════════════════════════════════════════════════ */
.ov-margin-block {
  position: relative;
  padding: 1.15rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.ov-margin-block::before {
  content: '';
  position: absolute;
  top: -1px; left: -2px;
  width: 22px; height: 2px;
  background: var(--accent);
}

/* Eyebrow neu: Mono lowercase mit ~ statt UPPERCASE-LETTER-SPACING-EDITORIAL */
.ov-margin-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-bottom: 0.85rem;
  display: block;
  text-transform: none;
  font-weight: 500;
}
.ov-margin-eyebrow::before { content: '~'; opacity: 0.75; margin-right: 0.15rem; }
/* Gradient-Line nach Eyebrow entfernt — war zu "section-header-pattern-y" */
.ov-margin-eyebrow::after { display: none !important; content: none !important; }

/* Mood */
.ov-margin-mood .ov-mood-svg-wrap {
  text-align: center;
  margin-bottom: 0.5rem;
}
.ov-margin-mood .ov-mood-svg-wrap svg { display: block; margin: 0 auto; }
.ov-margin-mood .ov-mood-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}
.ov-margin-mood .ov-mood-detail {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Quick-Actions als Bash-Prompt-Liste */
.ov-margin-actions-list {
  display: flex;
  flex-direction: column;
}
.ov-margin-action {
  text-align: left;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.86rem;
  color: var(--ink);
  background: none;
  border: none;
  padding: 0.5rem 0;
  cursor: pointer;
  border-bottom: 1px dashed var(--border);
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}
.ov-margin-action:last-child { border-bottom: none; }
.ov-margin-action::before {
  content: '>';
  color: var(--accent);
  font-weight: 600;
  opacity: 0.65;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.ov-margin-action:hover {
  color: var(--accent);
  padding-left: 4px;
}
.ov-margin-action:hover::before {
  opacity: 1;
  transform: translateX(2px);
}

/* Memory-Subtitle Override (statt phase-z.css title) */
.ov-margin-block .memory-highlights-title {
  display: none !important;
}
.ov-margin-block .memory-highlights-subtitle {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-dim);
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: 0.7rem;
}

/* ═══════════════════════════════════════════════════════════════
   STATS — typografische Liste (bleibt)
   ═══════════════════════════════════════════════════════════════ */
.ov-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem 1.6rem;
}
.ov-stat {
  position: relative;
  padding: 0 0 0 1rem;
  border-left: 1.5px solid var(--border-heavy);
  min-width: 0;
}
.ov-stat::before {
  content: '';
  position: absolute;
  left: -1.5px; top: 0;
  width: 1.5px;
  height: 18px;
  background: var(--accent);
}
.ov-stat-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
  display: block;
}
.ov-stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1;
  display: block;
}
.ov-stat-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   HEALTH-FRAME
   ═══════════════════════════════════════════════════════════════ */
.ov-health-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 1.2rem 1.4rem;
  position: relative;
}
.ov-health-frame::before {
  content: '';
  position: absolute;
  top: -1px; left: 14px;
  width: 38px; height: 2px;
  background: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   DARK-MODE — explizite Tunings
   ═══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .ov-margin-block {
  background: rgba(38,36,32,0.85);
  border-color: rgba(232,227,216,0.08);
  border-left-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
[data-theme="dark"] .ov-margin-block::before { box-shadow: 0 0 6px var(--accent-glow); }
[data-theme="dark"] .ov-stat::before { box-shadow: 0 0 6px var(--accent-glow); }
[data-theme="dark"] .ov-health-frame {
  background: rgba(38,36,32,0.85);
  border-color: rgba(232,227,216,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
[data-theme="dark"] .ov-health-frame::before { box-shadow: 0 0 6px var(--accent-glow); }
[data-theme="dark"] .ov-margin-action { border-bottom-color: rgba(232,227,216,0.08); }
[data-theme="dark"] .ov-margin-action:hover { color: var(--accent-hover); }
[data-theme="dark"] #tab-overview .editorial-hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 360px;
  background: radial-gradient(ellipse at 80% 30%, var(--accent-glow), transparent 65%);
  pointer-events: none;
  z-index: -2;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1019px) {
  .ov-codex-margin { position: static; }
}
@media (max-width: 720px) {
  #tab-overview .editorial-hero { padding: 1.6rem 0 1.4rem; }
  #tab-overview .editorial-hero-marginalia { display: none; }
  .ov-codex { gap: 1.5rem; }
  .ov-codex-main { gap: 1.8rem; }
  .ov-codex-margin { gap: 1.2rem; }
  .ov-section-header { font-size: 0.78rem; }
  .ov-margin-block { padding: 1rem 1.15rem; }
  .ov-stat-value { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ov-margin-action { transition: none !important; }
}
