/* CLAUDE #171: the dialogs' styles, shared with the submit forms (must stay first in this file) */
@import "dialog.css";
@import "css/utilities.css"; /* CLAUDE #96: the inline style attributes, as classes */
@import "css/calendar.css"; /* CLAUDE #310: the details pages' calendar (calendar.php), shared with the sign-up pages */

:root {
	--body-background: #122140;
	--content-background-dark: #010d25;
	--body-foreground: #fff;/* #e2dede; */
	--content-background: #02193f;
	--accent-color: #facf05;
	--link-color: #0273fe;
	--link-color: #2385ff;
	--link-color: #58a3ff;
	--border-color: #2c4167;
	--orange: orange;
	--normal-font-family: "Barlow Semi Condensed";
	--wide-font-family: "Barlow";
	--narrow-font-family: "Barlow Condensed";
}

::before,
::after {
	font-family: "Font Awesome";
	font-weight: 300; /* CLAUDE #220: the Light icons (owner); was 100, the Thin ones */
}

body {
	background: var(--body-background);
	color: var(--body-foreground);
	font-family: var(--wide-font-family);
	font-size: clamp(1rem, 1.75vw, 1.2rem);
	font-weight: 300;
	margin: 0;
}

a {
	color: var(--link-color);
	text-underline-offset: 0.275em;
	text-decoration-thickness: 0.1px;
	word-break: break-word;
}

main > header a {
	text-decoration: none;
}

label,
button {
	cursor: pointer;
}

label:has(input[type=checkbox]) {
	display: flex;
	align-items: center;
	padding: 0.25rem;

	color: var(--link-color);
}

label:has(input[type=checkbox]:checked) {
	color: lightgreen;
}

label:has(input[type=checkbox]:focus) {
	outline: 2px solid;
	border-radius: 0.5rem;
}

input[type=checkbox] {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

label:has(input[type=checkbox])::before {
	content: "";
	border: 1px solid var(--link-color);
	width: 1rem;
	height: 1rem;
	vertical-align: bottom;
	margin-right: 0.3rem;
	border-radius: 0.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	font-size: 0.6em;
}

label:has(input[type=checkbox]:checked)::before {
	border-color: green;
	content: "\f00c";
	font-weight: bold;
}

/* body > header, */
main {
	background: var(--content-background);
	max-width: 1024px;
	/* CLAUDE #881: not centered (was margin: 0 auto; owner): at the left, beside the sidebar, as Mail's */
	box-sizing: border-box;
}

main > header nav {
	background-color: var(--content-background-dark);
	/* border-bottom: 2px solid var(--border-color); */
	padding: 0.25rem 1rem 0;
	font-family: var(--narrow-font-family);
	display: flex;

	align-items: center;
	justify-content: space-between;
	width: 100%;
	font-family: var(--normal-font-family);
	margin-bottom: 1rem;
}

main > header nav ul {
	display: flex;
	list-style: none;
	gap: 2rem;
	margin: 0;
	padding: 0;
	width: 100%;
}

main > header nav ul li {
	padding: 0.5rem 0;
	display: flex;
	align-items: center;
	border-bottom: 2px solid var(--link-color);
	margin-bottom: -1px;
}

main > header nav ul li.home {
	padding: 0;
	border-bottom: 2px solid var(--link-color); /* CLAUDE #881: a product that isn't current has the link's underline, wherever it is (was transparent: the current one was always first) */
	font-family: var(--wide-font-family);
}

/* CLAUDE #881: the products are Profile, TPM, Agent and Good Show, in that order (owner, 2026-11-15), so the tabs start after Good Show's (were
   after the second product's) */
main > header nav ul li.goodshow.home {
	margin-right: auto;
}

/* CLAUDE #630: the guided flow's nav on its review stops (include.php's flow_nav(), no product current): both products are links with the
   link's underline, as forms/form-chrome.css has it on Submit a Listing (the first is otherwise the current one, under its logo) */
main > header nav.no_product ul li.home {
	border-bottom-color: var(--link-color);
}

main > header nav ul li.active {
	border-bottom-color: var(--accent-color);
}

main > header nav ul li.home a {
	display: flex;
	align-items: center;
}

main > header nav ul li.active a {
	color: var(--body-foreground);
}

main > header nav ul a::before {
	margin-right: 0.5em;
}

main > header nav ul li.active a::before {
	font-weight: 300;
}

/* CLAUDE #583: the logo is the current product's first span; its name, in the second, hides at phone widths (below). Were li.home span */
main > header nav ul li.home span:first-child {
	background-size: contain;
	background-repeat: no-repeat;
	width: 1.5rem;
	height: 1.5rem;
	font-weight: 400;
	display: inline-flex;
	align-items: center;
	border-radius: 0.25rem;
	margin-right: 0.5rem;
}

main > header nav ul li.agent.home span:first-child {
	background-image: url(https://static.breaklegs.app/app/images/icon-256.png);
}

main > header nav ul li.goodshow.home span:first-child {
	background-image: url(https://static.breaklegs.app/app/images/icon-256.png);
}

/* CLAUDE #567: Your Profile, the nav's icon-only first tab (boards/nav.php): the person icon (circle-user, added to the icon font's Light subset)
   at the home tabs' logos' size, at least 2rem wide to tap, with the other tabs' bottom border (owner, 2026-11-09: "the same link/accent
   bottom border that the other nav items have"; was none) and a focus ring in the link's color; its name ("Your Profile") is hidden text
   that screen readers read, as the visually-hidden pattern hides it (not font-size: 0) */
main > header nav ul li.profile a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
}

main > header nav ul li.profile a::before {
	content: "\f2bd";
	margin: 0;
	font-size: 1.5rem;
}

main > header nav ul li.profile a:focus-visible {
	outline: 2px solid;
	outline-offset: 2px;
	border-radius: 50%;
}

main > header nav ul li.profile a span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* CLAUDE #444: Directory's kinds (directory_kinds.php), a row above a kind's title (owner, 2026-11-07: centered, border only, in the tabs'
   colors: the link color, the current one the accent color; as much space below as above) */
main > header .directory_kinds {
	flex: 0 0 100%;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0.25rem 0 1.25rem;
}

main > header .directory_kinds a {
	border: 2px solid var(--link-color);
	border-radius: 999px;
	padding: 0.2rem 0.9rem;
	color: var(--link-color);
	text-decoration: none;
}

main > header .directory_kinds a.on {
	border-color: var(--accent-color);
	color: var(--body-foreground);
}

main > header .directory_kinds a span {
	opacity: 0.75;
}

input[type=search] {
	background: var(--content-background-dark);
	border: 2px solid var(--border-color);
	margin-left: 1rem;
	color: var(--body-foreground);
	border-radius: 0.5rem;
	/* align-self: center; */
	max-width: 40%;
	width: 10ch;
	padding: 0.25rem 0.5rem 0.35rem;
	flex: 1;
	font: inherit;
	font-size: 0.8em;
}

input[type=search]:focus-visible {
	outline: 0.1px solid;
}

main {
	padding: 0 1rem 50vh;
	min-height: 100vh;
}

main > header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	/* padding: 0 0 1rem; */
	flex-wrap: wrap;
	margin: 0 -1rem;
}

