@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&display=block");

/* Opal Health web components. Every value comes from tokens.css. */

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 28px; color: var(--ink); background: var(--white); }
.oh-wrap { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 720px) { .oh-wrap { padding: 0 var(--space-4); } }

/* Focus: one rule everywhere */
.oh :focus-visible, .oh-btn:focus-visible, .oh-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.oh-on-purple :focus-visible, .oh-on-purple .oh-btn:focus-visible, .oh-on-purple .oh-link:focus-visible { outline-color: var(--focus-on-dark); }

/* Icons: Material Symbols Rounded, outline */
.oh-icon { font-family: var(--font-icons); font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
.oh-icon-badge { width: 56px; height: 56px; border-radius: var(--radius-round); display: inline-flex; align-items: center; justify-content: center; background: var(--opal-purple); color: var(--white); flex: none; }
.oh-icon-badge .oh-icon { font-size: 28px; }
.oh-icon-badge--green { background: var(--green); }
.oh-icon-badge--amber { background: var(--amber); }
.oh-icon-badge--sm { width: 40px; height: 40px; }
.oh-icon-badge--sm .oh-icon { font-size: 22px; }

/* Eyebrow + heading block */
.oh-eyebrow { display: block; font-size: 13px; line-height: 16px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-dark); margin: 0 0 var(--space-2); }
.oh-on-purple .oh-eyebrow { color: var(--gold); }
.oh-heading { margin: 0; color: var(--opal-purple); font-weight: 800; }
.oh-heading--h2 { font-size: 34px; line-height: 40px; }
.oh-heading--h1 { font-size: 44px; line-height: 50px; }
.oh-heading--h3 { font-size: 24px; line-height: 31px; font-weight: 700; }
.oh-on-purple .oh-heading { color: var(--white); }
.oh-lead { font-size: 21px; line-height: 32px; margin: var(--space-3) 0 0; color: var(--ink); max-width: 680px; }
.oh-on-purple .oh-lead { color: var(--lavender-tint); }
@media (max-width: 720px) { .oh-heading--h1 { font-size: 34px; line-height: 40px; } .oh-heading--h2 { font-size: 28px; line-height: 34px; } .oh-lead { font-size: 19px; line-height: 29px; } }

/* Buttons */
.oh-btn { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-sans); font-size: 17px; line-height: 20px; font-weight: 700; padding: 14px 26px; border-radius: var(--radius-pill); border: 2px solid transparent; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.oh-btn--primary { background: var(--opal-purple); color: var(--white); }
.oh-btn--primary:hover { background: var(--purple-dark); }
.oh-btn--donate { background: var(--amber); color: var(--white); font-size: 19px; line-height: 22px; padding: 14px 28px; }
.oh-btn--donate:hover { background: var(--amber-dark); }
.oh-btn--secondary { background: var(--white); color: var(--opal-purple); border-color: var(--opal-purple); }
.oh-btn--secondary:hover { background: var(--lavender-tint); }
.oh-btn--on-purple { background: var(--gold); color: var(--opal-purple); }
.oh-btn--on-purple:hover { background: var(--white); }
.oh-btn--ghost-on-purple { background: transparent; color: var(--white); border-color: var(--white); }
.oh-btn--ghost-on-purple:hover { background: var(--purple-dark); }
.oh-btn--sm { font-size: 15px; padding: 9px 18px; }
.oh-link { color: var(--opal-purple); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--gold); }
.oh-link--arrow { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.oh-link--arrow::after { content: "→"; transition: transform .15s ease; }
.oh-link--arrow:hover::after { transform: translateX(3px); }
.oh-on-purple .oh-link { color: var(--white); }

/* Logo */
.oh-logo { display: block; height: auto; }
.oh-logo-box { display: inline-block; background: var(--white); border-radius: var(--radius-md); padding: 10px 16px; line-height: 0; }

/* Header */
.oh-header { background: var(--white); border-bottom: 1px solid var(--lavender-line); }
.oh-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 80px; }
.oh-header__nav { display: flex; align-items: center; gap: var(--space-6); }
.oh-header__nav a:not(.oh-btn) { color: var(--opal-purple); font-weight: 700; text-decoration: none; font-size: 17px; }
.oh-header__nav a:not(.oh-btn):hover, .oh-header__nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.oh-header__menu { display: none; }
@media (max-width: 860px) { .oh-header__nav a:not(.oh-btn) { display: none; } .oh-header__menu { display: inline-flex; color: var(--opal-purple); background: none; border: 0; padding: 8px; cursor: pointer; } }

