/* NI Pigeons - one light theme everywhere (no dark-mode switching, so every device sees the same site). */
:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --text: #16263d;
  --muted: #5a6b80;
  --line: #dde6f0;
  --line-strong: #c8d6e5;
  --navy: #14294b;
  --brand: #2b77bd;
  --brand-dark: #1f5f99;
  --brand-soft: #e6f0fa;
  --link: #1f67ad;
  --accent: #b7791f;
  --gold: #b7791f; --silver: #6b7280; --bronze: #9a5b34;
  --good: #15803d; --bad: #b42318;
  --nipa: #1d4ed8; --edc: #b91c1c; --muf: #7c3aed; --uf: #0f766e;
  --bar: #8fbbe3;
  --warn-bg: #fff7e6; --warn-line: #f0d08a; --err-bg: #fdeeee; --err-line: #f0b4b4; --ok-bg: #eaf6ee; --ok-line: #a8d5b6;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 41, 75, .05), 0 2px 8px rgba(20, 41, 75, .04);
  --shadow-lg: 0 10px 30px rgba(20, 41, 75, .12);
  --ring: 0 0 0 3px rgba(43, 119, 189, .22);
  color-scheme: light;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Full-width decorations (the home page glow) must never make the page scroll sideways. */
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; width: 100%; padding-bottom: 2.5rem; }
a { color: var(--link); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
h1, h2, h3 { color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: 2rem; line-height: 1.15; font-weight: 750; margin: 1.6rem 0 .5rem; }
h2 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; margin: 0 0 .75rem; }
h3 { font-size: 1rem; font-weight: 700; margin: 1.1rem 0 .5rem; }
p { margin: 0 0 .9rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.4rem; max-width: 70ch; }
.crumbs { margin: 1.4rem 0 0; font-size: .88rem; color: var(--muted); }
.crumbs + h1 { margin-top: .35rem; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.inline { display: inline; }
.prose { max-width: 78ch; }
.prose p, .prose li { line-height: 1.65; }
.prose h2 { margin-top: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
code.secret { font-size: 1rem; letter-spacing: .06em; background: var(--surface-2); border: 1px solid var(--line); padding: .15rem .45rem; border-radius: 6px; word-break: break-all; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(20, 41, 75, .02); position: sticky; top: 0; z-index: 30; }
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--navy), var(--brand) 60%, #8fbbe3); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.15rem; color: var(--navy); flex: none; }
.brand:hover { text-decoration: none; }
.brand img.logo-wide { height: 48px; width: auto; max-width: 240px; object-fit: contain; display: block; }
.brand img.logo { height: 34px; width: auto; max-width: 60px; object-fit: contain; }
.header-panel { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.main-nav { display: flex; gap: .15rem; flex-wrap: nowrap; }
.main-nav a { color: var(--navy); font-weight: 550; font-size: .95rem; padding: .45rem .7rem; border-radius: 8px; white-space: nowrap; transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--brand-soft); text-decoration: none; }
.main-nav a[aria-current] { background: var(--brand-soft); color: var(--brand-dark); box-shadow: inset 0 -2px 0 var(--brand); }
.search { margin-left: auto; position: relative; }
.search input { width: 230px; height: 40px; padding: 0 .85rem 0 2.2rem; font: inherit; font-size: .92rem; color: var(--text);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b80' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .7rem center / 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .15s, box-shadow .15s, width .2s; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); background-color: #fff; }
.user-nav { display: flex; align-items: center; flex: none; }
/* Link to EDC Race Manager (the clubs' program, on its own address) beside Sign in. */
.edc-link { font-size: .9rem; font-weight: 600; color: var(--brand-dark); margin-right: .9rem; white-space: nowrap; }
.nav-toggle, .nav-button { display: none; }

/* account menu */
.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .3rem .55rem .3rem .3rem;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--navy); font-size: .92rem; user-select: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin: 0 .2rem 0 .1rem; }
.account-menu summary:hover, .account-menu[open] summary { background: var(--brand-soft); border-color: var(--line-strong); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--brand)); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.account-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 40; }
.menu-head { display: flex; flex-direction: column; padding: .5rem .65rem .65rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; font-size: .9rem; }
.menu-head span { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
.account-menu .menu a, .account-menu .menu button { display: block; width: 100%; text-align: left; padding: .5rem .65rem; border-radius: 8px;
  color: var(--text); font: inherit; font-size: .93rem; background: none; border: 0; cursor: pointer; }
.account-menu .menu a:hover, .account-menu .menu button:hover { background: var(--brand-soft); text-decoration: none; }
.account-menu .menu form { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px solid var(--line); }

/* ---------- buttons and forms ---------- */
.btn, .hero-search button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 42px; padding: 0 1.15rem;
  font: inherit; font-size: .95rem; font-weight: 650; line-height: 1; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand); color: #fff;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:hover, .hero-search button:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #8f1c13; border-color: #8f1c13; }
