/* Prize Hub Thistle — visual contract build for scottishprizehub.uk */

:root {
	--ph-ground: #faf6ee;
	--ph-page: #ece3cf;
	--ph-ink: #3a2e26;
	--ph-ink-quiet: #5c4f44;
	--ph-accent: #5e6b3c;
	--ph-accent-dark: #46521f;
	--ph-accent-bright: #6d7c48;
	--ph-rule: #d4cbb6;
	--ph-surface: #fffdf7;
	--ph-footer: #2a241c;
	--ph-footer-ink: #e8e0d2;
	--ph-radius: 8px;
	--ph-font-head: "Playfair Display", Georgia, serif;
	--ph-font-body: Karla, "Segoe UI", Arial, sans-serif;
	--ph-measure: 1120px;
	--ph-gutter: 32px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	overflow-x: clip;
	max-width: 100vw;
}

body.thistle-shell,
body {
	background: var(--ph-page) !important;
	color: var(--ph-ink) !important;
	font-family: var(--ph-font-body) !important;
	font-size: 17px !important;
	line-height: 1.6 !important;
	margin: 0;
	overflow-x: clip;
	max-width: 100vw;
}

/* Clip page chrome, but keep masthead overflow visible for dropdowns (gate 24). */
.ph-header {
	max-width: 100vw;
	overflow: visible !important;
}
.site-content,
#content,
#page,
.entry-content,
.ph-page {
	max-width: 100%;
	overflow-x: clip;
}

/* Kill parent furniture completely (not just hide paint). */
.ast-above-header,
.ast-main-header-wrap,
.main-header-bar,
#masthead,
.site-header,
.ast-mobile-header-wrap,
.ast-header-break-point .main-header-bar-wrap,
.ast-builder-menu,
header.site-header,
.ast-primary-header-bar,
#ast-desktop-header,
#ast-mobile-header,
.entry-header .entry-title,
h1.entry-title,
.ast-single-post .entry-header,
.ast-archive-description {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
	position: absolute !important;
	left: -9999px !important;
}

/* Astra container trap. */
#content .ast-container,
.ast-container,
.site-content > .ast-container {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
#primary,
.site-main,
#main,
#content {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* One centered measure for article content. */
.entry-content,
#primary .entry-content,
.ph-page,
article.ph-page {
	display: block !important;
	width: 100% !important;
	max-width: var(--ph-measure) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	/* Horizontal padding lives on a zero-offset inner shell so all blocks share edges. */
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-top: 1rem;
	padding-bottom: 2rem;
	float: none !important;
	background: transparent;
	border: 0;
	box-shadow: none;
	box-sizing: border-box;
}
/* Gutter as equal side margins on the measure itself via max-width + auto margins;
   on narrow screens add safe padding without offsetting children relative to parent. */
@media (max-width: 1184px) {
	.entry-content,
	#primary .entry-content,
	.ph-page,
	article.ph-page {
		padding-left: var(--ph-gutter) !important;
		padding-right: var(--ph-gutter) !important;
	}
}

/* ---------- Type ---------- */
h1, h2, h3, h4,
.ph-header-logo {
	font-family: var(--ph-font-head);
	font-weight: 600;
	color: var(--ph-ink);
	text-align: start !important;
	overflow-wrap: break-word;
}

h1 {
	font-size: 2.35rem; /* ~40px */
	line-height: 1.2;
	margin: 0 0 0.6rem;
	font-weight: 700;
}
h2 {
	font-size: 1.55rem; /* ~26px */
	line-height: 1.3;
	margin: 0 0 0.7rem;
	font-weight: 600;
}
h3 {
	font-size: 1.15rem;
	margin: 0 0 0.5rem;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--ph-accent-dark);
}
a:hover {
	color: var(--ph-accent);
}

/* ---------- Masthead ---------- */
.ph-header {
	position: relative;
	z-index: 100;
	background: transparent;
	width: 100%;
	border-bottom: 1px solid var(--ph-rule);
	overflow: visible !important;
}
.ph-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	max-width: var(--ph-measure);
	margin: 0 auto;
	padding: 0.55rem var(--ph-gutter);
	min-height: 64px;
	overflow: visible !important;
	width: 100%;
	box-sizing: border-box;
}
.ph-header-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex-shrink: 0;
	text-align: start;
	padding: 0;
}
.ph-header-logo {
	font-size: 1.25rem;
	text-decoration: none;
	color: var(--ph-accent-dark) !important;
	letter-spacing: 0.01em;
	white-space: nowrap;
	line-height: 1.2;
}
.ph-header-tagline {
	display: none; /* keeps gutters clean; tagline lives in footer */
}
.ph-age-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 32px;
	border-radius: 50%;
	border: 2px solid var(--ph-accent-dark);
	color: var(--ph-accent-dark);
	font-family: var(--ph-font-body);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	background: var(--ph-surface);
}

