/* Sly Man's ACCA 6 — reader-facing landing styles.
 *
 * Gold-heavy ticket palette. Editorial not gaming — the copy is
 * "dream ticket, not a strategy" and the design should reflect
 * that: opulent but restrained, never neon.
 *
 * Palette:
 *   --acca-ground     off-cream stationery
 *   --acca-ink        near-black serif ink
 *   --acca-gold       primary editorial gold
 *   --acca-gold-soft  hairline / rule
 *   --acca-hair       hairline borders
 */

:root {
  --acca-ground:    #F5EFE1;
  --acca-cream:     #FBF7ED;
  --acca-ink:       #1B140A;
  --acca-ink-2:     #4A3D28;
  --acca-ink-3:     #7A6944;
  --acca-gold:      #B18A2C;
  --acca-gold-bright: #E4CE7F;
  --acca-gold-soft: #E8D9AE;
  --acca-hair:      rgba(122, 90, 15, 0.18);
  --acca-hair-strong: rgba(122, 90, 15, 0.35);
  --acca-anchor:    #7A6944;
  --acca-core:      #C39A26;
  --acca-booster:   #A8541A;
}

.page-acca {
  background: var(--acca-ground);
  color: var(--acca-ink);
}

.acca {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  font: 400 15px/1.55 "DM Sans", -apple-system, sans-serif;
}

/* ── Masthead ─────────────────────────────────────────────── */

.acca__masthead { margin-bottom: 32px; text-align: center; }

.acca__eyebrow {
  font: 700 11px/1 "DM Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--acca-gold);
  margin: 0 0 12px;
}

.acca__title {
  font: 700 32px/1.15 "Playfair Display", Georgia, serif;
  color: var(--acca-ink);
  margin: 0 0 12px;
  text-wrap: balance;
}

