/*
 * SlotDecoded iGaming Suite — Frontend Stylesheet v5.0.0
 * Design System: Premium Dark Editorial
 *
 * STRUCTURE
 * ---------
 *  1. Design Tokens
 *  2. Component Base
 *  3. Shared Atoms (eyebrow, labels, pills, meters, stars, CTA)
 *  4. Stats Panel           [sd_stats]
 *  5. Bonus Hunt Verdict    [sd_bonus_verdict]
 *  6. Feature Tags          [sd_feature_tags]
 *  7. Quick Facts           [sd_quick_facts]
 *  8. Casino Card           [sd_casino_card]
 *  9. Top Casinos List      [sd_top_casinos]
 * 10. RTP Meter             [sd_rtp_meter]
 * 11. Volatility Badge      [sd_volatility]
 * 12. Rating Panel          [sd_rating]
 * 13. Responsible Gambling  [sd_18plus]
 * 14. Provider Card         [sd_provider_card]
 * 15. Comparison Table      [sd_comparison]
 * 16. Accessibility
 * 17. Responsive
 * 18. Motion
 *
 * PERFORMANCE (all O-series optimizations retained)
 * --------------------------------------------------
 * O9   transform:scaleX() bars — compositor layer.
 * O10  will-change:transform on fill elements.
 * O11  All transitions gated behind prefers-reduced-motion.
 * O12  Design tokens resolved once in :root.
 * O13  .sd-stat-row--alt set by PHP — no :nth-child.
 * O14  contain:layout paint on card wrappers.
 * O23  Mobile-first stats grid.
 * O24  content-visibility:auto inline on casino list rows.
 */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Surfaces */
  --sd-canvas:       #0b0e13;
  --sd-surface:      #10151e;
  --sd-surface-2:    #161c28;
  --sd-surface-3:    #1d2535;

  /* Borders */
  --sd-line:         rgba(255,255,255,0.06);
  --sd-line-2:       rgba(255,255,255,0.10);
  --sd-line-3:       rgba(255,255,255,0.16);

  /* Text hierarchy */
  --sd-text:         #e6ecf5;
  --sd-text-2:       #8593ab;
  --sd-text-3:       #49566b;

  /* Brand — warm amber gold */
  --sd-gold:         #c8a04a;
  --sd-gold-hi:      #d9b466;
  --sd-gold-bg:      rgba(200,160,74,0.10);
  --sd-gold-border:  rgba(200,160,74,0.28);

  /* Semantic palette */
  --sd-jade:         #38b89e;
  --sd-jade-bg:      rgba(56,184,158,0.09);
  --sd-jade-border:  rgba(56,184,158,0.24);

  --sd-sky:          #4a92ed;
  --sd-sky-bg:       rgba(74,146,237,0.09);
  --sd-sky-border:   rgba(74,146,237,0.24);

  --sd-amber:        #d4783a;
  --sd-amber-bg:     rgba(212,120,58,0.09);
  --sd-amber-border: rgba(212,120,58,0.24);

  --sd-rose:         #c94848;
  --sd-rose-bg:      rgba(201,72,72,0.09);
  --sd-rose-border:  rgba(201,72,72,0.24);

  --sd-emerald:      #1dab68;
  --sd-emerald-bg:   rgba(29,171,104,0.09);
  --sd-emerald-border: rgba(29,171,104,0.24);

  --sd-violet:       #8e6cdb;
  --sd-violet-bg:    rgba(142,108,219,0.09);
  --sd-violet-border: rgba(142,108,219,0.24);

  /* Typography */
  --sd-font-head:    'Syne', system-ui, sans-serif;
  --sd-font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Type scale */
  --sd-t-2xs:  10px;
  --sd-t-xs:   11px;
  --sd-t-sm:   12px;
  --sd-t-base: 13px;
  --sd-t-md:   14px;
  --sd-t-lg:   16px;
  --sd-t-xl:   20px;
  --sd-t-2xl:  28px;
  --sd-t-hero: 38px;

  /* Spacing — 4px base */
  --sd-sp-1: 4px;
  --sd-sp-2: 8px;
  --sd-sp-3: 12px;
  --sd-sp-4: 16px;
  --sd-sp-5: 20px;
  --sd-sp-6: 24px;
  --sd-sp-8: 32px;

  /* Shape */
  --sd-r-xs: 3px;
  --sd-r-sm: 4px;
  --sd-r:    6px;
  --sd-r-md: 8px;
  --sd-r-lg: 10px;

  /* Elevation */
  --sd-shadow:    0 2px 10px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.035);
  --sd-shadow-lg: 0 6px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.045);
}


/* ==========================================================================
   2. COMPONENT BASE
   ========================================================================== */
.sd-component {
  font-family: var(--sd-font-body);
  font-size: var(--sd-t-base);
  line-height: 1.55;
  color: var(--sd-text);
  box-sizing: border-box;
  contain: layout paint; /* O14 */
}

.sd-component *,
.sd-component *::before,
.sd-component *::after {
  box-sizing: inherit;
}

/*
 * Astra (and most themes) apply colour + underline to .entry-content a.
 * Reset all links inside SD components so theme link styles cannot bleed
 * in and override our CTA buttons, pill links, and nav links.
 */
.sd-component a {
  color: inherit;
  text-decoration: none;
}

.sd-card {
  background: var(--sd-surface);
  border: 1px solid var(--sd-line-2);
  border-radius: var(--sd-r-lg);
  /*
   * overflow:hidden removed — it clipped position:absolute .sd-tooltip
   * children that appear when [sd_term] is used inside card body text.
   * Child backgrounds are clipped to the card's corner radius by applying
   * matching border-radius on .sd-card-head and .sd-card-foot directly.
   */
  margin-block: 1.75rem;
  box-shadow: var(--sd-shadow);
}

.sd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sd-sp-3);
  padding: var(--sd-sp-3) var(--sd-sp-5);
  background: rgba(0,0,0,0.20);
  border-bottom: 1px solid var(--sd-line);
  border-radius: var(--sd-r-lg) var(--sd-r-lg) 0 0; /* mask top corners */
  min-height: 44px;
}

.sd-card-body { padding: var(--sd-sp-5); }

.sd-card-foot {
  padding: var(--sd-sp-2) var(--sd-sp-5) var(--sd-sp-3);
  border-top: 1px solid var(--sd-line);
  background: rgba(0,0,0,0.08);
  border-radius: 0 0 var(--sd-r-lg) var(--sd-r-lg); /* mask bottom corners */
}


/* ==========================================================================
   3. SHARED ATOMS
   ========================================================================== */

/* Eyebrow */
.sd-eyebrow {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--sd-text-2);
}

/* Micro label */
.sd-label {
  font-size: var(--sd-t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sd-text-2);
}

/* Disclaimer */
.sd-disclaimer {
  font-size: 11.5px;
  color: var(--sd-text-3);
  margin: 0;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
.sd-disclaimer a { color: var(--sd-text-2); text-decoration: underline; }
.sd-disclaimer a:hover { color: var(--sd-text); }

/* Pills */
.sd-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--sd-t-xs);
  font-weight: 600;
  padding: 2px var(--sd-sp-2);
  border-radius: var(--sd-r-sm);
  border: 1px solid var(--sd-line-2);
  background: rgba(255,255,255,0.04);
  color: var(--sd-text-2);
  white-space: nowrap;
}
.sd-pill--license    { border-color: var(--sd-sky-border);    background: var(--sd-sky-bg);    color: var(--sd-sky); }
.sd-pill--withdrawal { border-color: var(--sd-jade-border);   background: var(--sd-jade-bg);   color: var(--sd-jade); }
.sd-pill--code {
  border-color: var(--sd-gold-border);
  background: var(--sd-gold-bg);
  color: var(--sd-gold-hi);
  cursor: pointer;
  user-select: none;
  gap: var(--sd-sp-1);
}

/* Score badge — numeric score in card headers */
.sd-score-badge {
  display: flex;
  align-items: baseline;
  gap: 1px;
  flex-shrink: 0;
}
.sd-score-num {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-xl);
  font-weight: 800;
  line-height: 1;
  color: var(--sd-gold-hi);
}
.sd-score-denom {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-text-3);
}

