/*
 * Ordningsamt — main stylesheet
 * Editorial layout inspired by impact.economist.com. Warm cream
 * background, geometric sans, eyebrow kickers above headings, hairline
 * section dividers, muted teal accent. Light mode only by design.
 */

/* Newsreader — body + headings. SIL OFL 1.1. */
@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/newsreader-latin.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: 'Newsreader';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/newsreader-latin-ext.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;
}

/* Outfit 700 — wordmark and form buttons. SIL OFL 1.1. */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/outfit-700-latin.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: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/outfit-700-latin-ext.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 {
    --fg: #1a1a1a;         /* London10 */
    --muted: #595959;      /* London35 */
    --bg: #f5f4ef;         /* LosAngeles95 */
    --surface: #ffffff;    /* London100 */
    --rule: #d8d6c8;
    --accent: #168670;     /* muted HongKong teal */
    --accent-soft: #e0ebeb; /* Paris90 */
    --saffron: #d4a04c;    /* brand accent from wordmark */
    --maxw: 46rem;

    --sans: Newsreader, ui-serif, Georgia, "Iowan Old Style", serif;
}

* { box-sizing: border-box; }

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--fg);
    color: var(--bg);
    padding: 0.6rem 1rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 200;
}
.skip:focus {
    left: 0.75rem;
    top: 0.75rem;
}

.noscript-note {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: 0.6rem 0.9rem;
    margin: 1rem 0 0;
    font-size: 0.95rem;
    color: var(--fg);
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site-header,
main,
.site-footer {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 3px solid var(--fg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--fg);
    text-decoration: none;
    line-height: 0;
}

.brand img {
    height: 2.25rem;
    width: auto;
    display: block;
}

.brand:hover { opacity: 0.85; }

.brand-meta {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--saffron);
    white-space: nowrap;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.site-nav a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    border-bottom-color: var(--accent);
    outline: none;
}

main {
    padding-top: 2.5rem;
}

main section {
    margin-bottom: 3.5rem;
    border-top: 1px solid var(--rule);
    padding-top: 2.5rem;
}

main section:last-child { margin-bottom: 0; }

main section.hero {
    border-top: none;
    padding-top: 0;
}

main section.cta {
    border-top: none;
}

.hero {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 4rem;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 0.85rem;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--fg);
}

.hero .lede {
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

.hero .hero-app {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 1.5rem 0 0;
    color: var(--muted);
}

.app-link {
    display: inline-block;
    padding: 0.7rem 1.25rem;
    min-height: 2.75rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
}

.app-link:hover,
.app-link:focus-visible {
    background: #0f6a58;
    outline: none;
}

/* Illustrations are decoration only (alt=""), so nothing depends on them
   loading. Sized by their own aspect ratio, never wider than the column. */
.art { margin: 0 0 2.5rem; }
.art img { display: block; width: 100%; height: auto; border-radius: 6px; }
/* Screenshot gallery: one in the open, the rest a click away. The switching
   is five radio inputs and :checked — no script, so it survives JavaScript
   being off and adds nothing to the CSP. The frame is white because every
   screenshot has a white page behind it, so the frame edge is invisible.
   The frame takes the height of the slide that is showing: a fixed box
   would either clip the tallest screenshot or leave a white band under
   the shortest. */
.gallery { margin: 1.75rem 0 2.5rem; }
.g-radio { position: absolute; width: 1px; height: 1px; opacity: 0; }
.g-frame {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 6px;
    overflow: hidden;
}
.g-slide { display: none; width: 100%; cursor: pointer; }
.g-slide img { display: block; width: 100%; height: auto; }
#shot-0:checked ~ .g-frame .g-s0,
#shot-1:checked ~ .g-frame .g-s1,
#shot-2:checked ~ .g-frame .g-s2,
#shot-3:checked ~ .g-frame .g-s3,
#shot-4:checked ~ .g-frame .g-s4 { display: block; }

.g-cap { display: none; margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--muted); }
#shot-0:checked ~ .g-caps .g-c0,
#shot-1:checked ~ .g-caps .g-c1,
#shot-2:checked ~ .g-caps .g-c2,
#shot-3:checked ~ .g-caps .g-c3,
#shot-4:checked ~ .g-caps .g-c4 { display: block; }

