/* Scoped to /kursus. Do not link from other pages until Eliza says go. */

:root,
[data-theme="light"] {
  --font-display: "Satoshi", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --pine: #1f4635;
  --charcoal: #1a1916;
  --gul: #f2b925;
  --lime: #ecf6b9;
  --sage: #7f9384;
  --camel: #aa8d57;
  --terra: #d99a91;
  --paper: #faf9f7;
  --sand: #f5f4f0;
  --slate: #6b6a65;

  --bg: var(--sand);
  --surface: var(--paper);
  --surface-2: #ffffff;
  --border: rgba(26, 25, 22, 0.08);
  --border-strong: rgba(26, 25, 22, 0.14);
  --text: var(--charcoal);
  --text-muted: var(--slate);
  --text-faint: #b0afa9;
  --accent: var(--pine);
  --accent-hover: #152e24;
  --accent-light: #e8ede9;
  --glass-bg: rgba(250, 249, 247, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 2rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(26, 25, 22, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 25, 22, 0.07);
  --shadow-lg: 0 12px 40px rgba(26, 25, 22, 0.1);
  --shadow-card: 0 8px 24px rgba(31, 70, 53, 0.12);
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --content: 1100px;
}

[data-theme="dark"] {
  --bg: #121210;
  --surface: #1a1917;
  --surface-2: #201f1d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8e7e3;
  --text-muted: #888780;
  --text-faint: #504f4b;
  --accent: #7f9384;
  --accent-hover: #96a896;
  --accent-light: #2a3230;
  --glass-bg: rgba(26, 25, 23, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121210;
    --surface: #1a1917;
    --surface-2: #201f1d;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #e8e7e3;
    --text-muted: #888780;
    --text-faint: #504f4b;
    --accent: #7f9384;
    --accent-hover: #96a896;
    --accent-light: #2a3230;
    --glass-bg: rgba(26, 25, 23, 0.72);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100dvh;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 400;
}

h1,
h2 {
  text-wrap: balance;
}

p,
li,
figcaption {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--lime);
  color: var(--charcoal);
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a,
button,
[role="button"] {
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition),
    transform var(--transition);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

/* ─── NAV (same structure as other pages) ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav--scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 769px) and (max-width: 1100px) {
  .nav__links {
    gap: var(--space-4);
  }
}

.nav__link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__link:hover {
  color: var(--text);
}

.nav__dropdown {
  position: relative;
  flex-shrink: 0;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.nav__dropdown-toggle:hover {
  color: var(--text);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
  min-width: 20rem;
  display: none;
  z-index: 110;
}

.nav__dropdown-menu a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 2px solid transparent;
}

.nav__dropdown-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.nav__dropdown-desc {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}

.nav__dropdown-menu a:hover,
.nav__dropdown-menu a:focus-visible {
  background: var(--accent-light);
  border-left-color: var(--gul);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  display: block;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.theme-toggle:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav__mobile-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding: var(--space-4);
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__link,
  .nav__dropdown-toggle {
    padding: var(--space-3);
  }

  .nav__dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    margin: var(--space-1) 0 0;
    padding: 0 0 0 var(--space-2);
    min-width: 0;
    display: none;
  }

  .nav__links.open .nav__dropdown-menu {
    display: block;
  }

  .nav__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
  }
}

/* ─── BUTTONS ─── */
.kp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1.5px solid transparent;
  line-height: 1.2;
}

.kp-btn--primary {
  background: #1f4635;
  color: #ecf6b9;
}

.kp-btn--primary:hover {
  background: #152e24;
  color: #ecf6b9;
  box-shadow: 0 4px 16px rgba(31, 70, 53, 0.28);
}

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

.kp-btn--ghost:hover {
  border-color: var(--pine);
  color: var(--pine);
}

.kp-btn--ghost-on-dark {
  background: transparent;
  border-color: rgba(236, 246, 185, 0.45);
  color: #ecf6b9;
}

.kp-btn--ghost-on-dark:hover {
  background: rgba(236, 246, 185, 0.1);
  border-color: #ecf6b9;
  color: #ecf6b9;
}

.kp-btn--compact {
  padding: 9px 20px;
  font-size: 0.9rem;
}

.kp-btn--white {
  background: #fff;
  color: var(--pine);
}

.kp-btn--white:hover {
  background: var(--lime);
  color: var(--pine);
}

/* ─── HERO ─── */
.kp-hero {
  background: #1f4635;
  padding: 80px 8% 70px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.kp-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(236, 246, 185, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.kp-hero__inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.kp-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
  margin-bottom: 1.5rem;
}

.kp-hero__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.kp-hero__body {
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(250, 249, 247, 0.82);
  max-width: 40em;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.kp-hero__rule {
  width: 40px;
  height: 2px;
  background: var(--gul);
  margin: 0 auto 1.5rem;
}

.kp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.kp-example {
  background: var(--paper);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.kp-example__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--pine);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.kp-example__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}
.kp-example__figure figcaption {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

/* ─── SECTIONS ─── */
.kp-section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.kp-section--paper {
  background: var(--paper);
}

.kp-section--sand {
  background: var(--sand);
}

.kp-section--sage {
  background: color-mix(in srgb, #7f9384 22%, #faf9f7);
}

.kp-section--pine {
  background: #1f4635;
  color: #faf9f7;
}

[data-theme="dark"] .kp-section--paper {
  background: var(--bg);
}

[data-theme="dark"] .kp-section--sand {
  background: var(--surface);
}

[data-theme="dark"] .kp-section--sage {
  background: color-mix(in srgb, #7f9384 22%, #1a1917);
}

.kp-section__header {
  margin-bottom: 2rem;
}

.kp-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  background: var(--lime);
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.kp-section__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.kp-section__body {
  color: var(--text-muted);
  max-width: 52ch;
}

/* ─── PRIO BOARD ─── */
.kp-prio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 800px) {
  .kp-prio {
    grid-template-columns: 1fr;
  }
}

.kp-prio-slot {
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.35rem;
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.kp-prio-slot::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
}

.kp-prio-slot--1 {
  background:
    linear-gradient(165deg, rgba(236, 246, 185, 0.55) 0%, var(--surface-2) 55%);
}

.kp-prio-slot--1::before {
  background: var(--pine);
}

.kp-prio-slot--2 {
  background:
    linear-gradient(165deg, rgba(127, 147, 132, 0.28) 0%, var(--surface-2) 55%);
}

.kp-prio-slot--2::before {
  background: var(--sage);
}

.kp-prio-slot--3 {
  background:
    linear-gradient(165deg, rgba(170, 141, 87, 0.28) 0%, var(--surface-2) 55%);
}

.kp-prio-slot--3::before {
  background: var(--camel);
}

.kp-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 1.55rem;
  padding: 0 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--gul);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kp-prio-slot__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
}

.kp-prio-slot__empty {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.kp-prio-slot__meta {
  margin-top: auto;
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.kp-prio-more {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kp-prio-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 0.7rem 1rem;
}

.kp-prio-row__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text);
}

.kp-liked-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.kp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--pine);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ─── FILTERS ─── */
.kp-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: center;
}

