/* Hallmark · built: the project · edit: roadmap page, the eleven steps first, repeated text merged · genre: editorial · theme: brand (MedGermany teal, blue and orange) · job: follow the steps, then Get Free Roadmap · hero: quiet, the site's banner · posture: quiet · copy: the page's own wording, merged · nav: kept · footer: kept · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V, eleven stock photographs; they stay because the owner keeps photos, and they now sit smaller beside the words */
/* Hallmark · waive 44c · hero ends at 440 to 465px of a 900px screen · the inner-page banner stays short on purpose so step 1 is on the first screen */
/* Hallmark · waive 59 · gaps between sections 70 to 173px · the owner chose a shorter page with tighter spacing on the home page */
/* Hallmark · waive 81 · div.overlay in the closing band · it is the band's existing fade over its photograph, not an empty picture, and the band is kept as it is */
/* Hallmark · dismissed F19 · the fourth weight, 500, comes from the site-wide header and footer styles this page does not own */

/* ---------- One voice for headings, the same as the home page ---------- */

.page-roadmap main h2 {
    margin: 0 0 20px;
    min-width: 0;
    overflow-wrap: break-word;
    color: var(--mg-ink);
    font-family: var(--mg-font-title);
    font-size: clamp(2rem, 1.45rem + 2.4vw, 3.25rem) !important;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    text-align: left !important;
    text-wrap: balance;
}

.page-roadmap main .rm-cta h2 {
    color: var(--mg-on-teal);
}

.rm-hero .btn-submit,
.rm-cta .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border: 0;
    border-radius: var(--mg-radius-pill);
    background-color: var(--mg-blue);
    color: var(--mg-paper) !important;
    font-size: var(--mg-size-label);
    font-weight: 500;
}

.rm-hero .btn-submit:hover,
.rm-cta .btn-submit:hover {
    background-color: var(--mg-blue-strong);
}

.rm-hero .btn-submit:active,
.rm-cta .btn-submit:active {
    transform: scale(0.97);
}

/* ---------- Hero: the words sit on the teal, the button sits under them ---------- */

.rm-hero .caption {
    position: static;
    width: 100%;
    padding: 24px var(--mg-gutter) 28px;
    background: transparent;
    color: var(--mg-on-teal);
}

.rm-hero picture {
    display: block;
}

.inner-banner.rm-hero img {
    width: 100% !important;
    height: 180px;
    min-height: 0;
    float: none;
    object-position: 50% 20%;
    border-radius: 0 0 0 58px;
}

.rm-hero__title {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin: 0 0 12px;
    overflow-wrap: break-word;
    color: var(--mg-on-teal);
    font-family: var(--mg-font-title);
    font-size: var(--mg-size-h1);
    font-weight: 700;
    letter-spacing: var(--mg-tracking-title);
    line-height: var(--mg-leading-tight);
}

.rm-hero__line {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    color: var(--mg-on-teal);
    font-size: var(--mg-size-body);
    line-height: 1.55;
}

.rm-hero .btn-submit {
    position: relative;
    z-index: 1;
    width: 100%;
}

@media (min-width: 992px) {
    .rm-hero {
        display: flex;
        min-height: 440px;
    }

    .rm-hero picture {
        flex: 0 0 50%;
        order: 2;
    }

    .inner-banner.rm-hero img {
        width: 100% !important;
        height: 100%;
        min-height: 440px;
        border-radius: 0 58px 0 58px;
    }

    .rm-hero .caption {
        display: flex;
        flex: 0 0 50%;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        --rm-edge: 468px;
        order: 1;
        padding: calc(var(--mg-header-h) + 24px) 48px 32px calc(50% - var(--rm-edge));
    }

    .rm-hero .btn-submit {
        width: auto;
    }

}

/* The left edge of Bootstrap's container at each width, so the hero lines up with the steps below it.
   Padding percentages read the banner's width. */
@media (min-width: 1200px) {
    .rm-hero .caption { --rm-edge: 558px; }
}

@media (min-width: 1400px) {
    .rm-hero .caption { --rm-edge: 648px; }
}

/* ---------- The steps ---------- */

.rm-path {
    position: relative;
    padding-block: clamp(40px, 6vw, 88px) 0;
}

