/* The welcome page: brighter race-day colour, without changing the score sheets. */
.home-hub{display:none}
body.view-home{background:#f5f6ed;color:#123c30}
body.view-home .home-hub{display:block;max-width:1250px;margin:0 auto;padding:24px 28px 8px}
body.view-home header{padding:18px 28px;border-bottom:0}
body.view-home header .logo{font-family:'DM Sans',Arial,sans-serif;font-size:clamp(1.2rem,2.6vw,1.75rem);font-weight:800;letter-spacing:-.045em}
body.view-home .primary-actions{padding:0 28px 13px;border-bottom:1px solid #d8ca43;gap:10px}
.home-hub button,.home-hub a{font-family:inherit;touch-action:manipulation}
.home-hub :is(a,button):focus-visible{outline:3px solid #176dda;outline-offset:5px}
.welcome-hero{display:grid;grid-template-columns:1.15fr 1fr;position:relative;overflow:hidden;background:#075b40;color:#fffdf1;border-radius:26px;min-height:410px;isolation:isolate}
.welcome-copy{position:relative;z-index:2;padding:42px 0 40px 42px}
.welcome-eyebrow{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.16em;color:#e2f4c0;margin-bottom:22px}
.welcome-eyebrow::before{content:'';width:22px;height:4px;border-radius:3px;background:#ffe34a}
.welcome-copy h1{font-family:'Bebas Neue',Impact,'Arial Black',sans-serif;font-weight:700;font-size:clamp(3.4rem,7vw,6.6rem);line-height:.91;letter-spacing:.015em;color:#fffdf1;max-width:620px;margin:0 0 20px}
.welcome-copy h1 span{color:#ffe34a;display:block}
.welcome-copy>p{font-size:16px;color:#def0e4;line-height:1.65;max-width:430px;margin:0 0 24px}
.welcome-actions{display:flex;gap:12px;flex-wrap:wrap}
.welcome-actions a,.welcome-actions button{display:inline-flex;align-items:center;gap:22px;text-decoration:none;border:1px solid #9dc8ae;background:transparent;color:white;padding:14px 20px;min-height:50px;border-radius:10px;font-size:15px;font-weight:800;cursor:pointer;transition:transform .18s,background .18s}
.welcome-actions button{color:#123c30;background:#ffe34a;border-color:#ffe34a}
.welcome-actions :is(a,button):hover{transform:translateY(-3px);background:#fff8d7;color:#123c30}
.welcome-art{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;padding:22px 20px;transform:rotate(-4deg)}
.welcome-art::before{content:'';position:absolute;inset:35px -80px 45px 15px;border-radius:48%;background:#08794e;transform:rotate(-25deg);z-index:-1}
.welcome-art svg{display:block;width:100%;max-width:470px;height:auto;filter:drop-shadow(0 12px 0 #003c2b35)}
.welcome-note{position:absolute;right:28px;bottom:25px;font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#d0edbc;transform:rotate(4deg)}
.course-marker{animation:course-bob 5s ease-in-out infinite;transform-box:fill-box;transform-origin:center}.course-marker.delay{animation-delay:-2.5s}
@keyframes course-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.home-colour-run{display:flex;gap:5px;max-width:230px;margin:20px 0 0}.home-colour-run i{height:5px;flex:1;border-radius:5px;background:var(--lane)}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:30px 0 15px}
.home-section-heading h2{font-size:23px;letter-spacing:-.04em;font-weight:800;color:#123c30}
.home-section-heading p{font-size:13px;color:#597368}
.home-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.hub-card{display:flex;flex-direction:column;align-items:flex-start;position:relative;border:1px solid #d5ddcf;border-radius:17px;padding:22px;text-align:left;min-height:235px;text-decoration:none;background:#fff;color:#123c30;cursor:pointer;box-shadow:0 4px 0 #1d473607;transition:transform .2s,box-shadow .2s;overflow:hidden}
.hub-card:hover{transform:translateY(-5px);box-shadow:0 12px 26px #1d473616}
.hub-card::after{content:'→';font-size:23px;position:absolute;right:18px;top:18px}
.hub-card .hub-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#ffffff8c;margin-bottom:24px}
.hub-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hub-card strong{font-size:20px;font-weight:800;letter-spacing:-.04em;margin-bottom:9px;line-height:1.2}
.hub-card>span:last-child{font-size:13px;line-height:1.6;max-width:210px}
.hub-races{background:#ffdf51;border-color:#e9cb43}.hub-sessions{background:#e6dcfa;border-color:#d9c8f1;color:#3f2b66}.hub-scores{background:#2064ce;border-color:#2064ce;color:white}.hub-scores .hub-icon{background:#ffffff24}.hub-manage{background:#ffdccc;border-color:#f1c2ad;color:#693b27}
.home-explore{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin-top:22px}
.home-formats,.home-spotlight{border:1px solid #d6dece;border-radius:17px;background:#fff;padding:25px}
.home-formats h2,.home-spotlight h2{font-size:20px;font-weight:800;letter-spacing:-.04em;margin:0 0 7px;color:#123c30}
.home-formats>p,.home-spotlight>p{font-size:13px;color:#61756b;line-height:1.6;margin-bottom:18px}
.format-links{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.format-links button{display:inline-flex;align-items:center;gap:12px;border:1px solid #b8d3bf;border-radius:30px;background:#eff7ed;color:#075638;min-height:46px;padding:10px 15px;font-size:14px;font-weight:800;cursor:pointer;transition:background .2s}
.format-links button:nth-child(2){background:#e9f1ff;border-color:#c7daf6;color:#124785}.format-links button:nth-child(3){background:#fff0db;border-color:#f0d7b5;color:#794421}.format-links button:hover{background:#ffe34a;color:#123c30}
.home-small-links{display:flex;gap:16px;flex-wrap:wrap;margin-top:18px}.home-small-links button{background:none;border:0;border-bottom:1px solid #789888;padding:4px 0;color:#075638;cursor:pointer;font-size:13px;font-weight:700;min-height:36px}
.home-spotlight{position:relative;background:#e8f1df;overflow:hidden;border-color:#d4e2c6}
.spotlight-label{color:#426b36;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;margin-bottom:12px;display:block}
.home-spotlight #home-spotlight-name{font-size:25px;margin:4px 0;color:#17462f;font-weight:800;letter-spacing:-.04em}
.home-spotlight #home-spotlight-format{margin:0 0 17px;color:#527449;font-size:13px}
.spotlight-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.spotlight-actions button{background:#075638;color:white;border:1px solid #075638;padding:11px 15px;border-radius:8px;min-height:44px;font-weight:700;cursor:pointer}
.spotlight-actions button:last-child{background:transparent;color:#075638;border-color:#9cb992}
body.view-home #public-results{max-width:1250px;margin:28px auto;padding:0 28px 28px}
body.view-home #public-results .rp-heading{background:#fff;border:1px solid #d6dece;border-top:5px solid #1a8060;border-radius:17px}
body.view-home #public-results .rp-heading h1{font-size:24px;letter-spacing:-.04em}
@media(min-width:900px){body.view-home header,body.view-home .primary-actions{padding-left:max(28px,calc((100vw - 1194px)/2));padding-right:max(28px,calc((100vw - 1194px)/2))}}
@media(max-width:950px){.home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-card{min-height:200px}.welcome-copy{padding:32px 0 32px 30px}.welcome-copy h1{font-size:clamp(3.3rem,7.5vw,5rem)}.welcome-art{padding:8px;align-self:center}.welcome-note{display:none}.welcome-hero{min-height:380px}}
@media(max-width:620px){body.view-home .home-hub{padding:16px 16px 0}body.view-home header{padding:15px 16px}body.view-home .primary-actions{padding:0 16px 12px}.welcome-hero{grid-template-columns:1fr;border-radius:19px;min-height:0}.welcome-copy{padding:30px 25px 18px}.welcome-copy h1{font-size:4.2rem}.welcome-copy>p{font-size:14px;max-width:320px}.welcome-eyebrow{font-size:10px;margin-bottom:17px}.welcome-art{height:225px;padding:0 20px 12px;justify-content:flex-end;overflow:hidden}.welcome-art svg{width:300px;transform:translateY(-14px) rotate(5deg)}.welcome-art::before{inset:-5px -30px 10px 65px}.welcome-actions{gap:8px}.welcome-actions a,.welcome-actions button{font-size:13px;padding:12px 14px;gap:12px;min-height:46px}.home-colour-run{margin-top:17px;max-width:200px}.home-section-heading{margin-top:23px}.home-section-heading p{display:none}.home-section-heading h2{font-size:21px}.home-shortcuts{gap:10px}.hub-card{padding:17px 14px;min-height:210px;border-radius:14px}.hub-card .hub-icon{margin-bottom:18px;width:38px;height:38px}.hub-card::after{right:12px;font-size:20px}.hub-card strong{font-size:18px}.hub-card>span:last-child{font-size:12px}.home-explore{grid-template-columns:1fr;margin-top:16px;gap:12px}.home-formats,.home-spotlight{padding:21px}.format-links{gap:7px}.format-links button{padding:9px 12px;font-size:13px}.home-small-links{gap:12px}body.view-home #public-results{padding:0 16px 20px;margin-top:20px}}
@media(prefers-reduced-motion:reduce){.course-marker{animation:none}.welcome-actions :is(a,button),.hub-card{transition:none}.hub-card:hover,.welcome-actions :is(a,button):hover{transform:none}}
@media print{.home-hub{display:none!important}}

/* A high-contrast red button in both the home shortcuts and menu. */
.welcome-actions a.mga-chat-link,.site-menu .menu-group a.mga-chat-link {
  background:#da1228;color:#fff;border-color:#da1228!important;
}
.welcome-actions a.mga-chat-link:hover,.site-menu .menu-group a.mga-chat-link:hover {
  background:#b7071b;color:#fff;border-color:#b7071b!important;
}