.kp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kp-filter {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
}

.kp-filter:hover {
  border-color: var(--pine);
  color: var(--pine);
}

.kp-filter.is-active {
  background: #1f4635;
  border-color: #1f4635;
  color: #ecf6b9;
}

.kp-sort {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.kp-sort-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
}

.kp-sort-btn.is-active {
  background: var(--lime);
  color: var(--pine);
}

.kp-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ─── CARDS ─── */
.kp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 760px) {
  .kp-grid {
    grid-template-columns: 1fr;
  }
}

.kp-card {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.kp-card::after {
  content: "";
  position: absolute;
  inset: -20% 30% auto -15%;
  height: 55%;
  pointer-events: none;
  opacity: 0.95;
}

.kp-card--lime::after {
  background: radial-gradient(ellipse at top left, rgba(236, 246, 185, 0.85) 0%, transparent 70%);
}

.kp-card--sage::after {
  background: radial-gradient(ellipse at top left, rgba(127, 147, 132, 0.38) 0%, transparent 70%);
}

.kp-card--camel::after {
  background: radial-gradient(ellipse at top left, rgba(170, 141, 87, 0.35) 0%, transparent 70%);
}

.kp-card--terra::after {
  background: radial-gradient(ellipse at top left, rgba(217, 154, 145, 0.38) 0%, transparent 70%);
}

.kp-card:hover {
  border-color: color-mix(in srgb, var(--gul) 70%, transparent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.kp-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.kp-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
  background: rgba(236, 246, 185, 0.9);
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
}

.kp-num {
  width: auto;
  min-width: 36px;
  height: 36px;
  padding: 0 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--pine);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.kp-card__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--text);
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.kp-card__body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
  flex: 1;
}

