@charset "UTF-8";
/* CSS Document */

:root {
    --site-max-width: 1200px;
    --page-gutter: 16px;
    --header-height: 80px;
    --footer-clearance: 76px;
}

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.blockheader {
    display: block;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    margin: 0 auto 18px !important;
    padding: 0 180px;
    text-align: center;
    transform: none !important;
    font-size: clamp(28px, 4.2vw, 40px) !important;
    line-height: 1.15;
    z-index: 10 !important;
}

@media only screen and (min-width: 768px) {
    .blockheader {
        display: block;
    }
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.inputfield {
    display: block;
    width: 85%;
    margin: 10px auto;
    padding: 10px;
    border: 1px solid lightgray;
    border-radius: 5px;
    text-align: center;
    font-family: "Source Sans Pro", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.newriderbutton,
.raceyearsbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid black;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

a {
    color: #b91c1c;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.16em;
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover,
a:focus-visible {
    color: #7f1d1d;
    text-decoration-color: currentColor;
}

a:focus-visible {
    outline: 2px solid rgba(220, 38, 38, 0.22);
    outline-offset: 3px;
    border-radius: 4px;
}

.newriderbutton:hover,
.raceyearsbutton:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.7);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.newriderbutton:focus-visible,
.raceyearsbutton:focus-visible {
    outline: 2px solid rgba(220, 38, 38, 0.18);
    outline-offset: 2px;
}

.button-disabled,
.button-disabled:hover {
    border-color: rgba(148, 163, 184, 0.45) !important;
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.92)) !important;
    color: #64748b !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    cursor: not-allowed;
}

.button-disabled::before,
.button-disabled::after {
    display: none !important;
}

#resultsbutton {
    width: auto;
    max-width: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Sans Pro", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.page-shell {
    padding: calc(var(--header-height) + 18px) 0 var(--footer-clearance);
}

.site-header {
    height: var(--header-height) !important;
}

.site-header-logo,
.site-header-wordmark {
    max-width: 34vw;
    object-fit: contain;
}

#eventDate,
#eventTime,
.loginbox {
    font-family: "Source Sans Pro", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.page-loginbox {
    position: fixed !important;
    top: 40px !important;
    left: 20px !important;
    transform: translateY(-50%) !important;
    z-index: 10000000001 !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.page-loginbox-mobile {
    display: none;
    position: fixed;
    top: calc(var(--header-height) / 2);
    left: 20px;
    transform: translateY(-50%);
    z-index: 10000000001;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.28);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.page-loginbox-mobile:hover,
.page-loginbox-mobile:focus-visible {
    filter: brightness(1.03);
    box-shadow: 0 12px 26px rgba(185, 28, 28, 0.3);
}

.page-loginbox-mobile--admin {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.96), rgba(185, 28, 28, 0.92));
    color: #ffffff;
}

.page-loginbox--admin {
    padding: 10px 14px;
}

.loginbox-status {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.loginbox-status a {
    color: #b91c1c;
    text-decoration: none;
}

.loginbox-status a:hover {
    text-decoration: underline;
}

.loginbox-input {
    min-width: 168px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.loginbox-input::placeholder {
    color: #94a3b8;
}

.loginbox-input:focus {
    border-color: rgba(220, 38, 38, 0.7);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.loginbox-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.28);
    transition: box-shadow 0.15s ease, filter 0.15s ease;
}

.loginbox-button:hover {
    filter: brightness(1.03);
    box-shadow: 0 12px 26px rgba(185, 28, 28, 0.3);
}

.page-actions,
.page-content {
    width: min(var(--site-max-width), calc(100vw - (var(--page-gutter) * 2)));
    margin-left: auto;
    margin-right: auto;
}

.page-actions {
    position: relative;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.page-actions--start {
    justify-content: flex-start;
}

.page-actions--center {
    justify-content: center;
}

.page-actions .newriderbutton,
.page-actions .raceyearsbutton {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0;
}

.results-year-nav {
    display: flex !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: 0 !important;
    cursor: default;
}

.page-scroll-x {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.schedule-table,
.riderlist-table,
.event-sheet-grid {
    min-width: max-content;
}

.event-sheet-grid {
    display: flex;
    align-items: flex-start;
    width: max-content;
    min-width: max-content;
    flex-wrap: nowrap;
    gap: 20px;
}

.event-sheet-grid > * {
    flex: 0 0 auto;
}

#currentschedulecontainer,
#printsheet,
#raceresults,
#instructions {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: min(var(--site-max-width), calc(100vw - (var(--page-gutter) * 2))) !important;
    margin: 0 auto;
}

#currentschedulecontainer {
    padding-bottom: 100px;
}

#raceresults {
    padding-bottom: 90px;
    text-align: center;
}

