/*
 * PhoenixSS: global styles that theme.json can't express. Loaded everywhere,
 * front end and editor. Colours, type and spacing are theme.json tokens
 * (var(--wp--preset--*), var(--wp--custom--*)); nothing here hardcodes them.
 *
 * Styles that belong to one block live with it and load only where it's used:
 *   assets/css/blocks/core-*.css   core blocks (buttons, navigation, ...)
 *   assets/css/carousel.css        shared by the carousel blocks
 *   src/<block>/style.css          Phoenix blocks
 */

:root {
	--pss-reviews-h: 54px;
	--pss-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--pss-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

img { max-width: 100%; height: auto; }

/* Sections are full-bleed and sit flush against each other and the footer.
   overflow-x: clip is a safety net so a stray element can never make the page
   scroll sideways (unlike hidden, it doesn't break position: sticky). */
.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > footer { margin-block-start: 0; }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
	word-wrap: normal !important;
}

/* Focus ring, in an orange that reads on whatever is behind it (WCAG 2.4.7 and
   1.4.11, at least 3:1): the deepest orange on light surfaces (5.2:1 on cream),
   the bright one on dark surfaces and photos, black on orange panels. */
:root { --pss-focus: var(--wp--preset--color--brand-ember-deeper); }
:where(.has-surface-ink-background-color, .has-surface-ink-2-background-color, .has-principles-glow-gradient-background, .has-footer-glow-gradient-background, .has-hero-glow-gradient-background, .pss-header, .wp-block-cover, .wp-block-navigation__responsive-container.is-menu-open) { --pss-focus: var(--wp--preset--color--brand-ember); }
:where(.has-brand-ember-background-color, .has-brand-ember-deep-background-color, .has-brand-ember-deeper-background-color, .pss-ribbon) { --pss-focus: var(--wp--preset--color--surface-ink); }
/* The skip link shows over the black header wherever it sits in the page. */
:where(.skip-link) { --pss-focus: var(--wp--preset--color--brand-ember); }
:where(a, button, input, select, textarea, summary, [role="combobox"]):focus-visible {
	outline: 2px solid var(--pss-focus);
	outline-offset: 3px;
}

/* Dark sections: links and headings read on black. */
:where(.has-surface-ink-background-color, .has-surface-ink-2-background-color, .has-principles-glow-gradient-background, .has-footer-glow-gradient-background, .pss-header) a:where(:not(.wp-element-button)) {
	color: inherit;
}

/* Headings break into even lines (no single word left on the last one). */
:is(h1, h2, h3).wp-block-heading { text-wrap: balance; }

/* Line height by text style, whatever the heading level: H3 headings are
   tight (1.1; raised from Figma's 36/140% when the headings grew in Nov 2026),
   paragraphs in the H3 size keep 140%, H4 is 24/30. (A section heading is
   often an <h2> set in the H3 size, and card titles <h3>s in the H4 size.)
   Blocks with their own line height keep it. */
:where(h1, h2, h3, h4, h5, h6).has-h-3-font-size { line-height: 1.1; }
:where(p).has-h-3-font-size { line-height: 1.4; }
:where(h1, h2, h3, h4, h5, h6, p).has-h-4-font-size { line-height: 1.25; }
:where(h1, h2, h3, h4, h5, h6, p).has-h-3-lg-font-size { line-height: 1.1; }

/* ----------------------------------------------------------------- Header
 * Template part (patterns/header.php). Figma: Desktop Designs → Nav (≥1200px)
 * and Mobile Designs → Nav (<1200px); the menu itself: blocks/core-navigation.css.
 */

/* The header stays at the top of the window: scrolling down slides it away,
   scrolling back up brings it back (main.js sets html.pss-header-hidden), as
   on pmkennedy.com.au. It stays put while the mobile menu is open or a
   keyboard user is in it. --pss-header-offset is its visible height, for sticky elements. */
:root { --pss-header-h: 80px; }
html:not(.pss-header-hidden) { --pss-header-offset: var(--pss-header-h); }
/* Whatever scrolls into view (keyboard focus, anchor links) stays clear of
   the header, which returns as you scroll up (WCAG 2.4.11). */
