/* CANOPY GREENHOUSE CURATED EVENTS V22.0.12 */

.greenhouse-events-shell {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.greenhouse-events-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 1px;
}

.greenhouse-events-heading h2 {
    margin: 0;
    color: #15231c;
    font-size: clamp(1.3rem, 2vw, 1.72rem);
    letter-spacing: -0.025em;
}

.greenhouse-events-heading span {
    color: #6d7972;
    font-size: 0.74rem;
    font-weight: 700;
}

.greenhouse-events-list {
    display: grid;
    gap: 14px;
}

.greenhouse-event-card {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 2px solid var(--canopy-menu-ribbon, #082b22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px rgba(8, 43, 34, 0.04);
}

/*
   The Field shell has global surface rules that can flatten borders on
   content after the Events surface renders. This deliberately uses the same
   runtime token as the actual left sidebar and wins that cascade so every
   curated Event remains visibly wrapped.
*/
html.canopy-field [data-greenhouse-panel="events"] .greenhouse-event-card,
html.canopy-field .greenhouse-events-list > .greenhouse-event-card {
    border: 2px solid var(--canopy-menu-ribbon, #082b22) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow:
        0 0 0 1px var(--canopy-menu-ribbon, #082b22),
        0 6px 18px rgba(8, 43, 34, 0.06) !important;
}

.greenhouse-event-media {
    position: relative;
    min-width: 0;
    min-height: 230px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.35), transparent 32%),
        linear-gradient(145deg, var(--canopy-menu-ribbon, #082b22), #517663 70%, #dce8dd);
}

.greenhouse-event-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}

.greenhouse-event-placeholder {
    display: grid;
    width: 100%;
    min-height: 230px;
    place-items: center;
    padding: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.greenhouse-event-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 22px 28px;
}

.greenhouse-event-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--canopy-menu-ribbon, #082b22);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.greenhouse-event-eyebrow::before {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #d59a36;
    box-shadow: 0 0 0 3px rgba(213, 154, 54, 0.12);
    content: "";
}

.greenhouse-event-card[data-event-active="true"] .greenhouse-event-eyebrow::before {
    background: #c23c32;
    box-shadow: 0 0 0 3px rgba(194, 60, 50, 0.12);
}

.greenhouse-event-card[data-event-past="true"] .greenhouse-event-eyebrow::before {
    background: #87958d;
    box-shadow: 0 0 0 3px rgba(135, 149, 141, 0.12);
}

.greenhouse-event-copy h3 {
    margin: 0 0 5px;
    color: #10251c;
    font-size: clamp(1.08rem, 1.8vw, 1.4rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.greenhouse-event-date {
    margin-bottom: 10px;
    color: var(--canopy-menu-ribbon, #082b22);
    font-size: 0.76rem;
    font-weight: 720;
}

.greenhouse-event-description {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: #586960;
    font-size: 0.82rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.greenhouse-event-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.greenhouse-event-action,
.greenhouse-event-secondary {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
}

.greenhouse-event-action,
.greenhouse-event-action:link,
.greenhouse-event-action:visited,
.greenhouse-event-action:hover,
.greenhouse-event-action:focus,
.greenhouse-event-action:focus-visible,
.greenhouse-event-action:active {
    border-color: var(--canopy-menu-ribbon, #082b22) !important;
    background: var(--canopy-menu-ribbon, #082b22) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.greenhouse-event-action:hover,
.greenhouse-event-action:focus-visible {
    filter: brightness(1.08);
}

.greenhouse-event-secondary {
    border-color: rgba(8, 43, 34, 0.2);
    background: #fff;
    color: var(--canopy-menu-ribbon, #082b22);
}

.greenhouse-event-secondary:hover,
.greenhouse-event-secondary:focus-visible {
    border-color: var(--canopy-menu-ribbon, #082b22);
    background: rgba(8, 43, 34, 0.04);
}

.greenhouse-events-empty,
.greenhouse-events-error,
.greenhouse-events-loading {
    display: grid;
    min-height: 120px;
    place-items: center;
    padding: 20px;
    border: 1px dashed rgba(8, 43, 34, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #607168;
    text-align: center;
}

@media (max-width: 900px) {
    .greenhouse-event-card {
        grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
    }

    .greenhouse-event-copy {
        padding: 19px 22px;
    }
}

@media (max-width: 700px) {
    .greenhouse-events-shell,
    .greenhouse-events-list {
        gap: 10px;
    }

    .greenhouse-event-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .greenhouse-event-media,
    .greenhouse-event-media img,
    .greenhouse-event-placeholder {
        min-height: 0;
        aspect-ratio: 16 / 8.5;
    }

    .greenhouse-event-copy {
        justify-content: flex-start;
        padding: 16px 18px 18px;
    }

    .greenhouse-event-description {
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 480px) {
    .greenhouse-events-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .greenhouse-event-copy {
        padding: 14px 15px 15px;
    }

    .greenhouse-event-actions {
        gap: 6px;
    }

    .greenhouse-event-action,
    .greenhouse-event-secondary {
        min-height: 33px;
        padding-inline: 11px;
    }
}

/* CANOPY GREENHOUSE EVENT CARD ADAPTIVE SIZE v22.9.67 START */
/*
   Preserve the compact, fixed-height desktop card. Tighten only the copy
   spacing so the description has room within that consistent card size.
*/
.greenhouse-event-card {
    width: min(100%, 900px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr) !important;
    box-sizing: border-box !important;
}

.greenhouse-event-card > .greenhouse-event-media {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 200px !important;
    aspect-ratio: auto !important;
}

.greenhouse-event-card > .greenhouse-event-media > img {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 200px !important;
    aspect-ratio: auto !important;
}

.greenhouse-event-card > .greenhouse-event-copy {
    min-height: 0 !important;
    max-height: 200px !important;
    box-sizing: border-box !important;
    overflow: hidden;
    justify-content: flex-start;
    padding-block: 12px;
}

.greenhouse-event-card > .greenhouse-event-copy .greenhouse-event-eyebrow {
    margin-bottom: 4px;
}

.greenhouse-event-card > .greenhouse-event-copy h3 {
    margin-bottom: 3px;
}

.greenhouse-event-card > .greenhouse-event-copy .greenhouse-event-date {
    margin-bottom: 6px;
}

.greenhouse-event-card > .greenhouse-event-copy .greenhouse-event-description {
    margin-bottom: 8px;
}
@media (max-width: 700px) {
    .greenhouse-event-card {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .greenhouse-event-card > .greenhouse-event-media,
    .greenhouse-event-card > .greenhouse-event-media > img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 16 / 7 !important;
    }

    .greenhouse-event-card > .greenhouse-event-media > img {
        object-fit: cover;
    }

    .greenhouse-event-card > .greenhouse-event-copy {
        max-height: none !important;
        overflow: visible;
    }
}
/* CANOPY GREENHOUSE EVENT CARD ADAPTIVE SIZE v22.9.67 END */
