/*
 * Pier Head — main stylesheet
 * liverpooltourism.org
 *
 * Palette note (WCAG AA):
 * The design handoff specified --gold-deep #8a6c25. Measured against the cream
 * page it scores 4.42:1, and against the callout tint (#eee8d9) 4.04:1 — both
 * short of AA for the 10.5–11px eyebrows it is used on. Shipped value is
 * #7d6221 (5.16 on cream, 4.72 on the tint): visually indistinguishable at
 * eyebrow sizes, but legible. Brand gold #c19a3f survives everywhere it is a
 * fill or a rule, and as text on the two navies (5.52 / 6.27).
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--ph-navy: #12294a;
	--ph-navy-deep: #0d1f38;
	--ph-navy-tint: #1a3660;
	--ph-cream: #f6f2e8;
	--ph-cream-shade: #eee8d9;
	--ph-gold: #c19a3f;
	--ph-gold-deep: #7d6221;
	--ph-ink-soft: #3c4d68;
	--ph-ink-body: #26374f;
	--ph-muted: #5a6b85;

	--ph-rule: rgba(18, 41, 74, .18);
	--ph-rule-strong: rgba(18, 41, 74, .25);
	--ph-rule-strongest: rgba(18, 41, 74, .35);
	--ph-rule-dark: rgba(246, 242, 232, .15);
	--ph-rule-dark-2: rgba(246, 242, 232, .2);

	--ph-foot-link: #cfd7e4;
	--ph-foot-muted: #9fadc4;
	--ph-foot-legal: #7b89a3;

	--ph-serif: 'DM Serif Display', Georgia, 'Times New Roman', Times, serif;
	--ph-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--ph-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--ph-gutter: 48px;
	--ph-wrap: 1440px;
	--ph-wrap-narrow: 1240px;
	--ph-measure: 680px;
	--ph-section-y: 56px;
}

@media (max-width: 1024px) {
	:root { --ph-gutter: 32px; --ph-section-y: 44px; }
}
@media (max-width: 600px) {
	:root { --ph-gutter: 24px; --ph-section-y: 36px; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Sticky header offset for in-page anchors. */
	scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}

body {
	margin: 0;
	background: var(--ph-cream);
	color: var(--ph-navy);
	font-family: var(--ph-sans);
	font-size: 16px;
	line-height: 1.6;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.4em; }
figure { margin: 0; }

img, svg, video {
	max-width: 100%;
	height: auto;
	display: block;
}

/* An iframe has no intrinsic ratio — height:auto collapses embeds to 150px. */
iframe, object, embed { max-width: 100%; }

a {
	color: var(--ph-navy);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
	transition: color .16s ease;
}
a:hover, a:focus-visible { color: var(--ph-gold-deep); }

:focus-visible {
	outline: 2px solid var(--ph-gold-deep);
	outline-offset: 2px;
}

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

hr {
	border: 0;
	border-top: 1px solid var(--ph-rule);
	margin: 2.5em 0;
}

::selection { background: var(--ph-gold); color: var(--ph-navy); }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}
.screen-reader-text:focus {
	background: var(--ph-cream);
	clip-path: none;
	color: var(--ph-navy);
	display: block;
	font-size: 13px;
	font-weight: 600;
	height: auto;
	left: 8px;
	line-height: 1;
	padding: 14px 22px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
	border: 1px solid var(--ph-navy);
}

.ph-skip-link:focus { outline-offset: 0; }

/* ==========================================================================
   3. Shared primitives
   ========================================================================== */

.ph-wrap {
	max-width: var(--ph-wrap);
	margin-inline: auto;
	padding-inline: var(--ph-gutter);
}
.ph-wrap--narrow { max-width: var(--ph-wrap-narrow); }
.ph-wrap--flush { padding-inline: 0; }

.ph-section { padding-block: var(--ph-section-y); }

.ph-eyebrow {
	font-size: 10.5px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ph-gold-deep);
	font-weight: 500;
	line-height: 1.4;
}
.ph-eyebrow--wide { font-size: 11px; letter-spacing: .28em; }
.ph-eyebrow--on-dark { color: var(--ph-gold); }
a.ph-eyebrow { text-decoration: none; }
a.ph-eyebrow:hover { text-decoration: underline; }

.ph-display {
	font-family: var(--ph-serif);
	font-weight: 400;
	line-height: 1.12;
	text-wrap: pretty;
	letter-spacing: -.005em;
}

.ph-meta {
	font-size: 11.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ph-muted);
	line-height: 1.5;
}

.ph-section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}
.ph-section-head h2 {
	font-family: var(--ph-serif);
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1.15;
}

.ph-more {
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 500;
	border-bottom: 1px solid var(--ph-navy);
	padding-bottom: 4px;
	text-decoration: none;
	white-space: nowrap;
}
.ph-more:hover, .ph-more:focus-visible { border-bottom-color: var(--ph-gold-deep); }

/* Buttons — no radius, no shadow, per the design. */
.ph-btn {
	display: inline-block;
	padding: 15px 28px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid var(--ph-navy);
	background: var(--ph-navy);
	color: var(--ph-cream);
	cursor: pointer;
	transition: background-color .16s ease, color .16s ease, border-color .16s ease;
	text-align: center;
}
.ph-btn:hover, .ph-btn:focus-visible {
	background: var(--ph-navy-deep);
	border-color: var(--ph-navy-deep);
	color: var(--ph-cream);
}
.ph-btn--outline {
	background: transparent;
	color: var(--ph-navy);
	padding: 14px 26px;
}
.ph-btn--outline:hover, .ph-btn--outline:focus-visible {
	background: var(--ph-navy);
	color: var(--ph-cream);
}
.ph-btn--gold {
	background: var(--ph-gold);
	border-color: var(--ph-gold);
	color: var(--ph-navy);
}
.ph-btn--gold:hover, .ph-btn--gold:focus-visible {
	background: #d3ab48;
	border-color: #d3ab48;
	color: var(--ph-navy);
}
.ph-btn--block { display: block; width: 100%; }
.ph-btn--sm { padding: 11px 20px; font-size: 12px; }

/* Media frames. Cropped fills; no radius. */
.ph-frame {
	position: relative;
	overflow: hidden;
	background: var(--ph-cream-shade);
	display: block;
}
.ph-frame > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ph-frame--empty {
	background:
		linear-gradient(180deg, rgba(18, 41, 74, .04), rgba(18, 41, 74, .1)),
		var(--ph-cream-shade);
}
.ph-frame--on-dark, .ph-frame--on-dark.ph-frame--empty {
	background: var(--ph-navy-tint);
}

