/*
Theme Name: Profession HQ
Theme URI: https://professionhq.com/
Description: Child theme of Bam for Profession HQ. New homepage, header, and footer; article pages use Bam's layout with matching typography. Includes a drip publisher (Tools → Publishing queue) and one-click setup (Appearance → Profession HQ setup).
Author: Profession HQ
Template: bam
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: professionhq
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--phq-red: #ff3131;
	--phq-red-ink: #c81e1e;
	--phq-red-soft: #fff0ee;
	--phq-ink: #141414;
	--phq-ink-2: #3a3734;
	--phq-muted: #6b6560;
	--phq-paper: #fbf8f5;
	--phq-paper-2: #f3ede7;
	--phq-line: #e6ded6;
	--phq-white: #ffffff;
	--phq-sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--phq-serif: "Source Serif 4", "Source Serif Pro", Georgia, Cambria, "Times New Roman", serif;
	--phq-radius: 12px;
	--phq-wrap: 1200px;
	--phq-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px -12px rgba(20, 20, 20, .18);
}

/* ==========================================================================
   Base
   ========================================================================== */
body.phq,
body.phq.boxed-layout {
	background: var(--phq-white);
	color: var(--phq-ink);
	font-family: var(--phq-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Bam's boxed layout is replaced by a full-width page. */
body.phq.boxed-layout #page {
	max-width: none;
}

.phq a {
	color: var(--phq-red-ink);
}

.phq a:focus-visible,
.phq button:focus-visible,
.phq input:focus-visible {
	outline: 3px solid var(--phq-red);
	outline-offset: 2px;
}

.phq-wrap {
	width: 100%;
	max-width: var(--phq-wrap);
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.phq .site-content > .container {
	/* Bam sets width: 1320px with a 94% cap. Keep a cap so narrow laptops
	   don't scroll sideways, and hold our own maximum. */
	width: 100%;
	max-width: var(--phq-wrap);
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

.phq-eyebrow {
	margin: 0 0 18px;
	font: 700 13px/1.2 var(--phq-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--phq-red-ink);
}

.phq-accent {
	color: var(--phq-red);
	font-style: italic;
}

.phq-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 700 14px/1.2 var(--phq-sans);
	color: var(--phq-ink) !important;
	text-decoration: none;
	border-bottom: 2px solid var(--phq-red);
	padding-bottom: 3px;
}

.phq-link-arrow span {
	transition: transform .2s ease;
}

.phq-link-arrow:hover span {
	transform: translateX(4px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.phq-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--phq-line);
}

.admin-bar .phq-header {
	top: 32px;
}

.phq-header__bar {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 72px;
}

.phq-wordmark {
	margin: 0;
	font: italic 800 23px/1 var(--phq-sans);
	letter-spacing: -.01em;
	text-transform: uppercase;
	white-space: nowrap;
}

.phq-wordmark a {
	color: var(--phq-red) !important;
	text-decoration: none;
}

.phq-nav {
	margin-left: auto;
}

.phq-nav__list {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.phq-nav__list a {
	display: block;
	padding: 10px 14px;
	font: 600 15px/1 var(--phq-sans);
	color: var(--phq-ink) !important;
	text-decoration: none;
	border-radius: 999px;
	transition: background-color .15s ease, color .15s ease;
}

.phq-nav__list a:hover {
	background: var(--phq-paper-2);
}

.phq-nav__list .current-menu-item > a,
.phq-nav__list .current-menu-parent > a,
.phq-nav__list .current-post-parent > a {
	background: var(--phq-ink);
	color: var(--phq-white) !important;
}

.phq-header__tools {
	display: flex;
	gap: 6px;
}

.phq-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--phq-line);
	border-radius: 999px;
	background: var(--phq-white);
	color: var(--phq-ink);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.phq-icon-btn:hover,
.phq-icon-btn[aria-expanded="true"] {
	border-color: var(--phq-ink);
	background: var(--phq-paper);
}

.phq-menu-toggle {
	display: none;
}

.phq-search-panel {
	border-top: 1px solid var(--phq-line);
	background: var(--phq-paper);
	padding: 18px 0;
}

/* Search form (header + hero) */
.phq-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px;
	background: var(--phq-white);
	border: 1.5px solid var(--phq-ink);
	border-radius: 999px;
}

.phq-search-form svg {
	flex: none;
	margin-left: 12px;
	color: var(--phq-muted);
}

.phq-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 12px 14px;
	border: 0;
	background: transparent;
	font: 500 16px/1.2 var(--phq-sans);
	color: var(--phq-ink);
	box-shadow: none;
}

.phq-search-form input[type="search"]:focus {
	outline: none;
}

.phq-search-form:focus-within {
	box-shadow: 0 0 0 4px rgba(255, 49, 49, .18);
}

.phq-search-form button {
	flex: none;
	margin: 0;
	padding: 13px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--phq-red-ink);
	color: var(--phq-white);
	font: 700 15px/1 var(--phq-sans);
	cursor: pointer;
	transition: background-color .15s ease;
}

.phq-search-form button:hover {
	background: var(--phq-ink);
}

/* ==========================================================================
   Homepage
   ========================================================================== */
.phq.phq-home .site-content {
	padding: 0;
}

.phq-main {
	display: block;
}

.phq-section {
	padding: 88px 0;
}

.phq-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 8px 24px;
	margin-bottom: 36px;
}