.rm-path__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-inline: var(--mg-gutter);
}

.rm-rail {
    display: contents;
}

.rm-rail__intro p {
    margin: 0 0 24px;
    color: var(--mg-body);
    font-size: var(--mg-size-body);
    line-height: var(--mg-leading-body);
}

/* The contents list. With scripting off it is a plain list on a phone. */
.rm-nav {
    margin-bottom: 24px;
}

.rm-nav__bar {
    display: none;
}

.rm-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rm-nav__list a {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    min-height: 44px;
    padding-block: 8px;
    color: var(--mg-body);
    font-size: var(--mg-size-label);
    line-height: 1.3;
    text-decoration: none;
}

.rm-nav__list a:hover {
    color: var(--mg-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rm-nav__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--mg-line-strong);
    border-radius: 50%;
    background: var(--mg-paper);
    color: var(--mg-ink);
    font-size: var(--mg-size-xs);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rm-nav__list li.is-done .rm-nav__num,
.rm-nav__list a[aria-current] .rm-nav__num {
    border-color: var(--mg-orange);
    background: var(--mg-orange);
}

.rm-nav__list a[aria-current] {
    color: var(--mg-ink);
    font-weight: 700;
}

.rm-nav__list a:focus-visible,
.rm-nav__bar:focus-visible,
.rm-step__guide:focus-visible,
.rm-guides__grid a:focus-visible,
.rm-guides__more:focus-visible,
.rm-faq summary:focus-visible,
.rm-prose a:focus-visible {
    outline: 2px solid var(--mg-focus);
    outline-offset: 2px;
    transition: none;
}

.rm-hero .btn-submit:focus-visible,
.rm-cta .btn-submit:focus-visible,
.rm-cta__whatsapp:focus-visible {
    outline: 2px solid var(--mg-focus-on-dark);
    outline-offset: 2px;
    transition: none;
}

/* The steps themselves: a straight line through the numbers, filling as you pass. */
.rm-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rm-step {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
    padding-bottom: 32px;
    scroll-margin-top: 16px;
}

.rm-has-js .rm-step {
    scroll-margin-top: 60px;
}

.rm-step::before,
.rm-step::after {
    content: "";
    position: absolute;
    top: 40px;
    bottom: 0;
    left: 19px;
    width: 2px;
    background: var(--mg-line-strong);
}

.rm-step::after {
    background: var(--mg-orange);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--mg-ease);
}

.rm-step.is-done::after {
    transform: scaleY(1);
}

.rm-step:last-child {
    padding-bottom: 0;
}

.rm-step:last-child::before,
.rm-step:last-child::after {
    display: none;
}

.rm-step__num {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--mg-line-strong);
    border-radius: 50%;
    background: var(--mg-paper);
    color: var(--mg-ink);
    font-size: var(--mg-size-body);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s var(--mg-ease);
}

.rm-step.is-done .rm-step__num,
.rm-step.is-current .rm-step__num {
    border-color: var(--mg-orange);
    background: var(--mg-orange);
}

.rm-step.is-current .rm-step__num {
    transform: scale(1.1);
}

.rm-step__words {
    min-width: 0;
}

.page-roadmap main .rm-step h3 {
    margin: 8px 0 12px;
    overflow-wrap: break-word;
    color: var(--mg-ink);
    font-family: var(--mg-font-title);
    font-size: clamp(1.3125rem, 1.2rem + 0.5vw, 1.625rem);
    font-weight: 700;
    letter-spacing: var(--mg-tracking-title);
    line-height: 1.2;
}

.page-roadmap main .rm-step__lead {
    margin: 0 0 12px;
    color: var(--mg-ink);
    font-size: var(--mg-size-body);
    font-weight: 500;
    line-height: 1.5;
}

.rm-step ul {
    margin: 0;
    padding-left: 16px;
    color: var(--mg-body);
}

.rm-step ul li {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.55;
}

.rm-step ul li::marker {
    color: var(--mg-orange);
}

.rm-step__guide {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--mg-link);
    font-size: var(--mg-size-label);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.rm-step__guide:hover {
    color: var(--mg-blue-strong);
}

.rm-step__photo {
    display: block;
    grid-column: 2;
    margin-top: 12px;
}