/* ==========================================================================
   4. Logo
   ========================================================================== */

.ph-logo {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	text-decoration: none;
	color: inherit;
	/* The lockup never compresses; a long menu wraps instead. */
	flex: 0 0 auto;
	max-width: 100%;
}
.ph-logo:hover, .ph-logo:focus-visible { color: inherit; }
.ph-logo__mark {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 50%;
	overflow: hidden;
	display: block;
}
.ph-logo__mark img, .ph-logo__mark svg { width: 100%; height: 100%; display: block; }
.ph-logo__text { line-height: 1; }
.ph-logo__name {
	font-family: var(--ph-serif);
	font-size: 23px;
	line-height: 1.05;
	display: block;
	white-space: nowrap;
}
.ph-logo__tag {
	white-space: nowrap;
	font-size: 9.5px;
	letter-spacing: .24em;
	text-transform: uppercase;
	margin-top: 5px;
	color: var(--ph-gold-deep);
	display: block;
	line-height: 1.3;
}
.ph-logo:hover .ph-logo__name { color: var(--ph-gold-deep); }

/* Custom logo image replaces the whole lockup. */
.ph-logo--custom { display: block; }
.ph-logo--custom img { max-height: 60px; width: auto; }

/* ==========================================================================
   5. Topbar
   ========================================================================== */

.ph-topbar {
	background: var(--ph-navy);
	color: var(--ph-cream);
	font-size: 12px;
	letter-spacing: .05em;
}
.ph-topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding-block: 10px;
	flex-wrap: wrap;
}
.ph-topbar__conditions,
.ph-topbar__links {
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ph-topbar__links { gap: 22px; }
.ph-topbar__label { color: var(--ph-gold); font-weight: 500; }
.ph-topbar a { color: var(--ph-cream); text-decoration: none; }
.ph-topbar a:hover, .ph-topbar a:focus-visible {
	color: var(--ph-gold);
	text-decoration: underline;
}

/* ==========================================================================
   6. Masthead + navigation
   ========================================================================== */

.ph-masthead {
	background: var(--ph-cream);
	border-bottom: 1px solid var(--ph-rule);
	position: relative;
	z-index: 60;
}
.ph-masthead--sticky {
	position: sticky;
	top: 0;
}
.ph-masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 20px;
	/* One row: the logo and the actions hold their size and the nav wraps
	   inside its own column, so long category names make a two-line menu
	   rather than a four-row masthead. */
	flex-wrap: nowrap;
}

.ph-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px 30px;
	flex-wrap: wrap;
	flex: 1 1 auto;
	min-width: 0;
}

.ph-nav__list {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px 26px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: .04em;
}
.ph-nav__list a {
	text-decoration: none;
	display: inline-block;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
}
.ph-nav__list a:hover,
.ph-nav__list a:focus-visible { border-bottom-color: var(--ph-gold); }
.ph-nav .current-menu-item > a,
.ph-nav .current_page_item > a,
.ph-nav .current-menu-ancestor > a,
.ph-nav .current-menu-parent > a,
.ph-nav .current-post-ancestor > a {
	color: var(--ph-gold-deep);
	border-bottom-color: var(--ph-gold);
}

/* Sub-menus */
.ph-nav__list li { position: relative; }
.ph-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 232px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: var(--ph-cream);
	border: 1px solid var(--ph-rule-strong);
	display: none;
	z-index: 70;
}
.ph-nav__list li:hover > .sub-menu,
.ph-nav__list li:focus-within > .sub-menu { display: block; }
.ph-nav__list .sub-menu a {
	display: block;
	padding: 9px 18px;
	border-bottom: 0;
	font-size: 13px;
	line-height: 1.35;
}
.ph-nav__list .sub-menu a:hover,
.ph-nav__list .sub-menu a:focus-visible { background: var(--ph-cream-shade); border-bottom: 0; }

.ph-nav__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 0 0 auto;
}

/* The call to action sits beside the search icon on wide screens, and moves
   into the menu panel once the nav collapses — only ever one of the two is in
   the document flow, so it is never announced twice. */
.ph-nav__cta { display: none; }
.ph-cta-wide { display: inline-block; white-space: nowrap; }

.ph-search-toggle,
.ph-nav-toggle {
	background: none;
	border: 1px solid transparent;
	padding: 8px;
	cursor: pointer;
	color: var(--ph-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
}
.ph-search-toggle:hover, .ph-nav-toggle:hover { color: var(--ph-gold-deep); }
.ph-search-toggle svg, .ph-nav-toggle svg { width: 18px; height: 18px; }

.ph-nav-toggle { display: none; border-color: var(--ph-rule-strongest); }
.ph-nav-toggle__bars { display: block; width: 18px; height: 12px; position: relative; }
.ph-nav-toggle__bars::before,
.ph-nav-toggle__bars::after,
.ph-nav-toggle__bars span {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 1.5px;
	background: currentColor;
	transition: transform .18s ease, opacity .18s ease;
}
.ph-nav-toggle__bars::before { top: 0; }
.ph-nav-toggle__bars span { top: 5.25px; }
.ph-nav-toggle__bars::after { bottom: 0; }
.ph-nav-toggle[aria-expanded="true"] .ph-nav-toggle__bars::before { transform: translateY(5.25px) rotate(45deg); }
.ph-nav-toggle[aria-expanded="true"] .ph-nav-toggle__bars span { opacity: 0; }
.ph-nav-toggle[aria-expanded="true"] .ph-nav-toggle__bars::after { transform: translateY(-5.25px) rotate(-45deg); }

/* Search overlay */
.ph-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(13, 31, 56, .96);
	z-index: 200;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh var(--ph-gutter) 0;
}
.ph-search-overlay.is-open { display: flex; }
.ph-search-overlay__inner { width: min(680px, 100%); }
/* Standalone search form (results page, 404). */
.ph-searchform {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}
.ph-searchform label {
	flex-basis: 100%;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ph-muted);
	margin-bottom: 10px;
}
.ph-searchform__field {
	flex: 1 1 220px;
	min-width: 0;
	border: 1px solid var(--ph-navy);
	border-right: none;
	background: transparent;
	padding: 13px 18px;
	font-size: 14px;
	color: var(--ph-navy);
}
.ph-searchform__field::placeholder { color: var(--ph-muted); }
.ph-searchform .ph-btn { flex: 0 0 auto; padding-inline: 24px; }

