/* AriseVida Care — Contacts phone component (AriseVida-Contacts-Mobile v1.0.0).
   The handoff stylesheet (src/contacts.css) with the site bindings below; scoped to .avct below 768px.
   Runtime component/ and assets/ are siblings (icons at ../assets/icons/*.svg via the adapter's assetBase).
   Type comes from the site font tokens (--font-display Fraunces / --font-sans Inter) — the handoff's bundled
   TTF fallbacks are not shipped, except its licensed Fraunces italic under a scoped family for the title accent
   (the site's Google Fonts Fraunces has no italic axis). The original page content (hero, form + info cards,
   emergency notice) is wrapped in div[data-cp-legacy]; the controller hides it on phones (hidden + inline
   display:none) and restores it at 768px and above; display:contents keeps the sections direct children of
   <main> at every width. Site adjustments vs src/contacts.css: the package's `a` reset wrapped in :where(); the
   hero title and form heading sized to the rendering's measured line widths with the site's wider Fraunces
   (clamp(22px, 6.45cqi, 27px) / clamp(17px, 5.15cqi, 21px)); the smallest copy floored at 11px; the honeypot
   and the Step 2 emergency-acknowledgment row the bundle adds (see AriseVida-Contacts-QA/scripts/build-bundle.cjs);
   chevron motion at the site's 280ms. Proportion pass (2026-09-13, second brief): the Methadone phone scale —
   28px gutters, hero eyebrow Inter 700 11.5px .13em, hero h1 Fraunces 400 clamp(26px,7.6cqi,36px)/1.02, lede up to
   17.5px, 44px pills and buttons, 12.7–14px helper/label copy, 14–22px block gaps, 16px card radii, 60/68px cards;
   review pass: inset focus ring on the card rows (the animated details box clips
   an outside ring), 44px Back/Continue/Send pills (no hit-area extension needed), balanced intro wrap. See
   AriseVida-Contacts-QA/REPORT.md. Accessibility pass: eyebrow/caption/required/placeholder inks and the primary
   gradient darkened to AA (≥4.5:1) while keeping the rendering's hues; invalid radio pills outlined; focus targets
   keep clear of the sticky header (scroll-margin-top); progress labels 12.7px (12px at ≤379px). Second proportion
   pass review: the step indicator must stay one row at 100% text (line basis 12px; wrap only under text zoom),
   hero rhythm 16/16/22px like the Methadone hero, 320px fits for the Text pill, Send and the preference pills. */
@font-face { font-family: "AVCT Fraunces Italic"; src: url("../assets/fonts/Fraunces-italic-500.ttf") format("truetype"); font-style: italic; font-weight: 500; font-display: swap; }
.contact-page>[data-cp-legacy]{display:contents}
.contact-page>[data-cp-legacy][hidden]{display:none!important}
.contact-page>[data-cp-mobile]{display:contents}
/* First paint on phones: the inline marker in contact.html sets html[data-avct-shell] before layout so the original
   content never flashes; the adapter clears it once mounted (or on failure), and the marker times out on its own. */
/* While the marker is set the empty mount container holds one viewport of height so the footer does not paint
   first and then get pushed 1,000+px down when the section mounts (CLS 0.86 -> 0 on slow 4G). The marker is
   removed at mount (or by its own timeout), which returns the container to display:contents. */
