/* BWE Agenda — black & gold, built to sit inside any theme */

.bwe-agenda, .bwe-agenda-layer {
	--bwe-gold: #d6a94c;
	--bwe-gold-hi: color-mix(in srgb, var(--bwe-gold) 45%, #fff3c4);
	--bwe-gold-lo: color-mix(in srgb, var(--bwe-gold) 60%, #000);
	--bwe-ink: #050506;
	--bwe-stage: #0d0c10;
	--bwe-line: #2a2620;
	--bwe-text: #f4efe6;
	--bwe-muted: #a49c8f;
	--bwe-glow: rgba(120, 170, 255, .75);
	--bwe-live: #ff6b5e;
	--bwe-ok: #7fd49a;
	--bwe-r: 14px;
	color: var(--bwe-text);
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
	color-scheme: dark;
}
@supports not (color: color-mix(in srgb, red, blue)) {
	.bwe-agenda, .bwe-agenda-layer { --bwe-gold-hi: #f6d98b; --bwe-gold-lo: #8a6420; }
}
.bwe-agenda *, .bwe-agenda-layer * { box-sizing: border-box; }
.bwe-agenda [hidden], .bwe-agenda-layer [hidden] { display: none !important; }
.bwe-agenda { margin: 0 0 2em; container-type: inline-size; }
/* Space under a theme menu that overlaps the content (Events → Settings). */
.bwe-agenda.bwe-has-top { margin-top: var(--bwe-top) !important; }
@media (max-width: 767px) { .bwe-agenda.bwe-has-top { margin-top: var(--bwe-top-m) !important; } }
.bwe-agenda--bg { background: var(--bwe-ink); border-radius: var(--bwe-r); padding: clamp(18px, 3vw, 40px); }
.bwe-agenda--single.bwe-agenda--bg { padding: 0; background: none; }
.bwe-agenda img, .bwe-agenda-layer img { max-width: 100%; height: auto; border: 0; box-shadow: none; margin: 0; }
.bwe-agenda svg, .bwe-agenda-layer svg { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.bwe-agenda h2, .bwe-agenda h3, .bwe-agenda-layer h2, .bwe-agenda-layer h3 { margin: 0; padding: 0; color: var(--bwe-text); letter-spacing: normal; text-transform: none; background: none; border: 0; }
.bwe-agenda button, .bwe-agenda-layer button { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; text-shadow: none; margin: 0; }
.bwe-agenda a, .bwe-agenda-layer a { box-shadow: none; }
.bwe-agenda :focus-visible, .bwe-agenda-layer :focus-visible { outline: 2px solid var(--bwe-gold); outline-offset: 2px; }
.bwe-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bwe-glow { text-shadow: 0 0 14px var(--bwe-glow), 0 0 2px rgba(255, 255, 255, .6); }
html.bwe-noscroll, html.bwe-noscroll body { overflow: hidden !important; }
.bwe-fallback { color: var(--bwe-text); }
.bwe-fallback a { color: var(--bwe-gold); }

/* ---------------- Shared bits ---------------- */
.bwe-tag {
	display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
	font-weight: 800; font-size: 11px; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase;
	color: var(--bwe-gold); border: 1px solid color-mix(in srgb, var(--bwe-gold) 45%, transparent); border-radius: 999px; padding: 5px 12px;
}
.bwe-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--bwe-live); animation: bwe-ping 1.6s infinite; }
@keyframes bwe-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 94, .7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 107, 94, 0); } }
.bwe-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--bwe-muted); font-size: 14px; }
.bwe-meta span { display: inline-flex; align-items: center; gap: 7px; }
.bwe-meta svg { color: var(--bwe-gold); }

