/*
Theme Name: Hitfire Digital
Theme URI: https://www.hitfiredigital.com
Author: Sadie de Pinto
Author URI: https://www.hitfiredigital.com
Description: Block theme for Hitfire Digital, built on the Hitfire Digital design system tokens. Technical SEO, GEO / AEO, AI Automation and Analytics.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.4.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hitfire
*/

/* ==========================================================================
   Token aliases. Every value below maps to a Hitfire design system token.
   ========================================================================== */
:root {
	--hf-surface: var(--wp--preset--color--surface);
	--hf-surface-raised: var(--wp--preset--color--surface-raised);
	--hf-ink: var(--wp--preset--color--ink);
	--hf-ink-muted: var(--wp--preset--color--ink-muted);
	--hf-border: var(--wp--preset--color--border);
	--hf-link: var(--wp--preset--color--link);
	--hf-focus: var(--wp--preset--color--focus-ring);
	--hf-on-gradient: var(--wp--preset--color--on-gradient);
	--hf-space-1: 4px; --hf-space-2: 8px; --hf-space-3: 12px; --hf-space-4: 16px;
	--hf-space-6: 24px; --hf-space-8: 32px; --hf-space-12: 48px; --hf-space-16: 64px;
	--hf-radius-sm: var(--wp--custom--radius--sm);
	--hf-radius-md: var(--wp--custom--radius--md);
	--hf-radius-lg: var(--wp--custom--radius--lg);
	--hf-radius-pill: var(--wp--custom--radius--pill);
	--hf-dur-fast: var(--wp--custom--motion--duration-fast);
	--hf-dur-base: var(--wp--custom--motion--duration-base);
	--hf-ease: var(--wp--custom--motion--ease-out);
	/* Outer margins per the layout grid: mobile space-4, tablet space-8, desktop space-12 */
	--wp--style--root--padding-left: var(--hf-space-4);
	--wp--style--root--padding-right: var(--hf-space-4);
}
@media (min-width: 768px) {
	:root { --wp--style--root--padding-left: var(--hf-space-8); --wp--style--root--padding-right: var(--hf-space-8); }
}
@media (min-width: 1024px) {
	:root { --wp--style--root--padding-left: var(--hf-space-12); --wp--style--root--padding-right: var(--hf-space-12); }
}

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--hf-focus);
	outline-offset: 2px;
}
p, .wp-block-list > li { max-width: 65ch; }
h1, h2, h3, .hf-display { text-wrap: balance; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.hf-main > .alignfull,
.hf-main .wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }

/* Type helpers mapped to the system styles */
.hf-display { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--display); line-height: 1.07; font-weight: 700; letter-spacing: -0.01em; }
.hf-body-lg, .hf-lede { font-size: var(--wp--preset--font-size--body-lg); line-height: 27px; font-weight: 500; }
.hf-caption { font-size: var(--wp--preset--font-size--caption); line-height: 18px; color: var(--hf-ink-muted); }

/* ==========================================================================
   Components from the design system
   ========================================================================== */

/* Button: primary (default), outline (on GradientPanel), ghost (on surface) */
.wp-element-button, .wp-block-button__link {
	transition: transform var(--hf-dur-fast) var(--hf-ease), box-shadow var(--hf-dur-fast) var(--hf-ease), background-color var(--hf-dur-fast) var(--hf-ease);
	white-space: nowrap;
}
.wp-block-button:not(.is-style-outline):not(.is-style-ghost) .wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.12); }
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent; color: var(--hf-link); box-shadow: none; border-color: transparent;
	padding-left: var(--hf-space-2); padding-right: var(--hf-space-2);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
	.wp-element-button, .wp-block-button__link { transition: none; }
	.wp-block-button .wp-block-button__link:hover { transform: none !important; }
}

