/* Elevayme blog: uses the brand tokens from tokens.css, like the main site */
:root {
  /* page names for the brand tokens in tokens.css */
  --night: var(--ev-navy-950);
  --deep: var(--ev-navy-900);
  --raise: var(--ev-navy-800);
  --gold: var(--ev-gold-500);
  --gold-light: var(--ev-gold-400);
  --gold-deep: var(--ev-gold-600);
  --ivory: var(--ev-white);
  --cream: var(--ev-light-surface);
  --slate: var(--ev-navy-800);
  --mist: var(--ev-muted);
  --line: var(--ev-line);
  --line-soft: rgba(167, 178, 192, 0.07);
  --leaf: var(--ev-radius-panel);
  --leaf-md: var(--ev-radius-card);
  --leaf-sm: var(--ev-radius-button);
  --max: var(--ev-content);
  --gutter: clamp(16px, 5vw, 64px);
  --nav-height: 72px;
  --ease: var(--ev-ease);
  color-scheme: dark;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--ev-font-display);
  font-weight: 600;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(60rem 40rem at 82% -10%, rgba(201, 173, 132, 0.06), transparent 70%),
    radial-gradient(50rem 50rem at -10% 40%, transparent, transparent 70%),
    var(--night);
  color: var(--ivory);
  font-family: var(--ev-font-body);
  font-size: var(--ev-text);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

h1 {
  font-size: var(--ev-h1);
  line-height: var(--ev-lh-h1);
  letter-spacing: var(--ev-ls-h1);
}

h2 {
  font-size: var(--ev-h2);
  line-height: var(--ev-lh-h2);
  letter-spacing: var(--ev-ls-h2);
}

h3 {
  font-size: var(--ev-h3);
  line-height: var(--ev-lh-h3);
  letter-spacing: var(--ev-ls-h3);
}

h4 {
  font-size: var(--ev-lead);
  line-height: var(--ev-lh-h3);
}

b,
strong {
  font-weight: 600;
}

h1 strong,
h2 strong {
  font-weight: 600;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.table-wrap:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.shell {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  border-radius: var(--leaf-sm);
  background: var(--gold);
  color: var(--night);
  padding: 10px 16px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease);
}

.skip-link:focus {
  transform: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gold);
  font-size: var(--ev-small);
  font-weight: 500;
}

.kicker::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: var(--ev-radius-card);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
}

.lead {
  margin: 0;
  max-width: 720px;
  color: var(--mist);
  font-size: var(--ev-lead);
  line-height: var(--ev-lh-lead);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: var(--leaf-sm);
  padding: 0 24px;
  cursor: pointer;
  font-size: var(--ev-ui);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
  line-height: var(--ev-lh-ui);
}

.button--gold {
  background: #f2f1ee;
  color: #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.button--gold:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.button--line {
  border-color: rgba(167, 178, 192, 0.4);
  background: transparent;
}

.button--line:hover {
  border-color: var(--gold);
  background: rgba(201, 173, 132, 0.08);
}

/* ---------- reading progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 3px;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- header ---------- */
.bheader {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.bnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: auto;
  height: 34px;
}

.brand__wordmark {
  width: 148px;
  height: auto;
}

.logo-light {
  display: none;
}

[data-theme="light"] .logo-dark {
  display: none;
}

[data-theme="light"] .logo-light {
  display: block;
}

/* ---------- menu: only the logo and one button in the header ---------- */
.bmenu {
  position: relative;
}

.bnav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.bnav .theme-switch,
.bnav__tools {
  justify-self: start;
}

.bnav__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* language switch, same look as the theme switch */
.blang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  border: 1px solid var(--ev-line-strong);
  border-radius: var(--ev-radius-pill);
  padding: 3px;
}

.blang a {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: var(--ev-radius-pill);
  padding: 0 6px;
  color: var(--mist);
  font-size: var(--ev-small);
  font-weight: 600;
  text-decoration: none;
}

