/* ==========================================================================
   Components — Mr Andy Hacker
   IDs match the component inventory in agent-brief.md. Build once, place many.
   ========================================================================== */

/* ---- Base ---------------------------------------------------------------- */
body {
  font-family: var(--ah-font-body);
  font-size: var(--ah-body);
  line-height: var(--ah-lh-body);
  color: var(--ah-text);
  background-color: var(--ah-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .ah-display {
  font-family: var(--ah-font-display);
  font-weight: 400;            /* DM Serif Display ships one weight */
  line-height: var(--ah-lh-display);
  color: var(--ah-navy);
  letter-spacing: -0.005em;
}

h1 { font-size: var(--ah-h1); }
h2 { font-size: var(--ah-h2); }
h3 { font-size: var(--ah-h3); }
h4 { font-size: var(--ah-h4); font-family: var(--ah-font-body); font-weight: 600; }

/* Section headings on cream grounds are green in the comp, not navy. */
.ah-band--cream h2,
.ah-band--sand h2,
.ah-band--offwhite h2 { color: var(--ah-green); }

p { max-width: var(--ah-measure); }

/* ---- Alignment utilities -------------------------------------------------
   `p` carries a reading measure, so `text-align: center` alone centres the text
   inside a box that is still left-aligned. These classes centre the box too,
   which is what every "this isn't centred" note came down to. */
.ah-center { text-align: center; max-width: none; margin-inline: auto; }
.ah-lead,
.ah-band .ah-lead,
.fusion-text p.ah-lead {
  text-align: center;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}
.ah-center,
.ah-band .ah-center,
.fusion-text p.ah-center { margin-left: auto; margin-right: auto; }
.ah-center-block { display: flex; justify-content: center; }
.ah-eyebrow { max-width: none; }
.ah-eyebrow.ah-center { text-align: center; }

/* ---- Accessibility ------------------------------------------------------- */
/* The comp shows no focus states. These are required — Equality Act 2010. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--ah-focus);
  outline-offset: var(--ah-focus-offset);
}
.ah-band--navy :where(a, button):focus-visible { outline-color: var(--ah-cream); }

.ah-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: var(--ah-gap-sm) var(--ah-gap-md);
  background: var(--ah-navy);
  color: var(--ah-text-invert);
}
.ah-skip-link:focus { left: 0; }

.ah-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Layout -------------------------------------------------------------- */
.ah-band { padding-block: var(--ah-band-y); }
.ah-band--tight { padding-block: var(--ah-band-y-tight); }

.ah-container {
  width: 100%;
  max-width: var(--ah-max-width);
  margin-inline: auto;
  padding-inline: var(--ah-gutter);   /* never less than 16px at 375 */
}

/* ---- Eyebrow ------------------------------------------------------------- */
.ah-eyebrow {
  font-family: var(--ah-font-body);
  font-size: var(--ah-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ah-ls-eyebrow);
  color: var(--ah-navy);
  margin-bottom: var(--ah-gap-sm);
}
.ah-band--navy .ah-eyebrow { color: rgba(249, 245, 242, 0.75); }

/* ---- Buttons (C04, C13, C15) --------------------------------------------- */
.ah-btn {
  display: inline-block;
  font-family: var(--ah-font-body);
  font-size: var(--ah-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ah-ls-button);
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--ah-radius);
  transition: background-color var(--ah-transition), color var(--ah-transition);
  cursor: pointer;
}
.ah-btn--primary   { background: var(--ah-navy); color: var(--ah-text-invert); }
.ah-btn--primary:hover,
.ah-btn--primary:focus-visible { background: var(--ah-navy-deep); color: var(--ah-white); }

.ah-btn--secondary { background: transparent; color: var(--ah-navy); border-color: var(--ah-navy); }
.ah-btn--secondary:hover { background: var(--ah-navy); color: var(--ah-text-invert); }

/* On a navy ground the button inverts to cream. Driven by the band modifier class
   so it applies everywhere automatically, rather than per button. */
.ah-band--navy .ah-btn--primary,
.ah-hero .ah-btn--primary {
  background: var(--ah-cream);
  color: var(--ah-navy);
}
.ah-band--navy .ah-btn--primary:hover,
.ah-hero .ah-btn--primary:hover { background: var(--ah-white); color: var(--ah-navy-deep); }

.ah-band--navy .ah-btn--secondary,
.ah-hero .ah-btn--secondary { color: var(--ah-cream); border-color: var(--ah-cream); }
.ah-band--navy .ah-btn--secondary:hover,
.ah-hero .ah-btn--secondary:hover { background: var(--ah-cream); color: var(--ah-navy); }

/* Square corners everywhere, including Avada's own button element. */
.ah-btn,
.fusion-button,
.fusion-button-wrapper .fusion-button,
.ah-form button,
.ah-form input[type="submit"] { border-radius: 0 !important; }

/* Native Avada Button elements carrying .ah-btn render exactly like the
   hand-written button: Avada's own button typography, padding, colours and
   inner-text colour are overridden, leaving only its margin fields in play so
   spacing stays editable per button in the Builder. */
.fusion-body .fusion-button.ah-btn {
  display: inline-block;
  position: static;
  box-sizing: border-box;
  align-items: normal;
  justify-content: normal;
  font-family: var(--ah-font-body);
  font-size: var(--ah-small);
  font-weight: 600;
  font-style: normal;
  line-height: inherit;
  text-transform: uppercase;
  letter-spacing: var(--ah-ls-button);
  padding: 1rem 2rem;
  border: 1px solid transparent;
  transition: background-color var(--ah-transition), color var(--ah-transition);
}
/* Keep the hero button above the hero's image overlay, as .ah-hero .ah-btn does. */
.fusion-body .ah-hero .fusion-button.ah-btn { position: relative; }
.fusion-body .fusion-button.ah-btn .fusion-button-text { color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.fusion-body .fusion-button.ah-btn--primary,
.fusion-body .fusion-button.ah-btn--primary:visited,
.fusion-body .fusion-button.ah-btn--primary:focus:not(:focus-visible),
.fusion-body .fusion-button.ah-btn--primary:active { background: var(--ah-navy); color: var(--ah-text-invert); border-color: transparent; }
.fusion-body .fusion-button.ah-btn--primary:hover,
.fusion-body .fusion-button.ah-btn--primary:focus-visible { background: var(--ah-navy-deep); color: var(--ah-white); border-color: transparent; }
.fusion-body .ah-band--navy .fusion-button.ah-btn--primary,
.fusion-body .ah-band--navy .fusion-button.ah-btn--primary:visited,
.fusion-body .ah-band--navy .fusion-button.ah-btn--primary:focus:not(:focus-visible),
.fusion-body .ah-band--navy .fusion-button.ah-btn--primary:active,
.fusion-body .ah-hero .fusion-button.ah-btn--primary,
.fusion-body .ah-hero .fusion-button.ah-btn--primary:visited,
.fusion-body .ah-hero .fusion-button.ah-btn--primary:focus:not(:focus-visible),
.fusion-body .ah-hero .fusion-button.ah-btn--primary:active { background: var(--ah-cream); color: var(--ah-navy); }
.fusion-body .ah-band--navy .fusion-button.ah-btn--primary:hover,
.fusion-body .ah-hero .fusion-button.ah-btn--primary:hover { background: var(--ah-white); color: var(--ah-navy-deep); }

/* Booking CTA while no URL exists (decisions.md D-022).
   Styled identically, deliberately not interactive. */
.ah-btn.is-unlinked { cursor: default; opacity: 1; }

/* ---- Text link, underlined small caps (C12) ------------------------------ */
.ah-link-more {
  display: inline-block;
  font-size: var(--ah-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ah-ls-eyebrow);
  color: var(--ah-navy);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--ah-bronze);
}
.ah-link-more:hover { border-bottom-width: 2px; }

/* ---- C09 Navy quote band ------------------------------------------------- */
.ah-quote-band { text-align: center; }
.ah-quote-band h2 { max-width: 22ch; margin-inline: auto; }
.ah-quote-band__body {
  font-style: italic;
  font-size: var(--ah-body-lg);
  max-width: 62ch;
  margin-inline: auto;
}

/* ---- C10 Proof-point list, bronze ticks ---------------------------------- */
.ah-prooflist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ah-gap-md); }
@media (min-width: 768px) { .ah-prooflist { grid-template-columns: 1fr 1fr; column-gap: var(--ah-gap-xl); } }

.ah-prooflist li { position: relative; padding-left: 2.5rem; max-width: 44ch; }
/* The tick is decorative. Meaning is carried by the text, never by the icon
   or its colour alone (WCAG 1.4.1). */
.ah-prooflist li::before {
  content: "";
  position: absolute; left: 0; top: 0.2em;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--ah-bronze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F9F5F2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}

