/* Teloryx — self-hosted fonts (latin + latin-ext subsets) */
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('./hanken-grotesk-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('./hanken-grotesk-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('./hanken-grotesk-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('./hanken-grotesk-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('./hanken-grotesk-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('./hanken-grotesk-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('./hanken-grotesk-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('./hanken-grotesk-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('./ibm-plex-mono-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('./ibm-plex-mono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('./ibm-plex-mono-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('./ibm-plex-mono-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('./ibm-plex-mono-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('./ibm-plex-mono-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400;font-display:swap;src:url('./newsreader-400-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400;font-display:swap;src:url('./newsreader-400-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:400;font-display:swap;src:url('./newsreader-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:400;font-display:swap;src:url('./newsreader-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:500;font-display:swap;src:url('./newsreader-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:500;font-display:swap;src:url('./newsreader-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('./space-grotesk-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('./space-grotesk-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('./space-grotesk-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('./space-grotesk-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* Arabic (ar) — IBM Plex Sans Arabic, arabic subset only; Latin falls through to the Latin stack */
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('./ibm-plex-sans-arabic-400-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url('./ibm-plex-sans-arabic-500-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url('./ibm-plex-sans-arabic-600-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url('./ibm-plex-sans-arabic-700-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}

/* Hebrew (he) — IBM Plex Sans Hebrew, hebrew subset only; Latin falls through to the Latin stack */
@font-face{font-family:'IBM Plex Sans Hebrew';font-style:normal;font-weight:400;font-display:swap;src:url('./ibm-plex-sans-hebrew-400-hebrew.woff2') format('woff2');unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;}
@font-face{font-family:'IBM Plex Sans Hebrew';font-style:normal;font-weight:500;font-display:swap;src:url('./ibm-plex-sans-hebrew-500-hebrew.woff2') format('woff2');unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;}
@font-face{font-family:'IBM Plex Sans Hebrew';font-style:normal;font-weight:600;font-display:swap;src:url('./ibm-plex-sans-hebrew-600-hebrew.woff2') format('woff2');unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;}
@font-face{font-family:'IBM Plex Sans Hebrew';font-style:normal;font-weight:700;font-display:swap;src:url('./ibm-plex-sans-hebrew-700-hebrew.woff2') format('woff2');unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;}


/* ==== tokens.css ==== */
/* ============================================================
   TELORYX — Design tokens
   One system. Ink + paper + one owned heritage gold. Green/amber/red
   are *data signals only* (on-target / adjust / over), never decoration.
   ============================================================ */

:root {
  color-scheme: light;

  /* --- Brand (heritage gold, owned, no gradients) --- */
  --brand-50:  #FBF5E8;
  --brand-100: #F5E7CB;
  --brand-200: #EAD19F;
  --brand-300: #DDBB76;
  --brand-400: #C99B4E;
  --brand-500: #AF7D37;
  --brand-600: #95652C;   /* core */
  --brand-700: #785022;
  --brand-800: #5F3E1B;
  --brand-900: #452B12;
  --brand-bright: #E1B86D; /* on dark */

  /* --- Ink / neutral (cool graphite) --- */
  --ink-950: #0A0C10;
  --ink-900: #0E1116;
  --ink-800: #171B22;
  --ink-700: #232833;
  --ink-600: #333A47;
  --ink-500: #4B5362;
  --ink-400: #6B7280;
  --ink-300: #969CA8;
  --ink-200: #C3C7CF;
  --ink-100: #E3E5EA;

  /* --- Paper / warm off-white --- */
  --paper-0:  #FFFFFF;
  --paper-50: #FAF9F6;
  --paper-100:#F4F2EC;
  --paper-200:#EBE8DE;
  --paper-300:#DAD7CC;

  /* --- Data-signal palette (charts, calculator, status ONLY) --- */
  --ok:   #12A150;  --ok-soft:   #E4F4EA;  --ok-ink:   #0A6B36;
  --warn: #B9760F;  --warn-soft: #F8EFDD;  --warn-ink: #8A5605;
  --over: #DC2B31;  --over-soft: #FBE6E7;  --over-ink: #A11116;

  /* --- Semantic surfaces (light) --- */
  --bg:        var(--paper-50);
  --surface:   var(--paper-0);
  --surface-2: var(--paper-100);
  --surface-3: var(--paper-200);
  --sunken:    var(--paper-100);
  --line:      var(--paper-300);
  --line-soft: #E7E4DA;
  --line-strong: var(--ink-200);

  --text:      var(--ink-900);
  --text-2:    var(--ink-600);
  --text-3:    var(--ink-400);
  --text-inv:  var(--paper-50);

  --brand:      var(--brand-600);
  --brand-hover:var(--brand-700);
  --on-brand:   #FFFFFF;
  --focus:      var(--brand-500);
  --link:       var(--brand-700);

  /* --- Type families --- */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-serif:   "Newsreader", Georgia, "Times New Roman", serif;

  /* --- Type scale (fluid, 1.2–1.25 modular) --- */
  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.90rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.16vw, 1.02rem);
  --step-1:  clamp(1.12rem, 1.06rem + 0.30vw, 1.30rem);
  --step-2:  clamp(1.34rem, 1.24rem + 0.50vw, 1.70rem);
  --step-3:  clamp(1.62rem, 1.45rem + 0.85vw, 2.30rem);
  --step-4:  clamp(1.95rem, 1.66rem + 1.45vw, 3.15rem);
  --step-5:  clamp(2.35rem, 1.85rem + 2.45vw, 4.30rem);
  --step-6:  clamp(2.85rem, 2.00rem + 4.20vw, 5.80rem);

  /* --- Spacing (4px base) --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* --- Radii --- */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-2xl: 30px; --r-pill: 999px;

  /* --- Elevation (soft, cool-tinted; used sparingly) --- */
  --sh-1: 0 1px 2px rgba(14,17,22,.05), 0 1px 1px rgba(14,17,22,.04);
  --sh-2: 0 2px 4px rgba(14,17,22,.05), 0 4px 12px rgba(14,17,22,.06);
  --sh-3: 0 8px 24px rgba(14,17,22,.09), 0 2px 6px rgba(14,17,22,.06);
  --sh-4: 0 18px 48px rgba(14,17,22,.14), 0 6px 16px rgba(14,17,22,.08);
  --ring: 0 0 0 3px color-mix(in srgb, var(--focus) 40%, transparent);

  /* --- Layout --- */
  --maxw: 1200px;
  --maxw-prose: 68ch;
  --maxw-wide: 1360px;
  --gutter: clamp(1rem, 0.5rem + 3vw, 2.5rem);
  --header-h: 68px;

  /* --- Motion --- */
  --ease: cubic-bezier(.2,.7,.3,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-1: .12s; --dur-2: .2s; --dur-3: .34s;

  --z-header: 100; --z-drawer: 200; --z-modal: 300; --z-toast: 400;
}

/* ============ DARK ============ */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:        var(--ink-950);
  --surface:   var(--ink-900);
  --surface-2: var(--ink-800);
  --surface-3: var(--ink-700);
  --sunken:    #0B0E13;
  --line:      #262C37;
  --line-soft: #1E232C;
  --line-strong: #3A4250;

  --text:      var(--paper-50);
  --text-2:    var(--ink-200);
  --text-3:    var(--ink-300);
  --text-inv:  var(--ink-900);

  --brand:      var(--brand-bright);
  --brand-hover:#F1CA82;
  --on-brand:   #0A0C10;
  --focus:      var(--brand-bright);
  --link:       var(--brand-bright);

  --ok-soft:   #0F2A1B;  --ok-ink:   #58D08B;
  --warn-soft: #2C2210;  --warn-ink: #E0A94A;
  --over-soft: #2E1416;  --over-ink: #F1888C;

  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 2px 6px rgba(0,0,0,.45);
  --sh-3: 0 10px 28px rgba(0,0,0,.55);
  --sh-4: 0 20px 52px rgba(0,0,0,.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:var(--ink-950); --surface:var(--ink-900); --surface-2:var(--ink-800);
    --surface-3:var(--ink-700); --sunken:#0B0E13; --line:#262C37; --line-soft:#1E232C; --line-strong:#3A4250;
    --text:var(--paper-50); --text-2:var(--ink-200); --text-3:var(--ink-300); --text-inv:var(--ink-900);
    --brand:var(--brand-bright); --brand-hover:#F1CA82; --on-brand:#0A0C10; --focus:var(--brand-bright); --link:var(--brand-bright);
    --ok-soft:#0F2A1B; --ok-ink:#58D08B; --warn-soft:#2C2210; --warn-ink:#E0A94A; --over-soft:#2E1416; --over-ink:#F1888C;
    --sh-1:0 1px 2px rgba(0,0,0,.4); --sh-2:0 2px 6px rgba(0,0,0,.45); --sh-3:0 10px 28px rgba(0,0,0,.55); --sh-4:0 20px 52px rgba(0,0,0,.6);
  }
}

/* Phone scale: the desktop type ramp is intentionally compressed so translated
   headings and controls stay airy instead of colliding at narrow widths. */
@media (max-width: 600px) {
  :root {
    --step--2: .68rem;
    --step--1: .78rem;
    --step-0: .9rem;
    --step-1: 1.02rem;
    --step-2: 1.2rem;
    --step-3: 1.46rem;
    --step-4: 1.72rem;
    --step-5: clamp(1.88rem, 8.4vw, 2.32rem);
    --step-6: clamp(2.12rem, 9.5vw, 2.7rem);
    --gutter: .9rem;
    --header-h: 56px;
  }
}

/* ==== base.css ==== */
/* ============================================================
   TELORYX — base: reset, typography, base elements
   ============================================================ */


*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  min-height: 100vh;
}
html { overflow-x: clip; }

/* A quiet technical rule, reserved for page introductions. */
.tx-grid-bg { position: relative; }
.tx-grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--line) 44%, transparent), transparent);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: center bottom;
  opacity: .7;
}
.tx-grid-bg > * { position: relative; z-index: 1; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); letter-spacing: -0.018em; }
h3 { font-size: var(--step-2); letter-spacing: -0.014em; }
h4 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--link); }

strong, b { font-weight: 600; color: var(--text); }
small { font-size: var(--step--1); }

/* Numbers & measurements are always mono w/ tabular figures — the brand signature */
.num, [data-num], .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
[dir="rtl"] :is(.num, [data-num], .mono, .affix, .val, .units, .ml, .dc-dose, .dc-draw, .h1-vial) {
  direction: ltr;
  unicode-bidi: isolate;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

ul, ol { padding-inline-start: 1.3em; }
li { margin-block: 0.28em; }
li::marker { color: var(--brand); }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

/* Focus — visible, on-brand, never removed */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--text); }

/* Form base */
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
::placeholder { color: var(--text-3); opacity: 1; }

/* Skip link */
.skip-link {
  position: absolute; inset-inline-start: var(--sp-4); top: -100px; z-index: var(--z-toast);
  background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 600; transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* Layout primitives */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--maxw-wide); }
.container-prose { max-width: var(--maxw-prose); }
.stack > * + * { margin-block-start: var(--flow, 1rem); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Section rhythm */
.section { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 1.4rem + 3vw, 3.5rem); }

/* Small context label; restrained enough to support rather than decorate. */
.kicker {
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0; color: var(--brand);
  display: inline-flex; align-items: center;
}

@media (max-width: 600px) {
  body { line-height: 1.52; }
  h1, h2, h3, h4 { line-height: 1.14; text-wrap: pretty; overflow-wrap: anywhere; }
  .section { padding-block: 2.4rem; }
  .section-tight { padding-block: 1.65rem; }
  .container { padding-inline: var(--gutter); }
}

/* ==== components.css ==== */
/* ============================================================
   TELORYX — components
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--surface); --_fg: var(--text); --_bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
  line-height: 1; padding: .78em 1.15em; border-radius: var(--r-md);
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-1) var(--ease), background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { --_bg: var(--brand); --_fg: var(--on-brand); --_bd: var(--brand); box-shadow: var(--sh-1); }
.btn-primary:hover { --_bg: var(--brand-hover); --_bd: var(--brand-hover); box-shadow: var(--sh-2); }
.btn-ghost { --_bg: transparent; --_bd: var(--line); }
.btn-ghost:hover { --_bg: var(--surface-2); --_bd: var(--line-strong); }
.btn-solid { --_bg: var(--text); --_fg: var(--bg); --_bd: var(--text); }
.btn-sm { padding: .55em .85em; font-size: var(--step--1); border-radius: var(--r-sm); }
.btn-lg { padding: .95em 1.5em; font-size: var(--step-1); }
.btn-block { width: 100%; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500;
  letter-spacing: .04em; padding: .32em .6em; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
}
.badge-brand { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 32%, transparent); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.badge-ok   { color: var(--ok-ink);   background: var(--ok-soft);   border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.badge-warn { color: var(--warn-ink); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 34%, transparent); }
.badge-over { color: var(--over-ink); background: var(--over-soft); border-color: color-mix(in srgb, var(--over) 34%, transparent); }
.badge-dot::before { content:""; width:.5em; height:.5em; border-radius:50%; background: currentColor; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-5);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--brand); box-shadow: var(--sh-1); transform: translateY(-1px); }
.card-hoverable:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.site-header[data-stuck="true"] { border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.header-inner { display: flex; align-items: center; gap: var(--sp-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .48rem; text-decoration: none; color: var(--brand); flex-shrink: 0; }
.brand .tx-mark {
  width: 39px; height: 39px; flex: 0 0 39px; object-fit: contain;
}
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: .105em; }
.brand-word .rx { color: inherit; }

.nav-primary { display: flex; align-items: center; gap: .15rem; margin-inline-start: var(--sp-4); }
.nav-primary a, .nav-trigger {
  font-family: var(--font-display); font-weight: 500; font-size: .96rem; color: var(--text-2);
  padding: .5rem .7rem; border-radius: var(--r-sm); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.nav-primary a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.nav-primary a[aria-current="page"] { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: .4rem; margin-inline-start: auto; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm);
  color: var(--text-2); border: 1px solid transparent; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }

/* Mega menu */
.nav-item { position: relative; }
.mega {
  position: absolute; inset-inline-start: 0; top: calc(100% + 8px);
  min-width: 320px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: var(--sp-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility var(--dur-2);
}
.nav-item:hover .mega, .nav-item:focus-within .mega, .mega[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.mega a { display: block; padding: .55rem .7rem; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-family: var(--font-body); font-weight: 500; }
.mega a:hover { background: var(--surface-2); color: var(--text); }

/* Mobile nav */
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav-primary { display: none; }
  .menu-toggle { display: inline-grid; }
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: .35rem; display: none;
}
.lang-menu[data-open="true"] { display: block; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .7rem; border-radius: var(--r-sm); text-decoration: none; color: var(--text-2); font-weight: 500; }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a[aria-current="true"] { color: var(--brand); }
.lang-menu .native { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: var(--sp-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-6); padding-block: var(--sp-7); }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 500; margin-bottom: var(--sp-3); }
.footer-col a { display: block; color: var(--text-2); text-decoration: none; padding: .28rem 0; font-size: var(--step--1); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; color: var(--text-3); font-size: var(--step--1); }
.footer-disclaimer { font-size: var(--step--1); color: var(--text-3); max-width: 46ch; line-height: 1.5; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 600px) {
  .header-inner { gap: .25rem; }
  .brand { gap: .34rem; min-width: 0; }
  .brand .tx-mark { width: 31px; height: 31px; flex-basis: 31px; }
  .brand-word { font-size: .96rem; letter-spacing: .075em; }
  .header-actions { gap: 0; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 18px; height: 18px; }
  .lang-menu { position: fixed; inset-inline: .75rem; top: calc(var(--header-h) + .5rem); min-width: 0; max-height: calc(100dvh - var(--header-h) - 1rem); overflow-y: auto; }
  .mobile-nav .container { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding-block: .55rem 1rem; }
  .mobile-nav a, .mobile-nav summary { padding-block: .56rem; font-size: .88rem; }
  .btn { font-size: .86rem; white-space: normal; text-align: center; line-height: 1.15; }
  .btn-lg { padding: .78em 1em; font-size: .92rem; }
  .card { padding: 1rem; border-radius: var(--r-sm); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.7rem; padding-block: 2.3rem; }
  .footer-col a { padding-block: .22rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .drawer-head { padding: 1.2rem 1rem .8rem; }
  .drawer-body { padding: 0 1rem 1.2rem; }
  .field { margin-bottom: .85rem; }
  .prose > * + * { margin-block-start: .85em; }
  .prose h2 { margin-block-start: 1.55em; }
  .prose h3 { margin-block-start: 1.2em; }
  .prose p, .prose li, .prose-serif p, .prose-serif li { font-size: .98rem; line-height: 1.62; }
  .callout { padding: .85rem; gap: .65rem; }
}

/* ---------- Contact drawer ---------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: color-mix(in srgb, var(--ink-950) 55%, transparent);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-3) var(--ease), visibility var(--dur-3);
  backdrop-filter: blur(2px);
}
.drawer-scrim[data-open="true"] { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: var(--z-drawer);
  width: min(480px, 100vw); background: var(--surface); border-inline-start: 1px solid var(--line);
  box-shadow: var(--sh-4); transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease-out); overflow-y: auto;
  display: flex; flex-direction: column;
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer[data-open="true"] { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-6) var(--sp-6) var(--sp-4); }
.drawer-body { padding: 0 var(--sp-6) var(--sp-6); }
.field { display: block; margin-bottom: var(--sp-4); }
.field > .label { display: flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); margin-bottom: .4rem; }
.field .req { color: var(--brand); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; background: var(--bg); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: var(--step--2); color: var(--text-3); margin-top: .3rem; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--over); }
.field .err { display: none; color: var(--over-ink); font-size: var(--step--2); margin-top: .3rem; }
.field[data-invalid="true"] .err { display: block; }

/* ---------- Master-chart filter (search input on /chart/) ---------- */
.tx-tablefilter {
  width: 100%; max-width: 24rem; margin-top: var(--sp-4);
  padding: .7rem .9rem; font-size: var(--step-0); color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.tx-tablefilter::placeholder { color: var(--text-3); }
.tx-tablefilter:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

/* ---------- Prose (articles / long-form) ---------- */
.prose { max-width: var(--maxw-prose); }
.prose > * + * { margin-block-start: 1.1em; }
.prose > :first-child { margin-block-start: 0; }
.prose h2 { margin-block-start: 2em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h3 { margin-block-start: 1.5em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose p, .prose li { color: var(--text-2); font-size: var(--step-1); line-height: 1.72; }
.prose-serif p, .prose-serif li { font-family: var(--font-serif); font-size: clamp(1.08rem,1rem + .4vw,1.24rem); line-height: 1.72; }
.prose a { font-weight: 500; }
.prose strong { color: var(--text); }
.prose ul { list-style: none; padding-inline-start: 0; }
.prose ul > li { position: relative; padding-inline-start: 1.5em; }
.prose ul > li::before { content: ""; position: absolute; inset-inline-start: .1em; top: .72em; width: .5rem; height: 2px; background: var(--brand); border-radius: 2px; }
.prose blockquote { border-inline-start: 3px solid var(--brand); padding-inline-start: 1.1rem; color: var(--text-2); font-family: var(--font-serif); font-style: italic; }
.prose sup a { font-family: var(--font-mono); font-size: .7em; text-decoration: none; color: var(--brand); font-weight: 600; }

/* ---------- Data table (generic, from md) ---------- */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.data-table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
table.data-table th, table.data-table td { padding: .8rem 1rem; text-align: start; border-bottom: 1px solid var(--line-soft); }
table.data-table th { font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); background: var(--surface-2); position: sticky; top: 0; }
table.data-table td { color: var(--text-2); }
table.data-table td:not(:first-child) { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.data-table tr:last-child td { border-bottom: none; }

/* ---------- Callout ---------- */
.callout { display: flex; gap: .9rem; padding: var(--sp-4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); }
.callout .ico { flex-shrink: 0; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.callout-warn { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-soft); }
.callout-warn .ico { color: var(--warn-ink); }
.callout h4 { margin-bottom: .2rem; }
.callout p { color: var(--text-2); font-size: var(--step--1); }

/* ==== dosage.css ==== */
/* ============================================================
   TELORYX — Dosage chart. The money component.
   A precision readout: big mono doses, a to-scale draw bar per row.
   Desktop = aligned table. Mobile = stacked cards (same markup).
   ============================================================ */

.dosechart {
  --pad: clamp(.85rem, .5rem + 1.2vw, 1.15rem);
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: clip;
  background: var(--surface); box-shadow: var(--sh-1);
}
.dosechart-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  padding: var(--pad) var(--pad) calc(var(--pad) - .2rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(0deg, transparent, color-mix(in srgb, var(--brand) 4%, transparent));
}
.dosechart-head .title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.dosechart-head .meta { margin-inline-start: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

.dosechart table { width: 100%; border-collapse: collapse; }
.dosechart thead th {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-3);
  text-align: start; padding: .7rem var(--pad); background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.dosechart tbody td { padding: var(--pad); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.dosechart tbody tr:last-child td { border-bottom: none; }
.dosechart tbody tr { transition: background var(--dur-1) var(--ease); }
.dosechart tbody tr:hover { background: color-mix(in srgb, var(--brand) 3.5%, transparent); }

/* phase cell */
.dc-phase { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: var(--step-0); white-space: nowrap; }
.dc-phase .sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--step--2); color: var(--text-3); }

/* dose cell — emphasized hero number */
.dc-dose { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dc-dose .big { font-size: var(--step-2); font-weight: 600; color: var(--brand); letter-spacing: -0.02em; line-height: 1; }
.dc-dose .sub { display: block; font-size: var(--step--2); color: var(--text-3); margin-top: .25rem; }

/* draw cell — units + to-scale fill bar */
.dc-draw { min-width: 190px; }
.dc-draw .units { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--step-1); color: var(--text); }
.dc-draw .ml { font-family: var(--font-mono); color: var(--text-3); font-size: var(--step--1); margin-inline-start: .35rem; }
.dc-bar {
  position: relative; height: 9px; margin-top: .5rem; border-radius: var(--r-pill);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%);
  border: 1px solid var(--line); overflow: hidden;
}
.dc-bar::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
  inline-size: calc(var(--fill, 0) * 1%); background: var(--brand);
  border-radius: var(--r-pill); transition: inline-size var(--dur-3) var(--ease);
}
.dc-bar[data-over="true"]::after { background: var(--over); }

/* generic extra columns (frequency, notes) */
.dc-cell { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-2); font-size: var(--step-0); }
.dc-cell--text { font-family: var(--font-body); }

/* Responsive: collapse to cards */
@media (max-width: 720px) {
  .dosechart thead { display: none; }
  .dosechart table, .dosechart tbody, .dosechart tr, .dosechart td { display: block; width: 100%; }
  .dosechart tbody tr { padding: var(--pad); border-bottom: 1px solid var(--line); }
  .dosechart tbody tr:last-child { border-bottom: none; }
  .dosechart tbody td { padding: 0; border: none; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .dosechart tbody td + td { margin-top: .6rem; }
  .dosechart tbody td::before {
    content: attr(data-label); font-family: var(--font-mono); font-size: var(--step--2);
    text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); flex-shrink: 0;
  }
  .dc-phase { font-size: var(--step-1); }
  .dc-draw { min-width: 0; flex: 1; }
  .dc-draw .bar-wrap { flex: 1; margin-inline-start: 1rem; }
  .dc-bar { margin-top: 0; }
}

@media (max-width: 600px) {
  .dosechart { --pad: .75rem; border-radius: var(--r-md); }
  .dosechart-head { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .dosechart-head .meta { margin-inline-start: 0; }
  .dosechart tbody td { gap: .65rem; min-width: 0; }
  .dosechart tbody td::before { max-width: 42%; white-space: normal; overflow-wrap: anywhere; }
  .dosechart tbody td > * { min-width: 0; text-align: end; overflow-wrap: anywhere; }
  .dc-phase { white-space: normal; }
  .dc-draw .bar-wrap { margin-inline-start: .5rem; min-width: 7rem; }
  .recipe { grid-template-columns: 1fr 1fr; }
  .recipe .cell { padding: .8rem; }
  .recipe .v { font-size: 1.06rem; }
  .supplies { grid-template-columns: 1fr; gap: .65rem; }
}

/* ---------- Reconstitution "recipe" strip ---------- */
.recipe {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: clip;
}
.recipe .cell { background: var(--surface); padding: var(--sp-4) var(--sp-5); }
.recipe .k { font-family: var(--font-mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); display: block; margin-bottom: .35rem; }
.recipe .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--step-2); font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.recipe .v .u { font-size: .55em; color: var(--text-3); font-weight: 500; margin-inline-start: .15rem; }
.recipe .cell.accent .v { color: var(--brand); }

/* key-fact summary bullets */
.keyfacts { display: grid; gap: .7rem; }
.keyfacts li { display: flex; gap: .7rem; align-items: flex-start; list-style: none; }
.keyfacts .tick { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.keyfacts .txt { color: var(--text-2); }
.keyfacts .txt strong { color: var(--text); }

/* supplies list */
.supplies { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: var(--sp-4); }
.supply { display: flex; gap: .9rem; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.supply .art { flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; color: var(--brand); }
.supply .art svg { width: 28px; height: 28px; }
.supply h4 { font-size: var(--step-0); }
.supply p { font-size: var(--step--2); color: var(--text-3); }

/* ==== calculator.css ==== */
/* ============================================================
   TELORYX — Reconstitution calculator
   ============================================================ */
.calc {
  border: 1px solid var(--line-strong); border-radius: var(--r-2xl); background: var(--surface);
  box-shadow: var(--sh-3); overflow: clip;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-panel { padding: clamp(1.25rem, .8rem + 1.8vw, 2.2rem); background: var(--surface); }
.calc-panel + .calc-panel { border-inline-start: 1px solid var(--line); }
@media (max-width: 860px) { .calc-panel + .calc-panel { border-inline-start: none; border-top: 1px solid var(--line); } }

.calc-step { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.calc-step .n {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--brand); color: var(--on-brand); font-family: var(--font-mono); font-weight: 600; font-size: .85rem;
}
.calc-step h3 { font-size: var(--step-1); }

.calc-field { margin-bottom: 1.1rem; }
.calc-field > label { display: flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); margin-bottom: .45rem; }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix input {
  width: 100%; padding: .8rem .9rem; padding-inline-end: 3.4rem;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--step-1); font-weight: 500;
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.input-affix input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input-affix input[aria-invalid="true"] { border-color: var(--over); }
.input-affix .affix { position: absolute; inset-inline-end: .9rem; font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-3); pointer-events: none; }
.input-combo { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.input-combo select, .calc-select {
  font-family: var(--font-mono); padding: .8rem .9rem; background: var(--bg);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md); font-size: var(--step-0);
}
.calc-select { width: 100%; }
.calc-select:focus, .input-combo select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

/* quick chips */
.pdc-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.pdc-chips button {
  font-family: var(--font-mono); font-size: var(--step--2); padding: .35rem .6rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2);
  transition: all var(--dur-1) var(--ease);
}
.pdc-chips button:hover, .pdc-chips button:focus-visible { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, transparent); transform: translateY(-1px); }

/* segmented syringe control */
.seg { display: inline-flex; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px; gap: 3px; }
.seg button {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; padding: .5rem .8rem;
  border-radius: calc(var(--r-md) - 4px); color: var(--text-2); transition: all var(--dur-1) var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); box-shadow: var(--sh-1); }
.seg-hint { font-size: var(--step--2); color: var(--text-3); margin-top: .5rem; min-height: 2.4em; line-height: 1.4; }

/* readouts */
.readouts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: clip; margin-top: .4rem; }
.readout { background: var(--surface-2); padding: .9rem 1rem; }
.readout .k { display: block; font-family: var(--font-mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: .25rem; }
.readout .val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--step-1); font-weight: 600; color: var(--text); }
[dir="rtl"] .calc :is(input[type="number"], .input-combo, .input-affix, .pdc-chips, .seg, .result-hero .draw, .result-hero .ml) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* hero result */
.calc-result {
  background: var(--sunken); border-top: 1px solid var(--line-strong);
  padding: clamp(1.25rem,.8rem + 2vw,2.25rem); box-shadow: inset 0 3px 0 var(--brand);
}
.result-hero { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.result-hero .draw { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--brand); }
.result-hero .draw .u { font-size: .4em; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.result-hero .equals { font-family: var(--font-mono); color: var(--text-3); }
.result-hero .ml { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--step-2); color: var(--text-2); }

