/*
 * Easy Events Calendar — event page (templates/single-eec_events.php).
 *
 * Same approach as the calendar: no box or font of its own, lines and tints from
 * the theme's text color, accent from --lcx-a (set by the script). Selectors use two
 * classes so the older local-calendar-template.css rules on the shared
 * eec-single-* class names don't win.
 */

.lce {
	--lcx-a: #2f6bb0; --lcx-on-a: #fff; --lcx-bg: #fff; --lcx-head: inherit;
	--lce-line: color-mix(in srgb, currentColor 15%, transparent);
	--lce-soft: color-mix(in srgb, currentColor 5%, transparent);
	--lce-muted: color-mix(in srgb, currentColor 66%, transparent);
	--lce-faint: color-mix(in srgb, currentColor 50%, transparent);
	--lce-chip-s: 70%; --lce-chip-l: 93%; --lce-chip-fg-s: 55%; --lce-chip-fg-l: 30%;
	--lce-r: 4px;
	--lce-field: #fff;
	container: lce / inline-size;
}
.lce.lcx-dark { --lce-field: color-mix(in srgb, currentColor 7%, transparent); --lce-chip-s: 30%; --lce-chip-l: 22%; --lce-chip-fg-s: 75%; --lce-chip-fg-l: 80%; }
.lce.eec-single-main { display: block; flex: none; min-width: 0; }
.lce .lce-wrap.eec-single-wrap {
	max-width: 1140px; margin: 0 auto; padding: 32px 20px 64px; color: inherit; font-family: inherit; font-size: 16px; line-height: 1.55;
}
.lce *, .lce *::before, .lce *::after { box-sizing: border-box; }
.lce h1, .lce h2 { font-family: var(--lcx-head); color: inherit; text-transform: none; letter-spacing: normal; text-wrap: balance; }

.lce .lce-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--lce-muted); text-decoration: none; margin-bottom: 20px; }
.lce .lce-back:hover { color: var(--lcx-a); }

/* header */
.lce .lce-head.eec-single-header { margin: 0 0 28px; padding: 0; border: 0; display: grid; gap: 10px; }
.lce .lce-kicks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lce .lce-kick { --h: 210; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: hsl(var(--h) var(--lce-chip-fg-s) var(--lce-chip-fg-l)); text-decoration: none; }
.lce a.lce-kick:hover { text-decoration: underline; }
.lce .lce-title.eec-single-title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1.1; margin: 0; color: inherit; }
.lce .lce-quick { margin: 0; font-size: 17px; color: var(--lce-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.lce .lce-past { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 3px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--lce-soft); border: 1px solid var(--lce-line); color: inherit; }

/* layout */
.lce .lce-grid.eec-single-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "hero side" "main side"; gap: 36px 48px; align-items: start; }
.lce .lce-hero { grid-area: hero; }
.lce .lce-main { grid-area: main; display: grid; gap: 36px; min-width: 0; }
.lce .lce-side.eec-single-sidebar { grid-area: side; flex: none; position: sticky; top: 24px; display: grid; gap: 22px; min-width: 0; }

/* hero */
.lce .lce-hero { position: relative; margin: 0; border-radius: 3px; overflow: hidden; aspect-ratio: 16 / 9; background: hsl(var(--h) 45% 40%); }
.lce .lce-hero img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; border-radius: 0; }
.lce .lce-art, .lce .lce-card-art {
	position: absolute; inset: 0; display: block;
	background-color: hsl(var(--h) 38% 24%);
	background-image: linear-gradient(112deg, hsl(var(--h) 38% 24%) 0 58%, hsl(var(--h) 52% 56%) 58% 100%);
}
.lce .lce-ico { position: absolute; right: 21%; top: 50%; width: 30%; max-width: 180px; aspect-ratio: 1; transform: translate(50%, -50%); color: #f4efe3; }
.lce .lce-card-art .lce-ico { width: 34%; }
.lce .lce-ico svg { display: block; width: 100%; height: 100%; }
.lce .lce-badge { position: absolute; left: 0; bottom: 0; z-index: 1; background: var(--lcx-bg); color: inherit; padding: 7px 14px 6px; text-align: center; line-height: 1.05; border-top-right-radius: 3px; min-width: 60px; }
.lce .lce-badge small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--lcx-a); }
.lce .lce-badge strong { display: block; font-family: var(--lcx-head); font-size: 30px; font-weight: 700; }

