/*
Theme Name: HomeWisely
Theme URI: https://homewisely.co.uk
Author: HomeWisely
Description: Premium editorial block theme for HomeWisely.co.uk — UK damp, heating, energy and insulation guides. Self-hosted variable fonts, no page builder, no jQuery.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: homewisely
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
	--ink: var(--wp--preset--color--contrast);
	--muted: var(--wp--preset--color--muted);
	--paper: var(--wp--preset--color--base);
	--paper-2: var(--wp--preset--color--base-2);
	--surface: var(--wp--preset--color--surface);
	--line: var(--wp--preset--color--border);
	--teal: var(--wp--preset--color--primary);
	--teal-d: var(--wp--preset--color--primary-dark);
	--teal-s: var(--wp--preset--color--primary-soft);
	--copper: var(--wp--preset--color--accent);
	--copper-s: var(--wp--preset--color--accent-soft);
	--warn: var(--wp--preset--color--warning);
	--warn-s: var(--wp--preset--color--warning-soft);
	--display: var(--wp--preset--font-family--display);
	--r-sm: var(--wp--custom--radius--sm, 10px);
	--r-md: var(--wp--custom--radius--md, 16px);
	--r-lg: var(--wp--custom--radius--lg, 24px);
	--sh-sm: var(--wp--custom--shadow--sm);
	--sh-md: var(--wp--custom--shadow--md);
	--sh-lg: var(--wp--custom--shadow--lg);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 72px;

	/* Silo accents (overridden per silo) */
	--silo: var(--teal);
	--silo-s: var(--teal-s);
}
.hw-silo-damp, .hw-card--damp, .hw-chip--damp, .hw-ph--damp, .hw-silo--damp, .hw-mega--damp { --silo: #0E6E8C; --silo-s: #E2F1F5; }
.hw-silo-heating, .hw-card--heating, .hw-chip--heating, .hw-ph--heating, .hw-silo--heating, .hw-mega--heating { --silo: #AD4B1A; --silo-s: #FBECE1; }
.hw-silo-energy, .hw-card--energy, .hw-chip--energy, .hw-ph--energy, .hw-silo--energy, .hw-mega--energy { --silo: #8A6305; --silo-s: #FBF2D9; }
.hw-silo-insulation, .hw-card--insulation, .hw-chip--insulation, .hw-ph--insulation, .hw-silo--insulation, .hw-mega--insulation { --silo: #3D5FA8; --silo-s: #E7ECF8; }

/* =========================================================
   2. Base
   ========================================================= */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
::selection { background: var(--copper-s); color: var(--ink); }
:where(h1, h2, h3, h4) { text-wrap: balance; font-variation-settings: "SOFT" 50, "WONK" 0; }
p, li { text-wrap: pretty; }
img { height: auto; max-width: 100%; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .15s var(--ease); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
	outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 6px;
}
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.hw-skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 8px; }
.hw-skip-link:focus { left: 1rem; top: 1rem; }
.hw-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.2em; }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Shared type */
.hw-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.hw-eyebrow--light { color: #F2B48F; }
.hw-dot-live { width: 8px; height: 8px; border-radius: 50%; background: #2BA36B; box-shadow: 0 0 0 0 rgba(43,163,107,.6); animation: hw-live 2s infinite; }
@keyframes hw-live { 70% { box-shadow: 0 0 0 8px rgba(43,163,107,0); } 100% { box-shadow: 0 0 0 0 rgba(43,163,107,0); } }
.hw-display { font-family: var(--display); font-size: var(--wp--preset--font-size--huge); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 0; }
.hw-display em, .hw-article-title em { font-style: italic; font-weight: 500; color: var(--teal); }
.hw-h2 { font-family: var(--display); font-size: var(--wp--preset--font-size--x-large); margin: 0; letter-spacing: -0.025em; }
.hw-lead { font-size: var(--wp--preset--font-size--large); color: var(--muted); line-height: 1.55; max-width: 36rem; margin: 1.25rem 0 0; }
.hw-standfirst { font-size: var(--wp--preset--font-size--large); line-height: 1.55; color: var(--muted); max-width: 46rem; margin-top: 1rem !important; }
.hw-standfirst p { margin: 0; }

/* Buttons */
.hw-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--ink); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: .95rem; line-height: 1; padding: .9rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); white-space: nowrap; }
.hw-btn:hover { background: var(--teal); transform: translateY(-1px); box-shadow: var(--sh-md); }
.hw-btn--sm { padding: .65rem 1.05rem; font-size: .88rem; }
.hw-btn--accent { background: var(--copper); }
.hw-btn--accent:hover { background: #8F3D14; }
.hw-btn--ghost-light { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.hw-btn--ghost-light:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px #fff; }
.hw-link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; text-decoration: none; color: var(--ink); }
.hw-link-arrow .hw-icon { transition: transform .2s var(--ease); }
.hw-link-arrow:hover .hw-icon { transform: translateX(4px); }

/* =========================================================
   3. Header
   ========================================================= */
.hw-topbar { background: var(--teal-d); color: #D6E7E2; font-size: .85rem; }
.hw-topbar__inner { margin: 0; padding: .55rem 0; text-align: center; }
.hw-topbar a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.hw-topbar a:hover { color: #fff; border-color: #fff; }
.hw-topbar__badge { display: inline-block; background: var(--copper); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; margin-right: .5rem; }

/* Sticky header: the template-part wrapper is what sticks (a sticky child can't leave its wrapper).
   It sticks at minus the topbar height, so the announcement bar scrolls away and the main bar stays. */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: calc(var(--hw-topbar-h, 40px) * -1); z-index: 100; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: calc(32px - var(--hw-topbar-h, 40px)); }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: calc(46px - var(--hw-topbar-h, 40px)); } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: calc(var(--hw-topbar-h, 40px) * -1); } }
