/*
Theme Name: Metabolic Health Center
Theme URI: https://metabolichealth.center/
Description: Twenty Twenty-Five child theme for metabolichealth.center, the education-only supplement and protocol guide. Brand tokens in theme.json (logo amber #FCA72A, ink #111111); the amber is too light for white text, so the chrome is ink with amber buttons carrying ink text. No text-transform anywhere.
Author: Metabolic Health Center
Template: twentytwentyfive
Version: 1.0.0
Text Domain: metabolic-health
*/

/* Header: one fixed ink bar (site chrome standard, painmd.tv reference). */
.mh-sticky-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .mh-sticky-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mh-sticky-header { top: 46px; } }
.mh-headrow { width: 100%; gap: 1rem; }
.mh-actions { gap: 0.5rem; align-items: center; }
.mh-lockup { display: inline-flex; line-height: 0; }
.mh-lockup img { width: 230px; height: auto; display: block; }
.mh-actions > p { margin: 0; display: contents; }

/* Buttons: 40px tall via padda-button-standard (option padda_btn_extra = .mh-btn); emojis drawn there too. */
.mh-btn {
	display: inline-flex; align-items: center; gap: .4rem;
	border-radius: 999px; padding: 0 1.1rem; font-weight: 600; font-size: 1rem;
	white-space: nowrap; text-decoration: none !important; border: 2px solid transparent;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mh-btn-short { display: none; }
.mh-btn--primary { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink) !important; border-color: var(--wp--preset--color--accent); }
.mh-btn--primary:hover, .mh-btn--primary:focus-visible { background: #fff; border-color: #fff; color: var(--wp--preset--color--ink) !important; }
.mh-btn--ghost, .mh-btn--on-dark { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.mh-btn--ghost:hover, .mh-btn--ghost:focus-visible, .mh-btn--on-dark:hover, .mh-btn--on-dark:focus-visible { background: #fff; color: var(--wp--preset--color--primary) !important; border-color: #fff; }
.mh-btn--light { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink) !important; border-color: var(--wp--preset--color--accent); }
.mh-btn--light:hover, .mh-btn--light:focus-visible { background: #fff; border-color: #fff; color: var(--wp--preset--color--ink) !important; }
.mh-btn:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
/* Content buttons on white */
.mh-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 1.5rem; }
.mh-cta .mh-btn--primary { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink) !important; border-color: var(--wp--preset--color--accent); }
.mh-cta .mh-btn--primary:hover { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff !important; }
.mh-cta .mh-btn--ghost { color: var(--wp--preset--color--ink) !important; border-color: var(--wp--preset--color--ink); }
.mh-cta .mh-btn--ghost:hover { background: var(--wp--preset--color--ink); color: #fff !important; }
.mh-cta .mh-btn-label { display: inline !important; }
.mh-cta .mh-btn-short { display: none !important; }

/* Below ~1300px Call/Text shrink; on phones they are emoji-only 40px circles, one row. */
@media (max-width: 1300px) {
	.mh-head .mh-btn--ghost .mh-btn-label { display: none; }
	.mh-head .mh-btn--ghost .mh-btn-short { display: inline; }
}
@media (max-width: 760px) {
	.mh-head .mh-btn .mh-btn-label, .mh-head .mh-btn .mh-btn-short { display: none !important; }
	.mh-head .mh-btn { width: 40px; padding: 0 !important; justify-content: center; }
	.mh-head .mh-btn::before { margin-right: 0 !important; }
	.mh-lockup img { width: 150px; }
	.mh-actions { gap: .35rem; }
}

/* Hamburger + overlay */
.mh-head .wp-block-navigation__responsive-container-open { color: #fff; width: 40px; height: 40px; justify-content: center; }
.wp-block-navigation__responsive-container-open svg, .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--primary) !important; color: #fff !important; padding: 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open a { color: #fff; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: .45rem 0; font-size: 1.1rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0; padding-left: .75rem; }

/* Eyebrow above the H1 (search terms live here). */
.mh-eyebrow { color: var(--wp--preset--color--secondary); font-weight: 700; font-size: .875rem; letter-spacing: .04em; margin: 0 0 .4rem; }

/* Supplement cards (hub) */
.mh-cards { gap: 1rem; }
.mh-card { border: 1px solid var(--wp--preset--color--border); border-top: 4px solid var(--wp--preset--color--secondary); border-radius: 8px; padding: 1rem 1.15rem; background: #fff; }
.mh-card h3 { margin: 0 0 .35rem; font-size: 1.125rem; }
.mh-card p { margin: 0; font-size: .975rem; }

/* Callout (not-an-ER, coverage) */
.mh-note { border-left: 4px solid var(--wp--preset--color--secondary); background: var(--wp--preset--color--ground); padding: .9rem 1.1rem; margin: 1.5rem 0; }
.mh-note p { margin: 0; }
.mh-note p + p { margin-top: .5rem; }

/* FAQ */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--border); padding: .8rem 0; }
.wp-block-details summary { cursor: pointer; font-weight: 700; color: var(--wp--preset--color--primary); }


.wp-block-post-content p { text-align: left; }

/* Footer: three compact columns, no divider, no bottom row. */
.wp-site-blocks > footer { margin-block-start: 0 !important; }
.mh-foot .mh-foot-grid { display: grid; grid-template-columns: 1.25fr 1.05fr .95fr; gap: 2.5rem; align-items: start; }
.mh-foot p { margin: 0; }
.mh-foot a { color: #fff; }
.mh-foot .mh-foot-logo { display: inline-block; line-height: 0; margin-bottom: .85rem; }
.mh-foot .mh-foot-logo img { width: 240px; height: auto; }
.mh-foot .mh-foot-blurb { font-size: .9375rem; line-height: 1.55; margin-bottom: .75rem; }
.mh-foot .mh-foot-small, .mh-foot .mh-foot-copy { font-size: .8125rem; line-height: 1.5; color: #D8D8D8; }
.mh-foot .mh-foot-copy { margin-top: .75rem; }
.mh-foot h2.mh-foot-h { font-size: 1.2rem; font-weight: 700; margin: 0 0 .75rem; color: #fff; }
.mh-foot .mh-foot-line { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; line-height: 1.5; margin-bottom: .45rem; }
.mh-foot .mh-foot-line svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: .25rem; fill: currentColor; }
.mh-foot .mh-foot-legal { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.mh-foot .mh-foot-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.mh-foot .mh-foot-notice { font-size: .75rem; line-height: 1.5; color: #D8D8D8; margin-top: .5rem; }
.mh-foot .mh-foot-notice a { color: #D8D8D8; }
@media (max-width: 900px) { .mh-foot .mh-foot-grid { grid-template-columns: 1fr 1fr; } .mh-foot .mh-foot-col--act { grid-column: 1 / -1; } }
@media (max-width: 600px) { .mh-foot .mh-foot-grid { grid-template-columns: 1fr; gap: 1.75rem; } .mh-foot .mh-foot-logo img { width: 160px; } }

/* Shop button: cart emoji, drawn here because padda-button-standard only knows call/text/schedule. */
.mh-shop::before { content: "\1F6D2"; margin-right: .45em; font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; }
@media (max-width: 760px) { .mh-head .mh-shop::before { margin-right: 0 !important; } }
a.mh-card { display: block; color: inherit; text-decoration: none; }
a.mh-card:hover, a.mh-card:focus-visible { border-color: var(--wp--preset--color--ink); }
a.mh-card:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.mh-dose { font-weight: 700; }

/* Category / protocol / framework icons (emoji, one meaning each; see 02-content/taxonomy.py). */
.mh-ico { font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; margin-right: .45em; font-weight: 400; }
.mh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.mh-cat-h { scroll-margin-top: 6rem; margin-top: 2.25rem; }
.mh-tags { margin: .5rem 0 0 !important; display: flex; gap: .3rem; flex-wrap: wrap; }
.mh-tag { font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; font-size: 1rem; line-height: 1; padding: .25rem .35rem; border-radius: 6px; background: var(--wp--preset--color--ground); }
.mh-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 .5rem; }
.mh-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .85rem; border: 1px solid var(--wp--preset--color--border); border-radius: 999px; color: var(--wp--preset--color--ink); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.mh-jump a:hover, .mh-jump a:focus-visible { border-color: var(--wp--preset--color--ink); }
.mh-jump a:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
/* "Our frameworks": bracketed off from the lifestyle protocols (owner: "bracket and add own framework"). */
.mh-frame { margin: 2.5rem 0 1rem; padding: .25rem 1.5rem 1rem; border-left: 4px solid var(--wp--preset--color--ink); border-right: 4px solid var(--wp--preset--color--ink);
	background: linear-gradient(var(--wp--preset--color--ink), var(--wp--preset--color--ink)) left top / 1.25rem 4px no-repeat,
		linear-gradient(var(--wp--preset--color--ink), var(--wp--preset--color--ink)) right top / 1.25rem 4px no-repeat,
		linear-gradient(var(--wp--preset--color--ink), var(--wp--preset--color--ink)) left bottom / 1.25rem 4px no-repeat,
		linear-gradient(var(--wp--preset--color--ink), var(--wp--preset--color--ink)) right bottom / 1.25rem 4px no-repeat; }
.mh-frame > h2:first-child { margin-top: .75rem; }
@media (max-width: 600px) { .mh-frame { padding: .25rem 1rem .75rem; } }
/* Eat / don't eat lists: ✅ and ❌ as the bullet (Eat, Don't Eat sheet uses a green check and a red X). */
.mh-checks { list-style: none; padding-left: 0; margin: .5rem 0 1.25rem; }
.mh-checks li { display: flex; align-items: baseline; gap: .1rem; margin: .3rem 0; }
.mh-card .mh-checks { margin-bottom: .5rem; }
.mh-card ul.mh-checks li { font-size: .975rem; }
/* Watch: YouTube cross-links as poster cards that open YouTube (no iframe; local WebP poster, youtube-embed-standard). */
.mh-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.mh-vid { display: flex; flex-direction: column; gap: .35rem; color: var(--wp--preset--color--ink); text-decoration: none; }
.mh-vid-poster { position: relative; display: block; border-radius: 8px; overflow: hidden; line-height: 0; aspect-ratio: 16 / 9; background: var(--wp--preset--color--ground); }
.mh-vid-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-vid-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 40px; border-radius: 10px; background: rgba(17,17,17,.82); }
.mh-vid-play::after { content: ""; position: absolute; left: 22px; top: 11px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.mh-vid:hover .mh-vid-play, .mh-vid:focus-visible .mh-vid-play { background: #c00; }
.mh-vid:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; border-radius: 8px; }
.mh-vid-title { font-weight: 700; line-height: 1.35; }
.mh-vid-ch { font-size: .875rem; color: var(--wp--preset--color--muted); }
/* Sources (blog-references-structure-rule): numbered, small, wrap long DOIs on phones. */
.mh-sources { font-size: .9rem; line-height: 1.5; padding-left: 1.25rem; overflow-wrap: anywhere; }
.mh-sources li { margin: .4rem 0; }
/* Activity: Injury Experts exercise drawings and region icons (line art, ink + orange accent). */
.mh-ex-h { display: flex; align-items: center; gap: .6rem; color: var(--wp--preset--color--ink); --orange: #F78F20; }
.mh-ex-h img { width: 64px; height: auto; flex: 0 0 64px; }
.mh-ex img { width: 100%; height: auto; border-radius: 6px; margin-bottom: .5rem; }
.mh-ex p { font-size: .95rem; margin: .25rem 0 0; }
/* Kajabi drip sign-up (same wrapper pattern as measura.ai's .ms-kajabi-form). */
.mh-kajabi-form #kajabi-form { max-width: 640px; padding-top: 0 !important; }
.mh-kajabi-form #kajabi-form .kajabi-form__btn { background-color: #FCA72A !important; border-color: #FCA72A !important; color: #111 !important; font-weight: 600; border-radius: 999px; min-height: 40px; }
.mh-kajabi-form #kajabi-form .kajabi-form__btn:not(.kajabi-form__btn--disabled):hover { background-color: #111 !important; border-color: #111 !important; color: #fff !important; }
/* Kajabi injects a generic "Join the newsletter" title + subtitle; our own heading says what this is. */
.mh-kajabi-form .kajabi-form__title, .mh-kajabi-form .kajabi-form__subtitle { display: none !important; }
.mh-kajabi-form #kajabi-form .kajabi-form__content { padding-top: 0 !important; text-align: left; }
.mh-kajabi-form #kajabi-form form { margin-left: 0 !important; }

/* Our websites and videos (/our-websites-and-videos/): logo = link to the YouTube channel. */
.mh-net { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 18px 0; }
.mh-net-card { border: 1px solid rgba(0,0,0,.12); border-radius: 12px; padding: 16px; background: #fff; }
.mh-net-logo { display: flex; align-items: center; justify-content: center; height: 90px; margin-bottom: 10px; }
.mh-net-logo img { max-height: 90px; max-width: 100%; width: auto; }
.mh-net-name { font-size: 1.05rem; margin: 0 0 6px; } .mh-net-card p { margin: 0 0 8px; } .mh-net-site { font-size: .95rem; }

/* How to use naloxone (/how-to-use-naloxone/): drawn icons, numbered step cards, do / do-not lists. */
.mh-nx-ico { width: 56px; height: 56px; flex: 0 0 auto; }
.mh-nx-signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 12px 0 20px; }
.mh-nx-sign { display: flex; gap: 12px; align-items: center; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; padding: 12px; background: #fff; }
.mh-nx-sign p { margin: 0; }
.mh-nx-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 12px 0 20px; }
.mh-nx-step { position: relative; border: 2px solid #7a1f2b; border-radius: 14px; padding: 16px 14px 14px; background: #fff; }
.mh-nx-step h3 { margin: 6px 0 4px; font-size: 1.1rem; color: #7a1f2b; } .mh-nx-step p { margin: 0; }
.mh-nx-num { position: absolute; top: -12px; left: 12px; background: #7a1f2b; color: #fff; font-weight: 700; border-radius: 999px; width: 28px; height: 28px; display: grid; place-items: center; }
.mh-nx-rec-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 10px 0 20px; }
.mh-nx-rec { width: 260px; max-width: 100%; height: auto; }
.mh-nx-list { list-style: none; padding: 0; margin: 10px 0 20px; flex: 1; min-width: 240px; }
.mh-nx-list li { display: flex; gap: 10px; align-items: center; margin: 8px 0; } .mh-nx-list .mh-nx-ico { width: 30px; height: 30px; }

/* Testosterone injections at home (/testosterone-injections-at-home/): drawn pictures, step cards, two methods. */
.mh-tx-pic { width: 150px; max-width: 100%; height: auto; flex: 0 0 auto; }
.mh-tx-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 10px 0 20px; }
.mh-tx-row > p, .mh-tx-row > ul { flex: 1; min-width: 240px; margin: 0; }
.mh-tx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 10px 0 20px; }
.mh-tx-card, .mh-tx-method { border: 1px solid rgba(0,0,0,.12); border-radius: 12px; padding: 14px; background: #fff; }
.mh-tx-card h3, .mh-tx-method h3 { margin: 6px 0; color: #7a1f2b; font-size: 1.1rem; } .mh-tx-card p { margin: 0; }
.mh-tx-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 10px 0 20px; }
.mh-tx-pics { display: flex; gap: 10px; flex-wrap: wrap; } .mh-tx-pics .mh-tx-pic { width: 46%; min-width: 130px; }
.mh-tx-ol, .mh-tx-ul { margin: 8px 0 0; padding-left: 20px; } .mh-tx-ol li, .mh-tx-ul li { margin: 5px 0; }
.mh-tx-warn { border: 2px solid #7a1f2b; border-radius: 12px; padding: 14px; background: #fbf4f5; }