.pulseable { transition: transform var(--dur-2) var(--ease); }
.pdc-pulse { animation: pdcPulse .5s var(--ease); }
@keyframes pdcPulse { 0%{transform:scale(1)} 30%{transform:scale(1.06)} 100%{transform:scale(1)} }

/* syringe drawing */
.syringe-stage {
  margin-top: 1.25rem; padding: .75rem 1rem .2rem; border: 1px solid var(--line);
  border-radius: var(--r-xl); background: var(--surface); overflow: hidden;
}
.syringe { width: 100%; height: auto; }
.syringe .barrel-shadow { fill: color-mix(in srgb, var(--text) 10%, transparent); }
.syringe .barrel-body { fill: color-mix(in srgb, var(--surface) 88%, var(--brand) 12%); stroke: var(--line-strong); stroke-width: 2; }
.syringe #pdLiquid { fill: color-mix(in srgb, var(--brand) 78%, var(--surface)); transform-origin: 68px center; transition: transform var(--dur-3) var(--ease); }
.syringe .barrel-outline { fill: none; stroke: var(--text); stroke-width: 2.4; }
.syringe .barrel-highlight { fill: none; stroke: color-mix(in srgb, white 60%, transparent); stroke-width: 2; stroke-linecap: round; opacity: .45; }
.syringe .needle, .syringe .hub { fill: var(--ink-400); }
.syringe .needle-line, .syringe .needle-bevel { stroke: var(--ink-300); stroke-width: 2.5; stroke-linecap: round; }
.syringe .tick { stroke: var(--text-3); stroke-width: 1.2; }
.syringe .tick.major { stroke: var(--text-2); stroke-width: 1.6; }
.syringe .ticklbl { fill: var(--text-3); font-family: var(--font-mono); font-size: 13px; }
.syringe #pdSeal { fill: var(--ink-500); }
.syringe #pdRod { fill: var(--ink-300); }
.syringe .flange, .syringe .plunger-pad { fill: var(--ink-400); }
.syringe #pdArrow { fill: var(--brand); transition: transform var(--dur-3) var(--ease), opacity var(--dur-2); }
.syringe #pdBarrel.over .barrel-outline { stroke: var(--over); }
.syringe #pdBarrel.over ~ * #pdLiquid { fill: var(--over); }
.syringe.is-over #pdLiquid { fill: var(--over); }

