/* R162 — blog design pass (specs/blog-design.md). Enqueued only on blog views (inc/hp-blog.php).
   Brand: light orange #f6921e · dark orange #f05a28 · pillar colours per card (--hp-pillar, brand-colours.md). */

.hp-blog {
	--hp-orange: #f6921e;
	--hp-orange-dark: #f05a28;
	--hp-ink: #1f2330;
	--hp-muted: #6b7280;
	--hp-line: #e8e9ee;
	--hp-radius: 12px;
	--hp-shadow: 0 2px 12px rgba(20, 24, 40, .06);
	--hp-shadow-hover: 0 12px 32px rgba(20, 24, 40, .12);
}

/* ---------------------------------------------------------------- head */
.hp-blog-head { padding: 56px 0 8px; text-align: center; }
.hp-blog-head .section-title { margin-bottom: 0; }
.hp-blog-head h1 { margin: 0 0 10px; }
.hp-blog-intro { max-width: 620px; margin: 0 auto 22px; font-size: 18px; line-height: 1.6; color: var(--hp-muted); }
.hp-blog .archive-description { text-align: center; }

.hp-pillar-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 8px; }
.hp-pillar-chip {
	--hp-pillar: var(--hp-orange);
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
	border: 1.5px solid var(--hp-line); border-radius: 999px; background: #fff;
	color: var(--hp-ink); font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none;
	transition: border-color .15s, background .15s, transform .15s;
}
.hp-pillar-chip:hover, .hp-pillar-chip:focus { border-color: var(--hp-pillar); color: var(--hp-ink); text-decoration: none; transform: translateY(-1px); }
.hp-pillar-chip.is-active { border-color: var(--hp-pillar); background: color-mix(in srgb, var(--hp-pillar) 22%, #fff); }
.hp-chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hp-pillar); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); flex: none; }

/* ---------------------------------------------------------------- grid */
.hp-blog-posts { padding-top: 24px; }
.hp-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.hp-post-grid__lead, .hp-post-grid__band { grid-column: 1 / -1; }
.hp-post-col { padding: 0; margin-bottom: 28px; }
.hp-blog .archive-posts .grid.section-body { display: flex; flex-wrap: wrap; }

