/* Bridge between standard-block markup and the prototype's CSS
   (assets/css/site/). Blocks output <p>, <ul>/<li>, <strong>/<em> and wrapper
   divs where the prototype used <div>, <span> and <b>: the rules below map
   those onto the prototype look. Loaded on every page and in the editor,
   because a pattern can be inserted anywhere. */

/* ---------- Shared ---------- */

/* .eyebrow is a margin-less <div> in the prototype. As a <p> it would keep
   its margins, and since it is inline-flex they don't collapse with the
   heading's. The heading spacing comes from the prototype's inline
   style="margin-top:…" (h1 already has its own). */
.wp-block-group > p.eyebrow { margin: 0; }
.wp-block-group > p.eyebrow + h2 { margin-top: 16px; }
.split p.eyebrow + h2 { margin-top: 18px; }

/* ".section-head p" (body copy, !important size) also matches the eyebrow
   <p> inside the head; restore the eyebrow size and line height. */
.section-head p.eyebrow { font-size: var(--fs-eyebrow) !important; line-height: inherit; }

/* Lists used as visual groups (pills, stacked words): no bullets. */
.vmv ul.wp-block-list,
.vmv-traits ul.wp-block-list { list-style: none; margin: 0; padding: 0; }

/* ---------- Company: Vision / Mission / Values ---------- */

.vmv p.vmv-label { margin: 0; }

.vmv-steps li { animation: stepLit 4.5s ease-in-out infinite; }
.vmv-steps li:nth-child(2) { animation-delay: 1.5s; }
.vmv-steps li:nth-child(3) { animation-delay: 3s; }

.vmv-words li {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  animation: wordLit 10s ease-in-out infinite;
}
.vmv-words li:nth-child(2) { animation-delay: 2s; }
.vmv-words li:nth-child(3) { animation-delay: 4s; }
.vmv-words li:nth-child(4) { animation-delay: 6s; }
.vmv-words li:nth-child(5) { animation-delay: 8s; }

.vmv-traits p.vmv-traits-label { margin: 0 6px 0 0; }
.vmv-trait-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* Each trait is "<strong>Label</strong> <em>tooltip</em>": same look as
   the prototype's .trait pill with an <em> tooltip. */
.vmv-trait-list li {
  position: relative;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgb(from var(--color-accent) r g b / .6);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  cursor: default;
  outline: none;
  transition: background .2s, color .2s;
}
.vmv-trait-list li strong { font-weight: inherit; color: inherit; }
.vmv-trait-list li:hover,
.vmv-trait-list li:focus-visible { background: var(--color-accent); color: var(--color-text-on-light); }
.vmv-trait-list li em {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: 230px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--slate-50);
  color: var(--color-text-on-light);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s;
}
.vmv-trait-list li:hover em,
.vmv-trait-list li:focus-visible em { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .vmv-steps li,
  .vmv-words li { animation: none !important; }
}

/* ---------- Company: team cards ---------- */

.tm2 p.tm-role { margin: 8px 0 22px; }

/* "<strong>20/20</strong>product vision": the score is the prototype's <b>,
   the rest of the paragraph its <span>. */
.tm2 p.tm2-result {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-2);
}
.tm2 .tm2-result strong {
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--color-brand), var(--teal) 55%, var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm2 p.tm-tag { margin: auto 0 0; }

/* ---------- Checklists (.module-list as a List block) ----------
   Items are plain text, so the check icon is drawn with pseudo-elements
   instead of the prototype's <i class="chk"><svg>; same box, offset and
   shadow. Circle and tick are separate layers: a plain colour fill keeps the
   circle's edge antialiasing identical to the prototype's. */

.wp-block-list.module-list li {
  display: block;
  position: relative;
  padding-left: 34px;
}
.wp-block-list.module-list li::before,
.wp-block-list.module-list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
}
.wp-block-list.module-list li::before {
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgb(from var(--color-accent) r g b / .35);
}
.wp-block-list.module-list li::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23071426' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.theme-light .wp-block-list.module-list li::before {
  box-shadow: 0 0 0 1px rgb(from var(--navy) r g b / .06), 0 4px 10px rgb(from var(--color-accent) r g b / .5);
}