/* Stars — shared by rating panel, verdict, casino card, quick facts */
.sd-stars {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  letter-spacing: 1px;
  font-size: 13px;
}
.sd-star-full  { color: var(--sd-gold-hi); }
.sd-star-half  { color: var(--sd-gold-hi); opacity: 0.55; }
.sd-star-empty { color: var(--sd-text-3); }

/* Tier chip */
.sd-tier-chip {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--sd-r-sm);
  border: 1px solid currentColor;
  opacity: 0.85;
  white-space: nowrap;
  flex-shrink: 0;
}
.sd-tier-chip--s { color: var(--sd-emerald); }
.sd-tier-chip--a { color: var(--sd-sky); }
.sd-tier-chip--b { color: var(--sd-gold-hi); }
.sd-tier-chip--c { color: var(--sd-amber); }
.sd-tier-chip--d { color: var(--sd-rose); }

/* Horizontal rule */
.sd-rule { border: none; border-top: 1px solid var(--sd-line); margin: 0; }

/* Data row — shared by provider card */
.sd-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sd-sp-3);
  padding: 9px var(--sd-sp-5);
  border-bottom: 1px solid var(--sd-line);
  min-height: 40px;
}
.sd-data-row:last-child { border-bottom: none; }
.sd-data-key {
  font-size: var(--sd-t-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sd-text-2);
  flex-shrink: 0;
  max-width: 50%;
}
.sd-data-val {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-base);
  font-weight: 700;
  color: var(--sd-text);
  text-align: right;
}

/* Meter track — shared */
.sd-meter-track {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.sd-meter-track--lg { height: 6px; }

.sd-meter-fill {
  height: 100%;
  width: var(--meter-pct, 0%);
  transform: scaleX(0);        /* O9 */
  transform-origin: left;
  border-radius: 99px;
  will-change: transform;      /* O10 */
}
.sd-meter-fill.is-animated { transform: scaleX(1); }

/* Volatility dot */
.sd-vol-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: var(--sd-sp-1);
}

/* CTA button */
.sd-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sd-sp-2);
  background: var(--sd-gold);
  color: #0b0e13;
  font-family: var(--sd-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px var(--sd-sp-5);
  border-radius: var(--sd-r);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px; /* touch target */
}
.sd-cta::after { content: '→'; font-weight: 400; letter-spacing: 0; opacity: 0.65; margin-left: 2px; }


/* ==========================================================================
   4. STATS PANEL — [sd_stats]
   ========================================================================== */
.sd-stats-panel { /* inherits .sd-card */ }

/* Score badge variant in stats header (when no tier) */
.sd-stats-score-badge {
  display: flex;
  align-items: baseline;
  gap: 1px;
  flex-shrink: 0;
}
.sd-stats-score-badge .sd-score-num { font-size: var(--sd-t-lg); }
.sd-stats-score-badge .sd-score-denom { font-size: var(--sd-t-xs); }

/* Mobile-first 2-col grid (O23) */
.sd-stats-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .sd-stats-body { grid-template-columns: 1fr 1fr; }
}

/* Group separator row — full-width across both columns */
.sd-stats-group-sep {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--sd-sp-3);
  padding: 5px var(--sd-sp-5);
  background: rgba(0,0,0,0.14);
  border-top: 1px solid var(--sd-line);
  border-bottom: 1px solid var(--sd-line);
}
.sd-stats-group-sep span {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-2xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--sd-text-3);
}

/* Stat rows */
.sd-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sd-sp-3);
  padding: 9px var(--sd-sp-5);
  border-bottom: 1px solid var(--sd-line);
  min-height: 40px;
}
.sd-stat-row--alt { background: rgba(255,255,255,0.018); }

.sd-stat-label {
  font-size: var(--sd-t-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sd-text-2);
  flex-shrink: 0;
}
.sd-stat-value {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-base);
  font-weight: 700;
  color: var(--sd-text);
  text-align: right;
}

/* Semantic value colors */
.sd-stat--rtp .sd-stat-value      { color: var(--sd-jade); }
.sd-stat--maxwin .sd-stat-value   { color: var(--sd-gold-hi); }
.sd-stat--provider .sd-stat-value { color: var(--sd-sky); }

/* Volatility semantics */
.sd-vol--low       .sd-stat-value { color: var(--sd-jade); }
.sd-vol--medium    .sd-stat-value { color: var(--sd-sky); }
.sd-vol--high      .sd-stat-value { color: var(--sd-amber); }
.sd-vol--very-high .sd-stat-value { color: var(--sd-rose); }
.sd-vol--extreme   .sd-stat-value { color: #b83030; }

/* Volatility dot colors */
.sd-vol--low       .sd-vol-dot { background: var(--sd-jade); }
.sd-vol--medium    .sd-vol-dot { background: var(--sd-sky); }
.sd-vol--high      .sd-vol-dot { background: var(--sd-amber); }
.sd-vol--very-high .sd-vol-dot { background: var(--sd-rose); }
.sd-vol--extreme   .sd-vol-dot { background: #b83030; }

/* Hit rate context text "(~1 in N spins)" */
.sd-stat-context {
  font-size: var(--sd-t-xs);
  font-weight: 500;
  color: var(--sd-text-2);
  margin-left: 4px;
}

/* RTP bar */
.sd-rtp-bar-wrap {
  grid-column: 1 / -1;
  padding: var(--sd-sp-4) var(--sd-sp-5);
  border-top: 1px solid var(--sd-line);
  background: rgba(0,0,0,0.12);
}
.sd-rtp-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sd-sp-2);
}
.sd-rtp-bar-meta .sd-label { font-size: var(--sd-t-2xs); }
.sd-rtp-bar-val {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-jade);
}
.sd-stats-rtp-fill { background: linear-gradient(90deg, var(--sd-jade), var(--sd-sky)); }


/* ==========================================================================
   5. BONUS HUNT VERDICT — [sd_bonus_verdict]
   ========================================================================== */
.sd-verdict-panel {
  border-left-width: 3px;
}
.sd-verdict--s { border-left-color: var(--sd-emerald); }
.sd-verdict--a { border-left-color: var(--sd-sky); }
.sd-verdict--b { border-left-color: var(--sd-gold); }
.sd-verdict--c { border-left-color: var(--sd-amber); }
.sd-verdict--d { border-left-color: var(--sd-rose); }

.sd-verdict-hero {
  display: flex;
  align-items: flex-start;
  gap: var(--sd-sp-4);
  padding: var(--sd-sp-4) var(--sd-sp-5);
  border-bottom: 1px solid var(--sd-line);
}

.sd-tier-mark {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-hero);
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  padding-top: 2px;
}
.sd-verdict--s .sd-tier-mark { color: var(--sd-emerald); }
.sd-verdict--a .sd-tier-mark { color: var(--sd-sky); }
.sd-verdict--b .sd-tier-mark { color: var(--sd-gold-hi); }
.sd-verdict--c .sd-tier-mark { color: var(--sd-amber); }
.sd-verdict--d .sd-tier-mark { color: var(--sd-rose); }

.sd-verdict-context { display: flex; flex-direction: column; gap: var(--sd-sp-1); flex: 1; min-width: 0; }

.sd-verdict-grade {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-md);
  font-weight: 800;
  color: var(--sd-text);
  letter-spacing: 0.01em;
}
.sd-verdict-desc {
  font-size: var(--sd-t-sm);
  color: var(--sd-text-2);
  font-weight: 500;
  line-height: 1.45;
}

/* Score row inside verdict hero */
.sd-verdict-score-row {
  display: flex;
  align-items: center;
  gap: var(--sd-sp-2);
  margin-top: var(--sd-sp-1);
}
.sd-verdict-score-num {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-md);
  font-weight: 800;
  color: var(--sd-gold-hi);
}
.sd-verdict-score-desc {
  font-size: var(--sd-t-xs);
  color: var(--sd-text-2);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Verdict data table */
.sd-verdict-table { width: 100%; border-collapse: collapse; }
.sd-verdict-table tr:not(:last-child) td { border-bottom: 1px solid var(--sd-line); }
.sd-vt-key {
  font-size: var(--sd-t-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sd-text-2);
  padding: 9px var(--sd-sp-5);
  width: 44%;
}
.sd-vt-val {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-base);
  font-weight: 700;
  color: var(--sd-text);
  padding: 9px var(--sd-sp-5) 9px 0;
}

