/* Port Hedland Pilots Heritage – theme styles that theme.json can't express. */

:root {
	--php-gutter: var(--wp--preset--spacing--gutter, clamp(16px, 4.5vw, 64px));
	--php-section: var(--wp--preset--spacing--60, clamp(48px, 6vw, 96px));
}

/* Remove the default gaps between header, main, footer and full-width sections */
.wp-site-blocks > * + *,
.php-flush > * + *,
.php-main > .php-flush { margin-block-start: 0; }
.php-main { padding-top: 0; padding-bottom: 0; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
:where(a) { text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--wp--preset--color--brand-red); outline-offset: 2px; }

/* ---------- Block styles ---------- */
p.is-style-eyebrow,
.is-style-eyebrow,
.wp-block-post-terms.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.4;
}
p.is-style-eyebrow:not(.has-text-color), .wp-block-post-terms.is-style-eyebrow a { color: var(--wp--preset--color--brand-red-dark); text-decoration: none; }
p.is-style-lead-serif { font-family: var(--wp--preset--font-family--serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: #24303C; }
.wp-block-group.is-style-card { background: #fff; border: 1px solid var(--wp--preset--color--rule); border-radius: 6px; padding: 28px; }

.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: var(--wp--preset--color--ink); padding: 13px 24px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; }
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); }

