/* Top Rated Today — Sly Man's daily briefing, modernised.
   Unified type stack (Playfair Display + Inter tabular-nums) with
   the BoD Logbook, HTW Honest Record and BoD Shortlist so the whole
   Sly Man family reads as of-a-piece. Copper stays as the accent
   that distinguishes this page from HTW's gold and BoD's emerald;
   flame reserved for 3+ signal convergences so it reads as rare.
   Layout: hero + stats strip → The Fold as feature block → editorial
   pull-quote → tabular signals table → 3-col ratings cards → 2-col
   angles grid. Every section shares one <sec> pattern. */

.top-rated {
  --tr-paper:      #FBF7EF;
  --tr-paper-2:    #FFFCF3;
  --tr-paper-deep: #F1E9D0;
  --tr-paper-warm: #F7EFD9;
  --tr-ink:        #1A1612;
  --tr-ink-70:     #4A413A;
  --tr-ink-40:     rgba(26, 22, 18, 0.44);
  --tr-ink-20:     rgba(26, 22, 18, 0.14);
  --tr-line:       rgba(26, 22, 18, 0.10);
  --tr-line-strong:rgba(26, 22, 18, 0.22);
  --tr-gold:       #C39E2A;
  --tr-gold-deep:  #8F6F18;
  --tr-gold-lite:  rgba(195, 158, 42, 0.14);
  --tr-copper:     #8B5A2B;
  --tr-copper-deep:#6F4520;
  --tr-copper-lite:rgba(139, 90, 43, 0.14);
  --tr-flame:      #C8451F;
  --tr-flame-lite: rgba(200, 69, 31, 0.10);
  --tr-emerald:    #1A7D4A;
  --tr-emerald-lt: rgba(26, 125, 74, 0.10);
  --tr-claret:     #A03040;
  --tr-claret-lt:  rgba(160, 48, 64, 0.06);
  --tr-pending:    #7A6B3E;

  color: var(--tr-ink);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

/* ── Hero ─────────────────────────────────────────────────────── */

/* Slim intro strip — the outer article template already renders
   the title / deck / byline block above this partial. So this
   header just carries the eyebrow + stats pill as a lead-in to
   The Fold; no duplicated masthead. */
.tr__hero {
  text-align: center;
  padding: 4px 0 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--tr-line);
}

/* ── Identity hero (Sly Man analyst mark beside briefing) ─────────
 *
 * Reviewer's brief: "Sly Man needs a stronger visual presence.
 * This is the biggest missed branding opportunity. You have created
 * a distinctive character but the article itself is predominantly
 * typography and tables. I would put Sly Man beside the briefing
 * header — think editorial mascot / analyst identity."
 *
 * Two-column layout: briefing content left-aligned on the left,
 * analyst mark (copper roundel + hound silhouette + monogram +
 * byline) on the right. Mobile stacks the mark above the body,
 * centred, so the identity is still the first thing readers see. */

.tr__hero--identity {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  text-align: left;
  padding: 18px 0 24px;
}

.tr__hero-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.tr__hero--identity .tr__eyebrow {
  margin-bottom: 0;
  align-self: flex-start;
}

.tr__hero--identity .tr__stats {
  justify-content: flex-start;
  margin: 6px 0 0;
}

.tr__hero-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 700;
  color: var(--tr-ink);
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

/* Sly Man analyst mark — the identity roundel */
.sly-mark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.sly-mark__svg {
  width: 108px;
  height: 108px;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(111, 69, 32, 0.22));
}

.sly-mark__cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
}

.sly-mark__name {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--tr-ink);
  letter-spacing: 0;
}

.sly-mark__role {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--tr-copper);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .tr__hero--identity {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
    justify-items: center;
  }
  .tr__hero-body { align-items: center; }
  .tr__hero--identity .tr__eyebrow,
  .tr__hero--identity .tr__stats { align-self: center; justify-content: center; }
  .sly-mark { order: -1; }   /* mark above briefing on mobile */
  .sly-mark__svg { width: 92px; height: 92px; }
}
.tr__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tr-copper);
}
.tr__eyebrow::before,
.tr__eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--tr-copper);
  opacity: 0.55;
}
.tr__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--tr-ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
.tr__title em {
  font-style: italic;
  color: var(--tr-copper-deep);
}
.tr__deck {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  max-width: 62ch;
  line-height: 1.5;
  color: var(--tr-ink-70);
  margin: 0 auto 22px;
  text-wrap: balance;
}
.tr__stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 24px;
  background: var(--tr-paper-2);
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  box-shadow: 0 6px 22px -14px rgba(26, 22, 18, 0.28);
}
.tr__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.tr__stat-val {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  color: var(--tr-ink);
  line-height: 1;
}
.tr__stat-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tr-ink-40);
}
.tr__stat-sep {
  width: 1px;
  height: 22px;
  background: var(--tr-line-strong);
}