.phq-section__title {
	margin: 0;
	font: 800 clamp(28px, 3.2vw, 40px)/1.1 var(--phq-sans);
	letter-spacing: -.02em;
	color: var(--phq-ink);
}

.phq-section__sub {
	flex-basis: 100%;
	order: 2;
	margin: 0;
	font: 400 18px/1.5 var(--phq-serif);
	color: var(--phq-muted);
}

.phq-section__head .phq-link-arrow {
	margin-left: auto;
}

/* Hero */
.phq-hero {
	position: relative;
	overflow: hidden;
	padding: 84px 0 96px;
	background:
		radial-gradient(circle at 1px 1px, rgba(20, 20, 20, .07) 1px, transparent 0) 0 0 / 22px 22px,
		var(--phq-paper);
	border-bottom: 1px solid var(--phq-line);
}

.phq-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
}

.phq-hero__title {
	margin: 0 0 22px;
	font: 800 clamp(40px, 5.6vw, 68px)/1.02 var(--phq-sans);
	letter-spacing: -.035em;
	color: var(--phq-ink);
}

.phq-hero__lede {
	max-width: 36em;
	margin: 0 0 32px;
	font: 400 clamp(18px, 1.6vw, 21px)/1.55 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq-search-form--hero {
	max-width: 620px;
	box-shadow: var(--phq-shadow);
}

.phq-popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

.phq-popular__label {
	font: 600 14px/1 var(--phq-sans);
	color: var(--phq-muted);
}

.phq-popular ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.phq-popular a {
	display: inline-block;
	padding: 8px 14px;
	font: 600 13px/1 var(--phq-sans);
	color: var(--phq-ink) !important;
	text-decoration: none;
	background: var(--phq-white);
	border: 1px solid var(--phq-line);
	border-radius: 999px;
	transition: border-color .15s ease;
}

.phq-popular a:hover {
	border-color: var(--phq-ink);
}

.phq-hero__panel {
	position: relative;
	margin: 0 14px 14px 0;
	padding: 34px 32px 28px;
	background: var(--phq-ink);
	color: var(--phq-white);
	border-radius: 20px;
	box-shadow: 14px 14px 0 var(--phq-red), 0 40px 60px -30px rgba(20, 20, 20, .5);
	transform: rotate(-1deg);
}

.phq-hero__panel-kicker {
	margin: 0 0 6px;
	font: 700 12px/1 var(--phq-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}

.phq-hero__panel-total {
	margin: 0 0 22px;
	font: 700 20px/1 var(--phq-sans);
}

.phq-hero__panel-total span {
	font: italic 800 64px/1 var(--phq-sans);
	letter-spacing: -.04em;
	color: var(--phq-red);
}

.phq-stats {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.phq-stats a {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 16px 2px;
	color: var(--phq-white) !important;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.phq-stats__num {
	font: 800 28px/1 var(--phq-sans);
	letter-spacing: -.02em;
}

.phq-stats__label {
	font: 500 16px/1.2 var(--phq-sans);
	color: rgba(255, 255, 255, .85);
}

.phq-stats__arrow {
	color: var(--phq-red);
	font-weight: 700;
	transition: transform .2s ease;
}

.phq-stats a:hover .phq-stats__arrow {
	transform: translateX(4px);
}

.phq-hero__panel-note {
	margin: 18px 0 0;
	font: 400 15px/1.4 var(--phq-serif);
	color: rgba(255, 255, 255, .7);
}

/* Pillars */
.phq-pillars__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.phq-pillar {
	display: flex;
	flex-direction: column;
	padding: 30px 28px 28px;
	background: var(--phq-white);
	border: 1px solid var(--phq-line);
	border-top: 4px solid var(--phq-ink);
	border-radius: 4px 4px var(--phq-radius) var(--phq-radius);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.phq-pillar:hover {
	border-top-color: var(--phq-red);
	transform: translateY(-3px);
	box-shadow: var(--phq-shadow);
}

.phq-pillar__num {
	margin: 0 0 18px;
	font: italic 800 15px/1 var(--phq-sans);
	color: var(--phq-red);
}

.phq-pillar__title {
	margin: 0 0 10px;
	font: 800 25px/1.15 var(--phq-sans);
	letter-spacing: -.015em;
}

.phq-pillar__title a {
	color: var(--phq-ink) !important;
	text-decoration: none;
}

.phq-pillar__blurb {
	margin: 0 0 20px;
	font: 400 17px/1.55 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq-pillar__list {
	flex: 1;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--phq-line);
}

.phq-pillar__list li {
	border-bottom: 1px solid var(--phq-line);
}

.phq-pillar__list a {
	display: block;
	padding: 12px 0;
	font: 600 15px/1.35 var(--phq-sans);
	color: var(--phq-ink) !important;
	text-decoration: none;
}

.phq-pillar__list a:hover {
	color: var(--phq-red-ink) !important;
}

.phq-pillar .phq-link-arrow {
	align-self: flex-start;
}

/* Cards */
.phq-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--phq-white);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
	overflow: hidden;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.phq-card:hover {
	border-color: var(--phq-ink);
	transform: translateY(-2px);
	box-shadow: var(--phq-shadow);
}

.phq-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.phq-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 22px 20px;
}

.phq-card__label {
	margin: 0 0 10px;
	font: 700 11px/1 var(--phq-sans);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--phq-red-ink);
}

.phq-card__title {
	margin: 0 0 10px;
	font: 700 18px/1.3 var(--phq-sans);
	letter-spacing: -.01em;
}

.phq-card__title a {
	color: var(--phq-ink) !important;
	text-decoration: none;
}

/* Whole card clickable */
.phq-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.phq-card__excerpt {
	margin: 0 0 16px;
	font: 400 16px/1.5 var(--phq-serif);
	color: var(--phq-ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.phq-card__meta {
	display: flex;
	gap: 8px;
	margin: auto 0 0;
	font: 500 13px/1 var(--phq-sans);
	color: var(--phq-muted);
}

.phq-vs {
	font-family: var(--phq-serif);
	font-style: italic;
	font-weight: 400;
	color: var(--phq-red-ink);
}

.phq-card--feature {
	background: var(--phq-ink);
	border-color: var(--phq-ink);
}

.phq-card--feature .phq-card__body {
	padding: 34px;
	justify-content: flex-end;
}

.phq-card--feature .phq-card__label {
	color: var(--phq-red);
}

.phq-card--feature .phq-card__title {
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.12;
	letter-spacing: -.02em;
}

.phq-card--feature .phq-card__title a {
	color: var(--phq-white) !important;
}

.phq-card--feature .phq-card__excerpt {
	font-size: 18px;
	color: rgba(255, 255, 255, .78);
	-webkit-line-clamp: 4;
}

.phq-card--feature .phq-card__meta {
	color: rgba(255, 255, 255, .6);
}

.phq-card--feature .phq-vs {
	color: var(--phq-red);
}

.phq-latest {
	background: var(--phq-paper);
	border-top: 1px solid var(--phq-line);
	border-bottom: 1px solid var(--phq-line);
}

.phq-latest__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 24px;
}

.phq-latest__feature .phq-card {
	min-height: 100%;
}

.phq-latest__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.phq-latest__list .phq-card__excerpt {
	-webkit-line-clamp: 2;
	font-size: 15px;
}

.phq-latest__list .phq-card__title {
	font-size: 16px;
}

/* Comparisons */
.phq-compare__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 48px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: phq-compare;
}

.phq-compare__list li {
	counter-increment: phq-compare;
	border-top: 1px solid var(--phq-line);
}

.phq-compare__list li:nth-last-child(-n+2) {
	border-bottom: 1px solid var(--phq-line);
}

.phq-compare__list a {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: baseline;
	gap: 16px;
	padding: 24px 4px;
	color: var(--phq-ink) !important;
	text-decoration: none;
	transition: padding-left .2s ease;
}

.phq-compare__list a::before {
	content: counter(phq-compare, decimal-leading-zero);
	font: italic 800 15px/1 var(--phq-sans);
	color: var(--phq-red);
}

.phq-compare__list a:hover {
	padding-left: 12px;
}

.phq-compare__title {
	font: 700 clamp(19px, 1.9vw, 23px)/1.25 var(--phq-sans);
	letter-spacing: -.015em;
}

.phq-compare__list a:hover .phq-compare__title .phq-vs-a,
.phq-compare__list a:hover .phq-compare__title .phq-vs-b {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	text-decoration-color: var(--phq-red);
}

.phq-compare__meta {
	font: 500 13px/1 var(--phq-sans);
	color: var(--phq-muted);
	white-space: nowrap;
}

/* A–Z */
.phq-az {
	background: var(--phq-paper);
	border-top: 1px solid var(--phq-line);
	border-bottom: 1px solid var(--phq-line);
}

.phq-az__letters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 32px;
}

.phq-az__letters button {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--phq-line);
	border-radius: 999px;
	background: var(--phq-white);
	color: var(--phq-ink);
	font: 700 14px/1 var(--phq-sans);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.phq-az__letters button:hover {
	border-color: var(--phq-ink);
}

.phq-az__letters button.is-active {
	background: var(--phq-ink);
	border-color: var(--phq-ink);
	color: var(--phq-white);
}

.phq-az__groups {
	columns: 4 220px;
	column-gap: 40px;
}

.phq-az__group {
	break-inside: avoid;
	margin-bottom: 24px;
}

.phq-az__letter {
	margin: 0 0 8px;
	font: italic 800 24px/1 var(--phq-sans);
	color: var(--phq-red);
}

.phq-az__group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.phq-az__group a {
	display: inline-block;
	padding: 4px 0;
	font: 500 15px/1.35 var(--phq-sans);
	color: var(--phq-ink) !important;
	text-decoration: none;
}

.phq-az__group a:hover {
	color: var(--phq-red-ink) !important;
	text-decoration: underline;
}

/* Cover letters */
.phq-letters__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.phq-card--letter {
	background: var(--phq-white);
	border-radius: 4px;
	box-shadow: 0 1px 0 var(--phq-line), 0 18px 30px -24px rgba(20, 20, 20, .35);
}

.phq-card--letter::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 34px;
	height: 34px;
	background: linear-gradient(225deg, var(--phq-paper) 50%, var(--phq-paper-2) 50%);
	border-bottom-left-radius: 4px;
}

