/* ═══════════════════════════════════════════════════════
   BS Events Calendar v3 — Minimal & Clean
   The Black Sheep Factory · theblacksheepfactory.de
═══════════════════════════════════════════════════════ */

/* ── Hard reset — neutralize ALL theme interference ── */
.bsec-calendar *,
.bsec-calendar *::before,
.bsec-calendar *::after {
  box-sizing: border-box !important;
}
.bsec-calendar input,
.bsec-calendar button {
  -webkit-appearance: none !important;
  appearance: none !important;
  font-family: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

:root {
  --bsec-ink:       #1a1a1a;
  --bsec-muted:     #6b6b6b;
  --bsec-light:     #f5f5f3;
  --bsec-line:      #e5e3e0;
  --bsec-bg:        #ffffff;
  --bsec-today:     #fef3cd;
  --bsec-accent:    #2C2825;
  --bsec-radius:    6px;
  --bsec-ev-color:  #7A9E8E;
  --bsec-bar-color: #7A9E8E;
  --bsec-title-size: 1rem;
  --bsec-font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bsec-shadow:    0 2px 12px rgba(0,0,0,.10);
  --bsec-shadow-lg: 0 8px 32px rgba(0,0,0,.14);
}

.bsec-calendar { font-family: var(--bsec-font) !important; color: var(--bsec-ink) !important; overflow: visible !important; box-sizing: border-box !important; }
.bsec-calendar *, .bsec-calendar *::before, .bsec-calendar *::after { box-sizing: border-box; }

/* ═══════════════════════════════════════════════════════
   HEADER — search + button + view dropdown
═══════════════════════════════════════════════════════ */
.bsec-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid var(--bsec-line) !important;
  margin-bottom: 20px !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box !important;
}

/* Search */
.bsec-search-wrap {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}
.bsec-search-icon {
  position: absolute;
  left: 12px;
  color: var(--bsec-muted);
  pointer-events: none;
  z-index: 1;
}
.bsec-search-input {
  width: 100%;
  height: auto !important;
  border: 1.5px solid var(--bsec-line);
  border-radius: var(--bsec-radius);
  background: var(--bsec-bg);
  font-family: var(--bsec-font);
  font-size: .875rem;
  color: var(--bsec-ink);
  padding: 9px 12px 9px 38px !important;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
}
.bsec-search-input:focus {
  outline: none;
  border-color: var(--bsec-ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.bsec-search-input::placeholder { color: var(--bsec-muted); }

/* Find Events button — outlined, black */
.bsec-find-btn {
  flex-shrink: 0;
  background: var(--bsec-ink) !important;
  color: #fff !important;
  border: 1.5px solid var(--bsec-ink) !important;
  border-radius: var(--bsec-radius) !important;
  font-family: var(--bsec-font) !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
  height: 41.65px !important;
  min-height: 0 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background .15s, color .15s, border-color .15s !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
}
.bsec-find-btn:hover {
  opacity: .88;
}

/* View toggle — two separate buttons like WebApp style */
.bsec-view-toggle {
  display: flex !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  border: none !important;
  background: none !important;
  overflow: visible !important;
  width: auto !important;
}
.bsec-calendar .bsec-view-btn,
.bsec-calendar button.bsec-view-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 13px !important;
  border: 1.5px solid var(--bsec-line) !important;
  border-radius: var(--bsec-radius) !important;
  font-family: var(--bsec-font) !important;
  font-size: .8rem !important;
  font-weight: 500 !important;
  color: var(--bsec-muted) !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: border-color .12s, color .12s !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.bsec-calendar .bsec-view-btn:hover,
.bsec-calendar button.bsec-view-btn:hover {
  border-color: var(--bsec-muted) !important;
  color: var(--bsec-ink) !important;
  background: transparent !important;
}
.bsec-calendar .bsec-view-btn.is-active,
.bsec-calendar button.bsec-view-btn.is-active {
  background: transparent !important;
  color: var(--bsec-ink) !important;
  border-color: var(--bsec-ink) !important;
  font-weight: 600 !important;
}
.bsec-calendar .bsec-view-btn:focus,
.bsec-calendar button.bsec-view-btn:focus,
.bsec-calendar .bsec-view-btn:focus-visible,
.bsec-calendar button.bsec-view-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════
   SUBNAV — arrows + today + date range
═══════════════════════════════════════════════════════ */
.bsec-subnav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 18px !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
}
.bsec-subnav-left {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
}
/* Hard reset — prevents theme button styles from bleeding in */
.bsec-subnav-arrow,
.bsec-today-btn {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  outline: none;
  font-family: var(--bsec-font);
}

.bsec-calendar .bsec-subnav-arrow,
.bsec-calendar button.bsec-subnav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--bsec-line) !important;
  background: transparent !important;
  color: var(--bsec-ink) !important;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bsec-calendar .bsec-subnav-arrow:hover,