/* ---- C12 Condition card grid --------------------------------------------- */
.ah-cardgrid { display: grid; gap: var(--ah-gap-md); grid-template-columns: 1fr; }
@media (min-width: 600px)  { .ah-cardgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ah-cardgrid { grid-template-columns: repeat(4, 1fr); } }

.ah-card {
  background: var(--ah-white);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: var(--ah-gap-sm);
  border-radius: var(--ah-radius);
  box-shadow: var(--ah-shadow);
  /* The comp's cards are 270x337 CSS px - portrait, not wide. */
  max-width: 310px;
  min-height: 360px;
  width: 100%;
  margin-inline: auto;
}
.ah-card__icon {
  width: 34px; height: 34px;
  color: var(--ah-navy);
  display: block;
  margin-bottom: var(--ah-gap-sm);
  flex: 0 0 auto;
}
.ah-card__icon svg { width: 100%; height: 100%; display: block; }
.ah-card h3 { font-size: var(--ah-h4); font-family: var(--ah-font-display); }
.ah-card p { font-size: var(--ah-small); color: var(--ah-navy); max-width: none; }
/* The "Learn more" link is wrapped in a <p>, so the paragraph is the flex item -
   pushing the link itself does nothing. Pin the paragraph to the bottom so the
   links sit on a common baseline across every card, whatever the copy length. */
.ah-card > p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: var(--ah-gap-md);
}
.ah-card .ah-link-more { align-self: flex-start; }

/* ---- C08 Three-card "right place for you" -------------------------------- */
.ah-triptych { display: grid; gap: var(--ah-gap-lg); grid-template-columns: 1fr; }
@media (min-width: 768px) { .ah-triptych { grid-template-columns: repeat(3, 1fr); } }
.ah-triptych img { width: 100%; height: auto; display: block; }
.ah-triptych h3 { font-size: var(--ah-h4); margin-top: var(--ah-gap-md); }
.ah-triptych hr { border: 0; border-top: 1px solid var(--ah-bronze); margin: var(--ah-gap-sm) 0; }

/* ---- C07 / C11 Split feature --------------------------------------------- */
.ah-split { display: grid; gap: var(--ah-gap-xl); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .ah-split { grid-template-columns: 1fr 1fr; } }
.ah-split--image-right > :first-child { order: 1; }
.ah-split img { width: 100%; height: auto; display: block; border-radius: var(--ah-radius); }

/* ---- C14 FAQ accordion ---------------------------------------------------- */
.ah-faq { max-width: 820px; margin-inline: auto; }
.ah-faq details { border-bottom: 1px solid var(--ah-rule); }
.ah-faq summary {
  font-family: var(--ah-font-display);
  font-size: var(--ah-h4);
  padding: var(--ah-gap-md) 0;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--ah-gap-sm);
}
.ah-faq summary::-webkit-details-marker { display: none; }
.ah-faq summary::after {
  content: "";
  flex: 0 0 1rem; width: 1rem; height: 1rem;
  background: currentColor;
  mask: 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'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--ah-transition);
}
.ah-faq details[open] summary::after { transform: rotate(180deg); }
.ah-faq details > :not(summary):not(.ah-highlight):not(.ah-quick-answer):not(.ah-table-wrap) { padding-bottom: var(--ah-gap-md); }

/* The same FAQ built from Avada's native Toggle element (class "ah-faq" on the
   Toggles element). Avada's box icons, borders and colours are switched off and
   the details/summary design above is reproduced: display-serif question,
   chevron on the right, a hairline under each item, no slide animation.
   Selectors carry .fusion-panel to outrank Avada's own toggle rules, and the
   colour variables Avada sets inline are overridden one level down. */