html { scroll-padding-top: calc(var(--pss-header-h) + 16px); }
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	transition: translate 0.45s var(--pss-ease);
}
.pss-header-hidden:not(.has-modal-open) .wp-site-blocks > header.wp-block-template-part:not(:has(:focus-visible)) { translate: 0 -100%; }
@media (max-width: 600px) {
	/* The admin bar scrolls away with the page on phones. */
	.wp-site-blocks > header.wp-block-template-part { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.wp-site-blocks > header.wp-block-template-part { transition: none; }
}

.wp-block-group.pss-header {
	position: relative;
	z-index: 50;
	gap: var(--wp--preset--spacing--xxl);
	padding-block: 18px;
}
.pss-header .pss-logo { margin: 0; flex-shrink: 0; }
/* Block, not core's inline-block: no text-baseline gap under the logo (80px bar, Figma). */
.pss-header .pss-logo a { display: block; }
.pss-header .pss-logo img { display: block; width: 191px; height: 44px; }
.wp-block-group.pss-header__right { gap: var(--wp--preset--spacing--xxl); }

.pss-header__ctas.wp-block-buttons { gap: 12px; }
.pss-header__ctas .wp-block-button__link {
	padding: 10px 18px;
	border-radius: var(--wp--custom--radius--sm);
	font-size: var(--wp--preset--font-size--caption);
	white-space: nowrap;
}

/* With the menu button showing, the bar is just the logo and the menu button:
   Find Work and Find Talent are in the menu (client, Nov 2026). */
@media (max-width: 1199.98px) {
	.pss-header .pss-header__ctas { display: none; }
}
@media (max-width: 781.98px) {
	.wp-block-group.pss-header { gap: 12px; padding-block: 8px; }
	.pss-header .pss-logo img { width: clamp(96px, 31vw, 139px); height: auto; aspect-ratio: 139 / 32; }
}

/* ----------------------------------------------------------- Reviews bar */

.pss-reviews-bar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 40;
	margin: 0 !important;
}
.pss-reviews-bar p { margin: 0; }
.pss-reviews-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pss-stars { color: var(--wp--custom--reviews--stars); letter-spacing: 3px; margin-inline: 8px; }

/* Keep the fixed bar from covering content or focused links (WCAG 2.4.11). */
body:has(.pss-reviews-bar) { padding-bottom: var(--pss-reviews-h); }
html:has(.pss-reviews-bar) { scroll-padding-bottom: calc(var(--pss-reviews-h) + 16px); }

/* Phoenix's Trustpilot rating (inc/trustpilot.php): word, score, logo. */
.pss-reviews-bar a.pss-trustpilot {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 12px;
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
}
.pss-reviews-bar a.pss-trustpilot strong { font-weight: 600; }
.pss-reviews-bar a.pss-trustpilot:hover span,
.pss-reviews-bar a.pss-trustpilot:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.pss-trustpilot__logo { display: block; width: auto; height: 22px; }

/* Phones: the design has no pinned bar, so it becomes a strip above the footer. */
@media (max-width: 781px) {
	.pss-reviews-bar { position: static; }
	body:has(.pss-reviews-bar) { padding-bottom: 0; }
	html:has(.pss-reviews-bar) { scroll-padding-bottom: 0; }
}

/* ----------------------------------------------------------------- Footer */

.pss-footer a:hover { color: var(--wp--preset--color--brand-ember); }
.pss-footer__links p { line-height: 1.25; } /* 14px apart, 30px line to line (Figma) */
.pss-footer .wp-block-social-links .wp-social-link a { padding: 0; }

/* Phones (Figma: Mobile Designs → Footer): Services and Candidates side by
   side, Company below. Core keeps "not stacked on mobile" columns on one
   line with !important, hence the longer selector. */
@media (max-width: 781px) {
	.wp-block-columns.is-not-stacked-on-mobile.pss-footer__links {
		flex-wrap: wrap !important;
		gap: var(--wp--preset--spacing--2-xl) var(--wp--preset--spacing--xxl);
	}
	.pss-footer__links > .wp-block-column { flex-basis: calc(50% - var(--wp--preset--spacing--xxl) / 2) !important; flex-grow: 0; }
}

/* --------------------------------------------------------- Card photos
 * Parallax (main.js, as on prs.au): card photos drift against the scroll in
 * their frames. They're drawn 18% larger so no edge shows, and move at most
 * 8% of the frame's height. Not for visitors who prefer reduced motion.
 */
img.pss-parallax {
	transform: translate3d(0, var(--pss-parallax, 0px), 0) scale(1.18);
	transition: opacity 0.3s var(--pss-ease);
	will-change: transform;
}
.wp-block-cover:has(> .pss-parallax) { overflow: clip; }

/* Desktop dropdowns opened by hovering close with Escape until the pointer
   leaves them (WCAG 1.4.13; main.js adds the class). */
.pss-nav .has-child.pss-submenu-closed > .wp-block-navigation__submenu-container {
	visibility: hidden !important;
	opacity: 0 !important;
}

/* Hover prompt (main.js): on a mouse, an ember pill with the card's link text
   ("Learn more") follows the pointer over card photos. It sits beside the
   pointer, which stays visible (people with enlarged or high-contrast pointers
   keep them), and Escape dismisses it (WCAG 1.4.13). Decorative: the cards'
   own links say the same. */