.kp-card__audience {
  font-size: var(--text-xs);
  color: var(--charcoal);
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .kp-card__audience {
  color: var(--text);
  background: var(--accent-light);
}

.kp-card__price {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--gul);
  color: var(--charcoal);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.7rem;
  font-size: var(--text-xs);
  font-weight: 600;
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.kp-card__price span {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.kp-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
  margin-top: 0.25rem;
}

.kp-card__choose,
.kp-card__rank {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.kp-card__rank .kp-prio-btns {
  margin-left: 0;
}

.kp-like {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  white-space: nowrap;
}

.kp-like svg {
  width: 16px;
  height: 16px;
}

.kp-like.is-on {
  background: var(--lime);
  border-color: var(--pine);
  color: var(--pine);
}

.kp-like.is-on svg {
  fill: var(--pine);
}

.kp-stand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  white-space: nowrap;
}

.kp-stand.is-on {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--lime);
}

.kp-chip--stand {
  background: var(--pine);
  color: var(--lime);
}

.kp-prio-btns {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  margin-left: auto;
}

.kp-prio-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.15rem;
}

.kp-prio-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-2);
}

.kp-prio-btn:hover {
  border-color: var(--pine);
  color: var(--pine);
}

.kp-prio-btn.is-on {
  background: var(--gul);
  border-color: var(--gul);
  color: var(--charcoal);
}

.kp-prio-more-select {
  height: 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0 0.45rem;
  font-family: var(--font-display);
}

/* ─── DETAIL ─── */
.kp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--lime);
  margin-bottom: 1.5rem;
}

.kp-back:hover {
  color: #fff;
}

.kp-detail-hero {
  background: #1f4635;
  color: #fff;
  padding: 56px 0 64px;
}

.kp-detail-hero .container {
  max-width: 760px;
}

.kp-detail-hero .kp-badge {
  background: var(--lime);
  color: var(--pine);
  margin-bottom: 1.1rem;
}

.kp-detail-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
}

.kp-foto {
  margin: 0 0 1.25rem;
}

.kp-foto img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 1.25rem;
}

.kp-foto figcaption {
  margin-top: 0.7rem;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(250, 249, 247, 0.78);
}

.kp-detail-hero__lead {
  color: rgba(250, 249, 247, 0.86);
  font-size: var(--text-base);
  max-width: 48ch;
  margin-bottom: 1.25rem;
}

.kp-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.kp-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(236, 246, 185, 0.16);
  color: var(--lime);
  font-size: var(--text-xs);
  font-weight: 600;
}

.kp-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.kp-box {
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}

.kp-box--sand {
  background: var(--sand);
}

.kp-box--lime {
  background: var(--lime);
  color: var(--charcoal);
}

.kp-box--camel {
  background: color-mix(in srgb, var(--camel) 22%, var(--paper));
}

.kp-box--yellow {
  background: var(--gul);
  color: var(--charcoal);
  padding: 0.9rem 1.1rem;
}

[data-theme="dark"] .kp-box--sand {
  background: var(--accent-light);
}

[data-theme="dark"] .kp-box--camel {
  background: color-mix(in srgb, var(--camel) 18%, #1a1917);
}

.kp-box h2,
.kp-box h3 {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.kp-box p {
  max-width: none;
}

.kp-phase {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.kp-phase__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  margin-bottom: 1rem;
}

.kp-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (max-width: 700px) {
  .kp-tiles {
    grid-template-columns: 1fr;
  }
}

.kp-tile {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background-image: linear-gradient(165deg, rgba(236, 246, 185, 0.4) 0%, var(--surface-2) 48%);
}

.kp-tile:nth-child(2n) {
  background-image: linear-gradient(165deg, rgba(127, 147, 132, 0.22) 0%, var(--surface-2) 48%);
}

.kp-tile:nth-child(3n) {
  background-image: linear-gradient(165deg, rgba(170, 141, 87, 0.2) 0%, var(--surface-2) 48%);
}

.kp-tile__n {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
}

.kp-tile h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}

.kp-tile p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex: 1;
}

