/* Skrifter: Source Serif 4 og Inter (SIL Open Font License), lagt på egen server i stedet for Google Fonts. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-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-20C4, 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.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: 500;
  font-display: swap;
  src: url(fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-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-20C4, 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.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/source-serif-4-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/source-serif-4-italic-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/source-serif-4-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/source-serif-4-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/source-serif-4-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/source-serif-4-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;
}

/* =========================================================
   PF Norge – designsystem
   Avledet fra logoen: nesten svart / hvitt / grått + én rød aksent,
   fet serif i overskrifter, sperret sans i etiketter, sekskant og kompassrose.
   ========================================================= */

/* ---------- Tokens: lys modus (standard) ---------- */
:root {
  --bg: #f7f6f5;
  --bg-2: #efedeb;
  --card: #ffffff;
  --line: #e0dddA;
  --line-strong: #c9c5c1;
  --text: #1f1a17;          /* logoens svarte */
  --muted: #5e5853;
  --accent: #c8282d;        /* logoens røde */
  --accent-text: #b0232a;   /* rød til tekst/lenker, god kontrast på lyst */
  --accent-soft: rgba(200, 40, 45, .09);
  --on-accent: #ffffff;
  --pattern-opacity: .09;
  --nav-bg: rgba(247, 246, 245, .88);
  --logo-dark: none;        /* hvit logo (for mørk bakgrunn) */
  --logo-light: block;      /* svart logo (for lys bakgrunn) */
  --icon-sun: none;
  --icon-moon: block;
  --radius: 6px;
  color-scheme: light;
}

/* ---------- Tokens: mørk modus ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131211;
    --bg-2: #1a1918;
    --card: #1d1c1b;
    --line: #302e2c;
    --line-strong: #47443f;
    --text: #f3f1ef;
    --muted: #a7a19b;
    --accent: #c8282d;
    --accent-text: #ef5a5e;
    --accent-soft: rgba(200, 40, 45, .16);
    --on-accent: #ffffff;
    --pattern-opacity: .07;
    --nav-bg: rgba(19, 18, 17, .86);
    --logo-dark: block;
    --logo-light: none;
    --icon-sun: block;
    --icon-moon: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131211;
  --bg-2: #1a1918;
  --card: #1d1c1b;
  --line: #302e2c;
  --line-strong: #47443f;
  --text: #f3f1ef;
  --muted: #a7a19b;
  --accent: #c8282d;
  --accent-text: #ef5a5e;
  --accent-soft: rgba(200, 40, 45, .16);
  --on-accent: #ffffff;
  --pattern-opacity: .07;
  --nav-bg: rgba(19, 18, 17, .86);
  --logo-dark: block;
  --logo-light: none;
  --icon-sun: block;
  --icon-moon: none;
  color-scheme: dark;
}

/* ---------- Grunnlag ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, system-ui, sans-serif;
  overflow-x: hidden;
  transition: background-color .2s, color .2s;
}
h1, h2, h3, .brand { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; letter-spacing: .005em; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code { background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; font-size: .88em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Logo-varianter: vis riktig farge for temaet */
.logo-on-dark { display: var(--logo-dark); }
.logo-on-light { display: var(--logo-light); }

/* Sperret etikettstil (som «PATHFINDER · STARFINDER») */
.eyebrow, .tag, .callout-label {
  font-family: Inter, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .74rem;
  font-weight: 600;
}