.hw-header { position: relative; z-index: 100; background: rgba(250,248,244,.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s; }
.hw-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -12px rgba(20,32,27,.18); background: rgba(250,248,244,.94); }
.hw-header__bar { min-height: var(--header-h); gap: 1rem; }
.hw-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none !important; color: var(--ink); flex: 0 0 auto; }
.hw-brand__mark { display: block; transition: transform .3s var(--ease); }
.hw-brand:hover .hw-brand__mark { transform: rotate(-6deg) scale(1.04); }
.hw-brand__text { display: flex; flex-direction: column; line-height: 1; }
.hw-brand__tag { margin-top: .3rem; font-size: .6rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #7A857F; }
.hw-brand--light .hw-brand__tag { color: #9AA6A0; }
@media (max-width: 420px) { .hw-brand__tag { display: none; } }
.hw-brand__word { font-family: var(--display); font-weight: 650; font-size: 1.55rem; line-height: 1; letter-spacing: -0.035em; color: var(--ink); }
.hw-brand__word em { font-style: italic; font-weight: 450; color: var(--teal); }
.hw-brand--light .hw-brand__word { color: #fff; }
.hw-brand--light .hw-brand__word em { color: #9ED3C6; }

/* Nav + mega menu (desktop) */
.hw-nav .wp-block-navigation-item__content { color: var(--ink); text-decoration: none; padding: .55rem .8rem !important; border-radius: 999px; transition: background .15s; }
.hw-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.hw-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content { background: var(--paper-2); }
.hw-nav .wp-block-navigation__submenu-icon { margin-left: .1rem; opacity: .55; }
@media (min-width: 600px) {
	.hw-nav .hw-mega > .wp-block-navigation__submenu-container {
		display: grid !important; grid-template-columns: 1fr 1fr; gap: .25rem; width: 520px !important; min-width: 520px !important;
		padding: .75rem !important; margin-top: .5rem;
		background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-md);
		box-shadow: var(--sh-lg); left: 50% !important; transform: translate(-50%, 8px); opacity: 0; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
	}
	.hw-nav .hw-mega:hover > .wp-block-navigation__submenu-container,
	.hw-nav .hw-mega:focus-within > .wp-block-navigation__submenu-container { transform: translate(-50%, 0); opacity: 1; }
	.hw-nav .hw-mega > .wp-block-navigation__submenu-container::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
	.hw-nav .hw-mega .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .7rem .85rem !important; border-radius: var(--r-sm); white-space: normal; }
	.hw-nav .hw-mega .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--silo-s); }
	.hw-nav .hw-mega .wp-block-navigation-item__label { font-weight: 650; }
	.hw-nav .hw-mega .wp-block-navigation-item__description { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); line-height: 1.4; }
	.hw-nav .hw-mega .hw-mega__hub { grid-column: 1 / -1; }
	.hw-nav .hw-mega .hw-mega__hub > .wp-block-navigation-item__content { background: var(--silo-s); position: relative; padding-right: 2.5rem !important; }
	.hw-nav .hw-mega .hw-mega__hub > .wp-block-navigation-item__content::after { content: "→"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--silo); font-weight: 700; }
	.hw-nav .hw-mega .hw-mega__hub .wp-block-navigation-item__label { color: var(--silo); }
}
/* Mobile overlay */
.hw-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.hw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; padding: .5rem 0 !important; }
.hw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__description { display: none; }
.hw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { padding-left: 1rem !important; }
.hw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1rem; color: var(--muted); }

.hw-header__search .wp-block-search__button { background: transparent; color: var(--ink); border-radius: 999px; padding: .55rem; border: 0; }
.hw-header__search .wp-block-search__button:hover { background: var(--paper-2); }
.hw-header__search .wp-block-search__input { border-radius: 999px; border: 1px solid var(--line); padding: .5rem 1rem; }
.hw-header__cta { gap: .4rem; }
@media (max-width: 900px) { .hw-header__cta span { display: none; } .hw-header__cta { padding: .65rem; } }
@media (max-width: 600px) { .hw-topbar__inner { font-size: .78rem; } .hw-topbar__badge { display: none; } }

.hw-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.hw-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--copper)); }
body:not(.single) .hw-progress { display: none; }

/* =========================================================
   4. Sections & layout helpers
   ========================================================= */
.hw-section { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.hw-section--tint { background: var(--paper-2); }
.hw-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.hw-section__head .hw-eyebrow { margin-bottom: .5rem; }

/* =========================================================
   5. Home hero + house illustration
   ========================================================= */
.hw-home-hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
	background:
		radial-gradient(700px 380px at 92% 8%, rgba(194,85,30,.10), transparent 65%),
		radial-gradient(800px 500px at 0% 0%, rgba(14,94,82,.12), transparent 60%),
		var(--paper); }
.hw-home-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line); }
.hw-home-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 960px) { .hw-home-hero__grid { grid-template-columns: 1fr; } }

.hw-bigsearch { display: flex; align-items: center; gap: .5rem; margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .4rem .4rem 1.1rem; box-shadow: var(--sh-md); max-width: 36rem; transition: box-shadow .2s, border-color .2s; }
.hw-bigsearch:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-s), var(--sh-md); }
.hw-bigsearch > .hw-icon { color: var(--muted); }
.hw-bigsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; padding: .6rem .25rem; color: var(--ink); }
.hw-bigsearch input:focus-visible { outline: 0; }
@media (max-width: 520px) { .hw-bigsearch { flex-wrap: wrap; border-radius: var(--r-md); padding: .6rem; } .hw-bigsearch .hw-btn { width: 100%; } }

.hw-quickchips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; font-size: .88rem; }
.hw-quickchips > span { color: var(--muted); font-weight: 600; margin-right: .1rem; }
.hw-quickchips a { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 999px; transition: all .15s var(--ease); }
.hw-quickchips a:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }

