/* ==========================================================================
   Fallstober Fest — schedule
   Fallstober Schedule plugin 1.2.0

   Ships with the plugin and loads automatically; nothing goes in style.css.
   To tweak: Plugins → Plugin File Editor → Fallstober Schedule → this file.
   Uploading a new plugin zip replaces this file, so send any edits back
   before the next update.

   Palette is lifted from the event signage; adjust in one place below.
   ========================================================================== */

.fb-schedule {
	--fb-orange: #e8542a;   /* the banner vermilion */
	--fb-teal: #1c4e66;     /* the deep field blue */
	--fb-rust: #9c4526;     /* the logo plaque */
	--fb-cream: #f1f2f0;    /* the sign white */
	--fb-slate: #7fa8be;    /* the "schedule & map" blue */
	--fb-rule: rgba(28, 78, 102, 0.14);

	--fb-face: 'Barlow Semi Condensed', 'Barlow', sans-serif;
	--fb-fade: 0.5;         /* how far finished sets drop back */
	--fb-header: 5.5rem;    /* your sticky header height, for anchor jumps */

	max-width: 46rem;
	margin-left: auto;
	margin-right: auto;
}

/* Divi styles some sections with an explicit display, which beats the
   browser's own [hidden] rule. This keeps hidden things hidden. */
.fb-schedule [hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   By time / By stage switch
   The teal field with a cream segment, like the sign's white QR panel.
   -------------------------------------------------------------------------- */

.fb-views {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	margin: 0 0 1.75rem;
	border-radius: 0.6rem;
	background: var(--fb-teal);
}

.fb-views__tab {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0.75rem 0.5rem 0.8rem;
	border: 0;
	border-radius: 0.42rem;
	background: transparent;
	color: var(--fb-cream);
	font-family: var(--fb-face);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fb-views__tab:hover {
	background: rgba(241, 242, 240, 0.12);
}

.fb-views__tab[aria-selected="true"] {
	background: var(--fb-cream);
	color: var(--fb-teal);
}

.fb-views__tab:focus-visible {
	outline: 2px solid var(--fb-orange);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Headings
   -------------------------------------------------------------------------- */

/* The orange rule sits under the whole heading row, so a stage's
   directions button shares the line with its name. */
.fb-view__title,
.fb-stage__head {
	margin: 0 0 0.35rem;
	padding: 0 0 0.45rem;
	border-bottom: 3px solid var(--fb-orange);
}

.fb-stage__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}

.fb-stage__name {
	margin: 0;
	padding: 0; /* Divi pads headings by default */
}

.fb-view__title,
.fb-stage__name {
	font-family: var(--fb-face);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--fb-rust);
}

/* Once the tabs are working, the tab itself names the view. The heading
   stays for screen readers. */
.fb-schedule--tabs .fb-view__title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Without the script, the two views stack. Give the second some air. */
.fb-view + .fb-view {
	margin-top: 3rem;
}

.fb-schedule--tabs .fb-view + .fb-view {
	margin-top: 0;
}

/* --------------------------------------------------------------------------
   Jump-to-stage buttons
   Two across on a phone, four across on anything wider.
   -------------------------------------------------------------------------- */

.fb-jumps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 0.5rem;
	margin: 0 0 2rem;
}

.fb-jumps__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.45rem;
	box-shadow: inset 0 0 0 2px var(--fb-teal);
	color: var(--fb-teal);
	font-family: var(--fb-face);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.045em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fb-jumps__link:hover,
.fb-jumps__link:focus-visible {
	background: var(--fb-teal);
	color: var(--fb-cream);
}

/* --------------------------------------------------------------------------
   Stage sections
   -------------------------------------------------------------------------- */

.fb-stage {
	scroll-margin-top: var(--fb-header);
}

.fb-stage + .fb-stage {
	margin-top: 2.75rem;
}

/* --------------------------------------------------------------------------
   One set
   -------------------------------------------------------------------------- */

