/* CMS content blocks (blog posts and CMS landing pages). Loaded AFTER styles.css (and programmes.css /
   service-pages.css on landing pages). Only blocks with no existing site class live here, all prefixed .hh-,
   built on the tokens in styles.css :root. Markup comes from portal includes/block-render.php.
   No inline styles are ever emitted: width, ratio and focal point are classes. */

/* ---------- Screen-reader-only words (the renderer adds "(opens in a new tab)", "Done:" / "To do:") ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Plain lists: the site stylesheet removes list markers; an article's own lists (no class) show them again ---------- */
.post-content ul:not([class]) { list-style: disc; }
.post-content ol:not([class]) { list-style: decimal; }

/* ---------- Alignment and widths ---------- */
.hh-align-center { text-align: center; }
.hh-align-right { text-align: right; }
.hh-align-justify { text-align: justify; }
.hh-w-25 { width: 25%; } .hh-w-33 { width: 33%; } .hh-w-40 { width: 40%; } .hh-w-50 { width: 50%; }
.hh-w-60 { width: 60%; } .hh-w-66 { width: 66%; } .hh-w-75 { width: 75%; } .hh-w-80 { width: 80%; }
.hh-w-90 { width: 90%; } .hh-w-100 { width: 100%; }

/* ---------- Images and figures ---------- */
.hh-figure { margin: 28px auto; max-width: 100%; }
.hh-figure img { display: block; max-width: 100%; height: auto; width: 100%; margin: 0 auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); background: var(--calm-beige); }
.hh-figure.hh-align-left { margin-left: 0; margin-right: auto; }
.hh-figure.hh-align-right { margin-left: auto; margin-right: 0; }
.hh-figure.hh-align-center { margin-left: auto; margin-right: auto; }
/* Text wrapping: floats beside the text from 600px up; stacks full width below. The whole image always shows. */
@media (min-width: 600px) {
    .hh-figure.hh-float-left { float: left; margin: 6px 28px 16px 0; }
    .hh-figure.hh-float-right { float: right; margin: 6px 0 16px 28px; }
}
@media (max-width: 599px) {
    .hh-figure.hh-float-left, .hh-figure.hh-float-right { float: none; width: 100%; margin: 24px auto; }
}
.post-content h2, .post-content h3, .post-content hr, .post-content .hh-gallery, .post-content .hh-cta, .post-content table, .post-content .hh-callout { clear: both; }
.post-content::after { content: ""; display: block; clear: both; }
.hh-figure figcaption { font-size: 13px; line-height: 1.55; color: var(--charcoal-light); text-align: center; margin-top: 8px; }
.hh-img-ratio img { object-fit: contain; object-position: var(--hh-fx, 50%) var(--hh-fy, 50%); background: var(--off-white); } /* frame shape letterboxes: the whole image always shows, nothing is cropped */
.hh-ratio-1-1 img { aspect-ratio: 1 / 1; } .hh-ratio-4-3 img { aspect-ratio: 4 / 3; } .hh-ratio-3-2 img { aspect-ratio: 3 / 2; }
.hh-ratio-16-9 img { aspect-ratio: 16 / 9; } .hh-ratio-4-5 img { aspect-ratio: 4 / 5; }
.hh-fx-0 { --hh-fx: 0%; } .hh-fx-10 { --hh-fx: 10%; } .hh-fx-20 { --hh-fx: 20%; } .hh-fx-30 { --hh-fx: 30%; } .hh-fx-40 { --hh-fx: 40%; }
.hh-fx-50 { --hh-fx: 50%; } .hh-fx-60 { --hh-fx: 60%; } .hh-fx-70 { --hh-fx: 70%; } .hh-fx-80 { --hh-fx: 80%; } .hh-fx-90 { --hh-fx: 90%; } .hh-fx-100 { --hh-fx: 100%; }
.hh-fy-0 { --hh-fy: 0%; } .hh-fy-10 { --hh-fy: 10%; } .hh-fy-20 { --hh-fy: 20%; } .hh-fy-30 { --hh-fy: 30%; } .hh-fy-40 { --hh-fy: 40%; }
.hh-fy-50 { --hh-fy: 50%; } .hh-fy-60 { --hh-fy: 60%; } .hh-fy-70 { --hh-fy: 70%; } .hh-fy-80 { --hh-fy: 80%; } .hh-fy-90 { --hh-fy: 90%; } .hh-fy-100 { --hh-fy: 100%; }

