/* ═════════════════════════════════════════════════════════════
   /featured-results/ — The Open File
   ─────────────────────────────────────────────────────────────
   Visual language inherits from The Fox's Record (/track-record/)
   so the two transparency surfaces feel like a matched pair:
     • Cream paper background with gold accents
     • Display-font headlines on body-font copy
     • Medal palette for bucket tones (gold/silver/bronze/red/grey)
     • Tabular-num pricing chips for column alignment
═════════════════════════════════════════════════════════════ */

.page-fox-results {
  background: #FBF7E8;
  color: #1A1A1A;
}

/* ── Reusable tokens local to this page ───────────────────── */
.page-fox-results {
  --fr-ink:        #1A1A1A;
  --fr-ink-70:     rgba(26,26,26,0.72);
  --fr-ink-40:     rgba(26,26,26,0.40);
  --fr-paper:      #FBF7E8;
  --fr-card:       #FFFDF6;
  --fr-rule:       rgba(26,26,26,0.10);
  --fr-rule-strong:rgba(26,26,26,0.18);
  --fr-gold:       #D4AF37;
  --fr-gold-ink:   #6B4F0C;
  --fr-gold-wash:  #FBF6E3;
  --fr-emerald:    #166534;
  --fr-emerald-soft:#E8F5EC;
  --fr-rust:       #B91C1C;
  --fr-rust-soft:  #FCE9E9;
  --fr-silver:     #6B7280;
  --fr-bronze:     #92541D;
  --fr-font-display: 'Iowan Old Style', 'Charter', Georgia, serif;
}

/* ── Hero ─────────────────────────────────────────────────── */
.fr-hero {
  background: linear-gradient(160deg, #1A2233 0%, #0F1623 100%);
  color: #FCFAF2;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.fr-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  background: linear-gradient(180deg, transparent, var(--fr-paper));
  pointer-events: none;
}
.fr-hero__inner {
  max-width: 1100px;
  padding: 0 24px;
  margin: 0 auto;
}
.fr-hero__kicker {
  display: inline-block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.30em;
  color: var(--fr-gold);
  margin-bottom: 16px;
}
.fr-hero__title {
  font-family: var(--fr-font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}
.fr-hero__sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(252, 250, 242, 0.78);
  max-width: 60ch;
  margin: 0 0 36px;
}

/* Headline stats grid */
.fr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}
.fr-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fr-stat__num {
  font-family: var(--fr-font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #FCFAF2;
  font-variant-numeric: tabular-nums;
}
.fr-stat__lbl {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 250, 242, 0.55);
}
.fr-stat__detail {
  font-size: 12px;
  color: rgba(252, 250, 242, 0.50);
  margin-top: 4px;
}
.fr-stat--pl-profit .fr-stat__num { color: #4ADE80; }
.fr-stat--pl-loss   .fr-stat__num { color: #F87171; }

/* ── Sections — shared shell ──────────────────────────────── */
.fr-roll,
.fr-ledger,
.fr-conviction {
  background: var(--fr-paper);
  padding: 48px 0;
}
.fr-roll__inner,
.fr-ledger__inner,
.fr-conviction__inner {
  max-width: 1100px;
  padding: 0 24px;
  margin: 0 auto;
}
.fr-section-head { margin-bottom: 26px; }
.fr-section-heading {
  font-family: var(--fr-font-display);
  font-size: clamp(26px, 3vw, 32px);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  position: relative;
}
.fr-section-heading__num {
  display: inline-block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: var(--fr-gold-ink);
  background: var(--fr-gold-wash);
  padding: 4px 8px;
  border: 1px solid var(--fr-gold);
  border-radius: 4px;
  position: relative; top: -6px;
}
.fr-section-sub {
  color: var(--fr-ink-70);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 64ch;
  margin: 6px 0 0;
}

/* ── Section 01 — Roll of honour ──────────────────────────── */
.fr-roll__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.fr-roll-card {
  background: linear-gradient(160deg, #FFFAE8 0%, #FFF4D2 100%);
  border: 2px solid var(--fr-gold);
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.15);
  transition: transform 0.15s, box-shadow 0.18s;
}
.fr-roll-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.22);
}
.fr-roll-card__medal {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.fr-roll-card__body { flex: 1 1 auto; min-width: 0; }
.fr-roll-card__horse {
  font-family: var(--fr-font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  color: var(--fr-ink);
}
.fr-roll-card__horse a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.fr-roll-card__horse a:hover { border-bottom-color: var(--fr-gold-ink); }
.fr-roll-card__race {
  font-size: 12.5px;
  color: var(--fr-ink-70);
  margin: 0 0 10px;
  line-height: 1.5;
}
.fr-roll-card__dot { color: var(--fr-ink-40); margin: 0 3px; }
.fr-roll-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Shared chip styling ──────────────────────────────────── */
.fr-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--fr-rule-strong);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fr-chip--odds {
  background: var(--fr-gold-wash);
  border-color: var(--fr-gold);
  color: var(--fr-gold-ink);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.fr-chip--conv {
  background: rgba(26,26,26,0.04);
  color: var(--fr-ink-70);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 9.5px;
  font-weight: 800;
}
.fr-chip--pl { font-weight: 800; }
.fr-chip--pl-profit { background: var(--fr-emerald-soft); color: var(--fr-emerald); border-color: var(--fr-emerald); }
.fr-chip--pl-loss   { background: var(--fr-rust-soft);    color: var(--fr-rust);    border-color: var(--fr-rust);    }
.fr-chip--pl-flat   { background: rgba(26,26,26,0.04);    color: var(--fr-ink-70);                                    }

/* ── Section 02 — Ledger ──────────────────────────────────── */
.fr-buckets { list-style: none; margin: 0; padding: 0; }
.fr-bucket  { margin-bottom: 32px; }
.fr-bucket:last-child { margin-bottom: 0; }
.fr-bucket__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--fr-rule);
}
.fr-bucket__glyph { font-size: 18px; line-height: 1; }
.fr-bucket__title {
  font-family: var(--fr-font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--fr-ink);
}
.fr-bucket__count {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fr-ink-40);
  margin-left: auto;
}