.fusion-body .fusion-accordian.ah-faq .panel-group {
  --awb-title-color: var(--ah-navy);
  --awb-hover-color: var(--ah-navy);
  --awb-toggle-hover-accent-color: var(--ah-navy);
  --awb-toggle-active-accent-color: var(--ah-navy);
  --awb-content-color: var(--ah-navy);
}
.fusion-body .fusion-accordian.ah-faq .panel-group,
.fusion-body .fusion-accordian.ah-faq .fusion-panel,
.fusion-body .fusion-accordian.ah-faq .fusion-panel .panel-heading { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.fusion-body .fusion-accordian.ah-faq .fusion-panel { border-bottom: 1px solid var(--ah-rule); }
.fusion-body .fusion-accordian.ah-faq .fusion-panel .panel-title { margin: 0; padding: 0; font: inherit; line-height: inherit; letter-spacing: normal; text-transform: none; }
.fusion-body .fusion-accordian.ah-faq .fusion-panel .panel-title a {
  display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: var(--ah-gap-sm);
  padding: var(--ah-gap-md) 0;
  font-family: var(--ah-font-display);
  font-size: var(--ah-h4);
  font-weight: 400;
  font-style: normal;
  line-height: inherit;
  letter-spacing: normal;
  color: var(--ah-navy);
  text-decoration: none;
  cursor: pointer;
}
.fusion-body .fusion-accordian.ah-faq .fusion-panel .panel-title a:is(:hover, :focus, .active) { color: var(--ah-navy); }
.fusion-body .fusion-accordian.ah-faq .fusion-panel .panel-title .fusion-toggle-heading { margin: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; }
.fusion-body .fusion-accordian.ah-faq .fusion-toggle-icon-wrapper { display: none; }
.fusion-body .fusion-accordian.ah-faq .fusion-panel .panel-title a::after {
  content: "";
  flex: 0 0 1rem; width: 1rem; height: 1rem;
  background: currentColor;
  mask: 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'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--ah-transition);
}
.fusion-body .fusion-accordian.ah-faq .fusion-panel .panel-title a[aria-expanded="true"]::after { transform: rotate(180deg); }
.fusion-body .fusion-accordian.ah-faq .fusion-panel .panel-body { padding: 0; margin: 0; border: 0; background: none; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.fusion-body .fusion-accordian.ah-faq .fusion-panel .panel-body > :not(.ah-highlight):not(.ah-quick-answer):not(.ah-table-wrap) { padding-bottom: var(--ah-gap-md); }
.fusion-body .fusion-accordian.ah-faq .collapsing { transition: none; }

/* ---- C22 Quick Answer ----------------------------------------------------- */
.ah-quick-answer {
  background: var(--ah-stone);
  border-left: 4px solid var(--ah-bronze);
  padding: var(--ah-gap-lg);
  margin-block: var(--ah-gap-lg);
}
.ah-quick-answer h2 { font-size: var(--ah-h4); font-family: var(--ah-font-body); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ah-ls-eyebrow); color: var(--ah-bronze); }

/* ---- C20 Credential byline ------------------------------------------------ */
.ah-byline {
  font-size: var(--ah-small);
  color: var(--ah-navy);
  border-top: 1px solid var(--ah-rule);
  padding-top: var(--ah-gap-md);
  margin-top: var(--ah-gap-lg);
}

/* ---- C03 Sticky CTA -------------------------------------------------------- */
.ah-sticky-cta { position: fixed; z-index: 90; right: var(--ah-gutter); bottom: var(--ah-gutter); }
@media (max-width: 767px) {
  .ah-sticky-cta {
    right: 0; left: 0; bottom: 0;
    padding: var(--ah-gap-sm);
    background: var(--ah-navy);
    text-align: center;
  }
  .ah-sticky-cta .ah-btn { display: block; width: 100%; }
}

/* ---- C21 Form -------------------------------------------------------------- */
.ah-form label { display: block; font-size: var(--ah-small); font-weight: 600; margin-bottom: var(--ah-gap-xs); }
.ah-form :is(input, select, textarea) {
  width: 100%;
  font-family: var(--ah-font-body);
  font-size: var(--ah-body);
  padding: 0.85rem 1rem;
  border: 1px solid var(--ah-rule);
  border-radius: var(--ah-radius);
  background: var(--ah-white);
  color: var(--ah-text);
}
.ah-form .ah-field { margin-bottom: var(--ah-gap-md); }
.ah-form .ah-field-hint { font-size: var(--ah-small); color: var(--ah-navy); margin-top: var(--ah-gap-xs); }
/* Errors are never signalled by colour alone (WCAG 1.4.1). */
.ah-form .ah-field-error { color: #A3281E; font-size: var(--ah-small); margin-top: var(--ah-gap-xs); font-weight: 600; }
.ah-form .ah-field-error::before { content: "Error: "; }
.ah-form :is(input, select, textarea)[aria-invalid="true"] { border-width: 2px; border-color: #A3281E; }
.ah-form .ah-consent { display: flex; gap: var(--ah-gap-sm); align-items: flex-start; }
.ah-form .ah-consent input { width: auto; margin-top: 0.35rem; flex: 0 0 auto; }

/* ---- Tables (C23) ---------------------------------------------------------- */
.ah-table { width: 100%; border-collapse: collapse; font-size: var(--ah-small); }
.ah-table :is(th, td) { text-align: left; padding: var(--ah-gap-sm); border-bottom: 1px solid var(--ah-rule); vertical-align: top; }
.ah-table th { font-weight: 700; }
.ah-table-wrap { overflow-x: auto; }

/* ---- Print ----------------------------------------------------------------- */
@media print {
  .ah-sticky-cta, .ah-skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---- Avada container integration ------------------------------------------
   Containers are set to 100% width so the colour band reaches the viewport
   edges, as the comp does. The row inside is then constrained back to the
   site width here, which keeps a single source of truth for the measure. */
/* Bands run edge to edge; the content inside is constrained back to the site width.
   Containers set flex_column_spacing="0px" so Avada does not emit its inline
   `width:104% !important` gutter compensation, which nothing in a stylesheet can
   override. Column gutters are then handled here instead, at a fixed 20px either
   side, so the inner measure lands at exactly --ah-max-width. */
.fusion-fullwidth.ah-band.hundred-percent-fullwidth > .fusion-builder-row.fusion-row {
  max-width: calc(var(--ah-max-width) + 40px) !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding-inline: var(--ah-gutter);
  box-sizing: border-box;
}
.fusion-fullwidth.ah-band > .fusion-builder-row.fusion-row > .fusion-layout-column {
  padding-inline: 20px;
  box-sizing: border-box;
}

/* The logo is supplied in brand blue (#21409A), which is illegible on the navy
   header. The comp reverses it to off-white, so do that here rather than ship a
   second asset. See decisions.md R-015. */
.fusion-header .fusion-logo img,
.fusion-header-wrapper .fusion-logo img {
  filter: brightness(0) invert(1);
}

/* Green is a sparing accent in the comp, used on a single section heading rather
   than every heading on a light band. It is therefore set per title in the page
   source, not globally here. */

/* Card media: one aspect ratio across a row, whatever the source crop. */
.ah-card-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Images: square corners, no shadow, full-width in their column. */
.ah-band .fusion-imageframe { box-shadow: none; border-radius: 0; }
.ah-band .fusion-imageframe img { width: 100%; height: auto; display: block; }

/* On the 100%-width template the bands handle their own gutters, so #main must not
   add its own horizontal padding. Without this, the percentage in each container's
   padding resolves against a 60px-narrower containing block and the content measure
   drifts off the comp. */
.page-template-100-width #main,
.page-template-100-width #main > .fusion-row {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none;
}

/* With #main's padding removed, Avada's compensating negative margins on full-width
   containers would push them 30px past each viewport edge and cause horizontal scroll. */
.page-template-100-width .fusion-fullwidth.hundred-percent-fullwidth {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* The comp has no gap between the header and the hero, and the bands supply all
   their own vertical rhythm, so the page wrapper contributes none. */
.page-template-100-width #main { padding-top: 0 !important; padding-bottom: 0 !important; }
.page-template-100-width .post-content > .fusion-fullwidth:first-child { margin-top: 0; }

/* Header: navy bar, logo left, menu right, per the comp. */
.fusion-header, .fusion-sticky-header-wrapper .fusion-header { background-color: var(--ah-navy); }
.fusion-main-menu > ul > li > a { color: var(--ah-cream); }
.fusion-main-menu > ul > li > a:hover,
.fusion-main-menu > ul > li.current-menu-item > a { color: var(--ah-bronze); }

/* ---- C02 Footer ----------------------------------------------------------- */
.ah-footer {
  background: var(--ah-footer);
  color: var(--ah-text-invert);
  font-size: var(--ah-small);
}
.ah-footer__inner {
  max-width: var(--ah-max-width);
  margin-inline: auto;
  padding: var(--ah-band-y-tight) var(--ah-gutter);
  display: grid;
  gap: var(--ah-gap-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .ah-footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ah-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.ah-footer__heading {
  font-family: var(--ah-font-display);
  font-size: var(--ah-h4);
  font-weight: 400;
  color: var(--ah-text-invert);
  margin: 0 0 var(--ah-gap-sm);
}
.ah-footer p { color: var(--ah-text-invert); max-width: 42ch; margin: 0 0 var(--ah-gap-sm); }
.ah-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ah-gap-xs); }
.ah-footer a { color: var(--ah-text-invert); text-decoration: none; border-bottom: 1px solid transparent; }
.ah-footer a:hover { border-bottom-color: var(--ah-bronze); }
.ah-footer .ah-btn { margin-top: var(--ah-gap-xs); }

.ah-footer__bar { border-top: 1px solid var(--ah-rule-invert); }
.ah-footer__inner--bar {
  display: block;
  padding-block: var(--ah-gap-lg);
  text-align: center;
}
.ah-footer__inner--bar p { max-width: none; margin-inline: auto; }
.ah-footer__legal { opacity: 0.85; }
.ah-footer__legal-links {
  list-style: none;
  margin: var(--ah-gap-sm) 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ah-gap-xs) var(--ah-gap-md);
}
.ah-footer__copyright { opacity: 0.85; }

/* Footer CTA sits on navy, so it takes the inverted button treatment. */
.ah-footer .ah-btn--primary { background: var(--ah-cream); color: var(--ah-navy); }
.ah-footer .ah-btn--primary:hover { background: var(--ah-white); }
.ah-footer .ah-btn { border-bottom: 0; }
.ah-footer a.ah-btn:hover { border-bottom: 0; }

/* ---- Hero ------------------------------------------------------------------
   The comp's hero is markedly lighter than the source photograph: measured mean
   luminance 94 against the source's 59. A `screen` blend with the brand navy
   lifts the shadows to a measured 93 without blowing the highlights, which is
   what the comp does. The scrim below only covers the text column, so the
   subject stays bright. */
.ah-hero { position: relative; isolation: isolate; }
.ah-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(18, 26, 35, 0.88) 0%,
    rgba(18, 26, 35, 0.78) 38%,
    rgba(18, 26, 35, 0.30) 64%,
    rgba(18, 26, 35, 0.06) 100%
  );
}
.ah-hero > .fusion-row { position: relative; z-index: 1; }
@media (max-width: 767px) {
  /* No room for a text column and a subject side by side, so scrim the lot. */
  .ah-hero::after { background: rgba(23, 32, 43, 0.68); }
}

/* ---- Journey steps (C17) ---------------------------------------------------
   Separate cards with real internal padding, numbered in bronze. */
.ah-step {
  background: var(--ah-white);
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--ah-gap-xs);
  border-top: 3px solid var(--ah-bronze);
}
.ah-step__num {
  font-family: var(--ah-font-body);
  font-size: var(--ah-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ah-ls-eyebrow);
  text-transform: uppercase;
  color: var(--ah-navy);
  margin: 0;
}
.ah-step__title {
  font-family: var(--ah-font-display);
  font-size: var(--ah-h4);
  color: var(--ah-navy);
  margin: 0 0 var(--ah-gap-xs);
}
.ah-step p { margin: 0; max-width: none; font-size: var(--ah-small); }

/* ---- Location cards (C18) --------------------------------------------------- */
.ah-location {
  background: var(--ah-white);
  padding: 1.75rem 1.5rem;
  height: 100%;
  text-align: center;
  border-bottom: 3px solid var(--ah-bronze);
}
.ah-location h3 {
  font-size: var(--ah-h4);
  margin: 0 0 var(--ah-gap-xs);
}
.ah-location p { margin: 0; max-width: none; font-size: var(--ah-small); color: var(--ah-navy); }

/* ---- Approach principles ----------------------------------------------------- */
.ah-principle { text-align: center; }
.ah-principle h3 {
  font-size: var(--ah-h4);
  color: var(--ah-text-invert);
  margin: 0 0 var(--ah-gap-xs);
}
.ah-principle p { color: var(--ah-text-invert); max-width: 34ch; margin-inline: auto; font-size: var(--ah-small); }
.ah-principle__rule {
  width: 40px;
  height: 1px;
  background: var(--ah-bronze);
  border: 0;
  margin: 0 auto var(--ah-gap-md);
}

/* ---- Testimonial ---------------------------------------------------------------
   Avada gives blockquote its own background and left border. The testimonial is
   meant to sit cleanly in the band, so reset it. */
.ah-band blockquote,
.ah-quote {
  background: none !important;
  border: 0 !important;
  border-left: 0 !important;
  padding: 0 !important;
  margin-inline: auto;
  font-style: normal;
}
.ah-quote cite { font-style: normal; font-size: var(--ah-small); color: var(--ah-navy); display: block; margin-top: var(--ah-gap-md); }
.ah-band--navy .ah-quote cite { color: rgba(249, 245, 242, 0.8); }