/* Hero: purple panel + real photo (deck-cover layout) */
.oh-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 560px; background: var(--opal-purple); }
.oh-hero__panel { padding: var(--space-8) var(--space-7) var(--space-8) max(var(--space-6), calc((100vw - var(--content-width)) / 2 + var(--space-6))); display: flex; flex-direction: column; justify-content: center; color: var(--white); }
.oh-hero__title { font-size: 56px; line-height: 60px; font-weight: 800; letter-spacing: -0.01em; margin: 0; color: var(--white); }
.oh-hero__lead { font-size: 21px; line-height: 32px; color: var(--lavender-tint); margin: var(--space-5) 0 var(--space-6); max-width: 520px; }
.oh-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.oh-hero__photo { position: relative; margin: 0; min-height: 320px; }
.oh-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oh-hero__photo figcaption { position: absolute; left: var(--space-4); bottom: var(--space-4); max-width: 80%; background: var(--white); color: var(--muted-text); font-size: 14px; line-height: 20px; font-style: italic; padding: 6px 12px; border-radius: var(--radius-sm); }
@media (max-width: 860px) { .oh-hero { grid-template-columns: 1fr; } .oh-hero__photo { order: -1; min-height: 280px; } .oh-hero__panel { padding: var(--space-7) var(--space-4); } .oh-hero__title { font-size: 40px; line-height: 44px; } }

/* Sections */
.oh-section { padding: var(--space-9) 0; }
.oh-section--tint { background: var(--lavender-tint); }
.oh-section--purple { background: var(--opal-purple); color: var(--white); }
.oh-section__head { margin-bottom: var(--space-7); max-width: 760px; }
@media (max-width: 720px) { .oh-section { padding: var(--space-8) 0; } }

/* Stats */
.oh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-5); }
.oh-stat { border-top: 3px solid var(--opal-purple); padding-top: var(--space-4); }
.oh-stat__num { display: block; font-size: 64px; line-height: 64px; font-weight: 800; letter-spacing: -0.02em; color: var(--opal-purple); }
.oh-stat__num--accent { color: var(--amber); }
.oh-stat__label { display: block; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); margin-top: var(--space-2); }
.oh-stat__source { display: block; font-size: 14px; line-height: 20px; font-style: italic; color: var(--muted-text); margin-top: var(--space-2); }
.oh-on-purple .oh-stat { border-top-color: var(--gold); }
.oh-on-purple .oh-stat__num { color: var(--gold); }
.oh-on-purple .oh-stat__label { color: var(--white); }
.oh-on-purple .oh-stat__source { color: var(--purple-soft); }

/* Feature cards: lavender, short colored bar on top */
.oh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.oh-card { background: var(--lavender-tint); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.oh-card::before { content: ""; display: block; width: 48px; height: 6px; border-radius: 3px; background: var(--opal-purple); margin-bottom: var(--space-2); }
.oh-card--green::before { background: var(--green); }
.oh-card--amber::before { background: var(--amber); }
.oh-card__title { margin: 0; font-size: 24px; line-height: 31px; font-weight: 700; color: var(--opal-purple); }
.oh-card__body { margin: 0; color: var(--ink); }
.oh-card:has(.oh-icon-badge)::before { display: none; }
.oh-card--white { background: var(--white); border: 1px solid var(--lavender-line); }

/* Process steps: numbered circles joined by a dashed line */
.oh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: var(--space-5); position: relative; counter-reset: step; }
.oh-steps::before { content: ""; position: absolute; top: 28px; left: 28px; right: calc(100% / var(--steps, 4) - 28px); border-top: 2px dashed var(--purple-soft); }
.oh-step { position: relative; counter-increment: step; }
.oh-step__num { width: 56px; height: 56px; border-radius: var(--radius-round); background: var(--opal-purple); color: var(--white); font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; position: relative; }
.oh-step__num::before { content: counter(step); }
.oh-step--current .oh-step__num { background: var(--amber); }
.oh-step__title { margin: var(--space-4) 0 var(--space-1); font-size: 19px; line-height: 26px; font-weight: 700; color: var(--opal-purple); }
.oh-step__when { display: block; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--muted-text); }
.oh-step__body { margin: var(--space-2) 0 0; font-size: 16px; line-height: 25px; }
@media (max-width: 720px) { .oh-steps { grid-template-columns: 1fr; } .oh-steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed var(--purple-soft); } .oh-step { padding-left: 76px; min-height: 56px; } .oh-step__num { position: absolute; left: 0; top: 0; } .oh-step__title { margin-top: 0; } }

/* Photo with caption */
.oh-figure { margin: 0; }
.oh-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.oh-figure--wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.oh-figure figcaption { font-size: 14px; line-height: 20px; font-style: italic; color: var(--muted-text); margin-top: var(--space-2); }
.oh-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
@media (max-width: 860px) { .oh-split { grid-template-columns: 1fr; gap: var(--space-5); } }

