/* ============================================================
   Stillingerledig.no — Public portal design system
   Modern Nordic minimalism · navy accent · warm off-white
   ============================================================ */

:root {
  /* Brand / accent */
  --accent: #0F4C81;
  --accent-hover: #0B3B66;
  --accent-soft: #EEF3F9;
  --accent-line: #C9D8EA;

  /* Neutrals — warm-cool off-white system */
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-sunk: #F4F2EC;
  --border: #E8E6DF;
  --border-strong: #D6D3CA;
  --text: #0E1116;
  --text-soft: #2A2F36;
  --text-muted: #5A6068;
  --text-faint: #8A8F97;

  /* Semantic */
  --ad-bg: #FBF6E8;
  --ad-border: #E6DDB8;
  --ad-text: #6E5A1B;

  --success: #1E7A4B;
  --warn: #B0772A;
  --danger: #B23A2F;

  /* Type */
  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', 'Source Serif 4', Georgia, serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Layout */
  --max-w: 1240px;
  --max-w-narrow: 920px;

  /* Job card padding (density-tweakable) */
  --card-pad-y: 20px;
  --card-pad-x: 22px;
  --card-gap: 12px;

  /* Focus */
  --focus: 0 0 0 3px rgba(15, 76, 129, 0.25);
}

/* Density: compact */
body[data-density="compact"] {
  --card-pad-y: 14px;
  --card-pad-x: 18px;
  --card-gap: 8px;
}
body[data-density="spacious"] {
  --card-pad-y: 28px;
  --card-pad-x: 28px;
  --card-gap: 14px;
}

/* Accent variants */
body[data-accent="navy"] {
  --accent: #0F4C81;
  --accent-hover: #0B3B66;
  --accent-soft: #EEF3F9;
  --accent-line: #C9D8EA;
}
body[data-accent="indigo"] {
  --accent: #1E4DB7;
  --accent-hover: #16399A;
  --accent-soft: #EEF1FB;
  --accent-line: #C9D2ED;
}
body[data-accent="teal"] {
  --accent: #0E6E6E;
  --accent-hover: #095757;
  --accent-soft: #E8F2F1;
  --accent-line: #B7D6D3;
}
body[data-accent="ink"] {
  --accent: #1F1F1F;
  --accent-hover: #0E0E0E;
  --accent-soft: #EFEFEC;
  --accent-line: #CFCFC8;
}

/* Dark mode */
body[data-theme="dark"] {
  --bg: #0E1014;
  --surface: #15181D;
  --surface-sunk: #1B1F25;
  --border: #262A30;
  --border-strong: #353A41;
  --text: #ECEEF1;
  --text-soft: #C7CAD0;
  --text-muted: #8A8F97;
  --text-faint: #5E636B;
  --accent-soft: #1A2A3D;
  --accent-line: #2B4566;
  --ad-bg: #2A2516;
  --ad-border: #4A4222;
  --ad-text: #D4B970;
}

/* Hide ads when toggled */
body[data-ads="off"] .ad-slot { display: none !important; }

/* ============================================================ */
/* Reset / base                                                  */
/* ============================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Skip-lenke — synlig kun ved tastaturfokus */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  font-weight: 500;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
  color: #fff;
  box-shadow: none;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* Tomme tilstander */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 56px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.empty-state .ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.empty-state h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
}
.empty-state p {
  margin: 0;
  max-width: 440px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.empty-state .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.empty-state.inline {
  padding: 36px 24px;
  text-align: left;
  align-items: flex-start;
}
.empty-state.inline p { max-width: 520px; }
.empty-state.inline .actions { justify-content: flex-start; }

/* ============================================================ */
/* Layout primitives                                             */
/* ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-10) 0; }

/* ============================================================ */
/* Typography                                                    */
/* ============================================================ */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.section-title {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.section-sub {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 15px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head .link-more {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-head .link-more:hover { color: var(--accent-hover); }

/* ============================================================ */
/* Header                                                        */
/* ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark {
  width: 28px; height: 28px;
  color: var(--accent);
  flex: 0 0 28px;
}
.brand-name { font-size: 16px; }
.brand-tld { color: var(--text-muted); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav a {
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { color: var(--text); background: var(--surface-sunk); }
.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  min-width: 240px;
  color: var(--text-muted);
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.header-search:hover { border-color: var(--border-strong); }
.header-search svg { color: var(--text-muted); flex: 0 0 16px; }
.header-search kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* ============================================================ */
/* Buttons                                                       */
/* ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 14.5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(0.5px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-sunk); border-color: var(--border-strong); }

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.btn-soft:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 6%); }

.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ============================================================ */
/* Hero                                                          */
/* ============================================================ */

.hero {
  padding: 80px 0 56px;
  position: relative;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 880px;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.hero .lede {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.5;
}
.hero-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta .dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent);
}

/* Search composer */
.search-composer {
  margin-top: 36px;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 1px 0 rgba(14,17,22,0.02), 0 12px 32px -16px rgba(14,17,22,0.08);
  max-width: 820px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  flex: 1;
  min-width: 0;
}
.search-field + .search-field { border-left: 1px solid var(--border); }
.search-field svg { color: var(--text-muted); flex: 0 0 18px; }
.search-field-inner {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.search-field label {
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.search-field input {
  border: 0;
  background: transparent;
  outline: none;
  padding: 2px 0;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  width: 100%;
}
.search-field input::placeholder { color: var(--text-muted); }
.search-composer .btn-primary { margin: 0; padding: 0 28px; border-radius: 10px; }

.hero-chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hero-chips .label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-right: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: var(--text-soft);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}

/* ============================================================ */
/* Stat strip                                                    */
/* ============================================================ */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 56px;
}
.stat-cell {
  background: var(--surface);
  padding: 22px 24px;
}
.stat-num {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================ */
/* Job card                                                      */
/* ============================================================ */

.job-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.job-grid.cols-1 { grid-template-columns: 1fr; }

.job-card {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  padding: var(--card-pad-y) var(--card-pad-x);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
  position: relative;
}
.job-card:hover {
  border-color: var(--border-strong);
}
.job-card .job-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.employer-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-soft);
  letter-spacing: -0.01em;
  flex: 0 0 44px;
}

.job-title {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}
.job-title a:hover { color: var(--accent); }
.job-employer {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 2px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}
.job-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.job-meta .meta-item svg { flex: 0 0 14px; color: var(--text-faint); }
.job-meta .sep {
  width: 3px; height: 3px;
  background: var(--text-faint);
  border-radius: 50%;
  opacity: 0.6;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--surface-sunk);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.005em;
}
.tag-category {
  background: var(--accent-soft);
  color: var(--accent);
}
.tag-deadline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
}
.tag-deadline.urgent { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, var(--border)); }

