/* The reconstitution and blend calculators: the full pages
   (/peptide-reconstitution-calculator/, /peptide-blend-calculator/) and
   their embeds (/embed/<slug>/). Approved mock: calc-mock-2026-11-10.

   No cards. Structure comes from spacing, type size and hairlines. Fills
   only on controls (fields, buttons, segmented pickers).

   On the site the colours come from styles.css + v3.css; the embeds set the
   same token names themselves. The field tokens are new, so they live here. */
:root{--field:#F2F2F7;--field-b:#E5E5EA;--seg-on:#FFFFFF;--seg-shadow:0 1px 3px rgba(0,0,0,.14);--iseg:#E5E5EA;--warn:#B25000}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--field:#1C1C1E;--field-b:#2C2C2E;--seg-on:#3A3A3C;--seg-shadow:none;--iseg:#2C2C2E;--warn:#FF9F0A}}
:root[data-theme="dark"]{--field:#1C1C1E;--field-b:#2C2C2E;--seg-on:#3A3A3C;--seg-shadow:none;--iseg:#2C2C2E;--warn:#FF9F0A}

/* ---------- controls ---------- */
.cx button,.cx input,.cx select,.emb button{font:inherit;color:inherit;background:none;border:0;letter-spacing:inherit;margin:0}
.cx button,.emb button{cursor:pointer}
.seg{display:flex;background:var(--field);border:1px solid var(--field-b);border-radius:14px;padding:3px;gap:2px;width:100%}
.seg button{flex:1;text-align:center;font-size:15px;font-weight:600;color:var(--text-2);padding:8px 4px;min-height:40px;border-radius:10px;white-space:nowrap;transition:background .15s,color .15s}
.seg button.on{background:var(--seg-on);color:var(--text-1);box-shadow:var(--seg-shadow)}
.f{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0}
.fl{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3);font-weight:500;display:flex;align-items:center;gap:6px;min-height:16px;line-height:1.2}
.fi{display:flex;align-items:center;gap:8px;height:54px;background:var(--field);border:1px solid var(--field-b);border-radius:14px;padding:0 6px 0 16px;transition:border-color .15s,box-shadow .15s;min-width:0}
.fi:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in oklab,var(--accent),transparent 84%)}
.cx .fi input{flex:1;min-width:0;width:100%;height:100%;padding:0;font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;outline:none;letter-spacing:-0.02em;color:var(--text-1)}
.fi input::placeholder{color:var(--text-3);font-weight:500}
.fi .u{font-size:15px;color:var(--text-2);padding-right:10px;flex:none}
.useg{display:flex;background:var(--iseg);border-radius:10px;padding:2px;flex:none}
.cx .useg button{font-size:13.5px;font-weight:600;color:var(--text-2);padding:0 11px;height:38px;border-radius:8px}
.cx .useg button.on{background:var(--seg-on);color:var(--text-1);box-shadow:var(--seg-shadow)}
.cx .quiet,.emb .quiet{color:var(--accent);font-size:15px;font-weight:600;padding:4px 0;text-align:left;align-self:flex-start;justify-self:start}
.cx button:focus-visible,.emb button:focus-visible,.qsel:focus-within,.tsel:focus-within{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}

