/* CLAUDE #881: Break Legs' navigation on every site (app_nav.php; owner, 2026-11-15: iCloud.com's structure, "with the 8-dot icon, for mobile and
   the iPad/desktop Mail structure, with the side list navigation"; Android: Material's drawer): the top bar, the sidebar (desktop and iPad; the
   drawer on Android), and Create New, the launcher and the picture's menus (drop-downs on desktop, sheets on a phone). In Agent and Good Show's
   colors, the yellow accent naming the product, as iCloud's blue names Mail; Font Awesome's icons (the icon kit) */

html.app-nav {
	--app-bar-h: calc(3rem + env(safe-area-inset-top));
	--app-sidebar-w: 16rem; /* CLAUDE #881: its places in Barlow Semi Condensed, so a little narrower (owner; was 18rem, then 15rem) */
	--app-bg: #010d25;
	--app-panel: #071633;
	--app-raised: #0d2148;
	--app-text: #ffffff;
	--app-text2: #a9b7d0;
	--app-link: #58a3ff;
	--app-accent: #facf05;
	--app-rule: #2c4167;
	--app-hover: rgba(255, 255, 255, 0.07);
	--app-active: #1c4f9c;
	--app-danger: #ff6b5e;
}

html.app-nav body {
	padding-top: var(--app-bar-h);
}

.app-bar,
.app-sidebar,
.app-menu {
	box-sizing: border-box;
	color: var(--app-text);
	font-family: "Barlow", "Barlow Semi Condensed", -apple-system, sans-serif;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
}

.app-bar *,
.app-sidebar *,
.app-menu * {
	box-sizing: border-box;
}

.app-bar ul,
.app-sidebar ul,
.app-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.app-bar a,
.app-sidebar a,
.app-menu a {
	border: 0;
	color: inherit;
	text-decoration: none;
}

.app-bar button,
.app-sidebar button,
.app-menu button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

/* the icons, Font Awesome's */
.app-sidebar-toggle::before,
.app-admin-toggle::before,
.app-create-toggle::before,
.app-launcher-toggle::before,
.app-close::before,
.app-signout::before,
.app-sidebar li a::before,
.app-menu li a::before,
.app-place-name::after {
	font-family: "Font Awesome";
	font-weight: 400;
	font-style: normal;
	line-height: 1;
}

/* the top bar */
.app-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: var(--app-bar-h);
	padding: env(safe-area-inset-top) 0.85rem 0;
	background: var(--app-bg);
	border-bottom: 1px solid var(--app-rule);
}

.app-sidebar-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	color: var(--app-link) !important;
	font-size: 1.2rem !important;
}

.app-sidebar-toggle::before {
	content: "\e24e";
}

html.app-android .app-sidebar-toggle::before {
	content: "\f0c9";
	color: var(--app-text);
}

.app-brand {
	display: flex;
	flex: 0 1 auto; /* CLAUDE #881: its own width, the rest pushed to the right (margin), so a long name (Theatre / Production Management) is cut short with … before the bar's middle */
	margin-right: auto;
	align-items: center;
	gap: 0.4rem;
	min-width: 0;
	overflow: hidden;
	font-size: 1.3rem;
	white-space: nowrap;
}

.app-brand b { /* owner: "Barlow Condensed", normal weight, a colon after it */
	font-family: "Barlow Condensed", "Barlow", sans-serif;
	font-weight: 400;
}

.app-logo {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	margin-right: 0.15rem;
	border-radius: 0.3rem;
	background: center / contain no-repeat url(../../app/images/icon-256.png);
}

.app-product {
	color: var(--app-accent);
	font-weight: 500;
}

/* the name's words as they are, whatever a site does to its header's spans (the boards hide some at a phone's width) */
.app-brand b,
.app-brand .app-product {
	position: static !important;
	display: inline !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	clip-path: none !important;
	font-size: inherit !important;
}

.app-brand b {
	flex: none;
}

.app-brand .app-product { /* CLAUDE #881: cut short with … when it's too long for the bar */
	min-width: 0;
	overflow: hidden !important;
	text-overflow: ellipsis;
}