.phq-card--letter .phq-card__body {
	padding: 30px 22px 22px;
	border-top: 3px solid var(--phq-red);
}

.phq-card--letter .phq-card__label {
	display: none;
}

/* Standards */
.phq-standards {
	background: var(--phq-ink);
	color: var(--phq-white);
}

.phq-standards__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
	gap: 48px;
	align-items: start;
}

.phq-standards .phq-section__title {
	color: var(--phq-white);
}

.phq-standards__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.phq-standards__list li {
	padding-top: 20px;
	border-top: 3px solid var(--phq-red);
}

.phq-standards__list h3 {
	margin: 0 0 10px;
	font: 700 18px/1.3 var(--phq-sans);
	color: var(--phq-white);
}

.phq-standards__list p {
	margin: 0;
	font: 400 16px/1.55 var(--phq-serif);
	color: rgba(255, 255, 255, .75);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.phq-footer {
	background: #0e0e0e;
	color: rgba(255, 255, 255, .78);
	padding-top: 72px;
}

.phq-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 48px;
	padding-bottom: 56px;
}

.phq-footer .phq-wordmark {
	font-size: 26px;
}

.phq-footer__tagline {
	margin: 10px 0 18px;
	font: 600 13px/1.3 var(--phq-sans);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--phq-white);
}

