/* CLAUDE #295: the sign-up site's pages in the listing forms' look (owner, PR #314; signup_app/lib.php's signup_page_start()): the forms'
   stylesheets load first (agent_app/static/css.css, shared/submit.css); this is what their pages need beyond the forms' fieldsets,
   as the guided flow's own page has it (flow/tld-app-submit-flow.css) */
/* CLAUDE #328: shared by the members site's form pages too (Your Profile, Notifications; owner: the standard form design for profiles), so
   it's members.php's members_form_page_start() stylesheet now, scoped to body.form-pages (was signup/signup.css, body.signup-site) */
/* CLAUDE #335: only the page around the forms now (owner: every form uses the forms' CSS and JS): the dark page, the sections' width, the
   header, the members site's links, the page's messages and the view-as bar, plus what the forms have no element for (a file picker, a row's
   link, a row's date and times). The steps, fields and buttons are the forms' own (submit.css). The theatres' manage pages keep their fields'
   rules (body.manage-page; were .form-pages) until they're the forms' steps too */
/* CLAUDE #340: the manage pages are the forms' steps now, so their rules (body.manage-page: labels, boxes, buttons, rows of two, tables) are
   gone; only the Sign-Ups list's table stays (table.signups, below), since the forms have no table */
body.form-pages {
	background-color: #2a2a2a;
}

.form-pages main section {
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0 1rem;
	max-width: 1024px;
	overflow-wrap: anywhere;
	color: white;
}

/* CLAUDE #685: a section of steps has no side padding of its own (owner: "There's too much side padding on mobile"): its steps have the forms'
   (submit.css's fieldset), as on the listing forms' pages, and the section's added to it. Its text beside the steps keeps the side space */
.form-pages main section:has(> fieldset) {
	padding-right: 0;
	padding-left: 0;
}

.form-pages main section:has(> fieldset) > :not(fieldset) {
	margin-right: 1rem;
	margin-left: 1rem;
}

.form-pages main > header {
	max-width: 1024px;
	margin: 0 auto;
}

/* CLAUDE #295: a headshot or résumé: the browser's file picker (the forms hide theirs behind an image picker) */
/* CLAUDE #330: the headshot's is the forms' image picker (label.uploader), so its file picker stays hidden, as the forms' */
.form-pages input[type=file]:where(:not(label.uploader input)) {
	opacity: 1;
	color: inherit;
}

.form-pages .note,
.form-pages .empty {
	opacity: 0.75;
}

.form-pages .saved {
	color: var(--constructiveColor);
}

.form-pages .errors {
	color: var(--destructiveColor);
}

/* CLAUDE #340: removed ul.shifts (the volunteer manage page's old list; its shifts are the forms' rows now) */
.form-pages ul.choices {
	padding-left: 1.25rem;
}

/* CLAUDE #320: the bar while an admin views as a member (members.php's members_view_as_bar()) */
/* CLAUDE #330: at the page's end, pinned to the window's bottom (owner, PR #331: was top: 0, at the page's start) */
.view-as-bar {
	position: sticky;
	bottom: 0;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	justify-content: center;
	align-items: baseline;
	padding: 0.5rem 1rem;
	background: rgba(251, 203, 0, 0.82); /* CLAUDE #320: translucent (owner, PR #321; was #fbcb00), the page showing through, softened */
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #1d2330;
	font-size: 0.9375rem;
	text-align: center;
}

.view-as-bar a {
	color: inherit;
	font-weight: 600;
}

/* CLAUDE #328: the members site's links, above a form page's header (members_form_page_start()), in place of the members header */
.form-site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	align-items: baseline;
	max-width: 1024px;
	margin: 0 auto;
	padding: 0.5rem 1rem;
	box-sizing: border-box;
}

.form-site-nav a {
	color: var(--accentColor);
}

.form-site-nav a.brand {
	margin-right: auto;
	color: white;
	font-weight: 600;
	text-decoration: none;
}