/* ---------- Navigasjon ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; white-space: nowrap; font-size: 1.1rem; }
.brand img { width: auto; height: 38px; }
.nav-inner > nav { display: flex; align-items: center; gap: 20px; }
.nav-inner > nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .93rem; }
.nav-inner > nav a:not(.btn):hover, .nav-inner > nav a[aria-current="page"] { color: var(--text); }
.nav-inner > nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; }
.nav-sep { width: 1px; height: 20px; background: var(--line-strong); }

.theme-toggle, .menu-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle:hover, .menu-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.theme-toggle .i-sun { display: var(--icon-sun); }
.theme-toggle .i-moon { display: var(--icon-moon); }

/* ---------- Mobilmeny ---------- */
.nav { position: sticky; }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.menu-toggle[aria-expanded="true"] { color: var(--text); border-color: var(--line-strong); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.25); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu[hidden] { display: none; }
.mobile-menu .wrap { padding-top: 6px; padding-bottom: 14px; }
.mobile-menu-label { margin: 18px 0 4px; color: var(--accent-text); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; }
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 2px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--accent-text); }
.mobile-menu a[aria-current="page"] { color: var(--accent-text); box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
@media (min-width: 1041px) { .mobile-menu { display: none !important; } }

/* ---------- Knapper ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; padding: 12px 22px; border: 1px solid var(--accent); border-radius: var(--radius); transition: transform .15s, filter .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); filter: none; }
.btn-small { padding: 7px 14px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 92px; border-bottom: 1px solid var(--line); text-align: center; }
/* Linjemønster inspirert av logoens sekskant/d20 */
.hero::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px; transform: translate(-50%, -50%);
  opacity: var(--pattern-opacity); pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23808080' stroke-width='.35' stroke-linejoin='round'%3E%3Cpolygon points='50,3 91,26.5 91,73.5 50,97 9,73.5 9,26.5'/%3E%3Cpolygon points='50,3 82,62 18,62'/%3E%3Cpolygon points='50,97 82,38 18,38'/%3E%3Cpath d='M9,26.5 L50,50 L91,26.5 M9,73.5 L50,50 L91,73.5 M50,3 L50,97'/%3E%3C/svg%3E");
}
.hero > .wrap { position: relative; }
.hero-logo { width: 100%; max-width: 480px; height: auto; margin: 0 auto 40px; }
.eyebrow { color: var(--accent-text); margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.08; margin: 0 0 20px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 0 3px rgba(59,165,93,.2); }

/* ---------- Seksjoner ---------- */
.section { padding: 84px 16px 0; }
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.1rem); margin: 0 0 28px; }
.section h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin-top: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

/* Kompassrose som punktmerke */
.list { list-style: none; padding: 0; margin: 0 0 20px; }
.list li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.list li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 14px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Sekskant-form (spiss topp, som i logoen) */
.hex { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* Discord-serverprofil (viser aldri brukernavn eller profilbilder) */
.dc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dc-banner { position: relative; height: 128px; background: linear-gradient(135deg, #1f1a17 0%, #3a1416 55%, var(--accent) 100%); }
.dc-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dc-body { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.dc-head { display: flex; align-items: flex-end; gap: 14px; margin-top: -36px; position: relative; }
.dc-icon { flex: none; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 24px; border: 5px solid var(--card); background: var(--bg-2); overflow: hidden; }
.dc-icon img { height: 44px; width: auto; }
.dc-icon img.dc-server-icon { width: 100%; height: 100%; object-fit: cover; }
.dc-head > div { padding-bottom: 6px; min-width: 0; }
.dc-head h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.dc-label { margin: 0; color: var(--accent-text); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; }
.dc-traits { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.dc-trait { font-size: .82rem; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); }
.dc-desc { margin: 0; color: var(--muted); }
.dc-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.dc-stats > span { display: inline-flex; align-items: center; gap: 8px; }
.dc-stats strong { color: var(--text); font-weight: 600; }
.dot-off { background: var(--line-strong); box-shadow: 0 0 0 3px var(--bg-2); }
.dc-channels { list-style: none; padding: 0; margin: 8px 0 0; border: 1px solid var(--line); border-radius: var(--radius); }
.dc-channels li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .95rem; }
.dc-channels li:first-child { border-top: 0; }
.dc-channels .dc-n { color: var(--text); font-weight: 600; white-space: nowrap; }
.dc-channels .dc-n::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ba55d; margin-right: 8px; vertical-align: middle; }
.dc-status { margin: 0; font-size: .93rem; }
.dc-join { justify-content: center; }

/* Regler med sekskant-nummer */
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rules li { counter-increment: r; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 66px; position: relative; color: var(--muted); }
.rules li strong { color: var(--text); }
.rules li::before {
  content: counter(r); position: absolute; left: 18px; top: 15px; width: 32px; height: 36px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center;
  font: 700 1rem "Source Serif 4", Georgia, serif;
}

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 0 20px; }
details[open] { border-color: var(--line-strong); }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--muted); }

/* Lenkeboks (spørreundersøkelse) */
.callout { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.callout:hover { border-color: var(--line-strong); border-left-color: var(--accent); transform: translateY(-1px); }
.callout strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1.2rem; }
.callout-label { color: var(--accent-text); }
.callout + .callout { margin-top: 12px; }

/* Bunntekst */
.footer { margin-top: 100px; border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; text-align: center; }
.footer p { margin: 6px 0; }