main > header:has(h1) { /* CLAUDE #881: the title has as much space above it as below it (owner); the bar is over the page now (app-nav.css) */
	padding: 1rem 0;
}

main > header h1 {
	font-size: 1.6em;
	font-weight: 500;
	margin: 0;
	margin-left: 1rem;
}

main > header h1::before {
	/* font-weight: bold; */
	margin-right: 0.5em;
	color: var(--accent-color);
}

main > header h1.directory::before,
nav .directory a::before {
	content: "\f2b9";
}

main > header h1.auditions::before,
nav .auditions a::before {
	content: "\e533";
}

main > header h1.learning::before,
nav .learning a::before {
	content: "\e56e";
}

main > header h1.classifieds::before,
nav .classifieds a::before {
	content: "\f1ea";
}

/* CLAUDE #573: no Venues tab or title (CLAUDE #297's door-open icon was here); it's Directory's Venues, titled as the Directory */

main > header h1.performances::before,
nav .performances a::before {
	content: "\e533";
	content: "\f145";
}

main > header h1.reviews::before,
nav .reviews a::before {
	content: "\f005";
}

/* CLAUDE #391: Tickets, the tickets site's tab, the tickets icon (in the font's subset; Events has the single ticket) */
main > header h1.tickets::before,
nav .tickets a::before {
	content: "\e659";
}

/* CLAUDE #569: Volunteer, the Volunteer board's tab, the hand-holding-heart icon (in the font's subset) */
main > header h1.volunteer::before,
nav .volunteer a::before {
	content: "\f4be";
}

/* CLAUDE (camps): removed the Camps icon rule; Good Show won't have a Camps section */

main > header > a {
	background: var(--link-color);
	color: var(--foreground-color);
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	font-size: 0.9em;
	font-family: var(--normal-font-family);
	margin-right: 1rem;

	color: black;
	font-weight: 500;
}

main section > header > a.tpane::before {
	content: "\e24e";
}

main section > header > a.leave.tpane::before {
	content: "\e66c";
}

main section > header > a.calendar::before {
	content: "\f073";
}

/* CLAUDE #127: the Directory's Map view and its list (agent_app/directory/map.php, listing.php); the map icon was added to the Light font */
main section > header > a.map::before {
	content: "\f279";
}

main section > header > a.list::before {
	content: "\f03a"; /* CLAUDE #480: list (owner, 2026-11-07: "Use the list icon"); was \f2b9, the address book (Directory's own icon) */
}

main section > header {
	background-color: var(--content-background-dark);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 1.5rem;
	/* margin: 1rem 0; */
	padding: 0.5rem 1rem;
	border: 2px solid var(--border-color);
	border-radius: 0.5rem;
	font-size: 0.9em;
	font-family: var(--normal-font-family);
}

main section > header > a {
	text-decoration: none;
}

main section > header > a:last-of-type {
	margin-right: auto;
}

main section > header > a::before {
	margin-right: 0.4em;
}

main section .search p {
	margin: 0;
	font-weight: inherit;
	font-size: 0.8em;
	text-align: center;
}

main button {
	appearance: none;
	border: 0;
	background: var(--link-color);
	color: var(--body-foreground);
	border-radius: 0.5rem;
	font: inherit;
	padding: 0 0.5rem 0.05rem;

	color: black;
	font-weight: 500;
}

button.filter {
	appearance: none;
	background: var(--content-background);
	color: var(--foreground-color);
	color: var(--link-color);
	font: inherit;
	border: 2px solid var(--border-color);
	border-radius: 0.5rem;
}

/* CLAUDE #614: Search In's boxes (filter-panel.js) aren't filters that are on, but a part left out of the search is one */
/* CLAUDE #754: Search In is under the search box now, so a part left out doesn't light the Filter button (was a second selector for it) */
body:has(#filter input:not([value="2"]):not(.filter-search-box):checked) button.filter {
	color: lightgreen;
	border-color: green;
}

