/**
 * Prompt 3E, E2 - gold accent utilities. A touch, not a theme: used only
 * on the Data & Decision Intelligence and Cybersecurity & Digital Risk
 * pages, their two cards on the Capabilities overview page, and any
 * Home/other teaser that shows those two capabilities. Every other page
 * stays teal/navy, untouched. Tokens: --dv-gold / --dv-gold-light /
 * --dv-gold-deep / --dv-gold-glow (tokens.css) - see the contrast note
 * there for which variant is safe on which background.
 *
 * Motion: .dv-sparkle twinkle is scoped under body.dv-motion and goes
 * fully static (final/resting state, no movement) under
 * prefers-reduced-motion and the shared .motion-paused class, exactly
 * like every other animation in the theme - no new motion mechanism.
 * Prompt 3F, F4: the gold sweep/scan-line (.dv-gold-sweep) that used to
 * live here was removed site-wide - no travelling light/shine left on
 * any hero or card. Sparkles stay (they twinkle in place, never move).
 */

/* ---- Card border + glow (alternating cards on Data/Cybersecurity,
   both cards on the Capabilities overview) ---- */
.dv-gold-card {
  position: relative;
  border: 1px solid var(--dv-gold-deep);
  box-shadow: var(--dv-gold-glow);
}
.section-navy .dv-gold-card,
.section-teal .dv-gold-card,
.dv-gold-card--on-dark {
  border-color: var(--dv-gold-light);
}
.dv-gold-card.card-lift:hover,
.dv-gold-card.card-lift:focus-within {
  box-shadow: var(--dv-gold-glow), var(--shadow-card);
}

/* Prompt 3F, F1/F3: the Capabilities-overview featured cards
   (Cybersecurity/Data) no longer use .dv-gold-card at all - this rule
   set their own border-radius to `inherit` from .dv-bleed-cards2 (the
   flex column, radius 0), which is what made exactly those two cards
   render square while the other four kept their real 20/28px radius.
   Replaced by the detached .dv-frame--gold wrapper, see
   dv_capability_bleed_cards() in inc/template-tags.php - the card's
   own radius is untouched by the frame now. */

/* ---- Text: 2-3 words per section, never a whole sentence. Default
   (light background) uses --dv-gold-deep (passes AA, see tokens.css);
   on navy/teal it switches to --dv-gold-light - same convention as the
   existing .dv-emph-accent on-dark rule. */
.dv-gold-text {
  color: var(--dv-gold-deep);
  font-weight: 700;
}
.section-navy .dv-gold-text,
.section-teal .dv-gold-text,
.text-white .dv-gold-text {
  color: var(--dv-gold-light);
}
/* Prompt 3E, E8: dv_navy_outcomes_pair() nests a light callout card
   (.glass-ui-on-light) inside a .section-navy section - without this,
   the ancestor rule above would wrongly give its gold text the on-dark
   (light gold) color, which fails contrast on that card's white/near-
   white background. Restores the on-light (deep gold) variant whenever
   a light card sits inside a dark section, regardless of the section's
   own color. */
.section-navy .glass-ui-on-light .dv-gold-text,
.section-teal .glass-ui-on-light .dv-gold-text {
  color: var(--dv-gold-deep);
}

/* ---- Small elements: step numbers/chips, thin divider lines, the
   small line before an eyebrow, the active timeline marker, card hover
   states. ---- */
.dv-gold-num {
  -webkit-text-stroke-color: var(--dv-gold-light);
  color: transparent;
}
/* Prompt 3G, G1: .dv-gold-chip is now the metallic gradient-fill chip
   (solid colors, border, no !important) defined in dv-round5.css,
   which loads after this file - the old outline-only version (never
   actually used anywhere) is removed so it can't leak a stray
   !important border onto the new one. */
.dv-gold-divider { background: var(--dv-gold-light) !important; }
.dv-gold-eyebrow.dv-eyebrow::before,
.dv-gold-eyebrow.eyebrow::before { background: var(--dv-gold-deep); }
.section-navy .dv-gold-eyebrow::before,
.section-teal .dv-gold-eyebrow::before { background: var(--dv-gold-light); }
.dv-gold-eyebrow { color: var(--dv-gold-deep); }
.section-navy .dv-gold-eyebrow,
.section-teal .dv-gold-eyebrow { color: var(--dv-gold-light); }

/* Active roadmap/timeline node, Data & Cybersecurity's own mini-Method
   timelines (dv_roadmap() on-navy variant already in use there). */
.dv-gold-marker.dv-roadmap-node.is-revealed {
  border-color: var(--dv-gold-light);
  box-shadow: 0 0 0 6px rgba(232, 199, 102, .22);
}

.dv-gold-hover:hover,
.dv-gold-hover:focus-within {
  border-color: var(--dv-gold-deep);
  box-shadow: var(--dv-gold-glow);
}
.section-navy .dv-gold-hover:hover,
.section-teal .dv-gold-hover:hover,
.section-navy .dv-gold-hover:focus-within,
.section-teal .dv-gold-hover:focus-within {
  border-color: var(--dv-gold-light);
}

/* =========================================================
   Sparkles: simple 4-point stars, straight edges only (no curves).
   Markup: <span class="dv-sparkle dv-sparkle--sm" style="top:12%;
   left:70%; animation-delay:.6s"></span> inside a position:relative
   container. Size via modifier, position/stagger via inline style
   (dv_gold_sparkles() in inc/template-tags.php).
   ========================================================= */
.dv-sparkle {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 10px;
  height: 10px;
  background: var(--dv-gold-light);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  opacity: .55;
}
.dv-sparkle--sm { width: 6px; height: 6px; }
.dv-sparkle--md { width: 10px; height: 10px; }
.dv-sparkle--lg { width: 14px; height: 14px; }
.dv-motion .dv-sparkle {
  animation: dv-sparkle-twinkle 4s ease-in-out infinite;
  animation-delay: var(--dv-sparkle-delay, 0s);
}
@keyframes dv-sparkle-twinkle {
  0%, 100% { opacity: .22; transform: scale(.75); }
  50%      { opacity: .85; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion .dv-sparkle { animation: none; opacity: .6; transform: none; }
}
.motion-paused .dv-sparkle { animation-play-state: paused; }

/* =========================================================
   Gold data points (Data & Decision Intelligence): small diamonds
   sitting on grid lines / line intersections. Markup:
   <span class="dv-gold-point" style="top:30%; left:62%"></span>.
   ========================================================= */
.dv-gold-point {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 7px;
  height: 7px;
  background: var(--dv-gold-light);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 6px rgba(232, 199, 102, .5);
}
.dv-gold-point--dot {
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
