/*
Theme Name: IHRV 2026
Theme URI: https://www.iheartrving.com
Author: IHRV / NEXT Fractional
Description: Block theme matching the live iheartrving.com design (Lato/Newsreader, gold-teal palette). Phase 4 of the consolidation, 11-Jun-2026.
Version: 0.7.6
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ihrv-2026
*/

/* ============ IHRV 2026 design system (matches live Next.js site) ============ */

:root {
  --ihrv-gold: #fcbf49; --ihrv-teal-dark: #09323f; --ihrv-teal: #0f4c5f;
  --ihrv-navy: #0d3049; --ihrv-cream: #f8f4eb; --ihrv-cream-gold: #fbe7b5;
  --ihrv-sand: #c7bca4; --ihrv-radius: 12px;
  --ihrv-shadow: 0 1px 3px rgba(13,48,73,.08), 0 4px 14px rgba(13,48,73,.06);
}

/* ---------- header / nav ---------- */
.ihrv-header { background: var(--ihrv-teal-dark); position: relative; z-index: 50; }
.ihrv-header-inner { max-width: 1280px; margin: 0 auto; padding: .65rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem; }
.ihrv-logo img { height: 40px; width: auto; display: block; }
.ihrv-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.ihrv-nav > .ihrv-nav-item > a { color: #fff; text-decoration: none; font-weight: 700;
  font-size: 1.05rem; padding: 1.1rem 1rem; display: inline-block; }
.ihrv-nav-item { position: static; }
.ihrv-nav-item:hover > a, .ihrv-nav-item:focus-within > a { background: rgba(255,255,255,.06); }
.ihrv-mega { display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ihrv-teal-dark); padding: 1.5rem clamp(1rem, 4vw, 3rem) 1.75rem;
  box-shadow: 0 12px 24px rgba(0,0,0,.25); }
.ihrv-nav-item:hover .ihrv-mega, .ihrv-nav-item:focus-within .ihrv-mega { display: grid;
  grid-template-columns: repeat(6, 1fr); gap: 1.25rem; max-width: 1280px; margin: 0 auto; }
.ihrv-mega a { color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
.ihrv-mega img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px;
  margin-bottom: .5rem; display: block; }
.ihrv-search { display: flex; align-items: center; }
.ihrv-search summary { list-style: none; cursor: pointer; color: #fff; padding: .5rem; display: flex; }
.ihrv-search summary::-webkit-details-marker { display: none; }
.ihrv-search[open] form { display: flex; gap: .4rem; position: absolute; right: 1rem; top: 100%;
  background: var(--ihrv-teal-dark); padding: .75rem; border-radius: 0 0 8px 8px; }
.ihrv-search input { border: 0; border-radius: 6px; padding: .45rem .8rem; font-size: 1rem; min-width: 230px; }
.ihrv-btn { background: var(--ihrv-gold); color: var(--ihrv-teal-dark) !important; font-weight: 700;
  border: 0; border-radius: 8px; padding: .55rem 1.25rem; text-decoration: none; display: inline-block; }
.ihrv-btn:hover { filter: brightness(1.05); }
.ihrv-menu-toggle { display: none; }

/* ---------- hero carousel ---------- */
.ihrv-hero { position: relative; }
.ihrv-hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; }
.ihrv-hero-track::-webkit-scrollbar { display: none; }
.ihrv-hero-track > li { flex: 0 0 100%; scroll-snap-align: start; list-style: none;
  position: relative; min-height: clamp(420px, 72vh, 760px); display: flex; }
.ihrv-hero-track .wp-block-post-featured-image,
.ihrv-hero-track .wp-block-post-featured-image img { position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; margin: 0; }
.ihrv-hero-track > li::after { content: ""; position: absolute; inset: 0;
  background: rgba(5,28,36,.42); }
.ihrv-hero-content { position: relative; z-index: 2; margin: auto; text-align: center;
  max-width: 1000px; padding: 2rem 1.25rem; }