.bwe-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: 6px;
	font-weight: 800; font-size: 13px; line-height: 1.1; letter-spacing: .03em; white-space: nowrap;
	text-decoration: none !important; cursor: pointer;
	border: 1px solid var(--bwe-gold); background: transparent; color: var(--bwe-gold) !important;
	transition: background-color .15s, border-color .15s, color .15s;
}
.bwe-btn:hover { background: color-mix(in srgb, var(--bwe-gold) 12%, transparent); }
.bwe-btn--solid { background: linear-gradient(180deg, var(--bwe-gold-hi), var(--bwe-gold) 60%, var(--bwe-gold-lo)); color: #1a1408 !important; border-color: transparent; }
.bwe-btn--solid:hover { background: linear-gradient(180deg, #fff0bf, var(--bwe-gold-hi) 60%, var(--bwe-gold)); }
.bwe-btn--ghost { border-color: var(--bwe-line); color: var(--bwe-text) !important; }
.bwe-btn--ghost:hover { border-color: var(--bwe-gold); background: transparent; }
.bwe-btn--wa { border-color: #25d366; color: #25d366 !important; }
.bwe-btn--wa:hover { background: rgba(37, 211, 102, .1); }
.bwe-btn[aria-disabled="true"] { opacity: .6; cursor: default; border-style: dashed; }
.bwe-btn--icon { width: 44px; padding: 0; }
.bwe-btn svg { width: 17px; height: 17px; }
.bwe-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }

/* Calendar menu */
.bwe-cal { position: relative; }
.bwe-cal summary { list-style: none; }
.bwe-cal summary::-webkit-details-marker { display: none; }
.bwe-cal summary svg:last-child { width: 14px; height: 14px; transition: transform .2s; }
.bwe-cal[open] summary svg:last-child { transform: rotate(180deg); }
.bwe-cal-menu {
	margin-top: 6px; min-width: 230px;
	display: flex; flex-direction: column; padding: 6px; border-radius: 10px;
	background: var(--bwe-stage); border: 1px solid color-mix(in srgb, var(--bwe-gold) 40%, transparent); box-shadow: 0 18px 40px -10px #000;
}
.bwe-cal-menu a { padding: 10px 12px; border-radius: 6px; color: var(--bwe-text) !important; text-decoration: none !important; font-weight: 700; font-size: 14px; }
.bwe-cal-menu a:hover { background: color-mix(in srgb, var(--bwe-gold) 14%, transparent); color: var(--bwe-gold-hi) !important; }

/* Countdowns */
.bwe-cd-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 500px; }
.bwe-cd-big div { text-align: center; padding: 12px 4px 9px; border-radius: 12px; background: linear-gradient(180deg, #17140f, #0b0a08); border: 1px solid color-mix(in srgb, var(--bwe-gold) 30%, transparent); }
.bwe-cd-big b { display: block; font-size: clamp(26px, 4vw, 42px); line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--bwe-text); }
.bwe-cd-big span, .bwe-cd-mini span { display: block; margin-top: 5px; font-size: 10px; line-height: 1.2; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bwe-muted); }
.bwe-cd-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bwe-cd-mini div { text-align: center; border-radius: 8px; padding: 7px 2px 5px; background: #110f0b; border: 1px solid #241f17; }
.bwe-cd-mini b { display: block; font-size: 19px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--bwe-gold-hi); }
.bwe-cd-mini span { margin-top: 3px; font-size: 9px; }
.bwe-cd-done { text-align: center; border-radius: 8px; padding: 10px; background: #110f0b; border: 1px dashed #3a3328; color: var(--bwe-muted); font-weight: 700; font-size: 13px; }
.bwe-cd-done.bwe-is-live { color: var(--bwe-live); border-color: rgba(255, 107, 94, .45); }

/* Poster (uploaded image, or generated artwork when none) */
.bwe-poster { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: #000; border-radius: 10px; cursor: pointer; }
.bwe-poster img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bwe-art {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 9% 8%; text-align: center;
	background:
		radial-gradient(40% 32% at 50% 38%, hsla(var(--h), 85%, 62%, .5), transparent 70%),
		conic-gradient(from 160deg at 50% -8%, transparent 0 14deg, hsla(var(--h), 90%, 70%, .22) 18deg, transparent 26deg 34deg, rgba(255, 230, 170, .18) 38deg, transparent 46deg),
		linear-gradient(180deg, hsl(var(--h), 55%, 12%), #050405 75%);
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.bwe-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.bwe-art span { position: relative; }
.bwe-art-s { font-size: clamp(15px, 2.2vw, 26px); font-weight: 800; font-style: italic; color: var(--bwe-gold-hi); text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.bwe-art-t { font-weight: 900; font-size: clamp(13px, 1.5vw, 18px); line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; color: var(--bwe-text); }
.bwe-art-d { font-weight: 700; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--bwe-gold); margin-top: 8px; }

.bwe-empty { grid-column: 1 / -1; text-align: center; padding: 44px 20px; border: 1px dashed var(--bwe-line); border-radius: var(--bwe-r); color: var(--bwe-muted); }
.bwe-empty b { display: block; color: var(--bwe-text); font-size: 18px; margin-bottom: 4px; }

/* ---------------- Next concert ---------------- */
.bwe-next { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 4vw, 44px); align-items: center; }
.bwe-next-poster { box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--bwe-gold) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--bwe-gold) 35%, transparent); border-radius: var(--bwe-r); }
.bwe-next-poster:hover img, .bwe-next-poster:hover .bwe-art { transform: scale(1.03); }
.bwe-next-info { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bwe-next h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; font-weight: 900; text-wrap: balance; }
.bwe-next h2 button, .bwe-card h3 button { all: unset; cursor: pointer; }
.bwe-next h2 button:hover, .bwe-card h3 button:hover { color: var(--bwe-gold-hi); }
.bwe-next h2 button:focus-visible, .bwe-card h3 button:focus-visible { outline: 2px solid var(--bwe-gold); outline-offset: 3px; }
.bwe-agenda--full .bwe-next-wrap:not(:empty) { margin-bottom: clamp(36px, 6vw, 64px); }
@container (max-width: 720px) { .bwe-next { grid-template-columns: minmax(0, 1fr); } .bwe-next-poster { max-width: 380px; } }

/* ---------------- List, filters ---------------- */
.bwe-list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.bwe-list-head h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; font-weight: 900; }
.bwe-count { color: var(--bwe-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.bwe-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.bwe-filters--periods { grid-template-columns: auto; justify-content: start; }
.bwe-search { position: relative; display: block; margin: 0; }
.bwe-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--bwe-muted); pointer-events: none; }
.bwe-agenda .bwe-search input {
	width: 100%; height: 46px; margin: 0; padding: 0 14px 0 42px; border-radius: 8px;
	border: 1px solid var(--bwe-line); background: var(--bwe-stage); color: var(--bwe-text); font: inherit; font-size: 15px; box-shadow: none;
}
.bwe-agenda .bwe-search input::placeholder { color: var(--bwe-muted); opacity: 1; }
.bwe-agenda .bwe-search input:focus { border-color: var(--bwe-gold); outline: none; }
.bwe-seg { display: inline-flex; border: 1px solid var(--bwe-line); border-radius: 8px; padding: 3px; background: var(--bwe-stage); }
.bwe-agenda .bwe-seg button { border: 0; background: none; padding: 0 14px; height: 38px; border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--bwe-muted); cursor: pointer; }
.bwe-agenda .bwe-seg button[aria-pressed="true"] { background: var(--bwe-gold); color: #1a1408; }
.bwe-months { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.bwe-agenda .bwe-chip { flex: none; border: 1px solid var(--bwe-line); background: transparent; color: var(--bwe-text); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.bwe-agenda .bwe-chip:hover { border-color: var(--bwe-gold); }
.bwe-agenda .bwe-chip[aria-pressed="true"] { border-color: var(--bwe-gold); color: var(--bwe-gold); background: color-mix(in srgb, var(--bwe-gold) 10%, transparent); }
.bwe-chip small { color: var(--bwe-muted); font-weight: 600; font-size: 12px; margin-left: 5px; }
@container (max-width: 600px) { .bwe-filters { grid-template-columns: minmax(0, 1fr); } .bwe-seg { display: flex; } .bwe-agenda .bwe-seg button { flex: 1; } }

/* ---------------- Cards ---------------- */
.bwe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 26px 20px; }
.bwe-card { display: flex; flex-direction: column; min-width: 0; border-radius: var(--bwe-r); background: var(--bwe-stage); border: 1px solid var(--bwe-line); overflow: hidden; transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.bwe-agenda--bg .bwe-card { background: #0b0a0d; }
.bwe-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--bwe-gold) 55%, transparent); box-shadow: 0 20px 50px -25px color-mix(in srgb, var(--bwe-gold) 40%, transparent); }
.bwe-card .bwe-poster { border-radius: 0; }
.bwe-card:hover .bwe-poster img, .bwe-card:hover .bwe-art { transform: scale(1.04); }
.bwe-datebadge { position: absolute; top: 12px; left: 12px; z-index: 2; width: 58px; text-align: center; border-radius: 10px; overflow: hidden; background: rgba(5, 5, 6, .82); backdrop-filter: blur(6px); border: 1px solid color-mix(in srgb, var(--bwe-gold) 50%, transparent); }
.bwe-datebadge b { display: block; font-size: 24px; line-height: 1.1; font-weight: 900; padding-top: 5px; font-variant-numeric: tabular-nums; color: var(--bwe-text); }
.bwe-datebadge span { display: block; font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #1a1408; background: var(--bwe-gold); padding: 4px 0; margin-top: 4px; }
.bwe-status { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 10px; line-height: 1.2; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(5, 5, 6, .82); border: 1px solid var(--bwe-line); }
.bwe-status--soon { color: var(--bwe-live); border-color: rgba(255, 107, 94, .5); }
.bwe-status--free { color: var(--bwe-ok); border-color: rgba(127, 212, 154, .45); }
.bwe-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; flex: 1; }
.bwe-card h3 { font-size: 18px; line-height: 1.25; font-weight: 800; text-wrap: balance; }
.bwe-card .bwe-meta { font-size: 13px; gap: 3px 14px; }
.bwe-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-top: auto; padding-top: 4px; }
.bwe-card-actions .bwe-btn { min-height: 42px; padding-inline: 10px; min-width: 0; }
.bwe-card-actions > :first-child { overflow: hidden; text-overflow: ellipsis; }
.bwe-card-actions .bwe-btn--icon { width: 42px; padding: 0; }
.bwe-card.is-past { opacity: .62; }
.bwe-card.is-past:hover { opacity: 1; }
.bwe-card.is-past img, .bwe-card.is-past .bwe-art { filter: grayscale(.85); }