/* guidance messages */
.pdc-mark { font-family: var(--font-mono); font-size: var(--step--1); margin-top: 1rem; min-height: 1.4em; }
.pdc-mark.ok { color: var(--ok-ink); }
.pdc-mark.off { color: var(--warn-ink); }
.pdc-note { font-size: var(--step--1); color: var(--text-2); margin-top: .5rem; }
.pdc-note.alert { color: var(--over-ink); }
.pdc-validation { color: var(--over-ink); font-size: var(--step--1); margin-top: .6rem; }
.pdc-rec { margin-top: .8rem; }

.calc-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
#pdc-copy.done { color: var(--ok-ink); border-color: var(--ok); }

@media (max-width: 600px) {
  .calc { border-radius: var(--r-md); }
  .calc-panel { padding: 1rem; }
  .calc-step { margin-bottom: .85rem; }
  .calc-step .n { width: 28px; height: 28px; border-radius: 8px; }
  .calc-field { margin-bottom: .85rem; }
  .input-affix input, .input-combo select, .calc-select { padding-block: .68rem; }
  .readout { padding: .72rem; min-width: 0; }
  .readout .k { overflow-wrap: anywhere; letter-spacing: .04em; }
  .readout .val { font-size: .94rem; overflow-wrap: anywhere; }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .seg button { padding-inline: .35rem; }
  .calc-result { padding: 1rem; }
  .result-hero { gap: .42rem .55rem; }
  .result-hero .draw { font-size: 2rem; }
  .syringe-stage { padding: .45rem .45rem 0; border-radius: var(--r-md); }
  .syringe { min-width: 470px; }
  .syringe-stage { overflow-x: auto; }
}

