/* Redesigned to match the club's new mockup: navy/orange brand, photo
hero, card-style intro + "how it works" panel, pill-based schedule
table. Result-table internals (.nicebox2, .split, .best-split, the
split-toggle-form controls) keep their original class names because
assets/app.js targets them directly - only their appearance changed. */

:root {
    --navy: #14213d;
    --navy-deep: #0c1830;
    --orange: #e8672c;
    --orange-dark: #c9531c;
    --gray-bg: #f5f5f5;
    --border: #e5e5e5;
}

body {
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 100;
    color: black;
    text-align: center;
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: var(--navy);
    padding: 0;
}

h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: black;
    text-align: center;
}

/* ---- Header / nav ---- */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding: 2px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 2px solid var(--navy);
    border-radius: 4px;
    background: linear-gradient(
        135deg,
        #fff 0 50%,
        var(--orange) 50%
    );
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.brand-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 21px;
    color: var(--navy);
    letter-spacing: 0.5px;
}

.brand-sub {
    font-weight: 700;
    font-size: 11px;
    color: var(--orange);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--orange);
    border-bottom-color: var(--orange);
    text-decoration: none;
}

/* ---- Original hero ---- */

.hero {
    background:
        linear-gradient(
            135deg,
            rgba(20, 33, 61, 0.88),
            rgba(12, 24, 48, 0.92)
        ),
        url('/images/forestOflag.jpg') center / cover no-repeat;
    position: relative;
    padding: 90px 24px;
    text-align: center;
    color: #fff;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 10px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    color: #fff;
}

.hero-rule {
    width: 60px;
    height: 4px;
    background: var(--orange);
    margin: 18px auto;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.92;
    margin: 0;
}

/* ---- Intro + How it works ---- */

.intro-section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 24px;
    text-align: left;
}

.intro-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.intro-copy {
    flex: 2;
    min-width: 280px;
}

.intro-heading {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 22px;
    color: var(--navy);
    text-align: left;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.how-box {
    flex: 1;
    min-width: 250px;
    background: var(--gray-bg);
    border-radius: 10px;
    padding: 26px;
    text-align: left;
}

.how-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.how-box h4 {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 800;
}

.how-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.how-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.how-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--orange);
    font-weight: 800;
}

/* ---- Schedule section ---- */

