/* Elevated house foundation. UI rules stay within Matchmaker components. */
/* The minimal shell has no pinned header to reserve space for during navigation. */
html:has(body.mrg-matchmaker-page .site-container) { scroll-padding-top: 0; }
.mrg-matchmaker-page .site-container :is(a, button, input, select, textarea, summary, iframe, [tabindex]) { scroll-margin-top: 24px; }
/* WordPress still pins its toolbar above 600px for signed-in visitors. */
@media (min-width: 601px) {
    html:has(body.mrg-matchmaker-page.admin-bar .site-container) { scroll-padding-top: 32px; }
}
@media (min-width: 601px) and (max-width: 782px) {
    html:has(body.mrg-matchmaker-page.admin-bar .site-container) { scroll-padding-top: 46px; }
}
.mrg-matchmaker {
    --mrg-ink: #173e46;
    --mrg-muted: #50646a;
    --mrg-teal: #016787;
    --mrg-deep: #014054;
    color: var(--mrg-ink);
    font: 1.125rem/1.75 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    overflow-wrap: anywhere;
}
.mrg-matchmaker h1,
.mrg-matchmaker h2,
.mrg-matchmaker h3 {
    color: var(--mrg-deep);
    font-family: inherit;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
}
.mrg-matchmaker h1 { font-size: clamp(2.6875rem, 4.8vw, 4rem); margin: 0 0 24px; }
.mrg-matchmaker__hero h1 { font-size: clamp(2.625rem, 4vw, 3.75rem); line-height: 1.1; }
.mrg-matchmaker p { font-size: 1.125rem; line-height: 1.75; margin: 0 0 20px; }
.mrg-matchmaker a { color: var(--mrg-teal); text-underline-offset: 4px; }
.mrg-matchmaker :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--mrg-deep);
    outline-offset: 5px;
}
.mrg-matchmaker input[type=email]::placeholder { color: #50646a; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .mrg-matchmaker *, .mrg-matchmaker *::before, .mrg-matchmaker *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
.mrg-matchmaker .mrg-matchmaker__eyebrow { font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 750; }
.mrg-matchmaker__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
    padding: 65px 65px 50px;
    margin: 24px 0 0;
    background: #f6fbfd;
    border-radius: 8px;
}
.mrg-matchmaker__hero-copy { max-width: 700px; }
.mrg-matchmaker__lead { max-width: 600px; }
.mrg-matchmaker__hero p { color: var(--mrg-muted); font-family: inherit; }
.mrg-matchmaker__hero p strong { color: var(--mrg-ink); font-weight: 700; }
.mrg-matchmaker__hero h1,
.mrg-matchmaker__hero .mrg-matchmaker__eyebrow { color: var(--mrg-ink); }
.mrg-matchmaker__hero .mrg-matchmaker__eyebrow { margin-bottom: 10px; }
.mrg-matchmaker__hero h1 { margin-bottom: 14px; }
.mrg-matchmaker .mrg-matchmaker__subtitle { margin-bottom: 26px; color: var(--mrg-teal); font-size: clamp(1.375rem, 2vw, 1.625rem); font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
.mrg-matchmaker ul.mrg-matchmaker__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.mrg-matchmaker .mrg-matchmaker__facts li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px 7px 12px; background: #fff; border: 1px solid #d9e4e8; border-radius: 30px; color: var(--mrg-ink); font-size: 1rem; font-weight: 650; line-height: 1.4; }
.mrg-matchmaker .mrg-matchmaker__facts li::before { content: ""; flex-shrink: 0; width: 6px; height: 11px; margin: -3px 3px 0 4px; border: solid var(--mrg-teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.mrg-matchmaker .mrg-matchmaker__promise {
    max-width: 540px;
    font-size: 1rem;
    line-height: 1.65;
    border: 0;
    padding: 0;
    margin-top: 18px;
    margin-bottom: 0;
}
/* Members' login sits apart from the pitch as a quiet aside. */
.mrg-matchmaker .mrg-matchmaker__member-login {
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    margin: 22px 0 0;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #d9e4e8;
    border-left: 4px solid var(--mrg-teal);
    border-radius: 8px;
    font-size: .9375rem;
    line-height: 1.6;
}
.mrg-matchmaker .mrg-matchmaker__member-login a { font-weight: 700; }
.mrg-matchmaker__photos { margin: 0; width: 100%; max-width: 320px; min-width: 0; justify-self: end; }
.mrg-matchmaker__photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.mrg-matchmaker__photo-grid img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.mrg-matchmaker__photo-grid img:nth-child(2) { object-position: center 25%; }
.mrg-matchmaker__photos figcaption { padding-top: 14px; color: var(--mrg-deep); font-size: 1.375rem; font-weight: 700; line-height: 1.4; text-align: center; }
.mrg-matchmaker__quiz { max-width: 840px; margin: 50px auto; padding: 0 20px; }
.mrg-matchmaker__state { max-width: 900px; margin: 60px auto 42px; text-align: center; }
.mrg-matchmaker__state p:not(.mrg-matchmaker__eyebrow) { max-width: 640px; margin-left: auto; margin-right: auto; color: var(--mrg-muted); }
.mrg-matchmaker a.mrg-matchmaker__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 15px 24px;
    border: 1px solid var(--mrg-teal);
    border-radius: 8px;
    background: var(--mrg-teal);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}
.mrg-matchmaker a.mrg-matchmaker__button:hover { background: var(--mrg-deep); border-color: var(--mrg-deep); }
@media (max-width: 1250px) {
    .mrg-matchmaker__hero { padding: 50px 38px; }
}
@media (max-width: 850px) {
    .mrg-matchmaker__hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding: 35px; gap: 24px; }
}
@media (max-width: 600px) {
    .mrg-matchmaker__hero { display: block; margin: 0; padding: 35px 0 12px; background: none; }
    .mrg-matchmaker__hero h1 { font-size: 2.375rem; line-height: 1.1; margin-bottom: 14px; }
    .mrg-matchmaker .mrg-matchmaker__promise { margin-top: 22px; }
    .mrg-matchmaker .mrg-matchmaker__member-login { margin-top: 18px; }
    .mrg-matchmaker__desktop-break { display: none; }
    .mrg-matchmaker__photos { max-width: 260px; margin: 24px auto 0; }
    .mrg-matchmaker__photos figcaption { font-size: 1.25rem; padding-top: 12px; }
    .mrg-matchmaker__quiz { padding: 16px 0; margin: 14px auto; }
    .mrg-matchmaker__state { margin: 38px 0 30px; }
}

/* Later question pages keep a small heading aligned with the form. */
.mrg-matchmaker__hero.mrg-matchmaker__hero--compact {
    display: block;
    max-width: 840px;
    margin: 32px auto 0;
    padding: 0 20px;
    background: none;
    text-align: left;
}
.mrg-matchmaker__hero--compact h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: .06em;
}
.mrg-matchmaker__hero--compact + .mrg-matchmaker__quiz { margin-top: 24px; }
@media (max-width: 600px) {
    .mrg-matchmaker__hero.mrg-matchmaker__hero--compact { padding: 0; }
}

