.cmh-haq-quiz {
    width: min(100%, 860px);
    margin: 0 auto;
    color: inherit;
}
.cmh-haq-screen[hidden] { display: none !important; }
.cmh-haq-screen {
    box-sizing: border-box;
    padding: clamp(28px, 6vw, 64px);
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 12px 36px rgba(0,0,0,.06);
    text-align: center;
    transition: opacity .4s ease, transform .4s ease;
}
.cmh-haq-screen.is-leaving { opacity: 0; transform: translateY(8px); }
.cmh-haq-screen.is-entering { opacity: 0; transform: translateY(8px); }
.cmh-haq-eyebrow {
    margin: 0 0 12px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .72;
}
.cmh-haq-title { margin: 0 auto 22px; max-width: 720px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; }
.cmh-haq-intro { max-width: 650px; margin: 0 auto; font-size: 1.08rem; line-height: 1.7; }
.cmh-haq-intro p { margin: 0 0 1em; }
.cmh-haq-reassurance { max-width: 620px; margin: 22px auto; font-style: italic; opacity: .82; }
.cmh-haq-start-button, .cmh-haq-restart-button, .cmh-haq-medicine-button { cursor: pointer; border: 0; margin-top: 4px; }
.cmh-haq-timing { margin: 14px 0 0; font-size: .92rem; opacity: .68; }
.cmh-haq-question-screen { text-align: left; }
.cmh-haq-progress-row { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; opacity: .72; }
.cmh-haq-progress { height: 6px; overflow: hidden; border-radius: 999px; margin: 10px 0 30px; background: rgba(0,0,0,.09); }
.cmh-haq-progress span { display:block; height:100%; border-radius:inherit; background: currentColor; opacity:.55; transition: width .4s ease; }
.cmh-haq-question-title { margin: 0 0 24px; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; }
.cmh-haq-answer-list { display:grid; gap:14px; }
.cmh-haq-answer-card {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 18px 20px;
    border: 1px solid rgba(0,0,0,.13);
    border-radius: 14px;
    background: rgba(255,255,255,.66);
    color: inherit;
    font: inherit;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.cmh-haq-answer-card:hover,
.cmh-haq-answer-card:focus-visible {
    transform: translateY(-1px);
    border-color: currentColor;
    outline: none;
    box-shadow: 0 5px 18px rgba(0,0,0,.07);
}
.cmh-haq-answer-card.is-selected {
    border-color: currentColor;
    background: rgba(255,255,255,.96);
    box-shadow: 0 0 0 2px currentColor inset;
}
.cmh-haq-back-button {
    margin-top: 22px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: .72;
    cursor: pointer;
}
.cmh-haq-back-button:hover,
.cmh-haq-back-button:focus-visible { opacity: 1; }
.cmh-haq-flow-complete { text-align: center; }
.cmh-haq-flow-note { max-width: 620px; margin: 0 auto 22px; line-height: 1.65; opacity: .78; }
.cmh-haq-public-preview { max-width: 920px; margin: 24px 0; }
@media (max-width:600px){
  .cmh-haq-screen{ padding:26px 20px; border-radius:16px; }
  .cmh-haq-title{ font-size:2.15rem; }
  .cmh-haq-answer-card{ padding:16px; }
}
@media (prefers-reduced-motion: reduce){
  .cmh-haq-screen, .cmh-haq-progress span, .cmh-haq-answer-card{ transition:none; }
}

.cmh-haq-transition-screen { min-height: 300px; display:flex; align-items:center; justify-content:center; }
.cmh-haq-transition-message { max-width: 660px; margin:0; font-size:clamp(1.5rem,3.2vw,2.35rem); line-height:1.35; font-style:italic; }
.cmh-haq-result-screen { text-align:center; }
.cmh-haq-result-name { margin:0; font-size:clamp(2.7rem,7vw,5rem); line-height:1; }
.cmh-haq-result-subtitle { margin:10px 0 24px; font-size:clamp(1.15rem,2.5vw,1.55rem); font-style:italic; opacity:.82; }
.cmh-haq-result-image-wrap { width:min(100%,560px); margin:0 auto 24px; overflow:hidden; border-radius:18px; }
.cmh-haq-result-image { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; object-position:center; }
.cmh-haq-result-themes { max-width:700px; margin:0 auto 36px; font-weight:600; line-height:1.7; }
.cmh-haq-result-content { max-width:700px; margin:0 auto; text-align:left; }
.cmh-haq-result-reflection { font-size:1.06rem; line-height:1.75; }
.cmh-haq-result-section { margin-top:34px; padding-top:30px; border-top:1px solid rgba(0,0,0,.10); line-height:1.75; }
.cmh-haq-result-section h3, .cmh-haq-medicine-bridge h3 { margin:0 0 12px; font-size:1.35rem; }
.cmh-haq-result-callout, .cmh-haq-result-carry { padding:26px; border:1px solid rgba(0,0,0,.10); border-radius:16px; background:rgba(255,255,255,.46); }
.cmh-haq-result-carry p { margin:.55em 0; }
.cmh-haq-medicine-bridge { margin-top:40px; padding:30px; text-align:center; border-top:1px solid rgba(0,0,0,.10); border-bottom:1px solid rgba(0,0,0,.10); }
.cmh-haq-medicine-button { display:inline-block; margin-top:10px; text-decoration:none; }
.cmh-haq-retake-button { display:block; margin:26px auto 0; padding:8px 0; border:0; background:transparent; color:inherit; font:inherit; text-decoration:underline; text-underline-offset:3px; opacity:.72; cursor:pointer; }
.cmh-haq-retake-button:hover, .cmh-haq-retake-button:focus-visible { opacity:1; }
.cmh-haq-screen.is-result-entering { opacity:0; transform:translateY(10px); }
.cmh-haq-result-screen { transition:opacity .7s ease, transform .7s ease; }
@media (max-width:600px){
  .cmh-haq-result-callout,.cmh-haq-result-carry,.cmh-haq-medicine-bridge{padding:22px 18px;}
  .cmh-haq-result-image-wrap{border-radius:14px;}
}
@media (prefers-reduced-motion: reduce){
  .cmh-haq-result-screen{transition:none;}
}


/* Sharing */
.cmh-haq-share-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(0,0,0,.10); text-align: center; }
.cmh-haq-share-button { margin: 0 6px 10px; cursor: pointer; border: 0; }
.cmh-haq-copy-button { margin: 0 6px 10px; padding: 10px 16px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.cmh-haq-share-status { min-height: 1.4em; margin: 6px 0 0; font-size: .92rem; opacity: .75; }
.cmh-haq-shared-screen { text-align: center; }
.cmh-haq-shared-summary { max-width: 650px; margin: 0 auto 24px; font-size: 1.08rem; line-height: 1.7; }
.cmh-haq-take-quiz-button { cursor: pointer; border: 0; }


/* v1.3.0 — final visual polish */
.cmh-haq-question-screen {
    padding-top: clamp(42px, 6vw, 68px);
    padding-bottom: clamp(42px, 6vw, 68px);
}
.cmh-haq-question-title {
    max-width: 760px;
}
.cmh-haq-answer-card {
    min-height: 74px;
    display: flex;
    align-items: center;
}

.cmh-haq-result-screen {
    padding-top: clamp(42px, 6vw, 68px);
    padding-bottom: clamp(46px, 7vw, 76px);
}
.cmh-haq-result-name {
    letter-spacing: -.015em;
}
.cmh-haq-result-subtitle {
    margin-bottom: 28px;
}
.cmh-haq-result-image-wrap {
    width: min(100%, 600px);
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.07);
}
.cmh-haq-result-themes {
    margin-bottom: 40px;
    font-size: 1.02rem;
}
.cmh-haq-result-content {
    max-width: 720px;
}
.cmh-haq-result-reflection {
    font-size: 1.08rem;
    line-height: 1.82;
}
.cmh-haq-result-reflection p {
    margin: 0 0 1.35em;
}
.cmh-haq-result-section {
    margin-top: 38px;
    padding-top: 34px;
    font-size: 1.03rem;
    line-height: 1.8;
}
.cmh-haq-result-section h3,
.cmh-haq-medicine-bridge h3 {
    margin-bottom: 14px;
    font-size: clamp(1.3rem, 2.4vw, 1.55rem);
    line-height: 1.3;
}
.cmh-haq-result-section p:last-child,
.cmh-haq-medicine-bridge p:last-of-type {
    margin-bottom: 0;
}
.cmh-haq-result-callout,
.cmh-haq-result-carry {
    padding: 28px 30px;
}
.cmh-haq-share-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 42px;
    padding-top: 34px;
}
.cmh-haq-share-button,
.cmh-haq-copy-button {
    margin: 0;
    min-height: 46px;
}
.cmh-haq-copy-button {
    padding: 10px 18px;
    border-radius: 3px;
}
.cmh-haq-share-status {
    flex-basis: 100%;
    margin-top: 2px;
}
.cmh-haq-medicine-bridge {
    margin-top: 42px;
    padding: 34px 24px;
}
.cmh-haq-medicine-bridge p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.cmh-haq-medicine-button {
    margin-top: 14px;
}
.cmh-haq-retake-button {
    margin-top: 30px;
}