body:has(#filter input:not([value="2"]):not(.filter-search-box):checked) button.filter::before {
	font-weight: 700;
}

button.filter::before {
	content: "\f0b0";
	margin-right: 0.5rem;
}

main section > header ~ div:has(h4) {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: end;
	/* font-size: 1.1em; */
}

main section > header ~ div:has(h4),
main section > h2 {
	position: sticky;
	top: 0;
	z-index: 3;
	background-color: var(--content-background);
	padding-bottom: 0.25rem;
}

main section > h2,
main section h4 {
	font: inherit;
	font-size: 1.2em;
	margin: 0;
}

main section div.search {
	display: flex;
	flex-wrap: wrap; /* CLAUDE #108: with a Duration menu (Reviews), on a phone */
	gap: 0.5rem 1rem;
	justify-content: space-between;
	align-items: center;
	margin-top: 1rem;
	margin-bottom: 1px; /* for the search input */
}

ul.listings {
	display: grid;
	gap: 1rem;
	margin: 0;
	list-style: none;
	padding: 0;
}

section > header + ul.listings {
	margin-top: 1rem;
}

div.children > ul > li,
ul.listings > li {
	background: var(--content-background-dark);
	border: 2px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 0.5rem 1rem 1rem;
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "dates dates dates"
						"image contents contents"
						"ignore tags tags"
						"children children children";
	align-items: center;
	position: relative;
}

/* CLAUDE #493: where the image is beside the contents, it takes the left column's two rows and the Hide/Show Listing sits over its bottom
   (owner, 2026-11-08: "move the Hide/Show Listing into the same container as the hero image", "for screens that display them on the side,
   not mobile"; this is the owner's second CSS: "I found a bug with my code, so use the following, instead"). Only cards with an image: cards
   without one keep their layout (the rule below), and so do phones and Classifieds' role cards (nested lists) */
@media screen and (min-width: 729px) {
	ul.listings > li:has(> .image) {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-rows: auto 1fr auto;
		grid-row-gap: 0;
		grid-template-areas: "dates dates"
							"image contents"
							"image tags"
							"children children";
	}

	ul.listings > li:has(> .image) > .image {
		grid-row: 2 / span 2;
		grid-column: 1;
		margin-bottom: 0;
	}

	/* Hide/Show: a box the image's size, centered with it, so the label sits on the image's bottom even when the text is taller (owner:
	   "Can it maintain its centered alignment?"; at the bottom of row 3, it fell below a centered image). Clicks outside the label go through
	   to the card's link */
	ul.listings > li:has(> .image) > .ignore {
		grid-row: 2 / span 2;
		grid-column: 1;
		align-self: center;
		justify-self: stretch; /* the column's width, less its margin: the image's */
		aspect-ratio: 1 / 1;
		height: auto;
		align-items: flex-end;
		z-index: 2; /* over the card's link (.view, 1), so Hide/Show can be clicked */
		margin-top: 0;
		pointer-events: none;
	}

	/* the dark band, so it can be read over any image (owner: "Yes, add both"; then "Reduce the dark band's opacity to 0.6") */
	ul.listings > li:has(> .image) > .ignore label {
		background: rgba(0, 0, 0, 0.6);
		pointer-events: auto;
	}

	ul.listings > li:has(> .image) > .contents {
		grid-row: 2;
		grid-column: 2;
		margin-bottom: 0;
	}

	ul.listings > li:has(> .image) > .filters {
		grid-row: 3;
		grid-column: 2;
		align-self: start;
		margin-top: 0;
	}
}

ul.listings {
	margin-top: 0.8rem;
}

/* CLAUDE #383: and its tags and children, under its contents (owner, 2026-11-04: a venue without a photo; without those areas the tags took
   a column of their own and squeezed the contents) */
ul.listings > li:not(:has(.image)) {
	grid-template-areas: "dates dates dates" "ignore contents contents" "ignore tags tags" "children children children";
	grid-template-columns: auto 1fr;
}

ul.listings li.hidden {
	display: none;
}

/* CLAUDE #174: a show's card on the Classifieds board (owner, layout A): its roles (the listings started from its Needed crew roles) are
   listed in it, each a compact card of its own (title, expiration and badges, Hide), and the show's card goes when all its roles are hidden */
ul.listings > li.show_roles > .children {
	grid-area: children;
}

ul.listings > li.show_roles > .contents::after {
	content: none; /* the show's card has no link of its own (its roles do), so no arrow */
}

ul.listings > li.show_roles > .children > ul {
	display: grid;
	gap: 0; /* CLAUDE #691: rows with dividers (was 0.5rem between boxes) */
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

ul.listings > li.show_roles .children li .image,
ul.listings > li.show_roles .children li .detail-text,
ul.listings > li.show_roles .children li .details,
ul.listings > li.show_roles .children li .filters {
	display: none;
}

/* CLAUDE #691: the roles are rows of the show's card, with no box of their own (div.children > ul > li's), and a divider between them, the
   details page's children's (article .children section + section), so the card reads as one group (owner: "There isn't an obvious
   grouping of the Classifieds listings") */
ul.listings > li.show_roles .children > ul > li {
	grid-template-areas: "dates dates" "ignore contents";
	grid-template-columns: auto 1fr;
	padding: 0.5rem 0; /* CLAUDE #691: was 0.25rem 0.75rem 0.5rem, inside a box */
	background: none;
	border: 0;
	border-radius: 0;
}

ul.listings > li.show_roles .children > ul > li + li {
	border-top: 1px dashed var(--accent-color);
}

#results header:not(.ignored) ~ ul li.show_roles:not(:has(.children li:not(.ignored))) {
	display: none;
}

