/* CHS Signal: styles theme.json cannot express. Contrast pairs checked to WCAG 2.2 AA. */

/* Text size control (utility bar) */
html.chs-text-2 { font-size: 112.5%; }
html.chs-text-3 { font-size: 125%; }

/* Skip link */
.chs-skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: #0E1A14; color: #fff; padding: .75rem 1.25rem; border-radius: 12px; font-weight: 800; }
.chs-skip-link:focus { top: 1rem; }

/* Focus: always visible, never hidden by the sticky header (WCAG 2.4.7, 2.4.11) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #0E1A14; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.is-style-signal-dark :where(a, button, input, select, textarea):focus-visible,
.chs-dark :where(a, button, input, select, textarea):focus-visible { outline-color: #C4F264; box-shadow: 0 0 0 6px #06311F; }
html { scroll-padding-top: 160px; }

/* Utility bar */
.chs-utility { background: #0E1A14; color: #fff; font-size: 15px; }
.chs-utility a { color: #fff; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.chs-utility a.chs-quick { color: #C4F264; font-weight: 800; }
.chs-utility .chs-muted { color: #B9CCBF; }
.chs-textsize { display: inline-flex; gap: 4px; align-items: center; }
.chs-textsize button { width: 36px; height: 36px; border-radius: 10px; border: 2px solid #3E5A4B; background: transparent; color: #fff; font: 800 14px 'Open Sans', sans-serif; cursor: pointer; }
.chs-textsize button:nth-of-type(2) { font-size: 17px; }
.chs-textsize button:nth-of-type(3) { font-size: 20px; }
.chs-textsize button[aria-pressed="true"] { background: #C4F264; color: #06311F; border-color: #C4F264; }

/* Header */
.chs-header { background: #06311F; color: #fff; border-bottom: 1px solid #1E5A3D; }
.chs-header .wp-block-navigation a { color: #fff; min-height: 48px; display: inline-flex; align-items: center; padding: 0 14px; text-decoration: none; }
.chs-header .wp-block-navigation .current-menu-item > a,
.chs-header .wp-block-navigation a[aria-current="page"] { color: #C4F264; box-shadow: inset 0 -4px 0 #C4F264; }
.chs-logo-plate { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; padding: 10px 16px; }
.chs-logo-plate img { height: 46px; width: auto; display: block; }
.chs-icon-btn { width: 52px; height: 52px; border-radius: 999px; border: 2px solid #C4F264; color: #C4F264; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }

/* Dark bands */
.is-style-signal-dark, .chs-dark { background: #06311F; color: #fff; position: relative; overflow: hidden; }
.is-style-signal-dark :where(h1, h2, h3, h4), .chs-dark :where(h1, h2, h3, h4) { color: #fff; }
.is-style-signal-dark a:not(.wp-block-button__link), .chs-dark a:not(.wp-block-button__link) { color: #fff; }
.is-style-signal-dark p, .chs-dark p { color: #E4EEE3; }
.chs-eyebrow { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: #C4F264; }
.chs-accent { color: #C4F264; }

/* Signal rings behind hero images */
.chs-rings { position: relative; }
.chs-rings::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background:
  radial-gradient(circle, transparent 54%, rgba(196,242,100,.55) 54.4%, transparent 55.2%),
  radial-gradient(circle, transparent 64%, rgba(196,242,100,.32) 64.4%, transparent 65.2%),
  radial-gradient(circle, transparent 74%, rgba(196,242,100,.16) 74.4%, transparent 75.2%); pointer-events: none; }
.is-style-signal-ring img, .chs-rings img { border-radius: 50% !important; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 0 0 10px #C4F264; }

/* Sound-wave divider at the foot of dark heroes */
.chs-wave { display: block; width: 100%; height: 80px; margin-top: -1px; }

/* Buttons */
.wp-block-button__link { min-height: 56px; display: inline-flex; align-items: center; }
.is-style-signal-lime .wp-block-button__link { background: #C4F264 !important; color: #06311F !important; }
.is-style-signal-outline .wp-block-button__link { background: transparent !important; border: 2px solid currentColor; color: #056038 !important; }
.is-style-signal-dark .is-style-signal-outline .wp-block-button__link { color: #fff !important; }

/* Cards */
.is-style-signal-card, .chs-card { background: #fff; border: 2px solid #DDE7DE; border-radius: 28px; padding: 28px; box-sizing: border-box; }
.chs-num { font: 900 56px/1 Montserrat, Arial, sans-serif; color: transparent; -webkit-text-stroke: 2px #056038; }
.chs-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #E4EEE3; color: #06311F; font-weight: 700; font-size: 15px; }

/* Forms (shared by CHS demo forms and Gravity Forms) */
.chs-form { display: flex; flex-direction: column; gap: 18px; }
.chs-field { display: flex; flex-direction: column; gap: 6px; }
.chs-field label, .chs-form legend { font-weight: 700; }
.chs-field .chs-hint { font-size: 15px; color: #3C4C43; }
.chs-input { min-height: 56px; padding: 0 16px; border-radius: 14px; border: 2px solid #3C4C43; font: 400 18px 'Open Sans', sans-serif; color: #0E1A14; background: #fff; box-sizing: border-box; width: 100%; }
textarea.chs-input { min-height: 140px; padding: 14px 16px; }
.chs-input[aria-invalid="true"] { border-color: #B3261E; border-width: 3px; }
.chs-field-error { color: #8C1D18; font-weight: 700; }
.chs-choice { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.chs-choice input { width: 24px; height: 24px; accent-color: #056038; margin: 0; flex: none; }
.chs-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.chs-error-summary { border: 3px solid #B3261E; background: #FDECEA; color: #8C1D18; border-radius: 20px; padding: 18px 22px; }
.chs-error-summary h2 { color: #8C1D18; font-size: 1.375rem; margin: 0 0 8px; }
.chs-error-summary a { color: #8C1D18; font-weight: 700; }
.chs-success { border: 3px solid #056038; background: #EAF7CF; color: #06311F; border-radius: 20px; padding: 22px; }
.chs-submit { min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0; background: #056038; color: #fff; font: 800 18px 'Open Sans', sans-serif; cursor: pointer; align-self: flex-start; }

/* Service notice banner */
.chs-banner { background: #FFE3A3; border-bottom: 3px solid #9A6200; color: #5C3B00; }
.chs-banner p { margin: 0; color: #5C3B00 !important; }

/* Clinic directory */
.chs-directory { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.chs-directory__filters { flex: 1 1 260px; max-width: 320px; }
.chs-directory__results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.chs-clinic-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.chs-clinic-card h3 { margin: 0; font-size: 1.5rem; }
.chs-meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* Responsive: stack at phone width */
@media (max-width: 600px) {
  .chs-clinic-card { grid-template-columns: 1fr; }
  .chs-utility .chs-hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Bands used by patterns */
.chs-lime-band { background: #C4F264; color: #06311F; }
.chs-lime-band :where(h2, p) { color: #06311F; }
.chs-stat { font: 900 clamp(44px, 5vw, 72px)/1 Montserrat, Arial, sans-serif; letter-spacing: -0.03em; display: block; }
.chs-source { font-size: 14px; font-weight: 600; }
.chs-sun-band { background: #FFC44D; color: #0E1A14; }
.chs-sun-band :where(h2, p) { color: #0E1A14; }
.chs-sun-band .wp-block-button__link { background: #0E1A14; color: #fff; }
.chs-sun-band .is-style-signal-outline .wp-block-button__link { color: #0E1A14 !important; }
.chs-eyebrow--green { color: #056038 !important; }
.chs-card h3 a { color: #06311F; text-decoration: none; }
.chs-card h3 a:hover { text-decoration: underline; }
.chs-card .wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.chs-dark .wp-block-search__input { min-height: 56px; border-radius: 999px; border: 0; padding: 0 20px; font-size: 18px; }
.chs-dark .wp-block-search__button { background: #C4F264; color: #06311F; border-radius: 999px; font-weight: 800; min-height: 56px; padding: 0 24px; border: 0; }
.chs-dark .wp-block-search__label { color: #fff; font-weight: 700; }
.chs-lead, .chs-dark .wp-block-post-excerpt { font-size: 1.375rem; color: #E4EEE3; max-width: 44ch; }
