/* ============================================================
   Skriftlig.no — Tema-CSS v1.0
   Ikke editer direkte i Publii. Rediger denne filen i kode-
   editoren og bygg temaet på nytt.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── DESIGNTOKENS ─── */
:root {
  --bg:            #FAF8F3;
  --bg-hover:      #F0EBE0;
  --bg-surface:    #F2EEE6;
  --bg-deep:       #001219;

  --ink:           #001219;
  --ink-mid:       #2A3C44;
  --ink-muted:     #5A6B73;

  --midnight:      #005F73;
  --midnight-dark: #004355;
  --cyan:          #0A9396;
  --tiffany:       #94D2BD;

  --rule:          #D5D0C6;
  --rule-light:    #E5E0D5;

  --serif:         'Cormorant Garamond', Georgia, serif;
  --sans:          'DM Sans', 'Helvetica Neue', sans-serif;

  --max-content:   1200px;
  --max-prose:     720px;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.site-wrap {
  max-width: var(--max-content);
  margin: 0 auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── PROGRESS BAR ─── */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rule-light);
  z-index: 1000;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--midnight);
  transition: width 0.1s linear;
}

/* ============================================================
   NAVIGASJON
   ============================================================ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-logo span { color: var(--midnight); }
.site-logo img { height: 40px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--midnight); }

.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--cyan);
  text-decoration: none;
  padding: 8px 18px;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--midnight); }

/* Hamburger (mobil) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
}

/* ============================================================
   FORSIDE — HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 48px 72px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero-bg-letter {
  position: absolute;
  right: -10px;
  top: -60px;
  font-family: var(--serif);
  font-size: 380px;
  font-weight: 700;
  color: var(--midnight);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--midnight);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 700px;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--midnight);
}
.hero-lead {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-mid);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.hero-meta {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   FORSIDE — TEMAGUIDER
   ============================================================ */
.tema-strip {
  padding: 40px 48px;
  border-bottom: 1px solid var(--rule);
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.tema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.tema-card {
  padding: 24px 28px;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.tema-card:hover { background: var(--bg-hover); }
.tema-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: transparent;
  transition: background 0.2s;
}
.tema-card:hover::before { background: var(--midnight); }
.tema-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 8px;
}
.tema-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}
.tema-desc {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-bottom: 12px;
}
.tema-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--midnight);
  transition: color 0.2s;
}
.tema-link:hover { color: var(--midnight-dark); }

/* ============================================================
   FORSIDE — ARTIKKELGRID
   ============================================================ */
.articles-section { padding: 0 48px; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.section-see-all {
  font-size: 14px;
  font-weight: 500;
  color: var(--midnight);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.section-see-all:hover { color: var(--midnight-dark); }

/* Rad 1: Featured + 3 kompakte */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-top: none;
}

/* Featured */
.article-featured {
  background: var(--bg);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.article-featured:hover { background: var(--bg-hover); }
.article-featured::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.25s;
}
.article-featured:hover::after { background: var(--midnight); }

.article-img {
  width: 100%;
  height: 200px;
  background: var(--bg-surface);
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid var(--rule);
}
.article-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
  opacity: 0.6;
}

.article-featured-body {
  padding: 28px 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-cat::before {
  content: '';
  display: inline-block;
  width: 16px; height: 1px;
  background: var(--midnight);
  flex-shrink: 0;
}

.article-featured .article-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.article-featured:hover .article-title { color: var(--midnight); }

.article-excerpt {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 18px;
}
.article-meta {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.meta-dot {
  width: 2px; height: 2px;
  background: var(--rule);
  border-radius: 50%;
}

/* Kompakte */
.articles-stack { display: flex; flex-direction: column; }

.article-compact {
  background: var(--bg);
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--rule);
  position: relative;
  display: flex;
  flex: 1;
}
.article-compact:last-child { border-bottom: none; }
.article-compact:hover { background: var(--bg-hover); }
.article-compact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.25s;
}
.article-compact:hover::before { background: var(--midnight); }

.article-compact-img {
  width: 130px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--rule);
  overflow: hidden;
}
.article-compact-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.article-compact-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-compact .article-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.article-compact:hover .article-title { color: var(--midnight); }
.article-compact .article-excerpt {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
}

