/* Parade event pages and result cards. All rules are scoped to this addon. */
.ph-events-refresh .pe-events,
.ph-event-page {
    --ph-event-green: #0c2327;
    --ph-event-cream: #f8f5ef;
    --ph-event-gold: #df940b;
    --ph-event-ink: #112b30;
    --ph-event-muted: #657275;
    --ph-event-line: #ded8cc;
    --ph-event-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ph-event-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
}

/* Result cards retain the existing grid and search/filter hooks. */
.ph-events-refresh .pe-events .ph-event-card {
    border: 1px solid #e4d9c6;
    border-radius: 3px;
    background: var(--ph-event-cream);
    color: var(--ph-event-ink);
    box-shadow: 0 3px 10px rgb(12 35 39 / 4%);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.ph-events-refresh .pe-events .ph-event-card[hidden] { display: none; }
.ph-events-refresh .pe-events .ph-event-card:hover,
.ph-events-refresh .pe-events .ph-event-card:focus-within {
    background: #fff;
    border-color: #cdb787;
    box-shadow: 0 8px 24px rgb(12 35 39 / 9%);
}
.ph-events-refresh .ph-event-card .pe-card__media {
    aspect-ratio: 16 / 9;
    background: var(--ph-event-green);
}
.ph-events-refresh .ph-event-card__image {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: inherit;
}
.ph-events-refresh .ph-event-card__image picture,
.ph-events-refresh .ph-event-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ph-events-refresh .ph-event-card .pe-card__image {
    transition: transform 300ms ease;
}
@media (hover: hover) {
    .ph-events-refresh .ph-event-card__image:hover .pe-card__image {
        transform: scale(1.025);
    }
}
.ph-events-refresh .ph-event-card .pe-card__badge {
    top: 16px;
    left: 16px;
    min-width: 64px;
    padding: 12px 14px;
    background: var(--ph-event-gold);
    color: var(--ph-event-green);
    box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
    pointer-events: none;
}
/* Full weekdays use the same side padding as dated badges, without a fixed wide box. */
.ph-events-refresh .ph-event-card .pe-card__badge--weekly-series {
    min-width: 64px;
    width: max-content;
    padding: 10px 14px;
}
.ph-events-refresh .ph-event-card .pe-card__badge--weekly-series .pe-card__badge-top {
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: .12em;
    margin-bottom: 3px;
}
.ph-events-refresh .ph-event-card .pe-card__badge--weekly-series .pe-card__badge-bottom {
    margin-top: 3px;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: .03em;
    white-space: nowrap;
}
.ph-events-refresh .ph-event-card.ph-event-card--weekly-series .ph-event-locals--card {
    max-width: calc(100% - 150px);
}
.ph-events-refresh .ph-event-card .pe-card__price-badge {
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    padding: 9px 14px 7px;
    background: var(--ph-event-green);
    color: var(--ph-event-cream);
    font-size: 27px;
    line-height: 1.1;
    pointer-events: none;
}
.ph-events-refresh .ph-event-card .ph-event-card__body {
    padding: 28px 30px 30px;
}
.ph-events-refresh .ph-event-card .pe-card__labels {
    align-items: baseline;
    gap: 8px 16px;
    margin-bottom: 15px;
}
.ph-events-refresh .ph-event-card .pe-card__eyebrow,
.ph-events-refresh .ph-event-card .pe-card__pattern {
    font-size: 11px;
    line-height: 1.65;
    letter-spacing: .12em;
    font-weight: 600;
}
.ph-events-refresh .ph-event-card .pe-card__eyebrow { color: #9a6410; }
.ph-events-refresh .ph-event-card .pe-card__pattern {
    color: var(--ph-event-muted);
    white-space: normal;
}
.ph-events-refresh .ph-event-card__members {
    align-self: flex-start;
    margin: 0 0 15px;
    padding: 5px 9px;
    border: 1px solid #d7c39c;
    color: #76521b;
    font-family: var(--ph-event-font);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ph-events-refresh .ph-event-card .pe-card__title {
    margin: 0 0 15px;
    padding: 0;
    color: var(--ph-event-ink);
    font-family: var(--ph-event-display);
    font-size: clamp(34px, 3.4vw, 46px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .01em;
}
.ph-events-refresh .ph-event-card .pe-card__title::after { display: none; }
.ph-events-refresh .ph-event-card .pe-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 180ms ease;
}
.ph-events-refresh .ph-event-card .pe-card__title a:hover { color: #93620f; }
.ph-events-refresh .ph-event-card .pe-card__excerpt {
    margin: 0 0 24px;
    color: #40565a;
    font-size: 15px;
    line-height: 1.7;
}
.ph-events-refresh .ph-event-card .ph-event-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 24px;
    margin: 0 0 26px;
    padding: 22px 0 0;
    border-top: 1px solid var(--ph-event-line);
}
.ph-events-refresh .ph-event-card__facts > div { min-width: 0; }
.ph-events-refresh .ph-event-card__facts dt {
    margin: 0 0 5px;
    color: var(--ph-event-muted);
    font-family: var(--ph-event-font);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ph-events-refresh .ph-event-card__facts dd {
    margin: 0;
    color: var(--ph-event-ink);
    font-family: var(--ph-event-font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.ph-events-refresh .ph-event-card .ph-event-card__details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    gap: 16px;
    min-height: 48px;
    margin-top: auto;
    padding: 14px 19px;
    border: 1px solid var(--ph-event-gold);
    border-radius: 0;
    background: var(--ph-event-gold);
    color: var(--ph-event-green);
    font-family: var(--ph-event-font);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.ph-events-refresh .ph-event-card .ph-event-card__details:hover {
    background: var(--ph-event-green);
    border-color: var(--ph-event-green);
    color: var(--ph-event-cream);
}
.ph-events-refresh .ph-event-card .ph-event-card__details svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
}
.ph-events-refresh .ph-event-card a:focus-visible {
    outline: 2px solid var(--ph-event-green);
    outline-offset: 4px;
}
.ph-events-refresh .ph-event-card__image:focus-visible {
    outline: 3px solid var(--ph-event-gold);
    outline-offset: -5px;
}

/* One template for events, member offers and any configured schedule. */
body.ph-event-single #ph-home-header-native {
    background-color: #0c2327 !important;
    background-image: none !important;
}
.ph-event-page,
.ph-event-page *,
.ph-event-page *::before,
.ph-event-page *::after { box-sizing: border-box; }
.ph-event-page {
    margin: 0;
    background: var(--ph-event-cream);
    color: var(--ph-event-ink);
    font-family: var(--ph-event-font);
    font-size: 16px;
    line-height: 1.8;
}
body.ph-event-single #content.ph-event-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    float: none;
}
.ph-event-wrap {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 0 clamp(22px, 5vw, 64px);
}
.ph-event-page a { text-underline-offset: .22em; }
.ph-event-page a:focus-visible {
    outline: 2px solid var(--ph-event-gold);
    outline-offset: 5px;
}
.ph-event-hero {
    padding: 42px 0 68px;
    background: var(--ph-event-green);
    color: var(--ph-event-cream);
}
.ph-event-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 40px;
    color: #c7d3d3;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
}
.ph-event-back:hover { color: var(--ph-event-gold); }
.ph-event-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}
.ph-event-hero__copy,
.ph-event-hero__image { min-width: 0; }
.ph-event-page .ph-event-eyebrow,
.ph-event-page .ph-event-kicker {
    margin: 0 0 18px;
    color: var(--ph-event-gold);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.8;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.ph-event-hero h1 {
    margin: 0 0 24px;
    color: var(--ph-event-cream);
    font-family: var(--ph-event-display);
    font-size: clamp(52px, 6vw, 84px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: .005em;
    text-transform: uppercase;
    overflow-wrap: break-word;
}
.ph-event-page .ph-event-lead {
    max-width: 40em;
    margin: 0;
    color: #dce5e3;
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.85;
}
.ph-event-hero .ph-event-lead + .ph-event-kicker { margin-top: 23px; }
.ph-event-hero__jump {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 23px;
    min-height: 44px;
    margin-top: 27px;
    padding: 9px 0;
    border-bottom: 1px solid #a5b8b8;
    color: var(--ph-event-cream);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}
.ph-event-hero__jump:hover { color: var(--ph-event-gold); border-color: var(--ph-event-gold); }
.ph-event-status {
    margin: 0 0 23px;
    padding: 12px 15px;
    border-left: 2px solid var(--ph-event-gold);
    background: rgb(248 245 239 / 7%);
    color: #e3dfd3;
    font-size: 13px;
    line-height: 1.8;
}
.ph-event-details .ph-event-status {
    background: #e5e1d6;
    color: #40565a;
}
.ph-event-hero__image {
    margin: 0;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    background: #17383c;
    box-shadow: 15px 15px 0 rgb(222 148 11 / 8%);
}
.ph-event-hero__image picture,
.ph-event-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ph-event-hero--no-image .ph-event-hero__inner { grid-template-columns: minmax(0, 820px); }
/* The gallery occupies the same image frame; controls overlay the photograph. */
.ph-event-gallery { position: relative; isolation: isolate; touch-action: pan-y; }
.ph-event-gallery__slides,
.ph-event-gallery__slide { position: absolute; inset: 0; }
.ph-event-gallery [hidden] { display: none !important; }
.ph-event-gallery__counter {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    padding: 6px 10px; background: rgb(12 35 38 / 94%); color: #f8f5ef;
    font: 500 11px/1.5 Poppins, sans-serif; letter-spacing: .06em;
    pointer-events: none;
}
.ph-event-page .ph-event-gallery__arrow {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
    width: 44px; height: 44px; min-width: 44px; padding: 0;
    border: 1px solid rgb(248 245 239 / 55%); border-radius: 0;
    background: rgb(12 35 38 / 91%); color: #f8f5ef;
    font: 400 23px/1 Poppins, sans-serif; cursor: pointer;
}
.ph-event-gallery__arrow--previous { left: 14px; }
.ph-event-gallery__arrow--next { right: 14px; }
.ph-event-page .ph-event-gallery__arrow:hover { background: #de940b; border-color: #de940b; color: #0c2326; }
.ph-event-gallery__thumbs {
    position: absolute; bottom: 14px; left: 50%; z-index: 2; transform: translateX(-50%);
    display: flex; gap: 6px; width: max-content; max-width: calc(100% - 28px);
    padding: 6px; margin: 0; background: rgb(12 35 38 / 91%);
}
.ph-event-gallery__thumb {
    display: block; width: 44px; height: 44px; flex: 0 0 44px;
    border: 2px solid transparent; opacity: .75; overflow: hidden;
}
.ph-event-gallery__thumb[aria-current="true"] { border-color: #de940b; opacity: 1; }
.ph-event-gallery__thumb:hover { opacity: 1; border-color: #f8f5ef; }
.ph-event-gallery__thumb:focus-visible,
.ph-event-page .ph-event-gallery__arrow:focus-visible { outline: 3px solid #f8f5ef; outline-offset: 3px; }
.ph-event-gallery__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ph-event-date-note { margin: 0 0 20px; padding: 12px 14px; border-left: 2px solid #93620f; background: #ebe6db; font-size: 13px; line-height: 1.7; }
.ph-event-dates { margin: 24px 0; }
.ph-event-page .ph-event-dates h3 { margin: 0 0 12px; font-family: Poppins, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ph-event-dates > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-event-dates a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 11px; border: 1px solid #9aaead; color: #17383c; font-size: 12px; line-height: 1.5; text-decoration: none; }
.ph-event-dates a:hover, .ph-event-dates a[aria-current="date"] { background: #17383c; border-color: #17383c; color: #f8f5ef; }
.ph-event-dates a:focus-visible { outline: 2px solid #93620f; outline-offset: 3px; }
.ph-event-content { padding: 72px 0 80px; scroll-margin-top: 30px; }
.ph-event-content__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    align-items: start;
    gap: clamp(32px, 6vw, 88px);
}
.ph-event-body { min-width: 0; }
.ph-event-body .ph-event-kicker,
.ph-event-details .ph-event-kicker { color: #93620f; }
.ph-event-section + .ph-event-section,
.ph-event-members + .ph-event-section {
    margin-top: 38px;
    padding-top: 34px;
    border-top: 1px solid var(--ph-event-line);
}
.ph-event-editor-content { overflow-wrap: anywhere; }
.ph-event-editor-content img,
.ph-event-editor-content video,
.ph-event-editor-content iframe { max-width: 100%; }
.ph-event-editor-content img { height: auto; }
.ph-event-editor-content > :last-child { margin-bottom: 0; }
.ph-event-body > :first-child { margin-top: 0; }
.ph-event-body > :last-child { margin-bottom: 0; }
.ph-event-page h2,
.ph-event-page h3,
.ph-event-page h4 {
    color: var(--ph-event-ink);
    font-family: var(--ph-event-display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.ph-event-page h2 { margin: 0 0 24px; font-size: 38px; }
.ph-event-page h3 { margin: 34px 0 15px; font-size: 29px; }
.ph-event-page h4 { margin: 28px 0 12px; font-size: 24px; }
.ph-event-body p { margin: 0 0 22px; }
.ph-event-body p + h2,
.ph-event-body ul + h2,
.ph-event-body ol + h2 { margin-top: 38px; }
.ph-event-body ul,
.ph-event-body ol { margin: 0 0 24px; padding-left: 24px; }
.ph-event-body li { margin-bottom: 8px; }
.ph-event-body li::marker { color: #b17812; }
.ph-event-body a,
.ph-event-members a { color: var(--ph-event-ink); }
.ph-event-body a:hover,
.ph-event-members a:hover { color: #8e600f; }
.ph-event-details {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--ph-event-line);
    border-top: 3px solid var(--ph-event-gold);
    background: #f0ede5;
}
.ph-event-details h2 { margin: 0 0 24px; font-size: 30px; }
.ph-event-facts {
    display: grid;
    gap: 0;
    margin: 0 0 26px;
}
.ph-event-facts > div {
    min-width: 0;
    padding: 15px 0;
    border-bottom: 1px solid #d9d8cd;
}
.ph-event-facts > div:first-child { padding-top: 0; }
.ph-event-facts dt {
    margin: 0 0 4px;
    color: var(--ph-event-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ph-event-facts dd {
    margin: 0;
    color: var(--ph-event-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.ph-event-page .ph-event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 14px 22px;
    border: 1px solid var(--ph-event-gold);
    border-radius: 0;
    background: var(--ph-event-gold);
    color: var(--ph-event-green);
    font-family: var(--ph-event-font);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.ph-event-page .ph-event-button:hover {
    border-color: var(--ph-event-green);
    background: var(--ph-event-green);
    color: var(--ph-event-cream);
}
.ph-event-details .ph-event-button { display: flex; width: 100%; }
.ph-event-details .ph-event-back {
    margin: 18px 0 0;
    color: var(--ph-event-ink);
}
.ph-event-secondary {
    display: block;
    margin: 19px 0 0;
    color: var(--ph-event-ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.8;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: underline;
}
.ph-event-secondary:hover { color: #93620f; }
.ph-event-visit__links {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 28px;
    margin: 25px 0;
}
.ph-event-visit__links a {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 44px;
    padding: 9px 0;
    border-bottom: 1px solid #a4b2af;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}
.ph-event-body .ph-event-contact {
    margin: 26px 0 0;
    color: #53666a;
    font-size: 14px;
    line-height: 1.85;
}
.ph-event-members {
    margin: 28px 0;
    padding: 24px;
    border-left: 3px solid var(--ph-event-gold);
    background: #efece3;
    font-size: 14px;
    line-height: 1.8;
}
.ph-event-members > :first-child { margin-top: 0; }
.ph-event-members > :last-child { margin-bottom: 0; }
.ph-event-members h3 { margin: 0 0 12px; }
.ph-event-note {
    margin: 18px 0 0;
    color: var(--ph-event-muted);
    font-size: 12px;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .ph-event-hero__inner { gap: 30px; }
    .ph-event-content__inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(270px, 1fr);
        gap: 30px;
    }
    .ph-event-details { padding: 25px; }
}
@media (max-width: 782px) {
    .ph-events-refresh .ph-event-card .ph-event-card__body { padding: 24px; }
    .ph-events-refresh .ph-event-card .pe-card__title { font-size: 38px; }
    .ph-events-refresh .ph-event-card .pe-card__excerpt { font-size: 14px; }
    .ph-events-refresh .ph-event-card .ph-event-card__facts { gap: 17px 20px; }
    .ph-event-hero { padding: 28px 0 44px; }
    .ph-event-back { margin-bottom: 28px; }
    .ph-event-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .ph-event-hero h1 { max-width: 16ch; font-size: clamp(48px, 10vw, 72px); margin-bottom: 20px; }
    .ph-event-hero__image { aspect-ratio: 16 / 10; box-shadow: 9px 9px 0 rgb(222 148 11 / 8%); }
    .ph-event-page .ph-event-gallery__arrow { top: 42%; }
    .ph-event-content { padding: 44px 0 52px; }
    .ph-event-content__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .ph-event-content__inner > .ph-event-details { order: -1; }
    .ph-event-page h2 { font-size: 34px; }
    .ph-event-details h2 { font-size: 30px; }
    .ph-event-details { padding: 26px; }
    .ph-event-page { font-size: 15px; }
}
@media (max-width: 380px) {
    .ph-event-wrap { padding-left: 20px; padding-right: 20px; }
    .ph-events-refresh .ph-event-card .ph-event-card__body { padding: 22px 19px; }
    .ph-events-refresh .ph-event-card .pe-card__title { font-size: 35px; }
    .ph-events-refresh .ph-event-card .pe-card__badge { top: 12px; left: 12px; }
    .ph-events-refresh .ph-event-card .pe-card__price-badge { right: 12px; bottom: 12px; font-size: 24px; }
    .ph-event-details { padding: 23px 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .ph-events-refresh .ph-event-card,
    .ph-events-refresh .ph-event-card *,
    .ph-event-page * { transition: none !important; }
    .ph-events-refresh .ph-event-card .pe-card__image { transform: none !important; }
}

/* Optional native poster mode: preserve every edge without changing frame geometry. */
.ph-events-refresh .ph-event-card--artwork .pe-card__media,
.ph-event-page--artwork .ph-event-hero__image { background: var(--ph-event-cream, #f8f5ef); }
.ph-events-refresh .ph-event-card--artwork .ph-event-card__image img,
.ph-event-page--artwork .ph-event-hero__image img { object-fit: contain; }
.ph-events-refresh .ph-event-card--artwork .ph-event-card__image:hover .pe-card__image { transform: none; }