@media (min-width: 1080px) {
	.app-bar .app-brand { /* clear of T-Pane's switch, in the bar's middle */
		max-width: calc(50% - 9.5rem);
	}
}

.app-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	font-size: 1.3rem !important;
}

.app-button[aria-expanded="true"],
.app-sidebar-toggle:hover,
.app-button:hover {
	background: var(--app-hover) !important;
}

.app-create-toggle::before {
	content: "\f055";
}

/* T-Pane mode's switch, centered in the bar (owner; table-cells-columns), lit while it's on; only where a window's wide enough for T-Pane */
/* CLAUDE #906: the View switch, its three views side by side (was T-Pane Mode's one switch, these rules its), each with its icon and words */
.app-bar .app-view-switch {
	position: absolute;
	left: 50%;
	display: none;
	gap: 0.15rem;
	transform: translateX(-50%);
}

.app-bar .app-view-switch .app-button {
	display: flex;
	gap: 0.45rem;
	width: auto;
	padding: 0 0.8rem;
	font-size: 1rem !important; /* its words (owner: "Show the text for the T-Pane icon"); the icon a little larger */
	font-weight: 500;
	white-space: nowrap;
}

.app-view-switch .app-button::before {
	font-family: "Font Awesome";
	font-weight: 400;
	font-style: normal;
	line-height: 1;
	font-size: 1.15rem;
}

.app-view-page::before {
	content: "\e290"; /* table-layout (owner, 2026-11-16: "Use table-layout" for Page's icon; was square) */
}

.app-view-tpane::before {
	content: "\e6ac"; /* table-cells-columns */
}

.app-view-columns::before {
	content: "\e361"; /* columns-3 */
}

.app-bar .app-view-switch [aria-pressed="true"] {
	background: var(--app-active) !important;
	color: #ffffff;
}

/* CLAUDE #906: the bar's from an iPad's width (was T-Pane's 1080px), T-Pane's only where it's wide enough for it; where T-Pane is chosen but
   isn't, Page is lit. On a phone, the launcher's or the drawer's (app_nav.php), Page and Columns */
@media (min-width: 768px) {
	.app-bar .app-view-switch {
		display: flex;
	}
}

@media (max-width: 1079px) {
	.app-view-switch .app-view-tpane {
		display: none !important;
	}

	.app-view-switch:has(.app-view-tpane[aria-pressed="true"]) .app-view-page {
		background: var(--app-active) !important;
		color: #ffffff;
	}
}

.app-view-switch.app-view-menu {
	display: none;
}

@media (max-width: 767px) {
	.app-view-switch.app-view-menu {
		display: flex;
		gap: 0.25rem;
		margin: 0 0 0.75rem;
		padding: 0.25rem;
		border-radius: 0.6rem;
		background: var(--app-raised);
	}

	.app-view-switch.app-view-menu .app-button {
		flex: 1 1 0;
		justify-content: center;
		gap: 0.45rem; /* as the bar's */
		height: 2.5rem;
		font-size: 1rem;
		font-weight: 500;
	}

	.app-view-switch.app-view-menu [aria-pressed="true"] {
		background: var(--app-active) !important;
		color: #ffffff;
	}
}

/* the Admin menu's button (owner: "Use the screwdriver-wrench icon"): on a page with an Admin panel (app-nav.js); CLAUDE #904: always, the
   panel's only place (was only while the sidebar wasn't showing it) */
.app-admin-toggle::before {
	content: "\f7d9";
}

.app-bar .app-admin-toggle {
	display: none;
}

html.app-has-admin .app-bar .app-admin-toggle {
	display: flex;
}

.app-launcher-toggle::before {
	content: "\e5da";
}

.app-bar .app-avatar { /* .app-bar's, over the buttons' reset above, so the picture covers the circle */
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--app-raised) center / cover no-repeat;
	font-size: 0.8rem;
	font-weight: 600;
}

.app-avatar[aria-expanded="true"] {
	box-shadow: 0 0 0 2px var(--app-link);
}

.app-signin {
	color: var(--app-link) !important;
	font-weight: 500;
}

