/* Racetiming public site: refined, calm, upmarket */
:root {
	--navy: #141a44;
	--navy-deep: #0d1233;
	--red: #d92027;
	--gold: #b8975a;
	--ink: #1c2033;
	--muted: #6b7189;
	--line: #e5e7ef;
	--paper: #fbfaf7;
	--white: #ffffff;
	--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* top bar */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand img { height: 52px; width: auto; background: var(--white); padding: 5px 12px; border-radius: 4px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a, .nav button.nav-fb { white-space: nowrap; }
.nav a { color: rgba(255,255,255,.88); text-decoration: none; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: .2s; }
.nav a:hover { color: var(--white); border-bottom-color: var(--gold); }
.nav .btn-line { border: 1px solid rgba(255,255,255,.6); padding: 9px 20px; border-radius: 2px; }
.nav .btn-line:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.6); color: var(--white); padding: 8px 12px; letter-spacing: .12em; font-size: .75rem; text-transform: uppercase; cursor: pointer; }

/* hero */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; color: var(--white); background: var(--navy-deep) url('../img/sports/running.jpg') center 35% / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(13,18,51,.94) 0%, rgba(13,18,51,.78) 45%, rgba(13,18,51,.35) 100%); }
.hero > .wrap { position: relative; padding: 150px 0 110px; }
.eyebrow { font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; display: flex; align-items: center; gap: 16px; }
.eyebrow::before { content: ''; width: 46px; height: 1px; background: var(--gold); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.04; margin: 0 0 26px; max-width: 14ch; }
.hero h1 em { font-style: italic; color: #f3dfb6; }
.hero p.lead { font-size: 1.12rem; max-width: 46ch; color: rgba(255,255,255,.82); margin: 0 0 40px; font-weight: 300; }
.cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 15px 34px; border-radius: 2px; text-decoration: none; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; transition: .2s; cursor: pointer; border: 1px solid transparent; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #b9171d; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.hero-stats { position: relative; background: var(--navy); color: var(--white); border-top: 1px solid rgba(184,151,90,.4); }
.hero-stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: #f3dfb6; line-height: 1.1; }
.stat span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* sections */
section { padding: 100px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { justify-content: center; color: var(--gold); }
.section-head .eyebrow::before, .section-head .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--gold); }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin: 0 0 14px; color: var(--navy); }
.section-head p { color: var(--muted); margin: 0; }

