/* Phillips & Baliski Catering Company: styles for two small tools.

     1. the inquiry form        inc/inquiry.php
     2. the Share / Print panel inc/menu-share.php, and its sheet for paper

   Loaded on every page after site.css, so it is kept small.

   NO COLOR AND NO FONT IS NAMED IN THIS FILE. Every one is a variable printed
   by inc/look.php, plus --pb-rule from site.css, so both tools change with the
   look. Buttons are site.css's .pb-btn. The one exception is paper: the print
   rules say white, as site.css's own print rules do.

   Cut down on 2026-11-19 from the It's Loaded styles the port brought over.
   Left behind: the email signup box, the truck's menu page, the town pages,
   and the old catering menu list and cards (the menus are inc/menus.php's now,
   styled in site.css). The leads board (inc/leads.php) is a page of its own
   that loads no stylesheet, so its styles are inside it. */

/* ------------------------------------------------------- 1 inquiry form */

.pb-inquiry {
	max-width: 40rem;
	margin: 2.5rem 0;
	padding: clamp(1.25rem, 4.5vw, 2.25rem);
	background: var(--pb-band);
	border: 1px solid var(--pb-rule);
	border-radius: 3px;
	/* The form's answer comes back at #inquiry, under a header that stays put. */
	scroll-margin-top: 8rem;
}

/* On a tinted section the card takes the paper color, so it still reads as a card. */
.pb-band .pb-inquiry { background: var(--pb-paper); }

.pb-inq-note {
	margin: 0 0 1.5rem;
	padding: .9rem 1.1rem;
	border-left: 3px solid var(--pb-accent);
	background: var(--pb-paper);
	color: var(--pb-head);
	font-size: .97rem;
	line-height: 1.5;
}
.pb-band .pb-inq-note { background: var(--pb-band); }

.pb-inq-bad { font-weight: 700; }

.pb-inq-field { margin: 0 0 1.15rem; }

/* `el.hidden` works only through the browser's own `[hidden] { display: none }`,
   so ANY display value set on a row in a stylesheet defeats it: the attribute
   is set, the script ran, and nothing changes on screen. Laying the rows out
   with grid or flex is the obvious next change somebody makes here, and either
   one triggers it. This rule keeps that change safe. (The Pyro Pies form had
   this bug live; see Projects/_shared/inquiry-form/CHANGELOG.md.) */
.pb-inq-field[hidden] { display: none; }

.pb-inq-field label {
	display: block;
	margin-bottom: .35rem;
	color: var(--pb-head);
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.35;
}

.pb-req { color: var(--pb-accent-text); }

.pb-inq-field input,
.pb-inq-field select,
.pb-inq-field textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: .65rem .75rem;
	border: 1px solid color-mix(in srgb, var(--pb-head) 55%, transparent);
	border-radius: 3px;
	background: var(--pb-paper);
	color: var(--pb-ink);
	font: inherit;
	font-size: 1rem; /* Never under 16px: a smaller field makes an iPhone zoom the page on focus. */
	line-height: 1.4;
}

.pb-inq-field textarea { min-height: 7.5rem; resize: vertical; }

.pb-inq-field input:focus-visible,
.pb-inq-field select:focus-visible,
.pb-inq-field textarea:focus-visible {
	outline: 3px solid var(--pb-accent);
	outline-offset: 1px;
	border-color: var(--pb-head);
}

/* The honeypot. Off-screen rather than display:none, because some bots skip
   fields that are display:none and this one is meant to be filled in. */
.pb-inq-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pb-inq-submit { margin: 1.6rem 0 0; }

.pb-inq-small { margin: 1.1rem 0 0; font-size: .86rem; line-height: 1.5; }

/* ---------------------------------------------------- 2 Share / Print */

/* The button row. The button itself is site.css's .pb-btn .pb-btn--ghost. */
.pb-share-row { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2.4rem 0 0; }

/* The panel is a <dialog>. */
.pb-share {
	width: min(92vw, 25rem);
	padding: 1.9rem 1.5rem 1.4rem;
	border: 0;
	border-top: 4px solid var(--pb-accent);
	border-radius: 3px;
	background: var(--pb-paper);
	color: var(--pb-ink);
	box-shadow: 0 24px 60px color-mix(in srgb, var(--pb-dark) 35%, transparent);
}