/* ── Section head pattern (used by every section) ─────────────── */

.tr__sec { margin-bottom: 44px; }
.tr__sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--tr-line);
  flex-wrap: wrap;
}
.tr__sec-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tr-copper);
  margin: 0;
  padding: 3px 8px;
  background: var(--tr-copper-lite);
  border-radius: 3px;
}
.tr__sec-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--tr-ink);
}
.tr__sec-lede {
  margin-left: auto;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--tr-ink-70);
  max-width: 42ch;
  text-align: right;
}
.tr__subhead {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--tr-ink);
  margin: 24px 0 12px;
  letter-spacing: -0.005em;
}
.tr__subhead--muted { color: var(--tr-ink-40); }

/* ── The Fold — headline feature ──────────────────────────────── */

.tr__sec--fold .tr__sec-kicker {
  background: var(--tr-flame-lite);
  color: var(--tr-flame);
}

.tr-fold {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tr-fold__card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  background: var(--tr-paper-2);
  border: 1px solid var(--tr-line);
  border-left: 4px solid var(--tr-copper);
  border-radius: 6px;
  box-shadow: 0 4px 14px -8px rgba(26, 22, 18, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.tr-fold__card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -14px rgba(26, 22, 18, 0.18);
}
.tr-fold__card--n3 {
  border-left-color: var(--tr-flame);
  background:
    linear-gradient(180deg, var(--tr-flame-lite), transparent 60%),
    var(--tr-paper-2);
}
.tr-fold__card--n4,
.tr-fold__card--n5,
.tr-fold__card--n6 {
  border-left-color: var(--tr-flame);
  background:
    linear-gradient(180deg, rgba(200, 69, 31, 0.14), transparent 60%),
    var(--tr-paper-2);
}
.tr-fold__count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border-right: 1px dashed var(--tr-ink-20);
}
.tr-fold__count-num {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 200;
  font-style: italic;
  font-size: 64px;
  line-height: 0.85;
  color: var(--tr-copper-deep);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.tr-fold__card--n3 .tr-fold__count-num,
.tr-fold__card--n4 .tr-fold__count-num,
.tr-fold__card--n5 .tr-fold__count-num,
.tr-fold__card--n6 .tr-fold__count-num {
  color: var(--tr-flame);
  font-weight: 900;
  font-style: normal;
}
.tr-fold__count-total {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tr-ink-40);
  margin-top: 4px;
}
.tr-fold__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tr-fold__horse {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  color: var(--tr-ink);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.tr-fold__race {
  font-size: 11px;
  font-weight: 700;
  color: var(--tr-ink-40);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.tr-fold__race strong {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--tr-ink-70);
  text-transform: none;
  margin-right: 3px;
  letter-spacing: -0.005em;
}
.tr-fold__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.tr-fold__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: var(--tr-paper-deep);
  border: 1px solid var(--tr-line);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--tr-ink-70);
}
.tr-fold__chip--sr,
.tr-fold__chip--or,
.tr-fold__chip--ts {
  background: var(--tr-copper-lite);
  color: var(--tr-copper-deep);
  border-color: rgba(139, 90, 43, 0.28);
}
.tr-fold__chip--ai_consensus {
  background: var(--tr-gold-lite);
  color: var(--tr-gold-deep);
  border-color: rgba(195, 158, 42, 0.36);
}
.tr-fold__chip--systems {
  background: rgba(159, 122, 27, 0.14);
  color: var(--tr-gold-deep);
  border-color: rgba(195, 158, 42, 0.36);
}
.tr-fold__chip--steamer,
.tr-fold__chip--sharp_move {
  background: var(--tr-emerald-lt);
  color: var(--tr-emerald);
  border-color: rgba(26, 125, 74, 0.28);
}
.tr-fold__chip--trainer_streak,
.tr-fold__chip--trainer_hot {
  background: var(--tr-flame-lite);
  color: var(--tr-flame);
  border-color: rgba(200, 69, 31, 0.28);
}
.tr-fold__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--tr-line);
  min-width: 96px;
}
.tr-fold__price-val {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  line-height: 1;
  color: var(--tr-copper-deep);
  letter-spacing: -0.01em;
}
.tr-fold__result {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--tr-paper-deep);
  color: var(--tr-ink-40);
  border-radius: 3px;
  white-space: nowrap;
}
.tr-fold__result--gold     { background: var(--tr-gold-lite);    color: var(--tr-gold-deep); }
.tr-fold__result--silver   { background: rgba(140, 150, 165, 0.18); color: #4a5566; }
.tr-fold__result--bronze   { background: rgba(160, 90, 40, 0.18);   color: #7a4a20; }
.tr-fold__result--neutral  { background: var(--tr-paper-deep);      color: var(--tr-ink-40); }
.tr-fold__result--grey     { background: var(--tr-claret-lt);       color: var(--tr-claret); }
.tr-fold__result--red      { background: var(--tr-claret-lt);       color: var(--tr-claret); }
.tr-fold__result--pending  { background: var(--tr-paper-deep);      color: var(--tr-pending); }

/* ── Sly Man's Take — pull-quote ──────────────────────────────── */

.tr-take {
  position: relative;
  padding: 32px 44px 26px;
  background: linear-gradient(180deg, var(--tr-paper-warm), var(--tr-paper-2));
  border: 1px solid var(--tr-line);
  border-radius: 6px;
  box-shadow: 0 6px 22px -14px rgba(26, 22, 18, 0.25);
}
.tr-take::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 26px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 100px;
  line-height: 1;
  color: var(--tr-copper);
  opacity: 0.32;
  font-weight: 900;
}
.tr-take__kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tr-copper);
  padding: 3px 8px;
  background: var(--tr-copper-lite);
  border-radius: 3px;
}
.tr-take__body {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: var(--tr-ink);
  margin: 0 0 18px;
  max-width: 60ch;
}
.tr-take__body p { margin: 0 0 14px; }
.tr-take__body p:last-child { margin-bottom: 0; }
.tr-take__body strong {
  font-weight: 900;
  color: var(--tr-copper-deep);
  font-style: normal;
}
.tr-take__body a {
  color: var(--tr-copper-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--tr-copper-lite);
}
.tr-take__body a:hover { border-bottom-color: var(--tr-copper-deep); }
.tr-take__byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--tr-line);
  font-size: 12px;
  color: var(--tr-ink-40);
}
.tr-take__signature {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 14px;
  color: var(--tr-copper-deep);
}
.tr-take__signature::before {
  content: '— ';
  color: var(--tr-ink-40);
}
.tr-take__ts {
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
}
.tr-take__note {
  margin: 16px 0 0;
  padding: 10px 14px;
  background: var(--tr-claret-lt);
  border: 1px dashed rgba(160, 48, 64, 0.22);
  border-radius: 4px;
  font-size: 12px;
  color: var(--tr-claret);
}