/* Eyebrow: label style, pill, never clickable */
.hf-eyebrow {
	display: inline-flex; align-items: center; width: fit-content;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	padding: 5px var(--hf-space-3); border-radius: var(--hf-radius-pill);
	border: 1px solid rgba(255,255,255,.45); background: rgba(20,16,34,.4); color: var(--hf-on-gradient);
	margin-bottom: 0;
}
.hf-eyebrow--surface { border-color: var(--hf-border); background: var(--hf-surface-raised); color: var(--hf-link); }

/* ServiceTag: squared labels, not filters */
.hf-tags { display: flex; flex-wrap: wrap; gap: var(--hf-space-2); }
.hf-tag {
	display: inline-flex; align-items: center; font-size: 13px; line-height: 18px; font-weight: 600;
	padding: 7px 13px; border-radius: var(--hf-radius-md);
	background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: var(--hf-on-gradient);
}
.hf-tag--surface { background: var(--hf-surface-raised); border-color: var(--hf-border); color: var(--hf-ink); }

/* GradientPanel: brand gradient with the dot-grid texture. One per screen. */
.hf-gradient {
	position: relative; overflow: hidden; color: var(--hf-on-gradient);
	background: var(--wp--preset--gradient--brand);
}
.hf-gradient::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.4px);
	background-size: 18px 18px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.hf-gradient > * { position: relative; }
.hf-gradient :where(h1, h2, h3, p, li) { color: var(--hf-on-gradient); }
.hf-gradient a:where(:not(.wp-element-button)) { color: var(--hf-on-gradient); }

/* ==========================================================================
   Layout sections
   ========================================================================== */
.hf-section { padding-top: var(--hf-space-12); padding-bottom: var(--hf-space-12); background: var(--hf-surface); }
.hf-section--raised { background: var(--hf-surface-raised); }
@media (min-width: 1024px) { .hf-section, .hf-hero, .hf-cta { padding-top: var(--hf-space-16); padding-bottom: var(--hf-space-16); } }
.hf-intro { font-size: var(--wp--preset--font-size--body-lg); line-height: 27px; font-weight: 500; color: var(--hf-ink-muted); }

/* Header */
.hf-header { background: var(--hf-surface); border-bottom: 1px solid var(--hf-border); }
.hf-logo { display: block; line-height: 0; }
.hf-logo img { height: 36px; width: auto; display: block; }
@media (max-width: 600px) { .hf-header .wp-block-buttons { display: none; } }

/* Hero on GradientPanel */
.hf-hero { padding-top: var(--hf-space-12); padding-bottom: var(--hf-space-12); }
.hf-hero .wp-block-columns { align-items: center; gap: var(--hf-space-12); }
.hf-hero h1 { font-size: var(--wp--preset--font-size--display); line-height: 1.07; max-width: 15ch; }
.hf-hero .hf-lede { max-width: 46ch; }

/* Example AI answer card (sits left of the cyan corner, never on it) */
.hf-answer {
	background: rgba(18,11,36,.72); border: 1px solid rgba(255,255,255,.18);
	border-radius: var(--hf-radius-lg); padding: var(--hf-space-6); max-width: 30rem; margin: 0 0 0 auto;
	font-size: 15px; line-height: 24px;
}
.hf-answer p, .hf-answer li { color: var(--wp--preset--color--ink-dark); }
.hf-answer__label { margin: 0 0 var(--hf-space-3); font-size: 13px; color: var(--wp--preset--color--ink-muted-dark) !important; }
.hf-answer__q { background: rgba(255,255,255,.08); border-radius: var(--hf-radius-md); padding: var(--hf-space-3) var(--hf-space-4); margin: 0 0 var(--hf-space-4) auto; width: fit-content; max-width: 90%; }
.hf-answer__a { margin: 0 0 var(--hf-space-4); }
.hf-answer__a mark { background: none; color: var(--hf-on-gradient); font-weight: 600; box-shadow: inset 0 -0.35em 0 rgba(255,154,86,.55); }
.hf-answer__src { display: flex; flex-wrap: wrap; gap: var(--hf-space-2); margin: 0; padding: 0; list-style: none; font-size: 13px; }
.hf-answer__src li { border: 1px solid rgba(255,255,255,.25); border-radius: var(--hf-radius-md); padding: 2px var(--hf-space-3); }
.hf-answer__src li.is-you { border-color: var(--wp--preset--color--flame-light); color: var(--hf-on-gradient); }
@media (max-width: 781px) { .hf-answer { margin-left: 0; } }

