/* Scenario 1 (simple), style B "Nordisk klarhet": clean and calm, in the family of good Norwegian public-sector
   design. Fjord blue with the group's red as the accent, Inter (self-hosted, SIL OFL: fonts/OFL.txt). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-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: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-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: italic; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-italic.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: italic; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-italic.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 {
  --bg: #ffffff;
  --surface: #eef3f8;     /* flate */
  --surface-2: #f6f9fc;
  --text: #17212b;        /* tekst */
  --muted: #4f5b69;       /* 7.0:1 on white */
  --line: #d6dee8;
  --line-strong: #b8c4d2;
  --blue: #0f4c81;        /* fjordblå, 8.6:1 on white */
  --blue-dark: #0a3a63;
  --blue-tint: #e3edf7;
  --red: #c8102e;         /* aksent, 5.9:1 on white */
  --focus: #c8102e;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgb(23 33 43 / 6%), 0 2px 8px rgb(23 33 43 / 4%);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; background: var(--blue); color: #fff; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap.narrow { max-width: calc(820px + 2 * var(--gutter)); }

/* ---------- Buttons and small parts ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); color: #fff; }
.button-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.button-outline:hover { background: var(--blue-tint); }
.button-quiet { border-color: var(--line-strong); color: var(--text); background: #fff; font-weight: 500; }
.button-quiet:hover { border-color: var(--blue); color: var(--blue); }
.arrow { width: 18px; height: 18px; flex: none; }
.text-link { font-weight: 600; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 0.875rem; font-weight: 600; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.small-heading { margin: 0 0 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-dark); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.chip:hover { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 600; line-height: 1.4; }
.site-menu { display: flex; align-items: center; gap: 24px; flex: 1; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a, .tool-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--text);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; border-radius: 6px;
}
.main-nav a:hover, .tool-link:hover { color: var(--blue); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.tool-link.is-current { color: var(--blue); }
.tool-link svg { width: 18px; height: 18px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.menu-button svg { width: 22px; height: 22px; display: block; }

/* ---------- Search forms ---------- */
.search-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.search-box {
  flex: 1 1 420px; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 6px 6px 16px;
  background: #fff; border: 2px solid var(--blue); border-radius: var(--radius-lg);
}
.search-box:focus-within, .goto-box:focus-within, .filter-box:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input, .goto-box input, .filter-box input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; font-size: 1.0625rem; outline: none; }
.search-box, .goto-box, .filter-box { min-width: 0; }
.search-box input::placeholder, .filter-box input::placeholder { color: #6b7684; }
.search-box .button { min-height: 44px; padding-inline: 22px; }
.goto-box {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 6px 6px 16px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); font-size: 0.9375rem;
}
.goto-box label { white-space: nowrap; font-weight: 500; }
.goto-box input { width: 3.6em; flex: none; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; text-align: center; font-size: 1rem; }
.goto-submit { width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--blue); font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.goto-submit:hover { background: var(--blue); color: #fff; }

/* ---------- Home ---------- */
.hero { background: var(--surface); padding: clamp(32px, 6vw, 64px) 0 clamp(28px, 5vw, 44px); }
.hero-title { max-width: 18em; margin: 0 0 28px; font-size: clamp(1.875rem, 4.2vw, 2.75rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.popular { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 16px 0 0; font-size: 0.9375rem; }
.popular-label { color: var(--muted); }
.popular a { font-weight: 500; }
.popular a.popular-all { margin-left: auto; font-weight: 600; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
.toc-columns { columns: 2 300px; column-gap: 36px; }
.chapter { break-inside: avoid; margin: 0 0 32px; }
.chapter-title { display: block; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--text); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.section-title { display: block; margin: 16px 0 4px; color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.toc-list { margin: 0; padding: 0; list-style: none; }
.toc-list a { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 0.9375rem; line-height: 1.4; }
.toc-list a:hover { color: var(--blue); }
.toc-list a:hover .toc-t { text-decoration: underline; }
.toc-entry { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); column-gap: 8px; }
.toc-n { color: var(--blue); font-weight: 600; font-size: 0.875rem; font-variant-numeric: tabular-nums; padding-top: 1px; white-space: nowrap; }
.home-aside { display: flex; flex-direction: column; gap: 16px; }
.about-card { background: #fff; box-shadow: var(--shadow); }
.card-eyebrow { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.about-title { margin: 0 0 10px; font-size: 1.0625rem; font-weight: 700; }
.about-lead { font-size: 0.9375rem; }
.about-lead b { font-weight: 500; }
.about-lead br { display: none; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 16px 0 0; }
.link-card { background: var(--surface-2); }
.card-title { margin: 0 0 6px; font-size: 1rem; }
.card-title a { text-decoration: none; }
.card-title a::after { content: " →"; }
.link-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Page heads ---------- */
.page-head { padding-top: clamp(24px, 4vw, 40px); padding-bottom: 24px; }
.page-title { margin: 0 0 12px; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.page-intro { max-width: 46em; margin: 0 0 20px; color: var(--muted); font-size: 1.0625rem; }
.back-link { margin: 32px 0 64px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 16px; padding: 0; list-style: none; font-size: 0.875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Article ---------- */
.article-head { padding-top: 24px; padding-bottom: 8px; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.article-label { margin: 0 0 4px; color: var(--red); font-weight: 600; font-size: 0.9375rem; }
.article-title { margin: 0; font-size: clamp(1.75rem, 3.8vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; max-width: 26em; }
.prev-next { display: flex; gap: 8px; flex-wrap: wrap; }
.prev-next-bottom { justify-content: space-between; margin: 48px 0 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.prev-next-bottom a[rel="next"] { margin-left: auto; }

.tabs-bar { position: sticky; top: 0; z-index: 5; margin-top: 20px; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 12px 12px; border-bottom: 3px solid transparent;
  color: var(--muted); font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
}
.tab:hover { color: var(--blue); }
.tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.tab:focus-visible { outline-offset: -3px; }
.count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface); color: var(--blue-dark); font-size: 0.75rem; font-weight: 700; text-align: center; }
.tab[aria-selected="true"] .count { background: var(--blue); color: #fff; }
.article-body { padding-top: 24px; }
.panel-heading { margin: 0 0 16px; font-size: 1.25rem; }
.js .panel-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-panel + .tab-panel { margin-top: 48px; }
.js .tab-panel + .tab-panel { margin-top: 0; }

.disclosure-bar { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.js .disclosure-bar { display: flex; }
.disclosure-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--blue-dark);
  font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.disclosure-button::before { content: "+"; font-size: 1.125rem; line-height: 1; font-weight: 500; }
.disclosure-button[aria-expanded="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.disclosure-button[aria-expanded="true"]::before { content: "−"; }
.disclosure-button:hover { border-color: var(--blue); }
.disclosure-panel { margin-bottom: 12px; background: var(--surface-2); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 40px; }
.related-list { margin: 0; padding: 0; list-style: none; }
.related-list li + li { margin-top: 6px; }
.related-list a { text-decoration: none; }
.related-list a:hover [data-block] { text-decoration: underline; }
.related-n { display: inline-block; min-width: 3.6em; color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.recitals { max-height: 28rem; overflow-y: auto; padding-right: 8px; }
.note { margin: 4px 0 12px; color: var(--muted); font-size: 0.9375rem; }
.note p { margin: 0; }

.text-toggles { display: none; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 16px; padding: 0; border: 0; }
.js .text-toggles { display: flex; }
.text-toggles legend { float: left; margin-right: 4px; color: var(--muted); font-size: 0.9375rem; }
.toggle { position: relative; display: inline-flex; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: #fff; color: var(--text); font-size: 0.875rem; font-weight: 500;
}
.toggle input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.toggle input:checked + span::before { content: "✓"; }
.toggle input:hover + span { border-color: var(--blue); }
.toggle input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.segmented { display: none; }

.text-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.text-grid[data-count="1"] { grid-template-columns: minmax(0, 820px); }
.text-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.text-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.text-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px 20px; box-shadow: var(--shadow); }
.text-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.text-card-head h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.text-body { font-size: 0.9375rem; line-height: 1.6; }
.text-body p { margin: 0 0 0.7em; }
.text-body p:empty { display: none; }
.text-body strong { font-weight: 600; }
.compare { position: relative; font-size: 0.8125rem; }
.compare summary { cursor: pointer; color: var(--blue); font-weight: 600; list-style: none; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: " ▾"; }
.compare[open] ul { position: absolute; right: 0; z-index: 4; display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 2px 16px; width: max-content; max-width: min(360px, 80vw); margin: 6px 0 0; padding: 12px 16px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(23 33 43 / 14%); }

.panel-layout.has-toc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.panel-toc { position: sticky; top: 64px; max-height: calc(100vh - 88px); overflow-y: auto; padding: 16px 18px; background: var(--surface-2); font-size: 0.875rem; }
.panel-toc h2 { margin: 0 0 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.panel-toc h3 { margin: 10px 0 4px; font-size: 0.875rem; font-weight: 700; }
.panel-toc ul { margin: 0; padding: 0; list-style: none; }
.panel-toc ul ul { padding-left: 0; }
.panel-toc li { margin: 0; }
.panel-toc ul ul a { display: block; padding: 4px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.panel-toc ul ul a:hover { text-decoration: underline; }

/* ---------- Prose (the content's own markup) ---------- */
.prose { font-size: 1rem; line-height: 1.7; max-width: 46rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose p:empty { display: none; }
.prose h1, .prose h2 { margin: 1.8em 0 0.6em; font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.prose h1 strong, .prose h2 strong, .prose h3 strong { font-weight: inherit; }
.prose h3 { margin: 1.6em 0 0.5em; font-size: 1.0625rem; line-height: 1.4; font-weight: 700; }
.prose h4 { margin: 1.4em 0 0.4em; font-size: 1rem; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin: 0.25em 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1em; font-size: 0.9375rem; }
.prose td, .prose th { padding: 6px 10px; border: 1px solid var(--line); vertical-align: top; }
.prose blockquote { margin: 0 0 1em; padding: 4px 0 4px 16px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.prose img { height: auto; }
.commentary h1 { padding-top: 1.2em; border-top: 1px solid var(--line); }
.commentary > h1:first-child { padding-top: 0; border-top: 0; }
.commentary [id] { scroll-margin-top: 64px; }

/* ---------- Keyword pages ---------- */
.keyword-tools { display: none; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.js .keyword-tools { display: flex; }
.filter-box { flex: 0 1 420px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: #fff; }
.filter-status { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.letter-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.letter-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 6px; background: var(--surface); color: var(--blue-dark); font-weight: 600; text-decoration: none; }
.letter-nav a:hover { background: var(--blue); color: #fff; }
.keyword-index { columns: 3 260px; column-gap: 40px; padding-bottom: 64px; }
.letter-group { break-inside: avoid; margin-bottom: 24px; scroll-margin-top: 16px; }
.letter { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--text); color: var(--blue); font-size: 1.25rem; }
.keyword-list { margin: 0; padding: 0; list-style: none; }
.keyword-list a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.keyword-list a:hover { color: var(--blue); }
.keyword-list a:hover .keyword-name { text-decoration: underline; }
.keyword-count { flex: none; min-width: 26px; padding: 0 7px; border-radius: 999px; background: var(--surface); color: var(--blue-dark); font-size: 0.75rem; font-weight: 700; line-height: 1.7; text-align: center; align-self: center; }

.article-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.article-list a { display: grid; grid-template-columns: 7em minmax(0, 1fr); column-gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.article-list a:hover { background: var(--surface-2); }
.article-list a:hover .article-list-title { color: var(--blue); text-decoration: underline; }
.article-list-label { color: var(--red); font-weight: 600; font-size: 0.875rem; padding-top: 2px; }
.article-list-title { font-weight: 600; }
.article-list-excerpt { grid-column: 2; margin-top: 4px; color: var(--muted); font-size: 0.875rem; }
.article-list-excerpt mark { background: #fff1b8; color: inherit; padding: 0 1px; }
.search-status { margin: 16px 0 8px; color: var(--muted); }
.page-search .search-results:empty { border-top: 0; }

/* ---------- About ---------- */
.international .countries-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 8px 0 24px; }
.international .country-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 500; }
.international .country-link:hover { border-color: var(--blue); color: var(--blue); }
.international .country-link img { width: 24px; height: auto; border-radius: 2px; }
.international .main-title { font-size: 1.5rem; margin-top: 0; }
/* Two image-only banners: their images (inline background-image) are not in the snapshot, so they get a caption. */
.international .-card-annonce { display: block; margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); font-weight: 600; text-decoration: none; }
.international .-card-annonce:hover { border-color: var(--blue); }
.international .-card-annonce .card-picture { display: none; }
.international .-card-annonce::after { content: "IT IP Law Group Europe →"; }
.international .-card-annonce[href$=".pdf"]::after { content: "Last ned kommentaren «Commentaire transversal» (PDF, 24. mars 2017) →"; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 32px; background: var(--text); color: #d7dee7; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 24px; }
.footer-brand { margin: 0 0 8px; color: #fff; font-size: 1.125rem; font-weight: 700; }
.footer-about p { margin: 0 0 8px; max-width: 30em; }
.footer-privacy { color: #aebbc9; }
.footer-heading { margin: 0 0 8px; color: #fff; font-weight: 600; }
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 4px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { padding-top: 16px; padding-bottom: 24px; border-top: 1px solid #2e3a47; color: #aebbc9; font-size: 0.8125rem; }
.footer-copy p { margin: 0; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1080px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .header-inner { gap: 20px; }
  .text-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .js .menu-button { display: inline-block; }
  .js .site-menu { display: none; }
  .js .site-menu.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .site-menu { flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 12px; }
  .main-nav { flex-direction: column; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); border-radius: 0; }
  .header-tools { flex-wrap: wrap; }
  .panel-layout.has-toc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .panel-toc { position: static; max-height: none; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 720px) {
  .text-grid, .text-grid[data-count] { grid-template-columns: minmax(0, 1fr); }
  .js .segmented:not([hidden]) {
    display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: var(--radius-lg); background: var(--surface);
  }
  .js .segmented button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 6px 8px; border: 0; border-radius: var(--radius); background: transparent; color: var(--text); font-size: 0.875rem; font-weight: 600; cursor: pointer; }
  .js .segmented button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
  .js .segmented:not([hidden]) ~ .text-grid .text-card:not(.is-active) { display: none; }
  .text-card { padding: 16px; }
  .title-row { align-items: flex-start; }
  .prev-next-top { display: none; }
  .search-box { flex-basis: 100%; }
  .goto-box { flex: 1 1 100%; }
  .goto-box input { flex: 1; width: 0; }
  .popular a.popular-all { margin-left: 0; }
  .toc-entry { grid-template-columns: 6.2em minmax(0, 1fr); }
  .article-list a { grid-template-columns: minmax(0, 1fr); }
  .article-list-excerpt { grid-column: 1; }
  .tab { padding-inline: 10px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Print: the article as one document, every panel and text shown ---------- */
@media print {
  @page { margin: 18mm 16mm; }
  body { font-size: 10.5pt; color: #000; }
  .site-header, .site-footer, .tabs-bar, .disclosure-bar, .text-toggles, .segmented, .prev-next, .skip-link, .compare,
  .search-row, .popular, .home-aside .link-card, .keyword-tools, .letter-nav, .panel-toc { display: none !important; }
  [hidden] { display: block !important; }
  .js .panel-heading { position: static; width: auto; height: auto; clip: auto; overflow: visible; margin-top: 24px; }
  .text-grid, .text-grid[data-count] { display: block; }
  .text-card { display: block !important; break-inside: auto; margin-bottom: 12px; box-shadow: none; border-color: #999; }
  .recitals { max-height: none; overflow: visible; }
  .hero { background: none; padding: 0 0 12px; }
  .tab-panel + .tab-panel { margin-top: 24px; }
  a { color: #000; }
}