/* ── Top Signals table ────────────────────────────────────────── */

/* Parent owns the column tracks so every row shares the SAME
   column widths. Rows are subgrids that inherit the parent's
   template — this is what stops the header cells from drifting
   out of alignment with the data rows below. */
.tr-signals {
  display: grid;
  grid-template-columns: 84px minmax(0, 1.4fr) 72px 68px 130px minmax(180px, 1.6fr) 96px;
  background: var(--tr-paper-2);
  border: 1px solid var(--tr-line);
  border-radius: 6px;
  overflow: hidden;
}
.tr-signals__row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--tr-line);
  font-size: 13px;
}
.tr-signals__row:last-child { border-bottom: none; }
.tr-signals__row:hover { background: rgba(139, 90, 43, 0.03); }
.tr-signals__row--head {
  background: var(--tr-paper-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tr-ink-40);
}
.tr-signals__row--lead {
  background: linear-gradient(90deg, var(--tr-flame-lite), transparent 80%);
}
.tr-signals__col-num { text-align: right; }
.tr-signals__race-time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--tr-copper-deep);
  display: block;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.tr-signals__race-course {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--tr-ink-40);
  margin-top: 2px;
}
.tr-signals__horse a {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--tr-ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--tr-line-strong);
  letter-spacing: -0.005em;
}
.tr-signals__horse a:hover {
  color: var(--tr-copper-deep);
  border-bottom-style: solid;
}
.tr-signals__sr {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--tr-copper-lite);
  color: var(--tr-copper-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.10em;
  border-radius: 2px;
  vertical-align: 2px;
}
.tr-signals__price {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: right;
  letter-spacing: -0.01em;
  font-size: 14px;
}
.tr-signals__consensus {
  display: inline-flex;
  gap: 1px;
  font-size: 14px;
  color: var(--tr-gold);
  min-width: 48px;
}
.tr-signals__consensus-dim { color: var(--tr-ink-20); }
.tr-signals__steamer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tr-signals__steamer--in  { background: var(--tr-emerald-lt); color: var(--tr-emerald); }
.tr-signals__steamer--out { background: var(--tr-claret-lt);  color: var(--tr-claret); }
.tr-signals__note {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: var(--tr-ink-70);
  line-height: 1.4;
}
.tr-signals__result {
  padding: 4px 9px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--tr-paper-deep);
  color: var(--tr-ink-40);
  white-space: nowrap;
  justify-self: end;
}
.tr-signals__result--gold     { background: var(--tr-gold-lite);         color: var(--tr-gold-deep); }
.tr-signals__result--silver   { background: rgba(140, 150, 165, 0.18);   color: #4a5566; }
.tr-signals__result--bronze   { background: rgba(160, 90, 40, 0.18);     color: #7a4a20; }
.tr-signals__result--neutral  { background: var(--tr-paper-deep);        color: var(--tr-ink-40); }
.tr-signals__result--grey     { background: var(--tr-claret-lt);         color: var(--tr-claret); }
.tr-signals__result--red      { background: var(--tr-claret-lt);         color: var(--tr-claret); }
.tr-signals__result--pending  { background: var(--tr-paper-deep);        color: var(--tr-pending); }
.tr-signals__dash { color: var(--tr-ink-40); opacity: 0.5; }

/* ── The Ratings — 3-column labeled cards ─────────────────────── */

.tr-ratings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tr-ratings__col {
  background: var(--tr-paper-2);
  border: 1px solid var(--tr-line);
  border-radius: 6px;
  overflow: hidden;
}
.tr-ratings__head {
  padding: 14px 18px;
  background: var(--tr-paper-deep);
  border-bottom: 1px solid var(--tr-line);
}
.tr-ratings__abbr {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--tr-copper-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.tr-ratings__title {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tr-ink-40);
}
.tr-ratings__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tr-ratings__empty {
  padding: 22px 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--tr-ink-40);
  margin: 0;
  text-align: center;
}

/* ──────────────────────────────────────────────────────────────────
 * Rating cards — SR / OR / TS lanes.
 *
 * Reviewer's core note on this section: "The 157 should be huge.
 * That is the data point. At the moment I suspect the horse name
 * has greater visual weight than the score. For an analytical
 * product: make the metric visually dominant."
 *
 * Design: three-column card (rank pill · body · METRIC). Metric is
 * the Playfair display serif at 32-36px with tabular-nums — it's
 * the visual anchor that a reader's eye lands on first. Horse name
 * drops to 14.5px so the number wins the pixel budget. */

.tr-ratings__list--cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tr-rating {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--tr-paper-2);
  border: 1px solid var(--tr-line);
  border-radius: 3px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.tr-rating:first-child {
  border-left: 3px solid var(--tr-gold);
}

.tr-rating:hover {
  box-shadow: 0 2px 6px rgba(26, 22, 18, 0.06);
  transform: translateY(-1px);
}

.tr-rating__rank {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tr-ink-40);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tr-rating__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tr-rating__horse {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--tr-ink);
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-rating__horse a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.tr-rating__horse a:hover {
  border-bottom-color: var(--tr-copper);
}

.tr-rating__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10.5px;
  color: var(--tr-ink-70);
  letter-spacing: 0.02em;
}

