/* Peptsche reconstitution calculator v2. Brand tokens: navy #002147, tan #D2B48C, bone #F4EFE8; Archivo / Instrument Serif / IBM Plex Mono / IBM Plex Sans Thai.
   Motion uses transform + opacity only; everything stops under prefers-reduced-motion. */
body.psc-page { overflow-x: hidden; }
body.psc-page main { margin-top: 0 !important; padding-top: 0 !important; }
body.psc-page main > .wp-block-group { padding-top: 0 !important; padding-bottom: 0 !important; }
body.psc-page .wp-block-post-content, body.psc-page .entry-content { padding: 0 !important; margin: 0 !important; max-width: none !important; }
body.psc-page .entry-content > .psc, body.psc-page .wp-block-post-content > .psc { max-width: none !important; margin: 0 !important; }

.psc { --navy: var(--ps-navy, #002147); --navy2: #001633; --tan: var(--ps-tan, #D2B48C); --tan2: var(--ps-tan-deep, #85663B); --bone: var(--ps-bone, #F4EFE8);
	--fg: #121212; --mut: #5f5a53; --line: rgba(0,33,71,.12); --r: 22px; --ease: cubic-bezier(.2,.75,.2,1);
	--sans: var(--ps-display, Archivo, "IBM Plex Sans Thai", system-ui, sans-serif); --serif: var(--ps-serif, "Instrument Serif", Georgia, serif); --mono: "IBM Plex Mono", "IBM Plex Sans Thai", ui-monospace, monospace;
	/* full-bleed inside the theme's content area (respects the desktop side rail): undo the root padding */
	width: calc(100% + var(--wp--style--root--padding-left, 0px) + var(--wp--style--root--padding-right, 0px)); max-width: none !important; position: relative; left: calc(-1 * var(--wp--style--root--padding-left, 0px)); margin-left: 0 !important; margin-right: 0 !important; color: var(--fg); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.psc[lang="th"] { --sans: "IBM Plex Sans Thai", var(--ps-display, Archivo), system-ui, sans-serif; }
.psc *, .psc *::before, .psc *::after { box-sizing: border-box; }
.psc :where(h1, h2, h3, p, ol, ul, figure) { margin: 0; padding: 0; }
.psc :where(ol, ul) { list-style: none; }
.psc em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.psc[lang="th"] em { font-family: inherit; font-style: normal; color: var(--tan); }
.psc-wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* ---------- hero ---------- */
.psc-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 10% 0%, #0b3a75 0%, var(--navy) 45%, var(--navy2) 100%); padding: 44px 0 56px; isolation: isolate; }
.psc-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.psc-orb { position: absolute; border-radius: 50%; will-change: transform; }
.psc-orb--a { width: 520px; height: 520px; right: -180px; top: -200px; background: radial-gradient(circle, rgba(210,180,140,.38), rgba(210,180,140,0) 65%); animation: psc-drift 16s ease-in-out infinite alternate; }
.psc-orb--b { width: 460px; height: 460px; left: -200px; bottom: -260px; background: radial-gradient(circle, rgba(92,140,235,.35), rgba(92,140,235,0) 65%); animation: psc-drift 19s ease-in-out infinite alternate-reverse; }
.psc-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 75%); }
.psc-hero.is-off .psc-orb, .psc-hero.is-off .psc-heroart * { animation-play-state: paused !important; }
.psc-hero__in { width: min(1160px, 100% - 32px); margin: 0 auto; display: grid; gap: 28px; align-items: center; }
.psc-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tan); margin-bottom: 18px; }
.psc-eyebrow span { width: 26px; height: 1px; background: var(--tan); }
.psc-h1 { font-size: clamp(40px, 11vw, 84px); line-height: .98; letter-spacing: -.04em; font-weight: 600; color: #fff; margin-bottom: 18px; text-wrap: balance; }
.psc[lang="th"] .psc-h1 { font-size: clamp(36px, 9.5vw, 68px); line-height: 1.15; letter-spacing: -.01em; }
.psc-h1 em { color: var(--tan); }
.psc-lede { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.78); max-width: 58ch; }
.psc-ruo { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: rgba(210,180,140,.14); border: 1px solid rgba(210,180,140,.55); color: #fff; font-size: 14.5px; line-height: 1.5; max-width: 62ch; }
.psc-ruo svg { flex: none; width: 22px; height: 22px; color: var(--tan); margin-top: 1px; }
.psc-ruo strong { color: var(--tan); font-weight: 700; }
.psc-hero__cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 26px; }
.psc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.psc-pills li { font: 500 12px/1 var(--mono); padding: 8px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.85); background: rgba(255,255,255,.05); }
.psc-hero__art { display: none; }
.psc-heroart { width: 100%; height: auto; overflow: visible; }
.psc-ha-vial { animation: psc-float 6s ease-in-out infinite; transform-origin: 105px 150px; }
.psc-ha-liq { animation: psc-rise 5s var(--ease) infinite; transform-box: fill-box; transform-origin: bottom; }
.psc-ha-fill { animation: psc-fill 5s var(--ease) infinite; transform-box: fill-box; transform-origin: left; }
.psc-ha-chip { animation: psc-float 7s ease-in-out -2s infinite; }
@media (min-width: 900px) {
	.psc-hero { padding: 84px 0 96px; }
	.psc-hero__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; }
	.psc-hero__art { display: block; }
	.psc-lede { font-size: 18px; }
}

