.fml-lds-home-location {
    display: block;
    color: var(--md-muted, #515964);
    font-size: .86em;
    margin-top: .16em;
}

.fml-team-panel--stadium {
    --lds-stadium-offset: calc(5.5rem + var(--wp-admin--admin-bar--height, 0px));
    scroll-margin-top: var(--lds-stadium-offset);
}
.fml-team-panel--stadium > .fml-team-panel-title { display: none; }
.fml-team-panel--stadium :where(.fml-lds-ground, .fml-lds-ground [id], .fml-lds-showcase [id]) {
    scroll-margin-top: var(--lds-stadium-offset);
}

.fml-lds-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--md-card-space);
}
.fml-lds-showcase-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    align-items: center;
    gap: var(--md-panel-inset);
    padding: var(--md-panel-inset);
    border-top: 3px solid var(--md-gold);
    border-radius: var(--md-radius);
    background: var(--md-dark);
    color: var(--md-paper);
}
.fml-team-panel--stadium .fml-lds-showcase-heading h2 {
    margin: 0;
    color: var(--md-paper);
}
.fml-lds-showcase-place {
    margin: .3rem 0 0;
    color: var(--md-paper);
    font: 550 var(--md-caption)/1.45 var(--md-font);
}
.fml-lds-showcase-heading .fml-profile-metrics {
    --md-metric-surface: color-mix(in srgb, var(--md-dark), var(--md-paper) 5%);
    --md-metric-border: color-mix(in srgb, var(--md-dark), var(--md-paper) 22%);
    --md-metric-label: var(--md-paper);
    --md-metric-value: var(--md-yellow);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fml-stadium-tour--pam .fml-lds-showcase-heading {
    border-top-color: #7399ff;
    background: #142640;
}
.fml-stadium-tour--hgh .fml-lds-showcase-heading {
    border-top-color: #eb5266;
    background: #301920;
}
.fml-stadium-tour--pam .fml-profile-metrics,
.fml-stadium-tour--hgh .fml-profile-metrics { --md-metric-value: var(--md-paper); }

body.fml-matchday .fml-team-panel--stadium .fml-lds-showcase-actions,
.fml-lds-showcase-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--md-card-space) / 2);
}
.fml-lds-showcase-nav {
    padding: calc(var(--md-card-space) / 2);
    border-radius: var(--md-control-radius);
    background: var(--md-soft);
}
body.fml-matchday .fml-team-panel--stadium :is(.fml-lds-showcase-actions, .fml-lds-showcase-nav) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: .4rem var(--md-card-space);
    border: 1px solid transparent;
    border-radius: var(--md-control-radius);
    background: transparent;
    color: var(--md-ink) !important;
    font: 750 var(--md-label)/1.3 var(--md-font);
    text-decoration: none !important;
}
body.fml-matchday .fml-team-panel--stadium .fml-lds-showcase-actions a { border-color: var(--md-line); }
body.fml-matchday .fml-team-panel--stadium :is(.fml-lds-showcase-actions, .fml-lds-showcase-nav) a:hover {
    background: var(--md-soft);
    text-decoration: underline !important;
}
body.fml-matchday .fml-team-panel--stadium .fml-lds-showcase-actions a.fml-lds-showcase-primary,
body.fml-matchday .fml-team-panel--stadium .fml-lds-showcase-nav a[aria-current="location"] {
    border-color: var(--md-yellow);
    background: var(--md-yellow);
}
.fml-team-panel--stadium :is(.fml-lds-showcase, .fml-lds-ground) :is(a, summary, .fml-lds-table-wrap):focus-visible {
    outline: 2px solid var(--md-focus);
    outline-offset: 2px;
}

.fml-lds-showcase-chapter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: var(--md-card-space);
    padding-block: var(--md-panel-inset);
}
.fml-lds-showcase-chapter + .fml-lds-showcase-chapter { border-top: 1px solid var(--md-line); }
.fml-lds-showcase-chapter:last-child { padding-bottom: 0; }
.fml-lds-showcase-anchor { position: absolute; inset: 0 auto auto 0; }
.fml-team-panel--stadium .fml-lds-showcase-chapter h3 {
    margin: 0 0 calc(var(--md-card-space) / 2);
    color: var(--md-ink);
    text-wrap: balance;
}
.fml-lds-showcase-chapter p,
.fml-team-panel--stadium .fml-lds-ground-section > p:not(.fml-profile-note) {
    margin: 0;
    max-width: 70ch;
    color: var(--md-ink);
    font: 400 1rem/1.55 var(--md-font);
}
.fml-lds-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-height: 44px;
    font: 750 var(--md-label)/1.3 var(--md-font);
}
.fml-team-panel--stadium :is(.fml-lds-showcase-link, .fml-lds-ground-stories a) {
    color: var(--md-ink) !important;
    text-decoration: underline;
    text-underline-offset: .18em;
}
.fml-lds-showcase-frame {
    min-width: 0;
    align-self: start;
}
.fml-lds-showcase-frame figure img {
    aspect-ratio: 3/2;
    object-fit: cover;
    margin: 0;
    border-radius: var(--md-radius) var(--md-radius) 0 0;
    background: var(--md-soft);
}
.fml-lds-showcase-frame--location figure img,
.fml-lds-showcase-frame--history figure img { object-fit: contain; }
.fml-lds-showcase-frame figcaption {
    padding: .55rem var(--md-card-space);
    border: 1px solid var(--md-line);
    border-top: 0;
    border-radius: 0 0 var(--md-radius) var(--md-radius);
    background: var(--md-soft);
    color: var(--md-muted);
    font: 500 var(--md-caption)/1.45 var(--md-font);
}
.fml-lds-showcase-stage[hidden] { display: none !important; }

