/* Kloeften Festival look for LimeSurvey (forms.kloften.dk), on top of fruity_twentythree.
   Colours of buttons, progress bar, checked answers etc. come from kloften-palette.css (generated). */

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/open-sans-latin-wght-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2");
}

:root {
    --kf-green: #7aea76;
    --kf-green-dark: #1e6b1b;
    --kf-ink: #111111;
    --kf-muted: #666666;
    --bs-primary-rgb: 122, 234, 118;
    --bs-link-color: var(--kf-green-dark);
    --bs-link-hover-color: var(--kf-ink);
    --bs-body-font-family: "Open Sans", Arial, sans-serif;
}

body,
body.font-arial,
.form-control,
.form-select,
.btn {
    font-family: "Open Sans", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.survey-name,
.group-title,
.form-heading,
.question-title-container,
.btn-primary {
    font-family: "Archivo", "Open Sans", Arial, sans-serif;
}

h1, h2, .h1, .h2, .survey-name, .group-title, .form-heading {
    font-weight: 700;
    color: var(--kf-ink);
    letter-spacing: -0.01em;
}

/* Thin green stripe at the very top, like kloften.dk. */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--kf-green);
    z-index: 1040;
}

/* Survey pages: logo in the fixed header. */
#survey-nav {
    background: #fff;
    border-bottom: 1px solid #ececec;
    padding-top: 12px;
}
#survey-nav .logo-container .logo {
    height: 60px; /* includes the theme's 8px top/bottom padding */
    width: auto;
    max-width: 60vw;
}

/* Survey list (front page): the big logo replaces the small one in the header. */
body:has(.kf-list-logo) #survey-nav .logo-container {
    display: none;
}
.kf-list-logo {
    width: min(360px, 80vw);
    margin: 48px auto 8px;
}
.kf-list-logo img {
    width: 100%;
    height: auto;
}

/* Footer on the survey list and survey pages. */
.kf-footer {
    margin-top: 48px;
    padding: 20px 0 28px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    color: var(--kf-muted);
    font-size: 0.9rem;
}
.kf-footer a {
    color: var(--kf-muted);
    text-decoration: underline;
    margin: 0 6px;
}
.kf-footer a:hover {
    color: var(--kf-ink);
}

/* Links in text: dark green so they stay readable on white. */
.question-text a,
.survey-description a,
.survey-welcome a,
.completed-text a {
    color: var(--kf-green-dark);
}

/* Visible keyboard focus in the brand colour. */
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 107, 27, 0.35);
    border-color: var(--kf-green-dark);
}

@media (max-width: 576px) {
    #survey-nav .logo-container .logo {
        height: 50px;
    }
    .kf-list-logo {
        margin-top: 32px;
    }
}
