/** Shopify CDN: Minification failed

Line 24:203 Unexpected "/"

**/
/*/* Instagram sits apart from the primary destinations as a plain icon row
   at the very bottom of the drawer, so it reads as an external social
   link rather than another page in the list. Icon style is the header's
   own .ph-nav__ig. */
.ph-mnav-flat__social {
  display: flex;
  align-items: center;
  padding: 12px 28px 24px;
  border-top: 1px solid var(--ph-border);
  margin-top: 16px;
}
.ph-mnav-flat__social .ph-nav__ig {
  margin-left: -11px;
}
 ═══════════════════════════════════════════════════════════════════
   PHALANX GLOBAL — premium UI features active on every page
   Custom cursor · page transitions · magnetic buttons ·
   text reveal · scroll fade-in · progress bar
═══════════════════════════════════════════════════════════════════ */

/* ── Force light rendering regardless of OS/browser dark mode ─────
   Without this, a visitor with system dark mode enabled gets native
   form controls (checkboxes, date pickers, select dropdowns) and
   scrollbars auto-rendered in dark UA styling, even though nothing
   in our own CSS reacts to prefers-color-scheme. This is the one
   platform-level switch that governs that behavior, so it is set
   site-wide here rather than per-page. ── */
:root {
  color-scheme: light;
}

/* ── Buttons inherit the page font ───────────────────────────────
   base.css resets font on input/textarea/select but not <button> —
   browsers default a bare <button> to the OS UI font otherwise.
   Every Phalanx button already sets font-family explicitly, but this
   is the site-wide safety net so no button anywhere can silently
   fall back to system UI typography. ── */
button {
  font-family: inherit;
}

/* ── Design tokens (available on all pages) ───────────────────────
   Official PHALANX palette. Roles are brand guidance, not per-screen
   quotas — see each token's comment for how/when to reach for it.
   Legacy names are kept so every existing call site stays valid;
   only the values move to the official hex, plus two new tokens
   (--ph-navy-text, --ph-cyan, --ph-light-blue) for roles the old
   two-token system couldn't express on its own. ── */
:root {
  /* Nav bar height — every page's hero/content clearance reads this
     same token via var(--ph-nav-h, 68px), so raising it here for
     desktop (below) grows the bar AND every page's offset in lockstep,
     instead of drifting out of sync. */
  --ph-nav-h: 68px;
  --ph-navy:       #000D2A;              /* Primary Navy — dark surfaces/backgrounds, brand anchors */
  --ph-navy-text:  #001036;              /* Secondary Navy — headings, body text, borders, structure */
  --ph-navy-mid:   #001036;              /* hover/active shade between navy and navy-text */
  --ph-blue:        #0050EC;             /* Electric Blue — CTA, active state, precise accent. Use sparingly. */
  --ph-blue-hover:  #2D6FF0;             /* lighter tint, filled-button hover only */
  --ph-blue-active: #003FC4;             /* darker tint, filled-button :active/pressed only */
  --ph-blue-lt:     #87B5ED;             /* Light Blue — quiet secondary detail, soft contrast (not another accent) */
  --ph-cyan:       #00B5FE;              /* Cyan — rare cognitive/neural signal only, never a generic accent */
  --ph-blue-dim:   rgba(0, 80, 236, 0.12);
  /* Form fields: one set of values; light pages use them as they are, dark surfaces swap the border for a white fill. */
  --ph-field-h:          52px;
  --ph-field-h-compact:  48px;  /* phone hero, where the form shares the first screen with the photograph */
  --ph-field-px:         16px;
  --ph-field-fs:         16px;  /* never below 16px: iOS zooms on focus */
  --ph-field-border:     rgba(0, 16, 54, 0.46);
  --ph-field-border-hover: rgba(0, 16, 54, 0.72);
  --ph-field-ring:       0 0 0 3px rgba(0, 80, 236, 0.18);
  --ph-field-error:      #B42318;  /* functional error red, outside the brand palette on purpose */
  --ph-field-error-ring: 0 0 0 3px rgba(180, 35, 24, 0.16);
  --ph-field-label-gap:  8px;
  /* Lemon Lime flavor accent pair — same canonical values sections/
     phalanx-product.liquid's dedicated .pco-med section already
     defines locally as --pco-med-lemon/--pco-med-lime (kept there
     unchanged, since that section uses them extensively). These
     global copies exist so the same premium gold/green flavor
     treatment can be applied consistently to "Lemon Lime" text
     anywhere else on the site outside that section's own DOM scope,
     without a second, different set of flavor colors emerging. */
  --ph-flavor-lemon: #8F7210; /* was #BF9A1F: 2.7:1 on white (below AA for the 11-13px flavour labels); 4.6:1 now */
  --ph-flavor-lime:  #527D33; /* was #5B8A3A: 4.1:1; 4.8:1 now */
  --ph-white:      #FFFFFF;
  /* Text on Primary Navy: three steps only. Primary = white, secondary =
     running copy, tertiary = meta/legal. Light Blue (--ph-blue-lt) stays the
     label colour; nothing else is mixed in. */
  --ph-on-navy:    #FFFFFF;
  --ph-on-navy-2:  rgba(255, 255, 255, 0.80);
  --ph-on-navy-3:  rgba(255, 255, 255, 0.62);
  --ph-off:        #F2F2F2;
  /* Was 0.50 — at that opacity, navy-derived muted text reliably reads
     as neutral gray rather than a quiet shade of navy (confirmed via
     rendered-pixel inspection: rgba(0,16,54,0.50) over white blends to
     rgb(128,136,155), a visually gray tone despite the navy source
     value). Raised to 0.62, the lower bound of the "still visibly
     navy" range used elsewhere on the site for muted body copy. */
  --ph-muted:      rgba(0, 16, 54, 0.62);
  --ph-border:     rgba(0, 16, 54, 0.10);
  /* Hairlines: ONE value on light surfaces (--ph-border) and ONE on navy
     (--ph-border-dark). Component outlines may still differ; dividers do not. */
  --ph-border-dark: rgba(255, 255, 255, 0.14);
  --ph-glass-bg:   rgba(0, 16, 54, 0.035);
  /* ═══════════════════════════════════════════════════════════════
     PHALANX TYPOGRAPHY SYSTEM — three roles, three fonts. Replaces the
     old two-font (Cormorant Garamond + Figtree) system in full.

     --ph-font-brand (Cormorant Garamond, self-hosted, snippets/
       fonts.liquid) — the PHALANX wordmark and a short, explicitly
       documented list of classical/editorial quote exceptions ONLY.
       Never a general heading font — that's what made it feel
       ordinary before; it's exclusive now by construction.

     --ph-serif (Marcellus) — PHALANX's display/heading font: H1-H3,
       section headings, product/Formula identity, chapter headings.
       Loaded via Shopify's own font-picker system (settings.
       type_heading_font / type_accent_font = marcellus_n4, see
       snippets/theme-styles-variables.liquid), the SAME mechanism
       stock/Horizon components already read from — so custom PHALANX
       sections and stock components now draw from one single loaded
       font, not two competing ones. Marcellus ships one real weight
       (400) — do not pair this token with font-weight above 400
       (browsers would synthesize/fake-bold it); reach for scale,
       tracking, case or layout instead for more visual weight.

     --ph-sans (Manrope) — PHALANX's UI/body font: brödtext, nav,
       buttons, forms, labels, FAQ answers, cart/search/collection UI.
       Also Shopify font-picker-loaded (type_body_font /
       type_subheading_font = manrope_n4 / manrope_n6), real weights
       200-800 available, so 400-600 here are all genuine, never
       synthesized. */
  --ph-font-brand: 'Cormorant Garamond', 'Cormorant Garamond Fallback', Georgia, 'Times New Roman', serif;
  --ph-serif:      var(--font-heading--family);
  --ph-sans:       var(--font-body--family);

  /* ── Premium image system — shared values, applied per-component.
     Four treatments (see comment further down): Editorial light,
     Dark section, Full bleed, Product studio. Not every image uses
     every value — a component picks what its function calls for. ── */
  --ph-img-radius:       6px;
  --ph-img-radius-sm:    4px;
  /* Corner-radius scale (research: perfume houses, Armani, Lamborghini and Aesop use 0-2px
     controls; media keeps the approved image tokens above). control = buttons, fields, chips,
     tags, nav controls; panel = dialogs, menus, cards and notices (same value as images). */
  --ph-radius-control:   2px;
  --ph-radius-panel:     var(--ph-img-radius);
  --ph-img-border-light: rgba(0, 16, 54, 0.10);
  --ph-img-border-dark:  rgba(255, 255, 255, 0.14);
  --ph-img-shadow:       0 4px 18px rgba(0, 16, 54, 0.08);
  --ph-img-shadow-sm:    0 2px 10px rgba(0, 16, 54, 0.06);
  --ph-img-hover-ms:     var(--ph-motion-standard);
  --ph-img-hover-scale:  1.02;

  /* ── Spacing scale — a shared vocabulary for the RELATIONSHIP gaps
     the polish audit called out (eyebrow→heading, intro→CTA, content→
     divider, etc.), not a mandate that every section use identical
     numbers. Existing per-section values were tuned individually and
     mostly already read as consistent; these are additive infra for
     new/touched work going forward rather than a retrofit of every
     margin site-wide, which would be a lot of surface area to re-touch
     for a change with no visible difference on already-correct pages. ── */
  --ph-space-3xs: 4px;
  --ph-space-2xs: 8px;
  --ph-space-xs:  12px;
  --ph-space-sm:  16px;
  --ph-space-md:  24px;
  --ph-space-lg:  40px;
  --ph-space-xl:  64px;
  --ph-space-2xl: 96px;

  /* ── Motion language — the durations/easing already in de-facto use
     across the site (dialogs, sticky CTAs, the hero mask reveal, the
     waitlist progress bar) named as tokens rather than repeated as raw
     values. --ph-ease-settle is the one curve used everywhere something
     larger moves into place; plain `ease` stays correct for small hover
     color/border shifts and isn't tokenized here. ── */
  --ph-ease-settle:      cubic-bezier(0.22, 1, 0.36, 1);   /* overlays, drawers, larger movement */
  --ph-ease-ui:          cubic-bezier(0.3, 0, 0.2, 1);     /* hover, focus, small UI state changes */

  /* ── PHALANX motion system — three durations, two curves. Every
     transition in PHALANX-owned CSS resolves to these. ──
       fast      hover / focus colour, border, opacity, underline
       standard  small reveals, menus, toggles, press feedback
       slow      overlays, drawers, sheets, larger movement
     Reduced motion collapses all three to ~0 (see the global rule at the
     end of this block), so nothing essential depends on animation. */
  --ph-motion-fast:      140ms;
  --ph-motion-standard:  220ms;
  --ph-motion-slow:      320ms;
  /* Height reveals built on max-height (FAQ panels, mobile menu, product accordions).
     The max-height cap is far larger than the content, so the visible part of the
     animation is only its first fraction; 400ms keeps the visible reveal at the
     ~100-150ms the original 380-450ms values produced. Not for anything else. */
  --ph-motion-reveal:    400ms;

  /* legacy names, kept so existing declarations keep resolving */
  --ph-duration-micro:   var(--ph-motion-standard);
  --ph-duration-base:    var(--ph-motion-slow);
  --ph-duration-large:   var(--ph-motion-slow);

  /* ── Type scale — a typography audit found 88 distinct font-size
     declarations across the site, the large majority one-off clamp()
     expressions never reused a second time. Most weren't really 88
     different intentions — they clustered into a handful of recurring
     roles (a hero/hero-scale display; a "standard page header" H1 that
     Vetenskap, Kvalitet and Produkter already matched byte-for-byte;
     a chapter/section H2; a smaller editorial H3) that had each simply
     drifted a few px/em apart from page to page. These tokens name
     those already-converged roles instead of inventing new sizes —
     each clamp() ceiling/line-height/tracking below is the value most
     pages in that role already agreed on. Applied where doing so is a
     genuine consolidation (matches or nearly matches the page's
     current rendered size); left alone where a page's own proportions
     are a deliberate, legitimate exception (Homepage hero, White
     Stallion, Alexander, Lemon Lime, and a handful of others noted at
     their own declarations) — this is a shared vocabulary for family
     resemblance, not a mandate that every heading become identical. ── */
  /* Tracking on all four was negative (tight), tuned for Cormorant
     Garamond when it was still the general heading font. Marcellus —
     the new display system — reads compressed and less premium at
     tight/negative tracking, so these flipped to a subtle positive
     scale instead: more air on the largest sizes, more restrained as
     size drops, never extreme. Centralized here so every heading
     referencing these tokens (directly or via a selector migrated to
     them) picks up the system in one place. */
  --ph-type-display:  clamp(2.75rem, 7vw, 5rem);      /* ~44–80px — hero-scale: Homepage hero, Blog hero */
  --ph-lh-display:    1.04;
  --ph-track-display: 0.045em;

  --ph-type-h1:  clamp(2.4rem, 8vw, 4rem);             /* ~38–64px — standard page header (Vetenskap/Kvalitet/Produkter's exact existing value) */
  --ph-lh-h1:    1.03;
  --ph-track-h1: 0.04em;

  --ph-type-h2:  clamp(2rem, 3.2vw, 2.6rem);           /* 32–41.6px — section / chapter heading, one size site-wide */
  --ph-lh-h2:    1.06;
  --ph-track-h2: 0.03em;

  --ph-type-h3:  clamp(1.25rem, 2vw, 1.6rem);          /* 20–25.6px — card / item / sub-section heading */
  --ph-lh-h3:    1.1;
  --ph-track-h3: 0.025em;

  /* Uppercase product/display names (FORMULA 48, GAME CHANGER, card titles) */
  --ph-track-product: 0.05em;

  /* ── Body-text scale — 4 semantic levels, desktop values here and
     mobile step-down at <=767px right below (both consumed only via
     var(), so this is the one place either axis ever changes). Not a
     mechanical "p{font-size:18px}": each level names a ROLE (section
     intro vs. ordinary paragraph vs. secondary note vs. metadata), and
     a component picks the level its copy actually plays, same spirit
     as the heading scale above. --ph-type-body was 17px flat with no
     mobile step before this pass; --ph-type-lede/-body/-body-sm existed
     as tokens but were never actually wired to a real font-size
     anywhere (only --ph-measure-* and --ph-type-label were live) — this
     is the pass that actually applies them. ── */
  --ph-type-lede:      20px;    /* LEAD — section intros, high-priority explanatory paragraphs, major product explanation */
  --ph-lh-lede:        1.58;

  --ph-type-body:      18px;    /* STANDARD — the dominant size for ordinary readable body copy */
  --ph-lh-body:        1.6;

  --ph-type-body-sm:   16px;    /* SECONDARY — genuinely secondary info: FAQ support text, secondary notes, footer link text */
  --ph-lh-body-sm:     1.5;

  --ph-type-micro:     13px;    /* MICRO — metadata/utility prose (fine print, disclaimers) — never a normal paragraph */
  --ph-lh-micro:       1.4;

  --ph-type-label:    11px;                            /* eyebrow/small label — already the site-wide .ph-eyebrow size */
  --ph-track-label:   0.18em;
  /* Tracking scale (DESIGN-04). --ph-track-label is the eyebrow value (kept
     under its original name; --ph-track-eyebrow is an alias for new code). */
  --ph-track-eyebrow: var(--ph-track-label);
  --ph-track-ui:      0.08em;   /* small uppercase UI labels, meta, table heads, button labels */
  --ph-track-body:    0.02em;   /* running text where tracking is applied at all */
  --ph-track-display: 0.04em;   /* Marcellus headings that are tracked */

  /* ── Reading-column widths — the "HIGH PRIORITY" line-length pass.
     ch is relative to each element's own font-size, so these stay
     correct wherever they're applied rather than needing a pixel
     value per font-size. ── */
  --ph-measure-editorial: 66ch;  /* long-form: Vetenskap, Kvalitet, About, Article body */
  --ph-measure-lede:      54ch;  /* intro/lede paragraphs */
  --ph-measure-narrow:    44ch;  /* short product/story copy */

  /* ── Standard desktop content band — ONE source of truth for the
     "main grid" max-width every phalanx-* section's own inner
     container independently hardcoded as 1280px (the nav, Game
     Changer's .phd-inner, Vetenskap/Kvalitet/About's own content
     grids, chapter-marker wrappers, and more — ~30 separate
     declarations of the same literal number). At 1440px+ desktop
     viewports that left a widening dead margin on both sides of the
     header while full-bleed hero/media sections beside it ran edge to
     edge — the "mobile content on a huge canvas" feeling. Raised here
     once, applied everywhere that role appears, so the header and
     every section's content band grow back into proportion with the
     page together instead of drifting apart at wide viewports. Reading
     columns (--ph-measure-*, above) are untouched — this only widens
     the outer grid, never the actual line length of body text. ── */
  --ph-content-width: 1440px;

  /* Nav-only exception: the header bar is chrome, not a content column,
     so it's allowed its own, slightly wider cap than the page's content
     grid below it — giving genuinely bigger nav text real room to
     breathe at wide viewports instead of staying frozen at the
     1440px-content cap forever (previously identical at 1920px and
     1440px, which is why the nav could never grow past the smallest-
     fitting sizes tuned for exactly 1440px). Below ~1600px viewport
     this has no effect at all (the viewport itself stays the limit,
     same as before) — it only ever adds room, never removes it. */
  --ph-nav-content-width: 1600px;
}

/* Heading scale — small-phone steps. Fluid between 320 and the breakpoint,
   capped at the value the next range starts from, so there is no jump. */
@media screen and (max-width: 479px) {
  :root { --ph-type-h1: clamp(1.9rem, 9.2vw, 2.4rem); }
}
@media screen and (max-width: 639px) {
  :root {
    --ph-type-h2: clamp(1.625rem, 7.4vw, 2rem);
    --ph-type-h3: clamp(1.15rem, 5.2vw, 1.35rem);
  }
}

/* Body-text scale — mobile step-down (LEAD/STANDARD 1px narrower than
   desktop; SECONDARY/MICRO already correct at every width so they're
   not repeated here). Matches the site's one mobile/desktop boundary
   used everywhere else in this file (1024px), applied as <=1023px so
   it wins over the desktop values above regardless of source order. */
@media screen and (max-width: 1023px) {
  :root {
    --ph-type-lede: 18px;
    --ph-type-body: 17px;
    --ph-type-body-sm: 15px;
  }
}

/* ── Global heading typography base ────────────────────────────────
   Applies to every semantic h1–h3 site-wide (h4 stays out — it's used
   for small uppercase labels/eyebrow-adjacent text in a few places,
   not large Cormorant display type, so hyphenation isn't a concern
   there). Swedish compound words in large Cormorant Garamond headings
   should never be broken mid-word; this was previously only set on
   the product page, everywhere else relied on the browser's default
   (which does nothing unless `hyphens: auto` is explicitly opted
   into, so this is a safety net, not a behavior change, on every page
   that wasn't already fighting a bad break). font-kerning: normal is
   the correct default for large display type in most browsers already,
   set explicitly here so it's never silently left to inherit oddly
   from a component that reset it. ── */
h1, h2, h3 {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  font-kerning: normal;
}

/* ═══════════════════════════════════════════════════════════════════
   BRAND SYMBOL — canonical size system (ONE source of truth)

   --ph-symbol-h is the height EVERY PHALANX symbol on the site renders
   at, at a given breakpoint: nav lockup, footer, About founder intro,
   Game Changer brand story, homepage closing. Components set spacing
   around the mark to suit their context, but never its height — so the
   mark can never drift to 20px in one place and 65px in another (which
   is exactly what the previous per-call `size:` parameters produced).

   It derives from the merchant's two existing Theme Editor controls,
   emitted as raw px by snippets/phalanx-brand-tokens.liquid:
     Logo → "Desktop height"  (settings.logo_height)        → >= 1024px
     Logo → "Mobile height"   (settings.logo_height_mobile) → <= 1023px
   No new settings; the var() fallbacks below keep this correct even on
   a layout that never rendered the tokens snippet.

   CEILING — why the raw setting is clamped rather than used directly:
   the nav bar is a fixed 68px tall (constant across scroll states — it
   no longer shrinks once scrolled), a height other work depends on
   (--header-height, scroll-padding-top, the CLS fixes). A symbol taller
   than the bar cannot render without either clipping or growing the
   bar, so the raw value is capped at what the bar can physically hold
   with optical breathing room. The Theme Editor range still runs to
   100px because settings.logo_height is shared with Savor's stock
   header block, which has no such constraint — above the ceiling the
   Phalanx mark simply renders AT the ceiling rather than breaking the
   header. Desktop ceiling raised 44→50px as part of the global desktop
   nav enlargement (moderately bigger logo, still well clear of the
   68px bar — ~9px breathing room per side). Mobile ceiling (40px)
   unchanged; this was a desktop-only complaint and mobile has its own,
   already-adequate proportions.
═══════════════════════════════════════════════════════════════════ */
:root {
  --ph-symbol-ceiling: 40px;
  --ph-symbol-h: clamp(12px, var(--ph-symbol-h-mobile-raw, 28px), var(--ph-symbol-ceiling));
}
@media screen and (min-width: 1024px) {
  :root {
    --ph-symbol-ceiling: 50px;
    --ph-symbol-h: clamp(12px, var(--ph-symbol-h-desktop-raw, 36px), var(--ph-symbol-ceiling));
  }
}
/* Desktop nav enlargement, completed: the bar itself grows to match
   the logo/icon sizing a previous pass already bumped (ceiling
   44→50px, icon svg 16→18px) but never followed through on — those
   were left looking cramped inside a bar that stayed 68px tall.
   Scoped to 1280px (where the full link row replaces the hamburger),
   not the 1024px tablet/hamburger tier, so that range is untouched. */