ul.listings > li.verified {
	box-shadow: 0px 0px 10px 3px var(--accent-color);
}

/* CLAUDE #526: only the cards ([data-id], as the filters count them); li:not(.new) also hid the tags' rows inside the By Show boards' cards */
#results header.new ~ ul.listings li[data-id]:not(.new),
#results header:not(.ignored) ~ ul .ignored,
#results header.new ~ .calendar div div:not(.new) {
	display: none;
}

.listings * {
	margin: 0;
}

.contents {
	grid-area: contents;
	position: relative;
	padding-right: 1.5rem;
}

.ignore {
	grid-area: ignore;
	color: var(--link-color);
	display: flex;
	justify-content: center;
	font-size: 0.8em;
	height: 100%;
	align-items: center;
	margin-right: 1rem;
	box-sizing: border-box;
}

.ignore:first-child {
	max-width: 240px;
	width: 25vw;
	margin-right: 1rem;
}

.ignore input {
	position: absolute;
	pointer-events: none;
	opacity: 0;
	width: 0;
}

.ignore label {
	z-index: 2;
	user-select: none;
	font-weight: 300;
	padding: 0.25rem 0;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

li:not(.ignored) .ignore label {
	color: pink;
}

li.ignored .ignore label {
	color: lightgreen;
}

li .ignore label::before {
	font-weight: 300;
}

li.ignored .ignore label::before {
	content: "\f06e";
	margin-right: 0.25rem;
}

li:not(.ignored) .ignore label::before {
	content: "\f070";
	margin-right: 0.25rem;
}

li.ignored .ignore span.hide,
li:not(.ignored) .ignore span.show {
	display: none;
}

.contents .text {
	font-size: 1.3em;
	font-style: italic;
}

.contents .detail-text {
	font-size: 1.1em;
	/* margin-top: 0.25em; */
	/* margin-bottom: auto; */
}

.contents .details {
	margin: 0.5em 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	font-size: 0.9em;
	flex-basis: 100%;
	overflow: hidden;
	line-height: 1.35;
	font-family: var(--normal-font-family);
}

html[data-searching] li:not(.hidden) .contents .details {
	-webkit-line-clamp: 100;
}

.contents::after {
	position: absolute;
	right: 0;
	display: flex;
	top: 0;
	bottom: 0;
	align-items: center;
	content: "\f054";
	font-weight: 700;
}

.listings .filters {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	grid-area: tags;
	font-size: 0.8em;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
}

.listings .filters li {
	overflow-wrap: normal;
	display: contents;
}

@media screen and (max-width: 728px) {
	.listings .filters li {
		display: flex;
		gap: 0.5rem;
		flex-wrap: wrap;
		background: none;
		border: 0;
		padding: 0;
	}
}

.listings .filters li:not(:has(span)) {
	display: none;
}

.filters span {
	padding: 0 0.5em 0.2em;
	border-radius: 0.5em;
	/* line-height: 1.2; */
	background: var(--border-color);
	font-family: var(--normal-font-family);
}

.filters span.fees,
.filters span.youth_fees /* CLAUDE #680: Youth Fees Only, a fee too */ {
	color: yellow;
	background: none;
	outline: 1px solid;
}

#results .dates {
	grid-area: dates;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: baseline;
	margin: 0;
	padding: 0rem 0 0.5rem;
	gap: 1rem;
	margin-bottom: 0.5rem;
	border-bottom: 1px solid var(--accent-color);
	/* border-bottom: 2px solid var(--border-color); */
}

#results .dates span {
	display: flex;
	gap: 0.5rem;
	align-items: baseline;
}

/* CLAUDE #304: removed #results span.opening-show and span.closing-show: nothing writes those classes */
#results .dates span.ending-soon {
	color: var(--orange);
}

#results .dates span.ended {
	background: darkred;
	color: white;
	padding: 0 0.5rem 0.25rem;
}

/* CLAUDE #223: a Canceled or Postponed listing's label on the boards, which it keeps until its dates pass (owner) */
#results .dates span.canceled,
#results .dates span.postponed {
	background: darkred;
	color: white;
	padding: 0 0.5rem 0.25rem;
}

#results .dates span.postponed {
	background: var(--orange);
	color: black;
}

/* CLAUDE #223: the details page's note that a listing is canceled or postponed, with why */
article .listing_status {
	max-width: calc(1024px - 2rem);
	margin: 0 auto 1rem;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	background: darkred;
	color: white;
}

article .listing_status.postponed {
	background: var(--orange);
	color: black;
}

article .listing_status p {
	margin: 0;
}

span.new {
	color: #00b500;
}

html:not(.grid) main section .view {
	position: absolute;
	left: 0;
	top: 0;
	font-size: 0;
	color: transparent;
	padding: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	/* pointer-events: none; */
}

/* CLAUDE #444: square, the whole image shown (owner, 2026-11-07: the lists' images square; they'll be made square when they're generated
   again, centered on a face), up to 240px wide as before (owner: "Make the square hero images the same width as the previous version"; was
   135px here). Was 16:9 and up to 240px wide, cropped to fill. Phones keep the wide one (below) */
main section .listings .image {
	background: no-repeat;
	background-position: center;
	position: relative;
	min-width: 3rem;
	margin-right: 1rem;
	width: 25vw;
	aspect-ratio: 1 / 1;
	background-size: contain;
	max-width: 240px;
	grid-area: image;
}