.schedule-section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 24px;
    text-align: left;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 20px;
    color: var(--navy);
    border-bottom: 3px solid var(--orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.section-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.schedule-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.schedule-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.schedule-table td {
    padding: 5px 14px;
    vertical-align: middle;
}

.schedule-head {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.schedule-table tr:not(.schedule-head) {
    border-bottom: 1px solid var(--border);
}

.schedule-table tr:not(.schedule-head):nth-child(even) {
    background: #fafafa;
}

/* Regular schedule row colours */

.schedule-table tr.row-avail:not(.schedule-head) {
    background: #fdf6c0;
}

.schedule-table tr.row-booked:not(.schedule-head) {
    background: #dff2df;
}

.schedule-table tr.row-past:not(.schedule-head) {
    background: #ececec;
}

/* Matching hover colours for each schedule row status */

.schedule-table tr:not(.schedule-head):hover td {
    background: #f7f7f7;
}

.schedule-table tr.row-avail:not(.schedule-head):hover td {
    background: #fffbe0;
}

.schedule-table tr.row-booked:not(.schedule-head):hover td {
    background: #edf9ed;
}

.schedule-table tr.row-past:not(.schedule-head):hover td {
    background: #f5f5f5;
}

tr.row-click {
    cursor: pointer;
}

.event-name {
    font-weight: 700;
    color: var(--orange);
}

.event-place {
    color: #555;
    font-size: 13px;
}

.event-time {
    color: #777;
    font-size: 12px;
}

.map-link {
    font-size: 12px;
    color: var(--navy);
}

.col-map a {
    font-size: 13px;
    color: var(--navy);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pill-results {
    background: #e8672c;
    color: #fff;
}
.pill-results:hover {
    background: #c9531c;
    color: #fff;
}

.pill-arrow {
    font-size: 15px;
    line-height: 1;
}

.pill-upcoming {
    background: #e9e9e9;
    color: #5a5a5a;
}

.pill-booked {
    background: #d9efdc;
    color: #1e6b3d;
}

.pill-past {
    background: #eee;
    color: #777;
}

/* ---- Footer note ---- */

.footer-note {
    max-width: 1100px;
    margin: 50px auto 20px;
    padding: 18px 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fdf1e7;
    border-radius: 10px;
    text-align: left;
}

.footer-note-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.footer-note-text p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.footer-note-text a {
    color: var(--orange);
}

/* ---- Shared content styles ---- */

.info {
    margin: 0 auto;
    width: 90%;
    text-align: center;
}

.intro {
    width: 75%;
    margin: 0 auto;
    text-align: left;
}

table {
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 100;
    color: black;
    padding: 5px 20px 20px;
    text-align: left;
}

td {
    padding: 2px 3px;
}

/* ---- Results tables ---- */

.nicebox2 {
    width: 50%;
    margin: 0 auto;
    border: 1px solid lightgrey;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(27, 98, 149, 1);
    transition: width 0.2s ease;
}

.nicebox2.wide {
    width: 90%;
}

.red {
    color: red;
}

.green {
    color: green;
    font-weight: bold;
}

/* Zebra striping for results tables */

.sitable tr:nth-child(even) {
    background: #d4e3f0;
}

.sitable tr:nth-child(odd) {
    background: white;
}

.taken {
    background-color: lightgreen;
}

.available {
    background-color: lightyellow;
}

.past {
    background-color: #dfdfdf;
}

.toprow {
    font-weight: bold;
    background-color: #333;
    color: #fff;
}

.hidden {
    visibility: hidden;
    display: none;
}

.split {
    display: none;
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
}

.nicebox2.wide .split {
    display: table-cell;
}

.best-split {
    color: red;
    font-weight: bold;
}

.nicebox2:not(.highlight-off) .best-split {
    color: red;
}

.nicebox2.highlight-off .best-split {
    color: inherit;
    font-weight: normal;
}

.note {
    font-size: 0.85em;
    color: #555;
}

.moreinfo {
    text-align: center;
    width: 75%;
    margin: 10px auto;
}

.event-block {
    margin: 20px auto;
    width: 90%;
}

.event-block summary {
    cursor: pointer;
    list-style: none;
}

.event-block summary::-webkit-details-marker {
    display: none;
}

.event-block summary h1::before {
    content: "\25B6  ";
    font-size: 14px;
}

.event-block[open] summary h1::before {
    content: "\25BC  ";
    font-size: 14px;
}

.schedule a {
    color: #1b6295;
}

/* ---- Season selector / footer info ---- */

.year-select-form {
    display: inline-block;
    margin: 6px 14px 10px 0;
}

.year-select-form select {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    padding: 3px 6px;
    border: 1px solid #1b6295;
    border-radius: 4px;
    color: #1b6295;
    background: #fff;
}

.footer {
    margin: 30px auto;
    font-size: 13px;
    color: #888;
}

.footer a {
    color: #888;
}

.footer.info p {
    display: inline-block;
    margin: 0 10px 0 0;
}

/* ---- Admin panel ---- */

.admin-wrap {
    max-width: 1150px;
    margin: 20px auto;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    padding: 0 16px;
}

.admin-wrap h1,
.admin-wrap h2 {
    text-align: left;
    font-family: 'Open Sans', sans-serif;
}

.admin-nav {
    margin-bottom: 20px;
}

.admin-nav a {
    margin-right: 14px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.admin-table th {
    background: #333;
    color: #fff;
}

.admin-table tr.status-available td {
    background: #fdf6c0;
}

.admin-table tr.status-booked td {
    background: #dff2df;
}

.admin-table tr.status-past td {
    background: #ececec;
}

.btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #1b6295;
    background: #1b6295;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.btn.secondary {
    background: #fff;
    color: #1b6295;
}

.btn.danger {
    background: #b8322f;
    border-color: #b8322f;
}

.btn.small {
    padding: 3px 8px;
    font-size: 12px;
}

.form-row {
    margin-bottom: 12px;
}

.form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.form-row input[type="text"],
.form-row input[type="date"],
.form-row input[type="url"],
.form-row select,
.form-row textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-row input.input-short {
    width: 90px;
}

.form-row-pair {
    display: flex;
    gap: 20px;
}

.form-row-pair .form-row {
    flex: 0 0 190px;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.form-grid .form-row {
    margin-bottom: 0;
}

.form-grid .form-row:nth-child(1) {
    flex: 0 0 48px;
}

.form-grid .form-row:nth-child(1) input {
    width: 100%;
}

.form-grid .form-row:nth-child(2) {
    flex: 1 1 165px;
}

.form-grid .form-row:nth-child(3) {
    flex: 0 0 140px;
}

.form-grid .form-row:nth-child(4) {
    flex: 0 0 92px;
}

.form-grid .form-row:nth-child(5),
.form-grid .form-row:nth-child(6) {
    flex: 1 1 130px;
}

.form-grid .form-row:nth-child(7) {
    flex: 0 0 125px;
}

.splits-grid {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 16px;
}

.splits-grid th,
.splits-grid td {
    border: 1px solid #ddd;
    padding: 4px;
}

.splits-grid input[type="text"] {
    width: 90px;
    box-sizing: border-box;
    padding: 3px;
}

.splits-grid input.name-input {
    width: 160px;
}

.splits-grid input.time-input {
    width: 90px;
}

.flash {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.flash.ok {
    background: #d9f2d9;
    border: 1px solid #4a4;
}

.flash.err {
    background: #f8d7d7;
    border: 1px solid #a44;
}

.login-box {
    max-width: 340px;
    margin: 60px auto;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
}

/* ---- Blended hero ---- */

.hero-blend {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--navy) 0%,
        var(--navy-deep) 100%
    );
    color: #fff;
    text-align: left;
    overflow: hidden;
}

.hero-blend-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    background: url('/images/forestOflag.jpg') center / cover no-repeat;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 45%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 45%
    );
}

.hero-blend-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 48px;
}