.rm-step__photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;
    aspect-ratio: 16 / 7;
    border-radius: 0 32px 0 32px;
    object-fit: cover;
    object-position: 50% 30%;
}

/* Phone and tablet: the list folds into a bar that stays under the header and says where you are. */
@media (max-width: 991.98px) {
    .rm-has-js .rm-nav {
        position: sticky;
        top: var(--mg-header-h);
        z-index: 45;
        margin-inline: calc(var(--mg-gutter) * -1);
        background: var(--mg-paper);
    }

    .rm-has-js .rm-nav__bar {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 20px;
        align-items: center;
        width: 100%;
        min-height: 56px;
        padding: 8px var(--mg-gutter) 12px;
        border: 0;
        border-block: 1px solid var(--mg-line);
        background: var(--mg-paper);
        color: var(--mg-ink);
        text-align: left;
    }

    .rm-nav__count {
        grid-column: 1;
        color: var(--mg-muted);
        font-size: var(--mg-size-xs);
        line-height: 1.3;
    }

    .rm-nav__name {
        grid-column: 1;
        overflow: hidden;
        font-size: var(--mg-size-label);
        font-weight: 700;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rm-nav__chevron {
        grid-column: 2;
        grid-row: 1 / span 2;
        transition: transform 0.2s var(--mg-ease);
    }

    .rm-nav__bar[aria-expanded="true"] .rm-nav__chevron {
        transform: rotate(180deg);
    }

    .rm-nav__track {
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 3px;
        background: var(--mg-line);
    }

    .rm-nav__fill {
        display: block;
        height: 100%;
        background: var(--mg-orange);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s var(--mg-ease);
    }

    .rm-has-js .rm-nav__list {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100dvh - var(--mg-header-h) - var(--mg-dock-h) - 72px);
        padding: 8px var(--mg-gutter) 16px;
        overflow-y: auto;
        border-bottom: 1px solid var(--mg-line-strong);
        background: var(--mg-paper);
    }

    .rm-has-js .rm-nav__list.is-open {
        display: block;
    }

    /* The site's soft strip above the phone buttons would blur the last rows of the open list. */
    .rm-list-open .fxb {
        visibility: hidden;
    }

    .rm-nav__list a {
        min-height: 48px;
    }
}

@media (min-width: 992px) {
    .rm-path__grid {
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        column-gap: 72px;
        align-items: start;
        padding-inline: 12px;
    }

    .rm-rail {
        position: sticky;
        top: calc(var(--mg-header-h) + 24px);
        display: block;
        max-height: calc(100dvh - var(--mg-header-h) - 40px);
        margin: -4px;
        padding: 4px;
        overflow-y: auto;
    }

    .rm-rail__intro p {
        font-size: var(--mg-size-label);
    }

    .rm-nav {
        margin: 0;
    }

    .rm-nav__list a {
        min-height: 36px;
        padding-block: 4px;
    }

    .rm-has-js .rm-step {
        scroll-margin-top: 16px;
    }

    .rm-step {
        grid-template-columns: 48px minmax(0, 1fr) minmax(0, 240px);
        column-gap: 20px;
        padding-bottom: 56px;
    }

    .rm-step::before,
    .rm-step::after {
        top: 48px;
        left: 23px;
    }

    .rm-step__num {
        width: 48px;
        height: 48px;
        font-size: var(--mg-size-h3);
    }

    .page-roadmap main .rm-step h3 {
        margin-top: 8px;
    }

    .rm-step__photo {
        grid-column: 3;
        grid-row: 1;
        margin-top: 8px;
    }

    .rm-step__photo img {
        height: 180px;
        max-height: none;
        aspect-ratio: auto;
    }
}

/* ---------- Everything else: one column on a phone, heading held still beside it on desktop ---------- */

.rm-section {
    padding-block: clamp(48px, 6vw, 88px);
}

.rm-section--tight {
    padding-block: clamp(40px, 5vw, 64px) 0;
}

.rm-section--flush {
    padding-top: 0;
}

.rm-section > .container {
    padding-inline: var(--mg-gutter);
}

.rm-section--wash {
    background: var(--mg-wash);
    border-top-right-radius: 58px;
    border-bottom-left-radius: 58px;
}