.acca__deck {
  font: 400 15.5px/1.5 "DM Sans", sans-serif;
  color: var(--acca-ink-2);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Hero: combined odds + confidence + shape ─────────────── */

.acca__hero {
  background: linear-gradient(180deg, #FCF6E4 0%, #F4E5B4 100%);
  border: 1px solid var(--acca-gold);
  border-radius: 12px;
  padding: 28px 24px;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55),
              0 4px 14px rgba(212, 175, 55, 0.20);
}

@media (max-width: 620px) {
  .acca__hero { grid-template-columns: 1fr; text-align: center; }
}

.acca__hero-price { display: flex; flex-direction: column; gap: 4px; }

.acca__hero-label {
  font: 700 10px/1 "DM Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--acca-gold);
}

.acca__hero-odds {
  font: 700 46px/1 "Playfair Display", Georgia, serif;
  color: var(--acca-ink);
  letter-spacing: -0.01em;
}

.acca__hero-floor {
  font: 500 12px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
  margin-top: 2px;
}

.acca__hero-stats {
  display: flex;
  gap: 24px;
  margin: 0;
}

.acca__hero-stat { display: flex; flex-direction: column; gap: 4px; }
.acca__hero-stat dt {
  font: 700 10px/1 "DM Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--acca-ink-3);
  margin: 0;
}
.acca__hero-stat dd {
  font: 700 20px/1 "Playfair Display", Georgia, serif;
  color: var(--acca-ink);
  margin: 0;
}

.acca__conf {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  color: var(--acca-cream);
  background: var(--acca-ink-3);
  font: 700 18px/1.2 "Playfair Display", Georgia, serif;
}
.acca__conf--a { background: var(--acca-gold); }
.acca__conf--b { background: var(--acca-ink-3); }
.acca__conf--c { background: rgba(30, 20, 6, 0.55); }

.acca__hero-stat--stability dd {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acca__stability-label {
  font: 700 16px/1.1 "Playfair Display", Georgia, serif;
  color: var(--acca-ink);
}
.acca__stability-hint {
  font: 500 10px/1.2 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.acca__stability--firm      .acca__stability-label { color: var(--acca-gold); }
.acca__stability--steady    .acca__stability-label { color: var(--acca-ink); }
.acca__stability--contested .acca__stability-label { color: rgba(30, 20, 6, 0.75); }
.acca__stability--noisy     .acca__stability-label { color: rgba(30, 20, 6, 0.55); }

/* ── Hero v2 (2026-09-10) ─────────────────────────────────
   3-zone layout — Price | Confidence | Shape+Stability — with
   the confidence explainer sentence spanning full width beneath.
   Overrides the older grid/dl scaffolding when .acca__hero--v2
   is present. Old .acca__hero rules above stay for markup that
   hasn't migrated. */

.acca__hero--v2 {
  display: block;                 /* override 1fr/auto grid */
  padding: 24px 24px 20px;
  gap: 0;
}

.acca__hero--v2 .acca__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: flex-start;
}
@media (max-width: 820px) {
  .acca__hero--v2 .acca__hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.acca__hero-zone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.acca__hero-zone--confidence { border-left: 1px solid var(--acca-hair-strong); padding-left: 24px; }
.acca__hero-zone--shape      { border-left: 1px solid var(--acca-hair-strong); padding-left: 24px; }
@media (max-width: 820px) {
  .acca__hero-zone--confidence,
  .acca__hero-zone--shape { border-left: none; padding-left: 0;
                            border-top: 1px solid var(--acca-hair); padding-top: 14px; }
}

.acca__hero-achievement {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(177, 138, 44, 0.14);
  color: var(--acca-gold);
  font: 700 11px/1 "DM Sans", sans-serif;
  letter-spacing: 0.06em;
  border: 1px solid rgba(177, 138, 44, 0.4);
}

.acca__hero-headline {
  font: 700 32px/1 "Playfair Display", Georgia, serif;
  color: var(--acca-ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.acca__hero-conf {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font: 700 13px/1 "DM Sans", sans-serif;
  letter-spacing: 0.10em;
  color: var(--acca-cream);
  background: var(--acca-ink-3);
}
.acca__hero-conf--a { background: var(--acca-gold); color: var(--acca-ink); }
.acca__hero-conf--b { background: var(--acca-ink-3); }
.acca__hero-conf--c { background: rgba(30, 20, 6, 0.75); }

.acca__hero-shape {
  font: 700 20px/1.2 "Playfair Display", Georgia, serif;
  color: var(--acca-ink);
}
.acca__hero-stability {
  font: 500 12px/1.35 "DM Sans", sans-serif;
  color: var(--acca-ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.acca__hero-stability--firm      { color: var(--acca-gold); }
.acca__hero-stability--contested { color: rgba(30, 20, 6, 0.72); }
.acca__hero-stability--noisy     { color: rgba(30, 20, 6, 0.55); }

.acca__hero-diversity {
  font: 500 12px/1.2 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.acca__hero-copy {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-top: 1px solid var(--acca-hair);
  font: 500 14px/1.5 "DM Sans", sans-serif;
  color: var(--acca-ink-2);
  max-width: 68ch;
}
.acca__hero-copy--a { color: var(--acca-ink); }
.acca__hero-copy--c { color: var(--acca-ink-2); font-style: italic; }

/* Role border stripe -- bumped 4px -> 6px so Anchor/Core/Booster
   read at a glance in the six-card grid. */
.acca__leg--anchor  { border-left-width: 6px; }
.acca__leg--core    { border-left-width: 6px; }
.acca__leg--booster { border-left-width: 6px; }

/* ── Legs grid ────────────────────────────────────────────── */

.acca__legs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0 0 36px;
}

.acca__methodology {
  margin: 0 0 24px;
}

/* ── Cryptographic proof band ─────────────────────────────── */
.acca__proof {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, rgba(29, 22, 8, 0.98) 0%, rgba(52, 40, 18, 0.98) 100%);
  color: var(--acca-cream);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 6px;
  padding: 18px 22px;
  margin: 0 0 24px;
}
.acca__proof-mark {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.14);
  color: var(--acca-gold);
}
.acca__proof-copy { min-width: 0; }
.acca__proof-eyebrow {
  margin: 0 0 4px;
  font: 700 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acca-gold);
}
.acca__proof-headline {
  margin: 0 0 8px;
  font: 500 14px/1.4 "DM Sans", sans-serif;
  color: var(--acca-cream);
}
.acca__proof-facts {
  display: flex; flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  font: 400 12px/1.4 "DM Sans", sans-serif;
  color: rgba(251, 243, 229, 0.7);
}
.acca__proof-facts > div { display: inline-flex; gap: 6px; align-items: baseline; }
.acca__proof-facts dt {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  color: rgba(251, 243, 229, 0.55);
}
.acca__proof-facts dd { margin: 0; }
.acca__proof-facts code {
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 12px;
  color: var(--acca-cream);
  background: rgba(251, 243, 229, 0.08);
  padding: 1px 6px;
  border-radius: 3px;
}
.acca__proof-cta {
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-end;
  text-align: right;
}
.acca__proof-cta-sub {
  font: 400 10px/1.3 "DM Sans", sans-serif;
  color: rgba(251, 243, 229, 0.55);
  max-width: 150px;
}
@media (max-width: 640px) {
  .acca__proof {
    grid-template-columns: 40px 1fr;
    row-gap: 12px;
  }
  .acca__proof-cta {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
  }
}

/* ── Per-leg verify chip slot ─────────────────────────────── */
.acca__leg-verify {
  display: inline-flex;
  margin-left: auto;
}

/* ── Combinations calculator (Lucky 63) ───────────────────── */
.acca__breakdown {
  background: var(--acca-cream);
  border: 1px solid var(--acca-hair);
  border-radius: 6px;
  padding: 20px 22px 22px;
  margin: 0 0 32px;
}
.acca__breakdown-head { margin: 0 0 14px; }
.acca__breakdown-title { margin: 0 0 6px; }
.acca__breakdown-deck {
  margin: 0;
  font: 400 13px/1.5 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
}

.acca__breakdown-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 14px 0;
  border-top: 1px solid var(--acca-hair);
  border-bottom: 1px solid var(--acca-hair);
  margin: 12px 0 14px;
}
.acca__breakdown-stake { display: flex; flex-direction: column; gap: 4px; }
.acca__breakdown-stake-lbl,
.acca__breakdown-outlay-lbl,
.acca__breakdown-odds-lbl,
.acca__breakdown-cell-lbl {
  font: 700 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acca-ink-3);
}
.acca__breakdown-stake-input {
  display: inline-flex; align-items: center;
  background: #fff;
  border: 1px solid var(--acca-hair);
  border-radius: 4px;
  padding: 6px 10px;
  gap: 4px;
  max-width: 160px;
}
.acca__breakdown-stake-sym {
  font: 600 15px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
}
.acca__breakdown-stake-input input {
  border: 0; outline: 0;
  font: 700 18px/1.2 "Playfair Display", serif;
  color: var(--acca-ink-1);
  background: transparent;
  width: 80px;
  padding: 2px 0;
}
.acca__breakdown-outlay { display: flex; flex-direction: column; gap: 4px; }
.acca__breakdown-outlay-val {
  font: 700 22px/1 "Playfair Display", serif;
  color: var(--acca-ink-1);
}
.acca__breakdown-outlay-sub {
  font: 400 12px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
}
.acca__breakdown-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-self: end;
}
.acca__breakdown-btn {
  background: transparent;
  border: 1px solid var(--acca-hair);
  border-radius: 3px;
  padding: 6px 12px;
  font: 700 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acca-ink-2);
  cursor: pointer;
}
.acca__breakdown-btn:hover { border-color: var(--acca-gold); color: var(--acca-gold); }