/* the sidebar, Mail's: every product's places, under the bar, the page beside it; shown and hidden by its button (html.app-sidebar-open,
   which the page's first script sets from this browser's last choice, open on a wide window to start) */
.app-sidebar {
	position: fixed;
	top: var(--app-bar-h);
	bottom: 0;
	left: 0;
	z-index: 25;
	display: none;
	width: var(--app-sidebar-w);
	padding: 0.75rem 0.6rem 1.5rem;
	overflow-y: auto;
	background: var(--app-panel);
	border-right: 1px solid var(--app-rule);
}

html.app-apple.app-sidebar-open .app-sidebar {
	display: block;
}

html.app-apple.app-sidebar-open.app-has-sidebar body {
	box-sizing: border-box; /* CLAUDE #881: a page whose body is 100% wide (the listing forms', submit.css) stays the window's width with the sidebar's space in it (was wider than the window) */
	padding-left: var(--app-sidebar-w);
}

/* each product a section, as Mail's accounts: its name opens and shuts it (its chevron down when open), all open to start (owner); every
   Break Legs site remembers each (app-nav.js); .app-sidebar's, over the buttons' reset above. CLAUDE #904: the launcher's sections too, the
   same ones (owner, 2026-11-16: "make the sections collapsible, same as in the sidebar") */
.app-sidebar .app-place-name,
.app-launcher .app-place-name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 0.7rem 0.65rem 0.35rem;
	border-radius: 0.5rem;
	color: var(--app-text2) !important;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: left;
}

.app-place + .app-place {
	margin-top: 0.35rem;
}

button.app-place-name::after {
	content: "\f078";
	font-size: 0.7rem;
	transition: transform 0.15s ease;
}

button.app-place-name[aria-expanded="false"]::after {
	transform: rotate(-90deg);
}

button.app-place-name:hover {
	color: var(--app-text) !important;
}

button.app-place-name[aria-expanded="false"] + * {
	display: none;
}

.app-sidebar li a,
.app-menu li a {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	min-height: 2.35rem;
	padding: 0 0.65rem;
	border-radius: 0.5rem;
	font-size: 1rem;
}

.app-sidebar li a::before,
.app-menu li a::before {
	flex: none;
	width: 1.25rem;
	color: var(--app-link);
	font-size: 1.05rem;
	text-align: center;
}

/* a place's name on one line, cut short with … when it's too long (a room's), as Mail's mailboxes; its words as they are, whatever a board's
   header does to its spans at a phone's width */