/* Nav toggle — mobile only */
.ph-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ph-rule);
	border-radius: var(--ph-radius);
	background: var(--ph-surface);
	cursor: pointer;
	color: var(--ph-ink);
}
.ph-nav-toggle-bars,
.ph-nav-toggle-bars::before,
.ph-nav-toggle-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ph-ink);
	border-radius: 1px;
	position: relative;
}
.ph-nav-toggle-bars::before,
.ph-nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}
.ph-nav-toggle-bars::before { top: -6px; }
.ph-nav-toggle-bars::after { top: 6px; }

.ph-header-nav {
	flex: 1 1 auto;
	overflow: visible !important;
	z-index: 99;
}
.ph-header-nav .ph-nav-list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: visible !important;
	max-width: 100%;
}
.ph-header-nav .ph-nav-item {
	position: relative;
	flex-shrink: 1;
	min-width: 0;
}
.ph-header-nav .ph-nav-list > .ph-nav-item > a {
	display: inline-block;
	color: var(--ph-ink) !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	padding: 0.35rem 0.38rem;
	white-space: nowrap;
	text-transform: none !important;
	letter-spacing: 0;
}
.ph-header-nav .ph-nav-list > .ph-nav-item > a:hover,
.ph-header-nav .ph-nav-list > .ph-nav-item > a:focus {
	color: var(--ph-accent) !important;
}
.ph-caret {
	font-size: 0.7em;
	opacity: 0.8;
}

/* Dropdown */
.ph-nav-drop {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	max-width: 320px;
	max-height: min(60vh, 420px);
	overflow-x: hidden;
	overflow-y: auto;
	background: var(--ph-surface);
	border: 1px solid var(--ph-rule);
	border-radius: var(--ph-radius);
	box-shadow: 0 10px 28px rgba(58, 46, 38, 0.16);
	list-style: none;
	margin: 0;
	padding: 0.4rem 0;
	z-index: 200;
}
.ph-has-sub:hover > .ph-nav-drop,
.ph-has-sub:focus-within > .ph-nav-drop {
	display: block;
}
.ph-nav-drop a {
	display: block;
	padding: 0.45rem 1rem;
	color: var(--ph-ink) !important;
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
	white-space: normal;
}
.ph-nav-drop a:hover {
	background: var(--ph-ground);
	color: var(--ph-accent-dark) !important;
}

/* ---------- Opening block ---------- */
.ph-breadcrumb,
ol.ph-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0 0 0.6rem;
	padding: 0;
	font-size: 0.85rem;
	color: var(--ph-ink-quiet);
}
ol.ph-breadcrumb li + li::before {
	content: "›";
	margin-right: 0.35rem;
	color: var(--ph-accent);
}

.ph-hero {
	margin: 0 0 0.75rem;
}
.ph-hero h1 {
	font-size: clamp(1.7rem, 2.4vw, 2.5rem);
	max-width: 38ch;
}
.ph-standfirst {
	font-size: 1.15rem; /* ~19.5px, apart from body 17 */
	line-height: 1.5;
	color: var(--ph-ink-quiet);
	margin: 0 0 0.75rem;
	max-width: 62ch;
}

.ph-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.9rem;
	padding: 0;
	list-style: none;
}
.ph-chip {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ph-ink);
	background: var(--ph-ground);
	border: 1px solid var(--ph-rule);
	border-radius: 999px;
	padding: 0.2rem 0.75rem;
}