/* ---- Sticky header ------------------------------------------------------------
   Client direction 18/09/2026: the sticky header matches the static one - navy
   ground, reversed logo, cream menu. */
.fusion-is-sticky .fusion-header,
.fusion-sticky-header-wrapper.fusion-is-sticky .fusion-header,
.fusion-is-sticky .fusion-sticky-header-wrapper .fusion-header,
.fusion-sticky-header-wrapper .fusion-header { background-color: var(--ah-navy) !important; }
.fusion-is-sticky .fusion-logo img { filter: brightness(0) invert(1) !important; }
.fusion-is-sticky .fusion-main-menu > ul > li > a,
.fusion-is-sticky .fusion-main-menu > ul > li > a > span { color: var(--ah-cream) !important; }
.fusion-is-sticky .fusion-main-menu > ul > li > a:hover,
.fusion-is-sticky .fusion-main-menu > ul > li.current-menu-item > a { color: var(--ah-bronze) !important; }
/* Menu toggle and any icon-based controls stay legible on navy. */
.fusion-is-sticky .fusion-toggle-icon-line,
.fusion-is-sticky .fusion-icon { background-color: var(--ah-cream); color: var(--ah-cream); }

/* Logo left, menu right, both on one optical baseline. Avada floats the menu,
   which a flex row ignores, so the two collide unless space-between is set. */
.fusion-header .fusion-row,
.fusion-header-wrapper .fusion-row {
  display: flex;
  align-items: center;
}
/* Avada ships a zero-width clearfix and several hidden mobile holders in this row.
   As flex items they would take part in any gap or space-between, so the menu is
   pushed right with an auto margin instead and the clearfix is taken out. */
.fusion-header .fusion-row > .fusion-clearfix { display: none; }
.fusion-header .fusion-logo { margin: 0; flex: 0 0 auto; }
.fusion-header .fusion-main-menu { float: none; flex: 0 1 auto; margin-left: auto; }
.fusion-main-menu, .fusion-main-menu > ul { display: flex; align-items: center; }
.fusion-main-menu > ul > li { display: flex; align-items: center; }
.fusion-logo, .fusion-logo a { display: flex; align-items: center; }

/* Single-column proof list, for use inside a half-width column. */
.ah-prooflist--single { grid-template-columns: 1fr !important; }
.ah-prooflist--single li { max-width: none; }

/* Hero CTA needs to clear the scrim it sits on. */
.ah-hero .ah-btn { position: relative; z-index: 2; }


/* ---- Typography colour, single source --------------------------------------
   Client direction 18/09/2026: no green typography anywhere. Every heading,
   eyebrow, label and body string is the brand navy on light grounds and cream
   on navy grounds. Bronze survives only as a decorative rule or tick, never as
   type. --ah-green stays defined (it was sampled from the comp) but is unused. */
.ah-band--light :is(h1, h2, h3, h4, h5, h6),
.ah-band--light p,
.ah-band--light li,
.ah-band--light cite,
.ah-band--light summary,
.ah-band--light .fusion-title h1,
.ah-band--light .fusion-title h2,
.ah-band--light .fusion-title h3 { color: var(--ah-navy); }

.ah-band--navy :is(h1, h2, h3, h4, h5, h6),
.ah-band--navy p,
.ah-band--navy li,
.ah-band--navy cite,
.ah-band--navy .fusion-title h1,
.ah-band--navy .fusion-title h2,
.ah-band--navy .fusion-title h3 { color: var(--ah-text-invert); }
.ah-band--navy .ah-eyebrow { color: rgba(249, 245, 242, 0.85); }

/* Cards sit on navy but are white, so their type returns to navy. */
.ah-band--navy .ah-card :is(h3, p),
.ah-band--navy .ah-card .ah-link-more { color: var(--ah-navy); }
.ah-band--navy .ah-card__icon { color: var(--ah-navy); }


/* ---- Equal-height cards -----------------------------------------------------
   Avada's column stretches, but the .fusion-text wrapper between the column and
   our card does not, so cards in a row ended up ragged. The column carries an
   `ah-col-stretch` class and the height is passed down explicitly. */
.ah-col-stretch .fusion-column-wrapper { height: 100%; display: flex; flex-direction: column; }
.ah-col-stretch .fusion-text { flex: 1 1 auto; display: flex; }
.ah-col-stretch .ah-card,
.ah-col-stretch .ah-step,
.ah-col-stretch .ah-location { height: 100%; width: 100%; }

/* Menu links on the navy header, static and sticky alike. Avada writes its own
   per-state menu colours into dynamic CSS, so these need to outrank them. */
.fusion-header .fusion-main-menu a,
.fusion-header .fusion-main-menu a > span,
.fusion-sticky-header-wrapper .fusion-main-menu a,
.fusion-is-sticky .fusion-main-menu a,
.fusion-is-sticky .fusion-main-menu a > span { color: var(--ah-cream) !important; }

.fusion-header .fusion-main-menu a:hover,
.fusion-header .fusion-main-menu .current-menu-item > a,
.fusion-is-sticky .fusion-main-menu a:hover { color: var(--ah-bronze) !important; }

/* Mobile menu toggle bars on navy. */
.fusion-header .fusion-toggle-icon-line { background-color: var(--ah-cream) !important; }

/* ---- Main navigation dropdown (Conditions) -----------------------------------
   Client direction 03/11/2026. Avada's native dropdown, restyled as a white panel
   hanging from the bottom of the navy bar: the bronze top rule used by the site's
   boxes, navy type, square corners, no shadow. The menu items are flex-centred
   (above), which left the absolutely positioned panel centred on - and covering -
   its own parent link, so it is pinned below the item instead. The panel drops by
   --ah-dd-drop to meet the bar's bottom edge; a transparent bridge spans that gap
   so the pointer can travel down into it without the panel closing. */
