/* PHN Home: the homepage, from mockup v0.8 (2026-10-17). Identity v2.2: PHN Black type on white, gray for
   hairlines only, no filled boxes or reversed type; Public Sans, IBM Plex Mono for labels and captions (both
   already load site-wide). Everything is scoped to .phn-home so the theme's other pages are untouched. */
.phn-home { --ink: #333132; --rule: #a6a6a6; --edge: #8c8c8c; color: var(--ink); font-size: 17px; line-height: 1.5; }
.phn-home * { box-sizing: border-box; }
.phn-home a { color: var(--ink); text-decoration: none; }
.phn-home a:hover, .phn-home a:focus { text-decoration: underline; text-underline-offset: 0.2em; }
.phn-home p { margin: 0; }
/* WordPress's auto-paragraphs leave empty <p>s around the shortcodes and wrap a lone link in one; inside the
   grids they'd be extra cells (0.1.1, seen on staging 2026-10-19). */
.phn-home p:empty { display: none; }
.phn-home-sechead > p, .phn-home-hero p:has(> .phn-home-photo) { margin: 0; }
.phn-home h1, .phn-home h2, .phn-home h3 { color: var(--ink); font-family: inherit; padding: 0; }
.phn-home-label { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; display: block; }
.phn-home-more { font-weight: 700; border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; }
.phn-home-more:hover, .phn-home-more:focus { text-decoration: none !important; border-bottom-width: 3px; }
.phn-home-btn { display: inline-block; border: 2.5px solid var(--ink); padding: 11px 22px 12px; font-weight: 700; font-size: 17px; }
/* 80px between sections: a visual break without blank scrolling (Ken, 2026-10-19; was 64). */
.phn-home-section { padding-top: 80px; }
.phn-home-sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 28px; }
.phn-home h2.phn-home-sec { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; margin: 0; line-height: 1.1; }
.phn-home-photo { margin: 0; }
.phn-home-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phn-home-photo figcaption, .phn-home-quotes figcaption { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 12.5px; margin-top: 7px; }

/* Hero */
.phn-home-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; padding-top: 48px; }
/* .phn-home first, and line-height !important: Avada's ".post-content h1" and its inline responsive-typography
   line-height otherwise win (live 0.1.5 showed 36px, 700, 1.2). */
.phn-home .phn-home-hero h1 { font-size: 52px; line-height: 1.04 !important; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 22px; }
.phn-home-hero p { font-size: 19px; margin: 0 0 14px; max-width: 34rem; }
.phn-home-hero p.phn-home-lede { font-size: 23px; line-height: 1.35; font-weight: 700; margin-bottom: 20px; }
.phn-home-ctas { display: flex; gap: 22px; margin-top: 24px; align-items: center; flex-wrap: wrap; }
.phn-home-hero .phn-home-photo img { height: 600px; }
/* Aligned by the script in phn-home.php: the photo from the headline's cap top to the last paragraph's baseline. */
.phn-home-hero-aligned .phn-home-photo { position: relative; }
.phn-home-hero-aligned .phn-home-photo img { position: absolute; left: var(--phn-hero-left, 0); top: var(--phn-hero-top); width: var(--phn-hero-w, 100%); height: var(--phn-hero-h); }
.phn-home-hero-aligned .phn-home-photo figcaption { position: absolute; left: var(--phn-hero-left, 0); top: calc(var(--phn-hero-top) + var(--phn-hero-h)); }

/* What do you do? Four doors */
.phn-home-doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phn-home-door { border: 1px solid var(--edge); display: flex; flex-direction: column; }
.phn-home-door.pro { border: 2.5px solid var(--ink); }
.phn-home-door .phn-home-photo img { height: 160px; }
.phn-home-door-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.phn-home h3.phn-home-door-title { font-size: 22px; font-weight: 800; margin: 0; line-height: 1.15; }
.phn-home .phn-home-who { font-size: 14.5px; margin: 4px 0 14px; }
.phn-home-step { display: block; border-top: 1px solid var(--rule); padding: 12px 0 13px; }
.phn-home-step .phn-home-label { margin-bottom: 3px; }
.phn-home-step b { display: block; font-size: 16px; line-height: 1.3; }
.phn-home-step .phn-home-facts { display: block; font-size: 14px; line-height: 1.45; margin-top: 3px; }
/* Prefixed with .phn-home so they outrank ".phn-home p { margin: 0 }" (0.1.5): the door links sit on one line. */
.phn-home .phn-home-go { margin-top: auto; padding-top: 12px; }
.phn-home .phn-home-help { margin-top: 18px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 16px; }