.hero-blend-copy {
    position: relative;
    z-index: 2;
    max-width: 50%;
    min-width: 300px;
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
}

.hero-flag {
    display: block;
    width: 83px;
    height: 83px;
    margin-bottom: 0;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
}

.hero-blend-title {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin: 0;
    padding: 0;
    text-align: left;
    line-height: 1.2;
}

.hero-rule-left {
    width: 60px;
    height: 4px;
    background: var(--orange);
    margin: 18px 0;
}

.hero-blend-copy .intro {
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 0 112px;
}

.hero-blend-copy .intro a {
    color: var(--orange);
}

/* ---- Inline admin link ---- */

.admin-link-inline {
    margin-left: auto;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-decoration: none;
}

.admin-link-inline:hover {
    color: #666;
    text-decoration: underline;
}

.label-short {
    display: none;
}

/* ---- Site footer links ---- */

.site-footer {
    background: var(--navy);
    margin-top: 50px;
    padding: 36px 24px;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.footer-links-title {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 800;
    color: var(--orange);
    text-align: left;
}

.footer-links-list {
    list-style: none;
    counter-reset: footerlink;
    margin: 0;
    padding: 0;
}

.footer-links-list li {
    counter-increment: footerlink;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: left;
}

.footer-links-list li::before {
    content: counter(footerlink) ".";
    display: inline-block;
    width: 22px;
    color: var(--orange);
    font-weight: 700;
}

.footer-links-list a {
    color: #fff;
    text-decoration: none;
}

.footer-links-list a:hover {
    color: var(--orange);
}

/* ---- Responsive layout ---- */

@media (max-width: 760px) {
    .site-nav {
        justify-content: center;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 30px;
    }

    .intro-grid {
        flex-direction: column;
    }

    .schedule-table {
        font-size: 13px;
    }

    .hero-blend-img {
        position: static;
        width: 100%;
        height: 200px;
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            #000 50%
        );
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            #000 50%
        );
    }

    .hero-blend-copy {
        max-width: 100%;
    }

    .hero-blend-inner {
        padding-bottom: 0;
    }

    .label-full {
        display: none;
    }

    .label-short {
        display: inline;
    }

    .admin-link-inline {
        display: none;
    }

    .hero-blend-title {
        font-size: 18px;
    }

    .hero-flag {
        width: 42px;
        height: 42px;
    }

    .hero-title-row {
        gap: 12px;
    }

    .hero-blend-copy .intro {
        margin: 0;
    }
    
    .schedule-table .col-date {
        min-width: 80px;
        width: 80px;
        white-space: normal;
    }

    .schedule-table .event-time {
        display: block;
        white-space: nowrap;
    }
    
}