.phq-footer__about {
	max-width: 34em;
	margin: 0;
	font: 400 16px/1.6 var(--phq-serif);
	color: rgba(255, 255, 255, .65);
}

.phq-footer__heading {
	margin: 0 0 16px;
	font: 700 12px/1 var(--phq-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
}

.phq-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.phq-footer__links li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
}

.phq-footer__links a {
	font: 500 15px/1.4 var(--phq-sans);
	color: var(--phq-white) !important;
	text-decoration: none;
}

.phq-footer__links a:hover {
	color: var(--phq-red) !important;
}

.phq-footer__links--posts a {
	font-weight: 500;
	color: rgba(255, 255, 255, .8) !important;
}

.phq-footer__count {
	font: 600 13px/1.6 var(--phq-sans);
	color: rgba(255, 255, 255, .45);
}

.phq-footer__base {
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.phq-footer__base-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.phq-footer__base p {
	margin: 0;
	font: 400 13px/1.5 var(--phq-sans);
	color: rgba(255, 255, 255, .5);
}

.phq-footer__top {
	flex: none;
	font: 600 13px/1 var(--phq-sans);
	color: var(--phq-white) !important;
	text-decoration: none;
}

/* ==========================================================================
   Articles (Bam templates)
   ========================================================================== */
.phq .site-content {
	padding-top: 48px;
	padding-bottom: 64px;
}

.phq .bam-single-post .category-list a,
.phq .cat-links a {
	display: inline-block;
	padding: 6px 10px;
	background: var(--phq-red-soft);
	color: var(--phq-red-ink) !important;
	font: 700 11px/1 var(--phq-sans);
	letter-spacing: .1em;
	text-transform: uppercase;
	border-radius: 999px;
	text-decoration: none;
}

.phq .entry-title,
.phq .page-title {
	font-family: var(--phq-sans);
	font-weight: 800;
	letter-spacing: -.025em;
	color: var(--phq-ink);
}

.phq .bam-single-post .entry-title,
.phq .page .entry-title {
	font-size: clamp(32px, 4vw, 46px);
	line-height: 1.08;
}

.phq .entry-meta,
.phq .entry-meta a,
.phq-reading-time {
	font: 500 14px/1.4 var(--phq-sans);
	color: var(--phq-muted) !important;
}

.phq-reading-time {
	margin: -6px 0 18px;
}

.phq .entry-content {
	font: 400 19px/1.7 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq .entry-content > * + * {
	margin-top: 1.05em;
}

.phq .entry-content h2,
.phq .entry-content h3,
.phq .entry-content h4 {
	font-family: var(--phq-sans);
	color: var(--phq-ink);
	letter-spacing: -.015em;
	scroll-margin-top: 96px;
}

.phq .entry-content h2 {
	margin: 2.2em 0 .6em;
	padding-top: .9em;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
	border-top: 1px solid var(--phq-line);
}

.phq .entry-content h3 {
	margin: 1.9em 0 .5em;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.phq .entry-content h4 {
	margin: 1.6em 0 .4em;
	font-size: 18px;
	font-weight: 700;
}

.phq .entry-content a {
	color: var(--phq-red-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.phq .entry-content a:hover {
	text-decoration-thickness: 2px;
}

.phq .entry-content strong {
	color: var(--phq-ink);
	font-weight: 600;
}

.phq .entry-content ul,
.phq .entry-content ol {
	padding-left: 1.3em;
}

.phq .entry-content li + li {
	margin-top: .4em;
}

.phq .entry-content li::marker {
	color: var(--phq-red-ink);
	font-family: var(--phq-sans);
	font-weight: 700;
}

/* Tables */
.phq .entry-content .wp-block-table {
	margin: 1.6em 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
}

.phq .entry-content table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font: 400 15px/1.5 var(--phq-sans);
	color: var(--phq-ink-2);
}

.phq .entry-content th,
.phq .entry-content td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--phq-line);
}

.phq .entry-content thead th {
	background: var(--phq-ink);
	color: var(--phq-white);
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}

.phq .entry-content tbody tr:nth-child(even) {
	background: var(--phq-paper);
}

.phq .entry-content tbody tr:last-child td {
	border-bottom: 0;
}

.phq .entry-content td:first-child {
	font-weight: 600;
	color: var(--phq-ink);
}

/* Sample answers and example letters */
.phq .entry-content blockquote,
.phq .entry-content .wp-block-quote {
	margin: 1.3em 0;
	padding: 20px 24px;
	background: var(--phq-paper);
	border: 0;
	border-left: 4px solid var(--phq-red);
	border-radius: 0 var(--phq-radius) var(--phq-radius) 0;
	font: 400 18px/1.65 var(--phq-serif);
	font-style: normal;
	color: var(--phq-ink-2);
	quotes: none;
}

.phq .entry-content blockquote::before,
.phq .entry-content blockquote::after {
	content: none;
}

.phq .entry-content blockquote p {
	margin: 0;
	font-size: inherit;
	font-style: normal;
}

.phq .entry-content blockquote p + p {
	margin-top: .9em;
}

.phq .entry-content blockquote strong:first-child {
	display: block;
	margin-bottom: 4px;
	font: 700 12px/1.4 var(--phq-sans);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--phq-red-ink);
}

/* Sources list appended by the importer */
.phq .entry-content .phq-sources {
	margin-top: 2.5em;
	padding: 22px 24px;
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
	font: 400 14px/1.5 var(--phq-sans);
}

.phq .entry-content .phq-sources h2 {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--phq-muted);
}

