/* Seaside Events — public styles.
   Color tokens are plugin-owned CSS variables for now; once the theme's own variable
   names are confirmed (see REQUIREMENTS.md open questions) these can read from them
   directly, e.g. --sse-navy: var(--theme-navy, #1A2E44). */

.sse {
	--sse-navy: #1A2E44;
	--sse-teal: #2A7C6F;
	--sse-link: #007D9D;
	--sse-gold: #C4A882;
	--sse-sand: #FDF8F2;
	--sse-cta: #FFBE0B;
	--sse-bluegray: #8A96A3;
	--sse-border: #EFEAE0;

	font-family: 'Inter', system-ui, sans-serif;
	background: var(--sse-sand);
	color: #2C2C28;
	max-width: 640px;
	margin: 0 auto;
	padding: 0 16px 32px;
	box-sizing: border-box;
}

.sse * {
	box-sizing: border-box;
}

.sse h2,
.sse .sse-heading {
	font-family: 'Playfair Display', Georgia, serif;
}

@media (min-width: 700px) {
	.entry-content h1, .entry-content h2, .entry-content h3 {
		margin: 1rem 0;
	}

	.entry-content h2 {
		font-size: 4rem;
	}
}

.sse-heading-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 10px 0 10px;
	flex-wrap: wrap;
}

.sse-heading {
	font-weight: 700;
	font-size: 22px;
	color: var(--sse-navy);
	margin: 0;
}

.sse-heading em {
	color: var(--sse-teal);
	font-style: italic;
}

.sse-count {
	font-size: 12px;
	color: var(--sse-bluegray);
	font-weight: 600;
}

.sse-subtitle {
	display: none;
}

/* The "Selected Dates" range view's prominent date pill, sitting next to the
   h2 in .sse-heading-row (already a flex row with baseline alignment). */
.sse-range-label {
	font-family: 'Raleway', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: var(--sse-navy);
	padding: 4px 10px;
	border-radius: 999px;
}

/* Hero header */
.sse-hero {
	background: var(--sse-navy);
	margin: 0 -16px 16px;
	padding: 18px 16px 22px;
	border-radius: 0 0 20px 20px;
}

.sse-hero__row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.sse-hero__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.sse-hero__word {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 17px;
	color: #fff;
	white-space: nowrap;
}

.sse-hero__word em {
	font-style: italic;
	color: var(--sse-cta);
}

.sse-hero__word--desktop {
	display: none;
}

.sse-hero__cta {
	font-family: 'Raleway', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	font-size: 10.5px;
	font-weight: 700;
	background: var(--sse-cta);
	color: var(--sse-navy);
	padding: 9px 13px;
	border-radius: 9px;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	margin-left: auto;
}

.sse-staypicker {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
	background: #fff;
	color: var(--sse-navy);
	border-radius: 10px;
	padding: 8px 10px;
	font-size: 11px;
	box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.4);
}

.sse-staypicker svg:first-child {
	color: var(--sse-teal);
	flex-shrink: 0;
}

