/* PB Pathway component - [pb_pathway]

   Fonts inherit from the theme: headings Flink ExtraBold, running text
   Mackinac Medium, per the typography ruling.

   Colours come from the design system's tokens, with the palette's own hex
   behind each one. They used to read --fl-global-*, which this design system
   does not emit, so every colour was running on its fallback and three had
   drifted off-brand: mulberry, the dawn hover, and the spirit quadrant. */

.pb-pathway {
  --pb-navy: var(--ds-color-navy, #23375A);
  --pb-teal: var(--ds-color-teal, #1E6C82);
  --pb-deep-teal: var(--ds-color-teal-hover, #175566);
  --pb-dawn: var(--ds-color-dawn, #FF8C00);
  --pb-deep-dawn: var(--ds-color-dawn-hover, #E67D00);
  --pb-mint: var(--ds-color-mint, #D2F0F0);
  --pb-aqua-light: var(--ds-color-aqua-light, #B7EEE8);
  --pb-rose: var(--ds-color-rose, #FFBEB4);
  --pb-buff: var(--ds-color-buff, #F4EFE9);
  --pb-stone: var(--ds-color-border-subtle, #EDEAE7);
  --pb-mulberry: var(--ds-color-mulberry, #835263);
  --pb-pale-buttercup: var(--ds-color-buttercup, #FFE89A);
  --pb-white: var(--ds-color-white, #FEFEFE);
  /* Sticky site header: 100px desktop/tablet, 60px mobile (measured), + 28px gap */
  --pb-sticky-offset: 128px;
  container-type: inline-size;
  color: var(--pb-navy);
  margin: 8px 0;
  font-size: 18px; /* the page's own body size (Paul, 13 Oct) */
}
/* Logged-in WP admin bar: 32px above 782px, 46px at 601-782px, unfixed (scrolls away) at 600px and below */
body.admin-bar .pb-pathway { --pb-sticky-offset: 160px; }
@media (max-width: 782px) {
  body.admin-bar .pb-pathway { --pb-sticky-offset: 174px; }
}
@media (max-width: 689px) {
  .pb-pathway { --pb-sticky-offset: 88px; }
  body.admin-bar .pb-pathway { --pb-sticky-offset: 134px; }
}
@media (max-width: 600px) {
  body.admin-bar .pb-pathway { --pb-sticky-offset: 88px; }
}
.pb-pathway .pb-head { margin-bottom: 18px; }
.pb-pathway .pb-head h2 { margin: 0 0 8px; }
.pb-pathway .pb-head p { margin: 0; font-size: 1em; max-width: 60ch; }
.pb-pathway .pb-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; }
.pb-pathway .pb-steps li { margin: 0; }
.pb-pathway .pb-step-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 0.82em; font-weight: 700;
  color: var(--pb-deep-teal); cursor: pointer;
  background: var(--pb-buff); border: 2px solid transparent; border-radius: 999px;
  padding: 8px 14px 8px 8px; line-height: 1.3;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pb-pathway .pb-step-btn:hover { background: var(--pb-stone); }
.pb-pathway .pb-step-btn:focus-visible { outline: 3px solid var(--pb-teal); outline-offset: 2px; }
.pb-pathway .pb-step-btn[aria-pressed="true"] { background: var(--pb-teal); color: var(--pb-white); border-color: var(--pb-deep-teal); }
.pb-pathway .pb-step-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--pb-white); color: var(--pb-teal);
  font-size: 0.85em; font-weight: 700; border: 2px solid var(--pb-teal);
}
.pb-pathway .pb-step-btn[aria-pressed="true"] .pb-step-num { border-color: var(--pb-white); }
.pb-pathway .pb-hint { font-size: 0.82em; color: var(--pb-teal); margin: 0 0 14px; }
.pb-pathway .pb-switch {
  position: sticky; top: var(--pb-sticky-offset, 108px); z-index: 20;
  display: flex; align-items: center; gap: 8px;
  background: var(--pb-white); border: 2px solid var(--pb-stone); border-radius: 999px;
  padding: 6px; margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(35,55,90,0.12);
}
.pb-pathway .pb-switch[hidden] { display: none; }
.pb-pathway .pb-switch-arrow {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1;
  color: var(--pb-teal); background: var(--pb-buff);
  border: none; cursor: pointer; padding: 0;
}
.pb-pathway .pb-switch-arrow:hover:not(:disabled) { background: var(--pb-stone); }
.pb-pathway .pb-switch-arrow:focus-visible { outline: 3px solid var(--pb-teal); outline-offset: 2px; }
.pb-pathway .pb-switch-arrow:disabled { opacity: 0.35; cursor: default; }
.pb-pathway .pb-switch-label {
  flex: 1; min-width: 0; text-align: center; cursor: pointer;
  font-family: inherit; font-size: 0.82em; font-weight: 700; color: var(--pb-navy);
  background: none; border: none; padding: 6px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb-pathway .pb-switch-label:focus-visible { outline: 3px solid var(--pb-teal); outline-offset: 2px; border-radius: 8px; }
.pb-pathway .pb-switch-count { color: var(--pb-teal); margin-right: 6px; }
.pb-pathway .pb-switch-change { display: block; font-size: 0.75em; font-weight: 400; color: var(--pb-teal); }
.pb-pathway .pb-result { display: none; }
.pb-pathway .pb-result.pb-open { display: block; animation: pb-fade 0.3s ease; }
@keyframes pb-fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pb-pathway .pb-result.pb-open { animation: none; }
  .pb-pathway .pb-step-btn { transition: none; }
}
.pb-pathway .pb-stage-head { margin: 14px 0; }
.pb-pathway .pb-stage-head p { margin: 0; font-size: 1em; max-width: 62ch; }
.pb-pathway .pb-toggle { display: inline-flex; margin-bottom: 16px; }
.pb-pathway .pb-toggle-btn {
  font-family: inherit; font-size: 0.8em; font-weight: 700; cursor: pointer;
  padding: 8px 16px; border: 2px solid var(--pb-teal);
  background: var(--pb-white); color: var(--pb-teal);
  transition: background 0.2s ease, color 0.2s ease;
}
.pb-pathway .pb-toggle-btn:first-child { border-radius: 999px 0 0 999px; border-right-width: 1px; }
.pb-pathway .pb-toggle-btn:last-child { border-radius: 0 999px 999px 0; border-left-width: 1px; }
.pb-pathway .pb-toggle-btn:focus-visible { outline: 3px solid var(--pb-navy); outline-offset: 2px; }
.pb-pathway .pb-toggle-btn[aria-pressed="true"] { background: var(--pb-teal); color: var(--pb-white); }
.pb-pathway .pb-quads { display: grid; gap: 12px; }
@container (min-width: 560px) { .pb-pathway .pb-quads { grid-template-columns: 1fr 1fr; } }
@supports not (container-type: inline-size) {
  @media (min-width: 640px) { .pb-pathway .pb-quads { grid-template-columns: 1fr 1fr; } }
}
.pb-pathway .pb-quad { border-radius: 16px; }
.pb-pathway .pb-quad-mind { background: var(--pb-mint); }
.pb-pathway .pb-quad-body { background: var(--pb-pale-buttercup); }
.pb-pathway .pb-quad-spirit { background: var(--pb-aqua-light); }
.pb-pathway .pb-quad-emotions { background: var(--pb-rose); }
.pb-pathway .pb-quad summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; }
.pb-pathway .pb-quad summary::-webkit-details-marker { display: none; }
.pb-pathway .pb-quad summary:focus-visible { outline: 3px solid var(--pb-teal); outline-offset: -3px; border-radius: 16px; }
.pb-pathway .pb-quad-title { flex: 1; margin: 0; font-size: 1em; line-height: 1.25; }
.pb-pathway .pb-quad-count { font-size: 0.72em; font-weight: 700; color: rgba(35,55,90,0.6); }
.pb-pathway .pb-quad-chevron { flex: none; transition: transform 0.2s ease; width: 18px; height: 18px; color: var(--pb-navy); }
.pb-pathway .pb-quad[open] .pb-quad-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .pb-pathway .pb-quad-chevron { transition: none; } }
.pb-pathway .pb-quad-icon {
  flex: none; width: 32px; height: 32px; display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
}
/* Dark partner colour per quadrant (homepage pathway-card button pairings) */
.pb-pathway .pb-quad-mind .pb-quad-icon { background: var(--pb-teal); }
.pb-pathway .pb-quad-body .pb-quad-icon { background: var(--pb-dawn); }
.pb-pathway .pb-quad-spirit .pb-quad-icon { background: var(--pb-teal); }
.pb-pathway .pb-quad-emotions .pb-quad-icon { background: var(--pb-mulberry); }
.pb-pathway .pb-quad-icon svg { width: 19px; height: 19px; }
.pb-pathway .pb-quad ul { list-style: none; margin: 0; padding: 0 18px 14px; }
.pb-pathway .pb-quad li { margin: 0; padding: 1px 0; font-size: 0.88em; font-weight: 500; line-height: 1.4; }
.pb-pathway .pb-cta { margin-top: 18px; }
/* The button is the site's own .btn.btn-teal now (Paul, 13 Oct). */
.pb-pathway .pb-cta p { font-size: 1em; margin: 12px 0 0; }


/* ---------- typography ruling ---------- */

/* Headings and anything that behaves like a control take Flink; running text
   takes Mackinac. The component set font-family:inherit throughout, so its
   buttons and labels were inheriting the serif at 600, 700 and 800, weights
   Mackinac does not have, and the browser was synthesising them. */
.pb-pathway .pb-step-btn,
.pb-pathway .pb-step-num,
.pb-pathway .pb-switch-label,
.pb-pathway .pb-switch-count,
.pb-pathway .pb-switch-change,
.pb-pathway .pb-switch-arrow,
.pb-pathway .pb-toggle-btn,
.pb-pathway .pb-quad summary,
.pb-pathway .pb-quad-title,
.pb-pathway .pb-quad-count{font-family:var(--ds-font-heading,'Flink',system-ui,Arial,sans-serif);}

/* The content area gives every list item 12px below and 1.6 line height,
   which out-ranked the rules above. Lists in the step cards are short and
   scanned, so they sit close (Paul, 13 Oct). */
body.fl-ds-page .inner-content .pb-pathway .pb-quad li{margin:0;padding-top:2px;padding-bottom:2px;line-height:1.4;font-size:16px;}

/* The hint's wording now ends the intro (audit, 20 October); the empty
   element stays because the script hides it after the first choice. */
.pb-pathway .pb-hint:empty{display:none;}

/* On Get support the pathway sits in a full-width band under the site's
   centred section heading, so its own heading is dropped and the rest is
   centred to match (audit, 20 October). */
.pb-gs-feature .pb-pathway .pb-head h2{display:none;}
.pb-gs-feature .pb-pathway .pb-head{text-align:center;max-width:720px;margin-left:auto;margin-right:auto;}
.pb-gs-feature .pb-pathway .pb-steps{justify-content:center;}
.pb-gs-feature .pb-pathway .pb-cta{text-align:center;}

/* Self-help resources: the pathway sits under its own h3 subheading inside
   Not sure what you need?, so the component's h2 is hidden there. */
.pb-embed-pathway .pb-pathway .pb-head h2{display:none;}