/* buttons */
.psc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none !important; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.psc-btn:hover { transform: translateY(-2px); }
.psc-btn:active { transform: translateY(0) scale(.98); }
.psc-btn--tan { background: var(--tan); color: var(--navy) !important; box-shadow: 0 10px 30px -10px rgba(210,180,140,.7); }
.psc-btn--navy { background: var(--navy); color: #fff !important; box-shadow: 0 12px 30px -14px rgba(0,33,71,.8); }
.psc-btn--ghost { border: 1.5px solid var(--navy); color: var(--navy) !important; }

/* ---------- calculator ---------- */
.psc-calc { position: relative; padding: 28px 0 56px; background: linear-gradient(180deg, #EAE2D6 0, var(--bone) 220px, #fff 100%); scroll-margin-top: 70px; }
.psc-grid2 { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .psc-calc { padding: 56px 0 80px; } .psc-grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; } .psc-res { position: sticky; top: 90px; } }
.psc-card { border-radius: var(--r); background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 1px 0 rgba(0,33,71,.04), 0 24px 60px -32px rgba(0,33,71,.35); }
.psc-form { padding: 6px 18px 18px; margin-top: -2px; }
@media (min-width: 900px) { .psc-form { padding: 10px 28px 26px; } }
.psc-step { border: 0; margin: 0; padding: 20px 0; min-width: 0; border-bottom: 1px solid var(--line); }
.psc-step:last-of-type { border-bottom: 0; }
.psc-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 14px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.psc-step legend + * { clear: both; }
.psc-step legend b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 13px/1 var(--mono); flex: none; }
.psc-l { display: block; font-size: 13px; font-weight: 600; color: var(--mut); margin: 12px 0 6px; letter-spacing: .01em; }
.psc-h { font-size: 13px; color: var(--mut); margin-top: 8px; line-height: 1.5; }
.psc-sel { position: relative; }
.psc-sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.psc select, .psc input[type=text] { width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid rgba(0,33,71,.18); background: #fff; color: var(--fg); font: 500 17px/1.2 var(--sans); padding: 0 16px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.psc select { padding-right: 40px; font-size: 16px; }
.psc input[type=text] { font-family: var(--mono); font-size: 20px; letter-spacing: -.01em; }
.psc select:focus, .psc input[type=text]:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0,33,71,.12); }
.psc-in { display: flex; gap: 8px; align-items: stretch; }
.psc-in input { flex: 1; min-width: 0; }
.psc-in.is-bad input { border-color: #B3261E; box-shadow: 0 0 0 4px rgba(179,38,30,.1); }
.psc-u { display: grid; place-items: center; padding: 0 16px; border-radius: 14px; background: var(--bone); font: 600 15px/1 var(--mono); color: var(--navy); }
.psc-seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--bone); flex: none; }
.psc-seg label { position: relative; cursor: pointer; }
.psc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.psc-seg span { display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 12px; border-radius: 10px; font: 600 14px/1 var(--mono); color: var(--mut); transition: background .25s var(--ease), color .2s, box-shadow .25s; }
.psc-seg input:checked + span { background: var(--navy); color: #fff; box-shadow: 0 6px 16px -8px rgba(0,33,71,.8); }
.psc-seg input:focus-visible + span { outline: 2px solid var(--tan2); outline-offset: 2px; }
.psc-seg--wide { display: flex; width: 100%; margin-bottom: 12px; }
.psc-seg--wide label { flex: 1; } .psc-seg--wide span { font-family: var(--sans); }
.psc-m { font-size: 13px; color: var(--tan2); margin-top: 6px; min-height: 0; font-family: var(--mono); }
.psc-m:empty { display: none; }
.psc-m.is-err { color: #B3261E; font-family: var(--sans); font-weight: 600; }
.psc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.psc-chips > span { font-size: 12px; color: var(--mut); margin-right: 2px; }
.psc-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(0,33,71,.2); background: #fff; color: var(--navy); font: 600 13px/1 var(--mono); cursor: pointer; transition: all .2s var(--ease); }
.psc-chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.psc-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.psc-bar { position: relative; cursor: pointer; }
.psc-bar[hidden] { display: none; }
.psc-bar input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.psc-bar > span { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; border: 1.5px solid rgba(0,33,71,.15); background: #fff; transition: all .25s var(--ease); height: 100%; }
.psc-bar b { font: 600 16px/1.1 var(--sans); color: var(--fg); }
.psc-bar em { font: 500 12px/1.2 var(--mono); font-style: normal; color: var(--mut); }
.psc-bar__ico { display: block; height: 8px; width: calc(var(--w) * .5%); min-width: 22%; max-width: 100%; border-radius: 4px; background: linear-gradient(90deg, #9CC0FF, #3D6FD1); margin-bottom: 4px; opacity: .55; transition: opacity .2s; }
.psc-bar input:checked + span { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,33,71,.1); background: linear-gradient(180deg, #fff, #F7F3EC); }
.psc-bar input:checked + span .psc-bar__ico { opacity: 1; }
.psc-bar input:focus-visible + span { outline: 2px solid var(--tan2); outline-offset: 2px; }
.psc-actions { padding-top: 6px; }
.psc-reset { border: 0; background: none; color: var(--mut); font: 600 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 0; }

/* result card */
.psc-card--dark { position: relative; overflow: hidden; color: #fff; padding: 22px 18px 20px; background: radial-gradient(120% 80% at 100% 0%, rgba(210,180,140,.22), transparent 55%), linear-gradient(160deg, #0b3a75 0%, var(--navy) 50%, var(--navy2) 100%); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 70px -30px rgba(0,22,51,.75); }
.psc-card--dark::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,0) 40%, rgba(210,180,140,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@media (min-width: 900px) { .psc-card--dark { padding: 28px 28px 24px; } }
.psc-res__h { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tan); margin-bottom: 14px; }
.psc-big { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: end; }
.psc-k { font: 500 11.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.74); margin-bottom: 6px; }
.psc[lang="th"] .psc-k { font-family: var(--sans); letter-spacing: .02em; text-transform: none; font-size: 13px; }
.psc-num { display: flex; align-items: baseline; gap: 8px; font: 600 clamp(44px, 13vw, 72px)/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.psc-num small { font: 500 15px/1 var(--mono); letter-spacing: 0; color: var(--tan); }
.psc-num--s { font-size: clamp(26px, 7vw, 38px); }
.psc-state { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.7); }
.psc-state[hidden] { display: none; }
.psc-syr { margin: 18px -6px 4px; }
.psc-syr svg { display: block; width: 100%; height: auto; overflow: visible; }
.psc-syr__lab { font-family: var(--mono); font-weight: 600; fill: rgba(255,255,255,.85); } /* R1: size is set inline by buildSyringe */
.psc-syr.is-over .psc-syr__liq { fill: #E5534B; }
.psc-syr__mark { transition: opacity .3s; }
.psc-read { min-height: 20px; margin-top: 6px; font: 500 13px/1.4 var(--mono); color: var(--tan); text-align: center; }
.psc[lang="th"] .psc-read { font-family: var(--sans); }
.psc-msgs { display: grid; gap: 8px; margin-top: 12px; }
.psc-msgs:empty { display: none; }
.psc-msg { font-size: 13.5px; line-height: 1.45; padding: 10px 12px 10px 14px; border-radius: 12px; border-left: 3px solid; background: rgba(255,255,255,.07); animation: psc-in .26s var(--ease) both; }
.psc-msg--block { border-color: #FF8A80; color: #FFDAD6; background: rgba(229,83,75,.14); }
.psc-msg--warn { border-color: var(--tan); color: #F6E7D1; }
.psc-msg--info { border-color: #9CC0FF; color: #DCE8FF; }
.psc-duo { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
@media (min-width: 900px) { .psc-duo { grid-template-columns: 120px minmax(0, 1fr); } }
.psc-vialbox svg { display: block; width: 100%; height: auto; overflow: visible; }
.psc-vial__liq { transform: translateY(172px); transition: transform 1.1s cubic-bezier(.34,1.12,.5,1); }
.psc-vial__wave { animation: psc-wave 3.2s linear infinite; }
.psc-vial__powder { transition: opacity 1.4s ease .2s, transform 1.4s ease .2s; transform-origin: 60px 160px; }
.is-wet .psc-vial__powder { opacity: 0; transform: scaleY(.4); }
.psc-bub { fill: rgba(255,255,255,.75); opacity: 0; }
.is-fizz .psc-bub { animation: psc-bub 1.4s ease-out both; }
.is-fizz .psc-bub:nth-of-type(2) { animation-delay: .18s; } .is-fizz .psc-bub:nth-of-type(3) { animation-delay: .32s; }
.psc-stats { display: grid; gap: 10px; }
.psc-stat { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.psc-v { font: 600 22px/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.psc-v small { font: 500 12px var(--mono); color: var(--tan); letter-spacing: 0; }
.psc-v2 { font: 500 12px/1.4 var(--mono); color: rgba(255,255,255,.78); margin-top: 3px; }
.psc-work { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.psc-work[hidden] { display: none; }
.psc-work summary { cursor: pointer; font-weight: 600; font-size: 14px; color: #fff; list-style: none; display: flex; align-items: center; gap: 8px; }
.psc-work summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); font: 500 13px/1 var(--mono); transition: transform .3s var(--ease); }
.psc-work[open] summary::before { transform: rotate(45deg); }
.psc-work ol { counter-reset: w; margin-top: 10px; display: grid; gap: 6px; }
.psc-work li { counter-increment: w; font: 500 13px/1.45 var(--mono); color: rgba(255,255,255,.88); padding-left: 26px; position: relative; word-break: break-word; }
.psc-work li::before { content: counter(w); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: rgba(210,180,140,.25); color: var(--tan); font-size: 11px; display: grid; place-items: center; }
.psc-work .psc-h { color: rgba(255,255,255,.6); }
.psc-foot { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,.78); }
.psc-foot strong { color: var(--tan); }

/* mini bar */
.psc-mini { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(0,22,51,.94); color: #fff !important; text-decoration: none !important; font: 500 14px/1.2 var(--mono); box-shadow: 0 14px 40px -12px rgba(0,0,0,.5); }
.psc-mini[hidden] { display: none; }
.psc-mini b { font-size: 17px; color: #fff; }
.psc-mini__c { color: var(--tan); font-family: var(--sans); font-weight: 600; white-space: nowrap; }
@media (min-width: 900px) { .psc-mini { display: none !important; } }

/* how / bac / faq */
.psc-how, .psc-faq { padding: 56px 0; background: #fff; }
.psc-bac { padding: 0 0 8px; background: #fff; }
.psc-h2 { font-size: clamp(30px, 7vw, 48px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; margin-bottom: 24px; color: var(--fg); }
.psc[lang="th"] .psc-h2 { line-height: 1.25; letter-spacing: 0; }
.psc-h2 em { color: var(--tan2); }
.psc-how__l { display: grid; gap: 12px; }
@media (min-width: 750px) { .psc-how__l { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.psc-glass { padding: 22px; background: linear-gradient(160deg, #fff, #F7F2EA); border: 1px solid rgba(0,33,71,.08); }
.psc-how__n { font: 500 12px/1 var(--mono); color: var(--tan2); letter-spacing: .12em; }
.psc-glass h3 { font-size: 20px; font-weight: 600; margin: 12px 0 8px; letter-spacing: -.01em; }
.psc-mono { font: 500 14px/1.55 var(--mono); color: var(--navy); }
.psc[lang="th"] .psc-mono { font-family: var(--sans); }
.psc-how__n2 { margin-top: 16px; }
.psc-bac__c { display: grid; grid-template-columns: 76px 1fr; gap: 14px 16px; align-items: center; padding: 18px; background: linear-gradient(120deg, var(--bone), #fff); border: 1px solid rgba(0,33,71,.08); }
.psc-bac__img img { width: 76px; height: 76px; object-fit: cover; border-radius: 14px; display: block; }
.psc-bac__t h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.psc-bac__t p { font-size: 14px; color: var(--mut); margin-top: 4px; }
.psc-bac__price { color: var(--navy); font-weight: 600; }
.psc-bac__b { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 750px) { .psc-bac__c { grid-template-columns: 96px 1fr auto; padding: 22px 26px; } .psc-bac__img img { width: 96px; height: 96px; } .psc-bac__b { grid-column: auto; } }
.psc-faq__l { display: grid; gap: 10px; }
@media (min-width: 900px) { .psc-faq__l { grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: start; } }
.psc-q { border-radius: 16px; border: 1px solid rgba(0,33,71,.1); background: #fff; padding: 0 18px; transition: box-shadow .25s; }
.psc-q[open] { box-shadow: 0 16px 40px -28px rgba(0,33,71,.5); }
.psc-q summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; padding: 16px 0; font-weight: 600; font-size: 16px; }
.psc-q summary::-webkit-details-marker, .psc-work summary::-webkit-details-marker { display: none; }
.psc-q summary::after { content: "+"; font: 500 20px/1 var(--mono); color: var(--tan2); transition: transform .3s var(--ease); }
.psc-q[open] summary::after { transform: rotate(45deg); }
.psc-q p { padding: 0 0 18px; color: #3d3a36; font-size: 15px; line-height: 1.65; }
.psc-ruo--end { margin-top: 28px; max-width: none; background: var(--bone); border-color: rgba(133,102,59,.4); color: var(--fg); }
.psc-ruo--end strong { color: var(--tan2); }

/* ---------- motion ---------- */
.psc-js [data-r] { opacity: 0; transform: translate3d(0, 16px, 0); }
.psc-js [data-r].is-in { opacity: 1; transform: none; transition: opacity .56s cubic-bezier(.16,1,.3,1), transform .56s cubic-bezier(.16,1,.3,1); transition-delay: calc(120ms + var(--i, 0) * 60ms); }
@keyframes psc-drift { to { transform: translate3d(-60px, 50px, 0) scale(1.08); } }
@keyframes psc-float { 50% { transform: translate3d(0, -10px, 0); } }
@keyframes psc-rise { 0% { transform: scaleY(.1); } 45%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.1); } }
@keyframes psc-fill { 0%, 20% { transform: scaleX(.05); } 55%, 85% { transform: scaleX(1); } 100% { transform: scaleX(.05); } }
@keyframes psc-wave { to { transform: translateX(-60px); } }
@keyframes psc-bub { 0% { opacity: 0; transform: translateY(40px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes psc-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes psc-up { from { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) {
	.psc *, .psc *::before, .psc *::after { animation: none !important; transition: none !important; }
	.psc-js [data-r] { opacity: 1; transform: none; }
}

/* full-bleed: 100vw includes a desktop scrollbar, so clip the few px it would add */
html:has(.psc), body:has(.psc) { overflow-x: clip; }

/* blend split (two-peptide vials) */
.psc-blend { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(210,180,140,.08); border: 1px solid rgba(210,180,140,.28); color: rgba(244,239,232,.86); font-size: 14px; }
.psc-blend[hidden] { display: none; }
.psc-blend__h { margin: 0 0 4px; color: var(--tan, #D2B48C); font-weight: 600; }
.psc-blend__n { margin: 0 0 8px; font-size: 13px; color: rgba(244,239,232,.7); }
.psc-blend ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.psc-blend li { overflow-wrap: anywhere; }

/* ===================== v2.1: design review (M1-M14 + cheap N items), 2026-11-03 ===================== */

/* ---- M13 (header part) removed 2026-11-03 (Jason t840u): the calculator shows the full site header, announcement bar, nav and rail like every other page. Footer compaction kept. ---- */
@media (max-width: 599px) {
	/* footer: compact, two columns */
	body.psc-page .pft__in { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px 16px !important; padding-top: 0 !important; }
	body.psc-page .pft__brand, body.psc-page .pft__acc { grid-column: 1 / -1; }
	body.psc-page .pft__nav { width: auto !important; margin: 0 !important; }
	body.psc-page .pft__nav a { font-size: 14px; }
}

/* ---- M14: tighter hero; the form card rides up over the hero edge; no beige band ---- */
.psc-hero { padding: 40px 0 56px; }
.psc-lede { font-size: 15px; line-height: 1.6; }
.psc-ruo { padding: 12px 14px; margin-top: 18px; }
.psc-hero__cta { margin-top: 22px; flex-direction: column; align-items: flex-start; gap: 14px; }
.psc-pills { flex-wrap: nowrap; gap: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.psc-pills::-webkit-scrollbar { display: none; }
.psc-pills li { flex: none; display: block; height: 30px; padding: 0 11px; font-size: 12px; line-height: 28px; white-space: nowrap; }
.psc-calc { margin-top: -40px; padding-top: 0; background: linear-gradient(180deg, transparent 0, transparent 40px, #fff 40px); z-index: 1; }
.psc-form { box-shadow: 0 24px 60px -24px rgba(0,22,51,.35); background: #fff; }
@media (max-width: 899px) { .psc-calc { padding-bottom: calc(88px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) {
	.psc-hero { padding: 84px 0 120px; }
	.psc-hero__cta { flex-direction: row; align-items: center; }
	.psc-lede { font-size: 18px; line-height: 1.6; }
	.psc-calc { padding-top: 0; padding-bottom: 80px; }
}

/* ---- M1: syringe labels at true size, readout in sans; M11: second sentence on its own line ---- */
.psc-syr { margin: 18px 0 4px; }
.psc-syr__lab { font-family: var(--mono); font-weight: 600; fill: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.psc-read { font: 500 14px/1.45 var(--sans); color: var(--tan); text-wrap: balance; margin-top: 8px; }
.psc-read__a, .psc-read__b { display: block; }
.psc-read__b { margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.70); font-weight: 400; }
.psc-read__b:empty { display: none; }
.psc-read.is-fx { animation: psc-rd .18s ease-out both; }
@keyframes psc-rd { from { opacity: 0; transform: translateY(4px); } }

/* ---- M3: blend breakdown under the select ---- */
.psc-bk { margin-top: 8px; font: 500 13px/1.5 var(--mono); color: var(--mut); white-space: normal; overflow-wrap: anywhere; }
.psc-bk[hidden] { display: none; }

/* ---- M4: contrast ---- */
.psc[lang="th"] em { color: var(--tan2); }
.psc[lang="th"] .psc-hero em, .psc[lang="th"] .psc-card--dark em { color: var(--tan); }
.psc-bar em, .psc[lang="th"] .psc-bar em { color: var(--mut); }

/* ---- M5: mobile result bar ---- */
.psc-mini { height: 56px; padding: 0 16px; border-radius: 16px; background: rgba(0,22,51,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transform: translateY(12px); transition: opacity .22s cubic-bezier(.22,1,.36,1), transform .22s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.psc-mini.is-on { opacity: 1; transform: none; pointer-events: auto; }
.psc-mini b { font: 600 17px/1 var(--mono); }

/* ---- M8: Thai inside mono text uses Plex Sans Thai ---- */
.psc[lang="th"] .psc-thw { font-family: var(--sans); font-weight: 500; font-size: .94em; letter-spacing: 0; }

/* ---- M9: Thai line heights; no tracking or caps on Thai ---- */
.psc[lang="th"] .psc-btn, .psc[lang="th"] .psc-seg span, .psc[lang="th"] .psc-chip { line-height: 1.35; }
.psc[lang="th"] select, .psc[lang="th"] input[type=text] { line-height: 1.4; }
.psc[lang="th"] .psc-k, .psc[lang="th"] .psc-l { line-height: 1.45; }
.psc[lang="th"] .psc-num small { line-height: 1.3; }
.psc[lang="th"] .psc-h2 { line-height: 1.3; }
.psc[lang="th"] .psc-res__h, .psc[lang="th"] .psc-eyebrow { letter-spacing: 0; text-transform: none; font-family: var(--sans); font-size: 13px; line-height: 1.45; }

/* ---- M10: Thai H1 break and strict line breaking ---- */
.psc[lang="th"] { line-break: strict; word-break: normal; }
.psc[lang="th"] .psc-h1 em { white-space: nowrap; }

/* ---- M12: chips label above, one row ---- */
.psc-l--chips { margin-top: 14px; }
.psc-chips { flex-wrap: nowrap; gap: 8px; margin-top: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.psc-chips::-webkit-scrollbar { display: none; }
.psc-chip { flex: none; }

/* ---- N4: form polish ---- */
.psc-in > .psc-seg { width: 112px; }
.psc-in > .psc-seg label { flex: 1; }
.psc-in > .psc-seg span { min-width: 0; width: 100%; }
.psc-in--sfx { position: relative; }
.psc-in--sfx input { padding-right: 52px; }
.psc-sfx { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 15px/1 var(--mono); color: var(--mut); pointer-events: none; }
.psc select:focus, .psc input[type=text]:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,33,71,.18); transition: border-color .16s, box-shadow .16s; }
.psc-bar input:checked + span { border: 2px solid var(--navy); background: color-mix(in srgb, var(--bone) 94%, var(--tan) 6%); box-shadow: none; }
.psc-bar > span { position: relative; transition: transform .12s ease, border-color .2s, background .2s; }
.psc-bar:active > span { transform: scale(.98); }
.psc-bar__ok { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--tan); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.psc-bar__ok::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.psc-bar input:checked + span .psc-bar__ok { opacity: 1; transform: none; }
.psc-step legend b { position: relative; }
.psc-step legend b::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--tan); opacity: 0; transition: opacity .2s; }
.psc-step legend b::before { content: ""; position: absolute; left: 11px; top: 7px; width: 6px; height: 12px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; z-index: 1; }
.psc-step legend b.is-done::before { opacity: 1; }
.psc-step legend b.is-done::after { opacity: 1; }

/* ---- N5: result hierarchy ---- */
.psc-big { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 0; align-items: end; }
.psc-big > .psc-k { align-self: end; }
.psc-big > .psc-num { align-self: baseline; }
.psc-num.is-dash > span { color: rgba(255,255,255,.35); font-weight: 400; }
.psc-num.is-dash small { opacity: .35; }
.psc-v small { margin-left: 4px; }
.psc-nw { white-space: nowrap; }
@media (min-width: 900px) { .psc-card--dark { padding: 32px; } .psc-stat { padding: 20px; } }

/* ---- N6: motion ---- */
.psc-js .psc-h1 { animation: psc-mask .7s cubic-bezier(.16,1,.3,1) both; }
@keyframes psc-mask { from { clip-path: inset(0 0 100% 0); transform: translateY(24px); } to { clip-path: inset(0 0 -20% 0); transform: none; } }
.psc-ha-liq { animation: psc-rise 8s var(--ease) 3; }
.psc-ha-fill { animation: psc-fill 8s var(--ease) 3; }
.psc-heroart.is-done .psc-ha-liq, .psc-heroart.is-done .psc-ha-fill { animation: none; transform: none; }
@keyframes psc-rise { 0% { transform: scaleY(.1); } 35%, 66% { transform: scaleY(1); } 100% { transform: scaleY(.1); } }
@keyframes psc-fill { 0%, 10% { transform: scaleX(.05); } 35%, 66% { transform: scaleX(1); } 100% { transform: scaleX(.05); } }
.psc-msg--block.is-shake { animation: psc-in .26s var(--ease) both, psc-shake .2s ease .26s 1; }
@keyframes psc-shake { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) {
	.psc-js .psc-h1 { animation: none !important; clip-path: none; }
	.psc-mini { transition: none !important; }
}

/* M3: the closed product field shows the whole label (wraps), the native select sits on top for picking */
.psc-sel { min-height: 52px; border-radius: 14px; border: 1.5px solid rgba(0,33,71,.18); background: #fff; transition: border-color .16s, box-shadow .16s; }
.psc-sel__v { display: block; padding: 14px 44px 14px 16px; font: 500 16px/1.35 var(--sans); color: var(--mut); }
.psc-sel__v.is-set { color: var(--fg); }
.psc-sel select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.psc-sel:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,33,71,.18); }


/* v2.1 hero column never grows to the one-row pills' width (pills scroll inside it instead) */
@media (max-width: 899px) { .psc-hero__in { grid-template-columns: minmax(0, 1fr); } }
.psc-hero__copy, .psc-hero__cta { min-width: 0; max-width: 100%; }

/* v2.2 re-review R3: mobile bar */
.psc-mini__v { white-space: nowrap; min-width: 0; }
@media (max-width: 359px) { .psc-mini { padding: 0 14px; gap: 8px; } .psc-mini b { font-size: 15px; } .psc-mini__c { font-size: 13px; } }
.psc-mini__v .psc-thw { margin-left: .3em; }
/* R4: syringe step at 320 */
.psc-bar b, .psc-bar em { white-space: nowrap; }
.psc-bar > span { padding-right: 26px; } /* card box only, not the Thai word spans inside it */
@media (max-width: 359px) { .psc-bar > span { padding-left: 10px; } .psc-bar em { font-size: 11px; } }
@media (max-width: 359px) { .psc-seg--wide span { font-size: 13px; padding: 0 8px; white-space: nowrap; } }

/* sign-off polish below 360: room between "mL" and "See result"; closed product box text 15px (the native select stays 16px, so iOS does not zoom) */
@media (max-width: 359px) { .psc-mini { gap: 12px; } .psc-sel__v { font-size: 15px; } }