/* ---------- Solutions: hero nav ---------- */

.module-nav.wp-block-list { list-style: none; padding: 0; }
.module-nav li { display: grid; }

/* Editor and no-JS view: "<strong>Team</strong><br>description" stacked.
   On the front end wp-init.js rebuilds the link as the prototype's
   number + <b> + <small>, and these rules stop matching. In the editor the
   link sits in the list item's rich-text div, hence "li a". */
.module-nav li a:has(> strong) { display: block; }
.module-nav a > strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  color: var(--color-text-on-dark);
  letter-spacing: -.02em;
}
.module-nav a > strong + br { display: none; }

/* ---------- Solutions: panels ---------- */

.sol-copy p.sol-who { margin: 0 0 18px; }

/* ".sol-box p" (card copy) also matches these paragraphs: restore the
   prototype's span/b values. */
.sol-box p.sol-label { margin: 0 0 12px; font-size: 12px; line-height: inherit; color: var(--slate-400); }
.theme-light .sol-box p.sol-label { color: var(--ink-muted); }

/* Module pills: core buttons excluded from the .btn classes (inc/blocks.php),
   drawn as the prototype's .sol-mod. */
.sol-box .sol-mods { gap: 8px; }
.sol-box .sol-mods .wp-block-button__link {
  display: block;
  height: auto;
  padding: 7px 12px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: inherit;
  text-align: inherit;
  word-break: normal;
  transition: background .2s, color .2s, box-shadow .2s;
}
.sol-box .sol-mods .wp-block-button__link:hover { background: var(--color-accent); color: var(--color-text-on-light); box-shadow: 0 0 16px rgb(from var(--color-accent) r g b / .45); }
.theme-light .sol-box .sol-mods .wp-block-button__link { background: var(--color-accent); color: var(--color-text-on-light); }
.theme-light .sol-box .sol-mods .wp-block-button__link:hover { background: var(--navy); color: var(--color-accent); border-color: var(--navy); box-shadow: none; }