/* Rescue play */
.sd-rescue--yes { color: var(--sd-emerald); }
.sd-rescue--no  { color: var(--sd-rose); }
.sd-rescue-icon {
  font-style: normal;
  margin-right: 4px;
}


/* ==========================================================================
   6. FEATURE TAGS — [sd_feature_tags]
   ========================================================================== */
.sd-feature-section {
  margin-block: 1rem;
  contain: layout paint;
}

.sd-feature-section-label {
  display: block;
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-text-2);
  margin-bottom: var(--sd-sp-2);
}

.sd-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sd-sp-1) var(--sd-sp-2);
}

.sd-feature-tag {
  font-size: var(--sd-t-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--sd-r-sm);
  border: 1px solid;
  white-space: nowrap;
  letter-spacing: 0.02em;
  cursor: default;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
}

/* Feature colour system */
.sd-feature-tag--buy     { color: var(--sd-violet);   border-color: var(--sd-violet-border);   background: var(--sd-violet-bg); }
.sd-feature-tag--mega    { color: var(--sd-sky);       border-color: var(--sd-sky-border);       background: var(--sd-sky-bg); }
.sd-feature-tag--spins   { color: var(--sd-jade);      border-color: var(--sd-jade-border);      background: var(--sd-jade-bg); }
.sd-feature-tag--wilds   { color: var(--sd-jade);      border-color: var(--sd-jade-border);      background: var(--sd-jade-bg); }
.sd-feature-tag--tumble  { color: var(--sd-amber);     border-color: var(--sd-amber-border);     background: var(--sd-amber-bg); }
.sd-feature-tag--multi   { color: var(--sd-gold-hi);   border-color: var(--sd-gold-border);      background: var(--sd-gold-bg); }
.sd-feature-tag--xways   { color: var(--sd-rose);      border-color: var(--sd-rose-border);      background: var(--sd-rose-bg); }
.sd-feature-tag--hold    { color: var(--sd-sky);       border-color: var(--sd-sky-border);       background: var(--sd-sky-bg); }
.sd-feature-tag--jackpot { color: var(--sd-gold-hi);   border-color: var(--sd-gold-border);      background: var(--sd-gold-bg); }
.sd-feature-tag--cluster { color: var(--sd-violet);    border-color: var(--sd-violet-border);    background: var(--sd-violet-bg); }


/* ==========================================================================
   7. QUICK FACTS — [sd_quick_facts]
   ========================================================================== */
.sd-quick-facts { /* inherits .sd-card */ }

.sd-qf-title {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-text);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.sd-qf-list { margin: 0; padding: 0; }

.sd-qf-row {
  display: grid;
  grid-template-columns: auto 1fr;
  border-bottom: 1px solid var(--sd-line);
  min-height: 38px;
}
.sd-qf-row:last-child { border-bottom: none; }

.sd-qf-dt {
  font-size: var(--sd-t-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sd-text-2);
  padding: 8px var(--sd-sp-4) 8px var(--sd-sp-5);
  align-self: center;
  white-space: nowrap;
}

.sd-qf-dd {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-base);
  font-weight: 700;
  color: var(--sd-text);
  margin: 0;
  padding: 8px var(--sd-sp-5) 8px 0;
  align-self: center;
  text-align: right;
  min-width: 0;
}

/* Colored value variants */
.sd-qf-val--rtp    { color: var(--sd-jade); }
.sd-qf-val--maxwin { color: var(--sd-gold-hi); }

/* Score row */
.sd-qf-val--score {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sd-sp-2);
}
.sd-qf-score-num {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-md);
  font-weight: 800;
  color: var(--sd-gold-hi);
}

/* Features list */
.sd-qf-dd--features {
  font-family: var(--sd-font-body);
  font-size: var(--sd-t-xs);
  font-weight: 500;
  color: var(--sd-text-2);
  white-space: normal;
  line-height: 1.4;
}


/* ==========================================================================
   8. CASINO CARD — [sd_casino_card]
   ========================================================================== */
/* ==========================================================================
   8. CASINO CARD — [sd_casino_card]
   ========================================================================== */

/*
 * Layout hierarchy:
 *   .sd-card-head   → casino name + editorial badge + rating score
 *   .sd-casino-offer → welcome bonus headline
 *   .sd-casino-details → detail pills (wagering, license, withdrawal, etc.)
 *   .sd-casino-cta-wrap → CTA button + RG notice + terms link + review link
 *   .sd-card-foot   → disclosure/affiliate disclaimer
 *
 * Design intent: trust-first editorial card, not banner-style promo.
 * Hierarchy reads top→bottom: Who → What they offer → How to proceed → Legal.
 */

.sd-casino-card { /* inherits .sd-card — surface, border, shadow, border-radius */ }

/* ── Header: name + badge + score ──────────────────────────────────────── */
.sd-casino-header-info { flex: 1; min-width: 0; }

.sd-casino-eyebrow {
  display: inline-block;
  font-family: var(--sd-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sd-gold-hi);
  background: var(--sd-gold-bg);
  border: 1px solid var(--sd-gold-border);
  padding: 2px 6px;
  border-radius: var(--sd-r-xs);
  margin-bottom: var(--sd-sp-1);
}

.sd-casino-name {
  font-family: var(--sd-font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--sd-text);
  letter-spacing: 0.005em;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Score block — right side of header */
.sd-casino-score-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.sd-casino-stars .sd-stars { font-size: 10px; }

/* ── Offer zone ─────────────────────────────────────────────────────────── */
.sd-casino-offer {
  padding: var(--sd-sp-4) var(--sd-sp-5);
  border-bottom: 1px solid var(--sd-line);
  background: rgba(200,160,74,0.045);
}
.sd-offer-main {
  font-family: var(--sd-font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--sd-gold-hi);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sd-offer-sub {
  font-size: 12px;
  color: var(--sd-text-2);
  margin-top: 5px;
  font-weight: 500;
  line-height: 1.4;
}

/* ── Details pills row ──────────────────────────────────────────────────── */
.sd-casino-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sd-sp-1) var(--sd-sp-2);
  padding: var(--sd-sp-3) var(--sd-sp-5);
  border-bottom: 1px solid var(--sd-line);
}

/* ── CTA zone ───────────────────────────────────────────────────────────── */
.sd-casino-cta-wrap {
  padding: var(--sd-sp-4) var(--sd-sp-5) var(--sd-sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sd-sp-3);
}
.sd-casino-cta-wrap .sd-cta {
  width: 100%;
  font-size: 13px;
}

/* RG notice + terms line: readable, not microscopic */
.sd-cta-sub {
  font-family: var(--sd-font-body);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--sd-text-2);
  text-align: center;
  margin: 0;
  /* Deliberate: text-2, not text-3. This is legal/compliance text — must be readable. */
}

/* Terms link inside cta-sub */
.sd-terms-link {
  color: var(--sd-text-2);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--sd-line-3);
  margin-left: 4px;
  white-space: nowrap;
  transition: color 0.12s;
}
.sd-terms-link:hover { color: var(--sd-text); text-decoration-color: var(--sd-text-2); }

/* Review link */
.sd-casino-review-link {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--sd-sky);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.sd-casino-review-link:hover { text-decoration: underline; }

/* Comparison-only variant */
.sd-casino-cta-wrap--comparison {
  text-align: center;
  gap: var(--sd-sp-2);
}
.sd-comparison-notice {
  font-size: 12px;
  color: var(--sd-text-2);
  font-style: italic;
  margin: 0;
}

/* ── Card footer: disclosure ────────────────────────────────────────────── */
/*
 * The footer carries the affiliate disclosure. It must not be invisible.
 * font-size: 11.5px — same as cta-sub. Never below 11px.
 * background and border inherited from .sd-card-foot.
 */
