/* Debutante Portal — front-end styles.
   Values measured from Debutantes_Login_Page.png (1920px artboard):
   masthead bar 179px, hero 495px, container 1210px, field 77px, chip 65px,
   button 62px, ink #333333, red #D1121C, gold #FDDB22, page #FAFAFA,
   surface #F8F8F8, hairline #E4E4E4. */

.pp-portal,
.pp-masthead {
	--pp-ink: #333333;
	--pp-red: #D1121C;
	--pp-gold: #FDDB22;
	--pp-page: #FAFAFA;
	--pp-surface: #F8F8F8;
	--pp-line: #E4E4E4;
	--pp-rule: #565656;
	--pp-body: #5A5A5A;

	--pp-display: "Anton", "Oswald", "Arial Narrow", sans-serif;
	--pp-ui: "Oswald", "Arial Narrow", sans-serif;
	--pp-text: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--pp-shell: 1210px;
}

.pp-shell {
	width: 100%;
	max-width: var(--pp-shell);
	margin-inline: auto;
	padding-inline: 24px;
	box-sizing: border-box;
}

/* --- Masthead --------------------------------------------------------- */

.pp-masthead {
	background: var(--pp-ink);
}

.pp-masthead__bar {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 179px;
	padding: 30px 24px;
	border-bottom: 1px solid var(--pp-rule);
	box-sizing: border-box;
}

.pp-masthead__logo img {
	display: block;
	width: auto;
	max-height: 120px;
}

.pp-masthead__wordmark {
	margin: 0;
	color: #fff;
	font-family: var(--pp-display);
	font-size: 2.5rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pp-masthead__hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 495px;
	padding: 64px 0;
	text-align: center;
	box-sizing: border-box;
}