.bsec-calendar button.bsec-subnav-arrow:hover { background: var(--bsec-light) !important; border-color: #aaa !important; }
.bsec-calendar .bsec-subnav-arrow:focus,
.bsec-calendar button.bsec-subnav-arrow:focus,
.bsec-calendar .bsec-subnav-arrow:focus-visible,
.bsec-calendar button.bsec-subnav-arrow:focus-visible,
.bsec-calendar .bsec-subnav-arrow:active,
.bsec-calendar button.bsec-subnav-arrow:active { outline: none !important; box-shadow: none !important; background: var(--bsec-light) !important; border-color: #aaa !important; }

.bsec-calendar .bsec-today-btn,
.bsec-calendar button.bsec-today-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px !important;
  border: 1.5px solid var(--bsec-line) !important;
  border-radius: var(--bsec-radius) !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
  color: var(--bsec-ink) !important;
  text-decoration: none;
  background: transparent !important;
  margin-left: 4px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  box-shadow: none !important;
  outline: none !important;
}
.bsec-calendar .bsec-today-btn:hover,
.bsec-calendar button.bsec-today-btn:hover { background: var(--bsec-light) !important; border-color: #aaa !important; }
.bsec-calendar .bsec-today-btn:focus,
.bsec-calendar button.bsec-today-btn:focus,
.bsec-calendar .bsec-today-btn:focus-visible,
.bsec-calendar button.bsec-today-btn:focus-visible,
.bsec-calendar .bsec-today-btn:active,
.bsec-calendar button.bsec-today-btn:active { outline: none !important; box-shadow: none !important; background: var(--bsec-light) !important; border-color: #aaa !important; }

.bsec-subnav-range {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bsec-ink);
  letter-spacing: -.02em;
}

/* Select wrap — shared base (for any other selects) */
.bsec-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.bsec-select-icon {
  position: absolute;
  left: 10px;
  color: var(--bsec-muted);
  pointer-events: none;
  z-index: 1;
}
.bsec-select-chevron {
  position: absolute;
  right: 8px;
  color: var(--bsec-muted);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   ADD TO CALENDAR DROPDOWN
═══════════════════════════════════════════════════════ */
.bsec-atc {
  position: relative;
  display: inline-block;
}
.bsec-atc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--bsec-line);
  border-radius: var(--bsec-radius);
  background: var(--bsec-bg);
  color: var(--bsec-muted);
  font-family: var(--bsec-font);
  font-size: .8rem;
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.bsec-atc-btn:hover {
  border-color: var(--bsec-ev-color);
  color: var(--bsec-ink);
  background: var(--bsec-light);
}
.bsec-atc-btn[aria-expanded="true"] {
  border-color: var(--bsec-ev-color);
  color: var(--bsec-ink);
  background: var(--bsec-light);
}
.bsec-atc-chevron { transition: transform .2s; }
.bsec-atc-btn[aria-expanded="true"] .bsec-atc-chevron { transform: rotate(180deg); }

.bsec-atc-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  background: var(--bsec-bg);
  border: 1.5px solid var(--bsec-line);
  border-radius: var(--bsec-radius);
  box-shadow: var(--bsec-shadow-lg);
  padding: 6px 0;
  min-width: 210px;
  animation: bsecFadeUp .15s ease;
}
/* Flip to below if near top of page — handled by JS class */
.bsec-atc-dropdown.bsec-atc-dropdown--below {
  bottom: auto;
  top: calc(100% + 6px);
}
@keyframes bsecFadeUp {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}
.bsec-atc-dropdown[hidden] { display: none; }

.bsec-atc-dropdown a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  font-family: var(--bsec-font);
  font-size: .875rem;
  color: var(--bsec-ink);
  text-decoration: none;
  transition: background .12s;
}
.bsec-atc-dropdown a:hover { background: var(--bsec-light); }
.bsec-atc-dropdown a + a { border-top: 1px solid var(--bsec-line); }

