:root {
    --paper: #f3f3f0;
    --paper-dark: #deded8;
    --ink: #11110f;
    --muted: #676864;
    --line: #c2c2bc;
    --orange: #bd71ff;
    --orange-dark: #a85ae8;
    --max-width: 1680px;
    --mono: "Courier New", Courier, monospace;
    --sans: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

svg {
    display: block;
    width: 100%;
    height: 100%;
}

.site-shell {
    width: min(100%, var(--max-width));
    min-height: 100vh;
    margin: 0 auto;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--paper);
}

/* Header */

.site-header {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    min-height: 76px;
    padding: 0 28px;
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    background: var(--orange);
}

.brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
}

.brand-logo {
    display: block;
    width: auto;
    height: 34px;
}

.brand-wordmark {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.08em;
}

.brand-wordmark sup {
    font-size: 9px;
    letter-spacing: 0;
}

.brand-program {
    padding-left: 14px;
    border-left: 1px solid var(--ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
}

.desktop-nav {
    display: flex;
    gap: 46px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.desktop-nav a,
.member-link {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.member-link:hover,
.desktop-nav a.is-active,
.member-link.is-active {
    color: var(--paper);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.member-link,
.menu-button {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-link {
    display: block;
    width: 18px;
    height: 18px;
}

.profile-link svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.menu-button {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    color: var(--ink);
    background: transparent;
}

.menu-lines {
    display: flex;
    width: 24px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
}

.menu-lines i {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
}

.menu-label {
    display: none;
}

/* System Bar */

.system-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    min-height: 42px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.system-location,
.system-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-meta {
    gap: 32px;
}

.system-meta strong {
    color: var(--orange);
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--orange);
}

/* Mobile Menu */

.mobile-menu {
    position: absolute;
    z-index: 100;
    top: 76px;
    right: 0;
    left: 0;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.mobile-menu a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
}

.mobile-menu a:last-child {
    border-bottom: 0;
}

/* Hero / Field Briefing */

.field-briefing {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr 0.9fr;
    border-bottom: 1px solid var(--line);
}

.next-event-panel,
.route-map-panel,
.upcoming-events-panel {
    min-height: 540px;
}

.next-event-panel {
    display: flex;
    flex-direction: column;
    padding: 34px 36px 32px;
    border-right: 1px solid var(--line);
}

.eyebrow,
.archive-id,
.stat span,
.event-meta-line,
.event-row-data,
.event-date,
.section-heading,
.mini-route-list,
.notes-list,
.conditions-data,
.footer-meta,
.footer-actions {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

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

.next-event-panel h1 {
    max-width: 520px;
    margin: 20px 0 10px;
    font-size: clamp(48px, 4vw, 78px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.065em;
    text-transform: uppercase;
}

.archive-id {
    font-weight: 700;
}

.event-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: auto;
    padding-top: 34px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat > span:first-child {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.stat svg {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.4;
}

.stat strong {
    font-size: 13px;
    text-transform: uppercase;
}

.stat span:last-child {
    color: var(--muted);
    font-size: 10px;
}

.event-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.event-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}

.button-primary {
    border-color: var(--orange);
    color: var(--ink);
    background: var(--orange);
}

.button-primary:hover {
    background: var(--orange-dark);
}

.button-outline {
    background: transparent;
}

.button-outline:hover {
    color: var(--paper);
    background: var(--ink);
}

.spots-left {
    text-align: right;
    text-transform: uppercase;
}

.spots-left span {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
}

.spots-left strong {
    color: var(--orange);
    font-size: 23px;
    line-height: 1;
}

/* Map */

.route-map-panel {
    position: relative;
    overflow: hidden;
    color: #686864;
    border-right: 1px solid var(--line);
    background: #e7e7e3;
}

.route-map {
    position: absolute;
    inset: 0;
}

.route-line {
    fill: none;
    stroke: var(--ink);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 8;
}

.route-start,
.route-end {
    fill: var(--ink);
}

.map-coordinates,
.map-label {
    position: absolute;
    z-index: 2;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.map-coordinates {
    top: 18px;
    right: 18px;
    text-align: right;
}

.map-label {
    bottom: 28px;
}

.map-label-left {
    left: 20px;
}

.map-label-right {
    right: 20px;
    text-align: right;
}

/* Upcoming Events */

.upcoming-events-panel {
    padding: 20px 18px 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.section-heading a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.section-heading a:hover,
.text-link:hover {
    color: var(--orange);
}

.section-heading svg,
.text-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.event-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
}

.event-date {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    line-height: 1.2;
}

.event-date strong {
    color: var(--orange);
}

.event-row h3 {
    margin: 0;
    font-size: 16px;
    line-height: 0.95;
    text-transform: uppercase;
}

.event-row-data {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.full-width {
    width: 100%;
    margin-top: 18px;
}

/* Archive Modules */

.archive-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.05fr 1.15fr;
    border-bottom: 1px solid var(--line);
}

.archive-module {
    min-height: 296px;
    padding: 22px 28px;
    border-right: 1px solid var(--line);
}

.archive-module:last-child {
    border-right: 0;
}

.route-archive-module {
    grid-row: span 2;
}

.route-module-content {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 18px;
    align-items: center;
}

.mini-map {
    width: 128px;
    height: 112px;
    overflow: hidden;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--paper-dark);
}

.route-module-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.route-count {
    display: block;
    grid-column: 2;
    font-size: 32px;
    line-height: 1;
}

.route-count span {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.mini-route-list,
.notes-list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.mini-route-list li {
    display: grid;
    grid-template-columns: 75px 1fr 65px 70px;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 10px;
}

.mini-route-list strong {
    font-family: var(--sans);
    font-size: 11px;
}

.mini-route-list em {
    font-style: normal;
    text-align: right;
}

.notes-list li {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    font-family: var(--sans);
    font-size: 12px;
    line-height: 1.25;
}

.notes-list time {
    font-family: var(--mono);
    font-size: 12px;
}

.notes-list small {
    color: var(--muted);
    font-size: 12px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Conditions */

.conditions-module {
    background: var(--paper-dark);
}

.conditions-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.condition-icon {
    width: 38px;
    height: 38px;
}

.condition-icon svg {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.3;
}

.conditions-main strong {
    font-size: 44px;
    letter-spacing: -0.06em;
}

.conditions-main span {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.conditions-data {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 28px;
}

.conditions-data div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.conditions-data span {
    color: var(--muted);
    font-size: 11px;
}

.conditions-data strong {
    font-size: 12px;
}

/* Photo Story */

.photo-module {
    display: flex;
    grid-column: 2 / span 2;
    flex-direction: column;
    justify-content: space-between;
    min-height: 148px;
}

.photo-story-preview {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
}

.photo-placeholder {
    height: 72px;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.1), transparent),
        linear-gradient(20deg, #8f8f8b 0%, #c3c3be 46%, #e4e4df 100%);
}

.photo-story-preview h3 {
    margin: 5px 0;
    font-size: 16px;
    text-transform: uppercase;
}

.photo-story-preview p {
    margin: 0;
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

/* Member Access */

.member-access-section {
    display: grid;
    grid-template-columns: 100px minmax(250px, 0.8fr) minmax(460px, 1.3fr);
    gap: 20px;
    align-items: center;
    min-height: 126px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
}

.access-icon {
    width: 48px;
    height: 48px;
}

.access-icon svg {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.2;
}

.access-copy h2 {
    margin: 0 0 7px;
    font-size: 16px;
    text-transform: uppercase;
}

.access-copy p {
    max-width: 360px;
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.access-form {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 12px;
}

.access-form input {
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    outline: none;
    color: var(--ink);
    background: transparent;
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.access-form input:focus {
    border-color: var(--ink);
}

/* Footer */

.site-footer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, .52fr) minmax(150px, .28fr) minmax(420px, .92fr);
    align-items: stretch;
    min-height: 88px;
    overflow: hidden;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    background: var(--paper-dark);
    text-transform: uppercase;
}

.footer-brand,
.footer-micro {
    position: relative;
    z-index: 1;
}

.footer-brand {
    background: var(--paper-dark);
}

.footer-micro {
    background: var(--orange);
}

.footer-micro::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(17, 17, 15, .12) 1px, transparent 1px),
        linear-gradient(0deg, rgba(17, 17, 15, .08) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: .2;
    content: "";
}

.footer-brand,
.footer-micro,
.footer-nav {
    min-width: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border-right: 1px solid var(--ink);
}

.footer-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: clamp(52px, 4.25vw, 64px);
    max-width: calc(100% - 44px);
    flex: 0 0 auto;
    object-fit: contain;
    transition: transform .18s ease;
}

.footer-brand:hover .footer-logo {
    transform: scale(1.012);
}

.footer-micro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 14px;
    border-right: 1px solid var(--ink);
    font-family: var(--mono);
    line-height: 1.05;
}

.footer-micro span,
.footer-micro em,
.footer-micro strong {
    position: relative;
    z-index: 1;
    display: block;
}

.footer-micro span,
.footer-micro em {
    max-width: 148px;
    font-size: 8px;
    font-style: normal;
    letter-spacing: .03em;
}

.footer-micro strong {
    max-width: 145px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .025em;
}

.footer-micro-kicker {
    max-width: 120px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    align-content: stretch;
    background: var(--paper-dark);
}

.footer-nav a {
    display: grid;
    min-height: 42px;
    grid-template-rows: auto 1fr;
    align-content: space-between;
    padding: 7px 10px 6px;
    border-right: 1px solid var(--line);
    background: var(--paper-dark);
    font-family: var(--mono);
    line-height: 1.02;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.footer-nav a:last-child {
    border-right: 0;
}

.footer-nav a span {
    display: block;
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .04em;
}

.footer-nav a strong {
    align-self: end;
    font-family: var(--sans);
    font-size: clamp(12px, .82vw, 16px);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.05em;
    text-transform: uppercase;
}

.footer-nav a:hover {
    color: var(--paper);
    background: var(--ink);
    border-color: var(--ink);
}

.footer-nav a:hover span {
    color: rgba(242, 240, 233, .7);
}

.footer-nav a:focus-visible,
.footer-brand:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -5px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Tablet */

@media (max-width: 1120px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .desktop-nav,
    .member-link {
        display: none;
    }

    .field-briefing {
        grid-template-columns: 1fr 1fr;
    }

    .upcoming-events-panel {
        display: grid;
        grid-column: span 2;
        grid-template-columns: repeat(4, 1fr);
        gap: 0 18px;
        min-height: auto;
    }

    .upcoming-events-panel .section-heading,
    .upcoming-events-panel .full-width {
        grid-column: 1 / -1;
    }

    .event-row {
        grid-template-columns: 62px 1fr;
    }

    .archive-grid {
        grid-template-columns: 1fr 1fr;
    }

    .route-archive-module {
        grid-row: auto;
        grid-column: span 2;
    }

    .photo-module {
        grid-column: auto;
    }

    .member-access-section {
        grid-template-columns: 70px 1fr;
    }

    .access-form {
        grid-column: 1 / -1;
    }
}

/* Mobile */

@media (max-width: 720px) {
    .site-shell {
        border: 0;
    }

    .site-header {
        grid-template-columns: 1fr auto;
        min-height: 70px;
        padding: 0 18px;
    }

    .brand-logo {
        height: 31px;
    }

    .brand-wordmark {
        font-size: 25px;
    }

    .brand-program,
    .desktop-only {
        display: none;
    }

    .header-actions {
        gap: 15px;
    }

    .profile-link {
        display: block;
        width: 22px;
        height: 22px;
    }

    .profile-link svg {
        display: block;
        width: 22px;
        height: 22px;
        fill: none;
        stroke: var(--ink);
        stroke-width: 1.7;
    }

    .menu-button {
        display: flex;
        width: 30px;
        height: 30px;
    }

    .menu-lines {
        width: 24px;
        height: 18px;
    }

    .menu-lines i {
        width: 24px;
        height: 2px;
    }

    .system-bar {
        align-items: center;
        min-height: 54px;
        padding: 0 18px;
    }

    .system-location {
        max-width: 190px;
        font-size: 11px;
        line-height: 1.35;
    }

    .system-meta {
        display: block;
        font-size: 11px;
        text-align: right;
    }

    .system-meta span:first-child {
        display: none;
    }

    .mobile-menu {
        top: 70px;
    }

    .field-briefing,
    .archive-grid {
        display: block;
    }

    .next-event-panel,
    .route-map-panel,
    .upcoming-events-panel {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .next-event-panel {
        padding: 28px 20px;
    }

    .next-event-panel h1 {
        margin-top: 16px;
        font-size: 48px;
    }

    .event-stats {
        gap: 10px;
        padding-top: 28px;
    }

    .stat strong {
        font-size: 12px;
    }

    .stat span:last-child {
        font-size: 8px;
    }

    .event-meta-line {
        font-size: 11px;
    }

    .event-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .event-cta-row .button {
        width: 100%;
    }

    .spots-left {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .route-map-panel {
        min-height: 370px;
    }

    .upcoming-events-panel {
        display: block;
        padding: 20px;
    }

    .event-row {
        grid-template-columns: 80px 1fr;
    }

    .archive-module {
        min-height: auto;
        padding: 22px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .route-module-content {
        grid-template-columns: 105px 1fr;
    }

    .mini-map {
        width: 105px;
        height: 92px;
    }

    .mini-route-list li {
        grid-template-columns: 68px 1fr;
    }

    .mini-route-list em {
        display: none;
    }

    .conditions-data {
        grid-template-columns: 1fr 1fr;
    }

    .photo-story-preview {
        grid-template-columns: 120px 1fr;
    }

    .member-access-section {
        display: block;
        padding: 24px 20px;
    }

    .access-icon {
        margin-bottom: 18px;
    }

    .access-copy {
        margin-bottom: 20px;
    }

    .access-form {
        display: block;
    }

    .access-form input,
    .access-form .button {
        width: 100%;
    }

    .access-form .button {
        margin-top: 10px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        min-height: 0;
        background: var(--paper-dark);
    }

    .footer-brand {
        justify-content: center;
        padding: 12px 20px;
        background: var(--paper-dark);
        border-right: 0;
        border-bottom: 1px solid var(--ink);
    }

    .footer-logo {
        width: min(78vw, 350px);
        height: auto;
        max-width: 100%;
    }

    .footer-micro {
        min-height: 0;
        gap: 2px;
        padding: 9px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--ink);
    }

    .footer-micro span,
    .footer-micro em,
    .footer-micro strong {
        max-width: none;
    }

    .footer-micro span,
    .footer-micro em {
        font-size: 9px;
    }

    .footer-micro strong {
        font-size: 10px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        background: var(--paper-dark);
    }

    .footer-nav a {
        min-height: 44px;
        padding: 8px 12px 7px;
        border-bottom: 1px solid var(--line);
        background: var(--paper-dark);
    }

    .footer-nav a:nth-child(2n) {
        border-right: 0;
    }

    .footer-nav a:last-child {
        border-right: 0;
    }

    .footer-nav a strong {
        font-size: 15px;
    }
}

/* Events Page */

.events-page {
    border-bottom: 1px solid var(--line);
}

.page-intro {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 40px;
    align-items: end;
    padding: 52px 28px 34px;
    border-bottom: 1px solid var(--line);
}

.page-intro h1 {
    margin: 12px 0 0;
    font-size: clamp(58px, 8vw, 124px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

.page-intro p {
    max-width: 380px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.event-filter-bar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
}

.event-filter-group,
.event-filter-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-label,
.event-filter-meta {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.filter-label {
    margin-right: 10px;
    color: var(--muted);
}

.filter-button {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.filter-button:hover,
.filter-button.is-active {
    border-color: var(--ink);
    color: var(--paper);
    background: var(--ink);
}

.event-filter-meta {
    gap: 18px;
    white-space: nowrap;
}

.featured-event-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    min-height: 520px;
    border-bottom: 1px solid var(--line);
}

.featured-event-copy {
    display: flex;
    flex-direction: column;
    padding: 36px 34px;
    border-right: 1px solid var(--line);
}

.featured-event-copy .archive-id {
    display: block;
    margin-top: 12px;
}

.featured-event-copy h2 {
    max-width: 620px;
    margin: 20px 0 8px;
    font-size: clamp(42px, 5vw, 78px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.featured-event-type {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-event-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: auto;
    padding-top: 36px;
}

.featured-event-stats > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.featured-event-stats svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.4;
}

.featured-event-stats strong {
    font-size: 12px;
    text-transform: uppercase;
}

.featured-event-stats span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
}

.featured-event-date {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-event-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
}

.featured-event-map {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: #686864;
    background: var(--paper-dark);
}

.featured-event-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.featured-map-label,
.featured-map-coordinate,
.featured-map-location {
    position: absolute;
    z-index: 2;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-map-label {
    top: 20px;
    left: 20px;
}

.featured-map-coordinate {
    top: 20px;
    right: 20px;
    text-align: right;
}

.featured-map-location {
    right: 20px;
    bottom: 22px;
}

.event-list-section {
    padding: 32px 28px 42px;
    border-bottom: 1px solid var(--line);
}

.event-list-heading {
    margin-bottom: 22px;
}

.event-list-heading > span {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.event-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.event-card {
    position: relative;
    display: flex;
    min-height: 300px;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.event-card-top,
.event-card-date,
.event-card-data,
.event-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

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

.event-card-date {
    margin-top: 22px;
    color: var(--muted);
}

.event-card h3 {
    max-width: 320px;
    margin: 24px 0 8px;
    font-size: 28px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.event-card-type {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-card-data {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.event-card-footer {
    margin-top: 12px;
    color: var(--muted);
}

.event-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-card-link:hover {
    color: var(--orange);
}

.event-card-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.past-events-section {
    padding: 32px 28px 42px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-dark);
}

.past-events-heading {
    margin-bottom: 22px;
}

.past-events-heading > span {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.past-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.past-event-card {
    display: flex;
    min-height: 292px;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.past-event-card-top,
.past-event-card-date,
.past-event-card-data {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.past-event-card-top > span:last-child {
    color: var(--muted);
}

.past-event-card-date {
    margin-top: 20px;
    color: var(--muted);
}

.past-event-card h3 {
    max-width: 320px;
    margin: 22px 0 8px;
    font-size: 27px;
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.055em;
    text-transform: uppercase;
}

.past-event-card-type {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.past-event-card-data {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.past-event-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.past-event-card-links a:hover,
.past-event-card-link:hover {
    color: var(--orange);
}

.past-event-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.past-event-card-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.events-access-callout {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 430px) auto;
    gap: 30px;
    align-items: center;
    padding: 30px 28px;
    background: var(--paper-dark);
}

.events-access-callout h2 {
    margin: 10px 0 0;
    font-size: 28px;
    line-height: 0.95;
    text-transform: uppercase;
}

.events-access-callout p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .event-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-access-callout {
        grid-template-columns: 1fr 1fr;
    }

    .events-access-callout .button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .page-intro {
        display: block;
        padding: 34px 20px 28px;
    }

    .page-intro h1 {
        margin-top: 14px;
        font-size: 68px;
    }

    .page-intro p {
        margin-top: 24px;
    }

    .event-filter-bar {
        display: block;
        padding: 18px 20px;
    }

    .event-filter-group {
        gap: 7px;
    }

    .filter-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .event-filter-meta {
        justify-content: space-between;
        margin-top: 16px;
    }

    .featured-event-card {
        display: block;
    }

    .featured-event-copy {
        padding: 28px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .featured-event-copy h2 {
        font-size: 49px;
    }

    .featured-event-stats {
        gap: 10px;
        padding-top: 30px;
    }

    .featured-event-stats strong {
        font-size: 11px;
    }

    .featured-event-stats span {
        font-size: 8px;
    }

    .featured-event-date {
        font-size: 11px;
    }

    .featured-event-action {
        flex-direction: column;
        align-items: stretch;
    }

    .featured-event-action .button {
        width: 100%;
    }

    .featured-event-action .spots-left {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .featured-event-map {
        min-height: 360px;
    }

    .event-list-section {
        padding: 28px 20px;
    }

    .event-card-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        min-height: 280px;
    }

    .past-events-section {
        padding: 28px 20px;
    }

    .past-event-grid {
        grid-template-columns: 1fr;
    }

    .past-event-card {
        min-height: 270px;
    }

    .events-access-callout {
        display: block;
        padding: 28px 20px;
    }

    .events-access-callout p {
        margin: 20px 0;
    }

    .events-access-callout .button {
        width: 100%;
    }
}

/* Event Detail Page */

.event-detail-page {
    border-bottom: 1px solid var(--line);
}

.event-detail-header {
    padding: 22px 28px 34px;
    border-bottom: 1px solid var(--line);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.back-link:hover {
    color: var(--orange);
}

.back-link svg {
    width: 14px;
    height: 14px;
    transform: rotate(180deg);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.event-detail-id-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 46px;
}

.event-detail-title-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-end;
    margin-top: 18px;
}

.event-detail-title-row h1 {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(54px, 8vw, 136px);
    font-weight: 900;
    line-height: 0.78;
    letter-spacing: -0.085em;
    text-transform: uppercase;
}

.event-detail-type {
    margin: 18px 0 0;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-detail-status {
    min-width: 150px;
    padding: 14px 0;
    border-top: 1px solid var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.event-detail-status span,
.event-detail-status strong {
    display: block;
}

.event-detail-status strong {
    margin-top: 7px;
    color: var(--orange);
    font-size: 18px;
}

.event-detail-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 42px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.event-detail-facts div {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.event-detail-facts span,
.event-detail-meta span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.event-detail-facts strong,
.event-detail-meta strong {
    font-size: 12px;
    line-height: 1.25;
    text-transform: uppercase;
}

.event-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
    border-bottom: 1px solid var(--line);
}

.event-detail-map {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    color: #686864;
    border-right: 1px solid var(--line);
    background: var(--paper-dark);
}

.event-detail-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.event-detail-map-label,
.event-map-start,
.event-map-end {
    position: absolute;
    z-index: 2;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-detail-map-label {
    top: 22px;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: right;
}

.event-map-start {
    bottom: 22px;
    left: 22px;
}

.event-map-end {
    right: 22px;
    bottom: 22px;
    text-align: right;
}

.event-detail-sidebar {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.event-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.event-detail-stats > div {
    display: flex;
    min-height: 128px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.event-detail-stats svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.4;
}

.event-detail-stats span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
}

.event-detail-stats strong {
    font-size: 16px;
    text-transform: uppercase;
}

.event-detail-meta {
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

.event-detail-meta div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.event-detail-meta strong {
    max-width: 62%;
    text-align: right;
}

.event-sidebar-spots {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 26px;
    font-family: var(--mono);
    text-transform: uppercase;
}

.event-sidebar-spots span {
    font-size: 11px;
}

.event-sidebar-spots strong {
    color: var(--orange);
    font-size: 30px;
}

.event-register-button {
    width: 100%;
    margin-top: 16px;
}

.event-content-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr 0.85fr;
    border-bottom: 1px solid var(--line);
}

.event-content-block {
    min-height: 340px;
    padding: 34px 28px;
    border-right: 1px solid var(--line);
}

.event-content-block:last-child {
    border-right: 0;
}

.event-content-block h2 {
    margin: 20px 0;
    font-size: 32px;
    line-height: 0.9;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.event-content-block p {
    max-width: 520px;
    font-size: 14px;
    line-height: 1.5;
}

.event-checklist {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.event-checklist li {
    position: relative;
    padding: 12px 0 12px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.35;
}

.event-checklist li::before {
    position: absolute;
    top: 13px;
    left: 0;
    content: "×";
    color: var(--orange);
    font-family: var(--mono);
    font-size: 17px;
    font-weight: 700;
}

.event-schedule {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.event-schedule li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.event-schedule time {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
}

.event-elevation-section {
    padding: 32px 28px;
    border-bottom: 1px solid var(--line);
}

.elevation-chart {
    height: 220px;
    margin-top: 20px;
    overflow: hidden;
}

.elevation-chart svg {
    width: 100%;
    height: 100%;
}

.elevation-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.event-registration-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    padding: 46px 28px;
    background: var(--paper-dark);
}

.registration-copy h2 {
    margin: 15px 0;
    font-size: 42px;
    line-height: 0.88;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.registration-copy p {
    max-width: 390px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.event-registration-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-content: start;
}

.event-registration-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-registration-form input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    padding: 0 12px;
    outline: none;
    background: var(--paper);
}

.event-registration-form input:focus {
    border-color: var(--ink);
}

.form-wide {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .event-detail-main,
    .event-registration-section {
        grid-template-columns: 1fr;
    }

    .event-detail-map {
        min-height: 520px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .event-detail-sidebar {
        min-height: auto;
    }

    .event-content-grid {
        grid-template-columns: 1fr 1fr;
    }

    .event-schedule-block {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 720px) {
    .event-detail-header {
        padding: 20px 20px 28px;
    }

    .event-detail-id-row {
        margin-top: 36px;
    }

    .event-detail-title-row {
        display: block;
        margin-top: 16px;
    }

    .event-detail-title-row h1 {
        font-size: 58px;
    }

    .event-detail-status {
        width: 100%;
        margin-top: 30px;
    }

    .event-detail-facts {
        grid-template-columns: 1fr 1fr;
        margin-top: 30px;
    }

    .event-detail-facts div {
        min-height: 82px;
    }

    .event-detail-map {
        min-height: 390px;
    }

    .event-detail-sidebar {
        padding: 20px;
    }

    .event-detail-stats {
        grid-template-columns: 1fr 1fr;
    }

    .event-content-grid {
        display: block;
    }

    .event-content-block {
        min-height: auto;
        padding: 28px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .event-elevation-section {
        padding: 28px 20px;
    }

    .elevation-chart {
        height: 150px;
    }

    .event-registration-section {
        display: block;
        padding: 34px 20px;
    }

    .event-registration-form {
        margin-top: 28px;
    }

    .registration-copy h2 {
        font-size: 36px;
    }
}

/* Route Archive */

.routes-page {
    border-bottom: 1px solid var(--line);
}

.route-filter-bar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
}

.route-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.featured-route {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 540px;
    border-bottom: 1px solid var(--line);
}

.featured-route-map {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    color: #686864;
    border-right: 1px solid var(--line);
    background: var(--paper-dark);
}

.featured-route-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.featured-route-map-top,
.featured-route-map-start,
.featured-route-map-end {
    position: absolute;
    z-index: 2;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-route-map-top {
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.featured-route-map-start {
    bottom: 22px;
    left: 20px;
}

.featured-route-map-end {
    right: 20px;
    bottom: 22px;
    text-align: right;
}

.featured-route-copy {
    display: flex;
    flex-direction: column;
    padding: 34px 30px;
}

.featured-route-copy .archive-id {
    display: block;
    margin-top: 12px;
}

.featured-route-copy h2 {
    margin: 20px 0 8px;
    font-size: clamp(42px, 4vw, 72px);
    font-weight: 900;
    line-height: 0.86;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.featured-route-type,
.route-card-type {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-route-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: auto;
    padding-top: 30px;
}

.featured-route-stats > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.featured-route-stats svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.4;
}

.featured-route-stats strong {
    font-size: 12px;
    text-transform: uppercase;
}

.featured-route-stats span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
}

.featured-route-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.featured-route-meta div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.featured-route-meta span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.featured-route-meta strong {
    font-size: 12px;
    text-transform: uppercase;
}

.featured-route-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.route-index-section {
    padding: 32px 28px 42px;
    border-bottom: 1px solid var(--line);
}

.route-index-heading > span {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.route-index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.route-card {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    padding: 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.route-card-head,
.route-card-data,
.route-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.route-card-status {
    color: var(--orange);
    font-weight: 700;
}

.route-card-map {
    height: 140px;
    margin-top: 18px;
    overflow: hidden;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--paper-dark);
}

.route-card-map svg {
    width: 100%;
    height: 100%;
}

.route-card-info {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
}

.route-card-info h3 {
    margin: 0 0 7px;
    font-size: 23px;
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.route-card-region {
    max-width: 90px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
    text-transform: uppercase;
}

.route-card-data {
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.route-card-actions {
    margin-top: 15px;
}

.route-card-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.route-card-actions a:hover {
    color: var(--orange);
}

.route-card-actions svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.route-lock-link {
    color: var(--muted);
}

.route-member-lock {
    display: grid;
    grid-template-columns: 70px 1fr minmax(260px, 420px) auto;
    gap: 24px;
    align-items: center;
    padding: 30px 28px;
    background: var(--paper-dark);
}

.route-lock-icon {
    width: 46px;
    height: 46px;
}

.route-lock-icon svg {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.3;
}

.route-member-lock h2 {
    margin: 10px 0 0;
    font-size: 28px;
    line-height: 0.9;
    text-transform: uppercase;
}

.route-member-lock p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 1000px) {
    .route-index-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .route-member-lock {
        grid-template-columns: 70px 1fr;
    }

    .route-member-lock p,
    .route-member-lock .button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .route-filter-bar {
        display: block;
        padding: 18px 20px;
    }

    .route-filter-group {
        gap: 7px;
    }

    .route-filter-group .filter-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .route-filter-bar .event-filter-meta {
        justify-content: space-between;
        margin-top: 16px;
    }

    .featured-route {
        display: block;
    }

    .featured-route-map {
        min-height: 370px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .featured-route-copy {
        padding: 28px 20px;
    }

    .featured-route-copy h2 {
        font-size: 49px;
    }

    .featured-route-stats {
        gap: 8px;
        padding-top: 28px;
    }

    .featured-route-stats strong {
        font-size: 11px;
    }

    .featured-route-stats span {
        font-size: 8px;
    }

    .featured-route-actions {
        grid-template-columns: 1fr;
    }

    .route-index-section {
        padding: 28px 20px;
    }

    .route-index-grid {
        grid-template-columns: 1fr;
    }

    .route-card {
        min-height: 335px;
    }

    .route-member-lock {
        display: block;
        padding: 28px 20px;
    }

    .route-lock-icon {
        margin-bottom: 18px;
    }

    .route-member-lock p {
        margin: 20px 0;
    }

    .route-member-lock .button {
        width: 100%;
    }
}

/* Route Detail Page */

.route-detail-page {
    border-bottom: 1px solid var(--line);
}

.route-detail-header {
    padding: 22px 28px 34px;
    border-bottom: 1px solid var(--line);
}

.route-detail-id-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 46px;
}

.route-detail-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 18px;
}

.route-detail-title-row h1 {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(54px, 8vw, 136px);
    font-weight: 900;
    line-height: 0.78;
    letter-spacing: -0.085em;
    text-transform: uppercase;
}

.route-detail-type {
    margin: 18px 0 0;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.route-detail-status {
    min-width: 150px;
    padding: 14px 0;
    border-top: 1px solid var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.route-detail-status span,
.route-detail-status strong {
    display: block;
}

.route-detail-status strong {
    margin-top: 7px;
    color: var(--orange);
    font-size: 18px;
}

.route-detail-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 42px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.route-detail-facts div {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.route-detail-facts span,
.route-detail-meta span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.route-detail-facts strong,
.route-detail-meta strong {
    font-size: 12px;
    line-height: 1.25;
    text-transform: uppercase;
}

.route-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
    border-bottom: 1px solid var(--line);
}

.route-detail-map {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    color: #686864;
    border-right: 1px solid var(--line);
    background: var(--paper-dark);
}

.route-detail-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.route-detail-map-label,
.route-map-start,
.route-map-end {
    position: absolute;
    z-index: 2;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.route-detail-map-label {
    top: 22px;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: right;
}

.route-map-start {
    bottom: 22px;
    left: 22px;
}

.route-map-end {
    right: 22px;
    bottom: 22px;
    text-align: right;
}

.route-detail-sidebar {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.route-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.route-detail-stats > div {
    display: flex;
    min-height: 128px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.route-detail-stats svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.4;
}

.route-detail-stats span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
}

.route-detail-stats strong {
    font-size: 16px;
    text-transform: uppercase;
}

.route-detail-meta {
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

.route-detail-meta div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.route-detail-meta strong {
    max-width: 62%;
    text-align: right;
}

.gpx-lock-panel {
    margin-top: auto;
    padding: 22px;
    border: 1px solid var(--ink);
    background: var(--paper-dark);
}

.gpx-lock-panel strong {
    display: block;
    margin-top: 10px;
    font-size: 24px;
    line-height: 0.9;
    text-transform: uppercase;
}

.gpx-lock-panel p {
    margin: 16px 0 20px;
    font-size: 12px;
    line-height: 1.45;
}

.gpx-lock-panel .button {
    width: 100%;
}

.route-detail-content-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr 0.85fr;
    border-bottom: 1px solid var(--line);
}

.route-content-block {
    min-height: 340px;
    padding: 34px 28px;
    border-right: 1px solid var(--line);
}

.route-content-block:last-child {
    border-right: 0;
}

.route-content-block h2 {
    margin: 20px 0;
    font-size: 32px;
    line-height: 0.9;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.route-content-block p {
    max-width: 520px;
    font-size: 14px;
    line-height: 1.5;
}

.route-notes-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.route-notes-list li {
    position: relative;
    padding: 12px 0 12px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.35;
}

.route-notes-list li::before {
    position: absolute;
    top: 13px;
    left: 0;
    content: "+";
    color: var(--orange);
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
}

.route-segments {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.route-segments li {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    gap: 12px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.route-segments span,
.route-segments em {
    font-family: var(--mono);
    font-size: 12px;
    font-style: normal;
    text-transform: uppercase;
}

.route-segments strong {
    font-size: 12px;
    text-transform: uppercase;
}

.route-elevation-section {
    padding: 32px 28px;
    border-bottom: 1px solid var(--line);
}

.route-access-section {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 430px) auto;
    gap: 30px;
    align-items: center;
    padding: 30px 28px;
    background: var(--paper-dark);
}

.route-access-section h2 {
    margin: 10px 0 0;
    font-size: 28px;
    line-height: 0.9;
    text-transform: uppercase;
}

.route-access-section p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .route-detail-main,
    .route-access-section {
        grid-template-columns: 1fr;
    }

    .route-detail-map {
        min-height: 520px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .route-detail-sidebar {
        min-height: auto;
    }

    .route-detail-content-grid {
        grid-template-columns: 1fr 1fr;
    }

    .route-detail-content-grid .route-content-block:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
    }

    .route-access-section .button {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .route-detail-header {
        padding: 20px 20px 28px;
    }

    .route-detail-id-row {
        margin-top: 36px;
    }

    .route-detail-title-row {
        display: block;
        margin-top: 16px;
    }

    .route-detail-title-row h1 {
        font-size: 58px;
    }

    .route-detail-status {
        width: 100%;
        margin-top: 30px;
    }

    .route-detail-facts {
        grid-template-columns: 1fr 1fr;
        margin-top: 30px;
    }

    .route-detail-facts div {
        min-height: 82px;
    }

    .route-detail-map {
        min-height: 390px;
    }

    .route-detail-sidebar {
        padding: 20px;
    }

    .route-detail-stats {
        grid-template-columns: 1fr 1fr;
    }

    .route-detail-content-grid {
        display: block;
    }

    .route-content-block {
        min-height: auto;
        padding: 28px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .route-elevation-section {
        padding: 28px 20px;
    }

    .route-access-section {
        display: block;
        padding: 30px 20px;
    }

    .route-access-section p {
        margin: 20px 0;
    }

    .route-access-section .button {
        width: 100%;
    }
}

/* Member Access / Login */

.access-page,
.login-page {
    border-bottom: 1px solid var(--line);
}

.access-hero {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 430px);
    gap: 40px;
    align-items: end;
    padding: 52px 28px 36px;
    border-bottom: 1px solid var(--line);
}

.access-hero h1,
.login-intro h1 {
    margin: 14px 0 0;
    font-size: clamp(58px, 8vw, 122px);
    font-weight: 900;
    line-height: 0.79;
    letter-spacing: -0.085em;
    text-transform: uppercase;
}

.access-hero p,
.login-intro p {
    max-width: 390px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.form-notice {
    margin: 28px 28px 0;
    padding: 14px 16px;
    border: 1px solid var(--ink);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.form-notice-success {
    border-color: var(--orange);
    background: var(--orange);
}

.form-notice-error {
    color: var(--ink);
    background: var(--paper-dark);
}

.access-form-layout {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    min-height: 540px;
}

.access-benefits {
    display: flex;
    flex-direction: column;
    padding: 36px 28px;
    border-right: 1px solid var(--line);
}

.access-benefits ul {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.access-benefits li {
    position: relative;
    padding: 13px 0 13px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.4;
}

.access-benefits li::before {
    position: absolute;
    top: 11px;
    left: 0;
    content: "+";
    color: var(--orange);
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
}

.access-login-prompt {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 28px;
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.access-login-prompt a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.access-login-prompt a:hover {
    color: var(--orange);
}

.access-login-prompt svg,
.text-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.member-registration-form {
    padding: 36px 28px;
}

.form-errors {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--orange);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.5;
    text-transform: uppercase;
}

.form-errors strong {
    display: block;
    margin-bottom: 8px;
}

.form-errors ul {
    margin: 0;
    padding-left: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid label,
.member-login-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.form-grid input:not([type="checkbox"]),
.member-login-form input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid var(--line);
    outline: none;
    color: var(--ink);
    background: transparent;
    font-family: var(--sans);
    font-size: 14px;
}

.form-grid input:focus,
.member-login-form input:focus {
    border-color: var(--ink);
}

.form-wide {
    grid-column: 1 / -1;
}

.form-checkbox {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px !important;
    padding: 8px 0;
    font-family: var(--sans) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4;
    text-transform: none !important;
}

.form-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--orange);
}

.form-legal {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.5;
    text-transform: uppercase;
}

.access-active-panel {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 26px;
    align-items: center;
    min-height: 340px;
    padding: 42px 28px;
}

.access-active-symbol {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-size: 24px;
}

.access-active-panel h2 {
    margin: 14px 0 10px;
    font-size: 42px;
    line-height: 0.85;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.access-active-panel p {
    margin: 0;
    font-size: 14px;
}

.access-active-actions {
    display: flex;
    min-width: 210px;
    flex-direction: column;
    gap: 10px;
}

.access-active-actions .text-link {
    justify-content: center;
    margin-top: 8px;
}

/* Login */

.login-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 560px;
}

.login-intro {
    display: flex;
    flex-direction: column;
    padding: 50px 28px;
    border-right: 1px solid var(--line);
}

.login-intro p {
    margin-top: auto;
    padding-top: 46px;
}

.login-intro .text-link {
    margin-top: 22px;
}

.member-login-form {
    display: flex;
    max-width: 540px;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    padding: 50px 28px;
}

.member-login-form .button {
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 820px) {
    .access-form-layout,
    .login-layout {
        grid-template-columns: 1fr;
    }

    .access-benefits,
    .login-intro {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .access-active-panel {
        grid-template-columns: 70px 1fr;
    }

    .access-active-actions {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .access-hero {
        display: block;
        padding: 34px 20px 30px;
    }

    .access-hero h1,
    .login-intro h1 {
        font-size: 66px;
    }

    .access-hero p {
        margin-top: 26px;
    }

    .form-notice {
        margin: 20px 20px 0;
    }

    .access-benefits,
    .member-registration-form,
    .login-intro,
    .member-login-form {
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-wide {
        grid-column: auto;
    }

    .access-login-prompt {
        flex-direction: column;
    }

    .access-active-panel {
        display: block;
        padding: 32px 20px;
    }

    .access-active-symbol {
        margin-bottom: 20px;
    }

    .access-active-panel h2 {
        font-size: 37px;
    }

    .access-active-actions {
        margin-top: 24px;
    }

    .login-layout {
        min-height: auto;
    }

    .login-intro p {
        margin-top: 28px;
        padding-top: 0;
    }
}


/* Route Archive Alignment Fix */

.routes-page .page-intro.routes-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 40px;
    align-items: end;
    padding: 52px 28px 34px;
    border-bottom: 1px solid var(--line);
}

.routes-page .page-intro.routes-intro h1 {
    margin: 12px 0 0;
    font-size: clamp(58px, 8vw, 124px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

.routes-page .page-intro.routes-intro p {
    max-width: 380px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.routes-page .route-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
}

.routes-page .route-filter-group {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.routes-page .route-filter-bar .event-filter-meta.route-count-meta {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: right;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .routes-page .page-intro.routes-intro {
        display: block;
        padding: 34px 20px 28px;
    }

    .routes-page .page-intro.routes-intro h1 {
        margin-top: 14px;
        font-size: 68px;
    }

    .routes-page .page-intro.routes-intro p {
        margin-top: 24px;
    }

    .routes-page .route-filter-bar {
        display: block;
        min-height: 0;
        padding: 18px 20px;
    }

    .routes-page .route-filter-bar .event-filter-meta.route-count-meta {
        justify-content: flex-start;
        margin-top: 16px;
        text-align: left;
    }
}

/* Routes Filter Button Normalization */

.routes-page .route-filter-group .filter-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    line-height: 1;
    vertical-align: middle;
}

.routes-page .route-filter-group .filter-label {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    margin-right: 10px;
}

/* Shared keyboard focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.button:focus-visible {
    outline-offset: 3px;
}

button:disabled,
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .55;
}

/* Public archive polish */
@media (hover: hover) {
    .event-card h3 a:hover,
    .route-card-info h3 a:hover,
    .featured-event-copy h2 a:hover,
    .featured-route-copy h2 a:hover {
        color: var(--orange);
    }

    .event-card:hover,
    .route-card:hover {
        background: var(--paper-dark);
    }

    .event-card:hover .event-card-status,
    .route-card:hover .route-card-status {
        color: var(--orange-dark);
    }
}

.filter-button {
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.filter-button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .event-filter-meta,
    .routes-page .route-count-meta {
        white-space: normal;
    }

    .event-filter-meta {
        gap: 8px 16px;
    }

    .featured-event-action .button,
    .featured-route-actions .button {
        min-height: 46px;
    }
}

/* Global navigation and footer refinement */
.desktop-nav a,
.member-link,
.profile-link,
.menu-button,
.footer-actions a {
    -webkit-tap-highlight-color: transparent;
}

.desktop-nav a,
.member-link {
    position: relative;
}

.desktop-nav a.is-active,
.member-link.is-active {
    color: var(--paper);
}

.desktop-nav a.is-active::after,
.member-link.is-active::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    content: "";
    background: currentColor;
}

.profile-link,
.menu-button {
    transition: color .18s ease, background .18s ease;
}

.profile-link:hover,
.menu-button:hover {
    color: var(--orange);
}

.profile-link:focus-visible,
.menu-button:focus-visible,
.desktop-nav a:focus-visible,
.member-link:focus-visible,
.footer-actions a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

.footer-actions a:hover {
    color: var(--paper);
    background: var(--ink);
}

.footer-meta span {
    color: var(--muted);
}

@media (max-width: 1120px) {
    .mobile-menu a[aria-current="page"] {
        color: var(--orange);
    }
}

@media (max-width: 720px) {
    .mobile-menu a {
        min-height: 58px;
        display: flex;
        align-items: center;
    }
}

/* Events archive final polish */
.events-page .page-intro p {
    max-width: 430px;
}

.event-filter-bar {
    align-items: center;
}

.event-filter-group {
    min-width: 0;
}

.filter-button {
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.filter-button:focus-visible,
.featured-event-action .button:focus-visible,
.event-card-link:focus-visible,
.events-access-callout .button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.featured-event-copy,
.event-card {
    min-width: 0;
}

.featured-event-copy h2,
.event-card h3 {
    overflow-wrap: anywhere;
}

.featured-event-type,
.event-card-type {
    letter-spacing: .02em;
}

.featured-event-stats > div {
    min-width: 0;
}

.featured-event-stats strong {
    overflow-wrap: anywhere;
}

.featured-event-map {
    isolation: isolate;
}

.featured-event-map::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 48%, rgba(0,0,0,.035));
}

.featured-event-map > * {
    z-index: 2;
}

.featured-event-map svg {
    z-index: 0;
}

.featured-map-label,
.featured-map-coordinate,
.featured-map-location {
    max-width: 46%;
    line-height: 1.35;
}

.spots-left {
    min-width: 116px;
}

.spots-left.is-full strong {
    color: var(--ink);
    font-size: 17px;
    letter-spacing: -.03em;
}

.event-card {
    transition: background .18s ease;
}

.event-card:hover {
    background: var(--paper-dark);
}

.event-card-status.is-waitlist {
    color: var(--ink);
}

.event-card-footer span:last-child {
    color: var(--orange);
    font-weight: 700;
}

.event-card-link {
    width: fit-content;
}

.events-access-callout .button {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .event-filter-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-filter-meta {
        width: 100%;
        justify-content: space-between;
    }

    .featured-event-map {
        min-height: 440px;
    }
}

@media (max-width: 720px) {
    .filter-button {
        min-height: 34px;
        padding: 0 11px;
    }

    .featured-event-map {
        min-height: 350px;
    }

    .featured-map-label,
    .featured-map-coordinate,
    .featured-map-location {
        max-width: 58%;
        font-size: 11px;
    }

    .featured-event-stats {
        grid-template-columns: 1fr 1fr;
        row-gap: 18px;
    }

    .featured-event-stats span {
        font-size: 9px;
    }

    .featured-event-date {
        flex-wrap: wrap;
        row-gap: 9px;
    }

    .featured-event-date span:last-child {
        width: 100%;
    }

    .event-card:hover {
        background: transparent;
    }

    .event-card-footer {
        gap: 16px;
    }

    .event-card-footer span:first-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .events-access-callout .button {
        white-space: normal;
    }
}


/* Global Map Background Layer */
.zontrac-map-surface.has-global-map-bg {
    position: relative;
    overflow: hidden;
    background: var(--paper-dark);
}

.zontrac-map-surface.has-global-map-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--zontrac-map-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .96;
}

.zontrac-map-surface.has-global-map-bg > * {
    position: relative;
    z-index: 2;
}

.zontrac-map-surface.has-global-map-bg svg {
    position: relative;
    z-index: 1;
}

.zontrac-map-surface.has-global-map-bg svg rect[fill^="url"] {
    opacity: 0;
}

.route-map-panel.zontrac-map-surface.has-global-map-bg .route-map {
    position: absolute;
}

.zontrac-map-surface.has-global-map-bg svg path[opacity=".25"] {
    opacity: 0;
}

/* Header system split: Field Notes journal / Wildlands Explorer Program */
.site-header-field-notes {
    grid-template-columns: minmax(250px, .82fr) minmax(0, 1.7fr) minmax(220px, .72fr);
    gap: 24px;
    background: var(--paper);
}

.site-header-wildlands {
    grid-template-columns: minmax(330px, 1fr) auto minmax(260px, 1fr);
}

.brand-field-notes,
.brand-wildlands {
    gap: 14px;
    min-width: 0;
}

.brand-logo-zontrac {
    width: auto;
    height: 32px;
    flex: 0 0 auto;
}

.brand-field-notes .brand-logo-zontrac {
    height: 42px;
}

.brand-wildlands .brand-logo-zontrac {
    height: 42px;
}

.brand-logo-wildlands {
    width: min(220px, 24vw);
    height: auto;
    max-height: 28px;
    padding-left: 14px;
    border-left: 1px solid var(--ink);
}

.brand-edition {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding-left: 14px;
    border-left: 1px solid var(--ink);
    font-family: var(--mono);
    text-transform: uppercase;
}

.brand-edition strong {
    font-size: 13px;
    line-height: 1;
}

.brand-edition em {
    color: var(--muted);
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.1;
}

.desktop-nav-field-notes {
    justify-content: center;
    gap: clamp(15px, 1.45vw, 30px);
    font-size: 10px;
}

.site-header-field-notes .desktop-nav-field-notes a {
    position: relative;
    color: var(--ink);
    transition: color .18s ease;
}

.site-header-field-notes .desktop-nav-field-notes a:hover,
.site-header-field-notes .desktop-nav-field-notes a:focus-visible {
    color: var(--orange-dark);
}

.site-header-field-notes .desktop-nav-field-notes a.is-active {
    color: var(--ink);
}

.site-header-field-notes .desktop-nav-field-notes a.is-active::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    background: var(--orange-dark);
    content: "";
}

.site-header-field-notes .desktop-nav-field-notes a.is-active:hover,
.site-header-field-notes .desktop-nav-field-notes a.is-active:focus-visible {
    color: var(--orange-dark);
}

.field-notes-program-link {
    max-width: 150px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-align: right;
    text-transform: uppercase;
}

.field-notes-program-link:hover,
.field-notes-program-link:focus-visible {
    color: var(--orange-dark);
}

.system-bar-field-notes {
    background: var(--ink);
    color: var(--paper);
}

.system-bar-field-notes .status-dot {
    background: var(--orange);
}

.system-bar-field-notes .system-meta strong {
    color: var(--orange);
}

.mobile-menu-field-notes .mobile-program-entry {
    margin-top: 10px;
    border-top: 2px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    padding-right: 12px;
    padding-left: 12px;
}

@media (max-width: 1320px) {
    .site-header-field-notes {
        grid-template-columns: minmax(230px, .8fr) minmax(0, 1.4fr) minmax(190px, .65fr);
    }

    .desktop-nav-field-notes {
        gap: 14px;
        font-size: 9px;
    }

    .brand-logo-wildlands {
        width: min(185px, 20vw);
    }
}

@media (max-width: 1120px) {
    .site-header-field-notes,
    .site-header-wildlands {
        grid-template-columns: 1fr auto;
    }

    .header-actions-field-notes {
        gap: 14px;
    }

    .field-notes-program-link {
        max-width: none;
        font-size: 9px;
    }
}

@media (max-width: 720px) {
    .site-header-field-notes,
    .site-header-wildlands {
        padding-right: max(18px, env(safe-area-inset-right));
        padding-left: max(18px, env(safe-area-inset-left));
    }

    .brand-logo-zontrac,
    .brand-wildlands .brand-logo-zontrac {
        height: 25px;
    }

    .brand-field-notes .brand-logo-zontrac {
        height: 42px;
    }

    .brand-logo-wildlands {
        display: none;
    }

    .brand-field-notes .brand-edition {
        display: none;
    }

    .field-notes-program-link {
        display: none;
    }

    .system-bar-field-notes .system-location {
        max-width: 230px;
    }
}

/* Consent banner */
body.consent-open {
    overflow: hidden;
}

.consent-panel[hidden],
.consent-settings-button[hidden] {
    display: none !important;
}

.consent-panel {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 24px;
    background: rgba(17, 17, 15, .58);
}

.consent-panel-inner {
    width: min(100%, 980px);
    margin: 0 auto;
    border: 1px solid var(--ink);
    background: var(--paper);
    box-shadow: 0 18px 60px rgba(17, 17, 15, .24);
}

.consent-panel-copy {
    display: grid;
    grid-template-columns: minmax(190px, .45fr) minmax(0, 1fr);
    gap: 24px;
    padding: 24px 26px;
    border-bottom: 1px solid var(--line);
}

.consent-eyebrow,
.consent-status,
.consent-button,
.consent-settings-button {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.consent-eyebrow {
    color: var(--orange-dark);
}

.consent-panel-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 900;
    line-height: .86;
    letter-spacing: -.065em;
    text-transform: uppercase;
}

.consent-panel-copy p,
.consent-option p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.consent-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.consent-option {
    display: flex;
    min-height: 128px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 26px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.consent-option:last-child {
    border-right: 0;
}

.consent-option strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    text-transform: uppercase;
}

.consent-option p {
    max-width: 330px;
    color: var(--muted);
}

.consent-status {
    flex: 0 0 auto;
    color: var(--muted);
}

.consent-option-toggle {
    cursor: pointer;
}

.consent-switch {
    position: relative;
    display: block;
    width: 48px;
    height: 26px;
    flex: 0 0 48px;
}

.consent-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.consent-switch span {
    position: absolute;
    inset: 0;
    border: 1px solid var(--ink);
    background: var(--paper-dark);
}

.consent-switch span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--ink);
    content: "";
    transition: transform .16s ease;
}

.consent-switch input:checked + span {
    background: var(--orange);
}

.consent-switch input:checked + span::after {
    transform: translateX(22px);
}

.consent-switch input:focus-visible + span {
    outline: 2px solid var(--orange-dark);
    outline-offset: 3px;
}

.consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.consent-button {
    min-height: 48px;
    border: 0;
    border-right: 1px solid var(--ink);
    padding: 0 18px;
    color: var(--ink);
    background: var(--paper-dark);
}

.consent-button:last-child {
    border-right: 0;
}

.consent-button:hover,
.consent-button:focus-visible {
    color: var(--paper);
    background: var(--ink);
    outline: none;
}

.consent-button-primary {
    background: var(--orange);
}

.consent-settings-button {
    position: fixed;
    z-index: 90;
    right: 14px;
    bottom: 14px;
    min-height: 32px;
    border: 1px solid var(--ink);
    padding: 0 12px;
    color: var(--ink);
    background: var(--paper);
}

.consent-settings-button:hover,
.consent-settings-button:focus-visible {
    color: var(--paper);
    background: var(--ink);
    outline: none;
}

@media (max-width: 720px) {
    .consent-panel {
        overflow-y: auto;
        align-items: end;
        padding: 10px;
    }

    .consent-panel-inner {
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .consent-panel-copy,
    .consent-options,
    .consent-actions {
        grid-template-columns: 1fr;
    }

    .consent-panel-copy {
        gap: 12px;
        padding: 20px;
    }

    .consent-panel-copy h2 {
        font-size: 38px;
    }

    .consent-option {
        min-height: 0;
        padding: 18px 20px;
        border-right: 0;
    }

    .consent-button {
        border-right: 0;
        border-bottom: 1px solid var(--ink);
    }

    .consent-button:last-child {
        border-bottom: 0;
    }

    .consent-settings-button {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        font-size: 9px;
    }
}