.job-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.job-foot-meta {
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.job-link {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.job-link svg { transition: transform 0.15s; }
.job-card:hover .job-link svg { transform: translateX(2px); }

/* ============================================================ */
/* Category cards / chips                                        */
/* ============================================================ */

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.category-card {
  padding: 18px 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
  justify-content: space-between;
}
.category-card:hover {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--surface) 90%, var(--accent-soft));
}
.category-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.category-count {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================ */
/* Location cards                                                */
/* ============================================================ */

.location-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.15s, background 0.15s;
}
.location-card:hover {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--surface) 90%, var(--accent-soft));
}
.location-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.location-count {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================ */
/* Ad slots                                                      */
/* ============================================================ */

.cta-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.ad-slot {
  position: relative;
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--r-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ad-label {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ad-text);
  background: color-mix(in srgb, var(--ad-bg) 50%, white);
  padding: 2px 6px;
  border-radius: 4px;
}
body[data-theme="dark"] .ad-label {
  background: color-mix(in srgb, var(--ad-bg) 50%, black);
}

.ad-banner {
  min-height: 96px;
  align-items: center;
}
.ad-banner .ad-sponsor {
  font-weight: 600;
  font-size: 18px;
  color: var(--ad-text);
}
.ad-banner .ad-copy {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}
.ad-thumb {
  width: 60px; height: 60px;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ad-bg) 60%, var(--ad-text) 20%) 0 10px, transparent 10px 20px);
  border: 1px solid var(--ad-border);
  flex: 0 0 60px;
}
.ad-banner .btn { margin-left: auto; }