/* Service cards */
.hf-service {
	background: var(--hf-surface-raised); border: 1px solid var(--hf-border); border-radius: var(--hf-radius-lg);
	padding: var(--hf-space-6); box-shadow: var(--wp--preset--shadow--card);
}
.hf-service h3 { margin-top: var(--hf-space-3); }
.hf-service .wp-block-list { padding-left: 1.1rem; color: var(--hf-ink-muted); }
@media (max-width: 781px) { .hf-services { grid-template-columns: 1fr !important; } }

/* Process steps */
.hf-steps { list-style: none; padding: 0; margin: 0; counter-reset: hfstep; }
.hf-steps li { counter-increment: hfstep; position: relative; padding: var(--hf-space-6) 0 var(--hf-space-6) var(--hf-space-16); border-top: 1px solid var(--hf-border); max-width: none; color: var(--hf-ink-muted); }
.hf-steps li::before { content: counter(hfstep, decimal-leading-zero); position: absolute; left: 0; top: var(--hf-space-6); font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 30px; line-height: 36px; color: var(--hf-link); }
.hf-steps strong { display: block; color: var(--hf-ink); font-family: var(--wp--preset--font-family--display); font-size: 22px; line-height: 28px; font-weight: 600; margin-bottom: var(--hf-space-1); }

/* Results table */
.hf-results table { border-collapse: collapse; width: 100%; min-width: 620px; font-variant-numeric: tabular-nums; }
.hf-results th, .hf-results td { border: 0; border-bottom: 1px solid var(--hf-border); padding: var(--hf-space-4) var(--hf-space-3) var(--hf-space-4) 0; text-align: left; vertical-align: top; }
.hf-results thead th { font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--hf-ink-muted); font-weight: 600; border-bottom: 2px solid var(--hf-ink); }
.hf-results td:last-child { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 22px; color: var(--hf-link); }
.hf-results td small { display: block; font-family: var(--wp--preset--font-family--sans); font-weight: 400; font-size: 13px; line-height: 18px; color: var(--hf-ink-muted); margin-top: var(--hf-space-1); max-width: 40ch; }
.hf-results figcaption { text-align: left; }

/* FAQ (Accordion) */
.hf-faq-wrap > * { max-width: 720px; }
.hf-faq { border-bottom: 1px solid var(--hf-border); padding: var(--hf-space-4) 0; }
.hf-faq summary { cursor: pointer; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 17px; line-height: 27px; list-style: none; display: flex; justify-content: space-between; gap: var(--hf-space-4); }
.hf-faq summary::-webkit-details-marker { display: none; }
.hf-faq summary::after { content: "+"; color: var(--hf-link); font-size: 22px; line-height: 27px; transition: transform var(--hf-dur-base) var(--hf-ease); }
.hf-faq[open] summary::after { transform: rotate(45deg); }
.hf-faq > p { margin-top: var(--hf-space-3); color: var(--hf-ink-muted); }
@media (prefers-reduced-motion: reduce) { .hf-faq summary::after { transition: none; } }

/* CTA band on GradientPanel */
.hf-cta h2 { max-width: 20ch; }
.hf-cta .hf-lede { max-width: 46ch; }

/* Post grid */
.hf-postgrid .wp-block-post { background: var(--hf-surface-raised); border: 1px solid var(--hf-border); border-radius: var(--hf-radius-lg); padding: var(--hf-space-6); }
.hf-postgrid .wp-block-post-title { font-size: 22px; line-height: 28px; font-weight: 600; margin: var(--hf-space-2) 0; }
.hf-postgrid .wp-block-post-date, .hf-meta { font-size: 13px; line-height: 18px; color: var(--hf-ink-muted); }
.hf-postgrid .wp-block-post-featured-image img { border-radius: var(--hf-radius-md); aspect-ratio: 16/10; object-fit: cover; }

