/*
Theme Name: happiness.coach
Theme URI: https://happiness.coach
Author: Davsar-Design SRL
Description: Theme for happiness.coach, a living, research-based hub about happiness. Works with the "happiness.coach Hub Core" plugin (knowledge, practices, territories). On activation it creates the launch pages.
Version: 3.7.1
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: hc
*/

/* ---------- Fonts (self-hosted, GDPR-friendly) ---------- */
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens: Clear Sky & Sun ---------- */
:root {
	--white: #ffffff;
	--paper: #fffdf8;
	--cloud: #f2f7fc;
	--line: #e3ebf3;
	--ink: #0b2540;
	--ink-soft: #3a5068;
	--sky: #1c6fe8;
	--sky-deep: #1558bd;
	--sun: #ffc629;
	--sun-soft: #fff1c7;
	--teal: #10a89a;

	--font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Three type sizes */
	--fs-1: clamp(2.6rem, 6vw, 4.6rem);
	--fs-2: clamp(1.6rem, 2.8vw, 2.25rem);
	--fs-3: 1.0625rem;

	--wrap: 1160px;
	--gutter: clamp(20px, 5vw, 44px);
	--pad-x: max(var(--gutter), calc((100% - var(--wrap)) / 2));
	--radius: 22px;
	--glass: rgba(255, 255, 255, 0.62);
	--glass-line: rgba(255, 255, 255, 0.9);
	--shadow: 0 10px 40px rgba(11, 37, 64, 0.07);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-3); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--sky-deep); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 0.45em; color: var(--ink); }
h1 { font-size: var(--fs-1); }
h2, h3 { font-size: var(--fs-2); }
h3 { line-height: 1.15; }
p, ul, ol { margin: 0 0 1em; }
strong { font-weight: 600; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }

/* ---------- Header ---------- */
.hc-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 248, 0.78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hc-header.is-scrolled { border-bottom-color: var(--line); }
.hc-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px var(--pad-x); }
.hc-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: var(--fs-3); color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.hc-brand:hover { color: var(--ink); text-decoration: none; }
.hc-brand__mark { width: 22px; height: 22px; flex: none; }
.hc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.hc-nav a { color: var(--ink); white-space: nowrap; }
.hc-nav a:hover, .hc-nav .current-menu-item > a, .hc-nav .current_page_item > a { color: var(--sky); text-decoration: none; }
.hc-menu-toggle { display: none; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 1180px) {
	.hc-menu-toggle { display: inline-flex; }
	.hc-header .hc-header__cta { display: none; }
	.hc-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--pad-x) 24px; display: none; }
	.hc-nav.is-open { display: block; }
	.hc-nav ul { flex-direction: column; align-items: flex-start; gap: 2px; }
	.hc-nav li { width: 100%; }
	.hc-nav a { display: block; padding: 10px 0; }
}
@media (min-width: 1181px) { .hc-nav .hc-nav__cta { display: none; } }