@media screen and (min-width: 1280px) {
  :root {
    --ph-nav-h: 80px;
    --ph-symbol-ceiling: 56px;
  }
}

/* Every symbol image, wherever it renders.

   Sized with max-height/max-width rather than a fixed height, and this
   distinction matters: a fixed `height` plus `max-width: 100%` lets the
   width be clamped while the height stays put, which SQUASHES the mark.
   (Measured at 320px: a 40px-tall mark rendered 31.4px wide — a visibly
   distorted logo.) With both axes expressed as maxima and both
   dimensions `auto`, the intrinsic aspect ratio drives the box: the
   mark renders at exactly --ph-symbol-h when there is room, and scales
   down PROPORTIONALLY on both axes when a narrow bar squeezes it.
   Never stretched, never cropped, never distorted.

   image_tag emits real width/height attributes, so the browser derives
   an aspect-ratio for the box before the file loads — no layout shift. */
.phalanx-lockup__symbol-img,
.phalanx-logomark__img {
  width: auto;
  height: auto;
  max-height: var(--ph-symbol-h);
  max-width: 100%;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE SCROLLBARS — restore the platform's overlay behaviour

   ROOT CAUSE of the visible scrollbar tracks reported on phones:
   assets/base.css (Savor stock) styles the scrollbar GLOBALLY and
   unscoped —
     html { scrollbar-width: thin; scrollbar-color: <fg40> <bg>; }   (line ~28)
     ::-webkit-scrollbar { width: 20px; }                            (line ~3931)
     ::-webkit-scrollbar-track / -thumb { ... }
   On Blink/WebKit, authoring ANY ::-webkit-scrollbar rule opts the
   element out of the platform's OVERLAY scrollbar (transparent, floats
   above content, auto-fades) and into a CLASSIC one: always painted,
   always occupying layout width. Because the selector is unscoped it
   hits the document scroller AND every nested scroller — which is why
   a track appeared both at the side of the viewport and inside
   components like the founder dialog. `scrollbar-width: thin` does the
   same thing in Firefox.

   Fix: below the site's 1024px mobile breakpoint, hand the scrollbar
   back to the platform. Scrolling itself is completely untouched —
   this changes only how the scrollbar is PAINTED, not whether the
   element scrolls, so touch/momentum scrolling, the founder dialog and
   the mobile menu all keep working exactly as before. Deliberately NOT
   applied at >= 1024px — see the PHALANX DESKTOP SCROLLBAR block right
   below instead, which replaces Savor's generic stock styling there.