.pb-share::backdrop { background: color-mix(in srgb, var(--pb-dark) 62%, transparent); }

.pb-share-title {
	margin: 0 2.2rem 1.2rem 0;
	font-family: var(--pb-f-head);
	font-weight: var(--pb-f-head-w);
	font-size: calc(1.6rem * var(--pb-f-scale));
	line-height: 1.15;
	color: var(--pb-head);
}

.pb-share-actions { display: grid; gap: .65rem; }
.pb-share-actions .pb-btn { width: 100%; }

.pb-share-status { min-height: 1.4em; margin: .9rem 0 0; font-size: .9rem; overflow-wrap: anywhere; }

.pb-share-close {
	position: absolute;
	top: .35rem;
	right: .45rem;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--pb-head);
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
}

/* A class that sets display beats the hidden attribute: on Pyro Pies the
   download link showed before its picture existed and saved the page itself.
   .pb-btn sets display, so this rule is what keeps the hidden buttons hidden. */
.pb-share [hidden] { display: none !important; }

/* The sheet is for paper only and never shows on screen. */
.pb-sheet { display: none; }

@media print {
	/* Margins for the sheet alone; other pages keep the browser's own. */
	@page pb-sheet { margin: .45in; }

	.pb-share-row, .pb-share { display: none !important; }

	body.pb-has-sheet { background: #fff !important; }
	body.pb-has-sheet > *:not(.pb-sheet) { display: none !important; }

	body.pb-has-sheet .pb-sheet {
		display: block;
		page: pb-sheet;
		font-family: var(--pb-f-body);
		font-size: 9pt;
		line-height: 1.3;
		color: var(--pb-ink);
	}

	.pb-sheet p { margin: 0; }

	.pb-sheet .pb-sheet-head {
		display: flex;
		align-items: center;
		gap: .3in;
		margin-bottom: .1in;
		padding-bottom: .1in;
		border-bottom: 1.5pt solid var(--pb-accent);
	}

	/* The logo is painted through a mask, which is a background: without this
	   line a printer set to skip backgrounds would print an empty space. The
	   business name is also in the sheet's last lines as ordinary words. */
	.pb-sheet .pb-sheet-logo {
		flex: none;
		width: 2.1in;
		color: var(--pb-head);
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.pb-sheet .pb-sheet-title {
		font-family: var(--pb-f-head);
		font-weight: var(--pb-f-head-w);
		font-size: 24pt;
		line-height: 1.05;
		color: var(--pb-head);
	}

	.pb-sheet .pb-sheet-about { margin-top: 3pt; font-size: 9.5pt; }
	.pb-sheet .pb-sheet-how { margin-bottom: .1in; font-style: italic; }

	.pb-sheet-cols { columns: 2; column-gap: .35in; }

	.pb-sheet .pb-sheet-course-name {
		margin: 8pt 0 4pt;
		padding-bottom: 2pt;
		border-bottom: .75pt solid var(--pb-accent);
		font-size: 8pt;
		font-weight: 700;
		letter-spacing: .16em;
		text-transform: uppercase;
		color: var(--pb-head);
		break-after: avoid;
	}
	.pb-sheet-course:first-child .pb-sheet-course-name { margin-top: 0; }

	.pb-sheet-item { margin-bottom: 5pt; break-inside: avoid; }

	.pb-sheet .pb-sheet-dish {
		font-family: var(--pb-f-head);
		font-weight: var(--pb-f-head-w);
		font-size: 11.5pt;
		line-height: 1.2;
		color: var(--pb-head);
	}

	.pb-sheet .pb-sheet-desc { font-size: 8.6pt; }

	.pb-sheet-foot {
		margin-top: .12in;
		padding-top: .08in;
		border-top: .75pt solid var(--pb-accent);
		text-align: center;
		break-inside: avoid;
	}

	.pb-sheet .pb-sheet-name { font-weight: 700; color: var(--pb-head); }
}