/* Students */
.phn-home-quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.phn-home-quotes figure { margin: 0; border-top: 1px solid var(--rule); padding-top: 14px; display: flex; flex-direction: column; }
.phn-home .phn-home-quotes blockquote { margin: 0 0 12px; padding: 0; border: 0; font-size: 16px; line-height: 1.45; font-style: normal; color: var(--ink); background: none; }
/* The theme fills blockquotes with a retired blue-gray behind a red bar (.fusion-body blockquote); neither is house style. */
.phn-home .phn-home-quotes blockquote p { margin: 0; font-size: inherit; line-height: inherit; }
.phn-home .phn-home-quotes blockquote::before, .phn-home .phn-home-quotes blockquote::after { content: none; }
.phn-home-quotes figcaption { margin-top: auto; }

/* Find */
.phn-home-find { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.phn-home-find a { display: block; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 16px 0 18px; }
.phn-home-find b { font-size: 21px; display: block; }
.phn-home-find span { font-size: 15px; }

/* Community */
.phn-home-community { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: stretch; }
.phn-home-community .phn-home-photo { display: flex; flex-direction: column; }
.phn-home-community .phn-home-photo img { flex: 1 1 0; height: 0; min-height: 400px; }
.phn-home-community h2.phn-home-sec { margin-bottom: 20px; }
.phn-home-cblock { border-top: 1px solid var(--rule); padding: 16px 0 18px; }
.phn-home h3.phn-home-cblock-title { font-size: 23px; margin: 0 0 6px; font-weight: 800; line-height: 1.2; }
.phn-home-cblock p { margin: 0 0 10px; font-size: 16px; }

/* Lists: news, coming up */
.phn-home-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.phn-home-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.phn-home-item { border-top: 1px solid var(--rule); padding-top: 13px; }
.phn-home-item .phn-home-label { margin-bottom: 6px; }
.phn-home-item b { font-size: 19px; line-height: 1.28; display: block; }
.phn-home-item p { font-size: 15px; margin: 6px 0 10px; }

/* Featured: the catalog's cards, with a photo */
.phn-home-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.phn-home-cards .phn-home-card { margin: 0; padding: 0; border: 0; }
.phn-home-card-pic { display: block; margin-bottom: 12px; }
.phn-home-card-img { display: block; width: 100%; height: 160px; object-fit: cover; }
.phn-home-cards .phn-cat-card-title { font-size: 18px; line-height: 1.25; margin: 0 0 4px; }
.phn-home-cards .phn-cat-card-meta { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.phn-home-cards .phn-cat-card-by, .phn-home-cards .phn-cat-card-flag { font-size: 14.5px; margin: 0 0 2px; }
.phn-home .phn-home-topics { margin-top: 26px; border-top: 1px solid var(--rule); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15.5px; align-items: baseline; }
.phn-home-end { padding-bottom: 80px; }

@media (max-width: 1100px) {
	.phn-home-doors, .phn-home-quotes, .phn-home-find, .phn-home-four, .phn-home-cards { grid-template-columns: repeat(2, 1fr); }
	.phn-home .phn-home-hero h1 { font-size: 44px; }
}
@media (max-width: 800px) {
	.phn-home-hero, .phn-home-doors, .phn-home-quotes, .phn-home-find, .phn-home-community, .phn-home-three { grid-template-columns: 1fr; }
	.phn-home-hero { gap: 28px; padding-top: 20px; }
	.phn-home .phn-home-hero h1 { font-size: 36px; }
	.phn-home-hero p.phn-home-lede { font-size: 20px; }
	.phn-home-hero .phn-home-photo img { height: 300px; }
	.phn-home-door .phn-home-photo img { height: 200px; }
	.phn-home-community .phn-home-photo img { height: 280px; min-height: 0; flex: none; }
	.phn-home-section { padding-top: 60px; }
	.phn-home h2.phn-home-sec { font-size: 28px; }
	.phn-home-sechead { flex-wrap: wrap; gap: 6px 24px; }
}
@media (max-width: 560px) {
	.phn-home-four, .phn-home-cards { grid-template-columns: 1fr; }
}

/* Announcement bar, above the header on the homepage (printed by phn_home_announce_bar). */
.phn-home-announce { --ink: #333132; background: #fff; color: var(--ink); border-bottom: 1px solid #a6a6a6; font-size: 14.5px; line-height: 1.4; }
.phn-home-announce p { max-width: 1200px; margin: 0 auto; padding: 9px 32px 10px; text-align: center; }
.phn-home-announce a { color: var(--ink); text-decoration: none; }
/* The [phn_home_announce] line ahead of .phn-home can leave an empty paragraph behind (wpautop). */
.fusion-text > p:empty:has(+ .phn-home) { display: none; }