.kp-tile__dur {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--gul);
  color: var(--charcoal);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
}

.kp-missing {
  padding: 4rem 0;
  text-align: center;
}

.kp-missing a {
  color: var(--pine);
  font-weight: 600;
  text-decoration: underline;
}

/* ─── CTA / FOOTER ─── */
.kp-cta {
  background: linear-gradient(135deg, #1f4635 0%, #0f2419 100%);
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
  text-align: center;
}

.kp-cta h2 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-4);
}

.kp-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-inline: auto;
  margin-bottom: var(--space-8);
  max-width: 46ch;
}

.kp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

footer {
  background: var(--skovgrøn);
  border-top: none;
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.footer__inner {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--papirhvid);
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.8);
}

.footer__link:hover {
  color: var(--ravgul);
}

@media (max-width: 640px) {
  .footer__links {
    gap: var(--space-3);
  }

  .kp-prio-btns {
    margin-left: 0;
    width: 100%;
  }
}

/* ─── SPOR DIAGRAMS ─── */
.kp-track,
.kp-diagram,
.kp-card,
#priser,
#live-temaer {
  scroll-margin-top: 5.5rem;
}

.kp-track {
  margin-top: 2.75rem;
}

.kp-track:first-of-type {
  margin-top: 1.25rem;
}

.kp-track-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.kp-track-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--pine);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.kp-track-nav__link:hover {
  background: var(--pine);
  color: var(--lime);
}

.kp-diagram {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.35rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.kp-diagram__head {
  background: #1f4635;
  color: #fff;
  padding: 1.15rem 1.25rem 1.2rem;
}

.kp-diagram__kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  background: var(--lime);
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.7rem;
}

.kp-diagram__name {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.45rem;
}

.kp-diagram__body {
  color: rgba(250, 249, 247, 0.82);
  font-size: var(--text-sm);
  max-width: 52ch;
}

.kp-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 1.35rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--sand);
  color: var(--sage);
}

.kp-flow__canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 0.55rem 0.5rem;
}

.kp-flow__title {
  max-width: 22rem;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.4rem 0.7rem 0.45rem;
  box-shadow: var(--shadow-sm);
}

.kp-flow__title strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pine);
}

.kp-flow__title span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.66rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.kp-flow__branches {
  display: block;
  width: min(100%, 38rem);
  height: 16px;
  margin: 0;
}

.kp-flow__audiences,
.kp-flow__board {
  display: grid;
  width: 100%;
  gap: 0.4rem;
}

.kp-flow[data-cols="1"] .kp-flow__audiences,
.kp-flow[data-cols="1"] .kp-flow__board {
  grid-template-columns: minmax(0, 22rem);
  justify-content: center;
}

.kp-flow[data-cols="2"] .kp-flow__audiences,
.kp-flow[data-cols="2"] .kp-flow__board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kp-flow[data-cols="3"] .kp-flow__audiences,
.kp-flow[data-cols="3"] .kp-flow__board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kp-flow__audiences {
  margin-bottom: 0.35rem;
}

.kp-flow__aud {
  justify-self: center;
  max-width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--pine);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.24rem 0.45rem;
}

.kp-flow__group {
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.35rem 0.4rem;
}

.kp-flow__group-label {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pine);
}

.kp-flow__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.05rem minmax(0, 1fr);
  gap: 0.18rem;
  align-items: center;
  margin-bottom: 0.26rem;
}

.kp-flow__row:last-child {
  margin-bottom: 0;
}

.kp-flow__row--single {
  grid-template-columns: 1fr;
}

.kp-flow__dual {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  min-width: 0;
}

.kp-flow__or {
  display: block;
  text-align: center;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage);
}

.kp-flow__arrow {
  color: var(--sage);
  font-size: 0.9rem;
  line-height: 1;
  text-align: center;
}

.kp-flow__block {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  background: #eef1ec;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.28rem 0.36rem;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--charcoal);
}

.kp-flow__block:hover,
.kp-flow__block:focus-visible {
  background: var(--lime);
  border-color: var(--pine);
  color: var(--pine);
}

