/* NH Jespersen: brandretning fra nhjespersen.dk. */
@font-face {
    font-family: Roboto;
    src: url('/brand/roboto-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
}

:root {
    --brand-blue: #006cad;
    --brand-blue-dark: #005991;
    --brand-night: #021019;
    --brand-red: #ed1c2e;
    --brand-navy: var(--brand-night);
    --brand-green: var(--brand-blue);
    --green: var(--brand-blue);
    --green2: var(--brand-blue-dark);
    --lime: #dfe8ee;
    --bg: #f3f6f8;
    --ink: #101820;
    --muted: #64727d;
    --line: #dbe4ea;
}

body {
    font-family: Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at 100% 0, #dfe8ee80 0, transparent 27rem),
        var(--bg);
}
h1, h2, h3 { font-weight: 700; }
h1 { letter-spacing: -1px; }
:focus-visible { outline-color: var(--brand-blue); }

.sidebar {
    background: var(--brand-night);
    border-right: 1px solid #17303e;
}
.sidebar .brand {
    display: flex;
    min-height: 112px;
    margin: -13px 0 34px;
    padding: 14px 17px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 7px;
}
.brand-logo { display: block; width: 184px; max-width: 100%; height: auto; }
.sidebar .brand-logo { width: 174px; }
.nav-label { color: #91a8b5; }
.nav-item {
    color: #d8e3e9;
    border-left: 3px solid transparent;
    border-radius: 4px;
}
.nav-item:hover { background: #0d2a3a; color: #fff; }
.nav-item.selected {
    background: var(--brand-blue);
    border-left-color: var(--brand-red);
    color: #fff;
}
.nav-rule { background: #1d3847; }
.sidebar-bottom { color: #9bb0bb; }
.sidebar-bottom a { color: #fff; }
.sidebar .local-dot:before { background: var(--brand-red); }
.sidebar :focus-visible { outline-color: #fff; }

.topbar {
    background: #fff;
    border-top: 4px solid var(--brand-blue);
    box-shadow: 0 5px 20px #02101908;
}
.breadcrumb span { color: #9aa8b1; }
.test-badge { color: #425763; border-color: #d8e2e8; background: #f4f7f9; }
.user-initials, .avatar { background: #dfeef7; color: var(--brand-blue-dark); }

.hero {
    background: linear-gradient(125deg, var(--brand-blue-dark), var(--brand-blue));
    border-top: 4px solid var(--brand-red);
    border-radius: 7px;
    padding-top: 30px;
    box-shadow: 0 14px 35px #0059911f;
}
.hero:after { color: #ffffff1c; }
.hero .eyebrow { color: #d9edf8; }
.hero h2 { font-size: 29px; }
.hero p { color: #e7f2f8; }
.hero .btn { color: var(--brand-blue-dark); background: #fff; border-color: #fff; }

.btn {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
    border-radius: 5px;
    font-weight: 700;
    box-shadow: 0 4px 12px #006cad1f;
}
.btn:hover { filter: none; background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); }
.btn.secondary { color: var(--brand-blue-dark); background: #fff; border-color: #b9ceda; box-shadow: none; }
.btn.secondary:hover { background: #edf5f9; border-color: var(--brand-blue); }
.btn.small { border-radius: 4px; }

.card { border-color: var(--line); border-radius: 7px; box-shadow: 0 8px 24px #02101908; }
.card-icon { background: #e5f1f8; color: var(--brand-blue); border-radius: 6px; }
.shortcut { border-top: 3px solid transparent; }
.shortcut:hover { border-color: var(--brand-blue); box-shadow: 0 12px 30px #00599117; }
.shortcut h3 span { color: var(--brand-blue); }
.pill { background: #e3f1f8; color: var(--brand-blue-dark); }
.pill.inactive { background: #eef1f3; color: #65727a; }
.pill.waiting { background: #fff3d9; color: #845d0c; }
.notice { border-left-color: var(--brand-red); }
.alert.success { background: #e2f1f8; color: #004f7e; }
label { color: #314957; }
input:not([type=checkbox]), select, textarea { border-color: #bfd0da; border-radius: 4px; }
input:not([type=checkbox]):focus, select:focus, textarea:focus { border-color: var(--brand-blue); }
input[type=checkbox] { accent-color: var(--brand-blue); }
th { background: #e8f0f4; color: #455d6a; }
.codes { background: #e8f0f4; }

.auth-intro .brand { display: block; }
.auth-intro .brand-logo { width: 245px; }
.auth-intro h1 { color: var(--brand-night); font-weight: 700; }
.auth-intro h1:after {
    content: '';
    display: block;
    width: 68px;
    height: 5px;
    margin-top: 22px;
    background: linear-gradient(90deg, var(--brand-blue) 0 75%, var(--brand-red) 75%);
}
.auth-card { border-top: 4px solid var(--brand-blue); box-shadow: 0 18px 45px #02101912; }
.progress-list span { color: var(--brand-blue); }
footer { color: #657680; }

@media (max-width: 1100px) {
    .sidebar .brand-logo { width: 154px; }
}
@media (max-width: 800px) {
    .sidebar { border-right: 0; border-bottom: 4px solid var(--brand-blue); }
    .sidebar .brand { display: inline-flex; min-height: 62px; margin: 0; padding: 6px 12px; }
    .sidebar .brand-logo { width: 116px; }
    .sidebar nav { margin-top: 16px; }
    .topbar { border-top: 0; }
    .hero h2 { font-size: 26px; }
    .auth-intro .brand-logo { width: 200px; }
}
@media print {
    .hero { background: white; color: var(--brand-night); box-shadow: none; }
    .hero p, .hero .eyebrow { color: var(--brand-night); }
    .hero:after { display: none; }
}