.ad-native {
  padding: var(--card-pad-y) var(--card-pad-x);
  background: var(--ad-bg);
  border: 1px solid var(--ad-border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.ad-sidebar {
  padding: 22px;
  background: var(--ad-bg);
  border: 1px solid var(--ad-border);
  border-radius: var(--r-md);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

/* ============================================================ */
/* Footer                                                        */
/* ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 72px 0 32px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-soft);
}
.footer-col a:hover { color: var(--accent); }
.footer-blurb {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 14px;
  max-width: 280px;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

/* ============================================================ */
/* SEO content section                                           */
/* ============================================================ */

.seo-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.seo-block h2 {
  font-size: 24px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.seo-block p {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ============================================================ */
/* Listing page                                                  */
/* ============================================================ */

.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 32px 0 80px;
  align-items: start;
}

.filter-bar {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 24px;
  align-items: stretch;
}
.filter-bar .search-field { padding: 6px 14px; }
.filter-bar .search-field + .search-field { border-left: 1px solid var(--border); }

.filter-card {
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: sticky;
  top: 88px;
}
.filter-card h3 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--text-muted);
  margin: 18px 0 10px;
}
.filter-card h3:first-child { margin-top: 0; }
.filter-card .filter-foot {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.filter-card .filter-foot .btn { flex: 1; }

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  padding: 4px 0;
  cursor: pointer;
}
.filter-row .checkbox {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}
.filter-row.checked .checkbox {
  background: var(--accent);
  border-color: var(--accent);
}
.filter-row.checked .checkbox::after {
  content: "";
  width: 7px; height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(0px, -1px);
}
.filter-row .filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.filter-row:hover .filter-name { color: var(--text); }

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.results-count {
  font-size: 14px;
  color: var(--text-muted);
}
.results-count strong { color: var(--text); font-weight: 600; }
.sort-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.sort-select:hover { border-color: var(--border-strong); }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
}
.active-filter button {
  width: 22px; height: 22px;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.active-filter button:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 36px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
}
.pagination a:hover { background: var(--surface-sunk); }
.pagination .current {
  background: var(--accent);
  color: white;
}
.pagination .dots { color: var(--text-faint); }

/* ============================================================ */
/* Job detail page                                               */
/* ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-faint); }

.detail-header {
  padding: 16px 0 36px;
  border-bottom: 1px solid var(--border);
}
.detail-header .employer-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.detail-header .employer-bar .employer-logo {
  width: 56px; height: 56px;
  font-size: 20px;
  flex: 0 0 56px;
}
.detail-employer-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.detail-employer-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.detail-title {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 820px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.detail-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.detail-meta svg { color: var(--text-faint); flex: 0 0 16px; }

.detail-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.detail-cta-row .helper {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 40px 0 80px;
  align-items: start;
}

.detail-article {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}
.detail-article h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.detail-article h2:first-child { margin-top: 0; }
.detail-article h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 28px 0 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.detail-article h2 + h3 { margin-top: 16px; }
.sl-employer-section { margin-bottom: 56px; }
.sl-employer-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.sl-employer-cards .cat-card-rich { min-height: 100%; }
.detail-article p { margin: 0 0 14px; }
.detail-article ul, .detail-article ol {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-article ul li, .detail-article ol li {
  display: flex;
  gap: 12px;
  padding-left: 14px;
  position: relative;
}
.detail-article ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 1.5px;
  background: var(--accent);
}
.detail-article ol { counter-reset: sl-job-step; }
.detail-article ol li { padding-left: 26px; counter-increment: sl-job-step; }
.detail-article ol li::before {
  content: counter(sl-job-step) ".";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.detail-article .pull {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}
.summary-card h3 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row .key { color: var(--text-muted); }
.summary-row .val { color: var(--text); font-weight: 500; text-align: right; }
.summary-row .val.accent { color: var(--accent); }

.share-row {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.share-row a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.share-row a:hover { color: var(--text); background: var(--surface-sunk); }

.related-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

/* expired notice */
/* Utløpt stilling */
.detail-header.is-expired .detail-title { color: var(--text-muted); }
.detail-header.is-expired .employer-logo { opacity: 0.72; }

.expired-notice {
  padding: 18px 22px;
  background: color-mix(in srgb, var(--warn) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--border));
  border-radius: var(--r-md);
  margin: 20px 0 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.expired-notice .ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--warn) 18%, var(--surface));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--warn);
  flex: 0 0 36px;
}
.expired-notice h3 { font-size: 15px; margin-bottom: 2px; }
.expired-notice p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* ============================================================ */
/* Tweaks panel                                                  */
/* ============================================================ */

.tweaks-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.tweaks-toggle:hover { transform: scale(1.05); }

.tweaks-panel {
  position: fixed;
  bottom: 76px;
  right: 20px;
  z-index: 99;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 24px 48px -12px rgba(14,17,22,0.25);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.tweaks-panel h4:not(:first-of-type) { margin-top: 18px; }
.tweaks-panel .tweak-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tweaks-panel .tweak-btn {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}
.tweaks-panel .tweak-btn:hover { background: var(--surface-sunk); }
.tweaks-panel .tweak-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.tweaks-panel .swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.tweaks-panel .tweak-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  text-align: center;
}

/* ============================================================ */
/* Hub pages (Kategorier, Steder, Arbeidsgivere)                 */
/* ============================================================ */

.hub-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.hub-hero h1 {
  font-size: clamp(36px, 4.4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 600;
  max-width: 820px;
}
.hub-hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.hub-hero .lede { margin-top: 14px; font-size: 17px; color: var(--text-muted); max-width: 600px; line-height: 1.5; }

.region-block { margin-bottom: 48px; }
.region-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.region-head h2 { font-size: 20px; letter-spacing: -0.015em; }
.region-head .count { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

.cat-card-rich {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.cat-card-rich:hover {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--surface) 90%, var(--accent-soft));
}
.cat-card-rich .ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.cat-card-rich h3 { font-size: 16px; letter-spacing: -0.01em; }
.cat-card-rich p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.cat-card-rich .count-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.cat-card-rich .count-row .accent { color: var(--accent); }

.employer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.employer-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.15s, background 0.15s;
}
.employer-card:hover { border-color: var(--accent-line); }
.employer-card .employer-logo { width: 48px; height: 48px; flex: 0 0 48px; font-size: 17px; }
.employer-card .e-name { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; color: var(--text); }
.employer-card .e-meta { font-size: 12.5px; color: var(--text-muted); font-family: var(--font-mono); margin-top: 2px; }
.employer-card .e-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.az-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 32px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.az-rail a {
  flex: 1;
  min-width: 26px;
  text-align: center;
  padding: 6px 4px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-soft);
  border-radius: 6px;
}
.az-rail a:hover { background: var(--surface-sunk); }
.az-rail a.active { background: var(--accent); color: white; }
.az-rail a.muted { color: var(--text-faint); pointer-events: none; }

