/* Public theme pages: keep the logo and controls on one usable row. */
@media (max-width: 420px) {
	.pgt-header__inner {
		min-height: 64px;
		padding: 9px 12px;
		gap: 6px;
		flex-wrap: nowrap;
	}
	.pgt-header .pgt-logo { --pgt-logo-h: 28px; min-width: 0; }
	.pgt-header .pgt-brandlogo { gap: 6px; }
	.pgt-icons { gap: 4px; }
	.pgt-icons .pgt-iconbtn,
	.pgt-icons .pgt-burger,
	.pgt-icons .pgt-account__btn {
		width: 44px;
		height: 44px;
		flex: 0 0 44px;
	}
	.pgt-icons .pgt-account__btn { padding: 2px; justify-content: center; }
	.pgt-icons .pgt-account__chev { display: none; }
}

/* Pricing: the exam-file illustration and plan choices need a phone layout
   even on installs that still serve the earlier theme stylesheet. */
@media (max-width: 620px) {
	.pgp-head {
		padding: 32px 18px 24px;
		background: #101f4c;
		color: #fff;
		text-align: left;
	}
	.pgp-head__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
	.pgp-head__copy { min-width: 0; }
	.pgp-head .pgp-chip { border-color: #ffbf47; background: rgba(255, 191, 71, .12); color: #ffbf47; }
	body[class] .pgp .pgp-h1 {
		font-size: clamp(34px, 10vw, 42px);
		line-height: 1.05;
		color: #fff !important;
		-webkit-text-fill-color: #fff !important;
	}
	body[class] .pgp .pgp-h1__quiet {
		color: #ffbf47 !important;
		-webkit-text-fill-color: #ffbf47 !important;
	}
	.pgp-head .pgp-lede { color: #d9e4ff; }
	.pgp-paper {
		position: relative;
		box-sizing: border-box;
		max-width: 100%;
		min-height: 0;
		height: auto;
		margin: 0;
		padding: 18px;
		background: repeating-linear-gradient(180deg, #fff 0, #fff 38px, #edf1fa 39px, #fff 40px);
		border-radius: 12px;
		box-shadow: 0 18px 35px -22px rgba(0, 0, 0, .55);
		transform: none;
		overflow: hidden;
	}
	.pgp-paper__top { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; font-weight: 700; color: #58688b; }
	.pgp-paper__title { margin: 14px 0 12px; font-size: 24px; line-height: 1.08; font-weight: 750; color: #102044; }
	.pgp-paper__rule { height: 2px; margin-bottom: 6px; background: #102044; }
	.pgp-paper__row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 6px 0; border-bottom: 1px solid #e5eaf3; font-size: 11px; color: #28395b; }
	.pgp-paper__num { color: #71809e; }
	.pgp-paper__mark, .pgp-paper__stamp { display: none; }
	.pgp-levels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; padding: 10px; background: #fff; border-radius: 14px; }
	.pgp-levels__label { color: #526583; }
	.pgp-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
	.pgp-tab { min-width: 0; padding: 10px 5px; white-space: normal; }
	.pgp-showing { color: #d9e4ff; text-align: left; }
	.pgp-showing .pgp-levelname { color: #fff; }
	.pgp-card--quiet .pgp-termswitch {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		min-width: 0;
	}
	.pgp-card--quiet .pgp-termtab {
		min-width: 0;
		min-height: 44px;
		padding: 7px 3px;
		flex-direction: column;
		gap: 3px;
		white-space: normal;
		font-size: 11px;
		line-height: 1.2;
	}
	.pgp-termtab__save { font-size: 10px; }
}

@media (max-width: 700px) {
	.pgp-compare-scroll { max-width: 100%; overflow-x: auto; }
	.pgp-compare { display: block; width: 100%; min-width: 0; border-spacing: 0; }
	.pgp-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.pgp-compare tbody { display: grid; gap: 12px; }
	.pgp-compare__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e0e7f5; border-radius: 12px; }
	.pgp-compare__row > * { display: block; min-width: 0; padding: 11px 8px; background: #f7f9fe; }
	.pgp-compare__row > :first-child { grid-column: 1 / -1; border-bottom: 1px solid #e0e7f5; }
	.pgp-compare__row > :last-child { grid-column: 1 / -1; padding-top: 4px; text-align: left; }
	.pgp-compare__row th strong, .pgp-compare__row th small { display: inline; }
	.pgp-compare__row th small { margin-left: 8px; }
	.pgp-compare__row td:not(.pgp-compare__action)::before { content: attr(data-label); display: block; margin-bottom: 5px; font-size: 9px; font-weight: 700; text-transform: uppercase; color: #667691; }
	.pgp-compare__row td strong { font-size: clamp(14px, 4.5vw, 18px); }
	.pgp-compare__row td small { font-size: 10px; overflow-wrap: anywhere; }
	.pgp-compare__action a { padding: 7px 0; border: 0; }
}

/* Keep the visitor's state visible; open the full directory on request at
   every screen size. Without JS, the original state list remains available. */
#pg-how { scroll-margin-top: 80px; }
.pge-state-disclosure__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 48px;
	margin: 12px 0;
	padding: 12px 16px;
	border: 1px solid #cbd8f4;
	border-radius: 12px;
	background: #f3f7ff;
	color: #1638a0;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}
.pge-state-disclosure__toggle[hidden] { display: none; }
.pge-state-disclosure__toggle::after {
	content: '';
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .18s ease;
}
.pge-state-disclosure__toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
.pge-state-disclosure__toggle:focus-visible { outline: 3px solid #2656d8; outline-offset: 3px; }
.pgh-states.pge-state-disclosure--collapsed > .pge-state-disclosure__other,
.pgx-states__grid.pge-state-disclosure--collapsed > .pge-state-disclosure__other { display: none; }
#pg-states > .pge-state-disclosure__toggle { display: flex; margin-inline: auto; }
#pg-states > .pge-state-disclosure__toggle[hidden] { display: none; }
#pg-states .pgh-states.pge-state-disclosure--collapsed {
	width: min(100%, 270px);
	grid-template-columns: minmax(0, 1fr);
	margin-inline: auto;
}
@media (max-width: 767px) {
	.pge-state-disclosure__toggle { display: flex; width: 100%; }
	#pg-states .pgh-states.pge-state-disclosure--collapsed { width: 100%; }
}