.ph-search-overlay .ph-searchform label {
	display: block;
	flex-basis: 100%;
	font-size: 11px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--ph-gold);
	margin-bottom: 14px;
}
.ph-search-overlay .ph-searchform { display: flex; }
.ph-search-overlay input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--ph-rule-dark-2);
	color: var(--ph-cream);
	font-family: var(--ph-serif);
	font-size: clamp(24px, 4vw, 38px);
	padding: 10px 0;
}
.ph-search-overlay input[type="search"]::placeholder { color: rgba(246, 242, 232, .45); }
.ph-search-overlay input[type="search"]:focus-visible { outline-color: var(--ph-gold); }
.ph-search-overlay .ph-btn { margin-left: 16px; align-self: flex-end; }
.ph-search-close {
	position: absolute;
	top: 20px;
	right: var(--ph-gutter);
	background: none;
	border: 1px solid var(--ph-rule-dark-2);
	color: var(--ph-cream);
	padding: 10px 16px;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	min-height: 44px;
}
.ph-search-close:hover { border-color: var(--ph-gold); color: var(--ph-gold); }

/* ==========================================================================
   7. Front page — hero
   ========================================================================== */

.ph-hero {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	align-items: stretch;
	border-bottom: 1px solid var(--ph-rule);
}
.ph-hero__text {
	padding: 64px var(--ph-gutter) 56px;
	padding-right: 52px;
	min-width: 0;
	align-self: center;
}
.ph-hero__title {
	font-family: var(--ph-serif);
	font-size: clamp(36px, 4.4vw, 62px);
	line-height: 1.04;
	text-wrap: pretty;
	margin-top: 20px;
}
.ph-hero__lede {
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--ph-ink-soft);
	max-width: 46ch;
	margin: 24px 0 32px;
}
.ph-hero__actions {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
}
.ph-hero__stats {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--ph-rule);
	list-style: none;
	padding-left: 0;
	margin-bottom: 0;
}
.ph-hero__stat-value {
	font-family: var(--ph-serif);
	font-size: 28px;
	line-height: 1.1;
	display: block;
}
.ph-hero__stat-label {
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ph-muted);
	display: block;
	margin-top: 4px;
}
.ph-hero__media { min-height: 520px; min-width: 0; }

/* ==========================================================================
   8. Front page — category strip
   ========================================================================== */

.ph-catstrip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-bottom: 1px solid var(--ph-rule);
}
.ph-catstrip__item {
	padding: 24px 28px;
	border-right: 1px solid var(--ph-rule);
	text-decoration: none;
	display: block;
	min-width: 0;
	transition: background-color .16s ease;
}
.ph-catstrip__item:last-child { border-right: 0; }
.ph-catstrip__item:hover, .ph-catstrip__item:focus-visible { background: var(--ph-cream-shade); }
.ph-catstrip__num {
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ph-gold-deep);
	margin-bottom: 9px;
	display: block;
}
.ph-catstrip__name {
	font-family: var(--ph-serif);
	font-size: 21px;
	line-height: 1.2;
	display: block;
}
.ph-catstrip__item:hover .ph-catstrip__name { color: var(--ph-gold-deep); }
.ph-catstrip__count {
	font-size: 12px;
	color: var(--ph-muted);
	margin-top: 6px;
	display: block;
}

/* ==========================================================================
   9. Front page — featured guides
   ========================================================================== */

.ph-featured__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 28px;
	align-items: start;
}
.ph-featured__grid > * { min-width: 0; }

/* ==========================================================================
   10. Cards
   ========================================================================== */

.ph-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: relative;
	min-width: 0;
}
.ph-card__frame { height: 300px; }
.ph-card__title {
	font-family: var(--ph-serif);
	font-size: 22px;
	line-height: 1.22;
	text-wrap: pretty;
}
.ph-card__title a {
	text-decoration: none;
	color: inherit;
}
/* Whole card clickable; the title link is stretched over it. */
.ph-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}
.ph-card:hover .ph-card__title,
.ph-card:focus-within .ph-card__title { color: var(--ph-gold-deep); }
.ph-card__excerpt {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ph-ink-soft);
	margin: 0;
}
.ph-card__meta { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ph-muted); }
/* The card's title link is stretched across the whole card, so this one sits
   above it. Padding lifts it to a 24px target without moving the layout. */
.ph-card__eyebrow { position: relative; z-index: 2; }
a.ph-card__eyebrow { padding-block: 5px; margin-block: -5px; }

.ph-card--lead .ph-card__title { font-size: clamp(22px, 2vw, 27px); line-height: 1.2; }
.ph-card--compact { gap: 13px; }
.ph-card--compact .ph-card__frame { height: 210px; }
.ph-card--compact .ph-card__title { font-size: 23px; line-height: 1.2; }
.ph-card--compact .ph-card__excerpt { font-size: 13px; }

/* Card grid used on archives — hairline dividers, no gutter gaps.
   The negative inline margin pulls the cell padding back out to the page
   gutter, so card text lines up with the header above it while the dividers
   still run between columns. --ph-card-pad never exceeds --ph-gutter, or the
   negative margin would push the grid past the viewport. */
.ph-cardgrid {
	/* min() rather than a breakpoint: if this ever exceeds the gutter, the
	   negative margin below pushes the grid past the viewport. */
	--ph-card-pad: min(28px, var(--ph-gutter));
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-bottom: 1px solid var(--ph-rule);
	margin-inline: calc(-1 * var(--ph-card-pad));
}
.ph-cardgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-cardgrid > .ph-card {
	padding: var(--ph-card-pad);
	border-right: 1px solid var(--ph-rule);
}
.ph-cardgrid > .ph-card:nth-child(3n) { border-right: 0; }
.ph-cardgrid > .ph-card:nth-child(n + 4) { border-top: 1px solid var(--ph-rule); }
.ph-cardgrid--2 > .ph-card:nth-child(3n) { border-right: 1px solid var(--ph-rule); }
.ph-cardgrid--2 > .ph-card:nth-child(2n) { border-right: 0; }
.ph-cardgrid--2 > .ph-card:nth-child(n + 3) { border-top: 1px solid var(--ph-rule); }
.ph-cardgrid--2 > .ph-card:nth-child(-n + 2) { border-top: 0; }