.pss-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 60;
	padding: 10px 18px;
	border-radius: 99px;
	background: var(--wp--preset--color--brand-ember-deep);
	color: #fff;
	font-family: var(--wp--preset--font-family--label);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	scale: 0.6;
	transform: translate(16px, 18px);
	transform-origin: 0 0;
	transition: opacity 0.18s var(--pss-ease), scale 0.25s var(--pss-ease-out);
}
.pss-cursor.is-on { opacity: 1; scale: 1; }
.pss-has-cursor :is(.pss-industry-panel, .pss-industry-card, .pss-card__image, .pss-photo-card),
.pss-has-cursor :is(.pss-industry-panel, .pss-industry-card, .pss-card__image, .pss-photo-card) * { cursor: pointer; }
.pss-photo-click { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
	.pss-cursor { transition: none; scale: 1; }
}

/* ----------------------------------------------------------------- Motion
 * Scroll reveal: add `reveal` to a block (fades up once as it scrolls into
 * view) or `reveal-stagger` to a container (its children follow one another).
 * html.pss-motion is set in <head> (functions.php) only when JavaScript and
 * IntersectionObserver are available and the visitor hasn't asked for reduced
 * motion; without it none of this applies and content is simply visible.
 * Only opacity and transform change, so nothing shifts the layout.
 */

.pss-motion :is(.reveal, .reveal-stagger > *) {
	opacity: 0;
	transform: translate3d(0, 20px, 0);
	transition:
		opacity 650ms var(--pss-ease-out) var(--pss-reveal-delay, 0ms),
		transform 650ms var(--pss-ease-out) var(--pss-reveal-delay, 0ms);
}
.pss-motion :is(.reveal.is-revealed, .reveal-stagger.is-revealed > *) {
	opacity: 1;
	transform: none;
}
/* Role tags (List style "Chips", main.js adds .pss-chips-pop): each pops up
   with a little overshoot, one after another in reading order. */
.pss-motion .pss-chips-pop > li {
	opacity: 0;
	transform: translate3d(0, 16px, 0) scale(0.88);
	transition:
		opacity 0.4s var(--pss-ease-out) var(--pss-reveal-delay, 0ms),
		transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) var(--pss-reveal-delay, 0ms);
}
.pss-motion .pss-chips-pop.is-revealed > li {
	opacity: 1;
	transform: none;
}

/* Failsafe: if main.js never runs, show everything after 3s. */
.pss-motion:not(.pss-motion-ready) :is(.reveal, .reveal-stagger > *) {
	animation: pss-reveal-failsafe 1ms linear 3s forwards;
}
@keyframes pss-reveal-failsafe {
	to { opacity: 1; transform: none; }
}

/* Home hero: the orange words ("rise together.") rise into place on load,
   word by word, each from behind its own line (main.js wraps the words).
   Hidden from the first paint until then; the failsafe above shows them if
   main.js never runs. */
.pss-motion .home .has-embers h1 mark:not(.is-split) { opacity: 0; }
.pss-motion:not(.pss-motion-ready) .home .has-embers h1 mark { animation: pss-reveal-failsafe 1ms linear 3s forwards; }
.pss-rise { display: inline-block; overflow: hidden; padding-block: 0.06em; margin-block: -0.06em; vertical-align: top; }
.pss-rise__word { display: inline-block; animation: pss-rise 1s var(--pss-ease-out) var(--pss-rise-delay, 0ms) both; }
@keyframes pss-rise {
	from { transform: translate3d(0, 110%, 0); }
	to { transform: none; }
}

/* Home hero entrance: the headline rises in, then the intro and buttons
   (CSS only, so it plays even before main.js). The orange words keep their
   word-by-word rise above. */
.pss-motion .home .has-embers h1 { animation: pss-hero-in 0.9s var(--pss-ease-out) both; }
.pss-motion .home .has-embers h1 + .wp-block-group { animation: pss-hero-in 0.9s var(--pss-ease-out) 0.55s both; }
.pss-motion .home .has-embers .wp-block-buttons { animation: pss-hero-in 0.9s var(--pss-ease-out) 0.7s both; }
@keyframes pss-hero-in {
	from { opacity: 0; transform: translate3d(0, 28px, 0); }
}

/* Orange words in headings over the peach glow: the deeper orange, so they
   keep at least 3:1 where the glow is strongest (WCAG 1.4.3, large text). */
.has-intro-glow-gradient-background { --pss-mark: var(--wp--preset--color--brand-ember-deep); }
.has-intro-glow-gradient-background :is(h1, h2, h3) mark.has-brand-ember-color { color: var(--pss-mark) !important; }

/* Orange sweep: main.js adds .pss-sweep to the orange words in headings (only
   with motion on) and .is-swept once they're in view; ember then sweeps across
   them from the heading's own colour (--pss-sweep-from). Skipped in forced
   colours, where the text keeps its normal colour. */
