body {
    margin: 8px;
    background: #f5f6f8;
}

.sessions {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    font-size: 20px; /* increased from 18px */
}

#gp {
    font-size: clamp(14px, 3.8vw, 22px);
    white-space: nowrap;
    line-height: 1.1;
    margin: 6px 0 10px;
}

#timezone {
    margin: 10px 0 8px;
    font-size: clamp(13px, 3.2vw, 16px);
    font-weight: 600;
    color: #4b5563;
}

#prevEvent,
#resetEvent,
#nextEvent {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 2px 4px;
    margin: 0 10px 0 0;
    font-size: clamp(13px, 3.2vw, 16px);
    font-weight: 600;
    color: #374151;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

#prevEvent:hover,
#resetEvent:hover,
#nextEvent:hover {
    color: #111827;
}

#prevEvent:focus-visible,
#resetEvent:focus-visible,
#nextEvent:focus-visible {
    outline: 2px solid #9ca3af;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Desktop layout */
@media (min-width: 601px) {
    .sessions {
        margin-left: 0;
        margin-right: auto;
    }
}

.session-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 18px 22px; /* slightly more breathing room */
    border-bottom: 1px solid #ddd;
    align-items: center;
}

.session-name {
    font-weight: bold;
    font-size: 22px; /* increased */
}

.session-countdown {
    text-align: left;
    font-size: 20px;
}

.session-time {
    text-align: left;
    font-size: 20px;
}

/* Mobile layout */
@media (max-width: 600px) {

    .sessions {
        font-size: clamp(14px, 3.5vw, 17px);
    }

    .session-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "name name"
            "countdown localstart";
        row-gap: 2px;
        column-gap: 8px;
        padding: 10px 12px;
        border: 1px solid #e6e6e6;
        margin-bottom: 8px;
        border-radius: 6px;
        background: #fff;
    }

    .session-name {
        font-size: clamp(18px, 4.2vw, 22px);
        grid-area: name;
    }

    .session-countdown,
    .session-time {
        font-size: clamp(14px, 3.5vw, 17px);
        white-space: nowrap;
    }

    .session-countdown {
        grid-area: countdown;
    }

    .session-time {
        grid-area: localstart;
        text-align: right;
    }

    [id^="countdown"],
    [id^="localstart"] {
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        min-width: max-content;
    }
}