/* ---------------------------------------------------------------- card */
.hp-post-card {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: #fff; border-radius: var(--hp-radius); box-shadow: var(--hp-shadow); overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.hp-post-card:hover { box-shadow: var(--hp-shadow-hover); transform: translateY(-3px); }
.hp-post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f3f4f7; }
.hp-post-card__media img, .hp-post-img--empty { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hp-post-card:hover .hp-post-card__media img { transform: scale(1.03); }
.hp-post-img--empty { --hp-pillar: var(--hp-orange); background: linear-gradient(135deg, color-mix(in srgb, var(--hp-pillar) 35%, #fff), color-mix(in srgb, var(--hp-pillar) 70%, #fff)); }
.hp-post-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.hp-post-card__title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: 700;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-post-card__title a { color: var(--hp-ink); text-decoration: none; }
.hp-post-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.hp-post-card__title a:hover { color: var(--hp-orange-dark); }
.hp-post-card__excerpt { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--hp-muted);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hp-post-card__meta { margin-top: auto; display: flex; gap: 12px; font-size: 13px; color: var(--hp-muted); }

.hp-chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 10px; }
.hp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1; text-decoration: none; }
.hp-chip--pillar { --hp-pillar: var(--hp-orange); background: color-mix(in srgb, var(--hp-pillar) 20%, #fff); color: var(--hp-ink); }
.hp-chip--topic { background: #f3f4f7; color: #4b5160; }
.hp-chip:hover, .hp-chip:focus { color: var(--hp-orange-dark); text-decoration: none; }

/* lead card */
.hp-post-card--lead { flex-direction: row; }
.hp-post-card--lead .hp-post-card__media { flex: 0 0 60%; aspect-ratio: 3 / 2; }
.hp-post-card--lead .hp-post-card__body { justify-content: center; padding: 32px 36px; }
.hp-post-card--lead .hp-post-card__title { font-size: 30px; line-height: 1.2; -webkit-line-clamp: 3; }
.hp-post-card--lead .hp-post-card__excerpt { font-size: 17px; }

/* ---------------------------------------------------------------- band */
.hp-nl-band { background: #fff5e8; border-radius: var(--hp-radius); padding: 28px 32px; }
.hp-nl-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.hp-nl-band__title { margin: 0; font-size: 20px; font-weight: 700; color: var(--hp-ink); flex: 1 1 260px; }
.hp-nl-band .hp-nl-form { flex: 1 1 360px; max-width: 480px; }
.hp-nl-band .hp-nl-row { display: flex; gap: 8px; }
.hp-nl-band .hp-nl-row input[type="email"] { flex: 1; min-height: 46px; padding: 0 16px; border: 1.5px solid #f3d9bb; border-radius: 999px; background: #fff; color: var(--hp-ink); font-size: 15px; }
.hp-nl-band .hp-nl-row input[type="email"]::placeholder { color: #9aa0ad; }
.hp-nl-band .hp-nl-row button { min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--hp-orange); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.hp-nl-band .hp-nl-row button:hover { background: var(--hp-orange-dark); }
.hp-nl-band .hp-nl-msg { margin: 10px 0 0; font-size: 14px; color: var(--hp-ink); }
.hp-nl-band .hp-nl-turnstile { margin-top: 10px; }
.hp-nl-band .hp-nl-turnstile:empty { display: none; }

/* ---------------------------------------------------------------- pagination */
.hp-blog-pagination { padding: 40px 0 0; }
.hp-blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0 3px; border-radius: 999px; font-weight: 600; }
.hp-blog-pagination .page-numbers.current { background: var(--hp-orange); color: #fff; }

/* ---------------------------------------------------------------- post */
.hp-post { padding-top: 40px; }
.hp-post-head { max-width: 820px; margin: 0 auto 28px; text-align: center; }
.hp-post-head .hp-chips { justify-content: center; margin-bottom: 14px; }
.hp-post-title { margin: 0 0 16px; font-size: 42px; line-height: 1.15; }
.hp-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 16px; font-size: 13px; color: var(--hp-muted); }
.hp-crumbs a { color: var(--hp-muted); text-decoration: none; }
.hp-crumbs a:hover { color: var(--hp-orange-dark); }
.hp-post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; font-size: 15px; color: var(--hp-muted); }
.hp-post-meta__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hp-post-meta__by { color: var(--hp-ink); font-weight: 600; }
.hp-post-meta__share { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--hp-line); border-radius: 999px; color: var(--hp-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.hp-post-meta__share:hover { border-color: var(--hp-orange); color: var(--hp-orange-dark); text-decoration: none; }

.hp-post-hero { max-width: 960px; margin: 0 auto 40px; border-radius: var(--hp-radius); overflow: hidden; aspect-ratio: 16 / 9; background: #f3f4f7; }
.hp-post-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hp-post-body { font-size: 18px; line-height: 32px; color: #2b2f3a; }
.hp-post-body > p:first-of-type { font-size: 20px; line-height: 34px; color: var(--hp-ink); }
.hp-post-body h2, .hp-post-body h3 { margin: 36px 0 14px; line-height: 1.25; color: var(--hp-ink); }
.hp-post-body h2 { font-size: 28px; }
.hp-post-body h3 { font-size: 22px; }
.hp-post-body a { color: var(--hp-orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.hp-post-body blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--hp-orange); font-size: 20px; font-style: italic; color: #3b3f4b; }
.hp-post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.hp-post-body ul, .hp-post-body ol { padding-left: 24px; }
.hp-post-body li { margin-bottom: 8px; }

.hp-blog-cta { --hp-pillar: var(--hp-orange); max-width: 702px; margin: 44px auto 0; padding: 26px 30px; border-radius: var(--hp-radius);
	background: color-mix(in srgb, var(--hp-pillar) 14%, #fff); border: 1px solid color-mix(in srgb, var(--hp-pillar) 40%, #fff);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.hp-blog-cta__title { margin: 0; font-size: 20px; font-weight: 700; font-style: italic; color: var(--hp-ink); flex: 1 1 280px; } /* owner 11 Oct: italic */
/* Comments (owner 11 Oct): the theme's empty state shows a sad face — not on a happiness site. */
.hp-post-comments .no-results-icon { display: none; }
.hp-blog-cta__btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--hp-orange); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; white-space: nowrap; }
.hp-blog-cta__btn:hover { background: var(--hp-orange-dark); }

.hp-related { margin: 56px 0 0; }
.hp-related__title { margin: 0 0 22px; font-size: 26px; text-align: center; }
.hp-post-grid--related .hp-post-card__title { font-size: 18px; }

.hp-post .hp-nl-band { margin: 40px auto 0; max-width: 960px; }

.hp-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid var(--hp-line); }
.hp-adjacent__link { display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 14px 18px; border-radius: var(--hp-radius); background: #fff; box-shadow: var(--hp-shadow); color: var(--hp-ink); text-decoration: none; transition: box-shadow .2s; }
.hp-adjacent__link:hover { box-shadow: var(--hp-shadow-hover); color: var(--hp-ink); text-decoration: none; }
.hp-adjacent__link--empty { background: none; box-shadow: none; }
.hp-adjacent__link--next { text-align: right; }
.hp-adjacent__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hp-muted); }
.hp-adjacent__title { font-size: 16px; font-weight: 600; line-height: 1.35; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 991px) {
	.hp-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
	.hp-post-card--lead .hp-post-card__body { padding: 24px; }
	.hp-post-card--lead .hp-post-card__title { font-size: 24px; }
	.hp-post-title { font-size: 34px; }
}
@media (max-width: 767px) {
	.hp-blog-head { padding-top: 36px; }
	.hp-blog-intro { font-size: 16px; }
	.hp-post-grid, .hp-adjacent { grid-template-columns: 1fr; }
	.hp-post-card--lead { flex-direction: column; }
	.hp-post-card--lead .hp-post-card__media { flex: none; aspect-ratio: 16 / 10; }
	.hp-post-card--lead .hp-post-card__body { padding: 18px 20px 20px; }
	.hp-post-card--lead .hp-post-card__title { font-size: 22px; }
	.hp-post-card--lead .hp-post-card__excerpt { font-size: 15px; }
	.hp-nl-band { padding: 22px 20px; }
	.hp-nl-band .hp-nl-row { flex-direction: column; }
	.hp-post { padding-top: 24px; }
	.hp-post-title { font-size: 28px; }
	.hp-post-hero { margin-bottom: 26px; border-radius: 8px; }
	.hp-post-body { font-size: 17px; line-height: 30px; }
	.hp-post-body > p:first-of-type { font-size: 18px; line-height: 31px; }
	.hp-blog-cta { padding: 20px; }
	.hp-blog-cta__btn { width: 100%; justify-content: center; }
	.hp-adjacent__link--next { text-align: left; }
	.hp-post-meta__share { margin-left: 0; }
}

/* ---------------------------------------------------------------- phone tap targets (design §Post 9)
   The site renders at root `zoom: .9` (style.css, the owner's 90 % view), so a 44 px rendered target needs 50 px here.
   Chips keep their visual size: the box grows to 50 px, the pill is painted by ::before at the old 26 px. */
@media (max-width: 767px) {
	.hp-blog .hp-pillar-chip { min-height: 50px; }
	.hp-blog .hp-chip { position: relative; z-index: 0; min-height: 50px; margin-top: -12px; margin-bottom: -12px; background: transparent; }
	.hp-blog .hp-chip::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; bottom: 12px; border-radius: 999px; z-index: -1; }
	.hp-blog .hp-chip--pillar::before { background: color-mix(in srgb, var(--hp-pillar) 20%, #fff); }
	.hp-blog .hp-chip--topic::before { background: #f3f4f7; }
	.hp-blog .hp-blog-pagination .page-numbers { min-width: 50px; min-height: 50px; }
	.hp-blog .hp-nl-band .hp-nl-row input[type=email], .hp-blog .hp-nl-band .hp-nl-row button { min-height: 50px; }
	.hp-blog .hp-post-meta__share { min-height: 50px; }
	.hp-blog .hp-blog-cta__btn { min-height: 50px; }
}
