/* Section palettes share the same type, spacing, accessibility and table components. */
:root[data-section=racing]{--brand:#183d8c;--brand-strong:#102b68;--brand-soft:#e7eefb;--sidebar:#122b60;--sidebar-active:#234c94;--sidebar-line:#243d6b;--sidebar-ink:#c9d5ed;--bg:#f1f3f7;--ink:#182b48;--muted:#5f6e83;--line:#dbe1eb;--line-strong:#bcc8dc;--focus:#c08c00;--section-accent:#f8ca16}
:root[data-section=finance]{--brand:#078b80;--brand-strong:#066a62;--brand-soft:#dff4f0;--sidebar:#083f3d;--sidebar-active:#086d64;--sidebar-line:#17534d;--sidebar-ink:#c6e4df;--bg:#f0f7f5;--section-accent:#f2a436}
:root[data-section=football]{--brand:#257346;--brand-strong:#205537;--brand-soft:#e5f1d4;--sidebar:#192c24;--sidebar-active:#305a37;--sidebar-line:#2e4036;--section-accent:#9acb3a;--bg:#f3f5f0}
:root[data-section=portal]{--section-accent:#c9a451}
.portal-masthead{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:4px 0 24px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.portal-masthead .brand-seal-home{width:100px;height:100px;font-size:29px;line-height:1.2;letter-spacing:.1em;margin:0;color:var(--brand);border-width:2px}.portal-identity{display:flex;align-items:center;gap:24px;min-width:0}.portal-identity .eyebrow{display:block;margin-bottom:10px}.portal-masthead p{font-size:14px;color:var(--muted);margin:0;line-height:1.8}.portal-sponsors{font-size:11px;color:var(--muted);text-align:right;flex-shrink:0}.portal-sponsors a{display:block;font-size:12px;font-weight:650;margin-top:8px;color:var(--brand)}
.portal-section-head{margin-top:32px}.portal-section-head h2{font-size:22px}
.portal-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0 22px}
.portal-feature{display:flex;flex-direction:column;min-height:196px;padding:21px 22px;border:1px solid var(--line);border-top:4px solid var(--topic);border-radius:7px;background:var(--surface);--topic:#147f73}
.feature-finance{--topic:#087f78}.feature-football{--topic:#558a24}.feature-racing{--topic:#244c91}.portal-feature-top{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}.portal-feature-top>span:first-child{color:var(--topic);font-weight:700;letter-spacing:.08em}.portal-feature h3{font-size:18px;line-height:1.65;margin:17px 0 20px;font-weight:650}.portal-feature h3 a:hover,.portal-news-row h3 a:hover{color:var(--brand);text-decoration:underline;text-underline-offset:4px}.portal-feature-source{margin-top:auto;display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.portal-feature-source span{font-size:17px;color:var(--topic)}
.portal-news-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px}.portal-news-toolbar>span{color:var(--muted);font-size:11px}.portal-tabs{display:flex;gap:5px;flex-wrap:wrap}.portal-tabs button{border:0;background:transparent;color:var(--muted);font:600 12px var(--font);padding:9px 15px;border-radius:5px;cursor:pointer}.portal-tabs button.active{color:var(--on-brand);background:var(--brand)}.portal-tabs button:hover:not(.active){background:var(--brand-soft);color:var(--brand)}
.portal-news-stream{background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}.portal-news-row{display:flex;align-items:flex-start;gap:18px;padding:17px 21px;border-bottom:1px solid var(--line)}.portal-news-row:last-child{border-bottom:0}.portal-news-row>div{flex:1;min-width:0}.portal-news-row h3{font-size:14px;font-weight:600;line-height:1.65;margin:0 0 6px}.portal-news-row p{font-size:11px;color:var(--muted);margin:0}.news-topic{flex:none;font-size:10px;line-height:1.4;padding:4px 9px;border-radius:3px;background:var(--brand-soft);color:var(--brand);margin-top:1px}.topic-finance{color:#076b63;background:#e2f2ee}.topic-football{color:#37641c;background:#eaf2df}.topic-racing{color:#204878;background:#e7eef9}.news-open{color:var(--muted);font-size:16px;padding-top:3px}
.portal-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:7px;background:var(--surface);margin:32px 0 38px;overflow:hidden}.portal-shortcuts a{padding:20px;border-right:1px solid var(--line)}.portal-shortcuts a:last-child{border:0}.portal-shortcuts a:hover{background:var(--brand-soft)}.portal-shortcuts span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.portal-shortcuts strong{font-size:13px;color:var(--brand)}
[data-theme=dark] .portal-feature{--topic:#88cfbd}[data-theme=dark] .feature-football{--topic:#bbdb76}[data-theme=dark] .feature-racing{--topic:#a9c0f3}[data-theme=dark] .news-topic{background:var(--brand-soft);color:var(--brand-strong)}
@media(max-width:1000px){.portal-masthead{align-items:flex-start;flex-direction:column;gap:14px}.portal-sponsors{text-align:left}.portal-sponsors a{display:inline;margin-left:10px}.portal-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-shortcuts a:nth-child(-n+2){border-bottom:1px solid var(--line)}.portal-shortcuts a:nth-child(even){border-right:0}.portal-feature-grid{gap:10px}.portal-feature{padding:17px}.portal-feature h3{font-size:16px}}
@media(max-width:700px){.portal-masthead h1{font-size:30px}.portal-masthead p{font-size:13px}.portal-feature-grid{grid-template-columns:1fr}.portal-feature{min-height:0;padding:17px 18px}.portal-feature h3{margin:11px 0 14px;font-size:18px}.portal-news-toolbar{align-items:flex-start;flex-direction:column;gap:10px}.portal-tabs button{padding:9px 12px}.portal-news-row{padding:15px 14px;gap:10px}.portal-news-row h3{font-size:14px}.news-open{display:none}.news-topic{padding:4px 6px}.portal-shortcuts a{padding:15px}.portal-shortcuts strong{font-size:12px}}
:root[data-theme=dark][data-section=racing]{--brand:#91b5ff;--brand-strong:#bed0ff;--brand-soft:#1b3154;--bg:#0d1729;--surface:#152139;--surface-2:#1a2a44;--ink:#e4ebf9;--muted:#a2b0c9;--line:#2c3c56;--line-strong:#4c607e;--sidebar:#0c1730;--sidebar-active:#243f70;--sidebar-line:#223455;--on-brand:#0c1e40}
:root[data-theme=dark][data-section=finance]{--brand:#63d0bb;--brand-strong:#a1e5d6;--brand-soft:#183e37;--bg:#0c1b19;--surface:#122722;--surface-2:#1c352e;--ink:#e4f2ed;--muted:#a0bcb2;--line:#29473c;--line-strong:#45695a;--sidebar:#09231e;--sidebar-active:#204e40;--on-brand:#052019}
:root[data-theme=dark][data-section=football]{--brand:#aadf65;--brand-strong:#c7ef93;--brand-soft:#25391f;--bg:#111a12;--surface:#19251b;--surface-2:#213225;--ink:#e5f0e1;--muted:#afbea7;--line:#344332;--sidebar:#111d16;--on-brand:#13210c}
.main-nav a.active{box-shadow:inset 3px 0 var(--section-accent,#48c79b)}
[data-section=football] .table-wrap thead th{background:var(--brand-soft);border-top:3px solid var(--section-accent)}
[data-section=football] .lead-fixture{background:#1e3427}
[data-section=football] .lead-fixture .button:not(.secondary){background:#a1ce43;color:#17280e}
[data-section=finance] .page-heading{border-bottom:3px solid #0aa093;padding-bottom:18px}
[data-section=finance] .table-wrap thead th{background:var(--brand-soft);color:var(--brand-strong)}
.stock-industry-quick{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.stock-industry-quick button{display:inline-flex;align-items:center;gap:14px;min-height:42px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);color:var(--ink);padding:8px 16px;font:inherit;font-size:14px;cursor:pointer}
.stock-industry-quick button span{font-size:12px;opacity:.8;font-variant-numeric:tabular-nums}
.stock-industry-quick button:hover{border-color:var(--brand);color:var(--brand)}
.stock-industry-quick button.active{background:var(--brand);border-color:var(--brand);color:var(--on-brand,#fff)}
.stock-sector-label{display:inline-block;color:var(--brand-strong);font-size:12px;font-weight:600;background:var(--brand-soft);padding:3px 8px;border-radius:4px;white-space:nowrap}
.stock-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.stock-watch-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:5px 9px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);color:var(--muted);font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
.stock-watch-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
.stock-watch-toggle:hover,.stock-watch-toggle.is-following{color:var(--brand-strong);border-color:var(--brand);background:var(--brand-soft)}
.stock-watch-toggle.is-following svg{fill:var(--section-accent,#e3ad46);stroke:var(--section-accent,#e3ad46)}
.stock-technical-chart{--candle-up:#cf494b;--candle-down:#078c7e;--ma5:#ad710a;--ma10:#7154bd;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.stock-chart-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;padding:15px 18px;border-bottom:1px solid var(--line);font-size:12px}
.stock-chart-controls label{display:inline-flex;gap:5px;align-items:center;cursor:pointer;font-weight:600}.stock-chart-controls input{accent-color:var(--brand)}
.stock-chart-controls>span:first-child{color:var(--muted);margin-right:auto}.ma5-key{color:var(--ma5)}.ma10-key{color:var(--ma10)}
.candle-legend{display:flex;align-items:center;gap:5px;color:var(--muted)}.candle-legend i{width:7px;height:12px;display:inline-block}.up-key{background:var(--candle-up)}.down-key{background:var(--candle-down);margin-left:7px}
.stock-chart-readout{display:flex;align-items:center;flex-wrap:wrap;gap:9px 18px;padding:13px 18px;min-height:48px;font-size:12px;font-variant-numeric:tabular-nums}.stock-chart-readout>strong{font-size:13px}.stock-chart-readout b{font-weight:600}
.stock-chart-scroll{overflow-x:auto;overscroll-behavior-inline:contain}.stock-candles{display:block;width:100%;min-width:660px;outline-offset:-3px}.stock-candles text{font:11px var(--font);fill:var(--muted)}
.chart-grid{stroke:var(--line);stroke-width:1}.candle-up{fill:var(--candle-up);stroke:var(--candle-up)}.candle-down{fill:var(--candle-down);stroke:var(--candle-down)}.stock-candles g line{stroke-width:1.15}.stock-candles g rect{stroke:none}.volume-bar{stroke:none;opacity:.65}.volume-neutral,.chart-close-only{fill:var(--muted)}
.stock-ma5,.stock-ma10{fill:none;stroke-width:1.8;pointer-events:none}.stock-ma5{stroke:var(--ma5)}.stock-ma10{stroke:var(--ma10)}.chart-crosshair{stroke:var(--muted);stroke-dasharray:3 4;stroke-width:1;opacity:.65;pointer-events:none}
.stock-date-slider{display:flex;align-items:center;gap:14px;padding:12px 18px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.stock-date-slider input{min-width:70px;flex:1;accent-color:var(--brand)}.stock-date-slider span{white-space:nowrap;font-variant-numeric:tabular-nums}
:root[data-theme=dark] .stock-technical-chart{--candle-up:#f0787a;--candle-down:#41c7ae;--ma5:#efbc53;--ma10:#b49aef}
@media(max-width:600px){.stock-chart-controls{gap:10px 14px;padding:12px}.stock-chart-controls>span:first-child{width:100%}.stock-chart-readout{padding:12px;gap:9px 14px}.stock-date-slider{gap:8px;padding:12px}.stock-heading-actions{gap:6px}.stock-watch-toggle{min-height:40px}.stock-heading-actions .button{font-size:12px}}
@media(max-width:600px){.stock-industry-quick{gap:6px}.stock-industry-quick button{padding:8px 12px;gap:8px}.stock-industry-quick button:first-child{flex-basis:100%;justify-content:space-between}}
.portrait{position:relative;display:inline-flex;flex:none;width:44px;height:48px;background:var(--brand-soft);border:1px solid var(--line);border-radius:6px;overflow:hidden;align-items:center;justify-content:center;vertical-align:middle}
.portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;background:var(--surface)}
.portrait-fallback{font-size:12px;color:var(--muted);font-weight:600}
.portrait-horse{width:72px;height:49px}
.portrait-horse img{object-fit:contain;object-position:center}
.portrait-large{width:100px;height:116px;border-radius:9px}
.portrait-horse.portrait-large{width:270px;height:190px;background:#fff}
.portrait-player img{object-fit:contain}.player-portrait{display:inline-flex;flex-direction:column;max-width:120px;flex:none}.photo-credit{font-size:9px;line-height:1.3;color:var(--muted);margin-top:5px}
.person-identity,.horse-identity{display:inline-flex;align-items:center;gap:10px;min-width:120px}
.horse-identity strong,.person-identity strong{color:var(--brand-strong)}
.horse-identity small,.person-identity small{display:block;color:var(--muted);font-size:11px;white-space:normal}
.player-name .person-identity{min-width:170px}
.racing-subnav{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 24px;flex-wrap:wrap}
[data-section=racing] .tabs{overflow-y:hidden}
.racing-subnav a{padding:10px 17px;color:var(--muted);border-bottom:3px solid transparent;font-weight:600}
.racing-subnav a[aria-current]{color:var(--brand);border-color:var(--section-accent);background:var(--brand-soft)}
[data-section=racing] .tabs a{padding:9px 16px;border-bottom:2px solid transparent}
[data-section=racing] .tabs a.active{color:var(--brand);border-color:var(--brand);font-weight:650}
[data-section=racing] .table-wrap th{background:var(--brand);color:var(--on-brand);font-size:12px}
[data-section=racing] .table-wrap td{font-size:13px;padding:11px 12px}
[data-section=racing] .table-wrap tbody tr:nth-child(even){background:var(--surface-2)}
[data-section=racing] .section-head h2{padding-left:10px;border-left:4px solid var(--section-accent)}
.racing-hub-hero{background:#142f68;color:#fff;padding:28px 30px;border-bottom:5px solid #f7cc1c;display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 28px;border-radius:8px}
.racing-hub-hero h2{font-size:27px;margin:7px 0 10px}.racing-hub-hero p{color:#c6d4ec;margin:0}.racing-hub-hero .button{background:#f7cc1c;color:#182c53}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--muted)}.racing-hub-hero .eyebrow{color:#f7cc1c}
.meeting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.meeting-card{border:1px solid var(--line);background:var(--surface);border-radius:8px;overflow:hidden;padding:20px}
.meeting-card-top{display:flex;justify-content:space-between;color:var(--brand);font-size:12px;margin-bottom:16px}
.meeting-card h2{font-size:23px;font-family:var(--num)}.meeting-card h2 small{font:13px var(--font);color:var(--muted)}.meeting-card p{font-size:13px;color:var(--muted)}
.meeting-race-dots{display:flex;gap:7px;margin:20px 0;flex-wrap:wrap}.meeting-race-dots a{display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:50%;width:32px;height:32px;font-family:var(--num);font-weight:700;background:var(--surface-2)}
.meeting-race-dots a.completed{border-color:var(--brand);color:var(--brand)}.meeting-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px}.meeting-actions>a:not(.button){color:var(--brand)}
.stable-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.stable-card{display:flex;align-items:center;gap:12px;padding:17px 15px;background:var(--surface);border:1px solid var(--line);border-radius:8px;min-width:0;transition:border-color .15s}
.stable-card:hover{border-color:var(--brand)}.stable-card>span:nth-last-child(2){min-width:0;flex:1}.stable-card strong{display:block;overflow-wrap:anywhere}.stable-card small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.owner-seal{display:grid;place-items:center;width:42px;height:42px;background:var(--brand-soft);border:1px solid var(--line);border-radius:50%;color:var(--brand);flex:none;font-size:13px;font-weight:650}
.stable-heading{display:flex;gap:20px;align-items:center;background:var(--surface);padding:22px;border:1px solid var(--line);border-left:5px solid var(--section-accent);margin:20px 0;border-radius:6px}.stable-heading h2{margin:8px 0;font-size:25px}.stable-heading p{margin:0;color:var(--muted)}.stable-heading a{font-size:12px;color:var(--brand)}
.rating-number{font-size:21px;font-family:var(--num)}.form-chip{display:inline-block;min-width:23px;padding:2px 4px;margin:2px;background:var(--surface-2);border:1px solid var(--line);border-radius:3px;text-align:center;font:12px var(--num)}.form-chip.won{background:#f8d766;color:#352900;border-color:#dfbd44}
.horse-profile-hero{display:flex;gap:28px;align-items:center;background:var(--surface);border:1px solid var(--line);border-top:5px solid var(--brand);padding:24px;border-radius:9px;margin:16px 0 20px}.horse-profile-hero h1{font-size:34px;margin-top:8px}.horse-profile-hero p{color:var(--muted)}.horse-connections{font-size:13px;line-height:2.1}.horse-connections a{color:var(--brand);font-weight:650}.horse-rating{margin-left:auto;text-align:center;min-width:92px}.horse-rating>span,.horse-rating>small{display:block;color:var(--muted);font-size:12px}.horse-rating strong{display:block;font:600 48px var(--num);color:var(--brand)}
.racing-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));background:var(--surface);border:1px solid var(--line);border-radius:7px;overflow:hidden;margin:20px 0 26px}.racing-kpis>div{padding:17px 18px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.racing-kpis span{display:block;color:var(--muted);font-size:11px}.racing-kpis strong{display:block;font:600 24px var(--num);margin-top:7px}.racing-kpis .kpi-time{font-size:15px;line-height:1.5}
.racing-jumps{display:flex;gap:24px;border-bottom:1px solid var(--line);padding:12px 0;margin-bottom:30px;color:var(--brand);font-weight:600}.placing{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:28px;font:700 16px var(--num);border-radius:4px;border:1px solid var(--line);background:var(--surface-2)}.place-1{background:#f7d052;border-color:#d5ab25;color:#403000}.place-2{background:#e0e6ee;color:#273c58;border-color:#bfcbd8}.place-3{background:#eed2b8;color:#68421f;border-color:#d1ad89}.place-other{color:var(--muted)}
.race-record-dialog{border:1px solid var(--line);background:var(--surface);color:var(--ink);width:min(700px,92vw);max-height:85dvh;overflow:auto;border-radius:12px;padding:24px;box-shadow:var(--shadow)}.race-record-dialog::backdrop{background:rgba(10,21,40,.6)}.race-record-dialog h2{margin-top:10px}.record-result{display:flex;gap:15px;align-items:center;margin:20px 0}.race-record-dialog .identity-grid{grid-template-columns:repeat(3,1fr)}
.ranking-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.ranking-podium>div{position:relative;display:flex;align-items:center;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--section-accent);border-radius:7px;padding:20px;gap:8px}.ranking-podium>div>strong{font-size:18px}.ranking-podium b{font:600 28px var(--num);color:var(--brand)}.ranking-podium b small{font:12px var(--font);color:var(--muted)}.ranking-podium>div>span:last-child{font-size:12px;color:var(--muted)}.podium-rank{position:absolute;top:14px;left:16px;color:var(--brand);font:700 29px var(--num)}.ranking-wins{font:700 22px var(--num);color:var(--brand)}
.racing-day-heading{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.racing-day-heading>div{margin-right:auto}.racing-day-heading h2{font-size:29px;margin:5px 0}.racing-day-heading label{font-size:12px;display:grid;gap:5px}.racing-day-heading select{padding:8px 12px;border:1px solid var(--line-strong);background:var(--surface);border-radius:5px}
.race-number-nav{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 24px}.race-number-nav a{display:flex;align-items:center;flex-direction:column;justify-content:center;min-width:65px;padding:8px;background:var(--surface);border:1px solid var(--line);border-bottom:3px solid var(--section-accent);border-radius:6px}.race-number-nav a b{font:700 24px var(--num);color:var(--brand)}.race-number-nav a small{font-size:11px;color:var(--muted)}.race-number-nav a.completed{background:var(--brand-soft)}
.racing-matrix{max-width:100%}.racing-matrix table{min-width:1300px}.racing-matrix th:first-child,.racing-matrix td:first-child{position:sticky;left:0;z-index:1;background:var(--surface);color:var(--ink);box-shadow:1px 0 var(--line)}.racing-matrix th:first-child{background:var(--brand);color:var(--on-brand)}.racing-matrix td{vertical-align:top;min-width:140px}.racing-matrix td:nth-child(2){min-width:108px}.racing-matrix .person-identity{min-width:155px}.racing-matrix .portrait{width:32px;height:38px}.group-run{display:grid;grid-template-columns:auto 1fr;gap:4px 6px;padding:6px;border-radius:5px}.group-run+.group-run{margin-top:10px}.group-run .horse-identity{min-width:100px;font-size:12px}.group-run .placing,.group-run .muted{grid-column:2}.group-winner{background:#fff1bd;color:#273147}.group-winner a strong{color:#223e72}.runner-number{font:700 16px var(--num);color:var(--brand)}
.race-day-block{margin:25px 0 35px}.race-day-title{display:flex;align-items:center;gap:14px;padding:15px 18px;background:var(--brand);color:var(--on-brand);border-radius:7px 7px 0 0}.race-day-title h3{margin:0 0 3px}.race-day-title>div{flex:1}.race-day-title>div>span{font-size:12px;opacity:.85}.race-day-title>a{font-size:12px}.race-round{display:grid;place-items:center;background:#f7cc1c;color:#132b5a;width:38px;height:38px;border-radius:50%;font:700 23px var(--num);flex:none}.race-status{display:inline-block;font-size:11px;border:1px solid currentColor;padding:3px 8px;border-radius:4px;white-space:nowrap}.status-live{color:#148047;background:#e5f4eb}.race-day-title .race-status{background:rgba(255,255,255,.12)}
.race-price{font:700 17px var(--num);display:inline-block;padding:2px 7px;border-radius:3px;color:var(--brand-strong)}.race-favourite{background:#e83942;color:#fff}.odds-shorter:not(.race-favourite){color:#c32e3e}.odds-longer:not(.race-favourite){color:#1d7e45}.race-dividends{display:flex;gap:10px;flex-wrap:wrap;padding:14px 0}.race-dividends>div{display:flex;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line);padding:10px 13px;border-radius:5px;font-family:var(--num)}.race-dividends span{font:12px var(--font);color:var(--muted)}.race-dividends b{color:var(--brand)}.quinella-detail{margin:20px 0;padding:15px;border:1px solid var(--line);background:var(--surface);border-radius:7px}.quinella-detail summary{font-weight:650;color:var(--brand);cursor:pointer}.quinella-detail .table-wrap{margin-top:14px}.muted{color:var(--muted)}
@media(max-width:1100px){.stable-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.horse-profile-hero{gap:18px;padding:18px}.portrait-horse.portrait-large{width:200px;height:150px}.horse-profile-hero h1{font-size:28px}}
@media(max-width:700px){.racing-hub-hero{align-items:flex-start;flex-direction:column;padding:22px}.racing-hub-hero h2{font-size:23px}.meeting-grid,.stable-grid{grid-template-columns:1fr}.racing-subnav a{padding:9px 12px;font-size:13px}.horse-profile-hero{flex-wrap:wrap}.horse-profile-hero>.portrait{width:100%;height:220px}.horse-profile-hero>div:not(.horse-rating){flex:1;min-width:180px}.horse-rating{min-width:65px}.racing-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.racing-kpis strong{font-size:21px}.ranking-podium{gap:7px}.ranking-podium>div{padding:30px 6px 12px}.ranking-podium .portrait-large{width:64px;height:75px}.ranking-podium>div>strong{font-size:14px}.ranking-podium>div>span:last-child{font-size:10px;text-align:center}.podium-rank{top:5px;left:9px;font-size:20px}.ranking-podium b{font-size:22px}.race-day-title{flex-wrap:wrap;padding:12px}.race-day-title>a{margin-left:52px}.race-record-dialog .identity-grid{grid-template-columns:repeat(2,1fr)}.race-number-nav{gap:5px}.race-number-nav a{min-width:51px}.racing-jumps{gap:18px;font-size:13px}.racing-matrix .person-identity{min-width:107px}.racing-matrix td:first-child{min-width:120px;max-width:150px}.racing-matrix .portrait{display:none}}
.news-photo{margin:16px -22px 0;overflow:hidden;position:relative;aspect-ratio:16/9;background:var(--surface-2)}
.news-photo img{display:block;width:100%;height:100%;object-fit:cover}
.news-photo figcaption{position:absolute;right:7px;bottom:6px;font-size:9px;line-height:1.4;color:#fff;background:rgba(0,0,0,.55);padding:3px 6px;border-radius:3px}
@media(max-width:1000px){.news-photo{margin-left:-17px;margin-right:-17px}}
@media(max-width:700px){.news-photo{margin-left:-18px;margin-right:-18px}.portal-identity{gap:16px}.portal-masthead .brand-seal-home{width:88px;height:88px;font-size:25px}}
/* Quote pages share the stock palette and retain explicit pricing units. */
.market-tabs a{padding:12px 16px;text-decoration:none;font-weight:700;border-bottom:2px solid transparent}.market-tabs a.active{border-color:var(--brand);color:var(--brand)}
.global-quotes{min-width:870px}.global-quotes th[scope="row"]{min-width:180px}.global-quotes .market-number{font-size:19px;font-weight:700;font-variant-numeric:tabular-nums}.global-quotes small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:5px}.market-rise{color:#b6342c;font-weight:700}.market-fall{color:#137457;font-weight:700}[data-theme="dark"] .market-rise{color:#ff9e94}[data-theme="dark"] .market-fall{color:#70dbb5}
.settlement-cell{min-width:130px}.settlement-cell small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.rank-number{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:6px;font-weight:700}.rank-zone-champions{color:#fff;background:var(--brand)}.rank-zone-playoff{color:#fff;background:var(--amber)}.rank-zone-relegation{color:#fff;background:var(--red)}
.player-value{min-width:150px}.player-value small,#player-profile small{display:block;font-size:11px;font-weight:400;line-height:1.6}.live-handicap{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:10px 0}.live-handicap small{flex-basis:100%;font-size:11px;color:var(--muted)}.live-handicap b{padding:4px 7px;background:var(--soft);border-radius:4px;font-variant-numeric:tabular-nums}
.racing-replay{margin-block:28px}.replay-screen{aspect-ratio:16/9;max-width:960px;display:grid;place-items:center;background:#071b38;border:1px solid #27446c;border-radius:12px;overflow:hidden}.replay-placeholder{text-align:center;color:#fff;padding:20px}.replay-placeholder h3{color:#fff;margin:12px 0}.replay-placeholder p{color:#b7cbe8}.replay-icon{display:inline-grid;place-items:center;width:60px;height:60px;border:1px solid #d9b45a;border-radius:50%;color:#e5c675;font-size:24px;padding-left:4px}.replay-screen iframe{border:0;width:100%;height:100%}@media(max-width:600px){.replay-screen{aspect-ratio:4/3}.replay-placeholder h3{font-size:18px}}
.market-tabs{overflow-y:hidden}.market-tabs a{flex:0 0 auto;display:inline-flex;align-items:center;line-height:1.4}

.horse-hot{display:inline-block;margin:4px 0 0 6px;padding:3px 7px;background:#f4d27b;color:#543800;border:1px solid #d5aa46;border-radius:5px;font-size:12px;font-weight:750;white-space:nowrap}
.horse-review{display:block;min-width:210px;max-width:300px;white-space:normal;line-height:1.65}
.horse-sectional{margin:16px 0}.horse-sectional h4{margin:0}
.racing-live-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;background:#123861;color:#fff;border-top:3px solid #d5aa46;border-radius:8px;margin:20px 0}
.racing-live-entry h2{margin:6px 0;color:inherit}.racing-live-entry p{max-width:650px;color:#d4e2f1;margin:8px 0 0}
.racing-live-entry .eyebrow{color:#f4d27b}.racing-live-actions{display:flex;flex-wrap:wrap;gap:10px;flex-shrink:0}
.racing-live-actions .button{background:#f4d27b;color:#25354b;border-color:#f4d27b}.racing-live-actions .secondary{background:transparent;color:#fff;border-color:#91a7bf}
@media(max-width:1000px){.racing-live-entry{align-items:flex-start;flex-direction:column}.racing-live-actions{flex-shrink:1}}
.stock-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:16px 0 28px}.stock-range>div{padding:18px 22px;background:var(--surface)}.stock-range span{display:block;color:var(--muted);font-size:12px}.stock-range strong{display:block;font-size:24px;font-variant-numeric:tabular-nums;margin-top:6px}.stock-range>.note{grid-column:1/-1;margin:0;padding:12px 22px;background:var(--surface)}.stock-name{color:#167443;font-weight:700}.policy-summary{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.policy-summary strong{font-size:28px;display:block}.policy-summary small{display:block;color:var(--muted)}
.handicap-chart{margin:20px 0;border:1px solid var(--line);border-radius:10px;padding:16px;background:var(--surface)}.handicap-chart svg{display:block;width:100%;height:auto;min-height:180px}.handicap-chart text{font-size:12px;fill:var(--muted)}.ah-grid{stroke:var(--line);stroke-width:1}.ah-path{stroke:var(--muted);stroke-width:2;fill:none}.ah-point{cursor:pointer;stroke:var(--surface);stroke-width:2}.ah-point:focus{outline:2px solid var(--text)}.ah-win{fill:#bd392d}.ah-loss{fill:#267551}.ah-push{fill:#7b8490}.handicap-chart figcaption{font-size:12px;color:var(--muted);margin-top:10px}
.chair-profile{display:flex;gap:28px;padding:24px;margin:18px 0;background:var(--surface);border:1px solid var(--line);border-radius:12px;align-items:flex-start}.chair-profile>div{flex:1;min-width:0}.chair-profile figure{width:160px;flex-shrink:0;margin:0}.chair-photo{width:160px;height:160px;object-fit:cover;border-radius:10px}.chair-profile figcaption{font-size:11px;color:var(--muted);margin-top:8px}.chair-profile h3{margin-top:0}.chair-profile p{line-height:1.8}@media(max-width:600px){.chair-profile{display:block}.chair-profile figure{width:112px;margin-bottom:20px}.chair-photo{width:112px;height:112px}}
.capital-badge{display:inline-block;border-radius:5px;padding:4px 8px;font-size:12px;font-weight:700;background:var(--soft)}.capital-cash{color:#167443}.capital-debt{color:#bd302e}.capital-badge.capital-cash{background:#e2f4e9}.capital-badge.capital-debt{background:#fbe4e3}.stock-name.capital-debt{color:#bd302e!important}.stock-name.capital-cash{color:#167443!important}.capital-unknown,.capital-special,.capital-balanced{color:var(--muted)}.capital-panel{margin:24px 0}.capital-filters{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.capital-filters button{border:1px solid var(--line);background:var(--surface);border-radius:6px;padding:7px 12px;cursor:pointer}.capital-filters button[aria-pressed=true]{border-color:currentColor;box-shadow:0 0 0 1px currentColor}
@media(max-width:600px){.handicap-chart{overflow-x:auto}.handicap-chart svg{min-width:720px}}#team-handicap-trend>.section-head{flex-wrap:wrap;gap:12px}#team-handicap-trend .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.stock-name.capital-debt strong{color:#bd302e!important}.stock-name.capital-cash strong{color:#167443!important}
.race-record-dialog:has(.racing-replay){width:min(980px,94vw)}.race-record-dialog .racing-replay{margin-block:20px 0}