/* ==========================================================================
   11. Front page — itinerary spotlight
   ========================================================================== */

.ph-spotlight {
	background: var(--ph-navy);
	color: var(--ph-cream);
	display: grid;
	grid-template-columns: .9fr 1.1fr;
}
/* :not(.ph-btn) matters — without it this rule outranks .ph-btn--gold and puts
   cream text on the gold button, which is 2.36:1. */
.ph-spotlight a:not(.ph-btn) { color: var(--ph-cream); }
.ph-spotlight a:not(.ph-btn):hover,
.ph-spotlight a:not(.ph-btn):focus-visible { color: var(--ph-gold); }
.ph-spotlight__media { min-height: 380px; min-width: 0; }
.ph-spotlight__body {
	padding: 56px 52px;
	min-width: 0;
	align-self: center;
}
.ph-spotlight__title {
	font-family: var(--ph-serif);
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.12;
	text-wrap: pretty;
	margin-top: 18px;
}
.ph-spotlight__title a { text-decoration: none; }
.ph-spotlight__rows {
	margin: 28px 0 0;
	padding: 0;
	max-width: 560px;
	list-style: none;
}
.ph-spotlight__row {
	display: flex;
	gap: 18px;
	padding: 14px 0;
	border-bottom: 1px solid var(--ph-rule-dark-2);
	font-size: 14px;
	line-height: 1.5;
}
.ph-spotlight__row:last-child { border-bottom: 0; }
.ph-spotlight__row-label {
	color: var(--ph-gold);
	font-family: var(--ph-serif);
	font-size: 17px;
	flex: 0 0 70px;
	line-height: 1.3;
}
.ph-spotlight .ph-btn { margin-top: 30px; }

/* ==========================================================================
   12. Front page — neighbourhood index
   ========================================================================== */

.ph-hoods__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}
.ph-hood {
	border: 1px solid var(--ph-rule-strong);
	padding: 18px 16px;
	text-decoration: none;
	display: block;
	min-width: 0;
	transition: border-color .16s ease, background-color .16s ease;
}
.ph-hood:hover, .ph-hood:focus-visible {
	border-color: var(--ph-navy);
	background: var(--ph-cream-shade);
}
.ph-hood__name {
	font-family: var(--ph-serif);
	font-size: 17px;
	line-height: 1.25;
	display: block;
}
.ph-hood:hover .ph-hood__name { color: var(--ph-gold-deep); }
.ph-hood__desc {
	font-size: 11.5px;
	color: var(--ph-muted);
	margin-top: 5px;
	display: block;
	line-height: 1.45;
}

/* ==========================================================================
   13. Newsletter
   ========================================================================== */

.ph-newsletter {
	border-top: 1px solid var(--ph-rule);
	padding-block: 48px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}
.ph-newsletter__title {
	font-family: var(--ph-serif);
	font-size: clamp(23px, 2.2vw, 28px);
	line-height: 1.2;
}
.ph-newsletter__blurb {
	font-size: 14px;
	color: var(--ph-ink-soft);
	margin: 8px 0 0;
	max-width: 52ch;
}
.ph-newsletter__form { display: flex; flex-wrap: wrap; gap: 0; }
.ph-newsletter__form input[type="email"] {
	border: 1px solid var(--ph-navy);
	border-right: none;
	background: transparent;
	padding: 14px 20px;
	font-size: 13.5px;
	width: 280px;
	max-width: 100%;
	min-width: 0;
	color: var(--ph-navy);
}
.ph-newsletter__form input[type="email"]::placeholder { color: var(--ph-muted); }
.ph-newsletter__form .ph-btn { padding: 14px 24px; }
.ph-newsletter__note {
	font-size: 11.5px;
	color: var(--ph-muted);
	margin: 10px 0 0;
	flex-basis: 100%;
}

/* ==========================================================================
   14. Archive
   ========================================================================== */

.ph-breadcrumb {
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ph-muted);
	margin-bottom: 14px;
	line-height: 1.7;
}
.ph-breadcrumb a { color: var(--ph-muted); text-decoration: none; }
.ph-breadcrumb a:hover, .ph-breadcrumb a:focus-visible { color: var(--ph-gold-deep); text-decoration: underline; }
.ph-breadcrumb__current { color: var(--ph-gold-deep); }
.ph-breadcrumb__sep { padding: 0 .4em; }

.ph-archive-head {
	padding-block: 52px 36px;
	border-bottom: 1px solid var(--ph-rule);
}
.ph-archive-head__title-row {
	display: flex;
	align-items: baseline;
	gap: 20px;
	flex-wrap: wrap;
}
.ph-archive-head__num {
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--ph-gold-deep);
	white-space: nowrap;
}
.ph-archive-head__title {
	font-family: var(--ph-serif);
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.08;
	text-wrap: pretty;
	min-width: 0;
}
.ph-archive-head__intro {
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--ph-ink-soft);
	max-width: 66ch;
	margin: 16px 0 0;
}

.ph-chips {
	display: flex;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
	align-items: center;
}
.ph-chip {
	display: inline-block;
	border: 1px solid var(--ph-rule-strongest);
	padding: 8px 16px;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.4;
	transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.ph-chip:hover, .ph-chip:focus-visible {
	border-color: var(--ph-navy);
	background: var(--ph-cream-shade);
}
.ph-chip.is-active,
.ph-chip[aria-current="page"] {
	background: var(--ph-navy);
	border-color: var(--ph-navy);
	color: var(--ph-cream);
}
.ph-chips__sort { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ph-chips__sort label {
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ph-muted);
}
.ph-chips__sort select {
	border: 1px solid var(--ph-rule-strongest);
	background: transparent;
	padding: 7px 12px;
	font-size: 12px;
	letter-spacing: .06em;
	min-height: 36px;
	color: var(--ph-navy);
}
.ph-chips__sort noscript button { margin-left: 8px; }

/* Pagination */
.ph-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 34px var(--ph-gutter);
	font-size: 13px;
	font-weight: 500;
	flex-wrap: wrap;
}
.ph-pagination .page-numbers {
	border: 1px solid var(--ph-rule-strongest);
	min-width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	text-decoration: none;
	letter-spacing: .04em;
}
.ph-pagination .page-numbers:hover,
.ph-pagination .page-numbers:focus-visible { background: var(--ph-cream-shade); }
.ph-pagination .page-numbers.current {
	background: var(--ph-navy);
	border-color: var(--ph-navy);
	color: var(--ph-cream);
}
.ph-pagination .page-numbers.dots { border-color: transparent; }