.sd-casino-card .sd-card-foot {
  padding: var(--sd-sp-3) var(--sd-sp-5);
}
.sd-casino-card .sd-disclaimer {
  font-size: 11.5px;
  color: var(--sd-text-2);
  line-height: 1.65;
  /* Step up from text-3 to text-2 for the disclosure footer — 
     affiliate disclosure must be clearly legible per ASA/FCA/EGBA guidelines. */
}
.sd-casino-card .sd-disclaimer a {
  color: var(--sd-text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sd-casino-card .sd-disclaimer a:hover { color: var(--sd-text); }

/* ── Compact modifier (compact="yes") ───────────────────────────────────── */
.sd-casino-card--compact .sd-card-head {
  padding-block: var(--sd-sp-2);
}
.sd-casino-card--compact .sd-casino-offer,
.sd-casino-card--compact .sd-casino-details {
  padding-block: var(--sd-sp-2);
}
.sd-casino-card--compact .sd-casino-cta-wrap {
  padding: var(--sd-sp-3) var(--sd-sp-4) var(--sd-sp-4);
  gap: var(--sd-sp-2);
}
.sd-casino-card--compact .sd-casino-name { font-size: 14px; }
.sd-casino-card--compact .sd-offer-main  { font-size: 15px; }

/* "Compare only" inline label for sd_top_casinos rows */
.sd-top-casino-comparison-label {
  font-size: 11px;
  color: var(--sd-text-2);
  font-style: italic;
  white-space: nowrap;
  padding: 0 var(--sd-sp-2);
  align-self: center;
}


/* ==========================================================================
   9. TOP CASINOS LIST — [sd_top_casinos]
   ========================================================================== */
.sd-top-casinos { /* inherits .sd-card */ }

.sd-top-casinos-title {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--sd-text-2);
  margin: 0;
}

.sd-top-casinos-list { list-style: none; margin: 0; padding: 0; }

/* O24 now inline on <li> elements */
.sd-top-casino-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: var(--sd-sp-3);
  padding: var(--sd-sp-3) var(--sd-sp-5);
  border-bottom: 1px solid var(--sd-line);
}
.sd-top-casino-row:last-child { border-bottom: none; }

/* Rank badge — gold/silver/bronze for top 3 */
.sd-top-casino-rank {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-lg);
  font-weight: 800;
  color: var(--sd-line-3);
  text-align: center;
  line-height: 1;
}
.sd-row--rank-1 .sd-top-casino-rank { color: var(--sd-gold-hi); }
.sd-row--rank-2 .sd-top-casino-rank { color: #b0b8c8; }
.sd-row--rank-3 .sd-top-casino-rank { color: #b87333; }

.sd-top-casino-info { min-width: 0; }
.sd-top-casino-name {
  display: block;
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-md);
  font-weight: 700;
  color: var(--sd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sd-top-casino-bonus {
  display: block;
  font-size: var(--sd-t-sm);
  font-weight: 500;
  color: var(--sd-gold-hi);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sd-top-casino-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sd-sp-1);
  margin-top: var(--sd-sp-1);
}

.sd-top-casino-score {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-md);
  font-weight: 800;
  color: var(--sd-gold-hi);
  white-space: nowrap;
  flex-shrink: 0;
}
.sd-top-casino-score-denom {
  font-size: var(--sd-t-xs);
  font-weight: 600;
  color: var(--sd-text-3);
}

.sd-top-casino-cta {
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 8px var(--sd-sp-3);
  min-height: 36px;
}
.sd-top-casino-cta::after { content: none; }

/* Footer "see all" link */
.sd-top-casinos-footer {
  padding: var(--sd-sp-3) var(--sd-sp-5);
  border-top: 1px solid var(--sd-line);
  text-align: center;
}
.sd-top-casinos-see-all {
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-sky);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.sd-top-casinos-see-all:hover { text-decoration: underline; }


/* ==========================================================================
   10. RTP METER — [sd_rtp_meter]
   ========================================================================== */
.sd-rtp-meter { margin-block: 1rem; contain: layout paint; }

.sd-rtp-meter-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sd-sp-2);
}
.sd-rtp-meter-val {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-jade);
}

/* Shared fill */
.sd-rtp-fill { background: linear-gradient(90deg, var(--sd-jade), var(--sd-sky)); }

/* Color modifiers based on RTP value */
.sd-rtp-fill--high { background: linear-gradient(90deg, var(--sd-emerald), var(--sd-jade)); }
.sd-rtp-fill--avg  { background: linear-gradient(90deg, var(--sd-jade), var(--sd-sky)); }
.sd-rtp-fill--low  { background: linear-gradient(90deg, var(--sd-amber), var(--sd-rose)); }

.sd-rtp-meter-context {
  margin: var(--sd-sp-2) 0 0;
  font-size: var(--sd-t-xs);
  color: var(--sd-text-2);
  font-style: italic;
  line-height: 1.4;
}


/* ==========================================================================
   11. VOLATILITY BADGE — [sd_volatility]
   ========================================================================== */
.sd-vol-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sd-sp-1);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--sd-r-sm);
  border: 1px solid;
  white-space: nowrap;
  letter-spacing: 0.02em;
  min-height: 26px;
}
.sd-vol-badge--low       { color: var(--sd-jade);   border-color: var(--sd-jade-border);   background: var(--sd-jade-bg); }
.sd-vol-badge--medium    { color: var(--sd-sky);    border-color: var(--sd-sky-border);    background: var(--sd-sky-bg); }
.sd-vol-badge--high      { color: var(--sd-amber);  border-color: var(--sd-amber-border);  background: var(--sd-amber-bg); }
.sd-vol-badge--very-high { color: var(--sd-rose);   border-color: var(--sd-rose-border);   background: var(--sd-rose-bg); }
.sd-vol-badge--extreme   { color: #b83030; border-color: rgba(184,48,48,0.35); background: rgba(184,48,48,0.09); }

/* Optional description text */
.sd-vol-desc {
  display: block;
  font-size: var(--sd-t-xs);
  color: var(--sd-text-2);
  margin-top: var(--sd-sp-1);
  font-style: italic;
  line-height: 1.4;
}


/* ==========================================================================
   12. RATING PANEL — [sd_rating]
   ========================================================================== */
.sd-rating-panel {
  border-left: 3px solid var(--sd-gold);
}

.sd-rating-subject {
  font-size: var(--sd-t-xs);
  color: var(--sd-text-2);
  font-weight: 500;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-rating-inner { padding: var(--sd-sp-4) var(--sd-sp-5); }

.sd-rating-score-row {
  display: flex;
  align-items: baseline;
  gap: var(--sd-sp-2);
  margin-bottom: var(--sd-sp-2);
  flex-wrap: wrap;
}
.sd-rating-num {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-2xl);
  font-weight: 800;
  line-height: 1;
  color: var(--sd-gold-hi);
}
.sd-rating-denom {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-lg);
  font-weight: 600;
  color: var(--sd-text-3);
}
.sd-rating-desc {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-gold);
  letter-spacing: 0.02em;
  margin-left: auto;
}

/* Stars */
.sd-rating-stars {
  margin-bottom: var(--sd-sp-3);
}
.sd-rating-stars .sd-stars { font-size: 16px; letter-spacing: 2px; }

.sd-rating-bar-wrap { margin-top: var(--sd-sp-2); }
.sd-rating-fill { background: linear-gradient(90deg, var(--sd-gold), var(--sd-gold-hi)); }

.sd-rating-attr {
  font-size: var(--sd-t-xs);
  color: var(--sd-text-3);
  margin: var(--sd-sp-3) 0 0;
  font-style: italic;
}


/* ==========================================================================
   13. RESPONSIBLE GAMBLING — [sd_18plus]
   ========================================================================== */
.sd-responsible-gambling {
  contain: layout paint;
  margin-block: 1.5rem;
}

/* Bar style */
.sd-responsible-gambling--bar {
  display: flex;
  align-items: center;
  gap: var(--sd-sp-3);
  padding: var(--sd-sp-3) var(--sd-sp-4);
  border: 1px solid var(--sd-line-2);
  border-radius: var(--sd-r-md);
  background: rgba(255,255,255,0.02);
}