/* ---- Footer ---- */

.footer-admin-link {
    margin-top: 8px;
    text-align: center;
}

.footer-admin-link a {
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.footer-admin-link a:hover,
.footer-admin-link a:focus {
    color: var(--orange);
    text-decoration: underline;
}

/* ---- OpenStreetMap location picker ---- */

.map-picker-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.map-preview-link {
    font-size: 14px;
    color: #1b6295;
}

#map-picker-wrap {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f7f7f7;
}

.map-picker-help {
    margin: 0 0 10px;
    color: #555;
    font-size: 14px;
}

.map-picker-container {
    position: relative;
    width: 100%;
}

#location-map {
    width: 100%;
    height: 440px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #ddd;
    z-index: 1;
}

/*
 * Fixed crosshair at the exact centre of the map.
 * The user moves the map underneath it.
 */
.map-center-marker {
    position: absolute;
    z-index: 500;
    pointer-events: none;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    border: 3px solid #e8672c;
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow:
        0 0 0 2px #fff,
        0 1px 5px rgba(0, 0, 0, 0.55);
}

.map-center-marker::before,
.map-center-marker::after {
    content: "";
    position: absolute;
    background: #e8672c;
}

.map-center-marker::before {
    width: 2px;
    height: 34px;
    left: 7px;
    top: -9px;
}

.map-center-marker::after {
    width: 34px;
    height: 2px;
    left: -9px;
    top: 7px;
}

.map-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.selected-coordinates {
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

@media (max-width: 760px) {
    #location-map {
        height: 360px;
    }

    .map-picker-toolbar,
    .map-picker-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .map-picker-toolbar .btn,
    .map-picker-actions .btn {
        box-sizing: border-box;
        width: 100%;
        text-align: center;
    }
}

#new-location-map {
    width: 100%;
    height: 440px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #ddd;
    z-index: 1;
}

@media (max-width: 760px) {
    #new-location-map {
        height: 360px;
    }
}

/* ============================================================
   Modern results cards (2026 refresh)
   Appended to assets/style.css. Class names are unchanged
   because assets/app.js targets them (.nicebox2, .wide,
   .showhide, .highlight, .highlight-off, .best-split).
   ============================================================ */

.event-block {
    width: min(860px, 94%);
    margin: 28px auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(20, 33, 61, .08);
    padding: 6px 26px 22px;
}

.event-block summary {
    padding: 14px 0;
}

/* Collapsed cards: equal space above and below the title */
.event-block:not([open]) {
    padding-bottom: 6px;
}

.event-block summary h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 21px;
    text-align: left;
    color: var(--navy);
}

.event-block summary h1::before,
.event-block[open] summary h1::before {
    font-size: 12px;
    color: var(--orange);
}

.event-block + hr {
    display: none;
}

.event-block .info {
    text-align: center;
    font-size: 14px;
    color: #475569;
}

.nicebox2,
.nicebox2.wide {
    width: 100%;
    margin: 8px 0 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
}

.sitable {
    width: 100%;
    border-collapse: collapse;
}

.sitable tr:nth-child(odd),
.sitable tr:nth-child(even) {
    background: #fff;
}

.sitable td {
    padding: 11px 16px;
    border-bottom: 1px solid #eef2f7;
    font-size: 15.5px;
}

.sitable tr:last-child td {
    border-bottom: none;
}

.sitable tr:hover td {
    background: #f8fafc;
}

.sitable tr#tableheader td {
    background: #f8fafc;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