/* ---------- calculator ---------- */
.cx{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 12px;align-content:start}
.in .wide,.dose-f{grid-column:1/-1}
.cx[data-mode="plan"] .only-mixed{display:none}
.cx[data-mode="plan"] .in>.f:first-child{grid-column:1/-1}
.out{display:flex;flex-direction:column;min-width:0;border-top:1px solid var(--hair);padding-top:18px}
.heros{display:flex;flex-wrap:wrap;gap:12px 28px;align-items:flex-end}
.rk{font-size:15px;color:var(--text-2);font-weight:500}
.big{font-size:56px;font-weight:800;letter-spacing:-0.045em;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;margin-top:2px;color:var(--text-1)}
.big .n{background:linear-gradient(120deg,var(--accent) 0%,var(--accent-2) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding-right:.04em}
.big .hs{font-size:20px;font-weight:500;color:var(--text-2);letter-spacing:-0.01em;margin-left:8px}
.big.dim .n{background:none;-webkit-text-fill-color:var(--text-3)}
.big2{font-size:38px}
.big2 .hs{font-size:17px}
.syr{display:block;width:100%;height:auto;margin:16px 0 4px;overflow:visible}
.syr text{font-size:10px;fill:var(--text-3);font-family:var(--font-mono);letter-spacing:0}
.syr .fillr{fill:color-mix(in oklab,var(--accent),transparent 65%);transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.syr .stop{fill:var(--text-1);transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.syr .rod{fill:var(--text-3);transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.syr .ln{stroke:var(--text-3);fill:none}
.syr .tk{stroke:var(--text-3)}
.syr .solid{fill:var(--text-3)}
@media (prefers-reduced-motion: reduce){.syr .fillr,.syr .stop,.syr .rod{transition:none}}
/* label left, value right, as in the app's vial sheet */
.rows{margin-top:6px}
.cx .row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;min-height:46px;padding:12px 0;border-top:1px solid var(--hair);font-size:15.5px;width:100%;text-align:left;color:var(--text-1)}
.rows .row:first-child{border-top:0}
.cx .row .v{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.cx .row .k{color:var(--text-1);min-width:0;overflow-wrap:anywhere}
.cx .row.hl .k,.cx .row.hl .v{color:var(--accent)}
.alts .al{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3);margin:18px 0 2px}
.cx .alt .v{color:var(--text-2);font-weight:500}
.cx .alt.on .k,.cx .alt.on .v{color:var(--accent);font-weight:600}
.cx .note{font-size:14.5px;color:var(--warn);margin:12px 0 0;line-height:1.45;max-width:none}
.cx .note.plain{color:var(--text-2)}
.calc-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;margin:14px 0 0;font-size:13px;color:var(--text-3);line-height:1.5}
.calc-foot a{color:var(--text-2)}

/* blend */
.prows{display:flex;flex-direction:column;gap:8px}
.prow{display:flex;gap:8px;align-items:center}
.prow .fi{height:48px;min-width:0;flex-basis:0}
.prow .nm{flex-grow:1.4}
.cx .prow .nm input{font-size:16px;font-weight:600;letter-spacing:-0.01em}
.prow .mg{flex-grow:1}
.cx .prow .mg input{font-size:18px}
.cx .prow .x{width:28px;height:48px;font-size:22px;color:var(--text-3);flex:none;line-height:1;padding:0}
.cx .prow .x:disabled{opacity:.3;cursor:default}
.prow-act{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.qsel,.tsel{position:relative;color:var(--accent);font-weight:600;cursor:pointer}
.qsel{font-size:15px;padding:4px 0}
.tsel{font-family:var(--font-sans);text-transform:none;letter-spacing:0;font-size:13px}
.cx .qsel select,.cx .tsel select{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;font-size:16px}
.mini{position:sticky;bottom:0;height:0;z-index:5}
.mini>div{position:absolute;left:-20px;right:-20px;bottom:0;display:flex;justify-content:space-between;align-items:center;background:var(--page);border-top:1px solid var(--hair);padding:10px 20px;font-size:15px;font-weight:500;color:var(--text-2);transition:opacity .2s,transform .2s;cursor:pointer}
.mini>div b{font-size:22px;font-weight:800;letter-spacing:-0.03em;color:var(--accent);font-variant-numeric:tabular-nums}
.mini.off>div{opacity:0;transform:translateY(8px);pointer-events:none}

/* from the app */
.from{font-size:14px;color:var(--text-2);margin:0 0 6px}
.from b{color:var(--text-1);font-weight:600}
.cx .send{display:flex;justify-content:center;width:100%;height:52px;align-items:center;font-size:16px;margin:12px 0 4px;text-decoration:none}
.cx .send[aria-busy="true"]{opacity:.75;cursor:default}

/* ---------- the full pages ---------- */
.cp-main{position:relative;z-index:1;max-width:1240px;margin:0 auto;padding:88px 20px 0}
.cp-main h1.ct{font-size:28px;font-weight:700;letter-spacing:-0.04em;line-height:1.05;margin:0 0 18px;color:var(--text-1)}
.cp-main .calc{padding:4px 0 0}
.cp-get{margin-top:40px}
.cp-more{position:relative;z-index:1;max-width:1240px;margin:0 auto;padding:56px 20px 8px;color:var(--text-2)}
.cp-more .sec{border-top:1px solid var(--hair);padding:20px 0 28px}
.cp-more .sec>.badge{font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3);font-weight:500;margin:0 0 6px}
.cp-more .prose{max-width:760px}
.cp-more h2,.cp-more .prose h2{font-size:22px;font-weight:700;letter-spacing:-0.03em;line-height:1.15;color:var(--text-1);margin:36px 0 14px}
.cp-more .sec>h2:first-of-type,.cp-more .sec>.prose:first-child>h2:first-child,.cp-more .sec>.badge+h2{margin-top:0}
.cp-more h3,.cp-more .prose h3{font-size:17px;color:var(--text-1);margin:24px 0 10px}
.cp-more p,.cp-more .prose p,.cp-more .prose li{font-size:15px;line-height:1.7;color:var(--text-2)}
.cp-more .quick-answer,.cp-more .short-answer{font-size:15px;line-height:1.7;color:var(--text-2);max-width:760px;margin:0 0 12px}
.cp-more b,.cp-more strong{color:var(--text-1);font-weight:600}
.cp-more .prose a,.cp-more p a{color:var(--text-1)}
.cp-more .chart-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.cp-more table.chart{border-collapse:collapse;width:100%;font-size:14.4px;font-variant-numeric:tabular-nums}
.cp-more table.chart th,.cp-more table.chart td{text-align:left;padding:11px 14px 11px 0;border-bottom:1px solid var(--outline-variant);white-space:nowrap;color:var(--text-2)}
.cp-more table.chart thead th{font-size:12.5px;font-weight:500;color:var(--text-3);text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--outline)}
.cp-more table.chart tbody th{font-weight:600;color:var(--text-1)}
.cp-more table.chart td.key{color:var(--text-1);font-weight:600}
.cp-more table.chart caption:not(.visually-hidden){caption-side:bottom;text-align:left;font-size:13px;color:var(--text-3);padding-top:10px}
.cp-more .chart-hint{font-size:13px;color:var(--text-3);margin:8px 0 0}
@media (min-width:720px){.cp-more .chart-hint{display:none}}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* FAQ: closed by default, rows split by hairlines */
.cp-more .faq-grid{border-top:1px solid var(--hair);display:block;max-width:none;margin:0}
.cp-more .faq{background:none;border:0;border-bottom:1px solid var(--hair);border-radius:0;padding:0;box-shadow:none}
.cp-more .faq summary{list-style:none;cursor:pointer;padding:14px 0;font-size:15px;font-weight:500;color:var(--text-1);display:flex;justify-content:space-between;align-items:center;gap:16px}
.cp-more .faq summary::-webkit-details-marker{display:none}
.cp-more .faq summary:hover{color:var(--accent)}
.cp-more .faq .plus{width:18px;height:18px;font-size:18px}
.cp-more .faq-body{padding:0 0 16px;font-size:14px;line-height:1.6;color:var(--text-2)}
.cp-more .faq-body a{color:var(--text-1)}

@media (min-width:760px){
  .cp-main{padding:128px 40px 0}
  .cp-main h1.ct{font-size:44px;margin:0 0 28px}
  .cp-main .calc{padding:8px 0 0}
  .cp-main .cx{grid-template-columns:minmax(340px,410px) minmax(0,1fr);gap:0}
  .cp-main .out{border-top:0;padding-top:2px;border-left:1px solid var(--hair);padding-left:52px;margin-left:52px;align-self:start}
  .cp-main .big{font-size:88px}
  .cp-main .big .hs{font-size:26px}
  .cp-main .big2{font-size:56px}
  .cp-main .big2 .hs{font-size:20px}
  .cp-main .heros{gap:12px 48px}
  .cp-main .syr{margin:26px 0 10px}
  .cp-main .send{max-width:600px}
  .cp-more{padding:96px 40px 8px}
  .cp-more .faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px;align-items:start}
  .mini{display:none}
}