/* ---------- Header ---------- */
.php-header { position: relative; z-index: 20; }
.php-topbar { min-height: 40px; padding: 6px var(--php-gutter); gap: 16px; }
.php-topbar p { margin: 0; }
.php-topbar__label { font-family: var(--wp--preset--font-family--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.php-member-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.php-member-link:hover { color: #fff; text-decoration: underline; }
.php-masthead { min-height: 96px; padding: 12px var(--php-gutter); border-bottom: 1px solid var(--wp--preset--color--rule); gap: 24px; }
.php-brand { gap: 16px; }
.php-brand__logo { margin: 0; flex-shrink: 0; }
.php-brand__logo img { width: 64px; display: block; }
.php-brand__text { gap: 6px; }
.php-brand__name { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.php-brand__name a { color: var(--wp--preset--color--ink); text-decoration: none; }
.php-brand__tagline { margin: 0; font-size: 13px; font-style: italic; color: var(--wp--preset--color--muted); line-height: 1.2; }
.php-mainnav { gap: 36px; }
.php-nav .wp-block-navigation__container { gap: 32px; }
.php-nav a { color: var(--wp--preset--color--ink); text-decoration: none; }
.php-nav a:hover, .php-nav .current-menu-item > a { color: var(--wp--preset--color--brand-red-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.php-nav-cta .wp-block-button__link { padding: 12px 22px; font-size: 16px; }
@media (max-width: 1100px) {
	.php-topbar__label { font-size: 11px; }
	.php-mainnav .wp-block-buttons, .php-mainnav .php-nav-cta { display: none; }
}
@media (max-width: 600px) {
	.php-topbar__label { display: none; }
	.php-topbar { justify-content: flex-end !important; }
	.php-masthead { min-height: 68px; }
	.php-brand__logo img { width: 44px; }
	.php-brand__name { font-size: 20px; }
	.php-brand__tagline { display: none; }
}

/* ---------- Sections ---------- */
.php-section { padding-top: var(--php-section); padding-bottom: var(--php-section); }
.php-section--flush-top { padding-top: 0; }
.php-row { gap: 16px 48px; margin-bottom: 36px; }
.php-row h2, .php-row p { margin: 0; }
.php-row__note { max-width: 520px; color: #4A5562; }
.php-more { font-weight: 600; margin: 0; }
.php-more a { text-decoration: none; }
.php-more a:hover { text-decoration: underline; }
.has-navy-background-color h1, .has-navy-background-color h2, .has-navy-background-color h3 { color: #fff; }
.has-navy-background-color .php-more a, .has-navy-background-color a:not(.wp-block-button__link) { color: #fff; }

/* Hero */
.php-hero { padding: 0 var(--php-gutter) 64px !important; align-items: flex-end; }
.php-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(11,31,51,.9) 0%, rgba(11,31,51,.8) 50%, rgba(11,31,51,0) 88%); }
.php-hero .wp-block-cover__inner-container { z-index: 2; }
.php-hero__inner { gap: 32px; }
.php-hero__copy { max-width: 1000px; }
.php-hero__title { margin: 0; font-size: clamp(48px, 6.4vw, 92px); line-height: .92; color: #fff; }
.php-hero__text { margin: 0; max-width: 820px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: #E4E9EF; }
.php-hero .wp-block-buttons { gap: 14px; }

/* Banner (inner pages) */
.php-banner { padding: 0 var(--php-gutter) 64px !important; }
.php-banner h1 { margin: 12px 0 0; color: #fff; }

/* Page heading row */
.php-pagehead { padding-top: 72px; padding-bottom: 32px; }
.php-pagehead h1 { margin: 0; font-size: clamp(48px, 6vw, 80px); }
.php-pagehead__intro { margin: 8px 0 0; max-width: 640px; color: #4A5562; }

/* Stats band */
.php-stats { padding-top: 40px; padding-bottom: 40px; }
.php-stats__cols { gap: 32px; margin: 0; }
.php-stat__num { margin: 0 0 6px; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.php-stat__label { margin: 0; font-size: 15px; line-height: 1.4; }
@media (max-width: 781px) { .php-stats__cols { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

/* Farewell */
.php-farewell { gap: 80px; }
.php-farewell h2 { margin-top: 16px; }
.php-farewell p { margin-top: 0; margin-bottom: 18px; }

/* Members call-to-action */
.php-cta { gap: 0 !important; border: 1px solid var(--wp--preset--color--rule); border-radius: 6px; overflow: hidden; }
.php-cta__img, .php-cta__img img { margin: 0; height: 100%; }
.php-cta__img img { width: 100%; min-height: 360px; max-height: 460px; object-fit: cover; display: block; }
.php-cta__text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.php-cta__text h2, .php-cta__text p { margin: 0; }

/* Accreditation */
.php-accred { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--wp--preset--color--rule); }
.php-accred p { margin: 0; max-width: 820px; color: #4A5562; }
.php-accred .php-row { margin: 0; }
.php-accred__logos { gap: 40px; }
.php-accred__logos figure { margin: 0; }

/* Mission (Our story) */
.php-mission { border-left: 4px solid var(--wp--preset--color--brand-red); padding-left: 32px; gap: 12px; }
.php-mission__text { margin: 0; font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 22px; line-height: 1.55; }

/* ---------- Footer ---------- */
.php-footer { padding-top: 64px; padding-bottom: 40px; font-size: 15px; }
.php-footer__top { gap: 48px; margin-bottom: 40px; }
.php-footer__brand { gap: 20px; }
.php-footer__brand figure { margin: 0; }
.php-footer__name { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 26px; text-transform: uppercase; color: #fff; line-height: 1.1; }
.php-footer__years { margin: 0; font-family: var(--wp--preset--font-family--mono); font-size: 13px; letter-spacing: .1em; }
.php-footer__cols { gap: 64px; flex: 0 1 640px; margin: 0; }
.php-footer__h { margin: 0 0 10px; color: #fff; font-weight: 600; }
.php-footer__cols p:not(.php-footer__h) { margin: 0; line-height: 2; }
.php-footer a { color: #B9C4D0 !important; text-decoration: none; }
.php-footer a:hover { color: #fff !important; text-decoration: underline; }
.php-footer__bottom { border-top: 1px solid #22384F; padding-top: 24px; font-size: 13px; gap: 12px; color: #B9C4D0; }
.php-footer__bottom p { margin: 0; }

/* ---------- Generic pages ---------- */
.php-prose { padding-bottom: var(--php-section); }
.php-prose h2 { font-size: 32px; margin-top: 40px; }
.php-h1-small { font-size: clamp(34px, 4vw, 48px) !important; line-height: 1 !important; margin: 0 0 20px; }
.php-back { margin: 0 0 12px; font-size: 14px; }
.php-back a { text-decoration: none; }
.php-404 { padding: var(--php-section) 0; }

/* Single photo */
.php-photo { padding-top: 40px; padding-bottom: var(--php-section); }
.php-photo > .wp-block-columns { gap: 48px; }
.php-photo__img img { border-radius: 6px; width: 100%; max-height: 80vh; object-fit: contain; background: #0B1F33; }

/* Single story */
.php-story-head { padding-top: 56px; }
.php-story-title { font-family: var(--wp--preset--font-family--serif) !important; text-transform: none !important; font-weight: 400 !important; font-size: clamp(34px, 4.5vw, 54px) !important; line-height: 1.12 !important; margin: 12px 0 16px; }
.php-byline { gap: 6px; color: var(--wp--preset--color--muted); font-size: 15px; margin-bottom: 32px; }
.php-byline p, .php-byline > * { margin: 0; }
.php-story-hero img { border-radius: 6px; max-height: 70vh; object-fit: cover; width: 100%; }
.php-story-body { font-family: var(--wp--preset--font-family--serif); font-size: 20px; line-height: 1.7; }
.php-story-body > * { max-width: 760px; }

/* Comments */
.php-comments { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--wp--preset--color--rule); }
.php-comments h2 { font-size: 28px; }
.php-comments .wp-block-comment-template { padding: 0; list-style: none; }
.php-comment { padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--rule); }
.php-comment__author { font-weight: 600; }
.php-comment__date { color: var(--wp--preset--color--muted); font-size: 13px; }
.php-comments textarea { width: 100%; border: 1px solid #C9BFAE; border-radius: 4px; padding: 10px; font: inherit; }
.php-comments .comment-reply-title { font-family: var(--wp--preset--font-family--body); text-transform: none; font-size: 18px; }
.php-comments .form-submit input[type=submit] { background: var(--wp--preset--color--brand-red); color: #fff; border: 0; border-radius: 4px; padding: 12px 22px; font: 600 16px var(--wp--preset--font-family--body); cursor: pointer; }

/* Query grids */
.php-card-title { font-family: var(--wp--preset--font-family--body) !important; text-transform: none !important; font-size: 16px !important; font-weight: 500 !important; }
.php-card-title a { color: var(--wp--preset--color--ink); text-decoration: none; }

/* ---------- Members area layout ---------- */
.php-members { min-height: 100vh; gap: 0 !important; align-items: stretch !important; margin: 0 !important; }
.php-members__side { width: 272px; flex-shrink: 0; padding: 28px 20px; align-self: stretch; box-sizing: border-box; }
.php-members__side .phph-mnav { position: sticky; top: 28px; min-height: calc(100vh - 56px); }
.php-members__main { flex: 1 1 auto; min-width: 0; padding: 40px 48px 64px; max-width: 1240px; }
.php-members__main > .wp-block-post-content > * { margin-block-start: 0; }
@media (max-width: 900px) {
	.php-members { flex-direction: column !important; }
	.php-members__side { width: 100%; padding: 16px; }
	.php-members__side .phph-mnav { position: static; min-height: 0; }
	.php-members__side .phph-mnav { gap: 12px; }
	.php-members__side .phph-mnav ul { flex-direction: row; flex-wrap: wrap; }
	.php-members__side .phph-mnav ul a { padding: 8px 10px; font-size: 14px; }
	.php-members__side .phph-mnav__me { margin-top: 0; }
	.php-members__main { padding: 24px 16px 48px; }
}

/* ---------- Sign in / request access ---------- */
.php-access { min-height: 100vh; gap: 0 !important; margin: 0 !important; align-items: stretch !important; }
.php-access__img { flex: 0 0 52%; min-height: 100vh !important; padding: 56px !important; align-items: flex-end !important; position: sticky !important; top: 0; }
.php-access__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(11,31,51,.9) 0%, rgba(11,31,51,.8) 30%, rgba(11,31,51,0) 60%); }
.php-access__img .wp-block-cover__inner-container { z-index: 2; }
.php-access__quote { margin: 12px 0 0; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(30px, 3vw, 46px); line-height: 1; text-transform: uppercase; color: #fff; max-width: 620px; }
.php-access__main { flex: 1 1 auto; padding: 72px var(--php-gutter) !important; display: flex; flex-direction: column; justify-content: center; }
.php-access__brand { margin: 0 0 28px; }
.php-access__brand a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 22px; text-transform: uppercase; }
.php-access__logo { width: 48px; height: auto; }
.php-access__title { font-size: clamp(40px, 4vw, 52px) !important; margin: 8px 0 8px; }
.php-access__intro { color: #4A5562; margin: 0 0 24px; }
@media (max-width: 900px) {
	.php-access { flex-direction: column !important; }
	.php-access__img { flex-basis: auto; min-height: 220px !important; position: relative !important; padding: 24px !important; }
	.php-access__quote { font-size: 26px; }
	.php-access__main { padding: 32px 16px 56px !important; }
}
.php-cta.has-background { padding: 0 !important; }
.php-cta > .wp-block-column:first-child { align-self: stretch; }
.php-cta__img { height: 100%; }
@media (max-width: 781px) { .php-cta__img img { min-height: 240px; } }
@media (max-width: 781px) {
	.php-farewell { gap: 8px; }
	.php-hero { min-height: 560px !important; padding-bottom: 40px !important; }
	.php-hero .wp-block-buttons { gap: 10px; }
}
.php-header > * + *, .php-header .php-masthead { margin-block-start: 0 !important; }
@media (max-width: 600px) { .php-brand__logo img { width: 44px !important; } }