/* Page and article heads */
.hf-main > .hf-page-head { padding-top: var(--hf-space-12); padding-bottom: var(--hf-space-6); }
.hf-main > .hf-page-body { padding-bottom: var(--hf-space-16); }

.hf-article .wp-block-post-content :where(h2) { margin-top: var(--hf-space-12); }

/* Checklist */
.hf-checklist { list-style: none; padding: 0; }
.hf-checklist li { position: relative; padding: var(--hf-space-3) 0 var(--hf-space-3) var(--hf-space-8); border-bottom: 1px solid var(--hf-border); }
.hf-checklist li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--gradient--flame); }

/* Form wrapper */
.hf-form { max-width: 40rem; margin-top: var(--hf-space-6); }
.hf-form :where(input, textarea, select) { font: inherit; }

/* Footer: dark theme tokens */
.hf-footer { background: var(--wp--preset--color--surface-dark); color: var(--wp--preset--color--ink-muted-dark); padding-top: var(--hf-space-16); padding-bottom: var(--hf-space-8); }
.hf-footer h2 { font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--ink-dark); font-family: var(--wp--preset--font-family--sans); font-weight: 600; }
.hf-footer a { color: var(--wp--preset--color--ink-dark); text-decoration: none; }
.hf-footer a:hover { text-decoration: underline; }
.hf-footer :where(a, summary):focus-visible { outline-color: var(--wp--preset--color--flame-light); }
.hf-footer .wp-block-list { list-style: none; padding: 0; }
.hf-footer .wp-block-list li { margin: var(--hf-space-2) 0; }
.hf-footer .hf-logo img { height: 32px; }
.hf-footer .hf-legal { border-top: 1px solid var(--wp--preset--color--border-dark); padding-top: var(--hf-space-6); font-size: 13px; }
.hf-hero h1.hf-page-title { font-size: var(--wp--preset--font-size--title); line-height: 1.15; max-width: 22ch; }
.hf-header .is-style-ghost .wp-block-button__link { font-weight: 700; }

/* ==========================================================================
   Round 1 components
   ========================================================================== */


/* SiteHeader: sticky, surface */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
html { scroll-padding-top: 88px; }

/* Header CTA becomes the flame primary only when no other primary is in view */
.hf-cta-free .hf-header .is-style-ghost .wp-block-button__link {
	background: var(--wp--preset--gradient--flame); color: var(--wp--preset--color--on-flame);
	box-shadow: var(--wp--preset--shadow--cta); padding-left: 22px; padding-right: 22px; text-decoration: none;
}

/* MegaMenu: disclosure submenu rendered as a wide panel */
.hf-nav .wp-block-navigation-item__content { padding: var(--hf-space-2) 0; }
.hf-nav .wp-block-navigation__submenu-icon { margin-left: var(--hf-space-1); }
@media (min-width: 1024px) {
	.hf-nav .has-child .wp-block-navigation__submenu-container {
		display: grid !important; grid-template-columns: repeat(2, minmax(14rem, 1fr)); gap: var(--hf-space-2);
		min-width: 36rem !important; left: auto !important; right: -6rem !important; padding: var(--hf-space-4) !important; margin-top: var(--hf-space-2);
		background: var(--hf-surface) !important; border: 1px solid var(--hf-border) !important;
		border-radius: var(--hf-radius-lg); box-shadow: var(--wp--preset--shadow--card);
	}
	.hf-nav .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		display: flex !important; flex-direction: column; align-items: flex-start; gap: 2px;
		padding: var(--hf-space-3) !important; border-radius: var(--hf-radius-md); width: 100%;
	}
	.hf-nav .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--hf-surface-raised); }
}
.hf-nav .wp-block-navigation-item__label { font-weight: 600; }
.hf-nav .wp-block-navigation-item__description { display: block; font-size: 13px; line-height: 18px; color: var(--hf-ink-muted); font-weight: 400; margin-top: 2px; }