.hw-house { margin: 0; position: relative; }
.hw-house__svg { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: var(--sh-lg); background: var(--surface); }
.hw-pin { cursor: pointer; }
.hw-pin circle:not(.hw-pin__pulse) { fill: var(--teal); stroke: #fff; stroke-width: 3; transition: r .2s var(--ease); }
.hw-pin--accent circle:not(.hw-pin__pulse) { fill: var(--copper); }
.hw-pin--blue circle:not(.hw-pin__pulse) { fill: #3D5FA8; }
.hw-pin text { fill: #fff; font: 700 14px/1 "Inter Variable", Inter, sans-serif; text-anchor: middle; pointer-events: none; }
.hw-pin__pulse { fill: var(--teal); opacity: .35; transform-box: fill-box; transform-origin: center; animation: hw-pulse 2.4s var(--ease) infinite; }
.hw-pin--accent .hw-pin__pulse { fill: var(--copper); }
.hw-pin--blue .hw-pin__pulse { fill: #3D5FA8; }
.hw-pin:hover circle:not(.hw-pin__pulse), .hw-pin:focus circle:not(.hw-pin__pulse) { r: 18; }
@keyframes hw-pulse { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hw-pin__pulse, .hw-dot-live { animation: none; } html { scroll-behavior: auto; } }
.hw-house__legend { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; justify-content: center; }
.hw-house__legend a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); font-size: .84rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); padding: .3rem .75rem .3rem .3rem; border-radius: 999px; }
.hw-house__legend a:hover { border-color: var(--ink); }
.hw-house__legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .75rem; }
.hw-house__legend b.is-accent { background: var(--copper); }
.hw-house__legend b.is-blue { background: #3D5FA8; }

/* Trust bar */
.hw-trustbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.hw-trustbar__list { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hw-trustbar__list li { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.hw-trustbar__list strong { display: block; color: var(--ink); font-size: .92rem; }
.hw-trustbar__list .hw-icon { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--teal-s); color: var(--teal); }
@media (max-width: 900px) { .hw-trustbar__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
	.hw-trustbar__list { gap: .9rem .75rem; padding: 1rem 0; }
	.hw-trustbar__list li { flex-direction: column; align-items: flex-start; gap: .4rem; font-size: .78rem; }
	.hw-trustbar__list .hw-icon { width: 32px; height: 32px; padding: 7px; }
	.hw-trustbar__list strong { font-size: .85rem; }
}

/* Silo cards */
.hw-silos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1080px) { .hw-silos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
	.hw-silos { grid-template-columns: 1fr 1fr; gap: .7rem; }
	.hw-silos .hw-silo { padding: 1rem; gap: .35rem; border-radius: var(--r-md); }
	.hw-silos .hw-silo::before { width: 120px; height: 120px; right: -50px; top: -50px; }
	.hw-silos .hw-silo__icon { width: 40px; height: 40px; border-radius: 12px; }
	.hw-silos .hw-silo__icon .hw-icon { width: 20px; height: 20px; }
	.hw-silos .hw-silo__title { font-size: 1.08rem; line-height: 1.2; margin-top: .25rem; }
	.hw-silos .hw-silo__desc, .hw-silos .hw-silo__list { display: none; }
	.hw-silos .hw-silo__go { padding-top: .35rem; font-size: .82rem; }
}
.hw-silo { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; text-decoration: none !important; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; isolation: isolate; }
.hw-silo::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: var(--silo-s); transition: transform .4s var(--ease); }
.hw-silo:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; color: var(--ink); }
.hw-silo:hover::before { transform: scale(1.35); }
.hw-silo__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--silo); color: #fff; box-shadow: 0 10px 20px -10px var(--silo); }
.hw-silo__icon .hw-icon { width: 26px; height: 26px; }
.hw-silo__title { font-family: var(--display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; margin-top: .5rem; }
.hw-silo__desc { color: var(--muted); font-size: .93rem; line-height: 1.55; }
.hw-silo__list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.hw-silo__list span { font-size: .76rem; font-weight: 600; color: var(--silo); background: var(--silo-s); padding: .25rem .6rem; border-radius: 999px; }
.hw-silo__go { margin-top: auto; padding-top: .75rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; font-size: .9rem; color: var(--silo); }
.hw-silo__go .hw-icon { transition: transform .2s var(--ease); }
.hw-silo:hover .hw-silo__go .hw-icon { transform: translateX(4px); }

/* Featured layout */
.hw-feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .hw-feature { grid-template-columns: 1fr; } }
.hw-feature > .wp-block-query { margin: 0 !important; }
.hw-cards--feature .wp-block-post { height: 100%; }
.hw-cards--feature .wp-block-post-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem) !important; line-height: 1.15 !important; }
.hw-cards--feature .wp-block-post-excerpt { font-size: 1rem !important; }
.hw-cards--row { display: flex; flex-direction: column; gap: .9rem; }
.hw-cards--row .wp-block-post { display: grid !important; grid-template-columns: 108px 1fr; align-items: center; gap: 1rem; padding: .7rem; }
.hw-cards--row .wp-block-post > * { margin: 0 !important; }
.hw-cards--row .wp-block-post-featured-image { border-radius: 12px; overflow: hidden; }
.hw-cards--row .wp-block-post-featured-image img, .hw-cards--row .hw-ph a { aspect-ratio: 1 !important; }
.hw-cards--row .hw-ph__label { display: none; }
.hw-cards--row .hw-ph__icon { width: 34px; height: 34px; }
.hw-cards--row .wp-block-post-title { font-size: 1.05rem !important; margin-top: .35rem !important; }
.hw-row-body { min-width: 0; }

/* Calculator showcase */
.hw-calc-showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: 32px; color: #D6E7E2;
	background: radial-gradient(600px 300px at 100% 0%, rgba(194,85,30,.35), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(43,163,107,.25), transparent 60%), var(--teal-d); }
