/* =====================================================================
   ELYRIA BIO  ·  STEP D, THE BUILD A PACK PAGE (build-a-pack.html): the page's own layout

   The component's styles are pack-builder.css; this file is the page around it. Palette tokens only. The two gate rules are repeated here (the
   floor is injected by pack-core.js): the builder is shown only while html.pk-live, the closed notice only once html.pk-off.
   ===================================================================== */
html:not(.pk-live) [data-pack-surface]{display:none !important}
html:not(.pk-off) [data-pack-closed]{display:none !important}
[hidden]{display:none !important}

.pbp{max-width:1240px;margin:0 auto;padding:clamp(24px,4vw,52px) clamp(16px,3vw,28px) clamp(56px,7vw,96px)}
.pbp-wrap{display:block}
.pbp-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px}
.pbp-back{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--mist)}
@media (hover:hover){.pbp-back:hover{color:var(--accent)}}
.pbp-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:22px 48px;margin-top:10px}
.pbp-intro{flex:1 1 340px;min-width:0}
.pbp-h1{margin:0;font-family:var(--font-display);font-stretch:125%;font-weight:200;text-transform:uppercase;letter-spacing:.14em;line-height:1.25;font-size:clamp(1.3rem,2.6vw,2.1rem);text-wrap:balance;color:var(--paper)}
.pbp-lede{margin:12px 0 0;max-width:52ch;font-size:15.5px;line-height:1.65;color:var(--mist)}
.pbp-head .pb-rates{flex:1 1 320px;max-width:520px}

/* THE NOTICE while the till is not live: neutral copy. pack-core sets html.pk-off for EVERY closed state, a definitive "no" and a failed read
   (404, 503, abort, malformed, a rule version this page does not hold) alike, so the notice shows after a failed read too. */
.pbp-closed{max-width:760px;margin:0 auto;padding:clamp(40px,8vw,96px) clamp(16px,3vw,28px)}
.pbp-closed .pbp-h1{margin-top:12px}
.pbp-closed p{margin-top:16px}
/* THE WAIT LINE, for the one state neither of those covers: the probe still out (or its script never loaded). Hidden at first paint, shown after
   6s by a one-shot CSS animation (no script needed), and gone the moment the switch settles. It is not the builder: it opens nothing. */
.pbp-wait{max-width:760px;margin:0 auto;padding:clamp(40px,8vw,96px) clamp(16px,3vw,28px);visibility:hidden;animation:pbp-late .01s linear 6s forwards}
.pbp-wait .pbp-h1{margin-top:12px}
.pbp-wait p{margin-top:16px}
@keyframes pbp-late{to{visibility:visible}}
html.pk-live .pbp-wait,html.pk-off .pbp-wait{display:none}
.pbp-cta{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:12px 28px;border-radius:100px;background:var(--fill);color:var(--on-fill);font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