/* sections */
.lce .lce-section { display: grid; gap: 12px; min-width: 0; }
.lce .lce-section.eec-single-content, .lce .lce-section.eec-single-map { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.lce .lce-section h2 { font-size: 22px; font-weight: 700; margin: 0; padding: 0; border: 0; }
.lce .lce-desc.eec-single-description { font-size: 17px; line-height: 1.65; color: inherit; overflow-wrap: anywhere; }
.lce .lce-desc.eec-single-description > :first-child { margin-top: 0; }
.lce .lce-desc.eec-single-description p { margin: 0 0 1em; }
.lce .lce-desc.eec-single-description a { color: var(--lcx-a); }
.lce .lce-desc.eec-single-description img { max-width: 100%; height: auto; border-radius: 3px; }
.lce .lce-dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lce .lce-dates li { display: grid; gap: 1px; padding: 10px 14px; border-radius: 6px; background: var(--lce-soft); font-size: 15px; font-weight: 600; margin: 0; }
.lce .lce-dates li .lce-dim { font-weight: 400; font-size: 14px; }
.lce .lce-dim { color: var(--lce-muted); font-variant-numeric: tabular-nums; }
.lce .lce-place { margin: 0; display: grid; gap: 2px; font-size: 15.5px; }
.lce .lce-place span { color: var(--lce-muted); }
.lce .lce-map { position: relative; aspect-ratio: 16 / 7; border-radius: 3px; overflow: hidden; background: var(--lce-soft); }
.lce .lce-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lce .lce-tags.eec-single-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.lce .lce-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 0; background: var(--lce-soft); border-radius: var(--lce-r); font-size: 13.5px; color: inherit; text-decoration: none; }
.lce .lce-tag:hover { background: var(--lce-soft); }

/* sidebar */
.lce .lce-facts { margin: 0; display: grid; gap: 18px; padding: 20px; border-radius: 6px; background: var(--lce-soft); }
.lce .lce-fact { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 10px; padding: 0; border: 0; }
.lce .lce-fact dt { display: contents; }
.lce .lce-fact dt svg { grid-row: span 2; margin-top: 2px; opacity: .6; }
.lce .lce-fact dt span { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--lce-faint); }
.lce .lce-fact dd { grid-column: 2; margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.lce .lce-fact dd small { display: block; font-size: 14px; font-weight: 400; color: var(--lce-muted); }
.lce .lce-fact dd a { color: var(--lcx-a); }
.lce .lce-acts { display: grid; gap: 8px; }
.lce .lce-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; margin: 0; border-radius: var(--lce-r);
	border: 0; background: var(--lce-soft); color: inherit; font: inherit; font-size: 15px; font-weight: 600;
	text-decoration: none; cursor: pointer; list-style: none; text-transform: none; letter-spacing: normal;
}
.lce .lce-btn::-webkit-details-marker { display: none; }
.lce .lce-btn:hover { background: color-mix(in srgb, currentColor 9%, transparent); color: inherit; }
.lce .lce-btn.lce-primary { background: var(--lcx-a); border-color: var(--lcx-a); color: var(--lcx-on-a); }
.lce .lce-btn.lce-primary:hover { filter: brightness(1.07); color: var(--lcx-on-a); }
.lce .lce-addcal[open] .lce-btn { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.lce .lce-acts { margin-top: -6px; }
.lce .lce-menu { display: grid; padding: 4px 0; border-radius: 0 0 var(--lce-r) var(--lce-r); background: var(--lce-soft); overflow: hidden; }
.lce .lce-menu a { padding: 10px 16px; color: inherit; text-decoration: none; font-size: 14.5px; }
.lce .lce-menu a:hover { background: var(--lce-soft); }
.lce .lce-remind:empty { display: none; }
.lce .lce-share { display: grid; gap: 8px; }
.lce .lce-label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--lce-faint); }
.lce .lce-share-row { display: flex; gap: 6px; }
.lce .lce-icon {
	width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; margin: 0; border: 0; border-radius: var(--lce-r);
	background: var(--lce-soft); color: inherit; cursor: pointer; text-decoration: none; box-shadow: none;
}
.lce .lce-icon:hover { background: var(--lce-soft); color: var(--lcx-a); }
.lce .lce-note { margin: 0; font-size: 13px; color: var(--lce-muted); min-height: 1.3em; }
.lce a:focus-visible, .lce button:focus-visible, .lce summary:focus-visible { outline: 2px solid var(--lcx-a); outline-offset: 2px; }

