/* ============================================================
   Bilans - kompendium finansowania firm
   Design system: deep forest + brass, editorial ledger
   ============================================================ */

:root {
  --forest-900: oklch(0.235 0.043 165);
  --forest-800: oklch(0.295 0.048 165);
  --forest-700: oklch(0.355 0.052 165);
  --brass: oklch(0.72 0.105 78);
  --brass-strong: oklch(0.60 0.115 72);
  --brass-soft: oklch(0.90 0.035 82);

  --paper: oklch(0.982 0.006 95);
  --surface: oklch(0.995 0.003 95);
  --surface-2: oklch(0.958 0.009 95);
  --surface-3: oklch(0.932 0.012 95);

  --ink: oklch(0.225 0.018 160);
  --ink-soft: oklch(0.395 0.016 160);
  --ink-faint: oklch(0.50 0.014 160);
  --line: oklch(0.875 0.010 120);
  --line-strong: oklch(0.80 0.012 120);

  --ok: oklch(0.52 0.10 155);
  --warn: oklch(0.58 0.13 55);
  --danger: oklch(0.52 0.16 25);

  --header-h: 68px;
  --sidebar-w: 296px;
  --radius: 3px;
  --maxw: 1120px;

  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(0.165 0.012 165);
    --surface: oklch(0.195 0.013 165);
    --surface-2: oklch(0.225 0.014 165);
    --surface-3: oklch(0.26 0.015 165);
    --ink: oklch(0.935 0.008 95);
    --ink-soft: oklch(0.79 0.010 95);
    --ink-faint: oklch(0.68 0.010 95);
    --line: oklch(0.315 0.014 165);
    --line-strong: oklch(0.40 0.016 165);
    --brass: oklch(0.78 0.105 80);
    --brass-strong: oklch(0.72 0.115 78);
    --brass-soft: oklch(0.30 0.04 82);
    --forest-900: oklch(0.205 0.035 165);
    --forest-800: oklch(0.245 0.040 165);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 92% -12%, var(--brass-soft), transparent 62%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  body { background: radial-gradient(1000px 480px at 92% -12%, oklch(0.26 0.04 82 / 0.35), transparent 60%), var(--paper); }
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brass-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--forest-900);
  color: oklch(0.98 0.005 95);
  padding: 10px 16px;
  font-size: 0.85rem;
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus { top: 10px; }

/* ---------- Header ---------- */

.app-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  background: color-mix(in oklch, var(--paper) 92%, var(--surface));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 11px;
  height: 11px;
  background: var(--brass-strong);
  transform: translateY(1px);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-sub {
  display: none;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
}
@media (min-width: 720px) { .brand-sub { display: inline-block; } }

.header-search {
  margin-left: auto;
  position: relative;
  width: min(320px, 40vw);
}
.header-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color 0.18s ease;
}
.header-search input::placeholder { color: var(--ink-faint); }
.header-search input:focus { border-bottom-color: var(--brass-strong); }
.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: var(--ink-faint);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(430px, 86vw);
  max-height: 60vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px oklch(0.2 0.02 160 / 0.16);
  padding: 6px;
  display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 9px 10px;
  border-radius: 2px;
  font-size: 0.9rem;
  line-height: 1.35;
}
.search-results a:hover,
.search-results a:focus-visible { background: var(--surface-2); }
.search-results .sr-section {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
}
.search-empty { padding: 12px; font-size: 0.88rem; color: var(--ink-soft); }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; stroke: currentColor; }

@media (max-width: 900px) {
  .app-header { padding: 0 16px; gap: 10px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; order: -1; margin-left: 0; }
  .header-search { width: 100%; max-width: none; }
  .brand { order: 0; }
}