/* CLAUDE #470: the listing's square image (owner, 2026-11-07: "Yes, use it now"): the boards put it in the style attribute as --square
   (list_image_square(), include.php), next to the wide listing.webp, which this replaces above the phone width (!important, over the style
   attribute's background-image). Phones keep the wide one (below) */
@media screen and (min-width: 729px) {
	main section .listings .image[style*="--square"] {
		background-image: var(--square) !important;
	}
}

@supports not (aspect-ratio: auto) {
	main section .image {
		padding-top: 100%; /* Maintain aspect ratio; CLAUDE #444: square (was 56.25%) */
	}
}

@media screen and (max-width: 728px) {
	main section .listings .image {
		width: 100%;
		margin: 0;
		max-width: none;
	}
}

main section li.contain .image {
	background-size: contain;
}

#filter {
	/* display: none; */
	/* background: var(--content-background-dark); */
	/* color: var(--body-foreground); */
	/* z-index: 4; */
}

html.filtered #filter {
	/* display: block; */
}

#filter h2 {
	margin: 0;
}

/* CLAUDE #171: the dialogs' styles moved to dialog.css (imported at the top), the Filter list's too (owner) */

/* CLAUDE #881: a phone's text size, on a phone only (a touch screen; owner: "Make that only apply to mobile"): T-Pane's pane is as narrow on a
   wide window and took it (was in the block below, for any window this narrow) */
@media screen and (max-width: 728px) and (pointer: coarse) {
	body {
		font-size: clamp(1rem, 4.75vw, 1.5rem);
	}
}

@media screen and (max-width: 728px) {

	body > header {
		/* padding-bottom: 0.5rem; */
	}

	main > header nav ul {
		gap: 1rem;
	}

	main > header nav ul li {
		padding: 0.5rem 0;
		/* order: 2; */
	}

	main > header nav ul li.home {
		font-family: var(--narrow-font-family);
	}

	main > header nav ul li span {
		font-size: 0;
	}

	/* main > header nav ul li:not(.active) span {
		font-size: 0;
	}

	main > header nav ul li:not(.active) a::before {
		margin: 0;
	} */

	main > header nav ul li a::before {
		margin: 0;
	}

	/* CLAUDE #583: the current product's tab shows only its logo (owner, 2026-11-09: "for the current product to only show the icon, and the
	   other's words would show"); its name is hidden text that screen readers read, as Your Profile's (#567), and the link's title */
	main > header nav ul li.home.active span:first-child {
		margin-right: 0;
	}

	main > header nav ul li.home.active span + span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	main {
		padding-inline: 0.5rem;
		font-family: var(--normal-font-family);
	}

	main > header {
		padding: 0;
		padding-bottom: 0.5rem;
		margin: 0 -0.5rem;
	}

	main > header nav {
		padding-top: 0;
		margin-bottom: 0.5rem;
	}

	main > header h1 {
		font-family: var(--narrow-font-family);
		/* margin-left: 1rem; */
	}

	main > header > a {
		padding: 0.15rem 0.5rem 0.25rem;
		/* margin-right: 1rem; */
	}

	main > header span {
		font-size: 0;
	}

	/* main > header span,
	main section > header span {
		font-size: 0;
	} */

	main section > header {
		/* margin: 0.5rem 0 0; */
		column-gap: 0;
		row-gap: 1rem;
		font-family: var(--narrow-font-family);
		justify-content: space-between;
		padding: 0.25rem 0.5rem;
	}

	main section > header a:last-of-type {
		margin-right: 0;
	}

	main section > header .ignored span {
		/* font-size: 0; */
	}

	main section > header ~ div:has(h4) {
		font-family: var(--narrow-font-family);
	}

	main section h2 {
		/* margin: 0 0 0.5rem 0; */
	}

	button.filter {
		/* flex-basis: 100%; */
	}

	a.tpane {
		display: none;
	}

	ul.listings li {
		grid-template-areas: "dates"
							"image"
							"ignore"
							"contents"
							"tags"
							"children";

		grid-template-columns: 1fr;
		font-weight: 100;
	}

	ul.listings li:not(:has(.image)) {
		grid-template-areas: "dates"
							"ignore"
							"contents"
							"tags"
							"children"; /* CLAUDE #383: and its tags and children */

		grid-template-columns: 1fr;
	}

	main section .image {
		max-width: none;
		width: 100%;
		margin: 0;
	}

	/* CLAUDE #444: on a phone, the wide image across the card, as before (owner, 2026-11-07: "Square ones end up too tall") */
	main section .listings .image {
		aspect-ratio: 16 / 9;
		background-size: cover;
	}

	.contents .text,
	.contents .detail-text {
		font-family: var(--narrow-font-family);
		line-height: 1;
	}

	.contents .detail-text {
		margin: 0.5em 0 0;
	}

	#results .dates {
		font-family: var(--narrow-font-family);
	}

	.ignore {
		margin: 0.25rem 0;
	}

	.ignore:first-child {
		width: 100%;
		max-width: none;
	}

	.filters span {
		font-family: var(--narrow-font-family);
	}

	/* CLAUDE #171: dialog ul's narrow font moved to dialog.css */
}

iframe,
html.tpane.details main > header {
	display: none;
}

html.tpane.details main {
	padding-top: 1rem;
}