/* Box style */
.sd-responsible-gambling--box {
  border: 1px solid var(--sd-line-2);
  border-radius: var(--sd-r-lg);
  background: var(--sd-surface);
  box-shadow: var(--sd-shadow);
  overflow: hidden;
}
.sd-18-box-head {
  display: flex;
  align-items: center;
  gap: var(--sd-sp-3);
  padding: var(--sd-sp-3) var(--sd-sp-5);
  background: rgba(0,0,0,0.18);
  border-bottom: 1px solid var(--sd-line);
}
.sd-18-box-title {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-text);
  letter-spacing: 0.02em;
}
.sd-responsible-gambling--box .sd-18-message {
  padding: var(--sd-sp-4) var(--sd-sp-5) var(--sd-sp-3);
  display: block;
}
.sd-18-orgs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sd-sp-2);
  padding: 0 var(--sd-sp-5) var(--sd-sp-4);
}
.sd-18-org-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--sd-t-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--sd-r-sm);
  border: 1px solid var(--sd-sky-border);
  background: var(--sd-sky-bg);
  color: var(--sd-sky);
  text-decoration: none;
  white-space: nowrap;
  min-height: 28px;
}
.sd-18-org-pill:hover { background: rgba(74,146,237,0.15); }

/* Shared */
.sd-18-badge {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-xs);
  font-weight: 800;
  background: var(--sd-text-3);
  color: var(--sd-canvas);
  padding: 2px var(--sd-sp-2);
  border-radius: var(--sd-r-xs);
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.sd-18-message {
  font-size: var(--sd-t-xs);
  color: var(--sd-text-2);
  line-height: 1.5;
}
.sd-18-message a { color: var(--sd-sky); text-decoration: none; }
.sd-18-message a:hover { text-decoration: underline; }


/* ==========================================================================
   14. PROVIDER CARD — [sd_provider_card]
   ========================================================================== */
.sd-provider-card { /* inherits .sd-card */ }

.sd-provider-name-wrap {
  padding: var(--sd-sp-4) var(--sd-sp-5) var(--sd-sp-3);
  border-bottom: 1px solid var(--sd-line);
}
.sd-provider-name {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-lg);
  font-weight: 800;
  color: var(--sd-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: var(--sd-sp-1);
}
a.sd-provider-name { color: var(--sd-gold-hi); }
a.sd-provider-name:hover { text-decoration: underline; }
.sd-provider-ext {
  font-size: var(--sd-t-xs);
  opacity: 0.6;
  font-style: normal;
}

.sd-provider-dl { margin: 0; padding: 0; }

/* Notable games section */
.sd-provider-games {
  padding: var(--sd-sp-3) var(--sd-sp-5);
  border-top: 1px solid var(--sd-line);
}
.sd-provider-games-label {
  display: block;
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-text-2);
  margin-bottom: var(--sd-sp-2);
}
.sd-provider-games-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sd-sp-1) var(--sd-sp-2);
}
.sd-provider-game-chip {
  font-size: var(--sd-t-xs);
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--sd-r-sm);
  border: 1px solid var(--sd-gold-border);
  background: var(--sd-gold-bg);
  color: var(--sd-gold-hi);
  white-space: nowrap;
}


/* ==========================================================================
   15. COMPARISON TABLE — [sd_comparison]
   ========================================================================== */
.sd-comparison { margin-block: 1.75rem; contain: layout paint; }

.sd-comparison-title-row {
  margin-bottom: var(--sd-sp-3);
}

.sd-comparison-wrap {
  background: var(--sd-surface);
  border: 1px solid var(--sd-line-2);
  border-radius: var(--sd-r-lg);
  overflow: hidden;
  box-shadow: var(--sd-shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sd-comparison-table { width: 100%; border-collapse: collapse; min-width: 300px; }
.sd-comparison-table thead { background: rgba(0,0,0,0.22); }
.sd-comparison-table th,
.sd-comparison-table td {
  padding: 9px var(--sd-sp-4);
  border-bottom: 1px solid var(--sd-line);
  border-right: 1px solid var(--sd-line);
  font-size: var(--sd-t-sm);
  vertical-align: middle;
}
.sd-comparison-table tr:last-child th,
.sd-comparison-table tr:last-child td { border-bottom: none; }

/* Last column: no right border */
.sd-comp-label-col:last-child,
.sd-comp-game-col:last-child,
.sd-comp-val-col:last-child { border-right: none; }

.sd-comp-label-col {
  font-size: var(--sd-t-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sd-text-2);
  background: rgba(0,0,0,0.12);
  white-space: nowrap;
  width: 34%;
}
.sd-comp-game-col {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-gold-hi);
  background: var(--sd-surface);
  text-align: center;
}
.sd-comp-game-col a { color: inherit; text-decoration: none; }
.sd-comp-game-col a:hover { text-decoration: underline; }

.sd-comp-val-col {
  color: var(--sd-text);
  font-family: var(--sd-font-head);
  font-weight: 700;
  font-size: var(--sd-t-sm);
  text-align: center;
  background: var(--sd-surface-2);
}

/* Winner column — emerald highlight */
.sd-comp-val-col--winner {
  background: var(--sd-emerald-bg);
  color: var(--sd-emerald);
}
.sd-comp-val-col--winner .sd-tier-chip { background: transparent; }

/* N/A placeholder */
.sd-comp-na { color: var(--sd-text-3); font-weight: 500; }

/* CTA/review row in tfoot */
.sd-comp-cta-row td,
.sd-comp-cta-row th {
  background: rgba(0,0,0,0.18);
  border-top: 1px solid var(--sd-line-2);
}
.sd-comp-review-cell { text-align: center; }
.sd-comp-review-link {
  font-size: var(--sd-t-xs);
  font-weight: 700;
  color: var(--sd-sky);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.sd-comp-review-link:hover { text-decoration: underline; }


/* ==========================================================================
   16. ACCESSIBILITY
   ========================================================================== */
.sd-component a:focus-visible,
.sd-component [role="button"]:focus-visible,
.sd-cta:focus-visible,
.sd-top-casino-cta:focus-visible,
.sd-18-org-pill:focus-visible,
.sd-comp-review-link:focus-visible {
  outline: 2px solid var(--sd-gold);
  outline-offset: 2px;
  border-radius: var(--sd-r-xs);
}


/* ==========================================================================
   17. RESPONSIVE
   Sidebar-safe: all components tested at ≥ 240px.
   ========================================================================== */
@media (max-width: 480px) {
  .sd-top-casino-row {
    grid-template-columns: 24px 1fr auto;
    gap: var(--sd-sp-2);
    padding: 10px var(--sd-sp-4);
  }
  .sd-top-casino-score { display: none; }

  .sd-card-head {
    padding: var(--sd-sp-2) var(--sd-sp-4);
    flex-wrap: wrap;
  }

  .sd-casino-offer,
  .sd-casino-details,
  .sd-casino-cta-wrap {
    padding-inline: var(--sd-sp-4);
  }

  .sd-stat-row { padding-inline: var(--sd-sp-4); }
  .sd-stats-group-sep { padding-inline: var(--sd-sp-4); }

  .sd-verdict-hero { padding-inline: var(--sd-sp-4); gap: var(--sd-sp-3); }
  .sd-tier-mark { font-size: var(--sd-t-2xl); width: 42px; }

  .sd-rating-score-row { gap: var(--sd-sp-1); }
  .sd-rating-desc { margin-left: 0; flex-basis: 100%; }

  .sd-18-orgs { gap: var(--sd-sp-1); }
  .sd-18-org-pill { font-size: var(--sd-t-2xs); padding: 3px 7px; }
}

@media (max-width: 300px) {
  .sd-stats-body { grid-template-columns: 1fr; }
  .sd-casino-cta-wrap .sd-cta::after { content: none; }
  .sd-top-casino-row { grid-template-columns: 1fr auto; padding-left: var(--sd-sp-3); }
  .sd-top-casino-rank { display: none; }
  .sd-qf-dt { padding-left: var(--sd-sp-3); }
  .sd-qf-dd { padding-right: var(--sd-sp-3); }
}


/* ==========================================================================
   18. MOTION — O11
   All transitions gated behind prefers-reduced-motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .sd-meter-fill { transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
  .sd-rating-fill { transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
  .sd-rtp-fill { transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }

  .sd-cta { transition: background-color 0.14s ease, color 0.14s ease; }
  .sd-cta:hover, .sd-cta:focus { background-color: var(--sd-gold-hi); color: #0b0e13; }
  .sd-top-casino-cta:hover, .sd-top-casino-cta:focus { background-color: var(--sd-gold-hi); }

  .sd-pill--code { transition: background-color 0.12s ease, border-color 0.12s ease; }
  .sd-pill--code:hover, .sd-pill--code:focus {
    background-color: rgba(200,160,74,0.18);
    border-color: rgba(200,160,74,0.45);
  }

  .sd-comp-review-link { transition: color 0.12s ease; }
  .sd-top-casinos-see-all { transition: color 0.12s ease; }
}

/* ==========================================================================
   v4.2.0 ADDITIONS — Shortcode Quality Pass
   ========================================================================== */

/* ── [sd_stats] compact mode ─────────────────────────────────────────────── */
.sd-stats-panel--compact .sd-stats-body { grid-template-columns: 1fr; }

.sd-stats-assessed {
  margin-left: var(--sd-sp-3);
  opacity: 0.7;
}

/* ── [sd_bonus_verdict] last-assessed row + read-more footer ─────────────── */
.sd-vt-val--meta {
  font-family: var(--sd-font-body);
  font-size: var(--sd-t-xs);
  font-weight: 500;
  color: var(--sd-text-2);
}

.sd-verdict-footer {
  padding: var(--sd-sp-3) var(--sd-sp-5);
  border-top: 1px solid var(--sd-line);
  background: rgba(0,0,0,0.06);
}
.sd-verdict-readmore {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-sky);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.sd-verdict-readmore:hover { text-decoration: underline; }

/* ── [sd_feature_tags] overflow "+N more" chip ──────────────────────────── */
.sd-feature-tag--more {
  color: var(--sd-text-2);
  border-color: var(--sd-line-2);
  background: rgba(255,255,255,0.03);
  font-size: var(--sd-t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── [sd_quick_facts] score in header ───────────────────────────────────── */
.sd-qf-head-score {
  display: flex;
  align-items: baseline;
  gap: 1px;
  flex-shrink: 0;
}
.sd-qf-head-score .sd-qf-score-num {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-xl);
  font-weight: 800;
  line-height: 1;
  color: var(--sd-gold-hi);
}
.sd-qf-head-score .sd-score-denom {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-xs);
  font-weight: 700;
  color: var(--sd-text-3);
}

/* Feature chips inside quick-facts */
.sd-qf-dd--features {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
  font-family: var(--sd-font-body);
}
.sd-qf-feature-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--sd-r-xs);
  border: 1px solid;
  white-space: nowrap;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}