/* ---------- Buttons ---------- */
.hc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 600 var(--fs-3)/1 var(--font-body); cursor: pointer; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; text-decoration: none !important; }
.hc-btn:hover { transform: translateY(-1px); }
.hc-btn--primary { background: var(--sky); color: #fff; box-shadow: 0 8px 24px rgba(28, 111, 232, 0.25); }
.hc-btn--primary:hover { background: var(--sky-deep); color: #fff; }
.hc-btn--secondary { background: var(--glass); color: var(--ink); border-color: var(--ink); }
.hc-btn--secondary:hover { background: var(--ink); color: #fff; }
.hc-btn--sun { background: var(--sun); color: var(--ink); }
.hc-btn--sun:hover { background: #ffd457; color: var(--ink); }
.hc-btn--small { padding: 10px 18px; }
.hc-actions, .hc-actions > p, .hc-actions .wp-block-group__inner-container > p { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.hc-actions { margin-top: 28px; }
.hc-center .hc-actions p { justify-content: center; }
.hc-center .hc-actions, .hc-center .hc-actions > .wp-block-group__inner-container { justify-content: center; }

/* ---------- Layout ---------- */
.hc-main { display: block; }
.hc-page > *:not(.hc-section):not(.hc-hero):not(.hc-band):not(.hc-dark) { padding-inline: var(--pad-x); }
.hc-page__title { padding: 64px var(--pad-x) 8px; margin: 0; }
.hc-hero, .hc-section, .hc-band, .hc-dark { padding: clamp(40px, 5vw, 72px) var(--pad-x); margin: 0; position: relative; }
/* The first element of a section never adds its own top margin to the section padding. */
.hc-section > :first-child, .hc-band > :first-child, .hc-section > .wp-block-group__inner-container > :first-child, .hc-band > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.hc-band { background: var(--cloud); }
.hc-dark { background: var(--ink); color: #dbe6f2; }
.hc-dark h2, .hc-dark h3 { color: #fff; }
.hc-dark a:not(.hc-btn) { color: var(--sun); }
.hc-dark .hc-eyebrow { color: var(--sun); }
.hc-narrow > *, .hc-narrow > .wp-block-group__inner-container > * { max-width: 780px; }
.hc-center { text-align: center; }
.hc-center > *, .hc-center > .wp-block-group__inner-container > * { margin-inline: auto; }
.hc-eyebrow { font-size: var(--fs-3); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.hc-lead { color: var(--ink-soft); max-width: 660px; }
.hc-dark .hc-lead { color: #c3d3e4; }
.hc-note { color: var(--ink-soft); }
.hc-meta { color: var(--ink-soft); }

/* Hero: sky, sun and contour lines, no photo needed */
.hc-hero { overflow: hidden; background: linear-gradient(180deg, var(--cloud) 0%, var(--paper) 78%); padding-top: clamp(48px, 7vw, 96px); }
.hc-hero::before { content: ""; position: absolute; width: min(46vw, 520px); aspect-ratio: 1; right: -6%; top: 14%; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #ffe49a 0%, var(--sun) 58%, rgba(255, 198, 41, 0) 72%); pointer-events: none; }
.hc-hero::after { content: ""; position: absolute; width: min(60vw, 720px); aspect-ratio: 1; right: -10%; top: 4%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%231C6FE8' stroke-width='1' opacity='.45'%3E%3Cellipse cx='200' cy='200' rx='60' ry='44'/%3E%3Cellipse cx='200' cy='200' rx='105' ry='80'/%3E%3Cellipse cx='196' cy='203' rx='150' ry='118'/%3E%3Cellipse cx='192' cy='206' rx='192' ry='156'/%3E%3C/svg%3E") center/contain no-repeat; pointer-events: none; }
.hc-hero > *, .hc-hero > .wp-block-group__inner-container > * { position: relative; z-index: 1; }
.hc-hero h1 { max-width: 13ch; }
.hc-hero .hc-lead { max-width: 560px; }
.hc-hero--page h1 { max-width: 18ch; }
.hc-hero--page::before { width: min(34vw, 380px); top: 8%; opacity: .9; }
.hc-hero--quiet::before, .hc-hero--quiet::after { display: none; }
@media (max-width: 781px) {
	.hc-hero { padding-bottom: 150px; }
	.hc-hero--page, .hc-hero--quiet { padding-bottom: 56px; }
	.hc-hero::before { width: 46vw; right: -10%; top: auto; bottom: -14vw; opacity: .9; }
	.hc-hero::after { display: none; }
	.hc-hero--page::before { display: none; }
}

/* Glass cards */
.hc-page .wp-block-columns { gap: 22px; margin-bottom: 0; }
.hc-cards { margin-top: 36px; }
.hc-card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hc-band .hc-card, .hc-section .hc-card { background: var(--white); border-color: var(--line); }
.hc-card > *:last-child, .hc-card .wp-block-group__inner-container > *:last-child { margin-bottom: 0; }
.hc-card h3 { margin-bottom: 8px; }
.hc-card--featured { border: 2px solid var(--sky); position: relative; }
.hc-card--featured::before { content: "Best place to start"; position: absolute; top: -14px; left: 22px; background: var(--sun); color: var(--ink); font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.hc-price { font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.1; margin: 10px 0 4px; }
.hc-card .hc-actions { margin-top: auto; padding-top: 20px; }
.hc-dark .hc-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); box-shadow: none; }
.hc-pillar { border-top: 2px solid var(--ink); padding-top: 18px; }
.hc-dark .hc-pillar { border-top-color: var(--sun); }

/* Steps */
.hc-steps { counter-reset: step; margin-top: 36px; }
.hc-step { counter-increment: step; }
.hc-step::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px; background: var(--sun); color: var(--ink); font-weight: 600; }

/* Lists */
.hc-checks { list-style: none; padding: 0; }
.hc-checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.hc-checks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%; background: var(--sun-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230b2540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Agenda */
.hc-agenda .wp-block-columns { border-top: 1px solid var(--line); padding: 22px 0; margin: 0; gap: 12px 24px; }
.hc-agenda .wp-block-columns:last-of-type { border-bottom: 1px solid var(--line); }
.hc-agenda h3 { margin: 0 0 6px; }
.hc-time { font-weight: 600; color: var(--ink-soft); margin: 0; }

/* Territories & evidence */
.hc-territories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
@media (max-width: 900px) { .hc-territories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hc-territories { grid-template-columns: 1fr; } }
.hc-territory { display: block; padding: 24px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); color: var(--ink); position: relative; overflow: hidden; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hc-territory::after { content: ""; position: absolute; width: 140px; aspect-ratio: 1; right: -40px; top: -40px; border-radius: 50%; background: var(--t, var(--sky)); opacity: .22; }
.hc-territory:hover { text-decoration: none; color: var(--ink); transform: translateY(-2px); transition: transform .15s; }
.hc-territory__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--t, var(--sky)); display: inline-block; margin-bottom: 14px; }
.hc-territory h3 { margin: 0 0 6px; }
.hc-territory p { margin: 0; color: var(--ink-soft); }
.hc-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--cloud); color: var(--ink); font-size: var(--fs-3); font-weight: 500; white-space: nowrap; }
.hc-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--t, var(--sky)); }
.hc-tag--ev { background: transparent; border: 1px solid var(--line); }
.hc-tag--ev::before { display: none; }
.hc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* Insight & practice cards */
.hc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
@media (max-width: 900px) { .hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hc-grid { grid-template-columns: 1fr; } }
.hc-item { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); box-shadow: var(--shadow); border-top: 4px solid var(--t, var(--sky)); }
.hc-item:hover { text-decoration: none; color: var(--ink); transform: translateY(-2px); transition: transform .15s; }
.hc-item h3 { margin: 0 0 10px; }
.hc-item p { color: var(--ink-soft); margin: 0 0 14px; }
.hc-item .hc-more { margin-top: auto; color: var(--sky); font-weight: 600; }

/* Single entry */
.hc-entry { padding: 56px var(--pad-x) 80px; }
.hc-entry__inner { max-width: 760px; }
.hc-entry h1 { font-size: var(--fs-2); line-height: 1.1; }
.hc-entry .hc-lead { margin-bottom: 28px; }
.hc-entry__content h3 { margin-top: 1.4em; }
.hc-source { margin-top: 40px; padding: 22px 24px; border-radius: var(--radius); background: var(--cloud); }
.hc-source p { margin: 0 0 6px; }
.hc-source p:last-child { margin: 0; }
.hc-back { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* Filters */
.hc-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hc-filters a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.hc-filters__label { flex-basis: 100%; margin-top: 6px; font-size: var(--fs-3); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); opacity: .6; }
.hc-filters__label:first-of-type { margin-top: 4px; }
.hc-fed { margin: 12px 0 0; font-size: var(--fs-3); color: var(--ink); opacity: .85; }
.hc-fed__root { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 500; }
.hc-fed__root::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--t); }
a.hc-fed__root:hover { text-decoration: underline; }
.hc-filters a:hover, .hc-filters a.is-active { border-color: var(--sky); color: var(--sky); text-decoration: none; }
/* Explore: combinable filter bar */
.hc-facets { margin-top: 4px; }
.hc-facets__head { display: flex; align-items: center; gap: 14px; min-height: 22px; }
.hc-facets__count { margin: 0; font-size: var(--fs-3); color: var(--ink); opacity: .6; }
.hc-facets__clear { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-3); color: var(--sky); cursor: pointer; text-decoration: underline; }
.hc-facets__group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hc-facet { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: var(--fs-3); cursor: pointer; }
.hc-facet::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--t, var(--sky)); opacity: .45; }
.hc-facet--ev::before { display: none; }
.hc-facet:hover { border-color: var(--t, var(--sky)); }
.hc-facet[aria-pressed="true"] { border-color: var(--t, var(--sky)); background: var(--cloud); font-weight: 500; }
.hc-facet[aria-pressed="true"]::before { opacity: 1; }
.hc-facet--ev[aria-pressed="true"] { border-color: var(--ink); }
.hc-facets__empty { margin-top: 20px; font-size: var(--fs-2); color: var(--ink); opacity: .7; }