.rm-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.rm-split--next {
    margin-top: clamp(48px, 6vw, 88px);
}

.rm-prose {
    min-width: 0;
    max-width: var(--mg-measure);
}

.page-roadmap main .rm-prose p {
    margin: 0 0 16px;
    color: var(--mg-body);
    font-size: var(--mg-size-body);
    line-height: var(--mg-leading-body);
}

.page-roadmap main .rm-prose p:last-child {
    margin-bottom: 0;
}

.rm-prose a {
    color: var(--mg-link);
    text-underline-offset: 3px;
}

.page-roadmap main .rm-prose h3 {
    margin: 32px 0 12px;
    color: var(--mg-ink);
    font-family: var(--mg-font-title);
    font-size: var(--mg-size-h2);
    font-weight: 700;
    letter-spacing: var(--mg-tracking-title);
    line-height: 1.2;
}

@media (min-width: 992px) {
    .rm-split {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: 72px;
        align-items: start;
    }

    .page-roadmap main .rm-split > h2 {
        position: sticky;
        top: calc(var(--mg-header-h) + 24px);
        margin-bottom: 0;
    }

    .rm-section > .container {
        padding-inline: 12px;
    }
}

/* ---------- The roadmap panel, in the site's rounded shape ---------- */

.rm-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    padding: 32px 20px;
    border-top-right-radius: 58px;
    border-bottom-left-radius: 58px;
    background: var(--mg-teal);
}

.page-roadmap main .rm-cta p {
    margin: 0;
    color: var(--mg-on-teal-muted);
    font-size: var(--mg-size-body);
    line-height: var(--mg-leading-body);
}

.rm-cta__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.rm-cta__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: var(--mg-radius-pill);
    background: var(--mg-whatsapp);
    color: var(--mg-on-teal);
    font-size: var(--mg-size-label);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.rm-cta__whatsapp:hover {
    background: var(--mg-whatsapp-strong);
    color: var(--mg-on-teal);
}

.rm-cta__whatsapp:active {
    transform: scale(0.97);
}

@media (min-width: 768px) {
    .rm-cta__actions {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        grid-template-columns: none;
        justify-content: start;
    }
}

@media (min-width: 992px) {
    .rm-cta {
        grid-template-columns: minmax(0, 7fr) auto;
        align-items: center;
        column-gap: 56px;
        padding: 56px;
    }

    .page-roadmap main .rm-cta h2 {
        margin-bottom: 12px;
    }

    .rm-cta__actions {
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }
}

/* ---------- Comparison table: rows on a phone, so nothing scrolls sideways ---------- */

.rm-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--mg-body);
    font-size: 1rem;
    line-height: 1.5;
}

.rm-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.rm-table tbody,
.rm-table tr,
.rm-table td {
    display: block;
}

.rm-table tbody tr {
    padding-block: 20px;
    border-top: 1px solid var(--mg-line-strong);
}

.rm-table tbody tr:last-child {
    padding-bottom: 0;
}

.rm-table td[role="rowheader"] {
    margin-bottom: 12px;
    color: var(--mg-ink);
    font-size: var(--mg-size-h3);
    font-weight: 700;
    line-height: 1.25;
}

.rm-table td[data-label] {
    margin-bottom: 12px;
}

.rm-table td[data-label]:last-child {
    margin-bottom: 0;
}

.rm-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--mg-muted);
    font-size: var(--mg-size-small);
    font-weight: 600;
}

@media (min-width: 768px) {
    .rm-table thead {
        position: static;
        display: table-header-group;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        white-space: normal;
    }

    .rm-table tbody {
        display: table-row-group;
    }

    .rm-table tr,
    .rm-table tbody tr,
    .rm-table tbody tr:last-child {
        display: table-row;
        padding: 0;
    }

    .rm-table td {
        display: table-cell;
    }

    .rm-table th {
        padding: 12px 24px 12px 0;
        border-bottom: 2px solid var(--mg-ink);
        color: var(--mg-ink);
        font-size: var(--mg-size-label);
        font-weight: 700;
        text-align: left;
    }

    .rm-table td,
    .rm-table td[role="rowheader"],
    .rm-table td[data-label] {
        margin: 0;
        padding: 16px 24px 16px 0;
        border-top: 1px solid var(--mg-line);
        vertical-align: top;
    }

    .rm-table td[role="rowheader"] {
        width: 22%;
        font-size: var(--mg-size-body);
    }

    .rm-table td[data-label]::before {
        display: none;
    }
}

