:root{
      --bg:#050607;
      --bg-2:#090b0e;
      --panel:#0c0f13;
      --panel-2:#11151a;
      --panel-3:#151a20;
      --text:#f4f5f7;
      --muted:#9aa0a9;
      --soft:#c8ccd2;
      --gold:#f4bd46;
      --gold-2:#ffd86a;
      --gold-dark:#8c641d;
      --line:rgba(244,189,70,.16);
      --line-soft:rgba(255,255,255,.075);
      --green:#73d69a;
      --blue:#72b8ff;
      --orange:#f2b56b;
      --red:#ec8b86;
      --radius:18px;
      --shadow:0 28px 80px rgba(0,0,0,.34);
      color-scheme:dark;
    }

    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{
      margin:0;
      min-width:320px;
      color:var(--text);
      background:
        radial-gradient(circle at 50% -10%,rgba(244,189,70,.08),transparent 35%),
        linear-gradient(180deg,#050607 0%,#080a0d 45%,#050607 100%);
      font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
      line-height:1.65;
      -webkit-font-smoothing:antialiased;
    }
    a{color:inherit;text-decoration:none}
    img{max-width:100%}
    button,input{font:inherit}
    button{color:inherit}
    .wrap{width:min(1180px,calc(100% - 34px));margin-inline:auto}
    .header-container{width:min(calc(100% - 40px),1180px);margin-inline:auto}
    .site-header{position:relative;z-index:10000;padding:13px 0 0}
    .nav-shell{
      position:relative;z-index:10001;overflow:visible;
      min-height:68px;
      display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;
      padding:0 16px 0 22px;
      border:1px solid var(--line);
      border-radius:17px;
      background:linear-gradient(180deg,rgba(16,18,22,.9),rgba(8,10,13,.83));
      box-shadow:inset 0 1px rgba(255,255,255,.025),0 12px 35px rgba(0,0,0,.24);
      backdrop-filter:blur(16px);
    }
    .brand{display:inline-flex;align-items:center;width:max-content;line-height:0}
    .brand-logo{display:block;width:275px;height:auto;object-fit:contain;filter:drop-shadow(0 0 10px rgba(244,189,70,.08))}
    .nav-links{display:flex;align-items:stretch;height:68px;gap:31px;font-size:14px}
    .nav-links a{position:relative;display:inline-flex;align-items:center;color:#e8e8e8;transition:color .2s ease}
    .nav-links a:hover{color:var(--gold-2)}
    .nav-links a.active,.nav-dropdown>.dropdown-trigger.active{color:var(--gold)}
    .nav-links a.active::after,.nav-dropdown>.dropdown-trigger.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--gold);box-shadow:0 0 12px rgba(244,189,70,.5)}
    .nav-dropdown{position:relative;z-index:200;display:flex;align-items:stretch}
    .nav-dropdown>.dropdown-trigger{position:relative;gap:7px;height:100%;display:inline-flex;align-items:center;padding:0;border:0;background:transparent;color:#e8e8e8;cursor:pointer}
    .nav-dropdown>.dropdown-trigger svg{transition:transform .20s ease}
    .nav-dropdown:hover>.dropdown-trigger svg,.nav-dropdown:focus-within>.dropdown-trigger svg,.nav-dropdown.is-open>.dropdown-trigger svg{transform:rotate(180deg)}
    .dropdown-menu{
      position:absolute;z-index:5000;top:calc(100% - 1px);left:50%;
      width:238px;padding:8px;
      opacity:0;visibility:hidden;pointer-events:none;
      transform:translateX(-50%);
      border:1px solid rgba(244,189,70,.19);
      border-radius:12px;
      background:linear-gradient(180deg,rgba(16,18,22,.995),rgba(7,9,12,.998));
      box-shadow:0 22px 52px rgba(0,0,0,.56),inset 0 1px rgba(255,255,255,.035);
      backdrop-filter:blur(18px);
      transition:opacity .10s ease,visibility 0s linear .10s;
    }
    .nav-dropdown:hover>.dropdown-menu,.nav-dropdown:focus-within>.dropdown-menu,.nav-dropdown.is-open>.dropdown-menu{
      opacity:1;visibility:visible;pointer-events:auto;transition:opacity .10s ease,visibility 0s;
    }
    .dropdown-menu::before{
      content:"";position:absolute;top:-5px;left:50%;width:9px;height:9px;
      transform:translateX(-50%) rotate(45deg);
      background:#101216;border-left:1px solid rgba(244,189,70,.19);border-top:1px solid rgba(244,189,70,.19);
    }
    .dropdown-label{padding:7px 9px 6px;color:#797f88;font-size:9.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
    .dropdown-menu a{position:relative;z-index:3;display:flex;align-items:center;min-height:40px;padding:9px 10px;border-radius:8px;font-size:12.25px;line-height:1.25;color:#d7d9dd;pointer-events:auto;cursor:pointer}
    .dropdown-menu a::after{content:none!important}
    .dropdown-menu a:hover,.dropdown-menu a:focus{color:var(--gold-2);background:rgba(244,189,70,.075);outline:none}
    .nav-actions{justify-self:end;display:flex;align-items:center;gap:10px}
    .theme-btn{width:41px;height:41px;border-radius:50%;border:1px solid var(--line);background:#0c0f13;color:#ddd;display:grid;place-items:center}
    .cta-btn{min-height:45px;padding:0 18px;border:1px solid rgba(244,189,70,.72);border-radius:9px;background:linear-gradient(180deg,#171612,#0e0e0e);color:#fff;font-weight:650;box-shadow:inset 0 0 15px rgba(244,189,70,.09),0 0 16px rgba(244,189,70,.1);display:inline-flex;align-items:center;gap:10px}
    .cta-btn:hover{color:#101010;background:linear-gradient(180deg,var(--gold-2),var(--gold))}
    .mobile-toggle{display:none;width:42px;height:42px;border:1px solid var(--line);background:#0e1115;color:white;border-radius:10px}

    .breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:24px 0 12px;color:#858b94;font-size:13px}
    .breadcrumbs a:hover{color:var(--gold)}
    .breadcrumbs span[aria-current="page"]{color:#aeb3ba}

    .hero{position:relative;z-index:1;padding:26px 0 22px}
    .hero-copy{max-width:860px}
    .eyebrow{
      display:inline-flex;align-items:center;gap:8px;
      margin-bottom:12px;padding:6px 10px;
      border:1px solid rgba(244,189,70,.18);border-radius:999px;
      color:var(--gold-2);background:rgba(244,189,70,.045);
      font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
    }
    h1,h2,h3{line-height:1.14;margin-top:0}
    h1{max-width:900px;margin-bottom:15px;font-size:clamp(38px,5vw,66px);letter-spacing:-.045em}
    .hero p{max-width:820px;margin:0;color:#b2b7bf;font-size:17px;line-height:1.72}
    .trust-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}
    .trust-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line-soft);border-radius:999px;color:#b3b8c0;background:rgba(255,255,255,.018);font-size:12px;font-weight:750}
    .trust-pill b{color:var(--gold)}

    .tool-shell{
      position:relative;
      isolation:isolate;
      display:grid;
      grid-template-columns:minmax(0,1.08fr) minmax(380px,.92fr);
      gap:22px;
      margin:24px 0 38px;
      padding:16px;
      border:1px solid rgba(244,189,70,.36);
      border-radius:34px;
      background:
        radial-gradient(circle at 15% 20%,rgba(244,189,70,.10),transparent 26%),
        radial-gradient(circle at 87% 10%,rgba(255,216,106,.08),transparent 24%),
        linear-gradient(180deg,rgba(10,12,15,.995),rgba(4,6,8,1));
      box-shadow:
        0 42px 115px rgba(0,0,0,.54),
        0 0 0 1px rgba(244,189,70,.05),
        0 0 72px rgba(244,189,70,.08),
        inset 0 1px rgba(255,255,255,.05);
    }
    .tool-shell::before{
      content:"";
      position:absolute;
      z-index:-1;
      inset:-20px;
      border-radius:46px;
      background:radial-gradient(ellipse at center,rgba(244,189,70,.11),transparent 70%);
      filter:blur(22px);
      pointer-events:none;
    }
    .tool-shell::after{
      content:"";
      position:absolute;
      inset:12px;
      border-radius:28px;
      border:1px solid rgba(244,189,70,.20);
      box-shadow:inset 0 1px rgba(255,255,255,.05);
      pointer-events:none;
    }
    .calc-panel,.result-panel,.content-card,.toc-card,.related-card{
      border:1px solid var(--line-soft);
      background:linear-gradient(180deg,rgba(15,18,22,.96),rgba(8,10,13,.98));
      box-shadow:var(--shadow);
    }
    .calc-panel,.result-panel{
      position:relative;
      overflow:hidden;
      border-radius:28px;
      padding:30px;
    }
    .calc-panel{
      border-color:rgba(244,189,70,.18);
      background:
        radial-gradient(circle at 20% 88%,rgba(244,189,70,.08),transparent 28%),
        linear-gradient(180deg,rgba(12,15,18,.995),rgba(5,7,9,.995));
      box-shadow:
        inset 0 1px rgba(255,255,255,.035),
        inset 0 0 0 1px rgba(244,189,70,.06),
        0 24px 68px rgba(0,0,0,.30);
    }
    .calc-panel::before,
    .result-panel::before{
      content:"";
      position:absolute;
      inset:14px;
      border-radius:22px;
      border:1px solid rgba(244,189,70,.18);
      pointer-events:none;
    }
    .result-panel{
      border-color:rgba(244,189,70,.24);
      background:
        radial-gradient(circle at 72% 18%,rgba(244,189,70,.12),transparent 26%),
        linear-gradient(180deg,rgba(12,15,18,.995),rgba(5,7,9,.995));
      box-shadow:
        inset 0 1px rgba(255,255,255,.04),
        inset 0 0 0 1px rgba(244,189,70,.06),
        0 25px 74px rgba(0,0,0,.38);
    }
    .panel-kicker{margin:0 0 7px;color:var(--gold);font-size:11.5px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
    .panel-title{margin:0 0 8px;font-size:29px;letter-spacing:-.032em}
    .panel-copy{margin:0 0 22px;color:#a4aab3;font-size:14.5px;line-height:1.68}
    .unit-switch{
      display:grid;grid-template-columns:1fr 1fr;gap:6px;
      margin-bottom:22px;padding:6px;border:1px solid rgba(244,189,70,.20);border-radius:18px;
      background:linear-gradient(180deg,rgba(8,10,12,.98),rgba(5,7,9,.98));
      box-shadow:inset 0 1px rgba(255,255,255,.03),0 10px 30px rgba(0,0,0,.18);
    }
    .unit-btn{
      min-height:50px;border:0;border-radius:14px;background:transparent;color:#9ea4ad;cursor:pointer;
      font-size:14px;font-weight:850;
    }
    .unit-btn[aria-pressed="true"]{
      color:#111;
      background:linear-gradient(180deg,#ffe898 0%,#f7cf67 50%,#f0ba3f 100%);
      box-shadow:
        0 16px 42px rgba(244,189,70,.25),
        inset 0 1px rgba(255,255,255,.42),
        inset 0 -6px 14px rgba(165,95,0,.12);
    }
    .field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
    .field.full{grid-column:1/-1}
    label{display:block;margin-bottom:9px;color:#e0e3e7;font-size:13.5px;font-weight:850}
    .input-wrap{position:relative}
    input{
      width:100%;height:58px;padding:0 64px 0 17px;
      border:1px solid rgba(244,189,70,.16);border-radius:16px;
      outline:none;color:#fff;background:linear-gradient(180deg,#090b0e,#05070a);font-size:17px;font-weight:650;
      transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
      box-shadow:inset 0 1px rgba(255,255,255,.025),0 8px 20px rgba(0,0,0,.12);
    }
    input:focus{border-color:rgba(244,189,70,.56);box-shadow:0 0 0 3px rgba(244,189,70,.10),0 10px 24px rgba(0,0,0,.16)}
    .suffix{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#a0a6af;font-size:13px;font-weight:850;pointer-events:none}
    .error{min-height:20px;margin:8px 0 0;color:#efa09b;font-size:12.5px}
    .action-row{display:flex;gap:12px;margin-top:8px}
    .primary-btn,.ghost-btn{
      min-height:52px;border-radius:16px;padding:0 20px;font-size:15px;font-weight:900;cursor:pointer;
      transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,filter .16s ease,color .16s ease,background .16s ease;
    }
    .primary-btn{
      flex:1;
      border:1px solid rgba(255,228,128,.96);
      color:#111;
      background:linear-gradient(180deg,#ffe68c 0%,#f5c850 48%,#eaad30 100%);
      box-shadow:
        0 18px 48px rgba(244,189,70,.28),
        inset 0 1px rgba(255,255,255,.42),
        inset 0 -8px 16px rgba(156,88,0,.14);
    }
    .primary-btn:hover{
      filter:brightness(1.06);
      transform:translateY(-1px);
      box-shadow:
        0 22px 52px rgba(244,189,70,.33),
        inset 0 1px rgba(255,255,255,.45),
        inset 0 -8px 16px rgba(156,88,0,.16);
    }
    .ghost-btn{
      border:1px solid rgba(244,189,70,.16);
      color:#e0e3e7;
      background:linear-gradient(180deg,#0b0e11,#07090c);
      box-shadow:inset 0 1px rgba(255,255,255,.03);
    }
    .ghost-btn:hover{
      border-color:rgba(244,189,70,.28);
      background:linear-gradient(180deg,#10141a,#090c10);
      transform:translateY(-1px);
    }

    .result-panel::after{
      content:"";
      position:absolute;
      left:48px;right:48px;bottom:52px;height:96px;border-radius:50%;
      background:radial-gradient(ellipse at center,rgba(255,216,106,.20),rgba(244,189,70,.05) 42%,transparent 70%);
      pointer-events:none;
      opacity:.96;
    }
    .result-empty{
      position:relative;
      display:grid;
      min-height:320px;
      place-items:center;
      text-align:center;
      color:#8b919a;
      padding:24px;
    }
    .result-empty::before{
      content:"";
      position:absolute;
      left:50%;
      bottom:38px;
      width:min(300px,76%);
      height:40px;
      transform:translateX(-50%);
      border-radius:50%;
      border:1px solid rgba(244,189,70,.22);
      box-shadow:
        0 0 0 10px rgba(244,189,70,.02),
        0 0 0 22px rgba(244,189,70,.014),
        inset 0 0 14px rgba(244,189,70,.08);
      pointer-events:none;
    }
    .result-empty svg{
      width:60px;height:60px;margin-bottom:16px;color:#c7ab69;
      padding:14px;border-radius:24px;
      border:1px solid rgba(244,189,70,.24);
      background:
        radial-gradient(circle at center,rgba(255,216,106,.14),rgba(244,189,70,.05) 45%,transparent 72%),
        linear-gradient(180deg,rgba(16,18,22,.98),rgba(7,9,12,.98));
      box-shadow:0 14px 40px rgba(244,189,70,.10),inset 0 1px rgba(255,255,255,.05);
    }
    .result-content{display:none}
    .result-content.is-visible{display:block}
    .result-number{
      margin-top:13px;
      font-size:clamp(62px,8vw,92px);
      font-weight:950;
      line-height:.95;
      letter-spacing:-.065em;
      color:var(--gold-2);
      text-shadow:0 0 28px rgba(244,189,70,.16);
    }
    .result-category{margin-top:10px;color:#f7f7f8;font-size:20px;font-weight:900}
    .result-sentence{margin:10px 0 20px;color:#a7adb5;font-size:14px;line-height:1.6}
    .bmi-scale{position:relative;display:grid;grid-template-columns:1fr 1.45fr 1fr 1.35fr;height:11px;margin:20px 0 10px;border-radius:999px;overflow:visible;background:#222}
    .bmi-scale span{display:block}
    .scale-under{background:#6b91c7;border-radius:999px 0 0 999px}
    .scale-healthy{background:#5ea77d}
    .scale-over{background:#cc9a59}
    .scale-obese{background:#bd6b68;border-radius:0 999px 999px 0}
    .scale-pointer{
      position:absolute;top:-7px;left:var(--bmi-pos,0%);width:3px;height:25px;border-radius:2px;
      background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.12);transform:translateX(-50%);display:none;
    }
    .scale-pointer.is-visible{display:block}
    .scale-labels{display:grid;grid-template-columns:1fr 1.45fr 1fr 1.35fr;gap:6px;color:#858b94;font-size:10.5px;font-weight:700;text-align:center}
    .result-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px}
    .fact{padding:14px;border:1px solid rgba(255,255,255,.075);border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.012))}
    .fact span{display:block;color:#858b94;font-size:10.5px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}
    .fact strong{display:block;margin-top:5px;color:#eef0f2;font-size:14.5px}
    .result-note{margin-top:16px;padding:13px 14px;border-left:2px solid var(--gold);background:rgba(244,189,70,.045);color:#9da3ac;font-size:12.5px;line-height:1.6}
    .result-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}
    .result-action-btn{min-height:44px;padding:9px 11px;border:1px solid rgba(244,189,70,.19);border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#0a0d10;color:#d4d7dc;font-size:12px;font-weight:850;cursor:pointer;transition:border-color .14s ease,color .14s ease,background .14s ease,transform .14s ease}
    .result-action-btn:hover:not(:disabled){color:var(--gold-2);border-color:rgba(244,189,70,.38);background:rgba(244,189,70,.045);transform:translateY(-1px)}
    .result-action-btn:disabled{opacity:.42;cursor:not-allowed}
    .result-action-btn svg{width:15px;height:15px;flex:0 0 auto}
    .result-action-status{min-height:18px;margin:8px 0 0;color:#969ca5;font-size:11.5px;text-align:center}

    .ad-slot{display:none}
    .ad-slot.is-active{
      display:grid;min-height:110px;place-items:center;margin:25px 0;
      border:1px dashed rgba(244,189,70,.2);border-radius:15px;
      color:#646a72;background:rgba(255,255,255,.012);font-size:10px;text-transform:uppercase;letter-spacing:.09em
    }

    .content-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px;align-items:start;padding:15px 0 50px}
    .article{min-width:0}
    .content-card{border-radius:20px;padding:clamp(22px,4vw,38px);margin-bottom:18px}
    .content-card h2{margin-bottom:14px;font-size:clamp(25px,3vw,34px);letter-spacing:-.035em}
    .content-card h3{margin:26px 0 9px;font-size:19px;letter-spacing:-.02em}
    .content-card p,.content-card li{color:#b0b5bd;font-size:15.5px;line-height:1.72}
    .content-card p{margin:0 0 15px}
    .content-card ul,.content-card ol{padding-left:20px}
    .content-card li{margin:7px 0}
    .content-card a{color:var(--gold-2);text-decoration:underline;text-decoration-color:rgba(244,189,70,.28);text-underline-offset:3px}
    .formula{
      margin:16px 0;padding:16px 17px;border:1px solid rgba(244,189,70,.18);border-radius:12px;
      color:#f0f1f2;background:#090b0e;font-size:15px;font-weight:850;overflow-wrap:anywhere;
    }
    .table-wrap{overflow-x:auto;margin:16px 0}
    table{width:100%;border-collapse:collapse;min-width:580px}
    th,td{padding:12px 13px;border-bottom:1px solid var(--line-soft);text-align:left}
    th{color:#f0f1f2;background:#0a0d10;font-size:12.5px;text-transform:uppercase;letter-spacing:.06em}
    td{color:#b0b5bd;font-size:14.5px}
    tr:last-child td{border-bottom:0}
    /* Color-coded adult BMI category table */
    .bmi-category-table{overflow:hidden;border:1px solid var(--line-soft);border-radius:13px;background:#090b0e}
    .bmi-category-table table{margin:0}
    .bmi-category-table tbody td:first-child,.bmi-category-table tbody td:last-child{font-weight:850}
    .bmi-category-table .row-under td{background:rgba(114,184,255,.055)}
    .bmi-category-table .row-under td:first-child{border-left:4px solid #72b8ff;color:#a8d3ff}
    .bmi-category-table .row-under td:last-child{color:#a8d3ff}
    .bmi-category-table .row-healthy td{background:rgba(115,214,154,.06)}
    .bmi-category-table .row-healthy td:first-child{border-left:4px solid #73d69a;color:#9ee9ba}
    .bmi-category-table .row-healthy td:last-child{color:#9ee9ba}
    .bmi-category-table .row-over td{background:rgba(244,189,70,.06)}
    .bmi-category-table .row-over td:first-child{border-left:4px solid #f4bd46;color:#ffd66b}
    .bmi-category-table .row-over td:last-child{color:#ffd66b}
    .bmi-category-table .row-obese1 td{background:rgba(242,181,107,.065)}
    .bmi-category-table .row-obese1 td:first-child{border-left:4px solid #f2b56b;color:#ffca8d}
    .bmi-category-table .row-obese1 td:last-child{color:#ffca8d}
    .bmi-category-table .row-obese2 td{background:rgba(236,139,134,.07)}
    .bmi-category-table .row-obese2 td:first-child{border-left:4px solid #ec8b86;color:#f7aca8}
    .bmi-category-table .row-obese2 td:last-child{color:#f7aca8}
    .bmi-category-table .row-obese3 td{background:rgba(225,91,91,.08)}
    .bmi-category-table .row-obese3 td:first-child{border-left:4px solid #e15b5b;color:#ff9595}
    .bmi-category-table .row-obese3 td:last-child{color:#ff9595}
    .callout{
      margin:19px 0;padding:15px 17px;border:1px solid rgba(244,189,70,.18);border-radius:13px;
      background:rgba(244,189,70,.035);color:#b4b9c1;font-size:14.5px;line-height:1.65;
    }
    .callout strong{color:var(--gold-2)}
    .toc-card{position:sticky;top:18px;border-radius:17px;padding:17px}
    .toc-card h2{margin:0 0 11px;color:#e9ebee;font-size:15px}
    .toc-card a{display:block;padding:8px 8px;border-radius:7px;color:#969ca5;font-size:13px;line-height:1.4}
    .toc-card a:hover{color:var(--gold-2);background:rgba(244,189,70,.045)}
    .mini-meta{margin-top:14px;padding-top:13px;border-top:1px solid var(--line-soft);color:#7d838c;font-size:11.5px;line-height:1.55}
    .source-list{display:grid;gap:9px;margin-top:15px}
    .source-item{padding:13px;border:1px solid var(--line-soft);border-radius:10px;background:rgba(255,255,255,.012)}
    .source-item strong{display:block;margin-bottom:4px;color:#e3e5e8;font-size:13.5px}
    .source-item span{color:#9298a1;font-size:12.5px;line-height:1.5}

    .faq-list{display:grid;gap:10px}
    .faq-item{border:1px solid var(--line-soft);border-radius:12px;background:#090b0e;overflow:hidden}
    .faq-q{
      width:100%;min-height:52px;padding:13px 15px;border:0;background:transparent;color:#e6e8eb;
      display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;cursor:pointer;font-size:14.5px;font-weight:850;
    }
    .faq-q svg{flex:0 0 auto;transition:transform .16s ease}
    .faq-q[aria-expanded="true"] svg{transform:rotate(180deg)}
    .faq-a{display:none;padding:0 15px 16px;color:#a4aab2;font-size:14.5px;line-height:1.65}
    .faq-a.is-open{display:block}

    .related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
    .related-card{border-radius:15px;padding:16px}
    .related-card strong{display:block;color:#eceef0;font-size:14.5px}
    .related-card span{display:block;margin-top:5px;color:#90969f;font-size:12.5px}
    a.related-card:hover{border-color:rgba(244,189,70,.27);transform:translateY(-1px)}
    .related-card.future{box-shadow:none;cursor:default}

    footer{border-top:1px solid rgba(255,255,255,.11);background:rgba(5,7,10,.72)}
    .footer-grid{display:grid;grid-template-columns:1.28fr .8fr .95fr .8fr 1fr;gap:30px;padding:34px 0 31px}
    .footer-brand .brand-logo{width:250px}
    .footer-brand p{max-width:260px;margin:13px 0 17px;color:#969ba3;font-size:12.5px;line-height:1.6}
    footer h2{margin:0 0 13px;font-family:Georgia,"Times New Roman",serif;font-size:15px}
    .footer-links{list-style:none;margin:0;padding:0;display:grid;gap:7px;color:#a4a8af;font-size:12.5px}
    .footer-links a:hover{color:var(--gold)}
    .contact-line{display:flex;align-items:flex-start;gap:9px;color:#a4a8af;font-size:12.5px;margin-bottom:9px}
    .contact-line svg{color:var(--gold);margin-top:2px;flex:0 0 auto}
    .copyright{border-top:1px solid rgba(255,255,255,.08);min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#747a83;font-size:11.5px}

    /* Shared professional light theme */
    html[data-theme="light"]{
      color-scheme:light;
      --bg:#f4f7fb;--bg-2:#edf2f8;--panel:#fff;--panel-2:#f7f9fc;--panel-3:#eaf1f8;
      --text:#17212d;--muted:#556171;--soft:#364454;
      --gold:#b77908;--gold-2:#8e5b00;--gold-dark:#6f4500;
      --line:rgba(183,121,8,.25);--line-soft:rgba(38,55,76,.14);
      --shadow:0 24px 70px rgba(61,79,101,.16)
    }
    html[data-theme="light"] body{
      background:
        radial-gradient(circle at 50% -10%,rgba(244,189,70,.23),transparent 34%),
        radial-gradient(circle at 8% 55%,rgba(74,144,214,.14),transparent 28%),
        linear-gradient(180deg,#fff 0%,#f4f7fb 48%,#edf3f9 100%)
    }
    html[data-theme="light"] .nav-shell{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(245,248,252,.94));box-shadow:inset 0 1px rgba(255,255,255,.95),0 14px 36px rgba(55,75,98,.14)}
    html[data-theme="light"] .nav-links a,html[data-theme="light"] .nav-dropdown>.dropdown-trigger{color:#263342}
    html[data-theme="light"] .dropdown-menu{background:linear-gradient(180deg,rgba(255,255,255,.995),rgba(242,247,252,.998));box-shadow:0 22px 52px rgba(49,68,92,.20),inset 0 1px rgba(255,255,255,.9)}
    html[data-theme="light"] .dropdown-menu::before{background:#fff}
    html[data-theme="light"] .dropdown-menu a{color:#2d3a49}
    html[data-theme="light"] .dropdown-label{color:#707d8d}
    html[data-theme="light"] .theme-btn{background:linear-gradient(180deg,#fff,#e8f2fc);color:#315f8c;border-color:rgba(49,95,140,.22)}
    html[data-theme="light"] .cta-btn{background:linear-gradient(180deg,#fff8e7,#f1ce77);color:#362400;border-color:rgba(166,105,0,.55);box-shadow:inset 0 1px rgba(255,255,255,.8),0 8px 20px rgba(183,121,8,.16)}
    html[data-theme="light"] .breadcrumbs{color:#667383}
    html[data-theme="light"] .breadcrumbs span[aria-current="page"]{color:#364454}
    html[data-theme="light"] .hero p,html[data-theme="light"] .panel-copy{color:#4f5c6c}
    html[data-theme="light"] .eyebrow,html[data-theme="light"] .trust-pill{background:rgba(255,246,218,.92);color:#5c6877}
    html[data-theme="light"] .tool-shell{
      background:radial-gradient(circle at 15% 20%,rgba(244,189,70,.18),transparent 28%),radial-gradient(circle at 87% 10%,rgba(74,144,214,.13),transparent 26%),linear-gradient(180deg,#f9fbfd,#e8eff7);
      box-shadow:0 38px 90px rgba(55,75,98,.18),0 0 0 1px rgba(183,121,8,.06),inset 0 1px #fff
    }
    html[data-theme="light"] .calc-panel,html[data-theme="light"] .result-panel{
      background:radial-gradient(circle at 76% 14%,rgba(244,189,70,.15),transparent 28%),linear-gradient(180deg,#fff,#edf3f9);
      box-shadow:inset 0 1px #fff,0 22px 60px rgba(52,72,96,.13)
    }
    html[data-theme="light"] .calc-panel,html[data-theme="light"] .result-panel,html[data-theme="light"] .content-card,html[data-theme="light"] .toc-card,html[data-theme="light"] .related-card{border-color:rgba(38,55,76,.14)}
    html[data-theme="light"] .unit-switch{background:linear-gradient(180deg,#eef3f8,#e4ebf3);box-shadow:inset 0 1px #fff,0 10px 28px rgba(55,75,98,.10)}
    html[data-theme="light"] .unit-btn{color:#566373}
    html[data-theme="light"] label{color:#263342}
    html[data-theme="light"] input{color:#17212d;background:linear-gradient(180deg,#fff,#f1f5f9);box-shadow:inset 0 1px #fff,0 8px 20px rgba(55,75,98,.08)}
    html[data-theme="light"] .suffix{color:#697687}
    html[data-theme="light"] .ghost-btn{color:#334151;background:linear-gradient(180deg,#fff,#e8eef5)}
    html[data-theme="light"] .ghost-btn:hover{background:linear-gradient(180deg,#fff9e8,#edf3f9)}
    html[data-theme="light"] .result-empty{color:#5f6c7b}
    html[data-theme="light"] .result-empty strong{color:#243241!important}
    html[data-theme="light"] .result-empty span{color:#5f6c7b!important}
    html[data-theme="light"] .result-empty svg{background:radial-gradient(circle at center,rgba(255,216,106,.24),rgba(244,189,70,.10) 45%,rgba(255,255,255,.8) 74%);box-shadow:0 14px 35px rgba(183,121,8,.12),inset 0 1px #fff}
    html[data-theme="light"] .result-category,html[data-theme="light"] .fact strong{color:#22303f}
    html[data-theme="light"] .result-sentence,html[data-theme="light"] .result-note{color:#566373}
    html[data-theme="light"] .fact{border-color:rgba(38,55,76,.13);background:linear-gradient(180deg,#fff,#eef3f8)}
    html[data-theme="light"] .fact span,html[data-theme="light"] .scale-labels{color:#657283}
    html[data-theme="light"] .result-action-btn{background:#fff;color:#354354}
    html[data-theme="light"] .content-card,html[data-theme="light"] .toc-card,html[data-theme="light"] .related-card{background:linear-gradient(180deg,#fff,#f2f6fa);box-shadow:0 16px 38px rgba(52,72,96,.10)}
    html[data-theme="light"] .content-card p,html[data-theme="light"] .content-card li,html[data-theme="light"] td{color:#4e5b6a}
    html[data-theme="light"] .formula,html[data-theme="light"] th,html[data-theme="light"] .bmi-category-table{background:#eef3f8;color:#243241}
    html[data-theme="light"] .callout{background:#fff7e3;color:#4f5c6b}
    html[data-theme="light"] .toc-card h2,html[data-theme="light"] .source-item strong,html[data-theme="light"] .faq-q,html[data-theme="light"] .related-card strong{color:#243241}
    html[data-theme="light"] .toc-card a,html[data-theme="light"] .source-item span,html[data-theme="light"] .faq-a,html[data-theme="light"] .related-card span{color:#5d6978}
    html[data-theme="light"] .source-item,html[data-theme="light"] .faq-item{background:#fff}
    html[data-theme="light"] footer{background:rgba(255,255,255,.78);border-color:rgba(38,55,76,.14)}
    html[data-theme="light"] .footer-brand p,html[data-theme="light"] .footer-links,html[data-theme="light"] .contact-line{color:#596676}
    html[data-theme="light"] .copyright{color:#6f7b89;border-color:rgba(38,55,76,.12)}
    html[data-theme="light"] #mobile-menu nav{background:#fff!important;border-color:rgba(38,55,76,.16)!important;box-shadow:0 16px 35px rgba(55,75,98,.14)}
    html[data-theme="light"] #mobile-menu a{color:#2d3a49!important}
    html[data-theme="light"] #mobile-menu a[aria-current="page"]{color:var(--gold-2)!important}
    html[data-theme="light"] .mobile-toggle{background:#fff;color:#253241}
    body,.nav-shell,.dropdown-menu,.theme-btn,.cta-btn,.tool-shell,.calc-panel,.result-panel,.content-card,.toc-card,.related-card,footer{transition:background .22s ease,color .22s ease,border-color .22s ease,box-shadow .22s ease}

    @media (max-width:1020px){
      .nav-shell{grid-template-columns:1fr auto}
      .nav-links{display:none}
      .mobile-toggle{display:grid;place-items:center}
      .cta-btn{display:none}
    }
    @media (max-width:1050px){
      .tool-shell{grid-template-columns:1fr;padding:10px;border-radius:24px}
      .result-empty{min-height:260px}
      .content-layout{grid-template-columns:1fr}
      .toc-card{position:relative;top:auto;order:-1}
      .footer-grid{grid-template-columns:1.35fr repeat(2,1fr)}
    }
    @media (max-width:760px){
      .header-container{width:min(calc(100% - 28px),1180px)}
      .site-header{padding-top:8px}
      .nav-shell{min-height:58px;padding:0 10px 0 14px}
      .brand-logo{width:215px}
      .cta-btn{display:none}
    }
    @media (max-width:720px){
      .wrap{width:min(100% - 22px,1180px)}
      h1{font-size:clamp(36px,12vw,54px)}
      .hero{padding-top:18px}
      .field-grid{grid-template-columns:1fr}
      .field.full{grid-column:auto}
      .action-row{flex-direction:column}
      .result-facts{grid-template-columns:1fr}
      .result-actions{grid-template-columns:1fr}
      .related-grid{grid-template-columns:1fr}
      .footer-grid{grid-template-columns:1fr 1fr}
      .footer-brand{grid-column:1/-1}
      .footer-brand .brand-logo{width:225px}
      .copyright{align-items:flex-start;flex-direction:column;padding:15px 0}
      .calc-panel,.result-panel{padding:20px;border-radius:20px}
      .panel-title{font-size:24px}
      .panel-copy{font-size:13.5px}
      .result-number{font-size:clamp(58px,19vw,82px)}
      .result-empty::before{bottom:28px;width:min(240px,70%)}
      .content-card{border-radius:17px}
    }
    @media (max-width:470px){
      .brand-logo{width:180px}
      .footer-brand .brand-logo{width:205px}
      .footer-grid{grid-template-columns:1fr}
    }
    @media (prefers-reduced-motion:reduce){
      html{scroll-behavior:auto}
      *,*::before,*::after{transition:none!important;animation:none!important}
    }

/* Graphing Calculator additions built on the exact BMI page template. */
.skip-link{position:fixed;z-index:20000;left:12px;top:10px;padding:10px 14px;border-radius:9px;background:var(--gold);color:#111;font-weight:850;transform:translateY(-160%);transition:transform .15s ease}.skip-link:focus{transform:translateY(0)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.graph-tool-shell{grid-template-columns:minmax(300px,.78fr) minmax(0,1.62fr);align-items:stretch}
.graph-control-panel{min-width:0}
.expression-list{display:grid;gap:12px;margin-bottom:22px}
.expression-row{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;align-items:start}
.expression-toggle{width:22px;height:22px;margin-top:18px;accent-color:var(--gold);cursor:pointer}
.expression-box{position:relative;min-width:0}
.expression-box::before{content:"";position:absolute;z-index:2;left:17px;top:25px;width:9px;height:9px;border-radius:50%;background:var(--series-color);transform:translateY(-50%);box-shadow:0 0 13px color-mix(in srgb,var(--series-color) 65%,transparent)}
.expression-input{height:52px;padding:0 16px 0 38px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:15px}
.expression-error{display:none;margin:6px 2px 0;color:#efa09b;font-size:12px;line-height:1.45}.expression-error.is-visible{display:block}
.series-one{--series-color:#f4bd46}.series-two{--series-color:#72b8ff}.series-three{--series-color:#ff7185}
.range-title{margin:4px 0 13px;font-size:15px;letter-spacing:-.01em}
.range-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.range-grid input,.range-grid select{width:100%;height:52px;padding:0 15px;border:1px solid rgba(244,189,70,.16);border-radius:16px;outline:none;color:#fff;background:linear-gradient(180deg,#090b0e,#05070a);font-size:15px;font-weight:650;box-shadow:inset 0 1px rgba(255,255,255,.025),0 8px 20px rgba(0,0,0,.12)}
.range-grid select:focus{border-color:rgba(244,189,70,.56);box-shadow:0 0 0 3px rgba(244,189,70,.10)}
.button-row{display:flex;gap:12px;margin-top:16px}.button-row .primary-btn{flex:1}.button-row .ghost-btn{min-width:112px}
.example-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.example-row button{min-height:36px;padding:7px 11px;border:1px solid var(--line-soft);border-radius:999px;background:rgba(255,255,255,.015);color:#a4aab3;font-size:11px;font-weight:760;cursor:pointer}.example-row button:hover{border-color:rgba(244,189,70,.35);color:var(--gold-2)}
.status{min-height:20px;margin:12px 0 0;color:#9ca2ab;font-size:12px}.status.is-error{color:#efa09b}
.graph-panel{min-width:0;padding:24px}.graph-panel::after{display:none}.graph-panel::before{inset:10px;border-radius:22px}
.graph-toolbar{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.graph-toolbar-left,.graph-toolbar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.graph-toolbar strong{font-size:14px}.small-btn{min-width:42px;min-height:42px;padding:7px 11px;border:1px solid rgba(244,189,70,.18);border-radius:12px;background:linear-gradient(180deg,#11161c,#090c10);color:#e4e7eb;font-weight:850;cursor:pointer}.small-btn:hover{border-color:rgba(244,189,70,.38);color:var(--gold-2)}
.coordinate-readout{min-width:200px;color:#9aa0a9;font:12px ui-monospace,SFMono-Regular,Consolas,monospace;text-align:right}
.canvas-wrap{position:relative;z-index:1;min-height:500px;border:1px solid rgba(244,189,70,.18);border-radius:18px;overflow:hidden;background:#05080c;touch-action:none;box-shadow:inset 0 1px rgba(255,255,255,.025)}
.canvas-wrap canvas{display:block;width:100%;height:500px;cursor:crosshair}
.graph-help{position:relative;z-index:1;display:flex;justify-content:space-between;gap:15px;margin-top:9px;color:#858b94;font-size:10.5px}
.sample-table-wrap{position:relative;z-index:1;margin-top:14px;overflow:auto;border:1px solid var(--line-soft);border-radius:13px}.sample-table{min-width:100%;font-size:12px}.sample-table th,.sample-table td{padding:10px 12px;text-align:right;white-space:nowrap}.sample-table th:first-child,.sample-table td:first-child{text-align:left}.sample-table th{color:var(--gold-2)}
.graph-actions{position:relative;z-index:2;margin-top:14px}.graph-actions .result-action-btn{min-height:46px}
.syntax-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:15px 0}.syntax-item{padding:15px;border:1px solid var(--line-soft);border-radius:12px;background:rgba(255,255,255,.012)}.syntax-item strong{display:block;margin-bottom:8px;color:#e3e5e8;font-size:13.5px}.syntax-item span{color:#969ca5;font-size:13px;line-height:1.6}
code{padding:2px 6px;border:1px solid rgba(244,189,70,.12);border-radius:6px;background:rgba(244,189,70,.05);color:var(--gold-2);font:600 .92em ui-monospace,SFMono-Regular,Consolas,monospace}
.editorial-byline a{display:inline;padding:0}
html[data-theme="light"] .range-grid input,html[data-theme="light"] .range-grid select,html[data-theme="light"] .expression-input{color:#243241;background:linear-gradient(180deg,#fff,#f2f6fa);border-color:rgba(38,55,76,.16)}
html[data-theme="light"] .canvas-wrap{background:#fff;border-color:rgba(38,55,76,.18)}
html[data-theme="light"] .small-btn{color:#243241;background:linear-gradient(180deg,#fff,#eaf0f6);border-color:rgba(38,55,76,.16)}
html[data-theme="light"] .sample-table-wrap,html[data-theme="light"] .syntax-item{border-color:rgba(38,55,76,.14);background:rgba(255,255,255,.7)}
html[data-theme="light"] .syntax-item strong{color:#243241}html[data-theme="light"] .syntax-item span{color:#5d6978}
@media(max-width:1180px){.graph-tool-shell{grid-template-columns:minmax(280px,.82fr) minmax(0,1.35fr)}.canvas-wrap,.canvas-wrap canvas{height:460px;min-height:460px}}
@media(max-width:1050px){.graph-tool-shell{grid-template-columns:1fr}.canvas-wrap,.canvas-wrap canvas{height:500px;min-height:500px}}
@media(max-width:720px){.graph-panel{padding:20px}.graph-toolbar{align-items:flex-start}.graph-toolbar-right{width:100%}.coordinate-readout{min-width:0;text-align:left}.canvas-wrap,.canvas-wrap canvas{height:390px;min-height:390px}.graph-help{display:block}.graph-help span{display:block;margin-top:4px}.syntax-grid{grid-template-columns:1fr}.range-grid{gap:10px}.button-row{flex-direction:column}.graph-actions{grid-template-columns:1fr}}
@media(max-width:470px){.expression-row{grid-template-columns:23px minmax(0,1fr)}.expression-toggle{width:20px;height:20px}.graph-panel{padding:16px}.canvas-wrap,.canvas-wrap canvas{height:340px;min-height:340px}.range-grid{grid-template-columns:1fr}.range-grid .field[style]{grid-column:auto!important}}
@media print{.site-header,.breadcrumbs,.hero .trust-row,.graph-control-panel,.graph-toolbar,.graph-help,.graph-actions,.toc-card,footer,.ad-slot{display:none!important}.graph-tool-shell{display:block;padding:0;border:0;box-shadow:none}.graph-panel{box-shadow:none;border-color:#ccc}.canvas-wrap{min-height:440px}.canvas-wrap canvas{height:440px}.content-layout{display:block}.content-card{break-inside:avoid}}