.fusion-header { --ah-dd-drop: 24px; }
.fusion-header .fusion-main-menu > ul > li.fusion-dropdown-menu { position: relative; }
.fusion-header .fusion-main-menu > ul > li > .sub-menu {
  top: calc(100% + var(--ah-dd-drop));
  left: -24px;
  width: max-content;
  min-width: 260px;
  padding: 12px 0;
  background: var(--ah-white) !important;
  border: 1px solid var(--ah-rule);
  border-top: 3px solid var(--ah-bronze) !important;
  border-radius: 0;
  box-shadow: none;
}
.fusion-header .fusion-main-menu > ul > li > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: calc(var(--ah-dd-drop) + 3px);
}
.fusion-header .fusion-main-menu .sub-menu li { border: 0 !important; background: none !important; }
.fusion-header .fusion-main-menu .sub-menu a,
.fusion-is-sticky .fusion-main-menu .sub-menu a {
  display: block;
  padding: 10px 24px !important;
  border: 0 !important;
  background: none !important;
  color: var(--ah-navy) !important;
  font-size: var(--ah-small);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.fusion-header .fusion-main-menu .sub-menu a > span { color: var(--ah-navy) !important; }
/* Hover and focus: a sand ground and a bronze underline, so the state never rests
   on colour alone. The page you are on keeps the underline and gains weight. */
.fusion-header .fusion-main-menu .sub-menu a:hover,
.fusion-header .fusion-main-menu .sub-menu a:focus-visible,
.fusion-is-sticky .fusion-main-menu .sub-menu a:hover {
  background: var(--ah-sand) !important;
  color: var(--ah-navy) !important;
  text-decoration: underline;
  text-decoration-color: var(--ah-bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.fusion-header .fusion-main-menu .sub-menu .current-menu-item > a,
.fusion-is-sticky .fusion-main-menu .sub-menu .current-menu-item > a {
  color: var(--ah-navy) !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--ah-bronze);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
/* The header's cream focus ring would vanish on the white panel; navy, inset. */
.fusion-header .fusion-main-menu .sub-menu a:focus-visible {
  outline: 2px solid var(--ah-navy) !important;
  outline-offset: -4px !important;
}
/* Avada's caret beside "Conditions": cream, small, a little clear of the word. */
.fusion-header .fusion-main-menu .fusion-caret { margin-left: 6px; color: var(--ah-cream); font-size: 10px; }

/* Avada writes the global heading colour into dynamic CSS that loads after this
   stylesheet, which left bare headings on a navy band navy-on-navy, i.e. invisible.
   Cards keep navy type because they sit on white. */
.ah-band--navy :is(h1, h2, h3, h4, h5, h6):not(.ah-card *):not(.ah-step *):not(.ah-location *):not(.ah-principle *),
.ah-hero :is(h1, h2, h3) { color: var(--ah-text-invert) !important; }

/* Footer CTA sits in a narrow column; keep it on one line. */
.ah-footer .ah-btn { white-space: nowrap; padding-inline: 1.5rem; font-size: 0.8125rem; }

/* ---- Small screens -----------------------------------------------------------
   Long place names ("Buckinghamshire", "Cambridgeshire") are wider than a 375px
   column at the desktop display size, so the scale steps down and long words are
   allowed to break rather than run past the edge. */
:is(h1, h2, h3, .ah-display) {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Mobile header matches the desktop one: navy ground, reversed logo, cream menu. */
.fusion-mobile-menu-design-modern .fusion-header,
.fusion-header-wrapper .fusion-mobile-logo,
.fusion-mobile-logo { background-color: transparent; }
.fusion-header-wrapper .fusion-header,
.fusion-mobile-menu-design-modern .fusion-header-wrapper .fusion-header {
  background-color: var(--ah-navy) !important;
}
.fusion-mobile-logo img,
.fusion-header .fusion-mobile-logo img { filter: brightness(0) invert(1); }
.fusion-mobile-nav-holder,
.fusion-mobile-nav-holder ul,
.fusion-mobile-nav-holder li a { background-color: var(--ah-navy) !important; color: var(--ah-cream) !important; }
.fusion-mobile-nav-item a { color: var(--ah-cream) !important; border-color: rgba(249,245,242,.2) !important; }

/* Open mobile menu (Avada's header breakpoint is 800px). The header row is a flex
   row (above), so the opened menu panel became a narrow flex item squeezed beside
   the logo. It wraps onto its own full-width line under the logo and toggle instead.
   The closed header is unchanged: the panel is display:none until opened. */
@media (max-width: 800px) {
  .fusion-header .fusion-row { flex-wrap: wrap; }
  /* Avada bleeds the panel 30px past each side of the row with negative margins, so
     the basis adds them back and the divider rules run edge to edge. */
  .fusion-header .fusion-row > .fusion-mobile-nav-holder { flex: 0 0 calc(100% + 60px); order: 99; width: auto; max-width: none; margin-top: 16px; }
}

@media (max-width: 767px) {
  /* Stacked cards should not be pinned to a desktop min-height. */
  .ah-card { min-height: 0; max-width: 420px; }
  .ah-step, .ah-location { height: auto; }
  .fusion-header .fusion-row { justify-content: space-between; }
}

@media (max-width: 800px) {
  /* Keep the lockup clear of the menu toggle. */
  .fusion-header .fusion-logo img,
  .fusion-header .fusion-mobile-logo img { max-width: 58vw; height: auto; }
  .fusion-header .fusion-logo { max-width: 62vw; }
}

/* ---- C06 Doctify review widget ----------------------------------------------
   Third-party embed; its internal markup is not ours to style, so this only sets
   the frame it sits in. The widget renders on white, matching the comp. */
.ah-doctify {
  margin: 0 auto 48px;
  max-width: var(--ah-max-width);
  min-height: 72px;          /* reserve space so the band does not jump on load */
}
/* Doctify's script is currently blocked by Chrome (ERR_BLOCKED_BY_ORB), which
   leaves its container empty. Collapse the block rather than leave a gap; it
   reappears on its own the moment the script populates the container. */
.ah-doctify:has(> div:empty) { display: none; }
.ah-doctify iframe,
.ah-doctify > div { max-width: 100%; }

/* ---- Trust signals (C10 variant) --------------------------------------------
   Four columns on desktop, separated by hairlines rather than boxes. The polish
   comes from spacing, a centred bronze tick and the divider rhythm - no new
   colours or styles beyond the existing language. */
/* Auto inline margins: the light-band list measure caps this at 68ch, which
   otherwise leaves the four items pinned left of a 1200px container. */
.ah-trust {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ah-gap-lg);
}
@media (min-width: 600px)  { .ah-trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ah-trust { grid-template-columns: repeat(4, 1fr); gap: 0; } }

.ah-trust li {
  text-align: center;
  padding: var(--ah-gap-md) var(--ah-gap-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ah-gap-md);
  max-width: none;
}
/* Hairline dividers between columns only, never on the outer edges. */
@media (min-width: 1024px) {
  .ah-trust li + li { border-left: 1px solid var(--ah-rule); }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .ah-trust li:nth-child(even) { border-left: 1px solid var(--ah-rule); }
}

.ah-trust li::before {
  content: "";
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--ah-bronze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F9F5F2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}
/* Display serif here rather than body sans: it lifts four short factual strings
   into something that reads as considered, without adding colour or ornament. */
.ah-trust__text {
  font-family: var(--ah-font-display);
  font-size: 1.25rem;
  line-height: 1.32;
  color: var(--ah-navy);
  max-width: 16ch;
}
@media (min-width: 1024px) { .ah-trust__text { font-size: 1.3125rem; } }

/* Breathing room before the line that follows the strip. */
.ah-trust + .ah-lead { margin-top: var(--ah-gap-lg); }

/* ---- Conditions grid spacing -------------------------------------------------
   Client asked for ~40px between the boxes. The columns carry 20px of padding
   each side, so the cards must fill their column for the gap to measure 40px -
   a max-width here would add the leftover space to the visible gap. */
@media (min-width: 600px) {
  .ah-band--navy .ah-card { max-width: none; }
}

/* ---- Approach principles as cards --------------------------------------------- */
.ah-principle {
  background: var(--ah-white);
  padding: 2.25rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.ah-principle h3 { color: var(--ah-navy); margin: 0 0 var(--ah-gap-sm); }
.ah-principle p { color: var(--ah-navy); max-width: 30ch; margin: 0; }
.ah-band--navy .ah-principle :is(h3, p) { color: var(--ah-navy) !important; }
.ah-principle__rule { width: 40px; height: 1px; background: var(--ah-bronze); border: 0; margin: 0 auto var(--ah-gap-md); }

/* ---- Insurer carousel (C16) ---------------------------------------------------
   Deliberately understated: small, slow, low contrast, and it stops for anyone
   who prefers reduced motion. The track is duplicated so the loop is seamless;
   the duplicate is hidden from assistive tech so names are not read twice. */
.ah-insurers {
  --ah-marquee-duration: 48s;
  position: relative;
  overflow: hidden;
  margin: var(--ah-gap-md) 0 var(--ah-gap-lg);
  padding-block: var(--ah-gap-xs);
  /* Fade the edges so logos drift in and out rather than being clipped. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ah-insurers__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 3.5rem;
  animation: ah-marquee var(--ah-marquee-duration) linear infinite;
}
.ah-insurers:hover .ah-insurers__track,
.ah-insurers:focus-within .ah-insurers__track { animation-play-state: paused; }

.ah-insurers__item {
  flex: 0 0 auto;
  font-family: var(--ah-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ah-navy);
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity var(--ah-transition);
}
.ah-insurers__item img { height: 22px; width: auto; display: block; }
.ah-insurers:hover .ah-insurers__item { opacity: 0.8; }

/* Logo variant: insurers' own artwork, so full opacity (a fade would recolour
   it). One shared height, width left to each logo's own proportions. */
.ah-insurers--logos .ah-insurers__item,
.ah-insurers--logos:hover .ah-insurers__item { opacity: 1; }
.ah-insurers--logos .ah-insurers__item img { height: 28px; width: auto; max-width: none; object-fit: contain; }

@keyframes ah-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ah-insurers__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 2rem; }
  .ah-insurers__track [aria-hidden="true"] { display: none; }
  .ah-insurers { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 599px) {
  .ah-insurers { --ah-marquee-duration: 32s; }
  .ah-insurers__track { gap: 2.25rem; }
  .ah-insurers__item { font-size: 0.8125rem; }
  .ah-insurers--logos .ah-insurers__item img { height: 24px; }
}

/* ---- Tablet tier ---------------------------------------------------------------
   Avada keeps quarter and third columns side by side well below the width they
   need. At 768px that left the journey and clinic cards 144px wide with 28px of
   padding each side - about 88px of usable space. Two across is the honest
   maximum between 600px and 1024px. */
@media (min-width: 600px) and (max-width: 1023px) {
  .ah-band .fusion-layout-column.fusion_builder_column_1_4,
  .ah-band .fusion-layout-column.fusion_builder_column_1_3 {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }
  .ah-band .fusion-layout-column.fusion_builder_column_1_2 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  /* Stacked halves need air between the image and the copy. */
  .ah-band .fusion-layout-column.fusion_builder_column_1_2 + .fusion_builder_column_1_2 {
    margin-top: var(--ah-gap-lg);
  }
}

/* ==========================================================================
   Long-form content pages
   Condition pages run to 10,000 words. These rules keep the reading measure
   honest and give the page enough variation not to read as a wall of text,
   without leaving the homepage's design language.
   ========================================================================== */

.ah-band--light .fusion-text > :is(p, ul, ol, h3, h4) { max-width: var(--ah-measure); }
.ah-band--light .fusion-text > :is(h3, h4) { max-width: 34ch; }

/* Section heading rhythm inside a band. */
.ah-band .fusion-text h3 {
  font-size: var(--ah-h3);
  margin: 2.5rem 0 var(--ah-gap-sm);
}
.ah-band .fusion-text h3:first-child { margin-top: 0; }
.ah-band .fusion-text h4 {
  font-family: var(--ah-font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 1.75rem 0 var(--ah-gap-xs);
}

/* Lists ---------------------------------------------------------------------- */
.ah-list { list-style: none; margin: var(--ah-gap-md) 0; padding: 0; display: grid; gap: 0.6rem; }
.ah-list li { position: relative; padding-left: 1.6rem; }
.ah-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--ah-bronze);
  border-radius: 50%;
}
.ah-band--navy .ah-list li::before { background: var(--ah-cream); }

/* Pull quotes ---------------------------------------------------------------- */
.ah-pullquote {
  font-family: var(--ah-font-display);
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--ah-navy);
  border-left: 3px solid var(--ah-bronze);
  padding: 0 0 0 var(--ah-gap-md) !important;
  margin: var(--ah-gap-lg) 0;
  max-width: 46ch;
  background: none !important;
}
.ah-attrib {
  font-size: var(--ah-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ah-navy);
  margin-top: calc(var(--ah-gap-md) * -1 + 0.25rem);
}

/* An inline call to action inside running copy. */
.ah-inline-cta {
  background: var(--ah-stone);
  border-left: 3px solid var(--ah-bronze);
  padding: var(--ah-gap-md);
  margin: var(--ah-gap-lg) 0;
  font-weight: 600;
  max-width: 56ch;
}
.ah-band--light[style*="E8E5DE"] .ah-inline-cta { background: var(--ah-white); }

/* References, collapsed by default -------------------------------------------- */
.ah-refs summary { font-family: var(--ah-font-body); font-size: var(--ah-small); font-weight: 700;
                   text-transform: uppercase; letter-spacing: var(--ah-ls-eyebrow); }
.ah-refs .ah-list li { font-size: var(--ah-small); }
.ah-refs { max-width: none; }

/* Tables ----------------------------------------------------------------------- */
.ah-table-wrap { margin: var(--ah-gap-lg) 0; max-width: none; }
.ah-table th { background: var(--ah-stone); font-family: var(--ah-font-body); }
.ah-band--light[style*="E8E5DE"] .ah-table th { background: var(--ah-white); }

/* Quick answer sits at the top of every condition page. */
.ah-quick-answer { max-width: none; }
.ah-quick-answer p:last-child { margin-bottom: 0; }
.ah-quick-answer h2 { font-size: 0.8125rem; }

/* Page-header band on inner pages. */
.ah-band--navy .ah-lead { color: var(--ah-text-invert); }

/* ---- Legal documents ----------------------------------------------------------
   One continuous column at a comfortable measure, with numbered sections as
   headings. Chopping twenty numbered clauses into alternating bands would read
   as noise rather than structure. */
.ah-legal { max-width: 74ch; }
.ah-legal h2.ah-legal-h {
  font-size: var(--ah-h3);
  margin: 3rem 0 var(--ah-gap-sm);
  padding-top: var(--ah-gap-md);
  border-top: 1px solid var(--ah-rule);
}
.ah-legal h2.ah-legal-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ah-legal h3 { font-size: 1.125rem; margin: 1.75rem 0 var(--ah-gap-xs); }
.ah-legal :is(p, ul) { max-width: none; }
.ah-legal .ah-table-wrap { font-size: var(--ah-small); }

/* ---- Clinic cards on the Locations page ---------------------------------------- */
.ah-clinic {
  background: var(--ah-white);
  padding: 2.25rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--ah-bronze);
}
.ah-clinic h2 { font-size: var(--ah-h3); margin: 0 0 var(--ah-gap-xs); }
.ah-clinic__place { font-size: var(--ah-small); font-weight: 600; letter-spacing: 0.04em;
                    text-transform: uppercase; color: var(--ah-navy); margin: 0 0 var(--ah-gap-sm); }
.ah-clinic__addr { margin: 0 0 var(--ah-gap-sm); max-width: 32ch; }
.ah-clinic__links { font-size: var(--ah-small); margin: 0 0 var(--ah-gap-md); }
.ah-clinic__links a { color: var(--ah-navy); border-bottom: 1px solid var(--ah-bronze); text-decoration: none; }
.ah-clinic > p:last-child { margin-top: auto; margin-bottom: 0; }

/* ---- Enquiry form ------------------------------------------------------------- */
.ah-form { max-width: 640px; }
.ah-form .ah-req { font-weight: 400; color: var(--ah-navy); }
.ah-form .ah-opt { font-weight: 400; opacity: 0.75; }
.ah-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ah-form-privacy { margin: var(--ah-gap-md) 0 var(--ah-gap-lg); max-width: 60ch; }
.ah-form button[type="submit"] { border: 0; font-family: var(--ah-font-body); }

.ah-form-errors {
  background: var(--ah-white);
  border-left: 4px solid #A3281E;
  padding: var(--ah-gap-md) var(--ah-gap-lg);
  margin-bottom: var(--ah-gap-lg);
}
.ah-form-errors h3 { font-size: var(--ah-h4); margin: 0 0 var(--ah-gap-xs); color: #A3281E; }
.ah-form-errors ul { margin: 0; padding-left: 1.1rem; }
.ah-form-errors a { color: #A3281E; font-weight: 600; }

.ah-form-success {
  background: var(--ah-white);
  border-left: 4px solid var(--ah-bronze);
  padding: var(--ah-gap-lg);
  margin-bottom: var(--ah-gap-lg);
}
.ah-form-success h3 { margin-top: 0; }

/* Avada's dynamic CSS defines h1-h6 at the same specificity as our component
   rules but loads after them, so component headings that intentionally break
   from the global scale need one extra class to win. */
.ah-band .ah-quick-answer h2 {
  font-family: var(--ah-font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ah-ls-eyebrow);
  color: var(--ah-bronze);
  margin: 0 0 var(--ah-gap-sm);
  line-height: 1.2;
}
.ah-band .ah-step__title { font-size: var(--ah-h4); margin: 0 0 var(--ah-gap-xs); }
.ah-band .ah-clinic h2,
.ah-band .ah-clinic h3 { font-size: var(--ah-h3); margin: 0 0 var(--ah-gap-xs); }
.ah-band .ah-card h2,
.ah-band .ah-card h3 { font-size: var(--ah-h4); margin: 0 0 var(--ah-gap-xs); }

/* The testimonial reset strips every blockquote back, and Avada styles
   .fusion-text blockquote above our class. Pull quotes in running copy need
   both outranking, so they are re-established here at a higher specificity. */
.ah-band blockquote.ah-pullquote {
  font-family: var(--ah-font-display) !important;
  font-size: 1.375rem;
  line-height: 1.4;
  font-style: normal;
  color: var(--ah-navy);
  border-left: 3px solid var(--ah-bronze) !important;
  padding: 0 0 0 var(--ah-gap-md) !important;
  margin: var(--ah-gap-lg) 0;
  max-width: 46ch;
  background: none !important;
}
.ah-band--navy blockquote.ah-pullquote {
  color: var(--ah-text-invert);
  border-left-color: var(--ah-bronze) !important;
}

/* Contact details inside a closing CTA band. */
.ah-contact-list { max-width: 62ch; margin: var(--ah-gap-lg) auto; display: grid; gap: var(--ah-gap-sm); }
.ah-contact-row { display: grid; grid-template-columns: 9rem 1fr; gap: var(--ah-gap-sm); text-align: left; }
.ah-contact-row dt { font-weight: 700; color: var(--ah-text-invert); }
.ah-contact-row dd { margin: 0; color: var(--ah-text-invert); }
@media (max-width: 599px) { .ah-contact-row { grid-template-columns: 1fr; gap: 0; } }

/* ==========================================================================
   Accessibility corrections found in the full-site QA pass
   ========================================================================== */

/* 1. Focus visibility. The original rule used :where(), which has zero
      specificity, so Avada's `outline: none` beat it and nothing showed a focus
      ring at all. WCAG 2.4.7 - this needs to win outright. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
details:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ah-bronze) !important;
  outline-offset: 2px !important;
  border-radius: 0;
}
.ah-band--navy a:focus-visible,
.ah-band--navy button:focus-visible,
.ah-hero a:focus-visible,
.fusion-header a:focus-visible,
.ah-footer a:focus-visible,
.ah-footer button:focus-visible { outline-color: var(--ah-cream) !important; }

/* 2. Links inside navy bands were inheriting the global navy link colour,
      rendering navy on navy - a contrast ratio of 1. */
.ah-band--navy a:not(.ah-btn):not(.ah-link-more),
.ah-hero a:not(.ah-btn):not(.ah-link-more) {
  color: var(--ah-cream);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ah-bronze);
}
.ah-band--navy a:not(.ah-btn):hover,
.ah-hero a:not(.ah-btn):hover { text-decoration-color: var(--ah-cream); }

/* 3. The active navigation item was bronze on navy, which measures 1.86:1.
      Cream with a bronze underline keeps the highlight without the failure,
      and does not rely on colour alone. */
.fusion-header .fusion-main-menu .current-menu-item > a,
.fusion-header .fusion-main-menu .current-menu-ancestor > a,
.fusion-is-sticky .fusion-main-menu .current-menu-item > a {
  color: var(--ah-cream) !important;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ah-bronze);
}
.fusion-header .fusion-main-menu a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ==========================================================================
   Long-page layout components
   Devices for making a 7,000-word clinical page scannable: a jump list, toggles
   for subsections, image/text splits, call-out cards. All built from the
   homepage's existing language - no new palette, type or button treatment.
   ========================================================================== */

/* ---- On this page -------------------------------------------------------- */
.ah-toc {
  background: var(--ah-white);
  border-top: 3px solid var(--ah-bronze);
  padding: var(--ah-gap-lg);
  position: sticky;
  top: var(--ah-sticky-clear);
}
.ah-toc h2 {
  font-family: var(--ah-font-body) !important;
  font-size: var(--ah-eyebrow) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ah-ls-eyebrow);
  color: var(--ah-navy);
  margin: 0 0 var(--ah-gap-sm) !important;
}
.ah-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 0.45rem; }
.ah-toc li { counter-increment: toc; font-size: var(--ah-small); line-height: 1.35; }
.ah-toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ah-bronze);
  font-weight: 700;
  margin-right: 0.6rem;
}
.ah-toc a { color: var(--ah-navy); text-decoration: none; border-bottom: 1px solid transparent; }
.ah-toc a:hover { border-bottom-color: var(--ah-bronze); }
@media (max-width: 1023px) { .ah-toc { position: static; } }