/* NavDrawer: collapse the menu below 1024px (core collapses at 600px) */
@media (min-width: 600px) and (max-width: 1023px) {
	.hf-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.hf-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
.wp-block-navigation__responsive-container.is-menu-open { background: var(--hf-surface) !important; padding: var(--hf-space-6) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 17px; padding: var(--hf-space-2) 0; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { padding-left: var(--hf-space-4) !important; }

/* Text-forward hero on surface (inner pages) */
.hf-hero-text { background: var(--hf-surface); border-bottom: 1px solid var(--hf-border); padding-top: var(--hf-space-12); padding-bottom: var(--hf-space-12); }
.hf-hero-text h1 { font-size: var(--wp--preset--font-size--title); line-height: 1.15; max-width: 24ch; margin-top: var(--hf-space-4); }
.hf-hero-text .hf-lede { color: var(--hf-ink-muted); max-width: 60ch; }
.hf-links { gap: var(--hf-space-2) var(--hf-space-6) !important; }

/* Split hero with sticky CTA card (service detail) */
.hf-split .wp-block-columns { align-items: flex-start; gap: var(--hf-space-12); }
.hf-sticky-cta { position: sticky; top: 104px; }
.hf-card {
	background: var(--hf-surface-raised); border: 1px solid var(--hf-border); border-radius: var(--hf-radius-lg);
	padding: var(--hf-space-6); box-shadow: var(--wp--preset--shadow--card); list-style: none;
}
.hf-card h3 { margin-top: 0; }
@media (max-width: 781px) { .hf-sticky-cta { position: static; } }

/* CaseCard */
.hf-cases .wp-block-post { display: flex; flex-direction: column; gap: var(--hf-space-2); background: var(--hf-surface-raised); border: 1px solid var(--hf-border); border-radius: var(--hf-radius-lg); padding: var(--hf-space-6); box-shadow: var(--wp--preset--shadow--card); }
.hf-case-metric { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: var(--wp--preset--font-size--heading); line-height: 1.2; color: var(--hf-link); margin: 0; }
.hf-case-metric:empty, .hf-case-metric-label:empty { display: none; }
.hf-case-metric-label { font-size: 13px; line-height: 18px; color: var(--hf-ink-muted); margin: 0 0 var(--hf-space-2); }
.hf-cases .wp-block-post-title { font-size: 22px; line-height: 28px; font-weight: 600; margin: var(--hf-space-2) 0 0; }
.hf-tagrow { display: flex; flex-wrap: wrap; gap: var(--hf-space-2); font-size: 0; }
.hf-tagrow a, .hf-tagrow .wp-block-post-terms__separator { font-size: 13px; }
.hf-tagrow .wp-block-post-terms__separator { display: none; }
.hf-tagrow a { display: inline-flex; padding: 4px 10px; border-radius: var(--hf-radius-md); background: var(--hf-surface); border: 1px solid var(--hf-border); color: var(--hf-ink); text-decoration: none; font-weight: 600; line-height: 18px; }
.hf-tagrow a:hover { border-color: var(--hf-link); }

/* CaseFacts + MetricRow */
.hf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--hf-space-6); padding: var(--hf-space-6) 0; border-top: 1px solid var(--hf-border); border-bottom: 1px solid var(--hf-border); }
.hf-facts h2 { font-family: var(--wp--preset--font-family--sans); font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--hf-ink-muted); font-weight: 600; margin: 0 0 var(--hf-space-2); }
.hf-metrics { gap: var(--hf-space-4) !important; }
.hf-metric { background: var(--hf-surface-raised); border-radius: var(--hf-radius-lg); padding: var(--hf-space-6); border: 1px solid var(--hf-border); }
.hf-metric .hf-case-metric { font-size: var(--wp--preset--font-size--title); }