/* CLAUDE #761: the page it's on, in the theatre console's links (agent_app/console/) */
.form-site-nav a[aria-current] {
	color: white;
	text-decoration: none;
}

/* CLAUDE #335: removed the profile's skill topics (<details>) and their grids (owner: one Skills step, each topic's toggle buttons under its name, in
   the forms' grid), and the rules for a step's div.fields and its text box (the forms' Label and rows now, members.php) */

/* CLAUDE #330: removed the headshot's own picker (it's the forms' label.uploader), the résumés' and dates' rows and Add a Date (the forms'
   rows, .group, with Remove and Restore, and Add: owner, PR #331) and the sign-up page's résumé list (a selection step). A résumé's See It
   sits in its row's buttons, centered as they are */
.form-pages fieldset div.buttons a {
	align-self: center;
}

/* CLAUDE #865: rows that are links (Your Profile's sections; owner, 2026-11-15: "Make the sections row items"): the forms' rows (submit.css's
   .group > label: the step's width, the bottom border and the padding), the whole row its link, with its title and its description under
   it, and a chevron at the right in the links' color, as the forms' list of listings has one (forms/existing-listings.css) */
.form-pages fieldset div.rows {
	width: 100%;
}

.form-pages fieldset div.rows > a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.75rem 2rem 0.75rem 0.5rem;
	border-bottom: 0.5px solid lightgray;
	color: var(--primaryTextColor);
	font-weight: inherit;
}

.form-pages fieldset div.rows > a:hover,
.form-pages fieldset div.rows > a:focus-visible {
	background-color: #222; /* a chosen choice's (submit.css's fieldset.selection label:has(input:checked)) */
}

.form-pages fieldset div.rows > a::after {
	content: "\f054";
	position: absolute;
	top: 0;
	right: 0.5rem;
	bottom: 0;
	display: flex;
	align-items: center;
	color: var(--accentColor);
}

/* CLAUDE #330: a row's date and times at its right, as the forms' date rows have them (submit.css's fieldset.schedule .group > label rules;
   these steps can't be .schedule, which hides a list's Add) */
.form-pages fieldset .group > label > input:is([type=date], [type=time]) {
	width: revert;
	margin-left: auto;
}

/* CLAUDE #340: the manage page's Sign-Ups list, a table (owner, 2026-11-03), with the rules the manage pages' tables had (were .manage-page
   table, th, td and tr.canceled); its See Calendar is the forms' row button (div.buttons) */
.form-pages table.signups,
.form-pages table.records { /* CLAUDE #141: and the theatre console's lists (its listings, the website builders) */
	grid-column: 1 / -1; /* across the step's two columns, as the calendar (calendar.css): its six columns were cramped in the right one */
	width: 100%;
	border-collapse: collapse;
	margin: 0.5rem 0 1rem;
	overflow-wrap: break-word; /* only a word too long for its cell breaks (the section's anywhere broke names mid-word) */
}

.form-pages table.signups th,
.form-pages table.signups td,
.form-pages table.records th,
.form-pages table.records td {
	padding: 0.4rem 0.5rem;
	border-bottom: 1px solid #555;
	text-align: left;
	vertical-align: top;
}

.form-pages table.signups tr.canceled td {
	opacity: 0.5;
}

.form-pages table.signups div.buttons {
	background: none;
}

/* CLAUDE #141: the theatre console (agent_app/console/): a step its choices hide (the forms' steps show as a grid, over [hidden]), and its
   snippet, preview and feeds across the step's two columns, as the tables */
.console-site fieldset[hidden] {
	display: none;
}

.console-site #embed_code,
.console-site #embed_preview,
.console-site ul.feeds,
.console-site details {
	grid-column: 1 / -1;
}

.console-site #embed_code {
	box-sizing: border-box;
	width: 100%;
	font: 0.85rem/1.4 ui-monospace, Menlo, Consolas, monospace;
}

