/* Event colours follow the supplied navy / orange poster, framed by the site's cream theme. */
main>.marathon-event{--run-ink:#142c55;--run-orange:#ff6b16;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:0;margin:28px auto;border:1px solid #e5d8c9;border-radius:28px;overflow:hidden;background:#fffaf4;box-shadow:0 16px 44px #142c5510;isolation:isolate}
.marathon-visual{position:relative;min-width:0;min-height:560px;background:#142c55;overflow:hidden}.marathon-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#142c5510 30%,#101d39cc)}.marathon-visual img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center}.marathon-edition,.marathon-visual-caption{position:absolute;z-index:1;color:#fff;left:32px;right:24px}.marathon-edition{top:28px;font-size:12px;font-weight:700;letter-spacing:.14em}.marathon-visual-caption{bottom:32px;font-size:clamp(28px,3.5vw,48px);font-weight:700;line-height:1.13;letter-spacing:-.04em}.marathon-event-copy{padding:clamp(24px,3.5vw,48px);color:var(--run-ink);min-width:0}.marathon-event-copy .eyebrow{color:#82400f;font-size:11px;letter-spacing:.12em}.marathon-event-copy h1{font-size:clamp(42px,5vw,70px);line-height:1.02;letter-spacing:-.055em;margin:20px 0}.marathon-event-copy h1 em{font-style:normal;color:#b34406}.marathon-intro{font-size:18px;line-height:1.55}.marathon-location{font-weight:600;margin:18px 0;line-height:1.6}.marathon-location small{font-weight:400;font-size:13px}.marathon-races{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.marathon-races button{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:18px;text-align:left;border:1px solid #d7c5b3;border-radius:18px;background:#fff;color:var(--run-ink);font:inherit;cursor:pointer;transition:box-shadow .2s,background .2s}.marathon-races button:last-child{background:#142c55;color:white;border-color:#142c55}.marathon-races button:hover{box-shadow:0 6px 18px #142c5528}.marathon-races button>span:first-child{font-size:9px;letter-spacing:.08em;font-weight:700}.marathon-races strong{font-size:48px;line-height:1}.marathon-races strong small{font-size:20px}.marathon-races b{font-size:20px}.marathon-races b span{font-size:11px;font-weight:400}.marathon-races button>span:last-child{font-size:12px}.marathon-perks{display:flex;flex-wrap:wrap;gap:8px 16px;padding:0;list-style:none;font-size:13px;font-weight:600}.marathon-perks li:before{content:'✓';color:#875004;margin-right:6px}.marathon-registration-notice{padding:14px 16px;border:1px solid #e5c495;border-radius:12px;background:#fff1d9;color:#604116;font-size:13px;line-height:1.6;margin:20px 0}.marathon-registration-notice strong{display:block}.marathon-links{display:flex;gap:10px 20px;flex-wrap:wrap;margin:18px 0}.marathon-links a{color:#142c55;text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center;font-size:13px;font-weight:600}.marathon-event-copy>small{display:block;font-size:12px;line-height:1.6;color:#55556a}.marathon-details{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:48px;align-items:start}.marathon-details h2{font-size:clamp(26px,3vw,38px);line-height:1.2;color:#142c55;letter-spacing:-.03em;margin:14px 0 20px}.marathon-details p{line-height:1.8}.marathon-details dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:14px;margin:24px 0;font-size:14px;line-height:1.6}.marathon-details dt{font-weight:700;color:#142c55}.marathon-details dd{margin:0}.marathon-poster img{width:100%;height:auto;border-radius:20px;display:block}.marathon-event :focus-visible,.marathon-details :focus-visible,.marathon-entry-dialog :focus-visible{outline:3px solid #b64b0a;outline-offset:4px}
.marathon-entry-dialog{position:fixed;inset:0;margin:auto;width:min(720px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:24px;border:1px solid #d7c5b3;border-radius:22px;background:#fffaf4;color:#142c55;overflow:auto;box-sizing:border-box}.marathon-entry-dialog::backdrop{background:#0b1939b8;backdrop-filter:blur(5px)}.marathon-entry-dialog [hidden]{display:none!important}.marathon-entry-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;position:sticky;top:-24px;background:#fffaf4;z-index:2;padding:12px 0;border-bottom:1px solid #e5d8c9}.marathon-entry-heading h2{margin:5px 0;font-size:28px;letter-spacing:-.035em}.marathon-entry-heading .eyebrow{font-size:10px;color:#82400f}.marathon-entry-heading button{width:44px;height:44px;flex-shrink:0;border:1px solid #d7c5b3;border-radius:50%;background:white;color:#142c55;font-size:26px;cursor:pointer}.marathon-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px;margin:24px 0}.marathon-entry-dialog label{display:block;font-size:14px;font-weight:600;line-height:1.5}.marathon-entry-dialog label>span,.marathon-entry-dialog label small{font-size:12px;font-weight:400}.marathon-entry-dialog input:not([type=checkbox]),.marathon-entry-dialog select{display:block;width:100%;min-width:0;min-height:48px;font:inherit;font-size:16px;background:#fff;border:1px solid #b9b7b5;border-radius:10px;padding:10px 12px;color:#142c55;margin:6px 0;box-sizing:border-box}.marathon-entry-dialog small{display:block;font-size:12px;color:#595966}.marathon-entry-dialog fieldset{border:1px solid #d7c5b3;padding:16px;border-radius:12px;margin:20px 0}.marathon-entry-dialog legend{font-size:14px;font-weight:600}.marathon-entry-dialog .marathon-check{display:flex;gap:12px;align-items:flex-start;margin:20px 0;font-weight:400}.marathon-check input{width:20px;height:20px;flex-shrink:0;margin-top:3px;accent-color:#142c55}.marathon-check span{font-size:13px!important}.marathon-payment-placeholder{padding:18px;border:1px dashed #bea27c;border-radius:14px;margin:20px 0}.marathon-payment-placeholder>span{font-size:10px;letter-spacing:.12em;color:#82400f}.marathon-payment-placeholder strong{display:block;font-size:26px;margin:6px 0}.marathon-payment-placeholder p{font-size:13px;line-height:1.6;margin:0}.marathon-entry-dialog button[type=submit]{width:100%;min-height:48px;white-space:normal}.marathon-entry-dialog button:disabled{opacity:.65;cursor:not-allowed}.marathon-entry-dialog [role=status]{font-size:14px;line-height:1.6;overflow-wrap:anywhere;margin-top:14px}body:has(#marathonEntryDialog[open]){overflow:hidden}
@media(max-width:900px){main>.marathon-event{grid-template-columns:minmax(0,1fr);border-radius:22px}.marathon-visual{min-height:320px;aspect-ratio:16/10}.marathon-visual img{object-position:center 40%}.marathon-visual-caption{font-size:32px;bottom:24px;left:24px}.marathon-edition{left:24px;top:20px}.marathon-event-copy{padding:24px}.marathon-details{grid-template-columns:1fr;gap:28px}.marathon-poster{max-width:480px;justify-self:center}}
@media(max-width:480px){.marathon-entry-grid{grid-template-columns:1fr;gap:14px}.marathon-entry-dialog{padding:18px}.marathon-entry-heading{top:-18px}.marathon-entry-heading h2{font-size:25px}.marathon-event-copy{padding:22px 18px}.marathon-races{gap:10px}.marathon-races button{padding:15px 12px}.marathon-races button>span:first-child{font-size:8px}.marathon-races strong{font-size:42px}.marathon-visual{min-height:260px}.marathon-details dl{grid-template-columns:74px minmax(0,1fr);gap:12px}.marathon-event-copy h1{font-size:48px}}
@media(prefers-reduced-motion:reduce){.marathon-event *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Text plus native required semantics supplement the red marker. */
.marathon-entry-dialog .marathon-required{color:#b42318;font-weight:700}
.marathon-entry-dialog .marathon-required-note{font-size:13px;margin:0 0 18px}