@media (forced-colors: none) {
	mark.pss-sweep {
		background-image: linear-gradient(90deg, var(--pss-mark, var(--wp--preset--color--brand-ember)) 0 46%, var(--pss-sweep-from, currentColor) 54% 100%);
		background-size: 220% 100%;
		background-position: 100% 0;
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		transition: background-position 1.3s var(--pss-ease-out) 0.35s;
	}
	mark.pss-sweep.is-swept { background-position: 0 0; }
}

/* Count-up numbers (Paragraph style "Count up"). */
.is-style-count-up { font-variant-numeric: tabular-nums; }

/* Buttons and links ending in an arrow ("Search jobs →"): the arrow nudges
   right on hover. inc/blocks.php wraps the arrow typed in the content. */
.pss-arrow { display: inline-block; transition: translate 0.25s var(--pss-ease); }
.pss-arrow-group { white-space: nowrap; } /* the arrow never wraps away from its word */
:is(a, button):is(:hover, :focus-visible) .pss-arrow { translate: 4px 0; }
@media (prefers-reduced-motion: reduce) {
	.pss-arrow { transition: none; }
}

/* `has-embers` on a hero Group once added the ember video and its still
   frame. The client asked for them to go (Nov 2026); the class stays on the
   heroes because it still marks the Home hero for its entrance (above) and
   text heroes for image loading (inc/images.php). */

/* -------------------------------------------------------------- Dropdowns
 * One menu style for every list that opens from a field (main.js): the Job
 * Search location suggestions and the dropdowns in forms (Job Search filters,
 * Upload CV), on white with the site's radius, shadow and peach highlight, as
 * on SEEK. Dropdowns keep the browser's own picker on phones (below 600px);
 * the <select> underneath always holds the value.
 */

.pss-suggest {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 20;
	padding: 8px 0;
	border: 1px solid var(--wp--custom--line--paper);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface-paper-2);
	box-shadow: var(--wp--custom--shadow--raised);
}
.pss-suggest[hidden] { display: none; }
.pss-suggest__title {
	padding: 10px 20px 6px;
	color: var(--wp--preset--color--text-on-paper-dim);
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}
.pss-suggest__list { max-height: 320px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.pss-suggest__list [role="option"] {
	padding: 12px 20px;
	color: var(--wp--preset--color--text-on-paper);
	font-size: var(--wp--preset--font-size--label);
	line-height: 1.4;
	cursor: pointer;
}
.pss-suggest__list [role="option"][hidden] { display: none; }
.pss-suggest__list [role="option"]:is(:hover, .is-active) { background: var(--wp--custom--tile--light); }
.pss-suggest__list [role="option"][aria-disabled="true"] { color: var(--wp--preset--color--text-on-paper-dim); cursor: default; }
/* The chosen option: a tick on the right. */
.pss-suggest__list [role="option"].is-current {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%23D1480A' stroke-width='1.8'/%3E%3C/svg%3E");
	background-position: right 20px center;
	background-repeat: no-repeat;
	background-size: 14px 10px;
	font-weight: 600;
}

/* A dropdown: the box looks like the field it replaces (it takes the
   select's classes), with the chevron turning as the menu opens. */
.pss-select { position: relative; }
.pss-select > .pss-select__button {
	display: flex;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	padding-right: 40px;
	background-image: none;
	text-align: left;
	cursor: pointer;
	user-select: none;
}
.pss-select__value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pss-select__button::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 12px;
	height: 8px;
	margin-top: -4px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23898989' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.45s var(--pss-ease-out);
	pointer-events: none;
}
.pss-select__button[aria-expanded="true"]::after { transform: rotate(180deg); }
.pss-select > .pss-select__button[aria-expanded="true"] { border-color: var(--wp--preset--color--brand-ember); }
.pss-form .pss-select__button.is-placeholder { color: var(--wp--preset--color--text-on-paper-dim); }
.pss-select__panel { right: auto; min-width: 100%; width: max-content; max-width: min(360px, 90vw); }

@media (min-width: 600px) {
	.pss-select.is-enhanced > select { display: none; }
}
@media (max-width: 599.98px) {
	.pss-select__button,
	.pss-select__panel { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	.pss-select__button::after { transition: none; }
}

/* --------------------------------------------------------------- Callout
 * Paragraph style "Callout" (Figma: Plain Text intro, Article pull-out): a
 * bold paragraph with an ember rule down its left side.
 */

p.is-style-callout {
	padding: 20px 20px 20px 18px;
	border-left: 2px solid var(--wp--preset--color--brand-ember);
	color: var(--wp--preset--color--text-on-paper);
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: 1.35;
}

/* ----------------------------------------------------------------- Misc */

.pss-empty {
	padding: 48px 24px;
	text-align: center;
	color: var(--wp--preset--color--text-on-paper-dim);
}