.blang a[aria-current="true"] {
  background: var(--ev-gradient-gold);
  color: var(--ev-ink);
}

[data-theme="light"] .blang {
  border-color: rgba(0, 0, 0, 0.22);
}

.lang-note {
  color: var(--mist);
  font-size: var(--ev-small);
  font-style: italic;
}

@media (max-width: 560px) {
  .bnav__tools .theme-switch {
    display: none;
  }
}

.brand--center {
  justify-self: center;
}

.brand--center .brand__mark {
  height: 42px;
}

.brand--center .brand__wordmark {
  width: 190px;
}

.bmenu {
  justify-self: end;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  border: 1px solid var(--ev-line-strong);
  border-radius: var(--ev-radius-pill);
  padding: 3px;
}

.theme-switch button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--ev-radius-pill);
  background: transparent;
  color: var(--mist);
  cursor: pointer;
}

.theme-switch svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-switch button[aria-pressed="true"] {
  background: var(--ev-gradient-gold);
  color: var(--ev-ink);
}

.bmenu summary {
  position: relative;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  border: 1px solid var(--ev-line-strong);
  border-radius: var(--ev-radius-pill);
  padding: 0 4px 0 16px;
  color: var(--ivory);
  cursor: pointer;
  font-size: var(--ev-small);
  font-weight: 600;
  list-style: none;
}

.bmenu summary::-webkit-details-marker {
  display: none;
}

.bmenu__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ev-gradient-gold);
}

.bmenu__icon i,
.bmenu__icon::before,
.bmenu__icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ev-ink);
  transition: transform 240ms var(--ease), opacity 200ms var(--ease);
}

.bmenu__icon::before {
  transform: translateY(-5px);
}

.bmenu__icon::after {
  transform: translateY(5px);
}

.bmenu[open] .bmenu__icon i {
  opacity: 0;
}

.bmenu[open] .bmenu__icon::before {
  transform: rotate(45deg);
}

.bmenu[open] .bmenu__icon::after {
  transform: rotate(-45deg);
}

.bmenu__label {
  display: none;
}

@media (min-width: 0px) {
  .bmenu summary {
    padding: 0 4px;
    border-color: transparent;
  }
}

@media (max-width: 860px) {
  .theme-switch button[aria-pressed="true"] {
    display: none;
  }

  .brand--center .brand__mark {
    height: 32px;
  }

  .brand--center .brand__wordmark {
    width: 128px;
  }
}

@media (max-width: 360px) {
  .brand--center .brand__mark {
    height: 24px;
  }

  .brand--center .brand__wordmark {
    width: 90px;
  }
}

.bmenu[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(9, 9, 9, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bmenu__panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 75;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(430px, 100vw);
  overflow-y: auto;
  border-left: 1px solid rgba(167, 178, 192, 0.16);
  padding: 22px clamp(20px, 5vw, 36px) 32px;
  background: radial-gradient(30rem 22rem at 100% 0%, rgba(201, 173, 132, 0.072), transparent 70%), #000000;
  color: #f2f1ee;
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.4);
  animation: bmenu-in 280ms var(--ease);
}

@keyframes bmenu-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}