.g-dots { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.g-dots label {
    cursor: pointer;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--muted);
    background: var(--surface);
    line-height: 1.4;
}
.g-dots label:hover { color: var(--fg); }
#shot-0:checked ~ .g-dots [for="shot-0"],
#shot-1:checked ~ .g-dots [for="shot-1"],
#shot-2:checked ~ .g-dots [for="shot-2"],
#shot-3:checked ~ .g-dots [for="shot-3"],
#shot-4:checked ~ .g-dots [for="shot-4"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
/* Keyboard: the radios stay focusable, so arrow keys step through the
   gallery. Show that focus on the matching button. */
.g-radio:focus-visible ~ .g-dots label { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero + .art { margin-top: -2rem; }
.art-banner { margin-bottom: 1.5rem; }

main h2 {
    font-size: 1.45rem;
    margin: 0 0 1rem;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.015em;
    line-height: 1.25;
}

main p {
    color: var(--muted);
    margin: 0 0 1rem;
}

main p:last-child { margin-bottom: 0; }

/* Progressive disclosure: one line in the open, the rest behind a native
   <details> the reader opens on purpose. No arrow restyling and no
   animation — the browser's own control is already the affordance, and it
   needs no JavaScript. See commons
   web/short-text-progressive-disclosure.md. */
.more {
    margin: 0.6rem 0 0;
    font-size: 0.95rem;
}

.more > summary {
    cursor: pointer;
    color: var(--accent);
    width: fit-content;
}

.more > summary:hover {
    text-decoration: underline;
}

.more > p {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

/* Open is the exception, so it stops asking for attention once it is. */
.more[open] > summary {
    color: var(--muted);
}

.note {
    font-size: 0.95rem;
    color: var(--muted);
    border-left: 2px solid var(--rule);
    padding-left: 1rem;
    margin-top: 1.25rem;
}

ul.features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

ul.features li {
    padding: 0.85rem 0;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
}

ul.features li:first-child {
    border-top: 1px solid var(--rule);
}

ul.features strong {
    color: var(--fg);
    font-weight: 600;
}

blockquote {
    margin: 2rem 0 0;
    padding: 1.5rem 0 1.5rem 1.5rem;
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    color: var(--fg);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.005em;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

.cta {
    background: var(--surface);
    padding: 2.5rem 2.25rem;
    margin-top: 3rem;
    border-left: 3px solid var(--accent);
}

.cta h2 { margin-bottom: 1rem; }

.cta-contact {
    margin-top: 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
}

.cta-contact a { color: var(--accent); }

.site-footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.88rem;
}

.site-footer p { margin: 0; }

@media (max-width: 560px) {
    html, body { font-size: 16px; }
    .hero { padding-left: 1rem; }
    .hero h1 { font-size: 2rem; }
    .hero .lede { font-size: 1.05rem; }
    .site-header { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .cta { padding: 1.75rem 1.5rem; }
}

/* Resources list — used for the toolkit/resource section on the home page.
   Distinct from .features (which is a flat hairline-divided list) in that
   each item is a small card-like block with a head row (title + status
   badge) and a description paragraph. */

ul.resources {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 1rem;
}

ul.resources li {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    padding: 1.1rem 1.25rem;
}

.resource-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

ul.resources strong {
    color: var(--fg);
    font-weight: 700;
    font-size: 1.05rem;
}

ul.resources p {
    margin: 0;
    color: var(--muted);
}

.status {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    line-height: 1.4;
}

.status--ready {
    background: var(--accent-soft);
    color: var(--accent);
}

.status--soon {
    background: var(--rule);
    color: var(--muted);
}

/* /las-mer/ — external resources page */

ul.links {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

ul.links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
    color: var(--muted);
}

ul.links li:first-child {
    border-top: 1px solid var(--rule);
}

ul.links a {
    color: var(--fg);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--rule);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

ul.links a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

ul.links .link-note {
    color: var(--muted);
    margin-left: 0.25rem;
}

/* Disclaimers moved out of the FAQ list: they are conditions of use, not
   questions anyone asks, so they read as a footnote and link to the page
   that carries them in full. */
.faq-note,
.meta-note {
    margin: 1.4rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.faq-note a,
.meta-note a {
    color: var(--accent);
}

.back-link {
    margin-top: 3rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.back-link a {
    color: var(--accent);
}

/* === Contact modal === */

.modal[hidden] { display: none; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 24, 21, 0.55);
    backdrop-filter: blur(3px);
    cursor: pointer;
}
.modal-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 2rem 1.75rem 1.5rem;
    max-width: 480px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(26, 24, 21, 0.25);
}
.modal-card h2 {
    font-family: Outfit, sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.015em;
    color: var(--fg);
    margin: 0 0 0.4rem;
    padding: 0;
    border: none;
}
.modal-intro {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 1.4rem;
    line-height: 1.5;
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}
.modal-close:hover, .modal-close:focus-visible {
    color: var(--fg);
    border-color: var(--fg);
    outline: none;
}

.modal-form .field { margin-bottom: 0.95rem; }
.modal-form label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 4px;
    color: var(--fg);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.modal-form input:focus, .modal-form textarea:focus, .modal-form select:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(212, 160, 76, 0.15);
}
.modal-form textarea {
    min-height: 110px;
    resize: vertical;
}
.modal-form .honey {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.modal-submit {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--saffron);
    border: 1px solid var(--saffron);
    color: var(--fg);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
    margin-top: 0.25rem;
}
.modal-submit:hover, .modal-submit:focus-visible {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
    outline: none;
}
.modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.modal-status {
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
    min-height: 1.2em;
    text-align: center;
}
.modal-status.success { color: #2d8e73; }
.modal-status.error { color: #b85a30; }

/* Contact CTA trigger styled like a link with affordance */
.cta-contact .contact-trigger {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--saffron);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: var(--saffron);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.cta-contact .contact-trigger:hover, .cta-contact .contact-trigger:focus-visible {
    text-decoration-thickness: 2px;
    outline: none;
}

@media (max-width: 480px) {
    .modal-card { padding: 1.5rem 1.25rem 1.25rem; }
}

ul.resources strong a {
    color: inherit;
    text-decoration: none;
}
ul.resources strong a:hover, ul.resources strong a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: none;
}

/* Om-sidan: Ordningsamts egen logotyp längst ned. */
.producer-logo { display: inline-block; padding: .5rem 0; }
.producer-logo img { max-width: 100%; height: auto; }
.cta-contact .contact-trigger + .contact-trigger { margin-left: 1rem; }

/* Tap targets on a phone: disclosure headings and the contact links are at least 40 px tall. */
@media (max-width: 640px) {
    .more > summary, .contact-trigger, .tip-link {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }
}

/* /alternativ: twelve looks for the app, as screenshots. Wider than the text column. */
.alt-page .site-header, .alt-page .site-footer, .alt-main { max-width: 72rem; }
.alt-jump { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 1.5rem 0 0; font-size: 0.95rem; }
.alt-jump a { display: inline-flex; align-items: center; min-height: 40px; }
.alt-card { margin: 0 0 3.5rem; padding: 1.25rem 0 0; border-top: 3px solid var(--fg); }
.alt-chosen { border-top-color: var(--accent); }
.alt-head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.alt-head h2 { margin: 0; }
.alt-n { color: var(--muted); font-weight: 400; }
.alt-badge { background: var(--accent); color: #fff; font-size: 0.8rem; padding: 0.1rem 0.6rem; border-radius: 999px; }
.alt-about { margin: 0.5rem 0 0.25rem; max-width: 46rem; }
.alt-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.alt-swatches { display: inline-flex; gap: 0.25rem; }
.alt-swatches svg { display: block; }
.alt-shot { display: block; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: #fff; }
.alt-shot img { display: block; width: 100%; height: auto; }
.alt-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; align-items: start; }
.alt-mobile { max-width: 260px; }
@media (max-width: 720px) { .alt-row { grid-template-columns: 1fr; } .alt-mobile { max-width: 260px; margin: 0 auto; } }
.alt-sub { font-size: 1.2rem; margin: 2rem 0 0.25rem; }
.alt-note { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.alt-row-site { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.alt-row-phones { grid-template-columns: repeat(2, minmax(0, 260px)); }
@media (max-width: 720px) { .alt-row-site, .alt-row-phones { grid-template-columns: 1fr; } }

/* Colour of the bar on the left of a page's lead and of its quotes. Every page
   gets one of these, so the green is not the only colour a visitor ever sees. */
:root {
    --c-teal: #168670;
    --c-saffron: #b87a12;
    --c-brick: #b4472f;
    --c-blue: #2f5fb3;
    --c-plum: #7a3b7a;
}
body { --bar: var(--c-teal); }
body.bar-saffron { --bar: var(--c-saffron); }
body.bar-brick { --bar: var(--c-brick); }
body.bar-blue { --bar: var(--c-blue); }
body.bar-plum { --bar: var(--c-plum); }
.hero, blockquote, .noscript-note { border-left-color: var(--bar); }
.cta { border-left-color: var(--c-saffron); }
ul.resources li:nth-child(4n+1) { border-left-color: var(--c-teal); }
ul.resources li:nth-child(4n+2) { border-left-color: var(--c-saffron); }
ul.resources li:nth-child(4n+3) { border-left-color: var(--c-brick); }
ul.resources li:nth-child(4n+4) { border-left-color: var(--c-blue); }
.kicker { color: var(--bar); }

/* A picture for each document, drawn as a mask so it takes the card's colour in both themes. */
ul.resources li.doc { position: relative; padding-left: 4.9rem; --doc: var(--c-teal); }
ul.resources li.doc:nth-child(4n+2) { --doc: var(--c-saffron); }
ul.resources li.doc:nth-child(4n+3) { --doc: var(--c-brick); }
ul.resources li.doc:nth-child(4n+4) { --doc: var(--c-blue); }
ul.resources li.doc::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    width: 3.2rem;
    height: 3.2rem;
    background: var(--doc);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
li.doc-samsyn { --icon: url(/images/doc/samsyn.png); }
li.doc-kravspec { --icon: url(/images/doc/kravspec.png); }
li.doc-intervju { --icon: url(/images/doc/intervju.png); }
li.doc-apt { --icon: url(/images/doc/apt.png); }
li.doc-svara { --icon: url(/images/doc/svara.png); }
li.doc-avslut { --icon: url(/images/doc/avslut.png); }
@media (max-width: 480px) {
    ul.resources li.doc { padding-left: 1.25rem; padding-top: 4.6rem; }
    ul.resources li.doc::before { left: 1.25rem; top: 1rem; }
}

/* A small page symbol before every link to a PDF (not the title links of the cards, which have the big picture). */
a[href$=".pdf"]::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1.1em;
    margin-right: 0.35em;
    vertical-align: -0.2em;
    background: currentColor;
    -webkit-mask: url(/images/pdf.svg) center / contain no-repeat;
    mask: url(/images/pdf.svg) center / contain no-repeat;
}
ul.resources strong a[href$=".pdf"]::before { display: none; }

/* Dark mode, chosen with the button in the header (theme.js). Light is the default. */
:root[data-theme="dark"] {
    --fg: #f1f3f4;
    --muted: #b4bac0;
    --bg: #121416;
    --surface: #1a1d20;
    --rule: #3a4046;
    --accent: #4cc38a;
    --accent-soft: #16291f;
    --saffron: #d9b060;
    --c-teal: #4cc38a;
    --c-saffron: #d9a441;
    --c-brick: #e0806a;
    --c-blue: #7fa6ee;
    --c-plum: #c58ac5;
    color-scheme: dark;
}
:root[data-theme="dark"] .brand img { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .hero img, :root[data-theme="dark"] main section > img { filter: brightness(.88); }

.site-header { position: relative; }
.theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--fg);
    border: 1.5px solid var(--rule);
    border-radius: 50%;
    cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover, .theme-toggle:focus-visible { border-color: var(--accent); outline: none; }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