.ihrv-hero-content .ihrv-hero-cat a, .ihrv-hero-content .ihrv-hero-cat { color: #fff;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.ihrv-hero-content h2, .ihrv-hero-content h2 a { color: #fff !important;
  font-size: clamp(2rem, 2.5vw + 1.4rem, 4rem); font-weight: 600; text-decoration: none;
  line-height: 1.12; }
.ihrv-hero-content .ihrv-hero-author { color: #fff; font-size: 1.05rem; }
.ihrv-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: .5rem 1rem; }
.ihrv-hero-arrow.prev { left: .5rem; } .ihrv-hero-arrow.next { right: .5rem; }

/* ---------- article cards ---------- */
.ihrv-cards .wp-block-post { background: #fff; border-radius: var(--ihrv-radius);
  box-shadow: var(--ihrv-shadow); overflow: hidden; display: flex; flex-direction: column; }
.ihrv-cards .wp-block-post-featured-image { margin: 0; }
.ihrv-cards .wp-block-post-featured-image img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.ihrv-card-body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.ihrv-cards .wp-block-post-date { color: #6b7280; font-size: .9rem; }
.ihrv-cards .wp-block-post-title { font-size: clamp(1.25rem, 1.05rem + .5vw, 1.5rem); margin: 0; }
.ihrv-cards .wp-block-post-title a { text-decoration: none; color: var(--ihrv-navy); }
.ihrv-cards .wp-block-post-title a:hover { text-decoration: underline; }
.ihrv-byline { color: #374151; font-size: .95rem; }
.ihrv-byline a { color: inherit; text-decoration: none; font-weight: 700; }
.ihrv-byline .wp-block-post-author-name { display: inline; }
.ihrv-byline::before { content: "Written by "; }

/* ---------- bands ---------- */
.ihrv-band { padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem; }
.ihrv-band-inner { max-width: 1280px; margin: 0 auto; }
.ihrv-mission h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem); color: var(--ihrv-navy);
  text-align: center; max-width: 900px; margin: 0 auto 2rem; }
