/* Colours, typefaces and sizes follow kinteso.ch. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400-normal.woff2) format("woff2"); 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: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-ext-400-normal.woff2) format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-normal.woff2) format("woff2"); 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: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-ext-500-normal.woff2) format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format("woff2"); 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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-ext-600-normal.woff2) format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); 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: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-ext-400-normal.woff2) format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); 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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-ext-600-normal.woff2) format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --petrol: #13404F;
    --gold: #B6863D;
    --text: #2E3135;
    --muted: #6B7280;
    --light: #F5F7F8;
    --white: #FFFFFF;
    --green: #25855A;
    --error: #B42318;
    --radius: 4px;
    --heading: "Poppins", sans-serif;
    --body: "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--text);
    font-family: var(--body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
}

h1, h2, h3 {
    margin: 0 0 0.5em;
    font-family: var(--heading);
    font-weight: 600;
    line-height: 1.2;
}
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

a { color: var(--petrol); }
a:hover { color: var(--gold); }

.site-header {
    background: var(--light);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 20px;
}
.site-header__logo img { display: block; height: 80px; width: auto; }
.site-header__brand { display: flex; align-items: flex-end; gap: 12px; }
.version { color: var(--muted); font-size: 12px; line-height: 1.6; }

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-family: var(--heading);
    font-size: 18px;
    font-weight: 600;
}
.site-nav a,
.site-nav button {
    padding: 13px 20px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--text);
    font: inherit;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
}
.site-nav a:hover,
.site-nav button:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.site-nav form { margin: 0; }

.band {
    background: var(--gold);
    color: var(--text);
    font-family: var(--heading);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 8px 20px;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 20px;
}

.hero {
    background: var(--petrol);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 40px;
}
.hero p { margin: 0; }

.panel {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px;
    background: var(--light);
    border-radius: var(--radius);
}

.panel h1 { font-size: 32px; hyphens: auto; overflow-wrap: break-word; }
.panel h2 { margin-top: 32px; font-size: 22px; }
.panel h2:first-child { margin-top: 0; }
.panel--wide { max-width: none; margin-top: 40px; }

.breadcrumb { margin: 0 0 8px; font-size: 16px; }
.page-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.page-title h1 { margin: 0; }
.course { margin: 0 0 40px; }
.course > h2 { padding: 12px 16px; background: var(--petrol); color: var(--white); border-radius: var(--radius); }
.folder { margin: 0 0 8px; border-left: 3px solid var(--gold); background: var(--light); border-radius: var(--radius); }
.folder .folder { margin-left: 16px; background: var(--white); }
.folder > summary {
    padding: 10px 16px;
    font-family: var(--heading);
    font-weight: 500;
    cursor: pointer;
}
.folder > summary:hover { color: var(--gold); }
.documents { margin: 0; padding: 4px 16px 12px 36px; font-size: 16px; }
.documents li { margin: 4px 0; }
.documents a { overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th {
    padding: 12px;
    background: var(--petrol);
    color: var(--white);
    font-family: var(--heading);
    font-weight: 600;
    text-align: left;
}
.table td { padding: 12px; border-bottom: 1px solid #DDE3E6; vertical-align: top; }
.table tr:nth-child(even) td { background: var(--light); }
.actions form { display: inline; margin: 0 12px 0 0; }
.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--petrol);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.link-button:hover { color: var(--gold); }
.link-button--danger { margin-left: 8px; color: var(--muted); font-size: 14px; }
.inline-form { display: inline; margin: 0; }

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.tile {
    display: block;
    padding: 32px;
    background: var(--light);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 2px 8px rgb(19 64 79 / 0.08);
}
.tile:hover { color: var(--text); box-shadow: 0 4px 16px rgb(19 64 79 / 0.16); }
.tile h2 { color: var(--petrol); font-size: 24px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

label { display: block; margin: 0 0 4px; font-weight: 600; font-size: 16px; }
input[type="email"],
input[type="password"],
input[type="text"],
select {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #C9D1D6;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    font: inherit;
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    border: 0;
    border-radius: var(--radius);
    background: var(--gold);
    color: var(--white);
    font-family: var(--heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
}
.button:hover { background: #9E7333; color: var(--white); }
.button--secondary { background: var(--petrol); }
.button--secondary:hover { background: #0D2F3A; }

.message {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-left: 4px solid var(--petrol);
    background: var(--white);
    font-size: 16px;
}
.message--error { border-left-color: var(--error); }
.message--success { border-left-color: var(--green); }

.muted { color: var(--muted); font-size: 16px; }

.qr-frame { width: 240px; margin: 0 0 16px; padding: 8px; background: var(--white); border-radius: var(--radius); }
.qr-frame svg { display: block; width: 100%; height: auto; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 16px; }
.secret { word-break: break-all; color: var(--petrol); }
.codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
    margin: 0 0 24px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    list-style: none;
}
.codes code { font-size: 18px; letter-spacing: 0.05em; }

.site-footer {
    background: var(--petrol);
    color: var(--white);
    font-size: 14px;
}
.site-footer__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 700px) {
    h1 { font-size: 30px; }
    .site-header__inner { flex-direction: column; align-items: flex-start; }
    .site-header__logo img { height: 60px; }
    .panel, .hero { padding: 24px; }
}
