.fpec-calendar {
    --calendar-ink: #1c1f22;
    --calendar-muted: #4f5964;
    --calendar-green: #006b31;
    --calendar-tint: #edf7ef;
    --calendar-line: #d9e0db;
    max-width: 100%;
    color: var(--calendar-ink);
    text-align: left;
}
.fpec-calendar [hidden] { display: none !important; }
.fpec-sr, .fpec-modes input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.fpec-tools {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 20px 0 14px;
}
.fpec-modes {
    display: inline-flex;
    max-width: 100%;
    gap: 3px;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--calendar-line);
    border-radius: 12px;
    background: #f4f6f4;
}
.fpec-modes label { position: relative; margin: 0; }
.fpec-modes span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}
.fpec-modes input:checked + span { color: #fff; background: var(--calendar-green); }
.fpec-calendar :is(a, button, select):focus-visible, .fpec-modes input:focus-visible + span {
    outline: 3px solid var(--calendar-green);
    outline-offset: 3px;
}
.fpec-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.fpec-filters label { display: grid; gap: 3px; font-size: 13px; font-weight: 700; }
.fpec-filters select {
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    border: 1px solid #849089;
    border-radius: 8px;
    background-color: #fff;
    color: var(--calendar-ink);
    font: inherit;
    font-size: 16px;
}
.fpec-calendar .fpec-count { margin: 0 0 10px; color: var(--calendar-muted); font-size: 14px; }
.fpec-calendar .fpec-group-title { margin: 16px 0 10px; font-size: 18px; }
.fpec-calendar .fpec-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fpec-list > li { scroll-margin-top: 135px; }
.fpec-entry {
    display: grid;
    grid-template-columns: minmax(102px, 150px) minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 16px;
    padding: 14px;
    border: 1px solid var(--calendar-line);
    border-radius: 10px;
    background: #fff;
}
.fpec-list > li:target .fpec-entry { border-color: var(--calendar-green); box-shadow: 0 0 0 2px var(--calendar-green); }
.fpec-date { color: var(--calendar-green); font-weight: 700; }
.fpec-type { color: var(--calendar-muted); font-size: 13px; font-weight: 700; }
.fpec-entry-body h4 { margin: 2px 0 4px; color: var(--calendar-ink); font-size: 17px; line-height: 1.3; }
.fpec-entry-body p { margin: 0 0 4px; color: var(--calendar-muted); font-size: 14px; line-height: 1.45; }
.fpec-entry-body .fpec-venue { color: var(--calendar-ink); font-weight: 600; }
.fpec-entry-action { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fpec-calendar .fpec-action {
    display: inline-flex;
    gap: .45em;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--calendar-green);
    border-radius: 8px;
    background: var(--calendar-tint);
    color: var(--calendar-green);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}
.fpec-calendar .fpec-action:hover { background: var(--calendar-green); color: white; }
.fpec-calendar :is(.fpec-more, .fpec-load) { margin-top: 14px; }
@media (max-width: 690px) {
    .fpec-entry { grid-template-columns: 1fr; gap: 6px; }
    .fpec-entry-action { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .fpec-tools { align-items: stretch; flex-direction: column; }
    .fpec-modes label { flex: 1; }
    .fpec-filters label { flex: 1 1 130px; }
}
@media (forced-colors: active) {
    .fpec-modes input:checked + span { outline: 2px solid SelectedItem; }
}

/* Calendar page layout */
.fpec-hub-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .78fr);
    gap: clamp(24px, 5vw, 76px);
    align-items: center;
    padding: clamp(8px, 1.5vw, 22px) 0 clamp(24px, 3.5vw, 45px);
    border-bottom: 1px solid #d9dedb;
    color: #17201b;
}
#gsmp-hub .fpec-hub-intro h1 {
    max-width: 19ch;
    margin: 0 0 14px;
    color: inherit;
    font-size: clamp(2.0625rem, 1.5rem + 2.7vw, 3.75rem);
    font-weight: 750;
    line-height: 1.06;
    letter-spacing: -.035em;
}
.fpec-hub-intro p { max-width: 49ch; margin: 0 0 9px; font-size: clamp(16px, 1.45vw, 20px); }
.fpec-hub-intro .fpec-booking-note { color: #4f5b54; font-size: 14px; }
.fpec-hub-intro figure { margin: 0; }
.fpec-hub-intro img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.22;
    object-fit: cover;
    object-position: 50% 54%;
    border-radius: 8px;
}
.fpec-hub-intro figcaption { padding-top: 5px; color: #4f5b54; font-size: 13px; }
.fpec-hub-intro figcaption a { color: inherit; text-decoration: underline; }
.fpec-hub-list { scroll-margin-top: 135px; }
.fpec-calendar-hub .fpec-tools {
    margin: 0 0 19px;
    padding: 14px 0;
    border-bottom: 1px solid var(--calendar-line);
}
.fpec-calendar-hub .fpec-modes { padding: 0; border: 0; border-radius: 0; background: transparent; }
.fpec-calendar-hub .fpec-modes label { display: flex; }
.fpec-calendar-hub .fpec-modes span {
    flex: 1;
    align-items: center;
    min-height: 46px;
    padding: 8px 14px;
    border-bottom: 3px solid transparent;
    border-radius: 0;
}
.fpec-calendar-hub .fpec-modes input:checked + span {
    border-bottom-color: var(--calendar-green);
    background: transparent;
    color: var(--calendar-green);
}
.fpec-calendar-hub .fpec-filters { max-width: 100%; gap: 10px; }
.fpec-calendar-hub .fpec-filters label { min-width: 0; }
.fpec-calendar-hub .fpec-filters select { width: 100%; max-width: min(100%, 17rem); border-color: #818b84; }
.fpec-calendar-hub .fpec-calendar-grid:has(.fpec-map-panel:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, 1fr);
    align-items: start;
    gap: clamp(18px, 3vw, 40px);
}
.fpec-calendar-hub .fpec-group-title { position: absolute; clip-path: inset(50%); white-space: nowrap; }
.fpec-calendar-hub .fpec-list { gap: 0; border-top: 1px solid var(--calendar-line); }
.fpec-calendar-hub .fpec-entry {
    grid-template-columns: minmax(106px, 29%) minmax(0, 1fr);
    gap: 5px 15px;
    border: 0;
    border-bottom: 1px solid var(--calendar-line);
    border-radius: 0;
    padding: 15px 0;
    align-items: start;
}
.fpec-calendar-hub .fpec-list > li:target .fpec-entry { background: #f6f8f6; box-shadow: inset 4px 0 var(--calendar-green); padding-left: 8px; }
.fpec-event-image { grid-column: 1; grid-row: 1 / span 3; align-self: start; margin: 0; }
.fpec-event-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.fpec-event-image figcaption { color: var(--calendar-muted); font-size: 12px; padding-top: 3px; }
.fpec-calendar-hub .fpec-date,
.fpec-calendar-hub .fpec-entry-body,
.fpec-calendar-hub .fpec-entry-action { grid-column: 2; min-width: 0; }
.fpec-calendar-hub .fpec-date { color: var(--calendar-ink); font-size: 13px; }
.fpec-calendar-hub .fpec-entry-body h4 { font-size: clamp(17px, 1.6vw, 22px); font-weight: 750; }
.fpec-calendar-hub .fpec-entry-action { flex-flow: row wrap; align-items: center; gap: 3px 16px; }
.fpec-calendar-hub .fpec-entry-action .fpec-action,
.fpec-calendar-hub .fpec-entry-action button,
.fpec-map-heading button,
.fpec-map-popover button {
    width: auto;
    min-height: 38px;
    padding: 3px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--calendar-green);
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.fpec-calendar-hub .fpec-entry-action .fpec-action:hover,
.fpec-calendar-hub button:hover { background: transparent; color: #153d26; }
.fpec-calendar-hub .fpec-entry-action button { color: #485650; font-size: 13px; font-weight: 600; }
.fpec-map-panel { position: sticky; top: 118px; min-width: 0; }
.fpec-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
#gsmp-hub .fpec-map-heading h2 { margin: 0; font-size: clamp(19px, 2vw, 25px); line-height: 1.2; }
.fpec-map-heading button { font-size: 14px; }
.fpec-map { z-index: 0; height: clamp(340px, 56vh, 550px); border: 1px solid var(--calendar-line); border-radius: 8px; background: #e5eee9; }
.fpec-map { height: clamp(340px, 56dvh, 550px); }
.fpec-map .fpec-map-pin {
    display: grid;
    place-items: center;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 5px #14251d78;
    color: #fff;
    background: #15472b;
    font-size: 12px;
    font-weight: 750;
}
.fpec-map .fpec-map-pin:focus-visible { outline: 3px solid #132b1c; outline-offset: 3px; }
.fpec-map-status { margin: 7px 0 0; color: var(--calendar-muted); font-size: 13px; }
.fpec-map-popover img { display: block; width: 100%; height: auto; max-height: 120px; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.fpec-map-popover strong { display: block; font-size: 15px; }
.fpec-map-popover p { margin: 4px 0; }
.fpec-map-popover a { display: inline-flex; min-height: 28px; align-items: center; margin-left: 10px; }
.fpec-calendar-archive { margin-top: 24px; padding: 12px 0; border-top: 1px solid #d9dedb; }
.fpec-calendar-archive summary { min-height: 32px; cursor: pointer; font-weight: 700; }
.fpec-photo-credits li { margin-bottom: 5px; font-size: 14px; }
#gsmp-hub:has(.fpec-hub-intro) > .gsmp-cta { margin: 10px 0 0; padding: 24px 0; border: 0; border-radius: 0; border-top: 1px solid #d9dedb; background: transparent; color: #17201b; }
#gsmp-hub:has(.fpec-hub-intro) > .gsmp-cta p { color: #4f5b54; }
#gsmp-hub:has(.fpec-hub-intro) > .gsmp-cta .gsmp-btn3 {
    min-height: 44px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: #006b31;
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 790px) {
    .fpec-hub-intro { grid-template-columns: 1fr; gap: 14px; }
    .fpec-hub-intro img { aspect-ratio: 2.45; }
    .fpec-calendar-hub .fpec-tools { align-items: stretch; flex-direction: column; gap: 8px; }
    .fpec-calendar-hub .fpec-calendar-grid:has(.fpec-map-panel:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
    .fpec-map-panel { position: static; grid-row: 1; }
    .fpec-map { height: clamp(265px, 42vh, 395px); }
    .fpec-map { height: clamp(265px, 42dvh, 395px); }
    .fpec-calendar-hub .fpec-filters label { flex: 1 1 105px; }
}
@media (max-width: 460px) {
    .fpec-calendar-hub .fpec-filters label { flex: 1 1 42%; }
    .fpec-calendar-hub .fpec-filters label:last-child { flex-basis: 100%; }
    .fpec-calendar-hub .fpec-filters select { max-width: none; }
    .fpec-calendar-hub .fpec-entry { gap: 4px 11px; grid-template-columns: minmax(88px, 28%) minmax(0, 1fr); }
    .fpec-event-image img { aspect-ratio: 1; }
}

.fpec-results-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.fpec-calendar .fpec-results-actions .fpec-action {
    margin: 0;
    padding-inline: 12px;
}
.fpec-calendar .fpec-results-actions .fpec-credits-trigger { background: #fff; color: #35453b; border-color: #88978d; }
.fpec-calendar .fpec-results-actions .fpec-credits-trigger:hover { background: #eef3ef; color: #153d26; }
.fpec-photo-credits:not([open]) { display: none; }
.fpec-photo-credits[open] {
    width: min(42rem, calc(100% - 28px));
    max-height: min(78dvh, 660px);
    overflow: auto;
    padding: 20px clamp(14px, 4vw, 30px);
    border: 1px solid #cbd5ce;
    border-radius: 12px;
    color: #17201b;
    background: #fff;
}
.fpec-photo-credits[open]:not(:modal) { position: static; margin: 16px 0; width: 100%; max-height: none; }
.fpec-photo-credits::backdrop { background: #17201bb3; }
html:has(.fpec-photo-credits:modal) { overflow: hidden; }
.fpec-credit-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#gsmp-hub .fpec-credit-heading h2 { margin: 0; font-size: clamp(1.15rem, 1rem + 1.2vw, 1.6rem); line-height: 1.25; }
.fpec-credit-heading form { display: none; margin: 0; }
.fpec-photo-credits:modal form { display: block; }
.fpec-credit-heading button {
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid #a6b3ab;
    border-radius: 6px;
    background: #fff;
    color: #1a3223;
    font-weight: 700;
}
.fpec-photo-credits ul { padding-inline-start: 20px; margin: 14px 0 0; }

#gsmp-hub .fpec-kit {
    margin: 24px 0 0;
    padding: 27px 0 36px;
    width: 100%;
    border-top: 1px solid #d9dedb;
}
.fpec-kit-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
#gsmp-hub .fpec-kit-heading h2 {
    color: #17201b;
    margin: 4px 0 0;
    font-size: clamp(1.45rem, 1rem + 1.5vw, 2.25rem);
    line-height: 1.15;
}
.fpec-kit > p { max-width: 62ch; margin: 10px 0 16px; color: #4f5b54; }
.fpec-kit-controls { display: flex; gap: 8px; flex: 0 0 auto; }
.fpec-kit-controls[hidden] { display: none; }
.fpec-kit-controls button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #88978d;
    border-radius: 50%;
    background: #fff;
    color: #1a3223;
    font-size: 20px;
    cursor: pointer;
}
.fpec-kit-controls button[aria-disabled="true"] { color: #627067; background: #f5f7f5; cursor: default; }
.fpec-kit-controls button[aria-disabled="false"]:hover { background: #eef3ef; }
.fpec-kit-list {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 4px 3px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 3px;
    list-style: none;
}
.fpec-kit-list > li {
    flex: 0 0 calc((100% - 42px) / 4);
    min-width: 0;
    margin: 0;
    scroll-snap-align: start;
}
.fpec-kit :is(a, button, .fpec-kit-list):focus-visible { outline: 3px solid #006b31; outline-offset: -3px; }
.fpec-kit-list a {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9dedb;
    border-radius: 8px;
    background: #fff;
    color: #17201b;
}
.fpec-kit-list a:hover { border-color: #6d8977; }
.fpec-kit-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1.55;
    background: #f6f7f5;
}
.fpec-kit-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 12rem;
    padding: 12px;
    aspect-ratio: 1.55;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.fpec-kit-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    font-weight: 700;
    line-height: 1.25;
}
.fpec-kit-name span { color: #006b31; }
.fpec-kit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 18px; margin-top: 10px; }
#gsmp-hub .fpec-kit-actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: #006b31;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
#gsmp-hub .fpec-kit-actions .fpec-kit-shop { padding: 8px 14px; border-radius: 7px; background: #006b31; color: #fff; text-decoration: none; }
#gsmp-hub .fpec-kit-actions .fpec-kit-shop:hover { background: #164b2d; }
@media (max-width: 900px) {
    .fpec-kit-list > li { flex-basis: calc((100% - 28px) / 3); }
}
@media (max-width: 580px) {
    .fpec-kit-list > li { flex-basis: 59%; }
    .fpec-kit-list { gap: 10px; }
}