/* DataVizFrame */
.hf-dataviz { margin: var(--hf-space-8) 0; padding: var(--hf-space-6); border: 1px solid var(--hf-border); border-radius: var(--hf-radius-lg); background: var(--hf-surface); }
.hf-dataviz svg { width: 100%; height: auto; display: block; }
.hf-dataviz figcaption { font-size: 13px; line-height: 18px; color: var(--hf-ink-muted); margin-top: var(--hf-space-3); }
.hf-dataviz details { margin-top: var(--hf-space-3); font-size: 13px; }
.hf-dataviz summary { cursor: pointer; color: var(--hf-link); font-weight: 600; }
.hf-dataviz table { border-collapse: collapse; margin-top: var(--hf-space-2); }
.hf-dataviz th, .hf-dataviz td { text-align: left; padding: var(--hf-space-1) var(--hf-space-4) var(--hf-space-1) 0; border-bottom: 1px solid var(--hf-border); }

/* FilterChip */
.hf-chips ul { display: flex; flex-wrap: wrap; gap: var(--hf-space-2); list-style: none; margin: 0; padding: 0; }
.hf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--hf-radius-pill); border: 1px solid var(--hf-border); background: var(--hf-surface); color: var(--hf-ink); font-size: 13px; line-height: 18px; font-weight: 600; text-decoration: none; transition: border-color var(--hf-dur-fast) var(--hf-ease); }
.hf-chip:hover { border-color: var(--hf-ink); }
.hf-chip[aria-current="page"] { background: var(--hf-ink); border-color: var(--hf-ink); color: var(--hf-surface); }
.hf-chip[aria-current="page"]::before { content: ""; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px,-1px); }

/* Resource toolbar: search + chips */
.hf-toolbar { gap: var(--hf-space-4) !important; padding: var(--hf-space-6) 0; }
.hf-toolbar .wp-block-search { min-width: min(100%, 22rem); }
.wp-block-search__input { border: 1px solid var(--hf-border); border-radius: var(--hf-radius-pill); padding: 10px 16px; font: inherit; }
.wp-block-search__button { margin-left: var(--hf-space-2); }

/* Featured post */
.hf-featured .wp-block-post { display: grid; grid-template-columns: 1fr; gap: var(--hf-space-3); background: var(--hf-surface-raised); border: 1px solid var(--hf-border); border-radius: var(--hf-radius-lg); padding: var(--hf-space-8); }
.hf-featured .wp-block-post-title { font-size: var(--wp--preset--font-size--heading); line-height: 1.2; margin: 0; }

/* Post card meta */
.hf-postgrid .wp-block-post { display: flex; flex-direction: column; gap: var(--hf-space-2); }
.hf-postgrid .wp-block-post-excerpt { color: var(--hf-ink-muted); margin: 0; }
.hf-postgrid .hf-meta-row { gap: var(--hf-space-2) !important; font-size: 13px; color: var(--hf-ink-muted); }

/* Article */
.hf-article-head .hf-meta-row { gap: var(--hf-space-2) var(--hf-space-4) !important; font-size: 13px; line-height: 18px; color: var(--hf-ink-muted); margin-top: var(--hf-space-4); }
.hf-article-head .hf-meta-row > * { margin: 0; }
.hf-author { margin-top: var(--hf-space-12); padding: var(--hf-space-6); border-radius: var(--hf-radius-lg); background: var(--hf-surface-raised); border: 1px solid var(--hf-border); }
.hf-author .wp-block-post-author__name { font-family: var(--wp--preset--font-family--display); font-weight: 600; }
.hf-related { margin-top: var(--hf-space-12); }
.hf-related h2 { font-size: var(--wp--preset--font-size--heading); }
.hf-related__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--hf-space-4); padding: 0; }
.hf-related__list h3 { font-size: 17px; line-height: 27px; margin: var(--hf-space-2) 0; }
.hf-related__list h3 a { color: var(--hf-ink); text-decoration: none; }
.hf-related__list h3 a:hover { color: var(--hf-link); }

