/* UI only. The original Event and Membership plugins still render their controls and data. */
:is(#top,body).peham-ui-event-service {
    --peham-service-ink: #102d31;
    --peham-service-teal: #075c62;
    --peham-service-gold: #ebcc88;
    --peham-service-paper: #f7f6f0;
    --peham-service-line: #dce4df;
    --peham-service-hero: radial-gradient(ellipse at 79% 24%, #17565b, #082f35 51%, #05272d 82%);
    background: var(--peham-service-paper);
}
:is(#top,body).peham-ui-event-service .peham-hub {
    --ph-ink: var(--peham-service-ink);
    --ph-teal: var(--peham-service-teal);
    --ph-sea: var(--peham-service-teal);
    --ph-bg2: #eaf2ed;
    --ph-line: var(--peham-service-line);
    --ph-head: Inter, "Segoe UI", system-ui, sans-serif;
    --ph-body: Inter, "Segoe UI", system-ui, sans-serif;
    max-width: 1184px;
    margin-inline: auto;
}
.peham-ui-event-service .peham-event-content { padding-bottom: 24px; overflow-x: clip; }
:is(#top,body).peham-ui-event-service .peham-event-content > .peham-hub {
    width: min(1184px, calc(100% - 88px));
    margin-block: 0;
    padding: 0;
}
:is(#top,body).peham-ui-event-service .peham-event-content .ph-hero {
    background: transparent;
    border-radius: 0;
    isolation: isolate;
    padding: clamp(42px, 7vw, 86px) 0 clamp(45px, 7vw, 85px);
    margin-bottom: 23px;
    overflow: visible;
}
:is(#top,body).peham-ui-event-service .peham-event-content .ph-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 50%;
    width: 100vw;
    z-index: -1;
    transform: translateX(-50%);
    background: var(--peham-service-hero);
}
:is(#top,body).peham-ui-event-service .peham-event-content .ph-hero::after {
    top: 42px;
    right: 20px;
    width: min(31vw, 340px);
    height: min(31vw, 340px);
    border: 1px solid #e6ca8a50;
    border-radius: 16px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none' stroke='%23ebcc88' stroke-width='1.5'%3E%3Crect x='15' y='21' width='66' height='60' rx='8'/%3E%3Cpath d='M15 39h66M33 14v15M63 14v15M31 54h5m9 0h5m9 0h5m-33 12h5m9 0h5m9 0h5' stroke-linecap='round'/%3E%3C/svg%3E") center / 42% no-repeat,
        repeating-linear-gradient(0deg, transparent 0 27px, #d3c59d24 27px 28px),
        repeating-linear-gradient(90deg, transparent 0 27px, #d3c59d24 27px 28px);
    opacity: .64;
    transform: rotate(-12deg);
    pointer-events: none;
}
:is(#top,body).peham-ui-event-service .peham-event-content .ph-hero__in {
    max-width: min(720px, 77%);
}
:is(#top,body).peham-ui-event-service .ph-hero .ph-eyebrow {
    color: var(--peham-service-gold);
    font-weight: 750;
}
:is(#top,body).peham-ui-event-service .ph-hero__title {
    margin-block: 11px 15px;
    font-size: clamp(38px, 5.8vw, 73px);
    letter-spacing: -.055em;
    line-height: 1.04;
    text-wrap: balance;
}
:is(#top,body).peham-ui-event-service .ph-hero__lead { color: #d7e7e5; }
:is(#top,body).peham-ui-event-service .ph-hero__stats {
    gap: 8px 12px;
    padding: 0;
    list-style: none;
}
:is(#top,body).peham-ui-event-service .ph-hero__stats li {
    padding: 6px 11px;
    border: 1px solid #6f8f8d;
    border-radius: 7px;
    color: #dceae8;
    margin: 0;
}
:is(#top,body).peham-ui-event-service .ph-hero__stats b { color: var(--peham-service-gold); }
:is(#top,body).peham-ui-event-service .ph-search {
    border-radius: 11px;
    min-height: 49px;
}
:is(#top,body).peham-ui-event-service .ph-search input::placeholder { color: #526567; opacity: 1; }
:is(#top,body).peham-ui-event-service .ph-search button {
    min-height: 40px;
    border-radius: 7px;
    background: var(--peham-service-teal);
}
:is(#top,body).peham-ui-event-service .ph-hero .ph-search button,
:is(#top,body).peham-ui-event-service .ph-sub button[type="submit"] {
    color: #152e30;
    background: var(--peham-service-gold);
}
:is(#top,body).peham-ui-event-service .ph-search:focus-within { outline: 2px solid #b97813; outline-offset: 3px; }
:is(#top,body).peham-ui-event-service .ph-chips__in { gap: 10px; }
:is(#top,body).peham-ui-event-service .ph-chips a { border-radius: 8px; min-height: 43px; }
:is(#top,body).peham-ui-event-service .ph-chips a.is-on { background: var(--peham-service-teal); border-color: var(--peham-service-teal); }
:is(#top,body).peham-ui-event-service .peham-hub :is(.ph-spot,.ph-card,.ph-subhead,.pev-hero,.pev-body) {
    border-color: var(--peham-service-line);
    border-radius: 14px;
    box-shadow: 0 10px 24px #1434320d;
}
:is(#top,body).peham-ui-event-service .ph-spot__body { background: #edf4ef; }
:is(#top,body).peham-ui-event-service .ph-spot__title {
    font-size: clamp(23px, 2.8vw, 36px);
    letter-spacing: -.035em;
}
:is(#top,body).peham-ui-event-service .ph-row__title {
    font-size: clamp(24px, 3.3vw, 39px);
    letter-spacing: -.035em;
}
:is(#top,body).peham-ui-event-service .ph-row__head::after { background: #a88139; }
:is(#top,body).peham-ui-event-service .ph-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
:is(#top,body).peham-ui-event-service .ph-rail > :nth-child(n) { display: flex; }
:is(#top,body).peham-ui-event-service .ph-rail .ph-card__media { aspect-ratio: 16 / 10; }
:is(#top,body).peham-ui-event-service .peham-hub :is(.ph-btn,.ph-cta,.ph-more) { border-radius: 8px; }
:is(#top,body).peham-ui-event-service .peham-hub .ph-btn { background: var(--peham-service-teal); }
:is(#top,body).peham-ui-event-service .ph-sub {
    background: var(--peham-service-hero);
    border: 1px solid #315b5e;
    border-radius: 14px;
}
:is(#top,body).peham-ui-event-service .peham-hub :is(a,button,input):focus-visible {
    outline: 3px solid #b97813;
    outline-offset: 3px;
}
#top.peham-ui-event-service #main > .main_color { background: var(--peham-service-paper); }
#top.peham-ui-event-service #main .peham-er {
    --per-green: var(--peham-service-teal);
    --per-green-2: #08474c;
    --per-ink: var(--peham-service-ink);
    --per-line: var(--peham-service-line);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
#top.peham-ui-event-service .pev-hero .pev-info { background: #edf4ef; }
#top.peham-ui-event-service .pev-title { color: var(--peham-service-ink); letter-spacing: -.04em; }
#top.peham-ui-event-service .peham-er :is(.per-card,.per-form) { border-color: var(--peham-service-line); border-radius: 14px; }

/* The magnifier and native search input occupy separate grid tracks. */
#top.peham-ui-member-service #main > .main_color { background: #f7f6f0; }
:is(#top,body).peham-ui-member-service .pmb-dir {
    --pmb-ink: #102d31;
    --pmb-green: #075c62;
    --pmb-gold: #ebcc88;
    --pmb-line: #dce4df;
    --pmb-bg-2: #edf4ef;
    --pmb-muted: #4c6264;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
:is(#top,body).peham-ui-member-service .pmb-dir .pmb-dir__hero {
    background: radial-gradient(ellipse at 79% 24%, #17565b, #082f35 51%, #05272d 82%);
    border-radius: 14px;
}
:is(#top,body).peham-ui-member-service .pmb-dir .pmb-dir__tools {
    position: relative;
    border-radius: 12px;
    align-items: center;
}
:is(#top,body).peham-ui-member-service .pmb-dir .pmb-dir__search {
    display: grid;
    position: relative;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 50px;
    padding: 0 14px;
    margin: 0;
    border: 1px solid #c5d9d3;
    border-radius: 8px;
    background: #edf4ef;
    color: #4c6264;
}
:is(#top,body).peham-ui-member-service .pmb-dir .pmb-dir__search > .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
:is(#top,body).peham-ui-member-service .pmb-dir .pmb-dir__search svg {
    grid-column: 1;
    grid-row: 1;
    position: static;
    transform: none;
    width: 20px;
    height: 20px;
    fill: currentColor;
    pointer-events: none;
}
:is(#top,body).peham-ui-member-service .pmb-dir .pmb-dir__search input[type="search"] {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent !important;
    color: #102d31;
    font-size: 16px;
}
:is(#top,body).peham-ui-member-service .pmb-dir .pmb-dir__search input::placeholder { color: #4c6264; opacity: 1; }
:is(#top,body).peham-ui-member-service .pmb-dir .pmb-dir__search:focus-within { outline: 2px solid #075c62; outline-offset: 2px; }
:is(#top,body).peham-ui-member-service .pmb-dir .pmb-dir__chips button { border-radius: 8px; }
:is(#top,body).peham-ui-member-service .pmb-dir .pmb-dir__chips button.is-on {
    background: #075c62;
    border-color: #075c62;
    color: white;
}

@media (max-width: 930px) {
    :is(#top,body).peham-ui-event-service .peham-event-content > .peham-hub { width: calc(100% - 52px); }
    :is(#top,body).peham-ui-event-service .ph-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
    :is(#top,body).peham-ui-event-service .peham-event-content > .peham-hub { width: calc(100% - 36px); }
    :is(#top,body).peham-ui-event-service .peham-event-content .ph-hero__in { max-width: none; }
    :is(#top,body).peham-ui-event-service .peham-event-content .ph-hero::after { opacity: .24; }
    :is(#top,body).peham-ui-event-service .ph-search input[type="search"] { text-overflow: ellipsis; }
    :is(#top,body).peham-ui-event-service .ph-chips__in { flex-wrap: wrap; overflow: visible; gap: 7px; }
    :is(#top,body).peham-ui-event-service .ph-rail {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-columns: auto;
        overflow: visible;
        scroll-snap-type: none;
    }
    :is(#top,body).peham-ui-member-service .pmb-dir .pmb-dir__search { flex-basis: 100%; }
}

/* Member registration keeps its original Enfold template and Membership form. */
#top.peham-ui-join-service #main > .main_color { background: #f7f6f0; }
#top.peham-ui-join-service .peham-ui-join-heading { font-family: Inter, "Segoe UI", system-ui, sans-serif; }
#top.peham-ui-join-service .peham-ui-join-heading h1 { color: #fff; }
#top.peham-ui-join-service .post-entry-3444 .peham-mb {
    --pmb-ink: #102d31;
    --pmb-green: #075c62;
    --pmb-green-2: #08474c;
    --pmb-green-soft: #e9f3ee;
    --pmb-gold: #ebcc88;
    --pmb-muted: #4c6264;
    --pmb-line: #dce4df;
    --pmb-bg-2: #f3f7f4;
    --pmb-radius: 12px;
    max-width: 850px;
    margin-inline: auto;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
#top.peham-ui-join-service .post-entry-3444 .pmb-intro {
    margin: 0 0 22px;
    padding: 15px 20px;
    border: 1px solid #cddfd6;
    border-radius: 12px;
    background: #edf4ef;
}
#top.peham-ui-join-service .post-entry-3444 .pmb-intro p { margin-block: 0 8px; }
#top.peham-ui-join-service .post-entry-3444 .pmb-intro p:last-child { margin-bottom: 0; }
#top.peham-ui-join-service .post-entry-3444 .pmb-form {
    padding: clamp(15px, 4vw, 34px);
    box-shadow: 0 10px 24px #1434320d;
}
#top.peham-ui-join-service .post-entry-3444 .pmb-section-title {
    margin-bottom: 19px;
    color: #102d31;
    font-size: clamp(23px, 3vw, 29px);
    line-height: 1.16;
    letter-spacing: -.035em;
    text-transform: none;
}
#top.peham-ui-join-service .post-entry-3444 .pmb-grid2 + .pmb-section-title {
    margin-top: 25px;
    padding-top: 21px;
    border-top: 1px solid #dce4df;
}
#top.peham-ui-join-service .post-entry-3444 .pmb-field { min-width: 0; }
#top.peham-ui-join-service .post-entry-3444 .pmb-field :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea) {
    min-width: 0;
    min-height: 46px;
    max-width: 100%;
    font-size: 16px;
}
#top.peham-ui-join-service .post-entry-3444 .pmb-form :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid #946217;
    outline-offset: 3px;
}
#top.peham-ui-join-service .post-entry-3444 .pmb-form .pmb-btn--lg {
    min-height: 48px;
    border-radius: 8px;
    line-height: 1.35;
    white-space: normal;
}
@media (max-width: 600px) {
    #top.peham-ui-join-service .post-entry-3444 .pmb-intro { padding: 13px 15px; }
    #top.peham-ui-join-service .post-entry-3444 .pmb-grid2,
    #top.peham-ui-join-service .post-entry-3444 .pmb-types { grid-template-columns: minmax(0, 1fr); }
}