/* tooltips */
.pdc-tip { position: relative; display: inline-flex; }
.pdc-tip-btn { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text-3); font-size: 11px; font-family: var(--font-mono); }
.pdc-tip-btn:hover { color: var(--brand); border-color: var(--brand); }
.pdc-tip .tip-body {
  position: absolute; bottom: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(-50%) translateY(4px);
  width: 240px; background: var(--ink-900); color: var(--paper-50); padding: .7rem .8rem; border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: var(--step--2); line-height: 1.45; box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; transition: all var(--dur-2) var(--ease); z-index: 5; text-transform: none; letter-spacing: normal;
}
[dir="rtl"] .pdc-tip .tip-body { inset-inline-start: auto; inset-inline-end: 50%; transform: translateX(50%) translateY(4px); }
.pdc-tip.open .tip-body { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
[dir="rtl"] .pdc-tip.open .tip-body { transform: translateX(50%) translateY(0); }
.pdc-tip.suppressed .tip-body { opacity: 0 !important; visibility: hidden !important; }

/* ==== site.css ==== */
/* ============================================================
   TELORYX — page layout & chrome extras
   ============================================================ */

/* theme-conditional icon visibility */
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline-flex; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: inline-flex; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}
@media (max-width: 560px) { .hide-sm { display: none !important; } }

