/* ============================================================
   Sanatorium - kompendium leczenia uzdrowiskowego
   Design system: mineral spring / warm copper on cool mist
   ============================================================ */

:root {
  --bg: #eef3ef;
  --surface: #f8faf7;
  --surface-2: #e3ece6;
  --ink: #15231f;
  --ink-soft: #3d514a;
  --muted: #566a62;
  --line: #cfdcd4;
  --line-strong: #a9bfb4;
  --accent: #0f5c4a;
  --accent-deep: #0a4438;
  --accent-soft: #d9e8df;
  --copper: #9a4f16;
  --copper-soft: #f0dfd0;
  --gold: #c99a3f;
  --info-bg: #e4efe8;
  --info-border: #bfd6c8;
  --tip-bg: #f3edd9;
  --tip-border: #dfd0a4;
  --warn-bg: #f5e5da;
  --warn-border: #e2c0a9;
  --header-bg: rgba(238, 243, 239, 0.9);
  --shadow-soft: 0 4px 10px rgba(21, 35, 31, 0.08);
  --font-display: "Petrona", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --header-h: 68px;
  --sidebar-w: 300px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1411;
    --surface: #101d18;
    --surface-2: #16261f;
    --ink: #e7efe9;
    --ink-soft: #c2d2c9;
    --muted: #9db2a8;
    --line: #243830;
    --line-strong: #355247;
    --accent: #6fd3b2;
    --accent-deep: #9ce4cb;
    --accent-soft: #16352b;
    --copper: #e0a06a;
    --copper-soft: #2a1a10;
    --gold: #d9b264;
    --info-bg: #12251e;
    --info-border: #28483b;
    --tip-bg: #241f12;
    --tip-border: #4a3d1d;
    --warn-bg: #26160f;
    --warn-border: #4d2c1c;
    --header-bg: rgba(10, 20, 17, 0.9);
    --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.35);
  }
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 8% -4%, rgba(15, 92, 74, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 36% at 98% 104%, rgba(154, 79, 22, 0.05), transparent 72%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(ellipse 60% 40% at 8% -4%, rgba(111, 211, 178, 0.06), transparent 70%),
      radial-gradient(ellipse 50% 36% at 98% 104%, rgba(224, 160, 106, 0.05), transparent 72%);
  }
}

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

a { color: var(--accent); text-decoration: none; }

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

p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 3px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand-mark {
  width: 27px;
  height: 27px;
  color: var(--accent);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

#searchInput {
  width: 300px;
  max-width: 38vw;
  height: 40px;
  padding: 0 14px 0 37px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
#searchInput::placeholder { color: var(--muted); opacity: 1; }
#searchInput:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
#searchInput:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(430px, 88vw);
  max-height: 62vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  z-index: 70;
}

.search-result {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover,
.search-result:focus { background: var(--accent-soft); }
.search-result strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}
.search-result span {
  display: block;
  margin-top: 3px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.search-empty { padding: 16px; font-size: 0.9rem; color: var(--muted); }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn:active { transform: scale(0.96); }

/* ---------- Shell + sidebar ---------- */

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 34px 26px 48px 0;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.sidebar-nav { padding-right: 4px; }

.sidebar-home {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 3px;
}
.sidebar-home svg { width: 16px; height: 16px; color: var(--accent); }
.sidebar-home:hover { background: var(--accent-soft); }

.sidebar-group { margin-top: 26px; }
.sidebar-group:first-of-type { margin-top: 0; }

.sidebar-heading {
  margin: 0 0 8px;
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sidebar-link {
  position: relative;
  display: block;
  padding: 7px 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink-soft);
  border-radius: 3px;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.sidebar-link:hover { color: var(--ink); background: var(--surface-2); }
.sidebar-link.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.sidebar-note {
  margin: 30px 10px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 14, 11, 0.5);
}

/* ---------- Main + shared ---------- */

.main {
  min-width: 0;
  padding: 46px 0 72px 56px;
}

.main > #app { max-width: 900px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.btn span { transition: transform 0.2s var(--ease-out); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

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

.home-hero { padding-top: 8px; }

.hero-kicker {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7.5vw, 5.9rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.home-hero h1 .h1-sub {
  display: block;
  margin-top: 0.08em;
  font-size: 0.46em;
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--copper);
}

.hero-lead {
  max-width: 58ch;
  margin: 24px 0 30px;
  font-size: 1.18rem;
  line-height: 1.64;
  color: var(--ink-soft);
}

.hero-figure {
  margin: 44px 0 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
  clip-path: inset(0 100% 0 0);
  animation: imageReveal 0.95s var(--ease-out) 0.12s forwards;
}

.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 9px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.hero-figure figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.hero-figure figcaption a:hover { color: var(--accent); }

/* ---------- Home table of contents ---------- */

.toc { margin-top: 96px; }

.toc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
  border-top: 2px solid var(--ink);
}
.toc-head h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.02em;
}
.toc-head span {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.toc-group {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line);
}