/* ---------- Shell ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  padding-top: var(--header-h);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 20px 40px;
  background: color-mix(in oklch, var(--surface-2) 72%, var(--paper));
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.sidebar-brandline {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-brandline b { color: var(--brass-strong); font-weight: 700; }

.sidebar-group, .nav-section { padding-top: 18px; border-top: 1px solid var(--line); margin-bottom: 26px; }
.sidebar-nav > .nav-section:first-child, .sidebar-nav > .sidebar-group:first-child { padding-top: 0; border-top: 0; }
.sidebar-heading,
.nav-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 7px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sidebar-heading span { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
a.nav-section-title { text-decoration: none; transition: color 0.16s ease; }
a.nav-section-title:hover { color: var(--brass-strong); }

.sidebar-link {
  display: block;
  position: relative;
  padding: 7px 10px 7px 12px;
  font-size: 0.94rem;
  line-height: 1.38;
  color: var(--ink-soft);
  border-radius: 2px;
  transition: color 0.16s ease, background 0.16s ease;
}
.sidebar-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: transparent;
  transition: background 0.18s var(--ease-out), transform 0.18s var(--ease-out);
  transform: scaleY(0.4);
  transform-origin: top;
}
.sidebar-link:hover { color: var(--ink); background: var(--surface-3); }
.sidebar-link.active {
  color: var(--ink);
  font-weight: 700;
  background: var(--surface);
}
.sidebar-link.active::before { background: var(--brass-strong); transform: scaleY(1); }

.sidebar-info {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.sidebar-info a {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-faint);
  padding: 4px 10px;
}
.sidebar-info a:hover { color: var(--ink); }

.overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.15 0.02 160 / 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 55;
}

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: min(88vw, 340px);
    z-index: 60;
    transform: translateX(-102%);
    transition: transform 0.34s var(--ease-drawer);
    box-shadow: 0 0 0 1px var(--line);
    padding-top: 22px;
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .overlay { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Main ---------- */

.main {
  min-width: 0;
  --main-pad: 52px;
  padding: 44px var(--main-pad) 80px;
}
@media (max-width: 1100px) { .main { --main-pad: 34px; padding: 36px var(--main-pad) 72px; } }
@media (max-width: 640px) { .main { --main-pad: 18px; padding: 26px var(--main-pad) 64px; } }

.content {
  max-width: 860px;
}
.content-wide { max-width: var(--maxw); }

.page-enter { animation: rise 0.28s var(--ease-out) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 62vh, 620px);
  margin: 0 calc(-1 * var(--main-pad)) 56px;
  background: var(--forest-900);
  color: oklch(0.97 0.01 95);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(760px, 78%);
  padding: clamp(40px, 5vw, 64px);
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 7.6vw, 5.4rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: oklch(0.99 0.008 95);
}
.hero-brand em { font-style: normal; color: var(--brass); }

.hero-sentence {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.14rem, 1.55vw, 1.26rem);
  line-height: 1.55;
  color: oklch(0.94 0.01 95 / 0.92);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 16px 30px;
  background: var(--brass);
  color: oklch(0.19 0.03 90);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: transform 0.16s var(--ease-out), background 0.2s ease;
}
.hero-cta:hover { background: oklch(0.80 0.10 82); }
.hero-cta:active { transform: scale(0.97); }
.hero-cta svg { width: 15px; height: 15px; stroke: currentColor; }

.hero-figure { position: absolute; inset: 0; margin: 0; z-index: 0; background: var(--forest-800); }
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
  filter: saturate(0.62) contrast(1.02) brightness(0.94);
  transform: scale(1.04);
  animation: heroSettle 1.4s 0.1s var(--ease-out) forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, oklch(0.19 0.045 165 / 0.96) 0%, oklch(0.19 0.045 165 / 0.88) 38%, oklch(0.20 0.04 165 / 0.55) 62%, oklch(0.22 0.03 165 / 0.12) 88%),
    linear-gradient(to top, oklch(0.18 0.04 165 / 0.75), transparent 46%);
  pointer-events: none;
}
.hero-figure figcaption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 14px;
  max-width: 34ch;
  font-size: 0.66rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: right;
  color: oklch(0.95 0.01 95 / 0.72);
}
.hero-figure figcaption a { color: inherit; border-bottom: 1px solid oklch(0.95 0.01 95 / 0.3); }