.fb-slot {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	column-gap: 1.35rem;
	padding: 1.05rem 1rem;
	border-bottom: 2px solid var(--fb-rule);
	transition: opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   Time
   -------------------------------------------------------------------------- */

.fb-slot__when {
	padding-top: 0.15rem;
	font-family: var(--fb-face);
	font-variant-numeric: tabular-nums;
	color: var(--fb-teal);
}

.fb-slot__start {
	display: block;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.05;
}

.fb-slot__end,
.fb-slot__tba {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.2;
	opacity: 0.65;
}

.fb-slot__tba {
	font-style: italic;
}

.fb-slot__ampm {
	margin-left: 0.12em;
	font-size: 0.66em;
	font-weight: 600;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Artist — the loudest thing in the row
   -------------------------------------------------------------------------- */

.fb-slot__name {
	margin: 0 0 0.5rem;
	padding: 0; /* Divi pads headings by default */
	font-family: var(--fb-face);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.005em;
	color: var(--fb-teal);
}

.fb-slot__name a {
	color: inherit;
	text-decoration: none;
	box-shadow: inset 0 -0.08em 0 rgba(232, 84, 42, 0.35);
}

.fb-slot__name a:hover,
.fb-slot__name a:focus-visible {
	color: var(--fb-orange);
	box-shadow: inset 0 -0.08em 0 var(--fb-orange);
}

/* --------------------------------------------------------------------------
   Genre + venue chips
   Borrowed from the signage: rounded plaque, contrasting keyline.
   -------------------------------------------------------------------------- */

.fb-slot__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
}

.fb-tag {
	display: inline-block;
	padding: 0.22em 0.62em 0.26em;
	border-radius: 0.4rem;
	font-family: var(--fb-face);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.045em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Venue: the filled logo plaque. Links down to the map. */
.fb-tag--place {
	margin-right: 0.15rem;
	background: var(--fb-rust);
	color: var(--fb-cream);
	text-decoration: none;
	box-shadow: 0 0 0 2px var(--fb-orange);
}

.fb-tag--place:hover,
.fb-tag--place:focus-visible {
	background: var(--fb-orange);
	color: var(--fb-cream);
	box-shadow: 0 0 0 2px var(--fb-rust);
}

/* Venues outside the map footprint. Their chips open Google directions in a
   new tab, so they carry an arrow. */
.fb-tag.fb-tag--away {
	display: inline-flex;
	align-items: center;
	gap: 0.34em;
	padding-right: 0.5em;
}

/* Explicit em dimensions on both the element and the SVG attributes: without
   them the browser falls back to the 300x150 SVG default and wrecks the chip.
   display:block kills the inline baseline gap; flex:none stops it squashing
   when a venue name is long. */
.fb-tag__go {
	display: block;
	width: 0.9em;
	height: 0.9em;
	flex: none;
	margin-top: -0.08em; /* optical centring against uppercase text */
}

/* The same chip beside a stage heading, a touch larger for an easier tap. */
.fb-tag.fb-tag--head {
	font-size: 0.85rem;
	padding: 0.38em 0.8em 0.42em;
}

.fb-tag.fb-tag--head.fb-tag--away {
	padding-right: 0.65em;
}

/* Genre: outlined, because it's a link through to the archive. */
.fb-tag--genre {
	background: transparent;
	color: var(--fb-teal);
	text-decoration: none;
	box-shadow: inset 0 0 0 2px rgba(28, 78, 102, 0.3);
}

.fb-tag--genre:hover,
.fb-tag--genre:focus-visible {
	background: var(--fb-teal);
	color: var(--fb-cream);
	box-shadow: inset 0 0 0 2px var(--fb-teal);
}

/* --------------------------------------------------------------------------
   Live now / already finished
   -------------------------------------------------------------------------- */

.fb-slot__live {
	display: none;
	grid-column: 2;
	justify-self: start;
	margin: 0.55rem 0 0;
	padding: 0.2em 0.7em 0.24em;
	border-radius: 0.4rem;
	background: var(--fb-orange);
	color: var(--fb-cream);
	box-shadow: 0 0 0 2px var(--fb-cream), 0 0 0 4px var(--fb-orange);
	font-family: var(--fb-face);
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fb-slot--now {
	background: rgba(232, 84, 42, 0.07);
	box-shadow: inset 4px 0 0 var(--fb-orange);
}

.fb-slot--now .fb-slot__live {
	display: block;
}

.fb-slot--now .fb-slot__when {
	color: var(--fb-orange);
}

.fb-slot--done {
	opacity: var(--fb-fade);
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.fb-schedule__empty {
	font-family: var(--fb-face);
	color: var(--fb-slate);
}

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */

@media (max-width: 540px) {
	.fb-views__tab {
		font-size: 0.95rem;
	}

	.fb-view__title,
	.fb-stage__name {
		font-size: 1.2rem;
	}

	.fb-slot {
		grid-template-columns: 4.35rem 1fr;
		column-gap: 0.95rem;
		padding: 0.95rem 0.5rem;
	}

	.fb-slot__start {
		font-size: 1.1rem;
	}

	.fb-slot__end {
		font-size: 0.8rem;
	}

	.fb-slot__name {
		font-size: 1.3rem;
	}

	.fb-tag {
		font-size: 0.76rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fb-slot,
	.fb-views__tab,
	.fb-jumps__link {
		transition: none;
	}
}
