/* CLAUDE #494: a listing's poster to print (tld/poster/). The poster is the paper's size (--poster-width and --poster-height, in inches,
   with @page, set by the page for the chosen paper), and everything on it is sized in em from a font size that grows with the paper's width
   (--poster-scale: 1 for Letter), so each paper gets the same layout. In color (owner, 2026-11-10: "Make it color"): a band behind the
   title, in the listing's own color (--poster-band, with --poster-on-band for its text), the rules and the bottom edge in it, and the
   headings in its darker ink (--poster-ink); the page sets them (social_poster_colors()). The QR code stays black on white. On screen it's a sheet on a gray
   background, under the paper menu and the Print button; posters/poster.js shrinks its text when a long listing would run off the page, and
   fits the sheet to a phone's width */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #555;
	color: #111;
	font-family: Barlow, sans-serif;
}

.poster_tools,
.poster_missing {
	max-width: 48rem;
	margin: 0 auto;
	padding: 1rem;
	color: #fff;
	font-size: 1rem;
}

.poster_tools h1,
.poster_missing h1 {
	margin: 0 0 0.5rem;
	font-family: "Barlow Semi Condensed", Barlow, sans-serif;
	font-size: 1.4rem;
}

.poster_tools p {
	margin: 0 0 0.5rem;
}

.poster_tools a {
	margin-left: 0.5rem;
	color: #9cc8ff;
}

.poster_tools a[aria-current] {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.poster_tools button {
	margin: 0.25rem 0 0.75rem;
	padding: 0.5rem 1.5rem;
	border: 2px solid #9cc8ff;
	border-radius: 4px;
	background: none;
	color: #9cc8ff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.poster_note {
	font-size: 0.875rem;
	opacity: 0.8;
}

.poster {
	--poster-pad: calc(var(--poster-scale) * 0.55in);

	display: flex;
	flex-direction: column;
	gap: 1em;
	width: var(--poster-width);
	height: var(--poster-height);
	margin: 0 auto 2rem;
	padding: var(--poster-pad) var(--poster-pad) calc(var(--poster-pad) * 0.7);
	border-bottom: calc(var(--poster-scale) * 0.2in) solid var(--poster-band, #facf05);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.5);
	font-size: calc(var(--poster-scale) * 13pt);
	line-height: 1.25;
}

.poster p,
.poster h2,
.poster h3 {
	margin: 0;
}

/* the band, to the paper's edges */
.poster_head {
	margin: calc(-1 * var(--poster-pad)) calc(-1 * var(--poster-pad)) 0;
	padding: calc(var(--poster-pad) * 0.8) var(--poster-pad) calc(var(--poster-pad) * 0.7);
	background: var(--poster-band, #facf05);
	color: var(--poster-on-band, #111);
	text-align: center;
}

.poster_kicker {
	font-size: 1.5em;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.poster_title {
	font-family: "Barlow Semi Condensed", Barlow, sans-serif;
	font-size: 3.4em;
	font-weight: 700;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.poster_lines {
	margin-top: 0.3em !important;
	font-size: 1.35em;
}

/* the image takes the room the text leaves, and never less than a fifth of the page; it doesn't size the page itself */
.poster_image {
	position: relative;
	flex: 1 1 0;
	min-height: 20%;
}

.poster_image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.poster_facts {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
	padding-top: 0.8em;
	border-top: 0.25em solid var(--poster-band, #facf05);
}

.poster_fact h3 {
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--poster-ink, #444);
}

.poster_fact p {
	font-size: 1.1em;
}

/* without an image, the facts take the room */
.poster:not(:has(.poster_image)) .poster_facts {
	flex: 1 1 auto;
}

.poster_foot {
	display: flex;
	align-items: center;
	gap: 1em;
	margin-top: auto;
	padding-top: 0.8em;
	border-top: 0.25em solid var(--poster-band, #facf05);
}

.poster_qr {
	flex: none;
	width: 8.5em;
	height: 8.5em;
}

.poster_qr svg {
	display: block;
	width: 100%;
	height: 100%;
}

.poster_scan {
	flex: 1;
}

.poster_scan p {
	font-size: 1.2em;
}

.poster_scan .poster_link {
	font-size: 1.7em;
	font-weight: 700;
	color: var(--poster-ink, #111);
}

.poster_site {
	align-self: flex-end;
	font-size: 0.75em;
	color: #555;
	white-space: nowrap;
}

@media print {
	body {
		background: #fff;
	}

	.poster_tools {
		display: none;
	}

	.poster {
		margin: 0;
		box-shadow: none;
		zoom: 1 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}
