/* Calcs Health – clean medical-trust design. Brand green #00b800, readable dark green #007a00. */
:root {
	--cht-green: #00b800;
	--cht-green-dark: #007a00;
	--cht-green-deep: #005c00;
	--cht-mint: #f0fff0;
	--cht-mint-2: #e3f8e3;
	--cht-ink: #14261a;
	--cht-text: #2b3a30;
	--cht-muted: #5b6b60;
	--cht-line: #d9e6dc;
	--cht-white: #ffffff;
	--cht-c-under: #4f9de8;
	--cht-c-healthy: #00b800;
	--cht-c-over: #f2a413;
	--cht-c-obese: #e5533d;
	--cht-radius: 14px;
	--cht-shadow: 0 1px 2px rgba(20, 38, 26, .06), 0 8px 24px rgba(20, 38, 26, .06);
	--cht-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base inside GeneratePress ---------- */
body.cht-site {
	font-family: var(--cht-font);
	color: var(--cht-text);
	background: var(--cht-white);
	line-height: 1.7;
	font-size: 17px;
}
.cht-site .site-header { background: var(--cht-white); border-bottom: 1px solid var(--cht-line); }
.cht-site .main-title { font-weight: 800; letter-spacing: -.01em; }
.cht-site .main-title a, .cht-site .main-title a:hover { color: var(--cht-green-dark); }
.cht-site .site-description { display: none; }
.cht-site .main-navigation, .cht-site .main-navigation ul ul { background: transparent; }
.cht-site .main-navigation .main-nav ul li a { color: var(--cht-ink); font-weight: 600; }
.cht-site .main-navigation .main-nav ul li a:hover,
.cht-site .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--cht-green-dark); background: transparent; }
.cht-site .site-content { display: block; }
.cht-site .content-area { width: 100%; }
.cht-site .widget-area, .cht-site .sidebar { display: none; }
.cht-site .site-main > article, .cht-site .inside-article { background: transparent; padding: 0; margin: 0; box-shadow: none; }
.cht-site .entry-header, .cht-site .page-header { display: none; }
.cht-site .grid-container { max-width: none; }
.cht-site .site-info { display: none; }
.cht-site .site-footer { background: transparent; }