.tr-rating__time {
  font-weight: 600;
  color: var(--tr-copper);
  font-variant-numeric: tabular-nums;
}

.tr-rating__course::before {
  content: "·";
  margin-right: 6px;
  color: var(--tr-ink-40);
}

.tr-rating__odds {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--tr-paper-deep);
  color: var(--tr-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  letter-spacing: 0.01em;
}

.tr-rating__metric {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--tr-gold-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  padding-left: 6px;
}

/* Rating card footer — result chip + verify chip sit on the same
 * row so the reader can scan "did this rating land?" at a glance
 * alongside the cryptographic verify link. Same visual grammar
 * the Signals table already uses. */
.tr-rating__footer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tr-rating__result {
  padding: 3px 8px;
  border-radius: 3px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--tr-paper-deep);
  color: var(--tr-ink-40);
  white-space: nowrap;
}
.tr-rating__result--gold    { background: var(--tr-gold-lite);       color: var(--tr-gold-deep); }
.tr-rating__result--silver  { background: rgba(140, 150, 165, 0.18); color: #4a5566; }
.tr-rating__result--bronze  { background: rgba(160, 90, 40, 0.18);   color: #7a4a20; }
.tr-rating__result--neutral { background: var(--tr-paper-deep);      color: var(--tr-ink-40); }
.tr-rating__result--grey    { background: var(--tr-claret-lt);       color: var(--tr-claret); }
.tr-rating__result--red     { background: var(--tr-claret-lt);       color: var(--tr-claret); }
.tr-rating__result--pending { background: var(--tr-paper-deep);      color: var(--tr-pending); }

/* Verify chip inside the footer — override the default flex-start
 * alignment so it sits inline with the result chip. */
.tr-rating__footer > .verify-chip {
  margin-top: 0;
}

@media (max-width: 560px) {
  .tr-rating {
    padding: 9px 11px;
    gap: 8px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
  .tr-rating__metric {
    font-size: 28px;
  }
  .tr-rating__horse {
    font-size: 14px;
  }
}

/* ── Pick partial — shared row across sections ────────────────── */

.tr-picks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.tr-pick {
  background: var(--tr-paper-2);
  border: 1px solid var(--tr-line);
  border-radius: 6px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.tr-pick--in  { border-left: 3px solid var(--tr-emerald); }
.tr-pick--out { border-left: 3px solid var(--tr-claret); }
.tr-pick--muted { opacity: 0.75; }
.tr-pick--rating,
.tr-pick--angle {
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--tr-line);
  padding: 12px 18px;
  border-left: none;
}
.tr-pick--rating:last-child,
.tr-pick--angle:last-child { border-bottom: none; }
.tr-pick__body { min-width: 0; }
.tr-pick__horse {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--tr-ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  margin-bottom: 3px;
}
.tr-pick__horse:hover { color: var(--tr-copper-deep); }
.tr-pick__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  font-size: 11px;
  font-weight: 700;
  color: var(--tr-ink-40);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tr-pick__race-time {
  font-variant-numeric: tabular-nums;
  color: var(--tr-copper-deep);
  font-weight: 800;
}
.tr-pick__value {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  color: var(--tr-copper-deep);
  text-transform: none;
  letter-spacing: -0.005em;
}
.tr-pick__value--in  { color: var(--tr-emerald); }
.tr-pick__value--out { color: var(--tr-claret); }
.tr-pick__tail {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.tr-pick__price {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--tr-ink-70);
  font-size: 13px;
}
.tr-pick__result {
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--tr-paper-deep);
  color: var(--tr-ink-40);
}
.tr-pick__result--gold     { background: var(--tr-gold-lite);         color: var(--tr-gold-deep); }
.tr-pick__result--silver   { background: rgba(140, 150, 165, 0.18);   color: #4a5566; }
.tr-pick__result--bronze   { background: rgba(160, 90, 40, 0.18);     color: #7a4a20; }
.tr-pick__result--neutral  { background: var(--tr-paper-deep);        color: var(--tr-ink-40); }
.tr-pick__result--grey     { background: var(--tr-claret-lt);         color: var(--tr-claret); }
.tr-pick__result--red      { background: var(--tr-claret-lt);         color: var(--tr-claret); }
.tr-pick__result--pending  { background: var(--tr-paper-deep);        color: var(--tr-pending); }

/* ── The Angles — 2-column cards grid ─────────────────────────── */

.tr-angles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tr-angle {
  background: var(--tr-paper-2);
  border: 1px solid var(--tr-line);
  border-radius: 6px;
  overflow: hidden;
}
.tr-angle__head {
  padding: 14px 18px;
  background: var(--tr-paper-deep);
  border-bottom: 1px solid var(--tr-line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tr-angle__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 17px;
  color: var(--tr-ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.tr-angle__tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tr-copper-deep);
  padding: 2px 7px;
  background: var(--tr-copper-lite);
  border-radius: 2px;
}
.tr-angle__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 820px) {
  .tr__sec-head { flex-wrap: wrap; }
  .tr__sec-lede {
    margin-left: 0;
    text-align: left;
    max-width: 100%;
    flex-basis: 100%;
  }

  .tr-fold__card {
    grid-template-columns: 66px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px 14px;
    padding: 16px 18px;
  }
  .tr-fold__count {
    grid-row: 1 / span 2;
    padding: 4px 0;
  }
  .tr-fold__count-num { font-size: 42px; }
  .tr-fold__body { grid-column: 2; }
  .tr-fold__horse { font-size: 20px; }
  .tr-fold__price {
    grid-column: 2;
    flex-direction: row;
    align-items: baseline;
    padding: 8px 0 0;
    border-left: none;
    border-top: 1px solid var(--tr-line);
    justify-content: flex-start;
    min-width: 0;
    gap: 10px;
    width: 100%;
  }

  /* ── Top Signals — MOBILE ─────────────────────────────────────
   * PR6: convert the 7-col desktop table into a stack of proper
   * signal cards below 640px. Reviewer's brief: "I would
   * absolutely not horizontally scroll the table. Convert each
   * row into a signal card." The desktop DOM stays the same;
   * CSS restructures it into a card layout via named grid areas.
   *
   * Layout:
   *   ┌────────────────────────────┬────────┐
   *   │ race area                  │ result │
   *   │ horse name                 │ price  │
   *   │ signal chips (full width)           │
   *   │ note (full width, muted)            │
   *   └─────────────────────────────────────┘
   */
  .tr-signals {
    display: block;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }
  .tr-signals__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "race       result"
      "horse      price"
      "chips      chips"
      "note       note";
    gap: 6px 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--tr-paper-2);
    border: 1px solid var(--tr-line);
    border-radius: 4px;
    font-size: 13px;
    align-items: center;
  }
  .tr-signals__row:last-child { margin-bottom: 0; }
  .tr-signals__row:hover { background: var(--tr-paper-2); }  /* no hover jitter on cards */
  .tr-signals__row--head { display: none; }
  .tr-signals__row--lead {
    border-left: 3px solid var(--tr-flame);
    background: linear-gradient(180deg, var(--tr-flame-lite), var(--tr-paper-2) 40%);
  }

  .tr-signals__race {
    grid-area: race;
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding-right: 8px;
  }
  .tr-signals__race-time {
    font-size: 12px;
    font-weight: 800;
    color: var(--tr-copper);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }
  .tr-signals__race-course {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tr-ink-40);
  }

  .tr-signals__result-cell {
    grid-area: result;
    justify-self: end;
    align-self: start;
  }

  .tr-signals__horse {
    grid-area: horse;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-self: end;
    min-width: 0;
  }
  .tr-signals__horse a {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--tr-ink);
    line-height: 1.15;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tr-signals__sr {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--tr-copper);
    align-self: flex-start;
    padding: 1px 5px;
    background: var(--tr-copper-lite);
    border-radius: 2px;
  }

  .tr-signals__price {
    grid-area: price;
    justify-self: end;
    align-self: end;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    padding: 3px 8px;
    background: var(--tr-paper-deep);
    color: var(--tr-ink);
    border-radius: 3px;
    text-align: right;
  }

  /* The signal-hit chip row: consensus stars + steamer arrow
   * inline as pills. This is the "which engines lit up on this
   * horse" moment on mobile — replaces the reviewer's suggested
   * ● dot indicators with something we actually have data for. */
  .tr-signals__consensus,
  .tr-signals__steamer-cell {
    grid-area: unset;
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
  }
  .tr-signals__consensus {
    background: var(--tr-gold-lite);
    color: var(--tr-gold-deep);
    gap: 1px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .tr-signals__steamer-cell {
    background: transparent;
    padding: 0;
  }

  /* Wrap chips + steamer inside a shared row via a synthesised
   * grid-area on the row itself — both cells drop into the chips
   * area using order + auto-flow. */
  .tr-signals__row {
    /* Enable chip flow */
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .tr-signals__consensus,
  .tr-signals__steamer-cell {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
  }
  .tr-signals__consensus + .tr-signals__steamer-cell {
    margin-top: 0;
    margin-left: 8px;
    grid-column: 1 / -1;
  }
  /* Group them onto one flex line by tucking them into a wrapper —
   * we don't have a wrapper element, so use grid-area:chips only
   * for the consensus (first pill) and let the steamer sit alongside
   * via inline-flex + a following-sibling nudge. */
  .tr-signals__consensus { grid-area: chips; }
  .tr-signals__steamer-cell {
    grid-area: chips;
    justify-self: end;
    margin-top: 4px;
    margin-left: 0;
  }

  .tr-signals__note {
    grid-area: note;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 12.5px;
    color: var(--tr-ink-70);
    line-height: 1.35;
    margin-top: 2px;
  }
  .tr-signals__dash { opacity: 0.35; }

  .tr-ratings,
  .tr-angles { grid-template-columns: 1fr; }

  .tr__stats { flex-direction: column; gap: 8px; padding: 12px 20px; }
  .tr__stat-sep { display: none; }

  .tr-take { padding: 26px 22px 20px; }
  .tr-take::before { font-size: 72px; top: -14px; }
}

/* ──────────────────────────────────────────────────────────────────
 * Systems Consensus — the "engines colliding" card.
 *
 * Editorial rationale: when 3-4 independent Saturday Racing analytical
 * systems land on the same horse independently, that IS the signal.
 * The chip design has to be visually louder than a generic pick card
 * without shouting. Achieved with a gold-tinted left border, an
 * oversized count badge on the left, and lit engine dots that make
 * the "N systems agreed" visible at a glance.
 *
 * Tier: PRIMARY. Under the reviewer's tiering system this is the
 * strongest visual moment on the page, alongside Sly Man's Take. */

.tr__sec--consensus .tr__sec-title {
  color: var(--tr-gold-deep);
}

/* ──────────────────────────────────────────────────────────────────
 * Reference tier — Ratings + Angles.
 *
 * Reviewer's brief: "Everything says READ ME. I would introduce
 * three visual tiers. PRIMARY: Sly Man's Take / Top Signals /
 * Systems Consensus. SECONDARY: The Money. REFERENCE: Ratings /
 * The Angles. Make Ratings and Angles visually quieter."
 *
 * De facto tier system after this PR:
 *   · PRIMARY  — default styling plus tone-specific accents
 *                (Consensus gold, Fold copper). Signals, Take,
 *                Consensus, The Fold.
 *   · SECONDARY — plain default. The Money.
 *   · REFERENCE — this modifier. Smaller header, tighter padding,
 *                muted title, shrunk lede. Ratings + Angles.
 *
 * Intent: reader's eye lands on Primary sections first, glances
 * past Secondary, and skims Reference for numbers only. Same
 * information density, ~20% less visual noise on the page.
 *
 * NOT collapsed. The reviewer floated collapsed-on-mobile for
 * Ratings; pushed back — a Cub who tapped through specifically
 * for the numbers shouldn't be gated behind a click. Demote,
 * don't hide. */

.tr__sec--reference { margin-bottom: 32px; }

.tr__sec--reference .tr__sec-head {
  padding-bottom: 8px;
  margin-bottom: 14px;
  gap: 10px;
  border-bottom-color: var(--tr-ink-20);
}

.tr__sec--reference .tr__sec-kicker {
  font-size: 9px;
  letter-spacing: 0.2em;
  padding: 2px 6px;
  background: transparent;
  color: var(--tr-ink-40);
}

.tr__sec--reference .tr__sec-title {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  color: var(--tr-ink-70);
  letter-spacing: -0.005em;
}

.tr__sec--reference .tr__sec-lede {
  font-size: 12px;
  font-style: normal;
  color: var(--tr-ink-40);
  max-width: 36ch;
}

/* Angles: the article sub-headers ("Trainer hot streak") inside
 * a reference-tier section also drop a notch so the section reads
 * as one quiet block instead of a stack of loud sub-sections. */
.tr__sec--reference .tr-angle__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--tr-ink-70);
}