/* ---------- embed ---------- */
.emb{width:100%;max-width:420px;font-family:var(--font-sans);text-align:left;letter-spacing:-0.01em;color:var(--text-1)}
.emb .eh{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 16px;gap:8px}
.emb .et{font-size:18px;font-weight:700;letter-spacing:-0.03em;white-space:nowrap;margin:0;line-height:1.3}
.emb .eh .quiet{font-size:14px;padding:0;white-space:nowrap}
.emb .in{gap:14px 10px}
.emb .fi{height:50px}
.emb .cx .fi input{font-size:20px}
.emb .seg button{min-height:36px;font-size:14px}
.emb .cx .useg button{height:34px}
.emb .cx{gap:18px}
.emb .out{padding-top:14px}
.emb .big{font-size:44px}
.emb .big .hs{font-size:17px}
.emb .big2{font-size:30px}
.emb .big2 .hs{font-size:14px}
.emb .heros{gap:10px 22px}
.emb .syr{margin:12px 0 2px}
.emb .cx .row{min-height:40px;padding:9px 0;font-size:14.5px}
.emb .alts{display:none}
.emb .cx .note{font-size:13.5px;margin-top:8px}
.emb .ef{display:flex;justify-content:space-between;align-items:center;gap:6px 12px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid var(--hair);font-size:12px;color:var(--text-3)}
.emb .ef a{display:inline-flex;align-items:center;gap:6px;color:var(--text-2);text-decoration:none}
.emb .ef a img{width:16px;height:16px;border-radius:4px}
.emb .ef a b{color:var(--text-1);font-weight:600}
@media (max-width:359px){.emb .seg button{font-size:13px}.emb .big{font-size:40px}}