/* sport tiles */
.sports { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sport { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; color: var(--white); text-decoration: none; background: var(--navy); border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; }
.sport img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.sport::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,18,51,.92) 5%, rgba(13,18,51,.15) 60%); }
.sport:hover img, .sport.active img { transform: scale(1.06); }
.sport .cap { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.sport .cap h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; margin: 0 0 4px; }
.sport .cap span { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: #f3dfb6; }
.sport.active { outline: 2px solid var(--gold); outline-offset: 4px; }
.sport.plain { background: linear-gradient(160deg, var(--navy), #2a3170); }

/* races */
.races-section { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 44px; }
.chip { background: none; border: 1px solid var(--line); color: var(--muted); padding: 9px 22px; font: inherit; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; border-radius: 40px; transition: .2s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.race-list { display: grid; gap: 22px; }
.race { display: grid; grid-template-columns: 130px 1fr auto; gap: 34px; align-items: center; padding: 30px 34px; border: 1px solid var(--line); background: var(--paper); transition: .25s; border-radius: 2px; }
.race:hover { border-color: var(--gold); box-shadow: 0 14px 36px rgba(20,26,68,.09); transform: translateY(-2px); }
.date { text-align: center; border-right: 1px solid var(--line); padding-right: 30px; }
.date .d { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--navy); font-weight: 500; }
.date .m { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-top: 4px; }
.date .w { font-size: .72rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.race h3 { font-family: var(--serif); font-weight: 500; font-size: 1.85rem; line-height: 1.15; margin: 4px 0 8px; color: var(--navy); }
.tag { display: inline-block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.meta { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.dists { display: flex; flex-wrap: wrap; gap: 8px; }
.dists span { border: 1px solid var(--line); background: var(--white); padding: 4px 14px; font-size: .82rem; border-radius: 40px; color: var(--ink); }
.side { text-align: right; min-width: 190px; }
.from { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.price { font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height: 1.1; margin-bottom: 8px; }
.closes { display: inline-block; font-size: .74rem; padding: 4px 12px; border-radius: 40px; margin-bottom: 16px; }
.closes.ok { background: #eef3ee; color: #3d6b4a; }
.closes.urgent { background: #fbeaea; color: var(--red); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); font-family: var(--serif); font-size: 1.5rem; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; counter-reset: s; }
.step { text-align: center; padding: 0 10px; }
.step::before { counter-increment: s; content: '0' counter(s); display: block; font-family: var(--serif); font-size: 3.4rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 0 0 10px; color: var(--navy); }
.step p { color: var(--muted); margin: 0; }
.trust { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* footer */
footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 56px 0 40px; text-align: center; }
footer img { height: 46px; margin: 0 auto 20px; background: transparent; padding: 0; }   /* the logo is white: it sits straight on the dark footer */
footer .credit { font-size: .84rem; letter-spacing: .06em; }
footer .links { display: flex; justify-content: center; gap: 30px; margin-bottom: 22px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
footer .links a { text-decoration: none; }
footer .links a:hover { color: #f3dfb6; }
.demo-note { background: #fff8e6; color: #7a5b00; text-align: center; font-size: .8rem; padding: 8px 12px; letter-spacing: .04em; }

/* small screens */
@media (max-width: 960px) {
	.sports { grid-template-columns: repeat(2, 1fr); }
	.race { grid-template-columns: 90px 1fr; gap: 22px; padding: 24px; }
	.side { grid-column: 1 / -1; text-align: left; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; min-width: 0; border-top: 1px solid var(--line); padding-top: 18px; }
	.side .closes { margin: 0; }
	.date .d { font-size: 2.6rem; }
	.date { padding-right: 18px; }
	.steps { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
	section { padding: 70px 0; }
	.topbar .wrap { position: relative; }
	.hero > .wrap { padding: 130px 0 80px; }
	.hero-stats .wrap { grid-template-columns: 1fr; }
	.stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 16px; }
	.stat:last-child { border-bottom: 0; }
	.race h3 { font-size: 1.5rem; }
	.price { font-size: 1.8rem; }
}
@media (max-width: 480px) { .sports { grid-template-columns: 1fr 1fr; gap: 12px; } .sport .cap h3 { font-size: 1.35rem; } .sport .cap { left: 14px; right: 14px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .sport:hover img { transform: none; } }

/* inner pages (entry gateway) */
.page-top { background: var(--navy); }
.page-top .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.page-top .brand img { height: 44px; }
.page-top a.back { color: rgba(255,255,255,.85); text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.page-top a.back:hover { color: #f3dfb6; }
.inner { padding: 70px 0 100px; min-height: 60vh; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 2px; max-width: 760px; margin: 0 auto; padding: 44px; }
.panel h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; color: var(--navy); margin: 8px 0 6px; }
.panel .sub { color: var(--muted); margin: 0 0 24px; }
.notice { border-left: 4px solid var(--red); background: #fdf3f3; padding: 22px 24px; margin: 8px 0 26px; }
.notice strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.notice.info { border-color: var(--gold); background: #faf6ec; }
.dist-table { width: 100%; border-collapse: collapse; margin: 6px 0 26px; }
.dist-table th { text-align: left; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.dist-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); }
.dist-table td.fee { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); text-align: right; }
.dist-table th:last-child { text-align: right; }
@media (max-width: 720px) { .panel { padding: 28px 22px; } .inner { padding: 40px 0 70px; } }

/* numbers in the serif font: use lining figures so "10km" never reads as "1okm" */
h1, h2, h3, .date .d, .price, .stat b, .dist-table td.fee, .step::before { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }

/* admin pages */
.panel.wide { max-width: 860px; }
.admin-nav { display: flex; gap: 22px; align-items: center; color: rgba(255,255,255,.8); font-size: .8rem; flex-wrap: wrap; justify-content: flex-end; }
.admin-nav a, .admin-nav button { color: rgba(255,255,255,.88); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; padding: 0; }
.admin-nav a:hover, .admin-nav button:hover { color: #f3dfb6; }
.admin-nav form.inline { display: inline; margin: 0; }
.form label { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.form label.check { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.form input[type=url], .form input[type=text], .login-card input[type=text], .login-card input[type=password] { width: 100%; padding: 13px 14px; border: 1px solid #cfd3e2; border-radius: 2px; font: inherit; background: var(--white); }
.form input:focus, .login-card input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form .hint { color: var(--muted); font-size: .86rem; margin: 8px 0 0; }
.form .btn { margin-top: 30px; border: 0; }
.login-body { background: var(--navy-deep); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: var(--white); width: min(420px, 100%); padding: 40px; border-radius: 2px; }
.login-card img { height: 54px; margin: 0 auto 18px; }
.login-card h1 { font-family: var(--serif); font-weight: 500; color: var(--navy); font-size: 2rem; text-align: center; margin: 0 0 18px; }
.login-card label { display: block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.login-card .btn { width: 100%; margin-top: 26px; border: 0; }

/* follow us band on the home page */
.follow { background: var(--navy); color: var(--white); text-align: center; padding: 70px 0; }
.follow h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 8px; }
.follow p { color: rgba(255,255,255,.75); margin: 0 0 26px; }
.follow .btn-fb { background: #1877f2; color: var(--white); }
.follow .btn-fb:hover { background: #135fc2; }
.follow iframe { display: block; margin: 36px auto 0; max-width: 100%; border: 0; background: var(--white); border-radius: 2px; }

/* the hidden attribute must always win over a component's own display rule (race cards use display:grid) */
[hidden] { display: none !important; }

/* race page buttons and pop-ups (same four actions as the old race list) */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; }
.actions .btn { border: 0; padding: 13px 24px; }
.btn-green { background: #3f8a58; color: var(--white); }
.btn-green:hover { background: #2f6e45; }
.btn-blue { background: var(--navy); color: var(--white); }
.btn-blue:hover { background: #0d1233; }
.btn-sky { background: #3f7fb0; color: var(--white); }
.btn-sky:hover { background: #2f6890; }
dialog.dlg { border: 0; border-radius: 2px; padding: 0; width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px rgba(13,18,51,.4); color: var(--ink); }
dialog.dlg::backdrop { background: rgba(13,18,51,.62); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; background: var(--navy); color: var(--white); }
.dlg-head h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0; }
.dlg-x { background: none; border: 0; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.dlg-body { padding: 26px; overflow-y: auto; max-height: calc(100vh - 140px); }
.dlg-meta { margin-top: 0; }
.dlg-empty { color: var(--muted); font-family: var(--serif); font-size: 1.3rem; }
.dlg img.flyer { width: 100%; height: auto; border: 1px solid var(--line); }
.dlg iframe.map { width: 100%; height: 340px; border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.dist-table tr.more td { font-size: .88rem; color: var(--muted); background: var(--paper); }

/* per-distance "More info" */
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); cursor: pointer; }
.btn-link:hover { color: var(--red); }
.dist-table .info-cell { text-align: left; }
.dist-table.fees td:first-child { color: var(--ink); }
.dist-table.fees tbody td { padding: 11px 8px; }
.actions.in-dlg { margin: 22px 0 0; }
.actions.in-dlg .btn { padding: 11px 20px; }

/* Enter button beside More info in each distance row */
.btn.btn-sm { padding: 8px 18px; font-size: .72rem; margin-left: 14px; }
.dist-table .info-cell { white-space: nowrap; }
.dist-table .info-cell .btn-link { margin-right: 14px; }
.dist-table .info-cell .btn.btn-sm { margin-left: 4px; }
@media (max-width: 720px) { .dist-table .info-cell { white-space: normal; } .dist-table .info-cell .btn-link { display: inline-block; margin: 0 12px 6px 0; } }

/* the three row buttons: same size and shape */
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions .btn.btn-sm { margin: 0; padding: 9px 16px; font-size: .7rem; border: 0; line-height: 1.2; }
.dist-table .info-cell { white-space: normal; }

/* phones: each distance becomes a small card (distance + fee, start, then the three buttons) */
@media (max-width: 720px) {
	.panel > .dist-table { display: block; }
	.panel > .dist-table thead { display: none; }
	.panel > .dist-table tbody { display: block; }
	.panel > .dist-table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "dist fee" "start start" "btns btns"; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.panel > .dist-table td { display: block; padding: 0; border: 0; }
	.panel > .dist-table td:nth-child(1) { grid-area: dist; font-size: 1.1rem; }
	.panel > .dist-table td:nth-child(2) { grid-area: start; color: var(--muted); }
	.panel > .dist-table td:nth-child(2)::before { content: 'Start '; }
	.panel > .dist-table td.info-cell { grid-area: btns; margin-top: 8px; }
	.panel > .dist-table td.fee { grid-area: fee; }
	.row-actions .btn.btn-sm { flex: 1 1 auto; text-align: center; }
}

/* caution under "Choose a distance" */
.notice .warn { display: block; margin: 10px 0 12px; padding: 12px 14px; background: #fff6e0; border-left: 3px solid var(--gold); color: #5c4400; font-size: .95rem; line-height: 1.5; }
.notice .soon { display: block; color: var(--muted); font-size: .9rem; }
.notice .warn.ready { background: #eef4fb; border-left-color: #3f7fb0; color: #1d3f5c; margin-top: 0; }

/* race details popup: label / value list */
.dist-table.fees td.val { text-align: right; font-weight: 500; color: var(--navy); }
.dist-table.fees .small { font-size: .78rem; color: var(--muted); }

/* very small phones: footer links wrap instead of running off the screen */
footer .links { flex-wrap: wrap; gap: 10px 22px; padding: 0 12px; }

/* phones: "Details for all races" becomes one block per distance instead of an 8-column table */
@media (max-width: 720px) {
	.all-table, .all-table tbody { display: block; }
	.all-table thead { display: none; }
	.all-table tr { display: block; border: 1px solid var(--line); margin-bottom: 12px; background: var(--white); }
	.all-table tr.more { border: 0; background: none; margin: -6px 0 12px; }
	.all-table td { display: flex; justify-content: space-between; gap: 14px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); text-align: right; }
	.all-table td:last-child { border-bottom: 0; }
	.all-table td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-align: left; align-self: center; }
	.all-table tr.more td { display: block; text-align: left; padding: 8px 4px; border: 0; }
	.all-table tr.more td::before { content: none; }
}

/* phones: admin / inner-page header stacks (logo on top, links underneath) */
@media (max-width: 720px) {
	.page-top .wrap:has(.admin-nav) { flex-direction: column; align-items: flex-start; gap: 10px; }
	.admin-nav { justify-content: flex-start; gap: 8px 18px; }
}

/* admin: race setup form */
.panel.wider { max-width: 1080px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.panel .form h2.sec, .panel h2.sec { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--navy); margin: 34px 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sub-note { font-family: var(--sans); font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 18px; }
.grid .c3 { grid-column: span 3; } .grid .c4 { grid-column: span 4; } .grid .c6 { grid-column: span 6; } .grid .c12 { grid-column: span 12; }
.form select, .form textarea, .form input[type=date], .form input[type=number] { width: 100%; padding: 13px 14px; border: 1px solid #cfd3e2; border-radius: 2px; font: inherit; background: var(--white); }
.form select:focus, .form textarea:focus, .form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form .grid.sw { margin-top: 10px; }
.form .grid.sw .hint { margin: 2px 0 0 26px; }
.form label.check input { width: auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.inline-form input[type=text] { flex: 1 1 240px; width: auto; }
.inline-form label.check { margin: 0; }
.inline-form .push { margin-left: auto; }
.form .btn, .inline-form .btn { margin-top: 0; }
.form > .btn-red { margin-top: 30px; }
.btn-ghost-dark { background: none; border: 1px solid var(--navy) !important; color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: var(--white); }
.pill { display: inline-block; border: 0; background: #ececf1; color: var(--muted); padding: 5px 14px; border-radius: 40px; font: inherit; font-size: .78rem; cursor: pointer; }
.pill.ok { background: #e3f0e6; color: #2f6e45; }
.dist-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.dist-head h2.sec { border: 0; margin-bottom: 0; }
.adm-list td, .adm-list th { white-space: nowrap; }
.adm-list tr.muted td { color: var(--muted); }
.adm-list .acts { text-align: right; white-space: nowrap; }
.adm-list .acts .btn.btn-sm { margin: 0 0 0 6px; padding: 8px 14px; border: 0; }
.adm-list .acts form.inline { display: inline; }
.empty-row { text-align: center; color: var(--muted); padding: 28px !important; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--line); background: var(--paper); }
dialog.dlg form.form .dlg-body { padding: 22px 26px; }
@media (max-width: 720px) {
	.grid .c3, .grid .c4, .grid .c6 { grid-column: span 12; }
	.adm-list, .adm-list tbody { display: block; }
	.adm-list thead { display: none; }
	.adm-list tr { display: block; border: 1px solid var(--line); margin-bottom: 12px; background: var(--white); }
	.adm-list td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); text-align: right; white-space: normal; }
	.adm-list td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-align: left; align-self: center; }
	.adm-list td.acts, .adm-list td:not([data-label]) { display: block; text-align: right; }
	.adm-list td.acts::before, .adm-list td:not([data-label])::before { content: none; }
	.adm-list td.empty-row { display: block; }
}

/* weather strip (top of the race page) */
.weather { margin: 4px 0 26px; padding: 22px 22px 14px; background: linear-gradient(180deg, #f3f6fb, #eef2f9); border: 1px solid var(--line); border-radius: 2px; }
.weather h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--navy); margin: 0 0 14px; }
.wdays { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.wday { background: var(--white); border: 1px solid var(--line); padding: 12px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; align-items: center; border-radius: 2px; }
.wday.raceday { border-color: var(--gold); box-shadow: 0 6px 18px rgba(184,151,90,.25); background: #fffdf7; }
.wday .wd { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.wday.raceday .wd { color: var(--red); font-weight: 500; }
.wday .wdate { font-size: .72rem; color: var(--muted); }
.wday .wi { font-size: 2rem; line-height: 1.2; }
.wday .wt b { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); font-weight: 500; font-variant-numeric: lining-nums; }
.wday .wt .lo { color: var(--muted); font-size: .9rem; }
.wday .wtxt { font-size: .78rem; color: var(--ink); }
.wday .wm { font-size: .72rem; color: var(--muted); }
.wlater, .wnote { margin: 0 0 8px; color: var(--ink); }
.wnote { font-style: italic; }
.wcredit { margin: 10px 0 0; font-size: .72rem; color: var(--muted); }
.wcredit a { color: var(--muted); }
@media (max-width: 720px) { .wdays { grid-template-columns: repeat(5, minmax(86px, 1fr)); overflow-x: auto; padding-bottom: 6px; } .weather { padding: 16px 14px 12px; } }

/* where the race takes place (below the table) */
.where { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.where h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--navy); margin: 0 0 8px; }
.where-line { margin: 0 0 14px; }
iframe.osm { width: 100%; height: 340px; border: 1px solid var(--line); display: block; background: #e8edf2; }
.where .actions { margin: 16px 0 10px; }
.where .actions .btn { padding: 11px 20px; border: 0; }
.directions { background: var(--paper); border-left: 3px solid var(--gold); padding: 12px 14px; margin: 14px 0 0; font-size: .95rem; }
@media (max-width: 720px) { iframe.osm { height: 260px; } }

/* floating buttons (right side): WhatsApp at 88px, back to top at 150px, like the other sites */
#scrollTopBtn { display: none; position: fixed; bottom: 150px; right: 24px; z-index: 999; width: 48px; height: 48px; background: var(--white); color: var(--navy); border: 2px solid var(--gold); border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 4px 16px rgba(13,18,51,.25); transition: background .2s, color .2s, transform .2s; align-items: center; justify-content: center; padding: 0; }
#scrollTopBtn:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.float-wa { position: fixed; bottom: 88px; right: 24px; z-index: 999; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 18px; border-radius: 40px; background: #25d366; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 500; letter-spacing: .04em; box-shadow: 0 4px 16px rgba(13,18,51,.3); transition: background .2s, transform .2s; }
.float-wa:hover { background: #1da851; transform: translateY(-2px); }
@media (max-width: 480px) { .float-wa { right: 14px; padding: 0 14px; } #scrollTopBtn { right: 14px; } }

/* facebook popup (home page) */
.nav button.nav-fb { background: none; border: 0; color: rgba(255,255,255,.88); font: inherit; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; cursor: pointer; transition: .2s; }
.nav button.nav-fb:hover { color: var(--white); border-bottom-color: var(--gold); }
.fb-frame { width: 100%; max-width: 500px; height: 430px; border: 0; display: block; margin: 0 auto; background: var(--paper); }
.fb-actions { text-align: center; margin: 16px 0 4px; }
.fb-actions .btn { border: 0; }
@media (max-width: 720px) { .nav button.nav-fb { padding: 16px 0; width: 100%; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); } .fb-frame { height: 480px; } }
.btn-fb { background: #1877f2; color: var(--white); }
.btn-fb:hover { background: #135fc2; }
.where .actions .btn.btn-sm { margin-left: 0; }
.btn-ig { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); color: var(--white); border: 0; }
.btn-ig:hover { filter: brightness(.9); }
.fb-invite { text-align: center; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin: 18px 0 8px; }
.fb-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.follow .btn { margin: 4px 6px; }
.nav a[href*="instagram"] { }

/* settings: grouped content editor */
.form fieldset.cgroup { border: 1px solid var(--line); border-radius: 2px; padding: 4px 18px 20px; margin: 22px 0 0; background: #fcfcfd; }
.form fieldset.cgroup legend { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); padding: 0 10px; }
.form textarea::placeholder, .form input::placeholder { color: #9aa0b5; }
.panel .form + .form { margin-top: 48px; padding-top: 10px; border-top: 3px solid var(--navy); }

/* entry form */
.entry-form { margin-top: 22px; background: var(--white); border: 1px solid var(--line); padding: 26px 26px 24px; }
.entry-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.entry-form fieldset.pane { border: 0; padding: 0; margin: 0; min-width: 0; }
.entry-form fieldset.pane legend { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); padding: 0; margin-bottom: 4px; }
.entry-form.wiz fieldset.pane legend { display: none; }
.entry-form fieldset.pane + fieldset.pane { margin-top: 30px; }
.entry-form.wiz fieldset.pane + fieldset.pane { margin-top: 0; }
.entry-form [hidden] { display: none !important; }
.wiz-progress { display: none; list-style: none; padding: 0; margin: 0 0 24px; gap: 8px; }
.entry-form.wiz .wiz-progress { display: flex; }
.wiz-progress li { flex: 1; text-align: center; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 4px; border-bottom: 3px solid var(--line); }
.wiz-progress li.on { color: var(--navy); border-bottom-color: var(--red); font-weight: 500; }
.wiz-progress li.done { color: #3d6b4a; border-bottom-color: #6aa37b; }
.wiz-nav { display: none; justify-content: space-between; margin-top: 26px; }
.entry-form.wiz .wiz-nav { display: flex; }
.wiz-nav .btn { border: 0; }
.wiz-nav .btn.btn-ghost-dark { border: 1px solid var(--navy); }
.entry-form .idtype { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 8px 0 4px; }
.entry-form .idtype label.check { margin: 6px 0; }
.entry-form .other-only { display: none; }
.entry-form.is-other .other-only { display: block; }
.entry-form .derived { margin: 4px 0 0; min-height: 1.4em; color: #8a5a00; font-size: .92rem; }
.entry-form .derived.ok { color: #2f6e45; }
.entry-form .chosen-box { background: #f3f6fb; border-left: 3px solid var(--gold); padding: 12px 14px; margin: 6px 0 4px; font-size: .95rem; }
.entry-form .chosen-box .from { display: block; }
.entry-form .shirt-box { background: var(--paper); border: 1px solid var(--line); padding: 14px 16px; margin-top: 18px; }
.entry-form .shirt-box .c6 { margin-top: 6px; }
.entry-form table.fees tr.total td { border-top: 2px solid var(--navy); padding-top: 14px; font-size: 1.1rem; }
.entry-form .confirms { margin: 20px 0 6px; }
.entry-form .confirms label.check { align-items: flex-start; margin: 12px 0; line-height: 1.5; }
.entry-form .confirms input[type=checkbox], .entry-form .shirt-box input[type=checkbox], .entry-form .idtype input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.entry-form .btn-red[type=submit] { margin-top: 12px; border: 0; }
.entry-form ul.errs { margin: 8px 0 0 18px; padding: 0; }
.entry-form .notice strong { font-size: 1.3rem; }
@media (max-width: 720px) { .entry-form { padding: 18px 14px; } .wiz-progress li { font-size: .6rem; letter-spacing: .04em; } }

/* every text-like box in forms looks the same (email, tel, text, url, number, date) */
.form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]) { width: 100%; padding: 13px 14px; border: 1px solid #cfd3e2; border-radius: 2px; font: inherit; background: var(--white); }
.form input:not([type=checkbox]):not([type=radio]):focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form .hp input { width: 1px; }
.backlink { margin: 0 0 12px; font-size: .9rem; }
.backlink a { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.entry-form .chosen-box.final-check { margin: 4px 0 16px; border-left-color: var(--red); background: #fff7f7; font-size: 1rem; }

/* "Have you entered for the correct distance?" */
.dist-question { background: #fff7f7; border: 1px solid #f0c9cb; border-left: 4px solid var(--red); padding: 14px 16px; margin: 0 0 14px; }
.dist-question p { margin: 0 0 8px; }
.dist-question label.check { margin: 8px 0; }
.dist-question #distPick { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e3b4b6; }
.dist-question #distPick label { display: block; margin-bottom: 6px; font-weight: 500; }
.dist-question select { width: 100%; padding: 12px 14px; border: 2px solid var(--red); border-radius: 2px; font: inherit; background: var(--white); }

/* tick-box lines: the text, bold words and links flow as one sentence next to the box */
.entry-form .confirms label.check, .entry-form .dist-question label.check, .entry-form .shirt-box label.check { display: block; position: relative; padding-left: 32px; line-height: 1.5; }
.entry-form .confirms label.check > input, .entry-form .dist-question label.check > input, .entry-form .shirt-box label.check > input { position: absolute; left: 0; top: 2px; margin: 0; }
.lic-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.lic-actions .btn { border: 1px solid var(--navy); }
.lic-actions .btn-red { border-color: var(--red); }
#dlgLicence { width: min(520px, calc(100% - 28px)); }
.entry-form .cat-auto { background: #f1f8f3; border-left: 4px solid #3f8a58; padding: 14px 16px; margin: 6px 0 4px; }
.entry-form .cat-auto .from { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.entry-form .cat-auto b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); font-weight: 500; line-height: 1.2; }
.entry-form .cat-auto .hint { display: block; margin-top: 2px; }
.entry-form .derived.bad { color: var(--red); font-weight: 500; }
.entry-form input:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--red); }
.entry-form .cat-note { color: #8a5a00; background: #fff6e0; border-left: 3px solid var(--gold); padding: 8px 12px; font-size: .92rem; }
.entry-form label.not-sa { display: block; position: relative; padding-left: 32px; margin: 10px 0 14px; line-height: 1.5; }
.entry-form label.not-sa > input { position: absolute; left: 0; top: 2px; margin: 0; width: 20px; height: 20px; }
.entry-form .saved-note { background: #f3f6fb; border-left: 3px solid var(--gold); padding: 8px 12px; font-size: .9rem; }
.adm-list tr.needs-check td { background: #fff8e8; }
.adm-list .flag { display: block; background: #fdeeee; color: #a12026; border-left: 3px solid var(--red); padding: 3px 8px; margin: 2px 0; font-size: .8rem; white-space: normal; }
.muted-s { color: var(--muted); font-size: .85rem; }
#dlgForeign { width: min(520px, calc(100% - 28px)); }
#dlgForeign label { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
#dlgForeign input, #dlgForeign select { width: 100%; padding: 12px 14px; border: 1px solid #cfd3e2; border-radius: 2px; font: inherit; background: var(--white); }
.entry-form.is-other .sa-only { display: none; }
#age_show { background: #f1f8f3; font-weight: 500; color: var(--navy); }

/* very small phones: the Previous / Next buttons must fit inside the form */
@media (max-width: 400px) {
	.wiz-nav { gap: 8px; }
	.wiz-nav .btn { padding: 14px 18px; letter-spacing: .1em; min-width: 0; }
}

/* the "Pay online now" button */
.pay-form { margin: 8px 0 20px; }
.btn-pay { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 520px; padding: 14px 18px; border: 0; border-radius: 4px; background: var(--navy); color: var(--white); cursor: pointer; font: inherit; text-align: left; box-shadow: 0 8px 22px rgba(20,26,68,.25); transition: transform .15s, background .2s; }
.btn-pay:hover { background: #0d1233; transform: translateY(-2px); }
.btn-pay:disabled { background: #8d93ad; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-pay .pay-logo { flex: none; background: var(--white); border-radius: 3px; padding: 6px 8px; min-width: 120px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.btn-pay .pay-logo img { height: 52px; width: auto; display: block; }
.btn-pay .pay-word { color: var(--navy); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-align: center; line-height: 1.2; }
.btn-pay .pay-text { flex: 1; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.btn-pay .pay-amt { font-family: var(--serif); font-size: 1.7rem; font-variant-numeric: lining-nums; }
@media (max-width: 480px) { .btn-pay { flex-wrap: wrap; gap: 10px; } .btn-pay .pay-text { flex: 1 1 60%; } }

/* the menu folds into the Menu button below 1100px (eight items need the room) */
@media (max-width: 1100px) {
	.menu-toggle { display: block; }
	.nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; gap: 0; padding: 10px 24px 24px; }
	.nav.open { display: flex; }
	.nav a { padding: 16px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.1); }
	.nav .btn-line { border: 0; padding: 16px 0; }
	.nav button.nav-fb { padding: 16px 0; width: 100%; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); }
}

.tabs2 { display: flex; gap: 0; margin: 0 0 22px; border-bottom: 1px solid #e5e5ee; }
.tabs2 a { padding: 12px 26px; text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--navy); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs2 a.on { border-bottom-color: var(--gold); font-weight: 500; }
.tabs2 a:hover { background: #faf6ec; }

/* admin main menu */
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 8px 0 30px; }
.acard { display: block; padding: 18px 20px; border: 1px solid #e5e5ee; border-left: 4px solid var(--gold); background: var(--white); text-decoration: none; color: var(--navy); transition: .2s; }
.acard b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-bottom: 4px; }
.acard span { font-size: .88rem; color: #666; line-height: 1.4; }
a.acard:hover { background: #faf6ec; transform: translateY(-2px); }
.acard.off { opacity: .55; border-left-color: #bbb; }
.yearbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.yearbar a { padding: 7px 16px; border: 1px solid #d5d5e0; text-decoration: none; color: var(--navy); font-size: .85rem; letter-spacing: .08em; }
.yearbar a.on, .yearbar a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.dist-table tfoot td { background: #faf6ec; border-top: 2px solid var(--gold); }

/* admin dropdown menu */
.admin-nav details.dd { position: relative; }
.admin-nav details.dd summary { list-style: none; cursor: pointer; color: rgba(255,255,255,.88); letter-spacing: .14em; text-transform: uppercase; }
.admin-nav details.dd summary::-webkit-details-marker { display: none; }
.admin-nav details.dd summary::after { content: ' \25BE'; }
.admin-nav details.dd[open] summary, .admin-nav details.dd summary:hover { color: #f3dfb6; }
.admin-nav .ddm { position: absolute; top: 100%; left: 0; z-index: 50; min-width: 190px; margin-top: 10px; padding: 8px 0; background: var(--navy-deep); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.admin-nav .ddm a { display: block; padding: 10px 18px; white-space: nowrap; }
.admin-nav .ddm a:hover { background: rgba(255,255,255,.08); }
.admin-nav .ddm .soon { display: block; padding: 10px 18px; white-space: nowrap; color: rgba(255,255,255,.5); font-style: italic; letter-spacing: .08em; }

/* race hub buttons */
.hubbtn { white-space: normal; }
.hb { display: inline-block; margin: 3px 6px 3px 0; padding: 7px 13px; border: 1px solid var(--navy); color: var(--navy); text-decoration: none; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
a.hb:hover { background: var(--navy); color: var(--white); }
.hb.off { border-color: #d5d5e0; color: #aaa; cursor: default; }

/* admin dropdowns: a vertical list under the menu item */
.admin-nav details.dd { position: relative; }
.admin-nav .ddm { left: 0; right: auto; top: 100%; margin-top: 10px; display: block; padding: 8px 0; min-width: 210px; border: 1px solid rgba(255,255,255,.18); }
.admin-nav .ddm a, .admin-nav .ddm .soon { display: block; padding: 10px 18px; }

.reportbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 22px; padding: 16px 18px; background: #faf6ec; border-left: 4px solid var(--gold); }
.reportbox label { margin: 0; font-weight: 500; }
.reportbox select { min-width: 260px; max-width: 100%; }

/* report cards */
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 8px 0 28px; }
.rcard { display: block; padding: 18px 18px 16px; background: var(--white); border: 1px solid #e5e5ee; border-left: 4px solid var(--gold); text-decoration: none; color: var(--navy); box-shadow: 0 2px 8px rgba(20,26,68,.06); transition: .2s; }
.rcard .ric { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px; background: #f0f1f8; color: var(--navy); border-radius: 8px; }
.rcard b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.rcard .arr { display: block; margin: 6px 0 4px; font-size: 1.1rem; }
.rcard .rtx { display: block; font-size: .82rem; color: #666; line-height: 1.4; }
a.rcard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,26,68,.14); }
.rcard.on { background: #faf6ec; border-color: var(--gold); }
.rcard.next { position: relative; background: #fff8e1; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold), 0 8px 20px rgba(20,26,68,.14); }
.rcard .nexttag { position: absolute; top: 10px; right: 10px; padding: 3px 9px; background: var(--gold); color: var(--navy); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; }
.rcard.off { opacity: .55; border-left-color: #bbb; cursor: default; }
.rcard.off .arr { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #888; }

.sechead { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #5a6078; font-weight: 500; }
.sechead::after { content: ''; flex: 1; height: 1px; background: #dfe1ec; }
.rcard { --ac: #c9a96a; --tint: #f6efdd; border-left-color: var(--ac); }
.rcard .ric { background: var(--tint); color: var(--ac); }
.rcard.ac-blue { --ac: #3f6fa6; --tint: #e8eff8; }
.rcard.ac-green { --ac: #3f7d62; --tint: #e7f1ec; }
.rcard.ac-teal { --ac: #4f9db8; --tint: #e6f3f8; }
.rcard.ac-red { --ac: #b0443c; --tint: #f7e9e7; }
.rcard.ac-purple { --ac: #7a4fa3; --tint: #f0e8f6; }
.rcard.ac-gold { --ac: #b8913f; --tint: #f6efdd; }
.rcard.off { border-left-color: var(--ac); }

/* start a race */
form.inl { display: inline-flex; gap: 6px; align-items: center; margin: 0 8px 4px 0; }
button.hb { background: var(--white); cursor: pointer; font-family: inherit; }
button.hb:hover { background: var(--navy); color: var(--white); }
button.hb.go { background: var(--red); border-color: var(--red); color: var(--white); }
input.tm { width: 96px; padding: 7px 8px; border: 1px solid #d5d5e0; font: inherit; font-size: .85rem; }
.started { color: #2c6e49; font-variant-numeric: tabular-nums; }
.startall { margin: 4px 0 18px; }

/* start a race cards */
.scard { margin: 0 0 18px; padding: 18px 20px; background: var(--white); border: 1px solid #e5e5ee; border-left: 5px solid #c9c9d6; }
.scard.is-on { border-left-color: #2c6e49; background: #f5faf7; }
.shead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.shead b { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.sstat { margin-left: auto; font-weight: 500; color: #888; }
.is-on .sstat { color: #2c6e49; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.bigstart { display: block; width: 100%; max-width: 420px; padding: 18px; border: 0; background: var(--red); color: var(--white); font: inherit; font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; margin-bottom: 14px; }
.bigstart:hover { background: #8e1b21; }
.timeset { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding-top: 10px; border-top: 1px dashed #dcdce8; }
.timeset .tl { flex-basis: 100%; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #666; }
.timeset label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: #555; margin: 0; }
.timeset select, .timeset input[type=date] { padding: 8px; border: 1px solid #d5d5e0; font: inherit; background: var(--white); }
.clearf { margin-top: 10px; }
.linkbtn { background: none; border: 0; color: #8e1b21; text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }

/* device clock check */
.clockbox { margin: 0 0 20px; padding: 16px 20px; background: #eef4fb; border-left: 5px solid #3f6fa6; position: relative; }
.clockbox .ckx { position: absolute; top: 6px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #3f6fa6; font-size: 1.7rem; line-height: 1; cursor: pointer; } .clockbox .ckx:hover { background: #dbe6f3; color: #141a44; }
.clockbox .cq { padding-right: 38px; }
.clockbox .cq { margin-bottom: 12px; line-height: 1.5; }
.clockbox .crow { display: flex; flex-wrap: wrap; gap: 12px 34px; }
.clockbox .cl { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #5a6078; }
.clockbox .ct { display: block; font-family: var(--serif); font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.clockbox .cmsg { margin-top: 10px; padding: 9px 12px; font-size: .92rem; line-height: 1.45; }
.cmsg.ok { background: #e7f1ec; color: #1f5a3a; }
.cmsg.bad { background: #fbe9e7; color: #8e1b21; font-weight: 500; }

.pickbar { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 4px 0 22px; padding: 16px 18px; background: #faf6ec; border-left: 4px solid var(--gold); }
.pickbar label { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #5a6078; }
.pickbar select { min-width: 270px; max-width: 100%; padding: 10px; border: 1px solid #d5d5e0; font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; background: var(--white); color: var(--navy); }

a.hb.done { border-color: #2c6e49; color: #2c6e49; background: #f5faf7; }
a.hb.done:hover { background: #2c6e49; color: var(--white); }
a.hb.all { border-style: dashed; }

a.hb.dl { text-transform: none; letter-spacing: .02em; font-size: .95rem; padding: 8px 16px; position: relative; margin-top: 10px; }
.rcount { display: inline-block; vertical-align: middle; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 11px; background: #e8272a; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); font-size: .72rem; font-weight: 700; letter-spacing: 0; line-height: 22px; text-align: center; box-sizing: border-box; }
.dcount { position: absolute; top: -9px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e8272a; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); font-size: .72rem; font-weight: 700; letter-spacing: 0; line-height: 22px; text-align: center; box-sizing: border-box; }

.backrow { margin: 0 0 6px; }
a.hb.back { margin: 0; }
.bigdist { margin: 2px 0 16px; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--navy); }

.soundbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 18px; }
.soundbar .check { margin: 0; }

.stedit { padding: 2px 8px; border-bottom: 2px dotted #2c6e49; cursor: text; outline: none; min-width: 5.5em; display: inline-block; }
.stedit:focus { background: #fff6e0; border-bottom-color: var(--gold); }
.stedit.saving { opacity: .5; }
.stpen { margin-left: 6px; font-size: .9rem; opacity: .6; }
.stnote { margin: -4px 0 12px; }

/* countdown screen */
.cdown { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #0d1233; color: #fff; text-align: center; }
.cdown[hidden] { display: none; }
.cdlabel { font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 3rem); color: #f3dfb6; }
.cdnum { font-family: var(--serif); font-size: clamp(9rem, 38vw, 26rem); line-height: 1; font-variant-numeric: tabular-nums; }
.cdsub { font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.cdown.last { background: #5a0f14; }
.cdown.go { background: #14532d; }
.cdown.go .cdnum { font-size: clamp(7rem, 30vw, 20rem); }
.cdcancel { margin-top: 26px; padding: 16px 30px; border: 2px solid #fff; background: transparent; color: #fff; font: inherit; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.cdcancel:hover { background: #fff; color: #5a0f14; }

/* finish time capture */
.capbox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 12px; padding: 18px; background: #fffbe0; border: 2px solid var(--gold); }
.capbox label { margin: 0; font-weight: 500; }
.capbox #capNo { width: 220px; padding: 12px; font-size: 2rem; text-align: center; font-weight: 700; color: #c00; background: #ffff66; border: 2px solid #333; }
.capbox .devlab { margin-left: auto; font-size: .85rem; font-weight: 400; }
.capbox .devlab input { width: 130px; padding: 6px; border: 1px solid #d5d5e0; font: inherit; }
.capmsg { min-height: 2.6em; margin: 0 0 12px; padding: 10px 14px; font-size: 1.05rem; background: #f4f4f8; }
.capmsg.ok { background: #e7f1ec; color: #1f5a3a; } .capmsg.warn { background: #fff0d6; color: #7a4b00; } .capmsg.bad { background: #fbe9e7; color: #8e1b21; font-weight: 500; }
.capstats { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 10px; font-size: .95rem; } .capstats .bad { color: #8e1b21; }
.caplist td small { color: #888; } .caplist tr.flag td { background: #fff6f4; } .why { font-size: .78rem; color: #8e1b21; }
.ced { padding: 2px 6px; border-bottom: 1px dotted #999; cursor: text; outline: none; display: inline-block; min-width: 2.5em; } .ced:focus { background: #fff6e0; border-bottom-color: var(--gold); }

/* edit entries */
.editbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 12px; }
.editbar input[type=search] { width: 320px; max-width: 100%; padding: 10px; border: 1px solid #d5d5e0; font: inherit; }
.emsg.ok { color: #1f5a3a; } .emsg.bad { color: #8e1b21; font-weight: 500; }
.editwrap { overflow-x: auto; }
.edtbl th, .edtbl td { white-space: nowrap; font-size: .85rem; padding: 6px 8px; }
.edtbl .esel { padding: 5px; border: 1px solid #d5d5e0; font: inherit; font-size: .85rem; max-width: 170px; background: var(--white); }
.edtbl .ced { min-width: 4em; } .edtbl .ced.no { font-weight: 700; }
.edtbl tr.cancelled td { opacity: .5; text-decoration: line-through; } .edtbl tr.cancelled td select { text-decoration: none; }
.ced.okcell, .esel.okcell { background: #dff3e6; } .ced.badcell, .esel.badcell { background: #fbe0dc; } .ced.saving, .esel.saving { opacity: .5; }

.login-card .backhome { display: block; margin-top: 14px; text-align: center; padding: 12px; border: 1px solid #c9c9d6; color: var(--navy); text-decoration: none; background: transparent; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.login-card .backhome:hover { background: var(--navy); color: var(--white); }

/* wide admin tables (Edit Race Entries): use the whole screen, compact cells, a scroll bar that is always visible */
body.fullwidth main .wrap { width: calc(100% - 28px); max-width: none; }
body.fullwidth .panel, body.fullwidth .panel.wide, body.fullwidth .panel.wider { max-width: none; padding: 26px 20px; }
.editwrap { overflow-x: scroll; padding-bottom: 6px; scrollbar-width: auto; scrollbar-color: #8d93ad #eef0f6; }
.editwrap::-webkit-scrollbar { height: 14px; } .editwrap::-webkit-scrollbar-track { background: #eef0f6; } .editwrap::-webkit-scrollbar-thumb { background: #8d93ad; border-radius: 7px; }
.edtbl th, .edtbl td { padding: 4px 6px; font-size: .78rem; }
.edtbl th { letter-spacing: .06em; }
.edtbl .esel { font-size: .78rem; padding: 3px; max-width: 120px; }
.edtbl .esel[data-f=category_id] { max-width: 130px; } .edtbl .esel[data-f=country] { max-width: 92px; }
.edtbl td .ced { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; min-width: 3em; }
.edtbl td .ced:focus { max-width: 40ch; overflow: visible; }
.edtbl td .ced.no { max-width: 6ch; }
/* finish time: two panels (captured on the left, completed on the right) */
.ftwo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; margin-top: 6px; }
@media (max-width: 1000px) { .ftwo { grid-template-columns: 1fr; } }
.ftwo h2.sec { margin-top: 0; }
.caplistwrap { max-height: 62vh; overflow-y: auto; border: 1px solid #e5e5ee; }
.caplist th, .caplist td, .donelist th, .donelist td { padding: 5px 8px; font-size: .85rem; white-space: nowrap; }
.caplistwrap thead th { position: sticky; top: 0; background: #f0f1f8; z-index: 1; }
.donelist td:nth-child(3) { white-space: normal; }
.hb.sms { padding: 5px 12px; background: var(--white); cursor: pointer; font-family: inherit; }
.hb.sms:disabled { opacity: .5; cursor: wait; }
.fleft .capbox { gap: 8px 12px; padding: 14px; } .fleft .capbox #capNo { width: 150px; font-size: 1.6rem; padding: 8px; }
.ftwo { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; }
.caplistwrap { overflow-x: auto; scrollbar-width: auto; scrollbar-color: #8d93ad #eef0f6; }
.caplistwrap::-webkit-scrollbar { height: 12px; width: 12px; } .caplistwrap::-webkit-scrollbar-track { background: #eef0f6; } .caplistwrap::-webkit-scrollbar-thumb { background: #8d93ad; border-radius: 6px; }
.caplist th, .caplist td, .donelist th, .donelist td { padding: 4px 6px; font-size: .8rem; }
.donelist th { letter-spacing: .05em; }
.donelist td:nth-child(3) { white-space: nowrap; }
.fleft .capbox { padding: 10px; gap: 6px 10px; } .fleft .capbox .devlab { margin-left: 0; }
.fleft .capbox #capNo { width: 120px; font-size: 1.4rem; }

.catbadge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #e8272a; color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }

.swapbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 8px; }
.swapbar button.hb { cursor: pointer; background: var(--white); font-family: inherit; } .swapbar button.hb:disabled { opacity: .45; cursor: not-allowed; } .swapbar button.hb:not(:disabled) { background: var(--navy); color: var(--white); }
.caplist tr.ticked td { background: #fff3c4; }
.caplist input.tk { width: 18px; height: 18px; cursor: pointer; }

.fltbox { width: 100%; max-width: 320px; margin: 0 0 8px; padding: 8px 10px; border: 1px solid #d5d5e0; font: inherit; font-size: .9rem; }
.caplist .ced, .donelist .ced { border-bottom: 1px dashed #8d93ad; background: #fafaff; padding: 2px 8px; min-width: 4.6em; border-radius: 2px; }
.caplist .ced:hover, .donelist .ced:hover { background: #fff6e0; border-bottom-color: var(--gold); }
.caplist .ced:focus, .donelist .ced:focus { background: #fff0c2; }

.finbtn { background: #fafaff; border: 1px dashed #8d93ad; border-radius: 2px; padding: 2px 8px; font: inherit; font-size: .8rem; color: var(--navy); cursor: pointer; font-variant-numeric: tabular-nums; }
.finbtn:hover { background: #fff6e0; border-color: var(--gold); }
#dlgFin { max-width: 420px; width: calc(100% - 32px); padding: 26px; border: 0; box-shadow: 0 20px 60px rgba(20,26,68,.4); }
#dlgFin::backdrop { background: rgba(13,18,51,.6); }
#dlgFin h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 0 0 4px; color: var(--navy); }
.finset { border: 0; padding-top: 0; margin: 10px 0; } .finset select { font-size: 1.4rem; padding: 8px; min-width: 76px; }
.dlgmsg { color: #8e1b21; min-height: 1.2em; font-weight: 500; }
.dlgbtns { display: flex; gap: 10px; margin-top: 10px; }

.namebtn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-align: left; cursor: pointer; text-decoration: underline dotted; }
.namebtn:hover { color: var(--red); }
.finset input#fno { width: 90px; font-size: 1.4rem; padding: 8px; border: 1px solid #d5d5e0; text-align: center; }

.clockwrap { margin: 0 0 10px; }
.ckbtn { background: var(--white); cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 10px; }
.ckpill { display: inline-block; padding: 1px 10px; border-radius: 10px; background: #eef0f6; color: #5a6078; font-size: .72rem; letter-spacing: .04em; text-transform: none; }
.ckpill.ok { background: #e1f1e8; color: #1f5a3a; } .ckpill.bad { background: #fbe0dc; color: #8e1b21; font-weight: 600; }
.clockbox[hidden] { display: none; }
.ckact { margin: 10px 0 0; } .ckact .hb { cursor: pointer; background: var(--white); font-family: inherit; }

.ftwo > section.fleft, .ftwo > section.fright { padding: 0; margin: 0; }

.newentry .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 18px; }
.newentry label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; margin: 0; }
.newentry label[hidden], .newentry .neBirth[hidden] { display: none; }
.newentry label.check { flex-direction: row; align-items: center; gap: 8px; margin: 16px 0 10px; font-size: .95rem; }
.newentry .inl { display: flex; align-items: center; gap: 8px; }

/* race numbers */
.rnbox { margin: 0 0 22px; padding: 4px 18px 16px; background: #faf6ec; border-left: 4px solid var(--gold); }
.rngrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 18px; margin: 4px 0 12px; }
.rngrid label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; margin: 0; }
.rngrid input, .rngrid select { padding: 9px; border: 1px solid #d5d5e0; font: inherit; background: var(--white); }
.rnlist td, .rnlist th { padding: 4px 8px; font-size: .85rem; }
.rnlist .ced.no { font-weight: 700; min-width: 3.5em; }

#rnMsg:empty, #payMsg:empty, #rnPlanMsg:empty { display: none; }

.rnstats { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 14px; padding: 12px 16px; background: #eef4fb; border-left: 4px solid #3f6fa6; font-size: .95rem; }
.rnstats .warnx { color: #8e1b21; }
.rnneed { margin: 4px 0 12px; padding: 8px 12px; background: var(--white); border: 1px dashed #c9a96a; font-size: .9rem; }
#rnStats:empty { display: none; }

.dn { margin-left: 6px; padding-left: 8px; border-left: 1px solid currentColor; font-size: .72rem; opacity: .75; }
.entrybar { margin: 0 0 14px; padding: 10px 14px; background: #eef4fb; border-left: 4px solid #3f6fa6; font-size: 1rem; }
.entrybar .warnx { color: #8e1b21; }

.entbadge { margin-left: 4px; background: #e8eff8; color: #2b4f7e; }
a.hb.done .entbadge { background: #d6ecdf; color: #1f5a3a; }
a.hb:hover .entbadge { background: rgba(255,255,255,.9); }

.unpaidtag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 9px; background: #fbe0dc; color: #8e1b21; font-size: .68rem; font-weight: 600; letter-spacing: .03em; }

/* Completed list: headings and cells centred */
.donelist th, .donelist td, .donelist thead th { text-align: center !important; }
.donelist td .namebtn { text-align: center; }

/* number pad popup */
.padbtn { cursor: pointer; background: var(--white); font-family: inherit; border-color: var(--navy); font-weight: 500; }
#dlgPad { max-width: 360px; width: calc(100% - 24px); padding: 18px; border: 0; box-shadow: 0 20px 60px rgba(20,26,68,.45); }
#dlgPad::backdrop { background: rgba(13,18,51,.6); }
.padwrap h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 8px; color: var(--navy); }
.padshow { min-height: 78px; margin: 0 0 8px; padding: 6px 12px; background: #ffff66; border: 2px solid #333; color: #c00; font-size: 3rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.padmsg { min-height: 2.6em; margin: 0 0 8px; padding: 6px 10px; font-size: .9rem; background: #f4f4f8; } .padmsg.ok { background: #e7f1ec; color: #1f5a3a; } .padmsg.warn { background: #fff0d6; color: #7a4b00; } .padmsg.bad { background: #fbe9e7; color: #8e1b21; }
.padkeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.padkeys button { padding: 18px 0; font: inherit; font-size: 1.8rem; font-weight: 600; background: var(--white); border: 2px solid #c9c9d6; color: var(--navy); cursor: pointer; border-radius: 4px; touch-action: manipulation; }
.padkeys button:active { background: var(--navy); color: var(--white); }
.padkeys .pk-aux { font-size: 1rem; font-weight: 500; background: #f0f1f8; }
.padbtns { display: flex; gap: 10px; } .padbtns .btn { flex: 1; padding: 16px 8px; }
#capNo.flash { box-shadow: 0 0 0 4px #2c8a4a; }

.autopad { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 400; margin: 0; }

.padsave { display: block; width: 100%; margin: 0 0 10px; padding: 20px 8px; border: 0; border-radius: 4px; background: #14532d; color: #fff; font: inherit; font-size: 1.25rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; }
.padsave:active { background: #0d3a1f; }

/* phones and tablets: the two panels sit one under the other (this must stay after the .ftwo rules above) */
@media (max-width: 1000px) {
	.ftwo { grid-template-columns: minmax(0, 1fr); } .ftwo > section { min-width: 0; }
	.fleft .capbox #capNo { width: 140px; font-size: 1.6rem; }
	.fleft .capbox .devlab { width: 100%; }
}
@media (max-height: 860px) { .padkeys button { padding: 13px 0; } .padshow { min-height: 62px; font-size: 2.4rem; } .padsave { padding: 16px 8px; } #dlgPad { padding: 14px; } .padmsg { min-height: 2.2em; } }

/* the screen keyboard popup is for the PC; a phone or tablet uses its own numeric keypad */
@media (pointer: coarse) { .padbtn, .autopad { display: none !important; } }

.padhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .padhead h2 { margin: 0 0 8px; }
.padx { background: none; border: 0; font-size: 2.2rem; line-height: 1; cursor: pointer; color: var(--navy); padding: 0 6px; }

/* screen keyboard: the buttons sit below each other */
.padbtns { flex-direction: column; gap: 8px; }
.padbtns .btn { flex: none; width: 100%; padding: 14px 8px; }
.padsave { margin-bottom: 8px; }

#dlgPad .padkeys button { padding: 12px 0; } #dlgPad .padshow { min-height: 56px; font-size: 2.2rem; } #dlgPad .padmsg { min-height: 1.9em; padding: 4px 10px; font-size: .85rem; } #dlgPad { padding: 12px 16px; max-height: calc(100vh - 16px); overflow-y: auto; }
#dlgPad .padsave { padding: 14px 8px; font-size: 1.1rem; } #dlgPad .padbtns .btn { padding: 11px 8px; }

/* screen keyboard: first button red, second green */
#dlgPad .padsave { background: #b8312f; color: #fff; }
#dlgPad .padsave:active { background: #8e1b21; }
#dlgPad .padgo { background: #14532d; color: #fff; border: 0; }
#dlgPad .padgo:hover { background: #0f3f22; color: #fff; }

.notreg { display: inline-block; padding: 0 8px; border-radius: 9px; background: #fbe0dc; color: #8e1b21; font-size: .8rem; font-weight: 600; }
.unregbox { margin: 22px 0 8px; padding: 4px 16px 14px; background: #fff6f4; border-left: 4px solid #b8312f; }
.unregbox h2.sec { margin-top: 10px; } .unreg td, .unreg th { padding: 4px 8px; font-size: .85rem; }
.unregbox[hidden] { display: none; }

.padshowwrap { position: relative; }
.padshowwrap .padshow { padding-right: 56px; }
.padclear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: #b8312f; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; touch-action: manipulation; }
.padclear:active { background: #8e1b21; }
.padx { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border: 1px solid #c9c9d6; border-radius: 3px; }

/* screen keyboard: sized by the screen height, so it fits a tablet or a small laptop without scrolling */
#dlgPad { width: min(320px, 94vw); max-width: none; max-height: 97vh; padding: clamp(8px, 1.6vh, 14px) 14px; overflow-y: auto; }
#dlgPad .padhead { align-items: center; margin-bottom: clamp(3px, .8vh, 8px); }
#dlgPad .padwrap h2, #dlgPad .padhead h2 { font-size: clamp(1.05rem, 2.8vh, 1.4rem); margin: 0; }
#dlgPad .padx { font-size: .7rem; padding: 4px 8px; }
#dlgPad .padshow { min-height: clamp(40px, 7vh, 66px); font-size: clamp(1.5rem, 4.4vh, 2.3rem); padding: 2px 52px 2px 10px; margin: 0 0 clamp(3px, .8vh, 8px); line-height: 1.2; display: flex; align-items: center; justify-content: center; }
#dlgPad .padclear { width: clamp(30px, 5vh, 42px); height: clamp(30px, 5vh, 42px); font-size: clamp(1.3rem, 3.4vh, 1.8rem); }
#dlgPad .padmsg { min-height: 0; padding: 3px 8px; font-size: .75rem; line-height: 1.25; margin: 0 0 clamp(3px, .8vh, 8px); }
#dlgPad .padkeys { gap: clamp(4px, .9vh, 8px); margin-bottom: clamp(4px, 1vh, 10px); }
#dlgPad .padkeys button { height: clamp(36px, 7.2vh, 62px); padding: 0; font-size: clamp(1.1rem, 3vh, 1.6rem); }
#dlgPad .padkeys .pk-aux { font-size: clamp(.8rem, 2vh, 1rem); }
#dlgPad .padsave { height: clamp(38px, 6.6vh, 56px); padding: 0; font-size: clamp(.9rem, 2.2vh, 1.1rem); margin-bottom: clamp(4px, .9vh, 8px); }
#dlgPad .padbtns { gap: clamp(4px, .9vh, 8px); }
#dlgPad .padbtns .btn { height: clamp(32px, 5.4vh, 44px); padding: 0; font-size: clamp(.75rem, 1.8vh, .9rem); }

/* the screen keyboard is a floating panel (not a blocking popup) */
#dlgPad { position: fixed; margin: 0; z-index: 9000; box-shadow: 0 10px 34px rgba(20,26,68,.45); border: 1px solid #c9c9d6; }
#dlgPad .padhead { cursor: move; user-select: none; -webkit-user-select: none; touch-action: none; padding-bottom: 4px; border-bottom: 1px dashed #d5d5e0; }
#dlgPad .padhead h2::before { content: '\2630  '; opacity: .5; font-size: .8em; }

/* screen keyboard: keys on the left, the last captured numbers on the right (same order as the list) */
#dlgPad { width: min(500px, 96vw); }
#dlgPad .padcols { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 12px; align-items: stretch; }
#dlgPad .padmain { min-width: 0; }
#dlgPad .padlast { display: flex; flex-direction: column; min-height: 0; padding: 6px 6px 6px 10px; border-left: 1px dashed #d5d5e0; }
#dlgPad .padlast h3 { margin: 0 0 4px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #5a6078; font-weight: 500; }
#dlgPad .padlast ol { list-style: none; margin: 0; padding: 0; flex: 1 1 0; min-height: 0; overflow-y: auto; font-size: .78rem; }
#dlgPad .padlast li { display: grid; grid-template-columns: 20px 40px 1fr; grid-template-areas: "n b t" ". . w"; gap: 0 4px; align-items: baseline; padding: 3px 0; border-bottom: 1px solid #eee; }
#dlgPad .padlast li .ln { grid-area: n; color: #999; font-size: .68rem; } #dlgPad .padlast li b { grid-area: b; font-size: .95rem; color: var(--navy); } #dlgPad .padlast li .lt { grid-area: t; text-align: right; font-variant-numeric: tabular-nums; color: #444; }
#dlgPad .padlast li .lw { grid-area: w; color: #666; font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #dlgPad .padlast li .lw em { color: #8e1b21; font-style: normal; font-weight: 600; }
#dlgPad .padlast li.newest { background: #e7f1ec; border-radius: 3px; } #dlgPad .padlast li.flag b { color: #8e1b21; } #dlgPad .padlast li.none { color: #999; display: block; }
@media (max-width: 560px) { #dlgPad { width: min(320px, 94vw); } #dlgPad .padcols { grid-template-columns: 1fr; } #dlgPad .padlast { display: none; } }
#dlgPad .padshow.dup { background: #ffb3a7; color: #8e1b21; }
#dlgPad .padlast li.dupnow { background: #ffd0c8; border-radius: 3px; outline: 2px solid #b8312f; }

.delx { width: 24px; height: 24px; padding: 0; border: 1px solid #d9b3ae; border-radius: 50%; background: #fff; color: #b8312f; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.delx:hover { background: #b8312f; color: #fff; border-color: #b8312f; }

.caplist td:first-child { white-space: nowrap; } .caplist td:first-child .delx { margin-left: 4px; vertical-align: middle; }

.caplist .nm { font-size: .75rem; color: #444; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.caplist .why { white-space: normal; max-width: 150px; }

.caplist .rw { display: inline-block; min-width: 1.4em; margin-right: 4px; color: #999; font-size: .72rem; }
.caplist .lp { font-size: .68rem; color: #666; margin-top: 2px; }
.caplist .nm { max-width: 120px; padding-left: 1.5em; }
a.hb.timeback { background: #14532d; color: #fff; border-color: #14532d; margin-left: 8px; }
a.hb.timeback:hover { background: #0f3f22; }

a.notreglink { text-decoration: none; cursor: pointer; border: 1px solid #e3aaa3; }
a.notreglink:hover { background: #b8312f; color: #fff; border-color: #b8312f; }

#dlgPad .padshow:focus { outline: 3px solid #14532d; outline-offset: 1px; }
#dlgPad .padshow:focus::after { content: '|'; margin-left: 2px; animation: padblink 1s steps(1) infinite; }
@keyframes padblink { 50% { opacity: 0; } }

/* Record a payment popup (Entries > Record Payment) */
#dlgPay { max-width: 440px; width: calc(100% - 32px); padding: 26px; border: 0; box-shadow: 0 20px 60px rgba(20,26,68,.4); }
#dlgPay::backdrop { background: rgba(13,18,51,.6); }
#dlgPay h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 0 0 2px; color: var(--navy); }
#dlgPay .sub { margin: 0 0 14px; font-size: 1.05rem; font-weight: 500; color: var(--navy); }
#dlgPay .finset { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; border: 0; padding: 0; margin: 0 0 8px; }
#dlgPay .finset label { display: flex; flex-direction: column; gap: 5px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #5a6078; margin: 0; }
#dlgPay select, #dlgPay input[type=text] { width: 100%; padding: 11px 10px; border: 1px solid #d5d5e0; border-radius: 2px; background: var(--white); color: var(--navy); font: inherit; font-size: 1.05rem; letter-spacing: 0; text-transform: none; box-sizing: border-box; }
#dlgPay select:focus, #dlgPay input[type=text]:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
#dlgPay .dlgbtns { display: flex; gap: 10px; margin-top: 14px; }
#dlgPay .dlgbtns .btn { flex: 1; padding: 13px 8px; }
@media (max-width: 420px) { #dlgPay .finset { grid-template-columns: 1fr; } }

.donecount { display: inline-block; margin-left: 4px; padding: 2px 12px; border-radius: 14px; background: #e7f1ec; color: #1f5a3a; font-family: var(--sans, inherit); font-size: .95rem; font-weight: 600; letter-spacing: .02em; vertical-align: middle; }
#doneNote { color: #8e1b21; }

/* quick add and times waiting for a number */
.quickbtn { background: #d9822b; color: #fff; border: 0; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.quickbtn:hover { background: #b96a1c; color: #fff; }
.padquick { display: block; width: 100%; margin: 0 0 6px; padding: 0; height: clamp(34px, 6vh, 48px); border: 0; border-radius: 4px; background: #d9822b; color: #fff; font: inherit; font-size: clamp(.8rem, 2vh, 1rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; }
.padquick:active { background: #b96a1c; }
.caplist .ced.needno { min-width: 4.5em; height: 1.7em; background: #ffff66; border: 2px solid #d9822b; border-radius: 3px; display: inline-block; }
.caplist .ced.needno:empty::before { content: 'add no'; color: #a45c10; font-size: .78rem; }
.waitno { display: inline-block; padding: 0 8px; border-radius: 9px; background: #ffe6c7; color: #8a4b00; font-size: .78rem; font-weight: 600; }
.waitstat { color: #8a4b00; } #dlgPad .padlast li .lw em { color: #8a4b00; }

#dlgPad .padquick { margin: 0 0 clamp(4px, .9vh, 8px); }

/* left capture list: centered headings */
table.caplist th, .caplistwrap table.caplist th { text-align: center !important; }

/* Time a Race: the list of captured times is on the left from the top; the Finishing now box sits on top of the Completed table */
.ftwo { grid-template-areas: "list cap" "list done"; }
.ftwo > section.flist { grid-area: list; padding: 0; margin: 0; min-width: 0; }
.ftwo > section.fleft { grid-area: cap; }
.ftwo > section.fright { grid-area: done; }
@media (max-width: 1000px) { .ftwo { grid-template-areas: "cap" "list" "done"; } }

/* Time a Race (one race open): one slim top row instead of a tall heading block, for small laptop screens */
body.fullwidth .panel.timingview { padding: 10px 16px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.timingview > .tag { display: none; }
.timingview > h1 { font-size: 1.5rem; margin: 0; }
.timingview > .backrow, .timingview > .sub, .timingview > .clockwrap { margin: 0; }
.timingview > .clockbox, .timingview > .ftwo, .timingview > .unregbox, .timingview > p.hint { flex: 0 0 100%; }
.timingview .ftwo { margin-top: 0; }
.timingview .ftwo h2.sec { font-size: 1.3rem; padding-bottom: 4px; margin-bottom: 4px; }
.timingview .fleft .capbox { margin-top: 2px; }
body.fullwidth .inner:has(.timingview) { padding-top: 10px; padding-bottom: 50px; }
.timingview .capmsg { min-height: 2.2em; padding: 6px 12px; margin: 0 0 6px; }
.timingview .capstats { margin: 0 0 6px; }
.timingview .swapbar { margin: 4px 0; } .timingview .swapbar .hint { font-size: .85rem; }

/* Time a Race: heading block on the left, the Finishing now box in the empty space on its right, both tables start right under them */
@media (min-width: 1001px) {
	body.fullwidth .panel.timingview { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 16px; row-gap: 4px; align-items: start; }
	.timingview > h1 { grid-column: 1; grid-row: 1; }
	.timingview > .backrow { grid-column: 1; grid-row: 2; }
	.timingview > .sub { grid-column: 1; grid-row: 3; }
	.timingview > .clockwrap { grid-column: 1; grid-row: 4; }
	.timingview > .clockbox { grid-column: 1; grid-row: 5; flex: none; }
	.timingview > .ftwo { display: contents; }
	.timingview .ftwo > section.fleft { grid-area: auto; grid-column: 2; grid-row: 1 / span 5; align-self: start; }
	.timingview .ftwo > section.flist { grid-area: auto; grid-column: 1; grid-row: 6; }
	.timingview .ftwo > section.fright { grid-area: auto; grid-column: 2; grid-row: 6; }
	.timingview > .unregbox, .timingview > p.hint { grid-column: 1 / -1; grid-row: auto; }
	.timingview .ftwo > section.fleft h2.sec { margin-bottom: 4px; }
}
@media (max-width: 1000px) {
	body.fullwidth .panel.timingview { display: flex; }
	.timingview .ftwo { display: contents; }
	.timingview > .ftwo, .timingview .ftwo > section { flex: 0 0 100%; }
	.timingview > h1 { order: 0; } .timingview > .backrow, .timingview > .sub, .timingview > .clockwrap { order: 0; }
	.timingview > .clockbox { order: 0; } .timingview .fleft { order: 1; } .timingview .flist { order: 2; } .timingview .fright { order: 3; }
	.timingview > .unregbox { order: 4; } .timingview > p.hint { order: 5; }
}
@media (min-width: 1001px) {
	.timingview .ftwo > section.fleft h2.sec { display: none; }
	.timingview .fleft .capmsg { min-height: 1.7em; padding: 4px 10px; margin: 6px 0 4px; font-size: .95rem; }
	.timingview .fleft .capstats { margin: 0; font-size: .95rem; }
	.timingview > h1 { font-size: 1.4rem; }
}

.edic { display: inline-flex; gap: 3px; margin-left: 5px; vertical-align: middle; }
.ico { width: 22px; height: 22px; padding: 0; line-height: 1; font-size: .85rem; border: 1px solid var(--line, #ccd); background: #fff; color: var(--navy, #1b2a4a); border-radius: 3px; cursor: pointer; }
.icosave { color: #1f6b3a; } .icosave:hover { background: #e7f1ec; } .icoref:hover { background: #eef1f8; }

.undochip { margin-left: 6px; padding: 1px 7px; font-size: .78rem; border: 1px solid #c9a24a; background: #fff6dc; color: #6b4b00; border-radius: 11px; cursor: pointer; vertical-align: middle; }
.undochip:hover { background: #ffe9a8; }

/* duplicates in the captured list: lines with the same race number / same finish time share one colour */
table.caplist tr.dup > td, table.caplist tr.dup:hover > td { background: var(--dupc) !important; }
table.caplist tr.dup > td:first-child { box-shadow: inset 5px 0 0 #8a5a00; }

table.caplist .ced.dupno { color: #c0161e !important; font-weight: 700; }

/* results table (public Results page + admin report) */
.panel.wide:has(.restbl) { max-width: 1260px; }   /* the results table has the Email and Photo columns too: no sideways scrolling on a normal screen */
.restbl th, .restbl td { padding: 8px 10px; white-space: nowrap; }
.restbl .resflt td { padding: 4px 6px; background: #f6f6fa; }
.restbl .resflt input { width: 100%; min-width: 70px; padding: 5px 7px; font-size: .85rem; border: 1px solid #c9ccd8; border-radius: 3px; }
.restbl thead tr:first-child th:hover { background: #e9ecf6; }
.resbar { margin: 8px 0 4px; }

.racecards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.racecards .rcard .rdate { display: block; margin-top: 2px; font-size: .9rem; font-weight: 500; color: #5a6078; }
.dtabs { flex-wrap: wrap; margin-bottom: 14px; }
.dtabs a { padding: 10px 20px; text-transform: none; letter-spacing: .04em; font-size: .95rem; }
.dtabs .dcnt { margin-left: 6px; padding: 1px 8px; font-size: .75rem; background: #eef0f8; color: #3a4166; border-radius: 10px; }
.dtabs a.on .dcnt { background: #f3e7c6; color: #6b4b00; }

/* results / entries tables on small devices: one card per athlete and a single search box */
.ressearch { display: none; }
@media (max-width: 700px) {
	.ressearch { display: block; width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 12px 14px; font-size: 1rem; border: 1px solid #c9ccd8; border-radius: 4px; }
	.panel.wide:has(.restbl) { padding: 22px 16px; }
	.table-wrap:has(.restbl) { overflow: visible; }
	.restbl, .restbl tbody { display: block; width: 100%; }
	.restbl thead { display: none; }
	.restbl tr { display: block; margin: 0 0 10px; padding: 8px 12px; background: #fff; border: 1px solid #e0e2ee; border-left: 4px solid var(--gold); border-radius: 4px; }
	.restbl tr[hidden] { display: none; }
	.restbl td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; border: 0; white-space: normal; text-align: right; }
	.restbl td::before { content: attr(data-label); flex: none; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #6a7090; text-align: left; }
	.dtabs a { padding: 9px 14px; }
}

@media (max-width: 700px) {
	.deskonly { display: none; }
	.restbl td { padding: 2px 0; }
	.restbl td[data-label="Distance"], .restbl td[data-label="Gender"] { display: none; }
	.restbl td[data-label="Time"], .restbl td[data-label="Pos"] { font-size: 1.05rem; }
}

.selbar { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.selbar label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #5a6078; }
.selbar select { min-width: 220px; padding: 9px 12px; font-size: .95rem; border: 1px solid #c9ccd8; border-radius: 4px; background: #fff; }
@media (max-width: 700px) { .selbar { flex-direction: column; align-items: stretch; gap: 4px; } .selbar select { min-width: 0; width: 100%; padding: 12px 14px; font-size: 1rem; } }

.emsent { display: inline-block; margin-right: 6px; padding: 2px 8px; font-size: .75rem; background: #e7f1ec; color: #1f5a3a; border-radius: 10px; }
.emcell { white-space: nowrap; }

.page-top .topnav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 520px) { .page-top .topnav { gap: 14px; } .page-top a.back { font-size: .7rem; letter-spacing: .1em; } }

/* home page contact form */
.contact-section { padding: 70px 0; background: #fff; }
.contact-section h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--navy); margin: 0 0 8px; }
.contact-section .lead2 { color: #5a6078; margin: 0 0 22px; max-width: 640px; }
.cform { max-width: 760px; }
.cform label { display: block; margin: 14px 0 5px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #5a6078; }
.cform label.check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--navy); margin: 14px 0 18px; }
.cform input[type=text], .cform textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; border: 1px solid #c9ccd8; border-radius: 4px; background: #fff; }
.cform textarea { resize: vertical; }
.cform .cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.cform .ccount { text-align: right; font-size: .78rem; color: #8a8fa6; margin-top: 3px; }
.cform button:disabled { opacity: .5; cursor: not-allowed; }
.cmsg { max-width: 760px; margin: 0 0 18px; padding: 12px 16px; border-radius: 4px; font-size: .98rem; }
.cmsg.ok { background: #e7f1ec; color: #1f5a3a; } .cmsg.bad { background: #fbe9e7; color: #8e1b21; }
@media (max-width: 700px) { .cform .cgrid { grid-template-columns: 1fr; } .contact-section { padding: 44px 0; } }

/* home page contact: photo on the left, white form panel on the right */
.contact-section { padding: 0; background: #fff; }
.contact-section .cs-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 560px; }
.cs-photo { position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.cs-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,18,51,.88) 0%, rgba(13,18,51,.15) 65%); }
.cs-photo-in { position: relative; z-index: 1; padding: 36px 34px; }
.cs-points { list-style: none; margin: 0 0 20px; padding: 0; color: #fff; }
.cs-points li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: .98rem; }
.cs-points li span { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #c9a96a; color: var(--navy-deep); font-size: .75rem; font-weight: 700; }
.cs-wa { display: inline-block; padding: 11px 22px; border-radius: 28px; background: #25d366; color: #0b3d1f; font-weight: 600; text-decoration: none; }
.cs-wa:hover { background: #3be07b; }
.cs-panel { padding: 72px 56px; align-self: center; max-width: 760px; }
.cs-eyebrow { display: block; margin-bottom: 12px; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: #b8934d; }
.contact-section .cs-panel h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; color: var(--navy); margin: 0; }
.contact-section .cs-panel h2 em { font-style: italic; color: #b8934d; }
.cs-rule { width: 48px; height: 1px; background: #c9a96a; margin: 22px 0; }
.cs-panel .cs-sub { margin: 0 0 30px; color: #888; font-size: .92rem; line-height: 1.8; }
.cs-panel .cform { max-width: none; }
.cs-panel .cform .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.cs-panel .cform .cgrid.one { grid-template-columns: 1fr; }
.cs-panel .cform input[type=text], .cs-panel .cform textarea { width: 100%; box-sizing: border-box; margin: 0 0 22px; padding: 12px 0; border: 0; border-bottom: 1px solid #d5cfc6; border-radius: 0; background: transparent; font: inherit; font-size: .92rem; color: var(--navy); transition: border-color .25s; }
.cs-panel .cform input[type=text]:focus, .cs-panel .cform textarea:focus { outline: none; border-bottom-color: #c9a96a; box-shadow: none; }
.cs-panel .cform ::placeholder { color: #aaa; }
.cs-panel .cform textarea { resize: none; margin-bottom: 18px; }
.cs-panel .cform .ccount { text-align: left; font-size: .75rem; color: #bbb; margin: 0 0 2px; }
.cs-panel .cform label.check { display: flex; gap: 12px; align-items: center; margin: 0 0 24px; text-transform: none; letter-spacing: 0; font-size: .85rem; color: #888; cursor: pointer; }
.cs-panel .cform label.check input { accent-color: #c9a96a; width: 15px; height: 15px; flex: none; cursor: pointer; }
.cs-send { width: 100%; padding: 17px; background: var(--navy); border: 1px solid var(--navy); color: #fff; font: inherit; font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: all .3s; }
.cs-send:hover:not(:disabled) { background: #c9a96a; border-color: #c9a96a; color: var(--navy-deep); }
.cs-send:disabled { opacity: .45; cursor: default; }
.cs-panel .cmsg { margin: 0 0 22px; }
@media (max-width: 860px) { .contact-section .cs-split { grid-template-columns: 1fr; min-height: 0; } .cs-photo { min-height: 260px; } .cs-panel { padding: 44px 24px; } .cs-panel .cform .cgrid { grid-template-columns: 1fr; } }

/* Facebook / Instagram in the home page menu: round icons instead of words */
.nav a.nav-ico, .nav button.nav-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; color: #fff; letter-spacing: 0; transition: background .2s, color .2s, border-color .2s; }
.nav a.nav-ico:hover, .nav button.nav-ico:hover { background: #c9a96a; border-color: #c9a96a; color: var(--navy-deep); }
.nav a.nav-ico svg, .nav button.nav-ico svg { display: block; }
@media (max-width: 1100px) { .nav a.nav-ico, .nav button.nav-ico { width: 40px; height: 40px; margin: 12px 14px 4px 0; } }
@media (max-width: 1100px) { .nav a.nav-ico, .nav button.nav-ico { width: 40px; align-self: flex-start; margin: 14px 0 2px; } }

/* the shared menu on pages without a hero photo: a solid bar, same links as the home page */
.topbar.solidbar { position: relative; inset: auto; background: var(--navy-deep); }
.topbar.solidbar .wrap { padding: 14px 0; }
.nav a.on { color: #fff; border-bottom-color: var(--gold); }
@media (max-width: 1100px) { .topbar.solidbar .nav { top: 100%; } }
.topbar .brand { flex: none; margin-right: 18px; }
.topbar .brand img { max-width: none; width: auto; }
.topbar.solidbar .brand img { height: 44px; }
@media (min-width: 1101px) { .nav { gap: 20px; } .nav a, .nav button.nav-fb { letter-spacing: .12em; } }

.resdlg { width: min(92vw, 440px); padding: 26px 26px 20px; border: 0; border-top: 5px solid #c9a96a; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.resdlg::backdrop { background: rgba(13,18,51,.6); }
.resdlg h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: var(--navy); }
.resdlg input[type=text] { width: 100%; box-sizing: border-box; margin: 6px 0 12px; padding: 12px 14px; font: inherit; border: 1.5px solid #d6d9e6; border-radius: 8px; }
.resdlg .cmsg { margin: 0 0 12px; }
.resdlg-btns { display: flex; gap: 10px; align-items: center; }

/* speak the race number */
.micbtn { background: #3a3f6b; color: #fff; }
.micbtn.on { background: #b3141c; animation: micpulse 1.4s infinite; }
@keyframes micpulse { 0% { box-shadow: 0 0 0 0 rgba(179,20,28,.5); } 70% { box-shadow: 0 0 0 10px rgba(179,20,28,0); } 100% { box-shadow: 0 0 0 0 rgba(179,20,28,0); } }
.micauto { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; margin-left: 6px; }
.micheard { flex: 0 0 100%; margin-top: 6px; padding: 6px 10px; font-size: .95rem; border-radius: 4px; background: #eef0f8; color: #3a4166; }
.micheard.ok { background: #e7f1ec; color: #1f5a3a; } .micheard.bad { background: #fbe9e7; color: #8e1b21; }

/* Speak the number inside the screen keyboard (sits with the other Add buttons) */
.padmic { display: block; width: 100%; margin: 0 0 8px; padding: 10px 8px; border: 0; border-radius: 4px; background: #3a3f6b; color: #fff; font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.padmic.on { background: #b3141c; animation: micpulse 1.4s infinite; }
@media (max-height: 700px) { .padmic { padding: 7px 8px; font-size: .92rem; margin-bottom: 6px; } }
/* captured list: tick box, X and the finish time line up with the top of the row (next to the race number), also in tall rows */
table.caplist td { vertical-align: top; }
table.caplist td:last-child { padding-top: 10px; }
table.caplist td:first-child { padding-top: 12px; }

/* new lines are added at the top of the lists: the browser must not "anchor" and slide the view down */
html:has(.timingview), .timingview, .timingview .caplistwrap, .timingview table { overflow-anchor: none; }

/* the yellow box keeps the same height whether or not a message is showing, so the tables under it do not move */
.timingview .fleft .capmsg { min-height: 2.2em; box-sizing: border-box; }
.micheard { min-height: 2.1em; box-sizing: border-box; margin-top: 6px; }

/* Capture finish, Speak number and Quick add share the top row with the Add No box */
.capbox .btn { padding: 12px 16px; letter-spacing: .08em; font-size: .78rem; white-space: nowrap; }
.timingview .fleft .capbox #capNo { width: 118px; font-size: 1.5rem; padding: 8px; }
.timingview .fleft .capbox { gap: 8px 10px; }
.capbox .micauto { margin-left: 0; }

@media (max-width: 1250px) { .timingview .fleft .capbox .btn { padding: 11px 11px; letter-spacing: .04em; font-size: .74rem; } .timingview .fleft .capbox #capNo { width: 100px; font-size: 1.35rem; } }
@media (max-width: 1250px) and (min-width: 1001px) { .timingview .fleft .capbox label[for="capNo"] { display: none; } }

/* Time a Race, one race: two independent columns, so the height of the yellow box can never push the left list down */
.timingview .tvl, .timingview .tvr { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-self: start; }
.timingview .tvl > * { margin-top: 0; margin-bottom: 0; }
.timingview section.fleft, .timingview section.flist, .timingview section.fright { padding: 0; margin: 0; min-width: 0; }
.timingview h2.sec { margin-top: 0; }
.timingview .tvl > h1 { font-size: 1.4rem; }
@media (min-width: 1001px) { .timingview .tvr > section.fleft h2.sec { display: none; } body.fullwidth .panel.timingview { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1000px) {
	.timingview .tvl, .timingview .tvr { display: contents; }
	.timingview section.fleft, .timingview section.flist, .timingview section.fright { flex: 0 0 100%; }
	.timingview .tvl > .clockbox { flex: 0 0 100%; }
}
.timingview .tvl > h1 { font-size: 2.1rem; font-weight: 700; line-height: 1.1; }

/* offline sheet import */
.oi-form { max-width: 560px; } .oi-form label { display: block; margin: 12px 0 4px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #5a6078; } .oi-form select, .oi-form input[type=file] { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #c9ccd8; border-radius: 4px; background: #fff; } .oi-form button { margin-top: 16px; }
.oi-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; } .oi-sum > div { padding: 12px 14px; background: #f4f5fa; border-left: 4px solid #c9ccd8; } .oi-sum b { display: block; font-size: 1.7rem; font-family: var(--serif); } .oi-sum span { font-size: .8rem; color: #5a6078; }
.oi-sum .g { background: #e7f1ec; border-left-color: #1f6b3a; } .oi-sum .r { background: #fbe9e7; border-left-color: #8e1b21; } .oi-sum .y { background: #fff6dc; border-left-color: #c9a96a; }
.oi-prob { margin: 4px 0 14px; padding-left: 20px; font-size: .92rem; } .oi-go { margin-top: 16px; } .oi-go .check { display: flex; gap: 8px; margin-bottom: 12px; }
.oi-day .notice { margin: 10px 0; } .oi-day .check { display: flex; gap: 8px; margin: 8px 0; align-items: center; }

/* admin Entries "Check" column: short labels (the full sentence is in the hover tip) */
.adm-list .flag { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; white-space: nowrap; cursor: help; }

.joinbanner .joinlist { margin: 6px 0 8px; padding-left: 20px; } .joinbanner span { display: block; }

.more-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }

.join-dist { margin: 0 0 18px; padding: 14px 16px; background: #f4f6fb; border-left: 4px solid #3f6fa6; } .join-dist label { display: block; margin-bottom: 6px; font-weight: 600; } .join-dist select { width: 100%; max-width: 460px; padding: 10px; } .join-dist .hint { display: block; margin-top: 6px; }

/* race T-shirt on the entry form */
.shirt-box { margin: 18px 0; padding: 16px 18px; background: #faf6ec; border-left: 4px solid #c9a96a; }
.shirt-h { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--navy); }
.shirt-flex { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.shirt-pic { flex: 0 0 auto; } .shirt-pic img { display: block; width: 100%; max-width: 230px; height: auto; border-radius: 6px; border: 1px solid #e0d6bd; box-shadow: 0 4px 14px rgba(20,26,68,.12); }
.shirt-opts { flex: 1 1 260px; min-width: 0; } .shirt-opts select { width: 100%; max-width: 320px; }

.shirt-slider { flex: 0 0 auto; width: 240px; max-width: 100%; }
.ss-view { position: relative; aspect-ratio: 4 / 5; background: #fff; border: 1px solid #e0d6bd; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 14px rgba(20,26,68,.12); }
.ss-slide { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; } .ss-slide.on { display: flex; } .ss-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ss-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.ss-prev, .ss-next { width: 34px; height: 34px; border: 1px solid #c9a96a; background: #fff; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--navy); }
.ss-prev:hover, .ss-next:hover { background: #c9a96a; color: #fff; }
.ss-dots { display: flex; gap: 7px; } .ss-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #d6ccb0; cursor: pointer; } .ss-dot.on { background: var(--navy); }

.size-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; } .size-checks .check { margin: 0; }
.szdel { border: 0; background: none; color: #c0161e; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 4px; vertical-align: middle; } .szdel:hover { background: #fbe3e4; border-radius: 4px; }
.shirt-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 10px; } .shirt-thumbs figure { margin: 0; text-align: center; } .shirt-thumbs img { display: block; width: 110px; height: 130px; object-fit: contain; background: #fff; border: 1px solid #d6d9e6; border-radius: 4px; }

.shirt-none { margin: 18px 0; padding: 12px 16px; background: #f4f4f8; border-left: 4px solid #b9bccd; color: #5a6078; font-size: .98rem; }

/* checkout page (cart2.php): the disclaimer box and the pay link */
a.btn-pay { text-decoration: none; }
.disclaimer { background: #f6f6f9; border-left: 3px solid var(--navy); padding: 12px 16px; margin: 14px 0 16px; font-size: .86rem; line-height: 1.5; }
.disclaimer p { margin: 0 0 8px; }
.disclaimer p:last-child { margin-bottom: 0; }
.pf-inv { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #667); margin: 10px 0 4px; }
.pf-inv-box { width: 100%; max-width: 520px; padding: 9px 12px; margin-bottom: 14px; background: #f1f1f5; border: 1px solid #d5d5de; border-radius: 3px; font: inherit; font-size: .84rem; color: #222; text-align: center; }

/* finish camera (Time a Race) */
.cambox { margin: 10px 0 4px; }
.camvid { display: block; width: 180px; max-width: 100%; border-radius: 4px; background: #000; }
.camvid[hidden] { display: none; }
/* the live picture sits at the top right of the left column, next to the heading */
.timingview .tvl { position: relative; }
.timingview .tvl > .camcorner { position: absolute; top: 0; right: 0; width: 132px; height: 75px; object-fit: cover; z-index: 2; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
@media (max-width: 1000px) { .timingview .tvl > .camcorner { position: static; width: 150px; margin-left: auto; } }
.cambox select { margin-top: 6px; max-width: 100%; }
.phbtn { border: 0; background: transparent; cursor: pointer; font-size: 1rem; padding: 0 2px; line-height: 1; }
.phdlg { max-width: 720px; width: 94vw; padding: 12px; }
.phdlg img { display: block; width: 100%; height: auto; border-radius: 4px; }
.phdlg .delx { position: absolute; top: 6px; right: 8px; z-index: 2; }

.phdlg .phcap { margin: 0 34px 10px 0; font-size: 1.05rem; font-weight: 600; color: #141a44; line-height: 1.3; }

/* Results report (organiser): a small envelope button left of "Overall pos" */
.emcell { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.emic { width: 30px; height: 30px; padding: 0; border: 1px solid #c9ccd8; background: #fff; color: #141a44; border-radius: 50%; font-size: 1rem; line-height: 1; cursor: pointer; }
.emic:hover { background: #141a44; color: #fff; border-color: #141a44; }
.emic:disabled { cursor: wait; }
.emic.busy { opacity: .45; animation: emblink .8s ease-in-out infinite alternate; }
@keyframes emblink { to { opacity: 1; } }
.emcell .emsent { font-size: .68rem; color: #1f6b3a; }
.selbar select + label { margin-left: 16px; }
.selbar select[id$="Gen"] { min-width: 150px; }
@media (max-width: 700px) { .selbar select + label { margin-left: 0; } .selbar select[id$="Gen"] { min-width: 0; } }

/* Results: two reports (Overall results / By category) and the gender colours */
.viewbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 12px; }
.vbtn { padding: 10px 18px; font: inherit; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; background: #fff; color: #141a44; border: 1px solid #141a44; border-radius: 3px; cursor: pointer; }
.vbtn:hover { background: #eef0f8; }
.vbtn.on { background: #141a44; color: #fff; }
.gleg { margin-left: 8px; font-size: .8rem; color: #5a6078; display: inline-flex; align-items: center; gap: 6px; }
.gdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.gdot.gm { background: #2a6fbd; } .gdot.gf { background: #c0357d; }
.restbl tr[data-gen="Male"] td { background: #eef4fc; }
.restbl tr[data-gen="Female"] td { background: #fcedf5; }
.restbl tr[data-gen="Male"] td:first-child { box-shadow: inset 4px 0 0 #2a6fbd; }
.restbl tr[data-gen="Female"] td:first-child { box-shadow: inset 4px 0 0 #c0357d; }
.restbl tr[data-gen="Male"] td[data-label="Gender"] { color: #1d4f8f; font-weight: 600; }
.restbl tr[data-gen="Female"] td[data-label="Gender"] { color: #9b2064; font-weight: 600; }
.restbl tr.grouprow td { background: #141a44 !important; color: #fff; font-size: 1rem; padding: 10px 12px; box-shadow: none !important; }
.restbl tr.grouprow .hint, .restbl tr.grouprow .gdist { color: #cfd3ea; font-size: .8rem; margin-left: 8px; }
.restbl.catview tbody tr.grouprow:not(:first-child) td { border-top: 14px solid #fff; }
@media (max-width: 700px) { .restbl tr.grouprow { padding: 0; border-left: 0; background: #141a44; } .restbl tr.grouprow td { display: block; } .gleg { margin-left: 0; width: 100%; } }

/* Results report: the "Sent" badge and the "Email all shown results" bar */
.sentbadge, .failbadge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; white-space: nowrap; }
.sentbadge { background: #dff3e6; color: #1f6b3a; border: 1px solid #b6dec2; }
.failbadge { background: #fbe0e0; color: #9b1c1c; border: 1px solid #efb4b4; }
.emcell .sentbadge, .emcell .failbadge { margin-left: 2px; }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 8px 0 4px; padding: 10px 12px; background: #f4f5fa; border-left: 4px solid #141a44; }
.bulkbar .check { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.bulkinfo { font-size: .84rem; color: #4a5070; flex: 1 1 260px; }
.bulkbar .btn:disabled { opacity: .55; cursor: not-allowed; }
.restbl tr.emsending td { outline: 2px solid #c9a96a; outline-offset: -2px; }

/* results and entries tables: headings and cells centred (the phone card layout below 700px keeps its own look) */
@media (min-width: 701px) {
	.restbl th, .restbl td, .restbl th:last-child { text-align: center; }
	.restbl tr.grouprow td { text-align: left; }
	.restbl .emcell { justify-content: center; }
	.restbl .resflt input { text-align: center; }
}

/* T-shirt report */
.shirtsum { max-width: 560px; }
.shirtsum th, .shirtsum td { text-align: center; }
.shirtsum th:first-child, .shirtsum td:first-child { text-align: left; }
.shirtsum tfoot td { background: #f1f2f7; border-top: 2px solid #141a44; }
.bluebadge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; white-space: nowrap; background: #e4eefb; color: #1d4f8f; border: 1px solid #bcd2ee; }

/* tabs made of links (the two Duplicate numbers reports) */
.tabsbar .vbtn { text-decoration: none; display: inline-block; }
.tabcnt { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #e6e8f2; color: #141a44; font-size: .72rem; font-weight: 700; text-align: center; }
.vbtn.on .tabcnt { background: #fff; color: #141a44; }
.tabcnt.bad { background: #fbe0e0; color: #9b1c1c; }

/* Emails report: the address is a link */
.emlink { color: #1155cc; text-decoration: underline; word-break: break-all; }
.emlink:hover { color: #0b3a8f; }
.emmail { text-decoration: none; color: #5a6078; margin-left: 4px; font-size: 1rem; }
.emmail:hover { color: #141a44; }
.restbl thead tr:first-child th { white-space: normal; }   /* a long heading such as "Overall pos in distance" may wrap */

/* Race numbers report: the race number cell can be typed in */
#rnoTbl .ced, #nonoTbl .ced { min-width: 4.2em; text-align: center; font-weight: 700; background: #fafaff; border-bottom: 1px dashed #8d93ad; border-radius: 2px; }
#rnoTbl .ced:hover, #nonoTbl .ced:hover { background: #fff6e0; border-bottom-color: #c9a96a; }
#rnoTbl .ced:empty::before, #nonoTbl .ced:empty::before { content: 'type a number'; font-weight: 400; font-size: .8rem; color: #8d93ad; }
.editbar select { padding: 10px; border: 1px solid #d5d5e0; font: inherit; background: #fff; }

/* Edit entries: compact table + pop-up */
.crudtbl td.c, .crudtbl th { text-align: center; } .crudtbl tbody tr { cursor: pointer; } .crudtbl tbody tr:hover td { background: #fff6e0; }
.crudtbl tr.inactive td { opacity: .55; } .crudtbl tr.cancelled td { opacity: .55; position: relative; }
/* a cancelled entry: a line through the whole row (also through the lists and the typed cells, which text-decoration does not reach); the status and the Edit button are left clear */
.crudtbl tr.cancelled td:not(.stc):not(:last-child)::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 2px solid #6b7280; pointer-events: none; }
.crudtbl tr.cancelled td.stc, .crudtbl tr.cancelled td:last-child { opacity: 1; }
.hb.sm { padding: 3px 12px; font-size: .85rem; }
.edlg { border: 0; border-radius: 10px; padding: 22px 26px; width: min(680px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.edlg::backdrop { background: rgba(20,24,40,.55); }
.edlg h2 { margin: 0 0 14px; font-size: 1.25rem; }
.edgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.edgrid label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: #444; }
.edgrid input, .edgrid select { padding: 9px; border: 1px solid #c9ccd9; border-radius: 4px; font: inherit; font-weight: 400; }
.edbtns { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; } .edbtns .dangerbtn { margin-left: auto; color: #c0161e; border-color: #c0161e; }
@media (max-width: 560px) { .edgrid { grid-template-columns: 1fr; } }
.savebtns { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.implist { margin: 8px 0 14px 20px; line-height: 1.7; }

/* Send new Emails */
.typesel { font-size: 1.1rem; font-weight: 700; padding: 10px 14px; min-width: 320px; max-width: 100%; }
.mlab { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; margin: 10px 0; }
.mlab input[type=text], .mlab input[type=file] { padding: 10px; border: 1px solid #c9ccd9; font: inherit; font-weight: 400; }
.mtool { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; background: #f1f2f7; border: 1px solid #c9ccd9; border-bottom: 0; }
.mtool button { padding: 5px 10px; border: 1px solid #c9ccd9; background: #fff; cursor: pointer; font: inherit; font-size: .85rem; border-radius: 3px; }
.mtool button:hover { background: #fff6e0; } .mtool .mph { margin-left: auto; font-size: .8rem; color: #555; }
.mbody { min-height: 220px; max-height: 480px; overflow: auto; padding: 14px; border: 1px solid #c9ccd9; background: #fff; line-height: 1.55; }
.mbody:focus { outline: 2px solid #c9a96a; }
.mprog { margin: 12px 0; } .mbar { height: 14px; background: #e6e7ee; border-radius: 7px; overflow: hidden; } #mfill { height: 100%; width: 0; background: #2e8b57; transition: width .4s; }
.mlog { max-height: 260px; overflow: auto; font-size: .88rem; border: 1px solid #e0e1ea; padding: 8px 12px; background: #fafafd; } .mlog .ok { color: #1d6b3f; } .mlog .bad { color: #c0161e; font-weight: 700; }

/* "No route map" notice in the Map window */
.routemap { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border: 1px solid #d7dbe6; }
.noroute { background: #0b9fe3; color: #000; font-family: 'Permanent Marker', Impact, 'Arial Black', sans-serif; text-transform: uppercase; text-align: center; padding: 28px 18px; max-width: 360px; margin: 0 auto; line-height: 1.12; }
.noroute { overflow-wrap: anywhere; }
.noroute p { margin: 0 0 1.1em; font-size: clamp(1.15rem, 5vw, 1.8rem); } .noroute p:last-child { margin-bottom: 0; }
.dl-row { text-align: center; margin: 12px 0 0; }

/* Race Setup switches: each one in a row of its own width (the old column classes did not exist, so labels wrapped letter by letter) */
.form .grid.sw > div { grid-column: span 2; }
.form .grid.sw > div:only-child { grid-column: span 12; }
.form .grid.sw label.check { white-space: nowrap; }
@media (max-width: 700px) { .form .grid.sw > div { grid-column: span 6; } }
.addsize { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; } .addsize input { width: 220px; max-width: 100%; padding: 9px 12px; border: 1px solid #cfd3e2; font: inherit; }

/* login: show / hide the password */
.pwwrap { position: relative; }
.pwwrap input { padding-right: 70px !important; }
.pwshow { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--navy); font: inherit; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 8px 10px; }
.pwshow:hover { color: var(--gold); }
.bulkbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 12px 0; } #bFill { height: 100%; background: #2e8b57; transition: width .3s; }
.logoprev { background: #fff; border: 1px solid #d7dbe6; display: inline-block; padding: 10px 16px; margin: 6px 0 10px; } .logoprev img { height: 60px; width: auto; display: block; }

/* the website logo is wide (text beside the symbol): a little taller so the name can be read */
.brand img { height: 64px; padding: 4px 10px; }
.page-top .brand img { height: 56px; }
.topbar.solidbar .brand img { height: 54px; }
.login-card img { height: 70px; }
.pts th input { width: 100%; padding: 6px 8px; border: 1px solid #cfd3e2; font: inherit; } .pts .ced { min-width: 4em; display: inline-block; } .pts tr.flash td { background: #fff3c4; } .pts thead { position: sticky; top: 0; background: #fff; z-index: 2; }
.dist-table.centered th, .dist-table.centered td, .dist-table.centered th:last-child, .dist-table.centered td:last-child { text-align: center !important; }

/* Race numbers report: drop-downs and editable cells in the list */
#rnoTbl select.esel, #nonoTbl select.esel { padding: 4px 6px; border: 1px solid #cfd3e2; background: #fff; font: inherit; font-size: .9rem; max-width: 13em; }
#rnoTbl .ced.lic, #nonoTbl .ced.lic { min-width: 6em; display: inline-block; text-align: center; border-bottom: 1px dashed #8d93ad; background: #fafaff; }
#rnoTbl .ced.lic:empty::before, #nonoTbl .ced.lic:empty::before { content: 'add'; color: #8d93ad; font-size: .8rem; }
#rnoTbl .saving, #nonoTbl .saving { opacity: .5; }

/* Incomplete timing lists */
#incTbl .ced.ex { min-width: 7em; display: inline-block; text-align: center; border-bottom: 1px dashed #8d93ad; background: #fafaff; }
#incTbl .ced.ex:empty::before { content: 'type here'; color: #8d93ad; font-size: .8rem; }
#incTbl .saving { opacity: .5; }

/* Race Setup list: a long race name wraps onto a second line instead of stretching the table past the page */
.adm-list { table-layout: auto; width: 100%; }
.adm-list td[data-label="Race"] { width: 38%; min-width: 220px; max-width: 440px; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.adm-list th:nth-child(2) { width: 38%; }
@media (max-width: 760px) { .adm-list td[data-label="Race"] { width: auto; max-width: none; } }

/* Race Setup switches: one row that wraps as a whole, and each hint on one line under its switch (7 switches no longer drop one onto a new row) */
.form .grid.sw { display: flex; flex-wrap: wrap; gap: 12px 34px; }
.form .grid.sw > div, .form .grid.sw > div:only-child { grid-column: auto; flex: 0 0 auto; width: auto; }
.form .grid.sw .hint { white-space: nowrap; }
@media (max-width: 700px) { .form .grid.sw > div { flex: 1 1 45%; } .form .grid.sw .hint { white-space: normal; } }
.badge-no { display: inline-block; padding: 2px 10px; border-radius: 10px; background: #ececf3; color: #6a6f87; font-size: .85em; }

.shirt-pick { margin-top: 10px; } .sizeradios { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 10px; } .sizeradios legend { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #5b6075; margin-bottom: 8px; padding: 0; }
.sizeopt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #cfd3e2; border-radius: 6px; background: #fff; cursor: pointer; margin: 0; } .sizeopt:has(input:checked) { border-color: var(--navy); background: #eef0f8; font-weight: 600; }
.feesum tr.who td { padding-top: 16px; border-bottom: 0; } .feesum tr.sub td { border-top: 1px solid #e3e5ee; } .feesum tr.who .hint { font-weight: 400; margin-left: 6px; }
.more-delete { margin: 0; } .more-delete .btn { color: #c0161e; border-color: #c0161e; }

.savebusy { position: fixed; inset: 0; background: rgba(27,42,74,.55); display: flex; align-items: center; justify-content: center; z-index: 9999; } .savebusy[hidden] { display: none; }
.savebox { background: #fff; border-radius: 10px; padding: 26px 30px; width: min(420px, 90vw); box-shadow: 0 10px 40px rgba(0,0,0,.3); } .savebox p { margin: 0 0 12px; }
.savebar { height: 10px; background: #e3e5ee; border-radius: 5px; overflow: hidden; margin-bottom: 12px; } .savebar span { display: block; height: 100%; width: 40%; background: #e8272a; border-radius: 5px; animation: savemove 1.2s ease-in-out infinite; }
@keyframes savemove { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.rbadges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; } .rflag { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; } .rflag.yes { background: #e2f3e8; color: #1d6b3f; } .rflag.no { background: #eceef4; color: #5b6075; }
.distbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; } .distbar .hb.on { background: var(--navy); color: #fff; border-color: var(--navy); } .distbar .dcount { position: static; display: inline-block; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: #e8272a; color: #fff; font-size: .7rem; font-weight: 700; text-align: center; box-sizing: border-box; box-shadow: none; }
.today-race { color: #c0161e !important; } .today-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #c0161e; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; vertical-align: middle; }
.req { color: #c0161e; font-weight: 700; } .reqnote { margin: 0 0 12px; font-size: .88rem; color: #5b6075; }
.copybar { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dnote { margin-top: 14px; font-size: .88rem; } .dnote ul { margin: 6px 0 0; padding-left: 20px; } .dnote li { margin: 3px 0; }
.savebar2 { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .savebar2 .hint { flex-basis: 100%; margin: 0; }
.topact { margin: 6px 0 18px; padding: 14px; background: #faf7ee; border: 1px solid #e8dfc4; border-radius: 10px; } .topact form { margin: 0 0 10px; } .topact .savebar2 { margin: 0; } .topact .notice { margin: 0 0 12px; }
.topact .notice small, .topact .hint { overflow-wrap: anywhere; }

.xlprev { margin: 4px 0 22px; padding: 14px; border: 1px solid #d8dbe8; border-radius: 10px; background: #fff; max-width: 760px; }
.xlcap { margin: 0 0 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #5b6075; font-weight: 600; }
.xlscroll { overflow-x: auto; }
table.xl { border-collapse: collapse; width: 100%; min-width: 560px; font: 13px Calibri, Arial, sans-serif; background: #fff; }
table.xl td, table.xl th { border: 1px solid #d4d4d4; padding: 4px 8px; height: 26px; }
table.xl .xl-title { font-size: 16px; color: #141a44; border: 0; padding-left: 0; } table.xl .xl-note { font-style: italic; font-size: 11.5px; color: #666; border: 0; }
table.xl .xl-lab { width: 120px; } table.xl .xl-in { background: #ffff66; width: 90px; text-align: center; font-weight: 700; font-size: 16px; }
table.xl .xl-start { background: #dff3e6; text-align: center; font-weight: 700; width: 170px; } table.xl .xl-clock { text-align: center; font-weight: 700; }
table.xl .xl-head th { background: #141a44; color: #fff; text-align: center; height: 32px; }
table.xl .xl-row { width: 60px; text-align: center; font-style: italic; color: #666; } table.xl .xl-time { text-align: center; font-weight: 700; width: 170px; }
.xlwarn { margin: 10px 0 0; padding: 10px 12px; background: #fdecec; border-left: 4px solid #c0161e; color: #8e1b21; font-size: .95rem; border-radius: 4px; }
.picbar { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .picbar .btn[disabled] { opacity: .55; cursor: default; }
.nbadge { display: inline-block; min-width: 34px; padding: 3px 10px; border-radius: 12px; font-size: .85rem; font-weight: 700; line-height: 1.3; text-align: center; box-sizing: border-box; }
.nb-paid { background: #1d8a4c; color: #fff; } .nb-open { background: #e8892b; color: #fff; } .nb-shirt { background: #2f6fd0; color: #fff; }
.nbadge.nb-zero { background: #eceef4; color: #8a8fa3; font-weight: 600; }
.nb-active { background: #6b3fa0; color: #fff; }
a.hb.hb-blue { background: #2f6fd0; border-color: #2f6fd0; color: #fff; } a.hb.hb-blue:hover { background: #1f57ad; border-color: #1f57ad; color: #fff; }
/* Race no in the Race numbers report: a blue pill (still typeable); the empty "type a number" box and the box being typed in stay light */
#rnoTbl .ced.no, #nonoTbl .ced.no { background: #2f6fd0; color: #fff; border: 0; border-radius: 12px; padding: 3px 14px; min-width: 3.4em; }
#rnoTbl .ced.no:hover, #nonoTbl .ced.no:hover { background: #1f57ad; }
#rnoTbl .ced.no:focus, #nonoTbl .ced.no:focus { background: #fff6e0; color: #141a44; box-shadow: 0 0 0 2px #c9a96a; }
#rnoTbl .ced.no:empty, #nonoTbl .ced.no:empty { background: #eef3fb; color: #5b6075; border: 1px dashed #9fb4d8; }
#rnoTbl .ced.no.okcell, #nonoTbl .ced.no.okcell { background: #1d8a4c; color: #fff; } #rnoTbl .ced.no.badcell, #nonoTbl .ced.no.badcell { background: #c0161e; color: #fff; }
.nb-cat { background: #0f8b8d; color: #fff; }
.restbl tr.owing td { background: #fdecea; }   /* a payment is still outstanding on this row (financial report) */
.restbl tr.owing td:first-child { box-shadow: inset 4px 0 0 #c0392b; }
.nb-gpos { background: #141a44; color: #fff; }   /* the finish position among the same gender in the distance: navy */
.nb-split { background: #d9822b; color: #fff; }   /* the position at the split point: orange, apart from the purple overall position and the teal category position */
.dists span.entcount { background: #c0392b; border-color: #c0392b; color: #fff; font-weight: 600; } .dists span.entcount b { background: #fff; color: #c0392b; border-radius: 10px; padding: 0 7px; margin-left: 4px; }
.dists span.closedate { background: #e8892b; border-color: #e8892b; color: #fff; font-weight: 600; } .dists span.closedate.urgent { background: #8e1b21; border-color: #8e1b21; } .dists span.closedate b { background: #fff; color: #7a4a10; border-radius: 10px; padding: 0 8px; margin-left: 4px; } .dists span.closedate.urgent b { color: #8e1b21; }

/* the distance popup on the entry page */
dialog.dlg.dd { width: min(560px, 94vw); max-width: 560px; padding: 0; }
.dd .dlg-body { padding: 22px 24px 26px; } .dd-race { margin: 0 0 14px; color: var(--muted); font-size: .95rem; } .dd-race b { color: var(--navy); font-weight: 600; }
.dd-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dd-tile { background: var(--paper, #faf8f2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: center; } .dd-tile > span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; } .dd-tile b { font-size: .95rem; color: var(--navy); line-height: 1.3; }
.dd-rate { display: inline-block; padding: 2px 12px; border-radius: 12px; background: #2f6fd0; color: #fff; font-size: .82rem; } .dd-rate.dd-easy { background: #1d8a4c; } .dd-rate.dd-comfortable { background: #2f6fd0; } .dd-rate.dd-challenging { background: #e8892b; } .dd-rate.dd-extreme { background: #c0161e; }
.dd-pills { margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } .dd-pills span { border: 1px solid var(--line); border-radius: 40px; padding: 3px 14px; font-size: .82rem; color: var(--ink); background: #fff; }
.dd-fees { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.dd-main { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--navy); color: #fff; } .dd-main span { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; } .dd-main b { font-family: inherit; font-size: 1.8rem; font-weight: 700; font-variant-numeric: lining-nums; }
.dd-fees ul { list-style: none; margin: 0; padding: 0; } .dd-fees li { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .92rem; } .dd-fees li > span { order: 1; } .dd-fees li::before { content: ''; order: 2; flex: 1; min-width: 14px; border-bottom: 2px dotted #b9bdd0; transform: translateY(-3px); } .dd-fees li > b { order: 3; } .dd-fees li small { color: var(--muted); } .dd-fees li b { white-space: nowrap; }
.dd-venue { margin: 0 0 14px; padding: 10px 14px; background: var(--paper, #faf8f2); border-radius: 10px; } .dd-venue b { margin-right: 6px; }
.dd-about { border-left: 3px solid var(--gold, #c9a96a); padding: 2px 0 2px 14px; } .dd-about b { display: block; margin-bottom: 4px; color: var(--navy); } .dd-about p { margin: 0; line-height: 1.55; }
@media (max-width: 520px) { .dd-tiles { grid-template-columns: 1fr 1fr; } .dd-tile:last-child { grid-column: 1 / -1; } .dd-main b { font-size: 1.6rem; } }

/* bigger menu text on the home page */
.nav a:not(.nav-ico), .nav button.nav-fb { font-size: 1.05rem; font-weight: 500; }
@media (min-width: 1101px) { .nav { gap: 22px; } .nav a:not(.nav-ico), .nav button.nav-fb { letter-spacing: .06em; } }
@media (min-width: 1101px) and (max-width: 1260px) { .nav { gap: 14px; } .nav a:not(.nav-ico), .nav button.nav-fb { font-size: .95rem; letter-spacing: .03em; } }

/* optional athlete login */
.acctbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; padding: 12px 16px; border: 1px solid #d6d9e6; border-radius: 6px; background: #f6f7fb; }
.acctbar.in { background: #e7f1ec; border-color: #b9d8c6; color: #1f5a3a; }
.acctbar .hint { margin: 0; }
.savepw { margin: 18px 0 4px; padding: 14px 16px; border: 1px dashed #c9ccd8; border-radius: 6px; }
.savepw .check { margin: 0; }
.acctbox { max-width: 520px; margin-left: auto; margin-right: auto; }
.acctform label { display: block; margin: 14px 0 5px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #5a6078; }
.acctform input[type=email], .acctform input[type=password] { width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; border: 1px solid #c9ccd8; border-radius: 4px; background: #fff; }

/* View / Hide button inside password boxes */
.pwwrap { position: relative; display: block; }
.pwwrap input { padding-right: 78px !important; }
.pwview { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 5px 12px; border: 1px solid #c9ccd8; border-radius: 3px; background: #fff; color: #1b2140; font: inherit; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.pwview:hover { background: #eef0f7; }

/* sticky menu: stays at the top while scrolling (on the home page it is see-through over the photo until you scroll) */
html { scroll-padding-top: 84px; }
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .25s, box-shadow .25s; }
.topbar.solidbar { position: sticky; inset: 0 0 auto 0; }
.topbar.scrolled { background: var(--navy-deep); box-shadow: 0 2px 14px rgba(0,0,0,.28); }
.topbar.scrolled .wrap { padding-top: 12px; padding-bottom: 12px; }
.topbar.scrolled .brand img { height: 44px; }

/* sticky bar on the entry, payment and success pages too (not on the admin pages) */
.page-top:not(:has(.admin-nav)) { position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 12px rgba(0,0,0,.22); }

/* sticky admin menu on the timing pages */
body.stickyhead .page-top { position: sticky; top: 0; z-index: 70; box-shadow: 0 2px 12px rgba(0,0,0,.22); }

/* Race Setup: the "Set up a new race" button, top right of the page header */
.btn-newrace { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; background: var(--red, #b8322a); color: #fff; border-radius: 999px; font-weight: 600; font-size: 1rem; letter-spacing: .02em; text-decoration: none; box-shadow: 0 4px 14px rgba(184,50,42,.28); transition: transform .15s, box-shadow .15s; align-self: center; }
.btn-newrace span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 1.2rem; line-height: 1; }
.btn-newrace:hover, .btn-newrace:focus-visible { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(184,50,42,.36); color: #fff; }
@media (max-width: 600px) { .btn-newrace { width: 100%; justify-content: center; } }

/* admin menu: a thin line between groups (normal race / XC lap race / triathlon / tools) */
.admin-nav .ddm .ddsep { display: block; height: 1px; margin: 6px 14px; background: rgba(255,255,255,.22); }

/* home page: small notice under the race cards */
.races-notice { max-width: 820px; margin: 30px auto 0; text-align: center; font-size: 1.02rem; line-height: 1.55; color: #5c1a1a; font-style: normal; font-weight: 600; background: #fdf3f1; border: 1px solid #e8b9b2; border-left: 5px solid #c0161e; border-radius: 6px; padding: 16px 20px; }
.races-notice::before { content: 'IMPORTANT'; display: block; font-size: .72rem; letter-spacing: .2em; color: #c0161e; font-weight: 700; margin-bottom: 4px; }

/* entry form: warning under the ID number box (a second entry with the same ID) */
.idwarn { margin: 6px 0 0; padding: 9px 12px; border-radius: 6px; background: #fdecea; border: 1px solid #e0a3a0; color: #8e1b21; font-size: .88rem; line-height: 1.45; }
.idwarn span { display: block; font-weight: 600; } .idwarn .idwarn-note { font-weight: 400; margin-top: 4px; color: #6b2a2a; }

/* Time a Race: the "Lookup a result" block, and a smaller search box on the left */
.lookup { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; padding: 8px 12px; border: 1px solid #d8dbe8; border-radius: 6px; background: #fff; min-height: 52px; }
.lookup label { font-weight: 600; color: #141a44; white-space: nowrap; }
.lookup input { width: 120px; padding: 8px 10px; border: 1px solid #c9a96a; font: inherit; font-weight: 700; font-size: 1rem; text-align: center; }
.lkres { flex: 1 1 260px; font-size: .98rem; line-height: 1.45; color: #1f2937; }
.lkres .lkt { font-size: 1.25rem; color: #141a44; } .lkres .lkwait { color: #8a6d00; }
#fltLeft { max-width: 220px; }

.completedhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.completedhead h2 { margin: 0; }
.completedhead .lookup { flex: 1 1 540px; margin: 0 0 6px; gap: 18px; padding: 10px 18px; }
.lookup input { width: 150px; margin-right: 6px; }
.lkres { flex: 1 1 300px; }

.lkwrap { position: relative; display: inline-block; }
.lkwrap input { padding-right: 34px; }
.lkx { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%; background: #e5e7eb; color: #374151; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.lkx:hover, .lkx:focus-visible { background: #c0161e; color: #fff; }

/* Edit Race Entries: every column heading centred, in the main table and in the wide table */
.dist-table.crudtbl th, .dist-table.crudtbl th:last-child, .dist-table.edtbl th, .dist-table.edtbl th:last-child { text-align: center !important; }

/* Edit Race Entries (main table): quick-edit cells and lists */
.crudtbl .ced { min-width: 3.2em; text-align: center; } .crudtbl .ced.no { font-weight: 700; } .crudtbl .ced.pf { min-width: 6em; }
.crudtbl .ced:empty::before { content: '\2013'; color: #aaa; } .crudtbl .ced:focus:empty::before { content: ''; }
.crudtbl .esel { padding: 4px; border: 1px solid #d5d5e0; font: inherit; font-size: .85rem; max-width: 150px; background: #fff; }
.crudtbl .esel[data-f=category_id] { max-width: 130px; } .crudtbl td .rnb { margin-left: 4px; }

/* STANDARD: every table header is centred on every page (cells keep their own alignment). */
table th, .dist-table th, .dist-table th:last-child, .adm-list th, .crudtbl th { text-align: center !important; }
table th.thl, .dist-table th.thl, .crudtbl th.thl { text-align: left !important; }   /* the name and ID headers sit over their left-aligned text */
.crudtbl td:nth-child(2), .crudtbl td:nth-child(3), .crudtbl td:nth-child(4) { white-space: nowrap; }
#entTbl td[data-label="Category"], #entTbl td[data-label="Distance"] { white-space: normal; min-width: 9em; }   /* a long category or distance goes on to a second line */

/* Live Results menu link: a flashing dot, green when a race is held today, red when not */
.livedot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 6px; vertical-align: middle; animation: ldblink 1.2s infinite; }
.livedot.on { background: #1fb43c; box-shadow: 0 0 6px #1fb43c; } .livedot.off { background: #e0242b; box-shadow: 0 0 6px #e0242b; }
@keyframes ldblink { 50% { opacity: .2; } }

/* Slide button (Yes / No), e.g. Display in Race Setup */
.slideline { display: flex; align-items: center; gap: 10px; } .slidetxt { font-weight: 700; color: var(--navy); min-width: 2em; }
label.slide { position: relative; display: inline-block; width: 48px; height: 26px; margin: 0; cursor: pointer; }
label.slide input { opacity: 0; width: 0; height: 0; position: absolute; }
label.slide .knob { position: absolute; inset: 0; background: #b8bcc8; border-radius: 26px; transition: background .2s; }
label.slide .knob::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
label.slide input:checked + .knob { background: #1fb43c; } label.slide input:checked + .knob::before { transform: translateX(22px); }
label.slide input:focus-visible + .knob { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Race list: the race name may wrap (so the table fits the screen) and the buttons column keeps its buttons inside the cell */
.adm-list td[data-label="Race"] { white-space: normal; min-width: 14em; }
.adm-list td .btn-sm { box-sizing: border-box; }

/* Race list: every column is only as wide as its content; the Race column (3rd) takes the rest of the width */
.racelist th:not(:nth-child(3)), .racelist td:not(:nth-child(3)) { width: 1%; white-space: nowrap; }
.racelist td[data-label="Race"] { width: 90%; max-width: none; min-width: 14em; }   /* the old rule capped the Race column at 440px, so the spare width went to Race date */
.racelist th:nth-child(3) { width: 90%; }

/* A closed distance on the home page: crossed out with a red X over it */
.dists span.dclosed { position: relative; color: #8a8f98; background: #f0f0f0; }   /* the label stays readable under the X */
.dists span.dclosed::after { content: '\2715'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: rgba(192, 22, 30, .7); font-weight: 300; font-size: 1.7em; line-height: 1; text-shadow: none; }

/* Race Setup: a Save button at the top of the long form that stays in view while scrolling */
.topsave { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 8px 0; margin: 0 0 8px; background: #fff; border-bottom: 1px solid var(--line); }
.topsave .btn { margin: 0; }

/* Home page: the next race banner under the picture */
.next-race { background: var(--white); border-bottom: 3px solid var(--gold); box-shadow: 0 6px 18px rgba(13,18,51,.12); }
.next-race .wrap { display: flex; align-items: center; gap: 22px; padding: 16px 0; flex-wrap: wrap; }
.next-race .nr-tag { background: var(--navy); color: var(--white); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; padding: 8px 14px; border-radius: 3px; white-space: nowrap; }
.next-race .nr-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-race .nr-main b { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 600; color: var(--navy); line-height: 1.15; }
.next-race .nr-main span { color: var(--muted); font-size: .95rem; }
.next-race .nr-when { font-weight: 500; color: var(--red); font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 640px) { .next-race .wrap { gap: 10px 14px; padding: 14px 0; } .next-race .nr-main b { font-size: 1.35rem; } .next-race .btn { width: 100%; text-align: center; } }

/* Time a Race, Completed table: what Pos and the two badges mean, beside the search box */
.fltrow { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; margin: 0 0 8px; } .fltrow .fltbox { margin: 0; flex: 0 0 auto; }
.badgekey { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .8rem; color: #4b5068; line-height: 1.35; flex: 1 1 360px; }
.badgekey span { display: inline-flex; align-items: center; gap: 6px; } .badgekey i { font-style: normal; margin: 0; min-width: 24px; padding: 1px 8px; border-radius: 10px; font-size: .72rem; font-weight: 700; text-align: center; }
.badgekey .nbadge { padding: 1px 8px; font-size: .72rem; }
.nb-pos { background: #b8975a; color: #fff; }   /* Time a Race: the Pos column, the overall position in the distance: gold */

/* Time a Race: the View button (split times in a pop-up): green = split time(s) captured, red = none */
.hb.vtd { padding: 4px 12px; font-size: .78rem; font-weight: 700; color: #fff; border-color: transparent; white-space: nowrap; } .hb.vtd.ok { background: #1d8a4c; } .hb.vtd.none { background: #c0161e; }
.hb.vtd:hover { filter: brightness(.9); }
dialog.tddlg { width: min(520px, 94vw); border-radius: 12px; overflow: hidden; background: #fff; }
.tddlg .tdhead { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 16px 28px; background: #141a44; color: #fff; border-bottom: 3px solid #b8975a; }
.tddlg .tdhead h2 { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; color: #fff; }
.tddlg .tdx { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; } .tddlg .tdx:hover { background: rgba(255,255,255,.16); }
.tddlg .tdbody { padding: 24px 28px 22px; }
.tddlg .tdwho { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; } .tddlg .tdwho b { font-size: 1.25rem; color: #141a44; } .tddlg .tdwho span { color: #6b7189; font-size: .95rem; }
.tddlg .tdtbl { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e5e7ef; border-radius: 10px; overflow: hidden; margin: 0 0 16px; }
.tddlg .tdtbl th { background: #f4f5fa; color: #6b7189; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px; text-align: center; border: 0; }
.tddlg .tdtbl td { padding: 14px 16px; text-align: center; border-top: 1px solid #e5e7ef; vertical-align: middle; }
.tddlg .tdtbl td.tdpt { text-align: left; font-weight: 600; color: #141a44; }
.tddlg .tdtbl td.tdtime b { font-size: 1.35rem; color: #141a44; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.tddlg .tdtbl .tdnone { color: #9aa0b5; font-style: italic; font-size: .92rem; }
.tddlg .tdtbl tr.tdfin td { background: #faf6ec; border-top: 2px solid #b8975a; } .tddlg .tdtbl tr.tdfin td.tdtime b { color: #8a6a22; }
.tddlg .tdwarn { display: block; margin: 4px auto 0; width: fit-content; padding: 2px 10px; border-radius: 10px; background: #fbe0dc; color: #b3261e; font-size: .72rem; font-weight: 600; }
.tddlg .tdnote { margin: 0 0 18px; color: #6b7189; font-size: .85rem; line-height: 1.5; }
.tddlg .tdfoot { display: flex; justify-content: flex-end; } .tddlg .tdfoot .hb { padding: 9px 26px; }

/* Reports and the live page: ONE split column, split 2 below split 1 in a smaller font */
.split2 { margin-top: 3px; line-height: 1.25; }   /* split 2 has exactly the same font as split 1 */

/* Time a Race: the View Split times button, green when the race has split times */
.hb.splitbtn.has { background: #1d8a4c; color: #fff; border-color: #1d8a4c; } .hb.splitbtn.has:hover { background: #17713d; }

/* Race Timing Reports: the race held today, at the top and highlighted */
.hub tr.todayrow td, .racelist tr.todayrow td, .dist-table tr.todayrow td { background: #fff3d6; font-weight: 600; border-top: 2px solid #e2a62a; border-bottom: 2px solid #e2a62a; } .hub tr.todayrow td:first-child, .racelist tr.todayrow td:first-child, .dist-table tr.todayrow td:first-child { border-left: 5px solid #c0161e; } .hub tr.todayrow:hover td, .racelist tr.todayrow:hover td, .dist-table tr.todayrow:hover td { background: #ffecc0; }
.rcard.todaycard { background: #fff3d6; border-color: #e2a62a; border-left: 5px solid #c0161e; box-shadow: 0 0 0 1px #e2a62a; }

/* the red Delete button of a race (admin home page) */
.hb.delbtn { background: #c0161e; color: #fff; border-color: #c0161e; font-weight: 700; } .hb.delbtn:hover { background: #9b1219; border-color: #9b1219; color: #fff; }

/* menu section title (Entries > Email messages) */
.admin-nav .ddm .ddtitle { display: block; margin: 8px 14px 2px; padding: 10px 4px 6px; border-top: 1px solid rgba(255,255,255,.22); color: var(--gold, #c9a24b); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

/* Admin New Entry: find a previous athlete */
.nefind { position: relative; margin: 0 0 14px; max-width: 560px; }
.nefindlist { position: absolute; z-index: 30; left: 0; right: 0; top: 66px; max-height: 320px; overflow: auto; background: #fff; border: 1px solid #c9ccd8; border-radius: 6px; box-shadow: 0 8px 24px rgba(20,26,68,.18); }
.nefindlist button { display: block; width: 100%; padding: 9px 14px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #eef0f5; cursor: pointer; font: inherit; }
.nefindlist button:hover, .nefindlist button:focus { background: #eef3fb; outline: none; }
.nefindlist button b { display: block; color: #141a44; }
.nefindlist button span { display: block; font-size: .82rem; color: #6b7189; }
.nefindlist .nf-none { padding: 10px 14px; color: #6b7189; font-size: .9rem; }

/* closing date and entries pills: the white date box stays in one piece and the pill wraps neatly on narrow phones */
.dists span.closedate, .dists span.entcount { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; line-height: 1.3; }
.dists span.closedate b, .dists span.entcount b { display: inline-block; white-space: nowrap; margin-left: 0; padding: 1px 10px; }
/* report tab buttons: all the same navy; the selected one has a gold underline */
.tabsbar .vbtn, .tabsbar a.vbtn, .tabsbar a.vbtn:link, .tabsbar a.vbtn:visited, .tabsbar a.vbtn:hover { background: #141a44; color: #fff !important; font-weight: 600; opacity: 1; }
.tabsbar a.vbtn:hover { background: #262e6b; }
.tabsbar .vbtn.on { box-shadow: inset 0 -4px 0 #c9a54a; }
.tabsbar .vbtn .tabcnt:not(.bad) { background: #fff; color: #141a44; }
/* admin menu: larger, bolder, pure white so it is easy to read */
.admin-nav { color: #fff; font-size: 1rem; gap: 14px 26px; }
.admin-nav a, .admin-nav button, .admin-nav details.dd summary { color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: .06em; }
.admin-nav a:hover, .admin-nav button:hover, .admin-nav details.dd[open] summary, .admin-nav details.dd summary:hover { color: #ffd98a; }
.admin-nav .ddm a, .admin-nav .ddm .soon { font-size: 1rem; padding: 12px 20px; }
.admin-nav .ddm .soon { color: rgba(255,255,255,.75); }
.admin-nav .ddm { min-width: 240px; }
/* public menu over the photo: bolder, pure white, with a soft shadow so it reads on any picture */
.nav a:not(.nav-ico), .nav button.nav-fb { color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.nav a:not(.nav-ico):hover { color: #ffd98a; }
/* the small line above the headline: bigger, bolder and brighter so it can be read easily */
.eyebrow { font-size: 1.05rem; font-weight: 700; letter-spacing: .2em; color: #f3dfb6; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.eyebrow::before { height: 2px; width: 56px; background: #f3dfb6; }
.section-head .eyebrow { color: var(--gold); text-shadow: none; }
.section-head .eyebrow::before, .section-head .eyebrow::after { height: 2px; background: var(--gold); }
/* the text under the headline: bold, pure white and a little larger */
.hero p.lead { color: #fff; font-weight: 600; font-size: 1.25rem; text-shadow: 0 1px 5px rgba(0,0,0,.6); }
/* the two buttons under the headline: bold, larger text and a thicker outline */
.hero .cta .btn { font-size: 1rem; font-weight: 700; letter-spacing: .1em; padding: 17px 38px; }
.hero .cta .btn-ghost { border: 2px solid #fff; color: #fff; }
.hero .cta .btn-ghost:hover { color: var(--navy); }
/* the distance pills (10km, 5km ...): bold text, same size as before */
.dists span:not(.closedate):not(.entcount):not(.dclosed) { color: #1f2540; font-weight: 700; }
/* the logo is a white-on-see-through picture: no white box behind it, so it sits straight on the dark menu */
.brand img { background: transparent; padding: 0; border-radius: 0; }
.topbar .brand img { height: 52px; }
.topbar.solidbar .brand img, .topbar.scrolled .brand img { height: 46px; }
/* the white logo needs a dark background wherever the page behind it is light: sign-in card and the preview in Settings */
.login-card img { display: block; height: 64px; width: auto; max-width: 100%; background: var(--navy-deep); padding: 10px 18px; border-radius: 3px; margin: 0 auto 18px; }
.logoprev { background: var(--navy-deep); }
/* home page, before scrolling: a slightly larger logo */
.topbar:not(.solidbar):not(.scrolled) .brand img { height: 60px; }
/* menu words: lighter and more widely spaced, so they do not look like the logo lettering */
.nav a:not(.nav-ico), .nav button.nav-fb { font-weight: 500; letter-spacing: .12em; font-size: .95rem; }
@media (min-width: 1101px) { .nav a:not(.nav-ico), .nav button.nav-fb { letter-spacing: .1em; } }
@media (min-width: 1101px) and (max-width: 1260px) { .nav a:not(.nav-ico), .nav button.nav-fb { font-size: .88rem; letter-spacing: .06em; } }
/* the menu has to hold Live Results, Old Web and Admin as well: tighter spacing and a wider bar on laptops */
@media (min-width: 1101px) {
	.topbar .wrap { width: 96%; max-width: 1500px; }
	.nav { gap: 15px; }
	.nav a:not(.nav-ico), .nav button.nav-fb { font-size: .92rem; letter-spacing: .04em; }
	.nav a.btn-line { padding: 9px 14px; }
}
@media (min-width: 1101px) and (max-width: 1260px) { .nav { gap: 11px; } .nav a:not(.nav-ico), .nav button.nav-fb { font-size: .86rem; letter-spacing: .02em; } .topbar .brand img { height: 48px; } }
@media (min-width: 1101px) and (max-width: 1180px) { .nav { gap: 8px; } .nav a:not(.nav-ico), .nav button.nav-fb { font-size: .8rem; letter-spacing: 0; } .topbar .brand { margin-right: 6px; } .topbar .brand img { height: 42px; } .nav a.btn-line { padding: 8px 10px; } }
/* menu words larger on wider screens (the room is there): easier to read */
@media (min-width: 1300px) { .topbar .wrap { width: 98%; max-width: 1800px; } .nav { gap: 12px; } .nav a:not(.nav-ico), .nav button.nav-fb { font-size: .98rem; font-weight: 600; letter-spacing: .03em; } }
@media (min-width: 1500px) { .nav { gap: 20px; } .nav a:not(.nav-ico), .nav button.nav-fb { font-size: 1.1rem; letter-spacing: .05em; } }
/* logo and menu sit together in the middle, with a small gap between them */
@media (min-width: 1101px) { .topbar .wrap { justify-content: center; gap: 36px; } .topbar .brand { margin-right: 0; } }
/* a wider gap between logo and menu (about 1.5 cm more) on screens that have the room */
@media (min-width: 1101px) { .topbar .wrap { gap: clamp(36px, calc(36px + (100vw - 1320px) * 1.4), 93px); } }
@media (min-width: 1500px) { .nav { gap: 14px; } .nav a:not(.nav-ico), .nav button.nav-fb { font-size: 1.05rem; letter-spacing: .04em; } }
/* admin sign-in: larger, easier to read text in the boxes and labels */
.login-card input[type=text], .login-card input[type=password] { font-size: 1.25rem; padding: 15px 16px; color: #141a44; }
.login-card label { font-size: .9rem; font-weight: 600; color: #3a4060; }
.login-card .btn { font-size: 1rem; font-weight: 700; padding: 16px; }
.login-card .backhome { font-size: .95rem; }
.login-card button[type=button] { font-size: .85rem; font-weight: 600; }
.login-card .btn { font-size: 1.2rem; letter-spacing: .1em; padding: 18px; }
.login-card .backhome { font-size: 1.05rem; }
/* admin sign-in boxes: what you type must be big, black and easy to see, also when the browser fills it in */
.login-card input#username, .login-card input#password, .login-card input[type=text], .login-card input[type=password] { font-size: 16pt !important; font-weight: 600 !important; line-height: 1.3 !important; color: #000 !important; -webkit-text-fill-color: #000; height: 60px; letter-spacing: .02em; }
.login-card input:-webkit-autofill, .login-card input:-webkit-autofill:focus, .login-card input:-webkit-autofill:hover { font-size: 16pt !important; -webkit-text-fill-color: #000 !important; -webkit-box-shadow: 0 0 0 1000px #fff inset !important; box-shadow: 0 0 0 1000px #fff inset !important; }
/* Facebook and Instagram icons in the menu: white, thicker outline, bolder drawing */
.nav a.nav-ico, .nav button.nav-ico { border: 2px solid #fff; color: #fff; }
.nav a.nav-ico svg, .nav button.nav-ico svg { width: 20px; height: 20px; }
.nav a.nav-ico svg[stroke], .nav a[href*="instagram"].nav-ico svg { stroke-width: 2.7; }
.nav button.nav-ico svg { stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
/* the text under the headline: normal weight again (still white and a little larger) */
.hero p.lead { font-weight: 400; }
