/* ============================================================
   Cyr sub-site — incremental styles layered over style.css
   Native dialect landing page (cyra-lang.org/cyr)
   ============================================================ */

/* Native dialect = oak signature. Re-point the accent tokens (and the legacy
   --amber, used by the badge/logo and the Cyr comparison card) to a warm oak
   wood tone that pairs with Cyra's emerald. Loaded after style.css, so these
   win for every /cyr page. */
:root,
[data-theme="dark"] {
  --accent:        #c2a06a;   /* oak — warm wood tone, Cyr signature */
  --accent-btn:    #b6915a;
  --accent-btn-hi: #d2b483;
  --on-accent:     #221a0c;   /* dark text on the light oak button (kraft look) */
  --amber:         #c2a06a;
}
[data-theme="light"] {
  --accent:        #8a6a38;   /* deep oak, legible on white */
  --accent-btn:    #8a6a38;
  --accent-btn-hi: #745829;
  --on-accent:     #ffffff;
  --amber:         #8a6a38;
}

/* --- Inception status badge (hero) — sharp editorial tag --- */
.cyr-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
}

/* --- "harder" logo treatment to signal the native dialect --- */
.nav-logo.cyr-logo span {
  color: var(--amber);
}

/* --- Inception notice banner --- */
.notice {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.notice .container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.notice-tag {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 0;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notice p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Dialect arborescence: tagline under hero --- */
.metal-line {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

[dir="rtl"] .notice .container {
  flex-direction: row-reverse;
}

/* --- Acronym hover hints: dotted underline + instant styled tooltip --- */
/* abbr[title] is styled too so the cue is present before abbr-tip.js upgrades
   title -> data-tip (which suppresses the slow, unstyled native tooltip). */
abbr[title],
abbr[data-tip] {
  position: relative;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--amber);
  cursor: help;
}

/* the bubble */
abbr[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6rem);
  transform: translateX(-50%) translateY(0.25rem);
  z-index: 50;
  width: max-content;
  max-width: 15rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

/* the arrow */
abbr[data-tip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.2rem);
  transform: translateX(-50%) translateY(0.25rem);
  z-index: 51;
  border: 0.3rem solid transparent;
  border-top-color: var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

abbr[data-tip]:hover::after,
abbr[data-tip]:focus::after,
abbr[data-tip]:hover::before,
abbr[data-tip]:focus::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

abbr[data-tip]:focus {
  outline: none;
}