/* Podium accents (rank classes are set by render.php) */
.sitable tr.rank-1 td { background: #fefce8; }
.sitable tr.rank-1 td:first-child { box-shadow: inset 4px 0 0 #eab308; }

.sitable tr.rank-2 td { background: #f6f8fa; }
.sitable tr.rank-2 td:first-child { box-shadow: inset 4px 0 0 #94a3b8; }

.sitable tr.rank-3 td { background: #fff7ed; }
.sitable tr.rank-3 td:first-child { box-shadow: inset 4px 0 0 #d97706; }

/* Category label rows (legacy pseudo-participants, e.g. --BIKE--) */
.sitable tr.cat-row td {
    background: #e8edf4;
    font-weight: 700;
    color: #334155;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.note {
    font-size: 0.85em;
    color: #64748b;
}

.best-split {
    color: #dc2626;
}

.moreinfo {
    width: auto;
    margin: 16px 2px 2px;
    text-align: left;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 14px 18px;
}

@media (max-width: 640px) {
    .event-block { padding: 2px 12px 14px; }
    .sitable td { padding: 9px 10px; font-size: 14.5px; }
    .event-block summary h1 { font-size: 17px; }
}

/* ============================================================
   Results band: slightly darker backdrop separating results
   from the events schedule above.
   ============================================================ */

.results-band {
    background: linear-gradient(180deg, #e9eef5 0%, #dde5ef 100%);
    border-top: 1px solid #c9d4e3;
    border-bottom: 1px solid #c9d4e3;
    padding: 34px 0 44px;
    margin-top: 34px;
}

.results-band .event-block {
    border-color: #d0dae8;
    box-shadow: 0 8px 26px rgba(20, 33, 61, .12);
}

.results-band .sitable tr#tableheader td {
    background: #eef2f8;
}

.results-band .moreinfo {
    background: #f3f6fb;
    border-color: #e0e7f1;
}

/* ============================================================
   Medal badges for the top three finishers. Every data row gets
   the same fixed-width marker slot so names stay aligned.
   ============================================================ */

.sitable tr:nth-child(n+2) td:first-child::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: -5px;
    background-repeat: no-repeat;
    background-size: contain;
}
.sitable tr.rank-1 td:first-child::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="11" fill="%23E3A008"/><circle cx="12" cy="12" r="9" fill="%23F9C846"/><path d="M12 5.8l1.85 3.75 4.15.6-3 2.93.7 4.13L12 15.26l-3.7 1.95.7-4.13-3-2.93 4.15-.6z" fill="%23FCE38A"/></svg>'); }
.sitable tr.rank-2 td:first-child::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="11" fill="%239AA3AD"/><circle cx="12" cy="12" r="9" fill="%23C9D0D7"/><path d="M12 5.8l1.85 3.75 4.15.6-3 2.93.7 4.13L12 15.26l-3.7 1.95.7-4.13-3-2.93 4.15-.6z" fill="%23EDF0F3"/></svg>'); }
.sitable tr.rank-3 td:first-child::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="11" fill="%23B4642F"/><circle cx="12" cy="12" r="9" fill="%23DE9668"/><path d="M12 5.8l1.85 3.75 4.15.6-3 2.93.7 4.13L12 15.26l-3.7 1.95.7-4.13-3-2.93 4.15-.6z" fill="%23F4C9A6"/></svg>'); }

/* ============================================================
   Footer season links (replaces the year dropdown, which the
   Tesla in-car browser cannot operate).
   ============================================================ */

.year-links {
    text-align: center;
    font-size: 15px;
    color: #555;
}
.year-links a {
    color: #1d4ed8;
    text-decoration: none;
    margin: 0 6px;
}
.year-links a:hover { text-decoration: underline; }
.year-links .year-current {
    font-weight: 700;
    color: #14213d;
    margin: 0 6px;
}

/* Make Quill bold formatting clearly visible on the public page */
.intro strong,
.intro b,
.moreinfo strong,
.moreinfo b {
    font-weight: 800;
}

/* --- "Show splits" expands the event's results panel to full page width (animated) --- */
.event-block {
    transition: width 0.3s ease;
}

.event-block.splits-open {
    width: 94% !important;
}

/* The results box fills its panel instantly so it tracks the width animation. */
.nicebox2 {
    transition: none;
}

/* Safety: keep the expansion from creating a horizontal scrollbar. */
.results-band {
    overflow-x: clip;
}