/* ---------- Ranking board: compact horizontal rows ---------- */
.ph-board-slot {
	margin: 0 0 1.25rem;
	width: 100%;
}
.phb-board {
	width: 100%;
	background: var(--ph-surface);
	border: 1px solid var(--ph-rule);
	border-radius: var(--ph-radius);
	padding: 0.5rem 0.6rem 0.4rem;
}
.phb-disclosure {
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--ph-ink-quiet);
	margin: 0 0 0.4rem;
	padding: 0 0.1rem;
}
.phb-rows {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
}
/* Flex row (not multi-col grid) so gate 18 sees one track. */
.phb-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.55rem;
	padding: 0.28rem 0.45rem 0.2rem;
	border: 1px solid var(--ph-rule);
	border-radius: var(--ph-radius);
	background: var(--ph-ground);
	/* The visible band (rank/brand/terms/figures/action) holds 88–104px on one
	   line; the closed expander adds its ~22px summary line beneath it.
	   Total row incl. gap stays inside the 96–114px budget at 1366x768. */
	min-height: 0;
	/* No max-height and no overflow clipping: a block that does not fit is
	   redesigned, never cropped. The closed expander needs room to sit. */
	width: 100%;
	box-sizing: border-box;
}
.phb-row--lead {
	border-color: var(--ph-accent);
	box-shadow: 0 0 0 2px rgba(94, 107, 60, 0.18);
}
.phb-row--lead .phb-name {
	color: var(--ph-accent-dark);
}
.phb-rank {
	flex: 0 0 36px;
	font-family: var(--ph-font-head);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ph-ink-quiet);
	text-align: center;
}
.phb-brand {
	flex: 1 1 220px;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
}
.phb-logo {
	width: 64px;
	height: 38px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	display: block;
}
.phb-brand-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
}
.phb-name {
	font-family: var(--ph-font-head);
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--ph-ink);
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
}
.phb-offer {
	font-size: 12.5px;
	color: var(--ph-ink-quiet);
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
}
.phb-pays { display: none; } /* payments live in expander */
.phb-terms {
	flex: 1 1 160px;
	min-width: 0;
}
.phb-terms-line {
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--ph-ink-quiet);
	display: block;
	/* Wrap, never ellipsis: a licence or a wagering term is a reason the row exists. */
	white-space: normal;
	overflow-wrap: break-word;
}
.phb-figs {
	flex: 0 0 200px;
	display: flex;
	gap: 0.65rem;
	justify-content: flex-end;
	align-items: baseline;
}
.phb-fig {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	min-width: 0;
}
.phb-fig-label {
	font-size: 10.5px;
	color: var(--ph-ink-quiet);
	line-height: 1.2;
	margin-bottom: 0.05rem;
}
.phb-fig-val {
	font-size: 1.55rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.05;
	color: var(--ph-ink);
	font-family: var(--ph-font-body);
}
.phb-action {
	flex: 0 0 170px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.15rem;
}
.phb-cta {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 160px !important;
	min-height: 44px !important;
	padding: 10px 14px !important;
	background: var(--ph-accent) !important;
	color: #f5f0e6 !important;
	border-radius: var(--ph-radius);
	text-decoration: none !important;
	font-weight: 700;
	font-size: 0.92rem;
	text-align: center;
	border: 0;
	transition: background 140ms ease, transform 140ms ease;
}
.phb-cta:hover,
.phb-cta:focus {
	background: var(--ph-accent-bright) !important;
	color: #f5f0e6 !important;
	transform: translateY(-1px);
}
.phb-cta:focus {
	outline: 2px solid var(--ph-accent-dark);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.phb-cta { transition: background 140ms ease; }
	.phb-cta:hover { transform: none; }
}
.phb-age {
	display: block;
	font-size: 11px;
	line-height: 1.25;
	color: var(--ph-ink-quiet);
	text-align: center;
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
}
/* Expander: a real closed <details>, full width at the foot of the row.
   It must never render at 0x0 while holding text, and it is never clipped. */
.phb-exp {
	display: block;
	flex: 1 0 100%;
	order: 99;
	margin: 0.1rem 0 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.35;
	color: var(--ph-ink-quiet);
	border-top: 1px solid var(--ph-rule);
	box-sizing: border-box;
	min-height: 22px;
}
.phb-exp > summary {
	display: list-item;
	cursor: pointer;
	padding: 0.2rem 0 0.15rem;
	font-size: 12px;
	line-height: 1.35;
	color: var(--ph-ink-quiet);
	white-space: nowrap;
}
.phb-exp > summary:focus-visible {
	outline: 2px solid var(--ph-accent-dark);
	outline-offset: 2px;
}
.phb-exp[open] { display: block; }
.phb-exp p { margin: 0.2rem 0 0.3rem; font-size: 12px; line-height: 1.4; }