.small-btn { height: 34px; padding: 0 .85rem; font-size: .88rem; border-radius: 8px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; }

fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
fieldset.card { border: 1px solid var(--line); padding: 1.2rem 1.3rem; }
legend { font-weight: 700; color: var(--navy); margin-bottom: .5rem; padding: 0; font-size: 1.02rem; }
.field { display: block; margin: .3rem 0 1rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.field .muted, .field .small { font-weight: 400; display: block; margin-top: .3rem; }
.field input, .field select, textarea, .search-row input, .search-row select, .admin-actions input, .inline-form input {
  display: block; width: 100%; margin-top: .35rem; height: 44px; padding: 0 .8rem; font: inherit; font-size: .97rem; font-weight: 400; color: var(--text);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: .65rem .8rem; line-height: 1.5; resize: vertical; }
.inline-form select { height: 44px; padding: 0 .6rem; font: inherit; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--text); }
.field select, .search-row select { appearance: none; padding-right: 2.2rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b80' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .75rem center / 16px; }
.field input[type=file] { height: auto; padding: .55rem; background: var(--surface-2); }
.field input:focus, .field select:focus, textarea:focus, .search-row input:focus, .search-row select:focus, .admin-actions input:focus, .inline-form input:focus,
table.upload-rows input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field input:disabled, .field input[readonly], .field select:disabled { background: var(--surface-2); color: var(--muted); }
.choice { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; font-size: .95rem; line-height: 1.4; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--brand); flex: none; }
.row-2, .row-3 { display: grid; gap: 0 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.narrow { max-width: 540px; }
.upload-form { max-width: 780px; }
.search-row, .inline-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: 0 0 1.2rem; }
.search-row input { flex: 1; min-width: 200px; margin: 0; width: auto; }
.search-row select { margin: 0; width: auto; min-width: min(100%, 260px); }
.inline-form input { width: 6.5rem; margin: 0; display: inline-block; }
.admin-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 0 0 1.2rem; }
.admin-actions input { flex: 1; min-width: 180px; margin: 0; width: auto; }