.pp-masthead__title {
	display: inline-block;
	margin: 0;
	padding-bottom: 20px;
	border-bottom: 5px solid var(--pp-red);
	color: #fff;
	font-family: var(--pp-display);
	font-size: clamp(2.25rem, 6vw, 4.5rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

/* --- Eyebrows and section headings ------------------------------------ */

.pp-eyebrow {
	margin: 0 0 14px;
	font-family: var(--pp-ui);
	font-size: clamp(0.95rem, 1.4vw, 1.25rem);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pp-eyebrow--gold {
	color: var(--pp-gold);
}

.pp-eyebrow--red {
	color: var(--pp-red);
}

.pp-section__head {
	margin-bottom: 48px;
	text-align: center;
}

.pp-section__title {
	margin: 0;
	color: var(--pp-ink);
	font-family: var(--pp-display);
	font-size: clamp(1.75rem, 4vw, 3.25rem);
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
}

/* --- Portal shell ----------------------------------------------------- */

.pp-portal {
	width: 100%;
	max-width: var(--pp-shell);
	margin-inline: auto;
	padding: 72px 24px 96px;
	box-sizing: border-box;
	color: var(--pp-body);
	font-family: var(--pp-text);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* --- Pill fields ------------------------------------------------------ */

.pp-field {
	margin: 0 0 24px;
}

.pp-pill {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 77px;
	padding: 4px 6px;
	border: 2px solid var(--pp-line);
	border-radius: 999px;
	background: var(--pp-surface);
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pp-pill:focus-within {
	border-color: var(--pp-red);
	box-shadow: 0 0 0 4px rgba(209, 18, 28, 0.18);
}

.pp-pill__chip {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	min-height: 65px;
	padding: 0 26px;
	border-radius: 999px;
	background: var(--pp-ink);
	color: #fff;
	font-family: var(--pp-ui);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	box-sizing: border-box;
}

.pp-pill__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 18px;
	border: 0;
	background: transparent;
	color: var(--pp-ink);
	font-family: var(--pp-text);
	font-size: 1.0625rem;
	line-height: 1.4;
}

.pp-pill__input:focus {
	outline: none;
}

/* The pill carries the focus ring, so the inner control must not draw a
   second one -- but it still needs to be reachable and obvious. */
.pp-pill__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	margin-right: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--pp-body);
	cursor: pointer;
}

.pp-pill__action:hover {
	color: var(--pp-ink);
}

.pp-pill__action:focus-visible {
	outline: 2px solid var(--pp-red);
	outline-offset: 2px;
}

.pp-pill__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	margin-right: 6px;
	color: var(--pp-body);
}

.pp-pill__action svg,
.pp-pill__icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pp-hint {
	display: block;
	margin: 8px 0 0 30px;
	color: var(--pp-body);
	font-size: 0.9rem;
}

/* Two fields side by side on the registration form. */
.pp-row {
	display: grid;
	gap: 0 20px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.pp-row {
		grid-template-columns: 1fr 1fr;
	}
}

/* --- Checkbox --------------------------------------------------------- */

.pp-check {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 4px 0 28px 4px;
	color: var(--pp-ink);
	font-family: var(--pp-text);
	font-size: 1.0625rem;
	text-transform: uppercase;
	cursor: pointer;
}

.pp-check input {
	appearance: none;
	-webkit-appearance: none;
	width: 26px;
	height: 26px;
	margin: 0;
	border: 2px solid var(--pp-line);
	border-radius: 6px;
	background: var(--pp-surface);
	cursor: pointer;
}

.pp-check input:checked {
	border-color: var(--pp-red);
	background: var(--pp-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.5 3.5L13 5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.pp-check input:focus-visible {
	outline: 2px solid var(--pp-red);
	outline-offset: 2px;
}

/* --- Button ----------------------------------------------------------- */

.pp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	width: 100%;
	min-height: 62px;
	padding: 0 32px;
	border: 0;
	border-radius: 999px;
	background: var(--pp-red);
	color: #fff;
	font-family: var(--pp-ui);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color 0.15s ease;
}

.pp-button:hover,
.pp-button:focus {
	background: #B60E17;
	color: #fff;
}

.pp-button:focus-visible {
	outline: 3px solid var(--pp-ink);
	outline-offset: 3px;
}

.pp-button--ghost {
	width: auto;
	background: transparent;
	border: 2px solid var(--pp-ink);
	color: var(--pp-ink);
}

.pp-button--ghost:hover,
.pp-button--ghost:focus {
	background: var(--pp-ink);
	color: #fff;
}

.pp-form__actions {
	margin: 32px 0 0;
}

/* --- Panels: help box, notices ---------------------------------------- */

.pp-panel {
	margin: 36px 0 0;
	padding: 34px 38px;
	border: 2px solid var(--pp-line);
	border-radius: 16px;
	background: var(--pp-surface);
}

.pp-panel__title {
	margin: 0 0 12px;
	color: var(--pp-ink);
	font-family: var(--pp-ui);
	font-size: 1.625rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
}

.pp-panel p {
	margin: 0;
	color: var(--pp-body);
}

.pp-panel a {
	color: var(--pp-body);
	text-decoration: underline;
}

.pp-notice {
	margin: 0 0 28px;
	padding: 22px 28px;
	border: 2px solid var(--pp-line);
	border-left-width: 6px;
	border-radius: 16px;
	background: var(--pp-surface);
	color: var(--pp-body);
}

.pp-notice p {
	margin: 0;
}

.pp-notice p + p {
	margin-top: 14px;
}

.pp-notice ul {
	margin: 0;
	padding-left: 22px;
}

.pp-notice--error {
	border-left-color: var(--pp-red);
}

.pp-notice--success {
	border-left-color: #1D7A4C;
}

.pp-notice--info {
	border-left-color: var(--pp-ink);
}

.pp-notice .pp-button {
	width: auto;
	margin-top: 16px;
}

.pp-form__alt {
	margin: 28px 0 0;
	color: var(--pp-body);
}

.pp-form__alt a,
.pp-logout {
	color: var(--pp-ink);
	text-decoration: underline;
}

/* Honeypot: off-screen for people, present for bots. */
.pp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Profile header --------------------------------------------------- */

.pp-profile__header {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 40px;
}

.pp-profile__meta {
	margin: 0;
	font-size: 1rem;
}

/* --- ACF form ---------------------------------------------------------
   ACF prints the label in a sibling block above the input, so the dark chip
   sits above the field here rather than inside it. Same components, one
   unavoidable structural difference. */

.pp-portal .acf-fields > .acf-field {
	padding: 0 0 26px;
	border: 0;
}

.pp-portal .acf-field > .acf-label {
	margin: 0 0 10px;
}

.pp-portal .acf-field > .acf-label label {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	margin: 0;
	padding: 0 26px;
	border-radius: 999px;
	background: var(--pp-ink);
	color: #fff;
	font-family: var(--pp-ui);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.pp-portal .acf-field .acf-label .description {
	display: block;
	margin: 8px 0 0 4px;
	color: var(--pp-body);
	font-size: 0.9rem;
	font-style: normal;
}

.pp-portal .acf-field input[type="text"],
.pp-portal .acf-field input[type="email"],
.pp-portal .acf-field input[type="url"],
.pp-portal .acf-field input[type="number"],
.pp-portal .acf-field input[type="password"],
.pp-portal .acf-field textarea,
.pp-portal .acf-field select {
	width: 100%;
	min-height: 68px;
	padding: 18px 26px;
	border: 2px solid var(--pp-line);
	border-radius: 999px;
	background: var(--pp-surface);
	color: var(--pp-ink);
	font-family: var(--pp-text);
	font-size: 1.0625rem;
	line-height: 1.4;
	box-sizing: border-box;
}

.pp-portal .acf-field textarea {
	min-height: 160px;
	border-radius: 24px;
	resize: vertical;
}

.pp-portal .acf-field input:focus,
.pp-portal .acf-field textarea:focus,
.pp-portal .acf-field select:focus {
	border-color: var(--pp-red);
	box-shadow: 0 0 0 4px rgba(209, 18, 28, 0.18);
	outline: none;
}

/* Locked fields: clearly not editable, still legible and selectable. */
.pp-portal .acf-field.pp-field--locked input[readonly],
.pp-portal .acf-field.pp-field--locked textarea[readonly] {
	background: #F0F0F0;
	border-style: dashed;
	color: var(--pp-body);
	cursor: default;
}

.pp-portal .acf-field.pp-field--locked > .acf-label label {
	background: var(--pp-body);
}

/* Image, gallery and file fields keep ACF's own internals; only the frame is
   restyled, so an ACF update cannot break the layout. */
.pp-portal .acf-field .acf-image-uploader,
.pp-portal .acf-field .acf-gallery,
.pp-portal .acf-field .acf-file-uploader {
	padding: 20px;
	border: 2px solid var(--pp-line);
	border-radius: 24px;
	background: var(--pp-surface);
	box-sizing: border-box;
}

.pp-portal .acf-form-submit {
	margin-top: 36px;
}

.pp-portal .acf-notice {
	border-radius: 16px;
}

/* --- Responsive -------------------------------------------------------
   Below 720px the chip and input cannot share a 77px pill without the input
   collapsing, so the chip moves above its field. */

@media (max-width: 720px) {
	.pp-masthead__bar {
		min-height: 120px;
		padding: 20px 16px;
	}

	.pp-masthead__logo img {
		max-height: 76px;
	}

	.pp-masthead__hero {
		min-height: 280px;
		padding: 48px 0;
	}

	.pp-portal {
		padding: 48px 16px 64px;
	}

	.pp-pill {
		flex-wrap: wrap;
		min-height: 0;
		padding: 10px;
		border-radius: 28px;
	}

	.pp-pill__chip {
		width: 100%;
		min-height: 46px;
		margin-bottom: 8px;
		padding: 0 20px;
		font-size: 1rem;
	}

	.pp-pill__input {
		flex: 1 1 60%;
		padding: 12px 14px;
	}

	.pp-panel {
		padding: 26px 22px;
	}

	.pp-hint {
		margin-left: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pp-portal *,
	.pp-masthead * {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