/* Rad 2: To mellomstore */
.articles-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-top: none;
}
.article-medium {
  background: var(--bg);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-medium:hover { background: var(--bg-hover); }
.article-medium::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s;
}
.article-medium:hover::before { background: var(--midnight); }

.article-medium-img {
  width: 100%;
  height: 140px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  flex-shrink: 0;
}
.article-medium-img img { width: 100%; height: 100%; object-fit: cover; }

.article-medium-body {
  padding: 22px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-medium .article-title {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.article-medium:hover .article-title { color: var(--midnight); }
.article-medium .article-excerpt {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-bottom: 10px;
  flex: 1;
}

/* ============================================================
   SIGNUP-BOKS
   ============================================================ */
.signup-section {
  margin: 40px 48px;
  padding: 44px 52px;
  background: var(--bg-surface);
  border-left: 4px solid var(--midnight);
}
.signup-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 12px;
}
.signup-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.signup-desc {
  font-size: 15px;
  color: var(--ink-mid);
  margin-bottom: 8px;
  max-width: 500px;
  line-height: 1.6;
}
.signup-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 28px;
  max-width: 500px;
  line-height: 1.55;
}
.signup-form { display: flex; gap: 0; max-width: 420px; }
.signup-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--midnight);
  border-right: none;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.signup-input:focus { border-color: var(--cyan); }
.signup-input::placeholder { color: var(--ink-muted); }
.signup-btn {
  padding: 12px 22px;
  background: var(--cyan);
  color: #fff;
  border: 1.5px solid var(--cyan);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.signup-btn:hover { background: var(--midnight); border-color: var(--midnight); }

/* Inline signup (inne i artikkel) */
.inline-signup {
  background: var(--bg-surface);
  border-left: 4px solid var(--midnight);
  padding: 32px 36px;
  margin: 40px 0;
}
.inline-signup .signup-title { font-size: 22px; margin-bottom: 8px; }
.inline-signup .signup-desc { font-size: 14px; margin-bottom: 6px; }
.inline-signup .signup-sub { font-size: 12px; margin-bottom: 18px; }
.inline-signup .signup-form { max-width: 380px; }

/* ============================================================
   ORDVEKTEN-BANNER
   ============================================================ */
.ordvekten-banner {
  margin: 0;
  padding: 32px 44px;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ordvekten-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 6px;
}
.ordvekten-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: #FAF8F3;
  line-height: 1.2;
}
.ordvekten-desc {
  font-size: 14px;
  color: rgba(250,248,243,0.5);
  margin-top: 4px;
}
.ordvekten-btn {
  padding: 12px 24px;
  background: var(--cyan);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.ordvekten-btn:hover { background: var(--midnight); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 48px;
  padding: 28px 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.footer-logo span { color: var(--midnight); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 12px;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--midnight); }
.footer-copy { font-size: 12px; color: var(--ink-muted); }

/* ============================================================
   ARTIKKELSIDE
   ============================================================ */
.article-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  border-bottom: 1px solid var(--rule);
}
.back-link {
  font-size: 12px;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.back-link:hover { color: var(--midnight); }

.article-header {
  padding: 60px 48px 48px;
  border-bottom: 1px solid var(--rule);
}
.article-header .article-cat { margin-bottom: 16px; font-size: 11px; }
.article-header .article-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}
.byline-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--rule);
  flex-shrink: 0;
}

/* Layout med marg-kolonne */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.article-main {
  padding: 48px 48px 48px;
  border-right: 1px solid var(--rule);
}

/* Toppbilde */
.article-hero-img {
  width: 100%;
  height: 280px;
  background: var(--bg-surface);
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--rule);
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Artikkelens typografi */
.article-body--has-lead > p:first-child {
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
  color: var(--midnight);
  line-height: 1.45;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}