/* Size modifier for single page */
.bsec-atc--md .bsec-atc-btn {
  font-size: .9rem;
  padding: 9px 14px;
}

/* ═══════════════════════════════════════════════════════
   LIST VIEW
═══════════════════════════════════════════════════════ */
.bsec-list { display: flex; flex-direction: column; }

.bsec-month-header {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bsec-muted);
  padding: 24px 0 10px;
  border-bottom: 1px solid var(--bsec-line);
  margin-bottom: 2px;
}
.bsec-month-header:first-child { padding-top: 4px; }

.bsec-list-item {
  display: grid;
  grid-template-columns: 52px 1fr 240px;
  gap: 0 20px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--bsec-line);
}
.bsec-list-item:last-child { border-bottom: none; }

/* Date column */
.bsec-list-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
  text-align: center;
}
.bsec-list-day-name {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bsec-muted);
}
.bsec-list-day-num {
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.05;
  color: var(--bsec-ink);
}

/* Body */
.bsec-list-body { min-width: 0; }

/* Time bar — like the reference */
.bsec-list-timebar {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--bsec-muted);
  margin-bottom: 4px;
}
.bsec-list-timebar svg { flex-shrink: 0; }
.bsec-recur-icon { flex-shrink: 0; color: var(--bsec-muted); }

.bsec-list-title {
  margin: 0 0 8px;
  font-size: var(--bsec-title-size);
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.bsec-list-title a {
  color: var(--bsec-ink);
  text-decoration: none;
}
.bsec-list-title a:hover { color: var(--bsec-ev-color); }
.bsec-featured-star { font-size: .9em; color: #c8960a; }

/* Location row — name bold, address lighter inline */
.bsec-list-location-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  margin-bottom: 8px;
  color: var(--bsec-ink);
}
.bsec-list-location-row svg { flex-shrink: 0; color: var(--bsec-muted); }
.bsec-list-location-row strong { font-weight: 700; }
.bsec-loc-addr {
  color: var(--bsec-muted);
  margin-left: 2px;
  font-weight: 400;
}

/* EXCERPT */
.bsec-list-excerpt {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--bsec-muted);
  margin: 4px 0 10px;
  padding-left: 16px;
  border-left: 2px solid var(--bsec-line);
  overflow: hidden;
  max-height: calc(1.65em * var(--bsec-excerpt-lines, 6));
  transition: max-height 0.3s ease;
}
.bsec-list-excerpt.is-expanded {
  max-height: calc(1.65em * 40);
}
.bsec-list-excerpt p { margin: 0 0 0.4em; }
.bsec-list-excerpt p:last-child { margin-bottom: 0; }
.bsec-calendar .bsec-excerpt-toggle,
.bsec-calendar .bsec-excerpt-toggle:not([class*="wp-"]) {
  display: inline-block !important;
  margin: 0 0 12px 16px !important;
  font-size: .8rem !important;
  color: var(--bsec-accent, #555) !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  width: auto !important;
  min-width: 0 !important;
}
.bsec-calendar .bsec-excerpt-toggle:hover {
  opacity: 0.7 !important;
  background: none !important;
  border: none !important;
}
.bsec-calendar .bsec-excerpt-toggle[hidden] {
  display: none !important;
}

.bsec-list-footer { margin-top: 10px; }

/* Thumbnail — 16:9 */
.bsec-list-thumb {
  width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: var(--bsec-radius);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  align-self: start;
  margin-top: 2px;
}

.bsec-maps-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.bsec-maps-link:hover { color: var(--bsec-ink); }
.bsec-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Empty */
.bsec-empty {
  color: var(--bsec-muted);
  font-style: italic;
  padding: 24px 0;
}

/* ═══════════════════════════════════════════════════════
   MONTH GRID
═══════════════════════════════════════════════════════ */
.bsec-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bsec-month-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bsec-ink);
}
.bsec-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--bsec-line);
  color: var(--bsec-ink);
  text-decoration: none;
  font-size: 1rem;
  transition: background .15s, border-color .15s;
}
.bsec-nav-arrow:hover { background: var(--bsec-light); border-color: #aaa; }

/* ═══════════════════════════════════════════════════════
   MONTH GRID — minimal & clean
═══════════════════════════════════════════════════════ */
.bsec-grid {
  border: 1.5px solid var(--bsec-line);
  border-radius: var(--bsec-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* Loading overlay */
#bsec-month-grid-wrap { position: relative; overflow: hidden; }
#bsec-month-grid-wrap.bsec-grid-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.6);
  z-index: 10;
  border-radius: var(--bsec-radius);
}

@keyframes bsecSlideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bsecSlideInLeft  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }

#bsec-month-grid-wrap.bsec-slide-next .bsec-grid { animation: bsecSlideInRight .22s ease-out; }
#bsec-month-grid-wrap.bsec-slide-prev .bsec-grid { animation: bsecSlideInLeft  .22s ease-out; }

.bsec-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1.5px solid var(--bsec-line);
  background: #f7f7f7;
}
.bsec-day-header {
  padding: 12px 4px;
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bsec-muted);
}