.acca__breakdown-odds { margin: 0 0 14px; }
.acca__breakdown-odds-lbl { display: block; margin: 0 0 8px; }
.acca__breakdown-leg {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--acca-hair);
}
.acca__breakdown-leg:last-child { border-bottom: 0; }
.acca__breakdown-leg-idx {
  font: 700 12px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
}
.acca__breakdown-leg-name {
  font: 700 15px/1.2 "Playfair Display", serif;
  color: var(--acca-ink-1);
}
.acca__breakdown-leg-inputs {
  display: inline-flex; align-items: center; gap: 6px;
  font: 400 13px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-2);
}
.acca__breakdown-leg-inputs input {
  width: 48px; padding: 4px 6px;
  border: 1px solid var(--acca-hair);
  border-radius: 3px;
  font: 700 14px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-1);
  background: #fff;
  text-align: center;
  outline: 0;
}
.acca__breakdown-leg-inputs input:focus { border-color: var(--acca-gold); }
.acca__breakdown-leg-slash {
  font: 700 14px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
}
.acca__breakdown-leg-dec {
  display: inline-flex; align-items: baseline; gap: 4px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--acca-hair);
}
.acca__breakdown-leg-dec-lbl {
  font: 700 9px/1 "DM Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acca-ink-3);
}
.acca__breakdown-leg-dec [data-leg-decimal] {
  font: 700 14px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-1);
  font-variant-numeric: tabular-nums;
}
.acca__breakdown-leg-nr {
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--acca-ink-2);
  font: 700 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: help;
}