.bmenu__title {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: #c9ad84;
  font-size: var(--ev-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.bmenu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bmenu__list li {
  border-bottom: 1px solid rgba(167, 178, 192, 0.08);
}

.bmenu__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: #f2f1ee;
  font-size: var(--ev-lead);
  font-weight: 500;
}

.bmenu__link:hover,
.bmenu__link.is-active {
  color: #d9c19c;
}

.bmenu__cta {
  width: 100%;
}

.bmenu__setting {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(167, 178, 192, 0.16);
  padding-top: 20px;
  color: #a7adb3;
  font-size: var(--ev-small);
}

.segmented {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(167, 178, 192, 0.16);
  border-radius: 14px;
  padding: 4px;
}

.segmented button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a7adb3;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

.segmented button[aria-pressed="true"] {
  background: rgba(201, 173, 132, 0.16);
  color: #d9c19c;
}

@media (prefers-reduced-motion: reduce) {
  .bmenu__panel {
    animation: none;
  }
}

/* ---------- light theme ---------- */
:root[data-theme="light"] {
  --night: var(--ev-light-surface);
  --deep: #ffffff;
  --raise: #ffffff;
  --gold: var(--ev-bronze);
  --gold-light: var(--ev-bronze);
  --gold-deep: #5e4517;
  --ivory: var(--ev-ink);
  --mist: var(--ev-ink-muted);
  --line: rgba(0, 0, 0, 0.14);
  --line-soft: rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

[data-theme="light"] body {
  background:
    radial-gradient(60rem 40rem at 82% -10%, rgba(201, 173, 132, 0.132), transparent 70%),
    radial-gradient(50rem 50rem at -10% 40%, transparent, transparent 70%),
    var(--night);
}

[data-theme="light"] .bheader {
  background: rgba(246, 241, 231, 0.9);
}

[data-theme="light"] .bmenu__panel--unused {
  background: var(--deep);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .button--gold,
[data-theme="light"] .filter.is-active {
  background: #0a0a0a;
  color: #ffffff;
}

[data-theme="light"] .bcard {
  background: linear-gradient(160deg, var(--raise), var(--deep) 80%);
}

[data-theme="light"] .bcard:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .prose blockquote,
[data-theme="light"] .toc {
  background: var(--raise);
}

[data-theme="light"] .prose pre {
  background: #1a1a1a;
  color: #f2f1ee;
}

[data-theme="light"] .prose th {
  background: rgba(201, 173, 132, 0.18);
  color: var(--gold-deep);
}

[data-theme="light"] .prose a,
[data-theme="light"] .chip,
[data-theme="light"] .share__status {
  color: var(--gold-deep);
}

[data-theme="light"] .prose mark {
  background:
    radial-gradient(30rem 12rem at 100% 0%, rgba(201, 173, 132, 0.18), transparent 70%),
    var(--raise);
}

[data-theme="light"] .cta-box {
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(201, 173, 132, 0.15), transparent 70%),
    radial-gradient(30rem 20rem at 0% 100%, transparent, transparent 70%),
    var(--deep);
}

/* ---------- blog index ---------- */
.bhero {
  display: grid;
  gap: 20px;
  padding-block: clamp(56px, 9vw, 120px) clamp(36px, 5vw, 64px);
}

.bhero h1 {
  max-width: 900px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  color: var(--mist);
  font-size: var(--ev-small);
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  background: rgba(201, 173, 132, 0.08);
  color: var(--gold-light);
  font-weight: 500;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  font-size: var(--ev-small);
  transition: all 200ms var(--ease);
}

.filter:hover {
  border-color: var(--gold);
  color: var(--ivory);
}

.filter.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
  color: var(--night);
  font-weight: 500;
}

.featured {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.bgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.bcard {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--leaf-md);
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
  overflow: hidden;
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.bcard:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 173, 132, 0.08);
}

.bcard[hidden] {
  display: none;
}

.bcard__link {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.bcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.bcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.bcard:hover .bcard__img {
  transform: scale(1.04);
}

.bcard__body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 28px);
}

.bcard__title {
  font-size: var(--ev-h3);
  font-weight: 600;
  line-height: var(--ev-lh-h3);
}

.bcard__text {
  margin: 0;
  color: var(--mist);
  font-size: var(--ev-ui);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bcard__more {
  color: var(--gold);
  font-size: var(--ev-small);
  font-weight: 500;
}

.bcard__more i {
  display: inline-block;
  font-style: normal;
  transition: transform 260ms var(--ease);
}

.bcard:hover .bcard__more i {
  transform: translateX(5px);
}

.bcard--featured {
  border-radius: var(--leaf);
}

.bcard--featured .bcard__link {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: none;
}

.bcard--featured .bcard__media {
  aspect-ratio: auto;
  min-height: 360px;
}

.bcard--featured .bcard__body {
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 56px);
}