/* ---------- cards, grids, stats ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin: 0 0 1.25rem; min-width: 0; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.25rem; align-items: start; }
.grid-2 > .card { margin: 0; }
.grid-2 + .card, .grid-2 + .grid-2, .grid-2 + section { margin-top: 1.25rem; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; }
.club-grid .card { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.25rem 0 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--brand), #8fbbe3); }
.stat-value { font-size: 1.7rem; font-weight: 750; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.stat-sub { color: var(--muted); font-size: .76rem; }
a.admin-tile, a.sale-card { display: block; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.admin-tile:hover, a.sale-card:hover, a.lot-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); text-decoration: none; transform: translateY(-2px); }
a.admin-tile h2 { color: var(--brand-dark); }

/* ---------- hero (home) ---------- */
.hero { margin: 0 -20px 0; padding: 2.6rem 20px 1.6rem; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: radial-gradient(800px 260px at 15% 0%, rgba(43, 119, 189, .12), transparent 70%); z-index: -1; }
.hero h1 { font-size: 2.6rem; line-height: 1.1; max-width: 20ch; margin-top: 0; }
.hero p { color: var(--muted); max-width: 60ch; font-size: 1.12rem; }
.hero-search { display: flex; gap: .6rem; max-width: 600px; margin-top: 1.3rem; position: relative; }
.hero-search input { flex: 1; min-width: 0; height: 52px; padding: 0 1rem 0 2.8rem; font: inherit; font-size: 1.02rem; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b80' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1rem center / 18px; }
.hero-search input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.hero-search button { height: 52px; padding: 0 1.4rem; border-radius: 12px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 .5rem; }
.card > .table-wrap { margin-left: -.4rem; margin-right: -.4rem; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650;
  padding: .55rem .6rem; border-bottom: 1px solid var(--line-strong); white-space: nowrap; background: transparent; }
td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
table.results td:nth-child(1), table.rank td:nth-child(1) { color: var(--muted); width: 2.6rem; font-weight: 600; }
table.compact td, table.compact th { padding: .38rem .5rem; }
.total-row td { font-weight: 700; border-top: 2px solid var(--line-strong); background: var(--surface-2); }
.ring { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; font-size: .86em; white-space: nowrap; letter-spacing: .01em; }
.ring-title { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; letter-spacing: .02em; }
.gold { color: var(--gold); font-weight: 750; } .silver { color: var(--silver); font-weight: 750; } .bronze { color: var(--bronze); font-weight: 750; }

/* ---------- badges, pills, tabs ---------- */
.badge { display: inline-block; font-size: .66rem; font-weight: 750; letter-spacing: .05em; padding: .12rem .42rem; border-radius: 6px;
  border: 1px solid currentColor; vertical-align: 1px; line-height: 1.3; background: #fff; }
.org-nipa { color: var(--nipa); } .org-edc { color: var(--edc); } .org-muf { color: var(--muf); } .org-uf { color: var(--uf); }
.badge.nom { color: var(--accent); }
.badge.status-live { color: var(--good); background: var(--ok-bg); } .badge.status-upcoming { color: var(--accent); background: var(--warn-bg); }
.badge.status-ended, .badge.status-draft { color: var(--muted); }
.pills, .tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 1.25rem; }
.pills a, .tabs a { padding: .4rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--navy);
  font-size: .9rem; font-weight: 550; transition: background .15s, border-color .15s; }