.acca__breakdown-note {
  text-align: right;
  font: 400 11px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
  margin: 0 0 8px;
}

.acca__breakdown-folds { list-style: none; padding: 0; margin: 0; }
.acca__breakdown-folds > li + li { margin-top: 6px; }
.acca__breakdown-fold { border: 1px solid var(--acca-hair); border-radius: 4px; background: #fff; }
.acca__breakdown-fold[open] { border-color: var(--acca-gold); }
.acca__breakdown-fold-row {
  display: grid;
  grid-template-columns: 130px 90px 1fr 1.5fr 16px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-variant-numeric: tabular-nums;
}
.acca__breakdown-fold-row::-webkit-details-marker { display: none; }
.acca__breakdown-fold-name {
  font: 700 12px/1 "DM Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acca-ink-1);
}
.acca__breakdown-fold-lines {
  font: 400 13px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
}
.acca__breakdown-fold-outlay,
.acca__breakdown-fold-stats {
  display: flex; flex-direction: column; gap: 3px;
  font: 700 13px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-1);
}
.acca__breakdown-fold-stats { font-weight: 400; }
.acca__breakdown-fold-caret {
  color: var(--acca-ink-3);
  transition: transform 0.18s ease;
}
.acca__breakdown-fold[open] .acca__breakdown-fold-caret { transform: rotate(180deg); }

.acca__breakdown-fold-lines-list {
  list-style: none; margin: 0;
  padding: 0 14px 12px;
  border-top: 1px dashed var(--acca-hair);
  columns: 2;
  column-gap: 18px;
}
.acca__breakdown-line {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 4px 0;
  font: 400 12px/1.4 "DM Sans", sans-serif;
  color: var(--acca-ink-2);
  break-inside: avoid;
}
.acca__breakdown-line-ret {
  font-weight: 700;
  color: var(--acca-ink-1);
  font-variant-numeric: tabular-nums;
}

.acca__breakdown-total {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px;
  margin: 16px 0 4px;
  padding: 14px 0 0;
  border-top: 1px solid var(--acca-hair);
}
.acca__breakdown-total-lbl {
  font: 700 12px/1 "DM Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acca-ink-2);
}
.acca__breakdown-total-val {
  font: 700 26px/1 "Playfair Display", serif;
  color: var(--acca-gold);
}