/* ---- Clearing the sticky site header (sitewide, D-109) ----------------------
   One measure for everything that must stay clear of the sticky header:
   --ah-sticky-clear (tokens.css). Anchor jumps use it as scroll padding;
   Avada's native sticky columns take it as their offset, overriding the fixed
   120px stored in each column's settings, so every page follows one value. */
html { scroll-padding-top: var(--ah-sticky-clear); }
.fusion-layout-column.awb-sticky { --awb-sticky-offset: var(--ah-sticky-clear) !important; }
/* Sticky columns end with their own row: full-width rows that follow a sticky column are built in
   a separate container (tools/editorial_build.py, sticky_band), so the column is released before them. */


/* ---- Toggles ------------------------------------------------------------- */
/* Native details/summary: keyboard and screen-reader support without scripting,
   and the content stays searchable in-page. */
.ah-toggles { margin-top: var(--ah-gap-lg); max-width: none; }
.ah-toggles details {
  background: var(--ah-white);
  border-bottom: 1px solid var(--ah-rule);
  margin-bottom: 2px;
}
.ah-toggles summary {
  padding: var(--ah-gap-md) var(--ah-gap-lg);
  font-size: 1.125rem;
  gap: var(--ah-gap-md);
}
.ah-toggles details[open] summary { border-bottom: 1px solid var(--ah-rule); }
.ah-toggles details > :not(summary):not(.ah-highlight):not(.ah-quick-answer):not(.ah-table-wrap) { padding: var(--ah-gap-md) var(--ah-gap-lg) 0; }
.ah-toggles details > :last-child { padding-bottom: var(--ah-gap-md); }
.ah-toggles details :is(p, ul, ol) { max-width: var(--ah-measure); }
.ah-band--light[style*="F9F5F2"] .ah-toggles details,
.ah-band--light[style*="F8F5EE"] .ah-toggles details { background: var(--ah-white); }
.ah-band--light[style*="E8E5DE"] .ah-toggles details { background: var(--ah-cream); }