/* Audit / Fix / Improve: a bold item is a highlighted step (.sol-step.is-on). */
.sol-steps.wp-block-list { list-style: none; margin-top: 0; padding: 0; }
.sol-steps li {
  flex: 1;
  text-align: center;
  padding: 9px 6px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748a;
  border: 1px dashed rgba(255,255,255,.14);
}
.sol-steps li strong { font-weight: inherit; }
.sol-steps li:has(strong) { color: var(--color-text-on-light); background: var(--color-accent); border: 1px solid var(--color-accent); box-shadow: 0 0 16px rgb(from var(--color-accent) r g b / .35); }
.theme-light .sol-steps li { color: #9aa6b6; border-color: rgb(from var(--navy) r g b / .15); }
.theme-light .sol-steps li:has(strong) { color: var(--color-text-on-light); background: var(--color-accent); border: 1px solid var(--color-accent); }

.sol-stat p.sol-stat-value {
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--slate-50), var(--blue-light) 48%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.theme-light .sol-stat p.sol-stat-value {
  background: linear-gradient(100deg, var(--color-brand), var(--teal) 55%, var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
}
.sol-stat p.sol-stat-label { font-size: 14px; line-height: inherit; text-align: right; }

/* ---------- Solutions: explore modules ---------- */

.explore-mods.wp-block-list { list-style: none; margin-top: 0; padding: 0; }
.explore-mods li {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(255,255,255,.75);
  border: 1px solid rgb(from var(--navy) r g b / .1);
}

/* ---------- How it works: phases ---------- */

/* The prototype's <dl> rows as a List block: "Label <strong>value</strong>",
   with the label as <dt> and the bold value as <dd>. */
.phase-stats.wp-block-list { list-style: none; padding: 0; }
.phase-stats li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgb(from var(--navy) r g b / .07);
  font-size: 13px;
  color: var(--ink-muted);
}
.phase-stats li:last-child { border-bottom: 0; padding-bottom: 0; }
.phase-stats li strong { font-size: 14px; font-weight: 800; color: var(--ink); text-align: right; }

/* ---------- How it works: modules ---------- */

/* Step labels ("Audit", "Analyze"): wp-init.js turns them into the lime
   badge (How it works, Platform overview, Home). */
p.module-tag,
p.step-label,
.step-icon-lime b { text-transform: uppercase; }
.module-tag p.module-kicker { margin: 0; }
/* Editor and no-JS view: the pill hugs its text, as it does in the badge row. */
p.module-kicker { width: fit-content; }

/* ".mod-card p" (card copy) also matches the area tag: restore the
   prototype's span values. Before wp-init.js moves it into .mod-top (editor,
   no JS) the tag would stretch across the card. */
.mod-card p.mod-area { font-size: 12px; line-height: inherit; color: var(--color-accent); }
.mod-card > p.mod-area { align-self: flex-end; margin-bottom: 16px; }

/* ---------- How it works: For IT teams ---------- */

.it-stat p { margin: 0; }
.it-stat p.it-stat-value {
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: bolder;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--slate-50), var(--blue-light) 48%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.theme-light .it-stat p.it-stat-value {
  background: linear-gradient(100deg, var(--color-brand), var(--teal) 55%, var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
}
.it-stat p.it-stat-label { font-size: 14px; color: var(--color-text-on-dark-muted); text-align: right; }
.theme-light .it-stat p.it-stat-label { color: var(--ink-muted); }

/* ---------- Clients: hero stats ---------- */

/* Value and label are the prototype's <b> and <span>. */
.hero-proof p { margin: 0; }
.hero-proof p.hero-proof-value {
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  font-weight: bolder;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(100deg, var(--slate-50), var(--blue-light) 48%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-proof p.hero-proof-label { margin-top: 6px; font-size: 14px; color: var(--slate-200); }

/* ---------- Clients: more use cases ---------- */

.uc-tile p { margin: 0; }
.uc-tile p.uc-tile-title {
  margin-bottom: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: bolder;
  letter-spacing: -.02em;
  color: var(--color-text-on-dark);
}
.uc-tile p.uc-tile-text { font-size: 14px; line-height: 1.5; color: var(--color-text-on-dark-muted); }

/* ---------- Clients: logo wall ---------- */

.logo-wall p.logo-tile { margin: 0; }

/* ---------- Home ----------
   The prototype's <span>, <strong>, <small> and <div> rows become <p> and
   list items: the rules below repeat the prototype's values for them, and
   undo the generic card rules (".area-copy p", ".result-card-home p") that
   now also match. wp-init.js adds the decorative pieces. */

.hero-home p.hero-subline { margin-bottom: 0; }

/* Fix for a prototype bug: up to 850px the rotating messages may wrap, but
   the stage keeps a one-line height, so the two-line "Complexity?
   Simplified." overlapped the subline. The final message now stays in the
   flow (still invisible until its turn), so the stage reserves its height
   from the start and nothing jumps when it appears. */
@media (max-width: 850px) {
  .hero-message-stage { height: auto; min-height: 1.12em; }
  .hero-message.hero-complexity { position: relative; }
}

/* Areas of impact */
.area-copy p.area-kicker { margin: 0; max-width: none; font-size: var(--fs-label) !important; line-height: inherit; }
.area-benefits.wp-block-list { margin-bottom: 0; padding: 0; list-style: none; }
.area-benefits li {
  display: block;
  padding: 8px 11px;
  border: 1px solid rgb(from var(--color-accent) r g b / .3);
  border-radius: 999px;
  font-size: var(--fs-label) !important;
  letter-spacing: .02em;
  color: var(--color-accent);
}
.theme-light .area-benefits li { background: rgba(255,255,255,.65); color: var(--ink-2); border: 1px solid rgb(from var(--color-brand) r g b / .16); font-weight: 700; }
.area-list.wp-block-list { margin: 0; padding: 0; list-style: none; }
.area-list > li { display: flex; gap: 16px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.theme-light .area-list > li { border-color: rgb(from var(--navy) r g b / .09); }

/* Results: the label and number paragraphs keep the card's own type, not
   the card copy's. */
.result-card-home p.result-top-home { font-size: inherit !important; line-height: inherit; color: inherit; text-transform: uppercase; }
.result-card-home p.result-number-home { font-size: clamp(48px,5vw,70px) !important; line-height: .92; }

/* Three steps */
.journey p.journey-label { margin: 0; }

/* How it works schema */
.hw2-node p { margin: 0; }
.hw2-node p.hw-title {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: bolder;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--color-text-on-dark);
}
.theme-light .hw2-node p.hw-title { color: var(--color-text-on-light); }
.theme-light .hw2-kleecks p.hw-title { color: var(--color-text-on-dark); }
.hw2-node p.hw-note { font-size: 15px; line-height: 1.45; color: var(--color-text-on-dark-muted); max-width: 240px; }
.hw-chips.wp-block-list { margin-bottom: 0; padding: 0; list-style: none; }
.hw-chips li {
  display: block;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-100);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.theme-light .hw2-node .hw-chips li { background: #eef2f6; border-color: rgb(from var(--navy) r g b / .06); color: var(--ink-2); }

/* Benefits: without the icon wp-init.js adds (editor, no JS) the text would
   sit in the narrow icon column. */
.benefit-with-icon > .wp-block-group:only-child { grid-column: 1 / -1; }

/* Benefits: label and copy are the prototype's <strong> and inline <span>. */
.benefit-with-icon p.benefit-label {
  display: block;
  margin: 0 0 4px;
  font-size: var(--fs-label) !important;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.benefit-with-icon p.benefit-text {
  display: inline;
  margin: 0;
  max-width: 520px;
  font-size: var(--fs-small) !important;
  line-height: 1.6;
  color: var(--muted);
}
.theme-dark .benefit-with-icon p.benefit-text { color: var(--color-text-on-dark-muted); }

/* Benefits: the prototype's drag-the-icons gimmick is gone (removed from
   site.js), so no grab cursor and no touch-action:none trapping the scroll,
   and the icons stay still on hover (no "jelly" bounce).
   The hint paragraph stays hidden on pages that still have it in the DB. */
.benefit-with-icon .benefit-icon { cursor: auto; touch-action: auto; }
.benefit-with-icon .benefit-icon:hover { animation: none; }
.drag-hint { display: none; }

/* ---------- Buttons (core/button with the Primary / Secondary styles) ----------
   functions.php adds the prototype's .btn classes to the link on the front
   end; these rules only cover the wrapper. */

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Design decision (22/10/2026): buttons drop the prototype's trailing "→".
   Without the pseudo-element the flex gap no longer applies, so the label
   stays centred. */
.btn::after,
.nav-cta::after { content: none; }

/* The prototype centres the inline button with the box's text-align. */
.cta-box .wp-block-buttons { justify-content: center; }

/* ---------- Let's talk: audience list ----------
   Title and text are the prototype's <strong> and inline <span>. */
.benefit > p.benefit-title {
  display: block;
  margin: 0 0 7px;
  font-size: var(--fs-h4) !important;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.benefit > p.benefit-text {
  display: inline;
  margin: 0;
  font-size: var(--fs-small) !important;
  line-height: 1.6;
  color: var(--muted);
}
.theme-dark .benefit > p.benefit-text { color: var(--color-text-on-dark-muted); }

/* ---------- Footer ----------
   The claim and copyright are paragraphs where the prototype had <div>s. */
.footer-inner > p { margin: 0; }

/* ---------- Header: Navigation block ----------
   The prototype's .nav-links / .dropbtn / .dropdown-menu values applied to
   the core Navigation markup (patterns/site/header.php). A submenu whose
   items have a description is the prototype's rich dropdown (Solutions). */

.nav .wp-block-navigation { color: var(--slate-200); }
.nav .wp-block-navigation__container { flex-wrap: nowrap; gap: 30px; align-items: center; }
.nav-inner .nav-cta { white-space: nowrap; }
.nav .wp-block-navigation .wp-block-navigation-item__content {
  font-size: var(--fs-nav);
  color: var(--slate-200);
  transition: .25s ease;
}
.nav .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--color-accent); }

/* "Platform ▾": label + toggle read as the prototype's single button, and
   light up together. */
.nav .wp-block-navigation .has-child > .wp-block-navigation-item__content { padding: 8px 0; }
.nav .wp-block-navigation .wp-block-navigation__submenu-icon {
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 0;
  font: inherit;
  font-size: var(--fs-nav);
  line-height: inherit;
  color: var(--slate-200);
  cursor: pointer;
  transition: .25s ease;
}
.nav .wp-block-navigation .wp-block-navigation__submenu-icon svg { display: none; }
.nav .wp-block-navigation .wp-block-navigation__submenu-icon::before { content: "\a0▾"; }
.nav .wp-block-navigation .has-child:has(> .wp-block-navigation-item__content:hover, > .wp-block-navigation__submenu-icon:hover) > :is(.wp-block-navigation-item__content, .wp-block-navigation__submenu-icon) { color: var(--color-accent); }

/* The dropdown panel. */
.nav .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  top: 38px;
  left: -18px;
  padding: 10px;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  color: var(--slate-200);
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}
.nav .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container,
.nav .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container,
.nav .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
  min-width: var(--kl-dropdown-min, 210px);
  transform: none;
}
.nav .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}
.nav .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover {
  background: rgb(from var(--color-accent) r g b / .08);
  color: var(--color-accent);
}

/* Rich dropdown: title + description. */
.nav .wp-block-navigation .has-child .wp-block-navigation__submenu-container:has(.wp-block-navigation-item__description) { --kl-dropdown-min: 340px; }
.nav .wp-block-navigation .has-child .wp-block-navigation__submenu-container:has(.wp-block-navigation-item__description) > .wp-block-navigation-item > .wp-block-navigation-item__content { padding: 12px 14px; }
.nav .wp-block-navigation .wp-block-navigation__submenu-container:has(.wp-block-navigation-item__description) .wp-block-navigation-item__label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-on-dark);
}
.nav .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover .wp-block-navigation-item__label { color: var(--color-accent); }
.nav .wp-block-navigation .wp-block-navigation-item__description {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--slate-400);
  white-space: nowrap;
}