/* ==========================================================================
   15. Single article
   ========================================================================== */

.ph-article__head {
	max-width: 1000px;
	margin-inline: auto;
	padding: 56px var(--ph-gutter) 0;
}
.ph-article__title {
	font-family: var(--ph-serif);
	font-size: clamp(32px, 4vw, 50px);
	line-height: 1.08;
	text-wrap: pretty;
}
.ph-article__meta {
	display: flex;
	gap: 26px;
	align-items: center;
	flex-wrap: wrap;
	margin: 26px 0 34px;
	padding: 16px 0;
	border-top: 1px solid var(--ph-rule);
	border-bottom: 1px solid var(--ph-rule);
	font-size: 12.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ph-muted);
	list-style: none;
}
.ph-article__byline {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--ph-navy);
	font-weight: 600;
}
.ph-article__byline a { text-decoration: none; color: inherit; }
.ph-article__byline a:hover { color: var(--ph-gold-deep); }
.ph-article__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ph-gold);
	flex: 0 0 28px;
	overflow: hidden;
}
.ph-article__avatar img { border-radius: 50%; width: 100%; height: 100%; }
.ph-article__badge { color: var(--ph-gold-deep); font-weight: 600; }

.ph-article__hero {
	max-width: var(--ph-wrap-narrow);
	margin-inline: auto;
	height: clamp(200px, 30vw, 420px);
}
.ph-article__hero-caption {
	max-width: var(--ph-wrap-narrow);
	margin: 10px auto 0;
	padding-inline: var(--ph-gutter);
	font-size: 11.5px;
	color: var(--ph-muted);
	letter-spacing: .04em;
}

.ph-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 56px;
	max-width: var(--ph-wrap-narrow);
	margin-inline: auto;
	padding: 48px var(--ph-gutter);
	align-items: start;
}
.ph-article__body { max-width: var(--ph-measure); min-width: 0; }
.ph-article__layout--full {
	grid-template-columns: minmax(0, 1fr);
	max-width: 1000px;
}

/* Prose */
.ph-prose {
	font-size: 16px;
	line-height: 1.8;
	color: var(--ph-ink-soft);
}
.ph-prose > p { margin: 0 0 24px; }
.ph-prose > p:last-child { margin-bottom: 0; }
.ph-prose h2 {
	font-family: var(--ph-serif);
	font-size: clamp(25px, 2.4vw, 31px);
	line-height: 1.2;
	color: var(--ph-navy);
	margin: 48px 0 16px;
	text-wrap: pretty;
	scroll-margin-top: 96px;
}
.ph-prose h3 {
	font-family: var(--ph-serif);
	font-size: 22px;
	line-height: 1.25;
	color: var(--ph-navy);
	margin: 34px 0 12px;
	scroll-margin-top: 96px;
}
.ph-prose h4 {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ph-navy);
	margin: 30px 0 10px;
}
.ph-prose h2:first-child, .ph-prose h3:first-child { margin-top: 0; }
.ph-prose ul, .ph-prose ol { margin: 0 0 24px; padding-left: 1.35em; }
.ph-prose li { margin-bottom: .5em; }
.ph-prose li::marker { color: var(--ph-gold-deep); }
.ph-prose strong { color: var(--ph-navy); font-weight: 600; }
.ph-prose a { color: var(--ph-navy); text-decoration: underline; text-decoration-color: var(--ph-gold); }
.ph-prose a:hover, .ph-prose a:focus-visible { color: var(--ph-gold-deep); text-decoration-color: currentColor; }
.ph-prose img { margin-block: 8px; }
.ph-prose figure { margin: 34px 0; }
.ph-prose figcaption {
	font-size: 11.5px;
	color: var(--ph-muted);
	letter-spacing: .04em;
	margin-top: 10px;
	line-height: 1.5;
}
.ph-prose blockquote {
	margin: 34px 0;
	padding: 26px 0;
	border-top: 2px solid var(--ph-gold);
	border-bottom: 1px solid var(--ph-rule);
	font-family: var(--ph-serif);
	font-size: clamp(21px, 2vw, 26px);
	line-height: 1.35;
	font-style: italic;
	color: var(--ph-navy);
}
.ph-prose blockquote p { margin-bottom: .5em; }
.ph-prose blockquote cite {
	display: block;
	font-family: var(--ph-sans);
	font-style: normal;
	font-size: 11.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ph-muted);
	margin-top: 14px;
}
.ph-prose code {
	font-family: var(--ph-mono);
	font-size: .88em;
	background: var(--ph-cream-shade);
	padding: .15em .4em;
}
.ph-prose pre {
	font-family: var(--ph-mono);
	font-size: 13px;
	line-height: 1.6;
	background: var(--ph-cream-shade);
	border: 1px solid var(--ph-rule);
	padding: 20px;
	overflow-x: auto;
	margin: 30px 0;
}
.ph-prose pre code { background: none; padding: 0; }

/* Tables scroll rather than widening the page. */
.ph-table-scroll { overflow-x: auto; margin: 30px 0; -webkit-overflow-scrolling: touch; }
.ph-prose table {
	border-collapse: collapse;
	width: 100%;
	font-size: 14px;
	line-height: 1.5;
}
.ph-prose th, .ph-prose td {
	border-bottom: 1px solid var(--ph-rule);
	padding: 11px 14px;
	text-align: left;
	vertical-align: top;
}
.ph-prose th {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ph-navy);
	font-weight: 600;
	border-bottom-color: var(--ph-rule-strongest);
}

/* Embeds keep an aspect ratio — an iframe has none of its own. */
.ph-prose iframe,
.ph-prose .wp-block-embed__wrapper iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}
.ph-prose .wp-block-embed { margin: 34px 0; }

/* Drop cap */
.ph-prose .ph-lede {
	font-size: 17.5px;
	line-height: 1.8;
	color: var(--ph-ink-body);
}
.ph-dropcap .ph-lede::first-letter {
	font-family: var(--ph-serif);
	font-size: 3.1em;
	float: left;
	line-height: .82;
	padding: .1em .18em 0 0;
	color: var(--ph-gold-deep);
}