/* ---- Image beside copy --------------------------------------------------- */
.ah-section-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ah-img-col .fusion-column-wrapper { height: 100%; }
@media (max-width: 599px) { .ah-section-img img { aspect-ratio: 3 / 2; } }

/* ---- Highlight panel ------------------------------------------------------ */
.ah-highlight {
  background: var(--ah-white);
  border-left: 4px solid var(--ah-bronze);
  padding: var(--ah-gap-lg) var(--ah-gap-lg) var(--ah-gap-md);
  max-width: none;
}
.ah-band--light[style*="F9F5F2"] .ah-highlight { background: var(--ah-stone); }
.ah-highlight > :first-child { margin-top: 0; }

/* ---- Mini cards ----------------------------------------------------------- */
.ah-minicards {
  display: grid;
  gap: var(--ah-gap-md);
  grid-template-columns: 1fr;
  margin-top: var(--ah-gap-lg);
  max-width: none;
}
@media (min-width: 600px)  { .ah-minicards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ah-minicards { grid-template-columns: repeat(3, 1fr); } }
.ah-minicard {
  background: var(--ah-white);
  padding: var(--ah-gap-md) var(--ah-gap-lg);
  border-top: 2px solid var(--ah-bronze);
  font-size: var(--ah-small);
}

/* ---- Patient journey cards ------------------------------------------------- */
.ah-journeys {
  display: grid;
  gap: var(--ah-gap-lg);
  grid-template-columns: 1fr;
  margin-top: var(--ah-gap-lg);
  max-width: none;
}
@media (min-width: 768px) { .ah-journeys { grid-template-columns: repeat(2, 1fr); } }
.ah-journey {
  background: var(--ah-white);
  padding: var(--ah-gap-lg);
  border-top: 3px solid var(--ah-bronze);
}
.ah-journey h3 { font-size: var(--ah-h4) !important; margin: 0 0 var(--ah-gap-sm) !important; }
.ah-journey :is(p, ul) { max-width: none; font-size: var(--ah-small); }

/* A heading that belongs to the intro column, e.g. "About Me". */
.ah-lead-h {
  font-size: var(--ah-h3) !important;
  margin: var(--ah-gap-lg) 0 var(--ah-gap-sm) !important;
}

/* "Read more" disclosure inside a section: quieter than a subsection toggle. */
.ah-readmore { margin-top: var(--ah-gap-md); }
.ah-readmore details { background: transparent; border-bottom: 0; }
.ah-readmore summary {
  padding: var(--ah-gap-sm) 0;
  font-family: var(--ah-font-body);
  font-size: var(--ah-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ah-ls-eyebrow);
  color: var(--ah-navy);
  border-bottom: 1px solid var(--ah-bronze);
  display: inline-flex;
  width: auto;
}
.ah-readmore details[open] summary { border-bottom-color: var(--ah-rule); }
.ah-readmore details > :not(summary):not(.ah-highlight):not(.ah-quick-answer):not(.ah-table-wrap) { padding: var(--ah-gap-md) 0 0; }

/* Sub-heading inside a closing CTA band. */
.ah-cta-sub {
  font-size: var(--ah-h3) !important;
  color: var(--ah-text-invert) !important;
  text-align: center;
  margin: var(--ah-gap-lg) 0 var(--ah-gap-sm) !important;
}

/* Compact button, for use inside a table cell. */
.ah-btn--sm { padding: 0.6rem 1.1rem; font-size: 0.75rem; white-space: nowrap; }

/* A CTA that follows a paragraph of prose inside a callout or body band. The
   button sits on its own line rather than trailing the last sentence. */
.ah-cta-inline {
	margin: 20px 0 0;
}

/* ---- Contact page, 25/10/2026 (D-111) ---------------------------------------
   Scoped to classes only the Contact page uses. */
