/* ANIMUS v1.2.13 · FINAL UI UNIFICATION */

/* ---------- Public home: cleaner hierarchy ---------- */
.record-teaser-v13{border:1px solid #30291e;background:linear-gradient(145deg,#0d0d12,#09090d);padding:20px!important}
.record-v13-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:13px}.record-v13-head small{color:#a98a44;font:900 8px Inter,sans-serif;letter-spacing:.18em}.record-v13-head h2{margin:4px 0 5px;color:#f2e8d2;font:900 29px/.94 "Barlow Condensed",Inter,sans-serif}.record-v13-head p{margin:0;max-width:720px;color:#948a7d;font-size:11px;line-height:1.5}.record-v13-head>a{color:#dfbd60;text-decoration:none;font:900 9px "Barlow Condensed",Inter,sans-serif;letter-spacing:.11em;white-space:nowrap}
.record-v13-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.record-v13-card{position:relative;display:grid;min-height:128px;padding:13px;border:1px solid #312a20;background:#111117;text-decoration:none;overflow:hidden}.record-v13-card>em{position:absolute;right:10px;top:7px;color:rgba(201,168,76,.13);font:900 38px/1 "Barlow Condensed";font-style:normal}.record-v13-card>small{color:#998044;font:900 7px Inter;letter-spacing:.13em}.record-v13-card>strong{align-self:end;color:#e5c969;font:900 34px/.9 "Barlow Condensed";margin:10px 0 5px}.record-v13-card>div{color:#efe6d8;font-size:10px;min-width:0}.record-v13-card .apex-record-holders{margin:0}.record-v13-card .flag{width:17px!important;height:11px!important}.record-v13-card.explore{background:linear-gradient(135deg,#17130a,#0d0c10);border-color:#594723}.record-v13-card.explore>strong{font-size:22px}.record-v13-card.explore>div{color:#96886c;line-height:1.45}
.apex-systems-v13{padding:22px!important}.apex-systems-v13 .apex-section-head{margin-bottom:12px}.apex-system-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.apex-system-steps article{display:grid;grid-template-columns:46px 1fr;gap:12px;align-items:start;padding:14px;border:1px solid #2d291f;background:linear-gradient(145deg,#111117,#0b0b10)}.apex-system-steps em{display:grid;place-items:center;width:42px;height:42px;border:1px solid #4b3e22;color:#c9a84c;font:900 14px "Barlow Condensed";font-style:normal}.apex-system-steps small{color:#937a42;font:900 7px Inter;letter-spacing:.15em}.apex-system-steps h3{margin:4px 0;color:#e3d8c0;font:900 17px/1 "Barlow Condensed"}.apex-system-steps p{margin:0;color:#877f72;font-size:10px;line-height:1.5}.apex-system-steps span{display:block;margin-top:7px;color:#b99d5a;font:800 7px Inter;letter-spacing:.08em}

/* ---------- Championship: graph supports standings instead of owning the page ---------- */
.championship-compact-v13{padding:14px 16px!important;margin-bottom:10px!important}.championship-compact-v13 .championship-command-head{margin-bottom:9px!important}.championship-compact-v13 .championship-command-head h2{font-size:27px!important}.championship-compact-v13 .champ-leader-card{padding:9px 11px!important;min-width:250px!important}.championship-compact-v13 .public-graph-shell{min-height:0!important;height:245px!important;padding:7px 8px!important}.championship-compact-v13 .public-graph-shell svg{height:205px!important;min-height:0!important}.championship-compact-v13 .pub-graph-legend{padding:6px!important;gap:5px!important}.championship-compact-v13 .pub-graph-legend span{padding:4px 6px!important;font-size:8px!important}.public-metrics{margin-top:8px!important;margin-bottom:8px!important}.public-standings-card{margin-top:8px!important}

/* ---------- Calendar: upcoming first, history becomes a compact archive ---------- */
.calendar-hero-v13{padding-top:17px!important;padding-bottom:17px!important}.calendar-hero-v13 h1{font-size:clamp(38px,4.5vw,58px)!important;line-height:.88!important;margin:5px 0!important}.calendar-hero-v13 p{max-width:720px!important;font-size:12px!important;line-height:1.5!important}.upcoming-first-v13{margin-top:14px!important}.history-head-v13{margin-top:22px!important;opacity:.88}.calendar-history-grid-v13{display:grid;gap:6px;margin:0 0 18px}.calendar-history-card-v13{display:grid;grid-template-columns:74px minmax(170px,1.05fr) minmax(330px,1.7fr) minmax(260px,.9fr);gap:10px;align-items:center;border:1px solid #2c2922;border-left:2px solid #5c775e;background:#0d0d12;padding:8px 10px;min-height:58px}.history-round-v13 small,.history-result-v13>small,.history-extra-v13 small{display:block;color:#766f65;font:900 7px/1 Inter;letter-spacing:.12em}.history-round-v13 b{display:block;color:#c9a84c;font:900 18px/1 "Barlow Condensed";margin-top:3px}.history-track-v13{display:flex;gap:8px;align-items:center;min-width:0}.history-track-v13>.flag{width:25px;height:16px;flex:0 0 auto}.history-track-v13 span{min-width:0}.history-track-v13 b{display:block;color:#efe7d9;font:900 16px/1 "Barlow Condensed";white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-track-v13 small{display:block;margin-top:3px;color:#777065;font-size:8px}.history-result-v13{display:grid;grid-template-columns:44px repeat(3,minmax(0,1fr));gap:5px;align-items:center}.history-result-v13>span{display:flex;align-items:center;gap:5px;min-width:0;border-left:1px solid #27231d;padding-left:6px}.history-result-v13 em{color:#b79a53;font:900 8px Inter;font-style:normal}.history-result-v13 .flag{width:16px;height:11px;flex:0 0 auto}.history-result-v13 b{color:#d9d0c1;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-extra-v13{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.history-extra-v13>span b{display:block;color:#d8cfbf;font-size:9px;margin-top:3px;white-space:nowrap}.history-extra-v13 .cal-btn{min-height:32px!important;padding:7px 10px!important;font-size:8px!important;white-space:nowrap}.calendar-upcoming-grid-v13{align-items:start}.calendar-upcoming-grid-v13 .calendar-card{height:auto!important;min-height:0!important}

/* ---------- Public driver profile: compact, no dead AR space ---------- */
.driver-profile-v13 .driver-hero{padding:16px 18px!important}.driver-profile-v13 .driver-hero h1{font-size:clamp(35px,4vw,52px)!important}.driver-profile-v13 .section{margin-top:9px!important}.driver-profile-v13 .card{padding:15px!important}.driver-profile-v13 .driver-metrics{gap:7px!important}.driver-rating-card-v13{min-height:0!important}.driver-rating-chart-v13{height:250px!important;min-height:250px!important}.driver-rating-chart-v13 canvas{height:250px!important}.rating-context-v13{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:8px}.rating-context-v13 span{border:1px solid #28251f;background:#0c0c11;padding:9px}.rating-context-v13 small{display:block;color:#827866;font:900 7px/1 Inter;letter-spacing:.1em}.rating-context-v13 b{display:block;margin-top:4px;color:#efe6d7;font:900 16px/1 "Barlow Condensed"}.nemesis-card-v13{min-height:0!important}.nemesis-card-v13 .rivalry-grid,.nemesis-card-v13 .rivalry-panel{min-height:0!important}.driver-profile-v13 .driver-split{gap:8px!important}.driver-profile-v13 .season-pulse,.driver-profile-v13 .intel-grid{gap:6px!important}

/* ---------- Driver Mode canonical hub ---------- */
.driver-mode .cockpit-welcome{padding:10px 2px 14px!important}.driver-mode .cockpit-welcome h1{font-size:clamp(30px,3.4vw,44px)!important}.driver-mode .cockpit-next-v13{min-height:0!important;grid-template-columns:1.45fr .55fr!important}.driver-mode .cockpit-next-v13 .cockpit-next-main{padding:20px 24px!important}.driver-mode .cockpit-next-v13 .cockpit-next-label{margin-bottom:18px!important}.driver-mode .cockpit-next-v13 .cockpit-next-id h2{font-size:clamp(36px,4vw,52px)!important}.driver-mode .cockpit-next-v13 .cockpit-grid-head{margin-top:20px!important}.driver-mode .cockpit-next-v13 .cockpit-next-facts{margin-top:12px!important}.driver-mode .cockpit-next-v13 .cockpit-next-action{min-height:220px!important}.driver-mode .cockpit-data-grid{grid-template-columns:1.65fr .85fr!important;gap:8px!important}.driver-mode .cockpit-panel{padding:13px!important}.driver-mode .cockpit-panel.pulse{min-height:0!important}.driver-mode .cockpit-chart svg{min-height:0!important;height:190px!important}.driver-mode .cockpit-panel.rating .cockpit-chart svg{height:165px!important}.driver-mode .cockpit-form-race{min-height:62px!important;padding:7px!important}.driver-mode .cockpit-form-race b{font-size:20px!important}.driver-mode .driver-launch-grid{gap:7px!important}.driver-mode .driver-launch-card{min-height:0!important;padding:12px!important}.driver-mode .cockpit-schedule article{padding:8px 10px!important}
.cockpit-reward-strip-v13{display:grid;grid-template-columns:1.35fr .9fr;gap:7px;margin-top:11px;padding-top:10px;border-top:1px solid #21303a}.cockpit-reward-live,.cockpit-reward-perks{border:1px solid #26333c;background:#081015;padding:9px}.cockpit-reward-live>span>small,.cockpit-reward-next small{display:block;color:#aa8c48;font:900 7px Inter;letter-spacing:.12em}.cockpit-reward-live>span>b,.cockpit-reward-next b{display:block;color:#ece5d7;font:900 13px "Barlow Condensed";margin-top:3px}.cockpit-payout-mini{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px}.cockpit-payout-mini>span{padding:4px 6px;border:1px solid #332c1f;background:#0e0d0c}.cockpit-payout-mini small{font-size:6px!important;color:#7f745f!important}.cockpit-payout-mini b{display:block;color:#d9bb64;font-size:9px;margin-top:2px}.cockpit-payout-mini em{color:#777f86;font-size:8px;font-style:normal}.cockpit-reward-perks>span{display:inline-block;margin:2px 5px 2px 0;color:#c9c0b0;font-size:8px}.cockpit-reward-next{margin-top:6px;padding-top:6px;border-top:1px solid #253038}.cockpit-reward-next span{display:block;color:#727f88;font-size:8px;margin-top:2px}.cockpit-reward-next.max b{color:#d9bb64}
.driver-mode .driver-page-stack .cockpit-panel.rivalry .cockpit-panel-head h2{font-size:23px!important}

@media(max-width:1100px){.record-v13-grid{grid-template-columns:repeat(2,1fr)}.calendar-history-card-v13{grid-template-columns:70px 1fr 1.7fr}.history-extra-v13{grid-column:2/-1}.rating-context-v13{grid-template-columns:repeat(3,1fr)}.driver-mode .cockpit-next-v13{grid-template-columns:1fr!important}.driver-mode .cockpit-data-grid{grid-template-columns:1fr!important}}
@media(max-width:760px){.record-v13-head{align-items:flex-start;flex-direction:column}.record-v13-grid{grid-template-columns:1fr 1fr}.apex-system-steps{grid-template-columns:1fr}.calendar-history-card-v13{grid-template-columns:58px 1fr}.history-result-v13,.history-extra-v13{grid-column:1/-1}.history-result-v13{grid-template-columns:40px repeat(3,1fr)}.rating-context-v13{grid-template-columns:repeat(2,1fr)}.championship-compact-v13 .public-graph-shell{height:220px!important}.championship-compact-v13 .public-graph-shell svg{height:185px!important}.cockpit-reward-strip-v13{grid-template-columns:1fr}}
@media(max-width:520px){.record-v13-grid{grid-template-columns:1fr}.history-result-v13{grid-template-columns:1fr 1fr}.history-result-v13>small{grid-column:1/-1}.history-extra-v13{grid-template-columns:1fr}.rating-context-v13{grid-template-columns:1fr 1fr}}

/* v1.2.13 completed-round micro honours */
.calendar-history-card-v13{grid-template-columns:74px minmax(160px,.95fr) minmax(300px,1.55fr) minmax(150px,.7fr) auto}
.history-honours-v13{display:grid;grid-template-columns:1fr 1fr;gap:5px;min-width:0}.history-honours-v13>span{min-width:0;padding-left:7px;border-left:1px solid #27231d}.history-honours-v13 small{display:block;color:#766f65;font:900 6px/1 Inter;letter-spacing:.11em}.history-honours-v13 b{display:block;margin-top:4px;color:#d8cfbf;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-extra-v13{display:flex!important;justify-content:flex-end!important}
@media(max-width:1200px){.calendar-history-card-v13{grid-template-columns:62px minmax(150px,.8fr) minmax(280px,1.5fr) auto}.history-honours-v13{display:none}.history-extra-v13{display:flex!important}}
@media(max-width:780px){.calendar-history-card-v13{grid-template-columns:48px 1fr auto;padding:7px}.history-result-v13{grid-column:2/-1;grid-template-columns:38px repeat(3,minmax(0,1fr))}.history-extra-v13{grid-column:3;grid-row:1}.history-track-v13 b{font-size:14px}.history-extra-v13 .cal-btn{font-size:7px!important;padding:6px 7px!important}}

/* Single-Nemesis presentation: one matchup, no duplicate rival cards. */
.nemesis-v13{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.8fr);gap:10px;align-items:stretch}.nemesis-id-v13{display:flex;flex-direction:column;justify-content:center;padding:13px;border:1px solid #332a25;background:linear-gradient(135deg,#141014,#0b1014)}.nemesis-id-v13>small{color:#e24d66;font:900 7px Inter;letter-spacing:.15em}.nemesis-name-v13{display:flex;align-items:center;gap:8px;margin:6px 0 4px;color:#eee5d8;text-decoration:none;font:900 24px/1 "Barlow Condensed"}.nemesis-name-v13 .flag{width:28px;height:18px}.nemesis-id-v13>span{color:#74828a;font-size:8px}.nemesis-stats-v13{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.nemesis-stats-v13>span{display:flex;flex-direction:column;justify-content:center;min-height:72px;padding:10px;border:1px solid #29333a;background:#091115;text-align:center}.nemesis-stats-v13 small{color:#718993;font:900 6px Inter;letter-spacing:.11em}.nemesis-stats-v13 b{margin-top:6px;color:#f1e9dc;font:900 22px/1 "Barlow Condensed"}
@media(max-width:850px){.nemesis-v13{grid-template-columns:1fr}.nemesis-stats-v13{grid-template-columns:repeat(2,1fr)}}

/* Championship canvases were still inheriting the old 390–610px interactive height. */
.championship-compact-v13 .interactive-chart-shell{margin-top:8px!important}.championship-compact-v13 .interactive-chart-stage{height:220px!important;min-height:220px!important}.championship-compact-v13 .interactive-chart-help{font-size:7px!important;padding-top:5px!important}.championship-compact-v13 .interactive-chart-legend{margin-top:4px!important;padding-top:5px!important}
/* Home should preview the title fight, not turn the graph into another hero section. */
.apex-command .interactive-chart-stage{height:245px!important;min-height:245px!important}.apex-command .interactive-chart-shell{margin-top:9px!important}.apex-command .interactive-chart-help{font-size:7px!important}.apex-command .interactive-chart-legend{margin-top:5px!important;padding-top:6px!important}
@media(max-width:820px){.championship-compact-v13 .interactive-chart-stage,.apex-command .interactive-chart-stage{height:260px!important;min-height:260px!important}}