/* ---------- Common mistakes ---------- */

.rm-mistakes {
    min-width: 0;
    margin: 0;
    padding: 0 0 0 20px;
    color: var(--mg-body);
}

.rm-mistakes li {
    padding-block: 12px;
    border-bottom: 1px solid var(--mg-line-strong);
    font-size: var(--mg-size-body);
    line-height: 1.5;
}

.rm-mistakes li:first-child {
    padding-top: 0;
}

.rm-mistakes li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rm-mistakes li::marker {
    color: var(--mg-orange);
}

/* ---------- Guides: six on a phone, every link stays in the page ---------- */

.rm-guides__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--mg-line-strong);
}

.rm-guides__grid a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding-block: 12px;
    border-bottom: 1px solid var(--mg-line-strong);
    color: var(--mg-ink);
    font-size: var(--mg-size-body);
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    text-underline-offset: 4px;
}

.rm-guides__grid a:hover {
    color: var(--mg-link);
    text-decoration: underline;
}

.rm-guides__more {
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    border: 1px solid var(--mg-ink);
    border-radius: var(--mg-radius-pill);
    background: var(--mg-paper);
    color: var(--mg-ink);
    font-size: var(--mg-size-label);
    font-weight: 600;
    cursor: pointer;
}

.rm-guides__more:hover {
    background: var(--mg-wash);
}

@media (max-width: 767.98px) {
    .rm-guides.is-short .rm-guides__grid a:nth-child(n + 7) {
        display: none;
    }
}

@media (min-width: 768px) {
    .rm-guides__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
        border-top: 0;
    }

    .rm-guides__grid a:nth-child(-n + 2) {
        border-top: 1px solid var(--mg-line-strong);
    }
}

@media (min-width: 992px) {
    .rm-guides__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rm-guides__grid a:nth-child(3) {
        border-top: 1px solid var(--mg-line-strong);
    }
}

/* ---------- FAQ: native open and close, words stay in the page ---------- */

.rm-faq {
    min-width: 0;
    border-top: 1px solid var(--mg-line-strong);
}

.rm-faq details {
    border-bottom: 1px solid var(--mg-line-strong);
}

.rm-faq summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    column-gap: 16px;
    min-height: 56px;
    padding-block: 16px;
    cursor: pointer;
    list-style: none;
}

.rm-faq summary::-webkit-details-marker {
    display: none;
}

.rm-faq summary::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-inline: auto;
    border-right: 2px solid var(--mg-ink);
    border-bottom: 2px solid var(--mg-ink);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s var(--mg-ease);
}

.rm-faq details[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

.page-roadmap main .rm-faq h3 {
    margin: 0;
    color: var(--mg-ink);
    font-family: var(--mg-font-title);
    font-size: var(--mg-size-h4);
    font-weight: 600;
    line-height: 1.35;
}

.page-roadmap main .rm-faq p {
    margin: 0;
    padding-bottom: 20px;
    color: var(--mg-body);
    font-size: var(--mg-size-body);
    line-height: var(--mg-leading-body);
}

/* ---------- Closing band: the outline button's blue fell just short on its pale background ---------- */

.page-roadmap .journey .submit-border {
    border-color: var(--mg-link);
    color: var(--mg-link) !important;
}

.page-roadmap .journey .submit-border:hover {
    border-color: var(--mg-blue-strong);
    color: var(--mg-on-teal) !important;
}

@media (prefers-reduced-motion: reduce) {
    .rm-step::after,
    .rm-step__num,
    .rm-nav__fill,
    .rm-nav__chevron,
    .rm-faq summary::after {
        transition: none;
    }

    .rm-step.is-current .rm-step__num,
    .rm-hero .btn-submit:active,
    .rm-cta .btn-submit:active,
    .rm-cta__whatsapp:active {
        transform: none;
    }
}

/* The owner chose a place, with no face, for this band on 7 Nov. */
.page-roadmap .journey {
    background-image: url("../images/journey-station.jpg");
    background-position: right center;
    background-size: 50% auto;
}