.bsec-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.bsec-cell {
  border-right: 1px solid var(--bsec-line);
  border-bottom: 1px solid var(--bsec-line);
  min-height: 100px;
  padding: 8px 6px 6px;
  transition: background .1s;
}
.bsec-cell:nth-child(7n) { border-right: none; }

/* Empty cells */
.bsec-cell--empty { background: #fafafa; }

/* Today - soft accent highlight */
.bsec-cell--today { background: color-mix(in srgb, var(--bsec-ev-color) 8%, white); }

.bsec-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 500;
  color: var(--bsec-muted);
  margin-bottom: 4px;
}
/* Today: filled circle */
.bsec-cell--today .bsec-day-num {
  background: var(--bsec-accent);
  color: #fff;
  font-weight: 700;
}

/* Today-btn active state (= we're already on today) */
.bsec-today-btn--active {
  background: var(--bsec-light);
  border-color: #aaa;
}

/* Event pills */
.bsec-event-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  border-left: 3px solid var(--bsec-ev-color);
  border-radius: 3px;
  padding: 2px 5px;
  margin-bottom: 3px;
  font-size: .68rem;
  cursor: pointer;
  background: color-mix(in srgb, var(--bsec-ev-color) 8%, transparent);
  transition: background .12s;
}
.bsec-event-pill:hover { background: color-mix(in srgb, var(--bsec-ev-color) 18%, transparent); }
.bsec-pill-dot { width:6px; height:6px; border-radius:50%; background:var(--bsec-ev-color); flex-shrink:0; }
.bsec-pill-title { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; color:var(--bsec-ink); font-weight:500; }
.bsec-pill-badge {
  font-size:.55rem; font-weight:700; color:#fff;
  padding:1px 4px; border-radius:2px; white-space:nowrap;
}
.bsec-more { font-size:.62rem; color:var(--bsec-muted); padding:0 2px; display:block; }

/* ═══════════════════════════════════════════════════════
   POPUP (month view click)
═══════════════════════════════════════════════════════ */
.bsec-popup-overlay {
  position: fixed; inset:0; background:rgba(0,0,0,.35); z-index:9998;
  animation: bsecFade .18s ease;
}
@keyframes bsecFade { from{opacity:0} to{opacity:1} }
.bsec-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: var(--bsec-bg);
  border-radius: 10px;
  box-shadow: var(--bsec-shadow-lg);
  padding: 24px;
  min-width: 300px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  animation: bsecPop .18s ease;
}
@keyframes bsecPop { from{opacity:0;transform:translate(-50%,-46%)} to{opacity:1;transform:translate(-50%,-50%)} }
.bsec-popup[hidden],.bsec-popup-overlay[hidden]{display:none}