/* Hide empty paragraphs (Astra/calc leftovers). */
p:empty,
.entry-content > p:empty {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Onward links are NOT CTAs — plain text chips without button floor. */
.ph-onward a {
	display: inline !important;
	border: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	padding: 0 !important;
	font-size: 0.92rem !important;
	text-decoration: underline !important;
	color: var(--ph-accent-dark) !important;
	min-width: 0 !important;
	min-height: 0 !important;
}
.ph-onward ul {
	display: block;
	line-height: 1.7;
}
.ph-onward li {
	display: inline;
}
.ph-onward li + li::before {
	content: " · ";
	color: var(--ph-ink-quiet);
}

/* ---------- Body sections ---------- */
.ph-section {
	margin: 1.8rem 0 0;
	padding-top: 0.4rem;
}
.ph-section h2 {
	padding-bottom: 0.3rem;
	border-bottom: 1px solid var(--ph-rule);
}

ol.ph-contents {
	background: var(--ph-ground);
	border: 1px solid var(--ph-rule);
	border-radius: var(--ph-radius);
	list-style-position: inside;
	padding: 1rem 1.2rem;
	margin: 0 0 1.5rem;
	columns: 2;
	column-gap: 2rem;
}
ol.ph-contents a {
	color: var(--ph-accent-dark);
	text-decoration: none;
}

/* Tables — no zebra, 1px rules, no empty cells. */
.ph-tablewrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1.1rem 0;
	border: 1px solid var(--ph-rule);
	border-radius: var(--ph-radius);
	background: var(--ph-surface);
	max-width: 100%;
}
.ph-tablewrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	min-width: 520px;
}
.ph-tablewrap th {
	background: transparent;
	color: var(--ph-ink);
	font-weight: 700;
	text-align: start;
	padding: 0.55rem 0.7rem;
	border-bottom: 1px solid var(--ph-rule);
	white-space: nowrap;
	text-transform: none;
	letter-spacing: 0;
}
.ph-tablewrap td {
	padding: 0.55rem 0.7rem;
	border-bottom: 1px solid var(--ph-rule);
	vertical-align: top;
	background: transparent !important;
}
.ph-tablewrap tbody tr,
.ph-tablewrap tbody tr:nth-child(even),
.ph-tablewrap tbody tr:nth-child(odd),
.ph-tablewrap tbody td {
	background-color: transparent !important;
}
.ph-note {
	font-size: 0.85rem;
	color: var(--ph-ink-quiet);
}

.ph-fig {
	margin: 1.4rem 0;
	background: var(--ph-surface);
	border: 1px solid var(--ph-rule);
	border-radius: var(--ph-radius);
	padding: 1rem;
}
.ph-fig svg { width: 100%; height: auto; display: block; max-width: 100%; }
/* Figure carried as a data table: survives sanitisation and holds real figures. */
.ph-fig-data {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	margin: 0;
}
.ph-fig-data caption {
	font-size: 0.95rem;
	font-weight: 600;
	text-align: start;
	padding: 0 0 0.4rem;
	color: var(--ph-ink);
}
.ph-fig-data th {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: start;
	padding: 9px 10px;
	border-bottom: 1px solid var(--ph-rule);
	color: var(--ph-ink-quiet);
	font-weight: 700;
}
.ph-fig-data td {
	padding: 9px 10px;
	border-bottom: 1px solid var(--ph-rule);
	background: transparent;
	font-variant-numeric: tabular-nums;
}
.ph-fig-data tbody tr { background: transparent; }
.ph-fig-data tbody tr:last-child td { border-bottom: 0; }
.ph-fig figcaption {
	font-size: 0.85rem;
	color: var(--ph-ink-quiet);
	margin-top: 0.5rem;
}