/* ConversionStrip */
.hf-strip .wp-block-columns { gap: var(--hf-space-4); }
.hf-strip .hf-card { height: 100%; }

/* Legal skeleton */
.hf-legal-note { padding: var(--hf-space-4); border-left: 3px solid var(--wp--preset--color--flame); background: var(--hf-surface-raised); border-radius: 0 var(--hf-radius-md) var(--hf-radius-md) 0; }
/* NavDrawer open state: left aligned, label above description */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; text-align: left; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: var(--hf-space-12) !important; gap: var(--hf-space-4) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: flex !important; flex-direction: column; align-items: flex-start; gap: 2px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label { font-family: var(--wp--preset--font-family--display); font-size: 17px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { gap: var(--hf-space-3) !important; padding-top: var(--hf-space-3) !important; }

/* Breadcrumbs */
.hf-breadcrumbs { font-size: 13px; line-height: 18px; color: var(--hf-ink-muted); margin-bottom: var(--hf-space-4); }
.hf-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--hf-space-2); list-style: none; margin: 0; padding: 0; }
.hf-breadcrumbs li + li::before { content: "/"; margin-right: var(--hf-space-2); color: var(--hf-border); }
.hf-breadcrumbs a { color: var(--hf-ink-muted); }
.hf-breadcrumbs p { margin: 0; }

/* Page summary under the H1 */
.hf-summary { font-size: 15px; line-height: 24px; color: var(--hf-ink-muted); border-left: 3px solid var(--hf-border); padding-left: var(--hf-space-4); max-width: 60ch; }
.hf-summary time { white-space: nowrap; }

/* Labels that look like headings but are not (no decorative heading tags) */
.hf-label { font-family: var(--wp--preset--font-family--sans); font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin: 0 0 var(--hf-space-2); }
.hf-footer .hf-label { color: var(--wp--preset--color--ink-dark); }
.hf-facts .hf-label { color: var(--hf-ink-muted); }
.hf-card-title { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 22px; line-height: 28px; margin: 0 0 var(--hf-space-2); }

/* Comparison table */
.hf-compare table { border-collapse: collapse; width: 100%; min-width: 680px; }
.hf-compare th, .hf-compare td { border: 0; border-bottom: 1px solid var(--hf-border); padding: var(--hf-space-3) var(--hf-space-3) var(--hf-space-3) 0; text-align: left; vertical-align: top; }
.hf-compare thead th { font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--hf-ink-muted); border-bottom: 2px solid var(--hf-ink); }
.hf-compare tbody th { font-family: var(--wp--preset--font-family--display); font-weight: 600; }

/* Q&A (H3 questions, visible answers) */
.hf-qa h3 { font-size: 17px; line-height: 27px; margin-top: var(--hf-space-6); }
.hf-qa h3 + p { margin-top: var(--hf-space-1); color: var(--hf-ink-muted); }

/* Money-page body: readable column */
.hf-money .wp-block-columns > .wp-block-column:first-child > :where(p, ul, ol, h2, h3, figure) { max-width: 40rem; }
.hf-money h2 { margin-top: var(--hf-space-12); }
.hf-money h2:first-of-type { margin-top: var(--hf-space-8); }

/* Article and case study column: left-aligned under the title, about 65 characters wide */
.hf-article-col > *, .hf-article-col .wp-block-post-content > * { max-width: 37.5rem; margin-left: 0 !important; margin-right: 0 !important; }
.hf-article-col .wp-block-post-content > .hf-dataviz, .hf-article-col .wp-block-post-content > .hf-facts, .hf-article-col .wp-block-post-content > .hf-metrics { max-width: 45rem; }
.hf-article-col .wp-block-post-featured-image { max-width: 45rem; }