/* Dense list view */
.list-rows { display: flex; flex-direction: column; }
.list-row {
  display: grid;
  grid-template-columns: 44px 1fr 220px 160px 120px 100px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  transition: background 0.12s;
}
.list-row:first-child { border-top: 1px solid var(--border); }
.list-row:hover { background: var(--surface); }
.list-row .lr-title { font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: -0.005em; line-height: 1.3; }
.list-row .lr-title a:hover { color: var(--accent); }
.list-row .lr-emp { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.list-row .lr-cell { font-size: 13px; color: var(--text-muted); }
.list-row .lr-cell.mono { font-family: var(--font-mono); font-size: 12px; }
.list-row .lr-deadline { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.list-row .lr-deadline.urgent { color: var(--warn); }
.list-row .lr-action {
  text-align: right;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.list-head {
  display: grid;
  grid-template-columns: 44px 1fr 220px 160px 120px 100px;
  gap: 16px;
  padding: 12px 16px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.list-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  background: var(--surface);
}
.view-toggle a {
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.view-toggle a.active { background: var(--accent); color: white; }

/* ============================================================ */
/* Blogg                                                         */
/* ============================================================ */

.post-thumb {
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.post-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, var(--surface-sunk) 0 11px, var(--surface) 11px 22px);
}
.post-thumb span {
  position: relative;
  margin: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 5px;
}

.post-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
}
.post-feature .post-thumb { aspect-ratio: 4 / 3; }
.post-feature h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.post-feature p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.15s;
}
.post-card:hover { border-color: var(--border-strong); }
.post-card .post-thumb { aspect-ratio: 16 / 10; }
.post-card h3 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.post-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.post-meta .cat { color: var(--accent); }
.post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); opacity: .6; }

.post-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.post-row .post-thumb { aspect-ratio: 4 / 3; }
.post-row h3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; margin-top: 8px; }
.post-row p { margin: 6px 0 0; font-size: 13.5px; color: var(--text-muted); }

