/* LIS Events — Frontend Styles (for [lis_submit_event] + [lis_events]) */

.lis-events-submit-form .lis-form fieldset {
	border: 1px solid #ddd; padding: 1.25rem 1.5rem; margin: 0 0 1.5rem;
	border-radius: 6px; background: #fafafa;
}
.lis-events-submit-form .lis-form legend { font-weight: 700; font-size: 1.05rem; padding: 0 0.5rem; color: #333; }
.lis-events-submit-form .lis-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: #333; }
.lis-events-submit-form .lis-form input[type="text"],
.lis-events-submit-form .lis-form input[type="email"],
.lis-events-submit-form .lis-form input[type="url"],
.lis-events-submit-form .lis-form input[type="date"],
.lis-events-submit-form .lis-form input[type="time"],
.lis-events-submit-form .lis-form input[type="file"],
.lis-events-submit-form .lis-form select,
.lis-events-submit-form .lis-form textarea {
	width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #ccc; border-radius: 4px;
	font-size: 1rem; background: #fff; box-sizing: border-box;
}
.lis-events-submit-form .lis-form input:focus,
.lis-events-submit-form .lis-form select:focus,
.lis-events-submit-form .lis-form textarea:focus {
	outline: none; border-color: #e67e22; box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}
.lis-events-submit-form .lis-form .required { color: #e67e22; font-weight: 700; }
.lis-events-submit-form .lis-form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.lis-events-submit-form .lis-form-col { flex: 1; min-width: 0; }
.lis-events-submit-form .lis-form-checkbox label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: normal; }
.lis-events-submit-form .lis-form-checkbox input { width: auto; margin: 0; }
.lis-events-submit-form .lis-form-help { display: block; color: #777; font-size: 0.85rem; margin-top: 0.25rem; }
.lis-events-submit-form .lis-form-help-block { font-size: 0.9rem; color: #666; margin-top: -0.5rem; margin-bottom: 1rem; }
.lis-events-submit-form .lis-form-submit { text-align: center; margin: 1.5rem 0 0; }

.lis-btn { display: inline-block; padding: 0.7rem 1.4rem; border-radius: 4px; border: none; cursor: pointer;
	font-weight: 600; font-size: 1rem; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.lis-btn-primary { background: #e67e22; color: #fff; }
.lis-btn-primary:hover { background: #cf6d18; color: #fff; }
.lis-btn-secondary { background: #333; color: #fff; }
.lis-btn-secondary:hover { background: #555; color: #fff; }
.lis-btn-outline { background: transparent; color: #333; border: 1px solid #333; }
.lis-btn-outline:hover { background: #333; color: #fff; }

.lis-notice { padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1.5rem; border: 1px solid; }
.lis-notice-success { background: #d4edda; border-color: #c3e6cb; color: #155724; }
.lis-notice-error { background: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.lis-notice p { margin: 0 0 0.5rem; }
.lis-notice p:last-child { margin-bottom: 0; }

.lis-events-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 2rem 0; }
.lis-event-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff;
	display: flex; flex-direction: column; transition: box-shadow 0.15s, transform 0.15s; }
.lis-event-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.lis-event-thumb { display: block; overflow: hidden; }
.lis-event-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.lis-event-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.lis-event-title { margin: 0 0 0.75rem; font-size: 1.25rem; line-height: 1.3; }
.lis-event-title a { color: inherit; text-decoration: none; }
.lis-event-title a:hover { color: #e67e22; }
.lis-event-meta { color: #555; font-size: 0.9rem; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.lis-event-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.lis-event-excerpt { color: #555; font-size: 0.95rem; margin-bottom: 1rem; flex: 1; }
.lis-event-actions { margin: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lis-event-actions .lis-btn { font-size: 0.85rem; padding: 0.5rem 1rem; }
.lis-events-empty { text-align: center; color: #777; padding: 2rem; font-style: italic; }

/* ---------- List filter bar (v0.10.0) ---------- */

.lis-events-list-wrap { margin: 2rem 0; }
.lis-events-list-wrap .lis-events-list { margin-top: 1.25rem; }

.lis-list-filter {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
	padding: 1rem 1.15rem; border: 1px solid #eee; border-radius: 8px; background: #fafafa;
}
.lis-list-filter-search { flex: 1 1 240px; min-width: 0; }
.lis-list-search-input {
	width: 100%; padding: 0.55rem 0.75rem; border: 1px solid #ddd; border-radius: 4px;
	font-size: 0.95rem; background: #fff; box-sizing: border-box;
}
.lis-list-search-input:focus { outline: none; border-color: #e67e22; box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.15); }

.lis-list-filter-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.lis-list-pill {
	--lis-pill-color: #e67e22;
	display: inline-flex; align-items: center; gap: 0.4rem;
	padding: 0.4rem 0.85rem; border: 1px solid #ddd; border-radius: 999px;
	background: #fff; color: #555; font-size: 0.85rem; line-height: 1.2;
	cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.lis-list-pill:hover { border-color: var(--lis-pill-color); color: #333; }
.lis-list-pill.is-active {
	background: var(--lis-pill-color); border-color: var(--lis-pill-color);
	color: #fff; font-weight: 600;
}
.lis-list-pill:focus-visible { outline: 2px solid var(--lis-pill-color); outline-offset: 2px; }

/* "Other" is the catch-all for events with no category, not a term in the
   taxonomy — italic so the pill row doesn't imply it is one. */
.lis-list-pill-other { font-style: italic; }

/* Organizer/Venue selects (v0.14.0) — dropdowns rather than pills, since these
   are auto-derived from free text and can run to dozens of distinct values,
   where a pill row would wrap for pages. */
.lis-list-filter-select { flex: 0 1 180px; min-width: 140px; }
.lis-list-filter-select select {
	width: 100%; padding: 0.5rem 0.65rem; border: 1px solid #ddd; border-radius: 4px;
	font-size: 0.85rem; background: #fff; color: #555; box-sizing: border-box; cursor: pointer;
}
.lis-list-filter-select select:focus {
	outline: none; border-color: #e67e22; box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.15);
}

/* The grid sets `display` on its children, which would otherwise beat the UA
   stylesheet's [hidden] rule. Same for the no-results message. */
.lis-event-card[hidden] { display: none; }
.lis-list-noresults[hidden] { display: none; }

/* ---------- Single event page (v0.9.0) ---------- */

.lis-single-event { max-width: 1040px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }

.lis-single-cats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }
.lis-single-cat {
	display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px;
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
	color: #fff; text-decoration: none; line-height: 1.4;
}
.lis-single-cat:hover { color: #fff; opacity: 0.88; }

.lis-single-title { margin: 0 0 1.25rem; font-size: 2.1rem; line-height: 1.2; }

.lis-single-thumb { margin-bottom: 1.75rem; }
.lis-single-thumb img { width: 100%; height: auto; border-radius: 8px; display: block; }

.lis-single-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2.25rem; align-items: start; }

.lis-single-facts {
	border: 1px solid #eee; border-radius: 8px; padding: 1.25rem; background: #fafafa;
	position: sticky; top: 1.5rem;
}
.lis-fact { margin-bottom: 1.15rem; }
.lis-fact:last-of-type { margin-bottom: 1.4rem; }
.lis-fact-label {
	display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
	text-transform: uppercase; color: #999; margin-bottom: 0.3rem;
}
.lis-fact-value { display: block; font-size: 0.95rem; line-height: 1.5; color: #333; }
.lis-fact-sub { color: #666; font-size: 0.9rem; }
.lis-fact-recurring { color: #7c4dff; font-size: 0.85rem; font-weight: 600; }
.lis-fact-link { color: #e67e22; text-decoration: none; font-size: 0.9rem; }
.lis-fact-link:hover { text-decoration: underline; }

.lis-single-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.lis-single-actions .lis-btn { width: 100%; text-align: center; font-size: 0.9rem; }

.lis-single-content { font-size: 1.02rem; line-height: 1.7; }
.lis-single-content > *:first-child { margin-top: 0; }

.lis-single-back { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #eee; }
.lis-single-back a { color: #e67e22; text-decoration: none; font-weight: 600; }
.lis-single-back a:hover { text-decoration: underline; }

@media (max-width: 860px) {
	.lis-single-layout { grid-template-columns: 1fr; gap: 1.75rem; }
	.lis-single-facts { position: static; }
	.lis-single-actions { flex-direction: row; flex-wrap: wrap; }
	.lis-single-actions .lis-btn { width: auto; flex: 1 1 auto; }
}

/* ---------- Organizer / Venue archive page (v0.14.0) ---------- */

.lis-term-archive { max-width: 1040px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.lis-term-archive-title { margin: 0 0 0.5rem; font-size: 2rem; line-height: 1.2; }
.lis-term-archive-desc { color: #555; font-size: 1rem; line-height: 1.6; margin-bottom: 1.5rem; max-width: 65ch; }
.lis-term-archive .lis-events-list { margin-top: 1.5rem; }
.lis-term-archive-back { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #eee; }
.lis-term-archive-back a { color: #e67e22; text-decoration: none; font-weight: 600; }
.lis-term-archive-back a:hover { text-decoration: underline; }

@media (max-width: 600px) {
	.lis-events-submit-form .lis-form-row { flex-direction: column; gap: 0; }
	.lis-events-submit-form .lis-form fieldset { padding: 1rem; }
	.lis-list-filter { padding: 0.85rem; gap: 0.65rem; }
	.lis-list-filter-search { flex: 1 1 100%; }
	.lis-list-filter-select { flex: 1 1 100%; }
	.lis-single-title { font-size: 1.6rem; }
	.lis-single-event { padding: 1.25rem 1rem 2rem; }
	.lis-term-archive-title { font-size: 1.6rem; }
	.lis-term-archive { padding: 1.25rem 1rem 2rem; }
}

/* ---------- My Events account-page listing (v1.1.0) ---------- */

.lis-btn-small { padding: 0.4rem 0.85rem; font-size: 0.8rem; }

.lis-my-events { max-width: 100%; }
.lis-my-events-guest p { font-size: 1rem; }
.lis-my-events-empty { color: #555; }

.lis-my-events-notice {
	background: #eef8ee; border: 1px solid #bfe3bf; color: #2c662d;
	padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1.25rem;
}

.lis-my-events-table-wrap { overflow-x: auto; }

.lis-my-events-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.lis-my-events-table th, .lis-my-events-table td {
	text-align: left; padding: 0.75rem 0.6rem; border-bottom: 1px solid #eee; vertical-align: middle;
}
.lis-my-events-table th { font-weight: 600; color: #555; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.02em; }
.lis-my-events-title a { color: inherit; text-decoration: none; font-weight: 600; }
.lis-my-events-title a:hover { text-decoration: underline; }

.lis-my-events-status {
	display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px;
	font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.lis-status-publish { background: #eef8ee; color: #2c662d; }
.lis-status-pending { background: #fdf3e0; color: #96690a; }
.lis-status-draft, .lis-status-future { background: #eef0f4; color: #444; }

.lis-my-events-actions form { margin: 0; }

.lis-my-events-submit-new { margin-top: 1.5rem; }

.lis-my-events-notice-error { background: #fdecea; border-color: #f3b6b0; color: #9d3730; }

.lis-my-events-edit-back { margin-bottom: 1.25rem; }
.lis-my-events-edit-back a { color: #e67e22; text-decoration: none; font-weight: 600; }
.lis-my-events-edit-back a:hover { text-decoration: underline; }

.lis-events-edit-heading { margin: 0 0 1rem; font-size: 1.3rem; }

.lis-current-image { display: block; margin-bottom: 0.5rem; }
.lis-current-image img { display: block; margin-bottom: 0.35rem; border-radius: 4px; max-width: 120px; height: auto; }

@media (max-width: 600px) {
	.lis-my-events-table { font-size: 0.85rem; }
	.lis-my-events-table th, .lis-my-events-table td { padding: 0.6rem 0.4rem; }
}