/* Pull quote (block style) */
.ph-pullquote {
	border-top: 2px solid var(--ph-gold);
	border-bottom: 1px solid var(--ph-rule);
	padding: 26px 0;
	margin: 34px 0;
	font-family: var(--ph-serif);
	font-size: clamp(21px, 2vw, 26px);
	line-height: 1.35;
	font-style: italic;
	color: var(--ph-navy);
}

/* Practical box */
.ph-practical {
	background: var(--ph-cream-shade);
	border: 1px solid var(--ph-rule);
	padding: 24px 26px;
	margin: 34px 0;
}
.ph-practical__title { margin-bottom: 14px; letter-spacing: .24em; font-size: 11px; }
.ph-practical__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 28px;
	font-size: 13.5px;
	line-height: 1.5;
	margin: 0;
	color: var(--ph-ink-soft);
}
.ph-practical__grid > div { min-width: 0; }
.ph-practical__label { color: var(--ph-navy); font-weight: 600; }

/* Tag list under the article */
.ph-article__tags {
	margin-top: 40px;
	padding-top: 22px;
	border-top: 1px solid var(--ph-rule);
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}
.ph-article__tags .ph-eyebrow { margin-right: 6px; }

/* Author box */
.ph-authorbox {
	margin-top: 40px;
	padding: 26px;
	border: 1px solid var(--ph-rule-strong);
	display: flex;
	gap: 20px;
	align-items: flex-start;
}
.ph-authorbox__avatar { flex: 0 0 56px; }
.ph-authorbox__avatar img { border-radius: 50%; width: 56px; height: 56px; }
.ph-authorbox__name { font-family: var(--ph-serif); font-size: 20px; line-height: 1.2; }
.ph-authorbox__bio { font-size: 13.5px; line-height: 1.65; color: var(--ph-ink-soft); margin: 8px 0 0; }

/* Prev/next */
.ph-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border-top: 1px solid var(--ph-rule);
	margin-top: 40px;
}
.ph-postnav__link {
	padding: 24px 26px;
	text-decoration: none;
	display: block;
	min-width: 0;
}
.ph-postnav__link + .ph-postnav__link { border-left: 1px solid var(--ph-rule); }
.ph-postnav__link--next { text-align: right; }
.ph-postnav__title { font-family: var(--ph-serif); font-size: 18px; line-height: 1.25; margin-top: 8px; display: block; }
.ph-postnav__link:hover .ph-postnav__title { color: var(--ph-gold-deep); }

/* ==========================================================================
   16. Article sidebar
   ========================================================================== */

.ph-sidebar {
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
}
.ph-sidebar > * { min-width: 0; }
.ph-sidebar--sticky {
	position: sticky;
	top: 96px;
	align-self: start;
	max-height: calc(100vh - 112px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ph-panel {
	border: 1px solid var(--ph-rule-strong);
	padding: 22px;
}
.ph-panel__title {
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--ph-gold-deep);
	margin-bottom: 16px;
	display: block;
	font-weight: 500;
}
.ph-panel--dark {
	background: var(--ph-navy);
	color: var(--ph-cream);
	border-color: var(--ph-navy);
	padding: 24px;
}
.ph-panel--dark .ph-panel__title { color: var(--ph-gold); margin-bottom: 14px; }
.ph-panel--dark a:not(.ph-btn) { color: var(--ph-cream); }
.ph-panel--dark a:not(.ph-btn):hover,
.ph-panel--dark a:not(.ph-btn):focus-visible { color: var(--ph-gold); }
.ph-panel--centre { text-align: center; }

.ph-toc__list {
	display: flex;
	flex-direction: column;
	gap: 11px;
	font-size: 13.5px;
	line-height: 1.4;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.ph-toc__list a { text-decoration: none; display: block; }
.ph-toc__list a:hover, .ph-toc__list a:focus-visible { color: var(--ph-gold-deep); }
.ph-toc__list .is-current > a { color: var(--ph-gold-deep); font-weight: 600; }
.ph-toc__list .ph-toc__is-sub { padding-left: 14px; font-size: 12.5px; }
.ph-toc__list .ph-toc__is-sub a { color: var(--ph-muted); }
.ph-toc__list .ph-toc__is-sub a:hover, .ph-toc__list .ph-toc__is-sub a:focus-visible { color: var(--ph-gold-deep); }

.ph-related__list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ph-related__item {
	border-bottom: 1px solid var(--ph-rule-dark-2);
	padding-bottom: 14px;
}
.ph-related__item:last-child { border-bottom: 0; padding-bottom: 0; }
.ph-related__item a {
	font-family: var(--ph-serif);
	font-size: 17px;
	line-height: 1.3;
	text-decoration: none;
	display: block;
}

.ph-signup__title { font-family: var(--ph-serif); font-size: 19px; line-height: 1.2; }
.ph-signup__blurb { font-size: 12.5px; color: var(--ph-muted); margin: 8px 0 16px; line-height: 1.5; }
.ph-signup .ph-btn { padding: 11px; font-size: 12px; letter-spacing: .08em; }
.ph-signup input[type="email"] {
	width: 100%;
	border: 1px solid var(--ph-rule-strongest);
	background: transparent;
	padding: 11px 14px;
	font-size: 13px;
	margin-bottom: 10px;
	min-width: 0;
}

/* Widgets, if the user adds any */
.ph-panel .widget + .widget { margin-top: 24px; }
.ph-panel ul { list-style: none; padding-left: 0; margin: 0; }
.ph-panel li + li { margin-top: 10px; }
.ph-panel .widget-title {
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--ph-gold-deep);
	margin-bottom: 14px;
	font-weight: 500;
}

/* ==========================================================================
   17. Page / search / 404 / comments
   ========================================================================== */

.ph-page__head {
	padding-block: 52px 0;
	max-width: 1000px;
	margin-inline: auto;
}
.ph-page__title {
	font-family: var(--ph-serif);
	font-size: clamp(32px, 4vw, 50px);
	line-height: 1.08;
	text-wrap: pretty;
}
.ph-page__body {
	max-width: var(--ph-measure);
	margin-inline: auto;
	padding-block: 40px 64px;
}

.ph-notice {
	max-width: var(--ph-measure);
	padding-block: 60px 80px;
}
.ph-notice__title { font-family: var(--ph-serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.ph-notice__text { font-size: 16px; line-height: 1.7; color: var(--ph-ink-soft); margin: 18px 0 28px; }

.ph-comments {
	margin-top: 48px;
	padding-top: 34px;
	border-top: 1px solid var(--ph-rule);
}
.ph-comments__title { font-family: var(--ph-serif); font-size: 26px; line-height: 1.2; margin-bottom: 24px; }
.ph-comments .comment-list { list-style: none; padding: 0; margin: 0; }
.ph-comments .comment-list ol.children { list-style: none; padding-left: 26px; }
.ph-comments .comment-body {
	padding: 20px 0;
	border-bottom: 1px solid var(--ph-rule);
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--ph-ink-soft);
}
.ph-comments .comment-author { font-weight: 600; color: var(--ph-navy); }
.ph-comments .comment-author img { border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 10px; }
.ph-comments .comment-metadata { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ph-muted); margin: 4px 0 10px; }
.ph-comments .comment-metadata a { color: var(--ph-muted); text-decoration: none; }
.ph-comments .reply { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.ph-comments .comment-respond { margin-top: 32px; }
.ph-comments .comment-reply-title { font-family: var(--ph-serif); font-size: 22px; margin-bottom: 6px; }
.ph-comments input[type="text"],
.ph-comments input[type="email"],
.ph-comments input[type="url"],
.ph-comments textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--ph-rule-strongest);
	background: transparent;
	padding: 12px 14px;
	font-size: 14px;
	margin-top: 6px;
}
.ph-comments .comment-form-comment label,
.ph-comments .comment-form-author label,
.ph-comments .comment-form-email label,
.ph-comments .comment-form-url label {
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ph-muted);
}
.ph-comments .form-submit input[type="submit"] {
	display: inline-block;
	padding: 14px 26px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	border: 1px solid var(--ph-navy);
	background: var(--ph-navy);
	color: var(--ph-cream);
	cursor: pointer;
}
.ph-comments .comment-notes, .ph-comments .form-submit { margin-top: 16px; }