/* ---------------- Detail (pop-up and single event page) ---------------- */
.bwe-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.bwe-detail-poster { border-radius: 0; cursor: default; aspect-ratio: auto; min-height: 400px; height: 100%; }
.bwe-detail-info { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 3vw, 34px); min-width: 0; }
.bwe-detail-info h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; font-weight: 900; text-wrap: balance; padding-right: 32px; }
.bwe-detail-info .bwe-cd-big b { font-size: clamp(24px, 3vw, 32px); }
.bwe-desc { color: var(--bwe-muted); font-size: 15px; }
.bwe-desc p { margin: 0 0 .7em; }
.bwe-desc p:last-child { margin-bottom: 0; }
.bwe-desc a { color: var(--bwe-gold); }
.bwe-pagelink { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--bwe-muted) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.bwe-pagelink:hover { color: var(--bwe-gold) !important; }
.bwe-agenda--single .bwe-detail { border-radius: var(--bwe-r); overflow: hidden; background: var(--bwe-stage); border: 1px solid color-mix(in srgb, var(--bwe-gold) 30%, transparent); }
.bwe-agenda--single .bwe-detail { align-items: start; }
.bwe-agenda--single .bwe-detail-poster { min-height: 0; aspect-ratio: 4 / 5; height: auto; }
@container (max-width: 640px) { .bwe-agenda--single .bwe-detail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
	.bwe-sheet .bwe-detail { grid-template-columns: minmax(0, 1fr); }
	.bwe-sheet .bwe-detail-poster { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
}

/* ---------------- Overlays ---------------- */
.bwe-agenda-layer { position: relative; z-index: 999990; }
.bwe-ov { position: fixed; inset: 0; z-index: 999990; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .8); backdrop-filter: blur(8px); }
.bwe-sheet { position: relative; width: min(880px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 18px; background: var(--bwe-stage); border: 1px solid color-mix(in srgb, var(--bwe-gold) 35%, transparent); box-shadow: 0 40px 100px -30px #000; animation: bwe-rise .28s ease; }
@keyframes bwe-rise { from { transform: translateY(14px); opacity: 0; } }
.bwe-agenda-layer .bwe-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--bwe-line); background: rgba(5, 5, 6, .85); color: var(--bwe-text); cursor: pointer; display: grid; place-items: center; }
.bwe-close svg { width: 18px; height: 18px; }
.bwe-sheet--share { width: min(450px, 100%); padding: 26px 22px 22px; }
.bwe-sheet--share h3 { font-size: 20px; font-weight: 900; padding-right: 40px; line-height: 1.3; }
.bwe-share-sub { margin: 2px 0 18px; color: var(--bwe-muted); font-size: 13px; }
.bwe-share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bwe-agenda-layer .bwe-share-grid a, .bwe-agenda-layer .bwe-share-grid button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 10px; border-radius: 12px; border: 1px solid var(--bwe-line); background: var(--bwe-ink); color: var(--bwe-text) !important; text-decoration: none !important; font-weight: 700; font-size: 12px; line-height: 1.2; cursor: pointer; }
.bwe-agenda-layer .bwe-share-grid a:hover, .bwe-agenda-layer .bwe-share-grid button:hover { border-color: var(--bwe-gold); }
.bwe-share-grid i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; }
.bwe-share-grid svg { width: 20px; height: 20px; }
.bwe-copy-i { background: #3a3328; }
.bwe-copy-row { display: flex; gap: 8px; margin-top: 12px; }
.bwe-agenda-layer .bwe-copy-row input { flex: 1; min-width: 0; height: 44px; margin: 0; border-radius: 8px; border: 1px solid var(--bwe-line); background: var(--bwe-ink); padding: 0 10px; font-size: 12px; color: var(--bwe-muted); }
.bwe-wa-preview { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #0b1410; border: 1px solid #1c3a2a; font-size: 13px; white-space: pre-line; color: #cfe9d8; overflow-wrap: anywhere; }
.bwe-wa-preview strong { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #25d366; margin-bottom: 6px; }
.bwe-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 999999; background: var(--bwe-gold); color: #1a1408; font-weight: 800; font-size: 13px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
@media (max-width: 420px) { .bwe-share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
	.bwe-agenda *, .bwe-agenda-layer * { animation: none !important; transition: none !important; }
}