.acca__breakdown-honesty {
  margin: 10px 0 0;
  font: 400 11px/1.5 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
}
.acca__breakdown-honesty a { color: var(--acca-ink-2); }

@media (max-width: 640px) {
  .acca__breakdown { padding: 16px; }
  .acca__breakdown-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .acca__breakdown-leg {
    grid-template-columns: 22px 1fr;
    row-gap: 6px;
  }
  .acca__breakdown-leg-inputs { grid-column: 1 / -1; flex-wrap: wrap; }
  .acca__breakdown-leg-dec { margin-left: 0; padding-left: 0; border-left: 0; }
  .acca__breakdown-fold-row {
    grid-template-columns: 1fr auto 16px;
    row-gap: 4px;
  }
  .acca__breakdown-fold-lines { grid-column: 1 / -1; }
  .acca__breakdown-fold-outlay { grid-column: 1; }
  .acca__breakdown-fold-stats { grid-column: 1 / span 2; }
  .acca__breakdown-fold-lines-list { columns: 1; }
}

.acca__leg {
  background: var(--acca-cream);
  border: 1px solid var(--acca-hair);
  border-radius: 10px;
  padding: 18px 18px 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acca__leg--anchor  { border-left: 4px solid var(--acca-anchor); }
.acca__leg--core    { border-left: 4px solid var(--acca-core); }
.acca__leg--booster { border-left: 4px solid var(--acca-booster); }

.acca__leg.is-won {
  background: linear-gradient(180deg, #FCF4D8 0%, #F4E5B4 100%);
  border-color: var(--acca-gold-bright);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6),
              0 2px 8px rgba(212, 175, 55, 0.28);
}
.acca__leg.is-lost { opacity: 0.72; }
.acca__leg.is-void { opacity: 0.6; border-style: dashed; }

.acca__leg-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--acca-hair);
  padding-bottom: 8px;
}

.acca__leg-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--acca-gold);
  color: var(--acca-cream);
  font: 700 13px/1 "DM Sans", sans-serif;
}

.acca__leg-role {
  font: 700 10.5px/1 "DM Sans", sans-serif;
  letter-spacing: 0.16em;
  color: var(--acca-gold);
  flex: 1;
}

.acca__leg-action {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 3px;
  font: 700 9.5px/1 "DM Sans", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.acca__leg-action--bet {
  background: var(--acca-gold);
  color: var(--acca-cream);
}
.acca__leg-action--watch {
  background: transparent;
  color: var(--acca-gold);
  border: 1px solid var(--acca-gold);
}
.acca__leg-action--pass {
  background: rgba(30, 20, 6, 0.55);
  color: var(--acca-cream);
}

.acca__leg-odds {
  font: 700 20px/1 "Playfair Display", Georgia, serif;
  color: var(--acca-ink);
}

/* V1.2 -- weak-leg flag on Speculative-tier legs. Amber warning
   chip in the header, plus a subtle amber wash on the whole card
   so the eye lands on it in a six-card grid. */
.acca__leg-weak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(180, 95, 20, 0.14);
  color: #8a4b18;
  font: 700 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.08em;
  border: 1px solid rgba(180, 95, 20, 0.38);
  cursor: help;
}

.acca__leg.is-weak {
  box-shadow: inset 3px 0 0 rgba(180, 95, 20, 0.55);
  background: linear-gradient(
    to right,
    rgba(180, 95, 20, 0.045) 0,
    transparent 40%
  );
}

/* Settled states dominate over the weak-leg wash so a LOST card
   still reads LOST first, weak second. */
.acca__leg.is-won,
.acca__leg.is-lost,
.acca__leg.is-void {
  box-shadow: none;
  background: initial;
}