.tr__sec--reference .tr-angle__tag {
  font-size: 9px;
  color: var(--tr-ink-40);
}

/* Ratings sub-header (SR / OR / TS abbreviation) also shrinks
 * under reference tier — the LANE label is not the story, the
 * NUMBER on each card is. */
.tr__sec--reference .tr-ratings__abbr {
  font-size: 20px;
  color: var(--tr-ink-70);
}

.tr__sec--reference .tr-ratings__title {
  font-size: 11px;
  color: var(--tr-ink-40);
}

/* ──────────────────────────────────────────────────────────────────
 * The Money — price movement cards.
 *
 * Reviewer's brief: "You already have the data. Make the movement
 * itself the visual. Bullington Bry 8/1 → 3/1, ↓ 62.5%, SHARP
 * MONEY. Sound Janet 22/1 → 66/1, ↑ 200%, MARKET COOLING."
 *
 * Card layout: horse + race meta at the top, then a big horizontal
 * arrow between the opening and current odds with the delta% badge
 * inline. Steamers (money coming in) get emerald tint; drifters
 * (market cooling) get claret. The label under the arrow tells
 * the story in three words. */

.tr-moves {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.tr-move {
  background: var(--tr-paper-2);
  border: 1px solid var(--tr-line);
  border-radius: 4px;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.tr-move:hover {
  box-shadow: 0 2px 6px rgba(26, 22, 18, 0.06);
  transform: translateY(-1px);
}

.tr-move--in  { border-left: 3px solid var(--tr-emerald); }
.tr-move--out { border-left: 3px solid var(--tr-claret); }

.tr-move__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tr-move__horse {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--tr-ink);
  margin: 0;
  line-height: 1.15;
}

.tr-move__horse a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.tr-move--in  .tr-move__horse a:hover { border-bottom-color: var(--tr-emerald); }
.tr-move--out .tr-move__horse a:hover { border-bottom-color: var(--tr-claret); }

.tr-move__meta {
  display: flex;
  gap: 6px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10.5px;
  color: var(--tr-ink-70);
  letter-spacing: 0.02em;
}

.tr-move__time {
  font-weight: 600;
  color: var(--tr-copper);
  font-variant-numeric: tabular-nums;
}

.tr-move__course::before {
  content: "·";
  margin-right: 6px;
  color: var(--tr-ink-40);
}

/* ── The arrow visualisation ─────────────────────────────────────── */
.tr-move__viz {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 4px;
  flex-wrap: wrap;
}

.tr-move__odds {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  letter-spacing: 0.01em;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--tr-paper-deep);
  color: var(--tr-ink);
  line-height: 1.25;
}