.hh-gallery { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hh-gallery li { margin: 0; }
.hh-gallery .hh-figure { margin: 0; }
.hh-gallery--grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hh-gallery--grid-3, .hh-gallery--grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hh-gallery--masonry { display: block; column-count: 2; column-gap: 14px; }
.hh-gallery--masonry li { break-inside: avoid; margin-bottom: 14px; }
@media (min-width: 720px) {
    .hh-gallery--grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hh-gallery--grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hh-gallery--masonry { column-count: 3; }
}
.hh-gallery a { display: block; }
.hh-gallery a:focus-visible, .hh-figure a:focus-visible { outline: 3px solid var(--wellness-blue); outline-offset: 3px; }

/* ---------- Video ---------- */
.hh-video { margin: 28px 0; }
.hh-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--charcoal); box-shadow: var(--shadow-sm); }
.hh-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hh-video figcaption { font-size: 13px; color: var(--charcoal-light); text-align: center; margin-top: 8px; }

/* ---------- Text blocks ---------- */
.hh-quote, .hh-pullquote { margin: 28px 0; }
.hh-quote .hh-cite, .hh-pullquote .hh-cite { font-style: normal; font-size: .9em; color: var(--charcoal-light); margin: 8px 0 0; }
.hh-pullquote { border: 0; border-top: 3px solid var(--health-green); border-bottom: 3px solid var(--health-green); background: none; padding: 22px 8px; text-align: center; font-family: var(--font-serif); font-size: 1.35em; line-height: 1.5; font-style: italic; border-radius: 0; }
.hh-pullquote p { margin: 0; }
.hh-divider { border: 0; border-top: 1px solid var(--border-color); margin: 36px 0; }
.hh-divider--dots { border: 0; text-align: center; height: auto; line-height: 1; }
.hh-divider--dots::after { content: '\2022\00a0\00a0\2022\00a0\00a0\2022'; color: var(--charcoal-light); letter-spacing: .3em; }
.hh-pre { background: var(--off-white); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px 16px; margin: 24px 0; overflow: auto; font-size: .9rem; line-height: 1.55; }
.hh-pre code { white-space: pre; }
.hh-checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.hh-checklist li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.hh-checklist li::before { content: ''; position: absolute; left: 0; top: .35em; width: 17px; height: 17px; border: 2px solid var(--charcoal-light); border-radius: 4px; }
.hh-checklist li.hh-done::before { background: var(--health-green); border-color: var(--health-green); }
.hh-checklist li.hh-done::after { content: '\2713'; position: absolute; left: 3px; top: .2em; color: #fff; font-size: 13px; font-weight: 700; }
.hh-img-link { display: block; }

/* ---------- Tables ---------- */
.hh-table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--white); }
.hh-table-wrap:focus-visible { outline: 3px solid var(--wellness-blue); outline-offset: 2px; }
.hh-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; line-height: 1.55; }
.hh-table caption { caption-side: top; text-align: left; font-weight: 600; padding: 12px 14px 4px; color: var(--charcoal); }
.hh-table th, .hh-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-color); }
.hh-table thead th { background: rgba(var(--health-green-rgb), 0.12); font-weight: 600; }
.hh-table tbody th { font-weight: 600; }
.hh-table .hh-align-center { text-align: center; } .hh-table .hh-align-right { text-align: right; }
.hh-table tbody tr:last-child th, .hh-table tbody tr:last-child td { border-bottom: 0; }
.hh-table th, .hh-table td { overflow-wrap: break-word; }
.hh-table th[colspan], .hh-table th[rowspan], .hh-table td[rowspan] { border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); }
.hh-table th[colspan] { text-align: center; }
.hh-table th[rowspan], .hh-table td[rowspan] { vertical-align: middle; }

/* ---------- Callouts ---------- */
.hh-callout { margin: 28px 0; padding: 18px 22px; border-radius: 0 var(--radius-md) var(--radius-md) 0; border-left: 5px solid var(--health-green); background: rgba(var(--health-green-rgb), 0.08); }
.hh-callout-title { font-weight: 600; margin: 0 0 8px; color: var(--charcoal); }
.hh-callout > :last-child { margin-bottom: 0; }
.hh-callout--important { border-left-color: var(--wellness-blue); background: rgba(var(--wellness-blue-rgb), 0.08); }
.hh-callout--warning { border-left-color: var(--fertility-pink); background: rgba(194, 24, 91, 0.06); }
.hh-callout--disclaimer { border-left-color: var(--gold-accent); background: var(--calm-beige); font-size: .95rem; }
.hh-callout--did_you_know, .hh-callout--summary { border-left-color: var(--gold-accent); background: rgba(212, 168, 83, 0.1); }
.hh-reviewed { color: var(--charcoal-light); font-size: .88rem; margin: 0; }

