fieldset {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: none;
    padding: 0;
    margin: 0;
}

fieldset legend {
    font-weight: 600;
    margin-right: .5rem;
}

fieldset label {
    display: flex;
    align-items: center;
    gap: .35rem;
}


.activities {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.activities label {
    display: flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

/* ---- Theme tokens ----------------------------------------------------
 *
 * One palette for the whole site. The activity colours are shared by the
 * front page's session chips, the schedule timeline's blocks and the
 * legend swatches, so an activity is the same colour wherever it appears.
 */

:root {
    --ur-bg: #0b0f14;
    --ur-surface: #141a22;
    --ur-surface-hover: #1a2029;
    --ur-border: rgba(255, 255, 255, 0.09);
    --ur-border-strong: rgba(255, 255, 255, 0.2);

    --ur-text: rgba(255, 255, 255, 0.92);
    --ur-text-muted: rgba(255, 255, 255, 0.55);
    --ur-text-faint: rgba(255, 255, 255, 0.38);

    --ur-accent: #e0904f;
    --ur-accent-border: rgba(224, 144, 79, 0.55);

    /* Activity colours, light-on-dark. Each is a two-stop gradient so the
       chips have the same soft sheen as the mockups. */
    --ur-public_skate: #7cc7ea;
    --ur-public_skate-2: #a5dcf5;
    --ur-freestyle: #5fd6ac;
    --ur-freestyle-2: #8fe8c8;
    --ur-stick_and_puck: #e8b84b;
    --ur-stick_and_puck-2: #f2cd72;
    --ur-drop_in: #ef9350;
    --ur-drop_in-2: #f7b077;
}

body {
    background: var(--ur-bg);
}


/* ---- Shared page furniture ------------------------------------------ */

.page-intro {
    margin-bottom: 1.75rem;
}

.page-title {
    margin: 0 0 0.35rem;
    font-size: 1.9rem;
    line-height: 1.15;
}

.page-subtitle {
    margin: 0;
    max-width: 46rem;
    color: var(--ur-text-muted);
}

.notice {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid var(--ur-border);
    background: var(--ur-surface);
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--ur-text-muted);
}

.notice-warning {
    border-color: var(--ur-accent-border);
    background: rgba(224, 144, 79, 0.09);
    color: #f0c9a4;
}


/* Running text pages (About). Capped measure so lines stay readable
   instead of running the full width of a desktop container. */

.prose {
    max-width: 44rem;
}

.prose p {
    color: var(--ur-text-muted);
    line-height: 1.65;
}

.prose strong {
    color: var(--ur-text);
    font-weight: 600;
}

.prose .rink-section-heading {
    margin-top: 2.25rem;
}

/* ---- Front page ------------------------------------------------------ */

.home-layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    grid-template-areas:
        "filter  days"
        "notices days";
    grid-template-rows: auto 1fr;
    gap: 1.5rem 2.25rem;
    align-items: start;
}

.home-filter { grid-area: filter; }
.home-notices { grid-area: notices; display: grid; gap: 0.75rem; }
.home-days { grid-area: days; }

.sidebar-heading {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ur-text-faint);
}

.type-filter {
    display: grid;
    gap: 0.15rem;
}

.type-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;

    width: 100%;
    padding: 0.7rem 0.9rem;
    margin: 0;

    font-size: 1rem;
    font-weight: 500;
    text-align: left;

    color: var(--ur-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.8rem;

    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.type-option:hover {
    color: var(--ur-text);
    background: var(--ur-surface);
}

.type-option-active {
    color: var(--ur-text);
    background: var(--ur-surface);
    border-color: var(--ur-border);
}

.type-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    flex: 0 0 auto;
    background: var(--ur-text-faint);
}

.type-dot-all {
    background: linear-gradient(135deg, var(--ur-drop_in), var(--ur-public_skate));
}

.type-dot-public_skate { background: var(--ur-public_skate); }
.type-dot-freestyle { background: var(--ur-freestyle); }
.type-dot-stick_and_puck { background: var(--ur-stick_and_puck); }
.type-dot-drop_in { background: var(--ur-drop_in); }