/* ==========================================================================
   18. Footer
   ========================================================================== */

.ph-footer {
	background: var(--ph-navy-deep);
	color: var(--ph-cream);
	padding-block: 52px 32px;
	margin-top: auto;
}
.ph-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--ph-rule-dark);
}
.ph-footer__grid > * { min-width: 0; }
.ph-footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.ph-footer__mark { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; overflow: hidden; }
.ph-footer__mark img, .ph-footer__mark svg { width: 100%; height: 100%; display: block; }
.ph-footer__name { font-family: var(--ph-serif); font-size: 19px; line-height: 1.1; }
.ph-footer__blurb { font-size: 13px; line-height: 1.7; color: var(--ph-foot-muted); max-width: 38ch; margin: 0; }
.ph-footer__heading {
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ph-gold);
	margin-bottom: 16px;
	font-weight: 500;
}
.ph-footer__list { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; margin: 0; padding: 0; list-style: none; }
.ph-footer__list a { color: var(--ph-foot-link); text-decoration: none; line-height: 1.4; }
.ph-footer__list a:hover, .ph-footer__list a:focus-visible { color: var(--ph-gold); text-decoration: underline; }
.ph-footer__list .sub-menu { display: none; }
.ph-footer__legal {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding-top: 22px;
	font-size: 12px;
	color: var(--ph-foot-legal);
}
.ph-footer__legal a { color: var(--ph-foot-legal); }
.ph-footer__legal a:hover { color: var(--ph-gold); }
.ph-footer a:focus-visible { outline-color: var(--ph-gold); }

.ph-footer--slim {
	padding-block: 28px;
}
.ph-footer--slim .ph-footer__legal { padding-top: 0; }

.ph-site { display: flex; flex-direction: column; min-height: 100vh; }
.ph-site > main { flex: 1 0 auto; }

/* ==========================================================================
   19. WordPress core / block support
   ========================================================================== */

.alignleft { float: left; margin: .4em 1.6em 1.2em 0; max-width: 50%; }
.alignright { float: right; margin: .4em 0 1.2em 1.6em; max-width: 50%; }
.aligncenter { margin-inline: auto; display: block; }
.ph-prose > .alignwide,
.ph-prose > .alignfull {
	width: auto;
	max-width: none;
	margin-inline: 0;
}
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption {
	font-size: 11.5px;
	color: var(--ph-muted);
	letter-spacing: .04em;
	margin-top: 10px;
	line-height: 1.5;
}
.sticky .ph-card__eyebrow::after { content: ' · Featured'; }
.wp-block-button__link { border-radius: 0 !important; }
.ph-prose .wp-block-separator { border-top: 1px solid var(--ph-rule); border-bottom: 0; margin: 40px 0; }
.ph-prose .wp-block-pullquote { border-top: 2px solid var(--ph-gold); border-bottom: 1px solid var(--ph-rule); padding: 26px 0; }
.ph-prose .wp-block-group.has-background { padding: 24px 26px; }
.ph-prose .wp-block-gallery { margin: 34px 0; }

/* Colour palette classes registered in theme.json */
.has-ph-navy-color { color: var(--ph-navy); }
.has-ph-navy-background-color { background-color: var(--ph-navy); }
.has-ph-navy-deep-color { color: var(--ph-navy-deep); }
.has-ph-navy-deep-background-color { background-color: var(--ph-navy-deep); }
.has-ph-cream-color { color: var(--ph-cream); }
.has-ph-cream-background-color { background-color: var(--ph-cream); }
.has-ph-cream-shade-color { color: var(--ph-cream-shade); }
.has-ph-cream-shade-background-color { background-color: var(--ph-cream-shade); }
.has-ph-gold-color { color: var(--ph-gold); }
.has-ph-gold-background-color { background-color: var(--ph-gold); }
.has-ph-gold-deep-color { color: var(--ph-gold-deep); }
.has-ph-gold-deep-background-color { background-color: var(--ph-gold-deep); }
.has-ph-ink-soft-color { color: var(--ph-ink-soft); }
.has-ph-muted-color { color: var(--ph-muted); }

/* ==========================================================================
   20. Responsive
   ========================================================================== */

@media (max-width: 1200px) {
	.ph-hoods__grid { grid-template-columns: repeat(4, 1fr); }
	.ph-article__layout { gap: 40px; grid-template-columns: minmax(0, 1fr) 268px; }
}

@media (max-width: 1080px) {
	.ph-featured__grid { grid-template-columns: 1fr 1fr; }
	.ph-featured__grid > .ph-card--lead { grid-column: 1 / -1; }
	.ph-catstrip { grid-template-columns: repeat(2, 1fr); }
	.ph-catstrip__item:nth-child(2n) { border-right: 0; }
	.ph-catstrip__item:nth-child(n + 3) { border-top: 1px solid var(--ph-rule); }
}

