/* Landing pages for the Polish and the Austrian registration document. Colors and fonts come from styles.scss. */

header .header_bg_start .bg_overlay .pl-hero-lead {
    max-width: 640px;
    margin: 20px 16px 10px;
    font-size: 17px;
    line-height: 26px;
    font-weight: 300;
    color: #E6E6E6;
    /* the same box as the lines of the h1 */
    background-color: rgba(0, 0, 0, 0.2);
    padding: 7px 15px;
}

/* The hero grows with its content. The fixed height of the site header cuts the lead on small screens. */
header.pl-hero .header_bg_start {
    position: relative;
    max-height: none;
    height: auto;
    min-height: 450px;
}

header.pl-hero .header_bg_start .bg_overlay {
    position: relative;
    /* flow-root keeps the top margin of the first child inside the overlay */
    display: flow-root;
    height: auto;
    min-height: 450px;
    padding: 0 16px 40px;
}

header.pl-hero .header_bg_start .img_scanner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

/* Language switch */
:is(#polen, #oesterreich, #schweiz) .pl-langbar {
    background-color: #1A1A1A;
    border-bottom: 1px solid #242628;
    padding: 12px 0;
}

:is(#polen, #oesterreich, #schweiz) .pl-langbar-flag {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

:is(#polen, #oesterreich, #schweiz) .pl-langbar .dropdown-toggle {
    padding-right: 32px;
    position: relative;
}

:is(#polen, #oesterreich, #schweiz) .pl-langbar .dropdown-toggle::after {
    right: 12px;
}

:is(#polen, #oesterreich, #schweiz) .dropdown-menu {
    background-color: #242628;
    border: 1px solid #797979;
    min-width: 140px;
}

:is(#polen, #oesterreich, #schweiz) .dropdown-item {
    color: #E6E6E6;
    font-weight: 300;
}

:is(#polen, #oesterreich, #schweiz) .dropdown-item:hover,
:is(#polen, #oesterreich, #schweiz) .dropdown-item:focus {
    background-color: #1A1A1A;
    color: #2ad39b;
}

:is(#polen, #oesterreich, #schweiz) .dropdown-item.active {
    background-color: #2ad39b;
    color: #1A1A1A;
}

:is(#polen, #oesterreich, #schweiz) a:focus-visible,
:is(#polen, #oesterreich, #schweiz) button:focus-visible {
    outline: 2px solid #2ad39b;
    outline-offset: 2px;
    box-shadow: none;
}

/* Steps: a real sequence, so the numbers carry meaning */
:is(#polen, #oesterreich, #schweiz) .pl-steps h3 {
    margin-top: 8px;
}

:is(#polen, #oesterreich, #schweiz) .pl-step-no {
    display: block;
    font-family: 'museo-sans-condensed', 'museo-sans', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
    color: #2ad39b;
}

/* Field codes of the document: the one strong visual element of the page */
:is(#polen, #oesterreich, #schweiz) .pl-codes {
    margin: 32px 0 0;
}

:is(#polen, #oesterreich, #schweiz) .pl-code-row {
    display: flex;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #242628;
}

:is(#polen, #oesterreich, #schweiz) .pl-code-row dt {
    flex: 0 0 72px;
    font-family: 'museo-sans-condensed', 'museo-sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    color: #2ad39b;
}

:is(#polen, #oesterreich, #schweiz) .pl-code-row dd {
    margin: 0;
    font-weight: 300;
    font-size: 16px;
    color: #E6E6E6;
}

/* Screenshots */
:is(#polen, #oesterreich, #schweiz) .pl-shot {
    margin: 0;
    border-left: 5px solid #2ad39b;
    padding-left: 20px;
}

:is(#polen, #oesterreich, #schweiz) .pl-shot img {
    border-radius: 5px;
    height: auto;
}

:is(#polen, #oesterreich, #schweiz) .pl-shot-light img {
    background-color: #FFFFFF;
}

:is(#polen, #oesterreich, #schweiz) .pl-shot figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: #999;
}

:is(#polen, #oesterreich, #schweiz) .pl-fallback {
    margin-top: 64px;
}

:is(#polen, #oesterreich, #schweiz) .pl-more-fields {
    margin-top: 64px;
}

:is(#polen, #oesterreich, #schweiz) .pl-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    column-gap: 32px;
    margin-top: 16px;
}

/* FAQ: open text, no accordion, so that search engines read every answer */
:is(#polen, #oesterreich, #schweiz) .pl-faq-item {
    padding: 24px 0;
    border-bottom: 1px solid #242628;
}

:is(#polen, #oesterreich, #schweiz) .pl-faq-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

:is(#polen, #oesterreich, #schweiz) .pl-faq-item p {
    margin: 0;
}

/* Use cases */
:is(#polen, #oesterreich, #schweiz) .pl-usecases-lead {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

:is(#polen, #oesterreich, #schweiz) .pl-usecase {
    height: 100%;
}

/* Short divider in the size of the hr of the start page. It is a lighter gray than the gray section. */
:is(#polen, #oesterreich, #schweiz) .pl-usecase::before {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    margin-bottom: 20px;
    background-color: #3F4245;
}

/* The field codes are the only green in the cards. They use the type of the field list. */
:is(#polen, #oesterreich, #schweiz) .pl-usecase-codes {
    margin-bottom: 8px;
    font-family: 'museo-sans-condensed', 'museo-sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    color: #2ad39b;
}

:is(#polen, #oesterreich, #schweiz) .pl-usecase-codes span + span {
    margin-left: 12px;
}

:is(#polen, #oesterreich, #schweiz) .pl-usecase h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

/* JSON sample: long lines scroll in the box, not on the page */
:is(#polen, #oesterreich, #schweiz) .pl-json-code {
    margin: 0;
    padding: 20px;
    background-color: #242628;
    border-radius: 5px;
    overflow-x: auto;
    color: #E6E6E6;
    font-size: 14px;
    line-height: 22px;
}

:is(#polen, #oesterreich, #schweiz) .pl-json-code code {
    color: inherit;
    font-size: inherit;
}

/* API note */
:is(#polen, #oesterreich, #schweiz) .pl-api {
    border: 1px solid #797979;
    border-radius: 5px;
    padding: 24px;
}

@media (max-width: 767.98px) {
    header.pl-hero .header_bg_start,
    header.pl-hero .header_bg_start .bg_overlay {
        max-height: none;
        height: auto;
        min-height: 400px;
    }

    header .header_bg_start .bg_overlay .pl-hero-lead {
        font-size: 15px;
        line-height: 22px;
        padding: 10px 15px;
    }

    :is(#polen, #oesterreich, #schweiz) .pl-step-no {
        font-size: 48px;
    }

    :is(#polen, #oesterreich, #schweiz) .pl-shot {
        padding-left: 12px;
    }
}