.article-body { max-width: 100%; }
.article-body p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 22px;
}
.article-body p em { font-style: italic; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}
.article-body ul,
.article-body ol {
  margin: 0 0 22px 0;
  padding-left: 0;
  list-style: none;
}
.article-body ul li,
.article-body ol li {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  padding: 4px 0 4px 20px;
  position: relative;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--midnight);
  opacity: 0.5;
}
.article-body ol { counter-reset: ol-counter; }
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--midnight);
  font-size: 14px;
}
.article-body a {
  color: var(--midnight);
  text-decoration: underline;
  text-decoration-color: rgba(0,95,115,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article-body a:hover { text-decoration-color: var(--midnight); }
.article-body strong { font-weight: 600; }
.article-body code {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 2px;
}

/* Innfelt bilde */
.article-inline-img {
  width: 100%;
  height: 220px;
  background: var(--bg-surface);
  overflow: hidden;
  margin: 32px 0 8px;
  border: 1px solid var(--rule);
}
.article-inline-img img { width: 100%; height: 100%; object-fit: cover; }
.img-caption {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 28px;
  font-style: italic;
}

/* ============================================================
   INNHOLDSBOKSER (customElements)
   .fact-box   — faktaboks
   .link-box   — lenkeboks
   .toc-box    — innholdsfortegnelse (collapsible)
   Alle: full bredde default. Legg til .half for halvkolonne.
   ============================================================ */

/* ─── FELLES BASE ─── */
.fact-box,
.link-box,
.toc-box {
  position: relative;
  margin: 36px 0;
  width: 100%;
}

/* Halvkolonne — flyter til høyre, resten av teksten renner rundt */
.fact-box.half,
.link-box.half {
  float: right;
  width: calc(50% - 16px);
  margin: 6px 0 24px 32px;
  clear: right;
}

/* Clearfix etter halvbokser */
.article-body::after {
  content: '';
  display: table;
  clear: both;
}

/* ─── FAKTABOKS ─── */
.fact-box {
  background: var(--bg-surface);
  border-top: 3px solid var(--midnight);
  padding: 28px 32px 24px;
}
.fact-box::before {
  content: 'Faktaboks';
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 14px;
}
.fact-box p {
  font-size: 15px !important;
  color: var(--ink-mid) !important;
  margin-bottom: 10px !important;
  line-height: 1.6 !important;
}
.fact-box p:last-child { margin-bottom: 0 !important; }
.fact-box strong { color: var(--ink) !important; }
.fact-box ul,
.fact-box ol {
  margin-bottom: 0 !important;
}
.fact-box ul li,
.fact-box ol li {
  font-size: 15px !important;
  color: var(--ink-mid) !important;
}

/* ─── LENKEBOKS ─── */
.link-box {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cyan);
  padding: 24px 28px;
}
.link-box::before {
  content: 'Les også';
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.link-box p {
  font-size: 15px !important;
  margin-bottom: 8px !important;
  color: var(--ink-mid) !important;
}
.link-box p:last-child { margin-bottom: 0 !important; }
.link-box a {
  font-weight: 500;
  color: var(--midnight) !important;
  text-decoration-color: rgba(0,95,115,0.3) !important;
}
.link-box a:hover { text-decoration-color: var(--midnight) !important; }
.link-box ul { margin-bottom: 0 !important; }
.link-box ul li {
  font-size: 15px !important;
  color: var(--ink-mid) !important;
}
.link-box ul li::before { background: var(--cyan) !important; }

/* ─── INNHOLDSFORTEGNELSE ─── */
.toc-box {
  background: var(--bg);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.toc-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}
.toc-box__header:hover { background: var(--bg-hover); }
.toc-box__title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.toc-box__toggle {
  font-size: 11px;
  color: var(--ink-muted);
  transition: transform 0.25s;
}
.toc-box.is-open .toc-box__toggle { transform: rotate(180deg); }
.toc-box__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.toc-box.is-open .toc-box__body { max-height: 600px; }
.toc-box ol,
.toc-box ul {
  padding: 16px 20px 20px;
  margin: 0 !important;
  list-style: none;
  counter-reset: toc-counter;
}
.toc-box ol li {
  counter-increment: toc-counter;
  padding: 5px 0 5px 28px !important;
  position: relative;
  border-bottom: 1px solid var(--rule-light);
}
.toc-box ol li:last-child { border-bottom: none; }
.toc-box ol li::before {
  content: counter(toc-counter, decimal-leading-zero) !important;
  position: absolute;
  left: 0;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--midnight) !important;
  top: 8px !important;
  background: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
}
.toc-box a {
  font-size: 14px !important;
  color: var(--ink-mid) !important;
  text-decoration: none !important;
  transition: color 0.15s;
}
.toc-box a:hover { color: var(--midnight) !important; }

@media (max-width: 768px) {
  .fact-box.half,
  .link-box.half {
    float: none;
    width: 100%;
    margin: 36px 0;
  }
}

/* Pullquote */
.pullquote {
  margin: 40px 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--midnight);
}
.pullquote p {
  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;
  font-weight: 500;
  color: var(--midnight);
  line-height: 1.4;
  margin: 0;
}