.home-days {
    display: grid;
    gap: 2.25rem;
}

.day-group {
    display: grid;
    gap: 0.9rem;
}

.day-heading {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ur-text-faint);
}

.day-empty {
    margin: 0;
    color: var(--ur-text-faint);
}

.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
    gap: 0.75rem;
}

.session-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.95rem;

    padding: 0.85rem 1.1rem;

    border: 1px solid var(--ur-border);
    border-radius: 1rem;
    background: var(--ur-surface);

    text-decoration: none;
    color: inherit;

    transition: border-color .15s ease, background-color .15s ease;
}

.session-card:hover {
    border-color: var(--ur-border-strong);
    background: var(--ur-surface-hover);
    text-decoration: none;
}

.session-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 3.1rem;
    height: 3.1rem;
    flex: 0 0 auto;

    border-radius: 0.85rem;

    font-family: var(--ur-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;

    /* Dark text on the light chip -- these fills are bright enough that
       white lettering would smear at this size. */
    color: #0b0f14;
}

.session-chip-public_skate {
    background: linear-gradient(160deg, var(--ur-public_skate-2), var(--ur-public_skate));
}

.session-chip-freestyle {
    background: linear-gradient(160deg, var(--ur-freestyle-2), var(--ur-freestyle));
}

.session-chip-stick_and_puck {
    background: linear-gradient(160deg, var(--ur-stick_and_puck-2), var(--ur-stick_and_puck));
}

.session-chip-drop_in {
    background: linear-gradient(160deg, var(--ur-drop_in-2), var(--ur-drop_in));
}

.session-body {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.session-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ur-text);
    line-height: 1.2;
}

.session-where {
    font-size: 0.92rem;
    color: var(--ur-text-muted);
    line-height: 1.3;
}

/* Filled in by rinks.js once geolocation resolves; empty otherwise, so the
   location line reads normally for anyone who declines. nowrap keeps the
   whole " . 22.8 mi" together rather than breaking before the unit. */
.session-distance {
    white-space: nowrap;
}

.session-time {
    font-family: var(--ur-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ur-text);
    white-space: nowrap;
}

.home-hint {
    margin: 0;
    color: var(--ur-text-faint);
    font-size: 0.92rem;
}

/* Below the two-column breakpoint the sidebar becomes a horizontal
   scroller above the list, and the cards flatten into full-width rows
   separated by rules rather than floating boxes -- the phone mockup. */