.tr-move__odds--to {
  background: transparent;
}

.tr-move--in  .tr-move__odds--to {
  background: var(--tr-emerald-lt);
  color: var(--tr-emerald);
  font-weight: 900;
}

.tr-move--out .tr-move__odds--to {
  background: var(--tr-claret-lt);
  color: var(--tr-claret);
  font-weight: 900;
}

.tr-move__arrow {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
}

.tr-move--in  .tr-move__arrow { color: var(--tr-emerald); }
.tr-move--out .tr-move__arrow { color: var(--tr-claret); }

.tr-move__delta {
  margin-left: auto;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tr-move--in  .tr-move__delta { color: var(--tr-emerald); }
.tr-move--out .tr-move__delta { color: var(--tr-claret); }

.tr-move__delta-caret {
  font-size: 13px;
  line-height: 1;
}

/* ── The verbal label under the arrow ────────────────────────────── */
.tr-move__label {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 2px;
}

.tr-move--in .tr-move__label {
  color: var(--tr-emerald);
  background: var(--tr-emerald-lt);
}

.tr-move--out .tr-move__label {
  color: var(--tr-claret);
  background: var(--tr-claret-lt);
}

.tr-move__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
  min-height: 20px;
}

@media (max-width: 560px) {
  .tr-moves { grid-template-columns: 1fr; }
  .tr-move__odds { font-size: 16px; }
}