@media (max-width:767.98px){html[data-avct-shell] .contact-page>[data-cp-legacy]{display:none}html[data-avct-shell] .contact-page>[data-cp-mobile]{display:block;min-height:100dvh}}
/* Only this Contacts component is styled. Match the actual site breakpoint in JS. */
.avct{display:none}
.avct[hidden]{display:none!important}
@media(max-width:767.98px){
 .avct{
  --avct-paper:#fefcf8;--avct-ink:#063040;--avct-muted:#406d7e;--avct-teal:#11908d;--avct-line:#dce4e9;
  --avct-heading-font:var(--font-display,"Fraunces",Georgia,serif);
  --avct-body-font:var(--font-sans,"Inter",Arial,sans-serif);
  display:block;container-type:inline-size;isolation:isolate;background:var(--avct-paper);color:var(--avct-ink);
  font-family:var(--avct-body-font);font-size:1rem;line-height:1.4;-webkit-text-size-adjust:100%;text-size-adjust:100%;
 }
 .avct,.avct *, .avct *::before,.avct *::after{box-sizing:border-box}
 .avct [hidden]{display:none!important}
 .avct :where(h1,h2,h3,p,ol,ul,fieldset,legend){margin:0;padding:0}
 .avct :where(button,input,select,textarea){font:inherit}
 .avct :where(button,a,summary){-webkit-tap-highlight-color:transparent}
 .avct :where(a){color:inherit;text-decoration:none}
 .avct :where(a,button,summary):focus-visible{outline:2px solid var(--avct-teal);outline-offset:4px}
 .avct :where(h2[tabindex]):focus{outline:0}
 .avct :where(h2[tabindex],[data-avct-submit-error]){scroll-margin-top:84px}
 .avct__hero .avct__eyebrow{margin:0}
 .avct__card-row:focus-visible{outline-offset:-3px}
 .avct__inner{padding:clamp(24px,7cqi,28px) 28px 22px}
 .avct__hero{text-align:center}
 .avct__eyebrow{font-size:11.5px;font-weight:700;letter-spacing:.13em;line-height:1.3;color:#0f7f7b}
 .avct__title{font-family:var(--avct-heading-font);font-size:clamp(26px,7.6cqi,36px);font-weight:400;line-height:1.02;letter-spacing:-.022em;margin-top:16px;text-wrap:balance;color:#0a1f25}
 .avct__title em{font-style:italic;font-weight:500;color:var(--avct-teal);font-family:"AVCT Fraunces Italic",var(--avct-heading-font);font-synthesis:none}
 .avct__intro{color:var(--avct-muted);font-size:clamp(15px,4.5cqi,17.5px);line-height:1.48;letter-spacing:0;margin-top:16px;text-wrap:balance}
 .avct__quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0 0}
 .avct__quick-link{position:relative;display:flex;align-items:center;justify-content:center;border:1px solid #62aab4;border-radius:999px;min-height:44px;padding:8px 8px;gap:8px;font-size:clamp(13px,3.6cqi,14px);font-weight:600;line-height:1.25;letter-spacing:-.01em}
 .avct__quick-link::before{content:"";position:absolute;inset:-6px 0;border-radius:inherit}
 .avct__icon{display:block;flex:0 0 auto;width:24px;height:24px;object-fit:contain}
 .avct__quick-link .avct__icon{width:19px;height:19px}
 .avct__availability{margin-top:10px;color:#577584;font-size:12.7px;line-height:1.4}
 .avct__form-card{margin-top:20px;padding:16px 16px 14px;border:1px solid #9bd1ce;border-radius:16px;background:linear-gradient(110deg,#eef8f5,#eef8f6 58%,#eff8f5)}
 .avct__progress{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px;list-style:none;margin:0 0 14px}
 .avct__progress li[data-avct-step]{display:flex;align-items:center;gap:10px;min-width:0;font-size:12.7px;line-height:1.2;color:#506479}
 .avct__progress li[data-avct-state="current"],.avct__progress li[data-avct-state="complete"]{color:var(--avct-ink)}
 .avct__step-number{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;border:1px solid #318494;color:#075163;background:#fff;font-size:13px;font-weight:600}
 .avct__progress [data-avct-state="current"] .avct__step-number,.avct__progress [data-avct-state="complete"] .avct__step-number{background:#007c87;border-color:#007c87;color:#fff}
 .avct__progress-line{height:1px;flex:1 1 12px;min-width:12px;max-width:42px;background:#8ebfbe}
 .avct__step-caption{font-size:12.7px;color:#507780;line-height:1.4}
 .avct__panel{border:0;min-width:0}
 .avct__form-title{font-family:var(--avct-heading-font);font-size:clamp(20px,5.65cqi,22px);font-weight:600;line-height:1.16;letter-spacing:-.02em;margin-top:8px;text-wrap:balance}
 .avct__required{color:#527687;font-size:12.7px;line-height:1.4;margin-top:6px;margin-bottom:12px}
 .avct__field{margin-top:12px;min-width:0}
 .avct__field:first-of-type{margin-top:0}
 .avct__field>label,.avct__preference>legend{display:block;font-size:14px;line-height:1.35;margin-bottom:7px;color:var(--avct-ink)}
 .avct :where(input:not([type="radio"]):not([type="checkbox"]),select,textarea){display:block;width:100%;min-width:0;min-height:46px;border:1px solid #cbd4df;border-radius:10px;background:#fff;color:var(--avct-ink);padding:10px 14px;font-size:16px;line-height:1.4;box-shadow:none;outline:none;-webkit-appearance:none;appearance:none}
 .avct :where(input,textarea)::placeholder{color:#6f7689;opacity:1}
 .avct :where(input:not([type="radio"]):not([type="checkbox"]),select,textarea):focus{border-color:#369791;box-shadow:0 0 0 var(--av-ring-w,1px) #369791} /* 2026-09-24: ring only for keyboard focus (--av-ring-w is 0px while <html data-av-input="pointer">); tap focus shows on the border alone */
 .avct [aria-invalid="true"]:not([type="radio"]){border-color:#b44835}
 .avct :where(input:not([type="radio"]):not([type="checkbox"]),select,textarea)[aria-invalid="true"]:focus{border-color:#b44835;box-shadow:0 0 0 var(--av-ring-w,1px) #b44835} /* invalid stays red while focused; keyboard ring in the error colour */
 .avct textarea{resize:vertical;min-height:124px}
 .avct__select-wrap{position:relative}
 .avct__select-wrap select{padding-right:34px}
 .avct__select-wrap>.avct__icon{position:absolute;right:11px;top:50%;width:17px;height:17px;transform:translateY(-50%);pointer-events:none}
 .avct__preference{border:0;margin-top:14px;min-width:0}
 .avct__preference-options{display:flex;gap:8px;flex-wrap:wrap}
 .avct__preference-choice{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;flex:1 1 80px;border:1px solid #c5d5d8;border-radius:10px;background:#fff;padding:8px;font-size:14.5px;cursor:pointer}
 .avct__preference-choice input{width:16px;height:16px;margin:0;accent-color:#007c87}
 .avct__preference-choice:has(input:checked){border-color:#168f89;background:#e4f4ef}
 .avct__preference-choice:has(input[aria-invalid="true"]){border-color:#b44835}
 .avct__preference-choice:has(input:focus-visible){outline:2px solid var(--avct-teal);outline-offset:2px}
 .avct__field-error{font-size:12.7px;line-height:1.4;color:#973c2d;margin-top:6px}
 .avct__privacy{display:flex;align-items:flex-start;gap:10px;margin-top:14px;padding:10px 12px;border:1px solid #dce8e9;border-radius:10px;background:rgba(244,248,247,.6)}
 .avct__privacy .avct__icon{width:18px;height:18px;margin-top:1px}
 .avct__privacy p{font-size:12.7px;line-height:1.4;color:#52687e}
 .avct__next-note{margin-top:12px;font-size:12.7px;line-height:1.4;color:#50697d;letter-spacing:0;text-wrap:balance}
 .avct__next-note strong{font-weight:600}
 .avct__form-actions{display:flex;gap:10px;margin-top:14px}
 .avct__primary{position:relative;display:flex;justify-content:center;align-items:center;gap:8px;flex:1;min-height:44px;padding:9px 14px;border:0;border-radius:999px;color:#fff;background:linear-gradient(100deg,#12807a,#117b75);font-size:15px;line-height:1.25;font-weight:600;cursor:pointer}
 .avct__primary::before{content:"";position:absolute;inset:0;border-radius:inherit}
 .avct__primary .avct__icon{width:19px;height:19px;filter:brightness(0) invert(1)}
 .avct__back{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 14px;border:1px solid #74b3b4;border-radius:999px;background:transparent;color:var(--avct-ink);font-size:14px;cursor:pointer}
 .avct__back .avct__icon{width:16px;height:16px}
 .avct button:disabled{opacity:.65;cursor:wait}
 .avct :where(input,select,textarea):disabled{opacity:.75;cursor:wait}
 .avct__emergency{font-size:12px;line-height:1.45;text-align:center;color:#526b81;margin-top:10px;letter-spacing:0}
 .avct__submit-error{padding:10px 12px;border:1px solid #e9c2b6;background:#fff3ed;border-radius:10px;color:#8c3827;font-size:13.5px;line-height:1.45;margin-top:14px}
 .avct__success{text-align:center;padding:16px 0}
 .avct__success-icon{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 8px;border-radius:50%;background:#d8eee4}
 .avct__success>p:not(.avct__emergency){font-size:14.5px;line-height:1.5;color:var(--avct-muted);margin-top:12px}
 .avct__contact-card,.avct__visit-card{margin-top:14px;border:1px solid #e1e5e8;border-radius:16px;background:#fffdfa}
 .avct__card-row{display:flex;align-items:center;gap:12px;min-height:60px;padding:11px 12px;list-style:none;cursor:pointer}
 .avct__card-row::-webkit-details-marker{display:none}
 .avct__card-row::marker{content:""}
 .avct__badge{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:50%}
 .avct__badge--email{background:#ffeadc}.avct__badge--location{background:#eaf1e3}
 .avct__badge .avct__icon{width:21px;height:21px}
 .avct__card-copy{flex:1;min-width:0}
 .avct__card-title{display:block;font-size:14.5px;font-weight:600;line-height:1.3}
 .avct__card-description{display:block;font-size:12.5px;line-height:1.4;color:#536e83;margin-top:3px;letter-spacing:-.015em;text-wrap:balance}
 .avct__card-description>span{display:block}
 .avct__card-chevron{width:18px;height:18px;transition:transform 280ms cubic-bezier(.22,1,.36,1)}
 .avct__contact-card[open]:not([data-avct-expanded="false"]) .avct__card-chevron{transform:rotate(90deg)}
 .avct__visit-card{min-height:68px;margin-top:12px}
 .avct__contact-panel{padding:0 14px 12px 64px;font-size:13.5px;color:var(--avct-muted);overflow-wrap:anywhere}
 .avct__contact-panel a{display:flex;flex-direction:column;justify-content:center;min-height:46px;padding:8px 0;line-height:1.4}
 .avct__contact-panel a+a{border-top:1px solid var(--avct-line)}
 .avct__contact-panel strong{color:var(--avct-ink);font-weight:600}
 .avct__hp{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
 .avct__hp input{width:1px;height:1px;min-height:0;padding:0;border:0}
 .avct__sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
 .avct__ack{margin-top:14px}
 .avct[data-avct-current-step="1"] .avct__ack{display:none}
 .avct__ack-row{display:flex;align-items:flex-start;gap:10px}
 .avct__ack-row input{flex:0 0 18px;width:18px;height:18px;margin:1px 0 0;accent-color:#007c87;cursor:pointer}
 .avct__ack-row label{font-size:12.7px;line-height:1.4;color:#52687e;cursor:pointer}
 .avct__ack-row input:focus-visible{outline:2px solid var(--avct-teal);outline-offset:2px}
 .avct__ack-row input[aria-invalid="true"]{outline:2px solid #b44835;outline-offset:1px}
 .avct[data-avct-current-step="2"] form .avct__emergency{display:none}
 .avct__emergency-break{display:none} /* the note wraps naturally at every phone width at this size */
 @media(max-width:379px){.avct__card-description{font-size:12px}.avct__progress{gap:10px}.avct__progress li[data-avct-step]{gap:7px;font-size:12px}}
 @media(max-width:359px){
  .avct__inner{padding-inline:20px}
  .avct__quick-actions{gap:8px}
  .avct__quick-link{gap:5px;padding-inline:6px;font-size:12.5px}
  .avct__quick-link .avct__icon{width:17px;height:17px}
  .avct__form-card{padding-inline:14px}
  .avct__progress{gap:8px}.avct__progress li[data-avct-step]{gap:6px}
  .avct__preference-options{gap:6px}
  .avct__preference-choice{flex-basis:72px;padding-inline:6px;gap:6px;font-size:14px}
  .avct__primary{font-size:14px;padding-inline:10px}
  .avct__back{padding-inline:10px}
  .avct__card-row{gap:10px;padding-inline:10px}
  .avct__contact-panel{padding-left:60px}
 }
 @media(prefers-reduced-motion:reduce){.avct__card-chevron{transition:none}}
 @media(forced-colors:active){
  .avct__form-card,.avct__quick-link,.avct__primary,.avct__contact-card,.avct__visit-card{border:1px solid ButtonText}
  .avct__primary{background:ButtonFace;color:ButtonText}.avct__primary .avct__icon{filter:none}
 }
}