/* mobile nav drawer */
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav .container { display: flex; flex-direction: column; padding-block: var(--sp-4); gap: .1rem; }
.mobile-nav a, .mobile-nav summary { padding: .7rem .2rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.mobile-nav a.btn { border-bottom: none; }
.mnav-cats summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.mnav-cats summary::after { content: "+"; color: var(--brand); }
.mnav-cats[open] summary::after { content: "–"; }
.mnav-cats a { padding-inline-start: 1rem; font-weight: 400; font-family: var(--font-body); color: var(--text-2); }
@media (min-width: 901px) { .mobile-nav { display: none !important; } }

/* breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--text-3); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }
.breadcrumb [aria-current] { color: var(--text-2); }

/* section heads */
.sec-head { margin-bottom: 1.4rem; }
.sec-head .kicker { margin-bottom: .6rem; }
.sec-lead { color: var(--text-2); max-width: 60ch; margin: -.6rem 0 1.4rem; font-size: var(--step-1); }

/* ---- protocol hero ---- */
.protocol-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: var(--sp-7); align-items: center; }
.protocol-hero-main h1 { font-size: var(--step-5); margin: .4rem 0 0; }
.h1-vial { font-family: var(--font-mono); font-weight: 500; font-size: .48em; color: var(--brand); vertical-align: middle; margin-inline-start: .3em; letter-spacing: -0.01em; }
.protocol-hero-main .lead { margin-top: 1.1rem; font-size: var(--step-1); color: var(--text-2); max-width: 58ch; }
.protocol-hero-main .lead p + p { margin-top: .8rem; }
.hero-cta { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-keyfacts { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.tx-vial { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #0e1014; color: #f8f4eb; }
.tx-vial-photo { width: 100%; height: 100%; object-fit: contain; }
.tx-vial-photo--dark { display: none; }
.tx-vial-label { position: absolute; inset-inline: 10.5%; top: 56.5%; height: 27%; display: grid; grid-template-columns: 40% 60%; grid-template-rows: 1fr auto; align-items: center; text-align: center; color: #f6f0e5; }
.tx-vial-label::after { content: ""; position: absolute; inset-block: 9%; inset-inline-start: 40%; width: 1px; background: #d9ae65; opacity: .78; }
.tx-vial-brand { align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .24em; font-family: var(--font-display); font-size: clamp(.55rem, 1vw, .82rem); line-height: 1; font-weight: 700; letter-spacing: .13em; color: #d9ae65; }
.tx-vial-mark { width: 2em; height: 2em; object-fit: contain; }
.tx-vial-rule { position: absolute; width: 28%; height: 1px; inset-inline-start: 9%; top: 75%; background: #d9ae65; opacity: .85; }
.tx-vial-name { grid-column: 2; grid-row: 1; width: 100%; min-height: 0; padding-inline: .4em; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: .13em; overflow: hidden; font-family: var(--font-display); font-size: clamp(.7rem, 1.5vw, 1.25rem); line-height: .98; font-weight: 700; letter-spacing: -.045em; color: #f8f1e5; }
.tx-vial-name > span { display: block; min-width: 0; max-width: 100%; overflow-wrap: anywhere; text-wrap: balance; }
.tx-vial--name-long .tx-vial-name { font-size: clamp(.6rem, 1.28vw, 1rem); }
.tx-vial--name-xl .tx-vial-name { font-size: clamp(.52rem, 1.06vw, .84rem); line-height: .95; }
.tx-vial--name-mid .tx-vial-name { font-size: clamp(.66rem, 1.38vw, 1.1rem); }
.tx-vial-strength { grid-column: 2; grid-row: 2; align-self: start; margin: .2em 0 0; font-family: var(--font-mono); font-size: clamp(.55rem, 1.1vw, .86rem); line-height: 1; font-weight: 600; color: #d9ae65; }
.tx-vial-category { display: none; }
.protocol-hero-art { display: grid; place-items: center; min-height: 420px; }
.protocol-hero-art .tx-vial { width: min(100%, 300px); aspect-ratio: 9 / 10; border-radius: 2px; box-shadow: 0 18px 50px rgba(14,17,22,.12); }
.protocol-hero-art .tx-vial-photo { object-fit: cover; object-position: center center; }
.protocol-hero-art .tx-vial-label { top: 59%; height: 29%; }
:root[data-theme="dark"] .tx-vial { background: #101318; }
:root[data-theme="dark"] .tx-vial-photo--light { display: none; }
:root[data-theme="dark"] .tx-vial-photo--dark { display: block; }
:root[data-theme="dark"] .protocol-hero-art .tx-vial { box-shadow: 0 20px 54px rgba(0,0,0,.35); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tx-vial { background: #101318; }
  :root:not([data-theme="light"]) .tx-vial-photo--light { display: none; }
  :root:not([data-theme="light"]) .tx-vial-photo--dark { display: block; }
}
@media (max-width: 860px) {
  .protocol-hero-grid { grid-template-columns: 1fr; }
  .protocol-hero-art { display: none; }
}

/* ---- protocol body (prose + aside) ---- */
.protocol-body { display: grid; grid-template-columns: 1fr 340px; gap: var(--sp-7); align-items: start; }
.protocol-aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: var(--sp-4); }
.aside-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .8rem; }
.aside-head svg { width: 20px; height: 20px; color: var(--brand); }
.aside-head h3 { font-size: var(--step-1); }
.protocol-aside .card ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.protocol-aside .card li { color: var(--text-2); font-size: var(--step--1); padding-inline-start: 1.2em; position: relative; }
.protocol-aside .card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: .45rem; height: 2px; background: var(--brand); border-radius: 2px; }
.callout-plain { background: var(--surface-2); }
@media (max-width: 860px) { .protocol-body { grid-template-columns: 1fr; } .protocol-aside { position: static; } }

/* references */
.reflist { counter-reset: r; list-style: none; padding: 0; display: grid; gap: .7rem; max-width: 76ch; }
.reflist li { counter-increment: r; position: relative; padding-inline-start: 2.4rem; color: var(--text-2); font-size: var(--step--1); }
.reflist li::before { content: counter(r); position: absolute; inset-inline-start: 0; top: 0; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; font-family: var(--font-mono); font-size: .75rem; color: var(--brand); border: 1px solid var(--line); border-radius: var(--r-sm); }
.ref-src { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.ref-link { display: inline-flex; vertical-align: middle; }
.ref-link svg { width: 15px; height: 15px; }
.prose sup.ref { font-family: var(--font-mono); font-size: .68em; color: var(--brand); font-weight: 600; }

/* ---- card grid + protocol/peptide cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: var(--sp-4); }
.tx-cardlink { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); color: var(--brand); margin-top: .8rem; }
.tx-cardlink svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease); }
.card-link:hover .tx-cardlink svg { transform: translateX(3px); }
[dir="rtl"] .card-link:hover .tx-cardlink svg { transform: translateX(-3px) scaleX(-1); }
[dir="rtl"] .tx-cardlink svg { transform: scaleX(-1); }

.tx-protocard { padding: 0; overflow: clip; display: flex; flex-direction: column; }
.tx-protocard-art { background: radial-gradient(circle at 50% 70%, #202630 0, #101318 56%, #0a0c10 100%); display: grid; place-items: center; height: 280px; overflow: hidden; border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .tx-protocard-art { background: #101318; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tx-protocard-art { background: #101318; } }
.tx-protocard-art .tx-vial { width: min(228px, calc(100% - 1.5rem)); }
.tx-vial--compact { aspect-ratio: 9 / 10; }
.tx-vial--compact .tx-vial-photo { object-fit: cover; object-position: center center; }
.tx-vial--compact .tx-vial-label { top: 59%; height: 29%; }
.tx-vial--compact .tx-vial-name { font-size: .7rem; }
.tx-vial--compact.tx-vial--name-mid .tx-vial-name { font-size: .64rem; }
.tx-vial--compact.tx-vial--name-long .tx-vial-name { font-size: .58rem; }
.tx-vial--compact.tx-vial--name-xl .tx-vial-name { font-size: .52rem; }
.tx-vial--compact .tx-vial-strength { font-size: .56rem; }
.tx-vial--compact .tx-vial-brand { font-size: .48rem; }
.tx-vial--compact .tx-vial-category { display: none; }
.tx-protocard-body { padding: var(--sp-4); }
.tx-protocard-body .badge { border: 0; border-radius: 0; background: transparent; padding: 0; font-family: var(--font-display); font-size: var(--step--2); color: var(--text-3); }
.tx-protocard-body h3 { font-size: var(--step-1); margin-top: .5rem; }
.tx-pepcard h3 { font-size: var(--step-1); margin: .6rem 0 .4rem; }

.breadcrumb svg, .tx-cardlink svg { flex-shrink: 0; }

/* ============ HOME ============ */
.hero { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-7); align-items: center; }
.hero-title { max-width: 11ch; font-size: var(--step-5); line-height: 1.02; margin: .75rem 0 0; }
.tx-underline { position: relative; color: var(--brand); white-space: nowrap; }
.tx-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .12em; background: var(--brand); border-radius: 2px; opacity: .35; }
.hero-lead { font-size: var(--step-1); color: var(--text-2); max-width: 52ch; margin-top: 1.3rem; }
.hero .hero-cta { margin-top: 1.8rem; }
.hero-meta { display: flex; gap: 1.8rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--step--1); }
.hero-meta b { color: var(--text); font-size: var(--step-1); margin-inline-end: .3rem; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-readout { margin-top: var(--sp-3); }
}

.readout-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-1); }
.readout-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.readout-card-head > span { font-family: var(--font-display); font-size: var(--step--1); font-weight: 600; color: var(--text-2); }
.rc-row { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.rc-k { color: var(--text-3); font-size: var(--step--1); }
.rc-v { font-weight: 600; }
.rc-v.accent { color: var(--brand); }
.rc-hero { display: flex; align-items: baseline; gap: .5rem; margin: 1.2rem 0 .3rem; }
.rc-hero .num:first-child { font-size: clamp(2.6rem, 2rem + 3vw, 3.4rem); font-weight: 600; color: var(--brand); line-height: 1; letter-spacing: -0.03em; }
.rc-u { color: var(--text-3); font-family: var(--font-mono); }
.rc-eq { color: var(--text-3); margin-inline: .3rem; }
.rc-ml { font-size: var(--step-2); color: var(--text-2); }
.rc-syringe { margin: 1rem 0; }
.rc-mark { display: flex; align-items: center; gap: .5rem; color: var(--ok-ink); font-family: var(--font-mono); font-size: var(--step--1); }
.rc-mark .tick { width: 18px; height: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); border-top: 1px solid var(--line); padding-top: var(--sp-5); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.step-n { color: var(--brand); font-size: var(--step--1); font-weight: 600; padding-top: .18rem; }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--text-2); font-size: var(--step--1); margin-top: .5rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.tx-calc-band { }
.band-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-7); align-items: center; background: var(--surface); border-block: 1px solid var(--line); padding: clamp(1.5rem,1rem + 3vw,3rem) 0; }
.band-split h2 { margin: .6rem 0 0; }
.band-split .btn { margin-top: 1.4rem; }
.band-art { opacity: .9; }
@media (max-width: 760px) { .band-split { grid-template-columns: 1fr; } .band-art { display: none; } }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-4); }
.tx-catcard { display: flex; align-items: center; gap: var(--sp-4); }
.tx-catcard > svg:last-child { width: 20px; height: 20px; color: var(--text-3); margin-inline-start: auto; transition: transform var(--dur-2) var(--ease); }
.tx-catcard:hover > svg:last-child { transform: translateX(3px); color: var(--brand); }
[dir="rtl"] .tx-catcard > svg:last-child { transform: scaleX(-1); }
.tx-catglyph { display: grid; place-items: center; width: 38px; height: 38px; color: var(--brand); flex-shrink: 0; }
.tx-catglyph svg { width: 24px; height: 24px; }
.tx-catglyph-lg { width: 40px; height: 40px; display: inline-grid; vertical-align: middle; margin-inline-end: .4rem; }
.tx-catcard h3 { font-size: var(--step-1); }
.tx-catcount { color: var(--text-3); font-size: var(--step--1); }