/* Inherit colour from sd-feature-tag-- variants via cascade */

/* ── [sd_casino_card] Est. pill + review link ───────────────────────────── */
.sd-pill--established {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--sd-text-2);
}

/* ── [sd_top_casinos] medal rank ────────────────────────────────────────── */
.sd-rank-medal {
  font-size: var(--sd-t-lg);
  line-height: 1;
}

/* ── [sd_rtp_meter] average tick marker ─────────────────────────────────── */
.sd-rtp-meter-track-wrap {
  position: relative;
  padding-bottom: 18px;  /* room for avg label */
}

.sd-rtp-avg-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.18);
  border-radius: 99px;
  transform: translateX(-50%);
  pointer-events: none;
}

.sd-rtp-avg-label {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-size: var(--sd-t-2xs);
  color: var(--sd-text-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}

/* ── [sd_volatility] scale variant ─────────────────────────────────────── */
.sd-vol-scale {
  display: inline-flex;
  align-items: center;
  gap: var(--sd-sp-2);
  flex-wrap: wrap;
  contain: layout paint;
}

.sd-vol-scale-label {
  font-size: var(--sd-t-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sd-text-2);
  flex-shrink: 0;
}

.sd-vol-scale-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sd-vol-scale-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sd-line-2);
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sd-vol-scale-dot--active { background: currentColor; }
.sd-vol-scale-dot--current {
  transform: scale(1.3);
  border-color: currentColor;
}

/* Inherit current color from vol level class */
.sd-vol--low       .sd-vol-scale-dot--active { color: var(--sd-jade); }
.sd-vol--medium    .sd-vol-scale-dot--active { color: var(--sd-sky); }
.sd-vol--high      .sd-vol-scale-dot--active { color: var(--sd-amber); }
.sd-vol--very-high .sd-vol-scale-dot--active { color: var(--sd-rose); }
.sd-vol--extreme   .sd-vol-scale-dot--active { color: #b83030; }

.sd-vol-scale-text {
  font-size: var(--sd-t-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--sd-r-xs);
  border: 1px solid currentColor;
  letter-spacing: 0.02em;
}

/* ── [sd_rating] summary + pros/cons ────────────────────────────────────── */
.sd-rating-summary {
  font-size: var(--sd-t-sm);
  color: var(--sd-text-2);
  line-height: 1.55;
  margin: var(--sd-sp-3) 0 0;
  font-style: italic;
}

.sd-rating-verdict-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sd-sp-3);
  margin-top: var(--sd-sp-4);
}

.sd-rating-pros,
.sd-rating-cons {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sd-sp-1);
}

.sd-rating-pro-item,
.sd-rating-con-item {
  font-size: var(--sd-t-xs);
  font-weight: 500;
  color: var(--sd-text-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.sd-rating-pro-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-size: 11px;
  color: var(--sd-emerald);
  font-weight: 700;
}
.sd-rating-con-item::before {
  content: '✗';
  position: absolute;
  left: 0;
  font-size: 11px;
  color: var(--sd-rose);
  font-weight: 700;
}

@media (max-width: 360px) {
  .sd-rating-verdict-lists { grid-template-columns: 1fr; }
}

/* ── [sd_18plus] compact variant ────────────────────────────────────────── */
.sd-responsible-gambling--compact {
  display: inline-flex;
  align-items: center;
  gap: var(--sd-sp-2);
  flex-wrap: wrap;
}
.sd-responsible-gambling--compact .sd-18-message {
  display: inline;
  font-size: var(--sd-t-xs);
}

/* ── [sd_provider_card] bio + browse link ───────────────────────────────── */
.sd-provider-bio {
  font-size: var(--sd-t-xs);
  color: var(--sd-text-2);
  line-height: 1.55;
  margin: var(--sd-sp-2) 0 0;
  font-style: normal;
}

.sd-provider-games-link {
  padding: var(--sd-sp-3) var(--sd-sp-5);
  border-top: 1px solid var(--sd-line);
}
.sd-provider-browse-link {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-sky);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.sd-provider-browse-link:hover { text-decoration: underline; }

/* ── [sd_comparison] volatility badge in cells ──────────────────────────── */
.sd-comp-val-col .sd-vol-badge {
  font-size: 11px;
  padding: 2px 7px;
  min-height: 22px;
}
.sd-comp-val-col .sd-vol-dot {
  width: 6px;
  height: 6px;
}

/* ── Accessibility additions ─────────────────────────────────────────────── */
.sd-component .sd-verdict-readmore:focus-visible,
.sd-component .sd-casino-review-link:focus-visible,
.sd-component .sd-provider-browse-link:focus-visible,
.sd-component .sd-provider-browse-link:focus-visible {
  outline: 2px solid var(--sd-gold);
  outline-offset: 2px;
  border-radius: var(--sd-r-xs);
}


/* ==========================================================================
   v4.3.0 ADDITIONS — Editorial Modules
   ==========================================================================

   Structure:
     E1. [sd_pros_cons]    Pros & Cons block
     E2. [sd_verdict]      Verdict framework
     E3. [sd_player_fit]   Audience fit matrix
     E4. [sd_methodology]  Test methodology box
     E5. [sd_author_box]   Author credentials
     E6. [sd_mechanics]    Mechanic cards
     E7. [sd_term]         Inline glossary tooltip
   ========================================================================== */

/* ── E1. PROS & CONS ─────────────────────────────────────────────────────── */

.sd-pros-cons .sd-card-head {
  border-bottom: 1px solid var(--sd-line);
}

.sd-pc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.sd-pc-col { padding: var(--sd-sp-4) var(--sd-sp-5); }
.sd-pc-col--pros { border-right: 1px solid var(--sd-line); }

.sd-pc-col-head {
  display: flex;
  align-items: center;
  gap: var(--sd-sp-2);
  margin-bottom: var(--sd-sp-3);
}

.sd-pc-icon {
  font-size: var(--sd-t-lg);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.sd-pc-col--pros .sd-pc-icon { color: var(--sd-emerald); }
.sd-pc-col--cons .sd-pc-icon { color: var(--sd-rose); }

.sd-pc-col-label {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.sd-pc-col--pros .sd-pc-col-label { color: var(--sd-emerald); }
.sd-pc-col--cons .sd-pc-col-label { color: var(--sd-rose); }

.sd-pc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sd-sp-2);
}

.sd-pc-item {
  font-family: var(--sd-font-body);
  font-size: var(--sd-t-sm);
  font-weight: 500;
  color: var(--sd-text-2);
  line-height: 1.5;
  padding-left: var(--sd-sp-4);
  position: relative;
}

.sd-pc-list--pros .sd-pc-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-size: 11px;
  color: var(--sd-emerald);
  font-weight: 700;
  top: 1px;
}
.sd-pc-list--cons .sd-pc-item::before {
  content: '✗';
  position: absolute;
  left: 0;
  font-size: 11px;
  color: var(--sd-rose);
  font-weight: 700;
  top: 1px;
}

