/* Events page and event details (Nov 2026). Mobile first. */
.ev {
    --ev-green: #005a3c;
    --ev-green-dark: #013b2e;
    --ev-sage: #e9f2ea;
    --ev-gold: #e0a526;
    --ev-gold-soft: #fbf1db;
    --ev-ink: #14312b;
    --ev-muted: #58675e;
    --ev-line: #e1e7e1;
    --ff-control: 46px;
    --ff-text: 16px;
    --ff-label: 14px;
    background: #f7f4ee;
    color: var(--ev-ink);
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
.ev *, .ev *::before, .ev *::after { box-sizing: border-box; }
.ev-shell { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.ev h1, .ev h2, .ev h3, .ev h4 { margin: 0; color: var(--ev-green-dark); }
.ev h1, .ev h2 { font-family: var(--fhf-font-display, Georgia, serif); }
.ev p { margin: 0; }
.ev a { color: var(--ev-green); }
.ev a:focus-visible, .ev button:focus-visible, .ev summary:focus-visible, .ev input:focus-visible, .ev select:focus-visible { outline: 3px solid #f1ca62; outline-offset: 2px; }
.ev .is-hidden { display: none !important; }

/* Buttons */
.ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid transparent; border-radius: 10px; font: inherit; font-size: 0.95rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.ev-btn-primary { background: var(--ev-green); border-color: var(--ev-green); color: #fff !important; }
.ev-btn-primary:hover { background: var(--ev-green-dark); }
.ev-btn-outline { background: #fff; border-color: #a9c6b2; color: var(--ev-green-dark) !important; }
.ev-btn-outline:hover { border-color: var(--ev-green); background: #f6faf6; }
.ev-btn-gold { background: #c98a18; border-color: #c98a18; color: #fff !important; }
.ev-btn-gold:hover { background: #a9720f; }
.ev-btn-muted { background: #eef1ee; color: var(--ev-muted) !important; cursor: default; }
.ev-icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--ev-line); border-radius: 10px; background: #fff; color: var(--ev-green-dark) !important; font-weight: 700; cursor: pointer; list-style: none; }
.ev-icon-btn::-webkit-details-marker { display: none; }

/* Hero */
.ev-hero { position: relative; overflow: hidden; background-color: var(--ev-green-dark); background-image: radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.05) 2px, transparent 2.5px), linear-gradient(100deg, var(--ev-green-dark), var(--ev-green) 75%); background-size: 26px 26px, auto; color: #fff; }
.ev-hero-inner { position: relative; z-index: 1; display: grid; align-content: center; gap: 8px; min-height: 140px; padding-top: 18px; padding-bottom: 18px; }
.ev-hero h1 { color: #fff; font-size: clamp(2.1rem, 8vw, 3.4rem); line-height: 1; }
.ev-hero-inner > p { max-width: 560px; color: rgba(255, 255, 255, 0.92); font-size: clamp(0.95rem, 2.6vw, 1.12rem); line-height: 1.5; }
.ev-hero-art { display: none; }
.ev-hero-small .ev-hero-inner { min-height: 120px; }
.ev-hero-small h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: 1.12; }
.ev-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 0.86rem; }
.ev-crumbs li { color: rgba(255, 255, 255, 0.85); }
.ev-crumbs li + li::before { content: "›"; margin-right: 8px; color: rgba(255, 255, 255, 0.6); }
.ev-crumbs a { color: #fff !important; }

/* Highlights */
.ev-highlights { background: var(--ev-sage); border-bottom: 1px solid #d6e5d8; }
.ev-highlights-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding-top: 10px; padding-bottom: 10px; }
.ev-highlights a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 2px; color: var(--ev-ink) !important; text-decoration: none; }
.ev-highlights .fhf-icon { flex-shrink: 0; color: var(--ev-green); }
.ev-highlights strong { display: block; color: var(--ev-green-dark); font-size: 0.92rem; line-height: 1.25; }
.ev-highlights small { display: none; color: var(--ev-muted); font-size: 0.82rem; line-height: 1.35; }
.ev-highlights a:hover strong { text-decoration: underline; }

/* Filters */
.ev-filters { display: grid; gap: 12px; margin-top: 18px; }
.ev-filters-top { display: grid; gap: 10px; }
.ev-filters-top h2 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
.ev-filters-top p { color: var(--ev-muted); font-size: 0.95rem; }
.ev-search { position: relative; display: block; }
.ev-search .fhf-icon { position: absolute; top: 50%; left: 14px; margin-top: -10px; color: var(--ev-muted); pointer-events: none; }
.ev-search input { width: 100%; min-height: 48px !important; height: 48px !important; padding-left: 44px !important; border: 1px solid #c9d4cc; border-radius: 12px; background: #fff; font-size: 1rem; }
.ev-chips { display: flex; gap: 8px; min-width: 0; max-width: 100%; margin: 0; padding: 0 0 4px; overflow-x: auto; border: 0; min-inline-size: 0; scrollbar-width: thin; }
.ev-chips label { position: relative; flex-shrink: 0; margin: 0; }
.ev-chips input { position: absolute; opacity: 0; pointer-events: none; }
.ev-chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--ev-line); border-radius: 10px; background: #fff; color: var(--ev-ink); font-size: 0.92rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.ev-chips input:checked + span { border-color: var(--ev-green); background: var(--ev-green); color: #fff; }
.ev-chips input:focus-visible + span { outline: 3px solid #f1ca62; outline-offset: 2px; }
.ev-filters-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.ev-filters-row label { display: grid !important; gap: 4px; font-size: 0.85rem; font-weight: 700; }
.ev-filters-row select, .ev-filters-row input { width: 100%; border: 1px solid #c9d4cc; border-radius: 10px; background: #fff; }
.ev-view { display: flex; grid-column: 1 / -1; gap: 6px; }
.ev-view a { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1px solid var(--ev-line); border-radius: 10px; background: #fff; color: var(--ev-ink) !important; font-weight: 700; text-decoration: none; }
.ev-view a.is-active { border-color: var(--ev-green); background: var(--ev-sage); color: var(--ev-green-dark) !important; }
.ev-filters.is-live .ev-apply { display: none; }
.ev-clear-row a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Results */
[data-ev-results] { margin-top: 14px; transition: opacity 0.15s; }
[data-ev-results].is-loading { opacity: 0.55; }
.ev-count { margin-bottom: 10px !important; color: var(--ev-muted); font-size: 0.9rem; }
.ev-grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ev-grid > li { min-width: 0; }
.ev-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); height: 100%; overflow: hidden; border: 1px solid var(--ev-line); border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(20, 49, 43, 0.06); }
.ev-card.is-cancelled { opacity: 0.75; }
.ev-media { position: relative; min-height: 100%; overflow: hidden; background: var(--ev-sage); }
.ev-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-fallback { position: absolute; inset: 0; display: grid; place-items: center; background-color: var(--ev-green-dark); background-image: radial-gradient(circle at 10px 10px, rgba(255, 255, 255, 0.08) 2px, transparent 2.5px), linear-gradient(140deg, var(--ev-green), var(--ev-green-dark)); background-size: 20px 20px, auto; color: #f1ca62; }
.ev-badge { display: none; }
.ev-media .ev-tools { display: none; }
.ev-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; }
.ev-head { display: flex; gap: 10px; align-items: flex-start; }
.ev-date { display: none; }
.ev-card h3 { font-family: var(--fhf-font-display, Georgia, serif); font-size: 1.12rem; line-height: 1.22; overflow-wrap: anywhere; }
.ev-card h3 a { color: inherit !important; text-decoration: none; }
.ev-card h3 a:hover { text-decoration: underline; }
.ev-flag { margin-top: 4px !important; color: #7a5208; font-size: 0.82rem; font-weight: 800; }
.ev-flag.is-cancelled { color: #8c2b22; }
.ev-facts { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 0.86rem; }
.ev-facts li { display: flex; align-items: flex-start; gap: 6px; line-height: 1.35; overflow-wrap: anywhere; }
.ev-facts .fhf-icon { flex-shrink: 0; margin-top: 1px; color: var(--ev-green); }
.ev-summary { display: none; color: var(--ev-muted); font-size: 0.9rem; line-height: 1.45; }
.ev-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 4px; }
.ev-actions .ev-btn-outline { display: none; }
.ev-body > .ev-tools { display: flex; }
.ev-tools { display: flex; gap: 6px; }
.ev-card .ev-actions + .ev-tools { margin-top: 0; }
.ev-more { margin-top: 16px !important; text-align: center; }
.ev-empty { display: grid; justify-items: center; gap: 10px; padding: 28px 16px; border: 1px dashed #c3cfc7; border-radius: 16px; background: #fff; color: var(--ev-muted); text-align: center; }
.ev-empty .fhf-icon { color: var(--ev-green); }

/* Menus */
.ev-menu { position: relative; }
.ev-menu-panel { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); display: grid; gap: 2px; width: 220px; padding: 6px; border: 1px solid var(--ev-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(20, 49, 43, 0.18); }
.ev-menu-panel a, .ev-menu-panel button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ev-ink) !important; font: inherit; font-size: 0.92rem; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.ev-menu-panel a:hover, .ev-menu-panel button:hover { background: var(--ev-sage); }
.ev-menu-panel p { padding: 4px 12px; color: var(--ev-muted); font-size: 0.8rem; line-height: 1.35; }
.ev-menu-panel .ev-copied:empty { display: none; }
.ev-menu-panel .ev-copied { color: var(--ev-green-dark); font-weight: 700; overflow-wrap: anywhere; }

/* Calendar */
.ev-cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ev-cal-head h3 { flex: 1; min-width: 140px; font-family: var(--fhf-font-display, Georgia, serif); font-size: 1.4rem; text-align: center; }
.ev-rot-l { transform: rotate(90deg); }
.ev-rot-r { transform: rotate(-90deg); }
.ev-today { order: 4; flex-basis: 100%; }
.ev-cal { display: none; }
.ev-agenda h4 { margin-top: 14px; padding-bottom: 4px; border-bottom: 2px solid var(--ev-gold); font-size: 1rem; }
.ev-agenda h4.is-today::after { content: " · Today"; color: var(--ev-gold); }
.ev-agenda ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ev-agenda a { display: grid; gap: 2px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ev-line); border-radius: 10px; background: #fff; color: var(--ev-ink) !important; text-decoration: none; }
.ev-agenda span { color: var(--ev-muted); font-size: 0.86rem; }
.ev-agenda .is-cancelled strong { text-decoration: line-through; }

/* Featured */
.ev-featured { display: grid; margin-top: 22px; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(20, 49, 43, 0.1); }
.ev-featured-copy { display: grid; gap: 8px; padding: 18px; background-color: var(--ev-green-dark); background-image: radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.05) 2px, transparent 2.5px); background-size: 26px 26px; color: #fff; }
.ev-featured-tag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 12px; border-radius: 999px; background: #f1ca62; color: #1f2b1f; font-size: 0.84rem; font-weight: 800; }
.ev-featured h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.ev-featured h2 a { color: #fff !important; text-decoration: none; }
.ev-featured-copy > p:last-child { color: rgba(255, 255, 255, 0.9); line-height: 1.5; }
.ev-featured-art { display: none; }
.ev-featured-meta { display: grid; gap: 12px; padding: 16px 18px; background: #fffaf0; }
.ev-featured-meta ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.ev-featured-meta li { display: flex; align-items: center; gap: 8px; }
.ev-featured-meta .fhf-icon { color: var(--ev-green); }
.ev-subscribe { display: flex; align-items: center; gap: 8px; margin-top: 18px !important; font-size: 0.92rem; }
.ev-subscribe .fhf-icon { color: var(--ev-green); }

/* Detail page */
.ev-detail { display: grid; gap: 16px; margin-top: 18px; }
.ev-detail-main, .ev-detail-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ev-panel { min-width: 0; padding: 18px; border: 1px solid var(--ev-line); border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(20, 49, 43, 0.06); }
.ev-panel h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: clamp(1.25rem, 4vw, 1.5rem); }
.ev-panel h2 .fhf-icon { color: var(--ev-green); }
.ev-photo { overflow: hidden; border-radius: 16px; background: var(--ev-sage); aspect-ratio: 16 / 8; }
.ev-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-lede { font-size: 1.08rem; line-height: 1.55; }
.ev-prose { margin-top: 10px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.ev-dl { display: grid; gap: 12px; margin: 0; }
.ev-dl div { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; }
.ev-dl .fhf-icon { grid-row: span 2; margin-top: 2px; color: var(--ev-green); }
.ev-dl dt { color: var(--ev-muted); font-size: 0.82rem; font-weight: 700; }
.ev-dl dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ev-dates { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ev-dates li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; border-radius: 10px; background: #f6f9f6; }
.ev-dates li.is-cancelled { background: #fdf0ee; color: #8c2b22; }
.ev-dates li.is-cancelled span { text-decoration: line-through; }
.ev-dates small { color: var(--ev-muted); }
.ev-status { margin-top: 8px !important; padding: 10px 12px; border-radius: 10px; background: var(--ev-gold-soft); font-weight: 700; }
.ev-status.is-cancelled { background: #fdf0ee; color: #8c2b22; }
.ev-stack { display: grid; gap: 8px; margin-top: 12px; }
.ev-stack .ev-tools { display: grid; grid-template-columns: 1fr 1fr; }
.ev-stack .ev-tools .ev-icon-btn { width: 100%; }
.ev-related { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ev-back { justify-self: start; }

@media (prefers-reduced-motion: reduce) { [data-ev-results] { transition: none; } }

@media (min-width: 480px) {
    .ev-card { grid-template-columns: 150px minmax(0, 1fr); }
    .ev-summary { display: block; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 600px) {
    .ev-shell { padding: 0 24px; }
    .ev-highlights small { display: block; }
    .ev-actions { grid-template-columns: 1fr 1fr; }
    .ev-actions .ev-btn-outline { display: inline-flex; }
    .ev-filters-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ev-view { grid-column: auto; }
    .ev-today { order: 0; flex-basis: auto; }
    .ev-featured-meta { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 768px) {
    .ev-hero-inner { min-height: 190px; padding-right: 46%; }
    .ev-hero-small .ev-hero-inner { min-height: 150px; padding-right: 0; }
    .ev-hero-art { position: absolute; top: 0; right: 0; bottom: 0; display: block; width: 44%; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
    .ev-hero-art::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 6px; background: var(--ev-gold); transform: skewX(-9deg); transform-origin: bottom; }
    .ev-hero-art img { width: 100%; height: 100%; object-fit: cover; }
    .ev-filters-top { grid-template-columns: 1fr minmax(320px, 0.9fr); align-items: end; }
    .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ev-card { display: flex; flex-direction: column; }
    .ev-media { aspect-ratio: 16 / 7; min-height: 0; }
    .ev-badge { position: absolute; top: 12px; left: 12px; display: inline-block; max-width: calc(100% - 120px); overflow: hidden; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); color: var(--ev-green-dark); font-size: 0.8rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
    .ev-media .ev-tools { position: absolute; top: 10px; right: 10px; display: flex; }
    .ev-media .ev-icon-btn { min-width: 40px; min-height: 40px; background: rgba(255, 255, 255, 0.95); }
    .ev-body > .ev-tools { display: none; }
    .ev-body { padding: 14px 16px 16px; }
    .ev-date { display: grid; flex-shrink: 0; place-items: center; width: 64px; padding: 6px 4px; border-radius: 10px; background: var(--ev-sage); color: var(--ev-green-dark); font-size: 0.95rem; font-weight: 800; line-height: 1.15; text-align: center; }
    .ev-date span { font-size: 1.1rem; text-transform: uppercase; }
    .ev-card h3 { font-size: 1.22rem; }
    .ev-cal { display: table; width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
    .ev-cal th { padding: 6px 0; color: var(--ev-muted); font-size: 0.85rem; }
    .ev-cal td { height: 104px; padding: 6px; border: 1px solid var(--ev-line); border-radius: 10px; background: #fff; vertical-align: top; }
    .ev-cal td.is-outside { background: transparent; border-color: transparent; color: #a7b0aa; }
    .ev-cal td.is-today { border-color: var(--ev-gold); box-shadow: inset 0 0 0 1px var(--ev-gold); }
    .ev-cal td.has-events .ev-cal-day { color: var(--ev-green-dark); }
    .ev-cal-day { display: block; font-weight: 800; }
    .ev-cal ul { display: grid; gap: 3px; margin: 4px 0 0; padding: 0; list-style: none; }
    .ev-cal li a { display: block; padding: 3px 6px; overflow: hidden; border-left: 3px solid var(--ev-green); border-radius: 4px; background: var(--ev-sage); color: var(--ev-ink) !important; font-size: 0.78rem; font-weight: 700; line-height: 1.25; text-decoration: none; text-overflow: ellipsis; }
    .ev-cal li a small { display: block; color: var(--ev-muted); font-weight: 500; }
    .ev-cal li.is-cancelled a { border-left-color: #c0392b; background: #fdf0ee; text-decoration: line-through; }
    .ev-cal li.is-moved a { border-left-color: var(--ev-gold); background: var(--ev-gold-soft); }
    .ev-tag { font-size: 0.7rem; text-transform: uppercase; }
    .ev-agenda { display: none; }
    .ev-featured { grid-template-columns: 1.2fr 0.9fr 1fr; }
    .ev-featured-art { position: relative; display: block; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); margin-left: -40px; }
    .ev-featured-art img { width: 100%; height: 100%; object-fit: cover; }
    .ev-featured-meta { grid-template-columns: 1fr; align-content: center; }
    .ev-featured:not(:has(.ev-featured-art)) { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 1024px) {
    .ev-highlights-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ev-highlights a + a { padding-left: 16px; border-left: 1px solid #cfe0d2; }
    .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .ev-filters-row { grid-template-columns: repeat(4, minmax(0, 220px)) auto; justify-content: start; }
    .ev-view { justify-self: end; grid-column: -2 / -1; min-width: 240px; }
    .ev-detail { grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; }
    .ev-detail-side { position: sticky; top: 96px; }
    .ev-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ev-panel-title { margin-bottom: 12px !important; font-size: clamp(1.3rem, 4vw, 1.6rem); }
.ev .ev-filters label.is-hidden, .ev .ev-filters [hidden] { display: none !important; }
.ev-body > .ev-tools .ev-icon-btn { flex: 1; }
.ev-icon-btn span { white-space: nowrap; font-size: 0.9rem; }

/* Menus must not be clipped by the card. */
.ev-card { position: relative; overflow: visible; }
.ev-media { border-radius: 16px 0 0 16px; }
.ev-corner { display: none; }
.ev-body > .ev-tools .ev-menu-panel { right: auto; left: 0; }
.ev-menu[open] { z-index: 30; }
@media (min-width: 768px) {
    .ev-media { border-radius: 16px 16px 0 0; }
    .ev-corner { position: absolute; top: 10px; right: 10px; z-index: 5; display: block; }
    .ev-corner .ev-icon-btn { min-width: 40px; min-height: 40px; background: rgba(255, 255, 255, 0.95); }
}
.ev-body > .ev-tools .ev-menu:last-child .ev-menu-panel, .ev-stack .ev-tools .ev-menu:last-child .ev-menu-panel { left: auto; right: 0; }