@media screen and (min-width: 1080px) {
	html.tpane body {
		display: flex;
		align-items: start;
	}

	/* html.tpane body > header {
		margin: 0;
		height: 100vh;
		display: flex;
		flex-direction: column;
		padding: 1rem 1rem 0;
	}

	html.tpane main > header nav ul {
		flex-direction: column;
		gap: 1rem;
	}

	html.tpane main > header nav ul li.home + li.home {
		margin: 0;
		margin-bottom: 2rem;
	} */

	html.tpane main {
		flex: 2;
		margin: 0;
		height: calc(100vh - var(--app-bar-h, 0px)); /* CLAUDE #881: under the bar (app-nav.css), the page no taller than the window */
		min-height: 0;
		overflow: auto;
		/* padding-top: 1rem; */
		/* box-sizing: border-box; */
	}

	html.tpane main section > header ~ div:has(h4),
	html.tpane main section > h2 {
		top: -1rem;
	}

	html:not(.tpane) main section .view.tpane,
	html.tpane main section .view:not(.tpane) {
		display: none;
	}

	iframe {
		display: block;
		flex: 1;
		border: 0;
		height: calc(100vh - var(--app-bar-h, 0px)); /* CLAUDE #881: under the bar */
		margin: 0;
		padding: 0;
		border-left: 2px solid var(--accent-color);
		min-width: 40%;
	}
}





article {
	padding: 0 0.5rem 2rem;
}

article h1,
article h2.title {
	margin: 0;
	font-weight: 600;
}

article h2.title {
	margin-top: 1rem;
}

article h2.title,
article h1.review span,
article h1:not(.review) {
	font-style: italic;
}

article p.theatre {
	margin: 0;
}

article picture {
	float: right;
	margin: 0 0 1rem 1rem;
	width: 40%;
}

article picture img {
	width: 100%;
}

article .filters {
	font-size: clamp(0.9rem, 1.75vw, 1.2rem);
	font-family: var(--narrow-font-family);
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

article .filters li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

article .filters li:not(:has(span)) {
	display: none;
}

article .filters span {
	font: inherit;
}

article ul {
	display: grid;
	gap: 0.25rem;
}

article ul.reviews {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	/* gap: 0.5rem; */
}

@media screen and (max-width: 728px) {
	article h1 {
		font-family: var(--narrow-font-family);
		font-weight: 400;
		font-size: 1.5em;
	}
}

article ul.dates {
	/* margin: 0; */
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
}

article address.redundant,
article address.redundant + p {
	font-size: 0;
	position: absolute;
}

.dates li:not(:has(address.redundant)) + li:has(address.redundant) {
	/* margin-top: 1rem; */
	/* border-top: 0.1px dashed var(--accent-color); */
	/* padding-top: 1rem; */
}

article ul.dates p:has(time) {
	margin: 0;
}

article time.expired {
	text-decoration: line-through;
	text-decoration-style: wavy;
	text-decoration-thickness: 2px;
	text-decoration-color: red;
}

article time.expired:active,
article time.expired:hover {
	text-decoration: none;
}

article ul.dates address {
	margin-top: 1.5rem;
}

address p {
	margin: 0 0 0.5rem;
}

h1, h2, h3, h4, h5, h6, strong {
	font-weight: 500;
}

article > h2,
article .children h3 {
	margin-bottom: 0;
	font-weight: 500;
	margin-top: 2rem;
	font-size: x-large;
	border-bottom: 0.1px solid var(--accent-color);
	padding-bottom: 0.125em;
	display: flex; /* to make border stop at floated image */
}

article > h2.parent {
	position: relative;
}

article > h2.parent::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 3px;
	right: 0;
	border-bottom: 0.1px solid var(--accent-color);
}

article h2 + * {
	margin-top: 0.5em;
}

p.updates {
	background: var(--backgroundColor);
	color: var(--alertColor);
	text-align: center;
	align-self: center;
	max-width: fit-content;
	margin: 0 auto 1rem;
	border: 1px dashed;
	padding: 0.5em 0.75em;
	border-radius: 0.5rem;
	font-family: var(--normal-font-family);
	font-size: clamp(0.9rem, 1.7vw, 1.2rem);
}

p.updates button {
	font-size: inherit;
	font-family: var(--narrow-font-family);
}

.calendar td {
	vertical-align: top;
	border: 1px solid;
	border-width: 0 1px 1px 0;
	width: calc(100% / 7);
	font-size: min(1rem, max(0.5rem, 1.3vw));
	font-weight: 200;
	padding: 0.5rem;
}

table.calendar {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
}

.calendar thead {
	width: 100%;
}

.calendar tr {
	/* display: flex; */
}

.calendar td span {
	display: block;
}

table.calendar strong {
	text-align: center;
	display: block;
	font-weight: 600;
	font-size: min(1.2rem, max(0.5rem, 1.6vw));
	/* margin-bottom: 0.5rem; */
}

.calendar td div {
	margin-top: 0.75rem;
	display: grid;
	gap: 0.125em;
}

.calendar tr + tr td:first-child {
	border-left-width: 1px;
}

.calendar td:empty {
	border-right-width: 0;
}

.calendar td:empty ~ td:not(:empty) {
	border-width: 1px;
}

@media screen and (max-width: 728px) {
	/* .calendar td span,
	td a {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
		margin: 0;
		display: block;
	} */
}

#results .dates .datetime {
	gap: 0.5rem;
}

li.video-only .datetime::before {
	content: "\f03d";
}

li.asap .datetime::before {
	content: "\f017";
}

li.asap.video-only .datetime::before {
	content: "\f03d\a0\a0\f017";
}