.bsec-popup-close {
  position:absolute; top:14px; right:16px;
  background:none; border:none; font-size:1.3rem; color:var(--bsec-muted); cursor:pointer; line-height:1;
}
.bsec-popup-title { font-size:1.05rem; font-weight:700; margin:0 0 10px; padding-right:24px; }
.bsec-popup-meta { display:flex; flex-direction:column; gap:5px; margin-bottom:12px; }
.bsec-popup-meta span { font-size:.8rem; color:var(--bsec-muted); display:flex; align-items:center; gap:5px; }
.bsec-popup-excerpt { font-size:.875rem; line-height:1.6; color:var(--bsec-muted); margin-bottom:14px; }
.bsec-popup-excerpt p { margin: 0 0 0.5em; }
.bsec-popup-excerpt p:last-child { margin-bottom: 0; }
.bsec-popup-footer { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.bsec-popup-more {
  font-size:.8rem; font-weight:600; color:var(--bsec-ev-color); text-decoration:none;
  padding:6px 0;
}
.bsec-popup-more:hover { text-decoration:underline; }

/* ═══════════════════════════════════════════════════════
   SINGLE EVENT
═══════════════════════════════════════════════════════ */
.bsec-single { max-width: 760px; margin: 0 auto; padding: 32px 20px; }
.bsec-single-hero img { width:100%; border-radius: var(--bsec-radius); margin-bottom:24px; display:block; }
.bsec-single-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1.5px solid var(--bsec-line); }
.bsec-single-title-row { display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.bsec-single-title { margin:0; font-size:1.9rem; font-weight:700; line-height:1.2; }
.bsec-featured-star { font-size:1.2rem; color:#c8960a; }
.bsec-single-meta { display:flex; flex-direction:column; gap:7px; margin-bottom:18px; }
.bsec-meta-item { display:flex; align-items:center; gap:8px; font-size:.9rem; color:var(--bsec-muted); }
.bsec-single-content { font-size:1rem; line-height:1.8; }
.bsec-back-link { display:inline-flex; align-items:center; gap:6px; font-size:.85rem; color:var(--bsec-muted); text-decoration:none; margin-top:40px; border-top:1px solid var(--bsec-line); padding-top:20px; display:block; }
.bsec-back-link:hover { color:var(--bsec-ink); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .bsec-cell { min-height:52px; padding:4px 2px 2px; }
  .bsec-day-num { font-size:.68rem; }
  .bsec-event-pill { font-size:.62rem; padding:2px 3px; }
  .bsec-pill-title { display:none; }
  .bsec-pill-dot { width:7px; height:7px; }
  .bsec-badge { display:none; }

  .bsec-list-item { grid-template-columns: 44px 1fr; }
  .bsec-list-thumb { display: none; }
  .bsec-list-day-num { font-size: 1.4rem; }
  .bsec-header { flex-wrap: wrap; }
  .bsec-search-wrap { flex: 1 1 100%; order: -1; }
  .bsec-subnav-range { font-size: 1.1rem; }
  .bsec-list-excerpt { max-height:calc(1.65em * var(--bsec-excerpt-lines, 6)); }
}

/* ═══════════════════════════════════════════════════════
   BRANDING
═══════════════════════════════════════════════════════ */
.bsec-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.bsec-brand-logo {
  max-height: 36px;
  width: auto;
  display: block;
}
.bsec-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bsec-ink);
  letter-spacing: -.01em;
}

/* Copyright footer */
.bsec-copyright {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--bsec-line);
  font-size: .72rem;
  color: var(--bsec-muted);
  text-align: center;
  letter-spacing: .03em;
}

/* ═══════════════════════════════════════════════════════
   TICKET BUTTON
═══════════════════════════════════════════════════════ */
.bsec-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bsec-d-color-ticket-bg, #2C2825);
  color: var(--bsec-d-color-ticket-text, #fff) !important;
  border: 1.5px solid transparent;
  border-radius: var(--bsec-radius);
  font-family: var(--bsec-font);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 12px;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
  flex-shrink: 0;
}
.bsec-ticket-btn:hover { opacity: .88; transform: translateY(-1px); }
.bsec-ticket-btn--md {
  font-size: .9rem;
  padding: 9px 16px;
}

