/* Events pages (events/templates/events/). Values follow the PourPlan design system: burgundy #7b1e3a for actions,
   gray-200 #e9ecef chips and card grounds, parchment #f8f4ee for the Every week band, Inter headings, Plex body. */
.ev-page { max-width: 1180px; margin: 0 auto; padding: 24px 20px 64px; color: #1e1e1e; }
.ev-page a { color: #7b1e3a; text-decoration: none; }
.ev-page a:hover { color: #691832; text-decoration: underline; }
.ev-page a:focus-visible, .ev-page button:focus-visible, .ev-page summary:focus-visible { outline: 3px solid #f3e5ab; outline-offset: 2px; }
.ev-crumbs { font-size: 14px; color: #555; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.ev-crumbs li + li::before { content: "›"; margin-right: 8px; color: #555; }

.ev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.ev-h1 { margin: 0; font: 700 34px/1.15 Inter, sans-serif; letter-spacing: .5px; text-transform: uppercase; }
.ev-sub { margin: 8px 0 0; font-size: 17px; color: #555; }
.ev-trust { margin: 0; font-size: 14px; color: #555; max-width: 360px; }

.ev-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 0; background: #e9ecef; color: #1e1e1e !important; font: 600 15px Inter, sans-serif; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.ev-chip:hover { background: #dde1e5; }
.ev-chip.on { background: #7b1e3a; color: #fff !important; }
.ev-chip.on:hover { background: #691832; }
.ev-chip.sm { padding: 0 14px; font-size: 14px; }
.ev-chip .n { opacity: .75; font-weight: 500; }
.ev-chip.dashed { background: #fff; border: 1px dashed #adb5bd; }

.ev-when { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #e8e4e2; }
.ev-pickform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 16px 0 4px; }
.ev-pickform[hidden] { display: none; }
.ev-pickform label { display: flex; flex-direction: column; gap: 4px; font: 600 13px Inter, sans-serif; color: #555; }
.ev-pickform input[type=date] { min-height: 44px; padding: 0 10px; border: 1px solid #adb5bd; border-radius: 10px; font: 15px "IBM Plex Sans", sans-serif; }
.ev-addcal summary { list-style: none; }
.ev-addcal summary::-webkit-details-marker { display: none; }
.ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 0; background: #7b1e3a; color: #fff !important; font: 600 15px Inter, sans-serif; cursor: pointer; text-decoration: none !important; }
.ev-btn:hover { background: #5a1629; }
.ev-btn.lg { min-height: 48px; padding: 0 26px; font-size: 16px; }
.ev-btn.outline { background: #fff; color: #7b1e3a !important; border: 2px solid #7b1e3a; }
.ev-btn.outline:hover { background: #fbeef0; }
.ev-btn.light { background: #fff; color: #7b1e3a !important; }

.ev-body { display: flex; flex-wrap: wrap; gap: 32px 40px; padding-top: 24px; align-items: flex-start; }
.ev-filters { flex: 1 1 240px; max-width: 280px; }
.ev-filters > summary { display: none; }
.ev-filter-groups { display: flex; flex-direction: column; gap: 24px; }
.ev-eyebrow { margin: 0 0 10px; font: 600 12px Inter, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #555; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-note { margin: 10px 0 0; font-size: 13px; color: #555; }
.ev-clear { font: 600 15px Inter, sans-serif; text-decoration: underline !important; display: inline-flex; min-height: 44px; align-items: center; }
.ev-tip { background: #e9ecef; border-radius: 16px; padding: 18px 20px; font-size: 14px; color: #343a40; }
.ev-tip strong { display: block; font: 600 15px Inter, sans-serif; color: #1e1e1e; margin-bottom: 4px; }
.ev-main { flex: 999 1 560px; min-width: 0; }

.ev-day { margin-bottom: 32px; }
.ev-day-h { margin: 0; padding: 0 0 10px; font: 700 15px Inter, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #7b1e3a; }
.ev-day-h span { color: #555; font-weight: 500; letter-spacing: 0; }
.ev-card { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid #e8e4e2; align-items: flex-start; }
.ev-time { width: 112px; flex-shrink: 0; font: 700 15px/1.3 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.ev-repeat { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font: 500 12px Inter, sans-serif; color: #355e3b; }
.ev-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: #f8f4ee; }
.ev-info { flex: 1; min-width: 0; }
.ev-title { margin: 0; font: 600 17px/1.3 Inter, sans-serif; }
.ev-title a { color: #1e1e1e !important; }
.ev-place { margin: 4px 0 0; font-size: 15px; }
.ev-place .d { color: #555; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #e9ecef; font: 500 13px Inter, sans-serif; color: #343a40; }
.ev-tag.dark { background: #1e1e1e; color: #fff; font-weight: 600; }
.ev-tag.members { background: #ebd3da; color: #1e1e1e; font-weight: 600; }
.ev-tag.warn { background: #f3e5ab; color: #1e1e1e; font-weight: 600; }
.ev-confirm { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
.ev-cost { width: 104px; flex-shrink: 0; text-align: right; font: 700 16px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.ev-cost a { display: inline-block; margin-top: 6px; font: 600 14px Inter, sans-serif; }
.ev-card.cancelled .ev-title, .ev-card.cancelled .ev-time { text-decoration: line-through; color: #555; }

.ev-every { background: #f8f4ee; border-radius: 16px; padding: 18px 24px; margin-top: 8px; }
.ev-every > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; }
.ev-every > summary::-webkit-details-marker { display: none; }
.ev-every-h { display: block; font: 700 15px Inter, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #355e3b; }
.ev-every-sub { display: block; margin-top: 4px; font-size: 15px; color: #343a40; }
.ev-every-toggle { font: 600 15px Inter, sans-serif; color: #7b1e3a; white-space: nowrap; }
.ev-every-toggle .hide, .ev-every[open] .ev-every-toggle .show { display: none; }
.ev-every[open] .ev-every-toggle .hide { display: inline; }
.ev-series-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 2fr) 8.5em; gap: 6px 18px; align-items: baseline; padding: 12px 0; border-top: 1px solid #e8e4e2; }
.ev-series-row .t { font: 600 16px Inter, sans-serif; color: #1e1e1e !important; }
.ev-series-row .w { font-size: 15px; color: #343a40; }
.ev-series-row .p { font-size: 15px; }
.ev-series-row .x { font-size: 14px; color: #555; text-align: right; }
@media (max-width: 767px) { .ev-series-row { grid-template-columns: minmax(0, 1fr) auto; } .ev-series-row .w { grid-column: 1 / -1; } .ev-series-row .p { grid-column: 1; } }

.ev-empty { background: #f8f9fa; border-radius: 16px; padding: 28px; text-align: center; }
.ev-empty p { margin: 0; }
.ev-empty .big { font: 600 18px Inter, sans-serif; margin-bottom: 6px; }

/* Event and series pages */
.ev-detail { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.ev-detail-main { flex: 999 1 560px; min-width: 0; }
.ev-detail-h1 { margin: 14px 0 0; font: 700 40px/1.15 Inter, sans-serif; }
.ev-detail-when { margin: 10px 0 0; font: 600 20px Inter, sans-serif; color: #343a40; }
.ev-detail-at { margin: 6px 0 0; font-size: 17px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.ev-actions .via { font-size: 14px; color: #555; }
.ev-section { margin-top: 32px; }
.ev-summary { font-size: 17px; line-height: 1.55; }
.ev-banner { border-radius: 12px; padding: 14px 18px; margin: 16px 0 0; font-size: 15px; }
.ev-banner.cancel { background: #1e1e1e; color: #fff; }
.ev-banner.info { background: #f3e5ab; }
.ev-banner.ok { background: #e9ecef; }
.ev-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e8e4e2; align-items: baseline; }
.ev-row .when { width: 130px; flex-shrink: 0; font: 700 15px Inter, sans-serif; }
.ev-row .what { flex: 1; min-width: 0; }
.ev-row .what a { font: 600 16px Inter, sans-serif; color: #1e1e1e !important; }
.ev-row .what small { display: block; font-size: 14px; color: #555; }
.ev-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid #e8e4e2; font-size: 14px; color: #555; }
.ev-report summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font: 600 15px Inter, sans-serif; color: #7b1e3a; }
.ev-report form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ev-aside { flex: 1 1 320px; max-width: 380px; background: #e9ecef; border-radius: 16px; overflow: hidden; }
.ev-aside img { display: block; width: 100%; height: 180px; object-fit: cover; }
.ev-aside .in { padding: 20px 22px 24px; }
.ev-aside h2 { margin: 0; font: 700 20px Inter, sans-serif; }
.ev-aside h2 a { color: #1e1e1e !important; }
.ev-aside dl { margin: 16px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; font-size: 15px; }
.ev-aside dt { font: 600 14px Inter, sans-serif; color: #555; }
.ev-aside dd { margin: 0; }
.ev-aside .muted { color: #555; }

/* Winery profile block */
.ev-block { background: #e9ecef; border-radius: 16px; padding: 18px 20px; }
.ev-block-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ev-block-h h2 { margin: 0; }
.ev-block-list { margin-top: 10px; background: #fff; border-radius: 12px; }
.ev-block-list .ev-row { padding: 12px 14px; }
.ev-block-list .ev-row:last-child { border-bottom: 0; }
.ev-block-list .ev-row .when { width: 96px; font-size: 14px; }
.ev-block-list .ev-row .when span { display: block; font-weight: 500; color: #555; }
.ev-block .ev-row .what a { font-size: 15px; }
.ev-block-series { margin: 12px 0 0; font-size: 15px; }
.ev-block-series .w { font: 600 15px Inter, sans-serif; color: #355e3b; }
.ev-block-foot { margin: 10px 0 0; font-size: 13px; color: #555; }

@media (max-width: 767px) {
  .ev-page { padding: 16px 16px 48px; }
  .ev-h1 { font-size: 24px; }
  .ev-sub { font-size: 15px; }
  .ev-trust { display: none; }
  .ev-when { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 14px; scrollbar-width: none; }
  .ev-chip { padding: 0 16px; }
  .ev-body { padding-top: 12px; gap: 16px; }
  .ev-filters { max-width: none; flex-basis: 100%; }
  .ev-filters > summary { display: inline-flex; list-style: none; box-shadow: 0 1px 2px rgba(28,16,20,.1), 0 6px 16px rgba(28,16,20,.1); background: #fff; }
  .ev-filters > summary::-webkit-details-marker { display: none; }
  .ev-filters:not([open]) .ev-filter-groups { display: none; }
  .ev-filters[open] .ev-filter-groups { margin-top: 16px; }
  .ev-tip { display: none; }
  .ev-card { gap: 12px; padding: 14px 0; flex-wrap: wrap; }
  .ev-thumb { width: 56px; height: 56px; order: 0; }
  .ev-time { width: auto; order: 1; flex: 1; font-size: 14px; }
  .ev-cost { width: auto; order: 2; font-size: 14px; }
  .ev-info { order: 3; flex-basis: calc(100% - 68px); margin-left: 68px; margin-top: -36px; }
  .ev-detail-h1 { font-size: 28px; }
  .ev-detail-when { font-size: 17px; }
  .ev-aside { max-width: none; }
}

/* Events drawer on region and district pages (events/_area_drawer.html) */
.ev-drawer-label { display: inline-flex; align-items: center; gap: 8px; }
.ev-drawer-label svg, .ev-drawer-label i { width: 16px; height: 16px; color: #7b1e3a; flex-shrink: 0; }
.ev-drawer-list { list-style: none; margin: 0; padding: 0; }
.ev-drawer-list li + li { border-top: 1px solid #efebe9; }
.ev-drawer-list a { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); column-gap: 12px; padding: 7px 0; color: #1e1e1e !important; text-decoration: none; }
.ev-drawer-list a:hover .t { color: #7b1e3a; text-decoration: underline; }
.ev-drawer-list .when { grid-row: span 2; font: 600 13px/1.4 Inter, sans-serif; color: #7b1e3a; font-variant-numeric: tabular-nums; }
.ev-drawer-list .t { font: 600 14px/1.35 Inter, sans-serif; }
.ev-drawer-list .p { font-size: 13px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-drawer-all { display: inline-flex; align-items: center; min-height: 36px; font: 600 14px Inter, sans-serif; color: #7b1e3a !important; }
/* Phone: one closed row at the top of the bottom sheet */
.ev-drawer-sheet { margin: 0 0 4px; border: 1px solid #e8e4e2; border-radius: 12px; background: #fff; }
.ev-drawer-sheet > summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; list-style: none; cursor: pointer; font: 600 15px Inter, sans-serif; color: #1e1e1e; }
.ev-drawer-sheet > summary::-webkit-details-marker { display: none; }
.ev-drawer-sheet .chev { width: 18px; height: 18px; transition: transform .2s; }
.ev-drawer-sheet[open] .chev { transform: rotate(180deg); }
.ev-drawer-sheet .ev-drawer-body { padding: 0 12px 6px; }
.ev-drawer-sheet .ev-drawer-list a { grid-template-columns: 1fr; }
.ev-drawer-sheet .ev-drawer-list .when { grid-row: auto; }