/* CLAUDE #310: the calendar's table.dates rules moved to css/calendar.css (imported above), so the sign-up and manage pages can use the calendar */

.hashtag.preview::before {
	content: "\e367";
}

.hashtag.opening::before {
	content: "\f52b";
}

.hashtag.closing::before {
	content: "\f52a";
}

.hashtag.industry_night::before {
	content: "\f675";
}

.hashtag.pay_what_you_can::before {
	content: "\f4be";
}

.hashtag.talk-back::before {
	content: "\f086";
}

.hashtag.sensory::before {
	content: "\f027";
}

.hashtag.relaxed::before {
	content: "\e7e1";
}

.hashtag.asl::before {
	content: "\f2a3";
}

.hashtag.audio_description::before {
	content: "\f29e";
}

ul.hashtags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	column-gap: 2rem;
	padding: 0;
	font-size: 0.9em;
	/* justify-content: center; */
}

ul.hashtags li::before {
	margin-right: 0.5rem;
	/* font-weight: 900; */
}

article:has(.hashtag.industry_night:hover):has(table .industry_night) .industry_night,
article:has(.hashtag.industry_night:active):has(table .industry_night) .industry_night,
article:has(.hashtag.pay_what_you_can:hover):has(table .pay_what_you_can) .pay_what_you_can,
article:has(.hashtag.pay_what_you_can:active):has(table .pay_what_you_can) .pay_what_you_can,
article:has(.hashtag.talk-back:hover):has(table .talk-back) .talk-back,
article:has(.hashtag.talk-back:active):has(table .talk-back) .talk-back,
article:has(.hashtag.sensory:hover):has(table .sensory) .sensory,
article:has(.hashtag.sensory:active):has(table .sensory) .sensory,
article:has(.hashtag.relaxed:hover):has(table .relaxed) .relaxed,
article:has(.hashtag.relaxed:active):has(table .relaxed) .relaxed,
article:has(.hashtag.audio_description:hover):has(table .audio_description) .audio_description,
article:has(.hashtag.audio_description:active):has(table .audio_description) .audio_description,
article:has(.hashtag.asl:hover):has(table .asl) .asl,
article:has(.hashtag.asl:active):has(table .asl) .asl {
	color: var(--accent-color);
}

article:has(.hashtag.industry_night:hover) .passed:has(.industry_night),
article:has(.hashtag.industry_night:active) .passed:has(.industry_night),
article:has(.hashtag.pay_what_you_can:hover) .passed:has(.pay_what_you_can),
article:has(.hashtag.pay_what_you_can:active) .passed:has(.pay_what_you_can),
article:has(.hashtag.talk-back:hover) .passed:has(.talk-back),
article:has(.hashtag.talk-back:active) .passed:has(.talk-back),
article:has(.hashtag.sensory:hover) .passed:has(.sensory),
article:has(.hashtag.sensory:active) .passed:has(.sensory),
article:has(.hashtag.relaxed:hover) .passed:has(.relaxed),
article:has(.hashtag.relaxed:active) .passed:has(.relaxed),
article:has(.hashtag.audio_description:hover) .passed:has(.audio_description),
article:has(.hashtag.audio_description:active) .passed:has(.audio_description),
article:has(.hashtag.asl:hover) .passed:has(.asl),
article:has(.hashtag.asl:active) .passed:has(.asl) {
	opacity: 1;
	text-decoration: none;
}

article:has(.hashtag.industry_night:hover):has(table .industry_night) .industry_night::before,
article:has(.hashtag.industry_night:active):has(table .industry_night) .industry_night::before,
article:has(.hashtag.pay_what_you_can:hover):has(table .pay_what_you_can) .pay_what_you_can::before,
article:has(.hashtag.pay_what_you_can:active):has(table .pay_what_you_can) .pay_what_you_can::before,
article:has(.hashtag.talk-back:hover):has(table .talk-back) .talk-back::before,
article:has(.hashtag.talk-back:active):has(table .talk-back) .talk-back::before,
article:has(.hashtag.sensory:hover):has(table .sensory) .sensory::before,
article:has(.hashtag.sensory:active):has(table .sensory) .sensory::before,
article:has(.hashtag.relaxed:hover):has(table .relaxed) .relaxed::before,
article:has(.hashtag.relaxed:active):has(table .relaxed) .relaxed::before,
article:has(.hashtag.audio_description:hover):has(table .audio_description) .audio_description::before,
article:has(.hashtag.audio_description:active):has(table .audio_description) .audio_description::before,
article:has(.hashtag.asl:hover):has(table .asl) .asl::before,
article:has(.hashtag.asl:active):has(table .asl) .asl::before {
	font-weight: 900;
}

