/* CHECKMATE 120 — HUMAN DESIGN CLEANUP
   No decorative text highlights or underlines. Preserve genuine interaction states,
   focus outlines, keyboard support, and all Deck artwork/functionality.
   Loaded last on the scoped public pages and Board entry documents.
*/

/* Discovery: the previous dark-body override made dark-green questions unreadable. */
body[data-cm-world="spark"] {
  background: #f8f4eb !important;
  color: #103c2f !important;
}
body[data-cm-world="spark"] .play-shell {
  background: #f8f4eb !important;
  color: #103c2f !important;
}
body[data-cm-world="spark"] .play-top .eyebrow,
body[data-cm-world="spark"] .progress-text,
body[data-cm-world="spark"] .round-kicker {
  color: #684d1b !important;
  opacity: 1 !important;
}
body[data-cm-world="spark"] .prompt-wrap h2,
body[data-cm-world="spark"] #round-title {
  color: #073b2d !important;
  -webkit-text-fill-color: #073b2d !important;
  background: none !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
body[data-cm-world="spark"] #round-help,
body[data-cm-world="spark"] .privacy-nudge,
body[data-cm-world="spark"] .play-footer {
  color: #314c3d !important;
  opacity: 1 !important;
}
body[data-cm-world="spark"] .choice-alternatives button:not(:disabled) {
  background: #fffdf8 !important;
  border: 1px solid #708b7a !important;
  color: #073b2d !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
body[data-cm-world="spark"] .choice-alternatives button:hover:not(:disabled) {
  background: #eaf0e9 !important;
}
body[data-cm-world="spark"] .spark-card {
  background: #0b4534 !important;
  color: #fff8e8 !important;
  border: 1px solid #b99551 !important;
  box-shadow: 0 5px 18px #0b3a2b1f !important;
}
body[data-cm-world="spark"] .spark-card::before,
body[data-cm-world="spark"] .spark-card::after { content: none !important; }
body[data-cm-world="spark"] .spark-card .card-art {
  filter: none !important;
  color: #e6c47d !important;
}
body[data-cm-world="spark"] .spark-card strong { color: #f3deb3 !important; }
body[data-cm-world="spark"] .spark-card .card-detail {
  color: #f5f4eb !important;
  opacity: 1 !important;
  font-size: max(13px, .88rem);
}
body[data-cm-world="spark"] .spark-card .choose {
  color: #092f25 !important;
  background: #edcf8d !important;
  border: 0 !important;
  border-radius: 7px;
  padding: 11px 14px;
  min-height: 42px;
  text-decoration: none !important;
}
body[data-cm-world="spark"] .spark-card:hover {
  transform: none !important;
  box-shadow: 0 5px 18px #0b3a2b1f !important;
}

/* The homepage FAQ must read clearly even on a dark green section. */
body.cw-main .xfi-faq {
  max-width: 1000px;
  background: #faf7ee !important;
  color: #103b2d !important;
  padding: clamp(22px, 3vw, 36px) !important;
  border: 1px solid #d8d1bf !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
body.cw-main .xfi-faq :is(h2,h3,h4,summary,p,strong,span) {
  color: #103b2d !important;
  -webkit-text-fill-color: #103b2d !important;
  opacity: 1 !important;
  text-shadow: none !important;
  background-image: none !important;
}
body.cw-main .xfi-faq details { border-color: #c6d0c4 !important; }
body.cw-main .xfi-faq a { color: #0b5c44 !important; }

/* Stop using decorative rules, fake marker strokes and underlines as emphasis. */
body.cw-main .xfi-handwritten {
  font-style: normal !important;
  border-left: 0 !important;
  padding-left: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.cw-main :is(.xfi-hero-copy,.xfi-story-chapters,.xfi-faq) :is(mark,u),
body[data-cm-world="spark"] :is(.prompt-wrap,.spark-card) :is(mark,u) {
  background: transparent !important;
  background-image: none !important;
  color: inherit !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
body.cw-main .xfi-hero-copy :is(.highlight,.underlined,.marker,.marker-highlight),
body.cw-main .xfi-story-chapters :is(.highlight,.underlined,.marker,.marker-highlight) {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
body.cw-main .xfi-hero-copy :is(.highlight,.underlined,.marker,.marker-highlight)::after,
body.cw-main .xfi-story-chapters :is(.highlight,.underlined,.marker,.marker-highlight)::after {
  content: none !important;
}
/* Functional links remain discernible and keyboard focus rings are not removed. */
body.cw-main .xfi-btn-text,
body.cw-main .xfi-text-link,
body.cw-main .xfi-inline-link,
body.cw-main .xfi-faq a,
body[data-cm-world="spark"] .site-top nav a,
body.cw-main .site-nav a {
  text-decoration: none !important;
  text-underline-offset: unset !important;
}
body.cw-main .xfi-text-link:hover,
body.cw-main .xfi-inline-link:hover,
body.cw-main .xfi-faq a:hover,
body[data-cm-world="spark"] .site-top nav a:hover,
body.cw-main .site-nav a:hover {
  color: #ae7b2a !important;
}
/* Selected controls and progress still have distinct, meaningful states. */
body[data-cm-world="spark"] :is(button,a,textarea):focus-visible,
body.cw-main :is(button,a,summary):focus-visible {
  outline: 3px solid #b78a38 !important;
  outline-offset: 3px !important;
}
@media (max-width: 640px) {
  body[data-cm-world="spark"] .spark-cards {
    grid-template-columns: 1fr !important;
    max-width: 460px;
  }
  body[data-cm-world="spark"] .spark-card { min-height: 300px; }
  body.cw-main .xfi-faq { padding: 20px 17px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-cm-world="spark"] .spark-card { transition: none !important; }
}

/* Board utility language: no decorative highlight treatment in explanatory copy.
   Attention markers, notification badges and selected filters are functional, untouched. */
body[data-cm-world="coach"] .coach-head-copy :is(mark,u),
body[data-cm-world="board"] .page :is(mark,u) {
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  color: inherit !important;
}