.tr-consensus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.tr-consensus {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0;
  background: var(--tr-paper-2);
  border: 1px solid var(--tr-line);
  border-left: 4px solid var(--tr-gold);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26, 22, 18, 0.04);
  transition: box-shadow 0.15s, transform 0.15s;
}

.tr-consensus:hover {
  box-shadow: 0 4px 12px rgba(26, 22, 18, 0.09);
  transform: translateY(-1px);
}

/* ── Left: N SYSTEMS AGREE badge ────────────────────────── */
.tr-consensus__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    var(--tr-gold-lite) 0%,
    rgba(195, 158, 42, 0.05) 100%);
  padding: 14px 6px;
  border-right: 1px solid var(--tr-line);
  gap: 3px;
}

.tr-consensus__badge-count {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--tr-gold-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tr-consensus__badge-label {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--tr-gold-deep);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
}

/* ── Right: horse + engines ─────────────────────────────── */
.tr-consensus__body {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tr-consensus__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.tr-consensus__horse {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--tr-ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.005em;
  flex: 1 1 auto;
  min-width: 0;
}

.tr-consensus__horse a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.tr-consensus__horse a:hover {
  border-bottom-color: var(--tr-gold);
}

.tr-consensus__odds {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--tr-paper-deep);
  color: var(--tr-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.tr-consensus__where {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--tr-ink-70);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

.tr-consensus__time {
  font-weight: 600;
  color: var(--tr-copper);
  font-variant-numeric: tabular-nums;
}

.tr-consensus__course::before {
  content: "·";
  margin-right: 8px;
  color: var(--tr-ink-40);
}

/* ── Engine chips (the differentiator) ──────────────────── */
.tr-consensus__engines {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 10px;
}

.tr-consensus__engine {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.tr-consensus__engine-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tr-gold);
  box-shadow:
    0 0 0 2px var(--tr-paper-2),
    0 0 0 3px rgba(195, 158, 42, 0.35);
}

.tr-consensus__engine-label {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--tr-ink-70);
  letter-spacing: 0.09em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-consensus__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
  min-height: 20px;
}