/* Explore: world map, open by default, with a hide button */
/* Explore: search, three ways in, panels, "Start here" */
.hc-explore { margin-top: 4px; }
.hc-explore-wrap { padding-bottom: 28px; }
.hc-explore .hc-facets__head { min-height: 0; }
[data-hc-results] .hc-grid { margin-top: 0; }
.hc-search { display: flex; align-items: center; gap: 14px; padding: 0 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.hc-search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(28, 111, 232, .12); }
.hc-search svg { flex: none; opacity: .7; }
.hc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); padding: 17px 0; }
.hc-search input::placeholder { color: var(--ink-soft); opacity: .75; }
.hc-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 900px) { .hc-doors { grid-template-columns: 1fr; gap: 10px; } }
.hc-door { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.hc-door:hover, .hc-door[aria-expanded="true"] { border-color: var(--sky); }
.hc-door[aria-expanded="true"] { background: var(--cloud); }
.hc-door__icon { flex: none; display: flex; }
.hc-door__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hc-door__text strong { font-weight: 600; }
.hc-door__text span { font-size: var(--fs-3); color: var(--ink-soft); }
.hc-door.has-choice .hc-door__text strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--sky); vertical-align: middle; }
.hc-door__chev { flex: none; color: var(--ink-soft); transition: transform .15s; }
.hc-door[aria-expanded="true"] .hc-door__chev { transform: rotate(180deg); }
.hc-panel { margin-top: 14px; padding: 8px 22px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.hc-panel[hidden] { display: none; }
.hc-panel--world { padding: 22px; }
.hc-explore .hc-facets__head { margin-top: 14px; }
.hc-eyebrow--quiet { color: var(--ink-soft); font-family: inherit; line-height: inherit; margin: 0; }
.hc-start .hc-grid { margin-top: 18px; }
.hc-start__all { margin: 28px 0 0; text-align: center; }
[data-hc-start][hidden], [data-hc-results][hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hc-door__chev { transition: none; } }

/* Founder note */
.hc-founder { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .hc-founder { grid-template-columns: 1fr; } }
.hc-quote { font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.25; }

/* Image slot */
.hc-image { position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--cloud), var(--sun-soft)); }
.hc-image img { width: 100%; height: 100%; object-fit: cover; }
.hc-image--portrait { aspect-ratio: 4 / 5; }
.hc-image--square { aspect-ratio: 1; }
.hc-image--landscape { aspect-ratio: 3 / 2; }
.hc-image__sun { position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe49a, var(--sun)); right: 12%; top: 14%; opacity: .9; }
.hc-image__placeholder { position: absolute; inset: auto 0 0 0; padding: 16px; text-align: center; color: var(--ink-soft); }