.contact-band { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; background: var(--surface); border-block: 1px solid var(--line); padding: clamp(1.8rem,1.2rem + 3vw,3.2rem) 0; }
.contact-band h2 { margin: 0; }

.hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.hub-head .sec-head { margin-bottom: 0; }

.tx-guidecard .tx-catglyph { margin-bottom: 1rem; }
.tx-guidecard h3 { font-size: var(--step-1); }
.tx-guidecard p { color: var(--text-2); font-size: var(--step--1); margin-top: .4rem; }

.aside-links { display: grid; gap: .1rem; }
.aside-links a { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--text-2); font-weight: 500; }
.aside-links a:hover { color: var(--brand); }
.aside-links a:last-child { border-bottom: none; }
.aside-links .num { color: var(--brand); }

@media (max-width: 600px) {
  .breadcrumb { margin-bottom: .85rem; font-size: .72rem; gap: .22rem; }
  .sec-head { margin-bottom: 1rem; }
  .sec-head .kicker { margin-bottom: .35rem; }
  .sec-lead { margin-top: -.35rem; margin-bottom: 1rem; font-size: .96rem; }
  .hero { padding-block: 2.15rem; }
  .hero-inner { gap: 1.35rem; }
  .hero-title { max-width: 12ch; margin-top: .45rem; }
  .hero-lead, .protocol-hero-main .lead { margin-top: .8rem; font-size: .98rem; }
  .hero-cta { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-top: 1.1rem; }
  .hero-meta { gap: .75rem 1rem; margin-top: 1.3rem; padding-top: 1rem; flex-wrap: wrap; }
  .hero-meta b { font-size: .95rem; }
  .readout-card { padding: 1rem; border-radius: var(--r-md); }
  .readout-card-head { margin-bottom: .75rem; }
  .rc-row { padding-block: .42rem; gap: .75rem; }
  .rc-hero { margin-top: .85rem; }
  .steps { gap: 1.2rem; padding-top: 1.1rem; }
  .step { gap: .7rem; }
  .step p { margin-top: .3rem; }
  .card-grid, .cat-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .protocol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .protocol-grid .tx-protocard { min-width: 0; }
  .protocol-grid .tx-protocard-art { height: auto; aspect-ratio: 1 / 1; }
  .protocol-grid .tx-protocard-art .tx-vial { width: 100%; aspect-ratio: 1 / 1; }
  .protocol-grid .tx-vial--compact .tx-vial-label { top: 60%; height: 30%; }
  .protocol-grid .tx-vial--compact .tx-vial-name { font-size: .42rem; }
  .protocol-grid .tx-vial--compact.tx-vial--name-mid .tx-vial-name { font-size: .38rem; }
  .protocol-grid .tx-vial--compact.tx-vial--name-long .tx-vial-name { font-size: .34rem; }
  .protocol-grid .tx-vial--compact.tx-vial--name-xl .tx-vial-name { font-size: .3rem; }
  .protocol-grid .tx-vial--compact .tx-vial-strength { font-size: .32rem; }
  .protocol-grid .tx-vial--compact .tx-vial-brand { font-size: .3rem; }
  .protocol-grid .tx-protocard-body { padding: .55rem .5rem .65rem; }
  .protocol-grid .tx-protocard-body .badge,
  .protocol-grid .tx-cardlink { display: none; }
  .protocol-grid .tx-protocard-body h3 { margin: 0; font-size: .73rem; line-height: 1.08; overflow-wrap: anywhere; }
  .protocol-grid .tx-protocard-body .num { margin-top: .3rem; font-size: .64rem; line-height: 1; }
  .tx-pepcard h3 { margin-top: .35rem; }
  .tx-catcard { gap: .8rem; }
  .band-split { padding-block: 1.25rem; }
  .contact-band { align-items: stretch; padding-block: 1.35rem; }
  .contact-band .btn { width: 100%; }
  .hub-head { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .protocol-body { gap: 1.5rem; }
  .protocol-aside { gap: .75rem; }
  .reflist li { padding-inline-start: 2rem; overflow-wrap: anywhere; }
}