/* =========================================================
   Guider
   ========================================================= */
.hero-guide { padding: 80px 0 72px; }
.sub { color: var(--muted); margin: -12px 0 28px; max-width: 720px; }
.toc { position: sticky; top: 64px; z-index: 9; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toc .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.toc a { white-space: nowrap; text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 500; padding: 6px 12px; border-radius: var(--radius); border: 1px solid transparent; }
.toc a:hover { color: var(--text); border-color: var(--line); }
section[id] { scroll-margin-top: 130px; }

.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.grid2-even { grid-template-columns: 1fr 1fr; gap: 18px; }
.icon {
  width: 42px; height: 48px; margin-bottom: 14px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--accent-soft); color: var(--accent-text); font-size: 1.15rem;
}
.pips { display: flex; gap: 8px; margin-bottom: 14px; }
.pips span {
  width: 42px; height: 48px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--accent); color: var(--on-accent); font: 700 1.1rem "Source Serif 4", Georgia, serif;
}

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li { counter-increment: s; position: relative; padding: 22px 22px 22px 82px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before {
  content: counter(s); position: absolute; left: 22px; top: 20px; width: 40px; height: 46px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center;
  font: 700 1.15rem "Source Serif 4", Georgia, serif;
}
.steps h3 { margin: 8px 0 6px; font-size: 1.2rem; }
.steps p { margin: 0 0 10px; color: var(--muted); }

.quote { margin: 0; padding: 14px 18px; background: var(--bg-2); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 1.05rem; }

.pills { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-block; padding: 6px 13px; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius); font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--text); }
.pills a:hover { border-color: var(--accent); color: var(--accent-text); }

.tag { display: inline-block; color: var(--accent-text); margin-bottom: 8px; }
.card-wide { margin-top: 18px; }
.om-sprak { margin: 18px 0 0; }
.places { list-style: none; padding: 0; margin: 14px 0 0; }
.places li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.places li:first-child { border-top: 0; }
.places strong { color: var(--text); display: inline-block; min-width: 100px; }

.banner { position: relative; overflow: hidden; padding: 38px 32px; border-radius: var(--radius); border: 1px solid var(--line-strong); border-top: 3px solid var(--accent); background: var(--card); }
.banner h2 { margin-bottom: 10px; }
.banner h2::after { display: none; }
.banner p { color: var(--muted); max-width: 560px; margin: 0 0 22px; }

/* GM-guide */
.prose { max-width: 760px; }
.prose p, p.prose { margin: 0 0 14px; }
p.prose { margin-top: 22px; }
.prose .quote { margin: 4px 0 18px; }
.note { margin: 22px 0; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.note strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1.08rem; color: var(--text); }
.note p { margin: 6px 0 0; color: var(--muted); }
.h3-sub { margin: 36px 0 14px; font-size: 1.25rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table thead th { border-top: 0; background: var(--bg-2); font: 600 .74rem Inter, sans-serif; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.table td { color: var(--muted); }
.table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid transparent; color: var(--text); font-size: .88rem; font-weight: 500; }
.chips-later li { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }
.grid3 .card .pills { margin-top: 12px; }

/* ---------- Mobil ---------- */
/* «Hopp til innhold»: skjult til den får tastaturfokus */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--card); color: var(--text); border: 2px solid var(--accent); border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { left: 8px; }

