/* Shared visual treatment for standalone legal documents. */
.brand { font-size: 1.45rem; font-weight: 700; letter-spacing: -.05em; color: var(--marine); }
.brand a { display: inline-flex; align-items: center; gap: 8px; }
.brand span { color: var(--accent); margin-left: -8px; }
.langs button { min-height: 44px; border-radius: 10px; padding: 8px 12px; }
.langs button[aria-pressed="true"] { background: var(--marine); border-color: var(--marine); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.045em; }
h2 { font-size: 1.3rem; }
.box { border-radius: 20px; padding: 24px; }
.wrap { padding-top: 32px; }
a { text-underline-offset: 3px; }
article table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; font-size: .9375rem; }
article th, article td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
article th { color: var(--muted); font-weight: 600; }
article p, article td { overflow-wrap: anywhere; }

/* Toppmenyen er den samme som på resten av styrmind.no. */
header.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 72px; padding-bottom: 1rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: .9rem; }
.site-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; padding-block: 8px; }
.site-nav a:hover { color: var(--accent); }
.lang-toggle { min-height: 44px; background: transparent; border: 0; padding: 10px; font: inherit; font-size: .75rem; font-weight: 600; color: var(--fg); cursor: pointer; }
@media (max-width: 767px) {
  .site-nav { order: 3; width: 100%; justify-content: center; gap: 0 20px; font-size: .78rem; }
}

/* Same 1400px shell, spacing and navigation treatment as src/style.css. */
html { scroll-padding-top: 144px; }
body { -webkit-font-smoothing: antialiased; }
.wrap, .site-header {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 72px);
}
.wrap { padding-top: 64px; padding-bottom: 48px; }
.document-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
header.site-header {
  min-height: 88px;
  margin-bottom: 0;
  padding-block: 0;
  gap: 24px;
  border: 0;
}
.brand { font-size: 1.55rem; letter-spacing: -.06em; flex-shrink: 0; }
.brand a { gap: 9px; }
.brand img { width: 37px; height: 37px; }
.site-nav { gap: clamp(14px, 1.8vw, 28px); }
.site-nav a { padding-block: 12px; }
.lang-toggle { margin-left: auto; }
article { padding-bottom: 48px; }
article h1 {
  max-width: 1050px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.065em;
  margin-bottom: 24px;
}
article h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  margin-top: 48px;
  padding-top: 32px;
  margin-bottom: 20px;
}
article h3 { font-size: 1.25rem; letter-spacing: -.025em; margin-top: 32px; }
article p, article ul { max-width: 90ch; line-height: 1.7; }
article .lead { font-size: 1.1rem; color: var(--muted); }
article .updated { font-size: .875rem; color: var(--muted); }
article table {
  display: table;
  table-layout: fixed;
  background: var(--card);
  border: 1px solid var(--line);
  margin-block: 24px;
}
article th, article td { padding: 16px 20px; white-space: normal; overflow-wrap: anywhere; }
article th { color: var(--marine); background: var(--bg); }
article tr:last-child td { border-bottom: 0; }
footer { margin-top: 24px; padding-top: 36px; line-height: 1.8; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
.skip-link { position: fixed; top: -100px; left: 20px; background: var(--card); padding: 16px; z-index: 100; }
.skip-link:focus { top: 10px; }
@media (max-width: 1250px) {
  header.site-header { flex-wrap: wrap; gap: 0 20px; padding-block: 14px; }
  .site-nav { order: 3; width: 100%; justify-content: center; padding-top: 12px; }
}
@media (max-width: 767px) {
  .wrap { padding-top: 40px; padding-bottom: 32px; }
  header.site-header { min-height: 70px; }
  .site-nav { gap: 0 20px; font-size: .78rem; }
  article h1 { font-size: clamp(2rem, 8vw, 2.7rem); overflow-wrap: anywhere; }
  article h2 { margin-top: 36px; padding-top: 24px; }
  article table { display: block; overflow-x: auto; table-layout: auto; }
  article th, article td { min-width: 140px; padding: 12px; }
  article { padding-bottom: 24px; }
}
@media print {
  .document-header, .skip-link { display: none; }
  .wrap { max-width: none; padding: 0; }
  article table { display: table; table-layout: fixed; }
  article th, article td { min-width: 0; }
}
/* Shared consent control for the standalone documents. */
.consent-settings { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin-right: .75rem; cursor: pointer; text-decoration: underline; }
.consent-settings[hidden] { display: none; }
.consent-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