/* Quote: cream box */
.oh-quote { background: var(--cream-tint); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-6) var(--space-5); margin: 0; }
.oh-quote__mark { display: block; font-size: 64px; line-height: 40px; font-weight: 800; color: var(--amber); height: 32px; }
.oh-quote blockquote { margin: 0; font-size: 22px; line-height: 33px; font-style: italic; color: var(--ink); }
.oh-quote figcaption { margin-top: var(--space-4); font-size: 15px; line-height: 22px; color: var(--muted-text); }
.oh-quote figcaption b { display: block; color: var(--opal-purple); font-size: 17px; font-style: normal; }

/* Story card */
.oh-story { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--lavender-line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; }
.oh-story__img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; display: block; }
.oh-story__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.oh-story__meta { font-size: 14px; line-height: 20px; color: var(--muted-text); font-weight: 600; }
.oh-story__title { margin: 0; font-size: 21px; line-height: 28px; font-weight: 700; color: var(--opal-purple); }
.oh-story__excerpt { margin: 0; font-size: 16px; line-height: 25px; }
.oh-story:hover .oh-story__title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Status pill */
.oh-status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 800; padding: 4px 12px; border-radius: var(--radius-pill); color: var(--white); }
.oh-status--good { background: var(--status-good); }
.oh-status--watch { background: var(--amber-dark); }
.oh-status--off { background: var(--status-off); }

/* Partner row */
.oh-partners { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-5); }
.oh-partner { height: 56px; display: flex; align-items: center; }
.oh-partner img { max-height: 56px; width: auto; }
.oh-partners__divider { width: 1px; height: 48px; background: var(--lavender-line); }

/* Donate band */
.oh-donate { display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center; }
@media (max-width: 720px) { .oh-donate { grid-template-columns: 1fr; } }

/* Footer */
.oh-footer { background: var(--purple-dark); color: var(--lavender-tint); padding: var(--space-8) 0 var(--space-6); font-size: 15px; line-height: 22px; }
.oh-footer a { color: var(--white); }
.oh-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); }
.oh-footer__title { color: var(--white); font-weight: 800; font-size: 15px; margin: 0 0 var(--space-3); }
.oh-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.oh-footer__legal { border-top: 1px solid rgba(217, 200, 224, 0.3); margin-top: var(--space-7); padding-top: var(--space-5); color: var(--purple-soft); font-size: 14px; line-height: 20px; }
@media (max-width: 720px) { .oh-footer__grid { grid-template-columns: 1fr; } }

/* Forms: fields, inline sign-up, search */
.oh-form { display: grid; gap: var(--space-4); }
.oh-field { display: flex; flex-direction: column; gap: 6px; }
.oh-label { font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }
.oh-help { font-size: 14px; line-height: 20px; color: var(--muted-text); }
.oh-input { box-sizing: border-box; width: 100%; height: 48px; padding: 0 20px; font-family: var(--font-sans); font-size: 17px; line-height: 24px; color: var(--ink); background: var(--white); border: 1.5px solid var(--muted-grey); border-radius: var(--radius-pill); -webkit-appearance: none; appearance: none; transition: border-color .15s ease; }
.oh-input::placeholder { color: var(--muted-text); opacity: 1; }
.oh-input:hover { border-color: var(--opal-purple); }
.oh-input:focus { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--opal-purple); }
.oh-input[aria-invalid="true"] { border-color: var(--berry); }
.oh-error { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--berry); }
.oh-on-purple .oh-label { color: var(--white); }
.oh-on-purple .oh-help { color: var(--purple-soft); }
.oh-on-purple .oh-input { border-color: var(--white); }
.oh-on-purple .oh-input:focus { outline-color: var(--focus-on-dark); }
.oh-on-purple .oh-error { color: var(--white); background: var(--berry); padding: 2px 8px; border-radius: var(--radius-sm); align-self: flex-start; }
.oh-inline { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: stretch; }
.oh-inline .oh-input { flex: 1 1 220px; min-width: 0; }
.oh-inline .oh-btn { height: 48px; padding-top: 0; padding-bottom: 0; flex: none; }
.oh-input--sm { height: 40px; font-size: 15px; padding: 0 16px 0 40px; }
.oh-search { position: relative; display: inline-flex; align-items: center; }
.oh-search .oh-icon { position: absolute; left: 12px; font-size: 20px; color: var(--muted-text); pointer-events: none; }
.oh-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.oh-form-note { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--green); }
.oh-on-purple .oh-form-note { color: var(--white); }