@media (max-width: 480px) {
  .sd-pc-body { grid-template-columns: 1fr; }
  .sd-pc-col--pros { border-right: none; border-bottom: 1px solid var(--sd-line); }
}

/* ── E2. VERDICT ─────────────────────────────────────────────────────────── */

/* overflow:hidden removed — same reason as .sd-card: would clip .sd-tooltip
   when [sd_term] appears inside verdict body text. */
.sd-verdict { }

/* Left accent bar colour by recommendation */
.sd-verdict--recommend  { border-left: 3px solid var(--sd-emerald); }
.sd-verdict--conditional { border-left: 3px solid var(--sd-amber); }
.sd-verdict--avoid      { border-left: 3px solid var(--sd-rose); }

.sd-verdict-head-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}
.sd-verdict-head-score .sd-score-num {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-xl);
  font-weight: 800;
  line-height: 1;
  color: var(--sd-gold-hi);
}
.sd-verdict-head-score .sd-score-denom {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-xs);
  font-weight: 700;
  color: var(--sd-text-3);
}

.sd-verdict-body { padding: var(--sd-sp-5); }

.sd-verdict-badge-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sd-sp-3);
  margin-bottom: var(--sd-sp-4);
}

.sd-verdict-symbol {
  width: 36px;
  height: 36px;
  border-radius: var(--sd-r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--sd-t-lg);
  font-weight: 700;
  flex-shrink: 0;
}
.sd-verdict--recommend   .sd-verdict-symbol { background: var(--sd-emerald-bg); color: var(--sd-emerald); border: 1px solid var(--sd-emerald-border); }
.sd-verdict--conditional .sd-verdict-symbol { background: var(--sd-amber-bg);   color: var(--sd-amber);   border: 1px solid var(--sd-amber-border); }
.sd-verdict--avoid       .sd-verdict-symbol { background: var(--sd-rose-bg);    color: var(--sd-rose);    border: 1px solid var(--sd-rose-border); }

.sd-verdict-label-block { display: flex; flex-direction: column; gap: 3px; }

.sd-verdict-label {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-md);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sd-verdict--recommend   .sd-verdict-label { color: var(--sd-emerald); }
.sd-verdict--conditional .sd-verdict-label { color: var(--sd-amber); }
.sd-verdict--avoid       .sd-verdict-label { color: var(--sd-rose); }

.sd-verdict-sublabel {
  font-size: var(--sd-t-xs);
  color: var(--sd-text-3);
  line-height: 1.45;
}

.sd-verdict-text {
  font-family: var(--sd-font-body);
  font-size: var(--sd-t-base);
  color: var(--sd-text);
  line-height: 1.6;
  margin: 0 0 var(--sd-sp-4);
  font-style: italic;
}

.sd-verdict-fit-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sd-sp-2);
  padding: var(--sd-sp-3) 0 0;
  border-top: 1px solid var(--sd-line);
}

.sd-verdict-fit-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sd-sp-2);
  font-size: var(--sd-t-sm);
}

.sd-vf-icon {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}
.sd-verdict-fit-row--best .sd-vf-icon { color: var(--sd-emerald); }
.sd-verdict-fit-row--not  .sd-vf-icon { color: var(--sd-rose); }

.sd-vf-label {
  font-weight: 700;
  color: var(--sd-text-3);
  flex-shrink: 0;
  min-width: 64px;
}

.sd-vf-value { color: var(--sd-text-2); line-height: 1.45; }

/* ── E3. PLAYER FIT ──────────────────────────────────────────────────────── */

.sd-pf-audience-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--sd-sp-4) var(--sd-sp-5);
  border-bottom: 1px solid var(--sd-line);
}

.sd-pf-audience-row {
  display: flex;
  align-items: center;
  gap: var(--sd-sp-3);
  padding: var(--sd-sp-3) 0;
  border-bottom: 1px solid var(--sd-line);
}
.sd-pf-audience-row:last-child { border-bottom: none; }

.sd-pf-icon {
  font-size: var(--sd-t-lg);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.sd-pf-aud-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sd-pf-aud-label {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-text);
  letter-spacing: 0.02em;
}

.sd-pf-bar-wrap {
  display: flex;
  align-items: center;
  gap: var(--sd-sp-3);
}

.sd-pf-bar-track {
  flex: 1;
  height: 6px;
  background: var(--sd-surface-3);
  border-radius: 99px;
  overflow: hidden;
}

.sd-pf-bar-fill {
  height: 100%;
  border-radius: 99px;
  width: var(--pf-pct, 0%);
  will-change: width;
  transition: width 0.4s ease;
}

.sd-fit--low    .sd-pf-bar-fill { background: var(--sd-rose); }
.sd-fit--medium .sd-pf-bar-fill { background: var(--sd-amber); }
.sd-fit--high   .sd-pf-bar-fill { background: var(--sd-emerald); }

.sd-pf-level-label {
  font-size: var(--sd-t-2xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
  width: 68px;
  text-align: right;
}
.sd-fit--low    .sd-pf-level-label { color: var(--sd-rose); }
.sd-fit--medium .sd-pf-level-label { color: var(--sd-amber); }
.sd-fit--high   .sd-pf-level-label { color: var(--sd-emerald); }

.sd-pf-context-list {
  margin: 0;
  padding: var(--sd-sp-4) var(--sd-sp-5);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sd-pf-ctx-row {
  display: flex;
  align-items: baseline;
  gap: var(--sd-sp-3);
  padding: var(--sd-sp-2) 0;
  border-bottom: 1px solid var(--sd-line);
  font-size: var(--sd-t-sm);
}
.sd-pf-ctx-row:last-child { border-bottom: none; }

.sd-pf-ctx-row dt {
  font-weight: 700;
  color: var(--sd-text-3);
  flex-shrink: 0;
  min-width: 140px;
  font-family: var(--sd-font-body);
}
.sd-pf-ctx-row dd {
  color: var(--sd-text-2);
  line-height: 1.45;
  margin: 0;
}
.sd-pf-ctx-row--highlight dd { color: var(--sd-text); font-weight: 600; }

/* ── E4. METHODOLOGY ─────────────────────────────────────────────────────── */

.sd-methodology { border-top: 2px solid var(--sd-sky-border); }

.sd-methodology-badge {
  font-size: var(--sd-t-2xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sd-sky);
  background: var(--sd-sky-bg);
  border: 1px solid var(--sd-sky-border);
  border-radius: var(--sd-r-xs);
  padding: 2px 7px;
}

.sd-meth-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--sd-sp-5);
  margin: 0;
}

.sd-meth-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sd-sp-4);
  padding: var(--sd-sp-3) 0;
  border-bottom: 1px solid var(--sd-line);
}
.sd-meth-row:first-child { padding-top: var(--sd-sp-4); }
.sd-meth-row:last-child  { border-bottom: none; padding-bottom: var(--sd-sp-4); }

.sd-meth-key {
  font-size: var(--sd-t-sm);
  font-weight: 700;
  color: var(--sd-text-3);
  flex-shrink: 0;
  min-width: 110px;
  font-family: var(--sd-font-body);
  padding-top: 2px;
}

.sd-meth-val {
  font-size: var(--sd-t-sm);
  color: var(--sd-text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sd-sp-2);
  margin: 0;
}