.phq .entry-content .phq-sources ul {
	margin: 0;
	padding-left: 1.1em;
}

.phq .entry-content .phq-sources a {
	word-break: break-word;
}

/* Easy Table of Contents plugin */
.phq #ez-toc-container {
	background: var(--phq-paper);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
	box-shadow: none;
	padding: 18px 22px;
	font-family: var(--phq-sans);
}

.phq #ez-toc-container a {
	color: var(--phq-ink) !important;
	text-decoration: none;
}

/* Sidebar */
.phq .widget-area .widget {
	font-family: var(--phq-sans);
}

.phq .widget-title,
.phq .widget .wp-block-heading {
	font: 700 12px/1 var(--phq-sans) !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--phq-muted);
}

.phq .widget ul li a {
	color: var(--phq-ink);
	font-weight: 500;
}

/* Archive list entries */
.phq .bam-entry .entry-title a {
	color: var(--phq-ink) !important;
}

.phq .bam-entry .entry-summary {
	font-family: var(--phq-serif);
	font-size: 17px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.phq-hero__grid,
	.phq-latest__grid,
	.phq-standards__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.phq-hero__panel {
		max-width: 520px;
		transform: none;
	}

	.phq-letters__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.phq-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.phq-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.phq-header__bar {
		gap: 12px;
		min-height: 64px;
	}

	.phq-menu-toggle {
		display: inline-grid;
	}

	.phq-header__tools {
		margin-left: auto;
	}

	.phq-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		margin: 0;
		padding: 12px 24px 20px;
		background: var(--phq-white);
		border-bottom: 1px solid var(--phq-line);
		box-shadow: 0 20px 30px -20px rgba(20, 20, 20, .3);
	}

	.phq-nav.is-open {
		display: block;
	}

	.phq-nav__list {
		flex-direction: column;
		gap: 2px;
	}

	.phq-nav__list a {
		padding: 14px 12px;
		border-radius: 8px;
		font-size: 17px;
	}

	.phq-pillars__grid,
	.phq-compare__list,
	.phq-standards__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.phq-compare__list li:nth-last-child(2) {
		border-bottom: 0;
	}

	.phq-section {
		padding: 64px 0;
	}
}

@media (max-width: 782px) {
	.admin-bar .phq-header {
		top: 46px;
	}
}