═══════════════════════════════════════════════════════════════════ */
@media screen and (max-width: 1023px) {
  html,
  body,
  * {
    /* Firefox */
    scrollbar-width: none;
  }
  /* Blink / WebKit — width:0 on the scrollbar box itself returns the
     element to overlay painting without touching overflow behaviour. */
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-thumb {
    background: transparent;
    border: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PHALANX DESKTOP SCROLLBAR — main page only, >= 1024px

   AUDIT (measured, real Chromium/CDP inspection): the desktop
   scrollbar was never hidden, removed, or suppressed by any PHALANX
   rule — the mobile fix just above is correctly scoped to
   max-width: 1023px and never reaches this width. What desktop
   actually had was Savor's own stock, UNSCOPED styling
   (assets/base.css: `::-webkit-scrollbar { width: 20px }`,
   `scrollbar-color: <fg 40%> <bg>`, a 20px pill-radius thumb clipped
   to content-box) — wide, low-contrast (40% opacity), and rounded
   like a mobile app control, not hidden. That combination is
   plausibly why it read as "disappeared" at a glance against a
   busy/photographic hero rather than because it was actually gone.

   This block replaces that stock styling with a narrower, higher-
   contrast, on-brand one — main document scroller only. Selectors are
   scoped to `html`/`body` specifically (an element-scoped
   `html::-webkit-scrollbar` is higher-specificity than the stock
   unscoped `::-webkit-scrollbar` regardless of source order, so this
   reliably wins for the page scrollbar), never the universal `*` the
   mobile block above uses — internal scroll containers (the founder
   dialog's own scroll region, the product gallery's thumbnail strip,
   search/quick-add modals) are deliberately left on their existing,
   already-correct behavior, not swept into this. */
@media screen and (min-width: 1024px) {
  html,
  body {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--ph-navy, #000D2A) var(--ph-off, #F2F2F2);
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    /* Narrow and elegant, not Savor's 20px — a premium detail should
       be quiet, not a thick UI element competing with the page. */
    width: 10px;
  }
  html::-webkit-scrollbar-track,
  body::-webkit-scrollbar-track {
    /* Very light neutral, subtle and quiet — the same off-white token
       used for premium image-loading surfaces elsewhere on the site,
       not a stark white block. */
    background: var(--ph-off, #F2F2F2);
  }
  html::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb {
    /* PHALANX dark navy, solid — legible against the light track
       (Savor's own thumb was the same family of color but at 40%
       opacity, which is the low-contrast half of why it read as
       barely-there). A small radius softens the corners without the
       full pill-rounded, mobile-app look Savor's 20px radius gave it. */
    background-color: var(--ph-navy, #000D2A);
    border-radius: 2px;
  }
  html::-webkit-scrollbar-thumb:hover,
  body::-webkit-scrollbar-thumb:hover {
    /* Slightly stronger navy — a restrained hover cue, not a color
       change into the brand blue (that's reserved for :active below,
       so dragging feels distinct from simply hovering). */
    background-color: var(--ph-navy-mid, #001036);
  }
  html::-webkit-scrollbar-thumb:active,
  body::-webkit-scrollbar-thumb:active {
    /* Brand blue while actively dragging only — a small, premium
       tactile confirmation, never a resting or hover state. */
    background-color: var(--ph-blue, #0050EC);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   THEME EDITOR SCROLLBAR OVERRIDE — re-enables the PHALANX desktop
   scrollbar above whenever Shopify Theme Editor is active, regardless
   of the preview iframe's actual width.

   ROOT CAUSE this fixes: the MOBILE SCROLLBARS block above is scoped
   to `max-width: 1023px` and correctly hands the scrollbar back to
   the platform for real phones/tablets. But Shopify's Theme Editor
   preview iframe is frequently narrower than 1024px even while the
   editor's own UI is set to "desktop" — so that mobile-width query
   fires *inside* Theme Editor too, hiding the desktop scrollbar there
   even though no real mobile visitor is involved.

   Fix: layout/theme.liquid already stamps `class="shopify-design-mode"`
   onto <html> site-wide, straight from Liquid's own `request.design_mode`
   — present on every template Theme Editor renders, set once before
   any section markup exists, and untouched by `shopify:section:load`/
   `unload` (those only ever replace content inside <body>, never the
   <html> tag's own class), so no JavaScript is needed to keep this in
   sync across section reloads. This block simply restates the exact
   same desktop scrollbar rules from above, re-scoped to
   `html.shopify-design-mode`. Its selectors are more specific than the
   mobile block's `html, body, *` / unscoped `::-webkit-scrollbar`, so
   they win automatically whenever that class is present — no
   `!important`, no touching the mobile or desktop blocks themselves,
   and real mobile customers (who never carry this class) are
   completely unaffected. Lives here in the site-wide stylesheet, not
   any single section, so it applies on every template Theme Editor
   can render — product, collection, Vetenskap, Kvalitet, About, cart,
   search, the homepage — not just `/`. */
@media screen and (max-width: 1023px) {
  html.shopify-design-mode,
  html.shopify-design-mode body {
    scrollbar-width: thin;
    scrollbar-color: var(--ph-navy, #000D2A) var(--ph-off, #F2F2F2);
  }
  html.shopify-design-mode::-webkit-scrollbar,
  html.shopify-design-mode body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  html.shopify-design-mode::-webkit-scrollbar-track,
  html.shopify-design-mode body::-webkit-scrollbar-track {
    background: var(--ph-off, #F2F2F2);
  }
  html.shopify-design-mode::-webkit-scrollbar-thumb,
  html.shopify-design-mode body::-webkit-scrollbar-thumb {
    background-color: var(--ph-navy, #000D2A);
    border-radius: 2px;
  }
  html.shopify-design-mode::-webkit-scrollbar-thumb:hover,
  html.shopify-design-mode body::-webkit-scrollbar-thumb:hover {
    background-color: var(--ph-navy-mid, #001036);
  }
  html.shopify-design-mode::-webkit-scrollbar-thumb:active,
  html.shopify-design-mode body::-webkit-scrollbar-thumb:active {
    background-color: var(--ph-blue, #0050EC);
  }
}

/* ── Text selection — was left at the browser default (a generic OS
   blue highlight) everywhere on the site; navy reads as a deliberate,
   considered detail instead of an unstyled gap. ── */
::selection {
  background: var(--ph-navy);
  color: #FFFFFF;
}

/* ── Hide Savor's global header & footer on every custom Phalanx page —
   each page renders its own self-contained nav/footer instead. Was
   duplicated verbatim (only the root class differing) across all 7
   section files plus templates/page.privacy.liquid; consolidated here.
   Collection intentionally does not get the padding-top reset below —
   it never had it before consolidation, so that's preserved as-is.

   Scoped via a class set on <body> itself, computed server-side in
   layout/theme.liquid (and hardcoded in layout/password.liquid) from
   `template` — NOT via the previous body:has(.ph-root, .pco-root,
   .phd-root) reacting to a marker element further down the page.
   That :has() version caused a real, reported flash of the stock
   header on navigation: #header-group is emitted in the HTML before
   the page's own .ph-root/.pco-root/.phd-root marker, so on a
   streamed response the browser can paint the stock header — fully
   visible — before the marker has arrived and :has() has anything to
   match, then hide it a moment later once it does. A class already
   present on <body> is parsed before #header-group even exists in
   the DOM, so there is no window where the wrong state can paint. ── */
body.phalanx-full-page #header-group,
body.phalanx-full-page > footer {
  display: none !important;
}
/* layout/theme.liquid no longer renders the stock header-group's content
   at all on these templates (PERF-3 fix — it was previously rendered in
   full by Liquid, then hidden here, wasting real server render time on
   markup nobody ever sees). Its own height-measurement script
   (setHeaderHeighCustomProperties) early-returns when it can't find
   `header-component` in the DOM, which it now won't on these pages — so
   these two custom properties, previously forced to 0px indirectly via
   a hidden-but-present element's zero offsetHeight, are pinned here
   explicitly instead, to guarantee no behavior change for anything
   reading them (e.g. base.css's transparent-header negative-margin
   rule and product-media-container's viewport-offset fallback). */
body.phalanx-full-page {
  --header-height: 0px;
  --header-group-height: 0px;
}
body.phalanx-padding-reset {
  padding-top: 0 !important;
}

/* ── Header-only override — pages that get the shared Phalanx nav
   (snippets/phalanx-nav.liquid) but render the footer through the
   standard footer-group flow rather than embedding it directly in the
   page (cart, search, password, login, register): hides only the
   stock header, not the footer, unlike the full-page-takeover rule
   above. The footer itself is still the shared Phalanx component
   (sections/footer.liquid renders snippets/phalanx-footer.liquid) —
   only the render path differs, not the design.
   --header-height is forced to the fixed nav's own height so every
   existing calc(100vh - var(--header-height)) on these pages (e.g.
   templates/customers/login.liquid's .pl-login-shell) keeps working
   instead of measuring the now-hidden stock header as 0px — the
   !important is required because layout/theme.liquid's own script
   sets this as an inline style on <body>, which otherwise always
   wins over a stylesheet rule regardless of specificity. ── */
body.phalanx-nav-only-page #header-group {
  display: none !important;
}
body.phalanx-nav-only-page {
  --header-height: 68px !important;
  --header-group-height: 0px;
  padding-top: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   PHALANX FOOTER — shared across every page (snippets/phalanx-footer.liquid)
   One component, two render paths: "full page" templates (index, about,
   contact, privacy, blog, article, product, collection, 404) render the
   snippet directly in their own markup; "nav only" templates (cart,
   search, login, register) render it through the standard footer-group
   flow via sections/footer.liquid, which now just renders this same
   snippet instead of its own separate 3-column design. Both paths share
   this one set of rules.

   Three stacked levels — the closing chapter of the page, not leftover
   navigation: (1) brand/CTA, (2) grouped navigation, (3) legal/utility.
   Previously a single flat row (logo · links · copyright · back-to-top)
   that read as thin and unfinished on a wide viewport; restructured for
   hierarchy rather than just given more padding.
═══════════════════════════════════════════════════════════════════ */
.ph-footer {
  background: var(--ph-navy);
  padding: 64px 24px 40px;
}
.ph-footer__inner {
  max-width: var(--ph-content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── Level 1 — closing brand / CTA. Centered: the one moment on the
   page meant to read as a singular statement, not a row of controls. ── */
.ph-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
/* Layout/touch-target only — color, type, hover-tracking and
   keyboard-focus outline all now live once, canonically, in
   snippets/phalanx-logo.liquid's own stylesheet (.phalanx-lockup /
   .phalanx-lockup__word), shared by every brand-lockup placement. */
.ph-footer__logo {
  /* Padding expands the vertical tap target toward ~44px (WCAG 2.5.8 /
     Apple HIG) without growing the visible wordmark/mark; negative
     margin cancels it back out so the row's own layout/gaps are
     unaffected. */
  padding: 10px 0;
  margin: -10px 0;
}
/* Logo-only variant (show_cta: false) — About renders its own
   equivalent closing headline + button (.pha-cta) immediately above
   this footer with nothing in between; repeating "Formula 48." and
   the same button right after would read as a duplicate, not an
   editorial echo. The mark stays present, just without restating the
   same headline/button back to back on the same navy. */
.ph-footer__brand--logo-only {
  gap: 0;
}
.ph-footer__cta-heading {
  font-weight: 400;
  color: var(--ph-on-navy);
  margin: 0;
  text-wrap: balance;
}
/* Same filled Electric Blue button treatment as the site's other primary
   CTAs (.ph-closing__cta) — one recognizable button, not a new style. */
.ph-footer__cta-button {
  display: inline-block;
  padding: 17px 40px;
  background: var(--ph-blue);
  color: #FFFFFF;
  font-family: var(--ph-sans);
  font-size: 12.5px;
  line-height: 1.6; /* explicit so the footer button is the same height on every page (was 58px or 55.5px) */
  font-weight: 600;
  letter-spacing: var(--ph-track-ui);
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--ph-radius-control);
  transition: background var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-footer__cta-button:hover,
.ph-footer__cta-button:focus-visible {
  background: var(--ph-blue-hover);
}
.ph-footer__cta-button:active {
  background: var(--ph-blue-active);
}
.ph-footer__cta-button:focus-visible {
  outline: 2px solid var(--ph-blue-lt);
  outline-offset: 2px;
}

/* ── Level 2 — structured navigation, grouped semantically instead of
   one long horizontal row. ── */
.ph-footer__nav-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ph-footer__nav-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.ph-footer__nav-label {
  /* fixed line box: the Cormorant "PHALANX" label and the Manrope labels have
     different natural heights, which pushed that column's links 1px down */
  display: block;
  height: 16px;
  line-height: 16px;
  font-family: var(--ph-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ph-blue-lt);
}
/* The wordmark label is Cormorant, whose capitals are about 12% smaller than Manrope's at the same size, so "PHALANX"
   looked smaller and thinner than UTFORSKA / KONTAKT. Sized up to the same optical cap height. */
.ph-footer__nav-label .ph-brand-word { font-size: 12.5px; letter-spacing: 0.14em; }
.ph-footer__link {
  display: flex;
  align-items: center;
  font-family: var(--ph-sans);
  font-size: var(--ph-type-body-sm);
  line-height: 1.4; /* explicit: inherited line-height made the footer 22px taller on some pages */
  color: var(--ph-on-navy-3);
  text-decoration: none;
  transition: color var(--ph-motion-fast) var(--ph-ease-ui);
  min-height: 44px;
  width: 100%;
}
.ph-footer__link:hover,
.ph-footer__link:focus-visible {
  color: #FFFFFF;
}
.ph-footer__link:active {
  color: rgba(255, 255, 255, 0.8);
}
.ph-footer__link:focus-visible {
  outline: 2px solid var(--ph-blue, #0050EC);
  outline-offset: 2px;
  border-radius: 2px;
}
.ph-footer__link--ig {
  gap: 6px;
}
.ph-footer__link--ig:hover,
.ph-footer__link--ig:focus-visible {
  color: var(--ph-blue-lt);
}
.ph-footer__link--ig:active {
  color: var(--ph-blue);
}

/* ── Level 3 — legal/utility, kept out of the primary nav above. ── */
.ph-footer__legal-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--ph-border-dark);
}
.ph-footer__copy {
  font-family: var(--ph-sans);
  font-size: var(--ph-type-micro);
  line-height: 1.4;
  /* Was 0.35 — ~3.1:1 against the navy footer, below WCAG AA's 4.5:1
     for normal-size text. Raised just enough to clear it (~5:1) while
     staying quieter than the 0.62-opacity footer nav links, so legal
     microcopy still reads as secondary, just not illegible. */
  color: var(--ph-on-navy-3);
  letter-spacing: 0.04em;
}
/* Premium Refinement 12.0: company identification as plain text in the legal row (same tone as the copyright line),
   two quiet lines: copyright, then the company. No icon, no extra block, no address, no e-mail. */
p.ph-footer__copy {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ph-footer__legal-links {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  flex-wrap: wrap;
}
.ph-footer__company-row { display: flex; }
/* the cookie-settings control is a <button> styled exactly like the legal links beside it */
button.ph-footer__cookie-open {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: var(--ph-sans);
  letter-spacing: inherit;
  cursor: pointer;
  text-align: left;
}
.ph-footer__link--legal {
  width: auto;
  /* 44px tap row on phones, matching the Till toppen button beside it */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: var(--ph-type-micro);
  color: var(--ph-on-navy-3);
}

/* ── Phones and tablets: a compact, composed footer ──
   Brand and closing button first, then the navigation as two quiet columns (Utforska /
   Phalanx) with the contact links as one row beneath, then the legal line. Same links as
   before, same 42px tap rows, roughly 40% less height than the single long list. ── */
@media screen and (max-width: 1023px) {
  .ph-footer { padding: 44px 20px 22px; }
  .ph-footer__inner { gap: 30px; }
  .ph-footer__brand { gap: 14px; }
  .ph-footer__cta-heading { font-size: clamp(1.55rem, 7.2vw, 2rem); line-height: 1.1; }
  .ph-footer__cta-button { min-width: min(100%, 250px); padding: 15px 28px; text-align: center; }
  .ph-footer__nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    padding-top: 26px;
    border-top: 1px solid var(--ph-border-dark);
  }
  .ph-footer__nav-group { gap: 0; }
  .ph-footer__nav-label { height: 14px; line-height: 14px; font-size: 11px; margin-bottom: 8px; }
  .ph-footer__nav-label .ph-brand-word { font-size: 12px; }
  .ph-footer__link { min-height: 42px; font-size: 15px; }
  .ph-footer__nav-group--contact {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 28px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--ph-border-dark);
  }
  .ph-footer__nav-group--contact .ph-footer__nav-label { flex-basis: 100%; }
  .ph-footer__nav-group--contact .ph-footer__link { width: auto; }
  .ph-footer__legal-row { gap: 2px; padding-top: 16px; }
  .ph-footer__copy { font-size: 12px; }
  .ph-footer__link--legal { font-size: 13px; }
  .ph-footer__legal-links { width: 100%; justify-content: flex-start; gap: 0 24px; }
}
/* Phones: the cookie-settings control moves up to the company line, so the legal row keeps its original three links on one line. */
@media screen and (max-width: 599px) {
  p.ph-footer__copy { width: 100%; gap: 2px; }
  /* same two columns as the navigation above: privacy | cookie choice, then back to top */
  .ph-footer__legal-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; justify-items: start; }
  .ph-footer__legal-links > * { white-space: nowrap; }
  .ph-footer__legal-links .ph-footer__link--legal { min-height: 44px; }
  .ph-footer__legal-links .ph-back-to-top { padding-inline: 0; margin: 0; }
  /* the added company line is paid for by slightly tighter vertical rhythm, so the phone footer keeps its height budget */
  /* 20.0: the legal links now take two 44px rows, paid for here so the phone footer keeps its height budget */
  .ph-footer { padding-top: 28px; }
  .ph-footer__inner { gap: 18px; }
  .ph-footer__legal-row { padding-top: 8px; }
}
@media screen and (max-width: 359px) {
  .ph-footer__link--legal, .ph-footer__company { font-size: 12px; }
}
@media screen and (min-width: 600px) and (max-width: 1023px) {
  .ph-footer__nav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph-footer__nav-group--contact { grid-column: auto; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; column-gap: 0; margin-top: 0; padding-top: 0; border-top: 0; }
  .ph-footer__nav-group--contact .ph-footer__nav-label { flex-basis: auto; }
  .ph-footer__nav-group--contact .ph-footer__link { width: 100%; }
}

@media screen and (min-width: 1024px) {
  /* Restructured from a centered brand block stacked on top of a
     full-width 3-column row into an editorial split: brand/CTA reads
     as its own statement on the left, the grouped navigation sits as
     a tighter cluster on the right rather than stretched edge-to-edge
     by space-between — the "centered stack, then equal thirds" layout
     read as generic rather than deliberately composed. flex-wrap +
     the legal row's own flex-basis: 100% (below) keeps that row full-
     width underneath this pair without changing the markup. */
  .ph-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    column-gap: 80px;
    row-gap: 72px;
  }
  .ph-footer {
    padding: 100px 60px 48px;
  }
  /* The footer's own 60px side padding already sets the page margin; the
     shared .page-width class added another 40px, so the footer sat 40px
     inside the grid every other section starts on. */
  .ph-footer__inner.page-width {
    padding-inline: 0;
  }
  .ph-footer__brand {
    flex: 1 1 320px;
    max-width: 380px;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
  }
  .ph-footer__cta-heading {
    text-wrap: balance;
  }
  .ph-footer__cta-button {
    padding: 18px 44px;
  }
  .ph-footer__nav-grid {
    flex: 0 1 auto;
    flex-direction: row;
    gap: 72px;
  }
  .ph-footer__nav-group {
    flex: 0 0 auto;
    min-width: 150px;
    gap: 18px;
  }
  .ph-footer__link {
    width: auto;
    min-height: 0;
    padding: 8px 0;
    margin: -8px 0;
  }
  .ph-footer__legal-row {
    flex-basis: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 32px;
  }
}

/* ── <picture> sizing — ROOT CAUSE FIX for site-wide broken image
   frames (large empty areas inside image wrappers, images rendering
   as a short strip inside a much taller box).

   The pattern used everywhere on Phalanx pages is:
     wrapper (aspect-ratio: X/Y, or position:absolute + inset:0)
       picture (no explicit height set, anywhere in the theme)
         img (height: 100%, object-fit: cover)

   <picture> is display:block (see base.css) but was never given an
   explicit height anywhere in the theme (confirmed — grepped every
   Phalanx file). A percentage height only resolves against a parent
   with a *definite* height; since <picture> itself has no defined
   height (it's sized by its content, i.e. the img — a circular
   reference), the spec requires the img's `height: 100%` be treated
   as `auto` instead. The img then renders at its own intrinsic
   aspect ratio at the wrapper's width — almost never matching the
   wrapper's aspect-ratio — while the wrapper still reserves its full,
   correct height. Result: the img sits in a corner of the box at
   whatever height it naturally computed to, and the rest of the box
   shows its plain background color as a large empty gap. This is the
   "image frame continues long after the image ends" bug, and it hits
   every component using this pattern the same way.

   Fix: give <picture> itself a definite height (100% of its own
   parent) so the percentage chain from wrapper → picture → img is
   unbroken. Harmless where it isn't needed — a wrapper with no
   defined height of its own (e.g. width-only, aspect-ratio set on the
   img instead) leaves picture at the same "auto" fallback as before,
   so nothing that already worked changes. Scoped to the Phalanx page
   wrappers only, not stock Shopify sections elsewhere in the theme. */
.ph-root picture,
.pco-root picture,
.phd-root picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Premium image frame system — treatments, applied per component
   via the --ph-img-* tokens above (see :root). Not a shared class —
   each component's own image rule picks which parts of a treatment
   it actually uses, since a full-bleed hero and a founder portrait
   are not the same kind of image.

   FRAME A — Editorial light: content sits on white/off-white.
     border-radius: var(--ph-img-radius); border: 1px solid
     var(--ph-img-border-light). Alexander collage, Medelhavet,
     blog/article cards. box-shadow: var(--ph-img-shadow) was part of
     this frame originally and stays available for a case that
     genuinely needs it (an image layered over other content), but
     was removed from the About page's founder/hero portraits and
     team photos during the image-system pass — those sit directly on
     the page background with nothing to lift above, so the shadow
     was adding a generic "card" quality rather than real hierarchy.
     Default to no shadow for a new Frame A use; add it back only with
     a specific reason.

   FRAME B — Dark section: content sits on navy.
     border-radius: var(--ph-img-radius); border: 1px solid
     var(--ph-img-border-dark); no shadow (a shadow reads as nothing
     against a dark background — the light hairline border alone
     supplies the separation). Closing imagery when boxed rather than
     full-bleed.

   FRAME C — Full bleed: the image *is* the section.
     No border, no shadow, no radius (or a very low one only where the
     section itself has rounded corners). Hero background, closing
     background when edge-to-edge.

   FRAME D — Product studio: a controlled, centered product shot.
     border-radius: var(--ph-img-radius-sm); border: 1px solid
     var(--ph-img-border-light); intentional off-white/white studio
     surface, not a stretched cover crop.

   FRAME E — .ph-frame (below): the detail/material treatment. A near-
     zero-radius wrapper, thin inset hairline plus one short Electric
     Blue accent segment on a single edge — an exhibition-plate read,
     not a card. Reserve for detail/material and select ingredient
     imagery (currently: the Formula 48 "Selected Components" editorial
     blocks on the Game Changer collection page). Never combined with
     a shadow, and never the default treatment for ordinary editorial
     or product imagery — see the class definition below for exactly
     what it draws. ── */

/* ── Image slot placeholder ──────────────────────────────────────── */
.ph-img-placeholder {
  width: 100%;
  height: 100%;
  background: #F2F2F2;
  border: 1px solid rgba(0, 16, 54, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}
.ph-img-placeholder__label {
  font-family: var(--ph-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 16, 54, 0.30);
  text-align: center;
  padding: 12px;
  pointer-events: none;
  user-select: none;
}

/* ── Shared glass card ───────────────────────────────────────────── */
.ph-glass {
  background: var(--ph-glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-panel);
}
/* Mobile: backdrop-filter triggers expensive off-screen compositing.
   Disable globally on small screens; per-component overrides
   (ph-modal__panel, ph-hcard, etc.) live in their section stylesheets.
   .ph-hero__form-wrap no longer carries .ph-glass — the hero card is a
   plain bordered card on a white background now, no blur needed. */
@media screen and (max-width: 768px) {
  .ph-glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ── Animated underline — grows left to right on hover. Uses a
   background-image gradient rather than a pseudo-element so it still
   underlines correctly if the link text wraps onto multiple lines. ── */
.ph-link-underline {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size var(--ph-motion-standard) var(--ph-ease-ui), color var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-link-underline:hover {
  background-size: 100% 1px;
}
@media (prefers-reduced-motion: reduce) {
  .ph-link-underline { transition: color var(--ph-motion-standard) var(--ph-ease-ui); }
}

/* Headings break evenly on every viewport (no short last-line orphans).
   :where() keeps specificity at 0, so any heading that sets its own
   text-wrap (or nowrap, like the hero) still wins. */
.ph-root :where(h1, h2, h3) {
  text-wrap: balance;
}

/* ── Default link color (DESIGN-05) ───────────────────────────────────
   base.css colors every plain <a> with the color scheme's `primary`,
   which the saved scheme settings hold as #2563EB (Tailwind blue, not a
   brand color). Re-point the default link at Electric Blue here instead
   of editing the saved settings; components that set --color or their
   own color are unaffected. */
html a {
  --button-color: var(--color, var(--ph-blue));
}
html :is(h1, h2, h3, h4, h5, h6, p) > a:hover {
  --button-color: var(--color, var(--ph-blue-active));
}
html :is(p:not(.h1, .h2, .h3, .h4, .h5, .h6), .rte :is(p, ul, ol, table)) a:where(:not(.button, .button-secondary)):hover {
  color: var(--ph-blue-active);
}

/* ── Eyebrow label — letter tracking settles in on load ──────────── */
@keyframes ph-eyebrow-settle {
  from { letter-spacing: 0.26em; }
  to   { letter-spacing: 0.18em; }
}
/* PHALANX brand mark (Cormorant Garamond) — ONLY for standalone brand
   display (footer branding label). Never wrap PHALANX inside running
   text, headings or FAQ questions: there it uses the surrounding font. */
.ph-brand-word {
  font-family: var(--ph-font-brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Eyebrows/overlines are a supporting informational role (categorize,
   orient, frame) — semantically distinct from both the main heading
   (Primary Navy) and body copy (Secondary Navy), so they get their own
   accent color rather than inheriting either. Previously Secondary
   Navy, which is exactly the same role as ordinary body text — on
   every section without its own override, the eyebrow visually read
   as just another line of body copy instead of a label. Electric Blue
   is the site's established "categorize/orient" accent (already used
   for Formula 48's eyebrow, active nav state, CTAs), reused here as
   the one consistent color for this entire label family site-wide. */
.ph-eyebrow {
  display: inline-block;
  font-family: var(--ph-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px; /* explicit: was inherited, so the label was 17.6px tall on some pages and 15.4px on others */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: ph-eyebrow-settle 0.5s ease-out;
  color: var(--ph-blue);
  margin-bottom: 20px;
}
/* Dark sections (Founder, Paint Reveal, Science's Formula 48 chapter)
   override this to the Light Blue token instead — see .ph-founder
   .ph-eyebrow, .ph-paint .ph-eyebrow and .phsci-eyebrow--dark. A quiet
   secondary color on navy, not another bright accent repeated on every
   single section heading site-wide. */
@media (prefers-reduced-motion: reduce) {
  .ph-eyebrow { animation: none; }
}

/* ── Shared form styles ──────────────────────────────────────────── */
.ph-form__row {
  display: flex;
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(0, 16, 54, 0.14);
  background: #FFFFFF;
  transition: border-color var(--ph-motion-standard) var(--ph-ease-ui), box-shadow var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-form__row:hover {
  border-color: rgba(0, 16, 54, 0.24);
}
/* Focus (#79): a solid Electric Blue edge plus a two-part halo: an inner
   white ring that lifts the field off dark photography, and a thin blue outer
   line that reads on white. Works on light and dark backgrounds alike. */
.ph-form__row:focus-within {
  border-color: var(--ph-blue);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65), 0 0 0 4px rgba(0, 80, 236, 0.55);
}
/* Invalid state — JS (initFormValidation) already sets aria-invalid on
   the input for assistive tech; this gives sighted visitors the same
   signal visually, reusing .ph-form__err's own #B42318 rather than a
   new red. Degrades silently (no border tint, still fully usable) in
   the rare browser without :has() support. */
.ph-form__row:has(.ph-form__input[aria-invalid="true"]) {
  border-color: rgba(180, 35, 24, 0.5);
}
.ph-form__row:has(.ph-form__input[aria-invalid="true"]):focus-within {
  border-color: rgba(180, 35, 24, 0.6);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}
.ph-form__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 14px 16px;
  box-sizing: border-box;
  line-height: normal;
  background: transparent !important;
  border: none;
  color: var(--ph-navy) !important;
  font-family: var(--ph-sans);
  /* 16px, not 14px — anything smaller triggers iOS Safari's automatic
     zoom-on-focus for text inputs, a jarring papercut on the hero/
     waitlist email field. */
  font-size: 16px;
  outline: none;
  box-shadow: none;
}
.ph-form__input::placeholder {
  color: rgba(0, 16, 54, 0.35) !important;
}
/* Suppress browser autofill colour bleed — already fixed on the
   Contact page's own input class; this closes the same gap on the
   shared hero/waitlist input, which didn't have it. */
.ph-form__input:-webkit-autofill,
.ph-form__input:-webkit-autofill:hover,
.ph-form__input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
  -webkit-text-fill-color: var(--ph-navy) !important;
  caret-color: var(--ph-navy);
  transition: background-color 5000s ease-in-out 0s;
}
.ph-form__btn {
  height: 52px;
  padding: 0 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  /* 1px transparent (not none) — invisible in normal rendering
     (box-sizing: border-box absorbs it, confirmed global reset) but
     forced-colors mode always paints a real border for any element
     that declares one, keeping this the one solid-fill control that
     would otherwise have zero boundary in high-contrast mode. */
  border: 1px solid transparent;
  border-left: 1px solid rgba(0, 16, 54, 0.10);
  background: var(--ph-blue);
  color: #fff;
  font-family: var(--ph-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: var(--ph-track-ui);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ph-motion-standard) var(--ph-ease-ui);
}
/* ═══════════════════════════════════════════════════════════════════
   PREMIUM CTA BUTTON FAMILY — shared primary/secondary button system,
   reused across the quality/science/search/404 cross-link CTAs, the
   contact form submit button, and the cart (checkout/continue-shopping/
   quantity controls). Typography and the Electric Blue fill match the
   already-established .ph-form__btn (hero waitlist button) exactly;
   this just formalizes it as a reusable class and adds a subtle 4px
   radius (matching .ph-nav__cta's own radius) rather than leaving each
   page to style its own one-off link/button. Never used to retrofit
   the hero's own button, which is untouched. ═══════════════════════ */
.ph-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  background: var(--ph-blue);
  color: #FFFFFF;
  font-family: var(--ph-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: var(--ph-track-ui);
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--ph-radius-control);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-btn-primary:hover,
.ph-btn-primary:focus-visible {
  background: var(--ph-blue-hover);
}
.ph-btn-primary:active {
  background: var(--ph-blue-active);
}
.ph-btn-primary:focus-visible {
  outline: 2px solid var(--ph-blue);
  outline-offset: 2px;
}
.ph-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ph-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  background: transparent;
  color: var(--ph-navy);
  font-family: var(--ph-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: var(--ph-track-ui);
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(0, 16, 54, 0.22);
  border-radius: var(--ph-radius-control);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--ph-motion-standard) var(--ph-ease-ui), color var(--ph-motion-standard) var(--ph-ease-ui), background var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-btn-secondary:hover,
.ph-btn-secondary:focus-visible {
  border-color: var(--ph-blue);
  color: var(--ph-blue);
}
.ph-btn-secondary:focus-visible {
  outline: 2px solid var(--ph-blue);
  outline-offset: 2px;
}
.ph-btn-secondary--dark {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.30);
}
.ph-btn-secondary--dark:hover,
.ph-btn-secondary--dark:focus-visible {
  border-color: var(--ph-cyan);
  color: var(--ph-cyan);
}
@media screen and (max-width: 600px) {
  .ph-btn-primary,
  .ph-btn-secondary {
    width: 100%;
  }
}

/* Text link: the third tier, for quiet actions and onward navigation.
   Sans 13/600, tracked .04em, Electric Blue, animated hairline underline
   (same mechanism as .ph-link-underline). --light is for navy surfaces. */
.ph-text-link {
  display: inline-block;
  font-family: var(--ph-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ph-blue);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  padding-bottom: 3px;
  transition: background-size var(--ph-motion-standard) var(--ph-ease-ui), color var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-text-link:hover,
.ph-text-link:focus-visible { background-size: 100% 1px; }
.ph-text-link:focus-visible { outline: 2px solid var(--ph-blue); outline-offset: 4px; border-radius: var(--ph-radius-control); }
.ph-text-link--light { color: var(--ph-blue-lt); }
.ph-text-link--light:focus-visible { outline-color: var(--ph-blue-lt); }
@media (prefers-reduced-motion: reduce) {
  .ph-text-link { transition: color var(--ph-motion-standard) var(--ph-ease-ui); }
}

.ph-btn-icon {
  flex-shrink: 0;
  pointer-events: none;
}
/* Submitting state: swaps the button's existing icon for this ring
   rather than changing the button's label/width, so the button never
   reflows while a request is in flight. */
.ph-btn-icon--spin {
  animation: ph-btn-spin 0.7s linear infinite;
}
@keyframes ph-btn-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ph-btn-icon--spin { animation: none; }
}
.ph-form__btn:hover,
.ph-form__btn:focus-visible {
  background: var(--ph-blue-hover);
}
.ph-form__btn:active {
  background: var(--ph-blue-active);
}
.ph-form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ph-form__btn:disabled:hover {
  background: var(--ph-blue);
}
/* #fca5a5 (a light coral) is correct on the GC waitlist's dark navy
   .pco-cta background — but this class is used on the hero form's
   light tint panel, where the same light coral against a near-white
   background measures ~1.8:1 contrast, effectively invisible. A
   darker, readable red for a light background. */
.ph-form__err {
  margin: 10px 0 0;
  font-family: var(--ph-sans);
  font-size: 13px;
  color: #B42318;
}
/* Shared entrance for form status messaging that can now appear via an
   in-place AJAX swap (waitlist form) as well as a full page render —
   a plain opacity/translateY settle so neither feels like a hard cut. */
@keyframes ph-form-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ph-form__err:not([hidden]) {
  animation: ph-form-msg-in 0.3s var(--ph-ease-settle);
}
@media (prefers-reduced-motion: reduce) {
  .ph-form__err:not([hidden]) { animation: none; }
}
@media screen and (max-width: 640px) {
  .ph-form__row {
    flex-direction: column;
    border-radius: 8px;
  }
  .ph-form__input {
    border-bottom: 1px solid var(--ph-border);
  }
  .ph-form__btn {
    height: 50px;
    border-left: none;
    border-top: 1px solid var(--ph-border);
    border-radius: 0 0 6px 6px;
  }
}

/* ── Email domain autocomplete ───────────────────────────────── */
.ph-form__row-wrap {
  position: relative;
  width: 100%;
}
.ph-email-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #FFFFFF;
  border: 1px solid rgba(0, 16, 54, 0.14);
  border-radius: var(--ph-radius-panel);
  box-shadow: 0 8px 28px rgba(0, 16, 54, 0.16);
  z-index: 300;
  overflow: hidden;
}
.ph-email-suggest[hidden] { display: none; }
.ph-email-suggest__item {
  display: block;
  padding: 10px 16px;
  font-family: var(--ph-sans);
  font-size: 14px;
  color: var(--ph-navy);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--ph-motion-fast) var(--ph-ease-ui);
}
.ph-email-suggest__item:hover,
.ph-email-suggest__item.ph-suggest--active {
  background: var(--ph-blue-dim);
}
.ph-email-suggest__domain {
  color: var(--ph-blue);
  font-weight: 500;
}

/* ── Scroll fade-in ──────────────────────────────────────────────── */
/* Distance/duration trimmed from 20px/0.6s — desktop is the only place
   this still runs (mobile forces opacity:1 unconditionally, see the
   max-width:1023px override in phalanx-launch.liquid), and 20px/0.6s
   read as a bit theatrical for a per-element scroll reveal. Smaller
   movement, shorter duration, same mechanism. */
.ph-fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--ph-motion-slow) var(--ph-ease-ui),
              transform var(--ph-motion-slow) var(--ph-ease-ui);
  transition-delay: var(--ph-delay, 0s);
}
.ph-fade-in.ph-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Anchor landing (#99): a not-yet-revealed section is painted 12px lower
   (translateY), and browsers align the PAINTED box when they follow a #link,
   so the section ended up 12px too close to the fixed nav once it settled.
   The margin cancels that offset until the element has been revealed. */
@media screen and (min-width: 1024px) {
  /* (phones force the revealed state, so they have no offset to cancel) */
  .ph-fade-in:not(.ph-visible) { scroll-margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-fade-in:not(.ph-visible) { scroll-margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Reading progress — Vetenskap and blog articles only (see
   initReadingProgress in phalanx-global.js). A 1px Electric Blue line
   directly under the fixed nav; no track, no text. Transform-only. ── */
.ph-reading-progress {
  position: fixed;
  top: var(--ph-nav-h, 68px);
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ph-blue);
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 999;
  pointer-events: none;
  will-change: transform;
}

/* ── Image load fade-in — opacity only, space already reserved via
   aspect-ratio/explicit width+height, so this is purely the
   transition, not a layout-shift fix. Shared site-wide.

   PERF FIX (measured): `transition: opacity` used to live on the base
   .ph-img-fade class — matched by every image carrying it from the
   very first paint, including images that finish loading fast enough
   that JS (assets/phalanx-global.js initImageLoadFade) never even adds
   --pending to them (`if (img.complete) return;`) — those images sit
   at opacity:1 for their entire lifecycle and never visibly fade at
   all, exactly like the .pco-pdp__slide case fixed alongside this one.
   Confirmed via repeated LargestContentfulPaint observation (3+
   second windows, several repeated runs): the About page's hero image
   — .ph-img-fade, fully loaded, opacity:1 — never registered as an LCP
   candidate; a much smaller cookie-banner paragraph won instead, on
   every run. Same root cause, same fix: only apply the transition via
   a class JS adds at the same time as --pending, so a fast/complete
   image (transition never matched, at any point) stays LCP-eligible,
   while a genuinely slow image still gets the exact same 0.4s fade
   once it's actually added (the class is never removed afterward,
   which is fine — it has no visual effect on its own; it only enables
   an opacity change to animate, and no further opacity change happens
   after load). Zero visual difference: fast images already never
   showed a fade in either version; slow images fade in exactly as
   before. */
.ph-img-fade--pending,
.ph-img-fade--fading {
  /* 0.2s — within the ~150-250ms "subtle, not floaty" target. Was
     0.4s; shortened site-wide for a snappier, less noticeable
     transition, per the premium-image-loading pass. */
  transition: opacity var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-img-fade--pending {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  /* Reduced motion: the image appears the instant it has content —
     no animated fade — rather than skipping straight to opacity:1
     before any pixels exist (which would do nothing, since the
     browser still paints nothing until bytes arrive either way). */
  .ph-img-fade--pending,
  .ph-img-fade--fading {
    transition: none;
  }
  .ph-img-fade--pending { opacity: 1; }
}

/* ── Premium image surface, with an overlay-based reveal ─────────
   A flat, near-invisible fill (the same off-white token already used
   by the Game Changer gallery, --ph-off) behind every "important"
   image region, reserving its exact final geometry (via each
   container's own aspect-ratio/width+height, unchanged by this rule)
   and showing a restrained, on-brand placeholder rather than a
   transparent gap — never a shimmer, pulse, or grey Shopify-default
   box. A dark-section counterpart (.ph-img-surface--dark) covers
   imagery on navy backgrounds, where a stark white flash would read
   as an error state rather than as invisible.

   PERF FIX (measured): the reveal is a ::after overlay that fades
   OUT, not the <img> itself fading in. Confirmed via repeated
   LargestContentfulPaint observation: an <img> whose own opacity is
   ever animated by a CSS transition — even a already-conditional one
   that only engages while genuinely loading, even a 200ms one, even
   after the transition finishes at opacity:1 — is excluded from LCP
   candidacy by Chromium for the rest of the page's lifetime. Since
   DOMContentLoaded (when the fade-in class gets added) fires before
   a real network image finishes downloading in the overwhelming
   majority of page loads, this isn't an edge case — it silently
   broke LCP measurement for every one of this section's images on
   every real (non-instant-cache) load. The fix used elsewhere on the
   site (.ph-img-fade, gating the transition to --pending/--fading
   only) prevents the CSS rule from *matching* a fast/complete image,
   but does nothing once the rule genuinely engages for a real
   network load — so it doesn't actually solve this for images that
   take any real time to arrive. Animating a covering surface's own
   opacity instead sidesteps the issue entirely: the <img> stays at
   opacity:1 for its whole lifecycle (never matches any transition
   rule, at any point), so its real paint time is always LCP-eligible,
   while the visible effect — a soft reveal over the neutral surface —
   is identical to fading the image itself. Apply to an image's own
   wrapper element; radius/border/shadow stay owned by that wrapper's
   existing rules; the overlay inherits both automatically. */
.ph-img-surface,
.ph-img-surface--dark {
  position: relative;
}
.ph-img-surface {
  background: var(--ph-off, #F2F2F2);
}
.ph-img-surface--dark {
  background: var(--ph-navy-mid, #001036);
}
.ph-img-surface::after,
.ph-img-surface--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: inherit;
  border-radius: inherit;
  opacity: 1;
  transition: opacity var(--ph-motion-standard) var(--ph-ease-ui);
  pointer-events: none;
}
.ph-img-surface.ph-img-surface--loaded::after,
.ph-img-surface--dark.ph-img-surface--loaded::after {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ph-img-surface::after,
  .ph-img-surface--dark::after {
    transition: none;
  }
}

/* ── PHALANX frame — a restrained architectural/exhibition-plate
   treatment for detail and material imagery: a thin inset hairline
   plus one short Electric Blue accent segment on a single edge,
   covering a small fraction of it. Deliberately NOT a card: no
   radius, no shadow, no glow — apply only alongside a near-zero
   border-radius on the image's own wrapper (the wrapper owns radius;
   this owns the frame only). Reserve for detail/material and select
   editorial imagery, never as a default treatment for every image on
   the site — see the image-system pass report for exactly where this
   is (and isn't) used.
   Both pseudo-elements sit on the image's own positioned wrapper
   (same convention as .ph-img-surface above), so no extra markup is
   needed at any call site beyond adding the class. */
.ph-frame {
  position: relative;
}
.ph-frame::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--ph-img-border-light, rgba(0, 16, 54, 0.14));
  pointer-events: none;
  z-index: 1;
}
.ph-frame::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12%;
  height: 2px;
  background: var(--ph-blue);
  pointer-events: none;
  z-index: 1;
}
.ph-frame--dark::before {
  border-color: var(--ph-img-border-dark, rgba(255, 255, 255, 0.22));
}
@media screen and (max-width: 1023px) {
  /* Same proportions, tighter inset — the accent line stays legible
     at small sizes without needing its own separate breakpoint rule. */
  .ph-frame::before {
    inset: 2px;
  }
  .ph-frame::after {
    top: 2px;
    left: 2px;
    width: 12%;
  }
}

/* ── Restrained hover-zoom — clickable editorial/detail imagery only.
   A single subtle scale on the <img>/<picture> itself, inside the
   caller's own overflow:hidden wrapper; never combined with shadow,
   glow, rotate or blur (the site's own stated rule). Scoped to
   hover-capable pointers only — a real fine-pointer mouse, not touch
   — so touch devices never run hover logic that can only ever half-
   trigger there. */
@media (hover: hover) and (pointer: fine) {
  .ph-img-hover-zoom img,
  .ph-img-hover-zoom picture img {
    transition: transform var(--ph-img-hover-ms, var(--ph-motion-standard)) var(--ph-ease-ui);
  }
  .ph-img-hover-zoom:hover img,
  .ph-img-hover-zoom:hover picture img {
    transform: scale(var(--ph-img-hover-scale, 1.02));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ph-img-hover-zoom:hover img,
  .ph-img-hover-zoom:hover picture img {
    transform: none;
  }
}

/* ── Cascade entrance (parent-triggered child stagger) ─────────── */
/*    Container: add class ph-cascade (+ optional data-ph-cascade-start="Nms")
      JS pre-processes: marks eligible direct children with ph-ci
      On IO fire: assigns --ph-ci delay and adds ph-ci--on             */
.ph-ci {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out,
              transform 0.5s ease-out;
  transition-delay: var(--ph-ci, 0s);
}
.ph-ci.ph-ci--on {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .ph-ci { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Back to top — discreet footer text link, sitting inline with the
   legal link in the footer's Level 3 row (snippets/phalanx-footer.liquid
   .ph-footer__legal-links). Behaviour wired in phalanx-global.js
   (initBackToTop). ── */
.ph-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ph-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ph-on-navy-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--ph-motion-fast) var(--ph-ease-ui);
  /* Tap target: padding expands the invisible hit area to ~44px (WCAG
     2.5.8 / Apple HIG) without growing the visible text/icon; the equal
     negative margin cancels it back out so it doesn't disturb the
     row's own gap to the legal link beside it. */
  padding: 12px 6px;
  margin: -12px -6px;
  box-sizing: border-box;
  min-height: 44px;
}
.ph-back-to-top:hover {
  color: #FFFFFF;
}
.ph-back-to-top svg {
  width: 9px;
  height: 9px;
  transition: transform var(--ph-motion-fast) var(--ph-ease-ui);
  flex-shrink: 0;
}
.ph-back-to-top:hover svg {
  transform: translateY(-2px);
}

/* ── Mobile menu — staggered link reveal ─────────────────────────────
   Each link in the mobile dropdown fades/slides in slightly after the
   previous one once the panel opens. Kept fast (0.03s increments,
   0.18s transition) so the whole menu reads as open within ~300ms,
   never a slideshow. Covers both nav-class variants used site-wide
   (bare .ph-nav on 5 pages + .phd-root-scoped copy on product, and
   .pco-nav on the collection page). Delay only applies while opening
   — closing collapses uniformly instead of un-staggering visibly. ── */
.ph-nav__mobile-links li > a,
.pco-nav__mobile-links li > a {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--ph-motion-fast) var(--ph-ease-ui), transform var(--ph-motion-fast) var(--ph-ease-ui);
  transition-delay: 0s;
}
.ph-nav--open .ph-nav__mobile-links li > a,
.pco-nav--open .pco-nav__mobile-links li > a {
  opacity: 1;
  transform: translateY(0);
}
.ph-nav--open .ph-nav__mobile-links li:nth-child(1) > a, .pco-nav--open .pco-nav__mobile-links li:nth-child(1) > a { transition-delay: 0.03s; }
.ph-nav--open .ph-nav__mobile-links li:nth-child(2) > a, .pco-nav--open .pco-nav__mobile-links li:nth-child(2) > a { transition-delay: 0.06s; }
.ph-nav--open .ph-nav__mobile-links li:nth-child(3) > a, .pco-nav--open .pco-nav__mobile-links li:nth-child(3) > a { transition-delay: 0.09s; }
.ph-nav--open .ph-nav__mobile-links li:nth-child(4) > a, .pco-nav--open .pco-nav__mobile-links li:nth-child(4) > a { transition-delay: 0.12s; }
.ph-nav--open .ph-nav__mobile-links li:nth-child(5) > a, .pco-nav--open .pco-nav__mobile-links li:nth-child(5) > a { transition-delay: 0.15s; }
.ph-nav--open .ph-nav__mobile-links li:nth-child(6) > a, .pco-nav--open .pco-nav__mobile-links li:nth-child(6) > a { transition-delay: 0.18s; }
.ph-nav--open .ph-nav__mobile-links li:nth-child(7) > a, .pco-nav--open .pco-nav__mobile-links li:nth-child(7) > a { transition-delay: 0.21s; }
.ph-nav--open .ph-nav__mobile-links li:nth-child(8) > a, .pco-nav--open .pco-nav__mobile-links li:nth-child(8) > a { transition-delay: 0.24s; }
.ph-nav--open .ph-nav__mobile-links li:nth-child(9) > a, .pco-nav--open .pco-nav__mobile-links li:nth-child(9) > a { transition-delay: 0.27s; }
@media (prefers-reduced-motion: reduce) {
  .ph-nav__mobile-links li > a,
  .pco-nav__mobile-links li > a {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ── Live cart badge — wraps the existing SVG cart icon in the nav.
   Reuses the stock cart-bubble snippet + cart-icon.js custom element
   for real item-count tracking, but overrides the stock "grow +
   move-and-fade" pop animation (assets/cart-icon.js toggles
   .cart-bubble--animating; CSS below replaces what header-actions.liquid
   would normally supply, since that snippet isn't rendered on these
   pages) with a calm, restrained scale pulse — no bounce, no slide. ── */
.ph-nav__cart,
.pco-nav__cart {
  position: relative;
}
.ph-nav__cart cart-icon,
.pco-nav__cart cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-nav__cart .cart-bubble,
.pco-nav__cart .cart-bubble {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  pointer-events: none;
}
.ph-nav__cart .cart-bubble__background,
.pco-nav__cart .cart-bubble__background {
  background-color: var(--ph-blue);
}
.ph-nav__cart .cart-bubble__text,
.pco-nav__cart .cart-bubble__text {
  color: #FFFFFF;
  font-family: var(--ph-sans);
  font-size: 8px;
  font-weight: 600;
}
@keyframes ph-cart-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.ph-nav__cart .cart-bubble--animating .cart-bubble__background,
.ph-nav__cart .cart-bubble--animating .cart-bubble__text,
.pco-nav__cart .cart-bubble--animating .cart-bubble__background,
.pco-nav__cart .cart-bubble--animating .cart-bubble__text {
  animation: ph-cart-pulse 0.36s ease;
}
@media (prefers-reduced-motion: reduce) {
  .ph-nav__cart .cart-bubble--animating .cart-bubble__background,
  .ph-nav__cart .cart-bubble--animating .cart-bubble__text,
  .pco-nav__cart .cart-bubble--animating .cart-bubble__background,
  .pco-nav__cart .cart-bubble--animating .cart-bubble__text {
    animation: none;
  }
}

/* .ph-progress* (the old reservation progress bar) removed — replaced
   by .ph-timeline (see sections/phalanx-launch.liquid's own stylesheet)
   as part of retiring the fake-scarcity module sitewide. */

/* ── Page transition overlay ─────────────────────────────────────── */
/*    Created dynamically by initPageTransitions() in phalanx-global.js.
      JS sets the transition & opacity inline; this rule owns the rest.  */
#ph-page-overlay {
  position: fixed;
  inset: 0;
  background: #F2F2F2;
  z-index: 99998;           /* above all page content, below cursor (99999) */
  pointer-events: none;
  will-change: opacity;
}
@media (prefers-reduced-motion: reduce) {
  #ph-page-overlay { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════
   INGREDIENT OVERVIEW
══════════════════════════════════════════════════════════════════ */
.ph-ingr-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid rgba(0,16,54,0.10);
  /* Was 14px — the only bordered container on the site at that radius;
     every other card-scale container (.ph-form__row, etc.) uses 8px.
     Aligned here for the same "one architectural family of radii"
     reason the button/badge/image tiers already share their own
     values. */
  border-radius: var(--ph-radius-panel);
  overflow: hidden;
  margin: 40px 0 16px;
}
.ph-ingr-ov__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ph-border);
  border-right: 1px solid rgba(0,16,54,0.08);
}
.ph-ingr-ov__item:nth-child(2n) { border-right: none; }
.ph-ingr-ov__item:nth-last-child(-n+2) { border-bottom: none; }
.ph-ingr-ov__name {
  font-family: var(--ph-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ph-navy);
}
.ph-ingr-ov__role {
  font-family: var(--ph-sans);
  font-size: 0.8125rem;
  color: var(--ph-muted);
  text-align: right;
}
.ph-ingr-ov__note {
  font-family: var(--ph-sans);
  font-size: 0.8125rem;
  color: var(--ph-muted);
  margin: 0 0 40px;
}
@media screen and (max-width: 768px) {
  .ph-ingr-overview { grid-template-columns: 1fr; }
  .ph-ingr-ov__item { border-right: none; }
  .ph-ingr-ov__item:nth-last-child(-n+2) { border-bottom: 1px solid var(--ph-border); }
  .ph-ingr-ov__item:last-child { border-bottom: none; }
}

/* ══════════════════════════════════════════════════════════════════
   FOUNDER SECTION
══════════════════════════════════════════════════════════════════ */
.ph-founder { padding: 80px 0; background: var(--ph-navy); }
.ph-founder__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.ph-founder__quote { margin: 32px 0 0; }
.ph-founder__text {
  font-family: var(--ph-serif, var(--ph-sans));
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin: 0 0 24px;
  font-style: italic;
}
.ph-founder__attr {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ph-founder__name {
  font-family: var(--ph-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}
.ph-founder__title {
  font-family: var(--ph-sans);
  font-size: 0.8125rem;
  color: var(--ph-on-navy-3);
}
@media screen and (max-width: 768px) {
  .ph-founder { padding: 56px 0; }
  .ph-founder__text { font-size: 1rem; }
}

/* ── Dark section heading/body overrides ────────────────────────── */
.ph-founder .ph-section__h2 { color: #FFFFFF; }
.ph-founder .ph-section__sub { color: rgba(255,255,255,0.65); }

/* ══════════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE PACK — shared across all ph-nav pages
   (about, contact, blog; launch.liquid has its own 1023px block)
══════════════════════════════════════════════════════════════════ */
@media screen and (max-width: 768px) {
  /* Content renders in its final state immediately — no scroll-
     triggered entrance — matching the homepage's own mobile behavior
     (see phalanx-launch.liquid's max-width:1023px block). Previously
     this only stripped the translateY (kept a 0.5s/0.4s opacity fade
     gated behind IntersectionObserver), which still meant content on
     About/Contact/Blog/Product could sit invisible for a moment while
     scrolling. */
  .ph-fade-in,
  .ph-ci {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* ── Nav tap targets: 44 × 44 px (WCAG 2.5.8 / Apple HIG) ─────── */
  .ph-nav__burger     { width: 44px; height: 44px; }
  .ph-nav__ig         { width: 44px; height: 44px; }
  .ph-nav__mobile-cta { padding: 15px 24px; }
}
/* Tablet range (769-1023px) — same immediate-render treatment, so the
   cutoff matches the homepage's own max-width:1023px reveal-disable. */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  .ph-fade-in,
  .ph-ci {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* CLS-1 fix: this exact rule previously lived only inside
   sections/phalanx-collection.liquid's own inline <style> tag, which —
   like every section-scoped stylesheet — is emitted deep in the page's
   HTML, long after the nav markup itself (confirmed empirically:
   ~99,000 characters / the entire hero+PDP markup separates them in the
   raw response). The browser paints the nav once using only this file's
   global rules, then re-lays it out the moment it finishes parsing that
   later <style> tag — a real, measured layout shift (CLS ≈0.19,
   reproduced consistently at every CPU-throttle level down to 2x,
   confirmed via a live PerformanceObserver('layout-shift') capture, not
   simulated). Moving the identical rule here — this file loads via
   <link> in <head>, before any body content paints — makes it available
   from the very first layout instead of a second one. Scoped to
   `.pco-root` (the collection page's own wrapper, confirmed present in
   the HTML immediately before the nav) to keep the exact same visual
   scope as before: this still applies ONLY on the Game Changer page,
   not site-wide — the original file's version is removed as an exact
   duplicate, not just deprioritized. */
@media screen and (max-width: 1279px) {
  .pco-root .ph-nav__cart {
    width: 44px;
    height: 44px;
  }
  .pco-root .ph-nav__cart .cart-bubble {
    top: 11px;
    right: 11px;
  }
}
@media screen and (min-width: 769px) and (max-width: 1279px) {
  .pco-root .ph-nav__burger,
  .pco-root .ph-nav__ig {
    width: 44px;
    height: 44px;
  }
}
/* LAYOUT-1 fix, moved here alongside the rule it compensates for (same
   reasoning as the CLS-1 comment above — was in phalanx-collection.liquid's
   own late-loading <style> tag). The 44px enlargement above adds 24px of
   total icon width to the nav's right-hand cluster; at the narrowest
   tested device width (320px, e.g. iPhone SE) that pushed the burger
   button 16px past the viewport's right edge. Reclaiming that width from
   the row's own spacing (not the touch targets themselves, which stay
   full-size) fixes it. */
@media screen and (max-width: 340px) {
  .pco-root .ph-nav__inner { padding-inline: 16px; }
  .pco-root .ph-nav__right { gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CLS-1B fix — sections/phalanx-collection.liquid's PDP gallery
   Same root cause as the CLS-1 comment above (this section's own
   <style> tag parses ~99,000 characters into the HTML, so it takes
   effect only on a second layout pass), but a different, independently
   confirmed mechanism: .pco-pdp__slides had no aspect-ratio at all on
   first paint, so it fell back to the gallery image's own intrinsic
   1:1 ratio (from its width=1200/height=1200 HTML attributes, ~390px
   square) — the image had already fully loaded and painted at that
   wrong size (confirmed via a real Chrome trace, CDP Tracing, zero
   in-page-JS observer effect: PaintImage at height:390 while the image
   was already `is_image_loaded:true`, half a second before the late
   tag parsed) before the correction happened, ruling out image-load
   timing as the trigger. Once the tag parsed, aspect-ratio:4/5 applied,
   the gallery grew 390px→488px, and that 98px growth pushed
   .pco-pdp__info (and its nested .pco-pdp__facts/.pco-pdp__ingr) down
   by 98px — a single measured LayoutShift, value 0.1843,
   hadRecentInput:false, essentially the entire Game Changer mobile CLS.
   Moving the complete geometry chain (not just aspect-ratio alone)
   here — gallery position, slides aspect-ratio incl. its editorial and
   desktop variants, the slide's absolute positioning, and the image's
   fill sizing — means the correct 488px box (and the image correctly
   filling it) is reserved from the very first paint, so nothing is
   left to move once the late tag's remaining (purely cosmetic) rules
   finally parse. `.pco-root`-scoped, same exact selectors/values/
   breakpoints as the original, zero visual change. Full trace-level
   evidence in qa/reports/. */
.pco-root .pco-pdp__gallery {
  position: relative;
}
.pco-root .pco-pdp__slides {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--pco-off, #F2F2F2);
  border: 1px solid var(--ph-img-border-light);
}
@media screen and (min-width: 1024px) {
  .pco-root .pco-pdp__slides.pco-pdp__slides--editorial {
    aspect-ratio: 3 / 2;
  }
}
.pco-root .pco-pdp__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.pco-root .pco-pdp__slide--active {
  opacity: 1;
}
/* PERF FIX (measured): `transition: opacity` used to be declared on
   .pco-pdp__slide unconditionally — matching it from the very first
   CSSOM construction, before any JS runs, even though the active slide
   is already born at opacity:1 server-side (the --active class is in
   the initial HTML, so no transition ever actually plays on load; it
   only matters once the carousel switches slides interactively).
   Confirmed via repeated LargestContentfulPaint observation (7s window,
   no candidates missed): with the rule unconditional, the hero product
   image — fully loaded, decoded, opacity:1, correctly sized — never
   registered as an LCP candidate at all, on every run. This matches a
   known Chromium LCP behavior: an element matched by a CSS rule with
   `transition: opacity` (or certain other animatable properties) at
   paint time can be excluded from LCP candidacy outright, independent
   of whether a transition visually played. Scoping the transition to
   only apply once the gallery's own init script (below) has run —
   which happens after first paint — means the very first render has NO
   transition on this element (the selector simply doesn't match yet),
   so Chromium counts it normally, while the crossfade still animates
   exactly as before on every subsequent slide change once the carousel
   is interactive. Zero visual difference: the first slide's opacity
   was always 1 from the first frame either way. */
.pco-root .pco-pdp__slides--ready .pco-pdp__slide {
  transition: opacity var(--ph-motion-slow) var(--ph-ease-ui);
}
.pco-root .pco-pdp__slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal-point-m, center);
  display: block;
  transition: transform var(--ph-img-hover-ms) var(--ph-ease-ui);
}
.pco-root .pco-pdp__slides .ph-img-placeholder {
  position: absolute;
  inset: 0;
}
@media screen and (min-width: 1024px) {
  .pco-root .pco-pdp__gallery {
    position: sticky;
    top: 96px;
  }
  .pco-root .pco-pdp__slides {
    aspect-ratio: 4 / 5;
    border-radius: var(--ph-img-radius-sm);
  }
  .pco-root .pco-pdp__slide-img {
    object-position: var(--focal-point-d, var(--focal-point-m, center));
  }
}

/* ═══════════════════════════════════════════════════════════════════
   COOKIE BANNER — snippets/phalanx-cookie-banner.liquid
   Presentation only — the consent logic lives in the snippet. Styled without inline
   style=""/on* attributes so no unsafe-inline is needed under a Content-Security-Policy.
═══════════════════════════════════════════════════════════════════ */
/* Cookie consent — a compact bar directly under the fixed header. At the bottom of the screen it covered the waitlist
   form on the first visit; up here it covers neither the form, the bottom action bar nor the header and its menus
   (z-index just below .ph-nav, so the dropdown opens over it). The consent mechanism is unchanged. */
.ph-cookie-banner {
  display: none;
  position: fixed;
  top: var(--ph-nav-h, 68px);
  left: 0;
  right: 0;
  z-index: 990;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 16, 54, 0.14);
  box-shadow: 0 6px 18px rgba(0, 13, 42, 0.10);
  font-family: var(--ph-sans);
}
/* anchor jumps and keyboard focus land below the card while it is open */
html.ph-cookie-open { scroll-padding-top: calc(var(--ph-nav-h, 68px) + var(--ph-cookie-h, 0px) + 12px); }
.ph-cookie-banner--visible {
  display: block;
}
.ph-cookie-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.ph-cookie-banner__text {
  flex: 1;
  min-width: 200px;
}
.ph-cookie-banner__title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ph-navy);
  line-height: 1.3;
}
.ph-cookie-banner__desc {
  margin: 0;
  font-size: 12px;
  color: rgba(0, 16, 54, 0.72);
  line-height: 1.5;
}
.ph-cookie-banner__link {
  color: var(--ph-blue);
  text-decoration: underline;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.ph-cookie-banner__link:hover {
  color: var(--ph-navy);
}
.ph-cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}
.ph-cookie-banner__btn {
  height: 36px;
  padding: 0 20px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.ph-cookie-banner__btn--accept {
  background: var(--ph-navy);
  color: #ffffff;
  border: 1px solid var(--ph-navy);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ph-cookie-banner__btn--accept:hover {
  background: var(--ph-blue);
  border-color: var(--ph-blue);
}
.ph-cookie-banner__btn--decline {
  background: transparent;
  color: var(--ph-navy);
  border: 1px solid rgba(0, 16, 54, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ph-cookie-banner__btn--decline:hover {
  color: var(--ph-navy);
  border-color: var(--ph-navy);
  background: rgba(0, 16, 54, 0.05);
}
/* Tablet and desktop: one low line, so the card ends above the first lines of the home hero. */
@media screen and (min-width: 600px) {
  .ph-cookie-banner__inner { padding-block: 4px; padding-inline: 24px; gap: 4px 24px; }
  .ph-cookie-banner__title, .ph-cookie-banner__desc { display: inline; }
}
@media screen and (min-width: 1024px) {
  .ph-cookie-banner__inner { padding-block: 6px; padding-inline: 28px; }
  .ph-cookie-banner__btn { height: 32px; }
}
/* Phones: title and text as one short paragraph, the two choices side by side with equal width and 44px height. */
@media screen and (max-width: 599px) {
  .ph-cookie-banner__inner { padding: 10px 16px 12px; gap: 8px; }
  .ph-cookie-banner__text { flex: 1 0 100%; line-height: 1.4; }
  .ph-cookie-banner__title, .ph-cookie-banner__desc { display: inline; font-size: 12px; line-height: 1.45; }
  .ph-cookie-banner__actions { flex: 1 0 100%; gap: 8px; }
  .ph-cookie-banner__btn { flex: 1 1 0; height: 44px; padding: 0 8px; }
}

.ph-cookie-banner__link:focus-visible,
.ph-cookie-banner__btn:focus-visible {
  outline: 2px solid var(--ph-blue);
  outline-offset: 2px;
}
/* While the consent card is open, the sticky mini-CTAs step aside (they return once a choice is made). */
html.ph-cookie-open .ph-sticky-cta,
html.ph-cookie-open .phd-sticky-cta,
html.ph-cookie-open .pco-sticky-cta,
html.ph-menu-open .ph-sticky-cta,
html.ph-menu-open .phd-sticky-cta,
html.ph-menu-open .ph-cookie-banner {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── Honeypot spam trap — used in the hero/collection/footer waitlist
   forms. Off-screen positioning rather than display:none, since some
   unsophisticated bots specifically skip display:none fields; real
   visitors never see or reach it (aria-hidden + tabindex="-1"). ── */
.ph-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════
   PHALANX NAV — moved from snippets/phalanx-nav.liquid

   PERF/CLS FIX (measured on a throttled connection): this was an
   inline <style> block living in the nav snippet itself, positioned
   AFTER the <nav> markup in the DOM. That is a real FOUC risk — the
   browser can paint the already-parsed <nav> markup before it has
   parsed far enough into the body to reach this <style> tag, using
   whatever head-level stylesheets were already applied (none of which
   define .ph-nav — those rules lived ONLY here). Measured: .ph-nav
   rendered at ~405px tall for one frame (its raw, unstyled block-flow
   height, including the "closed" mobile menu list rendered as a plain
   unstyled list rather than collapsed) before snapping to its correct
   ~68/70px height ~60ms later — a real, reproducible layout shift
   (~0.12 CLS, sourced to .ph-nav__mobile / .ph-nav__right /
   .ph-nav__scrim by the browser's own layout-shift attribution).

   Moving this CSS into phalanx-global.css — already loaded in <head>,
   already render-blocking on every page that renders the Phalanx nav
   — guarantees it is fully applied before first paint, so the nav is
   correctly styled from the very first frame instead of snapping into
   place. Content and selectors are unchanged from the original block;
   only the location moved. Cascade order is preserved: this still
   loads before the small handful of page-specific .ph-nav__* overrides
   in phalanx-launch.liquid / phalanx-collection.liquid (equal
   specificity, later source order — those still win as intended).
═══════════════════════════════════════════════════════════════════ */
/* Keeps anchor-linked headings (in-page nav links, "#anchor" hrefs,
   scrollIntoView from the various section scripts) from landing flush
   behind the fixed nav — reserves room equal to the nav's top-state
   height plus a little breathing room, for both native fragment
   navigation and scrollIntoView in browsers that honor scroll-padding
   for it. */
html {
  /* #99: nav height (68px phones / 80px desktop) + 16px, so every anchor lands
     14px below the fixed bar instead of 2px (desktop) or hidden. Sections that
     add their own scroll-margin (product chapters) keep it on top of this. */
  scroll-padding-top: calc(var(--ph-nav-h, 68px) + 16px);
}
/* Reserves the scrollbar's own width permanently, so opening a dialog
   (founder story, product lightbox — assets/dialog.js) — which locks
   body scroll via `position: fixed; width: 100%`, removing the
   scrollbar — doesn't widen the viewport by that scrollbar's width and
   shift the fixed-width body a few pixels sideways. Confirmed no
   existing scrollbar-width compensation existed anywhere in the theme;
   this is the standard one-line fix rather than a per-dialog padding
   hack. No visible effect on browsers/platforms with overlay
   scrollbars (macOS default, most mobile) — the reserved gutter is
   already zero-width there. */
html {
  scrollbar-gutter: stable;
}
.ph-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  /* Clean white nav at rest — a light blur still smooths any photo
     detail directly behind it on full-bleed hero pages, but the fill
     itself reads as a solid white bar, not a glass tint, so the blue
     symbol and navy text/icons stay at full contrast over any
     background image. */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--ph-motion-slow) var(--ph-ease-ui), box-shadow var(--ph-motion-slow) var(--ph-ease-ui), border-color var(--ph-motion-slow) var(--ph-ease-ui), backdrop-filter var(--ph-motion-slow) var(--ph-ease-ui);
  border-bottom: 1px solid var(--ph-border);
}
/* Mobile wordmark: larger than the symbol-ratio default, still inside the
   bar's room next to the icon cluster. */
@media screen and (max-width: 1023px) {
  .ph-nav .phalanx-lockup__word {
    font-size: max(18px, min(21px, 5.5vw));
  }
}
/* Mobile/tablet nav (burger layout): solid #FFFFFF — no translucency or
   backdrop blur, which let the hero photo tint the bar grey. */
@media (max-width: 1279px) {
  .ph-nav,
  .ph-nav.ph-nav--scrolled {
    background: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.ph-nav--scrolled {
  /* Same white system, just fully opaque with a soft hairline shadow
     once content is scrolling underneath — no color/theme switch. */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(0, 16, 54, 0.10);
  box-shadow: 0 1px 8px rgba(0, 16, 54, 0.08);
}

.ph-nav__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--ph-nav-content-width, 1440px);
  margin: 0 auto;
  /* Side padding tightens on small phones — at 320px the old flat 24px
     was spending 48px of a 320px bar on empty gutter. */
  padding: 0 clamp(16px, 5vw, 24px);
  /* Height stays constant across scroll states — see .ph-nav--scrolled
     below. It used to drop from 68px to 52/56px on scroll, and while
     the content-width/gutters never actually changed, the shorter bar
     visibly compressed the logo and nav row, reading as "the header
     shrank back to old narrow proportions" the moment a visitor
     scrolled — confirmed via side-by-side screenshot at 1920px. Only
     the background/blur/shadow now change on scroll (the legitimate
     "solidifying" cue), so the header is one coherent system at every
     scroll position, not two different ones. */
  height: var(--ph-nav-h, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* The logo↔controls gap only needs to be generous on desktop, where
     the horizontal link list sits between them. On mobile that list is
     display:none, so a fixed 32px was pure dead space pushing the
     controls toward (and past) the right edge. */
  gap: clamp(12px, 3vw, 32px);
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
  .ph-nav {
    transition: none;
  }
  .ph-nav__inner {
    transition: none;
  }
}

/* ── Brand lockup container ───────────────────────────────────────
   OVERFLOW FIX: this was `flex-shrink: 0`. Combined with the equally
   rigid .ph-nav__right, the bar had NO flexible member — so once the
   symbol grew (a 65px mobile setting against a 68px bar), the row's
   min-content width simply exceeded the viewport and the Instagram /
   cart / hamburger controls were pushed off the right edge. Because
   .ph-nav is position:fixed, that overflow never reaches
   documentElement.scrollWidth, so it was invisible to a
   scrollWidth === clientWidth check while still leaving the hamburger
   physically unreachable on a 390px phone.

   `min-width: 0` + `flex: 0 1 auto` makes the lockup the flexible
   member. Inside it the symbol yields first and the wordmark never
   does (see snippets/phalanx-logo.liquid), so the bar absorbs pressure
   by scaling the mark down rather than by ejecting the controls. ── */
/* Layout/flex-sizing only — color, type, hover-tracking and the
   scrolled-state size curve all now live once, canonically, in
   snippets/phalanx-logo.liquid's own stylesheet (.phalanx-lockup /
   .phalanx-lockup__word), shared by every brand-lockup placement
   instead of redeclared per caller. */
.ph-nav__logo {
  flex: 0 1 auto;
  min-width: 0;
}

.ph-nav__links {
  display: flex;
  align-items: center;
  /* space-between (not a fixed gap alone) is what actually fixes the
     "bunched after the logo, dead air before the icons" look: since
     this list is flex: 1 1 auto, it already claims all the room left
     over between the logo and .ph-nav__right — but without this, that
     claimed width just became empty space AFTER the last link rather
     than being distributed BETWEEN the links. `gap` below still sets a
     floor so links never crowd at the narrower 1280-1439px tier. */
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}
/* The <li> — not the <a class="ph-nav__link"> inside it — is the
   actual flex item here. Without flex-shrink: 0 on the li itself, a
   crowded bar (7 links once Vetenskap/Kvalitet are on) shrinks each
   li below its nowrap text's natural width, and the text visually
   spills into the next link/the CTA button — invisible to a
   scrollWidth check, since the flex boxes themselves still "fit" and
   only the overflowing text doesn't. This turns that into honest,
   measurable container overflow instead, which the dedicated
   1024–1279px tier further down prevents by tightening gap/padding
   until everything genuinely fits rather than silently overlapping. */
.ph-nav__links li {
  flex-shrink: 0;
}
.ph-nav__link {
  position: relative;
  font-family: var(--ph-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  --ph-nav-px: 14px;
  --ph-nav-py: 6px;
  padding: var(--ph-nav-py) var(--ph-nav-px);
  border-radius: var(--ph-radius-control);
  transition: color var(--ph-motion-standard) var(--ph-ease-ui), background var(--ph-motion-standard) var(--ph-ease-ui);
  white-space: nowrap;
  color: var(--ph-navy-text);
}
.ph-nav__link:hover,
.ph-nav__link:focus-visible {
  color: #FFFFFF;
  background: var(--ph-navy);
}
.ph-nav__link:active {
  color: #FFFFFF;
  background: var(--ph-navy-mid);
}
/* Current-page state: recognizable, not a large app-style pill — the
   same restrained "quiet dot" treatment used nowhere else on the site,
   so it reads as PHALANX's own mark of "you are here" rather than a
   borrowed UI-kit active-tab convention. Text stays in its normal rest
   color; hover/focus/active on the current link still shows the full
   bold treatment above (it's a real, useful affordance even on the
   active page — reloading or re-anchoring is a legitimate action). */
.ph-nav__link--active {
  color: var(--ph-navy-text);
}
/* Current-page underline: exactly the width of the label (plus the chevron on
   "Om oss"), a fixed ~5px below the text at every nav size (the link padding
   changes per breakpoint, so inset and offset come from --ph-nav-px/-py). */
.ph-nav__link--active::after {
  content: '';
  position: absolute;
  left: var(--ph-nav-px);
  right: var(--ph-nav-px);
  bottom: max(0px, calc(var(--ph-nav-py) - 7px));
  height: 2px;
  border-radius: 1px;
  background: var(--ph-blue);
}
.ph-nav__link--active:hover,
.ph-nav__link--active:focus-visible {
  color: #FFFFFF;
}
.ph-nav__link--active:hover::after,
.ph-nav__link--active:focus-visible::after {
  background: #FFFFFF;
}

/* ── "Om oss" dropdown (desktop): Om oss / Kontakta oss / Blogg ───── */
.ph-nav__dd {
  position: relative;
}
.ph-nav__dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-family: var(--ph-sans);
  font-size: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  text-transform: uppercase;
}
.ph-nav__link.ph-nav__dd-trigger[aria-expanded="true"],
.ph-nav__link.ph-nav__dd-trigger:hover,
.ph-nav__link.ph-nav__dd-trigger:focus-visible {
  color: var(--ph-navy-text);
  background: transparent;
}
.ph-nav__link.ph-nav__dd-trigger[aria-expanded="true"]::after,
.ph-nav__link.ph-nav__dd-trigger:hover::after {
  content: '';
  position: absolute;
  left: var(--ph-nav-px);
  right: var(--ph-nav-px);
  bottom: max(0px, calc(var(--ph-nav-py) - 7px));
  height: 2px;
  border-radius: 1px;
  background: var(--ph-blue);
}
.ph-nav__dd-trigger[aria-expanded="true"] .ph-nav__dd-chev {
  transform: rotate(180deg);
}
.ph-nav__dd-trigger:focus-visible {
  outline: 2px solid var(--ph-blue);
  outline-offset: 2px;
}
.ph-nav__dd-chev {
  flex-shrink: 0;
  transition: transform var(--ph-motion-standard) var(--ph-ease-ui);
}
/* panel padding-top bridges the visual gap so the pointer never leaves
   the hover area between trigger and menu */
.ph-nav__dd-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 3;
  padding-top: 8px;
  min-width: 208px;
}
.ph-nav__dd-panel[hidden] {
  display: none;
}
.ph-nav__dd-menu {
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 16, 54, 0.12);
  border-radius: var(--ph-radius-panel);
  box-shadow: 0 10px 28px rgba(0, 13, 42, 0.08);
}
.ph-nav__dd-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--ph-radius-control);
  font-family: var(--ph-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ph-navy-text);
  transition: color var(--ph-motion-standard) var(--ph-ease-ui), background var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-nav__dd-link:hover,
.ph-nav__dd-link:focus-visible {
  color: #FFFFFF;
  background: var(--ph-navy);
  outline: none;
}
.ph-nav__dd-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ph-blue);
}
.ph-nav__dd-link--active {
  box-shadow: inset 2px 0 0 var(--ph-blue);
}
.ph-nav__dd-link--active:hover,
.ph-nav__dd-link--active:focus-visible {
  box-shadow: inset 2px 0 0 var(--ph-blue);
}
@media (prefers-reduced-motion: reduce) {
  .ph-nav__dd-chev,
  .ph-nav__dd-link { transition: none; }
}
/* the active underline on the trigger sits under label + chevron */
.ph-nav__dd-trigger.ph-nav__link--active::after {
  bottom: max(0px, calc(var(--ph-nav-py) - 7px));
}

.ph-nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ph-nav__cta {
  font-family: var(--ph-sans);
  font-size: 12px;
  font-weight: 600;
  /* Explicit, not inherited: the page families inherit 20px (home, product, about, contact, 404) or 17.5px
     (science, collections, search), which made this button 48px on some pages and 45.5px on others. */
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-navy-text);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(0, 16, 54, 0.22);
  border-radius: var(--ph-radius-control);
  white-space: nowrap;
  transition: background var(--ph-motion-standard) var(--ph-ease-ui), border-color var(--ph-motion-standard) var(--ph-ease-ui), color var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-nav__cta:hover,
.ph-nav__cta:focus-visible {
  background: var(--ph-blue);
  border-color: var(--ph-blue);
  color: #FFFFFF;
}
.ph-nav__cta:active {
  background: var(--ph-blue-active);
  border-color: var(--ph-blue-active);
  color: #FFFFFF;
}

.ph-nav__ig,
.ph-nav__cart {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 44px (WCAG 2.5.8 / Apple HIG), up from 32px — matches the
     touch-target size the site already uses for .ph-nav__burger and
     the Game Changer page's own .ph-nav__cart override at narrower
     breakpoints (see the max-width: 768px / 1023px blocks above),
     now applied consistently at every width on every page instead of
     only some pages/breakpoints. The hit-box stays fixed at 44px
     regardless of the glyph's own size below — align-items/justify-
     content:center keeps it centered automatically either way. */
  width: 44px;
  height: 44px;
  color: var(--ph-navy-text);
  text-decoration: none;
  border-radius: var(--ph-radius-control);
  flex-shrink: 0;
  transition: color var(--ph-motion-standard) var(--ph-ease-ui), background var(--ph-motion-standard) var(--ph-ease-ui);
  position: relative;
}
.ph-nav__ig svg,
.ph-nav__cart svg {
  /* Was 16px — after the desktop nav text/logo enlargement this read
     as visually weak/underscaled next to the bigger wordmark and link
     text. Bumped to sit proportionate with the enlarged nav, not just
     "a bit bigger" — the 44px hit-box (above) is untouched. */
  width: 18px;
  height: 18px;
}
@media screen and (min-width: 1280px) {
  .ph-nav__ig svg,
  .ph-nav__cart svg {
    width: 20px;
    height: 20px;
  }
}
.ph-nav__ig:hover,
.ph-nav__ig:focus-visible,
.ph-nav__cart:hover,
.ph-nav__cart:focus-visible {
  color: #FFFFFF;
  background: var(--ph-navy);
}
.ph-nav__ig:active,
.ph-nav__cart:active {
  color: #FFFFFF;
  background: var(--ph-navy-mid);
}
.ph-nav__cart .cart-bubble {
  position: absolute;
  /* Repositioned for the 44px box above (was top/right: 2px, tuned for
     the old 32px box) — matches the offset already established for
     this exact box size on the Game Changer page's own mobile/tablet
     cart override, now applying everywhere the box itself now does. */
  top: 11px;
  right: 11px;
  width: 13px;
  height: 13px;
  pointer-events: none;
}
.ph-nav__cart .cart-bubble__background {
  background-color: var(--ph-blue);
}
.ph-nav__cart .cart-bubble__text {
  color: #FFFFFF;
  font-family: var(--ph-sans);
  font-size: 8px;
  font-weight: 600;
}

.ph-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  /* 44px — the WCAG 2.5.8 / Apple HIG touch-target minimum. The bars
     themselves (22px wide below) are unchanged; only the button box
     around them grows. */
  width: 44px;
  height: 44px;
  padding: 6px;
  background: none;
  border: none;
  border-radius: var(--ph-radius-control);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--ph-motion-fast) var(--ph-ease-ui);
}
.ph-nav__burger:active {
  background: rgba(0, 16, 54, 0.06);
}
.ph-nav__burger:focus-visible {
  outline: 2px solid var(--ph-blue);
  outline-offset: 2px;
}
/* Hover and keyboard focus give the same quiet signal as the Instagram and cart icons next to it (navy ground,
   white glyph). Hover applies only where a real pointer exists, so a tap on a touch screen never leaves it stuck. */
@media (hover: hover) {
  .ph-nav__burger:hover { background: var(--ph-navy); }
  .ph-nav__burger:hover .ph-nav__burger-bar { background: #FFFFFF; }
}
.ph-nav__burger:focus-visible { background: var(--ph-navy); }
.ph-nav__burger:focus-visible .ph-nav__burger-bar { background: #FFFFFF; }
/* Open menu: the close button belongs to the menu and uses its quiet tint instead of the navy plate. */
.ph-nav--open .ph-nav__burger:hover,
.ph-nav--open .ph-nav__burger:focus-visible { background: rgba(0, 80, 236, 0.08); }
.ph-nav--open .ph-nav__burger:hover .ph-nav__burger-bar,
.ph-nav--open .ph-nav__burger:focus-visible .ph-nav__burger-bar { background: var(--ph-navy-text); }
.ph-nav__burger-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ph-navy-text);
  border-radius: 2px;
  transition: transform var(--ph-motion-standard) var(--ph-ease-ui), opacity var(--ph-motion-standard) var(--ph-ease-ui), background var(--ph-motion-standard) var(--ph-ease-ui);
  transform-origin: center;
}
.ph-nav--open .ph-nav__burger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.ph-nav--open .ph-nav__burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.ph-nav--open .ph-nav__burger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Scrim — dims the page content behind the open mobile menu. Sits
   below .ph-nav__inner and .ph-nav__mobile (both lifted to z-index: 2
   within the nav's own stacking context) so it never covers the bar
   itself, only whatever is scrolled underneath. Tap-to-close.

   BUG FIX (measured, real preview): `.ph-nav` has `backdrop-filter`,
   which — like `transform` — makes it the containing block for any
   `position: fixed` descendant, per the CSS Filter Effects spec. That
   silently broke `inset: 0` / `height: 100%` here: both resolved
   against `.ph-nav`'s own (auto, content-sized) box instead of the
   real viewport, so the scrim only ever covered the nav bar plus the
   open drawer's own height (~470px on a 844px-tall phone) — not the
   rest of the page below it. A tap anywhere past that point fell
   through to whatever was actually there and never reached this
   element's click handler, so "tap outside closes the drawer" simply
   didn't work below the drawer's own height. `height: 100vh` (100dvh
   for mobile browser-chrome accuracy, same token pattern already used
   for .ph-paint__sticky elsewhere in this file) is a fixed dimension,
   not a percentage of the containing block, so it fills the true
   viewport regardless of which element is acting as the containing
   block. `top`/`left`/`right` replace `inset: 0`'s reliance on
   `bottom: 0` for the same reason. */
.ph-nav__scrim {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  /* Primary Navy-derived (was an independently-eyeballed near-navy,
     rgba(6, 12, 24, ...), off the official rgb(0, 13, 42) base). */
  background: rgba(0, 13, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ph-motion-reveal) var(--ph-ease-ui), visibility 0s linear var(--ph-motion-reveal);
  cursor: default;
}
/* NAV BREAKPOINT — 1280px, not 1024px. Raised site-wide (this file's
   every .ph-nav__* / .ph-nav--open rule, plus the matching JS
   matchMedia query in snippets/phalanx-nav.liquid) after measuring
   that the full 7-link desktop nav + logo + icons + CTA only has
   genuine breathing room from ~1250-1280px up — below that, the old
   1024px cutoff forced the desktop nav to survive on a shrinking
   budget, collapsing link spacing toward zero. The hamburger nav now
   owns the entire ≤1279px range instead. */
@media screen and (max-width: 1279px) {
  .ph-nav--open .ph-nav__scrim {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--ph-motion-reveal) var(--ph-ease-ui), visibility 0s linear;
  }
}
@media screen and (min-width: 1280px) {
  /* `!important` here only wins the cascade for the target VALUE — it
     does not cancel the transition declared on the base .ph-nav__scrim
     rule above. Without `transition: none`, resizing past the desktop
     breakpoint while the mobile menu is open still animates this from
     opacity:1 toward 0 over the full 0.3s (visibility's 0s-delay-0.3s
     additionally kept it "visible" throughout that fade) — a fully
     opaque scrim dimming the page at a confirmed desktop width.
     Reproduced and measured via Playwright: opacity was still 0.65 a
     full 50ms after the resize, 0.26 at 100ms, not fully gone until
     ~400ms. `transition: none` forces the desktop target values to
     apply instantly, with no animated frame in between. `pointer-
     events: none` is a second, independent guarantee: even if some
     future change reintroduces a transition here, the scrim still
     can't intercept clicks at this width. */
  .ph-nav__scrim {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ph-nav__scrim { transition: none; }
}

.ph-nav__mobile {
  position: relative;
  z-index: 2;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--ph-motion-reveal) var(--ph-ease-settle),
              opacity var(--ph-motion-standard) var(--ph-ease-ui);
  /* Same white system as the bar above it — one unified PHALANX nav,
     not a dark popup surfacing under a white header. */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--ph-border);
}
/* Mobile-only expand — a desktop-width guard, not just the mobile
   media query at the bottom of this file: even if .ph-nav--open ever
   ends up set at >= 1280px (e.g. the viewport was resized past the
   breakpoint while the menu happened to be open, with no reload in
   between), the dropdown and its scrim still can never render there.
   This is a hard CSS guarantee independent of the JS resize handler
   below, which additionally resets the underlying state itself.

   BUG FIX: this used to be a hand-picked `max-height: 480px` — shorter
   than the actual content (7 links + CTA) at the typography this drawer
   had at the time, so the drawer's own overflow:hidden silently clipped
   its last item(s). Below that clipped height, the real page kept
   showing through (correctly dimmed by .ph-nav__scrim, which IS full-
   viewport) — reading as "the menu doesn't cover the screen." Tied to
   the real viewport height instead (100dvh, with a plain 100vh fallback
   for browsers without dvh support, same pattern .ph-nav__scrim already
   uses) minus the nav bar's own height, so the drawer can always expand
   to fill exactly the space available below the bar — content can never
   exceed this and get silently clipped, regardless of how many links or
   how long any single label gets in a future edit. overflow-y: auto is
   a second, independent safety net: if content ever did exceed even the
   full viewport height, it would scroll within the drawer instead of
   clipping or pushing the CTA off-screen. */
@media screen and (max-width: 1279px) {
  .ph-nav--open .ph-nav__mobile {
    max-height: calc(100vh - var(--ph-nav-h, 68px));
    max-height: calc(100dvh - var(--ph-nav-h, 68px));
    opacity: 1;
    overflow-y: auto;
  }
}
@media screen and (min-width: 1280px) {
  /* Same class of bug as .ph-nav__scrim above, same fix: `!important`
     wins the target value, not the transition. Reproduced via
     Playwright — resizing 390px (menu open) to the desktop breakpoint
     left this panel rendering at ~396px visible height and opacity 1
     at t+0ms, still animating shut (182px/0.48 opacity at t+50ms, not
     fully closed until ~400-600ms) at a confirmed desktop viewport.
     That is the literal "mobile menu bleeding into desktop" defect.
     `transition: none` makes the desktop-forced 0/0 apply on the very
     first frame the media query matches, with no visible closing
     animation to catch mid-flight. `pointer-events: none` is a second,
     independent guarantee against ever tapping/clicking into it at
     this width. */
  .ph-nav__mobile {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ph-nav__mobile { transition: max-height var(--ph-motion-reveal) var(--ph-ease-settle); }
}
.ph-nav__mobile-cta {
  display: inline-block;
  padding: 12px 24px;
  background: var(--ph-blue);
  color: #fff;
  font-family: var(--ph-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--ph-radius-control);
  transition: background var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-nav__mobile-cta:hover,
.ph-nav__mobile-cta:focus-visible {
  background: var(--ph-blue-hover);
}
.ph-nav__mobile-cta:active {
  background: var(--ph-blue-active);
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION — restored flat row list. Reverted from a grouped
   primary+sub hierarchy back to the site's original flat design: every
   destination is its own full-width row, same typography, same height,
   divided by a single hairline — no nested tiers, no size/color
   hierarchy between items. Active page = a quiet Light Blue row tint
   + Electric Blue text, replacing the old underline/color convention.
   Desktop (.ph-nav__links, a separate markup block) is entirely
   untouched by any rule in this section.
   ═══════════════════════════════════════════════════════════════════ */
.ph-mnav-flat {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}
.ph-mnav-flat li {
  margin: 0;
  padding: 0;
}
.ph-mnav-flat li + li {
  border-top: 1px solid var(--ph-border);
}

.ph-mnav-flat__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--ph-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ph-navy);
  text-decoration: none;
  background: transparent;
  transition: background var(--ph-motion-fast) var(--ph-ease-ui), color var(--ph-motion-fast) var(--ph-ease-ui);
}
/* Current page: Electric Blue text and a 3px edge line, no filled row (20.0). Hover and press are a faint blue tint. */
.ph-mnav-flat__link--active {
  color: var(--ph-blue, #0050EC);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--ph-blue, #0050EC);
}
.ph-mnav-flat__link:active {
  background: rgba(0, 80, 236, 0.08);
}
/* Hover fill only for real hover pointers: on touch screens :hover sticks after
   a tap, which left an opened "Om oss" looking like a second current page. */
@media (hover: hover) and (pointer: fine) {
  .ph-mnav-flat__link:hover {
    background: rgba(0, 80, 236, 0.06);
    color: var(--ph-blue, #0050EC);
  }
}
.ph-mnav-flat__link:focus-visible {
  outline: 2px solid var(--ph-blue);
  outline-offset: -2px;
}
/* "Vetenskap" when the page doesn't exist yet (show_science off but
   show_quality on) — same row treatment, just not interactive. */
.ph-mnav-flat__link--static {
  cursor: default;
}
.ph-mnav-flat__link--static:hover {
  background: transparent;
}

.ph-mnav-flat__toggle {
  width: 100%;
  justify-content: space-between;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-family: var(--ph-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ph-mnav-flat__chev {
  flex-shrink: 0;
  transition: transform var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-mnav-flat__toggle[aria-expanded="true"] .ph-mnav-flat__chev {
  transform: rotate(180deg);
}
.ph-mnav-flat__toggle--current {
  box-shadow: inset 3px 0 0 var(--ph-blue);
}
.ph-mnav-flat__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 16, 54, 0.03);
}
.ph-mnav-flat__sub[hidden] {
  display: none;
}
.ph-mnav-flat__link--sub {
  padding-left: 44px;
  min-height: 48px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
}
/* Sub-links read as a nested list: their dividers start at the text indent
   (44px) instead of the screen edge, so the group sits visibly inside "Om oss". */
.ph-mnav-flat__sub li + li {
  border-top: 0;
}
.ph-mnav-flat__sub li + li > .ph-mnav-flat__link--sub::before {
  content: '';
  position: absolute;
  top: 0;
  left: 44px;
  right: 0;
  height: 1px;
  background: rgba(0, 16, 54, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .ph-mnav-flat__chev { transition: none; }
}
.ph-mnav-flat__cta {
  padding: 20px 28px 4px;
}
.ph-mnav-flat__cta .ph-nav__mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

/* Measured empirically (live getBoundingClientRect sweep of the last
   nav link vs. the icon/CTA group, at 20px viewport-width increments):
   with the full 7 links (Game Changer/Produkter/Vetenskap/Kvalitet/Om
   oss/Kontakta oss/Blogg) + logo + Instagram + cart + CTA all live,
   the desktop nav only clears a genuine, comfortable gap (~40px+) from
   ~1280px up. Below that it was previously forced to survive via a
   separate 1024-1279px "squeeze" tier (near-zero link spacing, 1px
   link padding) — removed; the hamburger now takes over the entire
   ≤1279px range instead of the desktop nav shrinking to fit it. */
@media screen and (max-width: 1279px) {
  .ph-nav__links  { display: none; }
  .ph-nav__cta    { display: none; }
  .ph-nav__burger { display: flex; }

  /* ── Mobile tap targets: 44 × 44 px minimum (WCAG 2.5.8 / Apple HIG).
     These lived in sections/phalanx-launch.liquid, so ONLY the homepage
     got them — every other Phalanx page (About, Game Changer, Contact,
     Blog, Article, Product, 404) rendered this same shared nav with
     32/36px targets and a 32px gap. Moved here so the one shared nav
     component carries its own mobile sizing on every page it appears
     on, which is also what makes the overflow budget below consistent
     site-wide instead of homepage-only. ── */
  .ph-nav__ig,
  .ph-nav__cart,
  .ph-nav__burger {
    width: 44px;
    height: 44px;
  }
  /* Badge is anchored top/right off the 32px desktop box, so on the
     enlarged 44px box it needs pulling back onto the icon's shoulder. */
  .ph-nav__cart .cart-bubble {
    top: 11px;
    right: 11px;
  }
  /* Tighter inter-control spacing — three 44px targets plus two 12px
     gaps was 156px of a 320px bar. 8px keeps them comfortably separate
     while giving the brand lockup back 8px. */
  .ph-nav__right {
    gap: 8px;
  }
}

@media screen and (min-width: 1440px) {
  /* Between 1440-1599px, .ph-nav__inner is still viewport-limited, not
     --ph-nav-content-width-limited (that cap is 1600px — see its own
     rule above) — the actual available budget here is the same one the
     previous flat "1440px+" tier was tuned against, so only a modest
     bump fits without overflow risk. The bigger, genuinely roomier
     increase lives in the dedicated 1600px+ tier just below, once the
     wider nav-only cap actually has room to give. */
  .ph-nav__inner {
    gap: 10px;
  }
  .ph-nav__links {
    gap: 5px;
  }
  .ph-nav__link {
    --ph-nav-px: 7px;
    --ph-nav-py: 12px;
    padding: 12px 7px;
    font-size: 13px;
    letter-spacing: 0.05em;
  }
  .ph-nav__right {
    gap: 7px;
  }
  .ph-nav__cta {
    padding: 13px 14px;
    font-size: 12.5px;
    letter-spacing: 0.03em;
  }
}

/* ── Wide desktop (1600px+): --ph-nav-content-width's 1600px cap is now
   actually wider than the viewport-limited budget the 1440-1599px tier
   above has to live within, so the bar has genuinely more room to give
   — used here for the fuller size increase (part of the global desktop
   nav enlargement), not just the modest bump above. ── */
@media screen and (min-width: 1600px) {
  .ph-nav__inner {
    gap: 14px;
  }
  .ph-nav__links {
    gap: 8px;
  }
  .ph-nav__link {
    --ph-nav-px: 11px;
    --ph-nav-py: 14px;
    padding: 14px 11px;
    font-size: 14px;
    letter-spacing: 0.06em;
  }
  .ph-nav__right {
    gap: 10px;
  }
  .ph-nav__cta {
    padding: 16px 20px;
    font-size: 12.5px;
    letter-spacing: 0.06em;
  }
}

/* The 1024-1279px "squeeze" tier that used to live here (near-zero
   link gaps, 1px link padding, forcing all 7 links to survive on a
   budget that genuinely doesn't fit them) is gone — that whole range
   is hamburger nav now (see the ≤1279px rule above). Desktop nav
   starts at 1280px, where it has real room. ── */
@media screen and (min-width: 1280px) and (max-width: 1439px) {
  .ph-nav__inner {
    gap: 8px;
  }
  .ph-nav__links {
    gap: 2px;
  }
  .ph-nav__link {
    --ph-nav-px: 5px;
    --ph-nav-py: 11px;
    padding: 11px 5px;
    font-size: 12px;
    letter-spacing: 0.01em;
  }
  .ph-nav__right {
    gap: 7px;
  }
  .ph-nav__cta {
    padding: 12px 13px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   GLOSSARY TERM — a scientific-methodology word (randomiserad,
   dubbelblind, placebokontrollerad, systematisk översikt, metaanalys,
   crossover-studie) that reveals its plain-language definition on
   click/tap/Enter, via ONE shared popover element (assets/phalanx-
   global.js initGlossary) rather than one DOM node per occurrence.
   Never hover-only — works identically for mouse, touch and keyboard.
   The term itself reads as quietly interactive (dotted underline),
   not like a random blue link.
═══════════════════════════════════════════════════════════════════ */
.ph-gloss-term {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
}
.ph-gloss-term:hover,
.ph-gloss-term:focus-visible {
  color: var(--ph-blue);
}
.ph-gloss-term:focus-visible {
  outline: 2px solid var(--ph-blue);
  outline-offset: 2px;
  border-radius: 2px;
}
.ph-gloss-popover {
  position: fixed;
  z-index: 2000;
  max-width: min(320px, calc(100vw - 32px));
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 16, 54, 0.14);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 16, 54, 0.16);
  font-family: var(--ph-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ph-navy-text);
}
.ph-gloss-popover[hidden] {
  display: none;
}
.ph-gloss-popover__term {
  display: block;
  font-family: var(--ph-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--ph-navy);
  margin: 0 0 4px;
  text-transform: capitalize;
}
@media print {
  .ph-gloss-term {
    text-decoration: none;
    cursor: auto;
    color: inherit;
  }
  .ph-gloss-popover {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   READING LIST — local, no-account save-for-later. Deliberately
   discreet: the indicator only exists in the DOM once at least one
   item is saved (assets/phalanx-global.js, initReadingList), sitting
   as a small quiet tab at the bottom-right corner rather than a
   persistent nav item competing with real navigation.
═══════════════════════════════════════════════════════════════════ */
.ph-reading-indicator {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  background: var(--ph-navy);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--ph-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 13, 42, 0.24);
}
.ph-reading-indicator[hidden] {
  display: none;
}
.ph-reading-indicator:hover,
.ph-reading-indicator:focus-visible {
  background: var(--ph-navy-mid);
}
.ph-reading-indicator:focus-visible {
  outline: 2px solid var(--ph-blue-lt);
  outline-offset: 2px;
}
.ph-reading-panel {
  position: fixed;
  right: 20px;
  bottom: 68px;
  z-index: 1500;
  width: min(320px, calc(100vw - 40px));
  max-height: min(400px, calc(100vh - 120px));
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid rgba(0, 16, 54, 0.14);
  border-radius: var(--ph-radius-panel);
  box-shadow: 0 16px 40px rgba(0, 16, 54, 0.20);
  padding: 18px;
  font-family: var(--ph-sans);
}
.ph-reading-panel[hidden] {
  display: none;
}
.ph-reading-panel__note {
  font-size: 11.5px;
  color: rgba(0, 16, 54, 0.5);
  margin: 0 0 14px;
  line-height: 1.5;
}
.ph-reading-panel__empty {
  font-size: 13px;
  color: var(--ph-muted);
  margin: 0;
}
.ph-reading-panel__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.ph-reading-panel__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ph-border);
}
.ph-reading-panel__list a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ph-navy);
  text-decoration: none;
}
.ph-reading-panel__list a:hover,
.ph-reading-panel__list a:focus-visible {
  color: var(--ph-blue);
}
.ph-reading-panel__remove {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: rgba(0, 16, 54, 0.4);
  cursor: pointer;
  padding: 8px;
  margin: -8px;
}
.ph-reading-panel__remove:hover,
.ph-reading-panel__remove:focus-visible {
  color: #B42318;
}
.ph-reading-panel__clear {
  width: 100%;
  background: none;
  border: 1px solid rgba(0, 16, 54, 0.16);
  border-radius: var(--ph-radius-control);
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ph-muted);
  cursor: pointer;
}
.ph-reading-panel__clear:hover,
.ph-reading-panel__clear:focus-visible {
  color: var(--ph-navy);
  border-color: rgba(0, 16, 54, 0.32);
}
@media screen and (max-width: 480px) {
  .ph-reading-indicator {
    right: 12px;
    bottom: 12px;
  }
  .ph-reading-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 60px;
  }
}
@media print {
  .ph-reading-indicator,
  .ph-reading-panel {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   COPY LINK — shared "Kopiera länk" action. Markup:
     <button class="ph-copy-link" data-copy-link="target-id">
       <svg .../><span data-copy-link-label>Kopiera länk</span>
     </button>
   Behaviour lives once in assets/phalanx-global.js (initCopyLinkButtons,
   delegated to one document-level click listener) — any button
   anywhere just needs this markup, no per-page JS. min-width keeps the
   button's own box from narrowing when the label swaps to the shorter
   "Kopierad" confirmation, so nothing beside it visibly shifts.
═══════════════════════════════════════════════════════════════════ */
/* Tabular figures (#93): doses, prices, dates and ledger numbers line up in
   columns. Applied only where figures are data; display numerals (01, 02 ...)
   keep their natural proportions. */
/* An amount and its unit never split across lines (5
.pco-ingr__component-dose,
.pco-ingr__dose,
.pco-science__item-dose,
.pco-pdp__price-value,
.php-card__price,
.php-card__meta,
.phs-card__price,
.phq-batch__number,
.phq-batch__cell,
.phb-card__date,
.phd-overview__ingr-dose,
.phd-label__row dd,
.phd-calc__result,
.price,
.ph-timeline__date {
  font-variant-numeric: tabular-nums;
}

/* Keyboard focus (#83): one ring everywhere. 2px Electric Blue, 2px offset on
   light surfaces; Light Blue on navy sections and white on photography, via
   --ph-focus. Written with :where() so every component-specific rule (there
   are ~40, all already blue) still wins and nothing needs !important. */
:root { --ph-focus: var(--ph-blue); }
.ph-footer,
.phsci-formula,
.pco-ingr__chapter,
.ph-founder,
.pha-mission,
.phm-chapter--dark { --ph-focus: var(--ph-blue-lt); }
.ph-hero,
.ph-closing { --ph-focus: #FFFFFF; }
:where(a, button, summary, select, textarea, input, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--ph-focus);
  outline-offset: 2px;
}

/* Reading-tool row (Kopiera länk, Skriv ut / Fråga, Spara): one component for
   Vetenskap and the product's Formula 48 card. Hairline above, 12px/600 muted
   actions with the same 10px hit-area padding, gap 4px 20px. */
.ph-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ph-border);
}

.ph-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  background: none;
  border: none;
  font-family: var(--ph-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ph-muted);
  cursor: pointer;
  padding: 10px 4px;
  margin: -10px -4px;
  transition: color var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-copy-link:hover,
.ph-copy-link:focus-visible {
  color: var(--ph-blue);
}
.ph-copy-link:focus-visible {
  outline: 2px solid var(--ph-blue);
  outline-offset: 2px;
  border-radius: 2px;
}
.ph-copy-link.ph-copy-link--done {
  color: var(--ph-blue);
}
.ph-copy-link svg {
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ph-copy-link {
    transition: none;
  }
}
@media print {
  .ph-copy-link {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PRINT — site-wide chrome. Page-specific rules (hiding a chapter
   rail, a sticky CTA, a dark full-bleed band) live in each section's
   own <style> block next to the markup they target; this covers only
   the elements shared by every Phalanx page (nav, footer, cookie
   banner, back-to-top, the floating sticky-CTA bars). Goal: a visitor
   printing/saving a page as PDF for reference gets the actual content
   on a plain white page, not the interactive shell around it.
═══════════════════════════════════════════════════════════════════ */
@media print {
  .ph-nav,
  .ph-cookie-banner,
  .ph-back-to-top,
  .ph-sticky-cta,
  .phd-sticky-cta,
  .pco-sticky-cta,
  #ph-page-overlay {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
  }
  /* Footer's nav-group links and the closing CTA button aren't useful
     on paper; the legal row (copyright) stays as a minimal footer. */
  .ph-footer__brand,
  .ph-footer__nav-grid {
    display: none !important;
  }
  .ph-footer {
    background: #FFFFFF !important;
    color: var(--ph-navy) !important;
    padding: 16px 0 !important;
    border-top: 1px solid rgba(0, 16, 54, 0.16);
  }
  .ph-footer__copy,
  .ph-footer__link--legal {
    color: var(--ph-navy) !important;
  }
  /* External/study links: the URL is meaningless as a live link on
     paper, so print it in parentheses after the visible text — the
     standard print-stylesheet convention — but only for genuinely
     external links (not every in-page #anchor, which would just add
     noise). */
  a[href^="http"]:not([href*="energyphalanx"])::after,
  a[target="_blank"]:not([href^="#"])::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: rgba(0, 16, 54, 0.65);
    word-break: break-all;
  }
}

/* ── Generic product-grid card title — mobile word-break fix ─────────
   base.css's card title (.product-grid-view-zoom-out--details .h4)
   inherits a global overflow-wrap/word-break: break-word rule that, on
   a narrow mobile grid card, breaks the last "word" of a long raw
   product.title (no spaces to wrap at, e.g. "Kognitionsdryck") mid-
   letter with no hyphen mark ("KOGNITIONSDRY" / "CK") — confirmed on
   /collections/all's Game Changer card at 390px. hyphens: auto uses
   the page's own lang attribute (already set from request.locale) to
   insert a real, correctly-placed hyphen instead, the standard
   typographic fix for exactly this case — scoped to just this title,
   not a blanket change to the shared base.css rule other components
   may depend on.

   font-family: base.css's own rule for this exact selector forces
   --font-paragraph--family (Manrope) on the title here, same
   specificity + earlier in source order than base.css's own .h4.h4
   preset rule it's overriding, so the PHALANX product-identity font
   (Marcellus, --font-heading--family) never reached this specific
   card layout even after the type_font_h4 setting migration below.
   This file loads after base.css, so this wins the tie. Scoped to
   just .h4 — the same selector's sibling rule for span/s (price,
   strikethrough) is untouched, since price stays Manrope by design. */
.product-grid-view-zoom-out--details .h4 {
  hyphens: auto;
  overflow-wrap: break-word;
  font-family: var(--font-heading--family);
}

/* ═══════════════════════════════════════════════════════════════════
   DISCLOSURE ROW — shared interactive-information system (FAQ rows,
   product "Visa doser", "Visa fullständig etikett", "Vanliga frågor").
   Rest: white row, Primary Navy text, +/− indicator. Desktop hover and
   focus-visible, plus pressed/open on touch, turn the row into a
   rounded Primary Navy bubble with white text and a Cyan indicator.
   Conversion CTAs stay Electric Blue; this is the info-only system.
   Applied to <summary> (details) and to aria-expanded buttons.
   ═══════════════════════════════════════════════════════════════════ */
.ph-disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 18px 0;
  background: transparent;
  color: var(--ph-navy);
  border: none;
  border-radius: var(--ph-radius-panel);
  font: inherit;
  text-align: left;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--ph-motion-standard) var(--ph-ease-ui), color var(--ph-motion-standard) var(--ph-ease-ui), padding-inline var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-disclosure::-webkit-details-marker {
  display: none;
}
.ph-disclosure__icon {
  flex-shrink: 0;
  color: rgba(0, 16, 54, 0.45);
  transition: transform var(--ph-motion-standard) var(--ph-ease-ui), color var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-disclosure:focus-visible {
  outline: 2px solid var(--ph-focus);
  outline-offset: 2px;
}
.ph-disclosure:focus-visible,
.ph-disclosure:active,
.ph-disclosure[aria-expanded="true"],
details[open] > .ph-disclosure {
  background: var(--ph-navy);
  color: #FFFFFF;
  padding-inline: 22px;
}
.ph-disclosure:focus-visible .ph-disclosure__icon,
.ph-disclosure:active .ph-disclosure__icon,
.ph-disclosure[aria-expanded="true"] .ph-disclosure__icon,
details[open] > .ph-disclosure .ph-disclosure__icon {
  color: var(--ph-cyan);
}
.ph-disclosure[aria-expanded="true"] .ph-disclosure__icon,
details[open] > .ph-disclosure .ph-disclosure__icon {
  transform: rotate(45deg);
}
@media (hover: hover) and (pointer: fine) {
  .ph-disclosure:hover {
    background: var(--ph-navy);
    color: #FFFFFF;
    padding-inline: 22px;
  }
  .ph-disclosure:hover .ph-disclosure__icon {
    color: var(--ph-cyan);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ph-disclosure,
  .ph-disclosure__icon {
    transition: none;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   FAQ — shared accordion list (homepage, FAQ page). Moved from the homepage
   section so every FAQ surface renders identically.
   ═══════════════════════════════════════════════════════════════════ */
.ph-faq {
  padding: 96px 0;
  background: #FFFFFF;
}

.ph-faq__major {
  margin: 0 auto 56px;
}
/* Desktop: more air between the divider and the heading. Compound selector beats .ph-divider's own `margin: 0 auto`. */
@media screen and (min-width: 1024px) {
  .ph-faq__major.ph-divider { margin: 0 auto 80px; }
}
/* Mobile: the divider sits nearer the timeline footnote above and gets real air before the FAQ heading. */
@media screen and (max-width: 1023px) {
  .ph-faq { padding-top: 60px; }
  .ph-faq__major.ph-divider { margin: 0 auto 88px; }
}

.ph-faq__inner {
  max-width: 720px;
}

.ph-faq__list {
  margin-top: 8px;
}

.ph-faq__item {
  border-bottom: 1px solid var(--ph-border);
  scroll-margin-top: 0;
}

.ph-faq__item:first-child {
  border-top: 1px solid var(--ph-border);
}

.ph-faq__btn {
  padding-block: 22px;
}

.ph-faq__q {
  font-weight: 400;
  color: inherit;
}

.ph-faq__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--ph-motion-reveal) var(--ph-ease-settle);
}

.ph-faq__item--open .ph-faq__panel {
  max-height: 600px;
}

.ph-faq__a {
  font-family: var(--ph-sans);
  font-size: var(--ph-type-body-sm);
  font-weight: 400;
  line-height: var(--ph-lh-body-sm);
  color: var(--ph-navy-text);
  margin: 0 0 28px;
  padding-top: 4px;
  max-width: var(--ph-measure-editorial);
}
/* ── FAQ accordion: stable left edge + light open state ──────────────
   The question keeps the same 20px inset (1px border + 19px padding) in
   closed, hover and open states, so the text never shifts sideways when
   a row opens. Open row: #F2F2F2 surface, hairline navy border, 4px
   radius, Electric Blue indicator; ~12px title→answer, ~24px after. */
.ph-faq__item {
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-radius: 4px;
  transition: background-color var(--ph-motion-standard) var(--ph-ease-ui), border-color var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-faq__btn.ph-disclosure {
  padding-inline: 19px;
  border-radius: 4px;
  /* Questions that wrap keep the +/x on the first line instead of floating
     at the middle of a 3-line block; margin-top centres it on that line. */
  align-items: flex-start;
}
.ph-faq__btn .ph-disclosure__icon {
  /* optical centring (#100): Marcellus sits low in its line box, so the +/x is
     nudged down to the x-height centre of the first line (measured: 3.7px at
     desktop sizes, 1.7px on phones). */
  margin-top: 8px;
  margin-top: calc((1lh - 14px) / 2 + 3.5px);
}
@media screen and (max-width: 1023px) {
  .ph-faq__btn .ph-disclosure__icon {
    margin-top: 6px;
    margin-top: calc((1lh - 14px) / 2 + 1.5px);
  }
}
.ph-faq__item--open {
  background: transparent;
  border-color: transparent;
  border-bottom-color: var(--ph-border);
  box-shadow: inset 2px 0 0 var(--ph-blue);
}
/* DESIGN-02 — FAQ rows: no navy bubble on hover, no grey fill when open.
   The question text and +/x turn Electric Blue and a 2px blue rule appears
   on the row's left edge (inset shadow, so nothing shifts). Open rows keep
   the rule; hairline dividers between rows do the rest. The product-page
   accordion (.phd-acc) has its own rules and is untouched. */
.ph-faq__item {
  border-radius: 0;
  transition: box-shadow var(--ph-motion-standard) var(--ph-ease-ui), background-color var(--ph-motion-standard) var(--ph-ease-ui), border-color var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-faq__btn.ph-disclosure:active,
.ph-faq__btn.ph-disclosure[aria-expanded="true"],
.ph-faq__btn.ph-disclosure:focus-visible {
  background: transparent;
  color: var(--ph-navy);
  padding-inline: 19px;
}
.ph-faq__btn.ph-disclosure:active .ph-disclosure__icon,
.ph-faq__btn.ph-disclosure:focus-visible .ph-disclosure__icon {
  color: var(--ph-blue);
}
.ph-faq__item:has(.ph-faq__btn:active),
.ph-faq__item:has(.ph-faq__btn:focus-visible) {
  box-shadow: inset 2px 0 0 var(--ph-blue);
}
@media (hover: hover) and (pointer: fine) {
  .ph-faq__btn.ph-disclosure:hover {
    background: transparent;
    color: var(--ph-blue);
    padding-inline: 19px;
  }
  .ph-faq__btn.ph-disclosure:hover .ph-disclosure__icon {
    color: var(--ph-blue);
  }
  .ph-faq__item:has(.ph-faq__btn:hover) {
    box-shadow: inset 2px 0 0 var(--ph-blue);
  }
  .ph-faq__item--open .ph-faq__btn.ph-disclosure:hover {
    color: var(--ph-navy);
  }
}
.ph-faq__item--open .ph-faq__btn.ph-disclosure {
  background: transparent;
  color: #000D2A;
  padding-bottom: 12px;
}
.ph-faq__item--open .ph-faq__btn.ph-disclosure .ph-disclosure__icon {
  color: #0050EC;
}
.ph-faq__panel {
  padding-inline: 19px;
}
.ph-faq__item--open .ph-faq__a {
  color: #001036;
}
.ph-faq__a {
  padding-top: 0;
  margin-bottom: 24px;
}
.ph-faq__panel > :last-child {
  margin-bottom: 24px;
}
@media (prefers-reduced-motion: reduce) {
  .ph-faq__item { transition: none; }
}
/* Tightens the gap above the ingredient-link chip (below) when an
   answer carries one, so the two read as one unit. */
.ph-faq__a:has(+ .ph-faq__ingr-link) {
  margin-bottom: 10px;
}
/* "See the ingredients" chip — appended to FAQ answers about Formula
   48's composition (same component everywhere: homepage, the FAQ
   page, the product page's own near-purchase FAQ). A bordered pill,
   not a plain underlined link, so it reads as a deliberate CTA rather
   than a generic browser hyperlink inside body copy. */
.ph-faq__ingr-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 28px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 16, 54, 0.18);
  border-radius: var(--ph-radius-control);
  font-family: var(--ph-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ph-navy);
  text-decoration: none;
  transition: background var(--ph-motion-fast) var(--ph-ease-ui), color var(--ph-motion-fast) var(--ph-ease-ui), border-color var(--ph-motion-fast) var(--ph-ease-ui);
}
.ph-faq__ingr-link svg {
  flex-shrink: 0;
  transition: transform var(--ph-motion-fast) var(--ph-ease-ui);
}
.ph-faq__ingr-link:hover,
.ph-faq__ingr-link:focus-visible {
  background: var(--ph-navy);
  border-color: var(--ph-navy);
  color: #FFFFFF;
}
.ph-faq__ingr-link:hover svg,
.ph-faq__ingr-link:focus-visible svg {
  transform: translate(1px, -1px);
}
.ph-faq__ingr-link:focus-visible {
  outline: 2px solid var(--ph-blue);
  outline-offset: 2px;
}
.ph-faq__ingr-link:active {
  background: var(--ph-navy-mid);
  border-color: var(--ph-navy-mid);
}

.ph-faq__copy-link {
  margin-top: -16px;
  margin-bottom: 20px;
}

@media screen and (max-width: 1023px) { .ph-faq { padding: 64px 0; } }

@media screen and (max-width: 1023px) { .ph-faq__btn { padding-block: 20px; gap: 16px; } }

@media screen and (max-width: 1023px) { .ph-faq__a { margin-bottom: 22px; } }

@media screen and (min-width: 1024px) { .ph-faq { padding: 120px 0; } }

@media screen and (min-width: 1024px) { .ph-faq__inner {
    max-width: 900px;
  } }

@media screen and (min-width: 1024px) { .ph-faq__a {
    line-height: 1.8;
  } }

@media (prefers-reduced-motion: reduce) { .ph-faq__panel {
    transition: none;
  } }

/* ═══════════════════════════════════════════════════════════════════
   SHOPIFY POLICY PAGES (/policies/*) — platform-rendered markup
   (.shopify-policy__*): the theme can't change the content or the
   markup, only its typography/spacing. Phalanx type system, narrow
   reading column, clear of the fixed shared nav.
═══════════════════════════════════════════════════════════════════ */
.shopify-policy__container {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--ph-nav-h, 68px) + 56px) 24px 96px;
  font-family: var(--ph-sans);
  color: var(--ph-navy-text, #001036);
}
.shopify-policy__title { margin-bottom: 40px; text-align: left; }
.shopify-policy__title h1 {
  font-family: var(--ph-serif);
  font-size: var(--ph-type-h1);
  font-weight: 400;
  line-height: var(--ph-lh-h1);
  letter-spacing: var(--ph-track-h1);
  text-transform: uppercase;
  color: var(--ph-navy, #000D2A);
  margin: 0;
}
.shopify-policy__body { font-size: var(--ph-type-body-sm); line-height: 1.7; }
.shopify-policy__body h1,
.shopify-policy__body h2,
.shopify-policy__body h3 {
  font-family: var(--ph-serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--ph-track-h3);
  line-height: 1.15;
  color: var(--ph-navy, #000D2A);
  margin: 2.2em 0 .6em;
}
.shopify-policy__body h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.shopify-policy__body h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); }
.shopify-policy__body a { color: var(--ph-blue, #0050EC); overflow-wrap: anywhere; }
.shopify-policy__body table { display: block; max-width: 100%; overflow-x: auto; }
@media screen and (max-width: 767px) {
  .shopify-policy__container { padding-left: 16px; padding-right: 16px; }
}

.ph-faq__a a {
  color: var(--ph-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════
   SYSTEM / LEGAL SURFACES — cookie banner + policy pages
   Same type system (Marcellus headings, Manrope UI/body), navy on white,
   Electric Blue only as the interactive signal, 4px radii.
═══════════════════════════════════════════════════════════════════ */
/* Cookie consent card: see COOKIE BANNER block above (Premium Refinement 12.0). */

.shopify-policy__title h1 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 1.1;
  text-align: left;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.shopify-policy__body {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.75;
}
.shopify-policy__body p,
.shopify-policy__body li { color: var(--ph-navy-text, #001036); }
.shopify-policy__body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.shopify-policy__body a:hover { color: var(--ph-navy, #000D2A); }
.shopify-policy__body a:focus-visible {
  outline: 2px solid var(--ph-blue, #0050EC);
  outline-offset: 2px;
}

/* ── Desktop header grouping: [brand] · [primary links] · [actions] ──────
   The brand lockup gets its own breathing room before the first link, so
   "Game Changer" never reads as part of the wordmark. The link list takes
   the remaining space and distributes its items evenly (space-between);
   the action cluster stays pinned right. */
@media screen and (min-width: 1280px) {
  .ph-nav__links {
    margin-inline-start: clamp(40px, 4.2vw, 96px);
    margin-inline-end: clamp(8px, 0.8vw, 16px);
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   TYPE SYSTEM — the one place heading levels are assigned
   ───────────────────────────────────────────────────────────────────────
   Families:  Cormorant Garamond = PHALANX wordmark / deliberate brand
              expressions / classic quotes only.
              Marcellus = H1, H2, H3, display + product identity.
              Manrope   = body, UI, labels, metadata, forms, status.
   Levels (tokens above, mobile-first; the same hierarchy on desktop):
              Display  --ph-type-display   hero / closing statement
              H1       --ph-type-h1        page title
              H2       --ph-type-h2        section / chapter heading
              H3       --ph-type-h3        card, item, sub-section heading
              Body     --ph-type-lede / -body / -body-sm
              UI       --ph-type-micro / --ph-type-label
   Section stylesheets own layout, colour and spacing only. They must not
   declare font-family / font-size / line-height / letter-spacing for the
   classes listed here; add a class to a level below instead. Deliberate
   exceptions live next to the component they belong to (.phd-info__title in
   phalanx-product, .ph-closing__h2 in phalanx-launch, hero "Kognitionsdryck").
   ═══════════════════════════════════════════════════════════════════════ */
:is(
  .php-h1, .phsci-h1, .phq-h1, .phb-hero__h1, .pha-hero__h1, .phfaq__title,
  .ph-contact-hero__h1, .phs-h1, .ph404__h1, .pxp-hero__title, .pha-header__h1,
  .phm-h1, /* Vår mission: was missing from this list and rendered at 72px with no tracking while every other page title is 64px / 0.04em */
  .cart-page .cart-title h1
) {
  font-family: var(--ph-serif);
  font-size: var(--ph-type-h1);
  line-height: var(--ph-lh-h1);
  letter-spacing: var(--ph-track-h1);
  text-wrap: balance; /* even line lengths in multi-line page titles (no lone "SOM" on its own line) */
}
:is(
  .phsci-h2, .phq-h2, .phsci-formula__h2, .pha-founder__h2, .pha-values__h2,
  .pha-team__h2, .pha-cta__h2, .pco-legacy__h2, .pco-med__h2, .ph-section__h2,
  .pco-ingr__chapter-h2, .ph-cog__heading, .ph-footer__cta-heading,
  .ph-timeline__h2, .ph-about-gc__h2, .pco-ingr__component-name
) {
  font-family: var(--ph-serif);
  font-size: var(--ph-type-h2);
  line-height: var(--ph-lh-h2);
  letter-spacing: var(--ph-track-h2);
}
:is(
  .phsci-ingr__name, .phfaq__cat, .phq-step__title, .pha-values__item-heading,
  .php-card__title, .phb-card__title, .pha-section-h, .pha-cta__heading,
  .pha-team__card-name, .phsci-formula__name, .pha-prose h2, .pha-prose h3
) {
  font-family: var(--ph-serif);
  font-size: var(--ph-type-h3);
  line-height: var(--ph-lh-h3);
  letter-spacing: var(--ph-track-h3);
}
/* Running text: let the browser avoid a lone word on the last line ("Changer.", "48.") without changing where lines break
   earlier in the paragraph. :where() keeps specificity at zero, so any component that sets text-wrap itself (balance) wins. */
:where(p, li, figcaption, blockquote, dd) { text-wrap: pretty; }
/* Long, sentence-like headings read better in sentence case than as three
   to five heavy uppercase lines. Short titles, labels and product names
   stay uppercase. */
:is(.pha-header__h1, .pha-prose h2, .pha-prose h3, .phb-card__title, .phb-card__title-link, .phsci-study__title) {
  text-transform: none;
}
.phsci-study__title {
  font-family: var(--ph-sans);
  font-size: var(--ph-type-body-sm);
  line-height: 1.4;
  letter-spacing: 0;
}
/* Accordion questions sit one step below H3: Marcellus at the lede size, so
   a category heading (H3) still reads above the questions beneath it. */
.ph-faq__q {
  font-family: var(--ph-serif);
  font-size: var(--ph-type-lede);
  line-height: 1.35;
  letter-spacing: var(--ph-track-h3);
}

/* ── Button feedback — one calm vocabulary for every primary action.
   Hover/focus colour changes live with each button; the press is a 1px
   settle (no scale, no bounce, no glow). `translate` is independent of
   `transform`, so it never fights a component's own transform. ── */
:is(.ph-btn-primary, .ph-btn-secondary, .ph-magnetic, .ph-nav__cta, .ph-footer__cta-button,
    .ph-sticky-cta__btn, .ph-form__btn, .php-card__cta, .pha-cta__btn, .ph404__cta):active {
  translate: 0 1px;
}

/* ── Reduced motion — one global rule. Durations collapse to ~0 so every
   transition/animation resolves instantly; nothing essential depends on
   motion (state is always also expressed by colour, position or text). ── */
@media (prefers-reduced-motion: reduce) {
  :root {
    --ph-motion-fast: 0.01ms;
    --ph-motion-standard: 0.01ms;
    --ph-motion-slow: 0.01ms;
    --ph-motion-reveal: 0.01ms;
  }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  :is(.ph-btn-primary, .ph-btn-secondary, .ph-magnetic, .ph-form__btn):active { translate: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SEARCH: nav trigger + overlay (assets/phalanx-search.js)
   Mobile: a full-width sheet from the top. Desktop: the same sheet as a
   centred panel under the nav. White, navy text, hairline dividers; no
   cards, no shadows beyond the overlay itself.
   ═══════════════════════════════════════════════════════════════════════ */
.ph-nav__search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--ph-radius-control);
  color: var(--ph-navy-text);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--ph-motion-standard) var(--ph-ease-ui), background var(--ph-motion-standard) var(--ph-ease-ui);
}
.ph-nav__search svg { width: 18px; height: 18px; }
@media screen and (min-width: 1280px) { .ph-nav__search svg { width: 20px; height: 20px; } }
.ph-nav__search:hover,
.ph-nav__search:focus-visible { color: #FFFFFF; background: var(--ph-navy); }
.ph-nav__search:focus-visible { outline: 2px solid var(--ph-blue); outline-offset: 2px; }
/* On phones the trigger lives in the menu instead (the header row has no room). */
@media screen and (max-width: 1023px) { .ph-nav__right .ph-nav__search { display: none; } }

.ph-search {
  position: fixed;
  inset: 0;
  z-index: 100001;
  opacity: 0;
  transition: opacity var(--ph-motion-slow) var(--ph-ease-settle);
}
.ph-search[hidden] { display: none; }
.ph-search.is-open { opacity: 1; }
.ph-search__scrim { position: absolute; inset: 0; background: rgba(0, 13, 42, 0.5); }
.ph-search__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  background: #FFFFFF;
  color: var(--ph-navy);
  font-family: var(--ph-sans);
  transform: translateY(-8px);
  transition: transform var(--ph-motion-slow) var(--ph-ease-settle);
}
.ph-search.is-open .ph-search__sheet { transform: none; }
.ph-search__form {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  border-bottom: 1px solid var(--ph-border);
}
.ph-search__icon { flex: none; color: rgba(0, 16, 54, 0.55); }
.ph-search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--ph-sans);
  font-size: 16px;               /* 16px keeps iOS from zooming the page on focus */
  color: var(--ph-navy);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.ph-search__input::placeholder { color: rgba(0, 16, 54, 0.45); }
.ph-search__input::-webkit-search-cancel-button { display: none; }
.ph-search__close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--ph-radius-control);
  color: var(--ph-navy);
  cursor: pointer;
  transition: background var(--ph-motion-fast) var(--ph-ease-ui);
}
.ph-search__close:hover { background: rgba(0, 16, 54, 0.06); }
.ph-search__close:focus-visible,
.ph-search__item:focus-visible,
.ph-search__all:focus-visible { outline: 2px solid var(--ph-blue); outline-offset: -2px; }
.ph-search__results {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0 8px;
}
.ph-search__note { margin: 0; padding: 20px 20px 24px; font-size: 14px; line-height: 1.5; color: rgba(0, 16, 54, 0.6); }
.ph-search__group { padding-top: 14px; }
.ph-search__group-title {
  margin: 0;
  padding: 0 20px 6px;
  font-family: var(--ph-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ph-blue);
}
.ph-search__item {
  display: block;
  padding: 10px 20px;
  color: var(--ph-navy);
  text-decoration: none;
  transition: background var(--ph-motion-fast) var(--ph-ease-ui);
}
.ph-search__item:hover,
.ph-search__item:focus-visible { background: rgba(0, 80, 236, 0.06); }
.ph-search__title { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.ph-search__meta { display: block; margin-top: 1px; font-size: 12px; color: rgba(0, 16, 54, 0.55); }
.ph-search__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0, 16, 54, 0.65);
}
.ph-search__all {
  flex: none;
  display: block;
  padding: 14px 20px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--ph-border);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ph-blue);
  text-decoration: none;
}
.ph-search__all[hidden] { display: none; }
.ph-search__all:hover { color: var(--ph-navy); }
html.ph-search-open { overflow: hidden; }
@media screen and (max-width: 1023px) {
  .ph-search__sheet { height: 100%; }
}
@media screen and (min-width: 1024px) {
  .ph-search__sheet {
    max-width: 680px;
    margin: calc(var(--ph-nav-h, 68px) + 12px) auto 0;
    max-height: calc(100% - var(--ph-nav-h, 68px) - 48px);
    border-radius: var(--ph-radius-panel);
    box-shadow: 0 18px 48px rgba(0, 13, 42, 0.22);
  }
  .ph-search__form { padding: 12px 12px 12px 20px; }
}

/* Search entry points by width: the header icon from 1366px (room for it
   without crowding the links); below that, and 1024px up, a "Sök" row at
   the end of the "Om oss" menu so the nav spacing is never squeezed. */
.ph-nav__dd-menu button.ph-nav__dd-link {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
@media screen and (max-width: 1365px) { .ph-nav__right .ph-nav__search { display: none; } }
@media screen and (min-width: 1366px) { .ph-nav__dd-search { display: none; } }
/* "Sök" row in the mobile menu: a <button> that reads exactly like the link rows. */
.ph-mnav-flat__search {
  width: 100%;
  border: 0;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* ═══════════════════════════════════════════════════════════════════
   UNSUBSCRIBE CONFIRMATION (/account/unsubscribe, /account/unsubscribe/preview)
   Scoped entirely to body.phalanx-unsub-page (set in layout/theme.liquid from
   the route). Presentation only: Shopify's own confirmation markup stays in
   the DOM inside .ph-unsub-system; its English heading/text are hidden because
   the theme cannot translate them, and replaced by the theme's own
   Swedish block (.ph-unsub). Nothing about the unsubscribe itself is touched.
   ═══════════════════════════════════════════════════════════════════ */
body.phalanx-unsub-page {
  --header-height: 0px !important;
  --header-group-height: 0px;
  padding-top: 0 !important;
  background: #FFFFFF;
}
body.phalanx-unsub-page .ph-unsub-header {
  display: flex;
  justify-content: center;
  padding: clamp(28px, 5vw, 44px) 20px 0;
}
body.phalanx-unsub-page .ph-unsub-header__logo {
  min-height: 44px;
}
body.phalanx-unsub-page .ph-unsub-header__logo .phalanx-lockup__word {
  color: var(--ph-navy-text);
}
body.phalanx-unsub-page main {
  display: block;
  padding: clamp(72px, 14vh, 160px) 20px clamp(96px, 16vh, 180px);
}
body.phalanx-unsub-page .ph-unsub {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
body.phalanx-unsub-page .ph-unsub__title {
  margin: 0;
  font-family: var(--ph-serif);
  font-weight: 400;
  font-size: clamp(28px, 5.5vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ph-navy-text);
}
body.phalanx-unsub-page .ph-unsub__text {
  margin: 18px auto 0;
  max-width: 460px;
  font-family: var(--ph-sans);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: balance;
  color: rgba(0, 16, 54, 0.74);
}
body.phalanx-unsub-page .ph-unsub__cta {
  margin-top: 36px;
  width: 100%;
  max-width: 320px;
}
/* Shopify's own confirmation (English, not translatable from the theme) */
body.phalanx-unsub-page .ph-unsub ~ .ph-unsub-system .shopify-email-marketing-confirmation__container {
  display: none;
}
/* The merchant-only preview notice (never shown to customers): quiet, in flow */
body.phalanx-unsub-page .shopify-email-marketing-confirmation__preview-bar {
  position: static;
  margin: 56px auto 0;
  max-width: 600px;
  background: none;
  border: 0;
  box-shadow: none;
  color: rgba(0, 16, 54, 0.5);
  font-family: var(--ph-sans);
  font-size: 12px;
  text-align: center;
}
body.phalanx-unsub-page .shopify-email-marketing-confirmation__preview-bar p {
  margin: 0;
  color: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════
   BOTTOM ACTION BAR — shared by the homepage (.ph-sticky-cta) and the product page (.phd-sticky-cta).
   Phones (<=599px): one slim full-width Primary Navy bar, anchored to the edge, with the standard Electric Blue
   button. It shows only while the visitor scrolls back up (each page's script), so it never sits over text that is
   being read, and steps aside for forms, the footer, the cookie card and the mobile menu. Hidden = not focusable.
   ═══════════════════════════════════════════════════════════════════════ */
.ph-sticky-cta__lbl-m, .phd-sticky-cta__lbl-m, .ph-sticky-cta__arrow, .phd-sticky-cta__arrow { display: none; }
.ph-sticky-cta__inner:not(:has(.ph-sticky-cta__text)) { justify-content: center; }
.ph-sticky-cta.ph-sticky-cta[aria-hidden="true"], .phd-sticky-cta.phd-sticky-cta[aria-hidden="true"] { visibility: hidden; transition: transform var(--ph-motion-slow) var(--ph-ease-settle), opacity var(--ph-motion-standard) var(--ph-ease-ui), visibility 0s linear var(--ph-motion-slow); }
@media screen and (max-width: 599px) {
  .ph-sticky-cta.ph-sticky-cta, .phd-sticky-cta.phd-sticky-cta { padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .ph-sticky-cta[data-ph-cta-hidden="true"], .phd-sticky-cta[data-ph-cta-hidden="true"] { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transform: translateY(100%) !important; }
  .ph-sticky-cta .ph-sticky-cta__inner, .phd-sticky-cta .phd-sticky-cta__inner { display: block; max-width: none; margin: 0; }
  .ph-sticky-cta .ph-sticky-cta__text, .phd-sticky-cta .phd-sticky-cta__text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .ph-sticky-cta .ph-sticky-cta__btn, .phd-sticky-cta .phd-sticky-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: var(--ph-blue, #0050EC);
    border-radius: var(--ph-radius-control);
    color: #FFFFFF;
    font-family: var(--ph-sans);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: var(--ph-track-ui);
    text-transform: uppercase;
    white-space: nowrap;
  }
  .ph-sticky-cta .ph-sticky-cta__lbl-d, .phd-sticky-cta .phd-sticky-cta__lbl-d { display: none; }
  .ph-sticky-cta .ph-sticky-cta__lbl-m, .phd-sticky-cta .phd-sticky-cta__lbl-m { display: inline; }
  /* keyboard focus is never left behind the bar (WCAG 2.4.11) */
  html:has(.ph-sticky-cta--visible), html:has(.phd-sticky-cta--visible) { scroll-padding-bottom: 76px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER AFTER A DARK SECTION (phones, <=599px) — see snippets/phalanx-footer.liquid (after_dark).
   A Primary Navy closing section followed by the Primary Navy footer read as one big block. The footer gets a
   deliberate top edge instead: a light-blue hairline over a thin Electric Blue line (the "hairline where sections
   meet" language already used for .pha-cta and the nav), and less padding, so no extra empty area is added.
   ═══════════════════════════════════════════════════════════════════════ */
@media screen and (max-width: 599px) {
  .ph-footer.ph-footer--after-dark {
    padding-top: 36px;
    box-shadow: inset 0 1px 0 rgba(135, 181, 237, 0.38), inset 0 2px 0 rgba(0, 80, 236, 0.55);
  }
}


/* ── Footer brand signature (10.2): Fokus — Minne — Hjärnhälsa on one wide horizontal line. White + Cyan on Primary Navy.
   Informative only (not links). Mobile first. A pulse (Electric Blue) runs left to right and lights each symbol's cyan part. ── */
@property --phsym-b { syntax: '<color>'; inherits: true; initial-value: #0050EC; }
.ph-footer__syms {
  --ic: 30px;
  list-style: none;
  margin: 0;
  padding: 0 24px 12px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  order: 1;
  --phsym-a: #FFFFFF;
  --phsym-b: #00B5FE;
}
.ph-footer__sym { position: relative; flex: 0 0 auto; width: var(--ic); height: var(--ic); }
.ph-footer__sym-icon { position: relative; display: block; width: 100%; height: 100%; line-height: 0; }
.ph-footer__sym-icon::before { content: ""; position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 181, 254, 0.3), rgba(0, 181, 254, 0)); opacity: 0; pointer-events: none; }
.ph-footer__sym-icon .brand-sym { position: relative; display: block; width: 100%; height: 100%; }
.ph-footer__sym-label { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); font-family: var(--ph-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); white-space: nowrap; }
.ph-footer__wire { position: relative; flex: 1 1 0; min-width: 0; height: var(--ic); margin: 0 12px; overflow: hidden; }
.ph-footer__wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(135, 181, 237, 0.3); }
.ph-footer__pulse { position: absolute; top: calc(50% - 1px); left: 0; width: 38%; height: 2px; opacity: 0; transform: translateX(-100%); background: linear-gradient(90deg, rgba(0, 80, 236, 0), #0050EC 30%, #87B5ED 80%, rgba(135, 181, 237, 0)); filter: drop-shadow(0 0 5px rgba(0, 80, 236, 0.95)); }
@keyframes ph-footer-run {
  0% { transform: translateX(-100%); opacity: 0; }
  3% { opacity: 1; }
  23% { opacity: 1; }
  26.6% { transform: translateX(263%); opacity: 0; }
  100% { transform: translateX(263%); opacity: 0; }
}
@keyframes ph-footer-lit { 0%, 24% { --phsym-b: #00B5FE; } 6% { --phsym-b: #87B5ED; } }
@keyframes ph-footer-halo { 0%, 24% { opacity: 0; } 6% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .ph-footer__pulse { animation: ph-footer-run 9s cubic-bezier(0.45, 0, 0.35, 1) infinite; }
  .ph-footer__wire--2 .ph-footer__pulse { animation-delay: 3s; }
  .ph-footer__sym-icon, .ph-footer__sym-icon::before { animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: ease-out; }
  .ph-footer__sym-icon { animation-name: ph-footer-lit; }
  .ph-footer__sym-icon::before { animation-name: ph-footer-halo; }
  .ph-footer__sym--minne .ph-footer__sym-icon, .ph-footer__sym--minne .ph-footer__sym-icon::before { animation-delay: 1.9s; }
  .ph-footer__sym--hjarnhalsa .ph-footer__sym-icon, .ph-footer__sym--hjarnhalsa .ph-footer__sym-icon::before { animation-delay: 4.9s; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-footer__pulse { display: none; }
  .ph-footer__wire::before { background: rgba(0, 181, 254, 0.42); }
}
@media screen and (max-width: 1023px) {
  .ph-footer__brand { order: 0; }
  .ph-footer__nav-grid { order: 2; }
  .ph-footer__legal-row { order: 3; }
}
@media screen and (max-width: 359px) { .ph-footer__syms { padding-inline: 22px; } .ph-footer__sym-label { letter-spacing: 0.1em; } .ph-footer__wire { margin: 0 8px; } }
@media screen and (min-width: 1024px) {
  .ph-footer__syms { --ic: 44px; flex-basis: 100%; order: 0; padding: 0 26px 12px 0; margin-top: -24px; }
  .ph-footer__sym-label { top: calc(100% + 12px); font-size: 11px; letter-spacing: 0.14em; }
  .ph-footer__wire { margin: 0 28px; }
}

/* 17.0: approved explanations are several paragraphs; tighter paragraph rhythm inside one answer, strong closing line */
.ph-faq__a:has(+ .ph-faq__a) { margin-bottom: 12px; }
.ph-faq__a strong { font-weight: 600; color: var(--ph-navy); }
/* 17.1: FAQ panels size to their content - no fixed max-height can clip a long answer. Chrome/Safari animate height to auto
   (interpolate-size); browsers without it open instantly instead of clipping. */
.ph-faq__panel { interpolate-size: allow-keywords; }
@supports (interpolate-size: allow-keywords) {
  .ph-faq__panel { max-height: none; height: 0; transition: height var(--ph-motion-reveal) var(--ph-ease-settle); }
  .ph-faq__item--open .ph-faq__panel { height: auto; }
}
@supports not (interpolate-size: allow-keywords) {
  .ph-faq__item--open .ph-faq__panel { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .ph-faq__panel { transition: none; } }
/* 17.1: avoid single-word last lines in FAQ answers and the product explanation */
.ph-faq__a, .phd-near-faq__answer { text-wrap: balance; } /* paragraphs of up to 6 lines get even lines; longer ones fall back to normal wrapping */
.phd-kog__p { text-wrap: pretty; }

/* These three hid their padding with negative margins, so neighbouring hit areas ran into each other (all widths). */
.ph-copy-link.ph-copy-link, .phsci-ingr__ask-link.phsci-ingr__ask-link, .phsci-ingr__save.phsci-ingr__save { margin-block: 0; }

/* ═══════════════════════════════════════════════════════════════════
   TAP TARGETS (20.0) — small stand-alone controls get a 44px hit area on touch and narrow screens.
   Only the box grows; type, icons and drawn dots keep their size. Doubled selectors win over section styles.
═══════════════════════════════════════════════════════════════════ */
@media screen and (max-width: 1023px), (pointer: coarse) {
  .ph-copy-link.ph-copy-link,
  .ph-text-link.ph-text-link,
  .ph-faq__ingr-link.ph-faq__ingr-link,
  .phsci-ingr__ask-link.phsci-ingr__ask-link,
  .phsci-library__link.phsci-library__link,
  .ph-si__link.ph-si__link,
  .ph-se__link.ph-se__link,
  .pha-founder__plate-link.pha-founder__plate-link,
  .pha-cta__colophon-link.pha-cta__colophon-link,
  .ph-contact-ending.ph-contact-ending,
  .pxp-foot__btn.pxp-foot__btn,
  .phb-pagination__btn.phb-pagination__btn,
  .ph-nav__mobile-cta.ph-nav__mobile-cta { min-height: 44px; }
  .ph-text-link.ph-text-link,
  .phsci-library__link.phsci-library__link,
  .pha-cta__colophon-link.pha-cta__colophon-link,
  .ph-contact-ending.ph-contact-ending,
  .pha-founder__plate-link.pha-founder__plate-link { display: inline-flex; align-items: center; }
  .phsci-ingr__save.phsci-ingr__save,
  .phd-f48-card__action.phd-f48-card__action { min-height: 44px; min-width: 44px; }
  .phs-form__clear.phs-form__clear { width: 44px; height: 44px; margin-right: -12px; }
  .ph-rail__dot.ph-rail__dot { min-height: 44px; min-width: 32px; }
  .ph-rail__btn.ph-rail__btn { width: 44px; height: 44px; }
  .ph-si .ph-si__cat.ph-si__cat, .phb-card__read-more.phb-card__read-more { min-height: 44px; }
}