/* Roadmap */
.hc-roadmap .hc-card h3 { margin-bottom: 6px; }
.hc-status { display: inline-block; font-weight: 600; color: var(--sky); margin-bottom: 10px; }

/* FAQ */
.hc-faq .wp-block-details { border-top: 1px solid var(--line); padding: 18px 0; max-width: 820px; }
.hc-faq .wp-block-details:last-child { border-bottom: 1px solid var(--line); }
.hc-faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 32px; }
.hc-faq summary::-webkit-details-marker { display: none; }
.hc-faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: var(--fs-2); line-height: 1; color: var(--sky); }
.hc-faq details[open] summary::after { content: "–"; }
.hc-faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Legal */
.hc-legal { max-width: 860px; }
.hc-legal h2 { margin-top: 1.4em; }

/* Forms */
.hc-form { display: grid; gap: 16px; max-width: 720px; margin-top: 8px; }
.hc-form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .hc-form__row { grid-template-columns: 1fr; } }
.hc-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.hc-field .hc-req { color: var(--sky); }
.hc-field input, .hc-field select, .hc-field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.hc-field textarea { min-height: 130px; resize: vertical; }
.hc-field input:focus, .hc-field select:focus, .hc-field textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 4px rgba(28,111,232,.12); }
.hc-consent { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.hc-consent input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.hc-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.hc-form-msg { padding: 16px 20px; border-radius: 14px; background: var(--sun-soft); font-weight: 600; max-width: 720px; }
.hc-form-msg--error { background: #fde3dc; }
.hc-form-msg[hidden] { display: none; }

/* Footer */
.hc-footer { background: var(--ink); color: #b9c9da; padding: 72px var(--pad-x) 40px; }
.hc-footer a { color: #fff; }
.hc-footer .hc-brand { color: #fff; margin-bottom: 14px; }
.hc-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .hc-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .hc-footer__grid { grid-template-columns: 1fr; } }
.hc-footer ul { list-style: none; padding: 0; margin: 0; }
.hc-footer li { margin-bottom: 8px; }
.hc-footer__heading { color: #fff; font-weight: 600; margin-bottom: 12px; }
.hc-footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Archive pagination */
.hc-pagination { padding: 0 var(--pad-x) 80px; }
.hc-pagination:empty { padding: 0; }
.hc-pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-pagination a, .hc-pagination span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }

@media (max-width: 781px) {
	.hc-btn { width: 100%; }
	.hc-header .hc-btn, .hc-nav .hc-btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hc-btn, .hc-item, .hc-territory { transition: none; } }

/* v3: starter band, share box, entry call-to-action */
.hc-band--sun { background: linear-gradient(135deg, var(--sun-soft) 0%, var(--cloud) 70%); }
.hc-starter-band { align-items: center; gap: clamp(24px, 4vw, 56px); }
.hc-share { margin-top: 32px; padding: 22px 24px; border-radius: 18px; background: var(--cloud); display: grid; gap: 14px; }
.hc-share__take { margin: 0; font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.2; color: var(--ink); }
.hc-share__take .hc-eyebrow { display: block; font-family: var(--font-body); font-size: var(--fs-3); line-height: 1.4; margin-bottom: 8px; }
.hc-share__row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.hc-share__row span { font-weight: 600; margin-right: 4px; }
.hc-share__row a, .hc-share__row button { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; text-decoration: none; }
.hc-share__row a:hover, .hc-share__row button:hover { border-color: var(--sky); color: var(--sky); text-decoration: none; }
.hc-entry-cta { margin-top: 28px; padding: 24px; border-radius: 18px; border: 2px solid var(--sun); background: #fff; }
.hc-entry-cta p { margin: 0 0 14px; }
.hc-entry-cta .hc-eyebrow { margin-bottom: 6px; }
.hc-nowrap { white-space: nowrap; }
.hc-header .hc-btn { white-space: nowrap; }
.hc-territory .hc-fed { margin-top: 12px; }

.hc-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid rgba(11,37,64,.1); }
.hc-callout p { margin: 0; flex: 1 1 320px; }

/* ---------- Interactive model ([hc_model]) ---------- */
/* happiness.coach model: interactive version */
.hc-model.hc-model--interactive{max-width:980px;margin:8px auto 0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.hc-model.hc-model--interactive .hc-model__svg{max-width:540px;margin:0 auto}
.hc-model--interactive .hc-model__panel{min-width:0;color:#0B2540}
@media (min-width:820px){
.hc-model.hc-model--interactive{grid-template-columns:minmax(0,540px) minmax(0,1fr);grid-template-areas:"svg panel" "legend panel";gap:0 44px;align-items:center}
.hc-model.hc-model--interactive .hc-model__svg{grid-area:svg}
.hc-model.hc-model--interactive .hc-model__legend{grid-area:legend}
.hc-model--interactive .hc-model__panel{grid-area:panel;min-height:250px}
}
.hc-model--interactive .hc-model__svg{display:block;width:100%;height:auto;overflow:visible}
.hc-model--interactive .hc-model__label,.hc-model--interactive .hc-model__root,.hc-model--interactive .hc-model__centre{font-family:"Instrument Serif",Georgia,serif;fill:#0B2540}
.hc-model--interactive .hc-model__label{font-size:20px}
.hc-model--interactive .hc-model__root{font-size:18px}
.hc-model--interactive .hc-model__centre{font-size:20px;font-style:italic}
.hc-model--interactive .hc-model__terr{font-family:Inter,system-ui,sans-serif;font-size:13px;fill:#0B2540}
.hc-model--interactive .hc-model__small{font-family:Inter,system-ui,sans-serif;font-size:11px;fill:#4a5b6e}
.hc-model--interactive .hc-model__svg text{pointer-events:none;user-select:none}
.hc-model--interactive .hcm-part{cursor:pointer;transition:opacity .2s ease;outline:none}
.hc-model--interactive .hcm-arrows,.hc-model--interactive .hcm-links line{transition:opacity .2s ease}
.hc-model--interactive .hcm-part:focus-visible{outline:2px solid #1C6FE8;outline-offset:3px;border-radius:14px}
.hc-model--interactive .hcm-terr:hover rect,.hc-model--interactive .hcm-terr.is-selected rect{stroke-opacity:.75}
.hc-model--interactive .hcm-terr.is-selected rect{stroke-width:1.6}
.hc-model--interactive .hcm-terr.is-selected text{font-weight:600}
.hc-model--interactive .hcm-root circle{transition:fill-opacity .2s ease}
.hc-model--interactive .hcm-root:hover circle{fill-opacity:.36}
.hc-model--interactive .hcm-root.is-selected circle{fill-opacity:.46;stroke-width:2}
.hc-model--interactive .hcm-overlap:hover text,.hc-model--interactive .hcm-overlap.is-selected text{fill:#0B2540}
.hc-model--interactive .hcm-overlap.is-selected text{font-weight:600}
.hc-model--interactive .hcm-whole:hover .hcm-ring,.hc-model--interactive .hcm-whole.is-selected .hcm-ring{stroke-opacity:.7}
.hc-model--interactive .hcm-whole.is-selected .hcm-ring{stroke-width:1.6;stroke-dasharray:none}
.hc-model--interactive .hcm-links line{opacity:0;stroke-width:1.6;stroke-linecap:round;pointer-events:none}
.hc-model--interactive .hcm-links line.is-on{opacity:.85}
.hc-model--interactive.is-focused .hcm-part:not(.is-on),.hc-model--interactive.is-focused .hcm-arrows:not(.is-on){opacity:.22}
.hc-model--interactive .hc-model__legend{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center;font-size:13px;color:#4a5b6e}
.hc-model--interactive .hc-model__legend li{display:flex;align-items:center;gap:6px;margin:0}
.hc-model--interactive .hc-model__legend span{display:inline-block;width:12px;height:12px;border-radius:50%}
.hc-model--interactive .hc-model__legend-note{flex-basis:100%;justify-content:center;text-align:center}
.hc-model--interactive .hc-model__eyebrow{margin:0 0 8px;font:600 13px/1.4 Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#4a5b6e;display:flex;align-items:center;gap:8px}
.hc-model--interactive .hc-model__title{margin:0 0 10px;font:400 28px/1.15 "Instrument Serif",Georgia,serif;color:#0B2540}
.hc-model--interactive .hc-model__text{margin:0 0 14px;font:400 16px/1.6 Inter,system-ui,sans-serif;color:#0B2540}
.hc-model--interactive .hc-model__rel{margin:0 0 8px;font:400 13px/1.5 Inter,system-ui,sans-serif;color:#4a5b6e;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.hc-model--interactive .hc-model__chip{appearance:none;border:1px solid rgba(11,37,64,.2);background:#fff;border-radius:999px;padding:5px 12px;font:500 13px/1.3 Inter,system-ui,sans-serif;color:#0B2540;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.hc-model--interactive .hc-model__chip:hover{border-color:rgba(11,37,64,.6)}
.hc-model--interactive .hc-model__chip:focus-visible,.hc-model--interactive .hc-model__back:focus-visible,.hc-model--interactive .hc-model__more:focus-visible{outline:2px solid #1C6FE8;outline-offset:2px}
.hc-model--interactive .hc-model__dot{display:inline-block;width:9px;height:9px;border-radius:50%;box-sizing:border-box;flex:none}
.hc-model--interactive .hc-model__actions{margin:16px 0 0;display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;font:500 13px/1.4 Inter,system-ui,sans-serif}
.hc-model--interactive .hc-model__more{color:#1C6FE8;text-decoration:none}
.hc-model--interactive .hc-model__more:hover{text-decoration:underline}
.hc-model--interactive .hc-model__back{appearance:none;background:none;border:0;padding:0;font:inherit;color:#4a5b6e;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
@media (prefers-reduced-motion:reduce){.hcm-part,.hcm-arrows,.hcm-links line,.hcm-root circle{transition:none}}
.hc-model--interactive .hc-model__panel:focus{outline:none}
.hc-model.hc-model--interactive .hc-model__legend{order:3}