.hw-calc-showcase .hw-h2 { color: #fff; }
.hw-calc-showcase p { color: #CFE2DC; }
.hw-calc-showcase .hw-calc { margin: 0; box-shadow: var(--sh-lg); border-top-color: var(--copper); color: var(--ink); }
.hw-calc-showcase .hw-calc p { color: var(--ink); }
.hw-calc-showcase .hw-calc .hw-calc__note { color: var(--muted); }
@media (max-width: 900px) { .hw-calc-showcase { grid-template-columns: 1fr; } }
.hw-ticks { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .55rem; }
.hw-ticks li { display: flex; align-items: center; gap: .6rem; color: #fff; }
.hw-ticks .hw-icon { color: #7FD1B2; }

/* Promise */
.hw-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .hw-promise { grid-template-columns: 1fr; } }
.hw-promise__item { padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.hw-promise__num { font-family: var(--display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--copper); }
.hw-promise__item h3 { margin: .75rem 0 .4rem; font-size: 1.3rem; }
.hw-promise__item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* =========================================================
   6. Cards (query loops + shortcode grids)
   ========================================================= */
.hw-cards .wp-block-post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; position: relative; }
.hw-cards .wp-block-post:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: transparent; }
.hw-cards:not(.hw-cards--row) .wp-block-post > *:not(.wp-block-post-featured-image) { margin-left: 1.35rem; margin-right: 1.35rem; }
.hw-cards:not(.hw-cards--row) .wp-block-post > :last-child { margin-bottom: 1.4rem; }
.hw-cards:not(.hw-cards--row) .wp-block-post > :first-child:not(.wp-block-post-featured-image) { margin-top: 1.35rem; }
.hw-cards .wp-block-post-featured-image { margin: 0 0 1.1rem; overflow: hidden; }
.hw-cards .wp-block-post-featured-image img { width: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hw-cards .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.hw-cards .wp-block-post-title { font-size: 1.22rem; line-height: 1.28; margin-top: .55rem; margin-bottom: 0; letter-spacing: -0.015em; }
.hw-cards .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hw-cards .wp-block-post-excerpt { font-size: .93rem; line-height: 1.55; margin-top: .55rem; }
.hw-cards .wp-block-post-excerpt__excerpt { margin: 0; }
.hw-cards .wp-block-post-excerpt__more-text { display: none; }

/* Placeholder "image" */
.hw-ph { margin: 0; }
.hw-ph a { position: relative; display: grid; place-items: center; aspect-ratio: 16/10; color: var(--silo); text-decoration: none; overflow: hidden;
	background:
		radial-gradient(circle at 80% 15%, rgba(255,255,255,.75) 0 18%, transparent 19%),
		radial-gradient(circle at 15% 110%, var(--silo-s) 0 40%, transparent 41%),
		linear-gradient(135deg, var(--silo-s), #fff 85%); }
.hw-cards--feature .hw-ph a { aspect-ratio: 16/9; }
.hw-ph a::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--silo) 18%, transparent) 1px, transparent 1.4px); background-size: 16px 16px; opacity: .6; }
.hw-ph__icon { position: relative; width: 64px; height: 64px; stroke-width: 1.3; transition: transform .5s var(--ease); }
.hw-cards .wp-block-post:hover .hw-ph__icon { transform: scale(1.12) rotate(-4deg); }
.hw-ph__label { position: absolute; left: 1rem; bottom: .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

/* Category chip */
.hw-chip { font-size: .72rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.hw-chip a { color: var(--silo) !important; text-decoration: none; background: var(--silo-s); padding: .3rem .65rem; border-radius: 999px; display: inline-block; position: relative; z-index: 2; }
.hw-chip a:hover { background: var(--silo); color: #fff !important; }

/* Shortcode card grid ([hw_cluster], [hw_related]) */
.hw-postgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 1.5rem 0 !important; padding: 0 !important; list-style: none; }
.hw-postgrid li { margin: 0 !important; padding: 0 !important; }
.hw-postgrid li::before { display: none !important; }
.hw-card { display: flex; flex-direction: column; gap: .55rem; height: 100%; padding: 1.25rem; text-decoration: none !important; color: var(--ink) !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; box-sizing: border-box; }
.hw-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--silo) 40%, var(--line)); }
.hw-card__top { display: flex; align-items: center; gap: .6rem; }
.hw-card__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--silo-s); color: var(--silo); }
.hw-card__icon .hw-icon { width: 18px; height: 18px; }
.hw-card__kicker { font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--silo); }
.hw-card__title { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; }
.hw-card__excerpt { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.hw-card__foot { margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); }
.hw-card__foot > span { display: inline-flex; align-items: center; gap: .35rem; }
.hw-card__more { font-weight: 700; color: var(--silo); }
.hw-card__more .hw-icon { transition: transform .2s var(--ease); }
.hw-card:hover .hw-card__more .hw-icon { transform: translateX(3px); }
.hw-empty { color: var(--muted); font-style: italic; padding: 1rem 1.25rem; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--surface); }
.hw-related h2 { font-family: var(--display); margin: 0 0 .5rem; }

/* =========================================================
   7. Article
   ========================================================= */
.hw-article-hero { padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(1.75rem, 4vw, 2.75rem); background: linear-gradient(180deg, var(--silo-s) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hw-article-hero__inner { max-width: 880px; margin-left: 0 !important; }
.hw-article-hero__inner > * + * { margin-top: 1rem; }
.hw-article-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem) !important; line-height: 1.08 !important; letter-spacing: -0.03em; margin-top: .9rem !important; }