/* The menu's Let's talk item is for the mobile overlay only (below). */
.nav .wp-block-navigation .menu-cta { display: none; }

/* Fix for the prototype between 851 and ~1000px, where the header doesn't
   fit: labels and the ▾ wrapped. Tighter gaps keep it on one line. */
@media (max-width: 1000px) {
  .nav-inner { gap: 20px; }
  .nav .wp-block-navigation__container { gap: 18px; }
}

/* Mobile: the core overlay menu, from 850px down as in the prototype (core
   switches at 600px). */
@media (max-width: 850px) {
  .nav-inner .brand { margin-right: auto; }
  .nav-inner .nav-actions { order: 2; }
  .nav-inner .wp-block-navigation { order: 3; }
  .nav-inner .nav-cta { padding: 10px 16px; }

  .nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: var(--color-text-on-dark);
  }
  .nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* The header's blur would make it the containing block of the fixed
   overlay, squeezing it into the header's height. */
.nav:has(.wp-block-navigation__responsive-container.is-menu-open) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
  padding: 18px 16px 40px;
  background-color: var(--navy);
  color: var(--color-text-on-dark);
}
.nav .wp-block-navigation__responsive-container-close {
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-text-on-dark);
}
.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 58px; }
.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; }
.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-on-dark);
}
.nav .wp-block-navigation__responsive-container.is-menu-open .has-child .wp-block-navigation__submenu-container {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 6px 0 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.nav .wp-block-navigation__responsive-container.is-menu-open .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
  padding: 10px 0;
  font-size: 17px;
  color: var(--slate-200);
}
.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__description { white-space: normal; }
.nav .wp-block-navigation__responsive-container.is-menu-open a[aria-current="page"] { color: var(--color-accent); }

/* Too narrow for logo, button and toggle together: the header's button
   gives way to the menu's own Let's talk item, shown as a button. */
@media (max-width: 383px) {
  .nav-inner .nav-actions { display: none; }
  .nav .wp-block-navigation__responsive-container.is-menu-open .menu-cta { display: flex; margin-top: 28px; }
  .nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .menu-cta > .wp-block-navigation-item__content {
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    background: var(--color-accent);
    font-size: var(--fs-btn);
    color: var(--lime-ink);
    text-align: center;
  }
}
