/* 11M addition (not from the client export): a subtle, on-brand flowing-wave
 * texture on the plain white sections — a light-mode adaptation of the dark-navy
 * line patterns from the client's social media. Faint brand-blue waves on white.
 * Only plain .cl-sec (white) gets it; tinted (--surface), dark (--dark/--navy),
 * and photo sections are excluded so nothing dark or image-backed is touched.
 */
.cl-sec:not([class*="--surface"]):not([class*="--dark"]):not([class*="--navy"]):not([class*="--photo"]) {
  background-image: url("/textures/topo.svg");
  background-repeat: repeat;
  background-size: 540px 540px;
  background-position: center;
}

/* -------- Rounded-corner consistency pass --------
 * The client's --rd-radius token was 0px, so everything using it rendered sharp
 * while a few components hardcoded a radius — an inconsistent mix. Land on
 * rounded: set the token, give buttons a slight radius, and round the cards that
 * were still sharp. (Token-based media/inputs/FAQ/video round via the token.) */
/* The token drove most sharp corners; a "Divi fidelity: square corners" block
 * then forced a batch of cards + images to border-radius:0. Override both. */
:root,
.rd-root {
  --rd-radius: 12px;
}
/* Buttons (incl. the Read-More button-link): a slight radius. overflow:hidden on
 * .cl-btn already clips the hover fill to the rounded shape. */
.cl-btn,
.rd-btn,
.np-btn,
.cl-mcard__link,
.cl-footer__phone {
  border-radius: 6px;
}
/* Cards that the square-corners block (or no rule) left sharp. */
.cl-badgecard,
.cl-step,
.cl-fsplit__card,
.cl-check,
.cl-check--cta,
.cl-bio__creds,
.cl-bio__card,
.cl-cmp__col,
.cl-mcard,
.cl-ratecard,
.cl-rev,
.cl-linkrow,
.cl-svccard {
  border-radius: 12px;
}
.cl-mcard {
  overflow: hidden; /* clip the card's top image to the rounded corners */
}
.cl-tslider .rd-ccard {
  border-radius: 12px;
}
/* Images that were squared — round both the media wrapper and the <img> inside
 * it, so corners are rounded whether the image is direct or wrapped. */
.cl-hero__img,
.cl-bio__portrait,
.cl-checks__sideimg,
.cl-checks__side--img, .cl-checks__side--img img,
.cl-fsplit__media, .cl-fsplit__media img,
.cl-fb__media, .cl-fb__media img,
.cl-mintro__media, .cl-mintro__media img,
.cl-reshub__media, .cl-reshub__media img {
  border-radius: 12px;
}

/* Centered closing sections (.cl-si--centered) trim their bottom padding to 24px,
 * which looks cramped where they're the last block before a CTA band / footer:
 * Mitchell's Haven "A Legacy That Lives On" (--surface) and the Service Areas
 * "Expert Hearing Care, Closer to Home" (--light). Give them more bottom room. */
.cl-si--surface.cl-si--centered,
.cl-si--light.cl-si--centered {
  padding-bottom: 72px;
}

/* Keep the "Online and over-the-counter" comparison card (the non-highlighted
 * column) on a solid white background, so the section texture doesn't show
 * through it. */
.cl-cmp__col:not(.cl-cmp__col--hi) {
  background: #ffffff;
}

/* Credentials & standards block (under Emily's signature in the home bio):
 * solid white card so the section texture doesn't show through it. */
.cl-bio__creds {
  background: #ffffff;
}

/* "What Happens at Your First Appointment" step numbers: invert to a white
 * numeral on a purple circle (was purple-on-white), and a touch smaller. */
.cl-steps--4 .cl-step__n {
  background: #A53BD8;
  color: #ffffff;
  width: 46px;
  height: 46px;
}

/* Header utility bar fix. rd-base.css has `body>.rd-root>div{display:contents}`
 * (intended for the export's React wrapper divs). In our flattened chrome,
 * .cl-ubar is the only <div> that is a direct child of .rd-root, so it inherited
 * display:contents and its dark bar (background + padding) stopped painting,
 * leaving its light text invisible on white. Restore its box on desktop and keep
 * it hidden on mobile, exactly as the source does. */
.rd-root > .cl-ubar {
  display: block;
}
@media (max-width: 767px) {
  .rd-root > .cl-ubar {
    display: none;
  }
}

/* The export's Next.js global reset wasn't among the captured stylesheets. Two
 * parts of it matter and are restored here:
 *  - box-sizing:border-box — the client CSS assumes it (e.g. width:100% buttons
 *    with padding); without it they render content-box and overflow (the
 *    service-page sidebar Book/Call buttons spilled past their card).
 *  - body margin 0 — its absence showed the browser's default 8px white frame. */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}

/* Privacy Policy link in the footer's copyright bar: match the legal text. */
.cl-footer__legal a {
  color: inherit;
  text-decoration: underline;
}

/* Active top-level header nav item (current section): brand-blue to stand out. */
.rd-nav__links a[aria-current="page"] {
  color: var(--rd-primary, #478ec0);
}

/* "What Are the Signs of Hearing Loss?" — make the sign cards more compact:
 * less top/bottom padding (was 20px) and a smaller min-height (was 96px). The
 * CTA card in the same section is left alone. */
.cl-checks--ctacol .cl-check:not(.cl-check--cta) {
  padding-top: 22px;
  padding-bottom: 22px;
  min-height: 64px;
}