/* reminder form (its own inline styles are overridden to match the page) */
.lce .lce-remind .lc-reminder { margin: 0; text-align: left; }
.lce .lce-remind .lc-reminder-btn {
	display: flex; width: 100%; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--lce-r); box-shadow: none;
	border: 0; background: var(--lce-soft); color: inherit; font: inherit; font-size: 15px; font-weight: 600;
}
.lce .lce-remind .lc-reminder-btn:hover { background: var(--lce-soft); }
.lce .lce-remind .lc-reminder-lead, .lce .lce-remind .lc-reminder-note { color: var(--lce-muted); }
.lce .lce-remind .lc-reminder-form { margin: 12px 0 0; max-width: none; }
.lce .lce-remind .lc-reminder-row input[type=email] { height: 42px; border: 1px solid var(--lce-line); border-radius: var(--lce-r); background: var(--lce-field); color: inherit; font: inherit; font-size: 15px; }
.lce .lce-remind .lc-reminder-row input[type=email]:focus { outline: 2px solid var(--lcx-a); outline-offset: -1px; box-shadow: none; border-color: transparent; }
.lce .lce-remind .lc-reminder-row button { height: 42px; border-radius: var(--lce-r); background: var(--lcx-a); color: var(--lcx-on-a); font: inherit; font-size: 14.5px; font-weight: 600; }
.lce .lce-remind .lc-reminder-row button:hover { background: var(--lcx-a); filter: brightness(1.07); }

/* more events */
.lce .lce-related { margin-top: 56px; display: grid; gap: 18px; }
.lce .lce-related h2 { font-size: 22px; font-weight: 700; margin: 0; padding: 0; border: 0; }
.lce .lce-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lce .lce-card { --h: 210; display: grid; gap: 8px; align-content: start; color: inherit; text-decoration: none; min-width: 0; }
.lce .lce-card-art { position: relative; inset: auto; aspect-ratio: 3 / 2; border-radius: 3px; overflow: hidden; }
.lce .lce-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; }
.lce .lce-card .lce-badge { padding: 5px 10px 4px; min-width: 48px; }
.lce .lce-card .lce-badge strong { font-size: 22px; }
.lce .lce-card-kick { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--h) var(--lce-chip-fg-s) var(--lce-chip-fg-l)); }
.lce .lce-card-title { font-family: var(--lcx-head); font-size: 18px; font-weight: 700; line-height: 1.22; overflow-wrap: anywhere; }
.lce .lce-card:hover .lce-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lce .lce-card-meta { font-size: 13.5px; color: var(--lce-muted); }

/* Invite people to submit their own event: in the sidebar on wide screens, at the end of the page on narrow ones. */
.lce .lce-host { display: grid; gap: 6px; justify-items: start; padding: 20px; border-radius: 6px; background: color-mix(in srgb, var(--lcx-a) 9%, transparent); }
.lce .lce-host strong { font-family: var(--lcx-head, inherit); font-size: 17px; font-weight: 700; }
.lce .lce-host p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--lce-muted, inherit); }
.lce .lce-host-wide { display: none; margin-top: 40px; }
@container lce (max-width: 860px) {
	.lce .lce-host-side { display: none; }
	.lce .lce-host-wide { display: grid; }
	.lce .lce-grid.eec-single-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "side" "main"; gap: 28px; }
	.lce .lce-side.eec-single-sidebar { position: static; }
	.lce .lce-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container lce (max-width: 560px) {
	.lce .lce-wrap.eec-single-wrap { padding: 20px 16px 48px; }
	.lce .lce-quick { font-size: 15.5px; }
	.lce .lce-cards { grid-template-columns: minmax(0, 1fr); }
	.lce .lce-map { aspect-ratio: 4 / 3; }
}

/* ---------- organizer, venue, category and tag pages (templates/taxonomy-events.php) ---------- */
.lce.lce-archive .lce-head.eec-single-header { margin-bottom: 36px; }
.lce .lce-intro { max-width: 720px; font-size: 17px; line-height: 1.6; color: var(--lce-muted); }
.lce .lce-intro > :first-child { margin-top: 0; }
.lce .lce-intro > :last-child { margin-bottom: 0; }
.lce .lce-quick a { color: var(--lcx-a); text-decoration: none; }
.lce .lce-quick a:hover { text-decoration: underline; }
.lce .lce-archive-map { margin-top: 56px; aspect-ratio: 16 / 6; }
@container lce (max-width: 560px) {
	.lce .lce-archive-map { aspect-ratio: 4 / 3; }
}
