html.has-two-navbars-fixed-top {
    padding-top: 3.25rem;
}

.site-brand {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
}

.site-brand-logo {
    width: 3rem;
    height: 3rem;
    margin-right: 0.5rem;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
}

.cancellation-label {
    vertical-align: top;
}

@media screen and (max-width: 1023px) {
    html.has-two-navbars-fixed-top {
        padding-top: 6.5rem;
    }
}

.navbar.z-top {
    z-index: 9999;
}

.navbar-brand img {
    width: var(--bulma-navbar-height);
    height: var(--bulma-navbar-height);
    max-height: var(--bulma-navbar-height);
    margin-right: .5rem;
}

#parkrun-map {
    height: 400px;
    width: 100%;
    margin-bottom: 1.5rem;
    margin-right: 2em;
}

.toilet-map-marker {
    background: transparent;
    border: 0;
}

.toilet-map-marker span {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 6px;
    background: #16734b;
    box-shadow: 0 1px 4px rgb(0 0 0 / 45%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.leaflet-container [role=button] {
    padding: 0px 0px;
}

.leaflet-marker-pane [role=button] {
    border: none;
    background-color: transparent;
    padding: 0px 0px;
}

html, body, #map{
    width: 100%;
    height: 100%;
}

.full-body {
    display: flex;
    flex-direction: column;
}

.tnum {
    font-variant-numeric: tabular-nums;
}

.tag-green {
    border-radius: 4px;
    background-color: #48c774;
    color: white;
    padding: 0.25em 0.5em;
    font-size: 75%;
}
.tag-orange {
    border-radius: 4px;
    background-color: #ffdd57;
    color: black;
    padding: 0.25em 0.5em;
    font-size: 75%;
}
.tag-red {
    border-radius: 4px;
    background-color: #f14668;
    color: white;
    padding: 0.25em 0.5em;
    font-size: 75%;
}
.box-red {
    border-radius: 4px;
    background-color: #f14668;
    color: white;
    padding: 1em;
}
.box-red a {
    color: white;
    text-decoration: underline;
}

.grey-text {
    color: #7a7a7a;
}

/* mark external links with an icon */
a[href^="http"]::after,
a[href^="https://"]::after
{
    content: "";
    width: 11px;
    height: 11px;
    margin-left: 4px;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    display: inline-block;
}

#parkruns-table_wrapper {
    overflow-x: scroll;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.article-card {
    padding: 1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 0.75rem;
}

.article-card h2 {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.article-meta {
    color: var(--pico-muted-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 1.5rem;
}

.planned-section + .planned-section {
    margin-top: 2.5rem;
}

.planned-section > header h2 {
    margin-bottom: 0.5rem;
}

.planned-section > header p {
    margin-bottom: 1.25rem;
}

.planned-grid {
    display: grid;
    /* auto-fill (not auto-fit) keeps card width consistent even with few cards */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
}

.planned-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    border-top: 0.3rem solid var(--pico-primary);
}

.planned-card-confirmed {
    border-top-color: var(--pico-primary);
}

.planned-card-test {
    border-top-color: var(--pico-ins-color);
}

.planned-card-unknown {
    border-top-color: var(--pico-muted-color);
}

.planned-card-image {
    width: 100%;
    height: 12rem;
    margin-bottom: 1rem;
    object-fit: contain;
}

.planned-card > header {
    xx-flex: 1;
}
.planned-card > main {
    flex: 1;
}
.planned-card h3 {
    margin-top: 0.6rem;
    margin-bottom: 0;
    font-size: 1.15rem;
}

.planned-status {
    color: var(--pico-muted-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.planned-date {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.planned-location {
    color: var(--pico-muted-color);
    margin-bottom: 1rem;
}

.planned-card footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.planned-card footer a[role="button"] {
    margin-bottom: 0;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
}

/* Mobile navigation wrapping */
@media screen and (max-width: 768px) {
    header nav ul:last-child {
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: start;
    }
}