.cmh-hmc {
    --cmh-forest: #214936;
    --cmh-forest-deep: #173b2c;
    --cmh-gold: #b98a3d;
    --cmh-gold-soft: rgba(185, 138, 61, 0.28);
    --cmh-ink: #2c2a25;
    --cmh-muted: #625f55;
    --cmh-paper: #fbf7ed;
    --cmh-paper-deep: #f4eddd;
    --cmh-accent-bg: rgba(33, 73, 54, 0.06);
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    color: var(--cmh-ink);
}

.cmh-hmc--shaman {
    --cmh-forest: #285843;
    --cmh-forest-deep: #173b2c;
    --cmh-gold: #b99546;
    --cmh-accent-bg: rgba(40, 88, 67, 0.06);
}

.cmh-hmc--smokey {
    --cmh-forest: #4d3a23;
    --cmh-forest-deep: #352414;
    --cmh-gold: #b77f3b;
    --cmh-accent-bg: rgba(77, 58, 35, 0.06);
}

.cmh-hmc--tj {
    --cmh-forest: #1d6053;
    --cmh-forest-deep: #10463b;
    --cmh-gold: #c0913e;
    --cmh-accent-bg: rgba(29, 96, 83, 0.06);
}

.cmh-hmc__panel,
.cmh-hmc__card {
    border: 1px solid rgba(72, 69, 54, 0.24);
    border-radius: 18px;
    background: var(--cmh-paper);
    box-shadow: 0 18px 44px rgba(39, 42, 34, 0.10);
}

.cmh-hmc__panel {
    padding: clamp(1.6rem, 4vw, 2.75rem);
    text-align: center;
}

.cmh-hmc__eyebrow,
.cmh-hmc__horse,
.cmh-hmc__archetype {
    margin: 0;
}

.cmh-hmc__eyebrow {
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.78rem;
    color: var(--cmh-muted);
}

.cmh-hmc__title {
    margin: 0 0 1rem;
}

.cmh-hmc__intro {
    max-width: 560px;
    margin: 0 auto 1.25rem;
    font-size: 1.08rem;
}

.cmh-hmc__start-visual {
    margin: 0 auto 1.65rem;
}

.cmh-hmc__group-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.cmh-hmc__opening-image,
.cmh-hmc__card-art {
    display: block;
    width: 100%;
    height: auto;
}

.cmh-hmc__opening-wrap {
    width: min(100%, 410px);
    margin: 0 auto;
}

.cmh-hmc__opening-image {
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(39, 42, 34, 0.14);
}

.cmh-hmc__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.45rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.cmh-hmc__button--primary {
    background: var(--cmh-forest);
    color: #fff;
    box-shadow: 0 7px 18px color-mix(in srgb, var(--cmh-forest) 55%, transparent);
}

.cmh-hmc__button--primary:hover,
.cmh-hmc__button--primary:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.cmh-hmc__button--secondary {
    background: transparent;
    color: var(--cmh-forest-deep);
    border: 1px solid var(--cmh-gold);
    box-shadow: 0 4px 12px rgba(39, 42, 34, 0.06);
}

.cmh-hmc__button--secondary:hover,
.cmh-hmc__button--secondary:focus-visible {
    background: var(--cmh-accent-bg);
    transform: translateY(-1px);
}

.cmh-hmc__button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.cmh-hmc__button:focus-visible {
    outline: 3px solid rgba(185, 138, 61, 0.55);
    outline-offset: 3px;
}

.cmh-hmc__result[hidden],
.cmh-hmc__panel[hidden] {
    display: none !important;
}

.cmh-hmc__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.cmh-hmc__card {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.cmh-hmc__card-header {
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.35rem, 5vw, 3.5rem) clamp(1.9rem, 4vw, 2.9rem);
    border-bottom: 1px solid var(--cmh-gold-soft);
    background: linear-gradient(180deg, #fffaf0 0%, var(--cmh-paper) 75%);
}

.cmh-hmc__card-art-wrap {
    width: min(100%, 390px);
    margin: 0 auto 1.35rem;
}

.cmh-hmc__card-art {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(72, 69, 54, 0.20);
    box-shadow: 0 12px 28px rgba(39, 42, 34, 0.14);
}

.cmh-hmc__horse {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--cmh-forest-deep);
}