/* Artikkelside */
.article-head {
  max-width: 720px;
  padding: 12px 0 32px;
}
.article-head h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: 14px;
}
.article-head .standfirst {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.45;
  color: var(--text-soft);
}
.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.byline .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  flex: 0 0 40px;
}
.byline .who { font-size: 14px; font-weight: 500; }
.byline .when { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding: 0 0 72px;
  align-items: start;
}
.article-body {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-soft);
}
.article-body > p:first-of-type { font-size: 18px; }
.article-body h2 {
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
}
.article-body h3 { font-size: 18px; margin: 28px 0 10px; }
.article-body p { margin: 0 0 18px; text-wrap: pretty; }
.article-body ul, .article-body ol {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: li;
}
.article-body li { position: relative; padding-left: 26px; }
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 7px; height: 1.5px;
  background: var(--accent);
}
.article-body ol li { counter-increment: li; }
.article-body ol li::before {
  content: counter(li);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
}
.article-body .callout {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}
.article-body .callout b { display: block; color: var(--text); margin-bottom: 4px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.toc {
  position: sticky;
  top: 88px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.toc a { font-size: 13.5px; color: var(--text-soft); line-height: 1.4; display: block; }
.toc a:hover { color: var(--accent); }
.toc a.active { color: var(--accent); font-weight: 500; }

.author-box {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-top: 40px;
}
.author-box .avatar { width: 56px; height: 56px; flex: 0 0 56px; font-size: 18px; }
.author-box h3 { font-size: 16px; }
.author-box p { margin: 6px 0 0; font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.author-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.author-hero .avatar { width: 84px; height: 84px; flex: 0 0 84px; font-size: 26px; }
.author-hero h1 { font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -0.025em; }
.author-hero p { margin: 10px 0 0; color: var(--text-muted); font-size: 15.5px; max-width: 560px; line-height: 1.55; }

.blog-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 0 28px;
}

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .post-feature { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 88px 1fr; }
  .post-row > *:last-child { grid-column: 1 / -1; }
  .author-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============================================================ */
/* Mobilmeny                                                     */
/* ============================================================ */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.mobile-nav.open { display: block; }
.mobile-nav .scrim {
  position: absolute;
  inset: 0;
  background: rgba(14, 17, 22, 0.4);
  backdrop-filter: blur(2px);
}
.mobile-nav .sheet {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  box-shadow: -24px 0 48px -24px rgba(14, 17, 22, 0.25);
}
.mobile-nav .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .sheet-head span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mobile-nav .close {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.mobile-nav .close:hover { background: var(--surface-sunk); }
.mobile-nav a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  min-height: 48px;
}
.mobile-nav a.m-link:hover { background: var(--surface-sunk); }
.mobile-nav a.m-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.mobile-nav a.m-link svg { color: var(--text-faint); }
.mobile-nav .sheet-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================ */
/* Responsive                                                    */
/* ============================================================ */

@media (max-width: 1024px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filter-card { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .category-grid, .location-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
  .expired-notice { flex-direction: column; align-items: stretch; }
  .expired-notice .btn { margin-left: 0 !important; width: 100%; }
  .container { padding: 0 18px; }
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 38px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .job-grid { grid-template-columns: 1fr; }
  .category-grid, .location-grid { grid-template-columns: repeat(2, 1fr); }
  .search-composer { flex-direction: column; padding: 6px; }
  .search-field + .search-field { border-left: 0; border-top: 1px solid var(--border); }
  .search-composer .btn-primary { width: 100%; padding: 14px; }
  .filter-bar { flex-direction: column; }
  .filter-bar .search-field + .search-field { border-left: 0; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 48px 0; }
  .employer-grid { grid-template-columns: 1fr; }
  .list-row, .list-head { grid-template-columns: 36px 1fr 80px; }
  .list-row .lr-cell:nth-child(4), .list-row .lr-cell:nth-child(5),
  .list-head > span:nth-child(4), .list-head > span:nth-child(5) { display: none; }
}

@media (max-width: 1024px) {
  .employer-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================ */
/* Annonseplasser — styres av admin (global, per plass, per stilling/arbeidsgiver) */
/* ============================================================ */
.ad-slot[hidden] { display: none !important; }
.ad-leader { min-height: 90px; padding: 14px 18px; margin: 4px 0 18px; justify-content: center; }
.ad-leader-in { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; justify-content: center; text-align: center; padding-right: 64px; }
.ad-leader-sponsor { font-weight: 600; color: var(--ad-text); font-size: 15px; }
.ad-leader-copy { font-size: 14px; color: var(--text-soft); }
.ad-leader-cta { font-size: 13.5px; font-weight: 500; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.ad-under { margin-top: 32px; flex-wrap: wrap; }
.ad-slot.ad-code { display: block; padding: 26px 0 0; background: var(--surface-sunk); border-style: solid; border-color: var(--border); overflow: hidden; }
.ad-slot.ad-code iframe { display: block; width: 100%; border: 0; background: transparent; }

/* Kontaktkort */
.contact-person { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.contact-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: 0 0 40px; }
.contact-name { font-weight: 600; font-size: 14.5px; }
.contact-role { font-size: 13px; color: var(--text-muted); }
.contact-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 14px; color: var(--text); margin-top: 8px; overflow-wrap: anywhere; }
.contact-link svg { color: var(--accent); flex: 0 0 16px; }
.contact-link:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.detail-article a[href^="tel:"], .detail-article a[href^="mailto:"] { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.btn-save[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.btn-save[aria-pressed="true"] svg { fill: currentColor; }
.share-row button { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; }
.share-row button:hover { color: var(--text); background: var(--surface-sunk); }

/* Sortering og filter */
.sort-select { display: inline-flex; align-items: center; gap: 8px; padding: 0 4px 0 12px; height: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.sort-select select { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); padding: 8px 6px; cursor: pointer; }
.sort-select select:focus-visible { outline: none; }
.sort-select:focus-within { box-shadow: var(--focus); }
.filter-more { background: none; border: 0; padding: 6px 0; color: var(--accent); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.filter-row[aria-checked] { min-height: 32px; border-radius: 6px; }
.filter-row:focus-visible { box-shadow: var(--focus); }
.active-filters[hidden] { display: none; }
.active-filters .clear-all { background: none; border: 0; font-size: 13px; color: var(--text-muted); padding: 4px 8px; text-decoration: underline; text-underline-offset: 3px; }
.active-filter button { min-width: 28px; min-height: 28px; }
.filter-drawer-head, .filter-fab, .filter-scrim { display: none; }

@media (max-width: 1024px) {
  .filter-card.as-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(400px, 92vw); margin: 0; border-radius: 0; border: 0; border-left: 1px solid var(--border); overflow-y: auto; padding: 0 20px 96px; transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
  .filter-card.as-drawer.open { transform: none; visibility: visible; transition: transform .22s ease; }
  .filter-card.as-drawer .filter-drawer-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); padding: 16px 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); z-index: 1; }
  .filter-drawer-head strong { font-size: 16px; }
  .filter-close { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: var(--text); }
  .filter-card.as-drawer .filter-foot { position: fixed; bottom: 0; right: 0; width: min(400px, 92vw); background: var(--surface); padding: 14px 20px; margin: 0; border-top: 1px solid var(--border); }
  .filter-card.as-drawer .filter-row { min-height: 44px; }
  .filter-scrim { display: block; position: fixed; inset: 0; z-index: 89; background: rgba(14,17,22,.4); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .filter-scrim.on { opacity: 1; pointer-events: auto; }
  .filter-fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; box-shadow: 0 10px 28px rgba(14,17,22,.28); }
  .filter-fab .n { min-width: 22px; height: 22px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
  .filter-fab .n[hidden] { display: none; }
  .results-head { align-items: stretch; }
  .results-head > div:last-child { width: 100%; justify-content: space-between; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .ad-leader-in { padding-right: 0; padding-top: 14px; }
  .ad-under { flex-direction: column; align-items: flex-start; }
  .ad-under .btn { margin-left: 0; }
  .detail-cta-row .btn-lg { width: 100%; justify-content: center; }
  .detail-cta-row .helper { width: 100%; justify-content: center; }
  .job-row { flex-wrap: wrap; }
  .job-row .tag-deadline { order: 3; }
}

/* Samtykke */
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; display: flex; justify-content: center; pointer-events: none; }
.consent-in { pointer-events: auto; width: 100%; max-width: 920px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 18px 20px; box-shadow: 0 18px 48px -12px rgba(14,17,22,.28); display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; }
.consent-text { flex: 1 1 360px; }
.consent-text strong { font-size: 15px; }
.consent-text p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.consent-opts { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; }
.consent-opts[hidden] { display: none; }
.consent-opts label { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; }
.consent-opts input { width: 18px; height: 18px; accent-color: var(--accent); }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 640px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1 1 auto; } }

/* Toast */
.sl-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 12px); z-index: 130; background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; max-width: calc(100vw - 32px); }
.sl-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================ */
/* SeoWeb sub-footer — standard på alle SeoWeb-leveranser        */
/* ============================================================ */
.sw-subfooter { --sw-bg: #0E1116; --sw-fg: #A9AFB7; --sw-strong: #FFFFFF; --sw-dot: #5FC28A; background: var(--sw-bg); color: var(--sw-fg); border-top: 1px solid rgba(255,255,255,.06); }
body[data-theme="dark"] .sw-subfooter { --sw-bg: #07090C; }
.sw-subfooter-in { max-width: var(--max-w); margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: 13px; }
.sw-credit { display: inline-flex; align-items: center; gap: 12px; color: var(--sw-fg); min-height: 44px; }
.sw-credit:hover { color: var(--sw-strong); }
.sw-mark { font-weight: 700; font-size: 20px; letter-spacing: -.03em; line-height: 1; color: var(--sw-strong); }
.sw-dot { color: var(--sw-dot); }
@media (max-width: 768px) { .sw-subfooter-in { padding: 14px 18px 18px; } }
/* WordPress accessibility and runtime states. */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{clip:auto!important;width:auto;height:auto;margin:0}.sl-runtime-notice{padding:14px 16px;border:1px solid var(--border);border-radius:10px;margin:18px 0}.is-expired .job-title,.job-detail.is-expired h1{color:var(--text-muted)}

/* Stable v7 header: one flex layout, one CTA and the same six links on every route. */
html { scrollbar-gutter: stable; }
.site-header .container { display: flex; gap: 32px; }
.site-header .brand { flex: 0 0 auto; }
.site-header .nav { min-width: 0; }
.site-header .header-actions { flex: 0 0 auto; margin-left: 0; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 1100px) { .site-header .header-actions { margin-left:auto; } }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Native archive controls retain the approved filter-card and result-list layout. */
.filter-row input[type="radio"] { position:absolute; opacity:0; width:16px; height:16px; }
.filter-row:focus-within { outline:2px solid var(--accent); outline-offset:2px; border-radius:6px; }
.filter-row .filter-name { flex:1; }
.sl-archive-empty { width:100%; }
.sl-archive-empty .empty-state { min-height:240px; }
.sl-filter-field { width:100%; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); padding:9px 12px; font:inherit; }
.sl-filter-field:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.post-thumb.has-image::before { display:none; }
.post-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
@media (max-width:1024px) { .sl-filter-toggle { display:inline-flex; } .filter-card.as-drawer { display:block; } }
@media (min-width:1025px) { .sl-filter-toggle { display:none; } }

/* Approved v6 card click targets and one stable header across all templates. */
.post-thumb-link, .logo-link { display:block; color:inherit; text-decoration:none; }
.post-thumb-link .post-thumb { transition: opacity .15s, transform .25s; }
.post-thumb-link:hover .post-thumb { opacity:.88; }
.post-card:has(.post-thumb-link:hover) h3 a,
.post-feature:has(.post-thumb-link:hover) h2 a,
.post-row:has(.post-thumb-link:hover) h3 a,
.job-card:has(.logo-link:hover) .job-title a,
.list-row:has(.logo-link:hover) .lr-title a { color:var(--accent); }
.logo-link:hover .employer-logo { border-color:var(--accent-line); }
.mobile-nav[hidden] { display:none; }
body.nav-open { overflow:hidden; }
.sl-detail-bottom-cta { margin-top:36px; padding:24px; background:var(--surface-sunk); border-radius:var(--r-md); display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.sl-detail-bottom-cta > div { flex:1; min-width:200px; }
.sl-detail-bottom-cta strong { color:var(--text); font-size:15px; }
.sl-detail-bottom-cta p { font-size:13.5px; color:var(--text-muted); margin:2px 0 0; }
.apply-bar {
  display:none; align-items:center; gap:12px; min-height:64px;
  padding:7px 18px calc(8px + env(safe-area-inset-bottom, 0px));
  background:var(--surface); border-top:1px solid var(--border);
  box-shadow:0 -8px 24px -12px rgba(14,17,22,.18);
}
.apply-bar .ab-meta { display:flex; flex-direction:column; flex:0 0 auto; line-height:1.2; }
.apply-bar .ab-k { font-family:var(--font-mono); font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); }
.apply-bar time { font-size:15px; font-weight:600; color:var(--text); white-space:nowrap; }
.apply-bar .ab-btn { flex:1 1 auto; min-width:0; min-height:48px; justify-content:center; font-size:15.5px; border-radius:12px; }
@media (max-width: 768px) {
  .apply-bar { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:70; }
  .sl-job-with-sticky { padding-bottom:calc(80px + env(safe-area-inset-bottom, 0px)); }
  body:has(.sl-job-with-sticky) .sw-subfooter { padding-bottom:calc(72px + env(safe-area-inset-bottom, 0px)); }
  body:has(.consent-bar) .apply-bar, body.nav-open .apply-bar, body.kb-open .apply-bar { display:none; }
  body:has(.sl-job-with-sticky) .sl-toast { bottom:calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 359px) {
  .apply-bar { gap:10px; padding-left:14px; padding-right:14px; }
  .apply-bar .ab-btn { font-size:15px; padding-left:12px; padding-right:12px; }
}
@media print { .apply-bar { display:none !important; } }

/* Contact variants from approved design handover 20. */
.contact-card .contact-person + .contact-person { margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }
.contact-person { display:flex; align-items:center; gap:12px; margin:0; }
.contact-person .contact-avatar { flex:0 0 40px; }
.contact-person .cp-text { flex:1 1 auto; min-width:0; }
.contact-person .contact-name { font-size:14.5px; font-weight:600; overflow-wrap:anywhere; line-height:1.35; }
.contact-person .contact-role { font-size:13px; color:var(--text-muted); overflow-wrap:anywhere; line-height:1.4; }
.contact-person .cp-icons { flex:0 0 auto; display:flex; gap:6px; }
.contact-person .ci { position:relative; width:40px; height:40px; display:inline-grid; place-items:center; border:1px solid var(--border); border-radius:10px; color:var(--accent); background:var(--surface); }
.contact-person .ci::after { content:""; position:absolute; inset:-2px; }
.contact-person .ci:hover, .contact-person .ci:focus-visible { background:var(--accent-soft); border-color:var(--accent-line); }
.contact-extra { margin-top:16px; padding-top:16px; border-top:1px solid var(--border); }
.contact-extra summary { color:var(--accent); cursor:pointer; font-weight:600; min-height:44px; display:flex; align-items:center; }
.contact-extra > .contact-person + .contact-person { margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }

/* Reserve sidebar apply space before it becomes visible. */
.sidebar-apply { display:flex; flex-direction:column; gap:8px; visibility:hidden; opacity:0; transform:translateY(-4px); transition:opacity .18s, transform .18s, visibility 0s .18s; }
.sidebar-apply.on { visibility:visible; opacity:1; transform:none; transition:opacity .18s, transform .18s; }
.sidebar-apply .sa-meta { font-size:12.5px; color:var(--text-muted); text-align:center; }
@media (max-width:1024px) { .sidebar-apply { display:none; } }
@media (prefers-reduced-motion:reduce) { .sidebar-apply, .sidebar-apply.on { transition:none; transform:none; } }

/* The 64 px header retains one geometry across routes. Compact only below 400 px. */
.site-header .container { min-width:0; }
.footer-bar { flex-wrap:wrap; gap:6px 16px; }
@media (max-width:400px) {
  .site-header .container { gap:12px; padding-left:16px; padding-right:16px; }
  .site-header .brand { gap:8px; }
  .site-header .brand-name { font-size:15px; }
  .site-header .header-actions { gap:8px; }
  .site-header .header-actions .btn-primary { padding:8px 12px; font-size:14px; }
  .ad-native > div { flex-wrap:wrap; }
  .ad-native > div > div { min-width:0; flex:1 1 180px; }
  .ad-native .btn { margin-left:0 !important; }
  .pagination { flex-wrap:wrap; gap:2px; }
  .pagination a, .pagination span { min-width:32px; padding:0 6px; }
}
@media (max-width:359px) { .site-header .header-actions .btn-primary { display:none; } }

/* v8: header height includes its border, and narrow grids cannot widen the viewport. */
html { overflow-x: clip; }
.site-header { height: 64px; box-sizing: border-box; }
.site-header .container { height: 63px; }
.category-grid, .location-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.employer-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.job-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.listing-layout > *, .detail-layout > *, .article-layout > * { min-width: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cat-card-rich .count-row { display:flex; flex-direction:column; align-items:flex-start; gap:2px; margin-top:auto; font-family:inherit; font-size:13.5px; }
.cat-card-rich .count-row .cr-main { color:var(--accent); white-space:nowrap; }
.cat-card-rich .count-row .cr-main b { font-weight:600; font-variant-numeric:tabular-nums; }
.cat-card-rich .count-row .cr-sub { color:var(--text-muted); white-space:nowrap; font-size:12.5px; }
.cat-card-rich { min-width:0; }
.category-hub-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap:14px; }
.category-hub-grid .cat-card-rich { min-height:200px; }
.hub-hero h1 { margin-top:14px; }
.hub-employer-search { max-width:560px; margin-top:28px; }
.hub-featured { margin-bottom:56px; }
.hub-featured .section-title, .hub-directory .section-title { margin-top:8px; }
.hub-place-grid { display:grid; gap:10px; }
.hub-place-grid-top { grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr)); }
.hub-place-grid-regions { grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr)); }
.hub-place-grid .location-card { min-width:0; }
.hub-place-grid .location-name { min-width:0; overflow-wrap:anywhere; }
.hub-place-grid .location-count { flex:0 0 auto; }
.hub-seo { margin:32px 0 64px; }
.employer-card-text { flex:1 1 auto; min-width:0; }
.employer-card .e-name { display:block; overflow-wrap:anywhere; }
.employer-card .e-count { flex:0 0 auto; }
.hub-directory { margin-bottom:56px; }
.hub-result-count { font-family:var(--font-mono); font-size:13px; color:var(--text-muted); }
.hub-filter-status { margin:0 0 20px; color:var(--text-muted); font-size:14px; }
.hub-filter-status a { color:var(--accent); text-decoration:underline; }
.employer-directory-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr)); gap:0 32px; }
.employer-letter-group { break-inside:avoid; min-width:0; }
.employer-letter-group h3 { font-family:var(--font-mono); font-size:18px; color:var(--accent); margin:16px 0 8px; }
.employer-letter-group ul { list-style:none; margin:0; padding:0; }
.employer-letter-group li { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:8px 0; border-bottom:1px solid var(--border); font-size:14px; }
.employer-letter-group li a { min-width:0; overflow-wrap:anywhere; }
.employer-letter-group li span { flex:0 0 auto; color:var(--text-faint); font-family:var(--font-mono); font-size:12px; }
.hub-pagination { margin-top:32px; }
.az-rail a.muted { cursor:default; }
@media (max-width:480px) { .hub-place-grid-top, .hub-place-grid-regions { grid-template-columns:repeat(auto-fill,minmax(min(100%,145px),1fr)); } .region-head { flex-wrap:wrap; } }
@media (max-width: 1024px) {
  .listing-layout, .detail-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .ad-banner { flex-wrap: wrap; }
  .ad-banner .btn { margin-left: 0; white-space: normal; }
  .detail-meta, .job-meta, .job-tags { min-width: 0; }
}