@media (max-width: 900px) {

    .home-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "filter"
            "days"
            "notices";
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .sidebar-heading {
        display: none;
    }

    .type-filter {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .type-option {
        width: auto;
        flex: 0 0 auto;
        padding: 0.55rem 0.9rem;
        border-color: var(--ur-border);
        background: var(--ur-surface);
        font-size: 0.95rem;
    }

    .session-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .session-card {
        border-radius: 0;
        border-width: 0 0 1px 0;
        background: transparent;
        padding: 0.85rem 0.25rem;
    }

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

}

/* ---- Schedule timeline ---------------------------------------------- */

/* Aliases onto the shared palette above rather than a second set of
   colours: freestyle used to be purple here and green on the front page,
   which made the same session look like two different activities
   depending on which view you were in. */
:root {
    --tl-public_skate: var(--ur-public_skate);
    --tl-freestyle: var(--ur-freestyle);
    --tl-stick_and_puck: var(--ur-stick_and_puck);
    --tl-drop_in: var(--ur-drop_in);
    --tl-rink-col: 190px;
}

.schedule-title {
    margin: 0 0 0.75rem;
    font-size: 1.9rem;
    line-height: 1.15;
}

.tl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.tl-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.tl-swatch {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 0.2rem;
    flex: 0 0 auto;
}

.tl-swatch-public_skate { background: var(--tl-public_skate); }
.tl-swatch-freestyle { background: var(--tl-freestyle); }
.tl-swatch-stick_and_puck { background: var(--tl-stick_and_puck); }
.tl-swatch-drop_in { background: var(--tl-drop_in); }

.tl-days {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.tl-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex: 1 1 0;
    min-width: 5.5rem;
    padding: 0.7rem 0.5rem;
    border: 1px solid var(--ur-border);
    border-radius: 0.9rem;
    text-decoration: none;
    color: var(--ur-text);
    background: var(--ur-surface);
}

.tl-day:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

.tl-day-selected {
    border-color: var(--ur-accent-border);
    background: linear-gradient(
        135deg,
        rgba(214, 138, 74, 0.26),
        rgba(214, 138, 74, 0.07)
    );
}

.tl-day-selected .tl-day-weekday {
    color: var(--ur-accent);
}

.tl-day-weekday {
    font-weight: 700;
}

.tl-day-date {
    font-size: 0.95rem;
    opacity: 0.85;
}

.tl-day-count {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* The grid gets a min-width so narrow screens scroll it horizontally
   rather than crushing the hour columns into unreadable slivers. */
.tl-scroll {
    overflow-x: auto;
}

.tl-grid {
    min-width: 720px;
}

.tl-row {
    display: grid;
    grid-template-columns: var(--tl-rink-col) 1fr;
    gap: 1rem;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tl-header {
    border-top: none;
}

.tl-rink {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 0;
    min-width: 0;
}

.tl-rink strong {
    line-height: 1.2;
}

.tl-rink span {
    font-size: 0.85rem;
    opacity: 0.6;
}

.tl-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
    padding: 0.55rem 0;
    min-height: 3.4rem;
}

.tl-ruler {
    min-height: 1.8rem;
    padding: 0;
}

.tl-tick {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 0.78rem;
    opacity: 0.55;
    white-space: nowrap;
}

.tl-gridline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.tl-lane {
    position: relative;
    height: 2.1rem;
}

.tl-block {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-width: 2.75rem;
    padding: 0 0.5rem;
    border-radius: 0.4rem;
    color: #0e1117;
    text-decoration: none;
    line-height: 1.15;
}

.tl-block:hover {
    filter: brightness(1.12);
}

.tl-block-label {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-block-time {
    font-size: 0.7rem;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
}

.tl-block-public_skate { background: var(--tl-public_skate); }
.tl-block-freestyle { background: var(--tl-freestyle); }
.tl-block-stick_and_puck { background: var(--tl-stick_and_puck); }
.tl-block-drop_in { background: var(--tl-drop_in); }

/* Left-aligned, not centred: the track is wider than the viewport on
   narrow screens, so a centred label starts off past the scroll edge. */
.tl-closed {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0.4rem;
    background: rgba(255, 80, 80, 0.1);
    color: #ff8a8a;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0 0.85rem;
}

.tl-empty {
    font-size: 0.82rem;
    opacity: 0.35;
    padding-left: 0.15rem;
}

.tl-hint {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    opacity: 0.55;
}

/* Rink page: one date per row instead of one rink per row. Same track
   geometry, so all the .tl-* rules above still apply. */
.tl-date-cell {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
}

.tl-date-cell strong {
    min-width: 2.2rem;
}

.tl-date-today strong,
.tl-date-today span {
    color: var(--pico-primary);
}

/* Days with nothing scheduled stay in the list -- a visible gap is the
   useful signal -- but shrink so they don't dominate the page. */
.tl-row-empty .tl-track,
.tl-row-empty .tl-rink {
    min-height: 0;
    padding: 0.3rem 0;
}

.tl-row-empty {
    opacity: 0.45;
}

span.tl-block {
    cursor: default;
}

/* Blocks anchored by their right edge (see build_lanes) must not also
   resolve a left, or the box would be over-constrained and overflow. */
.tl-block[style*="right:"] {
    left: auto;
}

@media (max-width: 640px) {
    :root {
        --tl-rink-col: 140px;
    }

    .tl-day {
        min-width: 4.75rem;
        padding: 0.55rem 0.4rem;
    }
}

.rink-section {
    margin-bottom: 2.5rem;
}

.rink-hero {
    margin-bottom: 1.25rem;
}

.rink-hero-photo {
    width: 100%;
    height: 260px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2942, #1c3b5a 60%, #2a4d70);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rink-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rink-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Scoped past ".rink-hero-photo img", which sets object-fit: cover for real
   rink photos and out-specificities a lone class. A logo isn't a photo: the
   fallback box is far wider than the mark, so "cover" was scaling it up and
   slicing the bottom line off the wordmark. */
.rink-hero-photo .rink-hero-placeholder-logo {
    width: auto;
    height: auto;
    max-width: 60%;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.4));
}

.rink-hero-info {
    margin-top: 1rem;
}

.rink-hero-info h2 {
    margin: 0 0 0.25rem;
}

.rink-tagline {
    margin: 0;
    opacity: 0.75;
}

.rink-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0 0 1.25rem;
}

.rink-fact {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rink-fact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
}

.rink-fact a {
    font-weight: 600;
}

.rink-description {
    max-width: 760px;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.fact-card {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.035);
}

.fact-card strong {
    display: block;
    margin-bottom: 0.15rem;
}

.fact-card small {
    display: block;
    margin-top: 0.35rem;
    opacity: 0.7;
}

.fact-tag {
    display: inline-block;
    margin: 0.15rem 0;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 200, 80, 0.15);
    color: #ffcf6b;
    font-size: 0.75rem;
    font-weight: 600;
}