.pills a:hover, .tabs a:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.pills a[aria-current], .tabs a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs { border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.tabs a { border-radius: 8px; }

/* ---------- notices ---------- */
.notice { border: 1px solid; border-radius: var(--radius-sm); padding: .85rem 1.05rem; margin: 0 0 1.2rem; line-height: 1.5; }
.notice.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.notice.error { background: var(--err-bg); border-color: var(--err-line); }
.notice.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.small-notice { font-size: .86rem; background: #fff; border-color: var(--line); color: var(--muted); }
.pill-ok, .pill-fixed, .pill-check { display: inline-block; padding: .08rem .55rem; border-radius: 999px; font-size: .84rem; border: 1px solid; margin-left: .3rem; font-weight: 550; }
.pill-ok { background: var(--ok-bg); border-color: var(--ok-line); }
.pill-fixed { background: var(--warn-bg); border-color: var(--warn-line); }
.pill-check { background: var(--err-bg); border-color: var(--err-line); }
.status-pending { font-weight: 700; color: var(--accent); } .status-approved { color: var(--good); font-weight: 600; } .status-rejected { color: var(--muted); }

/* ---------- results extras ---------- */
.form-guide { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: .6rem 0; }
.form { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .35rem; border-radius: 8px; font-weight: 750; font-size: .85rem; color: #fff; box-shadow: var(--shadow); }
.form:hover { text-decoration: none; filter: brightness(1.08); }
.form.win { background: var(--gold); } .form.top10 { background: var(--brand-dark); } .form.top100 { background: #4a82bb; } .form.placed { background: #7d8a9c; }
.bar { display: inline-block; height: .55rem; width: calc(var(--w) * 0.6); max-width: 60%; min-width: 2px; background: linear-gradient(90deg, var(--brand), #8fbbe3); border-radius: 99px; vertical-align: middle; margin-right: .35rem; }
.source { color: var(--muted); font-size: .86rem; margin: 1.2rem 0 0; }

/* ---------- upload ---------- */
table.upload-rows td { padding: .25rem .3rem; }
table.upload-rows input { font: inherit; font-size: .85rem; height: 32px; padding: 0 .4rem; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--text); }
.w-xs { width: 3.8rem; } .w-s { width: 6.8rem; } .w-m { width: 9.5rem; } .w-l { width: 13rem; }
tr.row-check td { background: var(--err-bg); }
tr.row-fixed td { background: var(--warn-bg); }

/* ---------- auctions ---------- */
.section-h { margin: 1.8rem 0 .8rem; }
.sale-card h2 { margin: .55rem 0 .25rem; font-size: 1.2rem; }
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 1.25rem; margin: 0 0 1.4rem; }
a.lot-card { color: var(--text); padding: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lot-photo { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.lot-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a.lot-card:hover .lot-photo img { transform: scale(1.03); }
.lot-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.lot-body h3 { margin: .1rem 0 .3rem; font-size: 1rem; line-height: 1.35; }
.lot-price { font-size: 1.3rem; font-weight: 750; color: var(--navy); margin-top: auto; }
.lot-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 1.5rem; align-items: start; }
.lot-layout aside { position: sticky; top: 90px; }
.gallery img#main-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin: .7rem 0 1.2rem; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.thumbs button:hover, .thumbs button:focus-visible { border-color: var(--brand); }
.thumbs img { width: 76px; height: 57px; object-fit: cover; border-radius: 6px; display: block; }
.bid-card { border-top: 4px solid var(--brand); }
.bid-card .big-price { font-size: 2.4rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; margin: .1rem 0 .3rem; }
.bid-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.bid-form .btn { width: 100%; }
.you-lead { color: var(--good); font-weight: 700; } .you-out { color: var(--bad); font-weight: 700; }
p.you-lead, p.you-out { margin: .7rem 0 0; padding: .5rem .7rem; border-radius: 8px; }
p.you-lead { background: var(--ok-bg); } p.you-out { background: var(--err-bg); }
.lot-nav { display: flex; justify-content: space-between; margin: .7rem 0 0; font-weight: 600; }
.pay-details { background: var(--surface-2); border: 1px solid var(--line); padding: .75rem .9rem; border-radius: 10px; font-variant-numeric: tabular-nums; line-height: 1.7; }
.won-lot { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.won-lot:last-child { border-bottom: 0; padding-bottom: 0; }
.thumb-admin { display: flex; gap: 1rem; flex-wrap: wrap; } .thumb-admin form { text-align: center; }
.thumb-admin img { width: 130px; height: 98px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: .3rem; border: 1px solid var(--line); }
.no-auction { text-align: center; padding: 3rem 1.5rem; }
.no-auction h2 { font-size: 1.35rem; margin-bottom: .5rem; }

/* ---------- search suggestions ---------- */
form.has-suggest { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; margin: 0; padding: .35rem; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 280px; }
.suggest li { padding: .5rem .7rem; cursor: pointer; display: flex; flex-direction: column; line-height: 1.3; border-radius: 8px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--brand-soft); }
.suggest .sg-main { color: var(--text); font-weight: 550; } .suggest .sg-main strong { color: var(--brand-dark); }
.suggest .sg-sub { color: var(--muted); font-size: .8rem; }
.search .suggest { left: auto; right: 0; width: 340px; max-width: calc(100vw - 40px); }
.hero-search .suggest { right: auto; width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: auto; padding: 2.4rem 0 1.2rem; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-brand p { margin: .8rem 0 0; max-width: 34ch; }
.footer-logo { height: 46px; width: auto; display: block; }
.site-footer nav { display: flex; flex-direction: column; gap: .45rem; }
.site-footer h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--navy); margin: 0 0 .35rem; }
.site-footer nav a { color: var(--text); }
.site-footer nav a:hover { color: var(--brand-dark); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.1rem; font-size: .84rem; }

/* ---------- cookie notice ---------- */
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: var(--navy); color: #e8f0fa;
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: .85rem 0; z-index: 60; font-size: .92rem; }
.cookie-notice .wrap { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 0 1.1rem; }
.cookie-notice a { color: #b9d8f5; text-decoration: underline; }
.cookie-notice .btn { background: #fff; color: var(--navy); border-color: #fff; flex: none; }
.cookie-notice .btn:hover { background: var(--brand-soft); }

/* ---------- tablet and phone ---------- */
@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; min-height: 64px; gap: .75rem; }
  .nav-button { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 10px;
    border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; order: 3; background: #fff; }
  .nav-button span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .user-nav { margin-left: auto; order: 2; }
  .header-panel { order: 4; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: .5rem; padding: .3rem 0 1rem; }
  .nav-toggle:checked ~ .header-panel { display: flex; }
  .nav-toggle:checked ~ .nav-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-button span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { flex-direction: column; gap: .1rem; }
  .main-nav a { padding: .7rem .8rem; font-size: 1rem; }
  .search { margin-left: 0; order: -1; }
  .search input { width: 100%; height: 44px; }
  .search .suggest { left: 0; width: 100%; }
  .lot-layout { grid-template-columns: 1fr; }
  .lot-layout aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .edc-link { font-size: .8rem; margin-right: .5rem; }
  h1 { font-size: 1.6rem; margin-top: 1.2rem; }
  .hero { margin: 0 -16px; padding: 1.8rem 16px 1rem; }
  .hero h1 { font-size: 1.95rem; }
  .hero p { font-size: 1.02rem; }
  .hero-search { flex-direction: column; }
  .hero-search button { width: 100%; }
  .brand img.logo-wide { height: 40px; max-width: 170px; }
  .acct-name { display: none; }
  .card { padding: 1.05rem 1rem; border-radius: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .stat-value { font-size: 1.35rem; }
  .bid-card .big-price { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .cookie-notice .wrap { flex-direction: column; align-items: stretch; }
  .cookie-notice .btn { width: 100%; }
  .grid-2 { gap: 1rem; }
}

/* phone fixes */
@media (max-width: 1080px) {
  /* bid box straight after the photos on smaller screens */
  .lot-layout { display: flex; flex-direction: column; gap: 1.25rem; }
  .lot-main { display: contents; }
  .lot-main > .gallery { order: 1; }
  .lot-layout > aside { order: 2; }
  .lot-main > :not(.gallery) { order: 3; margin: 0; }
}
@media (max-width: 640px) {
  .hero-search input { flex: none; width: 100%; }
  /* wide tables keep their shape and scroll sideways instead of squashing */
  .table-wrap > table:not(.compact) { min-width: 560px; }
  .table-wrap > table.rank { min-width: 420px; }
  .card > .table-wrap { margin-left: -1rem; margin-right: -1rem; padding: 0 1rem; }
  td, th { white-space: nowrap; }
  table.upload-rows td { white-space: normal; }
}

/* consistency touch-ups */
/* a results table placed straight on the page gets the same white panel as everything else */
main > .table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .35rem .7rem; margin-bottom: 1.25rem; }
/* box headings sit inside the box, not on its border */
fieldset.card > legend { float: left; width: 100%; margin: 0 0 .9rem; padding: 0; font-size: 1.05rem; }
fieldset.card > legend + * { clear: both; }
.card.prose { max-width: none; }
.card.prose > * { max-width: 78ch; }
/* breathing room after buttons and between stacked forms */
form .btn + p, form .btn + .muted, form + p, form + form { margin-top: 1rem; }
.card form + h3, .card p + form { margin-top: 1rem; }
.not-found { text-align: center; padding: 3rem 1.5rem; }
.not-found .big { font-size: 3.2rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: .4rem; }
.not-found .actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }
main > .card:first-child, main > section:first-child, main > .grid-2:first-child { margin-top: 1.6rem; }
.field input[type=number], .inline-form input[type=number] { max-width: 12rem; }
.sale-name { display: block; font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .1rem; }
.won-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .5rem; }
.won-head a { font-weight: 650; font-size: 1.02rem; }
.won-head .sale-name { flex-basis: 100%; margin: 0; }
.won-price { font-weight: 750; color: var(--navy); font-size: 1.1rem; white-space: nowrap; }

/* ---------- section headings with a link on the right ---------- */
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.title-row h1, .title-row h2 { margin-bottom: .6rem; }
.crumbs + .title-row h1 { margin-top: .35rem; }
.home-events, .home-ads { margin: 0 0 1.25rem; }
.card.empty p:last-child { margin-bottom: 0; }

/* ---------- events ---------- */
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
a.event-card { display: flex; gap: 1rem; align-items: flex-start; color: var(--text); margin: 0; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.event-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); text-decoration: none; transform: translateY(-2px); }
.event-card h3 { margin: 0 0 .25rem; font-size: 1.02rem; line-height: 1.3; }
.event-card p { margin: 0 0 .2rem; }
.event-body { flex: 1; min-width: 0; }
.date-chip { flex: none; width: 58px; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong);
  font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); background: var(--brand-soft); padding-bottom: .25rem; }
