/* /featured-results/ v2 — "The Open File", redesigned.
 *
 * Navy masthead over the paper look (css/paper.css tokens). Prices and
 * positions are set in DM Sans with tabular figures so every column of
 * numbers lines up. Position badges: gold 1st, silver 2nd, bronze 3rd,
 * outlined for the rest, dashed while the race is still to run.
 */
.fr2 {
  --fr2-navy:      #0E1726;
  --fr2-navy-rule: #2A3550;
  --fr2-navy-text: #B9C0CE;
  --fr2-navy-dim:  #8E97A8;
  --fr2-gold:      #C9A227;
  --fr2-gold-hi:   #D9B64A;
  --fr2-silver:    #C3C8D0;
  --fr2-bronze:    #B0703A;
  --fr2-profit:    #1F6E46;
  --fr2-loss:      #9B2C2C;
  --fr2-drift:     #8A3A1F;
  --fr2-ground:    #F5F3EE;
  --fr2-label:     #6B7180;

  background: var(--fr2-ground);
  color: var(--c-ink, #11151F);
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
}
.fr2 *, .fr2 *::before, .fr2 *::after { box-sizing: border-box; }
.fr2 a { color: inherit; text-decoration: none; }
.fr2 a:hover { text-decoration: underline; text-underline-offset: 3px; }

.fr2-wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .fr2-wrap { padding-left: 24px; padding-right: 24px; } }