.activity-card {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.035);
}

.activity-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.activity-icon {
    font-size: 1.4rem;
}

.activity-price {
    font-weight: 600;
    color: var(--pico-primary);
}

.activity-note {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    opacity: 0.75;
}

.closure-banner {
    margin: 0.75rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 0.5rem;
    background: rgba(255, 80, 80, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

.closure-badge {
    margin: 0.15rem 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff8a8a;
}

.rink-section-heading {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.day-section {
    margin-bottom: 2rem;
}

.event-book-link {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pico-primary);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.45rem;
    background: #161b24;
}

.event-icon {
    width: 2.25rem;
    flex: 0 0 2.25rem;
    text-align: center;
    font-size: 1.5rem;
}

.event-info strong,
.event-info div,
.event-info small {
    display: block;
}

/*
.day-group {
    margin-bottom: 2rem;
}

.day-group h3 {
    margin-bottom: 0.75rem;
}

.session-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 1rem;
}

.session-icon {
    font-size: 2rem;
    min-width: 2.5rem;
    text-align: center;
}
*/


.brand {
    flex: 0 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 84px;
    width: auto;
    max-width: 100%;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;

    padding-bottom: 1.1rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--ur-border);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/*
 * Shared "pill" look for every top-level nav control. Pico's own
 * nav/button selectors mix type and attribute selectors that can
 * out-specificity a plain class, so these use !important to guarantee all
 * four end up visually identical rather than fighting Pico rule-by-rule.
 */
.nav-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 0.5rem;

    height: 2.9rem !important;
    box-sizing: border-box !important;
    padding: 0 1.1rem !important;
    margin: 0 !important;

    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap;

    color: var(--ur-text) !important;
    border: 1px solid var(--ur-border) !important;
    border-radius: 0.9rem !important;
    background: var(--ur-surface) !important;

    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.nav-pill:hover {
    border-color: var(--ur-border-strong) !important;
    background: var(--ur-surface-hover) !important;
}

/* The active pill picks up the warm accent so the current section reads at
   a glance without relying on the icon alone. */
.nav-pill-active {
    color: #fff !important;
    border-color: var(--ur-accent-border) !important;
    background: linear-gradient(
        135deg,
        rgba(214, 138, 74, 0.26),
        rgba(214, 138, 74, 0.07)
    ) !important;
}

.nav-pill-icon {
    width: 2.9rem !important;
    padding: 0 !important;
}

.nav-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-pill-icon .nav-icon {
    width: 1.3rem;
    height: 1.3rem;
}

@media (max-width: 850px) {
    .site-header {
        justify-content: flex-start;
    }

    .brand-logo {
        height: 62px;
    }

    .site-nav {
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .nav-pill {
        padding: 0 0.85rem !important;
        font-size: 0.95rem !important;
    }
}

.settings-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}

.settings-modal {
    background: var(--pico-background-color, #161b24);
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
}

.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.settings-modal-header h2 {
    margin: 0;
}

.settings-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.settings-modal-hint {
    opacity: 0.75;
    font-size: 0.9rem;
    margin: 0.25rem 0 1rem;
}

.settings-modal-body fieldset {
    display: block;
    margin-bottom: 1.25rem;
}

.settings-modal-body legend {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.settings-modal-body label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
}

.settings-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}


.rinks-rink-logo{
    width: 220px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-card,
.rink-card {
    text-decoration: none;
    color: inherit;
}

.nav-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-card:hover,
.rink-card:hover {
    border-color: var(--ur-border-strong);
    background: var(--ur-surface-hover);
}

.card-icon {
    font-size: 2rem;
    line-height: 1;
}

.nav-card h3 {
    margin-bottom: 0.25rem;
}

.nav-card p {
    margin: 0;
    opacity: 0.75;
}

.rink-list {
    display: grid;
    gap: 2.5rem;
}


.rink-card {
    display: grid;
    grid-template-columns: 220px minmax(280px, 1fr) 340px;
    gap: 2rem;
    align-items: center;

    padding: 1.25rem 1.5rem;
    border: 1px solid var(--ur-border);
    border-radius: 1rem;
    background: var(--ur-surface);

    transition: border-color .15s ease, background-color .15s ease;
}

/* width is 100% of whatever grid track holds it, capped at the desktop
   size -- an unconditional width here would overflow the narrower track
   the card switches to below 1024px and overlap the rink name. */
.rink-logo-container {
    width: 100%;
    max-width: 220px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.rink-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rink-info {
    text-align: left;
}

.rink-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.75rem;
    line-height: 1.1;
}

.rink-info p {
    margin: 0;
    font-size: 1.05rem;
    opacity: 0.8;
}


.rink-meta {
    margin: 0;
    color: var(--ur-text-muted);
    font-size: 1.05rem;
}

.rink-distance {
    color: var(--pico-muted-color);
    font-weight: 500;
}

.rink-next-events {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rink-summary {
    display: grid;
    gap: .35rem;

    font-size: .9rem;
}

.rink-summary-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    column-gap: 1rem;
    align-items: baseline;
}

.rink-summary-row span {
    color: var(--ur-text-muted);
    white-space: nowrap;
}

.rink-summary-row strong {
    color: var(--ur-text);
    font-weight: 700;
    white-space: nowrap;
    text-align: left;
}

.rink-next-pill {
    display: inline-flex;
    gap: 0.4rem;
    align-items: baseline;

    padding: 0.35rem 0.6rem;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.06);
    color: var(--pico-muted-color);

    font-size: 0.9rem;
    line-height: 1.1;
    white-space: nowrap;
}

.rink-next-pill strong {
    color: var(--pico-primary);
    font-weight: 700;
}

/* The three-column card needs ~904px, but Pico's .container is only 700px
   wide until the 1024px breakpoint -- so the two-column layout has to take
   over for the whole band below that, not just below 850px. Landscape
   phones (852-932px) land squarely in here. */
@media (max-width: 1023px) {

    .rink-card {
        grid-template-columns: 150px 1fr;
    }

    .rink-summary {
        grid-column: 2;
        margin-top: .75rem;
    }

}

/* The summary rows' fixed 140px label column plus nowrap times give the
   card's second grid track a ~298px min-content floor, which pushes the
   whole card past the viewport just above the single-column breakpoint.
   Let the rows shrink well before then.

   minmax rather than auto so the label column still resolves to one
   shared width across rows -- the times stay aligned in a column instead
   of each row picking its own offset. */
@media (max-width: 640px) {

    .rink-summary-row {
        grid-template-columns: minmax(min-content, 8rem) 1fr;
        column-gap: 0.6rem;
    }

    .rink-summary-row span,
    .rink-summary-row strong {
        white-space: normal;
        min-width: 0;
    }

    .rink-info,
    .rink-summary {
        min-width: 0;
    }

}

@media (max-width: 480px) {

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

    .rink-summary {
        grid-column: 1;
    }

}