/* /help-me-choose: the "help me choose" questionnaire.
   Dressed in the site's theme: Open Sans with light headings, the Kendo primary slate blue for actions
   and selections, the yellow accent, grey title band and plain white cards used across scholaro.com.
   Every answer is a big illustrated tile. Everything is prefixed hmc- because Bootstrap already owns .nav-*. */

:root {
    --hmc-ink: #333333;          /* site body text */
    --hmc-paper: #F5F5F5;        /* site light grey: picture wells, fields */
    --hmc-band: #EFEFEF;         /* site title band */
    --hmc-sheet: #FFFFFF;
    --hmc-primary: #60688B;      /* Kendo primary (k-button-solid-primary) */
    --hmc-primary-hover: #434C75;
    --hmc-primary-soft: #EEF0F6;
    --hmc-accent: #FFE272;       /* site yellow (k-button-solid-secondary) */
    --hmc-flag: #993333;         /* site red: the Required badge and errors */
    --hmc-rule: #DEE2E6;         /* site hairline */
    --hmc-muted: #615D60;        /* site muted text */
    --hmc-font: 'Open Sans', Arial, sans-serif;
    --hmc-radius: 6px;
    --hmc-tile-radius: 8px;
    --hmc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --hmc-spring: cubic-bezier(0.3, 1.5, 0.5, 1);
}

/* ---- Page ---------------------------------------------------------------------------------------- */

.hmc-paper {
    font-family: var(--hmc-font);
    color: var(--hmc-ink);
    background: var(--hmc-sheet);
    min-height: 70vh;
}

.hmc-hero {
    background: var(--hmc-band);
    padding: 2rem 0 2.25rem;
    animation: hmc-settle 0.5s var(--hmc-ease) both;
}

/* Light, large Open Sans, as the site's section titles ("Credential Evaluation", "How It Works"). */
.hmc-title {
    font-family: var(--hmc-font);
    font-weight: 300;
    font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
    line-height: 1.15;
    color: var(--hmc-ink);
    margin-bottom: 0.5rem;
}

.hmc-lede {
    font-size: 1.1rem;
    color: var(--hmc-ink);
    max-width: 60ch;
    margin: 0;
}


/* ---- Progress rail: the path this applicant will actually see, with their answers ---------------- */

.hmc-rail {
    list-style: none;
    counter-reset: hmc-step;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--hmc-rule);
}

.hmc-rail-item {
    counter-increment: hmc-step;
    position: relative;
}

.hmc-rail-btn {
    display: grid;
    grid-template-columns: 1.6em 1fr;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    color: var(--hmc-muted);
    font-size: 0.95rem;
    border-radius: 0 var(--hmc-radius) var(--hmc-radius) 0;
}

.hmc-rail-btn::before {
    content: counter(hmc-step);
    font-variant-numeric: tabular-nums;
    color: #ADB5BD;
    font-weight: 600;
}

.hmc-rail-result .hmc-rail-btn::before {
    content: '';
}

.hmc-rail-answer {
    grid-column: 2;
    font-size: 0.825rem;
    color: var(--hmc-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmc-rail-item.is-done .hmc-rail-btn {
    color: var(--hmc-ink);
    cursor: pointer;
}

.hmc-rail-item.is-done .hmc-rail-btn::before {
    content: '\2713';
    color: var(--hmc-primary);
}

.hmc-rail-item.is-done .hmc-rail-btn:hover {
    background: var(--hmc-primary-soft);
}

.hmc-rail-btn:disabled {
    cursor: default;
}

.hmc-rail-item.is-current .hmc-rail-btn {
    color: var(--hmc-ink);
    font-weight: 600;
}

.hmc-rail-item.is-current .hmc-rail-btn::before {
    color: var(--hmc-primary);
}

.hmc-rail-item.is-current::after {
    /* A thick mark over the rail line beside the current step. */
    content: '';
    position: absolute;
    left: -2px;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 3px;
    background: var(--hmc-primary);
}

.hmc-bar {
    height: 4px;
    border-radius: 4px;
    background: var(--hmc-rule);
    margin-top: 1.25rem;
    overflow: hidden;
}

.hmc-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--hmc-primary);
    transition: width 0.4s var(--hmc-ease);
}

.hmc-count {
    font-size: 0.875rem;
    color: var(--hmc-muted);
    margin: 0.5rem 0 0;
}

@media (max-width: 991.98px) {
    .hmc-rail {
        display: none;
    }
}