.cht-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.cht-page { max-width: 820px; margin: 0 auto; padding: 28px 20px 40px; }
.cht-page--wide { max-width: 980px; }
.cht-page h1, .cht-home h1 { color: var(--cht-ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.cht-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .4em; }
.cht-page h2 { color: var(--cht-ink); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.25; margin: 2.2em 0 .6em; scroll-margin-top: 80px; }
.cht-page h3 { color: var(--cht-ink); font-size: 1.15rem; margin: 1.6em 0 .4em; }
.cht-page p, .cht-page li { max-width: 72ch; }
.cht-page a, .cht-home a { color: var(--cht-green-dark); text-underline-offset: 3px; }
.cht-page a:hover, .cht-home a:hover { color: var(--cht-green-deep); }
.cht-page table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .97rem; display: block; overflow-x: auto; }
.cht-page th, .cht-page td { border: 1px solid var(--cht-line); padding: 10px 12px; text-align: left; }
.cht-page thead th, .cht-page tr:first-child th { background: var(--cht-mint); color: var(--cht-ink); }
.cht-page tbody tr:nth-child(even) td { background: #fafffa; }
.cht-muted { color: var(--cht-muted); }
.cht-answer { background: var(--cht-mint); border-left: 4px solid var(--cht-green); padding: 14px 18px; border-radius: 0 var(--cht-radius) var(--cht-radius) 0; margin: 1em 0 1.4em; font-size: 1.05rem; }
.cht-formula { background: var(--cht-ink); color: #eafbea; padding: 14px 18px; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .98rem; overflow-x: auto; margin: 1em 0; }
.cht-steps { counter-reset: step; list-style: none; padding: 0; margin: 1em 0; }
.cht-steps li { counter-increment: step; position: relative; padding: 4px 0 14px 48px; }
.cht-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--cht-green); color: #062b06; font-weight: 800; display: grid; place-items: center; }

/* ---------- Byline & disclaimer ---------- */
.cht-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--cht-muted); margin: 0 0 1.2em; padding-bottom: 12px; border-bottom: 1px solid var(--cht-line); }
.cht-byline strong { color: var(--cht-ink); }
.cht-disclaimer { background: #fffaf0; border: 1px solid #f1deb4; border-radius: 10px; padding: 12px 16px; font-size: .9rem; margin: 1.4em 0; color: #5a4a1d; }

/* ---------- Tool card ---------- */
.cht-tool { background: var(--cht-white); border: 1px solid var(--cht-line); border-radius: 20px; box-shadow: var(--cht-shadow); padding: clamp(18px, 3vw, 30px); margin: 0 0 2em; position: relative; overflow: hidden; }
.cht-tool::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--cht-green), #6bdc6b); }
.cht-tool__head h2 { margin: .2em 0 .2em !important; font-size: 1.5rem !important; }
.cht-tool__head p { margin: 0 0 1em; color: var(--cht-muted); }
.cht-seg { display: inline-flex; background: var(--cht-mint-2); border-radius: 999px; padding: 4px; margin-bottom: 1em; flex-wrap: wrap; }
.cht-seg button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--cht-green-deep); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.cht-seg button.is-active { background: var(--cht-white); color: var(--cht-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.cht-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.cht-field[hidden] { display: none; }
.cht-field label { display: block; font-weight: 700; color: var(--cht-ink); margin-bottom: 6px; font-size: .95rem; }
.cht-field small { display: block; color: var(--cht-muted); margin-top: 4px; font-size: .82rem; line-height: 1.4; }
.cht-field input[type="number"] { width: 100%; box-sizing: border-box; border: 1.5px solid var(--cht-line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 1.05rem; background: #fcfffc; color: var(--cht-ink); transition: border-color .2s, box-shadow .2s; }
.cht-field input:focus { outline: none; border-color: var(--cht-green); box-shadow: 0 0 0 4px rgba(0, 184, 0, .18); }
.cht-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cht-check { display: flex; gap: 10px; align-items: flex-start; margin: 1em 0 .4em; font-size: .92rem; color: var(--cht-text); cursor: pointer; }
.cht-check input { margin-top: 5px; accent-color: var(--cht-green); width: 18px; height: 18px; flex: none; }
.cht-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 1em; }
.cht-btn { border: 0; background: var(--cht-green); color: #052b05; font: inherit; font-weight: 800; padding: 13px 26px; border-radius: 12px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; box-shadow: 0 6px 16px rgba(0, 184, 0, .28); }
.cht-btn:hover { background: #09cc09; transform: translateY(-1px); }
.cht-btn:active { transform: translateY(0); }
.cht-btn--ghost { background: var(--cht-white); color: var(--cht-green-deep); border: 1.5px solid var(--cht-line); box-shadow: none; }
.cht-btn--ghost:hover { background: var(--cht-mint); }
.cht-error { color: #a32313; background: #fdeeea; border: 1px solid #f3c2ba; padding: 10px 14px; border-radius: 10px; margin-top: 12px; font-size: .94rem; }
.cht-error[hidden], .cht-result[hidden], .cht-copied[hidden] { display: none; }
.cht-privacy { font-size: .88rem; color: var(--cht-muted); margin: 1.2em 0 0; }

/* ---------- Result ---------- */
.cht-result { margin-top: 1.6em; padding: 20px; border-radius: 16px; background: var(--cht-mint); border: 1px solid var(--cht-mint-2); animation: cht-rise .45s ease-out both; }
.cht-result__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cht-result__label { display: block; font-size: .85rem; color: var(--cht-muted); font-weight: 600; }
.cht-result__value { font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 800; line-height: 1; color: var(--cht-ink); letter-spacing: -.03em; }
.cht-result__unit { color: var(--cht-muted); margin-left: 4px; font-weight: 600; }
.cht-badge { padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .95rem; color: #fff; background: var(--cht-green-dark); }
.cht-badge--under { background: #2f7fcf; }
.cht-badge--healthy { background: var(--cht-green-dark); }
.cht-badge--over { background: #b97800; }
.cht-badge--obese { background: #c63c27; }
.cht-scale { position: relative; margin: 22px 0 8px; height: 16px; }
.cht-scale__bar { height: 100%; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.cht-scale__marker { position: absolute; top: -6px; width: 6px; height: 28px; margin-left: -3px; border-radius: 3px; background: var(--cht-ink); box-shadow: 0 0 0 3px #fff; transition: left .7s cubic-bezier(.2, .8, .2, 1); }
.cht-scale__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--cht-muted); }
.cht-scale__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.d-under { background: var(--cht-c-under); } .d-healthy { background: var(--cht-c-healthy); } .d-over { background: var(--cht-c-over); } .d-obese { background: var(--cht-c-obese); }
.cht-result__text { margin: 1em 0; font-size: 1.02rem; }
.cht-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1em 0; }
.cht-facts div { background: #fff; border: 1px solid var(--cht-line); border-radius: 12px; padding: 12px 14px; }
.cht-facts dt { font-size: .82rem; color: var(--cht-muted); font-weight: 600; }
.cht-facts dd { margin: 4px 0 0; font-weight: 700; color: var(--cht-ink); }
.cht-next { background: #fff; border-left: 4px solid var(--cht-green); border-radius: 0 12px 12px 0; padding: 12px 16px; }
.cht-next h3 { margin: 0 0 4px !important; font-size: 1rem !important; }
.cht-next p { margin: 0; }
.cht-copied { color: var(--cht-green-dark); font-weight: 700; }

/* ---------- Home ---------- */
.cht-hero { background: radial-gradient(1200px 400px at 85% -10%, #d8f7d8 0, transparent 60%), var(--cht-mint); padding: clamp(36px, 7vw, 76px) 0 clamp(28px, 5vw, 52px); border-bottom: 1px solid var(--cht-mint-2); }
.cht-hero .cht-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.cht-eyebrow { color: var(--cht-green-dark); font-weight: 700; margin: 0 0 8px; }
.cht-home h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin: 0 0 .35em; }
.cht-hero__lead { font-size: 1.12rem; max-width: 56ch; color: var(--cht-text); }
.cht-search input { width: 100%; max-width: 460px; box-sizing: border-box; border: 1.5px solid var(--cht-line); background: #fff; border-radius: 14px; padding: 15px 18px; font: inherit; box-shadow: var(--cht-shadow); }
.cht-search input:focus { outline: none; border-color: var(--cht-green); box-shadow: 0 0 0 4px rgba(0, 184, 0, .18); }
.cht-trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: var(--cht-green-deep); font-weight: 600; }
.cht-trust li { margin: 0; }

/* The one memorable moment: a BMI scale that glides to a healthy reading on load. */
.cht-hero__demo { background: #fff; border: 1px solid var(--cht-line); border-radius: 22px; padding: 22px; box-shadow: var(--cht-shadow); }
.cht-hero__demo b { display: block; font-size: .85rem; color: var(--cht-muted); font-weight: 600; }
.cht-hero__num { font-size: 3.2rem; font-weight: 800; color: var(--cht-ink); line-height: 1.05; letter-spacing: -.03em; }
.cht-hero__num span { font-size: 1rem; color: var(--cht-muted); font-weight: 600; margin-left: 6px; }
.cht-demo-bar { position: relative; height: 16px; border-radius: 999px; margin: 20px 0 10px; background: linear-gradient(to right, var(--cht-c-under) 0 14%, var(--cht-c-healthy) 14% 40%, var(--cht-c-over) 40% 60%, var(--cht-c-obese) 60% 100%); }
.cht-demo-bar i { position: absolute; top: -6px; left: 0; width: 6px; height: 28px; margin-left: -3px; border-radius: 3px; background: var(--cht-ink); box-shadow: 0 0 0 3px #fff; animation: cht-glide 1.6s .3s cubic-bezier(.2, .8, .2, 1) forwards; }
.cht-demo-tag { display: inline-block; background: var(--cht-green-dark); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; opacity: 0; animation: cht-fade .5s 1.7s ease-out forwards; }
.cht-hero__demo p { margin: 12px 0 0; font-size: .85rem; color: var(--cht-muted); }

.cht-section { padding: 44px 20px; }
.cht-home h2 { color: var(--cht-ink); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .3em; letter-spacing: -.01em; }
.cht-home h3 { color: var(--cht-ink); font-size: 1.1rem; margin: 1.6em 0 .6em; }
.cht-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cht-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--cht-line); border-radius: var(--cht-radius); padding: 16px; text-decoration: none !important; color: var(--cht-text) !important; position: relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cht-card[hidden] { display: none; }
a.cht-card:hover { transform: translateY(-3px); box-shadow: var(--cht-shadow); border-color: var(--cht-green); }
.cht-card__icon { font-size: 1.6rem; width: 46px; height: 46px; border-radius: 12px; background: var(--cht-mint); display: grid; place-items: center; flex: none; }
.cht-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cht-card__body strong { color: var(--cht-ink); }
.cht-card__body span { font-size: .9rem; color: var(--cht-muted); line-height: 1.45; }
.cht-card { flex-wrap: wrap; }
.cht-card__body { flex: 1 1 0; }
.cht-card__tag { flex: 0 0 100%; padding-left: 60px; font-size: .82rem; font-weight: 700; color: var(--cht-green-dark); }
.cht-card.is-soon { background: #fafcfa; }
.cht-card.is-soon .cht-card__tag { color: var(--cht-muted); font-weight: 600; }
.cht-card.is-soon .cht-card__icon { filter: grayscale(.6); opacity: .8; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.cht-band { background: var(--cht-ink); color: #e5f6e5; padding: 40px 0; }
.cht-band h2 { color: #fff !important; }
.cht-how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; list-style: none; counter-reset: s; margin: 18px 0 0; }
.cht-how li { counter-increment: s; background: rgba(255, 255, 255, .06); border-radius: var(--cht-radius); padding: 16px 18px; }
.cht-how li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cht-green); color: #052b05; font-weight: 800; margin-bottom: 8px; }
.cht-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 14px 0 20px; }
.cht-pillars div { border-top: 3px solid var(--cht-green); padding-top: 4px; }
.cht-noresult { color: var(--cht-muted); }

/* ---------- Team / author cards ---------- */
.cht-team { display: grid; gap: 18px; margin: 1.2em 0; }
.cht-person { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 18px; background: linear-gradient(180deg, #fff, var(--cht-mint)); border: 1px solid var(--cht-line); box-shadow: var(--cht-shadow); position: relative; overflow: hidden; }
.cht-person::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cht-green); }
.cht-avatar { flex: none; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: #052b05; background: conic-gradient(from 200deg, #00b800, #8ef08e, #00b800); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--cht-line); }
.cht-person h3 { margin: 0 0 2px !important; font-size: 1.25rem !important; }
.cht-role { display: inline-block; background: var(--cht-green-dark); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-bottom: 8px; }
.cht-person p { margin: 6px 0; }
.cht-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.cht-tags li { margin: 0; background: #fff; border: 1px solid var(--cht-line); border-radius: 999px; padding: 3px 12px; font-size: .82rem; color: var(--cht-green-deep); font-weight: 600; }

/* ---------- Related, footer ---------- */
.cht-related { margin-top: 2.4em; padding-top: 1em; border-top: 1px solid var(--cht-line); }
.cht-related h2 { margin-top: .6em !important; }
.cht-related__grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cht-related__item { background: var(--cht-mint); border: 1px solid var(--cht-mint-2); padding: 10px 16px; border-radius: 999px; text-decoration: none !important; font-weight: 700; transition: background .2s, transform .2s; }
.cht-related__item:hover { background: var(--cht-mint-2); transform: translateY(-2px); }
.cht-footer-band { background: var(--cht-mint); border-top: 1px solid var(--cht-mint-2); padding: 26px 0; margin-top: 30px; font-size: .9rem; color: var(--cht-muted); text-align: center; }
.cht-footer-band nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 10px; }
.cht-footer-band a { color: var(--cht-green-dark); font-weight: 600; }
.cht-faq details { border: 1px solid var(--cht-line); border-radius: 12px; padding: 4px 16px; margin: 10px 0; background: #fff; }
.cht-faq summary { cursor: pointer; font-weight: 700; color: var(--cht-ink); padding: 10px 0; }
.cht-faq details[open] { background: var(--cht-mint); border-color: var(--cht-mint-2); }
.cht-faq details p { margin-top: 0; }
.cht-sources li { margin-bottom: 6px; }

/* ---------- Keyframes ---------- */
@keyframes cht-glide { to { left: 31.6%; } }
@keyframes cht-fade { to { opacity: 1; } }
@keyframes cht-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Accessibility ---------- */
.cht-site a:focus-visible, .cht-site button:focus-visible, .cht-site summary:focus-visible { outline: 3px solid var(--cht-green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.cht-demo-bar i { animation: none; left: 31.6%; }
	.cht-demo-tag { animation: none; opacity: 1; }
	.cht-result { animation: none; }
	.cht-scale__marker, .cht-card, .cht-btn, .cht-related__item { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
	body.cht-site { font-size: 16.5px; }
	.cht-hero .cht-wrap { grid-template-columns: 1fr; }
	.cht-grid, .cht-facts, .cht-how ol, .cht-pillars { grid-template-columns: 1fr; }
	.cht-person { flex-direction: column; }
	.cht-btn { width: 100%; }
	.cht-actions .cht-btn--ghost { width: auto; }
}