.date-chip span { display: block; background: #fff; color: var(--navy); font-size: 1.45rem; letter-spacing: 0; padding: .3rem 0 .15rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.event-thumb { flex: none; width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
/* promoted event: a strip under the header on every page */
a.promo-banner { display: block; background: var(--navy); color: #fff; border-bottom: 3px solid var(--accent); }
a.promo-banner:hover { background: #1b3560; text-decoration: none; }
.promo-banner .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; padding-top: .6rem; padding-bottom: .6rem; }
.promo-banner .kicker { color: #f5c869; }
.promo-banner strong { font-size: 1.02rem; }
.promo-when { color: #c9d6e8; font-size: .92rem; }
.promo-go { margin-left: auto; font-weight: 650; color: #f5c869; white-space: nowrap; }
@media (max-width: 640px) { .promo-go { margin-left: 0; } }
/* events calendar + next events: the first thing on the home page */
.whats-on { margin: 1.5rem 0 .5rem; }
.whats-on > .title-row h2 { font-size: 1.85rem; margin: 0 0 .75rem; }
.whats-on-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin: 0 0 1.5rem; }
.whats-on-list .event-list { grid-template-columns: 1fr; gap: .75rem; margin: 0; }
.whats-on-list .card.empty { margin: 0; }
.whats-on-list .card.empty h3 { margin-top: 0; }
.cal { margin: 0; padding: 1rem; scroll-margin-top: 90px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 .7rem; }
.cal-head h3 { margin: 0; font-size: 1.2rem; color: var(--navy); }
.cal-nav { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong);
  border-radius: 10px; color: var(--navy); font-size: 1.35rem; line-height: 1; background: var(--surface); }
.cal-nav:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .1rem 0 .3rem; }
.cal-day { display: block; min-height: 78px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 4px 5px; background: var(--surface); color: var(--text); overflow: hidden; }
.cal-day.blank { background: transparent; border-color: transparent; }
.cal-day .num { display: inline-block; min-width: 1.6em; font-size: .85rem; font-weight: 650; text-align: center; border-radius: 999px; }
.cal-day.past .num { color: var(--muted); font-weight: 500; }
.cal-day.today { border-color: var(--brand); }
.cal-day.today .num { background: var(--brand); color: #fff; }
a.cal-day.has-ev { background: var(--brand-soft); border-color: var(--line-strong); transition: border-color .15s, box-shadow .15s; }
a.cal-day.has-ev:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; }
.cal-ev { display: block; margin-top: 3px; padding: 2px 5px; border-radius: 4px; background: var(--brand); color: #fff; font-size: .72rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-day.past .cal-ev { background: var(--muted); }
.cal-more { display: block; font-size: .7rem; color: var(--muted); margin-top: 2px; }
.cal-back { margin: .7rem 0 0; }
a.event-feature { display: block; padding: 0; margin: 0 0 .75rem; overflow: hidden; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.event-feature:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); text-decoration: none; transform: translateY(-2px); }
.event-feature-img { display: block; width: 100%; max-height: 460px; object-fit: contain; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.event-feature-body { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; }
.event-feature h3 { margin: .15rem 0 .35rem; font-size: 1.45rem; line-height: 1.2; color: var(--navy); }
.event-feature p { margin: 0 0 .25rem; }
.event-feature .more { display: inline-block; margin-top: .4rem; font-weight: 650; color: var(--link); }
.kicker { display: inline-block; font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
@media (max-width: 1080px) { .whats-on-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .whats-on { margin-top: 1.1rem; }
  .whats-on > .title-row h2 { font-size: 1.5rem; }
  .cal { padding: .75rem; }
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 48px; padding: 3px 2px; text-align: center; }
  .cal-wd { font-size: .64rem; letter-spacing: 0; }
  .cal-ev { display: inline-block; width: 8px; height: 8px; padding: 0; margin: 4px 1px 0; border-radius: 50%; font-size: 0; }
  .cal-more { display: none; }
  .event-feature h3 { font-size: 1.25rem; }
}
.event-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1.25rem; align-items: start; }
.event-layout > .card { margin: 0; }
.event-picture { width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--radius-sm); margin: 0 0 1rem; background: var(--surface-2); }
.event-facts dl { margin: 0 0 1rem; }
.event-facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; margin-top: .7rem; }
.event-facts dt:first-child { margin-top: 0; }
.event-facts dd { margin: .15rem 0 0; font-weight: 550; }
details.past summary { cursor: pointer; font-weight: 650; color: var(--navy); }
details.past[open] summary { margin-bottom: 1rem; }