/* ---- The sheet ----------------------------------------------------------------------------------- */

.hmc-sheet {
    background: var(--hmc-sheet);
    border: 1px solid var(--hmc-rule);
    border-radius: var(--hmc-radius);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.hmc-question {
    font-family: var(--hmc-font);
    font-weight: 300;
    color: var(--hmc-ink);
    font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    max-width: 26ch;
}

.hmc-question:focus {
    outline: none;
}

.hmc-hint {
    color: var(--hmc-muted);
    margin: -0.75rem 0 1.5rem;
    max-width: 60ch;
}

/* Step changes slide in the direction of travel. */
.hmc-step.is-forward,
.hmc-sub.is-forward {
    animation: hmc-in-forward 0.38s var(--hmc-ease) both;
}

.hmc-step.is-back,
.hmc-sub.is-back {
    animation: hmc-in-back 0.38s var(--hmc-ease) both;
}

@keyframes hmc-in-forward {
    from { opacity: 0; transform: translateX(36px); }
    to { opacity: 1; transform: none; }
}

@keyframes hmc-in-back {
    from { opacity: 0; transform: translateX(-36px); }
    to { opacity: 1; transform: none; }
}

/* ---- Picture tiles ------------------------------------------------------------------------------- */

.hmc-tiles {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.hmc-tiles-2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); max-width: 40rem; }
.hmc-tiles-3 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.hmc-tiles-4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.hmc-tiles-5 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.hmc-tiles-pages { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }

/* Text tiles: no picture, for detailed purposes and "where did you hear about us". */
.hmc-tile.hmc-tile-text {
    justify-content: center;
    min-height: 5.75rem;
    padding: 1rem 3rem 1rem 1.1rem;
}

.hmc-tile-text .hmc-tile-title,
.hmc-tile-text .hmc-tile-sub {
    padding: 0;
}

.hmc-tile-text .hmc-key {
    top: auto;
    left: auto;
    bottom: 0.6rem;
    right: 0.7rem;
}

.hmc-tile-text::after {
    top: 50%;
    right: 0.8rem;
    width: 1.6rem;
    height: 1.6rem;
    margin-top: -0.8rem;
}

/* The credentials multi-select moves on with Continue, not a tap; it waits for a choice. */
.hmc-continue:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hmc-selected-count {
    color: var(--hmc-muted);
    font-weight: 600;
}

/* Page-count tiles are small: the number is the picture. */
.hmc-tile-count .hmc-tile-art {
    aspect-ratio: 5 / 3;
}

.hmc-tile {
    --i: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    text-align: left;
    background: var(--hmc-sheet);
    border: 1px solid var(--hmc-rule);
    border-radius: var(--hmc-tile-radius);
    padding: 0.7rem 0.7rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--hmc-ink);
    cursor: pointer;
    transition:
        transform 0.22s var(--hmc-spring),
        box-shadow 0.22s var(--hmc-ease),
        border-color 0.15s ease,
        background-color 0.15s ease,
        opacity 0.2s ease;
}

/* Tiles arrive one after another each time a question appears. */
.is-forward .hmc-tile,
.is-back .hmc-tile,
.hmc-tiles.is-fresh .hmc-tile {
    animation: hmc-tile-in 0.42s var(--hmc-spring) both;
    animation-delay: calc(var(--i) * 45ms + 60ms);
}

@keyframes hmc-tile-in {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.hmc-tile-art {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--hmc-tile-radius) - 3px);
    background: var(--hmc-paper);
    margin-bottom: 0.55rem;
    overflow: hidden;
}

.hmc-tile-art svg,
.hmc-tile-art img {
    width: 86%;
    height: auto;
    transition: transform 0.35s var(--hmc-spring);
}

.hmc-tile-art img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.hmc-tile-title {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.25;
    padding: 0 0.3rem;
}

.hmc-tile-sub {
    color: var(--hmc-muted);
    font-size: 0.875rem;
    line-height: 1.35;
    padding: 0 0.3rem;
}

.hmc-key {
    position: absolute;
    top: 0.95rem;
    left: 0.95rem;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--hmc-rule);
    color: var(--hmc-muted);
    font-size: 0.75rem;
    font-weight: 700;
    display: none;
    place-items: center;
}

.hmc-key:not(:empty) {
    display: grid;
}

@media (hover: none), (max-width: 991.98px) {
    .hmc-key:not(:empty) {
        display: none;
    }
}

