/*! AHS Experience 0.1.0: layout for the M10 homepage, situation pathways and forms. Tokens come from
    ahs-design-system.css; every var() has a fallback so this file still reads correctly with the design switch off. */

/* Homepage: the theme title is hidden only on the M10 front page, because the homepage supplies its own H1. */
.ahs-m10-home .entry-header, .ahs-m10-home .page-header { display: none; }
.ahs-home { color: var(--ahs-ink, #1F2421); }
.ahs-home__hero { padding-block: var(--ahs-space-6, 2rem) var(--ahs-space-7, 3rem); }
.ahs-home__hero h1 { font: 600 var(--ahs-fs-h1, 2.5rem)/1.12 var(--ahs-font-serif, "IBM Plex Serif", Georgia, serif); letter-spacing: -0.015em; margin: 0 0 0.4em; max-width: 22ch; text-wrap: balance; }
.ahs-home__lede { font-size: var(--ahs-fs-lg, 1.35rem); line-height: 1.5; color: var(--ahs-ink-2, #4A504B); max-width: 46ch; margin: 0 0 var(--ahs-space-4, 1rem); }
.ahs-home__safety { display: inline-block; margin: 0 0 var(--ahs-space-6, 2rem); padding: 0.4em 0.8em; border-left: 4px solid var(--ahs-stop, #8C2219); background: var(--ahs-stop-bg, #FBEDEB); font-weight: 650; }
.ahs-doors { display: grid; gap: var(--ahs-space-5, 1.5rem); }
@media (min-width: 60em) { .ahs-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ahs-door { display: flex; flex-direction: column; gap: var(--ahs-space-3, 0.75rem); padding: var(--ahs-space-5, 1.5rem); background: var(--ahs-surface, #fff); border: 1px solid var(--ahs-rule, #E3E1DA); border-top: 6px solid var(--ahs-green-800, #274238); border-radius: var(--ahs-radius, 8px); }
.ahs-door h2 { font: 600 var(--ahs-fs-h3, 1.4rem)/1.25 var(--ahs-font-serif, "IBM Plex Serif", Georgia, serif) !important; margin: 0 !important; }
.ahs-door p { margin: 0; }
.ahs-door > .ahs-button { align-self: flex-start; margin-top: auto; }
.ahs-home .ahs-section h2 { margin-top: 0; }

/* ZIP and state forms */
.ahs-zip fieldset { border: 0; margin: 0 0 var(--ahs-space-3, 0.75rem); padding: 0; }
.ahs-zip legend, .ahs-zip > label, .ahs-state > label { display: block; font-weight: 650; margin: 0 0 var(--ahs-space-2, 0.5rem); }
.ahs-zip .ahs-choice { display: flex; align-items: center; gap: 0.6em; min-height: 44px; font-weight: 400; }
.ahs-zip .ahs-choice input { width: 1.25em; height: 1.25em; accent-color: var(--ahs-green-800, #274238); }
.ahs-zip__row { display: flex; gap: var(--ahs-space-2, 0.5rem); flex-wrap: wrap; }
.ahs-zip__row input, .ahs-zip__row select { flex: 1 1 9rem; min-height: 48px; font-size: 1.125rem; padding: 0 0.75em; border: 2px solid var(--ahs-line, #767C77); border-radius: var(--ahs-radius-sm, 6px); background: #fff; color: var(--ahs-ink, #1F2421); }
.ahs-zip__row input:focus-visible, .ahs-zip__row select:focus-visible { outline: 3px solid var(--ahs-focus, #A6522F); outline-offset: 2px; }
.ahs-zip .ahs-field__error[hidden] { display: none !important; }
.ahs-zip .ahs-field__error { color: var(--ahs-stop, #8C2219); font-weight: 650; margin: var(--ahs-space-2, 0.5rem) 0 0; }
.ahs-zip .ahs-meta, .ahs-state .ahs-meta { margin: var(--ahs-space-2, 0.5rem) 0 0; }

/* Diagnosis chips */
.ahs-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ahs-space-3, 0.75rem); max-width: none !important; }
.ahs-chips li { margin: 0; }
.ahs-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1em; border: 1px solid var(--ahs-green-800, #274238); border-radius: 999px; color: var(--ahs-green-800, #274238) !important; text-decoration: none !important; font-weight: 600; background: #fff; }
.ahs-chips a:hover { background: var(--ahs-green-100, #E8EFEC); }

/* Testimonials */
.ahs-quotes { display: grid; gap: var(--ahs-space-5, 1.5rem); margin-top: var(--ahs-space-5, 1.5rem); }
.ahs-quotes { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.ahs-quote { margin: 0; padding: var(--ahs-space-5, 1.5rem); background: var(--ahs-sunk, #F3F1EA); border-radius: var(--ahs-radius, 8px); }
.ahs-quote blockquote { margin: 0 0 var(--ahs-space-3, 0.75rem); padding: 0; border: 0; font: 400 1.0625rem/1.55 var(--ahs-font-serif, "IBM Plex Serif", Georgia, serif); }
.ahs-quote blockquote p { margin: 0; }
.ahs-quote figcaption { font-size: 1rem; line-height: 1.4; }
.ahs-quote figcaption span { display: block; color: var(--ahs-ink-2, #4A504B); }

/* Situation pathways */
.ahs-paths { margin: 0 0 var(--ahs-space-7, 3rem); }
.ahs-paths h2 { margin-top: 0; }
.ahs-path { margin: 0; border-bottom: 1px solid var(--ahs-rule, #E3E1DA); scroll-margin-top: 6rem; }
.ahs-path:first-of-type { border-top: 1px solid var(--ahs-rule, #E3E1DA); margin-top: var(--ahs-space-6, 2rem); }
.ahs-path summary { cursor: pointer; display: flex; align-items: center; min-height: 3.5rem; padding: var(--ahs-space-3, 0.75rem) var(--ahs-space-2, 0.5rem); list-style: none; }
.ahs-path summary::-webkit-details-marker { display: none; }
.ahs-path summary::before { content: "+"; flex: none; width: 1.5em; font-weight: 700; color: var(--ahs-green-800, #274238); }
.ahs-path[open] summary::before { content: "\2212"; }
.ahs-path summary:focus-visible { outline: 3px solid var(--ahs-focus, #A6522F); outline-offset: 2px; }
.ahs-path__title { font: 600 var(--ahs-fs-h4, 1.2rem)/1.3 var(--ahs-font-serif, "IBM Plex Serif", Georgia, serif); }
.ahs-path__body { padding: 0 var(--ahs-space-2, 0.5rem) var(--ahs-space-5, 1.5rem) 2em; }
.ahs-steps { counter-reset: ahsstep; list-style: none; margin: var(--ahs-space-3, 0.75rem) 0 0 !important; padding: 0 !important; max-width: var(--ahs-measure, 66ch); }
.ahs-steps > li { counter-increment: ahsstep; position: relative; margin: 0 0 var(--ahs-space-4, 1rem) !important; padding-left: 2.75rem; }
.ahs-steps > li::before { content: counter(ahsstep); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ahs-green-800, #274238); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ahs-steps__t { display: block; }
.ahs-steps__why { display: block; color: var(--ahs-ink-2, #4A504B); }
.ahs-path__aide { margin-top: var(--ahs-space-4, 1rem); }

@media print {
  .ahs-path { break-inside: avoid; }
  .ahs-path > .ahs-path__body { display: block !important; }
  .ahs-zip, .ahs-state, .ahs-home__safety { display: none !important; }
}

/* Data table caption: under the table, ordinary weight, inside its column */
.ahs-home .ahs-datatable { width: 100%; }
.ahs-home .ahs-datatable caption { caption-side: bottom; text-align: left; font-weight: 400; font-size: 1rem; padding-top: var(--ahs-space-2, 0.5rem); white-space: normal; }
.ahs-split { display: grid; gap: var(--ahs-space-5, 1.5rem); }
@media (min-width: 48em) { .ahs-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

/* 0.2.0 Provider list pages on phones (ahs-lists.js). Everything stays in the page; folds use the hidden attribute. */
.ahs-listnote { margin: var(--ahs-space-5, 1.5rem) 0; padding: var(--ahs-space-4, 1rem) var(--ahs-space-5, 1.5rem); background: var(--ahs-sunk, #F4F2EC); border-left: 4px solid var(--ahs-green-800, #274238); border-radius: var(--ahs-radius-sm, 4px); color: var(--ahs-ink, #1F2421); font-size: 1rem; line-height: 1.55; }
.ahs-listnote__h { font-weight: 700; margin: 0 0 0.4em; }
.ahs-listnote ul { margin: 0; padding-left: 1.2em; }
.ahs-listnote li { margin: 0.25em 0; }
.ahsx-fold { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 0.75em; width: 100%; min-height: 48px; padding: 0.5em 0.25em; cursor: pointer; font: inherit; color: inherit; }
.ahsx-fold::after { content: "+"; font-size: 1.4em; line-height: 1; color: var(--ahs-green-800, #274238); }
.ahsx-fold[aria-expanded="true"]::after { content: "\2212"; }
.ahsx-fold:focus-visible { outline: 3px solid var(--ahs-focus, #1F5FBF); outline-offset: 2px; }
section.ahsf-county { border-bottom: 1px solid var(--ahs-rule, #E3E1DA); }
section.ahsf-county h3 { margin: 0 !important; }
.ahsx-filter { margin: var(--ahs-space-4, 1rem) 0 var(--ahs-space-3, 0.75rem); }
.ahsx-filter label { display: block; font-weight: 650; margin-bottom: 0.3em; }
.ahsx-filter input { box-sizing: border-box; width: 100%; max-width: 26rem; min-height: 48px; padding: 0.5em 0.75em; font-size: 1.125rem; border: 2px solid var(--ahs-ink-3, #6B716D); border-radius: var(--ahs-radius-sm, 4px); background: #fff; color: var(--ahs-ink, #1F2421); }
.ahsx-filter input:focus { outline: 3px solid var(--ahs-focus, #1F5FBF); outline-offset: 1px; }
.ahsx-filter__out { margin: 0.4em 0 0; min-height: 1.5em; font-size: 1rem; }
.ahsx-nav--short a:nth-of-type(n+25) { display: none !important; }
.ahsx-more { margin: 0.5em 0 var(--ahs-space-4, 1rem); min-height: 44px; padding: 0.4em 1em; font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--ahs-green-800, #274238); background: #fff; border: 2px solid var(--ahs-green-800, #274238); border-radius: var(--ahs-radius-pill, 999px); cursor: pointer; }
.ahsf-cnav a[hidden], .ahsf-hcd-counties a[hidden] { display: none !important; }
.ahsx-back { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; min-height: 48px; display: inline-flex; align-items: center; padding: 0.6em 1.1em; font-weight: 700; font-size: 1rem; color: #fff !important; background: var(--ahs-green-800, #274238); border-radius: var(--ahs-radius-pill, 999px); box-shadow: 0 4px 14px rgba(0,0,0,.25); text-decoration: none !important; }
.ahsx-back[hidden] { display: none; }
.ahsx-back:focus-visible { outline: 3px solid var(--ahs-focus-on-dark, #FFD166); outline-offset: 2px; }
