/* Hallmark · built: the project · edit: /why-germany, shorter with louder headings, matching the home page · genre: editorial · theme: brand (MedGermany teal, blue and orange) · job: book · hero: banner, words beside the photo · posture: quiet · copy: the page's own wording, merged · nav: kept · footer: kept · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R4 V3 · weakest: V, stock photographs carry the page until the owner has real ones */
/* Hallmark · waive 44c · banner ends at 532px of 900 with the first section showing below it · keeps the site's inner-page banner shape, and the three figures start on the first screen */
/* Hallmark · waive 77 · five short rows beside a photograph, 65% wide · the owner asked for repeated text to be merged away, so this list is short on purpose */
/* Hallmark · waive 81 · the closing band's fade over its photograph, shared site style · it is not an empty picture, it blends the photo into the band behind the words */
/* Hallmark · waive 83 · six existing photographs, 46% of the page, down from 52% · the owner chose to keep existing photos and slideshows */
/* Hallmark · dismissed 58 · the window at 4050 holds nine one-line questions and the closing band, each short and easy to scan */
/* Hallmark · dismissed F19 · the 500 weight comes only from the shared site navigation and buttons, which this page does not own */

/* ---------- One voice for headings, as on the home page ---------- */

.page-why main h2 {
    margin-bottom: 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);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    text-align: left;
    text-wrap: balance;
}

.page-why main h2 span {
    color: inherit;
    font: inherit;
}

.page-why .why-faq-more:hover {
    background: var(--mg-wash);
}

.page-why .why-faq-more:active,
.page-why .text-content a:active,
.page-why .why-figure__rest a:active {
    opacity: 0.7;
}

.page-why :focus-visible {
    outline: 2px solid var(--mg-focus);
    outline-offset: 2px;
    transition: none;
}

/* ---------- Banner: words and photo side by side, nothing on anyone's face ---------- */

.page-why .inner-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: var(--mg-header-h);
}

.page-why .inner-banner picture {
    position: relative;
    z-index: 1;
    display: block;
    min-width: 0;
}

.page-why .inner-banner img {
    float: none;
    width: 100% !important;
    height: 200px;
    min-height: 0;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 0;
}

.page-why .inner-banner .caption {
    position: relative;
    inset: auto;
    z-index: 2;
    width: auto;
    min-width: 0;
    padding: 24px var(--mg-gutter) 32px;
    background: none;
    text-align: left;
}

