:root {
  --bg: #eef2ee;
  --surface: #ffffff;
  --ink: #12201a;
  --ink-2: #34463d;
  --muted: #69786f;
  --line: #d6dfd9;
  --line-2: #ebf0ec;
  --brand: #0a4d33;
  --brand-d: #063622;
  --brand-2: #138a5a;
  --brand-weak: #e3f2ea;
  --gold: #e8a400;
  --red: #d7261e;
  --orange: #ea6a00;
  --blue: #1d64c8;
  --pos: #0a8a47;
  --neg: #d32121;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(18, 32, 26, .05), 0 2px 6px rgba(18, 32, 26, .06);
  --f1: #ffffff; --f1t: #111; --f2: #1c1c1c; --f2t: #fff; --f3: #e0262b; --f3t: #fff; --f4: #1d64c8; --f4t: #fff;
  --f5: #ffd600; --f5t: #111; --f6: #18964a; --f6t: #fff; --f7: #f28c00; --f7t: #fff; --f8: #f18db5; --f8t: #fff;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.num, td, dd, .pbar__val, .rrow__p { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(100deg, var(--brand-d), var(--brand) 60%, #10704a); box-shadow: 0 2px 8px rgba(6, 54, 34, .3); }
.top__in { display: flex; align-items: center; gap: 20px; height: 58px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; min-height: 44px; }
.logo:hover { color: #fff; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-weight: 900; font-size: 19px; letter-spacing: .05em; }
.logo__tag { font-size: 11px; color: #b9dcc9; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: #fff; font-weight: 700; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.strip { background: var(--brand-d); border-top: 1px solid rgba(255, 255, 255, .08); }
.strip__in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.strip__in::-webkit-scrollbar { display: none; }
.strip__v { flex: none; font-size: 14px; font-weight: 700; color: #7fa392; padding: 8px 11px; min-height: 36px; border-radius: 6px; white-space: nowrap; }
.strip__in { align-items: center; }
.strip__lbl { flex: none; font-size: 11px; font-weight: 800; color: var(--brand-d); background: var(--gold); padding: 3px 8px; border-radius: 4px; margin-right: 4px; white-space: nowrap; }
.strip__sep { flex: none; width: 1px; height: 22px; background: rgba(255, 255, 255, .25); margin: 0 6px; }
.strip__v { display: inline-flex; align-items: center; }
.strip__v.is-open { color: #fff; background: rgba(255, 255, 255, .2); }
.strip__v.is-open:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.moon { width: 13px; height: 13px; margin-left: 5px; fill: #ffd54a; flex: none; }
.strip__v.is-current .moon { fill: #3b3fb0; }
.strip__v.is-current { background: #fff; color: var(--brand); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--brand-2); font-weight: 600; display: inline-block; padding: 6px 0; }
.main { padding-top: 16px; padding-bottom: 56px; }

/* ---------- headings, blocks ---------- */
.h1 { font-size: 28px; font-weight: 900; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.h1 small { font-size: 15px; font-weight: 700; color: var(--brand-2); }
.lead { color: var(--ink-2); margin: 6px 0 16px; max-width: 760px; }
.h2 { position: relative; font-size: 18px; font-weight: 900; margin-bottom: 10px; padding-left: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.h2::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 6px; border-radius: 3px; background: var(--brand); }
.h2 small { font-weight: 600; color: var(--muted); }
.h2--red::before { background: var(--red); } .h2--gold::before { background: var(--gold); }
.h2--blue::before { background: var(--blue); } .h2--orange::before { background: var(--orange); }
.block { margin-bottom: 28px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.empty { background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; color: var(--ink-2); }
.empty a, .prose a, .links a { color: var(--brand-2); font-weight: 700; }
.links { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 14px; align-items: center; }
.links a { display: inline-block; padding: 8px 0; }
.links b { margin-right: 4px; }

/* ---------- banner ---------- */
.banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px;
  background: linear-gradient(120deg, #fff 0%, #f1f8f3 60%, #e0f0e6 100%); border: 1px solid #c8e0d1;
  border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow); }
.banner__date { margin: 0 0 2px; font-weight: 900; color: var(--brand); }
.banner__date span { margin-left: 8px; font-size: 12px; color: #fff; background: var(--orange); padding: 1px 8px; border-radius: 4px; vertical-align: 1px; }
.banner h1 { font-size: 30px; font-weight: 900; }
.mk { color: var(--brand); background: linear-gradient(transparent 62%, #ffe27a 62%); padding: 0 2px; }
.banner__lead { margin: 6px 0 0; color: var(--ink-2); max-width: 620px; font-size: 14px; }
.kpis { display: flex; gap: 8px; margin: 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px 8px; min-width: 84px; }
.kpi dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi dd { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.2; }
.kpi small { font-size: 12px; color: var(--muted); margin-left: 2px; }

/* ---------- frames, marks, badges ---------- */
.fr { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 6px; font-weight: 900; font-size: 15px; line-height: 1; flex: none; }
.fr--sm { min-width: 22px; height: 22px; font-size: 13px; border-radius: 4px; }
.fr--0 { background: #e6ebe8; color: var(--ink); }
.fr--1 { background: var(--f1); color: var(--f1t); box-shadow: inset 0 0 0 1.5px #9aa8a0; }
.fr--2 { background: var(--f2); color: var(--f2t); } .fr--3 { background: var(--f3); color: var(--f3t); }
.fr--4 { background: var(--f4); color: var(--f4t); } .fr--5 { background: var(--f5); color: var(--f5t); }
.fr--6 { background: var(--f6); color: var(--f6t); } .fr--7 { background: var(--f7); color: var(--f7t); }
.fr--8 { background: var(--f8); color: var(--f8t); }
.combo { display: inline-flex; gap: 3px; align-items: center; }
.mark { display: inline-block; min-width: 1.2em; text-align: center; font-weight: 900; color: var(--red); font-size: 17px; line-height: 1; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px; line-height: 1.5; white-space: nowrap; color: #fff; vertical-align: 2px; margin-left: 6px; }
.badge--night { background: #3b3fb0; }
.badge--grade { background: linear-gradient(135deg, #b8860b, #f3c623 50%, #b8860b); color: #2b1d00; }
.badge--special { background: var(--blue); }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag--solid { background: #e1f3e8; color: #0b6b3a; } .tag--solidish { background: #e7f0fb; color: #1b5aa8; }
.tag--mixed { background: #fff3dc; color: #9a5b00; } .tag--wild { background: #fde5e3; color: #b3241b; }
.st { display: inline-block; font-size: 13px; font-weight: 800; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.st--open { background: var(--brand-weak); color: var(--brand); } .st--open.is-soon { background: var(--red); color: #fff; }
.st--closed { background: #eceeed; color: var(--muted); } .st--done { background: var(--ink); color: #fff; }
.appr { font-style: normal; color: var(--orange); font-weight: 800; margin-left: 2px; }

/* ---------- venue cards & race rows ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.vcard { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow); }
.vcard:hover { border-color: var(--brand-2); color: inherit; }
.vcard__name { font-size: 18px; font-weight: 900; }
.vcard__meta, .vcard__next { font-size: 13px; color: var(--ink-2); }
.vcard__main { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard__main .badge { margin: 0 4px 0 0; }
.rlist { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rrow { display: grid; grid-template-columns: 74px 1fr auto 80px; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); min-height: 52px; }
.rrow:last-child { border-bottom: 0; }
.rrow:hover { background: #f6faf7; color: inherit; }
.rrow__race { display: flex; flex-direction: column; min-width: 0; }
.rrow__race em { font-style: normal; font-weight: 900; color: var(--brand); margin-left: 6px; }
.rrow__race small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow__fav { display: flex; align-items: center; gap: 6px; }
.rrow__horse { font-weight: 700; font-size: 14px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow__p { font-size: 20px; font-weight: 900; min-width: 44px; text-align: right; }
.rrow__p small { font-size: 12px; color: var(--muted); }
.rrow__conf { text-align: right; }
.mains { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.main-r { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.main-r:hover { border-color: var(--gold); color: inherit; }
.main-r__head { display: flex; align-items: center; gap: 4px; }
.main-r__head small { margin-left: auto; color: var(--muted); font-weight: 700; }
.main-r__name { font-weight: 900; font-size: 16px; }
.main-r__meta { font-size: 13px; color: var(--muted); }
.main-r__fav { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.main-r__fav em { margin-left: auto; font-style: normal; font-weight: 900; font-size: 18px; color: var(--red); }

/* ---------- race card ---------- */
.rjump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.rjump a { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 5px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-weight: 900; color: var(--brand); line-height: 1.2; }
.rjump a small { font-weight: 600; color: var(--muted); font-size: 11px; }
.rjump a:hover { border-color: var(--brand-2); }
.race { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 110px; }
.race__head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: linear-gradient(90deg, var(--brand-weak), #fff); border-bottom: 1px solid var(--line); }
.race__no { display: flex; align-items: baseline; justify-content: center; padding-top: 12px; min-width: 52px; height: 52px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 24px; font-weight: 900; line-height: 1; }
.race__no small { font-size: 12px; }
.race__title { flex: 1; min-width: 0; }
.race__title h3 { font-size: 17px; font-weight: 900; }
.race__title p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.sep { margin: 0 5px; color: var(--muted); }
.race__st { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.race__ai { margin: 0; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--line-2); background: #fffdf5; }
.race__ai b { display: inline-block; margin-right: 8px; font-size: 12px; color: #fff; background: var(--gold); padding: 1px 8px; border-radius: 4px; vertical-align: 1px; }

.hl__row { display: grid; grid-template-columns: 28px 40px minmax(140px, 1.6fr) minmax(90px, 1fr) 96px 70px minmax(120px, 1.3fr) 56px; align-items: center; gap: 8px; padding: 7px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.race--result .hl__row { grid-template-columns: 28px 40px minmax(140px, 1.6fr) minmax(90px, 1fr) 96px 70px minmax(120px, 1.3fr) 56px 60px; }
.race--nopred .hl__pw, .race--nopred .hl__p3 { display: none; }
.hl--odds .hl__row { grid-template-columns: 28px 40px minmax(140px, 1.6fr) minmax(90px, 1fr) 96px 70px 64px minmax(120px, 1.3fr) 56px; }
.hl__od { display: flex; flex-direction: column; line-height: 1.35; text-align: right; }
.hl__od small { color: var(--muted); }
.only-m { display: none; }
.race__note { margin: 0; padding: 10px 14px; font-size: 13px; color: var(--ink-2); background: #f6f7f6; border-bottom: 1px solid var(--line-2); }
.race__odds { margin: 0; padding: 6px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.race--nopred .hl__row { grid-template-columns: 28px 40px minmax(140px, 1.6fr) minmax(90px, 1fr) 96px 70px 60px; }
.hl__row--head { font-size: 12px; font-weight: 700; color: var(--muted); background: #f8faf8; padding-top: 5px; padding-bottom: 5px; }
.hl__row.is-top { background: #fffbea; }
.hl__row.is-out { opacity: .5; }
.hl__horse, .hl__jk, .hl__rec, .hl__bw, .hl__fin { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.hl__horse b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl__horse small, .hl__jk small, .hl__rec small, .hl__bw small, .hl__fin small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl__p3 { text-align: right; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pbar { position: relative; display: block; height: 24px; background: #eef2ef; border-radius: 6px; overflow: hidden; }
.pbar__fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3fb57a, var(--brand-2)); border-radius: 6px; max-width: 100%; }
.is-top .pbar__fill { background: linear-gradient(90deg, #f5b829, #e08a00); }
.pbar__val { position: relative; display: block; padding: 0 8px; line-height: 24px; font-weight: 900; font-size: 14px; }
.fin { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e6ebe8; font-size: 14px; }
.fin--1 { background: var(--gold); color: #fff; } .fin--2 { background: #9aa6ae; color: #fff; } .fin--3 { background: #c27a3e; color: #fff; }
.race__combos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 14px; }
.race__combos h4, .race__res h4 { font-size: 13px; margin-bottom: 6px; color: var(--ink-2); }
.cl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cl li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 8px; background: #f6f9f7; border-radius: 6px; font-size: 14px; font-weight: 700; }
.race__res { padding: 12px 14px; border-top: 1px solid var(--line-2); background: #fafbfa; }
.pays { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; }
.pays div { display: flex; gap: 10px; }
.pays dt { font-weight: 800; min-width: 44px; color: var(--brand); }
.pays dd { margin: 0; display: flex; flex-direction: column; }
.pays small { margin-left: 4px; color: var(--muted); }

/* ---------- venue page ---------- */
.vhead { margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.card h3 { font-size: 15px; font-weight: 900; margin-bottom: 8px; }
.card h3 small { font-weight: 600; color: var(--muted); }
.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { font-size: 12px; color: var(--muted); font-weight: 700; text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.t td { text-align: right; padding: 5px 6px; border-bottom: 1px solid var(--line-2); }
.t th:first-child, .t td:first-child { text-align: left; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bars li { display: grid; grid-template-columns: 40px 1fr 56px; align-items: center; gap: 8px; font-size: 14px; }
.bars b { text-align: right; }
.bars__bar { height: 14px; background: #eef2ef; border-radius: 7px; overflow: hidden; }
.bars__bar i { display: block; height: 100%; background: var(--brand-2); border-radius: 7px; max-width: 100%; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts div { background: #f6f9f7; border-radius: 8px; padding: 8px; text-align: center; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-size: 20px; font-weight: 900; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 12px 14px; font-weight: 800; list-style: none; }
.faq summary::before { content: "Q"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; }
.faq p { margin: 0; padding: 0 14px 14px 44px; color: var(--ink-2); }
.daynav { display: flex; gap: 14px; margin-bottom: 12px; font-weight: 700; }
.daynav a { color: var(--brand-2); display: inline-block; padding: 8px 0; }
.vtable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vtable__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; text-align: right; }
.vtable__row > :first-child { text-align: left; display: flex; flex-direction: column; }
.vtable__row small { color: var(--muted); }
.vtable__row--head { font-size: 12px; color: var(--muted); font-weight: 700; background: #f8faf8; }
a.vtable__row:hover { background: #f6faf7; color: inherit; }
.prose { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px 18px; }
.prose h2 { font-size: 18px; margin: 18px 0 6px; color: var(--brand); }
.prose p { margin: 0 0 10px; }

/* ---------- footer ---------- */
.foot { background: var(--brand-d); color: #c9ddd2; padding: 28px 0 40px; font-size: 13px; }
.foot__cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 18px; }
.foot__cols h3 { font-size: 13px; color: #fff; margin-bottom: 6px; }
.foot__cols a { display: block; padding: 8px 0; }
.foot a:hover { color: #fff; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-bottom: 8px; font-weight: 700; }
.foot__links a { display: inline-block; padding: 9px 0; }
.foot__links--sub a { font-weight: 600; color: #b3cdbf; }
.foot__note { margin: 6px 0 0; color: #9fbcad; font-size: 12px; }
.pagetop { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .2s; }
.pagetop span { font-size: 10px; font-weight: 800; }
.pagetop.is-on { opacity: 1; pointer-events: auto; }
.pagetop:hover { color: #fff; }

/* ---------- small screens: cards, not squeezed tables ---------- */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; gap: 0; }
  .hl__row, .race--result .hl__row { grid-template-columns: 24px 34px 1fr 92px; grid-template-areas: "m n h p" "m n j p3"; row-gap: 2px; }
  .hl__row--head { display: none; }
  .hl__mark { grid-area: m; } .hl__no { grid-area: n; } .hl__horse { grid-area: h; } .hl__pw { grid-area: p; }
  .hl__jk { grid-area: j; flex-direction: row; gap: 6px; font-size: 13px; color: var(--ink-2); }
  .hl__rec, .hl__bw, .hl__od { display: none; }
  .hl--odds .hl__row { grid-template-columns: 24px 34px 1fr 92px; }
  .only-m { display: inline; }
  .hl__p3 { grid-area: p3; font-size: 12px; font-weight: 600; color: var(--muted); }
  .hl__p3::before { content: "3着内 "; }
  .race--result .hl__row { grid-template-columns: 24px 34px 1fr 92px 40px; grid-template-areas: "m n h p f" "m n j p3 f"; }
  .hl__fin { grid-area: f; align-items: center; }
  .race--nopred .hl__row { grid-template-columns: 24px 34px 1fr 48px; grid-template-areas: "m n h f" "m n j f"; }
  .hl__fin small { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 12px; }
  .hide-s { display: none; }
  .logo__tag { display: none; }
  .top__in { gap: 8px; height: 52px; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .banner { padding: 14px 16px; }
  .banner h1 { font-size: 24px; }
  .h1 { font-size: 23px; }
  .rrow { grid-template-columns: 62px 1fr auto auto; gap: 8px; }
  .rrow__conf .tag { font-size: 11px; padding: 2px 6px; }
  .vgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vcard { padding: 8px 10px; }
  .vcard__name { font-size: 16px; }
  .vcard__main { font-size: 12px; }
  .vcard__name .badge { margin-left: 4px; }
  .rrow__horse { display: none; }
  .race__head { padding: 10px 12px; gap: 10px; }
  .race__no { min-width: 44px; height: 44px; font-size: 20px; padding-top: 9px; }
  .race__st { display: none; }
  .hl__row { padding: 7px 10px; gap: 6px; }
  .race__combos { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .vtable__row { grid-template-columns: 1.3fr 1fr 1fr; }
  .vtable__row > :nth-child(4), .vtable__row > :nth-child(5) { display: none; }
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- service pages ---------- */
.prose h1 { font-size: 26px; font-weight: 900; margin: 4px 0 12px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.eyebrow { margin: 14px 0 0; font-size: 13px; font-weight: 800; color: var(--brand-2); }
.ptable { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.ptable th, .ptable td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.ptable th { background: #eef5f0; width: 8em; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.ptable--wide th { width: auto; }
.ptable--wide tr:first-child th { background: var(--brand); color: #fff; }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dodont > div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #f7fbf8; }
.dodont > div + div { background: #fdf6f5; }
.dodont > div h3 { color: var(--pos); } .dodont > div + div h3 { color: var(--red); }
.dodont h3 { font-size: 15px; font-weight: 900; margin: 0 0 4px; }
.dodont ul { margin: 0; }
.dodont li { font-size: 14px; }
.note-list { font-size: 14px; color: var(--ink-2); }
.notice { border-radius: 8px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.notice p { margin: 2px 0; }
.notice--ok { background: #e7f6ee; border: 1px solid #b6e0c7; color: #0b5b31; }
.notice--err { background: #fdecec; border: 1px solid #f3c0c0; color: #8f1616; }
.form { display: grid; gap: 14px; margin-top: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 800; }
.form__lbl { display: flex; align-items: center; gap: 2px; }
.form input, .form select, .form textarea { font: 16px/1.5 var(--font); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-height: 44px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(19, 138, 90, .18); }
.req, .opt { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 3px; margin-left: 6px; }
.req { background: var(--red); color: #fff; }
.opt { background: #e6ece8; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--submit { justify-self: start; min-height: 48px; padding: 0 32px; font: 900 16px var(--font); border: 0; border-radius: 8px; cursor: pointer; background: var(--brand); color: #fff; }
.btn--submit:hover { background: var(--brand-2); }
@media (max-width: 700px) {
  .dodont { grid-template-columns: 1fr; }
  .ptable th { width: 6.5em; white-space: normal; }
  .ptable th, .ptable td { padding: 8px; font-size: 13px; }
  .btn--submit { width: 100%; }
  .prose { padding: 4px 14px 14px; }
  .prose a, .empty a, .note a { display: inline-block; padding: 8px 0; }
}

/* ---------- big race pages ---------- */
.rfacts { margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rfacts div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.rfacts dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.rfacts dd { margin: 0; font-weight: 800; }
.rfacts a { color: var(--brand-2); display: inline-block; padding: 6px 0; margin: -6px 0; }
.bars li.bars--wide { grid-template-columns: 96px 1fr 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #f6f9f7; border-radius: 6px; padding: 4px 8px; font-size: 14px; }
.chip b { font-weight: 900; }
.past { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.past__row { display: grid; grid-template-columns: 72px 1fr 1fr 1fr 110px; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.past__row:last-child { border-bottom: 0; }
.past__row--head { font-size: 12px; font-weight: 700; color: var(--muted); background: #f8faf8; }
.past__y, .past__h, .past__p { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.past__y small, .past__h small, .past__p small { color: var(--muted); }
.past__h b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.past__h--1 b { color: var(--brand); }
.past__pos { display: none; font-style: normal; font-size: 11px; color: var(--muted); }
.past__p { text-align: right; font-weight: 800; }
@media (max-width: 760px) {
  .past__row { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .past__row--head { display: none; }
  .past__y { grid-column: 1; flex-direction: row; gap: 8px; align-items: baseline; }
  .past__p { grid-column: 2; grid-row: 1; }
  .past__h { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
  .past__pos { display: inline; }
}