.kp-flow__continue {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.2rem;
  color: var(--sage);
  font-size: 0.64rem;
  font-weight: 600;
}

.kp-flow__dots {
  width: 4.4rem;
  height: 12px;
}

@media (max-width: 860px) {
  .kp-flow__branches,
  .kp-flow__audiences {
    display: none;
  }

  .kp-flow[data-cols="1"] .kp-flow__board,
  .kp-flow[data-cols="2"] .kp-flow__board,
  .kp-flow[data-cols="3"] .kp-flow__board {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  .kp-flow__canvas {
    padding: 0.5rem 0.4rem 0.4rem;
  }

  .kp-diagram__head {
    padding: 0.9rem;
  }

  .kp-flow__row {
    grid-template-columns: minmax(0, 1fr) 0.9rem minmax(0, 1fr);
  }

  .kp-flow__block {
    font-size: 0.62rem;
    padding: 0.24rem 0.3rem;
  }
}

[data-theme="dark"] .kp-flow {
  background: var(--surface);
}

[data-theme="dark"] .kp-flow__title,
[data-theme="dark"] .kp-flow__aud,
[data-theme="dark"] .kp-flow__group {
  background: var(--surface-2);
}

[data-theme="dark"] .kp-flow__block {
  background: #262824;
  color: var(--text);
}

/* ─── PRICES ─── */
.kp-price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 760px) {
  .kp-price-grid {
    grid-template-columns: 1fr;
  }
}

.kp-price-card {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 1.25rem 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 1px solid var(--border);
  background-image: linear-gradient(165deg, rgba(236, 246, 185, 0.45) 0%, var(--surface-2) 46%);
}

.kp-price-card:nth-child(2n) {
  background-image: linear-gradient(165deg, rgba(127, 147, 132, 0.22) 0%, var(--surface-2) 46%);
}

.kp-price-card__n {
  align-self: flex-start;
  min-width: 2rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--gul);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kp-price-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--text);
}

.kp-price-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.kp-price-card .kp-btn {
  margin-top: auto;
  align-self: flex-start;
}

.kp-btn--soon {
  pointer-events: none;
  opacity: 0.7;
  color: var(--pine);
  border-color: var(--pine);
}

.kp-walk-prices {
  background: var(--lime);
  color: var(--charcoal);
  border-radius: var(--radius-xl);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.kp-walk-prices h3 {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.kp-walk-prices p {
  font-size: var(--text-sm);
  margin-bottom: 0.35rem;
}

.kp-walk-prices a {
  color: var(--pine);
  font-weight: 700;
  text-decoration: underline;
}

.kp-walk-prices a:hover {
  color: var(--accent-hover);
}

.kp-badge--forslag {
  background: var(--gul);
  color: var(--charcoal);
}

.kp-card__after {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pine);
  position: relative;
  z-index: 1;
}

.kp-mods {
  position: relative;
  z-index: 1;
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.8rem;
}

.kp-mods__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.35rem;
}

.kp-mods ol {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kp-mods li {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.45;
}

.kp-mods li strong {
  color: var(--text);
  font-weight: 700;
}

[data-theme="dark"] .kp-mods {
  background: var(--accent-light);
}

.kp-live-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 760px) {
  .kp-live-grid {
    grid-template-columns: 1fr;
  }
}

.kp-live-card {
  background: var(--lime);
  color: var(--charcoal);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
}

.kp-live-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.kp-live-card p {
  font-size: var(--text-sm);
}

.kp-live-card a {
  color: var(--pine);
  font-weight: 700;
  text-decoration: underline;
}

.kp-live-card a:hover {
  color: var(--accent-hover);
}

/* ─── V12 SÆBEBOBLE NEON LOGO ─── */
.bc-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.mat-12 .bc-part-build {
  background: linear-gradient(135deg, #e3f988 0%, #9df5cb 28%, #fce8a6 55%, #d1f0ff 78%, #eaffb0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 0 #547348) drop-shadow(0 8px 18px rgba(0,0,0,0.75));
}
.mat-12 .bc-part-cow {
  background: linear-gradient(180deg, #c7a463 0%, #876930 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 0 #4f3b17) drop-shadow(0 8px 18px rgba(0,0,0,0.75));
}