@media (max-width: 640px) {
	.phq-wrap,
	.phq .site-content > .container {
		padding-left: 18px;
		padding-right: 18px;
	}

	.phq-wordmark {
		font-size: 19px;
	}

	.phq-hero {
		padding: 48px 0 64px;
	}

	.phq-search-form button {
		padding: 12px 16px;
	}

	.phq-search-form--hero svg {
		display: none;
	}

	.phq-latest__list,
	.phq-letters__grid,
	.phq-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.phq-footer__base-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.phq .entry-content {
		font-size: 18px;
	}

	.phq .entry-content h2 {
		font-size: 25px;
	}

	.phq .entry-content h3 {
		font-size: 20px;
	}

	.phq-hero__panel-total span {
		font-size: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.phq *,
	.phq *::before,
	.phq *::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Tools
   ========================================================================== */
.phq-tool {
	padding-block: 40px 72px;
}

.phq-tool__narrow {
	max-width: 820px;
}

.phq-tool__head {
	max-width: 46rem;
	margin-bottom: 36px;
}

.phq-tool__title {
	margin: 0 0 14px;
	font: 800 clamp(32px, 4.4vw, 46px)/1.06 var(--phq-sans);
	letter-spacing: -.03em;
	color: var(--phq-ink);
}

.phq-tool__lede {
	margin: 0;
	font: 400 clamp(17px, 1.5vw, 19px)/1.6 var(--phq-serif);
	color: var(--phq-ink-2);
}

/* Tools index */
.phq-toolgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.phq-toolcard {
	display: flex;
	flex-direction: column;
	padding: 28px 26px 24px;
	background: var(--phq-white);
	border: 1px solid var(--phq-line);
	border-top: 4px solid var(--phq-ink);
	border-radius: 4px 4px var(--phq-radius) var(--phq-radius);
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.phq-toolcard:hover {
	border-top-color: var(--phq-red);
	transform: translateY(-3px);
	box-shadow: var(--phq-shadow);
}

.phq-toolcard__title {
	margin: 0 0 10px;
	font: 800 23px/1.2 var(--phq-sans);
	letter-spacing: -.02em;
	color: var(--phq-ink);
}

.phq-toolcard__desc {
	flex: 1;
	margin: 0 0 18px;
	font: 400 16px/1.55 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq-toolcard__stat {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--phq-line);
	font: 600 13px/1.3 var(--phq-sans);
	color: var(--phq-red-ink);
}

/* Forms shared by every tool */
.phq-form {
	display: grid;
	gap: 22px;
	padding: 26px;
	background: var(--phq-paper);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
}

.phq-field label,
.phq-field legend {
	display: block;
	margin-bottom: 8px;
	font: 700 15px/1.35 var(--phq-sans);
	color: var(--phq-ink);
}

.phq-field input[type="text"],
.phq-field input[type="search"],
.phq-field input[type="number"],
.phq-field select,
.phq-field textarea {
	width: 100%;
	padding: 11px 13px;
	font: 400 16px/1.45 var(--phq-serif);
	color: var(--phq-ink);
	background: var(--phq-white);
	border: 1.5px solid var(--phq-line);
	border-radius: 8px;
	box-sizing: border-box;
}

.phq-field textarea {
	resize: vertical;
}

.phq-field input:focus,
.phq-field select:focus,
.phq-field textarea:focus {
	outline: none;
	border-color: var(--phq-ink);
	box-shadow: 0 0 0 4px rgba(255, 49, 49, .14);
}

.phq-field fieldset,
fieldset.phq-field {
	border: 0;
	padding: 0;
	margin: 0;
}

.phq-field--submit {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.phq-hint {
	margin: 8px 0 0;
	font: 400 14px/1.5 var(--phq-serif);
	color: var(--phq-muted);
}

.phq-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.phq-chip {
	position: relative;
	margin: 0;
}

.phq-chip input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.phq-chip span {
	display: inline-block;
	padding: 9px 15px;
	font: 600 14px/1 var(--phq-sans);
	color: var(--phq-ink);
	background: var(--phq-white);
	border: 1.5px solid var(--phq-line);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.phq-chip input:checked + span {
	background: var(--phq-ink);
	border-color: var(--phq-ink);
	color: var(--phq-white);
}

.phq-chip input:focus-visible + span {
	outline: 3px solid var(--phq-red);
	outline-offset: 2px;
}

/* Buttons */
.phq-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	font: 700 14px/1 var(--phq-sans);
	color: var(--phq-ink) !important;
	text-decoration: none;
	background: var(--phq-white);
	border: 1.5px solid var(--phq-line);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.phq-btn:hover {
	border-color: var(--phq-ink);
}

.phq-btn--primary {
	background: var(--phq-red-ink);
	border-color: var(--phq-red-ink);
	color: var(--phq-white) !important;
}

.phq-btn--primary:hover {
	background: var(--phq-ink);
	border-color: var(--phq-ink);
}

.phq-btn--small {
	padding: 7px 13px;
	font-size: 13px;
}

.phq-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

/* Prompt tool */
.phq-output {
	margin-top: 30px;
}

.phq-output__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.phq-output__head h2 {
	margin: 0;
	font: 800 22px/1.2 var(--phq-sans);
	color: var(--phq-ink);
}

.phq-output__meta {
	font: 500 13px/1 var(--phq-sans);
	color: var(--phq-muted);
}

.phq-prompt {
	width: 100%;
	padding: 20px;
	font: 400 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--phq-ink);
	background: var(--phq-paper-2);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
	resize: vertical;
	box-sizing: border-box;
}

.phq-hint--actions {
	margin-top: 12px;
}

.phq-tool__note {
	margin-top: 44px;
	padding: 24px 26px;
	background: var(--phq-paper);
	border-left: 3px solid var(--phq-red);
	border-radius: 0 var(--phq-radius) var(--phq-radius) 0;
}

.phq-tool__note h2 {
	margin: 0 0 12px;
	font: 700 18px/1.3 var(--phq-sans);
	color: var(--phq-ink);
}

.phq-tool__note ul {
	margin: 0;
	padding-left: 1.2em;
	font: 400 16px/1.6 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq-tool__note li + li {
	margin-top: 8px;
}

/* Question packs */
.phq-picker {
	max-width: 620px;
}

.phq-picker input[type="search"] {
	width: 100%;
	padding: 13px 16px;
	font: 500 16px/1.2 var(--phq-sans);
	border: 1.5px solid var(--phq-ink);
	border-radius: 999px;
	background: var(--phq-white);
	color: var(--phq-ink);
	box-sizing: border-box;
}

.phq-picker__list {
	max-height: 330px;
	overflow-y: auto;
	margin: 14px 0 0;
	padding: 6px;
	list-style: none;
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
	background: var(--phq-white);
}

.phq-picker__list button {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	background: none;
	border: 0;
	border-radius: 8px;
	font: 600 15px/1.3 var(--phq-sans);
	color: var(--phq-ink);
	text-align: left;
	cursor: pointer;
}

.phq-picker__list button:hover {
	background: var(--phq-paper-2);
}

.phq-picker__count {
	flex: none;
	font: 600 12px/1.6 var(--phq-sans);
	color: var(--phq-muted);
}

.phq-pack {
	margin-top: 36px;
}

.phq-pack__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: flex-end;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--phq-line);
}

.phq-pack__title {
	margin: 0;
	font: 800 clamp(22px, 2.6vw, 28px)/1.2 var(--phq-sans);
	color: var(--phq-ink);
}

.phq-pack__meta {
	margin: 4px 0 0;
	font: 500 14px/1.4 var(--phq-sans);
	color: var(--phq-muted);
}

.phq-pack__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.phq-card {
	margin-top: 24px;
	padding: 30px;
	background: var(--phq-white);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
	box-shadow: var(--phq-shadow);
}

.phq-card__group {
	margin: 0 0 10px;
	font: 700 11px/1 var(--phq-sans);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--phq-red-ink);
}

.phq-card__q {
	margin: 0 0 22px;
	font: 700 clamp(20px, 2.4vw, 26px)/1.3 var(--phq-sans);
	letter-spacing: -.015em;
	color: var(--phq-ink);
}

.phq-card__back h3 {
	margin: 20px 0 6px;
	font: 700 12px/1 var(--phq-sans);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--phq-muted);
}

.phq-card__back p {
	margin: 0;
	font: 400 17px/1.6 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq-card__back blockquote {
	margin: 0;
	padding: 16px 20px;
	background: var(--phq-paper);
	border-left: 4px solid var(--phq-red);
	border-radius: 0 var(--phq-radius) var(--phq-radius) 0;
	font: 400 17px/1.65 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--phq-line);
}

.phq-card__nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.phq-card__pos {
	font: 600 14px/1 var(--phq-sans);
	color: var(--phq-muted);
	font-variant-numeric: tabular-nums;
}

.phq-card__mark {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.phq-mark {
	padding: 7px 14px;
	font: 600 13px/1 var(--phq-sans);
	color: var(--phq-muted);
	background: none;
	border: 1.5px solid var(--phq-line);
	border-radius: 999px;
	cursor: pointer;
}

.phq-mark.is-on {
	border-color: var(--phq-ink);
	background: var(--phq-ink);
	color: var(--phq-white);
}

.phq-pack__summary {
	margin-top: 28px;
	padding: 20px 24px;
	background: var(--phq-paper);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
}

.phq-pack__summary h3 {
	margin: 0 0 10px;
	font: 700 16px/1.3 var(--phq-sans);
	color: var(--phq-ink);
}

.phq-pack__summary ol {
	margin: 0;
	padding-left: 1.2em;
	font: 400 16px/1.6 var(--phq-serif);
}

.phq-picker__empty {
	margin: 12px 0 0;
	font: 400 15px/1.5 var(--phq-serif);
	color: var(--phq-muted);
}

/* Career finder results */
.phq-results {
	margin-top: 34px;
}

.phq-results h2 {
	margin: 0 0 18px;
	font: 800 24px/1.2 var(--phq-sans);
	color: var(--phq-ink);
}

.phq-matchlist {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.phq-match {
	padding: 20px 22px;
	background: var(--phq-white);
	border: 1px solid var(--phq-line);
	border-left: 4px solid var(--phq-red);
	border-radius: 0 var(--phq-radius) var(--phq-radius) 0;
}

.phq-match h3 {
	margin: 0 0 6px;
	font: 700 20px/1.25 var(--phq-sans);
}

.phq-match h3 a {
	color: var(--phq-ink) !important;
	text-decoration: none;
}

.phq-match h3 a:hover {
	text-decoration: underline;
	text-decoration-color: var(--phq-red);
}

.phq-match__pay,
.phq-match__note,
.phq-match__why,
.phq-match__cta {
	margin: 4px 0 0;
	font: 400 15px/1.55 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq-match__why strong {
	font-family: var(--phq-sans);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--phq-muted);
}

.phq-match__cta {
	margin-top: 10px;
	font-family: var(--phq-sans);
	font-size: 14px;
	font-weight: 600;
}

/* STAR worksheet */
.phq-starcheck {
	margin-top: 26px;
	padding: 20px 24px;
	background: var(--phq-paper);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
}

.phq-starcheck h2 {
	margin: 0 0 12px;
	font: 700 16px/1.3 var(--phq-sans);
	color: var(--phq-ink);
}

.phq-starcheck ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 7px;
	font: 400 15px/1.5 var(--phq-serif);
}

.phq-starcheck li::before {
	display: inline-block;
	width: 1.5em;
	font-weight: 700;
	font-family: var(--phq-sans);
}

.phq-starcheck li.is-ok {
	color: var(--phq-ink-2);
}

.phq-starcheck li.is-ok::before {
	content: "\2713";
	color: #1f6b45;
}

.phq-starcheck li.is-todo {
	color: var(--phq-muted);
}

.phq-starcheck li.is-todo::before {
	content: "\2022";
	color: var(--phq-red);
}

.phq-starlist {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.phq-story {
	padding: 20px 22px;
	background: var(--phq-white);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
}

.phq-story h3 {
	margin: 0 0 10px;
	font: 700 17px/1.3 var(--phq-sans);
	color: var(--phq-ink);
}

.phq-story p {
	margin: 0 0 8px;
	font: 400 16px/1.55 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq-story strong {
	font-family: var(--phq-sans);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--phq-muted);
}

@media (max-width: 640px) {
	.phq-form {
		padding: 20px 16px;
	}

	.phq-card {
		padding: 22px 18px;
	}

	.phq-card__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.phq-card__nav {
		justify-content: space-between;
	}
}

/* Cover letter builder */
.phq-grid2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.phq-letter {
	width: 100%;
	padding: 26px 28px;
	font: 400 16px/1.7 var(--phq-serif);
	color: var(--phq-ink);
	background: var(--phq-white);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
	resize: vertical;
	box-sizing: border-box;
}

.phq-checklist {
	margin-top: 34px;
	padding: 22px 26px;
	background: var(--phq-paper);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
}

.phq-checklist h2 {
	margin: 0 0 12px;
	font: 700 17px/1.3 var(--phq-sans);
	color: var(--phq-ink);
}

.phq-checklist ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
	font: 400 15px/1.55 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq-checklist strong {
	display: block;
	font: 600 13px/1.4 var(--phq-sans);
	color: var(--phq-ink);
}

/* Certification finder */
.phq-credbar {
	position: sticky;
	top: 76px;
	z-index: 5;
	padding: 18px 0;
	margin-bottom: 8px;
	background: var(--phq-white);
	border-bottom: 1px solid var(--phq-line);
}

.phq-credbar input[type="search"] {
	width: 100%;
	max-width: 620px;
	padding: 13px 16px;
	font: 500 16px/1.2 var(--phq-sans);
	color: var(--phq-ink);
	background: var(--phq-white);
	border: 1.5px solid var(--phq-ink);
	border-radius: 999px;
	box-sizing: border-box;
}

.phq-credfilters {
	margin-top: 12px;
}

.phq-credbar__count {
	margin: 10px 0 0;
	font: 600 13px/1 var(--phq-sans);
	color: var(--phq-muted);
}

.phq-credlist {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 16px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.phq-cred {
	padding: 22px 24px;
	background: var(--phq-white);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
}

.phq-cred__head {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 14px;
}

.phq-cred__role {
	margin: 0;
	font: 700 19px/1.25 var(--phq-sans);
	letter-spacing: -.01em;
}

.phq-cred__role a {
	color: var(--phq-ink) !important;
	text-decoration: none;
}

.phq-cred__role a:hover {
	text-decoration: underline;
	text-decoration-color: var(--phq-red);
}

.phq-cred__tag {
	flex: none;
	padding: 5px 11px;
	font: 700 11px/1.3 var(--phq-sans);
	letter-spacing: .06em;
	text-transform: uppercase;
	border-radius: 999px;
	border: 1px solid var(--phq-line);
	color: var(--phq-muted);
	background: var(--phq-paper);
}

.phq-cred__tag.is-licence {
	color: #8a2f18;
	background: var(--phq-red-soft);
	border-color: #f0c9c0;
}

.phq-cred__tag.is-required {
	color: #7a5200;
	background: #fdf3e0;
	border-color: #eedcb5;
}

.phq-cred__tag.is-common {
	color: #1f5b45;
	background: #eaf5ef;
	border-color: #c8e3d5;
}

.phq-cred__rows {
	margin: 0;
	display: grid;
	gap: 10px;
}

.phq-cred__rows > div {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 12px;
}

.phq-cred__rows dt {
	font: 700 11px/1.5 var(--phq-sans);
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--phq-muted);
}

.phq-cred__rows dd {
	margin: 0;
	font: 400 15px/1.5 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq-cred__cta {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--phq-line);
	font: 600 14px/1.4 var(--phq-sans);
}

.phq-cred__empty {
	margin: 24px 0 0;
	font: 400 16px/1.6 var(--phq-serif);
	color: var(--phq-muted);
}

@media (max-width: 640px) {
	.phq-credbar {
		position: static;
	}

	.phq-cred__rows > div {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.phq-letter {
		padding: 20px 18px;
	}
}

/* ==========================================================================
   Author box
   ========================================================================== */
.phq .phq-authorbox {
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 24px;
	align-items: start;
	margin: 48px 0 0;
	padding: 28px;
	background: var(--phq-paper);
	border: 1px solid var(--phq-line);
	border-radius: var(--phq-radius);
}

.phq .phq-authorbox__photo {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--phq-paper-2);
	display: block;
}

.phq .phq-authorbox__eyebrow {
	margin: 0 0 4px;
	font: 700 12px/1.2 var(--phq-sans);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--phq-muted);
}

.phq .phq-authorbox__name {
	margin: 0;
	font: 800 22px/1.25 var(--phq-sans);
	color: var(--phq-ink);
}

.phq .phq-authorbox__name a {
	color: inherit;
	text-decoration: none;
}

.phq .phq-authorbox__name a:hover,
.phq .phq-authorbox__name a:focus {
	color: var(--phq-red-ink);
	text-decoration: underline;
}

.phq .phq-authorbox__role {
	margin: 2px 0 0;
	font: 600 14px/1.4 var(--phq-sans);
	color: var(--phq-muted);
}

.phq .phq-authorbox__bio {
	margin: 12px 0 0;
	font: 400 17px/1.65 var(--phq-serif);
	color: var(--phq-ink-2);
}

.phq .phq-authorbox__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--phq-line);
	font: 600 14px/1.4 var(--phq-sans);
}

.phq .phq-authorbox__links a {
	color: var(--phq-red-ink);
	text-decoration: none;
}

.phq .phq-authorbox__links a:hover,
.phq .phq-authorbox__links a:focus {
	text-decoration: underline;
}

/* On the author archive the name is already the page heading. */
.phq .phq-authorbox--archive {
	margin: 0 0 32px;
	text-align: left;
}

.phq .archive-description {
	margin: 0;
}

@media (max-width: 600px) {
	.phq .phq-authorbox {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 22px 20px;
	}

	.phq .phq-authorbox__photo {
		width: 84px;
		height: 84px;
	}

	.phq .phq-authorbox__bio {
		font-size: 16px;
	}
}