/* ═══════════════════════════════════════════════════════
   SUBSCRIBE FORM
═══════════════════════════════════════════════════════ */
.bsec-subscribe {
  border-top: 1.5px solid var(--bsec-line);
  padding-top: 24px;
  margin-top: 28px;
}
.bsec-subscribe-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--bsec-ink);
  margin: 0 0 10px;
  text-align: right;
}
.bsec-subscribe-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 480px;
  margin-left: auto;
}
.bsec-subscribe-input {
  flex: 1;
  min-width: 200px;
  border: 1.5px solid var(--bsec-line);
  border-radius: var(--bsec-radius);
  background: var(--bsec-bg);
  font-family: var(--bsec-font);
  font-size: .875rem;
  color: var(--bsec-ink);
  padding: 9px 12px !important;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.bsec-subscribe-input:focus {
  outline: none;
  border-color: var(--bsec-muted);
}
.bsec-subscribe-btn {
  background: var(--bsec-ink);
  color: #fff;
  border: 1.5px solid var(--bsec-ink);
  border-radius: var(--bsec-radius);
  font-family: var(--bsec-font);
  font-size: .875rem;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.bsec-subscribe-btn:hover {
  opacity: .88;
}
.bsec-subscribe-msg {
  margin: 8px 0 0;
  font-size: .82rem;
  text-align: right;
}
.bsec-subscribe-msg--ok  { color: #1a7f37; }
.bsec-subscribe-msg--err { color: #d63638; }

@media (max-width: 480px) {
  .bsec-subscribe-row { flex-direction: column; }
  .bsec-subscribe-btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   ARCHIVE
═══════════════════════════════════════════════════════ */
.bsec-archive-toggle {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--bsec-line);
}
.bsec-archive-link {
  font-size: .82rem;
  color: var(--bsec-muted);
  text-decoration: none;
  font-weight: 500;
}
.bsec-archive-link:hover { color: var(--bsec-ink); }

/* Past items — slightly muted */
.bsec-list-item--past {
  opacity: .72;
}
.bsec-list-item--past:hover {
  opacity: 1;
  transition: opacity .2s;
}

/* -----------------------------------------------------------------------
   Featured / Highlight Section
   ----------------------------------------------------------------------- */
.bsec-featured-section {
  margin-bottom: 32px;
}
.bsec-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
@media (min-width: 900px) {
  .bsec-featured-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .bsec-featured-grid { grid-template-columns: 1fr; }
}

.bsec-featured-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bsec-card, #fff);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow .2s, transform .2s;
}
.bsec-featured-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.13);
  transform: translateY(-2px);
}
.bsec-featured-card--past {
  opacity: .82;
}
.bsec-featured-card--past:hover {
  opacity: 1;
}

/* Image area */
.bsec-featured-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bsec-line, #eee);
  overflow: hidden;
}
.bsec-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.bsec-featured-card:hover .bsec-featured-img img {
  transform: scale(1.04);
}
.bsec-featured-img--placeholder {
  background: linear-gradient(135deg, var(--bsec-line, #e8e8e8) 0%, #d4d4d4 100%);
}

/* Badges on image */
.bsec-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.bsec-featured-past-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(0,0,0,.45);
  color: #fff;
  letter-spacing: .02em;
}

/* Card body */
.bsec-featured-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
  gap: 6px;
}
.bsec-featured-accent-bar {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--bsec-card-accent, var(--bsec-accent, #1a1a1a));
  margin-bottom: 4px;
}
.bsec-featured-time {
  font-size: .78rem;
  color: var(--bsec-muted, #888);
  margin: 0;
  font-weight: 500;
}
.bsec-featured-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: var(--bsec-ink, #1a1a1a);
}
.bsec-featured-title a {
  color: inherit;
  text-decoration: none;
}
.bsec-featured-title a:hover {
  color: var(--bsec-card-accent, var(--bsec-accent, #1a1a1a));
}
.bsec-featured-loc {
  font-size: .8rem;
  color: var(--bsec-muted, #888);
  margin: 0;
}
.bsec-featured-excerpt {
  font-size: .85rem;
  color: var(--bsec-ink, #333);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Action buttons */
.bsec-featured-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bsec-btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1;
}
.bsec-btn--primary {
  background: var(--bsec-card-accent, var(--bsec-accent, #1a1a1a));
  color: #fff;
  border: 2px solid transparent;
}
.bsec-btn--primary:hover {
  filter: brightness(1.15);
  color: #fff;
}
.bsec-btn--ghost {
  background: transparent;
  color: var(--bsec-ink, #1a1a1a);
  border: 2px solid var(--bsec-line, #ddd);
}
.bsec-btn--ghost:hover {
  border-color: var(--bsec-card-accent, var(--bsec-accent, #1a1a1a));
  color: var(--bsec-card-accent, var(--bsec-accent, #1a1a1a));
}

/* ── Timetable ─────────────────────────────────────────────── */
.bsec-list-timetable {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bsec-popup-timetable {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--bsec-border, #ebebeb);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bsec-tt-separator {
  height: 1px;
  background: var(--bsec-border, #ebebeb);
  margin: 8px 0;
  width: 35%;
}
.bsec-tt-slot {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: .78rem;
}
.bsec-tt-slot-time {
  font-weight: 700;
  color: var(--bsec-accent, #1a1a1a);
  min-width: 38px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.bsec-tt-slot-title {
  color: var(--bsec-muted, #666);
}