/* Margspalte */
.article-margin {
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 72px; /* under sticky nav */
}
.margin-box {
  padding: 18px 20px;
  border: 1px solid var(--rule);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.margin-box:hover { border-color: var(--midnight); background: var(--bg-hover); }
.margin-box-link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.margin-box-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 7px;
}
.margin-box-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
}
.margin-box-desc {
  font-size: 12px;
  color: var(--ink-mid);
  line-height: 1.5;
  margin-bottom: 8px;
}
.margin-box-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--midnight);
}
.margin-box-link:hover { color: var(--midnight-dark); }

/* Tags */
.article-tags {
  padding: 28px 48px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tag-pill {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--midnight);
  border: 1px solid var(--midnight);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.tag-pill:hover { opacity: 1; }

/* ============================================================
   RELATERTE INNLEGG
   ============================================================ */
.related-posts {
  padding: 40px 48px;
  border-bottom: 1px solid var(--rule);
}
.related-posts-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.related-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  position: relative;
}
.related-card:hover { background: var(--bg-hover); }
.related-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}
.related-card:hover::after { background: var(--midnight); }
.related-img {
  width: 100%;
  height: 120px;
  background: var(--bg-surface);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-img--empty { opacity: 0.4; }
.related-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.related-cat {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 8px;
}
.related-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.related-card:hover .related-title { color: var(--midnight); }

/* ============================================================
   ARKIV / KATEGORI
   ============================================================ */
.archive-header {
  padding: 52px 48px 40px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: end;
}
.archive-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 12px;
}
.archive-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.archive-desc {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.6;
  max-width: 520px;
}
.archive-stats { text-align: right; }
.archive-count {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  color: var(--midnight);
  line-height: 1;
  opacity: 0.3;
}
.archive-count-label {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.archive-sort {
  padding: 16px 48px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 20px;
  align-items: center;
}
.sort-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.archive-list { padding: 0 48px 48px; }
.archive-list--page { max-width: 900px; margin-left: auto; margin-right: auto; }
.archive-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--rule-light);
  cursor: pointer;
  transition: background 0.2s;
}
.archive-item:hover { background: var(--bg-hover); margin: 0 -48px; padding: 0 48px; }
.archive-item-img {
  width: 120px; height: 120px;
  background: var(--bg-surface);
  flex-shrink: 0;
  overflow: hidden;
  align-self: center;
  border-right: 1px solid var(--rule-light);
}
.archive-item-img img { width: 100%; height: 100%; object-fit: cover; }
.archive-item-body {
  padding: 18px 0 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.archive-item-text { flex: 1; }
.archive-item-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.archive-item:hover .archive-item-title { color: var(--midnight); }
.archive-item-excerpt {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-item-excerpt p { margin: 0; }
.archive-item-meta {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  text-align: right;
}

.archive-pagination {
  padding: 32px 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 4px;
}
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.page-btn:hover { border-color: var(--rule); color: var(--midnight); }
.page-btn.is-current { background: var(--midnight); color: #fff; }

/* ============================================================
   TEMASIDE (tag med temaguide-klasse)
   ============================================================ */
.tema-page-header {
  padding: 60px 48px 48px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}
.tema-page-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tema-page-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--midnight);
}
.tema-page-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.tema-page-lead {
  font-size: 17px;
  color: var(--ink-mid);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 24px;
}
.tema-page-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tema-page-cta-box {
  background: var(--bg-deep);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: start;
}
.tema-cta-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 10px;
}
.tema-cta-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: #FAF8F3;
  line-height: 1.25;
  margin-bottom: 10px;
}
.tema-cta-desc {
  font-size: 13px;
  color: rgba(250,248,243,0.55);
  line-height: 1.55;
  margin-bottom: 20px;
}
.tema-cta-price {
  font-family: var(--serif);
  font-size: 28px;
  color: #FAF8F3;
  margin-bottom: 16px;
}
.tema-cta-price small {
  font-size: 14px;
  color: rgba(250,248,243,0.5);
  font-family: var(--sans);
}
.tema-cta-btn {
  display: block;
  padding: 12px 20px;
  background: var(--cyan);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}
