/* BMIChart.app – components for the 2026-10-06 pages (charts hub, calculators, embed, printables).
   Uses only the existing tokens; loaded after grey.css. */
.example{font-size:16px;color:var(--ink-soft);margin:2px 0 6px}
.result[data-cat]:not(.empty) .example{display:none}
.chart-fig{margin:18px 0 12px}
.chart-fig img{display:block;width:100%;height:auto;border-radius:var(--radius)}
.chart-fig figcaption{margin-top:8px}
.sub-cm{color:var(--ink-soft);font-weight:400;font-size:.92em}
.callout{padding:16px 20px;margin:18px 0}
.callout p{margin:0}
.prose.wide > .callout,.prose.wide > .calc,.prose.wide > .embed-box,.prose.wide > ul,.prose.wide > ol,.prose.wide > .faq-block{max-width:740px}
td.wrap{white-space:normal;min-width:180px}
.cats td.wrap{line-height:1.45}
.sc-card{padding:10px 14px}
.sc .tk{font:500 15px var(--font);fill:var(--ink-soft)}
.sc .sc-l{font:700 15px var(--font);fill:var(--t-lime,var(--ink))}
.sc .sc-l2{font:600 13px var(--font);fill:var(--t-orange,var(--ink-soft))}
.sc .sc-br{stroke:var(--t-lime,var(--ink))}
.sc .sc-dash{stroke:var(--t-orange,var(--ink))}
@media (max-width:620px){.sc .tk{font-size:21px}.sc .sc-l{font-size:21px}.sc .sc-l2{font-size:19px}}
/* calculators */
.calc{padding:20px 22px;margin:22px 0}
.calc h2{margin-top:0}
.calc-form{display:flex;flex-wrap:wrap;gap:14px 18px;align-items:flex-end;margin:6px 0 4px}
.calc-row{display:flex;flex-wrap:wrap;gap:12px}
.calc-row .field{width:150px}
.calc-row .inp input{padding-right:40px}
.calc-out{font-size:19px;margin:14px 0 8px;min-height:1.6em}
.calc-out b{color:var(--t-lime,var(--ink));font-weight:700}
.calc-out.warn b{color:var(--t-orange,var(--ink))}
.calc-out.high b{color:var(--t-pink,var(--ink))}
.calc-out.low b{color:var(--t-link,var(--ink))}
.calc .err-line{color:var(--err,#b3261e)}
/* embed code */
.embed-box{padding:20px 22px;margin:26px 0}
.embed-box h2{margin-top:0}
pre.code{background:var(--tile,#283043);color:#f4f7fb;border-radius:12px;padding:14px 16px;margin:0 0 12px;white-space:pre-wrap;word-break:break-all;overflow-wrap:anywhere;font:14px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
button.btn{border:0;font:inherit;font-weight:700;cursor:pointer}
.copy-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
/* related charts hub */
.related{margin:30px 0 10px}
.rel-list{list-style:none;padding:0;margin:0;display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.rel-list li{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:#fff}
.rel-list a{font-weight:650}
.rel-list span{display:block;font-size:15px;color:var(--ink-soft);margin-top:2px}
/* printable PDFs */
.pdf-grid{list-style:none;padding:0;margin:20px 0;display:grid;gap:18px;grid-template-columns:repeat(auto-fill,minmax(min(100%,400px),1fr))}
.prose.wide > .pdf-grid{max-width:none}
.pdf-card{padding:14px;margin:0}
.pdf-card img{display:block;width:100%;height:auto;border-radius:8px;background:#fff}
.pdf-card p{margin:10px 0 0}
.pdf-t{font-size:17px}
.reviewed{margin-top:14px}
ol.plain{padding-left:1.3em}
ol.plain li{margin:0 0 .5em}
.f-charts{font-size:14.5px}
/* /embed/ (framed on other sites) */
.embed-page{background:#fff}
.embed-wrap{max-width:820px;margin:0 auto;padding:10px 12px 12px}
.embed-h{font-size:22px!important;line-height:1.2;margin:0 0 6px!important;letter-spacing:-.01em!important}
.embed-wrap .chart-card{margin:0 0 8px;padding:10px}
.embed-wrap .legend{margin:6px 0 4px;font-size:14px}
.embed-src{margin:4px 0 0;font-size:15px;font-weight:600}
/* bmi-chart.png render page only */
.png-page{margin:0;width:800px;background:#fff}
.png-wrap{width:800px;height:680px;padding:20px 22px 14px;display:flex;flex-direction:column}
.png-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.png-brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:19px;color:#141a26}
.png-brand .tld{color:#447000}
.png-title{margin:0;font-weight:750;font-size:22px;letter-spacing:-.02em;color:#141a26}
.png-wrap .chart-card{margin:0;padding:8px 10px;flex:1;display:flex;align-items:center}
.png-wrap .chart{width:100%;height:auto}
.png-foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px;gap:10px}
.png-foot .legend{margin:0;font-size:13px;gap:4px 12px}
.png-foot p{margin:0;font-size:12.5px;color:#4a5468;white-space:nowrap}
.pdf-card .btn{white-space:nowrap}
/* 2026-10-09: short answers, value table, comparison table, footer brand line, print stylesheet for /bmi-chart/ */
.callout .cta{margin-top:12px}
.cats.vals th{white-space:nowrap}
.cats.vals td.wrap{min-width:240px}
.cats.vals td[class^="c-"]{white-space:nowrap;font-weight:650}
.cats.cmp th{vertical-align:top}
.cats.cmp td.wrap{min-width:150px}
.src-line{font-size:15px;color:var(--ink-soft)}
.f-note{margin:0 0 12px;max-width:720px}
h3{font-size:19px;margin:20px 0 6px}
.print-only{display:none}
@media print{
  @page{margin:12mm}
  html,body,body.tema-app{background:#fff!important;color:#000!important}
  header.top,footer.site,.crumbs,.skip,.no-print,ins.adsbygoogle,.adsbygoogle{display:none!important}
  body.tema-app main .wrap{max-width:none;padding:0}
  .print-chart > *:not(h1):not(.print-keep):not(.print-only){display:none!important}
  .print-chart h1{font-size:22px;margin:0 0 4px;color:#000}
  .print-chart .print-only{display:block;font-size:11px;color:#333;margin:0 0 8px}
  .print-chart .print-keep h2{font-size:14px;margin:6px 0;color:#000}
  .print-chart .print-keep .table-wrap{background:#fff!important;border:0!important;box-shadow:none!important;overflow:visible!important;margin:0}
  .print-chart .print-keep table{width:100%;border-collapse:collapse;font-size:12px;color:#000;background:#fff}
  .print-chart .print-keep th,.print-chart .print-keep td{border:1px solid #888!important;background:#fff!important;color:#000!important;padding:3px 6px!important;text-align:left;text-transform:none;letter-spacing:0}
  .print-chart .print-keep thead{display:table-header-group}
  .print-chart .print-keep thead th{background:#ddd!important;font-size:11px}
  .print-chart .print-keep tr{break-inside:avoid}
  .print-chart .print-keep td.hl{background:#e3f1c4!important;font-weight:700;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
.cats.cmp td{vertical-align:top}
.faq-block + p{margin-top:18px}
@media (max-width:620px){.cats.vals td.wrap{min-width:0}.cats.vals td[class^="c-"]{white-space:normal;min-width:84px}.cats.vals th,.cats.vals td{padding-left:8px;padding-right:8px}.cats.vals caption{white-space:normal}.cats.cmp td.wrap{min-width:120px}}

/* Home: neon scale still as a CSS-animated hero background (no video) */
.hero-stage{position:relative;isolation:isolate}
.hero-stage .hero-bg,
.hero-stage .hero-overlay{
  position:absolute;left:0;top:0;width:100%;
  height:calc(100vh - 61px);
  z-index:0;pointer-events:none;overflow:hidden;
}
.hero-stage .hero-overlay{
  z-index:2;
  background:
    linear-gradient(180deg, rgba(20,26,38,0) 0%, rgba(20,26,38,0) 72%, var(--bg,#fff) 100%),
    linear-gradient(180deg, rgba(20,26,38,.90) 0%, rgba(20,26,38,.82) 28%, rgba(20,26,38,.62) 50%, rgba(20,26,38,.30) 76%, transparent 100%);
}
.hero-stage .wrap{position:relative;z-index:3}
.hero-stage .hero-bg .hv-still{
  position:absolute;inset:0;width:100%;height:100%;
  display:block;object-fit:cover;object-position:80% 50%;
  transform-origin:80% 50%;
  animation:hero-kenburns 20s ease-in-out infinite alternate;
  will-change:transform;
  z-index:0;
}
@media (max-width:720px){
  .hero-stage .hero-bg .hv-still{
    object-position:80% 50%;
    transform-origin:80% 50%;
  }
}
@keyframes hero-kenburns{
  from{transform:scale(1)}
  to{transform:scale(1.06) translate3d(-1.2%,.4%,0)}
}
.hero-stage .hero-glow{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(ellipse 52% 48% at 78% 54%, rgba(0,229,255,.28), transparent 62%),
    radial-gradient(ellipse 42% 42% at 68% 46%, rgba(168,85,247,.24), transparent 65%),
    radial-gradient(ellipse 36% 36% at 86% 62%, rgba(244,114,182,.22), transparent 60%);
  animation:hero-glow-pulse 6.5s ease-in-out infinite alternate;
  will-change:opacity;
}
@keyframes hero-glow-pulse{
  from{opacity:.42}
  to{opacity:.88}
}
.hero-stage .hero-bokeh{
  position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;
}
.hero-stage .hero-bokeh span{
  position:absolute;display:block;border-radius:50%;
  background:radial-gradient(circle, rgba(125,230,255,.75) 0%, rgba(125,230,255,0) 70%);
  animation:hero-bokeh 18s ease-in-out infinite alternate;
  will-change:transform,opacity;
  opacity:.5;
}
.hero-stage .hero-bokeh span:nth-child(1){left:8%;top:18%;width:16px;height:16px;animation-duration:22s;animation-delay:-1s}
.hero-stage .hero-bokeh span:nth-child(2){left:22%;top:62%;width:22px;height:22px;background:radial-gradient(circle, rgba(192,132,252,.7) 0%, rgba(192,132,252,0) 70%);animation-duration:26s;animation-delay:-6s}
.hero-stage .hero-bokeh span:nth-child(3){left:18%;top:40%;width:12px;height:12px;background:radial-gradient(circle, rgba(244,114,182,.7) 0%, rgba(244,114,182,0) 70%);animation-duration:19s;animation-delay:-11s}
.hero-stage .hero-bokeh span:nth-child(4){left:70%;top:14%;width:14px;height:14px;animation-duration:24s;animation-delay:-4s}
.hero-stage .hero-bokeh span:nth-child(5){left:92%;top:72%;width:18px;height:18px;background:radial-gradient(circle, rgba(244,114,182,.65) 0%, rgba(244,114,182,0) 70%);animation-duration:21s;animation-delay:-9s}
.hero-stage .hero-bokeh span:nth-child(6){left:84%;top:28%;width:10px;height:10px;background:radial-gradient(circle, rgba(192,132,252,.7) 0%, rgba(192,132,252,0) 70%);animation-duration:17s;animation-delay:-14s}
@keyframes hero-bokeh{
  from{transform:translate3d(0,0,0) scale(1);opacity:.32}
  to{transform:translate3d(16px,-20px,0) scale(1.12);opacity:.7}
}
.hero-stage .hero-bokeh span:nth-child(2){--dx:-18px;--dy:14px}
.hero-stage .hero-bokeh span:nth-child(even){
  animation-name:hero-bokeh-alt;
}
@keyframes hero-bokeh-alt{
  from{transform:translate3d(0,0,0) scale(1.05);opacity:.28}
  to{transform:translate3d(-14px,18px,0) scale(1);opacity:.68}
}
.hero-stage .hero h1{color:#f4f7fb;text-shadow:0 1px 2px rgba(20,26,38,.55),0 0 18px rgba(20,26,38,.35)}
.hero-stage .lede{color:#e3e8ef;text-shadow:0 1px 2px rgba(20,26,38,.55)}
@media (prefers-reduced-motion:reduce){
  .hero-stage .hero-bg .hv-still,
  .hero-stage .hero-glow,
  .hero-stage .hero-bokeh span{
    animation:none!important;
    will-change:auto;
  }
  .hero-stage .hero-bg .hv-still{transform:none}
  .hero-stage .hero-glow{opacity:.55}
}
@media print{
  .hero-stage .hero-bg,.hero-stage .hero-overlay{display:none!important}
  .hero-stage .hero h1,.hero-stage .lede{color:var(--ink)!important;text-shadow:none!important}
}