.ah-contact-portrait .fusion-imageframe, .ah-contact-enquiry__img .fusion-imageframe { margin: 0 !important; display: block; }
.ah-contact-portrait img, .ah-contact-enquiry__img img { width: 100%; display: block; }
@media (min-width: 1025px) { .fusion-body .ah-contact-portrait > .fusion-column-wrapper { padding-left: 8%; } }
@media (max-width: 640px) { .fusion-body .ah-contact-portrait, .fusion-body .ah-contact-enquiry__img { margin-top: 40px !important; } }
/* Clinic Locations across the full width: heading beside the introduction, the clinics table below. */
.fusion-body .ah-contact-clinics__table { margin-top: 48px !important; }
.ah-contact-clinics__table .ah-table-wrap { margin: 0; }
.ah-contact-clinics__table .ah-table { width: 100%; }
@media (min-width: 1025px) { .fusion-body .ah-contact-clinics__intro > .fusion-column-wrapper { padding-left: 6%; } }
@media (max-width: 1024px) { .fusion-body .ah-contact-clinics__intro { margin-top: 8px !important; } }
/* Send an Enquiry beside a photograph; stacked below 1025px with the photograph after the form. */
@media (max-width: 1024px) { .fusion-body .ah-contact-enquiry__form > .fusion-column-wrapper { padding-right: 0 !important; } .fusion-body .ah-contact-enquiry__img { margin-top: 48px !important; } }
/* Booking an Appointment on Andy blue: cream copy, links underlined in bronze, focus in cream. */
.ah-contact-booking .fusion-text a { color: var(--ah-text-invert); text-decoration: underline; text-decoration-color: var(--ah-bronze); text-underline-offset: 4px; }
.ah-contact-booking .fusion-text a:hover { color: var(--ah-white); text-decoration-color: var(--ah-cream); }
/* Clinics table as stacked clinic blocks on phones; the same cells, labelled from the column headings (D-112). */
@media (max-width: 640px) {
  .ah-contact-clinics__table .ah-table-wrap { overflow: visible; }
  .ah-table--stack, .ah-table--stack tbody, .ah-table--stack tr, .ah-table--stack td { display: block; width: 100%; box-sizing: border-box; }
  .ah-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ah-table--stack tr { background: var(--ah-white); border-top: 2px solid var(--ah-bronze); padding: 22px 22px 24px; margin-bottom: 16px; }
  .ah-table--stack td { border: 0; padding: 0; font-size: 1rem; line-height: 1.55; }
  .ah-table--stack td + td { margin-top: 12px; }
  .ah-table--stack td[data-label="Clinic"] { font-family: var(--ah-font-display); font-size: var(--ah-h4); line-height: 1.3; color: var(--ah-navy); }
  .ah-table--stack td[data-label="Location"]::before, .ah-table--stack td[data-label="Address"]::before {
    content: attr(data-label); display: block; font-size: var(--ah-eyebrow); font-weight: 600; letter-spacing: var(--ah-ls-eyebrow);
    text-transform: uppercase; color: var(--ah-text-muted); margin-bottom: 2px;
  }
  .ah-table--stack td[data-label="Book Now"] { margin-top: 18px; }
  .ah-table--stack td[data-label="Book Now"] .ah-btn { display: block; text-align: center; }
}
/* Before You Contact Us beside What Happens Next: one pair of equal white boxes (D-113). */
.fusion-body .ah-contact-pair .ah-contact-pair__box > .fusion-column-wrapper { height: 100%; box-sizing: border-box; justify-content: flex-start !important; }
@media (max-width: 1024px) { .fusion-body .ah-contact-pair .ah-contact-pair__box > .fusion-column-wrapper { padding: 36px 32px 40px !important; } }
@media (max-width: 640px) {
  .fusion-body .ah-contact-pair .ah-contact-pair__box > .fusion-column-wrapper { padding: 30px 24px 32px !important; }
  .fusion-body .ah-contact-pair .ah-contact-pair__box + .ah-contact-pair__box { margin-top: 20px !important; }
}

/* ==========================================================================
   Editor-safety layer (added 2026-11-18, see audit/LOG.md Phase 4).

   Everything in this section exists so that ordinary edits in the Avada
   visual editor cannot break the design. Nothing above this line was changed.
   ========================================================================== */

/* ---- Condition card icons (homepage, C12) ---------------------------------
   The icons used to be inline <svg> inside each card's Text Block. Avada's
   visual editor (TinyMCE) deletes <svg> whenever a Text Block is saved, which
   is how they disappeared on 2026-11-18. They are now drawn here, keyed to the
   card's own "Learn more" link, so editing the card text can never remove them.
   A card that links to a condition page gets that condition's icon; a card with
   no matching link simply has no icon. Artwork is unchanged from the originals
   (page 4, revision 520). Size and spacing match the old .ah-card__icon. */
.ah-card:has(a[href*="/conditions/trigger-finger"])::before,
.ah-card:has(a[href*="/conditions/finger-joint-arthritis"])::before,
.ah-card:has(a[href*="/conditions/carpal-tunnel-syndrome"])::before,
.ah-card:has(a[href*="/conditions/wrist-arthritis"])::before,
.ah-card:has(a[href*="/conditions/base-of-thumb-arthritis"])::before,
.ah-card:has(a[href*="/conditions/thumb-joint-replacement"])::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-bottom: var(--ah-gap-sm);
  background-color: var(--ah-navy);
  -webkit-mask: var(--ah-card-icon) center / contain no-repeat;
          mask: var(--ah-card-icon) center / contain no-repeat;
}
.ah-card:has(a[href*="/conditions/trigger-finger"]) { --ah-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4v6.5a4 4 0 0 1-4 4h-3.5a4 4 0 0 0-4 4V28'/%3E%3Ccircle cx='21.5' cy='21.5' r='5.5'/%3E%3C/svg%3E"); } /* Trigger Finger */
.ah-card:has(a[href*="/conditions/finger-joint-arthritis"]) { --ah-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Ccircle cx='21.5' cy='21.5' r='5.5'/%3E%3Cpath d='M14.4 14.4l3.2 3.2'/%3E%3C/svg%3E"); } /* Finger Joint Arthritis */
.ah-card:has(a[href*="/conditions/carpal-tunnel-syndrome"]) { --ah-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8.5h22'/%3E%3Cpath d='M5 23.5h22'/%3E%3Cpath d='M5 16.5q3.7-6 7.3 0t7.3 0t7.3 0'/%3E%3C/svg%3E"); } /* Carpal Tunnel Syndrome */
.ah-card:has(a[href*="/conditions/wrist-arthritis"]) { --ah-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6.5v7M15.3 5v8.5M20.6 5v8.5M25.5 6.5v7'/%3E%3Cpath d='M6 14h21'/%3E%3Crect x='11.5' y='18.5' width='10.5' height='9.5' rx='3'/%3E%3C/svg%3E"); } /* Wrist Arthritis */
.ah-card:has(a[href*="/conditions/base-of-thumb-arthritis"]) { --ah-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 27.5V14.5l5.5-8.5a3 3 0 0 1 4.2 3.2L19 14.5h6.2a2.6 2.6 0 0 1 2.5 3.3l-2.2 7.6a3 3 0 0 1-2.9 2.1z'/%3E%3Crect x='4' y='14.5' width='6.5' height='13' rx='1.2'/%3E%3C/svg%3E"); } /* Base of Thumb Arthritis */
.ah-card:has(a[href*="/conditions/thumb-joint-replacement"]) { --ah-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M26.5 5.5 19.9 12.1'/%3E%3Ccircle cx='16' cy='16' r='5.2'/%3E%3Cpath d='M12.1 19.9 5.5 26.5'/%3E%3C/svg%3E"); } /* Thumb Joint Replacement */

/* ---- Readable text and links that an editor adds ---------------------------
   Measured 2026-11-18 with audit/tools/newtext-probe.js: in 41 places a new
   paragraph or link typed in the visual editor would have come out
   navy-on-navy, cream-on-cream or cream-on-white, because a box inherits the
   text colour of the band around it rather than matching its own background.
   (Cheryl hit exactly this on 2026-11-18 and worked round it with inline
   colours on the contact panels.) These rules give each kind of box the colour
   that matches its own background. They only touch plain paragraphs and links
   (no class, no inline style), so existing designed elements and any colour
   chosen in the editor are left alone. */

/* Navy boxes: a column given the navy background in the builder, and the
   navy components that sit inside Text Blocks. */
.fusion-body .fusion-layout-column[style*="--awb-bg-color:#2d3e50" i] .fusion-text > p:not([class]):not([style]),
.fusion-body .ah-ed-safetyfull .fusion-text > p:not([class]):not([style]) {
  color: var(--ah-text-invert);
}
.fusion-body :is(
  .fusion-layout-column[style*="--awb-bg-color:#2d3e50" i],
  .ah-ed-safetyfull, .ah-ed-price, .ah-ed-aboutcard, .ah-ab-portrait__quote, .ah-ed-quote--card
) a:not([class]):not([style]):where(.fusion-text *) {
  color: var(--ah-text-invert);
  text-decoration-line: underline;
}

/* Light boxes inside navy bands: the cream contact panels and the white
   homepage cards. */
.fusion-body .fusion-layout-column[style*="--awb-bg-color:#f9f5f2" i] .fusion-text > :is(p, div):not([class]):not([style]) {
  color: var(--ah-navy);
}
.fusion-body :is(
  .fusion-layout-column[style*="--awb-bg-color:#f9f5f2" i], .ah-card, .ah-principle
) a:not([class]):not([style]):where(.fusion-text *) {
  color: var(--ah-navy);
  text-decoration-line: underline;
}