/* Hover is a border and a shadow only: tiles and their pictures stay put under the pointer. */
@media (hover: hover) {
    .hmc-tile:hover {
        border-color: var(--hmc-primary);
        box-shadow: 0 6px 16px -8px rgba(96, 104, 139, 0.55);
    }
}

.hmc-tile:active {
    transform: scale(0.97);
    transition-duration: 0.08s;
}

.hmc-tile:focus-visible {
    outline: 3px solid var(--hmc-primary);
    outline-offset: 3px;
}

/* Selected: theme-blue frame (2px, drawn inside so nothing shifts), a check that pops in. */
.hmc-tile.is-selected {
    border-color: var(--hmc-primary);
    box-shadow: inset 0 0 0 1px var(--hmc-primary);
    background: var(--hmc-primary-soft);
    transform: none;
}

.hmc-tile.is-selected .hmc-tile-art {
    background: var(--hmc-sheet);
}

.hmc-tile::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--hmc-primary)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / 70% no-repeat;
    box-shadow: 0 4px 10px -4px rgba(96, 104, 139, 0.7);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s var(--hmc-spring), opacity 0.15s ease;
}

.hmc-tile.is-selected::after {
    transform: scale(1);
    opacity: 1;
}

.hmc-tile.is-selected .hmc-tile-art svg,
.hmc-tile.is-selected .hmc-tile-art img {
    animation: hmc-picked 0.45s var(--hmc-spring);
}

@keyframes hmc-picked {
    0% { transform: scale(1); }
    40% { transform: scale(1.12) rotate(2deg); }
    100% { transform: scale(1); }
}

/* While an answer is being saved, the other tiles step back. */
.hmc-tiles.is-busy .hmc-tile:not(.is-selected) {
    opacity: 0.45;
    pointer-events: none;
}

.hmc-tile-quiet {
    border-style: dashed;
    box-shadow: none;
}

/* Flag and script tiles: the picture is a flag or a letter instead of a drawing. */
.hmc-tile-flag {
    width: 62%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 6px 14px -8px rgba(0, 0, 0, 0.5);
    transition: transform 0.35s var(--hmc-spring);
}

.hmc-tile-flag.is-fallback {
    display: grid;
    place-items: center;
    background: var(--hmc-sheet);
    font-family: var(--hmc-font);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--hmc-ink);
}

.hmc-tile-glyph {
    font-family: var(--hmc-font), 'Noto Sans', 'Segoe UI', sans-serif;
    font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem);
    font-weight: 600;
    line-height: 1;
    color: var(--hmc-ink);
    transition: transform 0.35s var(--hmc-spring);
}

/* ---- Search boxes -------------------------------------------------------------------------------- */

.hmc-search {
    position: relative;
    max-width: 38rem;
}

.hmc-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: -0.675rem;
    color: var(--hmc-muted);
    pointer-events: none;
}