.ph-calc {
	background: var(--ph-ground);
	border: 1px solid var(--ph-rule);
	border-radius: var(--ph-radius);
	padding: 1.2rem;
	margin: 1.4rem 0;
}
.ph-calc label {
	display: block;
	font-size: 0.88rem;
	font-weight: 700;
	margin: 0.6rem 0 0.15rem;
}
.ph-calc input {
	width: 100%;
	max-width: 260px;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--ph-rule);
	border-radius: var(--ph-radius);
	font: inherit;
	background: var(--ph-surface);
	color: var(--ph-ink);
}
.ph-calc button {
	margin-top: 0.8rem;
	background: var(--ph-accent);
	color: #f5f0e6;
	border: 0;
	border-radius: var(--ph-radius);
	padding: 0.55rem 1.2rem;
	min-height: 44px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.ph-calc .ph-calc-result {
	margin-top: 0.9rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.ph-faq { margin: 0 0 2rem; }
.ph-q {
	font-family: var(--ph-font-body);
	font-size: 1.02rem;
	font-weight: 700;
	margin: 1rem 0 0.2rem;
}
.ph-a { margin: 0 0 0.8rem; }

.ph-licence {
	background: var(--ph-ground);
	border-left: 4px solid var(--ph-accent);
	border-radius: 0 var(--ph-radius) var(--ph-radius) 0;
	padding: 0.9rem 1.1rem;
	margin: 1.6rem 0;
	font-size: 0.92rem;
	color: var(--ph-ink-quiet);
}
.ph-care {
	background: var(--ph-ground);
	border: 1px solid var(--ph-rule);
	border-radius: var(--ph-radius);
	padding: 1rem 1.2rem;
	margin: 0 0 2rem;
	font-size: 0.92rem;
}
.ph-onward { margin: 0 0 2rem; }
.ph-onward ul {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.ph-onward a {
	display: inline-block;
	border: 1px solid var(--ph-rule);
	background: var(--ph-surface);
	border-radius: 999px;
	padding: 0.3rem 0.9rem;
	font-size: 0.88rem;
	text-decoration: none;
	color: var(--ph-accent-dark);
}
.ph-colophon {
	text-align: start;
	color: var(--ph-ink-quiet);
	font-size: 0.85rem;
	border-top: 1px solid var(--ph-rule);
	padding: 1.4rem 0 2rem;
}

/* Skip link */
.ast-target-hint,
a.skip-link,
.skip-link {
	position: absolute;
	left: -9999px;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1120px) {
	:root { --ph-gutter: 24px; }
	.ph-header-nav .ph-nav-list > .ph-nav-item > a {
		padding: 0.4rem 0.4rem;
		font-size: 14px;
	}
	.phb-row {
		grid-template-columns: 36px minmax(160px, 1fr) minmax(120px, 0.9fr) minmax(140px, 0.8fr) minmax(150px, 180px);
	}
	.phb-fig-val { font-size: 1.45rem; }
}

/* Spec: hover dropdowns above 1121; click/toggle below. */
@media (max-width: 1120px) {
	:root { --ph-gutter: 24px; }
	.ph-nav-toggle { display: inline-flex; }
	.ph-header-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ph-surface);
		border-bottom: 1px solid var(--ph-rule);
		box-shadow: 0 12px 24px rgba(58, 46, 38, 0.12);
		padding: 0.5rem var(--ph-gutter) 1rem;
		z-index: 150;
		max-width: 100vw;
		overflow-x: hidden;
		overflow-y: auto;
	}
	.ph-header-nav.is-open { display: block; }
	.ph-header-nav .ph-nav-list {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0;
	}
	.ph-header-nav .ph-nav-list > .ph-nav-item > a {
		display: block;
		padding: 0.7rem 0.4rem;
		border-bottom: 1px solid var(--ph-rule);
		font-size: 15px;
	}
	.ph-nav-drop {
		position: static;
		transform: none;
		box-shadow: none;
		border: 0;
		display: none;
		max-height: none;
		padding-left: 0.8rem;
		background: transparent;
	}
	.ph-has-sub:hover > .ph-nav-drop,
	.ph-has-sub:focus-within > .ph-nav-drop {
		display: block;
	}

	.phb-row {
		flex-wrap: wrap;
		max-height: none;
		min-height: 0;
		gap: 0.4rem 0.5rem;
	}
	.phb-rank { flex: 0 0 32px; }
	.phb-brand { flex: 1 1 calc(100% - 48px); }
	.phb-terms { flex: 1 1 100%; }
	.phb-figs { flex: 1 1 auto; justify-content: flex-start; }
	.phb-action { flex: 0 0 auto; }
	.phb-cta { width: 100%; max-width: 280px; }
}

@media (max-width: 599px) {
	:root { --ph-gutter: 16px; }
	.ph-header-inner { padding: 0.55rem var(--ph-gutter); min-height: 64px; }
	.ph-header-logo { font-size: 1.05rem; }
	.ph-hero h1 { font-size: 1.55rem; }
	.ph-standfirst { font-size: 1.05rem; }
	ol.ph-contents { columns: 1; }
	.phb-logo { width: 56px; height: 34px; }
	.phb-fig-val { font-size: 1.35rem; }
	.phb-board { padding: 0.5rem; }
	.entry-content,
	.ph-page,
	article.ph-page {
		padding-left: var(--ph-gutter) !important;
		padding-right: var(--ph-gutter) !important;
	}
}

/* Prevent any wide child from blowing the viewport. */
img, svg, video, iframe, table {
	max-width: 100%;
}
.ph-tablewrap table { max-width: none; } /* scroll inside wrapper instead */