.sd-meth-context {
  color: var(--sd-text-3);
  font-size: var(--sd-t-xs);
}

.sd-meth-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--sd-t-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--sd-r-xs);
  border: 1px solid;
}
.sd-meth-chip--verified   { background: var(--sd-emerald-bg); color: var(--sd-emerald); border-color: var(--sd-emerald-border); }
.sd-meth-chip--unverified { background: var(--sd-amber-bg);   color: var(--sd-amber);   border-color: var(--sd-amber-border); }
.sd-meth-chip--real       { background: var(--sd-sky-bg);     color: var(--sd-sky);     border-color: var(--sd-sky-border); }
.sd-meth-chip--neutral    { background: var(--sd-surface-3);  color: var(--sd-text-2);  border-color: var(--sd-line-2); }

.sd-meth-notes {
  padding: var(--sd-sp-3) var(--sd-sp-5) var(--sd-sp-4);
  border-top: 1px solid var(--sd-line);
}
.sd-meth-notes-label {
  display: block;
  font-size: var(--sd-t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sd-text-3);
  margin-bottom: var(--sd-sp-2);
}
.sd-meth-notes-text {
  font-size: var(--sd-t-sm);
  color: var(--sd-text-2);
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}

/* ── E5. AUTHOR BOX ──────────────────────────────────────────────────────── */

.sd-author-box { border-top: 2px solid var(--sd-gold-border); }

.sd-author-trust-badge {
  font-size: var(--sd-t-2xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sd-gold);
  background: var(--sd-gold-bg);
  border: 1px solid var(--sd-gold-border);
  border-radius: var(--sd-r-xs);
  padding: 2px 7px;
}

.sd-author-body {
  display: flex;
  align-items: flex-start;
  gap: var(--sd-sp-5);
  padding: var(--sd-sp-5);
}

.sd-author-avatar-wrap { flex-shrink: 0; }

.sd-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--sd-line-2);
  display: block;
  object-fit: cover;
}

.sd-author-info { flex: 1; display: flex; flex-direction: column; gap: var(--sd-sp-2); }

.sd-author-name-row { display: flex; flex-direction: column; gap: 2px; }

.sd-author-name-link,
.sd-author-name {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-md);
  font-weight: 700;
  color: var(--sd-text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.sd-author-name-link:hover { color: var(--sd-gold); }

.sd-author-role {
  font-size: var(--sd-t-xs);
  color: var(--sd-gold);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sd-author-stats {
  display: flex;
  gap: var(--sd-sp-4);
  flex-wrap: wrap;
}
.sd-author-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sd-author-stat-val {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-md);
  font-weight: 800;
  color: var(--sd-text);
  line-height: 1;
}
.sd-author-stat-label {
  font-size: var(--sd-t-2xs);
  color: var(--sd-text-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sd-author-bio {
  font-size: var(--sd-t-sm);
  color: var(--sd-text-2);
  line-height: 1.6;
  margin: 0;
}

.sd-author-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sd-sp-1);
}
.sd-author-exp-tag {
  font-size: var(--sd-t-2xs);
  font-weight: 600;
  padding: 2px 8px;
  background: var(--sd-surface-3);
  border: 1px solid var(--sd-line-2);
  border-radius: var(--sd-r-xs);
  color: var(--sd-text-2);
  letter-spacing: 0.03em;
}

@media (max-width: 480px) {
  .sd-author-body { flex-direction: column; gap: var(--sd-sp-4); }
  .sd-author-avatar { width: 56px; height: 56px; }
}

/* ── E6. MECHANICS ───────────────────────────────────────────────────────── */

.sd-mechanics { contain: layout paint; }

.sd-mechanics-head {
  padding: var(--sd-sp-4) var(--sd-sp-5) 0;
}

.sd-mechanics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sd-sp-3);
  padding: var(--sd-sp-4) var(--sd-sp-5);
}

.sd-mechanics--cards .sd-mechanics-grid { gap: var(--sd-sp-4); }

.sd-mechanic-card {
  background: var(--sd-surface-2);
  border: 1px solid var(--sd-line-2);
  border-radius: var(--sd-r-md);
  overflow: hidden;
}

.sd-mechanic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sd-sp-3);
  padding: var(--sd-sp-3) var(--sd-sp-4);
  border-bottom: 1px solid var(--sd-line);
  background: var(--sd-surface-3);
}

.sd-mechanic-name {
  font-family: var(--sd-font-head);
  font-size: var(--sd-t-base);
  font-weight: 700;
  color: var(--sd-text);
  letter-spacing: 0.02em;
}

.sd-mechanic-category {
  font-size: var(--sd-t-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sd-sky);
  background: var(--sd-sky-bg);
  border: 1px solid var(--sd-sky-border);
  border-radius: var(--sd-r-xs);
  padding: 2px 7px;
  flex-shrink: 0;
}

.sd-mechanic-desc {
  font-size: var(--sd-t-sm);
  color: var(--sd-text-2);
  line-height: 1.65;
  margin: 0;
  padding: var(--sd-sp-4);
}

.sd-mechanic-details {
  border-top: 1px solid var(--sd-line);
}

.sd-mechanic-details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sd-sp-3) var(--sd-sp-4);
  font-size: var(--sd-t-xs);
  font-weight: 700;
  color: var(--sd-sky);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  list-style: none;
  user-select: none;
}
.sd-mechanic-details-toggle::-webkit-details-marker { display: none; }
.sd-mechanic-details-toggle::after {
  content: '▸';
  font-size: 10px;
  color: var(--sd-text-3);
  transition: transform 0.18s ease;
}
.sd-mechanic-details[open] > .sd-mechanic-details-toggle::after { transform: rotate(90deg); }
.sd-mechanic-details-toggle:hover { color: var(--sd-gold); }

.sd-mechanic-details-body {
  padding: 0 var(--sd-sp-4) var(--sd-sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sd-sp-4);
}

.sd-mechanic-detail-row { display: flex; flex-direction: column; gap: 4px; }

.sd-mechanic-detail-label {
  font-size: var(--sd-t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sd-text-3);
}

.sd-mechanic-detail-text {
  font-size: var(--sd-t-sm);
  color: var(--sd-text-2);
  line-height: 1.6;
  margin: 0;
}

.sd-mechanic-tip {
  display: flex;
  align-items: flex-start;
  gap: var(--sd-sp-2);
  padding: var(--sd-sp-3);
  background: var(--sd-gold-bg);
  border: 1px solid var(--sd-gold-border);
  border-radius: var(--sd-r-sm);
}

.sd-mechanic-tip-icon { font-size: 13px; line-height: 1; flex-shrink: 0; margin-top: 1px; }

.sd-mechanic-tip-text {
  font-size: var(--sd-t-sm);
  color: var(--sd-gold-hi);
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}

/* ── E7. GLOSSARY TERM + TOOLTIP ─────────────────────────────────────────── */

.sd-term {
  position: relative;
  display: inline;
  border-bottom: 1px dashed var(--sd-sky);
  cursor: help;
  color: inherit;
}

.sd-term:focus-visible {
  outline: 2px solid var(--sd-gold);
  outline-offset: 1px;
  border-radius: var(--sd-r-xs);
}

.sd-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  max-width: 90vw;
  background: var(--sd-surface-3);
  border: 1px solid var(--sd-line-3);
  border-radius: var(--sd-r-md);
  padding: var(--sd-sp-3) var(--sd-sp-4);
  font-family: var(--sd-font-body);
  font-size: var(--sd-t-xs);
  font-weight: 500;
  color: var(--sd-text-2);
  line-height: 1.55;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  pointer-events: none;
  font-style: normal;
}

/* Caret */
.sd-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--sd-surface-3);
}

/* Flip to bottom when near right edge */
.sd-tooltip--flip {
  left: auto;
  right: 0;
  transform: none;
}
.sd-tooltip--flip::after {
  left: auto;
  right: 12px;
  transform: none;
}

.sd-term--active .sd-tooltip { display: block; }

@media (hover: none) {
  /* On touch devices, show/hide on tap rather than hover */
  .sd-term { cursor: pointer; }
}

/* ── Editorial admin label style ─────────────────────────────────────────── */
.sd-inline-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  margin-bottom: 4px;
  cursor: pointer;
}