.hmc-search-input {
    width: 100%;
    font-size: 1.15rem;
    padding: 1rem 1.25rem 1rem 3.2rem;
    border: 1px solid #CED4DA;
    border-radius: var(--hmc-radius);
    background: var(--hmc-sheet);
    color: var(--hmc-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hmc-search-input:focus {
    outline: none;
    border-color: var(--hmc-primary);
    box-shadow: 0 0 0 0.2rem rgba(96, 104, 139, 0.25);
}

.hmc-results-tiles:not(:empty) {
    margin-top: 1rem;
}

.hmc-empty {
    grid-column: 1 / -1;
    color: var(--hmc-muted);
    margin: 0;
}

.hmc-other-row {
    max-width: 24rem;
}

.hmc-other-row .form-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.hmc-other-row .form-select:focus {
    border-color: var(--hmc-primary);
    box-shadow: 0 0 0 0.2rem rgba(96, 104, 139, 0.2);
}

/* ---- Back, and the plain buttons ----------------------------------------------------------------- */

.hmc-back-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

/* Plain text actions, in the theme's link blue. */
.hmc-back,
.hmc-link-btn,
.hmc-paper a.hmc-link-btn {
    background: none;
    border: 0;
    padding: 0.5rem 0;
    color: var(--hmc-primary);
    font-weight: 600;
    text-decoration: none;
}

.hmc-back:hover,
.hmc-link-btn:hover,
.hmc-paper a.hmc-link-btn:hover {
    color: var(--hmc-primary-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hmc-back:focus-visible,
.hmc-link-btn:focus-visible,
.hmc-rail-btn:focus-visible {
    outline: 3px solid var(--hmc-primary);
    outline-offset: 2px;
}

.hmc-keys-hint {
    margin-left: auto;
    color: var(--hmc-muted);
    font-size: 0.85rem;
}

.hmc-loading {
    color: var(--hmc-muted);
}

/* ---- Result: the evaluator's slip ---------------------------------------------------------------- */

.hmc-slip {
    position: relative;
    border: 1px solid var(--hmc-rule);
    border-top: 4px solid var(--hmc-primary);
    border-radius: var(--hmc-radius);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    background: var(--hmc-sheet);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.hmc-slip.is-contact {
    border-top-color: var(--hmc-muted);
}

.hmc-slip-head {
    display: grid;
    grid-template-columns: minmax(120px, 190px) 1fr;
    gap: 1.5rem;
    align-items: center;
    padding-right: clamp(0rem, 8vw, 7rem);
}

.hmc-slip-art {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: var(--hmc-tile-radius);
    background: var(--hmc-paper);
}

.hmc-slip-art svg,
.hmc-slip-art img {
    width: 88%;
    height: auto;
}

.hmc-slip-art img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.hmc-slip-kicker {
    color: var(--hmc-muted);
    margin-bottom: 0.25rem;
}

.hmc-slip-title {
    font-family: var(--hmc-font);
    font-weight: 300;
    color: var(--hmc-ink);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hmc-slip-title:focus {
    outline: none;
}

.hmc-slip-desc {
    font-size: 1.05rem;
    max-width: 55ch;
    margin: 0;
}

.hmc-reasons,
.hmc-conflicts ul {
    list-style: disc;   /* the site stylesheet strips list markers */
}

.hmc-reasons {
    padding-left: 1.1rem;
    margin: 1.5rem 0 1rem;
    max-width: 66ch;
}

.hmc-reasons li {
    margin-bottom: 0.4rem;
}

.hmc-reasons li::marker {
    color: var(--hmc-primary);
}

.hmc-conflicts {
    border-left: 3px solid var(--hmc-flag);
    padding-left: 0.9rem;
    margin: 1rem 0;
}

.hmc-conflicts ul {
    margin: 0;
    padding-left: 1.1rem;
}

.hmc-terms {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.25rem 1.5rem;
    margin: 1.25rem 0 0;
}

.hmc-terms dt {
    font-weight: 400;
    color: var(--hmc-muted);
}

.hmc-terms dd {
    margin: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hmc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin-top: 1.75rem;
}

/* Main actions are the theme's primary Kendo button (as "Buy Now" on /premium). */
.hmc-kbtn {
    font-family: var(--hmc-font);
    font-weight: 600;
    padding-inline: 1.5rem;
    text-decoration: none;
}

/* The site stylesheet colors every link state, so "Start order" (a link) needs the extra weight. */
.hmc-paper a.hmc-kbtn,
.hmc-paper a.hmc-kbtn:link,
.hmc-paper a.hmc-kbtn:visited,
.hmc-paper a.hmc-kbtn:hover,
.hmc-paper a.hmc-kbtn:focus {
    color: #fff;
    text-decoration: none;
}

.hmc-kbtn.is-ready {
    animation: hmc-nudge 0.6s var(--hmc-spring);
}

@keyframes hmc-nudge {
    0%, 100% { transform: none; }
    40% { transform: scale(1.08); }
}

/* "Required" / "Needs review": a plain badge in the corner. */
.hmc-stamp {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--hmc-flag);
    border-radius: var(--hmc-radius);
    padding: 0.3rem 0.7rem;
    z-index: 1;
}

.hmc-slip.is-contact .hmc-stamp {
    background: var(--hmc-muted);
}

@media (max-width: 575.98px) {
    .hmc-slip-head {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

    .hmc-slip-art {
        max-width: 220px;
    }

    .hmc-stamp {
        top: 1rem;
        right: 1rem;
    }
}

.hmc-account-note {
    margin: 0.85rem 0 0;
    color: var(--hmc-muted);
    font-size: 0.925rem;
    max-width: 56ch;
}

/* "Start order" is swapped for the account form while it's shown, so [hidden] has to beat inline-flex. */
.hmc-kbtn[hidden] {
    display: none;
}

/* The account form: a grey panel inside the card. */
.hmc-account {
    position: relative;
    margin-top: 1.75rem;
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
    background: var(--hmc-paper);
    border: 1px solid var(--hmc-rule);
    border-radius: var(--hmc-radius);
}

.hmc-account[hidden] {
    display: none;
}

.hmc-account-title {
    font-family: var(--hmc-font);
    font-weight: 400;
    font-size: 1.4rem;
    margin: 0 0 0.35rem;
}

.hmc-account-lede {
    color: var(--hmc-muted);
    margin: 0 0 1.25rem;
    max-width: 56ch;
}

.hmc-account-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem 1.25rem;
}

.hmc-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.hmc-field-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}

/* Password requirements: grey until met, then a theme-blue check (as Login's sign-up list). */
.hmc-pw-rules {
    list-style: none;
    padding: 0;
    margin: 0.15rem 0 0;
    display: grid;
    gap: 0.15rem;
    font-size: 0.85rem;
    color: var(--hmc-muted);
}

.hmc-pw-rules li::before {
    content: '\25CB';
    display: inline-block;
    width: 1.2em;
}

.hmc-pw-rules li.is-met {
    color: var(--hmc-ink);
}

.hmc-pw-rules li.is-met::before {
    content: '\2713';
    color: var(--hmc-primary);
    font-weight: 700;
}

.hmc-field-hint {
    color: var(--hmc-muted);
    font-size: 0.85rem;
}

/* The site's text box: white, hairline border, theme-blue focus ring. */
.hmc-input {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--hmc-ink);
    background: var(--hmc-sheet);
    border: 1px solid #CED4DA;
    border-radius: var(--hmc-radius);
    padding: 0.6rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hmc-input:focus {
    outline: none;
    border-color: var(--hmc-primary);
    box-shadow: 0 0 0 0.2rem rgba(96, 104, 139, 0.25);
}

.hmc-input[aria-invalid="true"] {
    border-color: var(--hmc-flag);
}

.hmc-password {
    position: relative;
    display: block;
}

.hmc-password .hmc-input {
    padding-right: 4.25rem;
}

.hmc-reveal {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

.hmc-turnstile:not(:empty) {
    margin-top: 1.25rem;
}

.hmc-account-error {
    margin: 1rem 0 0;
    padding: 0.7rem 0.9rem;
    border-left: 4px solid var(--hmc-flag);
    background: #F8EAEA;
    color: var(--hmc-flag);
    border-radius: 0 6px 6px 0;
    max-width: 60ch;
}

.hmc-account-error[hidden] {
    display: none;
}

.hmc-account-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin-top: 1.5rem;
}

/* Busy, not unavailable. */
#hmc-account-submit:disabled {
    opacity: 0.75;
    cursor: progress;
}

.hmc-copied {
    color: var(--hmc-primary);
    font-size: 0.9rem;
}

.hmc-h3 {
    font-family: var(--hmc-font);
    font-weight: 400;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.hmc-extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem 2rem;
    margin-top: 2rem;
}

.hmc-extras > [hidden] {
    display: none;
}

/* Small picture cards for add-ons and the alternative. */
.hmc-mini-tiles {
    display: grid;
    gap: 0.75rem;
}

.hmc-mini {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0.9rem;
    align-items: center;
    border: 1px solid var(--hmc-rule);
    border-radius: var(--hmc-tile-radius);
    padding: 0.6rem 0.9rem 0.6rem 0.6rem;
    background: var(--hmc-sheet);
}

.hmc-mini .hmc-tile-art {
    margin: 0;
}

/* An option to choose instead: the whole card is the button. */
.hmc-mini-choice {
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s var(--hmc-ease);
}

.hmc-mini-choice:hover {
    border-color: var(--hmc-primary);
    box-shadow: 0 6px 16px -8px rgba(96, 104, 139, 0.55);
}

.hmc-mini-choice:active {
    transform: scale(0.99);
}

.hmc-mini-choice:focus-visible {
    outline: 3px solid var(--hmc-primary);
    outline-offset: 2px;
}

.hmc-mini-cta {
    display: block;
    margin-top: 0.4rem;
    color: var(--hmc-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.hmc-mini-choice:hover .hmc-mini-cta {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hmc-mini-title {
    font-weight: 600;
    display: block;
}

.hmc-mini-sub {
    color: var(--hmc-muted);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.15rem;
}

.hmc-mini-price {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

/* Documents: a checklist that counts itself. */
.hmc-docs {
    margin-top: 2.25rem;
}

.hmc-docs-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.hmc-docs-count {
    color: var(--hmc-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hmc-meter {
    height: 6px;
    border-radius: 6px;
    background: var(--hmc-rule);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.hmc-meter span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--hmc-primary);
    transition: width 0.45s var(--hmc-spring);
}

.hmc-docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.hmc-doc {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1px solid var(--hmc-rule);
    border-radius: var(--hmc-radius);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hmc-doc:hover {
    border-color: var(--hmc-primary);
}

.hmc-doc input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hmc-doc-box {
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 4px;
    border: 2px solid #ADB5BD;
    background: var(--hmc-sheet);
    display: grid;
    place-items: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.25s var(--hmc-spring);
}

.hmc-doc-box::after {
    content: '';
    width: 0.45rem;
    height: 0.8rem;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: translateY(-1px) rotate(45deg) scale(0);
    transition: transform 0.25s var(--hmc-spring);
}

.hmc-doc:has(input:checked) {
    border-color: var(--hmc-primary);
    background: var(--hmc-primary-soft);
}

.hmc-doc:has(input:checked) .hmc-doc-box {
    background: var(--hmc-primary);
    border-color: var(--hmc-primary);
    transform: scale(1.08);
}

.hmc-doc:has(input:checked) .hmc-doc-box::after {
    transform: translateY(-1px) rotate(45deg) scale(1);
}

.hmc-doc:has(input:focus-visible) {
    outline: 3px solid var(--hmc-primary);
    outline-offset: 2px;
}

.hmc-docs-lede {
    color: var(--hmc-muted);
    margin: 0 0 0.75rem;
    max-width: 66ch;
}

.hmc-docs-note {
    color: var(--hmc-muted);
    font-size: 0.875rem;
    margin: 0.75rem 0 0;
    max-width: 66ch;
}

.hmc-docs-ready {
    margin: 0.9rem 0 0;
    color: var(--hmc-primary);
    font-weight: 600;
}

.hmc-summary {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hmc-rule);
}

.hmc-answers {
    display: grid;
    grid-template-columns: minmax(8rem, max-content) 1fr;
    gap: 0.4rem 1.5rem;
    margin-bottom: 1rem;
}

.hmc-answers dt {
    font-weight: 400;
    color: var(--hmc-muted);
}

.hmc-answers dd {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    align-items: baseline;
}

.hmc-edit {
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--hmc-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
    .hmc-answers {
        grid-template-columns: 1fr;
    }

    .hmc-answers dd {
        margin-bottom: 0.5rem;
    }

    .hmc-tiles,
    .hmc-tiles-3,
    .hmc-tiles-4,
    .hmc-tiles-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .hmc-tiles-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hmc-tile-title {
        font-size: 0.95rem;
    }

    .hmc-tile-sub {
        font-size: 0.8rem;
    }
}

/* ---- The results reveal: the slip settles, then the stamp lands --------------------------------- */

#help-me-choose[data-state="result"] .hmc-slip {
    animation: hmc-settle 0.5s var(--hmc-ease) both;
}

#help-me-choose[data-state="result"] .hmc-slip-art svg,
#help-me-choose[data-state="result"] .hmc-slip-art img {
    animation: hmc-picked 0.6s var(--hmc-spring) 0.25s both;
}

#help-me-choose[data-state="result"] .hmc-stamp {
    animation: hmc-stamp 0.35s var(--hmc-spring) 0.55s both;
}

#help-me-choose[data-state="result"] .hmc-extras,
#help-me-choose[data-state="result"] .hmc-docs {
    animation: hmc-settle 0.5s var(--hmc-ease) 0.35s both;
}

@keyframes hmc-settle {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes hmc-stamp {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hmc-paper *,
    .hmc-paper *::before,
    .hmc-paper *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---- Print: the result only, for institutional files --------------------------------------------- */

@media print {
    header,
    footer,
    #footer,
    .hmc-rail-col,
    .hmc-noprint {
        display: none !important;
    }

    .hmc-paper {
        background: none;
    }

    .hmc-hero,
    .sticky-menu {
        display: none !important;
    }

    #help-me-choose > .col-lg-9 {
        width: 100%;
    }

    .hmc-sheet {
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .hmc-slip,
    .hmc-doc {
        break-inside: avoid;
    }

    .hmc-paper *,
    .hmc-paper *::before,
    .hmc-paper *::after {
        animation: none !important;
    }
}