.toc-group-head h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.toc-group-head p {
  margin: 7px 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.toc-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
}

.toc-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
}
.toc-link .t { transition: color 0.18s ease; }
.toc-link .arrow {
  flex: 0 0 auto;
  color: var(--copper);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.18s ease, transform 0.18s var(--ease-out);
}
.toc-link:hover .t { color: var(--accent); }
.toc-link:hover .arrow { opacity: 1; transform: translateX(0); }

/* ---------- Home closing ---------- */

.home-close {
  margin-top: 64px;
  padding: 28px 30px;
  background: var(--surface-2);
  border-radius: 4px;
}
.home-close h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
}
.home-close p {
  max-width: 62ch;
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
}
.home-close a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.home-close a:hover { color: var(--copper); }

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

.article { max-width: 680px; margin: 0 auto; padding-top: 4px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  font-size: 0.79rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line-strong); }

.article-section {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--accent);
}

.article h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.03em;
}

.article-lead {
  max-width: 60ch;
  margin: 18px 0 20px;
  font-size: 1.2rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-body {
  margin-top: 34px;
  font-size: 1.13rem;
  line-height: 1.74;
}

.article-body > p:first-child {
  font-size: 1.08rem;
  color: var(--ink);
}

.article-body h2 {
  margin: 46px 0 14px;
  font-size: 1.66rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.article-body h3 {
  margin: 30px 0 9px;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.article-body p { margin: 0 0 20px; }

.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding-left: 1.25em;
}
.article-body li { margin-bottom: 7px; }
.article-body li::marker { color: var(--copper); }

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--copper); }

.article-body strong { font-weight: 650; }

.article-body table {
  width: 100%;
  margin: 26px 0 30px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.55;
}
.article-body thead th {
  padding: 11px 13px;
  background: var(--surface-2);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  font-weight: 650;
  vertical-align: bottom;
}
.article-body td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-body tbody tr:last-child td { border-bottom: 1px solid var(--line-strong); }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.info-box,
.tip-box,
.warning-box {
  margin: 26px 0;
  padding: 18px 21px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}
.info-box { background: var(--info-bg); border-color: var(--info-border); }
.tip-box { background: var(--tip-bg); border-color: var(--tip-border); }
.warning-box { background: var(--warn-bg); border-color: var(--warn-border); }
.info-box p:last-child,
.tip-box p:last-child,
.warning-box p:last-child { margin-bottom: 0; }
.info-box strong,
.tip-box strong,
.warning-box strong { font-weight: 700; }

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item h3 {
  margin: 0 0 7px;
  font-size: 1.13rem;
}
.faq-item p { margin: 0; color: var(--ink-soft); }

