/* Linked event dates (event-series.php, 11 Nov): the Dates section on an event page. One card per upcoming date of the same thing, this date
   marked, each card its own event page. Phone and tablet: under the details table, cards side by side, scrolling sideways. Wide screens
   (1100+): at the top of the side column, above the details table, a stack of row cards, folded after six. Midnight Ocean, Inter Tight and Inter. */
.lws { margin: 4px 0 36px; }
.lws-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.lws-h { margin: 0; font: 800 20px/1.2 var(--ld-heading, "Inter Tight", sans-serif); letter-spacing: -.015em; color: var(--lev-ink); }
.lws-sub { font: 500 14px/1.2 var(--ld-text, Inter, sans-serif); color: var(--lev-mut); white-space: nowrap; }
.lws-list { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lws-item { margin: 0; padding: 0; }

.lws-card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; box-sizing: border-box; padding: 12px; border-radius: 16px; background: #fff;
	box-shadow: 0 0 0 1px var(--lev-hair), 0 6px 18px -14px rgba(10,14,36,.35); color: var(--lev-ink); text-decoration: none;
	transition: transform 180ms cubic-bezier(.2,0,0,1), box-shadow 180ms cubic-bezier(.2,0,0,1); }
a.lws-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #cfd6e6, 0 14px 28px -16px rgba(10,14,36,.4); color: var(--lev-ink); }
a.lws-card:active { transform: scale(.98); }
a.lws-card:focus-visible { outline: 2px solid var(--lev-acc); outline-offset: 2px; }
.lws-card.is-here { background: #f3f6ff; box-shadow: 0 0 0 2px var(--lev-acc); }
.lws-card.is-off .lws-tile, .lws-card.is-off .lws-body { opacity: .55; }

.lws-tile { display: grid; justify-items: center; align-content: center; width: 56px; height: 64px; flex: none; border-radius: 12px; background: var(--lev-tint); }
.lws-card.is-here .lws-tile { background: var(--lev-acc); }
.lws-tile small { font: 700 10.5px/1.1 var(--ld-text, Inter, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--lev-acc); }
.lws-tile small:last-child { color: var(--lev-mut); }
.lws-tile b { font: 800 25px/1.05 var(--ld-heading, "Inter Tight", sans-serif); letter-spacing: -.02em; color: var(--lev-ink); }
.lws-card.is-here .lws-tile small, .lws-card.is-here .lws-tile b { color: #fff; }

.lws-body { display: grid; gap: 5px; min-width: 0; }
.lws-row { display: flex; align-items: center; gap: 6px; min-width: 0; font: 500 13.5px/1.3 var(--ld-text, Inter, sans-serif); color: var(--lev-ink); }
.lws-row > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lws-row:not(.lws-row--meta):not(.lws-row--where) > span { white-space: normal; }
.lws-row svg, .lws-going svg { flex: none; width: 15px; height: 15px; color: var(--lev-acc); stroke-width: 2; }
.lws-row--where { font-weight: 700; }
.lws-row--meta > span:first-of-type { font-weight: 700; }
.lws-row--meta .is-free { color: var(--lev-yes); }
.lws-going { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding-left: 8px; font-weight: 600; color: var(--lev-mut); }
.lws-going svg { color: var(--lev-mut); }

.lws-pill { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; font: 700 11.5px/1 var(--ld-text, Inter, sans-serif); letter-spacing: .01em; white-space: nowrap; }
.lws-pill--here { background: var(--lev-acc); color: #fff; }
.lws-pill--soldout, .lws-pill--canceled { background: #FDECEC; color: #A3200F; }
.lws-pill--postponed { background: #FFF4E0; color: #8A5200; }
.lws-pill--draft { background: var(--lev-tint); color: var(--lev-mut); }

.lws-all { display: none; }

/* phone and tablet: cards side by side, scrolling sideways past the panel's edge */
@media (max-width: 1099px) {
	.lws-list { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 2px 24px 10px; scroll-padding-left: 24px; scrollbar-width: none; }
	.lws-list::-webkit-scrollbar { display: none; }
	.lws-item { flex: none; width: 168px; scroll-snap-align: start; }
}
@media (max-width: 899px) {
	.lws-list { margin: 0 -16px; padding: 2px 16px 10px; scroll-padding-left: 16px; }
	.lws-item { width: 156px; }
}

/* wide: the side column leads with the dates (the header already says this date), the details table under them */
@media (min-width: 1100px) {
	#lew-t-about:checked ~ .lew-panels .lew-panel--about:has(> .lws) { grid-template-areas: "h dates" "desc dates" "desc facts" "c facts"; grid-template-rows: auto auto 1fr auto; }
	.lew-panel--about:has(> .lws) > .lew-facts { position: static; }
	.lew-panel--about > .lws { grid-area: dates; margin: 0 0 28px; }
	.lws-list { flex-direction: column; gap: 10px; }
	.lws-list[data-lws-folded] .lws-more { display: none; }
	.lws-card { flex-direction: row; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; }
	.lws-body { flex: 1; }
	.lws-pill { position: static; align-self: flex-start; margin-top: 2px; }
	.lws-all { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: 10px 0 0; border: 0; border-radius: 999px; background: var(--lev-tint); color: var(--lev-ink); font: 700 14px/1 var(--ld-text, Inter, sans-serif); cursor: pointer; }
	.lws-all:hover { background: #e3e8f4; }
}
@media (prefers-reduced-motion: reduce) { .lws-card { transition: none; } }

/* ===================================================================== Create and Edit: Repeats, Add a date, and Just this date or All */
.ldser { border: 0; margin-top: 18px; padding: 0; min-width: 0; }
.ldser-rule { display: grid; gap: 8px; margin-top: 8px; }
.ldser .ldser-until { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; font: 600 14.5px/1 var(--ld-text, Inter, sans-serif); color: var(--ld-muted, #667089); }
.ldser .ldser-until > label, #tribe-community-events .ldser .ldser-until > label { flex: none; width: 52px; margin: 0; padding: 0; line-height: 1; }
.ldser .ldser-until .ldlf-in { flex: 1; min-width: 0; width: auto; }
.ldser .ldser-until[hidden] { display: none; }
.ldser-rows { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ldser-rows:empty { display: none; }
.ldser-row { margin: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ld-line, #e4e7ef); }
.ldser-row.is-open { box-shadow: 0 0 0 2px var(--ld-electric, #3D6BFF); }
.ldser-row__top { display: flex; align-items: center; gap: 4px; padding-right: 6px; }
.ldser-sum { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; min-height: 56px; padding: 8px 6px 8px 8px; border: 0; background: none; text-align: left; color: var(--ld-ink, #0d1224); cursor: pointer; border-radius: 14px; }
.ldser-sum:focus-visible { outline: 2px solid var(--ld-electric, #3D6BFF); outline-offset: -2px; }
.ldser-tile { display: grid; justify-items: center; align-content: center; flex: none; width: 40px; height: 42px; border-radius: 10px; background: var(--ld-pearl, #eef1f7); }
.ldser-tile small { font: 700 9.5px/1.1 var(--ld-text, Inter, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--ld-electric, #3D6BFF); }
.ldser-tile b { font: 800 17px/1.05 var(--ld-heading, "Inter Tight", sans-serif); color: var(--ld-midnight, #0a0e24); }
.ldser-sum__t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ldser-sum__t b { font: 700 15px/1.25 var(--ld-text, Inter, sans-serif); }
.ldser-sum__t small { font: 500 13.5px/1.25 var(--ld-text, Inter, sans-serif); color: var(--ld-muted, #667089); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ldser-chev { flex: none; color: var(--ld-muted, #667089); transition: transform 180ms; }
.ldser-row.is-open .ldser-chev { transform: rotate(180deg); }
.ldser-rm { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ld-muted, #667089); cursor: pointer; }
.ldser-rm:hover { background: var(--ld-pearl, #eef1f7); color: #A3200F; }
.ldser-edit { display: grid; gap: 8px; padding: 0 10px 12px; }
.ldser-edit[hidden] { display: none; }
.ldser-edit__when { display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px; gap: 8px; }
.ldser-edit .ldlf-in { min-width: 0; font-variant-numeric: tabular-nums; }
.ldser-edit .ldlf-pair { gap: 8px; }
.ldser-note { margin: 8px 0 0; font: 400 13.5px/1.4 var(--ld-text, Inter, sans-serif); color: var(--ld-muted, #667089); }
.ldser-note[hidden] { display: none; }
.ldser-have { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.ldser-have a { display: grid; gap: 2px; min-width: 96px; padding: 9px 12px; border-radius: 12px; background: var(--ld-pearl, #eef1f7); color: var(--ld-ink, #0d1224); text-decoration: none; }
.ldser-have a:hover { background: #e3e8f4; }
.ldser-have b { font: 700 14px/1.2 var(--ld-text, Inter, sans-serif); }
.ldser-have span { font: 500 12.5px/1.2 var(--ld-text, Inter, sans-serif); color: var(--ld-muted, #667089); }
.ldevf-wrap:has(#allDayCheckbox:checked) .ldser-edit__when { grid-template-columns: 1fr; }
.ldevf-wrap:has(#allDayCheckbox:checked) .ldser-st, .ldevf-wrap:has(#allDayCheckbox:checked) .ldser-et { display: none; }
@media (max-width: 520px) {
	.ldser-edit__when { grid-template-columns: 1fr 1fr; }
	.ldser-edit__when .ldser-d { grid-column: 1 / -1; }
	.ldser-edit .ldlf-pair { grid-template-columns: 1fr; }
}

.ldser-scope { max-width: 760px; margin: 0 auto 16px; padding: 14px 16px 16px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--ld-line, #e4e7ef); box-sizing: border-box; }
.ldser-scope legend { display: flex; align-items: flex-start; gap: 10px; float: left; width: 100%; margin: 0 0 12px; padding: 0; font: 600 14.5px/1.4 var(--ld-text, Inter, sans-serif); color: var(--ld-ink, #0d1224); }
.ldser-scope legend svg { flex: none; color: var(--ld-electric, #3D6BFF); margin-top: 0; }
.ldser-scope__opts { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ldser-scope__opts label { position: relative; display: block; cursor: pointer; }
.ldser-scope__opts input { position: absolute; opacity: 0; pointer-events: none; }
.ldser-scope__opts span { display: grid; gap: 3px; height: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; background: var(--ld-pearl, #eef1f7); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 160ms, background 160ms; }
.ldser-scope__opts b { font: 700 14.5px/1.25 var(--ld-text, Inter, sans-serif); color: var(--ld-ink, #0d1224); }
.ldser-scope__opts small { font: 500 13px/1.3 var(--ld-text, Inter, sans-serif); color: var(--ld-muted, #667089); }
.ldser-scope__opts input:checked + span { background: #f3f6ff; box-shadow: inset 0 0 0 2px var(--ld-electric, #3D6BFF); }
.ldser-scope__opts input:focus-visible + span { outline: 2px solid var(--ld-electric, #3D6BFF); outline-offset: 2px; }
.ldser-sold { margin-top: 12px; }
@media (max-width: 520px) { .ldser-scope { margin: 0 0 14px; } .ldser-scope__opts { grid-template-columns: 1fr; } }