/* Approved receipt thank-you promotion; no report cards. */
.mrg-matchmaker--thanks { --mrg-line: #d9e4e8; line-height: 1.7; }
.mrg-matchmaker--thanks :is(h1, h2, h3) { color: var(--mrg-ink); }
.mrg-matchmaker--thanks h1 { font-size: clamp(2.625rem, 4.8vw, 4.5rem); line-height: 1.1; }
.mrg-matchmaker--thanks h2 { margin: 0 0 20px; }
.mrg-matchmaker--thanks h3 { margin: 0 0 1em; }
.mrg-matchmaker--thanks p { font-family: inherit; color: var(--mrg-ink); }
.mrg-matchmaker--thanks .mrg-matchmaker__eyebrow { margin-bottom: 24px; line-height: 1.75; }
/* Keep the delivery status compact so the promotion starts within the first screen. */
.mrg-matchmaker--thanks .mrg-matchmaker__state { margin-top: 32px; }
.mrg-matchmaker--thanks .mrg-matchmaker__state .mrg-matchmaker__eyebrow { margin-bottom: 8px; }
.mrg-matchmaker--thanks .mrg-matchmaker__state p:not(.mrg-matchmaker__eyebrow) { max-width: none; color: var(--mrg-ink); }
.mrg-matchmaker--thanks .mrg-matchmaker__state p.mrg-thanks__lead { max-width: 640px; color: var(--mrg-muted); }
.mrg-matchmaker--thanks .small { font-size: 1rem; line-height: 1.65; color: var(--mrg-muted); }
.mrg-matchmaker--thanks a.mrg-matchmaker__button { gap: 26px; text-align: center; }
.mrg-matchmaker--thanks a.mrg-matchmaker__button span { margin-left: auto; }
.mrg-matchmaker--thanks .success-icon { box-sizing:border-box; display:inline-grid; place-items:center; width:52px; height:52px; border-radius:50%; background:#e5eff3; border:1px solid #d9e4e8; font-size:24px; margin-bottom:14px; }
.mrg-matchmaker--thanks .thanks-promo{--thanks-tint:#e5eff3;max-width:1040px;margin:0 auto}
.mrg-matchmaker--thanks .thanks-promo-intro{max-width:780px;margin:0 auto 48px;text-align:center}
.mrg-matchmaker--thanks .thanks-promo-intro h2{font-size:2.75rem;line-height:1.15}
.mrg-matchmaker--thanks .thanks-promo__word{color:var(--mrg-teal);letter-spacing:.01em}
.mrg-matchmaker--thanks .thanks-promo-intro p:last-child{margin:0;color:var(--mrg-muted)}
.mrg-matchmaker--thanks .thanks-promo :is(h2,h3),.mrg-matchmaker--thanks .thanks-promo-intro p{text-wrap:balance}
.mrg-matchmaker--thanks .mrg-icon{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* Journey: three steps, the guide raised as the next one. */
.mrg-matchmaker--thanks .thanks-journey{list-style:none;margin:0 0 24px;padding:14px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px}
.mrg-matchmaker--thanks .thanks-journey__step{position:relative;display:flex;flex-direction:column;align-items:center;margin:0;padding:34px 24px 28px;background:#fff;border:1px solid var(--mrg-line);border-radius:8px;text-align:center}
.mrg-matchmaker--thanks .thanks-journey__step:not(:last-child)::after{content:"";position:absolute;top:50%;left:calc(100% + 15px);width:11px;height:11px;border:solid #8fb0bc;border-width:2px 2px 0 0;transform:translateY(-50%) rotate(45deg)}
.mrg-matchmaker--thanks .thanks-journey__step--done{background:#fff;border:2px solid var(--mrg-teal)}
/* The guide card is one link: its title's ::after stretches the hit area over the card. */
.mrg-matchmaker--thanks .thanks-journey__link{color:inherit;text-decoration:none}
.mrg-matchmaker--thanks .thanks-journey__link::after{content:"";position:absolute;inset:0;border-radius:8px}
.mrg-matchmaker--thanks .thanks-journey__link:focus-visible{outline:none}
.mrg-matchmaker--thanks .thanks-journey__link:focus-visible::after{outline:3px solid var(--mrg-deep);outline-offset:5px}
.mrg-matchmaker--thanks .thanks-journey__icon{display:grid;place-items:center;width:64px;height:64px;margin-bottom:16px;border-radius:50%;background:var(--thanks-tint);border:1px solid var(--mrg-line);color:var(--mrg-teal)}
.mrg-matchmaker--thanks .thanks-journey h3{margin:0 0 10px;font-size:1.375rem;line-height:1.25}
.mrg-matchmaker--thanks .thanks-journey p{margin:0;font-size:1rem;line-height:1.6;color:var(--mrg-muted)}
.mrg-matchmaker--thanks .thanks-journey__badge{position:absolute;top:-15px;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:5px;padding:3px 12px 3px 9px;background:#fff;color:var(--mrg-deep);border:1px solid #a8c1cc;border-radius:999px;font-size:.875rem;font-weight:700;line-height:1.5;white-space:nowrap}
.mrg-matchmaker--thanks .thanks-journey__badge .mrg-icon{width:16px;height:16px;stroke-width:2.6}
.mrg-matchmaker--thanks .thanks-journey__tag{margin-top:18px;padding:3px 12px;background:#e5eff3;color:var(--mrg-deep);border-radius:999px;font-size:.875rem;font-weight:700;line-height:1.5}
/* What the guide gives you, as one quiet strip. */
.mrg-matchmaker--thanks .thanks-features{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 64px;padding:22px 0;border:1px solid var(--mrg-line);border-radius:8px;background:#fff}
.mrg-matchmaker--thanks .thanks-features li{display:flex;align-items:flex-start;gap:14px;margin:0;padding:0 26px;color:var(--mrg-muted);font-size:.9375rem;line-height:1.5}
.mrg-matchmaker--thanks .thanks-features li+li{border-left:1px solid var(--mrg-line)}
.mrg-matchmaker--thanks .thanks-features .mrg-icon{flex-shrink:0;width:26px;height:26px;color:var(--mrg-teal)}
.mrg-matchmaker--thanks .thanks-features strong{display:block;color:var(--mrg-ink);font-size:1rem}
/* Vetted contacts: the WHO. */
.mrg-matchmaker--thanks .thanks-contacts{margin:0 0 56px;padding:52px 52px 48px;background:#fff;border:1px solid var(--mrg-line);border-radius:8px}
.mrg-matchmaker--thanks .thanks-contacts__intro{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:48px;align-items:center;margin-bottom:36px}
.mrg-matchmaker--thanks .thanks-contacts .mrg-matchmaker__eyebrow,.mrg-matchmaker--thanks .thanks-offer .mrg-matchmaker__eyebrow{margin-bottom:12px}
.mrg-matchmaker--thanks .thanks-contacts h3{margin:0 0 18px;font-size:2.25rem;line-height:1.15}
.mrg-matchmaker--thanks .thanks-contacts__copy p{font-size:1.0625rem;line-height:1.7}
.mrg-matchmaker--thanks .thanks-contacts__copy p.thanks-contacts__pledge{margin:0;padding-left:14px;border-left:3px solid var(--mrg-teal);font-weight:650}
.mrg-matchmaker--thanks .thanks-contacts__map{display:block;width:100%;height:auto;overflow:visible}
.mrg-matchmaker--thanks .thanks-contacts__land{fill:#e5eff3;stroke:#b9cfd7;stroke-width:1.5;stroke-linejoin:round}
.mrg-matchmaker--thanks .thanks-contacts__route{fill:none;stroke:var(--mrg-teal);stroke-width:1.6;stroke-dasharray:3 6;stroke-linecap:round}
.mrg-matchmaker--thanks .thanks-contacts__pins circle{fill:var(--mrg-deep);stroke:#fff;stroke-width:3}
.mrg-matchmaker--thanks .thanks-contacts__list{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0}
.mrg-matchmaker--thanks .thanks-contacts__list li{display:flex;align-items:center;gap:14px;margin:0;padding:12px 16px;background:#fff;border:1px solid var(--mrg-line);border-radius:8px;color:var(--mrg-ink);font-size:1rem;font-weight:650;line-height:1.35}
.mrg-matchmaker--thanks .thanks-contacts__icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:50%;background:var(--thanks-tint);color:var(--mrg-teal)}
.mrg-matchmaker--thanks .thanks-contacts__icon .mrg-icon{width:22px;height:22px}
/* Coupon offer closes the pitch; orange marks the coupon, as on the report. */
.mrg-matchmaker--thanks .thanks-promo .thanks-offer{max-width:780px;margin:0 auto;padding:44px 48px;background:#fff;border:1px solid #a8c1cc;border-top:4px solid #fe7e00;border-radius:8px;box-shadow:0 8px 28px #0140540b;text-align:center}
.mrg-matchmaker--thanks .thanks-offer__icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 18px;border-radius:50%;background:#fef2e5;color:#a6570c}
.mrg-matchmaker--thanks .thanks-offer__icon .mrg-icon{width:30px;height:30px}
.mrg-matchmaker--thanks .thanks-offer h3{margin:0 0 14px;font-size:2rem;line-height:1.2}
.mrg-matchmaker--thanks .thanks-offer p:not(.mrg-matchmaker__eyebrow):not(.small){max-width:560px;margin-left:auto;margin-right:auto}
.mrg-matchmaker--thanks .thanks-offer .coupon-instruction{justify-content:center;margin-bottom:24px}
@media(max-width:900px){.mrg-matchmaker--thanks .thanks-contacts{padding:40px 32px}.mrg-matchmaker--thanks .thanks-contacts__intro{grid-template-columns:1fr;gap:28px}.mrg-matchmaker--thanks .thanks-contacts__map{max-width:440px;margin:0 auto}}
@media(max-width:900px){.mrg-matchmaker--thanks .thanks-journey{grid-template-columns:1fr;gap:44px;max-width:460px;margin-left:auto;margin-right:auto}.mrg-matchmaker--thanks .thanks-journey__step:not(:last-child)::after{top:auto;left:50%;bottom:-29px;transform:translateX(-50%) rotate(135deg)}.mrg-matchmaker--thanks .thanks-features{grid-template-columns:1fr;max-width:460px;margin-left:auto;margin-right:auto;margin-bottom:48px;padding:6px 22px}.mrg-matchmaker--thanks .thanks-features li{padding:16px 0}.mrg-matchmaker--thanks .thanks-features li+li{border-left:0;border-top:1px solid var(--mrg-line)}}
@media(max-width:700px){.mrg-matchmaker--thanks .thanks-contacts__list{grid-template-columns:1fr;gap:8px}.mrg-matchmaker--thanks .thanks-contacts__list li{padding:9px 14px}}
@media(max-width:600px){.mrg-matchmaker--thanks .thanks-promo-intro{margin-bottom:36px}.mrg-matchmaker--thanks .thanks-promo-intro h2{font-size:2rem}.mrg-matchmaker--thanks .thanks-contacts{margin:0 -8px 40px;padding:32px 18px 20px}.mrg-matchmaker--thanks .thanks-contacts h3{font-size:1.75rem}.mrg-matchmaker--thanks .thanks-journey__step{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:16px;align-items:start;padding:26px 20px 22px;text-align:left}.mrg-matchmaker--thanks .thanks-journey__icon{grid-row:span 3;width:52px;height:52px;margin:0}.mrg-matchmaker--thanks .thanks-journey__step--done{padding-top:32px}.mrg-matchmaker--thanks .thanks-journey__badge{left:20px;transform:none}.mrg-matchmaker--thanks .thanks-journey h3{margin-bottom:6px}.mrg-matchmaker--thanks .thanks-journey__tag{justify-self:start;margin-top:12px}.mrg-matchmaker--thanks .thanks-promo .thanks-offer{margin:0 -8px;padding:32px 18px}.mrg-matchmaker--thanks .thanks-offer__icon{width:52px;height:52px}.mrg-matchmaker--thanks .thanks-offer h3{font-size:1.625rem}}
.mrg-matchmaker--thanks .thanks-offer .small{margin:12px 0 0}
@media(max-width:600px){.mrg-matchmaker--thanks .thanks-offer .mrg-matchmaker__button{width:100%}}

:is(.mrg-matchmaker--thanks, .mrg-matchmaker--report) .coupon-instruction{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
:is(.mrg-matchmaker--thanks, .mrg-matchmaker--report) .coupon-code{display:inline-block;padding:6px 12px;background:#fef2e5;color:var(--mrg-deep);border:1px dashed #a6570c;border-radius:4px;font-size:1.25rem;letter-spacing:.04em;user-select:all}

/* Receipt management works with native forms and details, including without JavaScript. */
.mrg-matchmaker--thanks .mrg-delivery-controls { margin: 24px auto 0; max-width: 680px; padding: 8px 32px; background: #fff; border: 1px solid var(--mrg-line); border-radius: 8px; text-align: center; font-size: 1rem; line-height: 1.65; }
.mrg-matchmaker--thanks .mrg-delivery-controls form { margin: 0; text-align: left; }
.mrg-matchmaker--thanks .mrg-delivery-controls button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; max-width: 100%; background: var(--mrg-teal); color: #fff; border: 1px solid var(--mrg-teal); border-radius: 8px; min-height: 52px; margin-top: 18px; padding: 15px 24px; font: inherit; font-weight: 700; white-space: normal; cursor: pointer; }
.mrg-matchmaker--thanks .mrg-delivery-controls button:hover { background: var(--mrg-deep); }
.mrg-matchmaker--thanks .mrg-delivery-controls button:disabled { opacity: 1; background: #f0f3f4; color: var(--mrg-muted); border-color: #789199; cursor: default; }
.mrg-matchmaker--thanks .mrg-delivery-controls details { margin: 0; }
.mrg-matchmaker--thanks .mrg-delivery-controls details[open] { padding-bottom: 20px; }
.mrg-matchmaker--thanks .mrg-delivery-controls > p { margin-top: 12px; margin-bottom: 12px; }
/* With nothing to offer (a member's address, sent fine) only the hidden status line remains; drop the empty box. */
.mrg-matchmaker--thanks .mrg-delivery-controls:not(:has(> :not(.screen-reader-text))) { display: none; }
.mrg-matchmaker--thanks .mrg-delivery-controls summary { box-sizing: border-box; cursor: pointer; padding: 10px; min-height: 44px; color: var(--mrg-teal); text-decoration: underline; text-underline-offset: 4px; font-weight: 400; }
.mrg-matchmaker--thanks .mrg-matchmaker__state strong { overflow-wrap: anywhere; }
.mrg-matchmaker--thanks .mrg-email-correction label { display: block; font-weight: 700; }
.mrg-matchmaker--thanks .mrg-email-correction input[type=email] { box-sizing: border-box; display: block; width: 100%; min-height: 54px; margin: 12px 0 0; padding: 14px 15px; background: #fff; color: var(--mrg-ink); border: 1px solid #789199; border-radius: 8px; font: inherit; font-size: 1.125rem; }
.mrg-matchmaker--thanks .mrg-email-correction input[aria-invalid=true] { border-color: #a22d20; }
.mrg-matchmaker--thanks .mrg-delivery-feedback { padding: 1rem; border: 2px solid var(--mrg-deep); border-radius: 8px; }
.mrg-matchmaker--thanks :is(.mrg-delivery-feedback, h1):focus { outline: 3px solid var(--mrg-deep); outline-offset: 5px; }
@media(max-width:600px) {
    .mrg-matchmaker--thanks h1 { font-size: 2.5625rem; }
    .mrg-matchmaker--thanks .mrg-matchmaker__state > p:not(.mrg-matchmaker__eyebrow):not(.mrg-thanks__lead):not(.mrg-delivery-feedback) { font-size: .875rem; }
    .mrg-matchmaker--thanks .mrg-matchmaker__state { margin-top: 20px; }
    .mrg-matchmaker--thanks .mrg-delivery-controls { padding: 6px 18px; }
    .mrg-matchmaker--thanks .mrg-delivery-controls button { width: 100%; }
}


/* Saved report composition — approved house report, outside the quiz/receipt UI. */
.mrg-matchmaker--report { --mrg-line: #d9e4e8; }
.mrg-report__intro { max-width: 900px; margin: 32px auto 24px; text-align: center; }
.mrg-report__intro > p:not(.mrg-matchmaker__eyebrow) { max-width: 640px; margin-left: auto; margin-right: auto; color: var(--mrg-muted); }
/* The result's banners and framing sit under the centered #1 blurb as left-aligned notes:
   the verdict often runs four or five lines, which reads poorly centered. */
.mrg-report__intro :is(.mrg-results__framing, .mrg-notice) { box-sizing: border-box; max-width: 640px; margin: 0 auto 20px; text-align: left; }
.mrg-report__intro .mrg-results__framing { padding: 16px 20px; background: #fff; border: 1px solid var(--mrg-line); border-left: 4px solid var(--mrg-teal); border-radius: 8px; }
.mrg-matchmaker--report .mrg-report__intro .mrg-results__framing p { margin: 0 0 10px; font-size: 1rem; line-height: 1.65; color: var(--mrg-ink); }
.mrg-matchmaker--report .mrg-report__intro .mrg-results__framing p:last-child { margin-bottom: 0; }
.mrg-matchmaker--report .mrg-report__intro .mrg-results__framing p.mrg-results__framing-note { color: var(--mrg-muted); }
.mrg-report__shortlist {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 50px;
    max-width: 1000px;
    margin: 24px auto 20px;
    padding: 38px;
    background: #e5eff3;
    border: 1px solid var(--mrg-line);
    border-radius: 8px;
}
.mrg-report__shortlist h2 { font-size: 2.25rem; margin: 0 0 20px; }
.mrg-report__shortlist > div > p:not(.mrg-matchmaker__eyebrow) { font-size: 1rem; line-height: 1.65; color: var(--mrg-muted); }
/* Above the fold, nothing else says the full profiles follow further down the page. */
.mrg-matchmaker .mrg-report__jump { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--mrg-teal); font-size: 1rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.mrg-matchmaker .mrg-report__jump:hover { color: var(--mrg-deep); }
.mrg-report__shortlist nav a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 17px;
    min-height: 70px;
    padding: 12px 0;
    color: var(--mrg-ink);
    text-decoration: none;
    border-bottom: 1px solid #c5d6dc;
}
.mrg-report__shortlist nav a:last-child { border-bottom: 0; }
.mrg-report__shortlist nav a:hover strong,
.mrg-report__shortlist nav a:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }
.mrg-report__rank { font-size: 1.5rem; line-height: 1; color: var(--mrg-muted); }
.mrg-report__city { flex: 1; min-width: 120px; }
.mrg-report__city strong { display: block; font-size: 1.125rem; }
.mrg-report__city small { display: block; margin-top: 4px; font-size: 1rem; line-height: 1.65; color: var(--mrg-muted); }
.mrg-report__score { margin-left: auto; font-size: 1rem; font-weight: 700; }
.mrg-report__arrow { font-size: 1.25rem; }
@media (max-width: 850px) {
    .mrg-report__shortlist { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .mrg-report__shortlist h2 { margin-bottom: 5px; }
}
@media (max-width: 600px) {
    .mrg-report__intro { margin: 20px 0; }
    .mrg-report__intro .mrg-results__framing { padding: 14px 16px; }
    .mrg-report__shortlist { padding: 24px 20px; margin: 20px -4px 12px; gap: 12px; }
    .mrg-report__shortlist nav a { gap: 10px; }
    .mrg-report__rank { font-size: 1.3125rem; }
    .mrg-report__arrow { display: none; }
}

/* Report actions: print/retake links, then the guide button, between the shortlist and the cards. */
.mrg-report__next { margin: 0 auto 60px; text-align: center; }
.mrg-report__early-action { max-width: 680px; margin: 28px auto 0; }
.mrg-report__early-action p { margin: 16px 0 0; color: var(--mrg-muted); font-size: 1rem; }
.mrg-report__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 28px; }
.mrg-report__actions a,
.mrg-report__actions button { display: inline-block; min-height: 52px; padding: 12px 0; border: 0; background: transparent; color: var(--mrg-teal); font: inherit; font-size: 1rem; line-height: 1.6; text-decoration: underline; text-decoration-skip-ink: none; text-underline-offset: 4px; cursor: pointer; }
.mrg-report__actions [hidden] { display: none; }
.mrg-report__actions button:hover { color: var(--mrg-deep); }
/* Closing retake button, after the cards (and the guide offer for non-members). */
.mrg-report__retake { margin: 48px 0 60px; text-align: center; }
@media (max-width: 600px) {
    .mrg-report__next { margin-bottom: 40px; }
    .mrg-report__retake { margin: 36px 0 40px; }
}

/* Match the approved report typography without changing its printed layout. */
@media screen {
    .mrg-matchmaker--report { line-height: 1.7; }
    .mrg-matchmaker--report :is(h1, h2, h3) { color: var(--mrg-ink); line-height: 1.1; }
    .mrg-matchmaker--report h1 { font-size: clamp(2.625rem, 4.8vw, 4.5rem); }
    .mrg-matchmaker--report p { font-family: inherit; color: var(--mrg-ink); }
    .mrg-matchmaker--report .mrg-matchmaker__eyebrow { margin-bottom: 24px; }
    .mrg-matchmaker--report .mrg-report__intro .mrg-matchmaker__eyebrow { margin-bottom: 8px; }
    .mrg-matchmaker--report .small { font-size: 1rem; line-height: 1.65; color: var(--mrg-muted); }
    .mrg-matchmaker--report a.mrg-matchmaker__button { gap: 26px; text-align: center; }
    .mrg-matchmaker--report a.mrg-matchmaker__button span { margin-left: auto; }
    .mrg-report__early-action { margin-top: 24px; max-width: 620px; }
    .mrg-matchmaker--report .mrg-report__early-action p { max-width: 540px; margin: 14px auto 0; font-size: 1rem; line-height: 1.65; color: var(--mrg-ink); }
    .mrg-report__early-action .coupon-code { font-size: 1rem; padding: 2px 8px; }
    .mrg-report__actions { gap: 8px 30px; }
    .mrg-matchmaker--report .mrg-city-card { box-shadow: 0 8px 28px #0140540b; }
    .mrg-matchmaker--report .mrg-city-card__name { line-height: 1.1; }
    .mrg-matchmaker--report .mrg-city-card__reasons h3,
    .mrg-matchmaker--report .mrg-city-card__tradeoffs h3 { color: var(--mrg-ink); }
}
@media screen and (max-width: 600px) {
    .mrg-matchmaker--report h1 { font-size: 2.5625rem; }
    .mrg-report__early-action { margin-top: 20px; }
    .mrg-report__early-action a.mrg-matchmaker__button { width: 100%; padding: 14px 16px; gap: 12px; }
    /* The two links don't fit one phone row; stack them without the full desktop tap height between. */
    .mrg-report__actions { flex-direction: column; gap: 0; }
    .mrg-report__actions :is(a, button) { min-height: 44px; padding: 8px 0; }
}

/* Closing guide pitch: the WHERE/HOW intro, guide and contacts rows, and the coupon offer.
   Bookends the 1000px shortlist; the orange rule echoes the reveal's top-match card. */
.mrg-report__guide { --guide-tint: #e5eff3; max-width: 1000px; margin: 80px auto 0; }
.mrg-report__guide .mrg-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mrg-report__guide .mrg-matchmaker__eyebrow { margin-bottom: 14px; color: var(--mrg-teal); }
.mrg-report__guide :is(h2, h3, h4) { color: var(--mrg-ink); text-wrap: balance; }
.mrg-report__guide .mrg-guide__intro { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.mrg-report__guide .mrg-guide__intro h2 { margin: 0 0 20px; font-size: 2.75rem; line-height: 1.15; }
.mrg-report__guide .mrg-guide__word { color: var(--mrg-teal); letter-spacing: .01em; }
.mrg-report__guide .mrg-guide__intro p:not(.mrg-matchmaker__eyebrow) { max-width: 640px; margin: 0 auto; color: var(--mrg-muted); text-wrap: balance; }
.mrg-report__guide .mrg-guide__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--guide-tint); color: var(--mrg-teal); }
.mrg-report__guide ul { list-style: none; margin: 0; padding: 0; }
.mrg-report__guide :is(.mrg-guide__features, .mrg-guide__topics, .mrg-guide__contacts) li { margin: 0; }

.mrg-report__guide .mrg-guide__features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; padding: 22px 0; background: #fff; border: 1px solid var(--mrg-line); border-radius: 8px; }
.mrg-report__guide .mrg-guide__features li { display: flex; align-items: center; gap: 14px; padding: 0 24px; color: var(--mrg-muted); font-size: .9375rem; line-height: 1.5; }
.mrg-report__guide .mrg-guide__features li + li { border-left: 1px solid var(--mrg-line); }
.mrg-report__guide .mrg-guide__features strong { display: block; color: var(--mrg-ink); font-size: 1rem; }

.mrg-report__guide .mrg-guide__panel { margin-bottom: 24px; padding: 40px 44px; background: #fff; border: 1px solid var(--mrg-line); border-radius: 8px; box-shadow: 0 8px 28px #0140540b; }
.mrg-report__guide .mrg-guide__panel h3 { margin: 0 0 16px; font-size: 1.875rem; line-height: 1.2; }
.mrg-report__guide .mrg-guide__panel p:not(.mrg-matchmaker__eyebrow) { margin-bottom: 16px; font-size: 1.0625rem; line-height: 1.7; }
.mrg-report__guide .mrg-guide__panel--guide { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.mrg-report__guide .mrg-guide__copy > p:last-child { margin-bottom: 0; }
.mrg-report__guide .mrg-guide__topics { padding: 24px 26px; background: #f6fbfd; border: 1px solid var(--mrg-line); border-radius: 8px; }
.mrg-report__guide .mrg-guide__topics h4 { margin: 0 0 12px; font-family: inherit; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.mrg-report__guide .mrg-guide__topics ul { display: grid; gap: 10px; }
.mrg-report__guide .mrg-guide__topics li { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; line-height: 1.5; }
.mrg-report__guide .mrg-guide__topics .mrg-icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--mrg-teal); stroke-width: 2.4; }
.mrg-report__guide .mrg-guide__contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 28px; }
.mrg-report__guide .mrg-guide__contacts li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--mrg-line); border-radius: 8px; font-size: 1rem; font-weight: 650; line-height: 1.35; }
.mrg-report__guide .mrg-guide__contacts .mrg-guide__icon { width: 42px; height: 42px; }
.mrg-report__guide .mrg-guide__contacts .mrg-icon { width: 20px; height: 20px; }
.mrg-report__guide .mrg-guide__panel p.mrg-guide__pledge { margin: 0; padding: 18px 0 0 0; border-top: 1px solid var(--mrg-line); font-weight: 650; }

.mrg-report__guide .mrg-guide__offer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 32px 36px; background: #fff; border: 1px solid #a8c1cc; border-top: 4px solid #fe7e00; border-radius: 8px; box-shadow: 0 8px 28px #0140540b; }
.mrg-report__guide .mrg-guide__offer-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fef2e5; color: #a6570c; }
.mrg-report__guide .mrg-guide__offer-icon .mrg-icon { width: 30px; height: 30px; }
.mrg-report__guide .mrg-guide__offer h3 { margin: 0 0 8px; font-size: 1.625rem; line-height: 1.2; }
.mrg-report__guide .mrg-guide__offer-copy p { margin: 0; font-size: 1rem; line-height: 1.65; }
.mrg-report__guide p.mrg-guide__code { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; font-weight: 650; }
.mrg-report__guide .mrg-guide__cta { text-align: center; }
.mrg-report__guide .mrg-guide__cta .small { margin: 10px 0 0; }

@media (max-width: 900px) {
    .mrg-report__guide .mrg-guide__panel { padding: 36px 32px; }
    .mrg-report__guide .mrg-guide__panel--guide { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .mrg-report__guide .mrg-guide__contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mrg-report__guide .mrg-guide__offer { grid-template-columns: auto minmax(0, 1fr); }
    .mrg-report__guide .mrg-guide__cta { grid-column: 1 / -1; }
    .mrg-report__guide .mrg-guide__cta .mrg-matchmaker__button { width: 100%; }
    .mrg-report__guide .mrg-guide__features { grid-template-columns: minmax(0, 1fr); padding: 4px 22px; }
    .mrg-report__guide .mrg-guide__features li { padding: 14px 0; }
    .mrg-report__guide .mrg-guide__features li + li { border-left: 0; border-top: 1px solid var(--mrg-line); }
}
@media (max-width: 600px) {
    .mrg-report__guide { margin-top: 56px; }
    .mrg-report__guide .mrg-guide__intro { margin-bottom: 28px; }
    .mrg-report__guide .mrg-guide__intro h2 { font-size: 2rem; }
    .mrg-report__guide :is(.mrg-guide__features, .mrg-guide__panel, .mrg-guide__offer) { margin-left: -4px; margin-right: -4px; }
    .mrg-report__guide .mrg-guide__panel { padding: 28px 20px 24px; }
    .mrg-report__guide .mrg-guide__panel h3 { font-size: 1.625rem; }
    .mrg-report__guide .mrg-guide__topics { padding: 20px 18px; }
    .mrg-report__guide .mrg-guide__offer { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 26px 20px; }
    .mrg-report__guide .mrg-guide__offer-icon { width: 52px; height: 52px; }
    .mrg-report__guide .mrg-guide__offer h3 { font-size: 1.375rem; }
    .mrg-report__guide .mrg-guide__cta .mrg-matchmaker__button { padding: 14px 16px; gap: 12px; }
}
@media (max-width: 480px) {
    .mrg-report__guide .mrg-guide__contacts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .mrg-report__guide .mrg-guide__contacts li { padding: 9px 14px; }
}