.tema-cta-btn:hover { background: var(--midnight); }

.tema-page-articles { padding: 0 48px 48px; }
.tema-article-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0;
  border-bottom: 1px solid var(--rule-light);
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
}
.tema-article-row:hover { background: var(--bg-hover); margin: 0 -48px; padding: 0 48px; }
.tema-article-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--midnight);
  opacity: 0.2;
  line-height: 1;
  padding: 20px 0;
}
.tema-article-body { padding: 18px 0 18px 16px; }
.tema-article-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.tema-article-row:hover .tema-article-title { color: var(--midnight); }
.tema-article-desc {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.5;
}
.tema-article-arrow {
  font-size: 18px;
  color: var(--rule);
  padding: 0 8px;
  transition: color 0.2s;
}
.tema-article-row:hover .tema-article-arrow { color: var(--midnight); }

/* ============================================================
   SØKESIDE
   ============================================================ */
.search-hero {
  padding: 64px 48px 48px;
  border-bottom: 1px solid var(--rule);
}
.search-hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.search-bar {
  display: flex;
  max-width: 560px;
  border: 1.5px solid var(--midnight);
}
.search-bar input {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: none;
  outline: none;
}
.search-bar input::placeholder { color: var(--ink-muted); }
.search-bar button {
  padding: 14px 22px;
  background: var(--midnight);
  color: #fff;
  border: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.search-bar button:hover { background: var(--cyan); }

.search-results-meta {
  padding: 20px 48px 16px;
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule-light);
}
.search-results-meta strong { color: var(--ink); }

.search-results { padding: 0 48px 48px; }
.search-result-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-light);
  cursor: pointer;
  transition: padding-left 0.2s;
  position: relative;
}
.search-result-item:hover { padding-left: 12px; }
.result-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 6px;
}
.result-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.search-result-item:hover .result-title { color: var(--midnight); }
.result-excerpt {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-bottom: 8px;
  max-width: 640px;
}
.result-excerpt mark {
  background: #C7EAE4;
  color: var(--ink);
  padding: 0 2px;
}
.result-meta { font-size: 11px; color: var(--ink-muted); }

/* ============================================================
   FULLWIDTH-SIDE (page-fullwidth.hbs)
   ============================================================ */
.fullwidth-header {
  padding: 52px 48px 40px;
  border-bottom: 1px solid var(--rule);
  max-width: 820px;
}
.fullwidth-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.fullwidth-lead {
  font-size: 17px;
  color: var(--ink-mid);
  line-height: 1.65;
  max-width: 580px;
}
.fullwidth-prose {
  padding: 40px 48px 60px;
  max-width: 820px;
}
.fullwidth-prose h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.fullwidth-prose h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 10px;
}
.fullwidth-prose p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 20px;
}
.fullwidth-prose a {
  color: var(--midnight);
  text-decoration: underline;
  text-decoration-color: rgba(0,95,115,0.3);
  text-underline-offset: 3px;
}
.fullwidth-prose a:hover { text-decoration-color: var(--midnight); }
.fullwidth-prose ul,
.fullwidth-prose ol { padding-left: 0; list-style: none; margin-bottom: 20px; max-width: 640px; }
.fullwidth-prose ul li,
.fullwidth-prose ol li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  padding: 6px 0 6px 16px;
  border-left: 2px solid var(--midnight);
  margin-bottom: 4px;
}