.hw-breadcrumbs { font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .1rem; }
.hw-breadcrumbs a { color: var(--muted); text-decoration: none; }
.hw-breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.hw-breadcrumbs .separator, .hw-breadcrumbs .hw-sep { margin: 0 .45rem; opacity: .5; }
.hw-breadcrumbs [aria-current] { color: var(--ink); font-weight: 550; max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-breadcrumbs p { margin: 0; }

.hw-meta { color: var(--muted); font-size: .88rem; margin-top: 1.5rem !important; align-items: center; }
.hw-meta > * { margin: 0 !important; }
.hw-meta p { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.hw-meta__item { display: inline-flex; align-items: center; gap: .4rem; padding-left: .9rem; border-left: 1px solid var(--line); }
.hw-meta__item p { display: contents; }
.hw-meta__name { font-weight: 700; font-size: .95rem; }
.hw-meta__name a { color: var(--ink); text-decoration: none; }
.hw-meta__role { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: #2B8A5E; font-weight: 600; }
.hw-avatar img { border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }

.hw-article-wrap { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: var(--wp--preset--spacing--50); }
.hw-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hw-article-main { max-width: 740px; min-width: 0; }
@media (max-width: 1080px) { .hw-article-layout { grid-template-columns: minmax(0, 1fr); } .hw-article-aside { display: none; } .hw-article-main { margin-inline: auto; } }
.hw-article-image { border-radius: var(--r-lg); overflow: hidden; margin: 0 0 2rem !important; }

.hw-article-aside { align-self: stretch; }
.hw-aside-sticky { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 1rem; }
.hw-aside-label { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.hw-aside-toc { padding: 1.25rem 1.25rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); max-height: calc(100vh - var(--header-h) - 220px); overflow: auto; }
.hw-aside-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 2px solid var(--line); }
.hw-aside-toc li { margin: 0; counter-increment: toc; }
.hw-aside-toc a { display: block; padding: .38rem 0 .38rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .88rem; line-height: 1.4; transition: color .15s, border-color .15s; }
.hw-aside-toc a:hover { color: var(--ink); }
.hw-aside-toc a.is-active { color: var(--silo); border-left-color: var(--silo); font-weight: 650; }
.hw-aside-card { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--r-md); font-size: .85rem; line-height: 1.45; text-decoration: none !important; color: var(--ink) !important; }
.hw-aside-card p { margin: 0; }
.hw-aside-card strong { display: block; font-size: .92rem; }
.hw-aside-card .hw-icon { width: 22px; height: 22px; margin-top: .1rem; }
.hw-aside-card--safety { background: var(--warn-s); }
.hw-aside-card--safety .hw-icon { color: var(--warn); }
.hw-aside-card--tool { background: var(--teal-d); color: #fff !important; transition: transform .2s var(--ease); }
.hw-aside-card--tool:hover { transform: translateY(-2px); }
.hw-aside-card--tool span { color: #CFE2DC; }
.hw-aside-card--tool strong { color: #fff; }
.hw-aside-card--tool .hw-icon { color: #7FD1B2; }
.hw-share { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-size: .85rem; font-weight: 600; padding: .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.hw-share:hover { border-color: var(--ink); }
.hw-share.is-done { border-color: #2B8A5E; color: #2B8A5E; }

/* Prose */
.hw-prose { font-size: 1.075rem; }
.hw-prose > * { margin-block: 0; }
.hw-prose > * + * { margin-block-start: 1.25rem; }
.hw-prose > h2 { margin-block-start: 3.25rem; font-size: clamp(1.6rem, 2.6vw, 2.05rem); position: relative; }
.hw-prose > h3 { margin-block-start: 2.1rem; }
.hw-prose > h2 + *, .hw-prose > h3 + * { margin-block-start: .85rem; }
.hw-prose a:not(.hw-card):not(.hw-product__cta):not(.wp-element-button) { color: var(--teal); text-decoration-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.hw-prose a:not(.hw-card):not(.hw-product__cta):not(.wp-element-button):hover { color: var(--copper); text-decoration-color: currentColor; }
.hw-prose strong { font-weight: 680; color: var(--ink); }
.hw-prose ul:not(.hw-postgrid):not(.hw-product__pros):not(.hw-product__cons) { padding-left: 0; list-style: none; }
.hw-prose ul:not(.hw-postgrid):not(.hw-product__pros):not(.hw-product__cons) > li { position: relative; padding-left: 1.6rem; }
.hw-prose ul:not(.hw-postgrid):not(.hw-product__pros):not(.hw-product__cons) > li::before { content: ""; position: absolute; left: .3rem; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--silo); }
.hw-prose li + li { margin-top: .5rem; }

/* Numbered steps (ordered lists) */
.hw-prose ol:not(.hw-toc ol) { list-style: none; padding-left: 0; counter-reset: step; }
.hw-prose ol:not(.hw-toc ol) > li { position: relative; counter-increment: step; padding: 0 0 1.1rem 3.25rem; margin: 0; min-height: 2.25rem; }
.hw-prose ol:not(.hw-toc ol) > li::before { content: counter(step); position: absolute; left: 0; top: -.05rem; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--silo); color: var(--silo); font-weight: 800; font-size: .95rem; z-index: 1; }
.hw-prose ol:not(.hw-toc ol) > li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.075rem - 1px); top: 2.2rem; bottom: .1rem; width: 2px; background: var(--line); }

/* Tables */
.wp-block-table { overflow-x: auto; margin-inline: 0; }
.wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-variant-numeric: tabular-nums; }
.wp-block-table thead { border: 0; }
.wp-block-table th { background: var(--ink); color: #fff; text-align: left; font-weight: 650; font-size: .85rem; letter-spacing: .01em; }
.wp-block-table th, .wp-block-table td { padding: .85rem 1rem; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-block-table tr:last-child td { border-bottom: 0; }
.wp-block-table tbody tr:nth-child(even) td { background: #FBFAF7; }
.wp-block-table tbody tr:hover td { background: var(--silo-s); }
.wp-block-table td:first-child { font-weight: 500; color: var(--ink); }
.wp-block-table td strong { font-weight: 700; }
.wp-block-table th:first-child, .wp-block-table td:first-child { min-width: 11rem; }

/* Responsive tables: rows become labelled cards on phones */
.hw-table td strong { color: var(--ink); }
@media (max-width: 640px) {
	.hw-table { overflow: visible; }
	.hw-table table { border: 0; background: transparent; border-radius: 0; overflow: visible; }
	.hw-table thead { display: none; }
	.hw-table tbody { display: grid; gap: .75rem; }
	.hw-table tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); }
	.hw-table tbody tr:nth-child(even) td, .hw-table tbody tr:hover td { background: transparent; }
	.hw-table td { display: block; overflow: hidden; padding: .6rem 1rem; border-bottom: 1px dashed var(--line); text-align: right; font-size: .92rem; }
	.hw-table td::before { content: attr(data-label); float: left; max-width: 48%; margin-right: 1rem; text-align: left; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
	.hw-table td:last-child { border-bottom: 0; }
	.hw-table td:first-child { display: block; text-align: left; background: var(--silo-s) !important; color: var(--ink); font-weight: 700; font-size: .98rem; padding: .8rem 1rem; border-bottom: 0; }
	.hw-table td:first-child::before { display: none; }
}

/* Inline article images */
.hw-prose .hw-inline { margin-block: 2.25rem; }
.hw-prose .hw-inline img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-md); background: var(--silo-s); }
.hw-prose .hw-inline figcaption { display: flex; gap: .55rem; align-items: flex-start; margin-top: .85rem; font-size: .88rem; line-height: 1.5; color: var(--muted); text-align: left; }
.hw-prose .hw-inline figcaption::before { content: ""; flex: 0 0 auto; width: 18px; height: 2px; margin-top: .7em; background: var(--silo); border-radius: 2px; }
@media (min-width: 1081px) { .single .hw-prose .hw-inline { margin-inline: -1.5rem; } .single .hw-prose .hw-inline figcaption { padding-inline: 1.5rem; } }

/* Callouts (block styles on core/group) */
[class*="is-style-callout-"] { position: relative; border-radius: var(--r-md); padding: 1.35rem 1.5rem 1.35rem 4.25rem !important; border: 1px solid transparent; }
[class*="is-style-callout-"] > * { margin-block: .55rem; }
[class*="is-style-callout-"] > :first-child { margin-top: 0; }
[class*="is-style-callout-"] > :last-child { margin-bottom: 0; }
[class*="is-style-callout-"]::before { position: absolute; left: 1.25rem; top: 1.3rem; width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: #fff; }
[class*="is-style-callout-"]::after { display: block; position: absolute; top: 1.35rem; left: 4.25rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
[class*="is-style-callout-"] > :first-child { margin-top: 1.4rem; }
.is-style-callout-answer { background: linear-gradient(135deg, var(--teal-s), #F1F8F6); border-color: #CBE3DC; font-size: 1.06em; box-shadow: var(--sh-sm); }
.is-style-callout-answer::before { content: "✓"; background: var(--teal); }
.is-style-callout-answer::after { content: "The short answer"; color: var(--teal); }
.is-style-callout-tip { background: var(--copper-s); border-color: #F1D6C2; }
.is-style-callout-tip::before { content: "★"; background: var(--copper); }
.is-style-callout-tip::after { content: "Pro tip"; color: var(--copper); }
.is-style-callout-warning { background: var(--warn-s); border-color: #F1C9C3; }
.is-style-callout-warning::before { content: "!"; background: var(--warn); }
.is-style-callout-warning::after { content: "Safety first"; color: var(--warn); }
.is-style-callout-takeaways { background: var(--ink); color: #E6EEEA; border-color: var(--ink); }
.is-style-callout-takeaways::before { content: "✦"; background: var(--copper); }
.is-style-callout-takeaways::after { content: "Key takeaways"; color: #F2B48F; }
.is-style-callout-takeaways strong, .is-style-callout-takeaways a { color: #fff !important; }
.is-style-callout-takeaways ul { list-style: none; padding-left: 0 !important; }
.is-style-callout-takeaways ul > li { padding-left: 1.7rem !important; }
.is-style-callout-takeaways ul > li::before { content: "✓" !important; background: none !important; width: auto !important; height: auto !important; top: 0 !important; left: 0 !important; color: #7FD1B2; font-weight: 800; }
.is-style-callout-disclosure { padding: .8rem 1.1rem !important; background: transparent; border: 1px dashed var(--line); font-size: .85rem; color: var(--muted); }
.is-style-callout-disclosure::before, .is-style-callout-disclosure::after { display: none; }
.is-style-callout-disclosure > :first-child { margin-top: 0; }
@media (max-width: 560px) {
	[class*="is-style-callout-"] { padding: 3.6rem 1.15rem 1.2rem 1.15rem !important; }
	[class*="is-style-callout-"]::before { left: 1.15rem; top: 1.1rem; }
	[class*="is-style-callout-"]::after { left: 3.7rem; top: 1.65rem; }
	[class*="is-style-callout-"] > :first-child { margin-top: 0; }
	.is-style-callout-disclosure { padding: .8rem 1rem !important; }
}
.is-style-checklist { list-style: none; padding-left: 0 !important; }
.is-style-checklist li { position: relative; padding-left: 1.7rem; }
.is-style-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }

/* FAQ accordions */
.wp-block-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0; transition: border-color .2s, box-shadow .2s; }
.hw-prose > .wp-block-details + .wp-block-details { margin-block-start: .65rem; }
.wp-block-details[open] { border-color: color-mix(in srgb, var(--silo) 35%, var(--line)); box-shadow: var(--sh-sm); }
.wp-block-details summary { cursor: pointer; padding: 1.1rem 3.5rem 1.1rem 1.25rem; font-weight: 650; list-style: none; position: relative; font-size: 1.02rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 1.15rem; top: 50%; width: 1.7rem; height: 1.7rem; margin-top: -.85rem; border-radius: 50%; background: var(--silo-s) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314201B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s var(--ease); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { padding: 0 1.25rem; margin: 0 0 .75rem; color: var(--muted); }
.wp-block-details > :last-child { padding-bottom: 1.15rem; margin-bottom: 0; }

/* Helpful + author */
.hw-helpful { margin-top: 3rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.hw-helpful p { margin: 0; }
.hw-helpful__btns { display: flex; gap: .5rem; }
.hw-helpful button { font: inherit; font-size: .9rem; font-weight: 600; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.hw-helpful button:hover { border-color: var(--ink); }
.hw-helpful__thanks { color: #2B8A5E; font-weight: 600; }
.hw-author-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: 1.25rem !important; }
.hw-author-box .wp-block-avatar img { border-radius: 50%; }

/* =========================================================
   8. Pillar pages
   ========================================================= */
.hw-pillar-hero { position: relative; overflow: hidden; padding-top: clamp(2.25rem, 5vw, 4rem); padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
	background: radial-gradient(700px 360px at 100% 0%, var(--silo-s), transparent 70%), linear-gradient(180deg, var(--silo-s), var(--paper)); border-bottom: 1px solid var(--line); }
.hw-pillar-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid var(--silo); opacity: .06; }
.hw-pillar-hero__inner { max-width: 860px; position: relative; z-index: 1; }
.hw-pillar-hero__inner > * + * { margin-top: 1rem; }
.hw-pillar-hero .hw-eyebrow { color: var(--silo); margin: 1.25rem 0 0; }
.hw-pillar-title { font-size: clamp(2.3rem, 5.2vw, 4rem) !important; line-height: 1.04 !important; letter-spacing: -0.035em; margin-top: .4rem !important; }
.hw-pillar-hero .hw-meta p { gap: .4rem; }
.hw-pillar-hero .hw-meta > * + * { padding-left: .9rem; border-left: 1px solid var(--line); }

.hw-chipnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(250,248,244,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .hw-chipnav { top: calc(var(--header-h) + 32px); }
.hw-chipnav__inner { max-width: 1240px; margin: 0 auto; padding: .7rem clamp(1rem, 4vw, 2rem); display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; }
.hw-chipnav__inner::-webkit-scrollbar { display: none; }
.hw-chipnav { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.hw-chipnav a { flex: 0 0 auto; text-decoration: none !important; font-size: .84rem; font-weight: 600; line-height: 1.2; color: var(--muted) !important; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface) !important; transition: background .15s, color .15s, border-color .15s; outline: none; }
.hw-chipnav a:hover { color: var(--ink) !important; border-color: var(--ink); }
.hw-chipnav a:focus-visible { box-shadow: 0 0 0 3px var(--copper-s), 0 0 0 4px var(--copper); }
.hw-chipnav a.is-active { background: var(--ink) !important; border-color: var(--ink); color: #fff !important; }
.hw-chipnav__inner > :last-child { margin-right: 3rem; }
.hw-pillar-body { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: var(--wp--preset--spacing--50); }
.hw-pillar-body .hw-toc { display: none; }

/* Generic page/archive hero */
.hw-page-hero { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(1.75rem, 4vw, 2.75rem); background: linear-gradient(180deg, var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3rem); }
.hw-page-hero h1 { margin-top: .75rem; }
.hw-page-hero .wp-block-term-description, .hw-page-hero .hw-standfirst { color: var(--muted); max-width: 44rem; }

/* =========================================================
   9. Footer
   ========================================================= */
.hw-prefooter { padding-top: var(--wp--preset--spacing--50); }
.hw-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 32px; color: #CFE2DC; position: relative; overflow: hidden;
	background: radial-gradient(500px 260px at 100% 100%, rgba(194,85,30,.45), transparent 60%), var(--teal); }
.hw-cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .5rem; }
.hw-cta-band p { margin: 0; max-width: 36rem; }
.hw-cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hw-footer { margin-top: var(--wp--preset--spacing--50); background: var(--ink); color: #A9B6AF; padding-top: var(--wp--preset--spacing--50); padding-bottom: 1.5rem; font-size: .92rem; }
.hw-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .hw-footer__grid { grid-template-columns: 1fr 1fr; } .hw-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .hw-footer__grid { grid-template-columns: 1fr; } }
.hw-footer__brand p { max-width: 26rem; line-height: 1.6; }
.hw-footer__safety a { text-decoration: underline; text-underline-offset: .2em; font-weight: 600; color: #fff; }
.hw-footer__safety { font-size: .85rem; padding: .85rem 1rem; border-radius: var(--r-sm); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.hw-footer h3 { color: #fff; font-family: var(--wp--preset--font-family--body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin: .5rem 0 1rem; }
.hw-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.hw-footer a { color: #E3ECE8; text-decoration: none; }
.hw-footer a:hover { color: #fff; text-decoration: underline; }
.hw-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
.hw-footer__bottom p { margin: 0; }

/* =========================================================
   10. Misc
   ========================================================= */
.wp-block-search__input { font-size: 1rem; border-radius: 999px; border: 1px solid var(--line); padding: .7rem 1.1rem; }
.wp-block-search__button { border-radius: 999px; }
.wp-block-query-pagination { margin-top: 2.5rem; font-weight: 600; gap: .5rem; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; border-radius: 999px; text-decoration: none; color: var(--ink); }
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--ink); color: #fff; }
@media (min-width: 1081px) { .single .hw-prose .hw-toc { display: none; } }

/* Tools hub cards */
.hw-toolcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-block: 1.5rem 2.5rem !important; }
.hw-toolcard { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--teal); text-decoration: none !important; color: var(--ink) !important; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.hw-toolcard:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.hw-toolcard__kicker { font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); }
.hw-toolcard strong { font-family: var(--display); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.hw-toolcard span:not(.hw-toolcard__kicker) { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.hw-toolcard em { margin-top: auto; padding-top: .5rem; font-style: normal; font-weight: 700; font-size: .9rem; color: var(--teal); }

/* Back to top */
.hw-totop { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff !important; box-shadow: var(--sh-lg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s; }
.hw-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.hw-totop:hover { background: var(--teal); }

/* =========================================================
   11. Illustrated cover art
   ========================================================= */
.hw-art { display: block; width: 100%; height: 100%; }
.hw-art .a-ln { fill: none; }
.hw-art .a-bg { fill: var(--silo-s); }
.hw-art .a-glow { fill: #fff; opacity: .55; }
.hw-art .a-glow2 { fill: var(--silo); opacity: .08; }
.hw-art .a-w { fill: #fff; }
.hw-art .a-p { fill: var(--paper-2); }
.hw-art .a-s { fill: var(--silo); }
.hw-art .a-c { fill: var(--copper); }
.hw-art .a-ink { fill: #2C3833; }
.hw-art .a-ln { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hw-art .a-sl { fill: none; stroke: var(--silo); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.hw-art .a-sl2 { fill: var(--silo-s); stroke: var(--silo); stroke-width: 2.5; }
.hw-art .a-sl2b { fill: var(--silo); opacity: .35; }
.hw-art .a-thick { stroke-width: 7; }
.hw-art .a-c-st { fill: none; stroke: var(--copper); stroke-width: 4; stroke-linecap: round; }
.hw-art .a-brick { fill: none; stroke: #E4DED2; stroke-width: 2.5; }
.hw-art .a-ins { fill: none; stroke: #E8B36B; stroke-width: 10; stroke-linecap: round; }
.hw-art .a-t { fill: var(--muted); font: 600 13px/1 "Inter Variable", Inter, sans-serif; text-anchor: middle; }
.hw-art .a-big { fill: var(--ink); font: 600 44px/1 "Fraunces Variable", Georgia, serif; text-anchor: middle; }
.hw-art .a-coin { fill: #fff; font: 700 34px/1 "Fraunces Variable", Georgia, serif; text-anchor: middle; }
.hw-art .a-lt { fill: #fff; font: 800 14px/1 "Inter Variable", Inter, sans-serif; }

.hw-ph a::before { display: none; }
.hw-ph a { background: var(--silo-s); }
.hw-ph .hw-art { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.hw-cards .wp-block-post:hover .hw-ph .hw-art { transform: scale(1.05); }

/* Hero split (article + hub) */
.hw-hero-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hw-hero-split > .hw-article-hero__inner, .hw-hero-split > .hw-pillar-hero__inner { max-width: none; margin: 0 !important; }
.hw-hero-split > p:empty { display: none; }
.hw-cover { margin: 0; position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.1; box-shadow: var(--sh-lg); background: var(--silo-s); transform: rotate(1.2deg); transition: transform .5s var(--ease); }
.hw-cover:hover { transform: rotate(0deg) scale(1.01); }
.hw-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(20,32,27,.06); pointer-events: none; }
.hw-cover img, .hw-cover .hw-art { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 960px) {
	.hw-hero-split { grid-template-columns: 1fr; }
	.hw-cover { aspect-ratio: 16 / 8; transform: none; border-radius: 20px; order: -1; }
	.single .hw-cover { order: 2; }
}

/* Hub topic tiles */
.hw-tiles { margin-top: clamp(2rem, 4vw, 3rem) !important; padding: 1.25rem; border-radius: var(--r-lg); background: rgba(255,255,255,.75); border: 1px solid var(--line); backdrop-filter: blur(6px); position: relative; z-index: 1; }
.hw-tiles__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .1rem .35rem 1rem; }
.hw-tiles__head .hw-eyebrow { color: var(--silo); margin: 0; }
.hw-tiles__stat { margin: 0; font-size: .88rem; color: var(--muted); }
.hw-tiles__stat strong { color: var(--ink); font-family: var(--display); font-size: 1.15rem; }
.hw-tiles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.hw-tile { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: .95rem 2.6rem .95rem 1rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none !important; color: var(--ink) !important; transition: all .2s var(--ease); }
.hw-tile:hover { border-color: var(--silo); box-shadow: var(--sh-sm); transform: translateY(-2px); }
.hw-tile__name { font-weight: 650; font-size: .95rem; line-height: 1.3; }
.hw-tile__count { font-size: .75rem; font-weight: 700; color: var(--silo); }
.hw-tile__count.is-soon { color: var(--muted); font-weight: 600; }
.hw-tile__arrow { position: absolute; right: .9rem; top: 50%; margin-top: -.55em; color: var(--silo); opacity: .5; transition: transform .2s, opacity .2s; }
.hw-tile:hover .hw-tile__arrow { opacity: 1; transform: translateX(3px); }
@media (max-width: 600px) {
	.hw-tiles { padding: .9rem; }
	.hw-tiles__grid { grid-template-columns: 1fr 1fr; gap: .45rem; }
	.hw-tile { padding: .7rem .75rem; }
	.hw-tile__name { font-size: .86rem; }
	.hw-tile__arrow { display: none; }
}
.hw-anchor { display: block; scroll-margin-top: calc(var(--header-h) + 160px); }
.hw-meta__item--first { padding-left: 0; border-left: 0; }
.hw-pillar-hero .hw-meta > * + * { padding-left: 0; border-left: 0; }

/* "In progress" state */
.hw-soon { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .9rem 1.15rem; border-radius: var(--r-md); background: linear-gradient(90deg, var(--silo-s), transparent); border: 1px solid var(--line); font-size: .92rem; }
.hw-prose .hw-soon p { margin: 0; flex: 1; min-width: 14rem; color: var(--muted); }
.hw-soon strong { color: var(--ink); }
.hw-soon a { font-weight: 650; font-size: .88rem; white-space: nowrap; }
.hw-soon__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--silo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--silo) 20%, transparent); animation: hw-live 2.2s infinite; flex: 0 0 auto; }

/* Shortcode cards with art header */
.hw-card { padding: 0; overflow: hidden; }
.hw-card > :not(.hw-card__art) { margin-left: 1.15rem; margin-right: 1.15rem; }
.hw-card > .hw-card__foot { margin-bottom: 1.1rem; }
.hw-card__art { display: block; aspect-ratio: 16 / 9; background: var(--silo-s); overflow: hidden; margin-bottom: .35rem; }
.hw-card__art img, .hw-card__art .hw-art { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hw-card:hover .hw-card__art .hw-art, .hw-card:hover .hw-card__art img { transform: scale(1.05); }
.hw-card__top { margin-top: .35rem; }

/* One guide: wide horizontal card. Two guides: two equal columns. */
.hw-postgrid--duo { grid-template-columns: 1fr 1fr; }
.hw-postgrid--single { grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.hw-postgrid--single .hw-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 1.5rem; }
	.hw-postgrid--single .hw-card__art { grid-column: 1; grid-row: 1 / -1; aspect-ratio: auto; min-height: 100%; margin: 0; }
	.hw-postgrid--single .hw-card > :not(.hw-card__art) { grid-column: 2; margin-left: 0; margin-right: 1.5rem; }
	.hw-postgrid--single .hw-card__top { margin-top: 1.5rem; }
	.hw-postgrid--single .hw-card__title { font-size: 1.4rem; }
	.hw-postgrid--single .hw-card__excerpt { font-size: .95rem; }
	.hw-postgrid--single .hw-card__foot { margin-bottom: 1.5rem; align-self: end; }
}
@media (max-width: 560px) { .hw-postgrid--duo { grid-template-columns: 1fr; } }

/* =========================================================
   12. Winter checklist
   ========================================================= */
.hw-checklist { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .hw-checklist { grid-template-columns: 1fr; } }
.hw-checklist__intro { position: sticky; top: calc(var(--header-h) + 30px); }
.hw-checklist__intro > p:not(.hw-eyebrow) { color: var(--muted); margin: 1rem 0 0; max-width: 28rem; }
.hw-score { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.75rem; }
.hw-score__ring { width: 112px; height: 112px; transform: rotate(-90deg); flex: 0 0 auto; }
.hw-score__track { fill: none; stroke: var(--paper-2); stroke-width: 12; }
.hw-score__bar { fill: none; stroke: var(--teal); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .6s var(--ease), stroke .3s; }
.is-complete .hw-score__bar { stroke: var(--copper); }
.hw-score__text { display: flex; flex-direction: column; line-height: 1.1; }
.hw-score__text strong { font-family: var(--display); font-size: 2.6rem; font-weight: 600; }
.hw-score__text span { color: var(--muted); font-size: .9rem; }
.hw-checklist__intro .hw-score__msg { font-weight: 600; color: var(--ink); margin-top: 1rem; }
.hw-checklist__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; counter-reset: none; }
.hw-checklist__list li { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, background .2s, opacity .2s; }
.hw-checklist__list li:hover { border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); }
.hw-checklist__list li.is-done { background: var(--teal-s); border-color: #CBE3DC; }
.hw-checklist__list li.is-done strong { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--teal) 60%, transparent); }
.hw-checklist__list label { display: flex; align-items: center; gap: .9rem; flex: 1; cursor: pointer; min-width: 0; }
.hw-checklist__list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hw-check { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #CFC7B6; background: #fff; display: grid; place-items: center; transition: all .2s var(--ease); }
.hw-check::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .2s var(--ease); }
.hw-checklist__list input:checked + .hw-check { background: var(--teal); border-color: var(--teal); }
.hw-checklist__list input:checked + .hw-check::after { transform: rotate(-45deg) scale(1); }
.hw-checklist__list input:focus-visible + .hw-check { outline: 3px solid var(--copper); outline-offset: 2px; }
.hw-checklist__txt { display: flex; flex-direction: column; min-width: 0; }
.hw-checklist__txt strong { font-weight: 650; }
.hw-checklist__txt small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.hw-checklist__list a { flex: 0 0 auto; font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--teal); padding: .4rem .75rem; border-radius: 999px; background: var(--teal-s); }
.hw-checklist__list a:hover { background: var(--teal); color: #fff; }
.hw-pill { display: inline-block; background: var(--copper-s); color: var(--copper); border-radius: 999px; padding: .25rem .8rem; font-size: .8rem; font-weight: 700; }

@media print {
	.hw-topbar, .hw-header, .hw-footer, .hw-prefooter, .hw-related, .hw-toc, .hw-calc, .hw-article-aside, .hw-helpful, .hw-chipnav { display: none !important; }
	body { background: #fff; }
	.hw-article-layout { display: block; }
}
