:root {
  --ink: #12201d;
  --muted: #65736f;
  --paper: #f7f8f4;
  --card: #ffffff;
  --green: #0c6b58;
  --green-2: #0f8069;
  --mint: #dff2ea;
  --line: #dfe5e1;
  --warm: #f2b95f;
  --shadow: 0 22px 55px rgba(29, 55, 48, .12);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Segoe UI", system-ui, sans-serif; line-height: 1.55; }
button, input, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; background: var(--ink); color: white; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { height: 78px; max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--green); color: white; border-radius: 10px 10px 10px 3px; font-size: 18px; }
nav { display: flex; gap: 34px; }
nav a { color: #40514c; text-decoration: none; font-size: 14px; font-weight: 600; }
nav a:hover { color: var(--green); }
.nav-search { border: 1px solid #c9d3cf; background: transparent; color: var(--green); border-radius: 999px; padding: 10px 17px; font-weight: 700; font-size: 13px; }

.hero { position: relative; overflow: hidden; min-height: 590px; background: #e8f3ed; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 70px; padding: 72px max(32px, calc((100vw - 1216px) / 2)); }
.hero::before { content: ""; position: absolute; width: 500px; height: 500px; right: -100px; top: -190px; background: rgba(255,255,255,.58); border-radius: 50%; }
.hero::after { content: ""; position: absolute; width: 250px; height: 250px; left: -100px; bottom: -130px; border: 70px solid rgba(12,107,88,.05); border-radius: 50%; }
.hero-copy, .hero-card { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 16px; color: var(--green); text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 800; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero .eyebrow span { width: 18px; height: 2px; background: var(--green); }
h1, h2, h3 { font-family: Inter, "Segoe UI", system-ui, sans-serif; }
h1 { margin: 0; font-size: clamp(48px, 6vw, 78px); line-height: 1.02; letter-spacing: -.065em; }
h1 em { color: var(--green); font-style: normal; }
.hero-text { max-width: 580px; color: #52635e; font-size: 18px; margin: 24px 0 28px; }
.search-box { max-width: 610px; height: 62px; padding: 0 15px 0 19px; display: flex; align-items: center; gap: 13px; background: white; border: 1px solid rgba(12,107,88,.18); border-radius: 15px; box-shadow: 0 14px 40px rgba(31, 80, 67, .11); }
.search-box:focus-within { outline: 3px solid rgba(12,107,88,.15); border-color: var(--green); }
.search-box svg { width: 22px; fill: none; stroke: var(--green); stroke-width: 1.8; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #8a9793; }
kbd { border: 1px solid #d5ddda; border-bottom-width: 2px; background: #f5f7f5; color: #6c7a76; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.hero-meta { display: flex; gap: 26px; margin-top: 24px; color: #61716c; font-size: 12px; }
.hero-meta strong { color: var(--ink); margin-right: 3px; }
.hero-card { display: flex; justify-content: center; }
.mini-window { width: min(100%, 385px); padding: 25px; transform: rotate(2.2deg); border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.86); backdrop-filter: blur(10px); border-radius: 26px; box-shadow: var(--shadow); }
.mini-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; font-weight: 800; }
.status-dot { padding: 4px 9px; color: var(--green); background: var(--mint); border-radius: 99px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.mini-label { color: var(--muted); font-size: 12px; margin: 0; }
.mini-value { font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 30px; font-weight: 800; margin: 4px 0 12px; letter-spacing: -.03em; }
.mini-slider { height: 5px; background: #dfe7e3; border-radius: 10px; margin-bottom: 26px; }
.mini-slider span { display: block; width: 65%; height: 100%; background: var(--green); border-radius: inherit; position: relative; }
.mini-slider span::after { content: ""; position: absolute; right: -6px; top: -5px; width: 15px; height: 15px; background: white; border: 4px solid var(--green); border-radius: 50%; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-grid span { display: flex; flex-direction: column; padding: 12px; color: var(--muted); background: #f5f7f5; border-radius: 11px; font-size: 11px; }
.mini-grid strong { color: var(--ink); font-size: 14px; margin-top: 3px; }
.mini-result { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 12px; margin-top: 16px; padding: 17px; color: white; background: var(--green); border-radius: 15px; }
.mini-result span { grid-column: 1 / -1; color: #c9eee4; font-size: 11px; }
.mini-result strong { font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 27px; }
.mini-result small { padding-bottom: 5px; color: #c9eee4; }

.directory { max-width: 1280px; margin: 0 auto; padding: 94px 32px 84px; }
.section-heading { display: grid; grid-template-columns: 1fr 390px; align-items: end; gap: 50px; margin-bottom: 35px; }
.section-heading h2, .why h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; letter-spacing: -.045em; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); }
.filter-bar { display: flex; gap: 9px; overflow-x: auto; padding: 4px 0 24px; scrollbar-width: none; }
.filter { flex: none; border: 1px solid var(--line); background: white; color: #51625d; border-radius: 99px; padding: 9px 16px; font-size: 13px; font-weight: 700; }
.filter:hover, .filter.active { border-color: var(--green); background: var(--green); color: white; }
.calculator-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.calculator-card { min-height: 195px; padding: 21px; display: flex; flex-direction: column; text-align: left; text-decoration: none; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 17px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.calculator-card:hover { transform: translateY(-4px); border-color: #b8cbc4; box-shadow: 0 15px 35px rgba(34, 70, 60, .09); }
.calculator-card:focus-visible { outline: 3px solid rgba(12,107,88,.24); outline-offset: 3px; }
.calculator-card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--green); background: var(--mint); border-radius: 12px; font-size: 19px; font-weight: 800; }
.card-arrow { color: #9aa6a2; font-size: 20px; transition: transform .18s; }
.calculator-card:hover .card-arrow { transform: translateX(3px); color: var(--green); }
.calculator-card h3 { font-size: 17px; margin: 23px 0 5px; letter-spacing: -.02em; }
.calculator-card p { margin: 0; color: var(--muted); font-size: 13px; }
.card-category { margin-top: auto !important; padding-top: 15px; color: var(--green) !important; text-transform: uppercase; letter-spacing: .08em; font-size: 9px !important; font-weight: 800; }
.empty-state { padding: 36px; text-align: center; color: var(--muted); background: white; border: 1px dashed #bdc9c5; border-radius: var(--radius); }
.ad-slot { min-height: 86px; margin-top: 28px; display: grid; place-items: center; border: 1px dashed #c6cfcc; color: #8a9692; background: #f1f3ef; border-radius: 13px; font-size: 11px; letter-spacing: .04em; text-align: center; padding: 14px; }

.why { background: #102c26; color: white; padding: 90px max(32px, calc((100vw - 1216px) / 2)); display: grid; grid-template-columns: .9fr 1.6fr; gap: 90px; }
.why .eyebrow { color: #75cfb5; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.principles article { border-top: 1px solid rgba(255,255,255,.2); padding-top: 20px; }
.principles span { color: #75cfb5; font-size: 12px; font-weight: 800; }
.principles h3 { margin: 24px 0 10px; font-size: 17px; }
.principles p { margin: 0; color: #b8cbc5; font-size: 13px; }

footer { min-height: 105px; padding: 25px max(32px, calc((100vw - 1216px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: white; }
.brand-footer { font-size: 17px; }
.brand-footer .brand-mark { width: 29px; height: 29px; font-size: 14px; }
footer p { color: var(--muted); font-size: 12px; }
footer div { display: flex; gap: 22px; }
footer div a { color: #53625e; font-size: 12px; text-decoration: none; }

dialog { width: min(92vw, 620px); max-height: 92vh; padding: 0; border: 0; border-radius: 24px; box-shadow: 0 40px 100px rgba(7, 33, 27, .3); }
dialog::backdrop { background: rgba(8, 27, 23, .68); backdrop-filter: blur(4px); }
.dialog-shell { position: relative; padding: 30px; overflow-y: auto; max-height: 92vh; }
.dialog-close { position: absolute; right: 18px; top: 16px; width: 36px; height: 36px; border: 0; color: #65736f; background: #eef1ef; border-radius: 50%; font-size: 24px; line-height: 1; }
.dialog-head { display: flex; gap: 16px; padding-right: 34px; margin-bottom: 24px; }
.dialog-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; color: var(--green); background: var(--mint); border-radius: 14px; font-size: 20px; font-weight: 800; }
.dialog-head p { margin: 0; color: var(--muted); font-size: 13px; }
#dialog-category { color: var(--green); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 800; }
.dialog-head h2 { margin: 2px 0 5px; font-size: 27px; letter-spacing: -.035em; }
#calculator-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; background: #f4f6f3; border-radius: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #465650; font-size: 12px; font-weight: 700; }
.field input, .field select { width: 100%; height: 45px; padding: 0 12px; border: 1px solid #ccd6d2; outline: 0; background: white; color: var(--ink); border-radius: 9px; }
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(12,107,88,.1); }
.calculate-button { grid-column: 1 / -1; height: 48px; border: 0; background: var(--green); color: white; border-radius: 10px; font-weight: 800; }
.calculate-button:hover { background: var(--green-2); }
.result-panel { display: none; margin-top: 15px; padding: 20px; color: white; background: var(--green); border-radius: 15px; }
.result-panel.visible { display: block; }
.result-panel .result-label { display: block; color: #c6ebe1; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.result-panel .result-main { display: block; font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 34px; line-height: 1.2; font-weight: 800; letter-spacing: -.04em; }
.result-panel .result-detail { display: block; margin-top: 7px; color: #d7eee8; font-size: 12px; }
.bmi-status { display: inline-flex; align-items: center; margin-top: 10px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.14); border-radius: 999px; font-size: 13px; font-weight: 800; }
.bmi-status::before { content: ""; width: 7px; height: 7px; margin-right: 7px; background: #fff; border-radius: 50%; }
.bmi-underweight::before { background: #ffd17d; }
.bmi-healthy::before { background: #8ff0c7; }
.bmi-overweight::before { background: #ffc36b; }
.bmi-obese::before { background: #ff9c90; }
.calculator-note { margin: 14px 3px 0; color: var(--muted); font-size: 11px; }
.calculator-note a { color: var(--green); }
.error { color: #ffc9c0; }

.calculator-page { background: #f3f6f2; }
.calculator-header { background: white; border-bottom: 1px solid var(--line); }
.calculator-header .site-header { height: 72px; }
.calculator-header .nav-search { text-decoration: none; }
.calculator-main { max-width: 1160px; margin: 0 auto; padding: 34px 32px 90px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--green); text-decoration: none; font-weight: 700; }
.calculator-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 54px; align-items: start; }
.calculator-intro { padding: 30px 0; }
.calculator-intro .calculator-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 24px; color: var(--green); background: var(--mint); border-radius: 15px; font-size: 22px; font-weight: 800; }
.calculator-intro h1 { max-width: 680px; font-size: clamp(44px, 6vw, 70px); }
.calculator-intro h1 em { color: var(--green); font-style: normal; }
.calculator-lead { max-width: 650px; margin: 22px 0 0; color: #52635e; font-size: 18px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 27px 0 0; padding: 0; color: var(--muted); font-size: 12px; list-style: none; }
.trust-line li::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 900; }
.calculator-box { padding: 25px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 22px 55px rgba(29,55,48,.09); }
.calculator-box h2 { margin: 0 0 17px; font-size: 22px; letter-spacing: -.025em; }
.calculator-box #calculator-form { padding: 19px; }
.calculator-box .result-panel { scroll-margin-top: 20px; }
.calculator-box .result-panel:focus { outline: 3px solid rgba(12,107,88,.18); outline-offset: 3px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 58px; }
.info-card { padding: 27px; background: white; border: 1px solid var(--line); border-radius: 17px; }
.info-card h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.025em; }
.info-card p, .info-card li { color: #52615d; font-size: 14px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card ol { margin: 0; padding-left: 20px; }
.related { margin-top: 54px; }
.related-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.related h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.related-head > a { color: var(--green); text-decoration: none; font-size: 13px; font-weight: 800; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { display: flex; justify-content: space-between; align-items: center; min-height: 105px; padding: 20px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 15px; text-decoration: none; font-weight: 800; }
.related-card:hover { border-color: #b8cbc4; box-shadow: 0 10px 28px rgba(34,70,60,.07); }
.related-card span:last-child { color: var(--green); font-size: 20px; }
.page-ad { margin-top: 50px; }

.legal-page { min-height: 100vh; background: #f3f6f2; }
.legal-main { max-width: 820px; margin: 0 auto; padding: 70px 28px 100px; }
.legal-main h1 { font-size: clamp(42px,6vw,64px); }
.legal-lead { color: var(--muted); font-size: 18px; }
.legal-card { margin-top: 35px; padding: 38px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 15px 45px rgba(33,63,55,.07); }
.legal-card h2 { margin-top: 32px; font-size: 21px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: #52615d; }
.back-link { display: inline-flex; margin-top: 25px; color: var(--green); font-weight: 700; text-decoration: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 75px; padding-bottom: 75px; }
  .hero-card { display: none; }
  .calculator-grid { grid-template-columns: repeat(3,1fr); }
  .why { grid-template-columns: 1fr; gap: 48px; }
  .calculator-hero { grid-template-columns: 1fr; gap: 24px; }
  .calculator-intro { padding-bottom: 0; }
  .content-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-header { height: 68px; padding: 0 20px; }
  nav { display: none; }
  .nav-search { padding: 8px 12px; font-size: 11px; }
  .hero { min-height: auto; padding: 58px 20px 64px; }
  h1 { font-size: clamp(42px,13vw,60px); }
  .hero-text { font-size: 16px; }
  .hero-meta { gap: 15px; flex-wrap: wrap; }
  .directory { padding: 66px 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }
  .section-heading > p { font-size: 14px; }
  .calculator-grid { grid-template-columns: repeat(2,1fr); }
  .calculator-card { min-height: 180px; }
  .why { padding: 66px 20px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  footer { align-items: flex-start; flex-direction: column; padding: 30px 20px; gap: 10px; }
  footer p { margin: 0; }
  .dialog-shell { padding: 24px 18px; }
  #calculator-form { grid-template-columns: 1fr; }
  .field.full, .calculate-button { grid-column: 1; }
  .calculator-main { padding: 24px 20px 66px; }
  .calculator-header .site-header { height: 68px; }
  .calculator-intro { padding-top: 12px; }
  .calculator-intro h1 { font-size: clamp(40px, 13vw, 56px); }
  .calculator-lead { font-size: 16px; }
  .calculator-box { padding: 17px; }
  .content-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-head { align-items: start; flex-direction: column; }
}
@media (max-width: 460px) {
  .calculator-grid { grid-template-columns: 1fr; }
  .calculator-card { min-height: 154px; }
  .search-box { height: 58px; }
  kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Guide content cards: FAQ headings and lists */
.info-card h3 { margin: 16px 0 4px; font-size: 15px; letter-spacing: -.01em; }
.info-card h3:first-of-type { margin-top: 0; }
.info-card ul { margin: 0 0 12px; padding-left: 20px; }
.info-card ul li { margin-bottom: 4px; }
.info-card p + p, .info-card ul + p { margin-top: 10px; }