/* Utvalgte eventyr på forsiden */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.feat-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.feat-card img { display: block; width: 100%; height: 200px; object-fit: contain; background: var(--bg-2); padding: 10px 0; border-bottom: 1px solid var(--line); }
.feat-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.feat-meta { font-size: .82rem; color: var(--muted); }
.feat-card h3 { margin: 0; font-size: 1.2rem; }
.feat-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.feat-tag { font-size: .86rem; font-weight: 600; color: var(--accent-text); }
.feat-more { margin: 22px 0 0; }
/* Oneshot fra oss under utvalgte eventyr (settes inn av oneshot/build.py) */
.osf { display: flex; margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); overflow: hidden; }
.osf-bilde { flex: 0 0 42%; display: grid; place-items: center; background: linear-gradient(#46100f, #2a0b0c); }
.osf-bilde img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.osf-tekst { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.osf h3 { margin: 0; font-size: 1.35rem; }
.osf h3 a { color: inherit; text-decoration: none; }
.osf h3 a:hover { color: var(--accent-text); }
.osf p { margin: 0; color: var(--muted); }
.osf .os-merker { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0; }
.osf .os-merker li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .86rem; font-weight: 600; color: var(--text); }
.osf .os-status { border-color: var(--accent) !important; color: var(--accent-text) !important; background: var(--accent-soft); }
.osf .osf-oppfordring { color: var(--text); font-weight: 600; }
.osf-lenker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px !important; font-size: .92rem; }
@media (max-width: 860px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-card img { height: 170px; }
  .osf { flex-direction: column; }
  .osf-bilde { flex-basis: auto; }
  .osf-tekst { padding: 16px 18px 18px; }
}

@media (max-width: 1040px) {
  .nav-inner > nav a:not(.btn), .nav-sep { display: none; }
  .nav-inner > nav { gap: 8px; }
  .menu-toggle { display: grid; }
}
@media (max-width: 860px) {
  .grid3, .grid2, .grid2-even, .rules { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 60px; }
  .hero-logo { max-width: 340px; margin-bottom: 32px; }
  .section { padding-top: 60px; }
  .steps > li { padding: 76px 18px 18px; }
  .steps > li::before { top: 18px; left: 18px; }
  .places strong { display: block; }
  .banner { padding: 28px 20px; }
}
@media (max-width: 440px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Spørreundersøkelse
   ========================================================= */
.takeaway { max-width: 620px; margin: -14px auto 0; font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; line-height: 1.5; }
.survey-tiles-section { padding-top: 48px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.tile .v { font: 700 2.3rem/1 "Source Serif 4", Georgia, serif; font-variant-numeric: tabular-nums; }
.tile .l { font-weight: 600; }
.tile .n { color: var(--muted); font-size: .84rem; line-height: 1.4; }

.chart-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.chart-card h3 { margin: 0; }
.chart-card .chart-note { margin: -8px 0 0; font-size: .84rem; line-height: 1.4; }
.chart-card .chart-comment { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.55; font-size: .95rem; }
.chart-card .chart-comment + .chart-comment { border-top: 0; padding-top: 0; margin-top: -4px; }
.legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.legend .k25, .fill.y2025 { background: var(--line-strong); }
.legend .k26, .fill.y2026 { background: var(--accent); }
.bars { display: flex; flex-direction: column; gap: 14px; }
.brow { display: flex; flex-direction: column; gap: 4px; }
.blabel { font-size: .93rem; }
.bline { display: grid; grid-template-columns: 1fr 5.6rem; align-items: center; gap: 10px; }
.track { height: 10px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.fill { height: 100%; border-radius: 2px; }
.bval { font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.bline.na .bval { grid-column: 1 / -1; font-style: italic; }

.survey-text { margin-top: 18px; }
.survey-text .card p { color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.survey-text .card p:last-child { margin-bottom: 0; }
.survey-text .card p b { color: var(--text); font-weight: 600; }
.survey-text .card h3 { margin-bottom: 12px; }
.survey-text .quote { margin: 0 0 12px; font-size: .98rem; }
.survey-text .list { margin: 0; }
.survey-text .list li { color: var(--muted); line-height: 1.55; }

/* VTT-guide */
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.3rem; }
.prose li { margin: 4px 0; }
.prose h3 { margin: 30px 0 10px; }
.vtt-table { margin: 6px 0 22px; }
.vtt-table .table { min-width: 560px; font-size: .95rem; }
.vtt-table .table td:first-child { white-space: normal; min-width: 8em; }
.vtt .steps { margin-bottom: 8px; }
.vtt-check { max-width: 760px; }
.vtt-check li::before { -webkit-mask: none; mask: none; background: none; border: 2px solid var(--accent); border-radius: 3px; top: 16px; width: 13px; height: 13px; }
.vtt-sources li { font-size: .95rem; }
.hero-goal { max-width: 620px; margin: -18px auto 30px; color: var(--muted); font-size: 1rem; }

/* Nyheter (/nyheter/) */
.news-list { display: grid; gap: 14px; margin-bottom: 24px; }
.news-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.news-item p { margin: .4em 0 0; }
.news-meta { color: var(--muted); font-size: .85rem; margin: 0 !important; }
.section .news-title { font-size: 1.2rem; margin: .25em 0 0; line-height: 1.35; }
.section .news-title::after { display: none; }
.news-title a { text-decoration: none; }
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--accent); }