.ihrv-mission img { display: block; max-width: 880px; width: 100%; margin: 0 auto; }
.ihrv-newsletter { text-align: center; color: #fff; }
.ihrv-newsletter h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); margin-bottom: .5rem; }
.ihrv-newsletter p { color: #e5e7eb; max-width: 620px; margin: 0 auto 1.5rem; }
.ihrv-newsletter form { display: flex; max-width: 420px; margin: 0 auto; }
.ihrv-newsletter input[type=email] { flex: 1; border: 0; border-radius: 8px 0 0 8px;
  padding: .85rem 1.1rem; font-size: 1rem; }
.ihrv-newsletter button { background: var(--ihrv-gold); color: #fff; font-weight: 700; border: 0;
  border-radius: 0 8px 8px 0; padding: .85rem 1.5rem; font-size: 1rem; cursor: pointer; }

/* ---------- footer ---------- */
.ihrv-footer { background: var(--ihrv-sand); color: var(--ihrv-navy);
  padding: 3rem 1.25rem 2rem; text-align: center; }
.ihrv-footer-logo img { height: 44px; width: auto; margin: 0 auto 1.25rem; display: block; }
.ihrv-footer-mission { max-width: 980px; margin: 0 auto 1.5rem; font-weight: 700; }
.ihrv-social { display: flex; gap: 1.25rem; justify-content: center; margin-bottom: 2rem; }
.ihrv-social a { color: var(--ihrv-navy); }
.ihrv-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  max-width: 1100px; margin: 0 auto 2rem; text-align: center; }
.ihrv-footer-cols h4 { color: #6b7280; font-family: Lato, sans-serif; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .75rem; font-weight: 700; }
.ihrv-footer-cols a { display: block; color: var(--ihrv-navy); font-weight: 700;
  text-decoration: none; margin-bottom: .65rem; }
.ihrv-footer-cols a:hover { text-decoration: underline; }
.ihrv-copyright { font-size: .95rem; }

/* ---------- single article ---------- */
.ihrv-article .wp-block-post-terms { margin: 1.5rem 0 .75rem; }
.ihrv-article .wp-block-post-terms a,
.ihrv-article .aioseo-breadcrumbs a { display: inline-block; border: 1px solid #d8d2c4;
  border-radius: 999px; padding: .25rem .9rem; font-size: .85rem; color: var(--ihrv-navy);
  text-decoration: none; background: #fff; }
.ihrv-article .wp-block-post-featured-image img { border-radius: var(--ihrv-radius);
  width: 100%; max-height: 640px; object-fit: cover; }
.ihrv-article .wp-block-post-title { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);
  margin: 1.25rem 0 .75rem; }
.ihrv-pubdate { color: #374151; font-size: .98rem; margin: 0; }
.ihrv-pubdate::before { content: "Published on "; }
.ihrv-pubdate .wp-block-post-date { display: inline; }
.ihrv-author-line { margin: .2rem 0 1.75rem; font-weight: 700; }
.ihrv-author-line::before { content: "Written by "; color: #b18a2f; }
.ihrv-author-line a { color: #b18a2f; text-decoration: none; }
.ihrv-article .wp-block-post-content img { border-radius: var(--ihrv-radius); }

/* ---------- responsive (mobile <= 768px) ---------- */
@media (max-width: 768px) {
  .ihrv-header-inner { flex-wrap: wrap; gap: .75rem; padding: .55rem 1rem; }
  .ihrv-menu-toggle { display: block; margin-left: auto; }
  .ihrv-menu-toggle summary { list-style: none; color: #fff; font-size: 1.7rem; cursor: pointer; padding: .25rem .5rem; }
  .ihrv-menu-toggle summary::-webkit-details-marker { display: none; }
  .ihrv-nav { display: none; }
  .ihrv-menu-toggle[open] + .ihrv-nav, .ihrv-header-inner:has(.ihrv-menu-toggle[open]) .ihrv-nav {
    display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0; }
  .ihrv-nav > .ihrv-nav-item > a { padding: .8rem .5rem; width: 100%; }
  .ihrv-nav-item:hover .ihrv-mega, .ihrv-nav-item:focus-within .ihrv-mega {
    position: static; grid-template-columns: repeat(2, 1fr); padding: .75rem 0; box-shadow: none; }
  .ihrv-hero-track > li { min-height: 380px; }
  .ihrv-hero-content h2, .ihrv-hero-content h2 a { font-size: clamp(1.5rem, 6.5vw, 2.1rem); }
  .ihrv-cards .wp-block-post-template { grid-template-columns: 1fr !important; }
  .ihrv-footer-cols { grid-template-columns: repeat(2, 1fr); text-align: center; }
  .ihrv-newsletter form { flex-direction: column; gap: .6rem; }
  .ihrv-newsletter input[type=email], .ihrv-newsletter button { border-radius: 8px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .ihrv-mega { grid-template-columns: repeat(3, 1fr) !important; }
  .ihrv-cards .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============ v3 punch-list fixes (11-Jun design review) ============ */

/* heart mark: gold, scaled to logo proportions */
.ihrv-heart { color: var(--ihrv-gold); font-size: .72em; vertical-align: 8%;
  display: inline-block; transform: translateY(-1px); }

/* nav: full-height hover so the mega-menu is reachable (fixes submenu selection) */
.ihrv-header-inner { align-items: stretch; }
.ihrv-logo, .ihrv-menu-toggle { align-self: center; }
.ihrv-nav { align-items: stretch; }
.ihrv-nav > .ihrv-nav-item { display: flex; align-items: stretch; }
.ihrv-nav > .ihrv-nav-item > a { display: flex; align-items: center; }
.ihrv-nav > .ihrv-search, .ihrv-nav > .ihrv-btn { align-self: center; }
.ihrv-mega { z-index: 60; }

/* category label: subtle outlined pill everywhere */
.ihrv-hero-cat a, .wp-block-post-terms a {
  display: inline-block; border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  padding: .2rem .85rem; font-size: .85rem; }
.wp-block-post-terms__separator { border: 0; }
.ihrv-article .wp-block-post-terms a, .ihrv-cards .wp-block-post-terms a {
  border-color: #d8d2c4; background: #fff; color: var(--ihrv-navy); }


/* breadcrumb kicker: crumbs as pills, gap-spaced, current page muted (v0.7.4) */
.ihrv-article .aioseo-breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem;
  align-items: center; margin: 1.5rem 0 .5rem; }
.ihrv-article .aioseo-breadcrumb-separator { display: none; }
.ihrv-article .aioseo-breadcrumbs .aioseo-breadcrumb { display: inline-flex; align-items: center; }
/* current-item crumb: kept in markup/schema, hidden visually (v0.7.5).
   NB: AIOSEO 4.9.8 has no .aioseo-breadcrumb-last class; last-of-type = the unlinked title span. */
.ihrv-article .aioseo-breadcrumbs .aioseo-breadcrumb:last-of-type { display: none; }

/* hero dots */
.ihrv-hero-dots { position: absolute; bottom: 1.1rem; left: 0; right: 0; z-index: 3;
  display: flex; gap: .55rem; justify-content: center; }
.ihrv-hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.ihrv-hero-dots button.active { background: #fff; }

/* typography fine-tune vs production */
.ihrv-hero-content h2, .ihrv-hero-content h2 a { font-weight: 550; letter-spacing: -.01em; }
.ihrv-cards .wp-block-post-title { font-weight: 600; }
.ihrv-article .wp-block-post-title { font-weight: 550; letter-spacing: -.015em; }
.ihrv-article .wp-block-post-content p { font-weight: 420; }

/* article column: padding + edges aligned with body text */
.ihrv-article { padding-left: 1.25rem; padding-right: 1.25rem; }
.ihrv-article .wp-block-post-featured-image.alignwide { margin-top: 1.75rem; }
.ihrv-article .wp-block-post-terms { margin: 1.5rem 0 .5rem; }

/* mobile menu: white panel, navy links (matches production mobile) */
@media (max-width: 768px) {
  .ihrv-header-inner:has(.ihrv-menu-toggle[open]) .ihrv-nav {
    background: #fff; border-radius: 8px; padding: .5rem .75rem; margin-top: .25rem; }
  .ihrv-header-inner:has(.ihrv-menu-toggle[open]) .ihrv-nav > .ihrv-nav-item > a { color: var(--ihrv-navy); }
  .ihrv-header-inner:has(.ihrv-menu-toggle[open]) .ihrv-nav .ihrv-mega { background: #fff; }
  .ihrv-header-inner:has(.ihrv-menu-toggle[open]) .ihrv-nav .ihrv-mega a { color: var(--ihrv-navy); }
  .ihrv-footer-cols { grid-template-columns: repeat(3, 1fr); }
}
.ihrv-footer-cols { grid-template-columns: repeat(3, 1fr); max-width: 880px; }

/* ============ v4 fixes (round-3 review) ============ */
/* heart svg: scales with text */
svg.ihrv-heart { width: .8em; height: .8em; display: inline-block; vertical-align: -2%; }

/* nav: kill the hover dead-zone for good */
.ihrv-header-inner { padding-top: 0; padding-bottom: 0; min-height: 64px; }
.ihrv-nav-item.open .ihrv-mega { display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem; max-width: 1280px; margin: 0 auto; }

/* footer columns centered */
.ihrv-footer-cols { justify-items: center; justify-content: center; }

/* article hero: square corners */
.ihrv-article .wp-block-post-featured-image img { border-radius: 0; }

/* past issues grid */
.ihrv-issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 1.5rem; }
.ihrv-issue-card { background: #fff; border-radius: var(--ihrv-radius); box-shadow: var(--ihrv-shadow);
  padding: 1.25rem; text-align: center; text-decoration: none; color: var(--ihrv-navy); }
.ihrv-issue-card img { width: 100%; height: 220px; object-fit: contain; margin-bottom: .75rem; }
.ihrv-issue-card h2 { font-size: 1.35rem; margin: .25rem 0; }
.ihrv-issue-link { color: var(--ihrv-teal); font-weight: 700; }
.ihrv-issue-card:hover .ihrv-issue-link { text-decoration: underline; }

/* authors grid */
.ihrv-authors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 1.5rem; }
.ihrv-author-card { background: #fff; border-radius: var(--ihrv-radius); box-shadow: var(--ihrv-shadow);
  padding: 1.5rem; }
.ihrv-author-card img { width: 116px; height: 116px; border-radius: 50%; object-fit: cover;
  display: block; margin: 0 auto 1rem; }
.ihrv-author-card h3 { text-align: left; font-size: 1.45rem; margin: 0 0 .5rem; }
.ihrv-author-card p { color: #4b5563; font-size: .98rem; margin: 0; }

/* newsletter landing */
.ihrv-nl-hero { text-align: center; padding: 3.5rem 1.25rem 2.5rem; max-width: 860px; margin: 0 auto; }
.ihrv-nl-hero h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); color: var(--ihrv-navy); }
.ihrv-nl-hero p { max-width: 640px; margin: 1rem auto; }
.ihrv-nl-hero form { display: flex; max-width: 460px; margin: 1.5rem auto .5rem; }
.ihrv-nl-hero input[type=email] { flex: 1; border: 1px solid #d8d2c4; border-radius: 8px 0 0 8px; padding: .85rem 1.1rem; font-size: 1rem; }
.ihrv-nl-hero button { background: var(--ihrv-gold); color: var(--ihrv-teal-dark); font-weight: 700; border: 0; border-radius: 0 8px 8px 0; padding: .85rem 1.4rem; font-size: 1rem; cursor: pointer; }
.ihrv-nl-nospam { font-size: .9rem; color: #6b7280; }
.ihrv-nl-stats { display: flex; gap: 2.5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.ihrv-nl-stats h3 { font-size: 1.15rem; color: var(--ihrv-navy); }
.ihrv-nl-recent { max-width: 720px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.ihrv-email-item { background: #fff; border-radius: var(--ihrv-radius); box-shadow: var(--ihrv-shadow); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.ihrv-email-item span { color: #6b7280; font-size: .9rem; }
.ihrv-email-item h3 { margin: .15rem 0 0; font-size: 1.25rem; }
@media (max-width: 768px) {
  .ihrv-issues, .ihrv-authors { grid-template-columns: 1fr; }
  .ihrv-nl-hero form { flex-direction: column; gap: .6rem; }
  .ihrv-nl-hero input[type=email], .ihrv-nl-hero button { border-radius: 8px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .ihrv-issues, .ihrv-authors { grid-template-columns: repeat(2, 1fr); }
}

/* ============ v5 (round-4) ============ */
/* heart: a touch larger, symmetric, baseline-true */
svg.ihrv-heart { width: .92em; height: .92em; vertical-align: -0.08em; transform: none; }

/* card hover lift */
.ihrv-cards .wp-block-post, .ihrv-issue-card, .ihrv-author-card {
  transition: transform .18s ease, box-shadow .18s ease; }
.ihrv-cards .wp-block-post:hover, .ihrv-issue-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(13,48,73,.10), 0 12px 28px rgba(13,48,73,.12); }

/* subscribe form states */
.ihrv-hp { display: none !important; }
.ihrv-sub-ok { font-weight: 700; color: var(--ihrv-gold); font-size: 1.1rem; }
.ihrv-nl-hero .ihrv-sub-ok, .ihrv-article .ihrv-sub-ok { color: var(--ihrv-teal); }
.ihrv-sub-err { color: #ffb4b4; font-size: .95rem; }

/* ============ v6.1: newsletter two-column hero (matches production) ============ */
.ihrv-nl-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; }
.ihrv-nl-left { padding: clamp(2rem, 5vw, 4.5rem); align-self: center; max-width: 640px; justify-self: end; }
.ihrv-nl-left h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); color: var(--ihrv-ink); }
.ihrv-nl-brand { font-weight: 700; font-size: 1.6em; line-height: 1.1; display: inline-block; }
.ihrv-nl-left p { margin: 1rem 0; }
.ihrv-nl-left form { display: flex; max-width: 460px; margin: 1.25rem 0 .5rem; }
.ihrv-nl-left input[type=email] { flex: 1; border: 1px solid #d8d2c4; border-radius: 8px 0 0 8px; padding: .85rem 1.1rem; font-size: 1rem; }
.ihrv-nl-left button { background: var(--ihrv-gold); color: #fff; font-weight: 700; border: 0; border-radius: 0 8px 8px 0; padding: .85rem 1.4rem; font-size: 1rem; cursor: pointer; }
.ihrv-nl-stats { display: flex; gap: 1.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.ihrv-nl-stats h3 { font-family: Lato, sans-serif; font-size: 1.05rem; color: var(--ihrv-ink); margin: 0; }
.ihrv-nl-right { background: var(--ihrv-teal); display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; }
.ihrv-nl-right img { max-width: 454px; width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 880px) {
  .ihrv-nl-grid { grid-template-columns: 1fr; }
  .ihrv-nl-left { justify-self: start; }
  .ihrv-nl-left form { flex-direction: column; gap: .6rem; }
  .ihrv-nl-left input[type=email], .ihrv-nl-left button { border-radius: 8px; }
}

/* ============ v6.2: newsletter page final parity (David's side-by-side) ============ */
/* this page IS the subscribe function: hide the footer's navy subscribe band here only */
.page-id-33914 .ihrv-newsletter { display: none; }

/* brand line: massive heavy serif like production */
.ihrv-nl-left h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.25; }
.ihrv-nl-brand { font-size: 2.55em; font-weight: 700; letter-spacing: -.015em; line-height: 1.05;
  display: inline-block; margin-top: .25rem; }
.ihrv-nl-brand svg.ihrv-heart { width: .78em; height: .78em; }

/* right panel: deep teal, mockup top-anchored in a dark rounded frame, clipped at fold */
.ihrv-nl-right { background: #0e5a73; align-items: flex-start; overflow: hidden;
  padding: 3.5rem 3rem 0; }
.ihrv-nl-right img { border-radius: 18px 18px 0 0; border: 7px solid #0b2530; border-bottom: 0;
  display: block; max-width: 460px; }

/* hero fills the viewport under the header */
.ihrv-nl-grid { min-height: calc(100vh - 64px); }
.ihrv-nl-left { align-self: center; }

@media (max-width: 880px) {
  .ihrv-nl-grid { min-height: 0; }
  .ihrv-nl-right { padding: 2.5rem 1.5rem 0; max-height: 420px; }
  .ihrv-nl-brand { font-size: 2.1em; }
}

/* ============ v6.3: newsletter layout — full-bleed breakout (David's screenshots) ============ */
/* The hero was being crushed inside the page template's 780px content column. */

/* no page title on this page; the content h1 is the title (matches production) */
.page-id-33914 .wp-block-post-title { display: none; }

/* break the grid out of the constrained column to true full width */
.page-id-33914 .ihrv-nl-grid {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  display: grid; grid-template-columns: 1.15fr 1fr; min-height: calc(100vh - 64px);
}
.ihrv-nl-left { align-self: center; justify-self: center; max-width: 560px;
  padding: clamp(2rem, 4vw, 4rem) 1.5rem; }

/* lead line + massive single-line brand, like production */
.ihrv-nl-left h1 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem); line-height: 1.3; }
.ihrv-nl-brand { display: block; white-space: nowrap;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); font-weight: 700;
  letter-spacing: -.015em; line-height: 1.05; margin-top: .3rem; }
.ihrv-nl-brand svg.ihrv-heart { width: .72em; height: .72em; vertical-align: -4%; }

/* teal panel: phone-framed mockup, top-anchored, clipped at the fold */
.ihrv-nl-right { background: #0e5a73; display: flex; align-items: flex-start;
  justify-content: center; overflow: hidden; padding: 4rem 2.5rem 0; }
.ihrv-nl-right img { border-radius: 26px; border: 10px solid #0b2530;
  display: block; max-width: 440px; width: 100%; height: auto; }

/* stats inline row */
.ihrv-nl-stats { gap: 1.5rem; }
.ihrv-nl-stats h3 { white-space: nowrap; }

/* mobile (matches production): panel FIRST, then content; full-width stack */
@media (max-width: 880px) {
  .page-id-33914 .ihrv-nl-grid { grid-template-columns: 1fr; min-height: 0; }
  .ihrv-nl-right { order: -1; padding: 2.5rem 1.25rem 0; max-height: 430px; }
  .ihrv-nl-right img { max-width: 92%; }
  .ihrv-nl-left { justify-self: stretch; max-width: none; padding: 2rem 1.25rem 2.5rem; }
  .ihrv-nl-brand { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}

/* guard: 100vw breakout must not create horizontal scroll (scrollbar-width artifact) */
body.page-id-33914 { overflow-x: clip; }

/* ============ v6.5: desktop — full-width halves, content on the 1280 grid ============ */
@media (min-width: 881px) {
  .page-id-33914 .ihrv-nl-grid { grid-template-columns: 1fr 1fr; }
  /* left content: 640px region anchored to the center seam = left edge sits on the
     same line as the home page's 1280px Recent Articles container */
  .ihrv-nl-left { justify-self: stretch; max-width: none;
    margin-left: auto; width: min(100%, 640px); box-sizing: border-box;
    padding: clamp(2.5rem, 5vw, 4.5rem) 3rem clamp(2.5rem, 5vw, 4.5rem) 1.25rem; }
  /* right: mirror — content region 640px anchored to the seam, mockup centered in it */
  .ihrv-nl-right { justify-content: center;
    padding: 4rem max(2rem, calc(100% - 640px)) 0 2rem; }
  .ihrv-nl-right img { max-width: 440px; }
}

/* ============ v6.6: the real constraint fix + image frame/anchor ============ */
/* WP constrained layout caps children at --wp--style--global--content-size (780px);
   width alone doesn't escape it — max-width must be lifted too. */
.page-id-33914 .ihrv-nl-grid { max-width: none !important; }

/* the mockup PNG carries its own phone frame — no CSS frame on top of it */
.ihrv-nl-right img { border: 0; border-radius: 0; }

/* desktop: mockup anchored to the BOTTOM of the teal section */
@media (min-width: 881px) {
  .ihrv-nl-right { align-items: flex-end; }
}

/* ============ v7.0: newsletter on its own unconstrained template ============ */
/* page-newsletter.html has no constrained layout — kill all prior breakout hacks */
.page-id-33914 .ihrv-nl-grid {
  width: 100% !important; max-width: none !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
body.page-id-33914 { overflow-x: visible; }
/* sane hero height: fill viewport on tall screens, never force phantom space */
@media (min-width: 881px) {
  .page-id-33914 .ihrv-nl-grid { min-height: min(calc(100vh - 64px), 820px); }
}
@media (max-width: 880px) {
  .page-id-33914 .ihrv-nl-grid { min-height: 0; }
}