.sse-staypicker__text {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sse-staypicker__prefix {
	display: none;
}

.sse-staypicker strong {
	color: var(--sse-teal);
}

.sse-staypicker__chevron {
	display: none;
	flex-shrink: 0;
	color: var(--sse-bluegray);
}

/* View switcher */
.sse-switcher {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.sse-switcher__tabs {
	flex: 1;
	display: flex;
	background: #F1ECE3;
	border-radius: 11px;
	padding: 3px;
	gap: 2px;
}

.sse-tab {
	flex: 1;
	text-align: center;
	font-family: 'Raleway', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--sse-navy);
	padding: 8px 6px;
	border-radius: 8px;
	text-decoration: none;
}

.sse-tab.is-active {
	background: #fff;
	box-shadow: 0 1px 3px rgba(26, 46, 68, 0.15);
}

.sse-cal-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.sse-cal-btn {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1.5px solid var(--sse-border);
	border-radius: 10px;
	color: var(--sse-navy);
	cursor: pointer;
}

.sse-cal-btn:hover {
	background: #F1ECE3;
}

/* Clear (×) control next to the Selected Dates view's range pill — goes
   straight back to Today without having to reopen the picker. The calendar
   icon itself (.sse-cal-btn above) stays the plain bare icon regardless of
   whether a date/range is active; the heading already shows that (the day
   name for a single day, the .sse-range-label pill for a range), so the
   icon doesn't need its own active state too. */
.sse-cal-clear {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #fff;
	border: 1.5px solid var(--sse-border);
	color: var(--sse-navy);
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.sse-cal-clear:hover {
	background: #F1ECE3;
}

/* Real root cause of the "invisible" icon (flex-shrink was a red herring,
   confirmed live): the theme's generic `button { padding: 1.1em 1.44em }`
   (~22px/29px a side) was never overridden here, so on a fixed 38px button
   the padding alone needs more room than the whole button, leaving a 0×0
   content box for the svg to sit in — same bug on .sse-btn-icon below, which
   was also missing its own padding override. */
.sse-cal-btn svg,
.sse-btn-icon svg {
	flex-shrink: 0;
}

/* Date/range picker popover — a real panel instead of trying to anchor a
   native <input type="date">'s own popup (which can't do a range anyway, and
   fighting the theme's form-field CSS to position it reliably wasn't worth
   it). Right-aligned under .sse-cal-wrap's position: relative. */
.sse-cal-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	width: 220px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--sse-border);
	border-radius: 12px;
	padding: 14px;
	box-shadow: 0 8px 24px -8px rgba(26, 46, 68, 0.35);
}

.sse-cal-panel[hidden] {
	display: none;
}

.sse-cal-panel__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-family: 'Raleway', sans-serif;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: var(--sse-navy);
}

.sse-cal-panel__optional {
	text-transform: none;
	font-weight: 500;
	color: var(--sse-bluegray);
}

/* Beats the theme's `input[type="date"] { padding: 1.5rem 1.8rem; width: 100% }`
   form-field reset, which would otherwise make these fields enormous. */
.sse-cal-panel__field input[type="date"] {
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	color: #2C2C28;
	background: #fff;
	border: 1px solid var(--sse-border);
	border-radius: 8px;
	padding: 7px 9px;
}

.sse-cal-panel__apply {
	font-family: 'Raleway', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	font-size: 11px;
	font-weight: 700;
	background: var(--sse-cta);
	color: var(--sse-navy);
	border: none;
	border-radius: 8px;
	padding: 10px 14px;
	cursor: pointer;
}

/* Filter bar */
.sse-filters {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 8px;
	margin: 0 0 14px;
	padding-bottom: 2px;
}

.sse-filter-chip {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
}

.sse-filter-chip select {
	appearance: none;
	-webkit-appearance: none;
	font-family: 'Raleway', sans-serif;
	font-size: 11px;
	font-weight: 700;
	color: var(--sse-navy);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231A2E44' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
	border: 1.5px solid var(--sse-border);
	border-radius: 999px;
	padding: 8px 26px 8px 12px;
	cursor: pointer;
}

.sse-filter-chip--free {
	font-family: 'Raleway', sans-serif;
	font-size: 11px;
	font-weight: 700;
	color: var(--sse-navy);
	background: #fff;
	border: 1.5px solid var(--sse-border);
	border-radius: 999px;
	padding: 8px 14px;
	text-decoration: none;
	white-space: nowrap;
}

.sse-filter-chip--free.is-active {
	background: #EAF4F1;
	border-color: var(--sse-teal);
	color: #217A64;
}

.sse-utility {
	background: #fff;
	border: 1px solid var(--sse-border);
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	align-items: center;
}

.sse-utility__item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sse-utility__icon {
	flex-shrink: 0;
}

/* Compact variant — now the only variant, one per day on every view
   (Today included), sitting right under that day's heading instead of as
   its own card. */
.sse-utility--compact {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
	margin: 0 0 10px;
	gap: 4px 16px;
}

.sse-utility--compact .sse-tide {
	font-size: 11.5px;
}

.sse-utility--compact .sse-utility__icon {
	width: 14px;
	height: 14px;
}

.sse-tide {
	font-size: 12.5px;
	color: #2C2C28;
}

.sse-tide strong {
	color: var(--sse-navy);
	margin-right: 4px;
}