.bcard--featured .bcard__title {
  font-size: var(--ev-title);
  font-weight: 600;
  line-height: var(--ev-lh-title);
}

.bcard--featured .bcard__text {
  font-size: var(--ev-text);
  -webkit-line-clamp: 4;
}

.cover-fallback {
  display: grid;
  place-items: end start;
  width: 100%;
  height: 100%;
  min-height: 180px;
  padding: 24px;
  background:
    radial-gradient(30rem 16rem at 90% 0%, rgba(201, 173, 132, 0.21), transparent 70%),
    radial-gradient(24rem 18rem at 0% 100%, transparent, transparent 70%),
    var(--raise);
}

.cover-fallback span {
  color: var(--gold-light);
  font-size: var(--ev-h3);
  font-weight: 500;
}

.empty {
  color: var(--mist);
}

@media (max-width: 860px) {
  .bcard--featured .bcard__link {
    grid-template-columns: minmax(0, 1fr);
  }

  .bcard--featured .bcard__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* ---------- article ---------- */
.article__head {
  display: grid;
  gap: 20px;
  max-width: calc(860px + 2 * var(--gutter));
  padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 48px);
}


.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--mist);
  font-size: var(--ev-small);
}

.crumbs a:hover {
  color: var(--gold-light);
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 0;
  color: var(--mist);
  font-size: var(--ev-small);
  line-height: 1.5;
}

.byline strong {
  color: var(--ivory);
  font-weight: 500;
}

/* Article head: one sentence on what Elevayme does, for readers who land here directly (docs/customer-journey.md) */
.about-strip {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--ev-radius-card);
  padding: 14px 18px;
  background: var(--raise);
  max-width: 760px;
}

.about-strip__text {
  margin: 0;
  color: var(--ivory);
  font-size: var(--ev-ui);
  line-height: 1.55;
}

.about-strip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  font-size: var(--ev-small);
}

.about-strip__actions a {
  color: var(--mist);
  text-underline-offset: 3px;
}

.about-strip__actions .about-strip__cta {
  color: var(--gold);
  font-weight: 600;
}

.byline__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--ev-radius-card);
  background: var(--raise);
}

.article__cover img,
.article__cover .cover-fallback {
  width: 100%;
  max-height: 560px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--leaf);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
}

.article__layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  justify-content: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 80px);
}

.article__aside {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  align-self: start;
  display: grid;
  gap: 28px;
}

.toc__title {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: var(--ev-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -1px;
  border-left: 2px solid transparent;
  padding: 7px 0 7px 16px;
  color: var(--mist);
  font-size: var(--ev-small);
  line-height: 1.4;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.toc a:hover,
.toc a.is-active {
  border-left-color: var(--gold);
  color: var(--ivory);
}

.share__row {
  display: flex;
  gap: 8px;
}

.share__row a,
.share__row button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--ev-radius-card);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  font-size: var(--ev-small);
  font-weight: 500;
  transition: all 200ms var(--ease);
}

.share__row a:hover,
.share__row button:hover {
  border-color: var(--gold);
  background: rgba(201, 173, 132, 0.1);
  color: var(--gold-light);
}

.share__status {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--gold-light);
  font-size: var(--ev-small);
}

@media (max-width: 1000px) {
  .article__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article__aside {
    position: static;
    order: 0;
  }

  .toc {
    border: 1px solid var(--line-soft);
    border-radius: var(--leaf-md);
    padding: 22px 24px;
    background: rgba(0, 0, 0, 0.5);
  }
}

/* ---------- prose ---------- */
.prose {
  min-width: 0;
  font-size: var(--ev-text);
  line-height: 1.65;
  max-width: 68ch;
}

.prose > * {
  margin-block: 0;
}

.prose > * + * {
  margin-top: 1.2em;
}

.prose > h2 + *,
.prose > h3 + * {
  margin-top: 0.7em;
}

.prose > p:first-child {
  color: var(--ivory);
  font-size: 1.12em;
}

