/* ============================================================
   HEBREW ACCENT PROVIDER v2 🇮🇱
   Rich manuscript tones — deeper olive ink, warm parchment
   Fully compatible with Dock.css 2.0 variable API
   ============================================================ */

/* ------------------------------------------------------------
   1. Accent Variables (v2 saturation)
   ------------------------------------------------------------ */
:root .accent-hebrew-v2 {
  --accent-strong: #445c26;      /* deeper olive ink */
  --accent-soft:   #f4f6e8;      /* warm parchment */
  --accent-title-color: #445c26;
  --accent-text: #000000;
}

/* ------------------------------------------------------------
   2. Term Blocks
   ------------------------------------------------------------ */
.term-block.accent-hebrew-v2 {
  border-left: 4px solid var(--accent-strong);
  background: var(--accent-soft);
  color: var(--accent-text);
  padding: 0.75rem 1rem;
}

.term-block.accent-hebrew-v2 h3 {
  color: var(--accent-title-color);
  margin-top: 0;
}

/* ------------------------------------------------------------
   3. Scripture Popovers (narrow + wide)
   ------------------------------------------------------------ */
.scripture-pop.accent-hebrew-v2 {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent-strong);
  padding: 0.75rem 1rem;
  color: var(--accent-text);
}

.scripture-pop-wide.accent-hebrew-v2 {
  background: var(--accent-soft);
  border-left: 6px solid var(--accent-strong);
  padding: 1rem 1.25rem;
  color: var(--accent-text);
}

/* ------------------------------------------------------------
   4. Blockquotes
   ------------------------------------------------------------ */
blockquote.accent-hebrew-v2 {
  border-left: 4px solid var(--accent-strong);
  background: var(--accent-soft);
  padding: 0.75rem 1rem;
  color: var(--accent-text);
}

blockquote.accent-hebrew-v2 strong {
  color: var(--accent-title-color);
}

/* ------------------------------------------------------------
   5. Cross‑Links (v2 protocol)
   ------------------------------------------------------------ */
.accent-hebrew-v2 .crosslink,
.crosslink.accent-hebrew-v2 {
  color: var(--accent-title-color);
  border-bottom: 1px dotted var(--accent-strong);
}

.accent-hebrew-v2 .crosslink:hover,
.crosslink.accent-hebrew-v2:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

/* ------------------------------------------------------------
   6. Inline Accent Utilities
   ------------------------------------------------------------ */
.heb-term {
  color: var(--accent-title-color);
  font-weight: 600;
}

.heb-soft-bg {
  background: var(--accent-soft);
}

.heb-strong-text {
  color: var(--accent-strong);
}

/* ------------------------------------------------------------
   7. Manuscript Micro‑Utilities
   ------------------------------------------------------------ */
.heb-scroll-bg {
  background: var(--accent-soft);
  padding: 0.5rem;
}

.heb-ink {
  color: var(--accent-strong);
}

/* ------------------------------------------------------------
   8. Hover + Focus States
   ------------------------------------------------------------ */
.accent-hebrew-v2 a:hover {
  color: var(--accent-strong);
}

.accent-hebrew-v2 a:focus {
  outline: 2px solid var(--accent-strong);
}

/* ------------------------------------------------------------
   9. Dock.css 2.0 Theme Compatibility
   ------------------------------------------------------------ */
[data-theme="dock"] .accent-hebrew-v2 {
  --dock-accent-border: var(--accent-strong);
  --dock-accent-bg: var(--accent-soft);
  --dock-accent-text: var(--accent-text);
}

/* ------------------------------------------------------------
   10. Legacy Compatibility (safe fallback)
   ------------------------------------------------------------ */
.accent-hebrew-legacy {
  border-left: 4px solid var(--accent-strong);
  background: var(--accent-soft);
  color: var(--accent-text);
  padding: 0.75rem 1rem;
}

/* v2 Crosslink Rest-State Override (final form) */
.accent-hebrew-v2 a.crosslink {
  color: var(--accent-title-color) !important;
}