.fr2-ico {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Every price, position and money figure. */
.fr2-num,
.fr2-stat__num,
.fr2-pos,
.fr2-result__num,
.fr2-race__when,
.fr2-roll-card__prices dd,
.fr2-race__pl dd,
.fr2-chip__n {
  font-variant-numeric: tabular-nums lining-nums;
}

.fr2-pl--profit { color: var(--fr2-profit); }
.fr2-pl--loss   { color: var(--fr2-loss); }
.fr2-pl--flat   { color: var(--fr2-label); }

/* ── Hero ── */
.fr2-hero {
  background: var(--fr2-navy);
  color: #FFFFFF;
  border-bottom: 3px solid var(--fr2-gold);
}
.fr2-hero__inner { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 36px; }
.fr2-hero__intro { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.fr2-hero__kicker {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fr2-gold-hi);
}
.fr2-hero__title {
  margin: 0; color: #FFFFFF;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.01em;
}
.fr2-hero__sub { margin: 0; font-size: 17px; line-height: 1.6; color: var(--fr2-navy-text); }

.fr2-stats {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--fr2-navy-rule);
}
.fr2-stat { padding: 22px 24px 0 0; display: flex; flex-direction: column; gap: 6px; }
.fr2-stat dd { margin: 0; }
.fr2-stat__num { order: -1; font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.fr2-stat__num--profit { color: #5FD08F; }
.fr2-stat__num--loss   { color: #F08A80; }
.fr2-stat__lbl { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fr2-navy-text); }
.fr2-stat__detail { font-size: 13px; color: var(--fr2-navy-dim); }

/* ── Sections ── */
.fr2-main { padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 64px; }
.fr2-section { display: flex; flex-direction: column; gap: 22px; }
.fr2-section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px;
  padding-bottom: 14px; border-bottom: 2px solid var(--c-ink, #11151F);
}
.fr2-section__kicker {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-gold-ink, #9C7B12);
}
.fr2-section__title {
  margin: 0; font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(26px, 3.4vw, 32px); font-weight: 700; line-height: 1.15; color: var(--c-ink, #11151F);
}
.fr2-section__aside { margin: 0; font-size: 14px; color: var(--c-ink-70, #41474F); }

/* ── Position badges ── */
.fr2-pos {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1;
}
.fr2-pos sup { font-size: 9px; margin-left: 1px; text-transform: uppercase; letter-spacing: .04em; top: -.45em; }
.fr2-pos--1   { background: var(--fr2-gold);   color: #1A1405; }
.fr2-pos--2   { background: var(--fr2-silver); color: #1B1F26; }
.fr2-pos--3   { background: var(--fr2-bronze); color: #FFFFFF; }
.fr2-pos--out { background: #FFFFFF; color: #4B5160; border: 1.5px solid var(--c-rule-strong, #D6D2C5); }
.fr2-pos--pending { background: #FFFFFF; color: var(--fr2-label); border: 1.5px dashed #BDB8AC; }
.fr2-pos--lg  { width: 44px; height: 44px; }
.fr2-pos--lg .fr2-ico { width: 22px; height: 22px; }
.fr2-pos--xs  { width: 22px; height: 22px; border-radius: 5px; font-size: 11px; }

/* ── Roll of honour ── */
.fr2-roll {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px;
}
.fr2-roll-card {
  background: var(--c-card, #FFFFFF); border: 1px solid var(--c-rule, #E7E5DD); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
.fr2-roll-card__top { display: flex; gap: 14px; align-items: flex-start; }
.fr2-roll-card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fr2-roll-card__horse {
  margin: 0; font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 21px; font-weight: 700; line-height: 1.2; color: var(--c-ink, #11151F);
}
.fr2-roll-card__meta { margin: 0; font-size: 13px; color: var(--c-ink-70, #41474F); }
.fr2-roll-card__race {
  margin: 0; font-size: 13px; color: var(--fr2-label);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fr2-roll-card__prices {
  margin: 0; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-rule, #E7E5DD);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fr2-roll-card__prices div { display: flex; flex-direction: column; gap: 4px; }
.fr2-roll-card__prices dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fr2-label); }
.fr2-roll-card__prices dd { margin: 0; font-size: 18px; font-weight: 600; }
.fr2-roll-card__return { align-items: flex-end; }

/* ── Ledger toolbar ── */
.fr2-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.fr2-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fr2-chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--c-rule-strong, #D6D2C5); background: #FFFFFF; color: #2A2F3A;
  font: 600 13.5px var(--font-body, 'DM Sans', sans-serif);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.fr2-chip:hover { border-color: var(--c-gold-ink, #9C7B12); }
.fr2-chip:focus-visible { outline: 2px solid var(--c-gold-ink, #9C7B12); outline-offset: 2px; }
.fr2-chip.is-on { background: var(--fr2-navy); border-color: var(--fr2-navy); color: #FFFFFF; }
.fr2-chip__n { font-size: 12px; opacity: .7; }
.fr2-key {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12.5px; color: #4B5160;
}
.fr2-key li { display: inline-flex; align-items: center; gap: 6px; }

/* ── Race cards ── */
.fr2-races { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.fr2-race {
  background: var(--c-card, #FFFFFF); border: 1px solid var(--c-rule, #E7E5DD);
  border-radius: 14px; overflow: hidden;
}
.fr2-race[hidden] { display: none; }
.fr2-race__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 20px; }

.fr2-result {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.fr2-result__num { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.fr2-result__num sup { font-size: 11px; text-transform: uppercase; top: -.8em; }
.fr2-result__ico { width: 24px; height: 24px; }
.fr2-result__lbl { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.fr2-result--win     { background: var(--fr2-gold);   color: #1A1405; }
.fr2-result--second  { background: var(--fr2-silver); color: #1B1F26; }
.fr2-result--third   { background: var(--fr2-bronze); color: #FFFFFF; }
.fr2-result--lost    { background: #EEEBE4; color: #3A3F4B; }
.fr2-result--pending,
.fr2-result--void    { background: #FFFFFF; color: #4B5160; border: 1.5px dashed #BDB8AC; }

.fr2-race__meta { flex: 999 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.fr2-race__when { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fr2-label); }
.fr2-race__course {
  margin: 0; font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--c-ink, #11151F);
}
.fr2-race__name { margin: 0; font-size: 14px; line-height: 1.45; color: var(--c-ink-70, #41474F); }

.fr2-race__figs { margin: 0; flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.fr2-race__figs div { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fr2-race__figs dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fr2-label); }
.fr2-race__figs dd { margin: 0; }
.fr2-race__conv { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; text-transform: capitalize; }
.fr2-race__conv .fr2-ico { width: 14px; height: 14px; color: var(--c-gold-ink, #9C7B12); stroke-width: 2.2; }
.fr2-race__pl { min-width: 88px; }
.fr2-race__pl dd { font-size: 20px; font-weight: 700; }

/* ── Selections table ── */
.fr2-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fr2-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.fr2-table th, .fr2-table td {
  padding: 12px 12px; text-align: left; vertical-align: middle;
  border-top: 1px solid #ECE8DF; font-weight: inherit;
}
.fr2-table th:first-child, .fr2-table td:first-child { padding-left: 20px; }
.fr2-table th:last-child,  .fr2-table td:last-child  { padding-right: 20px; }
.fr2-table thead th {
  padding-top: 10px; padding-bottom: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fr2-label);
}
.fr2-table tbody tr.is-winner { background: #FBF5E2; }
.fr2-col-pos { width: 64px; }
.fr2-col-btn { width: 72px; text-align: right !important; }

.fr2-sel { display: table-cell; }
.fr2-sel__role {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-gold-ink, #9C7B12);
}
.fr2-sel__horse { display: block; font-size: 16px; font-weight: 600; color: var(--c-ink, #11151F); }
.fr2-num { font-size: 15px; color: #2A2F3A; white-space: nowrap; }
.fr2-num--strong { font-weight: 700; color: var(--c-ink, #11151F); }
.fr2-table thead th.fr2-num { font-size: 10.5px; }

.fr2-mv { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--fr2-label); white-space: nowrap; }
.fr2-mv .fr2-ico { width: 14px; height: 14px; stroke-width: 2.4; }
.fr2-mv__short { display: none; }
.fr2-mv--beat  { color: var(--fr2-profit); }
.fr2-mv--drift { color: var(--fr2-drift); }

.fr2-race__winner {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 20px; border-top: 1px solid #ECE8DF; background: #FAF8F3;
  font-size: 13.5px; color: #4B5160;
}
.fr2-race__winner strong { color: var(--c-ink, #11151F); }
.fr2-race__winner .fr2-ico { width: 15px; height: 15px; color: var(--c-gold-ink, #9C7B12); }
.fr2-race__winner .fr2-num { font-size: 13.5px; }

/* ── Conviction table ── */
.fr2-conv {
  background: var(--c-card, #FFFFFF); border: 1px solid var(--c-rule, #E7E5DD); border-radius: 14px;
}
.fr2-conv .fr2-table { min-width: 520px; }
.fr2-conv thead th { border-top: 0; }
.fr2-conv th.fr2-num, .fr2-conv td.fr2-num { text-align: right; }
.fr2-conv .fr2-sel__horse { display: table-cell; font-size: 15px; text-transform: capitalize; }

.fr2-empty { margin: 0; padding: 24px; text-align: center; color: var(--c-ink-70, #41474F); }
.fr2-empty[hidden] { display: none; }
.fr2-footnote { margin: 0; font-size: 13px; line-height: 1.6; color: var(--fr2-label); }
.fr2-footnote a { color: var(--c-gold-ink, #9C7B12); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 600px) {
  .fr2-hero__inner { padding-top: 44px; padding-bottom: 36px; }
  .fr2-stat { padding-right: 12px; }
  .fr2-stat__num { font-size: 30px; }
  .fr2-race__head { padding: 16px; }
  .fr2-result { width: 60px; height: 60px; }
  .fr2-result__num { font-size: 22px; }
  .fr2-race__figs { justify-content: flex-start; }
  .fr2-race__figs div { align-items: flex-start; }

  /* Every column fits a phone: the market move is its arrow alone
     (the words stay for screen readers), badges and padding shrink,
     long names wrap. */
  .fr2-race .fr2-table { min-width: 0; }
  .fr2-race .fr2-table th, .fr2-race .fr2-table td { padding: 10px 5px; }
  .fr2-race .fr2-table th:first-child, .fr2-race .fr2-table td:first-child { padding-left: 12px; }
  .fr2-race .fr2-table th:last-child,  .fr2-race .fr2-table td:last-child  { padding-right: 12px; }
  .fr2-race .fr2-col-pos { width: 44px; }
  .fr2-race .fr2-col-btn { width: 40px; }
  .fr2-race .fr2-pos { width: 32px; height: 32px; font-size: 13px; }
  .fr2-race .fr2-sel__horse { font-size: 14.5px; line-height: 1.25; }
  .fr2-race .fr2-sel__role { font-size: 9.5px; letter-spacing: .1em; }
  .fr2-race .fr2-num { font-size: 14px; }
  .fr2-race .fr2-mv__txt {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .fr2-race .fr2-mv__short { display: inline; }
}