/* ============================================================
   FULL-BREDDE SIDE (page.hbs)
   ============================================================ */
.page-header {
  padding: 52px 48px 40px;
  border-bottom: 1px solid var(--rule);
  max-width: 820px;
}
.page-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 12px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.page-lead {
  font-size: 17px;
  color: var(--ink-mid);
  line-height: 1.65;
  max-width: 580px;
}
.page-body {
  padding: 40px 48px 60px;
  max-width: 820px;
}
.page-body h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.page-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 10px;
}
.page-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  max-width: var(--max-prose);
  margin-bottom: 20px;
}
.page-body a {
  color: var(--midnight);
  text-decoration: underline;
  text-decoration-color: rgba(0,95,115,0.3);
  text-underline-offset: 3px;
}
.page-body a:hover { text-decoration-color: var(--midnight); }
.page-body ul,
.page-body ol { margin-bottom: 20px; padding-left: 0; list-style: none; }
.page-body ul li,
.page-body ol li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  padding: 4px 0 4px 20px;
  position: relative;
  max-width: var(--max-prose);
  border-left: 2px solid var(--midnight);
  margin-bottom: 4px;
  padding-left: 16px;
}


/* ============================================================
   KORTINNLEGG (post-kort.hbs)
   ============================================================ */
.kort-post {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 52px 48px 64px;
  max-width: 1100px;
  border-bottom: 1px solid var(--rule);
}
.kort-post-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 10px 0 14px;
}
.kort-post-body {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  max-width: var(--max-prose);
}
.kort-post-body p { margin-bottom: 18px; }
.kort-post-body p:last-child { margin-bottom: 0; }
.kort-post-body strong { font-weight: 600; color: var(--ink); }
.kort-post-body em { font-style: italic; }
.kort-post .article-tags { padding: 24px 0 0; border: none; }

/* Margin-box knapp (annonser) */
.margin-box--ad { background: var(--bg-surface); border-color: var(--rule); }
.margin-box-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--midnight);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.margin-box-btn:hover { background: var(--cyan); }

/* ============================================================
   404-SIDE
   ============================================================ */
