/* TDEE Calculator website
   Same design language as the app: steel-thali whites, kohl ink, sabz green for actions,
   haldi (turmeric) for calories. BEM classes with the tc- prefix. No frameworks. */

@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url("../fonts/baloo2-700.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("../fonts/baloo2-800.woff2") format("woff2"); }

:root {
  --bg: #F3F4F1;
  --surface: #FFFFFF;
  --surface-2: #ECEEEA;
  --ink: #17202A;
  --muted: #56606B;
  --line: #DDE1DC;
  --green: #1E6B45;
  --green-2: #195C3B;
  --green-deep: #0F2E1F;
  --green-ink: #FFFFFF;
  --green-soft: #DCEFE3;
  --link: #1A5F3D;
  --haldi: #E2A10B;
  --haldi-soft: #FBEFCF;
  --mirch: #C8432E;
  --neel: #4058A8;
  --water: #2B87D1;
  --warn-bg: #FDF1D6;
  --warn-ink: #6F4500;
  --ok-bg: #E3F3E8;
  --ok-ink: #14532D;
  --rim: #E3E7E2;
  --shadow-1: 0 1px 2px rgba(23, 32, 42, .06);
  --shadow-2: 0 12px 32px rgba(23, 32, 42, .10);
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --font-head: "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --wrap: 1160px;
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light;
}

/* Dark: follows the phone/computer unless the visitor picked a theme (assets/js/theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101418; --surface: #181E24; --surface-2: #222A31; --ink: #E8ECEF; --muted: #A3ADB6; --line: #2A333B;
    --green: #5DBE8A; --green-2: #4FA779; --green-deep: #0B1F15; --green-ink: #062616; --green-soft: #1B3326; --link: #7FD3A5;
    --haldi: #F2B42C; --haldi-soft: #3A2E10; --mirch: #F0715A; --neel: #8EA2F0; --water: #5AB0F0;
    --warn-bg: #3A2B0B; --warn-ink: #FCD58A; --ok-bg: #16301F; --ok-ink: #A7E3BF; --rim: #2E3740;
    --shadow-1: none; --shadow-2: 0 12px 32px rgba(0, 0, 0, .45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101418; --surface: #181E24; --surface-2: #222A31; --ink: #E8ECEF; --muted: #A3ADB6; --line: #2A333B;
  --green: #5DBE8A; --green-2: #4FA779; --green-deep: #0B1F15; --green-ink: #062616; --green-soft: #1B3326; --link: #7FD3A5;
  --haldi: #F2B42C; --haldi-soft: #3A2E10; --mirch: #F0715A; --neel: #8EA2F0; --water: #5AB0F0;
  --warn-bg: #3A2B0B; --warn-ink: #FCD58A; --ok-bg: #16301F; --ok-ink: #A7E3BF; --rim: #2E3740;
  --shadow-1: none; --shadow-2: 0 12px 32px rgba(0, 0, 0, .45); color-scheme: dark;
}

/* ================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
li { margin: .3em 0; }
small { font-size: .85em; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.tc-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tc-num { font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.tc-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.tc-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--green); color: var(--green-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.tc-skip:focus { top: 8px; }
.tc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* ================================================================ buttons */
.tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.tc-btn:active { transform: translateY(1px); }
.tc-btn--primary { background: var(--green); color: var(--green-ink); box-shadow: 0 6px 16px rgba(30, 107, 69, .22); }
.tc-btn--primary:hover { background: var(--green-2); }
.tc-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.tc-btn--ghost:hover { background: var(--surface-2); }
.tc-btn--light { background: #fff; color: #10301F; }
.tc-btn--light:hover { background: #F3F4F1; }
.tc-btn--block { width: 100%; }
.tc-btn--email { white-space: normal; overflow-wrap: anywhere; padding-block: 10px; text-align: start; }
.tc-btn--danger { background: #B3261E; color: #fff; }
.tc-btn--danger:hover { filter: brightness(.95); }
.tc-btn .tc-icon { width: 18px; height: 18px; }
@media (max-width: 420px) { .tc-btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 8px; } }

/* Google Play badge */
.tc-play { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 14px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1px solid #5F6368; }
.tc-play:hover { background: #1b1b1b; }
.tc-play__logo { width: 26px; height: 26px; }
.tc-play__text { display: flex; flex-direction: column; font: 600 1.15rem/1.05 var(--font-ui); letter-spacing: .01em; }
.tc-play__text small { font-size: .62rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.tc-play--soon { cursor: default; opacity: .92; }

/* ================================================================ header */
.tc-header { position: sticky; top: 0; z-index: 50; background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.tc-header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.tc-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.tc-logo__mark { width: 36px; height: 36px; flex: none; }
.tc-logo__name { font: 800 1.3rem/1 var(--font-head); letter-spacing: -.01em; white-space: nowrap; }
.tc-burger, .tc-theme { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.tc-burger:hover, .tc-theme:hover { background: var(--surface-2); }
.tc-theme__sun { display: none; }
:root[data-theme="dark"] .tc-theme__sun { display: block; }
:root[data-theme="dark"] .tc-theme__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tc-theme__sun { display: block; }
  :root:not([data-theme="light"]) .tc-theme__moon { display: none; }
}

.tc-nav { display: none; }
.tc-nav__list { list-style: none; margin: 0; padding: 0; }
.tc-nav__link { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
  background: none; border: 0; cursor: pointer; width: 100%; text-align: start; }
.tc-nav__link:hover { background: var(--surface-2); }
.tc-nav__link--on { color: var(--green); }
.tc-nav__chev { width: 16px; height: 16px; transition: transform .2s; }
.tc-nav__toggle[aria-expanded="true"] .tc-nav__chev { transform: rotate(180deg); }
.tc-menu { list-style: none; margin: 0; padding: 4px 0 8px; display: none; }
.tc-nav__toggle[aria-expanded="true"] + .tc-menu { display: block; }
.tc-menu li { margin: 0; }
.tc-menu__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.tc-menu__link:hover, .tc-menu__link--on { background: var(--green-soft); }
.tc-menu__link b { display: block; font-weight: 700; line-height: 1.3; }
.tc-menu__link small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.tc-menu__icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--green-soft); color: var(--green); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tc-nav__cta { margin-top: 10px; }

/* phones: the menu opens as a panel under the header */
@media (max-width: 979px) {
  .tc-nav--open { display: block; position: fixed; inset: var(--header-h) 0 0; background: var(--surface); overflow-y: auto; padding: 12px var(--gutter) 32px; border-top: 1px solid var(--line); z-index: 49; }
  .tc-nav--open .tc-nav__cta { width: 100%; }
  .tc-logo__name { font-size: 1.15rem; }
}
@media (max-width: 359px) { .tc-logo__name span { display: none; } }

@media (min-width: 980px) {
  .tc-burger { display: none; }
  .tc-logo { margin-inline-end: 8px; }
  .tc-nav { display: flex; align-items: center; gap: 8px; flex: 1; }
  .tc-nav__list { display: flex; align-items: center; gap: 2px; margin-inline-end: auto; }
  .tc-nav__item--menu { position: relative; }
  .tc-nav__link { width: auto; padding: 8px 12px; font-size: .97rem; }
  .tc-menu { position: absolute; top: calc(100% + 10px); inset-inline-start: -8px; width: 640px; padding: 10px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-m); box-shadow: var(--shadow-2); grid-template-columns: 1fr 1fr; gap: 2px; }
  .tc-nav__toggle[aria-expanded="true"] + .tc-menu { display: grid; }
  .tc-nav__cta { margin: 0; min-height: 42px; padding: 0 18px; }
}

/* ================================================================ breadcrumbs */
.tc-crumbs { padding-top: 14px; }
.tc-crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9rem; color: var(--muted); }
.tc-crumbs__item { margin: 0; }
.tc-crumbs__item + .tc-crumbs__item::before { content: "›"; margin-inline-end: 6px; color: var(--muted); }
.tc-crumbs a { color: var(--muted); text-decoration: none; }
.tc-crumbs a:hover { color: var(--link); text-decoration: underline; }

/* ================================================================ hero + calculator layout */
.tc-hero { position: relative; padding: 26px 0 8px; }
.tc-hero--home { padding-top: 28px; }
.tc-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.tc-hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin-bottom: 14px; }
.tc-hero__points { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; }
.tc-hero__points li { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tc-hero__points .tc-icon { width: 18px; height: 18px; color: var(--green); }
.tc-byline { font-size: .92rem; color: var(--muted); margin: 14px 0 1.4em; max-width: 60ch; }
.tc-hero .tc-byline { margin-bottom: 0; }
.tc-byline a { color: var(--muted); }
@media (min-width: 1040px) {
  .tc-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; }
  .tc-hero__text { position: sticky; top: calc(var(--header-h) + 24px); padding-top: 18px; }
}

/* ================================================================ calculator card */
.tc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-2); }
.tc-calc { padding: 20px; }
@media (min-width: 560px) { .tc-calc { padding: 26px; } }
.tc-calc__title { font: 800 1.25rem/1.2 var(--font-head); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.tc-calc__title .tc-icon { color: var(--green); }
.tc-calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; }
.tc-calc__grid > .tc-field--wide { grid-column: 1 / -1; }
.tc-calc__actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tc-calc__note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

.tc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tc-field__label { font-weight: 650; font-size: .95rem; }
.tc-field__hint { font-size: .82rem; color: var(--muted); font-weight: 500; }
.tc-field__box { position: relative; display: flex; }
.tc-field__input, .tc-field__select { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 1.05rem; font-weight: 600; appearance: none; -webkit-appearance: none; }
.tc-field__input { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }
.tc-field__input::placeholder { color: var(--muted); opacity: .55; font-weight: 600; }
.tc-field__input:focus, .tc-field__select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
.tc-field__input[aria-invalid="true"] { border-color: var(--mirch); }
.tc-field__unit { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: .95rem; pointer-events: none; }
.tc-field__box .tc-field__input { padding-inline-end: 48px; }
.tc-field__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-field__select { padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356606B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.tc-field__error { color: var(--mirch); font-size: .85rem; font-weight: 600; min-height: 0; }
.tc-field__error:empty { display: none; }

/* segmented control (radio buttons) */
.tc-seg { display: flex; padding: 4px; border-radius: 14px; background: var(--surface-2); gap: 4px; border: 0; margin: 0; min-width: 0; }
.tc-seg__opt { flex: 1; position: relative; min-width: 0; }
.tc-seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tc-seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 4px 10px; border-radius: 10px; font-weight: 650; font-size: .95rem; color: var(--muted);
  text-align: center; line-height: 1.2; transition: background .15s, color .15s; }
.tc-seg__opt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.tc-seg__opt input:focus-visible + span { outline: 3px solid var(--haldi); outline-offset: 1px; }
.tc-seg-legend { font-weight: 650; font-size: .95rem; margin-bottom: 6px; padding: 0; }
fieldset.tc-field { border: 0; padding: 0; margin: 0; }

/* "more options" disclosure */
.tc-more { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 10px; }
.tc-more > summary { cursor: pointer; font-weight: 650; color: var(--link); list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.tc-more > summary::-webkit-details-marker { display: none; }
.tc-more > summary .tc-icon { width: 16px; height: 16px; transition: transform .2s; }
.tc-more[open] > summary .tc-icon { transform: rotate(180deg); }
.tc-more__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; margin-top: 10px; }

/* ================================================================ results */
.tc-results { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.tc-results:empty { display: none; }
.tc-res { padding: 20px; }
@media (min-width: 560px) { .tc-res { padding: 24px 26px; } }
.tc-res + .tc-res { border-top: 1px solid var(--line); }
.tc-res--cta { background: var(--green-soft); }
.tc-res__head { display: flex; align-items: center; gap: 18px; }
.tc-plate { width: 132px; height: 132px; flex: none; }
.tc-plate__track { stroke: var(--rim); }
.tc-plate__arc { stroke: var(--haldi); transition: stroke-dashoffset .6s cubic-bezier(.2, .8, .2, 1); }
.tc-plate__well { fill: var(--surface); }
.tc-plate__rim { fill: var(--surface-2); }
.tc-res__label { font-size: .98rem; font-weight: 650; color: var(--muted); margin: 0; }
.tc-res__big { font: 800 clamp(2.6rem, 2rem + 3vw, 3.4rem)/1 var(--font-head); letter-spacing: -.02em; margin: 2px 0; }
.tc-res__big small { font: 700 1rem var(--font-ui); color: var(--muted); letter-spacing: 0; margin-inline-start: 4px; }
.tc-res__sub { margin: 0; color: var(--muted); font-size: .95rem; }
.tc-res__sub b { color: var(--ink); }
.tc-res__title { font: 800 1.15rem/1.25 var(--font-head); margin: 0 0 10px; }
.tc-res__note { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
.tc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (min-width: 480px) { .tc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tc-stats:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-stat { padding: 12px 14px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.tc-stat__k { display: block; font-size: .82rem; font-weight: 650; color: var(--muted); }
.tc-stat__v { display: block; font: 800 1.35rem/1.25 var(--font-head); }
.tc-stat__v small { font: 600 .8rem var(--font-ui); color: var(--muted); margin-inline-start: 3px; }
.tc-alert { padding: 12px 14px; border-radius: var(--r-s); background: var(--warn-bg); color: var(--warn-ink); font-size: .92rem; margin: 12px 0 0; }
.tc-alert--ok { background: var(--ok-bg); color: var(--ok-ink); }

/* tables */
.tc-table-wrap { overflow-x: auto; margin: 0 0 1em; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
.tc-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.tc-table th, .tc-table td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.tc-table thead th { font-size: .88rem; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.tc-table tbody tr:last-child td, .tc-table tbody tr:last-child th { border-bottom: 0; }
.tc-table td.tc-table__num, .tc-table th.tc-table__num { text-align: end; font-family: var(--font-head); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tc-table tr.tc-table__on td, .tc-table tr.tc-table__on th { background: var(--green-soft); }
.tc-table tr.tc-table__low td { color: var(--mirch); }
.tc-table th .tc-note { font-weight: 500; }
.tc-prose .tc-table tbody th[scope="row"] { min-width: 8em; }   /* row labels stay readable on phones; the wrapper scrolls instead */
.tc-res .tc-table-wrap { background: var(--surface); }
@media (max-width: 480px) {
  .tc-table { font-size: .9rem; }
  .tc-table th, .tc-table td { padding: 9px 10px; }
}

/* macro bar */
.tc-macro { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin: 12px 0 14px; }
.tc-macro span { display: block; height: 100%; }
.tc-macro__p { background: var(--neel); }
.tc-macro__c { background: var(--haldi); }
.tc-macro__f { background: var(--mirch); }
.tc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.tc-dot--p { background: var(--neel); } .tc-dot--c { background: var(--haldi); } .tc-dot--f { background: var(--mirch); }
.tc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.tc-tab { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; min-height: 38px; padding: 0 14px; font-weight: 650; font-size: .9rem; cursor: pointer; color: var(--ink); }
.tc-tab[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* BMI / body-fat scale */
.tc-scale { position: relative; margin: 22px 0 8px; }
.tc-scale__bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; }
.tc-scale__mark { position: absolute; top: -8px; width: 4px; height: 28px; border-radius: 4px; background: var(--ink); transform: translateX(-50%); box-shadow: 0 0 0 3px var(--surface); }
.tc-scale__labels { position: relative; height: 1.4em; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.tc-scale__labels span { position: absolute; transform: translateX(-50%); }
.tc-scale__bar span { display: block; }
.tc-scale--1 { background: #6FA8DC; } .tc-scale--2 { background: #3FA36B; } .tc-scale--5 { background: #8CC46B; }
.tc-scale--3 { background: #E2A10B; } .tc-scale--4 { background: #D2593F; }

/* ================================================================ content */
.tc-section { padding-block: 36px; }
.tc-section--tight { padding-block: 20px; }
.tc-prose { max-width: 780px; }
.tc-prose--center { margin-inline: auto; }
.tc-prose h2:first-child { margin-top: 0; }
.tc-prose li::marker { color: var(--green); }
.tc-lead { font-size: 1.15rem; color: var(--muted); }
.tc-formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--haldi);
  border-radius: var(--r-s); padding: 12px 14px; margin: 0 0 1em; overflow-x: auto; white-space: pre-wrap; }
.tc-keyfacts { background: var(--green-soft); border-radius: var(--r-m); padding: 18px 22px; margin: 0 0 1.6em; }
.tc-keyfacts h2, .tc-keyfacts h3 { margin: 0 0 8px; font-size: 1.1rem; }
.tc-keyfacts ul { margin: 0; }
.tc-toc { border-inline-start: 3px solid var(--haldi); padding: 2px 0 2px 18px; margin: 0 0 1.8em; }
.tc-toc > summary { font-weight: 700; cursor: pointer; }
.tc-toc ol { margin: 10px 0 0; }
.tc-toc a { text-decoration: none; }
.tc-toc a:hover { text-decoration: underline; }
.tc-callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r-m); background: var(--haldi-soft); margin: 0 0 1.4em; }
.tc-callout .tc-icon { color: var(--warn-ink); margin-top: 3px; }
.tc-callout p:last-child { margin-bottom: 0; }
.tc-sources { font-size: .92rem; color: var(--muted); margin-top: 2.2em; }
.tc-sources h2 { color: var(--ink); }
.tc-sources ol { padding-inline-start: 1.4em; }
.tc-sources li { margin: .5em 0; }
.tc-note { font-size: .9rem; color: var(--muted); }

/* FAQ */
.tc-faq { max-width: 780px; }
.tc-faq__item { border-bottom: 1px solid var(--line); }
.tc-faq__item:first-of-type { border-top: 1px solid var(--line); }
.tc-faq__q { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.tc-faq__q::-webkit-details-marker { display: none; }
.tc-faq__q::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.tc-faq__item[open] .tc-faq__q::after { transform: translateY(-30%) rotate(225deg); }
.tc-faq__a { padding: 0 0 8px; color: var(--ink); }

/* related calculators */
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 28px; }
.tc-tile { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tc-tile:hover b { text-decoration: underline; text-underline-offset: 3px; }
.tc-tile b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.tc-tile small { color: var(--muted); font-size: .88rem; line-height: 1.4; display: block; }
.tc-tile .tc-menu__icon { width: 42px; height: 42px; padding: 10px; }

/* ================================================================ app band + phones */
.tc-appband { background: #14472F; color: #EAF5EE; padding: 52px 0; margin: 28px 0; overflow: hidden; }
.tc-appband h2 { color: #fff; margin-top: 0; }
.tc-appband a:not(.tc-btn):not(.tc-play) { color: #fff; }
.tc-appband__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.tc-appband__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.tc-appband__list li { display: flex; gap: 10px; margin: 0; }
.tc-appband__list .tc-icon { color: var(--haldi); margin-top: 3px; }
.tc-appband__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 900px) { .tc-appband__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; } }

.tc-phones { display: flex; justify-content: center; gap: 14px; }
.tc-phone { width: min(46%, 250px); flex: none; border-radius: 34px; padding: 9px; background: #0B1A12; box-shadow: 0 26px 60px rgba(0, 0, 0, .35), inset 0 0 0 1.5px #2C4A3A; }
.tc-phone img { border-radius: 26px; width: 100%; aspect-ratio: 360 / 760; object-fit: cover; object-position: top; background: #F3F4F1; }
.tc-phones .tc-phone:nth-child(2) { transform: translateY(28px); }
.tc-shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 22px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tc-shots figure { margin: 0; flex: none; width: 240px; scroll-snap-align: center; }
.tc-shots .tc-phone { width: 100%; }
.tc-shots figcaption { text-align: center; font-weight: 650; margin-top: 12px; font-size: .95rem; }

/* features */
.tc-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 30px 32px; }
.tc-feature { padding: 4px 0; }
.tc-feature h3 { margin: 12px 0 6px; font-size: 1.12rem; }
.tc-feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.tc-feature .tc-menu__icon { width: 44px; height: 44px; padding: 10px; }
.tc-langs { columns: 2 150px; column-gap: 20px; list-style: none; padding: 0; font-size: .95rem; }
.tc-langs li { break-inside: avoid; margin: 0 0 4px; }
.tc-langs span { color: var(--muted); font-size: .85rem; }

/* ================================================================ forms (contact) */
.tc-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px; }
.tc-form textarea { min-height: 160px; resize: vertical; font-family: var(--font-ui); font-size: 1rem; font-weight: 500; }
.tc-form .tc-field__input { font-family: var(--font-ui); font-size: 1rem; font-weight: 500; }
.tc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tc-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 900px) { .tc-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; } }
.tc-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }
.tc-box h2 { margin-top: 0; font-size: 1.25rem; }

/* ================================================================ footer */
.tc-footer { background: var(--green-deep); color: #C9D8CF; margin-top: 48px; padding: 44px 0 28px; font-size: .95rem; }
.tc-footer a { color: #E9F3EC; text-decoration: none; }
.tc-footer a:hover { text-decoration: underline; }
.tc-footer__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.tc-footer__brand p { margin: 14px 0 16px; max-width: 42ch; }
.tc-logo--footer { color: #fff; }
.tc-footer__title { font: 800 1rem var(--font-head); color: #fff; margin: 0 0 10px; letter-spacing: .02em; }
.tc-footer ul { list-style: none; padding: 0; margin: 0; }
.tc-footer li { margin: 0 0 8px; }
.tc-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; font-size: .88rem; }
.tc-footer__bottom p { margin: 0 0 6px; }
.tc-footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.tc-footer__note { color: #9FB4A7; }
.tc-play--footer { border-color: #3D5A49; }
@media (min-width: 560px) { .tc-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tc-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .tc-footer__top { grid-template-columns: 1.3fr 1fr 1.1fr .8fr 1fr; } .tc-footer__brand { grid-column: auto; } }

/* ================================================================ menu: "all calculators" row */
.tc-menu__all { border-top: 1px solid var(--line); margin-top: 4px !important; padding-top: 4px; }
.tc-menu__all .tc-menu__icon { background: var(--haldi-soft); color: var(--warn-ink); }
@media (min-width: 980px) { .tc-menu__all { grid-column: 1 / -1; } }

/* ================================================================ results: extras */
.tc-res__word { display: block; font-size: .62em; line-height: 1.1; letter-spacing: -.01em; }
.tc-steps { counter-reset: tc-step; list-style: none; padding: 0; margin: 0; }
.tc-steps li { counter-increment: tc-step; position: relative; padding-inline-start: 40px; margin: 0 0 12px; }
.tc-steps li::before { content: counter(tc-step); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  font: 800 .95rem/28px var(--font-head); text-align: center; }
.tc-why { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: .95rem; }
.tc-why li { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); }
.tc-link { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tc-link:hover { text-decoration-thickness: 2px; }
.tc-field__input[type="date"] { font-family: var(--font-ui); font-size: 1.05rem; padding-inline-end: 14px; }

/* ================================================================ guides (articles) */
.tc-article__head { padding-top: 18px; }
.tc-article__head > * { max-width: 780px; }
.tc-article__cat { margin: 0 0 8px; font-weight: 700; font-size: .95rem; }
.tc-article__cat a { color: var(--green); text-decoration: none; }
.tc-article__cat a:hover { text-decoration: underline; }
.tc-article__lead { font-size: 1.16rem; line-height: 1.6; max-width: 66ch; }
.tc-article__lead p:last-child { margin-bottom: 0; }
.tc-article__meta { font-size: .9rem; color: var(--muted); margin: 16px 0 26px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tc-article__meta a { color: var(--muted); }
.tc-article__body { padding-bottom: 12px; }
.tc-article__body > h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.tc-article__body h3 + p { margin-top: -.2em; }
.tc-article__body blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-inline-start: 3px solid var(--green); color: var(--muted); font-style: italic; }
.tc-article__calc { margin: 0 0 2em; }
.tc-article__calc .tc-card { box-shadow: var(--shadow-1); }
.tc-keyfacts__title { font-size: 1.1rem !important; margin: 0 0 8px !important; }
.tc-figure { margin: 0 0 1.4em; }
.tc-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }

/* box that sends readers to a calculator */
.tc-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 18px 20px; margin: 2em 0; border-radius: var(--r-m); background: var(--green-soft); }
.tc-cta__icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--surface); color: var(--green); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-cta__title { font: 800 1.12rem/1.25 var(--font-head); margin: 0; }
.tc-cta__text { margin: 0; color: var(--muted); font-size: .95rem; }
.tc-cta .tc-btn { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
@media (min-width: 640px) { .tc-cta { grid-template-columns: auto minmax(0, 1fr) auto; } .tc-cta .tc-btn { grid-column: auto; margin-top: 0; } }

/* author box */
.tc-author { display: flex; gap: 16px; align-items: flex-start; margin: 2.2em 0 1em; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.tc-author__mark { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font: 800 1.15rem/1 var(--font-head); letter-spacing: .02em; }
.tc-author__name { margin: 0 0 4px; font-weight: 700; }
.tc-author__bio { margin: 0; font-size: .92rem; color: var(--muted); }

/* guide cards */
.tc-acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 4px 28px; }
.tc-acard { display: flex; flex-direction: column; gap: 4px; padding: 16px 0 18px; border-top: 2px solid var(--line); text-decoration: none; color: var(--ink); }
.tc-acard:hover { border-top-color: var(--haldi); }
.tc-acard:hover .tc-acard__title { text-decoration: underline; text-underline-offset: 3px; }
.tc-acard__cat { font-size: .82rem; font-weight: 700; color: var(--green); }
.tc-acard__title { font: 800 1.12rem/1.3 var(--font-head); }
.tc-acard__text { font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* hubs: blog and all calculators */
.tc-hub__head { padding: 22px 0 6px; max-width: 820px; }
.tc-hub__nav ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tc-hub__nav li { margin: 0; }
.tc-hub__nav a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 650; font-size: .93rem; }
.tc-hub__nav a:hover { border-color: var(--green); color: var(--green); }
.tc-hub__group { padding-top: 10px; }
.tc-hub__group > h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.tc-hub__intro { color: var(--muted); max-width: 70ch; }
.tc-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); column-gap: 28px; }
.tc-tool { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tc-tool:hover b { text-decoration: underline; text-underline-offset: 3px; }
.tc-tool b { display: block; font-size: 1.04rem; margin-bottom: 2px; }
.tc-tool small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.tc-tool .tc-menu__icon { width: 44px; height: 44px; padding: 10px; }

/* embed: code to copy, and the bare page shown inside other sites */
.tc-code { position: relative; margin: 0 0 1em; }
.tc-code pre { margin: 0; padding: 16px 16px 54px; border-radius: var(--r-s); background: var(--green-deep); color: #E6F2EA; font: .88rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.tc-code .tc-btn { position: absolute; inset-inline-end: 10px; bottom: 10px; min-height: 38px; padding: 0 16px; font-size: .9rem; }
.tc-embed-demo { width: 100%; max-width: 640px; height: 900px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg); display: block; }
.tc-body--bare { background: var(--bg); }
.tc-body--bare .tc-main { padding: 10px; max-width: 640px; margin-inline: auto; }
.tc-body--bare .tc-card { box-shadow: none; }
.tc-body--bare h1 { font-size: 1.5rem; margin: 4px 0 10px; }
.tc-embed__by { font-size: .85rem; color: var(--muted); margin: 12px 0 4px; text-align: center; }

/* research library */
.tc-study { padding: 4px 0 6px 16px; border-inline-start: 3px solid var(--line); margin: 0 0 1.4em; }
.tc-study h3 { margin: 0 0 6px; font-size: 1.12rem; }
.tc-study__year { color: var(--muted); font-weight: 700; }
.tc-study p { margin: 0 0 6px; }
.tc-study__cite { font-size: .88rem; color: var(--muted); }
.tc-study__used { font-size: .88rem; font-weight: 650; }

/* ================================================================ misc */
.tc-404 { text-align: center; padding-block: 60px 20px; }
.tc-404__code { font: 800 5rem/1 var(--font-head); color: var(--haldi); margin: 0; }
.tc-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.tc-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 860px) { .tc-split { grid-template-columns: 1fr 1fr; gap: 28px; } }
.tc-center { text-align: center; }
.tc-mt { margin-top: 18px; }

@media print {
  .tc-header, .tc-footer, .tc-appband, .tc-crumbs, .tc-calc__actions, .tc-theme { display: none !important; }
  body { background: #fff; color: #000; }
  .tc-card, .tc-res { box-shadow: none; }
}

/* Section labels that look like headings but are not part of the page outline (footer columns, Sources, Keep reading, app band) */
.tc-h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin: 1.6em 0 .5em; }
.tc-appband .tc-h2 { color: #fff; margin-top: 0; }
.tc-sources .tc-h2 { color: var(--ink); }
.tc-keyfacts__title { font-family: var(--font-head); font-weight: 800; line-height: 1.2; }