/* Result chip inside the Consensus card foot — mirrors the palette
 * of .tr-fold__result / .tr-signals__result / .tr-rating__result so
 * every "did this pick land?" chip on the article page reads with
 * the same visual grammar. */
.tr-consensus__result {
  padding: 3px 8px;
  border-radius: 3px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--tr-paper-deep);
  color: var(--tr-ink-40);
  white-space: nowrap;
}
.tr-consensus__result--gold    { background: var(--tr-gold-lite);       color: var(--tr-gold-deep); }
.tr-consensus__result--silver  { background: rgba(140, 150, 165, 0.18); color: #4a5566; }
.tr-consensus__result--bronze  { background: rgba(160, 90, 40, 0.18);   color: #7a4a20; }
.tr-consensus__result--neutral { background: var(--tr-paper-deep);      color: var(--tr-ink-40); }
.tr-consensus__result--grey    { background: var(--tr-claret-lt);       color: var(--tr-claret); }
.tr-consensus__result--red     { background: var(--tr-claret-lt);       color: var(--tr-claret); }
.tr-consensus__result--pending { background: var(--tr-paper-deep);      color: var(--tr-pending); }

/* Mobile — stack the badge above the body, drop to a single engine col. */
@media (max-width: 560px) {
  .tr-consensus-list {
    grid-template-columns: 1fr;
  }
  .tr-consensus {
    grid-template-columns: 1fr;
    border-left-width: 3px;
  }
  .tr-consensus__badge {
    flex-direction: row;
    gap: 10px;
    padding: 8px 14px;
    border-right: none;
    border-bottom: 1px solid var(--tr-line);
    justify-content: flex-start;
  }
  .tr-consensus__badge-count {
    font-size: 28px;
  }
  .tr-consensus__badge-label {
    text-align: left;
    line-height: 1.2;
    letter-spacing: 0.1em;
    font-size: 10px;
  }
  .tr-consensus__badge-label br { display: none; }
  .tr-consensus__horse { font-size: 19px; }
}

@media (max-width: 380px) {
  .tr-consensus__engines {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tr-picks { grid-template-columns: 1fr; }
  .tr-fold__chips { gap: 4px; }
  .tr-fold__chip { padding: 3px 7px; font-size: 9px; }
}