.prose h2 {
  margin-top: 2.4em;
  scroll-margin-top: calc(var(--nav-height) + 24px);
  font-size: var(--ev-title);
  line-height: var(--ev-lh-title);
}

.prose h3 {
  margin-top: 2em;
  scroll-margin-top: calc(var(--nav-height) + 24px);
  color: var(--gold-light);
  font-size: var(--ev-h3);
  font-weight: 600;
}

.prose h4 {
  margin-top: 1.6em;
  font-size: var(--ev-lead);
  font-weight: 600;
}

.prose a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(167, 178, 192, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms var(--ease);
}

.prose a:hover {
  text-decoration-color: var(--gold);
}

.prose strong {
  color: var(--ivory);
  font-weight: 600;
}

.prose mark {
  display: block;
  border-radius: var(--leaf-md);
  padding: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(30rem 12rem at 100% 0%, rgba(201, 173, 132, 0.108), transparent 70%),
    var(--raise);
  color: var(--ivory);
  font-size: 1.12em;
  font-weight: 400;
  line-height: 1.6;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.5em;
  padding-left: 1.4em;
}

.prose ul li::marker {
  color: var(--gold);
}

.prose ol li::marker {
  color: var(--gold);
  font-weight: 500;
}

.prose blockquote {
  margin-inline: 0;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--leaf-sm) var(--leaf-sm) 0;
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--ivory);
}

.prose blockquote.callout--wichtig {
  border-left-color: #e89a6c;
  background: rgba(232, 154, 108, 0.08);
}

.prose blockquote.callout--tipp,
.prose blockquote.callout--praxis {
  border-left-color: #7fc8a9;
  background: rgba(127, 200, 169, 0.08);
}

.prose figure {
  margin-inline: 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--leaf-md);
}

.prose figcaption {
  margin-top: 10px;
  color: var(--mist);
  font-size: var(--ev-small);
  text-align: center;
}

.prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
}

.prose code {
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--raise);
  font-size: 0.9em;
}

.prose pre {
  overflow-x: auto;
  border-radius: var(--leaf-sm);
  padding: 18px;
  background: #0d0d0d;
}

.prose pre code {
  padding: 0;
  background: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--leaf-md);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ev-ui);
  line-height: 1.5;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(201, 173, 132, 0.08);
  color: var(--gold-light);
  font-weight: 500;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose td:first-child {
  color: var(--ivory);
  font-weight: 400;
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--raise);
  color: var(--mist);
  font-size: var(--ev-small);
}

.sources {
  margin-top: 3em !important;
  border-top: 1px solid var(--line);
  padding-top: 2em;
}

.sources h2 {
  margin: 0 0 18px;
  font-size: var(--ev-h3);
}

.sources ol {
  font-size: var(--ev-ui);
  line-height: 1.6;
}

.sources span {
  color: var(--mist);
  font-size: var(--ev-small);
}

/* ---------- call to action ---------- */
.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-block: clamp(48px, 7vw, 96px);
  border: 1px solid var(--line);
  border-radius: var(--leaf);
  padding: clamp(28px, 4.5vw, 56px);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(201, 173, 132, 0.12), transparent 70%),
    radial-gradient(30rem 20rem at 0% 100%, transparent, transparent 70%),
    var(--deep);
}

.cta-box > div {
  display: grid;
  gap: 12px;
}

.cta-box h2 {
  margin: 0 !important;
  font-size: var(--ev-title);
}

.cta-box p:not(.kicker) {
  color: var(--mist);
}

.cta-box > .cta-box__actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.cta-box__floors {
  display: grid;
  gap: 4px;
}

.cta-box__floors a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--ivory);
  font-size: var(--ev-ui);
}

.cta-box__floors a:hover {
  color: var(--gold);
}

.cta-box__floors span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(167, 178, 192, 0.55);
  border-radius: 50%;
  color: var(--gold);
  font-size: var(--ev-small);
  font-weight: 600;
}