#instructions {
    margin-top: 0 !important;
    padding: 32px 0;
    text-align: center;
}

#copyright {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: min(84vw, calc(var(--site-max-width) - 32px)) !important;
    min-height: 42px;
    height: auto !important;
    padding: 10px 16px !important;
    border-radius: 12px 12px 0 0 !important;
    background: whitesmoke;
    line-height: 1.4 !important;
    text-align: center;
    font-size: 12px !important;
}

#copyright p {
    margin: 0;
}

.riderdeletecolumn {
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

.ridernamecolumn {
    display: inline-block;
    min-width: 180px;
    text-align: center;
}

.ridercategorycolumn {
    display: inline-block;
    min-width: 210px;
    text-align: center;
}

.ridercategorycolumnb {
    display: inline-block;
    min-width: 115px;
    text-align: center;
}

.riderdelete {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border-radius: 5px;
    background: red;
    color: white;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    text-align:center;
}

table {
    margin: 0 auto;
    border-collapse: collapse;
}

td {
    padding: 5px 10px;
    border: 1px solid lightgray;
}

.tablebox {
    display: inline-block;
    width: 500px;
    max-width: 40%;
    margin: 10px;
    text-align: center;
}

.results-page #raceresults > .newriderbutton {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 16px auto 0 !important;
}

.podiumGold {
    position: relative;
    width: 100%;
    height: 80px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(0deg, black, red);
    color: white;
    vertical-align: bottom;
    line-height: 145px;
    font-size: small;
}

.podiumSilver {
    position: relative;
    width: 100%;
    height: 60px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(0deg, black, red);
    color: white;
    vertical-align: bottom;
    line-height: 105px;
    font-size: small;
}

.podiumBronze {
    position: relative;
    width: 100%;
    height: 40px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(0deg, black, red);
    color: white;
    vertical-align: bottom;
    line-height: 65px;
    font-size: small;
}

.trophyGold,
.trophySilver,
.trophyBronze {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
}

.trophyGold {
    height: 25px;
}

.trophySilver {
    height: 20px;
}

.trophyBronze {
    height: 15px;
}

.podium {
    display: inline-block;
    min-width: 140px;
    vertical-align: bottom;
}

.podiumInner {
    display: block;
    width: 140px;
    overflow-x: hidden;
    white-space: nowrap;
    color: green;
    font-weight: bold;
}

.podiumBase {
    width: calc(100% - 0px);
    height: 15px;
    border: 3px solid black;
    background: url('../images/cyclist.png');
    background-size: contain;
    background-repeat: repeat-x;
}

.podiumSection {
    display: inline-block;
    width: fit-content;
    margin: 10px 25px 0;
    text-align: center;
}

.personalBest {
    display: inline-block;
    width: 56px;
    height: 31px;
    border: 1px solid lightgrey;
    border-radius: 0;
    background: lightgreen;
    vertical-align: middle;
}

.resultsHeader {
    background-color: lightcoral;
    font-weight: bold;
}

.topThree,
.riderName {
    color: green;
}

.topThree {
    font-weight: bold;
}

.prose-content {
    max-width: 900px !important;
    padding-bottom: 90px;
}

.eventlist-hero {
    margin-bottom: 22px;
    padding: 28px clamp(20px, 4vw, 36px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 247, 0.92));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.eventlist-hero-copy {
    max-width: 760px;
    margin: 0 auto;
}

.eventlist-titlebar {
    position: relative;
}

.eventlist-titlebar-button {
    position: fixed;
    top: 40px;
    right: max(24px, calc((100vw - min(1100px, calc(100vw - (var(--page-gutter) * 2)))) / 2));
    transform: translateY(-50%);
    z-index: 1000000001;
}