@media (max-width: 1100px) {
  .hero { --main-pad: 34px; }
}
@media (max-width: 640px) {
  .hero { --main-pad: 18px; min-height: 0; margin-bottom: 40px; }
  .hero-copy { max-width: 100%; padding: 220px 20px 34px; gap: 16px; }
  .hero-brand { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero-sentence { max-width: 40ch; }
  .hero-figure img { object-position: 62% 30%; }
  .hero-figure::after {
    background:
      linear-gradient(to top, oklch(0.18 0.045 165 / 0.97) 34%, oklch(0.19 0.04 165 / 0.72) 58%, oklch(0.22 0.03 165 / 0.15) 100%);
  }
  .hero-figure figcaption { display: none; }
}

/* ---------- Sections ---------- */

.start-block {
  margin-bottom: 56px;
  padding-bottom: 8px;
}
.start-list {
  list-style: none;
  counter-reset: start;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.start-list li { counter-increment: start; border-bottom: 1px solid var(--line); }
.start-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 15px 4px;
  transition: background 0.18s ease;
}
.start-list a:hover { background: var(--surface-2); }
.start-list a::before {
  content: counter(start, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass-strong);
  font-variant-numeric: tabular-nums;
}
.start-list .st-title { font-weight: 700; font-size: 1rem; }
.start-list .st-note { color: var(--ink-soft); font-size: 0.88rem; display: block; margin-top: 2px; }
.start-list svg { width: 15px; height: 15px; stroke: var(--ink-faint); transition: transform 0.18s var(--ease-out); }
.start-list a:hover svg { transform: translateX(4px); stroke: var(--brass-strong); }

.section-block { margin-bottom: 58px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--forest-900);
  margin-bottom: 0;
}
@media (prefers-color-scheme: dark) {
  .section-head { border-bottom-color: var(--line-strong); }
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 1.92rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
}
.section-count {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.section-desc {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.article-list { list-style: none; margin: 18px 0 0; padding: 0; }
.article-list li { border-bottom: 1px solid var(--line); }
.article-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 2px 16px 0;
  transition: padding-left 0.2s var(--ease-out);
}
.article-list a:hover { padding-left: 10px; }
.article-list h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.article-list a:hover h3 { color: var(--forest-800); }
@media (prefers-color-scheme: dark) { .article-list a:hover h3 { color: var(--brass); } }
.article-list p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 62ch;
}
.article-list .arrow {
  width: 16px;
  height: 16px;
  stroke: var(--line-strong);
  transition: transform 0.2s var(--ease-out), stroke 0.2s ease;
}
.article-list a:hover .arrow { transform: translateX(4px); stroke: var(--brass-strong); }

.about-strip {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 36px;
}
.about-strip h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.about-strip p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.about-links { display: flex; flex-direction: column; gap: 6px; }
.about-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.16s ease;
}
.about-links a:hover { color: var(--brass-strong); }
@media (max-width: 720px) { .about-strip { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---------- Article ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb svg { width: 12px; height: 12px; stroke: var(--line-strong); }

.article-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 26px;
}
.article-head h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.05rem, 3.9vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 24ch;
}
.article-standfirst {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 52ch;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .dot { width: 3px; height: 3px; background: var(--brass-strong); }

.toc {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  padding: 18px 20px;
  margin: 0 0 30px;
  border-radius: var(--radius);
}
.toc h2 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-weight: 700;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 3px 0; font-size: 0.9rem; }
.toc a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.toc a:hover { color: var(--brass-strong); }

.article-body { max-width: 66ch; }
.article-body > h2 {
  margin: 42px 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 1.82rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--header-h) + 18px);
  text-wrap: balance;
}
.article-body > h3 {
  margin: 28px 0 10px;
  font-size: 1.07rem;
  font-weight: 700;
  line-height: 1.4;
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.article-body p { margin: 0 0 17px; }
.article-body ul,
.article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-body strong { font-weight: 700; }
.article-body a { color: var(--brass-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--ink); }
.article-body figure { margin: 28px 0; }
.article-body img { width: 100%; height: auto; }
.article-body figcaption { font-size: 0.78rem; color: var(--ink-faint); margin-top: 8px; }
.article-body h2 + p:first-of-type { font-size: 1.03rem; }
.article-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 22px;
  border-left: 1px solid var(--brass-strong);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* tables */
.table-wrap { overflow-x: auto; margin: 26px 0; }
table, .error-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
table caption { caption-side: top; text-align: left; font-size: 0.78rem; color: var(--ink-faint); padding-bottom: 8px; }
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  background: var(--forest-900);
  color: oklch(0.96 0.01 95);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: none;
}
tbody tr:nth-child(even) { background: color-mix(in oklch, var(--surface-2) 60%, transparent); }
td strong { color: var(--ink); }