.fml-team-panel--stadium > .fml-lds-ground {
    --lds-ink: var(--md-ink);
    --lds-muted: var(--md-muted);
    --lds-edge: var(--md-line);
    --lds-warm: var(--md-soft);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--md-section-space);
    width: 100%;
    max-width: none;
}
.fml-team-panel--stadium .fml-lds-ground-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--md-card-space);
    margin: 0;
    padding: var(--md-panel-inset);
    border: 1px solid var(--md-line);
}
.fml-team-panel--stadium .fml-lds-ground-section > * { margin: 0; }
.fml-team-panel--stadium .fml-lds-ground-section > h3 {
    margin: 0;
    color: var(--md-ink);
}
.fml-team-panel--stadium .fml-lds-table-wrap {
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    background: var(--md-paper);
    overscroll-behavior-inline: contain;
}
.fml-team-panel--stadium .fml-lds-table {
    --fml-rose: var(--md-soft);
    --fml-blush: var(--md-line);
    margin: 0;
}
.fml-lds-table caption {
    padding: var(--md-card-space);
    color: var(--md-ink);
    font: 750 var(--md-label)/1.3 var(--md-font);
}
.fml-lds-table :is(th,td).fml-lds-number { text-align: end; }
body.fml-matchday .fml-lds-table tbody th {
    background: var(--md-paper) !important;
    color: var(--md-ink) !important;
}
body.fml-matchday .fml-lds-table tbody tr:nth-child(even) th { background: var(--md-soft) !important; }
.fml-lds-table .fml-lds-row-label {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
}
.fml-team-panel--stadium .fml-lds-places { gap: var(--md-card-space); }
.fml-team-panel--stadium .fml-lds-places > article {
    display: grid;
    align-content: start;
    gap: calc(var(--md-card-space) / 2);
    padding: var(--md-panel-inset);
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
}
.fml-team-panel--stadium .fml-lds-places :is(h4, p) { margin: 0; }

@media (max-width: 42rem) {
    .fml-lds-showcase-heading { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
    .fml-lds-showcase-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 26rem) {
    body.fml-matchday .fml-team-panel--stadium .fml-lds-showcase-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fml-lds-showcase-primary { grid-column: 1 / -1; }
}
@media (min-width: 58rem) {
    .fml-lds-showcase:not(.has-scroll-gallery) .fml-lds-showcase-chapter {
        grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
        gap: var(--md-section-space);
    }
    .fml-lds-showcase.has-scroll-gallery .fml-lds-showcase-layout {
        --lds-gallery-image-max: min(27rem, 58vh);
        display: grid;
        grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
        align-items: start;
        gap: var(--md-section-space);
    }
    .fml-lds-showcase.has-scroll-gallery .fml-lds-showcase-chapter {
        min-height: clamp(260px, 43vh, 375px);
    }
    .fml-lds-showcase.has-scroll-gallery .fml-lds-showcase-chapter:last-child {
        min-height: calc(var(--lds-gallery-image-max) + 5rem);
    }
    .fml-lds-showcase-stage {
        position: sticky;
        top: var(--lds-stadium-offset);
        display: grid;
        min-width: 0;
        margin-block: var(--md-panel-inset) 0;
        isolation: isolate;
    }
    .fml-lds-showcase-stage .fml-lds-showcase-frame {
        grid-area: 1/1;
        opacity: 0;
        visibility: hidden;
        transition: opacity .32s ease, visibility 0s .32s;
    }
    .fml-lds-showcase-stage .fml-lds-showcase-frame img { max-height: var(--lds-gallery-image-max); }
    .fml-lds-showcase-stage .fml-lds-showcase-frame.is-active {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
        z-index: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .fml-lds-showcase-stage .fml-lds-showcase-frame { transition: none; }
}