.contact-section { margin-top: 56px; scroll-margin-top: 112px; }
.contact-section .cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.contact-section .cta-panel h2 { margin: 0; }
.contact-section .cta-panel p { margin: 8px 0 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions a { overflow-wrap: anywhere; }
.btn-save[hidden], .share-row button[hidden] { display: none; }
.share-row a { width: 44px; height: 44px; font-weight: 600; font-family: var(--font-mono); }

.preview-bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; background: #2A2416; color: #F3E6C4; font-size: 13.5px; line-height: 1.45; }
.preview-bar.is-fixed { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 60; }
.preview-bar .pb-dot { width: 8px; height: 8px; border-radius: 50%; background: #E0A33C; flex: 0 0 8px; }
.preview-bar .pb-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-bar .pb-text b { color: #fff; }
.preview-bar .pb-act { display: flex; gap: 16px; flex: 0 0 auto; }
.preview-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
body:has(.preview-bar.is-fixed) .site-header { top: calc(var(--wp-admin--admin-bar--height, 0px) + 44px); }
@media (max-width: 782px) { body.admin-bar:has(.preview-bar.is-fixed) .site-header { top: 90px; } }
@media (max-width: 600px) { body.admin-bar:has(.preview-bar.is-fixed) .site-header { top: 44px; } }
@media (max-width: 700px) { .preview-bar .pb-act { display: none; } .contact-actions, .contact-actions .btn { width: 100%; } }