dl.glossary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  margin: 30px 0;
  border-top: 1px solid var(--line);
}
dl.glossary dt {
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.35;
}
dl.glossary dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin-top: 60px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.article-nav a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
}
.article-nav .dir {
  display: block;
  margin-bottom: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-nav .title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.35;
  transition: color 0.18s ease;
}
.article-nav a:hover .title { color: var(--accent); }
.article-nav .next { text-align: right; }
.article-nav .placeholder { display: block; }

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

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 46px 32px 26px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}
.footer-brand .brand-name { font-size: 1.25rem; }
.footer-brand p {
  max-width: 46ch;
  margin: 9px 0 0;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 3px;
}
.footer-links a {
  font-size: 0.83rem;
  color: var(--ink-soft);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1440px;
  margin: 34px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Motion ---------- */

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes imageReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

#app > * { animation: pageIn 0.34s var(--ease-out) both; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  :root { --sidebar-w: 262px; }
  .main { padding-left: 40px; }
  .toc-group { grid-template-columns: 178px minmax(0, 1fr); gap: 26px; }
  dl.glossary { grid-template-columns: 165px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .header-inner { padding: 0 18px; }
  .brand-name { font-size: 1.24rem; }
  .brand-mark { width: 24px; height: 24px; }
  .menu-btn { display: inline-flex; }
  #searchInput { width: 220px; max-width: 44vw; height: 38px; font-size: 0.84rem; }
  .search-icon { width: 16px; height: 16px; left: 11px; }

  .shell {
    display: block;
    padding: 0 18px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 90;
    width: min(86vw, 340px);
    height: 100dvh;
    padding: 24px 20px calc(30px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-right: 1px solid var(--line);
    transform: translateX(-102%);
    transition: transform 0.32s var(--ease-drawer);
    overscroll-behavior: contain;
  }
  .sidebar.open { transform: translateX(0); }

  .main { padding: 34px 0 56px; }

  body.menu-open { overflow: hidden; }

  .home-hero h1 { font-size: clamp(3.1rem, 13vw, 4.6rem); }
  .hero-lead { font-size: 1.06rem; }
  .hero-figure { margin-top: 34px; }
  .hero-figure img { aspect-ratio: 16 / 10; }

  .toc { margin-top: 62px; }
  .toc-group { grid-template-columns: 1fr; gap: 13px; padding: 25px 0 27px; }
  .toc-group-head p { max-width: 52ch; }
  .toc-links { grid-template-columns: 1fr; column-gap: 0; }

  .article h1 { font-size: clamp(2.2rem, 7.5vw, 3.1rem); }
  .article-lead { font-size: 1.06rem; }
  .article-body { font-size: 1.09rem; }

  dl.glossary { grid-template-columns: 1fr; border-top: 0; }
  dl.glossary dt { padding: 14px 0 3px; border-bottom: 0; }
  dl.glossary dd { padding: 0 0 14px; border-bottom: 1px solid var(--line); }

  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 600px) {
  body { font-size: 18px; }
  .header-inner { gap: 10px; }
  .brand-name { font-size: 1.14rem; }
  .brand { gap: 7px; }
  .brand-mark { width: 21px; height: 21px; }
  #searchInput { width: 150px; padding-left: 32px; font-size: 0.8rem; }
  .search-icon { width: 15px; height: 15px; left: 9px; }
  .search-results { right: -46px; width: 92vw; }

  .home-hero { padding-top: 0; }
  .hero-kicker { font-size: 0.92rem; margin-bottom: 14px; }
  .home-hero h1 { font-size: clamp(2.85rem, 14.5vw, 3.7rem); }
  .hero-lead { margin: 22px 0 26px; font-size: 1rem; }
  .hero-figure { margin-top: 28px; }
  .hero-figure figcaption { flex-direction: column; gap: 3px; }

  .toc-head h2 { font-size: 1.65rem; }
  .toc-link { font-size: 0.94rem; }

  .article h1 { font-size: 2.12rem; }
  .article-section { font-size: 0.94rem; }
  .article-body h2 { font-size: 1.45rem; margin-top: 38px; }
  .article-body h3 { font-size: 1.13rem; }
  .article-body { font-size: 1.07rem; }
  .article-body table { font-size: 0.86rem; }
  .article-body thead th,
  .article-body td { padding: 9px 10px; }

  .info-box,
  .tip-box,
  .warning-box { padding: 15px 16px; font-size: 0.94rem; }

  .article-nav { grid-template-columns: 1fr; gap: 0; }
  .article-nav .next { text-align: left; }
  .article-nav .placeholder { display: none; }

  .home-close { padding: 22px 20px; }
  .site-footer { padding: 36px 18px 22px; }
}

@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: none; }
}

@media print {
  .site-header, .sidebar, .site-footer, #vd-cookie-bar, .article-nav { display: none; }
  .shell { display: block; padding: 0; }
  .main { padding: 0; }
  body { background: #fff; color: #000; font-size: 12pt; }
}