/* ---------- adverts ---------- */
.advert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.advert-card { margin: 0; position: relative; display: flex; flex-direction: column; gap: .5rem; }
.advert-card h3 { margin: 0; font-size: 1.05rem; }
.advert-card p { margin: 0; }
.advert-card > .btn { align-self: flex-start; margin-top: auto; }
.ad-label { position: absolute; top: .7rem; right: .8rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.advert-head { display: flex; gap: .8rem; align-items: center; padding-right: 3rem; }
.advert-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; flex: none; }
.advert-contact { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.advert-contact:not(:has(li)) { display: none; }
.advertise-here { border-style: dashed; background: var(--surface-2); box-shadow: none; }

/* ---------- forum ---------- */
.forum-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1.25rem; align-items: start; margin-bottom: 1.25rem; }
.forum-layout > .card { margin: 0; }
.forum-cats, .thread-list { padding: .3rem 0; overflow: hidden; }
a.forum-cat, a.thread-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .95rem 1.4rem; color: var(--text); border-bottom: 1px solid var(--line); }
a.thread-row { padding: .8rem 1.4rem; }
a.forum-cat:last-child, a.thread-row:last-child { border-bottom: 0; }
a.forum-cat:hover, a.thread-row:hover { background: var(--surface-2); text-decoration: none; }
a.forum-cat h2 { margin: 0 0 .15rem; color: var(--brand-dark); font-size: 1.05rem; }
a.forum-cat p { margin: 0; }
a.thread-row h3 { margin: 0 0 .15rem; font-size: 1rem; color: var(--navy); }
.forum-cat-meta, .thread-meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; gap: .1rem; color: var(--text); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.plain-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pager { margin: 0 0 1.25rem; }
.post { margin-bottom: 1rem; }
.post.is-removed { background: var(--surface-2); box-shadow: none; }
.post-head { display: flex; gap: .7rem; align-items: center; margin-bottom: .7rem; }
.post-head > div { display: flex; flex-direction: column; line-height: 1.35; }
.post-head a { color: var(--muted); }
.post-body { overflow-wrap: anywhere; }
.post-body p:last-child { margin-bottom: 0; }
.post-actions { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: flex-start; margin-top: .8rem; padding-top: .6rem; border-top: 1px solid var(--line); color: var(--muted); }
.post-actions:not(:has(*)) { display: none; }
.post-actions .linklike, .post-actions a { color: var(--muted); font-size: inherit; text-decoration: none; }
.post-actions .linklike:hover, .post-actions a:hover { color: var(--brand-dark); text-decoration: underline; }
.post-actions .danger-link { color: var(--bad); }
.mod-tools { margin-left: auto; }
.mod-tools form { display: flex; gap: .8rem; }
details.report summary { cursor: pointer; list-style: none; }
details.report summary::-webkit-details-marker { display: none; }
details.report summary:hover { color: var(--brand-dark); text-decoration: underline; }
details.report[open] { flex-basis: 100%; }
details.report form { margin-top: .6rem; max-width: 460px; }
.removed { font-style: italic; }
blockquote.quoted { margin: .5rem 0 .8rem; padding: .6rem .9rem; border-left: 3px solid var(--line-strong); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.forum-rules { margin-top: 1.25rem; }

/* ---------- loft matching (admin) ---------- */
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-bottom: .6rem; }
.pair-and { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- share as image ---------- */
.share-btn::before { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314294b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='m16 6-4-4-4 4'/%3E%3Cpath d='M12 2v13'/%3E%3C/svg%3E") no-repeat center / contain; }

@media (max-width: 1080px) {
  .event-layout, .forum-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  a.forum-cat, a.thread-row { flex-direction: column; align-items: flex-start; padding: .85rem 1rem; }
  .forum-cat-meta, .thread-meta { flex-direction: row; gap: .8rem; align-items: baseline; text-align: left; flex-wrap: wrap; }
  .pair { grid-template-columns: 1fr; gap: .4rem; }
  .event-thumb { width: 60px; height: 60px; }
}

/* header: the search box gives way before anything can overlap, and the menu tightens on mid-size screens */
@media (min-width: 1081px) {
  .search { flex: 0 1 230px; min-width: 140px; }
  .search input { width: 100%; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .header-inner { gap: .8rem; }
  .header-panel { gap: .7rem; }
  .main-nav a { padding: .45rem .5rem; font-size: .92rem; }
  .brand img.logo-wide { height: 42px; }
}
.acct-name { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- stats pages ---------- */
.stats-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding-bottom: .7rem; }
.stats-tabs a { white-space: nowrap; flex: none; }
.small-pills { margin-top: -.6rem; }
.small-pills a { font-size: .82rem; padding: .3rem .7rem; }
.small-pills + .table-wrap, p.muted.small + .small-pills { margin-top: 0; }
.chart svg { width: 100%; height: auto; display: block; margin-top: .6rem; }
.chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; }
.chart figcaption h2 { margin: 0; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: inherit; }
.chart .line { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.chart circle { stroke: #fff; stroke-width: 2; cursor: pointer; }
.chart a:hover circle { stroke: var(--navy); }
figure.card { margin: 0 0 1.25rem; }
.bests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .8rem 1.5rem; }
.bests li { display: flex; flex-direction: column; gap: .1rem; }
.bests li span { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.bests li strong { font-size: 1.25rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.highlights { margin: 0 0 1.25rem; }
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1rem; }
.highlight { margin: 0; border-top: 3px solid var(--brand); display: flex; flex-direction: column; gap: .2rem; }
.hl-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-dark); font-weight: 700; }
.hl-main { font-size: 1.12rem; font-weight: 700; }
.compare-form .row-2 { align-items: end; }
.h2h-score { display: flex; align-items: center; justify-content: center; gap: 2rem; text-align: center; }
.h2h-score > div { display: flex; flex-direction: column; gap: .2rem; font-weight: 650; }
.h2h-score strong { font-size: 2.6rem; color: var(--navy); line-height: 1; }
.h2h-score > span { color: var(--muted); font-weight: 700; }
.h2h-win { font-weight: 750; color: var(--good); }
@media (max-width: 640px) { .h2h-score { gap: 1rem; } .h2h-score strong { font-size: 2rem; } }
.bests li .badge { align-self: flex-start; }
.chart .axis { font-size: 10.5px; }
@media (max-width: 640px) { .chart { overflow-x: auto; } .chart svg { min-width: 620px; } }

/* ---------- EDC Race Manager ---------- */
.edc-nav { display: flex; gap: .2rem; flex-wrap: wrap; padding-bottom: .5rem; }
.edc-nav a { padding: .35rem .7rem; border-radius: 8px; font-weight: 600; color: var(--navy); }
.edc-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.edc-clubbar { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: .45rem 0; font-size: .92rem; }
.edc-clubbar select { font: inherit; padding: .2rem .4rem; border-radius: 6px; border: 1px solid var(--line-strong); max-width: 100%; }
.edc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.edc-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-end; }
.edc-row .field { flex: 1 1 160px; margin-bottom: .6rem; }
.ring-list { columns: 3 160px; font: 600 .9rem/1.6 ui-monospace, Consolas, monospace; }
.status-provisional { color: #8a5a00; font-weight: 600; } .status-confirmed { color: var(--good); font-weight: 600; }
/* race night */
.rn-statusline { display: flex; gap: .4rem 1rem; flex-wrap: wrap; align-items: center; }
.rn-times { display: grid; gap: .6rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.rn-pair { display: grid; grid-template-columns: 7.5rem 1fr 7rem; gap: .4rem; align-items: center; }
.rn-pair input { font: inherit; padding: .45rem .5rem; border: 1px solid var(--line-strong); border-radius: 8px; min-width: 0; }
.rn-pair-label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.rn-checks { list-style: none; padding: 0; margin: .6rem 0; } .rn-checks li { margin: .3rem 0; }
.race-night #bird-ring, .race-night [data-bird="time"] { font: 600 1.15rem/1 ui-monospace, Consolas, monospace; letter-spacing: .03em; }
@media (max-width: 640px) { .rn-pair { grid-template-columns: 1fr 1fr; } .rn-pair-label { grid-column: 1 / -1; } }
.rn-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .4rem; }
.rn-special-tick { width: 22px; height: 22px; accent-color: var(--brand); }