/* Feed + cards */
.sse-feed {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 14px;
}

.sse-day-group {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 22px 0 4px;
}

.sse-day-group:first-of-type {
	margin-top: 16px;
}

.sse-day-group__label {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 15px;
	color: var(--sse-navy);
	white-space: nowrap;
}

.sse-day-group__rule {
	flex: 1;
	height: 1px;
	background: var(--sse-border);
}

.sse-empty {
	color: var(--sse-bluegray);
	font-size: 13px;
}

/* Month view: the prev/next month nav row above the listings. */
.sse-month-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 6px;
}

.sse-month-nav__link {
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 13px;
	color: var(--sse-link);
	text-decoration: none;
}

.sse-month-nav__link:hover {
	text-decoration: underline;
}

.sse-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(26, 46, 68, 0.05), 0 8px 20px -10px rgba(26, 46, 68, 0.16);
	overflow: hidden;
}

.sse-card__head {
	width: 100%;
	display: flex;
	gap: 13px;
	align-items: flex-start;
	padding: 13px;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.sse-logo {
	position: relative;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.sse-logo__initials {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: #F3F6F7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 12.5px;
	color: var(--sse-navy);
}

.sse-logo__img {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: #F3F6F7;
	object-fit: contain;
	padding: 10px;
	box-sizing: border-box;
}

.sse-logo__badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--sse-badge, var(--sse-teal));
	border: 2px solid #fff;
}

.sse-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Row 1: category pill + title, always together on one line. */
.sse-toprow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.sse-category {
	display: inline-block;
	flex-shrink: 0;
	font-family: 'Raleway', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	font-size: 9.5px;
	font-weight: 800;
	padding: 3px 9px;
	border-radius: 6px;
}

.sse-title {
	font-weight: 800;
	font-size: 14.5px;
	color: var(--sse-navy);
	line-height: 1.3;
}

/* Row 2: venue, town, and time together (venue/town already combined into
   one .sse-venue string), always on their own line below the title. */
.sse-metarow {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12px;
	color: #3A3A35;
}

.sse-meta-sep {
	color: var(--sse-bluegray);
}

.sse-chip {
	background: #F1ECE3;
	color: var(--sse-navy);
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 10.5px;
}

.sse-chip--free {
	background: #EAF4F1;
	color: #217A64;
}

.sse-venue {
	font-size: 12px;
	color: #3A3A35;
}

.sse-chevron {
	flex-shrink: 0;
	margin-top: 4px;
	color: var(--sse-bluegray);
	transition: transform 0.15s ease;
}

/* The theme (Twenty Twenty) underlines every <button> on :hover/:focus as its
   focus indicator — harmless on a real button with its own label, but on
   .sse-card__head (a button wrapping the whole card's title/time/venue) it
   underlines all of that text. Same risk for .sse-cal-btn and .sse-btn-icon,
   which are also plain <button>s. Swap it for a visible, non-underline focus
   ring so keyboard focus is still shown. */
.sse-card__head:hover,
.sse-card__head:focus,
.sse-cal-btn:hover,
.sse-cal-btn:focus,
.sse-btn-icon:hover,
.sse-btn-icon:focus {
	text-decoration: none;
}

.sse-card__head:focus-visible,
.sse-cal-btn:focus-visible,
.sse-btn-icon:focus-visible {
	outline: 2px solid var(--sse-link);
	outline-offset: 2px;
}

.sse-card.is-open .sse-chevron {
	transform: rotate(180deg);
	color: var(--sse-navy);
}

.sse-card__details {
	display: none;
	padding: 0 18px 16px 18px;
	border-top: 1px solid var(--sse-border);
	margin-top: -4px;
}

.sse-card.is-open .sse-card__details {
	display: block;
	padding-top: 14px;
}

.sse-detail-row {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 12.5px;
	color: #3A3A35;
}

.sse-detail-row svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--sse-navy);
}

.sse-description {
	font-size: 12.5px;
	line-height: 1.6;
	color: #3A3A35;
	margin: 10px 0 0;
}

.sse-status-row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10.5px;
	color: #217A64;
	font-weight: 700;
	margin-top: 10px;
}

.sse-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: #217A64;
}

