/* Shared by the public fire station page and the WordPress block editor. */
.station-page {
    --station-red: #b51f2b;
    --station-ink: #22262c;
    --station-muted: #555c65;
    --station-line: #dfe2e5;
    --station-heading: "Bahnschrift", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    max-width: 1100px;
    width: calc(100% - 2.5rem);
    margin: 0 auto;
    padding: 32px 0 56px;
    color: var(--station-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: calc(1rem + 5pt);
    line-height: 1.75;
}
.station-page *, .station-page *::before, .station-page *::after { box-sizing: border-box; }
.station-page [hidden] { display: none !important; }
/* Classic WordPress themes add this wrapper when rendering Group blocks. */
.station-page .wp-block-group__inner-container { display: contents; }
.station-page p { margin: 0 0 1rem; }
.station-page h1, .station-page h2, .station-page h3 {
    color: var(--station-ink);
    font-family: var(--station-heading);
    font-weight: 700;
    line-height: 1.12;
    text-transform: uppercase;
}
.station-page h1 { margin: 12px 0 22px; font-size: calc(clamp(2.05rem, 3.7vw, 3rem) + 5pt); }
.station-page h2 { margin: 0 0 22px; font-size: calc(clamp(1.8rem, 3.2vw, 2.6rem) + 5pt); }
.station-page h3 { margin: 0 0 16px; font-size: calc(clamp(1.2rem, 2vw, 1.55rem) + 5pt); }
.station-page .station-eyebrow { margin: 0 0 10px; color: var(--station-red); font-family: var(--station-heading); font-size: calc(0.75rem + 5pt); font-weight: 700; line-height: 1.5; letter-spacing: 0.1em; text-transform: uppercase; }
.station-page .station-hero { margin-bottom: 32px; padding: 12px 0 0 24px; border-left: 5px solid var(--station-red); }
.station-page .station-hero__copy { max-width: 850px; }
.station-page .station-hero__copy h1 { margin: 8px 0 18px; font-size: calc(clamp(2.2rem, 4.8vw, 3.5rem) + 5pt); }
.station-page .station-hero__copy .station-eyebrow { color: var(--station-red); }
.station-page .station-hero__copy > p,
.station-page .station-hero__copy > .wp-block-group__inner-container > p { max-width: 760px; }
.station-page .station-hero__copy p:last-child { margin-bottom: 0; color: var(--station-muted); font-size: calc(0.95rem + 5pt); }
.station-page .station-lead { font-size: calc(1.1rem + 5pt); line-height: 1.7; }
.station-page .station-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 60px; }
.station-page .station-nav .wp-block-button { margin: 0; }
.station-page .station-nav .wp-block-button__link { padding: 10px 15px; border: 1px solid var(--station-line); border-radius:var(--ffm-radius,6px); background: #fff; color: var(--station-ink); font-size: calc(0.85rem + 5pt); font-weight: 600; line-height: 1.5; text-decoration: none; }
.station-page .station-nav .wp-block-button__link:hover { border-color: var(--station-red); color: var(--station-red); }
.station-page .station-nav--tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.station-page .station-nav--tabs .wp-block-button { display: block; min-width: 0; }
.station-page .station-nav--tabs .wp-block-button__link { display: flex; align-items: center; justify-content: center; min-height: 58px; height: 100%; padding: 14px 10px; font-size: calc(0.95rem + 5pt); font-family: var(--station-heading); }
.station-page .station-nav--tabs [aria-selected="true"] { color: #fff; background: var(--station-red); border-color: var(--station-red); }
.station-page .station-nav--tabs [aria-selected="true"]:hover { color: #fff; background: #8d1721; }
.station-page [role="tabpanel"] { margin-bottom: 0; padding: 32px; border: 1px solid var(--station-line); border-top: 4px solid var(--station-red); background: #fff; }
.station-page [role="tabpanel"]:focus { outline: none; }
.station-page [role="tabpanel"]:focus-visible { outline: 3px solid var(--station-red); outline-offset: 4px; }
.station-page .station-section { margin: 0 0 64px; scroll-margin-top: 24px; }
.station-page .station-section > h2,
.station-page .station-section > .wp-block-group__inner-container > h2 { padding-left: 18px; border-left: 5px solid var(--station-red); }
.station-page .station-section > p:not(.station-eyebrow),
.station-page .station-section > .wp-block-group__inner-container > p:not(.station-eyebrow) { max-width: 800px; }
.station-page .station-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px !important;
    margin: 24px 0 0;
}
.station-page .station-gallery > .wp-block-image {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    min-width: 0;
    overflow: hidden;
    background: #e6e8eb;
}
.station-page .station-gallery > .wp-block-image img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: zoom-in;
}
.station-page .station-carousel { position: relative; padding-inline: 38px; margin-top: 24px; }
.station-page .station-carousel .station-gallery { margin: 0; }
.station-page .station-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 48px; padding: 0; border: 0; color: var(--station-red); background: transparent; cursor: pointer; }
.station-page .station-carousel-arrow--previous { left: 0; }
.station-page .station-carousel-arrow--next { right: 0; }
.station-page .station-carousel-arrow::before { content: ""; width: 0; height: 0; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.station-page .station-carousel-arrow--previous::before { border-right: 17px solid currentColor; }
.station-page .station-carousel-arrow--next::before { border-left: 17px solid currentColor; }
.station-page .station-carousel-arrow:hover:not(:disabled) { color: #8d1721; }
.station-page .station-carousel-arrow:disabled { opacity: 0.25; cursor: default; }
.station-page .station-gallery--carousel { grid-template-columns: repeat(var(--station-photo-count, 3), minmax(0, 1fr)) !important; }
.station-page .station-timeline { position: relative; padding-left: 32px; margin-top: 28px; }
.station-page .station-timeline::before { content: ""; position: absolute; left: 7px; top: 35px; bottom: 0; width: 3px; background: var(--station-red); }
.station-page .station-step { position: relative; margin: 0 0 28px; padding: 28px 24px; border: 1px solid var(--station-line); background: #fff; scroll-margin-top: 24px; }
.station-page .station-step::before { content: ""; position: absolute; top: 28px; left: -31px; width: 15px; height: 15px; border-radius: 50%; background: var(--station-red); }
.station-page .station-step:last-child { margin-bottom: 0; }
.station-page .station-subsection { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--station-line); }
.station-page .station-step > p:not(.station-eyebrow),
.station-page .station-step > .wp-block-group__inner-container > p:not(.station-eyebrow) { max-width: 820px; font-size: calc(0.95rem + 5pt); }
.station-page .station-step .station-gallery { gap: 10px !important; }
.station-page .station-plans img { object-fit: contain !important; background: #fff; }
.station-page a:focus-visible, .station-page button:focus-visible { outline: 3px solid var(--station-red); outline-offset: 4px; }

/* Keep long documents comfortable to work with in the editor. */
.editor-styles-wrapper .station-page { width: 100%; }
.editor-styles-wrapper .station-page img { max-width: 100%; }

@media (max-width: 800px) {
    .station-page { padding-top: 30px; }
    .station-page .station-nav--tabs { margin-bottom: 0; }
    .station-page .station-nav--tabs .wp-block-button__link { font-size: calc(0.8rem + 5pt); padding-inline: 6px; }
    .station-page [role="tabpanel"] { padding: 24px 20px; }
    .station-page .station-section { margin-bottom: 40px; }
    .station-page .station-step { padding: 22px 18px; }
    .station-page .station-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
}
@media (max-width: 480px) {
    .station-page { width: calc(100% - 1.25rem); }
    .station-page .station-hero { padding-left: 16px; }
    .station-page .station-nav--tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .station-page .station-nav--tabs .wp-block-button__link { min-height: 46px; }
    .station-page [role="tabpanel"] { padding: 22px 14px; }
    .station-page .station-step { padding: 20px 14px; }
    .station-page .station-carousel { padding-inline: 25px; }
    .station-page .station-carousel-arrow { width: 24px; }
    .station-page .station-carousel-arrow::before { border-top-width: 10px; border-bottom-width: 10px; }
    .station-page .station-carousel-arrow--previous::before { border-right-width: 13px; }
    .station-page .station-carousel-arrow--next::before { border-left-width: 13px; }
    .station-page .station-step .station-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

