/* Bandbewerbung form page (/bandbewerbung-formular/, body class kdk-band-form): colours and type of karneval.berlin,
   the same as the home page (home.css). The colours replace the theme's brand mode (contrast-high), which visitors
   see first. Light and dark mode keep their own colours, the fonts change in every mode.
   !important where the theme's contrast-high rules use it. */

/* Latin and latin-ext files, the same as karneval.berlin, with Google's unicode ranges: the browser loads latin-ext only when a page holds such letters. */
@font-face {
    font-family: "Gasoek One";
    src: url("../fonts/gasoek-one-latin.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Gasoek One";
    src: url("../fonts/gasoek-one-latin-ext.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Funnel Sans";
    src: url("../fonts/funnel-sans-latin.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Funnel Sans";
    src: url("../fonts/funnel-sans-latin-ext.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body.kdk-band-form {
    --kdk-pink: #ffb6d9;
    --kdk-indigo: #28367b;
    --kdk-purple: #9966ff;
    --kdk-line: rgba(40, 54, 123, .22);
    font-family: "Funnel Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
body.kdk-band-form :is(input, textarea, select, button) {
    font-family: inherit;
}

/* Title in every mode */
body.kdk-band-form .entry-title {
    font-family: "Gasoek One", sans-serif;
    font-weight: 400;
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: .04em;
    text-transform: uppercase;
    overflow-wrap: break-word;
    hyphens: manual;
}

/* Brand mode: pink, indigo, purple */
html.contrast-high:has(> body.kdk-band-form) {
    background-color: #ffb6d9 !important;
}
html.contrast-high body.kdk-band-form,
html.contrast-high body.kdk-band-form :is(.site-header, .site-footer, header, footer, nav) {
    background-color: var(--kdk-pink) !important;
    color: var(--kdk-indigo) !important;
}
html.contrast-high body.kdk-band-form :is(h1, h2, h3, h4, h5, h6, .acf-label label, .acf-required) {
    color: var(--kdk-indigo) !important;
}
html.contrast-high body.kdk-band-form a {
    color: var(--kdk-indigo) !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
html.contrast-high body.kdk-band-form a:hover,
html.contrast-high body.kdk-band-form a:focus-visible {
    text-decoration-thickness: 2px;
}

/* Lines between the fields */
html.contrast-high body.kdk-band-form .acf-fields > .acf-field,
html.contrast-high body.kdk-band-form .af-field {
    border-color: var(--kdk-line) !important;
}

/* Text fields */
html.contrast-high body.kdk-band-form .acf-field :is(input[type=text], input[type=email], input[type=number], input[type=tel], input[type=url], textarea, select),
html.contrast-high body.kdk-band-form :is(input[type=text], input[type=email], input[type=number], input[type=tel], input[type=url], textarea, select) {
    background-color: #fff !important;
    color: var(--kdk-indigo) !important;
    border: 2px solid var(--kdk-indigo) !important;
    border-radius: 12px;
}
html.contrast-high body.kdk-band-form :is(input, textarea, select):focus,
html.contrast-high body.kdk-band-form :is(input, textarea, select):focus-visible {
    border-color: var(--kdk-indigo) !important;
    outline: 3px solid var(--kdk-purple) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}
html.contrast-high body.kdk-band-form input[type=radio] {
    accent-color: var(--kdk-indigo);
    width: 18px;
    height: 18px;
}

/* File fields */
html.contrast-high body.kdk-band-form .acf-field[data-type="file"] input[type="file"] {
    background: #fff !important;
    color: var(--kdk-indigo) !important;
    border: 2px solid var(--kdk-indigo) !important;
    border-radius: 12px;
    box-shadow: none;
}
html.contrast-high body.kdk-band-form .acf-field[data-type="file"] input[type="file"]::file-selector-button {
    border-radius: 9999px;
    background: var(--kdk-indigo);
    color: #fff;
}
html.contrast-high body.kdk-band-form .acf-field[data-type="file"] input[type="file"]::file-selector-button:hover {
    background: var(--kdk-purple);
}

/* Buttons: indigo with white text, purple on hover, like the home page */
html.contrast-high body.kdk-band-form button,
html.contrast-high body.kdk-band-form .acf-form-submit .acf-button {
    background-color: var(--kdk-indigo) !important;
    color: #fff !important;
    border: 2px solid var(--kdk-indigo) !important;
}
html.contrast-high body.kdk-band-form button:hover,
html.contrast-high body.kdk-band-form button:focus-visible,
html.contrast-high body.kdk-band-form .acf-form-submit .acf-button:hover,
html.contrast-high body.kdk-band-form .acf-form-submit .acf-button:focus-visible {
    background-color: var(--kdk-purple) !important;
    border-color: var(--kdk-purple) !important;
    color: #fff !important;
}
html.contrast-high body.kdk-band-form :is(button, .acf-button):focus-visible {
    outline: 3px solid var(--kdk-indigo);
    outline-offset: 3px;
}
body.kdk-band-form .acf-form-submit .acf-button {
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: none;
}

/* The footer logo sits absolute at the bottom right and covers the copyright line on phones. Same fix as the home page. */
@media (max-width: 640px) {
    body.kdk-band-form .site-footer .footer-logo {
        position: static !important;
        display: flex;
        justify-content: center;
        margin-top: 16px;
    }
    body.kdk-band-form .site-footer .footer-logo img {
        max-width: 96px !important;
    }
}

/* The theme's column is 65ch wide. Funnel Sans is narrower than the old system font, so keep the old width (656 px). */
@media (min-width: 769px) {
    body.kdk-band-form .content-container {
        max-width: 41rem;
    }
}