.app-sidebar li a > span,
.app-menu li a > span {
	min-width: 0;
	overflow: hidden;
	font-family: "Barlow Semi Condensed", "Barlow", sans-serif; /* CLAUDE #881: owner (was Barlow Condensed for a while) */
	font-size: inherit !important;
	font-weight: 400;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* the places under a place (Directory's kinds), as Mail's folders in a folder: indented, a little smaller */
.app-sidebar .app-sub li a,
.app-menu .app-sub li a {
	min-height: 2.1rem;
	padding-left: 1.6rem;
	font-size: 0.95rem;
}

.app-sidebar .app-sub li a::before,
.app-menu .app-sub li a::before {
	font-size: 0.95rem;
}

.app-sidebar li a:hover,
.app-menu li a:hover {
	background: var(--app-hover);
}

.app-sidebar li.active > a,
.app-menu li.active > a {
	background: var(--app-active);
	color: #ffffff;
}

.app-sidebar li.active > a::before,
.app-menu li.active > a::before {
	color: #ffffff;
}

/* each place's icon: the boards' tabs' (shared.css), the TPM's, the members site's; Venues for Rent a building (owner). CLAUDE #881: a TPM
   room, a theatre's or a production's; Directory's kinds */
.app-ic-directory > a::before { content: "\f2b9"; }
.app-ic-auditions > a::before { content: "\e533"; }
.app-ic-learning > a::before { content: "\e56e"; }
.app-ic-classifieds > a::before { content: "\f1ea"; }
.app-ic-performances > a::before { content: "\f145"; }
.app-ic-tickets > a::before { content: "\e659"; }
.app-ic-volunteer > a::before { content: "\f4be"; }
.app-ic-reviews > a::before { content: "\f005"; }
.app-ic-lobby > a::before { content: "\f819"; }
.app-ic-room > a::before { content: "\f630"; }
.app-ic-inventory > a::before { content: "\f468"; }
.app-ic-listings > a::before { content: "\f022"; } /* CLAUDE #884: the Theatre Console's pages */
.app-ic-templates > a::before { content: "\f0ca"; }
.app-ic-seasons > a::before { content: "\f145"; }
.app-ic-posts > a::before { content: "\f1e0"; }
.app-ic-embeds > a::before { content: "\f121"; }
.app-ic-bio > a::before { content: "\f4ff"; }
.app-ic-organizer > a::before { content: "\e201"; }
.app-ic-theatre > a::before,
.app-ic-theatres > a::before { content: "\f19c"; }
.app-ic-shows > a::before { content: "\f630"; }
.app-ic-credits > a::before { content: "\f5ad"; }
.app-ic-people > a::before { content: "\f0c0"; }
.app-ic-publishers > a::before { content: "\f02d"; }
.app-ic-calendar > a::before { content: "\f133"; }
.app-ic-you > a::before { content: "\f2c2"; } /* CLAUDE #881: Your Profile's id card (owner: "Use its icon for You"), and its other sections' */
.app-ic-casting > a::before { content: "\f507"; }
.app-ic-skills > a::before { content: "\f0ae"; }
.app-ic-training > a::before { content: "\f19d"; } /* CLAUDE #928: Training's graduation cap */
.app-ic-headshot > a::before { content: "\f3e0"; }
.app-ic-availability > a::before { content: "\f017"; }
.app-ic-notifications > a::before { content: "\f0f3"; }
.app-ic-account > a::before { content: "\f4fe"; }
.app-ic-adfree > a::before { content: "\f641"; }
.app-ic-children > a::before { content: "\e4e1"; }
.app-ic-venues > a::before { content: "\f1ad"; }
.app-ic-listing > a::before { content: "\f72b"; }

/* the menus: drop-downs from their buttons on desktop and iPad, sheets on a phone (below), one open at a time; the scrim catches a tap outside */
.app-menu {
	position: fixed;
	top: calc(var(--app-bar-h) + 0.4rem);
	right: 0.6rem;
	z-index: 40;
	width: 20rem;
	max-height: calc(100vh - var(--app-bar-h) - 1rem);
	padding: 0.75rem;
	overflow-y: auto;
	background: var(--app-panel);
	border: 1px solid var(--app-rule);
	border-radius: 0.85rem;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.app-menu[hidden],
.app-scrim[hidden] {
	display: none;
}

.app-scrim {
	position: fixed;
	inset: 0;
	z-index: 35;
	background: transparent;
}

.app-close {
	display: none;
}

.app-close::before {
	content: "\f00d";
}

.app-menu-title {
	margin: 0.25rem 0.65rem 0.5rem;
	color: var(--app-text);
	font-size: 1rem;
	font-weight: 600;
}

.app-menu-name {
	margin: 0.25rem 0.65rem 0;
	font-size: 1.15rem;
	font-weight: 600;
}

.app-menu-email {
	margin: 0.1rem 0.65rem 0.6rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--app-rule);
	color: var(--app-text2);
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}

.app-signout {
	display: flex !important;
	align-items: center;
	gap: 0.7rem;
	width: 100%;
	min-height: 2.35rem;
	margin-top: 0.4rem !important;
	padding: 0 0.65rem !important;
	border-top: 1px solid var(--app-rule) !important;
	border-radius: 0;
	color: var(--app-danger) !important;
	font-size: 1rem !important;
}

.app-signout::before {
	content: "\f057";
	width: 1.25rem;
	text-align: center;
}

/* the page's Admin panel (admin-list.php, admin-details.php; app-nav.js puts it here), open, its links and buttons as rows: the Admin menu
   (CLAUDE #904: always; was the sidebar's last section while the sidebar showed). It isn't shown where it was, fixed at the window's bottom, except in a frame
   (T-Pane's listing), which has no bar; the clear sheet (css/admin/clear-*.css) still hides it */
html.app-nav:not(.app-framed) details.admin {
	display: none;
}

html.app-nav .app-admin-body details.admin {
	position: static;
	display: block;
	width: auto;
	margin: 0;
	padding: 0;
	opacity: 1;
	background: none;
	font-size: 0; /* the panel's &nbsp; spacers */
}

.app-admin-body details.admin > summary {
	display: none;
}

.app-admin-body details.admin form {
	display: block !important; /* its forms are inline */
	margin: 0 !important;
}

/* its links and buttons as rows, as the places are (!important over an edit form's Status buttons' own looks, inline; a button's color, such as
   Cancel's red, stays) */
.app-admin-body details.admin > a,
.app-admin-body details.admin button {
	display: flex !important;
	align-items: center;
	width: 100% !important;
	min-height: 2.35rem;
	margin: 0 !important;
	padding: 0 0.65rem 0 2.6rem !important; /* lined up with the places' names */
	border: 0 !important;
	border-radius: 0.5rem !important;
	background: none !important;
	color: var(--app-text);
	font: 400 1rem "Barlow Semi Condensed", "Barlow", -apple-system, sans-serif !important;
	text-align: left;
	cursor: pointer;
}

.app-admin-body details.admin > a:hover,
.app-admin-body details.admin button:hover {
	background: var(--app-hover) !important;
}

/* CLAUDE #881: an edit form's Admin panel (fieldset/status.php): its buttons in a box of their own */
.app-admin-body details.admin > div {
	font-size: 1rem;
}

.app-admin-body details.admin textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 6rem;
	margin: 0.5rem 0 0;
	padding: 0.5rem;
	border: 1px solid var(--app-rule);
	border-radius: 0.5rem;
	background: var(--app-bg);
	color: var(--app-text);
	font-size: 0.85rem;
}

.app-admin-menu .app-admin-body details.admin > a,
.app-admin-menu .app-admin-body details.admin button {
	padding-left: 0.65rem;
}

/* the launcher: a phone's (owner: the board's places from any page in one tap; no Apps icons), each product's places; wider, the sidebar lists
   them, so there's no launcher. CLAUDE #904: wider too while the sidebar is hidden (owner, 2026-11-16: "When the sidebar is hidden, show the
   launcher icon"), as a menu from its button */
/* CLAUDE #904: its sections are the sidebar's (.app-place, spaced as they are; was a title's 0.75rem above each) */
@media (min-width: 768px) {
	html.app-apple.app-sidebar-open .app-launcher-toggle,
	html.app-apple.app-sidebar-open .app-launcher {
		display: none !important;
	}
}

/* CLAUDE #904: the page centered in the window when neither the sidebar nor T-Pane's pane is beside it (owner, 2026-11-16: "Center main
   horizontally when the sidebar and T-Pane aren't shown"); beside them, at the left, as Mail's (#881). T-Pane's pane shows from 1080px
   (shared.css, tpm/base.css) */
html.app-nav:not(.app-sidebar-open) main {
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 1080px) {
	html.app-nav.tpane main {
		margin-left: 0;
		margin-right: 0;
	}
}

/* a page in a frame, a board's T-Pane showing a listing's page beside it: no navigation of its own, nor its space (owner) */
html.app-framed .app-bar,
html.app-framed .app-sidebar,
html.app-framed .app-menu,
html.app-framed .app-scrim {
	display: none !important;
}

html.app-nav.app-framed body {
	padding-top: 0 !important;
	padding-left: 0 !important;
}

/* a phone: no sidebar (the launcher lists the places); the menus are sheets from the top, with ✕, over the page dimmed */
@media (max-width: 767px) {
	html.app-apple .app-sidebar-toggle,
	html.app-apple .app-sidebar {
		display: none !important;
	}

	html.app-apple.app-sidebar-open.app-has-sidebar body {
		padding-left: 0;
	}

	.app-brand {
		font-size: 1.15rem;
	}

	.app-menu {
		top: calc(env(safe-area-inset-top) + 0.6rem);
		right: 0;
		bottom: 0;
		left: 0;
		width: auto;
		max-height: none;
		padding: 0.75rem 1rem calc(env(safe-area-inset-bottom) + 1.5rem);
		border: 0;
		border-radius: 0.9rem 0.9rem 0 0;
		box-shadow: none;
	}

	.app-scrim {
		background: rgba(0, 0, 0, 0.5);
	}

	.app-close {
		display: flex;
		align-items: center;
		width: 2.5rem;
		height: 2.5rem;
		margin-bottom: 0.25rem !important;
		font-size: 1.5rem !important;
	}

	.app-menu:not(.app-launcher) li a { /* CLAUDE #904: not the launcher's, which are the sidebar's rows (owner: "The launcher items should be styled the same as in the sidebar") */
		min-height: 2.9rem;
		border-radius: 0;
		border-bottom: 1px solid var(--app-rule);
		font-size: 1.05rem;
	}

	html.app-android .app-sidebar-toggle {
		display: flex;
	}
}

/* Android: Material's top app bar (the drawer's button, the name, then its actions) and its modal navigation drawer, every product with its
   places (owner: "list the Agent and Good Show properties under them in the drawer"), over the page dimmed */
html.app-android .app-sidebar {
	top: 0;
	z-index: 45;
	display: block;
	width: min(85vw, 20rem);
	padding: calc(env(safe-area-inset-top) + 0.75rem) 0.75rem 1.5rem;
	border-right: 0;
	border-radius: 0 1rem 1rem 0;
	visibility: hidden;
	transform: translateX(-105%);
	transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

html.app-android.app-drawer-open .app-sidebar {
	visibility: visible;
	transform: none;
	transition: transform 0.25s ease;
}

html.app-android.app-drawer-open .app-scrim {
	z-index: 44;
	background: rgba(0, 0, 0, 0.5);
}

html.app-android .app-place + .app-place {
	margin-top: 0.4rem;
	padding-top: 0.4rem;
	border-top: 1px solid var(--app-rule);
}

html.app-android .app-sidebar .app-place-name {
	padding: 1rem 1rem 0.5rem;
	color: var(--app-text2) !important;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.006rem;
	text-transform: none;
}

html.app-android .app-sidebar li a {
	min-height: 3.5rem;
	padding: 0 1rem;
	border-radius: 1.75rem;
	font-size: 0.95rem;
	font-weight: 500;
}

html.app-android .app-sidebar .app-sub li a { /* Directory's kinds, indented under it */
	min-height: 3rem;
	padding-left: 2.25rem;
}

html.app-android .app-sidebar li.active > a {
	background: #0842a0;
	color: #d3e3fd;
}

/* CLAUDE #892: in T-Pane's pane, the page's new-tab link after its heading (app-nav.js), as the details pages' external links (shared.css's
   a.external: the arrow out of a square, after the words) */
a.app-new-tab {
	margin-left: 0.5rem;
	font-size: 0.55em;
	text-decoration: none;
	vertical-align: middle;
}

a.app-new-tab::before {
	content: "\f08e";
	font-family: "Font Awesome";
	font-weight: 400;
	font-style: normal;
	line-height: 1;
}

a.app-new-tab > span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* CLAUDE #906: the Columns view (app-nav.js; owner, 2026-11-16, the mock-up's), at every width: once a column's open, the page and its
   columns side by side, each as wide as the others (app-nav.js works it out: --app-column-w), under the bar, each scrolling on its own; the
   earlier ones slide off to the left (--app-columns-shift, the page's margin, which moves all of them), each leaving a spine with its name,
   or on a phone a Back bar on the column after it. Their edges are the yellow accent, as T-Pane's pane's (owner: "Make the horizontal border
   the accent color, same as T-Pane"; was the blue --app-active). T-Pane's own pane stays hidden */
html.app-columns-on iframe[name="details"],
html.app-columns-on iframe.tpane-details {
	display: none !important;
}

.app-columns-spines,
.app-columns-strip {
	display: none;
}

html.app-columns-open .app-columns-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	overflow-x: clip;
}

html.app-columns-open main {
	flex: 0 0 var(--app-column-w) !important;
	box-sizing: border-box;
	width: var(--app-column-w) !important;
	min-width: 0 !important;
	max-width: none !important;
	height: calc(100vh - var(--app-bar-h)) !important;
	min-height: 0 !important;
	margin: 0 0 0 calc(-1 * var(--app-columns-shift, 0px)) !important;
	overflow: auto !important;
	transition: margin-left 0.3s ease; /* the slide (app-nav.js's slide()) */
}

html.app-columns-open main li.chosen,
html.app-framed main li.chosen { /* and a column's own, the row whose page is the next column (app-nav.js), as Finder marks it */
	box-shadow: inset 3px 0 var(--app-accent);
}

html.app-columns-open .app-columns-strip {
	display: flex;
	flex: none;
	height: calc(100vh - var(--app-bar-h));
}

.app-columns-strip .app-column {
	display: flex;
	flex: 0 0 var(--app-column-w);
	flex-direction: column;
	box-sizing: border-box;
	width: var(--app-column-w);
	height: 100%;
	margin: 0 !important; /* whatever the page's stylesheets give a div */
	padding: 0 !important;
	border-left: 2px solid var(--app-accent);
	background: var(--app-bg);
}

.app-columns-strip .app-column iframe { /* over the boards' rules for every iframe (shared.css: hidden below 1080px, T-Pane's pane above) */
	display: block !important;
	flex: 1 1 auto !important;
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* the columns off screen, as the mock-up's spines: each one's name, sideways, going back to it; over the page sliding under them */
html.app-columns-open .app-columns-spines:not(:empty) {
	margin: 0 !important; /* whatever the page's stylesheets give a nav */
	padding: 0 !important;
	position: relative;
	z-index: 2;
	display: flex;
	flex: none;
	height: calc(100vh - var(--app-bar-h));
	background: var(--app-panel);
}

.app-columns-spine {
	box-sizing: border-box;
	width: 1.75rem;
	height: 100%;
	margin: 0;
	padding: 0.75rem 0;
	overflow: hidden;
	border: 0;
	border-left: 1px solid var(--app-rule);
	background: none;
	color: var(--app-text2);
	font: 400 0.85rem/1.75rem "Barlow Semi Condensed", Barlow, sans-serif;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	cursor: pointer;
}

.app-columns-spine:first-child {
	border-left: 0;
}

.app-columns-spine:hover {
	background: var(--app-hover);
	color: var(--app-text);
}

/* a phone's Back, naming the column before it: as the TPM's Back (tpm/base.css's .bar .back), above the column */
.app-column-back {
	display: none;
}

@media (max-width: 767px) {
	.app-columns-strip .app-column {
		border-left: 0;
	}

	.app-column-back {
		display: flex;
		flex: none;
		align-items: center;
		gap: 0.35rem;
		box-sizing: border-box;
		width: 100%;
		min-height: 2.75rem;
		margin: 0;
		padding: 0 1rem;
		overflow: hidden;
		border: 0;
		border-bottom: 2px solid var(--app-accent);
		background: var(--app-panel);
		color: var(--app-link);
		font: 500 1.05rem "Barlow Semi Condensed", Barlow, sans-serif;
		text-align: left;
		white-space: nowrap;
		text-overflow: ellipsis;
		cursor: pointer;
	}

	.app-column-back::before {
		content: "\f054"; /* chevron-right, turned: the TPM's Back's (tpm/base.css) */
		display: inline-block;
		transform: rotate(180deg);
		font-family: "Font Awesome";
		font-weight: 400;
		font-size: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.app-columns-open main {
		transition: none;
	}
}

/* CLAUDE #914: the page's Report a Problem link (app-nav.js), as the boards' and listings' (shared.css's .report_problem), on the pages that
   don't load shared.css too (the TPM's, Profile's) */
main p.app-report {
	margin: 2rem 1rem 1rem;
	text-align: center;
	font-size: 0.9em;
}

main p.app-report a {
	color: var(--app-link);
}