.eventlist-subtitle {
    margin: 0;
    color: #4a4a4a;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

.eventlist-actions {
    margin-top: 22px;
    margin-bottom: 0;
    justify-content: center;
    gap: 14px;
    width:100%;
}

.eventlist-actions .newriderbutton {
    flex: 0 1 auto;
}

.eventlist-sections {
    display: grid;
    gap: 24px;
}

.eventlist-section {
    padding: 26px clamp(16px, 3vw, 28px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eventlist-section h4 {
    margin-bottom: 18px;
    font-size: clamp(28px, 3.5vw, 38px);
}

.eventlist-section-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    min-height: 40px;
}

.eventlist-section-header h4 {
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    text-align: center;
}

.eventlist-section-spacer {
    display: none;
}

.eventlist-section-action {
    position: relative;
    z-index: 1;
}

.eventlist-section-title {
    text-wrap: balance;
}

.eventpage-hero {
    margin-bottom: 20px;
    padding: 28px clamp(20px, 4vw, 36px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 247, 0.92));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.eventpage-titlebar {
    position: relative;
}

.eventpage-subtitle {
    max-width: 820px;
    margin: 0 auto;
    color: #4a4a4a;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

.eventpage-actions {
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.eventpage-action {
    flex: 0 1 auto;
}

.eventpage-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 16px;
    margin-right: 10px;
    font-size: 15px;
    line-height: 1;
}

.eventpage-content {
    padding: 26px clamp(16px, 3vw, 28px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: normal !important;
}

.event-sheet-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 12px;
}

.eventpage-panel {
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.eventpage-add-column {
    max-width: 260px;
}

.eventpage-startsheet-column {
    min-width: 0;
    flex: 0 0 auto;
}

.eventpage-add-column-title {
    padding: 12px 14px;
    border-radius: 14px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.eventpage-add-row {
    border-radius: 14px;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
    margin-top: 10px !important;
    margin-bottom: 10px;
    padding-top: 10px;
}

.eventpage-add-row:hover {
    background: rgba(15, 23, 42, 0.04);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.eventpage-startsheet-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(248, 250, 252, 0.96));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.eventpage-startsheet-head > div {
    padding-top: 12px;
    padding-bottom: 12px;
    color: #0f172a;
    font-weight: 700;
    background: transparent !important;
    border-bottom: none !important;
}

.eventpage-startsheet-flag-column {
    width: 100px;
    min-width: 100px;
    text-align: center;
    vertical-align: middle;
}

.eventpage-startsheet-head > .eventpage-startsheet-flag-column {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eventpage-startsheet-cell--toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.eventpage-startsheet-cell--toggle:hover {
    border-color: rgba(180, 35, 24, 0.28);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.eventpage-startsheet-cell--toggle:focus-within {
    border-color: rgba(180, 35, 24, 0.4);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.eventpage-startsheet-toggle {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    margin: 0 !important;
    border: 2px solid #98a2b3;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.eventpage-startsheet-toggle::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    opacity: 0;
    transform: rotate(45deg) scale(0.8);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.eventpage-startsheet-toggle:hover {
    border-color: #b42318;
}

.eventpage-startsheet-toggle:checked {
    border-color: #b42318;
    background: linear-gradient(180deg, #d92d20, #b42318);
    box-shadow: 0 4px 10px rgba(180, 35, 24, 0.22);
}

.eventpage-startsheet-toggle:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.eventpage-startsheet-toggle:focus-visible {
    outline: 2px solid rgba(180, 35, 24, 0.18);
    outline-offset: 2px;
}

.eventpage-startsheet-toggle-text {
    display: inline-block;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.eventpage-startsheet-toggle:checked + .eventpage-startsheet-toggle-text {
    color: #b42318;
}

.timeblock {
    display: block;
    width: calc(100% - 10px) !important;
    max-width: 90px;
    min-width: 0 !important;
    min-height: 44px;
    margin: 0 auto;
    padding: 10px 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    color: #0f172a;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.timeblock:hover {
    border-color: rgba(180, 35, 24, 0.22) !important;
}

.timeblock:focus {
    border-color: rgba(180, 35, 24, 0.42) !important;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12), inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    outline: none;
}

.timeblock--print {
    min-height: 0;
    padding: 0 0 5px !important;
    border: 1px solid lightgray !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    line-height: 20px;
    width: 100px !important;
}

.eventpage-admin-controls {
    margin-top: 22px !important;
}

.eventpage-admin-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.eventpage-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 18px !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.eventpage-button:hover {
    border-color: rgba(180, 35, 24, 0.24) !important;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.eventpage-button:focus-visible {
    outline: 2px solid rgba(180, 35, 24, 0.18);
    outline-offset: 2px;
}

.eventpage-button--secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    color: #1f2937;
}

.eventpage-button--primary {
    border-color: rgba(127, 29, 29, 0.28) !important;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(185, 28, 28, 0.22);
}

.eventpage-button--primary:hover {
    border-color: rgba(127, 29, 29, 0.38) !important;
    box-shadow: 0 18px 34px rgba(185, 28, 28, 0.26);
}

.eventpage-button--download {
    justify-content: flex-start;
    min-width: 280px;
    padding-inline: 16px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.96));
}

.eventpage-officials-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.eventpage-button--officials {
    margin: 0 !important;
}

.eventpage-button-media {
    display: inline-block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
}

.eventpage-button-label {
    display: inline-block;
    min-width: 0;
}

.eventpage-admin-controls #adminbutton1,
.eventpage-admin-controls #adminbutton2,
.eventpage-admin-controls #adminbutton3,
.eventpage-officials .printable2,
.eventpage-officials .newriderbutton {
    min-height: 40px;
    padding: 8px 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.eventpage-officials {
    padding-top: 30px;
}

.eventpage-officials-card {
    width: min(760px, 100%) !important;
    padding: 26px clamp(16px, 3vw, 28px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    margin-top:5px!important;
    margin-bottom:5px!important;
}

.eventpage-officials-card > div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.eventpage-officials-card > div:not([style*="display:none"]) {
    /* margin: 0 !important; */
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.eventpage-officials-card > div > div:first-child {
    width: auto !important;
    margin-right: 0 !important;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eventpage-officials-card > div > div:last-child {
    width: 100% !important;
    min-width: 0;
    background: rgba(255, 255, 255, 0.86);
}

.eventpage-officials-card [id^="marshal"],
.eventpage-officials-card #timekeepers,
.eventpage-officials-card #lockupsupervisor {
    width: 100% !important;
    max-width: 100%;
    min-height: 40px;
}

.eventpage-officials-card p {
    margin-top: 0;
}

.riderlist-hero {
    margin-bottom: 20px;
    padding: 28px clamp(20px, 4vw, 36px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 247, 0.92));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.riderlist-titlebar {
    position: relative;
}

.riderlist-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: #4a4a4a;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

.riderlist-actions {
    justify-content: center;
    margin-bottom: 22px;
}

.riderlist-scroll {
    padding-bottom: 100px;
}

.riderlist-scroll .riderlist-table {
    width: 100%;
}

.riderlist-scroll .ridernamecolumn,
.riderlist-scroll .ridercategorycolumn,
.riderlist-scroll .ridercategorycolumnb {
    vertical-align: middle;
}

.riderlist-scroll select {
    max-width: 100%;
}

.event-entry-modal {
    position: fixed;
    inset: 0;
    z-index: 10000000001;
}

.event-entry-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.event-entry-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(560px, 96vw);
    max-height: 90vh;
    padding: 30px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 247, 250, 0.94));
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
    transform: translate(-50%, -50%);
}

.event-entry-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #101828;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.event-entry-close:hover,
.event-entry-close:focus-visible {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.event-entry-kicker {
    margin-bottom: 10px;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.event-entry-title {
    margin: 0;
    color: #101828;
    font-size: clamp(30px, 4vw, 38px);
    line-height: 1.05;
}

.event-entry-intro {
    margin: 14px 0 24px;
    color: #475467;
    font-size: 16px;
    line-height: 1.65;
}

.event-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.event-entry-field {
    display: block;
    margin-bottom: 14px;
}

.event-entry-field span {
    display: block;
    margin-bottom: 8px;
    color: #101828;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-entry-field-compact {
    margin-bottom: 18px;
}

.event-entry-input {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    text-align: left;
    font-size: 16px;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
}

.event-entry-input:focus {
    outline: 2px solid rgba(185, 28, 28, 0.18);
    border-color: rgba(185, 28, 28, 0.4);
}

.event-entry-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

.login-modal-card {
    width: min(440px, 96vw);
}

.login-modal-copy {
    margin: 16px 0 22px;
    color: #475467;
    font-size: 16px;
    line-height: 1.65;
}

.login-modal-input {
    min-width: 0;
    width: 100%;
}

.login-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.login-modal-link {
    text-decoration: none;
}

.app-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000000002;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.app-modal-card {
    position: relative;
    width: min(480px, 96vw);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 251, 0.92));
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    text-align: left;
}

.app-modal-kicker {
    margin-bottom: 10px;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.app-modal-title {
    margin: 0;
    color: #101828;
    font-size: clamp(28px, 4vw, 34px);
    line-height: 1.05;
}

.app-modal-body {
    margin: 16px 0 0;
    color: #475467;
    font-size: 17px;
    line-height: 1.65;
}

.app-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.app-modal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid #111827;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.app-modal-button:hover,
.app-modal-button:focus-visible {
    background: #1f2937;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
}

.app-modal-button-secondary {
    border-color: rgba(17, 24, 39, 0.14);
    background: rgba(255, 255, 255, 0.84);
    color: #111827;
}

.app-modal-button-secondary:hover,
.app-modal-button-secondary:focus-visible {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.eventlist-table {
    display: inline-block;
    min-width: max-content;
    text-align: left;
}

.eventlist-section .page-scroll-x {
    text-align: center;
}

.eventlist-table-head > div {
    border-bottom: 0 !important;
    background: linear-gradient(135deg, rgba(219, 44, 44, 0.14), rgba(255, 139, 106, 0.2)) !important;
    font-weight: 600;
}

.eventlist-table .riderdeletecolumn,
.eventlist-table .ridernamecolumn,
.eventlist-table .ridercategorycolumn,
.eventlist-table .ridercategorycolumnb {
    padding: 14px 16px;
}

.eventlist-distance {
    white-space: nowrap;
}

.eventlist-table #riderid0,
.eventlist-table [id^="riderid"] {
    transition: background-color 0.15s ease;
}

.eventlist-table [id^="riderid"]:hover {
    background: rgba(0, 0, 0, 0.025);
}

.eventpage-admin-note {
    max-width: 680px;
}

#printsheet2 {
    max-width: 100%;
}

@media only screen and (max-width: 991px) {
    .blockheader {
        padding: 0 140px;
    }

    #addnewridercolumn {
        max-height: 420px !important;
    }
}

@media only screen and (max-width: 767px) {
    :root {
        --page-gutter: 12px;
        --header-height: 94px;
        --footer-clearance: 96px;
    }

    .page-shell {
        padding-top: calc(var(--header-height) + 12px);
    }

    .site-header {
        height: var(--header-height) !important;
    }

    .site-header-logo {
        top: 10px !important;
        right: 12px !important;
        height: 44px !important;
        max-width: 44vw;
    }

    .site-header-wordmark {
        top: 58px !important;
        right: 12px !important;
        height: 14px !important;
        max-width: 44vw;
    }

    .page-loginbox {
        display: none !important;
    }

    .page-loginbox--desktop,
    #loginboxcontainer.page-loginbox--desktop {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .eventlist-page .page-loginbox-mobile,
    .eventpage-page .page-loginbox-mobile,
    .riderlist-page .page-loginbox-mobile {
        display: inline-flex;
        top: calc(var(--header-height) / 2);
        left: 12px;
        min-width: 88px;
    }

    .eventlist-titlebar-button {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        margin: 0;
        min-height: 38px;
        padding: 8px 12px;
    }

    .app-modal {
        padding: 16px;
    }

    .app-modal-card {
        width: min(480px, 96vw);
        padding: 22px;
        border-radius: 22px;
    }

    .app-modal-actions {
        flex-direction: column-reverse;
    }

    .app-modal-button {
        width: 100%;
    }

    .event-entry-card {
        width: min(560px, 96vw);
        padding: 22px;
        border-radius: 24px;
    }

    .event-entry-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .event-entry-actions {
        flex-direction: column-reverse;
    }

    .login-modal-card {
        width: min(440px, 96vw);
    }

    .login-modal-actions {
        flex-direction: column-reverse;
    }

    .login-modal-actions .app-modal-button,
    .login-modal-actions .login-modal-link {
        width: 100%;
    }

    .page-loginbox input {
        flex: 1 1 170px;
        min-width: 0;
    }

    .loginbox-button {
        width: 100%;
        min-width: 0;
    }

    .blockheader {
        padding: 0 92px;
        margin-bottom: 14px !important;
        font-size: clamp(24px, 7vw, 32px) !important;
    }

    .page-actions {
        gap: 10px;
    }

    .page-actions .newriderbutton,
    .page-actions .raceyearsbutton,
    .results-page #raceresults > .newriderbutton {
        width: 100%;
    }

    .eventlist-actions {
        justify-content: stretch;
    }

    #currentschedulecontainer,
    #printsheet,
    #raceresults,
    #instructions {
        width: calc(100vw - 24px) !important;
    }

    .event-sheet-grid {
        width: 100%;
        min-width: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 16px;
    }

    #addnewridercolumn,
    #startsheetcolumn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    .tablebox {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 16px 0;
    }

    .podiumSection {
        display: block;
        width: 100%;
        max-width: 360px;
        margin: 16px auto;
    }

    .podium {
        min-width: 96px;
    }

    .podiumInner {
        width: 96px;
    }

    .prose-content {
        padding: 0 4px 90px;
    }

    .eventlist-hero {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .eventlist-subtitle {
        font-size: 15px;
    }

    .eventpage-hero {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .eventpage-subtitle {
        font-size: 15px;
    }

    .eventpage-actions {
        justify-content: stretch;
    }

    .eventpage-action {
        width: 100%;
    }

    #timesheetdownload1,
    #timesheetdownload2 {
        display: none !important;
    }

    .eventpage-content {
        padding: 18px 12px;
        border-radius: 18px;
    }

    .riderlist-hero {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .riderlist-subtitle {
        font-size: 15px;
    }

    .riderlist-actions {
        justify-content: stretch;
    }

    .riderlist-actions .newriderbutton {
        width: 100%;
    }

    .riderlist-scroll {
        overflow-x: visible;
        padding-bottom: 100px;
    }

    .riderlist-scroll .riderlist-table > div:first-child {
        display: none;
    }

    .riderlist-scroll .riderlist-table > [id^="riderid"] {
        display: grid;
        gap: 10px;
        margin-top: 0 !important;
        margin-bottom: 14px;
        padding: 14px;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
        white-space: normal !important;
    }

    .riderlist-scroll .ridercategorycolumnb,
    .riderlist-scroll .ridernamecolumn,
    .riderlist-scroll .ridercategorycolumn {
        display: block;
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .riderlist-scroll .amendbutton {
        position: static;
        display: inline-flex;
        margin-top: 8px;
        transform: none;
    }

    .riderlist-scroll .ridernamecolumn [contenteditable],
    .riderlist-scroll .ridercategorycolumn [contenteditable],
    .riderlist-scroll .ridercategorycolumnb [contenteditable] {
        width: 100% !important;
        text-align: left !important;
        margin: 0 !important;
        padding-right: 0 !important;
    }

    .riderlist-scroll .riderdelete {
        margin: 0;
    }

    .eventpage-startsheet-head {
        display: none;
    }

    .startsheet-export-root {
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;
        display: block;
        width: auto;
        min-width: 0;
        padding: 24px;
        background: #ffffff;
        box-sizing: border-box;
        pointer-events: none;
    }

    .startsheet-export-root .startsheet-export-title {
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px;
        text-align: center;
    }

    .startsheet-export-root .startsheet-export-column {
        display: block !important;
        width: fit-content !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 auto !important;
    }

    .startsheet-export-root .startsheet-export-officials {
        display: block !important;
        width: fit-content !important;
        max-width: 100% !important;
        margin: 28px auto 0 !important;
    }

    .startsheet-export-root .eventpage-startsheet-head {
        display: block !important;
    }

    .startsheet-export-root .eventpage-startsheet-row {
        display: block !important;
        margin-top: 10px !important;
        margin-bottom: 0 !important;
        padding: 0 0 10px !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }

    .startsheet-export-root .eventpage-startsheet-row .eventpage-startsheet-cell {
        display: inline-block !important;
        width: auto !important;
        min-width: 100px !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-align: center;
        font-size: inherit;
        line-height: inherit;
    }

    .startsheet-export-root .eventpage-startsheet-row .eventpage-startsheet-cell::before {
        display: none !important;
    }

    .startsheet-export-root .eventpage-startsheet-row .eventpage-startsheet-name {
        min-width: 180px !important;
    }

    .startsheet-export-root .eventpage-startsheet-row .eventpage-startsheet-cell--toggle {
        display: inline-flex !important;
        min-height: 0;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .eventpage-startsheet-row {
        display: grid;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        margin-top: 0 !important;
        margin-bottom: 14px;
        padding: 14px 12px;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
        overflow: hidden;
        white-space: normal !important;
    }

    .eventpage-startsheet-row--admin {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: start;
    }

    .eventpage-startsheet-row--public {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: start;
    }

    .eventpage-startsheet-cell {
        display: block !important;
        width: 100%;
        min-width: 0 !important;
        padding: 10px 12px;
        box-sizing: border-box;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.9);
        text-align: left;
        white-space: normal !important;
        overflow-wrap: anywhere;
        font-size: 14px;
        line-height: 1.4;
    }

    .eventpage-startsheet-row .printable,
    .eventpage-startsheet-row .eventpage-startsheet-cell[data-label="Rider no."],
    .eventpage-startsheet-row .eventpage-startsheet-cell[data-label="Finish time"] {
        display: none !important;
    }

    .eventpage-startsheet-cell::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 8px;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        line-height: 1.4;
    }

    .eventpage-startsheet-row--admin .eventpage-startsheet-delete {
        grid-column: 1 / -1;
    }

    .eventpage-startsheet-cell--start,
    .eventpage-startsheet-cell--minutes,
    .eventpage-startsheet-cell--seconds {
        grid-column: span 2;
    }

    .eventpage-startsheet-name {
        grid-column: span 4;
    }

    .eventpage-startsheet-cell--bike {
        grid-column: span 2;
    }

    .eventpage-startsheet-cell--dns,
    .eventpage-startsheet-cell--dnf {
        grid-column: span 3;
    }

    .eventpage-startsheet-row--public .eventpage-startsheet-cell--start,
    .eventpage-startsheet-row--admin .eventpage-startsheet-cell--start {
        order: 1;
    }

    .eventpage-startsheet-row--public .eventpage-startsheet-name,
    .eventpage-startsheet-row--admin .eventpage-startsheet-name {
        order: 2;
    }

    .eventpage-startsheet-row--public .eventpage-startsheet-cell--bike,
    .eventpage-startsheet-row--admin .eventpage-startsheet-cell--bike {
        order: 3;
    }

    .eventpage-startsheet-row--public .eventpage-startsheet-cell--minutes,
    .eventpage-startsheet-row--admin .eventpage-startsheet-cell--minutes {
        order: 4;
    }

    .eventpage-startsheet-row--public .eventpage-startsheet-cell--seconds,
    .eventpage-startsheet-row--admin .eventpage-startsheet-cell--seconds {
        order: 5;
    }

    .eventpage-startsheet-row--admin .eventpage-startsheet-cell--dns {
        order: 6;
    }

    .eventpage-startsheet-row--admin .eventpage-startsheet-cell--dnf {
        order: 7;
    }

    .eventpage-startsheet-name {
        padding: 12px 14px;
    }

    .eventpage-startsheet-name::before {
        margin-bottom: 6px;
    }

    .eventpage-startsheet-cell[data-label="Finish time"] {
        display: none !important;
    }

    .eventpage-startsheet-cell select,
    .eventpage-startsheet-cell input {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        box-sizing: border-box;
    }

    .eventpage-startsheet-cell--control select,
    .eventpage-startsheet-cell--control input {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 42px;
        border-radius: 12px !important;
        padding: 8px 12px !important;
        background: #fff;
        font-size: 15px;
    }

    .eventpage-startsheet-delete {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    .eventpage-startsheet-delete .riderdelete {
        margin: 0;
    }

    .eventpage-startsheet-cell--toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 12px;
        line-height: 1;
        min-height: 0;
        padding: 10px 12px;
        box-shadow: none;
    }

    .eventpage-startsheet-cell--toggle::before {
        margin-bottom: 0;
    }

    .eventpage-startsheet-cell--toggle.eventpage-startsheet-flag-column {
        width: 100%;
        min-width: 0;
    }

    .eventpage-startsheet-toggle {
        appearance: auto;
        -webkit-appearance: checkbox;
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        margin: 0 !important;
        accent-color: #b42318;
    }

    .eventpage-startsheet-toggle-text {
        display: none;
    }

    .eventpage-startsheet-name {
        display: block !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .eventpage-startsheet-name > div {
        display: inline;
    }

    .eventpage-startsheet-name img {
        margin-left: 4px;
        width: 16px !important;
    }

    .eventpage-panel {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
        overflow: hidden;
    }

    .eventpage-add-column {
        max-width: none;
    }

    #addnewridercolumn {
        display: none !important;
    }

    .eventpage-admin-controls #adminbutton1,
    .eventpage-admin-controls #adminbutton2,
    .eventpage-admin-controls #adminbutton3,
    .eventpage-officials .printable2 {
        display: block !important;
        width: 100%;
        margin: 10px 0 0 !important;
    }

    .eventpage-admin-actions {
        align-items: stretch;
    }

    .eventpage-officials-actions {
        align-items: stretch;
        justify-content: stretch;
        gap: 10px;
        margin-top: 20px;
    }

    .eventpage-button--download {
        min-width: 0;
        justify-content: center;
    }

    .eventpage-officials-card {
        width: 100% !important;
        padding: 18px 14px;
        border-radius: 18px;
    }

    .eventpage-officials-card > div {
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 8px;
        text-align: left;
    }

    .eventpage-officials-card > div:not([style*="display:none"]) {
        padding: 14px;
        border-radius: 18px;
    }

    .eventpage-officials-card > div > div:first-child {
        font-size: 11px;
        line-height: 1.4;
    }

    .eventpage-officials-card > div > div:last-child {
        min-height: 44px;
        padding: 10px 12px !important;
        text-align: left !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .eventpage-officials-inner {
        width: 100% !important;
    }

    .eventlist-section {
        padding: 20px 14px;
        border-radius: 18px;
        overflow: hidden;
    }

    .eventlist-section h4 {
        font-size: 24px;
    }

    .eventlist-section-header {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        min-height: 0;
    }

    .eventlist-section-header h4 {
        position: static;
        width: auto;
        max-width: none;
        transform: none;
        order: 1;
        text-align: center;
    }

    .eventlist-section-action {
        order: 2;
        width: 100%;
        max-width: 240px;
    }

    .eventlist-section-spacer {
        display: none;
    }

    .eventlist-section .page-scroll-x {
        margin: 0;
        padding: 0;
        overflow-x: visible;
    }

    .eventlist-table {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .eventlist-table-head {
        display: none;
    }

    .eventlist-table [id^="riderid"] {
        white-space: normal !important;
    }

    .eventlist-table-row {
        display: grid;
        gap: 10px;
        margin-top: 0 !important;
        margin-bottom: 14px;
        padding: 14px;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    }

    .eventlist-table .riderdeletecolumn,
    .eventlist-table .ridernamecolumn,
    .eventlist-table .ridercategorycolumn,
    .eventlist-table .ridercategorycolumnb {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-width: 0;
        padding: 0;
        font-size: 14px;
        line-height: 1.45;
        text-align: left;
        vertical-align: top;
    }

    .eventlist-table .riderdeletecolumn::before,
    .eventlist-table .ridernamecolumn::before,
    .eventlist-table .ridercategorycolumn::before,
    .eventlist-table .ridercategorycolumnb::before {
        content: attr(data-label);
        flex: 0 0 96px;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .eventlist-table .riderdeletecolumn {
        justify-content: flex-end;
    }

    .eventlist-delete-cell::before {
        margin-right: auto;
    }

    .eventlist-delete-cell .riderdelete {
        margin: 0;
        text-align: center;
    }

    .eventlist-distance {
        white-space: normal;
    }

    .eventpage-admin-note {
        width: auto !important;
        max-width: 100%;
    }

    #printsheet2 [id^="marshal"],
    #timekeepers,
    #lockupsupervisor {
        width: min(300px, calc(100vw - 170px)) !important;
        max-width: calc(100vw - 170px);
    }

    #copyright {
        width: calc(100vw - 24px) !important;
        font-size: 11px !important;
    }
}