/* boxes */
.info-box,
.tip-box,
.warning-box,
.key-takeaways {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.65;
}
.info-box strong,
.tip-box strong,
.warning-box strong,
.key-takeaways strong { color: var(--ink); }
.info-box { background: color-mix(in oklch, var(--forest-900) 6%, var(--surface)); }
.tip-box { background: color-mix(in oklch, var(--ok) 8%, var(--surface)); border-color: color-mix(in oklch, var(--ok) 34%, var(--line)); }
.warning-box { background: color-mix(in oklch, var(--warn) 11%, var(--surface)); border-color: color-mix(in oklch, var(--warn) 38%, var(--line)); }
@media (prefers-color-scheme: dark) {
  .info-box { background: color-mix(in oklch, var(--forest-800) 45%, var(--surface)); }
  .tip-box { background: color-mix(in oklch, var(--ok) 16%, var(--surface)); }
  .warning-box { background: color-mix(in oklch, var(--warn) 16%, var(--surface)); }
}
.info-box > :first-child,
.tip-box > :first-child,
.warning-box > :first-child,
.key-takeaways > :first-child { margin-top: 0; }
.info-box > :last-child,
.tip-box > :last-child,
.warning-box > :last-child,
.key-takeaways > :last-child { margin-bottom: 0; }

/* FAQ */
.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item h3 {
  margin: 0 0 7px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* glossary */
dl { margin: 24px 0; }
dt {
  font-weight: 700;
  font-size: 1rem;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
dt:first-of-type { border-top: none; padding-top: 0; }
dd { margin: 5px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* article footer nav */
.article-foot {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}
.article-foot a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.article-foot a:hover { color: var(--brass-strong); }
.article-foot svg { width: 14px; height: 14px; stroke: currentColor; }

.next-reads { margin-top: 46px; }
.next-reads h2 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.next-reads ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.next-reads li { border-bottom: 1px solid var(--line); }
.next-reads a { display: block; padding: 12px 0; font-size: 0.95rem; color: var(--ink-soft); }
.next-reads a:hover { color: var(--brass-strong); }

/* ---------- Ad slots ---------- */

.ad-slot {
  margin: 0 0 28px;
  min-height: 0;
  text-align: center;
}
.ad-slot-label {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Cookie bar ---------- */

.vd-cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  max-width: 780px;
  margin: 0 auto;
  display: none;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--forest-900);
  border: 1px solid oklch(0.85 0.05 85 / 0.22);
  border-radius: 2px;
  box-shadow: 0 14px 40px oklch(0.15 0.02 165 / 0.35);
  color: oklch(0.95 0.01 95);
  font-size: 0.86rem;
  line-height: 1.5;
}
.vd-cookie-bar.show { display: flex; }
.vd-cookie-bar p { margin: 0; flex: 1 1 300px; color: oklch(0.93 0.01 95 / 0.86); }
.vd-cookie-bar a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
.vd-cookie-actions { display: flex; gap: 8px; }
.vd-cookie-actions button {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.14s var(--ease-out);
}
.vd-cookie-actions button:active { transform: scale(0.97); }
.vd-btn-ghost { background: transparent; border: 1px solid oklch(0.95 0.01 95 / 0.35); color: oklch(0.97 0.01 95); }
.vd-btn-ghost:hover { background: oklch(0.30 0.04 165); }
.vd-btn-solid { background: var(--brass); border: 1px solid var(--brass); color: oklch(0.19 0.03 90); }
.vd-btn-solid:hover { background: oklch(0.80 0.10 82); }

/* ---------- Footer ---------- */

.site-footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-strong);
  padding: 22px 52px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--brass-strong); }
@media (max-width: 640px) { .site-footer {
  grid-column: 1 / -1; padding: 20px 18px 34px; } }


.drawer-close {
  display: none;
  margin-left: auto;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.drawer-close svg { width: 16px; height: 16px; stroke: currentColor; }
.drawer-close:hover { background: var(--surface-2); }
@media (max-width: 900px) {
  .drawer-close { display: inline-flex; }
  .sidebar-brandline { position: sticky; top: 0; background: var(--surface); z-index: 2; }
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.notice-box {
  max-width: 62ch;
  margin: 30px 0;
  font-size: 0.86rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-figure img { clip-path: inset(0 0 0 0); }
}