@media (max-width: 760px) {
  .cta-box {
    grid-template-columns: minmax(0, 1fr);
  }
}

.related {
  padding-bottom: clamp(40px, 6vw, 80px);
}

.related h2 {
  margin-bottom: 28px;
  font-size: var(--ev-title);
}

/* ---------- footer ---------- */
.bfooter {
  border-top: 1px solid var(--line-soft);
  padding-block: 40px;
}

.bfooter__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.bfooter__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--mist);
  font-size: var(--ev-small);
}

.bfooter__links a:hover {
  color: var(--ivory);
}

.bfooter small {
  color: var(--mist);
  font-size: var(--ev-small);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- "In 1 Minute" under the title ---------- */
.blink-wrap {
  max-width: calc(860px + 2 * var(--gutter));
  margin-top: clamp(4px, 1vw, 12px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.blink p {
  margin: 0;
}

.blink {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(201, 173, 132, 0.35);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(150deg, rgba(201, 173, 132, 0.09), rgba(255, 255, 255, 0.02) 60%);
}

.blink__title {
  color: var(--gold-light, #d9c19c);
  font-size: var(--ev-small);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.blink dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.blink dl div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
}

.blink dt {
  color: var(--mist);
  font-size: var(--ev-small);
}

.blink dd {
  margin: 0;
  color: var(--ivory, #f2f1ee);
  font-size: var(--ev-ui);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .blink dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ---------- "Was heißt das für dich?" at the end ---------- */
.foryou {
  display: grid;
  gap: 18px;
  margin-block: clamp(40px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--leaf);
  padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(201, 173, 132, 0.12), transparent 70%),
    radial-gradient(30rem 20rem at 0% 100%, transparent, transparent 70%),
    var(--deep);
}

.foryou h2 {
  margin: 0 !important;
  font-size: var(--ev-title);
}

.foryou__cases {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foryou__cases li {
  display: grid;
  gap: 4px;
  border-left: 2px solid var(--gold, #c9ad84);
  padding: 4px 0 4px 16px;
}

.foryou__cases strong {
  font-weight: 600;
}

.foryou__cases span {
  color: var(--mist);
}

.foryou__today {
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
}

.foryou__label {
  margin-bottom: 4px;
  color: var(--gold-light, #d9c19c);
  font-size: var(--ev-small);
  font-weight: 600;
}

.foryou__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.foryou__note {
  color: var(--mist);
  font-size: var(--ev-small);
}

.foryou__service {
  color: var(--mist);
  font-size: var(--ev-ui);
}

.foryou__service a {
  color: var(--ivory, #f5efe6);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 520px) {
  .foryou__actions .button {
    width: 100%;
  }
}

[data-theme="light"] .blink {
  background: linear-gradient(150deg, rgba(138, 106, 60, 0.08), #ffffff 60%);
  border-color: rgba(138, 106, 60, 0.35);
}

[data-theme="light"] .blink__title,
[data-theme="light"] .foryou__label {
  color: #8a6a3c;
}

[data-theme="light"] .blink dd {
  color: #0a0a0a;
}

[data-theme="light"] .foryou {
  background: linear-gradient(160deg, #ffffff, #f5f5f5);
}

[data-theme="light"] .foryou__today {
  background: rgba(0, 0, 0, 0.04);
}

.prose .foryou .button {
  text-decoration: none;
}

.prose .foryou .button--gold {
  color: #000000;
}

.prose .foryou .button--line {
  color: var(--ivory);
}

[data-theme="light"] .prose .foryou .button--gold {
  color: #ffffff;
}


/* phones: compact language switch and logo, so neither overlaps the other */
@media (max-width: 560px) {
  .blang {
    height: 34px;
    padding: 2px;
  }

  .blang a {
    min-width: 26px;
    height: 28px;
    padding: 0 4px;
    font-size: var(--ev-small);
  }

  .brand--center .brand__wordmark {
    width: 112px;
  }
}

@media (max-width: 380px) {
  .brand--center .brand__wordmark {
    display: none;
  }
}
