/* Hallmark · shape: Long Document · genre: editorial · theme: brand · redesign: full · copy: verbatim · job: read, then ask · hero: Banner, the article page's teal masthead with no cover · nav: kept · footer: kept · signature: the guide list drawn from each page's own headings beside one reading column
 * contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S3 R5 V3 · weakest: S, the shell is the article page's on purpose because the owner approved it; the guide's own headings, tables and questions carry the page */
/* Hallmark · waive 49b · a real phrase that cannot shorten, headings and related titles stay as stored under the brief · the guide list holds each page's own headings, so they wrap like headlines */
/* Hallmark · waive 79 · the body text starts straight under the masthead because the stock lead image is gone · the reading column fills the space this gate calls empty */
/* Hallmark · waive 39b · the 58px floating-label fields belong to the shared layouts/_leadForm.php partial and stay as they are */
/* Hallmark · dismissed 58 · copy: verbatim, a long read holds the words the owner wrote and the brief exempts this flag */
/* Hallmark · dismissed F20 · related links wrap as their real titles fit; the list is the page's own, so a short last row stays */
/* Hallmark · hero-review: in-thread · the shell is the owner-approved article masthead; no findings · finish-review: in-thread · 3 findings · 2 resolved (the privacy link's contrast, a missing-class guard), 1 for the owner (the FAQ now sits between the body and the closing band) · gap: none */
/* Hallmark · dismissed 77 · a guide is one long read with a short close, not a landing strip */
/* Hallmark · answered F19 · body 400, titles 500, labels 600 and strong 700 are the four weights in the token set */
/* Hallmark · dismissed F25 · the rail's guide list is the same list phones get in the closed "In this guide" disclosure, one tap away */

/* Guide pages. Window 7 owns this file. Tokens only. The page shell is article.css, the body is
   article-prose.css and the band is components.css. Only what those do not cover lives here:
   the masthead without a back link or byline, the sentence in the closing band, the lead form,
   and the spacing around them. */

/* The article page has a 44px back link above its title, and guides have none. */
.guide-page .article-masthead {
    padding-top: calc(var(--mg-header-h) + 20px);
}

/* The hairline under the next step already closes the section, so the FAQ does not rule a second one. */
.article-prose .next-step + .faq {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.guide-cta__text {
    flex: 1 1 18rem;
    min-width: 0;
}

.article-page .guide-cta__text p {
    margin: 8px 0 0;
    color: var(--mg-on-teal-muted);
    font-family: var(--mg-font-body);
    font-size: var(--mg-size-body);
    line-height: var(--mg-leading-snug);
    text-wrap: pretty;
}

.guide-lead-form {
    width: min(var(--article-measure), 100% - 2 * var(--mg-gutter));
    margin: var(--mg-space-section) auto 0;
}

.guide-lead-form .lead-form {
    margin-top: 0;
}

.guide-lead-form .lead-form-heading {
    color: var(--mg-teal);
    font-family: var(--mg-font-title);
    font-size: var(--mg-size-h2);
    font-weight: var(--mg-weight-title);
    letter-spacing: var(--mg-tracking-title);
    line-height: var(--mg-leading-tight);
    overflow-wrap: break-word;
}

/* Colour alone does not mark a link inside a sentence. The partial is shared, so this stays on guides. */
.guide-lead-form .form-check-label a {
    color: var(--mg-link);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.guide-lead-form + .article-guides {
    padding-top: var(--mg-space-section);
}

@media (min-width: 992px) {
    .guide-page .article-masthead {
        padding-top: calc(var(--mg-header-h) + 24px);
    }

    /* Every guide uses the no-cover layout, so the body always starts straight under the teal band. */
    .article-page--no-cover.guide-page .article-body {
        margin-top: 40px;
    }
}

/* ---------- /kenntnisprufung (kp.php): only what its stored markup needs on top of the shell ---------- */

/* Its H1 holds the subtitle in a <small>, and the H1 text must not change. Set it as the other guides' summary. */
.page-article .article-title .article-summary {
    display: block;
    font-weight: 400;
    letter-spacing: normal;
    hyphens: manual;
}

/* The CTA keeps class="cta-pulse" because custom.js tracks it. style.css gives that class an
   !important text colour for a blue pill, which would be unreadable on the band's white button. */
.closing-cta a.cta-pulse {
    margin-top: 0;
    color: var(--mg-ink) !important;
}

.closing-cta a.cta-pulse:hover {
    transform: none;
}

/* "KP Exam Format" has its notes straight under it, and a note's own top margin would float them away. */
.guide-page .article-prose h3 + .callout {
    margin-top: 0;
}

/* Other guides have related links under the band. With nothing there the teal band would run into the
   teal footer. Not :last-child, because article.js adds the phone guide bar at the end of the page. */
.guide-page > .guide-cta:not(:has(~ .guide-lead-form, ~ .article-guides)) {
    margin-bottom: var(--mg-space-section);
}
