/* Klassisk stil (noasn.no). XP-stilen ligger i xp.css og brukes på nostalgi.noasn.no.
   Variablene finnes fordi sidene deler noen regler med XP-temaet. */
:root {
    --xp-flate: #FFF;
    --xp-kant-lys: #000;
    --xp-kant-mork: #000;
    --xp-kant: #000;
    --xp-valgt: #000;
    --xp-font: 'Courier New', monospace;
}

body {
    font-family: var(--xp-font);
    margin: 0;
    background: #FFF;
}

.header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1.5px solid black;
}
.header img { height: 56px; width: auto; display: block; }
.header a { justify-self: start; }
.header h1 { justify-self: center; margin: 0; white-space: nowrap; }

/* Hamburgermeny */
.meny { justify-self: end; }
.meny summary {
    list-style: none;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 0 6px;
    user-select: none;
}
.meny summary::-webkit-details-marker { display: none; }
.meny nav {
    position: absolute;
    right: 24px;
    top: calc(100% - 4px);
    z-index: 10;
    display: grid;
    min-width: 220px;
    background: #FFF;
    border: 1.5px solid black;
    border-radius: 5px;
}
.meny nav a { justify-self: stretch; padding: 12px 16px; color: black; text-decoration: none; }
.meny nav a + a { border-top: 1px solid #DDD; }
.meny nav a:hover { background: rgba(0, 0, 0, .1); }
.meny .bytt-tema { font-weight: bold; }

/* Knapper og felt */
button, input[type=submit], .knapp {
    display: inline-block;
    font-family: inherit;
    font-size: 1em;
    padding: 8px 16px;
    color: black;
    text-decoration: none;
    background: white;
    border: 1.5px solid black;
    border-radius: 5px;
    cursor: pointer;
}
button:hover, input[type=submit]:hover, .knapp:hover { background: rgba(0, 0, 0, .1); }
a.knapp, a.knapp:visited { color: black; }
input[type=text], input[type=password], input[type=email], input[type=url],
input[type=number], input[type=date], textarea, select {
    font-family: inherit;
    font-size: 1em;
    padding: 6px;
    border: 1.5px solid black;
    border-radius: 5px;
}

/* Dokumentvisning (CV og undersider) */
.dokument { padding: 0 5vw 6vh; }
.verktoylinje { display: flex; flex-wrap: wrap; gap: 8px; margin: 3vh auto; max-width: 300mm; }
.ark {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .header { padding: 12px 16px; }
    .header img { height: 40px; }
    .header h1 { font-size: 22px; }
    .meny summary { font-size: 25px; }
    .meny nav { right: 16px; }
}

@media print {
    .header, .verktoylinje { display: none !important; }
}