.acca__leg-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.acca__leg-race {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font: 500 12px/1 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.acca__leg-time { font-weight: 700; color: var(--acca-ink-2); font-variant-numeric: tabular-nums; }

.acca__leg-horse {
  font: 700 20px/1.15 "Playfair Display", Georgia, serif;
  color: var(--acca-ink);
  text-wrap: balance;
}

.acca__leg-why {
  font: 400 13.5px/1.5 "DM Sans", sans-serif;
  color: var(--acca-ink-2);
  margin: 0;
}

.acca__leg-foot {
  border-top: 1px solid var(--acca-hair);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.acca__leg-stats { display: flex; gap: 14px; margin: 0; }

.acca__leg-stats > div { display: flex; flex-direction: column; gap: 2px; }

.acca__leg-stats dt {
  font: 700 9.5px/1 "DM Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--acca-ink-3);
  margin: 0;
}
.acca__leg-stats dd {
  font: 700 13px/1 "DM Sans", sans-serif;
  color: var(--acca-ink);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.acca__leg-medal {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 3px;
  font: 700 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.acca__leg-medal--won,
.acca__leg-medal--gold   { background: linear-gradient(135deg, #d4a017 0%, #f2c94c 55%, #a67c00 100%); color: #2c1e00; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); }
.acca__leg-medal--silver { background: linear-gradient(135deg, #a8adb2 0%, #dfe3e6 55%, #757a80 100%); color: #1f2429; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); }
.acca__leg-medal--bronze { background: linear-gradient(135deg, #a8642a 0%, #d8874a 55%, #6f3b12 100%); color: #fbf3e5; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); }
.acca__leg-medal--lost   { background: rgba(74, 61, 40, 0.85); color: var(--acca-cream); }
.acca__leg-medal--void   { background: rgba(0, 0, 0, 0.10); color: var(--acca-ink-3); }

/* ── Why-this-six paragraph ────────────────────────────────── */

.acca__why {
  border-top: 1px solid var(--acca-gold-soft);
  border-bottom: 1px solid var(--acca-gold-soft);
  padding: 24px 0;
  margin: 0 0 36px;
}

.acca__section-title {
  font: 700 18px/1 "Playfair Display", Georgia, serif;
  color: var(--acca-ink);
  margin: 0 0 12px;
}

.acca__why-copy {
  font: 400 15px/1.6 "DM Sans", sans-serif;
  color: var(--acca-ink-2);
  margin: 0;
  max-width: 62ch;
}

/* ── NO_ACCA + Pending states ─────────────────────────────── */

.acca__no-acca, .acca__pending {
  background: var(--acca-cream);
  border: 1px solid var(--acca-hair);
  border-radius: 10px;
  padding: 32px 24px;
  margin: 0 0 36px;
}

.acca__no-acca-headline {
  font: 700 20px/1.3 "Playfair Display", Georgia, serif;
  color: var(--acca-ink);
  margin: 0 0 14px;
  text-wrap: balance;
}

.acca__no-acca-copy, .acca__pending-copy {
  font: 400 14.5px/1.6 "DM Sans", sans-serif;
  color: var(--acca-ink-2);
  margin: 0 0 16px;
  max-width: 62ch;
}

.acca__no-acca-detail summary {
  cursor: pointer;
  font: 500 12px/1 "DM Sans", sans-serif;
  color: var(--acca-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.acca__no-acca-detail p { font-size: 13px; color: var(--acca-ink-3); margin: 8px 0 0; }
.acca__no-acca-detail code {
  font: 500 12.5px/1 "DM Mono", ui-monospace, monospace;
  background: rgba(122, 90, 15, 0.10);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--acca-ink);
}

/* ── Footer ───────────────────────────────────────────────── */

.acca__foot { border-top: 1px solid var(--acca-hair); padding-top: 20px; margin-top: 40px; }

.acca__foot-note {
  font: 400 12.5px/1.6 "DM Sans", sans-serif;
  color: var(--acca-ink-3);
  margin: 0;
  max-width: 62ch;
}

.acca__foot code {
  font: 500 12px/1 "DM Mono", ui-monospace, monospace;
  background: rgba(122, 90, 15, 0.10);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--acca-ink-2);
}