div.venues {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

div.venues p {
	/* margin: 0; */
}

body {
	cursor: default;
}

article .venues {
	margin-top: 1rem;
}

article .venue::before {
	font-style: normal;
	font-family: var(--wide-font-family);
	font-size: 0.6em;
	/* margin-right: 0.25rem; */
	vertical-align: super;
}

article .venues .location:only-of-type .venue::before {
	content: none;
}

/* CLAUDE #488: the Report a Problem link below a board's list and at the end of a listing's page (problem_reports.php) */
.report_problem {
	margin: 2rem 1rem 1rem;
	text-align: center;
	font-size: 0.9em;
}

details.admin {
	position: fixed;
	bottom: 0;
	left: 0;
	background: black;
	z-index: 99;
	opacity: 0.25;
}

details.admin summary {
	padding: 1rem;
	cursor: pointer;
}

details.admin:hover,
details.admin:open {
	opacity: 1;
}

details.admin:open {
	padding: 0 1rem 3rem;
}

details.admin:open summary {
	padding: 1rem 0;
	width: fit-content;
}

details.admin:open {
	width: 100%;
	box-sizing: border-box;
}

details textarea {
	background: black;
	color: white;
	width: 100%;
	margin-top: 1rem;
	margin-bottom: 0;
	word-break: break-all;
}

label.duration {
	font-size: 0.8em;
}

.duration select {
	max-width: 20ch;
	color: var(--accentColor);
	width: revert;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--link-color) 50%), linear-gradient(135deg, var(--link-color) 50%, transparent 50%);
	background-position: calc(100% - 15px) calc(0.6em + 4px), calc(100% - 10px) calc(0.6em + 4px), 100% 0;
	background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
	background-repeat: no-repeat;
	border: 2px solid var(--border-color);
	border-radius: 4px;
	background-color: rgba(255, 255, 255, .1);
	backdrop-filter: blur(5px);
	font: inherit;
	margin-left: 0.5rem;
	padding: 0.25rem 2rem 0.25rem 0.5rem;
}

article .children section + section {
	border-top: 1px dashed var(--accent-color);
}

a.external {
	text-decoration: none;
}

a.external::before {
	content: "\f08e";
	margin: 0;
	margin-left: 0.5rem;
	font-style: normal;
	font-size: 0.8em;
}

a.external > span {
	font-size: 0;
}

a.google.maps + a.apple.maps {
	margin-left: 0.5rem;
}

/* CLAUDE #166: Characters on the details page: a plain list on smaller screens, each detail labeled; a grid on wider screens (below) */
ul.characters {
	padding: 0;
	list-style: none;
	gap: 0; /* article ul has a gap */
}

ul.characters > li {
	padding: 0.75rem 0;
	border-bottom: 0.1px solid var(--border-color);
}

ul.characters > li.headings {
	display: none;
}

ul.characters h3 {
	margin: 0 0 0.25rem;
	font-size: inherit;
	font-weight: 500;
}

ul.characters > li > span {
	display: block;
}

ul.characters > li > span:empty {
	display: none;
}

ul.characters .description p {
	margin: 0.25rem 0 0;
}

@media screen and (min-width: 728px) {
	/* the roles share the list's columns (subgrid), so each detail lines up under its heading; unused columns stay empty, at no width */
	ul.characters {
		display: grid;
		grid-template-columns: minmax(10rem, 1fr) repeat(6, auto);
	}

	ul.characters > li,
	ul.characters > li.headings {
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: subgrid;
		padding: 0.75rem 0;
	}

	ul.characters > li.headings {
		padding: 0.25rem 0;
		border-bottom: 0.1px solid;
		font-weight: 500;
		white-space: nowrap;
	}

	ul.characters > li > *,
	ul.characters > li > span:empty {
		display: block;
		margin: 0;
		padding-right: 1rem;
	}

	ul.characters > li > span {
		white-space: nowrap;
	}

	ul.characters > li > span.ethnicity,
	ul.characters > li > span.voice_type {
		max-width: 12rem;
		white-space: normal;
	}

	ul.characters > li > .description {
		grid-column: 1 / -1;
		padding-right: 0;
	}

	/* the heading row names each column, so the labels are only read aloud */
	ul.characters .label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* CLAUDE #204: a template's page (template_selections.php): each section's title and its selection side by side, stacked on phones */
dl.selections {
	display: grid;
	grid-template-columns: 13rem 1fr; /* one width, so the sections' lists line up */
	gap: 0.75rem 1.5rem;
	margin: 0;
}

dl.selections dt {
	font-weight: 600;
}

dl.selections dd {
	margin: 0;
}

dl.selections dd > :first-child {
	margin-top: 0;
}

dl.selections dd > :last-child {
	margin-bottom: 0;
}

.no_default {
	opacity: 0.6;
	font-style: italic;
}

@media (max-width: 600px) {
	dl.selections {
		grid-template-columns: 1fr;
		gap: 0;
	}

	dl.selections dd {
		margin-bottom: 0.75rem;
	}
}

/* CLAUDE #171: Contacts and Production Team on the details page */
ul.contacts, ul.crew {
	padding: 0;
	list-style: none;
}

ul.contacts > li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 1rem;
}

/* CLAUDE #195: breaklegs' contact icons (its static_com/details.css): user-clock for the day-of contact, a wheelchair for the accessibility
   contact, @ for the e-mail address and a mobile phone for the phone number. The key under the heading names the first two, and each
   contact shows them as icons, with its text for screen readers only. The links' copies that open in a new tab (article.php's
   a.external) keep their own icon. */
p.contact_kinds {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1rem;
}

p.contact_kinds .day_of::before,
ul.contacts .kinds.day_of::before {
	content: "\f4fd";
}

p.contact_kinds .accessibility::before,
ul.contacts .kinds.accessibility:not(.day_of)::before,
ul.contacts .kinds.day_of.accessibility::after {
	content: "\f193";
}

p.contact_kinds span::before,
ul.contacts a.email:not(.external)::before,
ul.contacts a.phone:not(.external)::before {
	display: inline-block;
	margin-right: 0.25rem;
}

ul.contacts .kinds {
	display: inline-flex;
	gap: 0.25rem;
}

ul.contacts .kinds > span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

ul.contacts a.email:not(.external)::before {
	content: "\40";
}

ul.contacts a.phone:not(.external)::before {
	content: "\e1ee";
}