.page-why .inner-banner .caption h1 {
    margin-bottom: 12px;
    min-width: 0;
    overflow-wrap: break-word;
    color: var(--mg-on-teal);
    font-family: var(--mg-font-title);
    font-size: clamp(2.125rem, 1.45rem + 2.8vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.08;
    text-wrap: balance;
}

.page-why .inner-banner .caption p {
    max-width: 30em;
    margin: 0 0 20px;
    color: var(--mg-on-teal);
    font-size: var(--mg-size-lead);
    line-height: 1.45;
}

.page-why .inner-banner .caption :focus-visible {
    outline-color: var(--mg-focus-on-dark);
}

@media (min-width: 768px) {
    .page-why .inner-banner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .page-why .inner-banner picture {
        grid-column: 2;
        grid-row: 1;
    }

    .page-why .inner-banner img {
        height: 100%;
        min-height: 460px;
        border-top-right-radius: 58px;
        border-bottom-left-radius: 58px;
    }

    /* The words start where every section below starts. */
    .page-why .inner-banner .caption {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        padding: 40px 40px 40px max(var(--mg-gutter), calc(100% - var(--mg-container) / 2 + 12px));
    }
}

/* ---------- Sections: words first on a phone, one short photo after them ---------- */

.page-why main > .why-block {
    padding-block: clamp(56px, 8.4vw, 120px);
}

.page-why .why-block--wash,
.page-why .future-section {
    border-top-right-radius: 58px;
    border-bottom-left-radius: 58px;
}

.page-why .why-block--wash {
    background-color: var(--mg-wash);
}

.page-why .future-section {
    background-color: var(--mg-wash-blue);
}

.page-why .why-split {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.page-why .why-split__side {
    display: contents;
}

.page-why .why-split__side h2 {
    order: 1;
    margin: 0;
}

.page-why .why-split__list {
    order: 2;
    min-width: 0;
}

.page-why .why-split__side .german-img {
    order: 3;
}

.page-why .german-img img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-right-radius: 58px;
    border-bottom-left-radius: 58px;
}

/* Keep the head in frame when this upright photo is cropped wide. */
.page-why .doctor-section .german-img img {
    object-position: center 12%;
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .page-why .german-img img {
        height: 280px;
        object-position: center 25%;
    }

    .page-why .doctor-section .german-img img {
        object-position: center 10%;
    }
}

.page-why .why-split__lead {
    margin: 0 0 8px;
    color: var(--mg-body);
    font-size: var(--mg-size-lead);
}

.page-why .why-split__action {
    margin-top: 24px;
}

@media (max-width: 767.98px) {
    .page-why .why-block,
    .page-why .journey {
        padding-inline: var(--mg-gutter) !important;
    }

    .page-why .why-block > .container,
    .page-why .ask-questions > .container,
    .page-why .journey > .container {
        padding-inline: 0;
    }

    .page-why .journey .row {
        margin-inline: 0;
    }

    .page-why .journey .col-md-6:first-child {
        padding-inline: 0;
    }

    .page-why .why-split__action {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .page-why .why-split {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 72px;
        align-items: start;
    }

    .page-why .why-split__side {
        position: sticky;
        top: calc(var(--mg-header-h) + 24px);
        display: block;
    }

    .page-why .why-split__side h2 {
        margin-bottom: 28px;
    }

    .page-why .german-img img {
        height: 320px;
    }
}

/* ---------- Reason rows: every icon in the same box, so the words line up ---------- */

.page-why .info-box {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding-block: 20px;
    border-top: 1px solid var(--mg-line);
}

.page-why .why-split__list > .info-box:first-child,
.page-why .why-split__lead + .info-box {
    border-top: 0;
}

.page-why .info-box .icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.page-why .text-content p {
    margin: 0;
    color: var(--mg-body);
    font-size: var(--mg-size-body);
    line-height: 1.55;
}

.page-why .text-content span {
    display: block;
    margin-bottom: 4px;
    color: var(--mg-ink);
    font-family: var(--mg-font-title);
    font-size: var(--mg-size-h4);
    font-weight: 600;
    line-height: 1.25;
}

.page-why .text-content a,
.page-why .why-figure__rest a {
    display: inline-block;
    color: var(--mg-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-why .future-section .info-box {
    align-items: center;
    padding-block: 16px;
}

/* ---------- The three plain facts ---------- */

.page-why .why-figure {
    display: grid;
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    grid-template-areas:
        "num label"
        "num rest";
    column-gap: 16px;
    align-items: start;
    padding-block: 20px;
    border-top: 1px solid var(--mg-line);
}

.page-why .why-figure:first-child {
    border-top: 0;
    padding-top: 0;
}

.page-why .why-figure p {
    margin: 0;
}

.page-why .why-figure__num {
    grid-area: num;
    color: var(--mg-ink);
    font-family: var(--mg-font-title);
    font-size: clamp(1.75rem, 1.3rem + 2.4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.page-why .why-figure__label {
    grid-area: label;
    color: var(--mg-ink);
    font-family: var(--mg-font-title);
    font-size: var(--mg-size-h4);
    font-weight: 600;
    line-height: 1.25;
}

.page-why .why-figure__rest {
    grid-area: rest;
    margin-top: 4px;
    color: var(--mg-body);
    font-size: var(--mg-size-body);
    line-height: 1.5;
}

@media (min-width: 576px) {
    .page-why .why-figure {
        grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
    }
}

@media (min-width: 992px) {
    .page-why .why-figure {
        grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
        column-gap: 32px;
        padding-block: 32px;
        align-items: center;
    }

    .page-why .why-figure__label {
        align-self: end;
    }

    .page-why .why-figure__rest {
        align-self: start;
    }
}

/* ---------- Slideshow: same two slides, shorter, with arrows you can see ---------- */

.page-why main > .view-section-slider {
    padding-block: 0;
}

.page-why .view-section-slider .carousel-item img {
    height: 240px;
    min-height: 0;
    object-fit: cover;
}

.page-why .view-section-slider .carousel-indicators button {
    background-color: var(--mg-paper);
}

.page-why .view-section-slider .carousel-control-prev,
.page-why .view-section-slider .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 44px;
    height: 44px;
    margin-inline: 12px;
    border-radius: var(--mg-radius-pill);
    background-color: var(--mg-glass-bg-dark);
    opacity: 1;
    transform: translateY(-50%);
}

.page-why .view-section-slider .carousel-control-prev-icon,
.page-why .view-section-slider .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: none;
}

.page-why .view-section-slider :focus-visible {
    outline-color: var(--mg-focus-on-dark);
}

@media (min-width: 768px) {
    .page-why .view-section-slider .carousel-item img {
        height: 440px;
    }
}

@media (min-width: 992px) {
    .page-why .view-section-slider .carousel-item img {
        height: 440px;
    }

    .page-why .info-box {
        padding-block: 24px;
    }
}

/* ---------- FAQ: the heading holds still on desktop, six questions on a phone ---------- */

.page-why main > .ask-questions {
    padding-block: clamp(56px, 8.4vw, 120px);
}

.page-why .ask-questions .faq-item {
    padding-block: 16px;
}

.page-why .ask-questions .faq-question {
    align-items: flex-start;
    min-height: 44px;
    padding: 0;
    line-height: 1.35;
    cursor: pointer;
}

.page-why .why-faq-more {
    display: none;
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    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;
}

@media (max-width: 767.98px) {
    .page-why main > .ask-questions {
        padding-inline: var(--mg-gutter);
    }

    .page-why .ask-questions.is-short .faq-item:nth-of-type(n + 7) {
        display: none;
    }

    .page-why .ask-questions.is-short .why-faq-more {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .page-why .ask-questions .col-md-8 {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .page-why .ask-questions .col-md-8 {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: 72px;
        align-items: start;
        width: 100%;
    }

    .page-why .ask-questions h2 {
        position: sticky;
        top: calc(var(--mg-header-h) + 24px);
        grid-column: 1;
        grid-row: 1 / span 12;
    }

    .page-why .ask-questions .faq-item {
        grid-column: 2;
    }
}

/* ---------- Closing band ---------- */

.page-why .journey h2 {
    padding-block: 0;
    margin-bottom: 16px;
}

.page-why .journey .btn {
    margin-right: 8px;
}

/* The darker link blue passes contrast on this pale band. */
.page-why .journey .submit-border:not(:hover) {
    border-color: var(--mg-link);
    color: var(--mg-link) !important;
}

@media (max-width: 767.98px) {
    .page-why .journey {
        min-height: 0;
        max-height: none;
        padding-block: 8px 32px;
    }

    .page-why .journey .btn {
        width: 100%;
        margin-right: 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Too narrow for the photo beside the words. */
    .page-why .journey {
        background-image: none;
        min-height: 0;
        max-height: none;
        padding-bottom: 32px;
    }

    .page-why .journey .col-md-6:first-child {
        width: 100%;
    }
}

/* The owner chose a place, with no face, for this band on 7 Nov. */
@media (min-width: 992px) {
    .page-why .journey {
        background-image: url("../images/journey-erfurt.jpg");
        background-position: right center;
    }
}