.console-site #embed_preview {
	box-sizing: border-box;
	width: 100%;
	height: 400px;
	border: 1px solid #555;
	border-radius: 8px;
	background: white;
}

.console-site ul.feeds {
	margin: 0;
	padding-left: 1.25rem;
	overflow-wrap: anywhere;
}

/* CLAUDE #761: a cell's column name, shown only on a phone, where the rows stack without the table's head (Your Seasons' dates) */
.console-site .phone-label {
	display: none;
}

/* CLAUDE #141: on a phone, the console's tables stack each row's cells (its four columns ran off the screen), its first in bold */
@media (max-width: 600px) {
	.console-site .phone-label {
		display: inline;
	}

	.console-site table.records thead {
		display: none;
	}

	.console-site table.records tr,
	.console-site table.records td {
		display: block;
	}

	.console-site table.records tr {
		padding: 0.4rem 0;
		border-bottom: 1px solid #555;
	}

	.console-site table.records td {
		padding: 0.1rem 0.5rem;
		border-bottom: 0;
	}

	.console-site table.records td:first-child {
		font-weight: 600;
	}

	.console-site table.records td:empty {
		display: none;
	}
}

/* CLAUDE #674: a date's short words on narrow screens, at the forms' phone width ("Tue, Jan 5 at 5:00 PM" for "Tuesday, January 5 at
   5:00 PM"; owner: "Use short versions of day-of-week and month on narrow screens"): signup_app/lib.php's signup_when_html() prints both */
.form-pages span.when_short {
	display: none;
}

/* CLAUDE #674: a schedule row's label whose words are in one span (Time Slots' audition times and Shifts' performances: signup_app/manage.php,
   volunteer-manage.php) keeps them at the left: submit.css gives a schedule row's first element an auto left margin, for its box (the input,
   which pushes it right), and the span was first, so its words went to the middle */
.form-pages fieldset.schedule .group > label > span.when {
	margin-left: 0;
}

@media (max-width: 767px) {
	.form-pages span.when_long {
		display: none;
	}

	.form-pages span.when_short {
		display: inline;
	}
}

/* CLAUDE #825: the Headshot step's photo editor (finalbows', owner 2026-11-14; static_app/shared/js/members/headshot.js): the forms' image
   picker shaped as the headshot is cut (4:5), the photo inside it placed by the script and dragged to position it, with finalbows' "Drag to
   position" label, and the Size slider in the forms' accent color. Without the script it's the picker as it was, in that shape */
.form-pages fieldset label.uploader.headshot {
	position: relative;
	width: min(100%, 18rem);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background-size: cover;
}

.form-pages fieldset label.uploader.headshot.editing {
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

.form-pages fieldset label.uploader.headshot.dragging {
	cursor: grabbing;
}

.form-pages fieldset label.uploader.headshot.editing img {
	max-width: none;
	max-height: none;
	opacity: 1 !important;
	pointer-events: none;
}

.form-pages fieldset label.uploader.headshot.editing::after {
	content: "Drag to position";
	position: absolute;
	left: 0.6rem;
	bottom: 0.5rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	font-family: var(--wide-font-family);
	font-size: 0.75rem;
	pointer-events: none;
}

.form-pages .headshot-editor .headshot-size {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: min(100%, 18rem);
}

.form-pages .headshot-editor .headshot-size[hidden],
.form-pages .headshot-editor .headshot-help[hidden],
.form-pages .headshot-editor button[hidden] {
	display: none;
}

.form-pages .headshot-editor .headshot-size input[type=range] {
	flex: 1;
	min-width: 0;
	accent-color: var(--accentColor);
}

/* CLAUDE #852: a Your Profile section page's other steps (members_profile_fields()'s hidden ones, still sent with the form), which the forms'
   fieldset rules would show */
.form-pages fieldset[hidden] {
	display: none;
}