/* Tone tints per bucket — applied to the section divider colour. */
.fr-bucket--win    .fr-bucket__head { border-bottom-color: var(--fr-gold); }
.fr-bucket--silver .fr-bucket__head { border-bottom-color: var(--fr-silver); }
.fr-bucket--bronze .fr-bucket__head { border-bottom-color: var(--fr-bronze); }
.fr-bucket--loss   .fr-bucket__head { border-bottom-color: var(--fr-rust);  opacity: 1; }
.fr-bucket--pending .fr-bucket__head { border-bottom-color: var(--fr-rule-strong); }
.fr-bucket--void   .fr-bucket__head { border-bottom-color: var(--fr-rule); opacity: 0.65; }

/* Ledger table — one row per race, columns for race + 4
   selections. Each cell's tint is driven by its own finish
   bucket so a row reads at a glance: which picks placed,
   which missed, all four side-by-side. */
.fr-table-scroll { overflow-x: auto; }
.fr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--fr-card);
  border: 1px solid var(--fr-rule);
  border-radius: 8px;
  overflow: hidden;
}
.fr-table thead th {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fr-ink-40);
  background: var(--fr-gold-wash);
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--fr-gold);
  white-space: nowrap;
}
.fr-table__col-race  { min-width: 220px; }
.fr-table__col-sel   { min-width: 170px; }
.fr-table__col-role {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--fr-ink-40);
  margin-top: 2px;
}

.fr-row { transition: background 0.15s; }
.fr-row:hover { background: var(--fr-gold-wash); }
.fr-row > td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--fr-rule);
  vertical-align: top;
}
.fr-row:last-child > td { border-bottom: 0; }