.cmh-haq-shared-screen .cmh-haq-result-image-wrap {
    margin-top: 4px;
}
.cmh-haq-shared-summary {
    max-width: 680px;
}

@media (max-width: 600px) {
    .cmh-haq-question-screen,
    .cmh-haq-result-screen {
        padding-top: 30px;
        padding-bottom: 34px;
    }
    .cmh-haq-answer-card {
        min-height: 0;
    }
    .cmh-haq-result-themes {
        margin-bottom: 32px;
        font-size: .98rem;
    }
    .cmh-haq-result-reflection,
    .cmh-haq-result-section {
        font-size: 1rem;
    }
    .cmh-haq-result-callout,
    .cmh-haq-result-carry {
        padding: 22px 18px;
    }
    .cmh-haq-share-section {
        gap: 8px;
    }
    .cmh-haq-share-button,
    .cmh-haq-copy-button {
        width: 100%;
    }
}


/* v1.4.0 — Celtic Medicine Horse brand system */
.cmh-haq-quiz {
    --cmh-green: #1e3a2b;
    --cmh-brown: #5c2e19;
    --cmh-charcoal: #2b2927;
    --cmh-warm-neutral: #edece8;
    --cmh-sage: #e4ebda;
    --cmh-light: #f5f7f0;
    --cmh-gold: #d49b4b;
    color: var(--cmh-charcoal);
    font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cmh-haq-screen {
    border-color: rgba(30, 58, 43, .14);
    background: rgba(245, 247, 240, .94);
    box-shadow: 0 12px 34px rgba(43, 41, 39, .07);
}

.cmh-haq-title,
.cmh-haq-question-title,
.cmh-haq-transition-message,
.cmh-haq-result-name,
.cmh-haq-result-section h3,
.cmh-haq-medicine-bridge h3 {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    color: var(--cmh-green);
}

.cmh-haq-title,
.cmh-haq-result-name {
    font-weight: 600;
}

.cmh-haq-question-title,
.cmh-haq-result-section h3,
.cmh-haq-medicine-bridge h3 {
    font-weight: 600;
}

.cmh-haq-eyebrow {
    font-family: "Cinzel Decorative", "Cormorant Garamond", Georgia, serif;
    color: var(--cmh-brown);
    opacity: 1;
    letter-spacing: .11em;
}

.cmh-haq-intro,
.cmh-haq-reassurance,
.cmh-haq-timing,
.cmh-haq-result-subtitle,
.cmh-haq-result-themes,
.cmh-haq-result-content,
.cmh-haq-shared-summary,
.cmh-haq-progress-row,
.cmh-haq-answer-card,
.cmh-haq-back-button,
.cmh-haq-retake-button,
.cmh-haq-copy-button,
.cmh-haq-share-status {
    font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cmh-haq-progress {
    background: rgba(30, 58, 43, .12);
}
.cmh-haq-progress span {
    background: var(--cmh-gold);
    opacity: 1;
}

.cmh-haq-answer-card {
    border-color: rgba(30, 58, 43, .18);
    background: rgba(255, 255, 255, .72);
    color: var(--cmh-charcoal);
}
.cmh-haq-answer-card:hover,
.cmh-haq-answer-card:focus-visible {
    border-color: var(--cmh-green) !important;
    background: var(--cmh-sage) !important;
    color: var(--cmh-charcoal) !important;
    box-shadow: 0 5px 18px rgba(30, 58, 43, .10);
}
.cmh-haq-answer-card:focus-visible {
    outline: 3px solid rgba(212, 155, 75, .45);
    outline-offset: 2px;
}
.cmh-haq-answer-card.is-selected {
    border-color: var(--cmh-green);
    background: var(--cmh-sage);
    box-shadow: 0 0 0 2px var(--cmh-green) inset;
}

.cmh-haq-start-button,
.cmh-haq-restart-button,
.cmh-haq-share-button,
.cmh-haq-take-quiz-button,
.cmh-haq-medicine-button {
    box-sizing: border-box;
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid var(--cmh-green) !important;
    border-radius: 25px !important;
    background: var(--cmh-green) !important;
    color: #fff !important;
    font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cmh-haq-start-button:hover,
.cmh-haq-restart-button:hover,
.cmh-haq-share-button:hover,
.cmh-haq-take-quiz-button:hover,
.cmh-haq-medicine-button:hover,
.cmh-haq-start-button:focus-visible,
.cmh-haq-restart-button:focus-visible,
.cmh-haq-share-button:focus-visible,
.cmh-haq-take-quiz-button:focus-visible,
.cmh-haq-medicine-button:focus-visible {
    background: var(--cmh-brown) !important;
    border-color: var(--cmh-brown) !important;
    color: #fff !important;
    box-shadow: 0 5px 16px rgba(92, 46, 25, .16);
}
.cmh-haq-start-button:focus-visible,
.cmh-haq-restart-button:focus-visible,
.cmh-haq-share-button:focus-visible,
.cmh-haq-take-quiz-button:focus-visible,
.cmh-haq-medicine-button:focus-visible,
.cmh-haq-copy-button:focus-visible {
    outline: 3px solid rgba(212, 155, 75, .55);
    outline-offset: 3px;
}

.cmh-haq-copy-button {
    min-height: 46px;
    padding: 11px 22px;
    border: 1px solid var(--cmh-green);
    border-radius: 25px;
    background: transparent;
    color: var(--cmh-green);
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.cmh-haq-copy-button:hover,
.cmh-haq-copy-button:focus-visible {
    border-color: var(--cmh-green);
    background: var(--cmh-sage);
    color: var(--cmh-green);
}

.cmh-haq-back-button,
.cmh-haq-retake-button {
    color: var(--cmh-brown);
}

.cmh-haq-result-image-wrap {
    border: 1px solid rgba(30, 58, 43, .12);
}

.cmh-haq-result-themes {
    color: var(--cmh-brown);
}

.cmh-haq-result-section,
.cmh-haq-share-section,
.cmh-haq-medicine-bridge {
    border-color: rgba(30, 58, 43, .14);
}

.cmh-haq-result-callout {
    border-color: rgba(30, 58, 43, .16);
    background: var(--cmh-sage);
}

.cmh-haq-result-carry {
    border-color: rgba(212, 155, 75, .42);
    background: rgba(212, 155, 75, .10);
}

.cmh-haq-medicine-bridge {
    background: rgba(228, 235, 218, .42);
}

.cmh-haq-transition-message {
    color: var(--cmh-green);
}

@media (prefers-reduced-motion: reduce) {
    .cmh-haq-start-button,
    .cmh-haq-restart-button,
    .cmh-haq-share-button,
    .cmh-haq-take-quiz-button,
    .cmh-haq-medicine-button,
    .cmh-haq-copy-button {
        transition: none;
    }
}