.cmh-hmc__archetype {
    margin-top: 0.35rem;
    font-size: 0.93rem;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: var(--cmh-muted);
}

.cmh-hmc__theme {
    margin: 1.1rem 0 0;
    font-size: clamp(2rem, 6vw, 3.2rem);
    line-height: 1.05;
    color: var(--cmh-ink);
}

.cmh-hmc__section,
.cmh-hmc__guidance {
    margin-left: clamp(1.35rem, 5vw, 3.5rem);
    margin-right: clamp(1.35rem, 5vw, 3.5rem);
}

.cmh-hmc__section {
    margin-top: 0;
    padding: clamp(1.55rem, 3.4vw, 2.15rem) 0;
}

.cmh-hmc__section + .cmh-hmc__section {
    border-top: 1px solid rgba(72, 69, 54, 0.12);
}

.cmh-hmc__section h4 {
    margin: 0 0 0.55rem;
    font-size: 0.77rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cmh-forest-deep);
}

.cmh-hmc__section p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.02rem;
}

.cmh-hmc__section--message {
    padding-top: clamp(1.9rem, 4vw, 2.65rem);
    padding-bottom: clamp(1.9rem, 4vw, 2.65rem);
}

.cmh-hmc__section--message p {
    font-size: clamp(1.12rem, 2.6vw, 1.32rem);
    line-height: 1.65;
    font-weight: 600;
}

.cmh-hmc__section--reflection {
    color: #3d3a33;
}

.cmh-hmc__guidance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 0 0 clamp(1.9rem, 4vw, 2.6rem);
}

.cmh-hmc__guidance .cmh-hmc__section {
    margin: 0;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(72, 69, 54, 0.13);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), var(--cmh-accent-bg));
}

.cmh-hmc__guidance .cmh-hmc__section + .cmh-hmc__section {
    border-top: 1px solid rgba(72, 69, 54, 0.13);
}

.cmh-hmc__section--affirmation {
    margin: 0;
    padding: clamp(1.9rem, 4vw, 2.7rem) clamp(1.35rem, 5vw, 3.5rem);
    border-top: 1px solid var(--cmh-gold-soft);
    background: linear-gradient(180deg, var(--cmh-accent-bg), rgba(255, 255, 255, 0.32));
    text-align: center;
}

.cmh-hmc__section--affirmation h4 {
    color: var(--cmh-gold);
}

.cmh-hmc__section--affirmation p {
    max-width: 640px;
    margin: 0 auto;
    font-family: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
    font-size: clamp(1.14rem, 3vw, 1.4rem);
    line-height: 1.65;
    font-weight: 700;
    color: var(--cmh-forest-deep);
}

.cmh-hmc__actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.65rem;
}

.cmh-hmc__noscript {
    margin-top: 1rem;
}


/* Hide the theme-generated page title only on pages that contain this plugin.
   The plugin supplies the single visible H1 for the experience. */
.cmh-hmc-page .entry-title,
.cmh-hmc-page .wp-block-post-title,
.cmh-hmc-page .page-title {
    display: none !important;
}

.cmh-hmc__about {
    max-width: 760px;
    margin: 2.25rem auto 0;
    padding: 1.75rem 1.9rem;
    border-top: 1px solid var(--cmh-gold-soft);
    color: var(--cmh-ink);
}

.cmh-hmc__about h2 {
    margin: 0 0 1rem;
    color: var(--cmh-forest-deep);
}

.cmh-hmc__about p {
    margin: 0 0 1rem;
    line-height: 1.75;
    font-size: 1.02rem;
}

.cmh-hmc__about p:last-child {
    margin-bottom: 0;
}

.cmh-hmc__about a {
    color: var(--cmh-forest-deep);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

@media (max-width: 680px) {
    .cmh-hmc {
        padding: 0.4rem;
        margin-top: 1.25rem;
    }

    .cmh-hmc__panel,
    .cmh-hmc__card {
        border-radius: 14px;
    }

    .cmh-hmc__opening-wrap {
        width: min(100%, 340px);
    }

    .cmh-hmc__card-art-wrap {
        width: min(100%, 320px);
        margin-bottom: 1.1rem;
    }

    .cmh-hmc__guidance {
        grid-template-columns: 1fr;
    }

    .cmh-hmc__actions,
    .cmh-hmc__button {
        width: 100%;
    }

    .cmh-hmc__actions {
        gap: 0.7rem;
    }
}