@media (max-width: 1024px) {
	.ph-hero { grid-template-columns: 1fr; }
	.ph-hero__media { order: -1; min-height: 0; height: clamp(220px, 42vw, 380px); }
	.ph-hero__text { padding: 44px var(--ph-gutter); }
	.ph-spotlight { grid-template-columns: 1fr; }
	.ph-spotlight__media { min-height: 0; height: clamp(220px, 42vw, 340px); }
	.ph-spotlight__body { padding: 44px var(--ph-gutter); }
	.ph-article__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.ph-article__body { max-width: none; }
	.ph-sidebar--sticky { position: static; max-height: none; overflow: visible; }
	.ph-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* Nav collapses below 900. */
@media (max-width: 900px) {
	.ph-nav-toggle { display: inline-flex; }
	.ph-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ph-cream);
		border-bottom: 1px solid var(--ph-rule);
		border-top: 1px solid var(--ph-rule);
		padding: 8px var(--ph-gutter) 24px;
		max-height: calc(100vh - 100%);
		overflow-y: auto;
	}
	.ph-nav.is-open { display: block; }
	.ph-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		font-size: 16px;
	}
	.ph-nav__list > li { border-bottom: 1px solid var(--ph-rule); }
	.ph-nav__list a {
		padding: 14px 0;
		display: block;
		border-bottom: 0;
	}
	.ph-nav__list a:hover, .ph-nav__list a:focus-visible { border-bottom: 0; color: var(--ph-gold-deep); }
	.ph-nav .current-menu-item > a { border-bottom: 0; }
	.ph-nav__list .sub-menu {
		position: static;
		display: block;
		border: 0;
		padding: 0 0 10px 16px;
		min-width: 0;
		background: none;
	}
	.ph-nav__list .sub-menu a { padding: 10px 0; font-size: 14.5px; }
	.ph-nav__cta { display: block; margin-top: 18px; }
	.ph-nav__cta .ph-btn { width: 100%; }
	.ph-cta-wide { display: none; }
	.ph-topbar__conditions { gap: 18px; }
	.ph-cardgrid, .ph-cardgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ph-cardgrid > .ph-card:nth-child(3n) { border-right: 1px solid var(--ph-rule); }
	.ph-cardgrid > .ph-card:nth-child(2n) { border-right: 0; }
	.ph-cardgrid > .ph-card:nth-child(n + 3) { border-top: 1px solid var(--ph-rule); }
	.ph-cardgrid > .ph-card:nth-child(-n + 2) { border-top: 0; }
}

@media (max-width: 860px) {
	.ph-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.ph-hoods__grid { grid-template-columns: repeat(3, 1fr); }
	.ph-postnav { grid-template-columns: 1fr; }
	.ph-postnav__link + .ph-postnav__link { border-left: 0; border-top: 1px solid var(--ph-rule); }
	.ph-postnav__link--next { text-align: left; }
}

@media (max-width: 720px) {
	.ph-topbar__inner { justify-content: flex-start; gap: 10px 18px; }
	.ph-topbar__conditions, .ph-topbar__links { gap: 14px; font-size: 11.5px; }
	.ph-featured__grid { grid-template-columns: 1fr; gap: 36px; }
	.ph-cardgrid, .ph-cardgrid--2 { grid-template-columns: 1fr; }
	.ph-cardgrid > .ph-card { border-right: 0 !important; }
	.ph-cardgrid > .ph-card + .ph-card { border-top: 1px solid var(--ph-rule) !important; }
	.ph-catstrip { grid-template-columns: 1fr; }
	.ph-catstrip__item { border-right: 0; }
	.ph-catstrip__item + .ph-catstrip__item { border-top: 1px solid var(--ph-rule); }
	.ph-hoods__grid { grid-template-columns: repeat(2, 1fr); }
	.ph-sidebar { grid-template-columns: minmax(0, 1fr); }
	.ph-newsletter { padding-block: 40px; gap: 24px; }
	.ph-newsletter__form { width: 100%; }
	.ph-newsletter__form input[type="email"] {
		width: auto;
		flex: 1 1 180px;
		border-right: 1px solid var(--ph-navy);
	}
	.ph-newsletter__form .ph-btn { flex: 0 0 auto; }
	.ph-practical__grid { grid-template-columns: 1fr; }
	.ph-article__head { padding-top: 40px; }
	.ph-article__layout { padding-block: 36px; }
	.ph-article__meta { gap: 12px 20px; }
	.ph-authorbox { flex-direction: column; gap: 14px; }
	.ph-chips__sort { margin-left: 0; flex-basis: 100%; }
}

/* Comfortable stacked link targets once the layout is one column. */
@media (max-width: 900px) {
	.ph-toc__list { gap: 4px; }
	.ph-toc__list a { padding-block: 6px; }
	.ph-footer__list { gap: 2px; }
	.ph-footer__list a { padding-block: 6px; display: inline-block; }
	.ph-topbar__conditions, .ph-topbar__links { row-gap: 6px; }
}

@media (max-width: 560px) {
	/* The lockup gives up its no-wrap so the search and menu buttons fit. */
	.ph-logo { flex: 0 1 auto; min-width: 0; }
	.ph-logo__text { min-width: 0; }
	.ph-logo__name { white-space: normal; }
	.ph-nav__actions { gap: 6px; }
}

@media (max-width: 520px) {
	.ph-hoods__grid { grid-template-columns: 1fr; }
	.ph-hero__stats { gap: 24px 32px; }
	.ph-logo__name { font-size: 20px; }
	.ph-logo__mark { width: 38px; height: 38px; flex-basis: 38px; }
	.ph-card__frame { height: 220px; }
	.ph-card--compact .ph-card__frame { height: 190px; }
	.ph-topbar__links { display: none; }
	.ph-hero__actions .ph-btn { flex: 1 1 100%; }
	.ph-dropcap .ph-lede::first-letter { font-size: 2.6em; }
}

/* ==========================================================================
   21. Print
   ========================================================================== */

@media print {
	.ph-topbar, .ph-nav, .ph-nav-toggle, .ph-search-toggle, .ph-sidebar,
	.ph-newsletter, .ph-footer, .ph-pagination, .ph-postnav, .ph-comments { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.ph-article__layout { display: block; padding: 0; }
	a { text-decoration: underline; }
}