/* ---------- Expert quote ---------- */
.hh-expert { margin: 32px 0; padding: 22px 24px; background: var(--off-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.hh-expert blockquote { margin: 0 0 14px; padding: 0; border: 0; background: none; }
.hh-expert-by { display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.hh-expert-by img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center top; margin: 0; box-shadow: none; flex: none; }
.hh-expert-name { font-weight: 600; display: block; }
.hh-expert-role { color: var(--charcoal-light); display: block; }

/* ---------- Buttons and CTA ---------- */
.hh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 26px; border-radius: var(--radius-full); border: 2px solid var(--health-green); font-weight: 600; font-size: .95rem; text-decoration: none !important; transition: background var(--transition-fast), color var(--transition-fast); }
.hh-btn--primary { background: var(--health-green); color: #fff !important; }
.hh-btn--primary:hover { background: #5dab3a; border-color: #5dab3a; }
.hh-btn--secondary { background: var(--charcoal); border-color: var(--charcoal); color: #fff !important; }
.hh-btn--outline { background: transparent; color: var(--charcoal) !important; border-color: var(--charcoal); }
.hh-btn--outline:hover { background: var(--charcoal); color: #fff !important; }
.hh-btn:focus-visible { outline: 3px solid var(--wellness-blue); outline-offset: 3px; }
.hh-cta { margin: 36px 0; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--calm-beige); border: 1px solid rgba(var(--health-green-rgb), 0.3); text-align: center; }
.hh-cta.hh-align-left { text-align: left; }
.hh-cta.hh-align-right { text-align: right; }
.hh-cta-heading { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 0 0 10px; }
.hh-cta p { margin: 0 0 18px; }
.hh-cta > :last-child { margin-bottom: 0; }
.hh-btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hh-form-cta { margin: 28px 0; padding: 26px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--white); }

/* ---------- Columns ---------- */
.hh-columns { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin: 24px 0; }
.hh-column > :first-child { margin-top: 0; }
.hh-column > :last-child { margin-bottom: 0; }
@media (min-width: 720px) {
    .hh-columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hh-columns--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) { .hh-columns--nostack.hh-columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) { .hh-columns--nostack.hh-columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------- Stats, trust, steps, timeline, pros and cons ---------- */
.hh-stats, .hh-trust { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hh-stats li, .hh-trust li { margin: 0; padding: 18px 16px; text-align: center; background: var(--off-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
@media (min-width: 720px) { .hh-stats, .hh-trust { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.hh-stat-value { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1.15; color: var(--health-green); }
.hh-stat-label { display: block; font-weight: 600; margin-top: 4px; }
.hh-stat-note { display: block; font-size: .85rem; color: var(--charcoal-light); margin-top: 4px; }
.hh-steps { list-style: none; counter-reset: hh-step; margin: 24px 0; padding: 0; }
.hh-steps li { counter-increment: hh-step; position: relative; padding-left: 52px; margin-bottom: 20px; min-height: 36px; }
.hh-steps li::before { content: counter(hh-step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; color: var(--health-green); background: rgba(var(--health-green-rgb), 0.12); }
.hh-step-title, .hh-tl-title { display: block; font-weight: 600; }
.hh-step-body, .hh-tl-body { display: block; }
.hh-timeline { list-style: none; margin: 28px 0; padding: 0 0 0 22px; border-left: 3px solid rgba(var(--health-green-rgb), 0.4); }
.hh-timeline li { position: relative; margin: 0 0 22px; padding-left: 8px; }
.hh-timeline li::before { content: ''; position: absolute; left: -31px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--health-green); border: 3px solid var(--white); box-shadow: 0 0 0 2px rgba(var(--health-green-rgb), 0.4); }
.hh-tl-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--health-green); }
.hh-proscons { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 28px 0; }
@media (min-width: 720px) { .hh-proscons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hh-pros, .hh-cons { padding: 18px 20px; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.hh-pros { background: rgba(var(--health-green-rgb), 0.08); border-top: 4px solid var(--health-green); }
.hh-cons { background: rgba(194, 24, 91, 0.05); border-top: 4px solid var(--fertility-pink); }
.hh-pc-title { font-weight: 700; margin: 0 0 8px; }
.hh-pros ul, .hh-cons ul { margin: 0 0 0 20px; list-style: disc; }

/* ---------- FAQ (blog: always visible, question + answer pairs) ---------- */
.hh-faq { margin: 28px 0; }
.hh-faq h3 { font-size: 1.1rem; margin: 22px 0 6px; }
.hh-faq p { margin: 0 0 12px; }

/* ---------- Related, people, downloads ---------- */
.hh-related { margin: 36px 0; padding: 22px 24px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--off-white); }
.hh-related-title { font-weight: 700; margin: 0 0 10px; }
.hh-related ul { list-style: none; margin: 0; padding: 0; }
.hh-related li { margin: 0 0 10px; }
.hh-related-desc { display: block; font-size: .9rem; color: var(--charcoal-light); }
.hh-people { display: grid; gap: 16px; margin: 32px 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .hh-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hh-person { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--white); }
.hh-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center top; margin: 0; box-shadow: none; flex: none; }
.hh-person-role { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--health-green); }
.hh-person-name { display: block; font-weight: 600; }
.hh-person-meta { display: block; font-size: .9rem; color: var(--charcoal-light); }
.hh-downloads { list-style: none; margin: 24px 0; padding: 0; }
.hh-downloads li { margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); }
.hh-raw { margin: 24px 0; }

/* ---------- Landing sections ---------- */
.hh-wide { max-width: 1200px; }
.hh-space-sm { padding-top: 28px; padding-bottom: 28px; }
.hh-space-lg { padding-top: 76px; padding-bottom: 76px; }
.hh-bg-white { background: var(--white); }
.hh-bg-brand { background: linear-gradient(135deg, var(--health-green), #5dab3a); color: #fff; }
.hh-bg-dark { background: var(--charcoal); color: #fff; }
.hh-bg-brand :is(h1, h2, h3, h4, p, li, strong), .hh-bg-dark :is(h1, h2, h3, h4, p, li, strong) { color: #fff; }
.hh-bg-brand a:not(.btn):not(.hh-btn), .hh-bg-dark a:not(.btn):not(.hh-btn) { color: #fff; text-decoration: underline; }
.hh-bg-brand .hh-callout, .hh-bg-brand .hh-cta, .hh-bg-dark .hh-callout, .hh-bg-dark .hh-cta { color: var(--charcoal); }
.hh-bg-brand .hh-callout :is(h1, h2, h3, h4, p, li, strong), .hh-bg-dark .hh-callout :is(p, li, strong),
.hh-bg-brand .hh-cta :is(h1, h2, h3, h4, p, li, strong), .hh-bg-dark .hh-cta :is(h1, h2, h3, h4, p, li, strong) { color: var(--charcoal); }
.hh-section-align-center { text-align: center; }
.hh-section-align-center .prog-ticks { display: inline-block; text-align: left; }
.hh-grid { display: grid; gap: 20px; margin-top: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .hh-grid--2, .hh-grid--3, .hh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .hh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hh-card-img { width: 100%; height: auto; border-radius: var(--radius-sm); margin: 0 0 14px; display: block; }
.hh-testimonial { margin: 0; }
.hh-testimonial blockquote { margin: 0 0 12px; background: none; border: 0; padding: 0; font-style: italic; }
.hh-testimonial figcaption { font-size: .92rem; color: var(--charcoal-light); }
.hh-comparison-wrap { margin: 24px 0; }
.sp-hero .hh-hero-children { margin-top: 18px; }
.hh-hero--bg { position: relative; isolation: isolate; color: #fff; }
.hh-hero--bg .hh-hero-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; margin: 0; }
.hh-hero--bg::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 30, 20, .78), rgba(20, 30, 20, .45)); }
.hh-hero--bg :is(h1, .sp-lede, .prog-breadcrumb, .prog-breadcrumb a) { color: #fff; }
@media (min-width: 720px) {
    .hh-hero--split .sp-hero-grid { grid-template-columns: 300px minmax(0, 1fr); }
    .hh-hero--split .sp-hero-media { order: -1; }
}
@media (min-width: 960px) { .hh-hero--split .sp-hero-grid { grid-template-columns: 460px minmax(0, 1fr); } }
.hh-hero--single .sp-hero-grid { grid-template-columns: minmax(0, 1fr); }
.hh-hero--single .sp-lede { max-width: 720px; }
.hh-wrap-run > :first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .hh-btn { transition: none; } }