.error-page {
  padding: 80px 48px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.error-num {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  color: var(--midnight);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0;
}
.error-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.error-desc {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 32px;
}
.btn-back {
  display: inline-block;
  padding: 12px 28px;
  background: var(--midnight);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-back:hover { background: var(--cyan); }

/* ============================================================
   ANIMASJONER
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.is-visible {
  animation: fadeUp 0.5s ease forwards;
}

/* ============================================================
   MOBILRESPONSIVITET
   ============================================================ */
@media (max-width: 900px) {
  .site-nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--rule);
    gap: 14px;
  }

  .hero { padding: 48px 24px 40px; }
  .hero-bg-letter { font-size: 200px; }

  .tema-strip { padding: 28px 24px; }
  .tema-grid { grid-template-columns: 1fr; }

  .articles-section { padding: 0 24px; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-row2 { grid-template-columns: 1fr; }
  .article-featured { border-right: none; }

  .signup-section { margin: 24px 24px; padding: 28px 24px; }
  .signup-form { flex-direction: column; max-width: 100%; }
  .signup-input { border-right: 1.5px solid var(--midnight); border-bottom: none; }

  .ordvekten-banner { margin: 0; padding: 24px; flex-direction: column; align-items: flex-start; }

  .site-footer { padding: 24px; flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .article-layout { grid-template-columns: 1fr; }
  .article-main { padding: 28px 24px; border-right: none; }
  .article-margin { display: none; }
  .article-header { padding: 36px 24px 28px; }
  .article-nav { padding: 12px 24px; }

  .archive-header { grid-template-columns: 1fr; padding: 36px 24px 28px; }
  .archive-stats { text-align: left; }
  .archive-sort { padding: 12px 24px; }
  .archive-list { padding: 0 24px 36px; }
  .archive-pagination { padding: 20px 24px; }

  .tema-page-header { grid-template-columns: 1fr; padding: 36px 24px 28px; }
  .tema-page-cta-box { display: none; }
  .tema-page-articles { padding: 0 24px 36px; }

  .search-hero { padding: 36px 24px 28px; }
  .search-results-meta { padding: 16px 24px; }
  .search-results { padding: 0 24px 36px; }

  .kort-post { grid-template-columns: 1fr; padding: 36px 24px 48px; }
  .fullwidth-header { padding: 36px 24px 28px; }
  .fullwidth-prose { padding: 28px 24px 48px; }
  .page-header { padding: 36px 24px 28px; }
  .page-body { padding: 28px 24px 48px; }

  .error-page { padding: 48px 24px; }
}

@media (max-width: 600px) {
  .archive-item { grid-template-columns: 1fr; }
  .archive-item-img { display: none; }
  .archive-item-body { padding: 16px 0; }
  .archive-item:hover { margin: 0; padding: 0; }

  .tema-article-row { grid-template-columns: 40px 1fr auto; }
  .tema-article-row:hover { margin: 0; padding: 0; }
}

/* ============================================================
   UTILITY CLASSES (generated from inline style cleanup)
   ============================================================ */

/* Wrapper for ordvekten banner — replaces inline padding */
.ordvekten-wrap { padding: 40px 48px 0; }

/* Wrapper for signup section — replaces inline padding */
.signup-wrap { padding: 0; }

/* Section label flush variant — removes default margin */
.section-label--flush { margin: 0; }

/* Search page empty/initial state message */
.search-empty-msg {
  padding: 24px 0;
  color: var(--ink-muted);
  font-size: 14px;
}

/* Tema articles header divider */
.tema-articles-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

/* Article nav CTA — smaller variant for article pages */
.nav-cta--small {
  font-size: 12px;
  padding: 7px 16px;
}

/* article-nav is sticky */
.article-nav { position: sticky; top: 0; }

/* archive-item links — text-decoration handled via CSS */
.archive-item,
.tags-list-item,
.tema-article-row,
.article-featured,
.article-compact,
.article-medium,
.tema-card { text-decoration: none; }

/* compact article image fill */
.article-compact-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   AUTHOR BIO (under post)
   ============================================================ */
.author-bio {
  margin: 48px 0 0;
}

.author-bio-rule {
  width: 48px;
  height: 2px;
  background: var(--cyan);
  margin-bottom: 32px;
}

.author-bio-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.author-bio-avatar-link { flex-shrink: 0; }

.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rule);
  display: block;
}

.author-bio-body { flex: 1; }

.author-bio-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.author-bio-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s;
}
.author-bio-name:hover { color: var(--midnight); }

.author-bio-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin: 0 0 14px;
}

.author-bio-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}
.author-bio-link:hover { color: var(--midnight); }

@media (max-width: 768px) {
  .author-bio { padding: 0 24px; margin-top: 36px; }
  .author-bio-inner { gap: 20px; }
  .author-bio-avatar { width: 56px; height: 56px; }
  .author-bio-name { font-size: 19px; }
}

@media (max-width: 480px) {
  .author-bio-inner { flex-direction: column; gap: 16px; }
}

/* ─── TEMA-KORT BILDER ─── */
.tema-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
  margin-bottom: 16px;
}
.tema-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── SIDESTOLPE: RÅ HTML-FELT ─── */
.margin-box--html { padding: 0; background: none; border: none; }
.margin-box--html > * { margin: 0; }

/* ─── WP-BLOKKER (importert innhold) ─── */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}
.wp-block-button { display: inline-flex; }
.wp-block-button__link,
.wp-element-button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--midnight);
  color: #fff !important;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 3px;
  transition: background 0.2s, opacity 0.2s;
  cursor: pointer;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
  background: var(--cyan);
  opacity: 1;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--midnight) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--midnight);
  color: #fff !important;
}
/* Preserve inline background-color from WP imports but ensure padding/shape */
.wp-block-button__link[style] {
  padding: 12px 24px !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
}
.wp-block-uagb-container { margin: 20px 0; }
/* Strip empty paragraphs injected by WP block editor */
.wp-block-uagb-container > p:empty,
.wp-block-buttons > p:empty,
.wp-block-button + p:empty { display: none; }