.sse-reconfirm {
	font-size: 10.5px;
	color: var(--sse-bluegray);
	margin-top: 4px;
}

.sse-actions {
	display: flex;
	gap: 8px;
	margin-top: 13px;
}

.sse-btn {
	font-family: 'Raleway', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	border: none;
	border-radius: 10px;
	padding: 11px 16px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.sse-btn--cta {
	background: var(--sse-cta);
	color: var(--sse-navy);
	box-shadow: 0 2px 8px rgba(255, 190, 11, 0.4);
}

.sse-btn-icon {
	width: 42px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1.5px solid var(--sse-teal);
	border-radius: 10px;
	color: var(--sse-teal);
	cursor: pointer;
}

/* Desktop: wider canvas, top header bar, 3-column card grid — per Decision 6
   (top nav bar, horizontal filter bar, 3-column grid). The mockup's Search
   icon and "My Week" nav item are deliberately left out: neither feature is
   built yet, and a nav button for something that doesn't do anything yet
   would be worse than not having it.

   Layout order is reshuffled purely with flex `order` on `.sse` — the HTML
   itself is unchanged between breakpoints (and mobile isn't flex at all, so
   it just follows source order as always): switcher moves to directly below
   the header, the filter bar moves to below the heading instead of above the
   ticker, matching the Desktop mockup. */
@media (min-width: 880px) {
	.sse {
		display: flex;
		flex-direction: column;
		max-width: 1320px;
		padding: 0 32px 60px;
	}

	.sse-hero {
		order: 1;
		margin: 0 -32px 0;
		padding: 0 32px 22px;
		border-radius: 0;
	}

	.sse-hero__row {
		padding: 14px 0;
		margin-bottom: 0;
	}

	.sse-hero__word--mobile {
		display: none;
	}

	.sse-hero__word--desktop {
		display: inline;
	}

	.sse-staypicker {
		flex: 0 1 440px;
	}

	.sse-staypicker__prefix {
		display: inline;
	}

	.sse-staypicker__chevron {
		display: inline;
	}

	.sse-switcher {
		order: 2;
		background: none;
		margin: 18px 0 14px;
	}

	.sse-switcher__tabs {
		/* Was still flex: 1 from the mobile rule, stretching to fill the row
		   and shoving .sse-cal-btn off to the far right edge instead of right
		   after "Month". Shrink to content so the two sit next to each other. */
		flex: 0 0 auto;
		background: none;
		padding: 0;
		gap: 8px;
	}

	.sse-switcher .sse-tab {
		flex: none;
		background: #fff;
		border: 1px solid var(--sse-border);
		box-shadow: 0 1px 2px rgba(26, 46, 68, 0.04), 0 4px 10px -6px rgba(26, 46, 68, 0.1);
		padding: 9px 16px;
		border-radius: 9px;
	}

	.sse-switcher .sse-tab.is-active {
		background: var(--sse-navy);
		color: #fff;
		box-shadow: none;
	}

	.sse-utility {
		order: 3;
	}

	.sse-heading-row {
		order: 5;
	}

	/* Same desktop flex-reorder scheme as everything else in .sse (see
	   .sse-hero/.sse-switcher/.sse-day-group above) — without this, Month
	   view's prev/next nav defaults to order:0 and renders above the header
	   instead of under "November 2026" where the markup puts it. Tied to
	   heading-row's own order so it lands right after the heading. */
	.sse-month-nav {
		order: 5;
	}

	.sse-heading {
		font-size: 18px;
	}

	.sse-subtitle {
		display: inline;
	}

	.sse-filters {
		order: 6;
		flex-wrap: wrap;
		overflow-x: visible;
		margin: 0px;
	}

	.sse-feed {
		order: 7;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	/* One event per row instead of a 3-up tile grid. Each card still keeps its
	   fixed two-row layout (pill + title, then venue/town/time) — just with
	   more breathing room since a full-width row has it. */
	.sse-card__head {
		align-items: center;
	}

	.sse-title {
		font-size: 15px;
	}

	.sse-chevron {
		margin-top: 0;
	}

	.sse-day-group {
		order: 7;
	}

	.sse-utility--compact {
		order: 7;
	}
}
