/* Phoenix Impact theme: layout and component styles that theme.json can't express. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { overflow-x: hidden; }
.wp-site-blocks { position: relative; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, .wp-element-button:focus-visible {
  outline: 3px solid var(--wp--preset--color--orange);
  outline-offset: 3px;
}

/* Placeholder highlight for numbers still to fill in: use the "Highlight" format with the Peach colour. */
mark, .pi-ph {
  background: var(--wp--preset--color--peach);
  color: var(--wp--preset--color--navy);
  padding: 0 5px;
  border-radius: 5px;
}
/* Text coloured with the editor's Highlight format (text colour only, transparent background):
   plain coloured words, no pill padding around them. */
mark[style*="rgba(0, 0, 0, 0)"], mark[style*="rgba(0,0,0,0)"], mark[style*="background-color:transparent"], mark[style*="background-color: transparent"] {
  padding: 0;
  border-radius: 0;
}

/* ---------- Sections ---------- */
.pi-section {
  position: relative;
  padding-top: var(--wp--preset--spacing--60) !important;
  padding-bottom: var(--wp--preset--spacing--60) !important;
}
.pi-overlap {
  border-radius: var(--wp--custom--radius--section) var(--wp--custom--radius--section) 0 0;
  margin-top: calc(-1 * var(--wp--custom--radius--section)) !important;
  padding-top: calc(var(--wp--preset--spacing--60) + 10px) !important;
}
.pi-rounded-top { border-radius: var(--wp--custom--radius--section) var(--wp--custom--radius--section) 0 0; }
.pi-clip { overflow: hidden; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group { margin-top: 0; }
main > .wp-block-post-content > * + * { margin-block-start: 0; }

/* Decorative rings (from the sigle). Sit behind content. */
.pi-ring-tr, .pi-ring-bl, .pi-ring-br { position: relative; overflow: hidden; }
.pi-ring-tr::before, .pi-ring-bl::before, .pi-ring-br::before {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  width: 540px; height: 540px; border: 76px solid var(--pi-ring, rgba(255,255,255,.07));
}
.pi-ring-tr::before { right: -200px; top: -200px; }
.pi-ring-bl::before { left: -170px; bottom: -250px; }
.pi-ring-br::before { right: -120px; top: -160px; width: 460px; height: 460px; border-width: 70px; }
.pi-ring-tr > *, .pi-ring-bl > *, .pi-ring-br > * { position: relative; }
.has-navy-background-color { --pi-ring: var(--wp--preset--color--navy-2); }
.has-green-background-color { --pi-ring: #5bc8ab; }
.has-white-background-color, .has-mint-background-color { --pi-ring: var(--wp--preset--color--mint); }
.has-mint-background-color.pi-ring-bl { --pi-ring: #dff5f0; }

/* Section intro: title left, text right, aligned at the bottom. */
.pi-intro { align-items: flex-end !important; }
.pi-intro > .wp-block-column:last-child p { max-width: 440px; }

/* ---------- Header ---------- */
.pi-header { position: relative; z-index: 7; background: #fff; }
.pi-header .wp-block-site-logo img { height: 68px; width: auto; }
.pi-header .wp-block-navigation a { color: var(--wp--preset--color--navy); text-decoration: none; }
.pi-header .wp-block-navigation a:hover { color: #35a086; }
.pi-header .pi-utility a { text-decoration: none; font-weight: 600; }
@media (max-width: 781px) {
  .pi-header .wp-block-site-logo img { height: 52px; }
  .pi-header .pi-utility .pi-hide-mobile { display: none; }
}
/* Below 1200px the full menu doesn't fit on one line: use the menu button, move the order button
   into the menu, and put the language code next to the menu button. */
.pi-header .pi-nav-extra, .pi-header .pi-nav-lang-short { display: none; }
@media (max-width: 1199px) {
  .pi-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .pi-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  /* Everything in the utility group is hidden here, so drop the group: otherwise it still takes a slot
     on the right and pushes the menu button towards the middle. */
  .pi-header .pi-utility { display: none; }
  .pi-header nav.wp-block-navigation { margin-left: auto; } /* nav only: the list inside also has this class */
  .pi-header .pi-nav-lang-short { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin-right: -16px; font-weight: 600; /* closer to the menu button than the menu gap */ }
  .pi-header .is-menu-open .pi-nav-extra { display: flex; }
  .pi-header .is-menu-open .pi-nav-cta { margin-top: 18px; }
  .pi-header .is-menu-open .pi-nav-cta a {
    background: var(--wp--preset--color--green, #64b99d); color: var(--wp--preset--color--navy); font-weight: 600;
    border-radius: 999px; padding: 14px 28px !important;
  }
  .pi-header .is-menu-open .pi-nav-cta a:hover { color: var(--wp--preset--color--navy); }
  .pi-header .is-menu-open .pi-nav-lang a { font-size: .9em; opacity: .8; }
}

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link {
  min-height: 54px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  transition: transform .15s ease;
}
.wp-element-button:hover, .wp-block-button__link:hover { transform: translateY(-2px); }
.is-style-pi-small .wp-block-button__link { min-height: 46px; padding: 10px 20px; font-size: 15px; }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; border: 2.5px solid currentColor; color: var(--wp--preset--color--navy);
}
.has-navy-background-color .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; }
.wp-block-button.is-style-pi-navy .wp-block-button__link { background: var(--wp--preset--color--navy); color: #fff; }
@media (prefers-reduced-motion: reduce) { .wp-element-button, .wp-block-button__link { transition: none; } }

/* Text link with arrow */
.pi-more a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none;
}
.pi-more a::after {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.has-navy-background-color .pi-more a { color: var(--wp--preset--color--light-green); }

/* ---------- Small components ---------- */
.pi-pill {
  display: inline-flex !important; align-items: center; gap: 10px; width: auto !important;
  border-radius: 999px; padding: 8px 16px 8px 8px !important; font-weight: 600;
}
.pi-pill strong { background: var(--wp--preset--color--green); color: var(--wp--preset--color--navy); border-radius: 999px; padding: 4px 10px; font-weight: 800; }
.pi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pi-chips p, .pi-chip {
  margin: 0 !important; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px;
  background: var(--wp--preset--color--navy-2); color: #fff;
}
.pi-chips p.pi-chip-dashed { background: transparent; border: 2px dashed #4a4ab0; padding: 6px 12px; font-weight: 400; }

.pi-check li { list-style: none; display: flex; gap: 10px; align-items: center; }
.pi-check { padding-left: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.pi-check li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--wp--preset--color--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%231d1d77' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.pi-card { border-radius: var(--wp--custom--radius--card); position: relative; }
.pi-square { aspect-ratio: 1; display: flex !important; flex-direction: column; justify-content: space-between; overflow: hidden; box-sizing: border-box; }
.pi-badge { display: inline-block !important; width: auto !important; border-radius: 999px; padding: 6px 14px !important; font-weight: 800; font-size: 13px; }
.pi-tile { transition: transform .18s ease; }
.pi-tile:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .pi-tile { transition: none; } .pi-tile:hover { transform: none; } }

/* ---------- How it works ---------- */
.pi-steps { position: relative; }
.pi-step { background: #fff; display: flex; flex-direction: column; gap: 14px; }
.pi-step-pic {
  height: 230px; border-radius: 32px !important; display: flex !important; align-items: flex-end; justify-content: center;
  overflow: hidden; position: relative; padding: 0 !important;
}
.pi-step-pic .wp-block-image { margin: 0; }
.pi-step-pic .wp-block-image img { width: 190px; height: auto; display: block; }
.pi-step-pic .pi-step-num {
  position: absolute; left: 18px; top: 14px; margin: 0; z-index: 7;
  font-family: var(--wp--preset--font-family--heading); font-size: 54px; font-weight: 800; line-height: 1;
}
.pi-step h3 { margin: 0; font-size: 21px; }
.pi-step p { margin: 0; font-size: 15px; line-height: 1.55; }
/* The recondition card sits in front of the travelling tube. */
.pi-anchor-card { position: relative; z-index: 6; background: #fff; }
.pi-step-num-big { font-family: var(--wp--preset--font-family--heading); font-size: 54px; font-weight: 800; line-height: 1; margin: 0; }

/* ---------- QA ---------- */
.pi-assays { background: #fff; border-radius: var(--wp--custom--radius--card); padding: 30px 32px; display: flex; flex-direction: column; }
.pi-assays label { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 18px; color: var(--wp--preset--color--navy); }
.pi-assays .pi-search {
  margin-top: 10px; display: flex; align-items: center; gap: 10px; border: 2px solid var(--wp--preset--color--light-green);
  border-radius: 999px; padding: 0 18px; min-height: 52px;
}
.pi-assays .pi-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 17px; min-height: 48px; }
.pi-assays .pi-search:focus-within { outline: 3px solid var(--wp--preset--color--orange); outline-offset: 3px; }
.pi-assay {
  border-top: 1.5px solid var(--wp--preset--color--mint); display: flex !important; flex-wrap: wrap; align-items: center;
  gap: 4px 18px !important; min-height: 74px; padding: 8px 0 !important; margin: 0 !important;
}
.pi-assay > * { margin: 0 !important; }
.pi-assay > :first-child { flex: 1 1 240px; font-family: var(--wp--preset--font-family--heading); font-size: 20px; font-weight: 800; color: var(--wp--preset--color--navy); }
.pi-assay > :nth-child(2) { font-size: 14px; }
.pi-assay > :last-child a { color: var(--wp--preset--color--green); font-weight: 800; font-size: 15px; white-space: nowrap; text-decoration: none; }
.pi-assay[hidden] { display: none !important; }
.pi-assays-none { margin-top: 10px; }

.pi-study::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%;
  border: 36px solid var(--wp--preset--color--navy-2); pointer-events: none;
}
.pi-study > * { position: relative; z-index: 1; }

.pi-qc-item { display: flex; gap: 16px; align-items: flex-start; }
.pi-qc-item::before {
  content: ""; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--wp--preset--color--navy-2) var(--pi-ic) center/26px no-repeat;
}
.pi-qc-item > * { margin: 0 !important; }
.pi-qc-item h4 { color: #fff; margin-bottom: 6px !important; }
.pi-ic-params { --pi-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2340bb9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
.pi-ic-sample { --pi-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2340bb9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6l-5 9a2 2 0 0 0 1.8 3h10.4a2 2 0 0 0 1.8-3l-5-9V3'/%3E%3Cpath d='M7.5 15h9'/%3E%3C/svg%3E"); }
.pi-ic-shield { --pi-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2340bb9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8-8 9-4.5-1-8-4-8-9V7z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.pi-qc-item > div { flex: 1; }

/* ---------- Impact / pricing ---------- */
.pi-stat { font-family: var(--wp--preset--font-family--heading); font-weight: 800; line-height: .9 !important; letter-spacing: -0.04em; margin: 0 !important; }
.pi-price-card { border: 3px solid var(--wp--preset--color--green); position: relative; }
.pi-price-card .pi-flag {
  position: absolute; top: -18px; left: 30px; margin: 0; background: var(--wp--preset--color--orange); color: var(--wp--preset--color--navy);
  border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; font-family: var(--wp--preset--font-family--heading);
}
.pi-price-card, .pi-price-org { display: flex !important; flex-direction: column; }
.pi-price-card > .wp-block-buttons, .pi-price-org > .wp-block-buttons { margin-top: auto !important; padding-top: 28px; }
.pi-tiers table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pi-tiers td { padding: 14px 0; border: 0; border-top: 1.5px solid #34349a; }
.pi-tiers td:last-child { text-align: right; font-weight: 800; font-size: 18px; font-family: var(--wp--preset--font-family--heading); }
.pi-tiers { margin: 18px 0 0 !important; }

/* ---------- FAQ (core Details block) ---------- */
.pi-faq .wp-block-details[id] { scroll-margin-top: 90px; }
.pi-faq .wp-block-details { border-top: 2px solid var(--wp--preset--color--mint); padding: 0; margin: 0 !important; }
.pi-faq .wp-block-details summary {
  list-style: none; cursor: pointer; padding: 20px 0; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 19px; font-weight: 700; color: var(--wp--preset--color--navy);
}
.pi-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.pi-faq .wp-block-details summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--wp--preset--color--mint);
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
}
.pi-faq .wp-block-details[open] summary::after { content: "\2212"; }
.pi-faq .wp-block-details > p { margin: 0 0 22px; max-width: 640px; line-height: 1.65; }

/* ---------- Order ---------- */
.pi-order-box { background: #fff; border-radius: 32px; padding: 30px; }
.pi-order-box label { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 18px; color: var(--wp--preset--color--navy); }
.pi-order-box form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pi-order-box input[type=text] { flex: 1 1 180px; min-height: 52px; border: 2px solid var(--wp--preset--color--light-green); border-radius: 999px; padding: 0 20px; font: inherit; font-size: 17px; }
.pi-order-box button { border: 0; cursor: pointer; background: var(--wp--preset--color--navy); color: #fff; }

/* ---------- Footer ---------- */
.pi-footer { color: #c9cbee; }
.pi-footer a { color: #c9cbee; text-decoration: none; }
.pi-footer a:hover { color: #fff; }
.pi-footer .pi-footer-title { color: #fff; font-weight: 700; margin: 0; }
.pi-footer .pi-links p { margin: 0; line-height: 2.1; }
.pi-footer .pi-bottom { border-top: 1px solid #34349a; padding-top: 18px; }

/* ---------- Illustrations (hero hands, bag) ---------- */
.pi-art { position: relative; margin-left: auto; margin-right: auto; }
.pi-art svg, .pi-art img { position: absolute; }
.pi-art .pi-front { z-index: 6; pointer-events: none; }
.pi-art .pi-badge-a, .pi-art .pi-badge-b { z-index: 7; border-radius: 22px; padding: 14px 18px; position: absolute; }
.pi-art .pi-badge-a { right: 4%; top: 6%; background: var(--wp--preset--color--navy); color: #fff; transform: rotate(3deg); }
.pi-art .pi-badge-a b { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 30px; font-weight: 800; color: var(--wp--preset--color--orange); line-height: 1; }
.pi-art .pi-badge-a span { font-size: 13px; font-weight: 600; }
.pi-art .pi-badge-b { left: 2%; bottom: 4%; background: #fff; border: 2px solid var(--wp--preset--color--light-green); color: var(--wp--preset--color--navy); transform: rotate(-3deg); display: flex; gap: 10px; align-items: center; padding: 12px 16px; }
.pi-art .pi-badge-b span { font-size: 14px; font-weight: 700; line-height: 1.25; }
.pi-art-hero { width: 520px; max-width: 100%; aspect-ratio: 520 / 480; }
.pi-art-hero > svg { inset: 0; width: 100%; height: 100%; overflow: visible; }
.pi-art-bag { width: 440px; max-width: 100%; aspect-ratio: 440 / 320; }
.pi-art-bag > svg { inset: 0; width: 100%; height: 100%; }
.pi-anchor { position: absolute; width: 2px; height: 2px; pointer-events: none; }

/* ---------- Tube journey overlay ---------- */
.pi-journey { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 5; pointer-events: none; }
.pi-journey img, .pi-journey svg { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; pointer-events: none; }
.pi-journey .pi-j-spark { z-index: 7; }
@media (max-width: 781px) { .pi-journey { display: none; } }

/* ---------- Pattern details ---------- */
.pi-heading-font { font-family: var(--wp--preset--font-family--heading); }
.pi-step-bin .wp-block-image { width: 118px; }
.pi-step-bin .wp-block-image img { width: 118px !important; }
.pi-step-bin { flex-direction: column; align-items: center !important; justify-content: flex-end; padding-bottom: 18px !important; }
.pi-step-bin .pi-bin-lid { margin-bottom: -3px !important; }
.pi-step-pic > .wp-block-image + .wp-block-image { margin-top: 0; }
.pi-check > p { margin: 0; display: flex; gap: 10px; align-items: center; }
.pi-check > p::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--wp--preset--color--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%231d1d77' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.pi-check { margin-top: 24px !important; }
.pi-price { font-family: var(--wp--preset--font-family--heading); font-size: 56px; font-weight: 800; line-height: 1; margin-top: 16px !important; }
.pi-price .pi-per { font-family: var(--wp--preset--font-family--body); font-size: 18px; font-weight: 600; color: var(--wp--preset--color--muted); }
.pi-tiers > .pi-tier { border-top: 1.5px solid #34349a; padding: 14px 0; margin: 0 !important; }
.pi-tiers > .pi-tier > p { margin: 0; }
.pi-tiers > .pi-tier > p:last-child { font-family: var(--wp--preset--font-family--heading); font-size: 18px; }
.pi-squares { height: 100%; }
.pi-squares > .pi-square { width: 100%; }
.pi-square > .wp-block-group > * + * { margin-top: 8px; }
.pi-qc-item h4 { margin: 0 0 6px !important; }
.pi-steps > .wp-block-column { display: flex; }
.pi-steps .pi-step { width: 100%; }
.pi-order-check form { margin: 12px 0 0; }
.pi-hero h1 { margin-top: 22px; }
.pi-hero .wp-block-buttons { margin-top: 34px; }
.pi-faq-section h2 { margin-bottom: 12px; }
.pi-study .pi-badge { margin: 0; }

/* ---------- v0.1.6 ---------- */
/* QA: the three cards share the height of the assay list instead of being squares. */
.pi-squares { height: 100%; }
.pi-squares > .pi-square { aspect-ratio: auto; flex: 1 1 0; min-height: 0; width: 100%; }
.pi-squares > .pi-square .pi-stat { font-size: 44px !important; }
@media (max-width: 781px) { .pi-squares > .pi-square { flex: none; } }

/* Assay rows: a small arrow instead of the repeated "Case study →" text (the text stays for screen readers). */
.pi-assay > :last-child a {
  font-size: 0; display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--wp--preset--color--mint); transition: background .15s ease;
}
.pi-assay > :last-child a::after {
  content: ""; width: 16px; height: 16px; background: var(--wp--preset--color--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pi-assay:hover > :last-child a, .pi-assay > :last-child a:focus-visible { background: var(--wp--preset--color--green); }
/* In the editor only: show the link text ("Case study →") so it can be clicked and its link edited. */
.editor-styles-wrapper .pi-assay > :last-child a {
  font-size: 14px; width: auto; height: auto; padding: 6px 14px; border-radius: 999px; color: var(--wp--preset--color--navy);
}
.editor-styles-wrapper .pi-assay > :last-child a::after { display: none; }
.pi-assay { min-height: 60px; }
.pi-assay > :first-child { font-size: 18px; }

/* Pricing: both cards as tall as the taller one. */
.pi-section .wp-block-column > .pi-price-card, .pi-section .wp-block-column > .pi-price-org { height: 100%; box-sizing: border-box; }

/* Step 5: accepted consumables */
.pi-accept { border-radius: 28px; padding: 26px clamp(18px, 3vw, 36px) 18px !important; margin-top: 32px !important; color: var(--wp--preset--color--navy); }
.pi-accept-title { margin: 0 0 18px !important; text-align: center; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 18px; }
.pi-accept-items { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 20px 22px; }
.pi-accept-items > * + * { margin-top: 0 !important; }
.pi-accept-item { display: flex !important; flex-direction: column; align-items: center; gap: 10px; }
.pi-accept-item .wp-block-image { margin: 0 !important; }
.pi-accept-item .wp-block-image img { height: 82px; width: auto; display: block; }
.pi-accept-label { margin: 0 !important; background: var(--wp--preset--color--mint); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pi-accept-links { margin-top: 14px !important; }
.pi-accept .pi-more a { color: var(--wp--preset--color--navy); }
@media (max-width: 781px) { .pi-accept-item .wp-block-image img { height: 64px; } .pi-accept-items { gap: 16px 18px; } }

/* ---------- v0.1.7 ---------- */
/* Step 5: consumables sit directly on the dark card. */
.pi-accept, .pi-accept.has-background { background: transparent !important; padding: 0 !important; margin-top: 40px !important; color: #fff; }
.pi-accept-title { display: none; }
.pi-accept-label { background: var(--wp--preset--color--navy-2); color: #fff; }
.pi-accept-items { gap: 22px 26px; }
/* Two clearly different actions: a button to ask, a quieter link for the exclusions. */
.pi-accept-links { margin-top: 30px !important; align-items: center; gap: 12px 28px !important; }
.pi-accept-links > .pi-more:first-child a {
  background: var(--wp--preset--color--green); color: var(--wp--preset--color--navy); border-radius: 999px; padding: 12px 22px; min-height: 48px; box-sizing: border-box;
}
.pi-accept-links > .pi-more:first-child a:hover { color: var(--wp--preset--color--navy); transform: translateY(-2px); }
.pi-accept-links > .pi-more:last-child a { color: var(--wp--preset--color--on-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pi-accept-links > .pi-more:last-child a::after { display: none; }

/* QA: the cards end with the assay table; "Don't see yours?" hangs below it. */
@media (min-width: 782px) {
  .wp-block-column:has(> .pi-assays) { position: relative; }
  .wp-block-column:has(> .pi-assays) > .pi-assays ~ p { position: absolute; left: 0; right: 0; top: 100%; margin-top: 14px !important; }
  .wp-block-columns:has(.pi-assays) + .pi-card { margin-top: 70px !important; }
}

/* ---------- v0.2.0 ---------- */
/* Step cards: one rounded block, picture on top (full bleed), text underneath, light green outline. */
.pi-step {
  border: 3px solid #b6e9dc; border-radius: 32px; overflow: hidden; gap: 0 !important; height: 100%; box-sizing: border-box;
}
.pi-step > .pi-step-pic { border-radius: 0 !important; height: 210px; margin: 0 !important; }
.pi-step > h3 { padding: 22px 22px 0; text-align: center; }
.pi-step > p { padding: 10px 22px 24px; text-align: center; }
.pi-step.pi-anchor-card { border-color: var(--wp--preset--color--green); }
.pi-steps > .wp-block-column { align-self: stretch; }

/* Step 5: the two consumable links on separate rows. */
.pi-accept-links { flex-direction: column !important; align-items: center !important; gap: 10px !important; }

/* Contact section: Contact Form 7 in a white card. */
.pi-contact-box { background: #fff; border-radius: 32px; padding: clamp(24px, 3vw, 36px) !important; color: var(--wp--preset--color--navy); }
.pi-contact-box .wpcf7 form > p { margin: 0 0 14px; }
.pi-contact-box .wpcf7 label { display: block; font-weight: 700; font-size: 15px; }
.pi-contact-box .wpcf7 input[type=text], .pi-contact-box .wpcf7 input[type=email], .pi-contact-box .wpcf7 input[type=tel],
.pi-contact-box .wpcf7 select, .pi-contact-box .wpcf7 textarea {
  width: 100%; box-sizing: border-box; margin-top: 6px; border: 2px solid var(--wp--preset--color--light-green); border-radius: 18px;
  padding: 12px 16px; font: inherit; font-size: 16px; font-weight: 400; color: var(--wp--preset--color--ink); background: #fff; min-height: 50px;
}
.pi-contact-box .wpcf7 textarea { min-height: 130px; height: 150px; resize: vertical; }
.pi-contact-box .wpcf7 input:focus, .pi-contact-box .wpcf7 textarea:focus, .pi-contact-box .wpcf7 select:focus { outline: 3px solid var(--wp--preset--color--orange); outline-offset: 2px; }
.pi-contact-box .wpcf7 input[type=submit] {
  border: 0; cursor: pointer; border-radius: 999px; padding: 14px 30px; min-height: 52px; font: inherit; font-weight: 700; font-size: 16px;
  background: var(--wp--preset--color--navy); color: #fff;
}
.pi-contact-box .wpcf7 input[type=submit]:hover { transform: translateY(-2px); }
.pi-contact-box .wpcf7-list-item { margin: 0 14px 0 0; font-weight: 400; }
.pi-contact-box .wpcf7-not-valid-tip { font-size: 14px; color: #b3261e; margin-top: 4px; }
.pi-contact-box .wpcf7 form .wpcf7-response-output { margin: 12px 0 0; border-radius: 14px; padding: 10px 14px; font-size: 15px; }
.pi-contact-box .wpcf7-spinner { vertical-align: middle; }

/* ---------- v0.2.1: compact contact form ---------- */
.pi-contact-box .wpcf7 form > p:empty, .pi-contact-box .wpcf7 form > br { display: none; }
.pi-contact-box .wpcf7 form > :first-child, .pi-contact-box .wpcf7 form > .screen-reader-response + * { margin-top: 0 !important; }
.pi-contact-box .wpcf7 form p { margin: 0 0 12px; }
.pi-contact-box .wpcf7 form p > br { display: none; }
.pi-contact-box .wpcf7 input[type=text], .pi-contact-box .wpcf7 input[type=email], .pi-contact-box .wpcf7 input[type=tel] { min-height: 48px; margin-top: 0; }
.pi-contact-box .wpcf7 textarea { height: 116px; min-height: 96px; margin-top: 0; }
/* Name and email side by side (the form's "wpcf7-inline-wrapper"); stacked again on phones. */
.pi-contact-box .wpcf7-inline-wrapper { display: flex; gap: 12px; }
.pi-contact-box .wpcf7-inline-wrapper > p, .pi-contact-box .wpcf7-inline-wrapper > .wpcf7-inline-field { flex: 1 1 0; min-width: 0; margin: 0 0 12px; }
@media (max-width: 600px) { .pi-contact-box .wpcf7-inline-wrapper { flex-direction: column; gap: 0; } }
.pi-contact-box .wpcf7 form > p:has(> input[type=submit]), .pi-contact-box .wpcf7 form > p:last-of-type { margin-bottom: 0; }

/* ---------- v0.3.0: step 5 + dashboard row ---------- */
.pi-step5-row { margin-top: 24px !important; align-items: stretch !important; }
.pi-step5-row > .wp-block-column { display: flex; }
.pi-step5-row > .wp-block-column > .pi-card { width: 100%; box-sizing: border-box; margin: 0 !important; }
.pi-step5-row .pi-step5 { display: flex !important; flex-direction: column; justify-content: space-between; }
.pi-step5-row .pi-step5 .pi-art-bag { width: 100%; max-width: 280px; }
/* Accepted consumables: one line on wide screens, wrapping on smaller ones. */
.pi-step5-row .pi-accept { margin-top: 28px !important; }
.pi-step5-row .pi-accept-items { flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
.pi-step5-row .pi-accept-item { flex: 0 1 auto; min-width: 0; gap: 7px; }
.pi-step5-row .pi-accept-item .wp-block-image img { height: 46px; max-width: 100%; }
.pi-step5-row .pi-accept-label { font-size: 11px; padding: 3px 8px; }
@media (max-width: 1180px) { .pi-step5-row .pi-accept-items { flex-wrap: wrap; justify-content: center; gap: 16px 18px; } }

/* Dashboard card */
.pi-dash-card { border: 3px solid #b6e9dc; display: flex !important; flex-direction: column; gap: 18px; color: var(--wp--preset--color--ink); }
.pi-dash-card > * { margin: 0 !important; }
.pi-dash-card > .pi-devices { flex: 1; display: flex; align-items: center; justify-content: center; }
.pi-kicker { font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: #2e9b80; margin: 0 0 -10px !important; }

/* Laptop + phone */
.pi-devices-inner { position: relative; width: min(100%, 410px); margin: 6px auto 0; padding-bottom: 28px; }
.pi-laptop { background: var(--wp--preset--color--ink); border-radius: 16px 16px 4px 4px; padding: 2.3% 2.3% 3%; }
.pi-laptop-screen { aspect-ratio: 820 / 510; overflow: hidden; border-radius: 2px; background: #f4f4f4; }
.pi-laptop-screen img, .pi-phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pi-laptop-base { height: 12px; margin: 0 -7%; background: #3a3a6b; border-radius: 0 0 16px 16px; }
.pi-phone { position: absolute; right: -1.5%; bottom: 0; width: 29%; background: var(--wp--preset--color--ink); border-radius: 24px; padding: 1.6%; box-shadow: 0 24px 40px -16px rgba(0,0,0,.45); }
.pi-phone-screen { aspect-ratio: 260 / 600; overflow: hidden; border-radius: 19px; background: #f4f4f4; }
.pi-devices-tag {
  position: absolute; z-index: 2; margin: 0; display: flex; align-items: center; gap: 7px; white-space: nowrap;
  background: #fff; color: var(--wp--preset--color--navy); border-radius: 999px; padding: 6px 12px 6px 6px;
  box-shadow: 0 8px 22px -8px rgba(29,29,119,.45); font-weight: 700; font-size: 13px; line-height: 1.2;
}
.pi-devices-tag svg { flex: none; }
.pi-devices-tag-1 { left: -5%; top: 17%; }
.pi-devices-tag-2 { left: -2.5%; top: 62%; }
.pi-devices-tag-3 { right: 17%; top: -6%; }
@media (max-width: 480px) { .pi-devices-tag { font-size: 11px; padding: 4px 9px 4px 4px; } .pi-devices-tag svg { width: 16px; height: 16px; } }

/* ---------- v0.3.1: step 5 card layouts ---------- */
/* Side by side (default): the bag sits at the bottom of its column, level with the end of the text. */
.pi-step5 > .wp-block-columns:not(.is-style-pi-stacked) > .wp-block-column:last-child { align-self: flex-end; }
/* "Stacked (text full width)" style on the card's Columns block: text across the card, bag underneath on the right. */
.pi-step5 > .wp-block-columns.is-style-pi-stacked { flex-direction: column; align-items: stretch !important; gap: 8px !important; }
.pi-step5 > .wp-block-columns.is-style-pi-stacked > .wp-block-column { flex-basis: auto !important; width: 100%; }
.pi-step5 > .wp-block-columns.is-style-pi-stacked > .wp-block-column:last-child { display: flex; justify-content: flex-end; }
.pi-step5 > .wp-block-columns.is-style-pi-stacked .pi-art-bag { max-width: 250px; margin: 0; }

/* ---------- v0.3.2: no decorative rings (not part of the brand) ---------- */
.pi-ring-tr::before, .pi-ring-bl::before, .pi-ring-br::before, .pi-study::after { display: none !important; content: none; }

/* ---------- v0.4.0 Order page ---------- */
.pi-order-hero h1 { margin: 0; line-height: 1; letter-spacing: -0.035em; color: var(--wp--preset--color--navy); }
/* Lead: narrow, but aligned with the content's left edge (not centred, not at the padding edge). */
.pi-order-hero .has-lead-font-size { max-width: 640px; margin-top: 16px; margin-left: max(0px, calc((100% - 1240px) / 2)) !important; margin-right: 0 !important; }
.pi-order-steps { margin-top: 28px !important; }
.pi-order-step { display: flex; align-items: center; gap: 12px; margin: 0; background: #fff; border: 2px solid #b6e9dc; border-radius: 999px; padding: 8px 18px 8px 8px; font-weight: 700; color: var(--wp--preset--color--navy); font-size: 15px; }
.pi-order-step .pi-num { width: 34px; height: 34px; border-radius: 50%; background: var(--wp--preset--color--green); display: inline-flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--plus-jakarta-sans, inherit); font-weight: 800; }
.pi-order-section { padding-bottom: var(--wp--custom--radius--section) !important; }
.wp-block-template-part.alignfull { margin-top: 0; }

.pi-order { --pi-of-line: #a6e8db; color: var(--wp--preset--color--ink); }
.pi-order [hidden] { display: none !important; }
.pi-of-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pi-of-form { background: #fff; border: 3px solid #b6e9dc; border-radius: 36px; padding: 36px clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pi-of-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pi-of-form legend { font-family: var(--wp--preset--font-family--plus-jakarta-sans, inherit); font-weight: 800; font-size: 20px; color: var(--wp--preset--color--navy); padding: 0; margin-bottom: 14px; }
.pi-of-form hr { border: 0; border-top: 2px solid var(--wp--preset--color--mint); margin: 0; }
.pi-of-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.pi-of-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pi-of-cols > [data-need] { display: contents; }
.pi-of-cols > [data-need][hidden] { display: none; }
.pi-of-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pi-of-field > label, .pi-of-label { font-weight: 700; font-size: 15px; color: var(--wp--preset--color--navy); }
.pi-of-opt { font-weight: 500; color: var(--wp--preset--color--muted); font-size: 13px; }
.pi-of-help { font-size: 13px; color: var(--wp--preset--color--muted); }
.pi-of-form input[type="text"], .pi-of-form input[type="email"], .pi-of-form input[type="tel"], .pi-of-form select, .pi-of-form textarea {
  width: 100%; box-sizing: border-box; min-height: 50px; border: 2px solid var(--pi-of-line); border-radius: 16px; padding: 12px 16px;
  font: inherit; font-size: 16px; color: var(--wp--preset--color--ink); background: #fff;
}
.pi-of-form textarea { resize: vertical; min-height: 96px; }
.pi-of-form input:focus, .pi-of-form select:focus, .pi-of-form textarea:focus { outline: 3px solid var(--wp--preset--color--orange); outline-offset: 2px; border-color: var(--wp--preset--color--green); }
.pi-of-upper { text-transform: uppercase; }
.pi-of-area > span { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; }
.pi-of-area > span[hidden] { display: none; }
.pi-of-area svg, .pi-of-known svg, .pi-of-msg svg { flex: none; }
.pi-of-in { color: #1f7a63; }
.pi-of-out { color: #9a4a33; }
.pi-of-known { margin-top: 16px; background: var(--wp--preset--color--mint); border: 2px solid #b6e9dc; border-radius: 18px; padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; }
.pi-of-known[hidden] { display: none; }
.pi-of-known-text { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--wp--preset--color--navy); }
.pi-of-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--navy); cursor: pointer; min-height: 44px; }
.pi-of-check input { accent-color: var(--wp--preset--color--green); width: 18px; height: 18px; }
.pi-of-step { display: flex; align-items: center; gap: 14px; }
.pi-of-step button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--pi-of-line); background: #fff; color: var(--wp--preset--color--navy); font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1; padding: 0; }
.pi-of-step button:hover { border-color: var(--wp--preset--color--green); }
.pi-of-step output { font-family: var(--wp--preset--font-family--plus-jakarta-sans, inherit); font-weight: 800; font-size: 26px; color: var(--wp--preset--color--navy); min-width: 28px; text-align: center; }
.pi-of-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pi-of-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.pi-of-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--wp--preset--color--green); color: var(--wp--preset--color--navy); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.pi-of-btn:hover { background: var(--wp--preset--color--light-green); }
.pi-of-btn[disabled] { opacity: .7; cursor: progress; }
.pi-of-note { font-size: 14px; color: var(--wp--preset--color--muted); flex: 1 1 240px; margin: 0; }
.pi-of-error { background: var(--wp--preset--color--peach); color: var(--wp--preset--color--navy); border-radius: 16px; padding: 12px 16px; font-weight: 600; }
.pi-of-error[hidden] { display: none; }
.pi-of-skip { min-height: 44px; border: 0; background: none; color: var(--wp--preset--color--navy); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }

.pi-of-summary { background: var(--wp--preset--color--navy); color: #fff; border-radius: 36px; padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.pi-of-summary h2 { margin: 0; font-size: 24px; color: #fff; }
.pi-of-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.pi-of-line[hidden] { display: none; }
.pi-of-line-free { border-top: 1px solid #34349a; padding-top: 14px; }
.pi-of-line-free strong { color: var(--wp--preset--color--light-green); }
.pi-of-pay { border-top: 1px solid #34349a; padding-top: 14px; font-size: 14px; line-height: 1.55; color: var(--wp--preset--color--on-navy); margin: 0; }
.pi-of-pay [hidden] { display: none; }
.pi-of-tip { background: var(--wp--preset--color--navy-2); border-radius: 18px; padding: 14px 16px; font-size: 14px; line-height: 1.5; margin: 0; }
.pi-of-summary mark { background: var(--wp--preset--color--peach); }

.pi-of-done { display: flex; flex-direction: column; gap: 22px; outline: none; scroll-margin-top: 120px; }
.pi-of-done[hidden] { display: none; }
.pi-of-done-head { display: flex; gap: 18px; align-items: flex-start; }
.pi-of-done-head svg { flex: none; }
.pi-of-done h2 { margin: 0; font-size: 36px; color: var(--wp--preset--color--navy); }
.pi-of-done-head p, .pi-of-wait p { margin: 10px 0 0; font-size: 18px; line-height: 1.6; max-width: 680px; }
.pi-of-wait { background: #fff; border: 3px solid var(--wp--preset--color--orange); border-radius: 36px; padding: 44px clamp(20px, 3vw, 48px); gap: 0; }
.pi-of-msg { background: var(--wp--preset--color--mint); border: 2px solid #b6e9dc; border-radius: 24px; padding: 20px 22px; display: flex; gap: 12px; align-items: center; font-size: 16px; line-height: 1.55; }
.pi-of-msg[hidden], .pi-of-step2[hidden] { display: none; }
.pi-of-msg strong { color: var(--wp--preset--color--navy); }
.pi-of-step2 h3 { margin: 12px 0 0; font-size: 26px; color: var(--wp--preset--color--navy); }
.pi-of-step2 p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; max-width: 640px; }
.pi-of-badge { display: inline-block; background: var(--wp--preset--color--mint); color: var(--wp--preset--color--navy); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 13px; }

@media (max-width: 960px) {
  .pi-of-grid { grid-template-columns: 1fr; }
  .pi-of-summary { position: static; }
}
@media (max-width: 640px) {
  .pi-of-cols, .pi-of-cols-3 { grid-template-columns: 1fr; }
  .pi-of-form { border-radius: 28px; }
  .pi-of-done h2 { font-size: 28px; }
}

/* ---------- v0.5.0 Assay result pages ---------- */
.pi-asec .pi-kicker, .pi-related .pi-kicker { margin-top: 0 !important; margin-bottom: 0 !important; font-weight: 800; letter-spacing: .08em; color: #1f7a63; }
.pi-asec > .pi-kicker { margin-left: auto !important; margin-right: auto !important; }
.pi-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--wp--preset--color--green); color: var(--wp--preset--color--navy); display: inline-flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 15px; }

.pi-assay-hero { padding-top: 28px !important; }
.pi-crumb { margin-top: 0; margin-bottom: 36px; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--muted); }
.pi-crumb a { color: var(--wp--preset--color--navy); }
.pi-tags { margin: 0 !important; }
.pi-tag { margin: 0; background: #fff; border: 2px solid #b6e9dc; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; color: var(--wp--preset--color--navy); }
.pi-assay-title { margin: 18px 0 0 !important; line-height: 1.02; letter-spacing: -0.035em; color: var(--wp--preset--color--navy); }
.pi-result { margin-top: 24px !important; background: #fff; border: 3px solid var(--wp--preset--color--green); border-radius: 24px; padding: 18px 22px 18px 58px; position: relative; max-width: 640px; }
.pi-result::before { content: ""; position: absolute; left: 20px; top: 20px; width: 24px; height: 24px; border-radius: 50%; background: var(--wp--preset--color--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%231d1d77' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.pi-result-label { margin: 0 !important; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1f7a63; }
.pi-result-text { margin: 4px 0 0 !important; font-size: 20px; line-height: 1.45; font-weight: 700; color: var(--wp--preset--color--navy); }
.pi-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 0; background: #fff; border-radius: 24px; padding: 10px 6px; }
.pi-facts > .pi-fact { margin: 0 !important; padding: 14px 18px; border-left: 2px solid #b6e9dc; }
.pi-fact-label { margin: 0 !important; font-size: 13px; font-weight: 700; color: var(--wp--preset--color--muted); }
.pi-fact-value { margin: 4px 0 0 !important; font-size: 16px; font-weight: 600; color: var(--wp--preset--color--navy); line-height: 1.4; }
.pi-assay-hero .wp-block-buttons { margin-top: 18px !important; }
.pi-paper-ref { margin-top: 10px !important; }

.pi-jumpbar { position: sticky; top: 0; z-index: 6; background: rgba(255, 255, 255, .96); border-bottom: 1px solid #eef3f2; padding: 12px var(--wp--style--root--padding-right, 20px) !important; margin: 0 !important; }
.admin-bar .pi-jumpbar { top: 32px; }
.pi-jump-label { margin: 0; font-size: 14px; font-weight: 700; color: var(--wp--preset--color--muted); }
.pi-jump { margin: 0; }
.pi-jump a { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 2px solid #b6e9dc; border-radius: 999px; padding: 6px 18px 6px 6px; text-decoration: none; }
.pi-jump a:hover { border-color: var(--wp--preset--color--green); }
.pi-jump a > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.pi-jump strong { color: var(--wp--preset--color--navy); font-size: 15px; }
.pi-jump a > span:last-child > span { font-size: 13px; color: var(--wp--preset--color--muted); }

.pi-asec { scroll-margin-top: 90px; }
.pi-asec > * + * { margin-block-start: 32px; }
.pi-asec + .pi-asec { padding-top: 24px !important; }
.pi-tight { padding-top: 0 !important; }
.pi-asec-title { margin-top: 10px !important; }
.pi-asec h3 { margin: 0; font-size: 20px; color: var(--wp--preset--color--navy); }
.pi-asec h3 + p { margin-top: 10px; }
.pi-links { font-size: 15px; font-weight: 700; }
.pi-figure img { border-radius: 24px; width: 100%; height: auto; }
.pi-figure figcaption { font-size: 14px; line-height: 1.55; color: var(--wp--preset--color--muted); text-align: left; margin-top: 10px; }
.pi-results { border-radius: var(--wp--custom--radius--card); padding: 36px clamp(20px, 3vw, 44px) !important; }
.pi-results > * + * { margin-top: 22px !important; }
.pi-stat-tile { background: #fff; border: 2px solid #b6e9dc; border-radius: 24px; padding: 18px 20px; height: 100%; box-sizing: border-box; }
.pi-stat-tile p { margin: 0; font-size: 14px; line-height: 1.5; }
.pi-stat-tile .pi-stat-big, .pi-stat-big { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--wp--preset--color--navy); margin: 0 0 6px !important; letter-spacing: -0.01em; }
.pi-results .pi-check, .pi-measure .pi-check { margin-top: 0 !important; }
.pi-results .pi-check > p { align-items: flex-start; font-size: 16px; line-height: 1.55; }
.pi-conclusion { border-left: 6px solid var(--wp--preset--color--green); padding: 6px 0 6px 22px; }
.pi-conclusion p { max-width: 860px; margin-top: 8px !important; }

.pi-scope { border-radius: var(--wp--custom--radius--card); padding: 36px clamp(20px, 3vw, 44px) !important; }
.pi-mini-card { background: #fff; border: 2px solid #b6e9dc; border-radius: 22px; padding: 18px; height: 100%; box-sizing: border-box; position: relative; }
.pi-mini-card p { margin: 0; font-size: 14px; line-height: 1.5; }
.pi-mini-title a { color: var(--wp--preset--color--navy); text-decoration: none; font-size: 16px; }
.pi-mini-title a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.pi-mini-card:hover { border-color: var(--wp--preset--color--green); }
.pi-mini-title { margin-bottom: 6px !important; }

.pi-msteps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pi-mstep { margin: 0 !important; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 2px solid #b6e9dc; border-radius: 22px; padding: 16px 18px; font-size: 16px; line-height: 1.5; }
.pi-mstep strong { color: var(--wp--preset--color--navy); }

.pi-measure { border: 3px solid #b6e9dc; border-radius: var(--wp--custom--radius--card); padding: 32px; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; }
.pi-measure > * { margin: 0 !important; }
.pi-measure-head h3 { font-size: 26px !important; }
.pi-measure-what { margin: 0; font-size: 14px; color: var(--wp--preset--color--muted); }
.pi-measure-value { border-radius: 24px; padding: 22px 24px !important; }
.pi-measure-value p { margin: 0; }
.pi-measure-big { font-size: 44px !important; line-height: 1 !important; margin: 6px 0 !important; }
.pi-measure .pi-check > p { align-items: flex-start; font-size: 17px; line-height: 1.55; }

.pi-related-head { align-items: flex-end !important; }
.pi-related-head h2 { margin: 0; }
.pi-related-card { background: #fff; border: 3px solid #b6e9dc; border-radius: 28px; padding: 24px 24px 72px; height: 100%; box-sizing: border-box; position: relative; }
.pi-related-card:hover { border-color: var(--wp--preset--color--green); }
.pi-related-card h3 { margin: 10px 0 0; font-size: 20px; }
.pi-related-card h3 a { color: var(--wp--preset--color--navy); text-decoration: none; }
.pi-related-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.pi-related-card p:last-child { margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
.pi-related-card::after { content: ""; position: absolute; left: 24px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--wp--preset--color--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%231d1d77' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.pi-related { padding-top: 24px !important; }
.pi-related > .wp-block-columns + .wp-block-columns { margin-top: 40px !important; }
.pi-cta-card { border-radius: var(--wp--custom--radius--card); padding: 36px !important; height: 100%; box-sizing: border-box; }
.pi-cta-card h3 { margin: 0; font-size: 26px; }
.pi-cta-card p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; }
.pi-cta-card .wp-block-buttons { margin-top: 18px !important; }

/* Before / after */
.pi-ba-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 32px; overflow: hidden; border: 3px solid #b6e9dc; background: #e7eef7; }
.pi-ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pi-ba-empty.pi-ba-after { background: #e7eef7; }
.pi-ba-empty.pi-ba-before { background: #d9d2c3; }
.pi-ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.pi-ba-frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.pi-ba-handle { position: absolute; top: 50%; left: var(--pos, 50%); transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 3px solid var(--wp--preset--color--green); color: var(--wp--preset--color--navy); display: flex; align-items: center; justify-content: center; z-index: 2; pointer-events: none; }
.pi-ba-tag { position: absolute; bottom: 18px; z-index: 2; background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 13px; color: var(--wp--preset--color--navy); pointer-events: none; }
.pi-ba-tag-before { left: 18px; }
.pi-ba-tag-after { right: 18px; }
.pi-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.pi-ba-range:focus-visible + * , .pi-ba:focus-within .pi-ba-handle { outline: 3px solid var(--wp--preset--color--orange); outline-offset: 2px; }

@media (max-width: 781px) {
  .pi-assay-title { font-size: clamp(36px, 10vw, 56px) !important; }
  .pi-facts { grid-template-columns: 1fr 1fr; }
  .pi-msteps { grid-template-columns: 1fr; }
  .pi-jumpbar { position: static; }
  .pi-jump-label { width: 100%; }
}

/* v0.5.4 order form: selects like the other fields, address blocks */
.pi-of-form select {
  -webkit-appearance: none; appearance: none; height: 54px; min-height: 54px; line-height: 1.2; padding: 12px 48px 12px 16px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231d1d77' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 20px no-repeat;
}
.pi-of-form input[type="text"], .pi-of-form input[type="email"], .pi-of-form input[type="tel"] { height: 54px; }
.pi-of-form select::-ms-expand { display: none; }
.pi-of-addr { border: 0; margin: 0; padding: 0; min-width: 0; }
.pi-of-addr[hidden] { display: none; }
.pi-of-step2 .pi-of-addr legend { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 18px; color: var(--wp--preset--color--navy); margin-bottom: 12px; padding: 0; }
.pi-of-cols-addr { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); }
.pi-of-cols-addr > .pi-of-wide { grid-column: 1 / -1; }
.pi-of-same { margin-top: -6px; }
@media (max-width: 640px) { .pi-of-cols-addr { grid-template-columns: 1fr; } }
/* v0.5.5: steppers as tall as the fields, so the start month sits on the same line and help texts line up */
.pi-of-step { height: 54px; }

.pi-of-cols > .pi-of-wide { grid-column: 1 / -1; }
.pi-of-bot:empty { display: none; }
.pi-of-bot { margin: -6px 0 0; }
.pi-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Turnstile (contact form): hidden unless Cloudflare asks for a click; no empty space meanwhile */
.wpcf7-turnstile { margin: 0; line-height: 0; }

/* v0.7.0 Hero photo: three layers. The image is wider than its box and runs off to the right (arms fade out). */
.pi-art-photo { aspect-ratio: 520 / 560; }
.pi-art-photo img { position: absolute; left: 0; top: 0; width: 168.93%; max-width: none; height: auto; display: block; }
.pi-art-photo .pi-hero-front { z-index: 6; pointer-events: none; }
.pi-art-photo img.pi-hero-tube { left: 8.19%; top: 28.07%; width: 55.46%; }  /* same tube image and spot as the travelling tube at rest */
.pi-journey-on .pi-art-photo .pi-hero-tube { visibility: hidden; }
@media (max-width: 781px) { .pi-journey-on .pi-art-photo .pi-hero-tube { visibility: visible; } }
.pi-hero { overflow-x: clip; }

/* v0.9.0 Bag photo in layers: inside of the open top (behind the travelling tube), bag (in front of it), flap.
   The flap image is straightened; rotate() puts it back on the bag's slightly tilted top edge, and the script
   adds rotateX() around that edge to open and fold it. Default (no script, phones): closed. */
.pi-art-photo-bag { aspect-ratio: 1100 / 709; }
.pi-art-photo-bag > img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; }
.pi-art-photo-bag .pi-bag-inside { z-index: 1; }
.pi-art-photo-bag .pi-bag-body { z-index: 6; pointer-events: none; }
.pi-art-photo-bag .pi-bag-flap { z-index: 7; pointer-events: none; transform-origin: 50% 7.748%; transform: rotate(2.988deg); }
.pi-art-photo-bag .pi-bag-flap-in { opacity: 0; }
.pi-art-photo-bag .pi-anchor-pkg { width: 2px; }

/* v0.9.14 About us and Privacy policy pages */
.pi-page-hero { padding-top: 56px !important; padding-bottom: 64px !important; }
.pi-page-hero .pi-kicker { margin-top: 0 !important; margin-bottom: 0 !important; font-weight: 800; letter-spacing: .08em; color: #1f7a63; }
.pi-page-title { margin-top: 14px !important; margin-bottom: 0 !important; line-height: 1.02; letter-spacing: -0.035em; color: var(--wp--preset--color--navy); }
.pi-page-hero > .pi-page-lead { max-width: 1240px !important; margin-top: 22px !important; }
.pi-page-hero > .pi-page-lead { padding-right: calc(100% - 760px); box-sizing: border-box; }
@media (max-width: 900px) { .pi-page-hero > .pi-page-lead { padding-right: 0; } }
.pi-page-hero-short { padding-bottom: 44px !important; }
#story .pi-kicker, #values .pi-kicker, #team .pi-kicker, #support .pi-kicker, #media .pi-kicker { margin-top: 0 !important; margin-bottom: 4px !important; font-weight: 800; letter-spacing: .08em; color: #1f7a63; }
.pi-about-card { padding: 26px 26px 28px; height: 100%; box-sizing: border-box; border: 2px solid #b6e9dc; }
.pi-about-card h3 { margin-top: 0 !important; }
#values .wp-block-columns + .pi-stat-row { margin-top: 20px !important; }
.pi-team-card { padding: 14px 14px 22px; height: 100%; box-sizing: border-box; background: #fff; border: 2px solid #b6e9dc; }
.pi-team-card .pi-team-photo { margin: 0 0 14px !important; }
.pi-team-card .pi-team-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; display: block; background: #eefaf6; }
.pi-team-card h3 { margin: 0 6px !important; font-size: 20px; }
.pi-team-card p { margin: 4px 6px 0 !important; }
.pi-team-role { color: #1f7a63; font-weight: 700; font-size: 14px; }
.pi-supporters { margin: 0 !important; }
#support h2 { font-size: clamp(28px, 3vw, 38px); }
.pi-supporter { margin: 0 !important; padding: 10px 18px; border-radius: 999px; background: #eefaf6; color: var(--wp--preset--color--navy); font-weight: 700; font-size: 15px; }
.pi-legal h2.pi-legal-h { font-size: 24px; margin-top: 40px !important; margin-bottom: 8px !important; letter-spacing: -0.01em; }
.pi-legal p, .pi-legal li { font-size: 16px; line-height: 1.65; }
.pi-legal ul { padding-left: 1.2em; }
.pi-legal li + li { margin-top: 4px; }
.pi-table { margin: 18px 0 22px !important; overflow-x: auto; }
.pi-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.pi-table th, .pi-table td { border: 0; border-bottom: 1px solid #d9efe8; padding: 10px 12px 10px 0; text-align: left; vertical-align: top; line-height: 1.5; }
.pi-table th { color: var(--wp--preset--color--navy); font-weight: 800; border-bottom: 2px solid #b6e9dc; }
@media (max-width: 781px) {
  .pi-table table { min-width: 560px; }
}
.pi-page-hero > .pi-kicker, #values > .pi-kicker, #team > .pi-kicker, #media > .pi-kicker { margin-left: auto !important; margin-right: auto !important; }

/* ---------- Logo wall: Gallery block style "Logo wall" ----------
   Every logo sits in a box of the same height, centred, never cropped.
   Number of columns = the gallery's "Columns" setting.
   Per-logo optical tweak: add class pi-logo-sm or pi-logo-lg on one image
   (Image block > Advanced > Additional CSS class). */
.wp-block-gallery.is-style-pi-logos {
	--pi-logo-h: 60px;
	--pi-logo-cols: 4;
	display: grid !important;
	grid-template-columns: repeat(var(--pi-logo-cols), minmax(0, 1fr));
	gap: 44px 48px !important;
	align-items: center;
	justify-items: center;
}
.wp-block-gallery.is-style-pi-logos.columns-2 { --pi-logo-cols: 2; }
.wp-block-gallery.is-style-pi-logos.columns-3 { --pi-logo-cols: 3; }
.wp-block-gallery.is-style-pi-logos.columns-5 { --pi-logo-cols: 5; }
.wp-block-gallery.is-style-pi-logos.columns-6 { --pi-logo-cols: 6; }
.wp-block-gallery.is-style-pi-logos.columns-7 { --pi-logo-cols: 7; }
.wp-block-gallery.is-style-pi-logos.columns-8 { --pi-logo-cols: 8; }
.wp-block-gallery.is-style-pi-logos figure.wp-block-image:not(#individual-image) {
	width: 100% !important;
	height: var(--pi-logo-h) !important;
	margin: 0 !important;
	flex: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}
.wp-block-gallery.is-style-pi-logos figure.wp-block-image:not(#individual-image)::before { display: none !important; }
.wp-block-gallery.is-style-pi-logos figure.wp-block-image > a,
.wp-block-gallery.is-style-pi-logos figure.wp-block-image > div {
	display: flex !important;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}
.wp-block-gallery.is-style-pi-logos figure.wp-block-image:not(#individual-image) img {
	width: 100% !important;
	height: calc(100% * var(--pi-logo-f, 1)) !important;
	max-width: min(100%, var(--pi-logo-w, 170px)) !important;
	object-fit: contain !important;
	flex: none !important;
	transition: opacity .2s ease, transform .2s ease;
}
.wp-block-gallery.is-style-pi-logos figure.pi-logo-sm img { transform: scale(.78); }
.wp-block-gallery.is-style-pi-logos figure.pi-logo-lg img { transform: scale(1.18); }
.wp-block-gallery.is-style-pi-logos a:hover img { opacity: .7; }
.wp-block-gallery.is-style-pi-logos figcaption { display: none !important; }
@media (max-width: 781px) {
	.wp-block-gallery.is-style-pi-logos { --pi-logo-cols: 3 !important; --pi-logo-h: 48px; --pi-logo-w: 130px; gap: 32px 28px !important; }
}
@media (max-width: 480px) {
	.wp-block-gallery.is-style-pi-logos { --pi-logo-cols: 2 !important; }
}

/* Same logo wall inside the navy footer: smaller, white, one colour. */
.pi-footer .wp-block-gallery.is-style-pi-logos {
	--pi-logo-h: 30px;
	--pi-logo-w: 92px;
	gap: 22px 26px !important;
	justify-items: start;
	margin-top: 10px;
}
.pi-footer .wp-block-gallery.is-style-pi-logos figure.wp-block-image:not(#individual-image) { justify-content: flex-start; }
.pi-footer .wp-block-gallery.is-style-pi-logos figure.wp-block-image > a { justify-content: flex-start; }
.pi-footer .wp-block-gallery.is-style-pi-logos figure.wp-block-image:not(#individual-image) img {
	filter: brightness(0) invert(1);
	opacity: .85;
	object-position: left center;
}
.pi-footer .wp-block-gallery.is-style-pi-logos a:hover img { opacity: 1; }
/* Logos with light details on dark, or two overlapping colours (Esplanade, Propolys):
   add class pi-logo-invert so the footer flips their tones instead of making them flat white. */
.pi-footer .wp-block-gallery.is-style-pi-logos figure.pi-logo-invert:not(#individual-image) img {
	filter: grayscale(1) invert(1) brightness(1.1) contrast(1.15);
	opacity: .9;
}
@media (max-width: 781px) {
	.pi-footer .wp-block-gallery.is-style-pi-logos { --pi-logo-h: 28px; --pi-logo-w: 80px; --pi-logo-cols: 4 !important; }
}

/* ---------- Step cards: Image style "Fill picture area" ----------
   The picture covers the whole top half of the card (cropped to fit, never stretched).
   Framing: add class pi-fill-top or pi-fill-bottom (Image > Advanced) to keep that edge in view;
   pi-fill-left / pi-fill-right likewise. Default is centred. */
.pi-step-pic > .wp-block-image.is-style-pi-fill {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: 1;
}
.pi-step-pic > .wp-block-image.is-style-pi-fill img,
.pi-step-pic > .wp-block-image.is-style-pi-fill .components-resizable-box__container {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
}
.pi-step-pic > .wp-block-image.is-style-pi-fill img { object-fit: cover; object-position: center; display: block; }
.pi-step-pic > .wp-block-image.is-style-pi-fill.pi-fill-top img { object-position: center top; }
.pi-step-pic > .wp-block-image.is-style-pi-fill.pi-fill-bottom img { object-position: center bottom; }
.pi-step-pic > .wp-block-image.is-style-pi-fill.pi-fill-left img { object-position: left center; }
.pi-step-pic > .wp-block-image.is-style-pi-fill.pi-fill-right img { object-position: right center; }
.pi-step-pic > .wp-block-image.is-style-pi-fill figcaption { display: none; }
/* Keep the step number readable on top of a photo. */
.pi-step-pic:has(> .is-style-pi-fill) .pi-step-num { z-index: 7; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }

/* French: longer words. Never break a word in the middle; the hero title is a bit smaller so "consommables" fits on one line. */
html:lang(fr) h1, html:lang(fr) h2 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
html:lang(fr) .pi-hero h1 { font-size: clamp(40px, 6.2vw, 84px); }
