.gwe-page,
.gwe-calendar,
.gwe-upcoming {
    --gwe-ink: #122824;
    --gwe-muted: #5c706b;
    --gwe-line: #dce6e2;
    --gwe-surface: #f2f7f4;
    --gwe-forest: #123932;
    --gwe-gold: #dbad49;
    box-sizing: border-box;
    color: var(--gwe-ink);
}

.gwe-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 18px 64px;
}

.gwe-page *,
.gwe-calendar *,
.gwe-upcoming * {
    box-sizing: border-box;
}

.gwe-eyebrow {
    margin: 0 0 8px;
    color: #28705f;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.gwe-heading h1,
.gwe-single h1,
.gwe-section-head h2 {
    margin: 0;
    color: var(--gwe-ink);
}

.gwe-heading > p:not(.gwe-eyebrow) {
    max-width: 720px;
    color: var(--gwe-muted);
}

.gwe-button,
.gwe-form button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--gwe-forest);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.gwe-button.is-secondary {
    border: 1px solid var(--gwe-line);
    background: #eef5f2;
    color: var(--gwe-forest);
}

.gwe-form-shell,
.gwe-single,
.gwe-calendar,
.gwe-upcoming {
    margin-top: 18px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--gwe-line);
    border-radius: 22px;
    background: #fff;
}

.gwe-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gwe-form label {
    display: grid;
    gap: 7px;
    color: var(--gwe-ink);
    font-weight: 700;
}

.gwe-distance-fields {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.gwe-distance-fields legend {
    grid-column: 1 / -1;
    color: var(--gwe-ink);
    font-weight: 800;
}

.gwe-form input,
.gwe-form select,
.gwe-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gwe-line);
    border-radius: 12px;
    color: var(--gwe-ink);
    font: inherit;
}

.gwe-form label span {
    color: var(--gwe-muted);
    font-size: .86rem;
    font-weight: 400;
}

.gwe-wide,
.gwe-form button {
    grid-column: 1 / -1;
}

.gwe-notice,
.gwe-empty {
    margin: 16px 0;
    padding: 16px;
    border-radius: 14px;
    background: var(--gwe-surface);
}

.gwe-notice-error {
    background: #fff0ed;
}

.gwe-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.gwe-section-head a {
    color: #24554b;
    font-weight: 800;
}

.gwe-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.gwe-weekday {
    color: var(--gwe-muted);
    font-size: .8rem;
    font-weight: 800;
    text-align: center;
}

.gwe-day {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 54px;
    border: 1px solid var(--gwe-line);
    border-radius: 12px;
    background: #fff;
    color: var(--gwe-ink);
    font-weight: 800;
}

.gwe-day[disabled] {
    color: #8a9995;
}

.gwe-day.has-events {
    border-color: var(--gwe-gold);
    background: #fff8e9;
    cursor: pointer;
}

.gwe-day i {
    position: absolute;
    right: 6px;
    top: 6px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--gwe-forest);
    color: #fff;
    font-size: .72rem;
    font-style: normal;
}

.gwe-popover {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 50%;
    display: none;
    width: min(240px, 70vw);
    padding: 10px;
    border: 1px solid var(--gwe-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 35px rgba(18,40,36,.16);
    transform: translateX(-50%);
}

.gwe-day.is-open .gwe-popover,
.gwe-day:focus-within .gwe-popover {
    display: grid;
    gap: 7px;
}

.gwe-popover a {
    color: var(--gwe-ink);
    text-align: left;
    text-decoration: none;
}

.gwe-event-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gwe-event-card {
    overflow: hidden;
    border-radius: 15px;
    background: var(--gwe-surface);
}

.gwe-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    background: #e5eeea;
}

.gwe-card-image img,
.gwe-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gwe-event-card > div {
    padding: 15px;
}

.gwe-meta {
    margin: 0 0 7px;
    color: var(--gwe-muted);
    font-size: .84rem;
}

.gwe-event-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.gwe-event-card h3 a {
    color: var(--gwe-ink);
    text-decoration: none;
}

.gwe-event-card p:last-child {
    margin: 0;
    color: var(--gwe-muted);
}

.gwe-single-header {
    margin-bottom: 20px;
}

.gwe-observe-form {
    margin-top: 16px;
}

.gwe-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.gwe-single-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--gwe-surface);
    color: var(--gwe-muted);
    font-weight: 700;
}

.gwe-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 22px;
}

.gwe-gallery img {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
}

.gwe-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
}

.gwe-content {
    line-height: 1.7;
}

.gwe-facts {
    display: grid;
    gap: 10px;
    align-self: start;
}

.gwe-facts p {
    margin: 0;
    padding: 14px;
    border-radius: 13px;
    background: var(--gwe-surface);
}

.gwe-facts strong,
.gwe-facts span {
    display: block;
}

.gwe-facts span {
    color: var(--gwe-muted);
}

.gwe-account-events {
    display: block;
}

.gwe-account-hero {
    margin-bottom: 18px;
}

.gwe-account-event-list {
    display: grid;
    gap: 12px;
}

.gwe-account-event {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: var(--gwe-surface);
}

.gwe-account-event-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: #dce6e2;
}

.gwe-account-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gwe-account-event h3 {
    margin: 0 0 6px;
}

.gwe-account-event h3 a {
    color: var(--gwe-ink);
    text-decoration: none;
}

.gwe-account-event p:last-child {
    margin: 0;
    color: var(--gwe-muted);
}

.gwe-account-event form {
    margin: 0;
}

.gwe-account-event form .gwe-button {
    white-space: nowrap;
}

@media (max-width: 800px) {
    .gwe-form,
    .gwe-event-cards,
    .gwe-single-grid,
    .gwe-account-event,
    .gwe-distance-fields {
        grid-template-columns: 1fr;
    }

    .gwe-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .gwe-calendar-grid {
        gap: 5px;
    }

    .gwe-day {
        min-height: 44px;
        border-radius: 9px;
    }
}