.fr-row__race { width: 24%; }
.fr-row__race-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 0;
  transition: color 0.15s;
}
.fr-row__race-link:hover .fr-row__race-name { color: var(--fr-gold-ink); }
.fr-row__race-time {
  font-family: var(--fr-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fr-ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  margin-right: 8px;
}
.fr-row__race-course {
  font-size: 13px;
  font-weight: 700;
  color: var(--fr-gold-ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.fr-row__race-name {
  display: block;
  font-family: var(--fr-font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fr-ink-70);
  margin-top: 2px;
  line-height: 1.35;
  transition: color 0.15s;
}
.fr-row__race-date {
  display: block;
  font-size: 11.5px;
  color: var(--fr-ink-40);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.fr-row__winner-note {
  display: block;
  font-size: 11px;
  font-style: italic;
  color: var(--fr-ink-70);
  margin-top: 6px;
}
.fr-row__winner-note strong { color: var(--fr-ink); font-style: normal; }
.fr-row__race .fr-chip { margin-top: 8px; }

/* Per-cell visual — tinted by finish-position bucket so the row
   reads as a strip of green-amber-red signals across the four
   picks. The left-border accent + soft background give it the
   "result chip" feel without dominating the row. */
.fr-cell {
  width: 19%;
  border-left: 4px solid transparent;
  background: rgba(0,0,0,0.0);
  padding-left: 12px;
}
.fr-cell--win    { border-left-color: var(--fr-gold);     background: rgba(212,175,55,0.07); }
.fr-cell--silver { border-left-color: var(--fr-silver);   background: rgba(107,114,128,0.05); }
.fr-cell--bronze { border-left-color: var(--fr-bronze);   background: rgba(146,84,29,0.05); }
.fr-cell--loss   { border-left-color: var(--fr-rust);     background: rgba(185,28,28,0.04); }
.fr-cell--pending{ border-left-color: var(--fr-rule-strong); }
.fr-cell--void   { border-left-color: var(--fr-rule);     opacity: 0.6; }

.fr-cell__inner { display: flex; flex-direction: column; gap: 4px; }
.fr-cell__finish {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fr-ink-70);
}
.fr-cell--win    .fr-cell__finish { color: var(--fr-gold-ink); }
.fr-cell--silver .fr-cell__finish { color: var(--fr-silver); }
.fr-cell--bronze .fr-cell__finish { color: var(--fr-bronze); }
.fr-cell--loss   .fr-cell__finish { color: var(--fr-rust); }
.fr-cell__glyph { font-size: 13px; line-height: 1; }
.fr-cell__horse {
  font-family: var(--fr-font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fr-ink);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-cell__odds {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--fr-gold-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.fr-cell__empty {
  color: var(--fr-ink-40);
  font-style: italic;
  font-size: 13px;
}

.fr-ledger__empty {
  background: var(--fr-card);
  border: 1px dashed var(--fr-rule-strong);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: var(--fr-ink-70);
  font-size: 14.5px;
}

/* ── Section 03 — Conviction table ────────────────────────── */
.fr-conviction { padding-bottom: 64px; }
.fr-conviction__scroll { overflow-x: auto; }
.fr-conviction__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  background: var(--fr-card);
  border: 1px solid var(--fr-rule);
  border-radius: 8px;
}
.fr-conviction__table th,
.fr-conviction__table td {
  padding: 12px 14px;
  text-align: right;
  font-size: 13.5px;
  color: var(--fr-ink);
  border-bottom: 1px solid var(--fr-rule);
}
.fr-conviction__table th {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fr-ink-40);
  background: var(--fr-gold-wash);
}
.fr-conviction__table tr:last-child td { border-bottom: 0; }
.fr-conviction__col-name,
.fr-conviction__name { text-align: left; font-weight: 700; }
.fr-conviction__num  { font-weight: 700; }
.fr-conviction__pl   { font-weight: 800; }
.fr-conviction__pl--profit { color: var(--fr-emerald); }
.fr-conviction__pl--loss   { color: var(--fr-rust); }
.fr-conviction__pl--flat   { color: var(--fr-ink-70); }

.fr-closing {
  margin: 28px 0 0;
  color: var(--fr-ink-70);
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  max-width: 70ch;
}
.fr-closing a {
  color: var(--fr-gold-ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--fr-gold);
  font-style: normal;
}
.fr-closing a:hover { background: var(--fr-gold-wash); }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .fr-hero { padding: 48px 0 40px; }
  /* The ledger table is wider than a phone — the wrapper's
     overflow-x: auto already handles horizontal scroll; here
     we just tighten cell padding so more content fits before
     the user has to swipe. */
  .fr-row > td { padding: 12px 10px; }
  .fr-table thead th { padding: 10px 10px; }
  .fr-cell { width: auto; padding-left: 10px; }
  .fr-table__col-race { min-width: 180px; }
  .fr-table__col-sel  { min-width: 150px; }
}
