/* ==========================================================================
   Transport i Spedycja - design system
   Paleta: głęboki granat (navy) + bursztyn (amber) + chłodna biel.
   Typografia: Space Grotesk (nagłówki), IBM Plex Sans (tekst), IBM Plex Mono (meta).
   ========================================================================== */

html { font-size: 17px; }

:root {
  --header-h: 66px;
  --sidebar-w: 304px;

  --bg: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f6f8f9;
  --ink: #0f1a24;
  --ink-2: #2b3d4d;
  --muted: #51636f;
  --line: #d6dee4;
  --line-strong: #b8c6d1;

  --navy: #0b1a26;
  --navy-2: #102a3d;
  --navy-3: #1a3b52;
  --amber: #e39a2d;
  --amber-bright: #f0aa43;
  --amber-ink: #8a5510;
  --amber-soft: #f8ecd8;
  --amber-line: #e8cfa4;

  --blue-soft: #e7f0f7;
  --blue-line: #c3d8e8;
  --green-soft: #e5f2e9;
  --green-line: #bcdcc7;
  --red-soft: #f9e8e6;
  --red-line: #e8c2bd;

  --radius: 8px;
  --radius-sm: 5px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-pop: 0 18px 44px rgba(7, 19, 29, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a131b;
    --surface: #101d28;
    --surface-2: #142431;
    --ink: #e9eff4;
    --ink-2: #c6d3dd;
    --muted: #9fb1be;
    --line: #22333f;
    --line-strong: #334b5c;

    --navy: #07121a;
    --navy-2: #0d2030;
    --navy-3: #163346;
    --amber: #f0aa43;
    --amber-bright: #f6bb63;
    --amber-ink: #f0c07a;
    --amber-soft: #2b2113;
    --amber-line: #4a3618;

    --blue-soft: #12232f;
    --blue-line: #234252;
    --green-soft: #11261c;
    --green-line: #234a34;
    --red-soft: #2a1513;
    --red-line: #4d2824;

    --shadow-pop: 0 18px 44px rgba(0, 0, 0, 0.5);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(1100px 520px at 88% -8%, rgba(26, 59, 82, 0.09), transparent 62%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0 0 1.05em; }

a { color: var(--amber-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img { max-width: 100%; }

::selection { background: var(--amber); color: #14100a; }

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

[hidden] { display: none !important; }

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

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 300;
  background: var(--amber); color: #14100a; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 10px; }

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

.app-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 20px;
  background: var(--navy);
  color: #f2f6f9;
  border-bottom: 1px solid rgba(227, 154, 45, 0.55);
}

.brand {
  display: flex; align-items: center; gap: 11px;
  color: #ffffff; text-decoration: none; flex: 0 0 auto;
}
.brand:hover { color: #ffffff; }

.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--amber); color: #10161c;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.02em; border-radius: 3px;
}

.brand-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; line-height: 1.1; letter-spacing: -0.01em;
  display: block; white-space: nowrap;
}
.brand-name { display: block; }
.brand-text em { font-style: normal; color: var(--amber); }
.brand-sub {
  display: block; margin-top: 3px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: #9db2c1;
}

.search-wrap {
  position: relative; margin-left: auto;
  display: flex; align-items: center;
  width: 330px; max-width: 42vw;
}
.search-icon {
  position: absolute; left: 11px; color: #94aab9; pointer-events: none;
}
#searchInput {
  width: 100%; height: 38px;
  padding: 0 12px 0 34px;
  font-family: var(--font-body); font-size: 0.9rem;
  color: #ffffff; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
#searchInput::placeholder { color: #9db1bf; }
#searchInput:focus {
  outline: none; border-color: var(--amber);
  background: rgba(255, 255, 255, 0.11);
}
#searchInput::-webkit-search-cancel-button { filter: invert(0.8); }

.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 auto;
  background: transparent; color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.18s var(--ease);
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.08); }
.menu-btn:active { transform: scale(0.97); }

/* Search results */
.search-results {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: min(470px, 92vw); max-height: 62vh; overflow: auto;
  padding: 6px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); z-index: 120;
}
.sr-item {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
}
.sr-item:hover, .sr-item:focus-visible { background: var(--surface-2); color: var(--ink); }
.sr-section {
  display: block; font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-ink);
  margin-bottom: 2px;
}
.sr-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.sr-empty { padding: 14px 12px; color: var(--muted); font-size: 0.9rem; margin: 0; }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.sidebar {
  position: fixed; top: var(--header-h); left: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 90;
  padding: 20px 14px 26px;
  background: var(--navy);
  border-right: 1px solid #1d3444;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #33506400 transparent;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: #2a4457; border-radius: 8px; }

.sidebar-head {
  margin: 0 0 14px; padding: 0 10px;
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: #7e95a6;
}

.side-group { margin-bottom: 20px; }
.side-section {
  padding: 12px 10px 7px; margin-bottom: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8198a8;
}
.side-link {
  position: relative; display: block;
  padding: 7px 10px 7px 14px; margin-bottom: 1px;
  font-size: 0.9rem; line-height: 1.38;
  color: #b9c9d4; text-decoration: none; border-radius: 4px;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.side-link::before {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 3px; height: 3px; border-radius: 50%;
  background: #47657a; transition: background 0.16s var(--ease), height 0.16s var(--ease);
}
.side-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
.side-link.active { color: #ffffff; background: rgba(227, 154, 45, 0.12); }
.side-link.active::before { background: var(--amber); height: 14px; top: 8px; border-radius: 2px; }

.sidebar-foot {
  margin: 22px 10px 0; padding-top: 16px;
  border-top: 1px solid #1d3444;
  font-family: var(--font-mono); font-size: 0.68rem; line-height: 1.7;
  letter-spacing: 0.04em; color: #7e95a6;
}
.sidebar-foot p { margin: 0 0 8px; }
.sidebar-foot a { color: #c8d6df; text-decoration: none; border-bottom: 1px solid #3a576a; }
.sidebar-foot a:hover { color: var(--amber-bright); }

.sidebar-overlay {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(4, 12, 19, 0.55);
}

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

.shell {
  margin-left: var(--sidebar-w);
  padding: calc(var(--header-h) + 28px) clamp(18px, 3.4vw, 44px) 0;
  display: flex; justify-content: center;
}
#content { width: 100%; max-width: 1020px; min-height: 62vh; }
#content:focus { outline: none; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  min-height: clamp(380px, 52vh, 520px);
  display: flex; align-items: flex-end;
  background: var(--navy);
  margin-bottom: clamp(48px, 6vw, 68px);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
  transform: scale(1.05);
  animation: heroSettle 1.5s var(--ease) forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }

.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(94deg, rgba(5, 16, 25, 0.95) 0%, rgba(5, 16, 25, 0.84) 38%, rgba(5, 16, 25, 0.26) 76%, rgba(5, 16, 25, 0.06) 100%),
    linear-gradient(0deg, rgba(5, 16, 25, 0.68) 0%, transparent 42%);
}

.hero-copy {
  position: relative; z-index: 2;
  padding: clamp(24px, 4.2vw, 52px);
  max-width: 660px;
}
.hero-kicker {
  margin: 0 0 16px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-bright);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.5vw, 3.55rem);
  font-weight: 700; line-height: 1.03; letter-spacing: -0.03em;
  color: #ffffff; text-wrap: balance;
}
.hero-lead {
  margin: 0 0 24px; max-width: 47ch;
  font-size: 1.02rem; line-height: 1.65; color: #d3e0e9;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 4px;
  background: var(--amber); color: #14100a;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.hero-cta span { transition: transform 0.18s var(--ease); }
.hero-cta:hover { background: var(--amber-bright); color: #14100a; transform: translateY(-1px); }
.hero-cta:hover span { transform: translateX(4px); }
.hero-cta:active { transform: scale(0.98); }

/* --------------------------------------------------------------------------
   Home sections / manifest list
   -------------------------------------------------------------------------- */

.start-here { margin-bottom: clamp(34px, 5vw, 52px); }

.section-block { margin: 0 0 clamp(38px, 5vw, 56px); }

.section-head {
  display: flex; align-items: baseline; gap: 14px;
  padding-top: 12px; margin-bottom: 2px;
  border-top: 2px solid var(--ink);
}
.section-head h2 {
  margin: 0;
  font-size: 1.28rem; font-weight: 600; letter-spacing: -0.015em;
}
.section-count {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--muted); white-space: nowrap;
}
.section-desc {
  margin: 0 0 10px;
  font-size: 0.9rem; color: var(--muted);
}

.manifest { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.manifest li:last-child a { border-bottom: 1px solid var(--line); }
.manifest a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px;
  gap: 14px; align-items: start;
  padding: 15px 4px;
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.manifest a:hover { background: rgba(255, 255, 255, 0.55); padding-left: 12px; }
@media (prefers-color-scheme: dark) {
  .manifest a:hover { background: rgba(255, 255, 255, 0.035); }
}
.m-num {
  padding-top: 3px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--muted);
}
.m-tag {
  padding-top: 3px;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--amber-ink);
}
.m-title {
  display: block;
  font-family: var(--font-display); font-size: 1.03rem; font-weight: 600;
  line-height: 1.32; color: var(--ink); letter-spacing: -0.005em;
}
.m-excerpt {
  display: block; margin-top: 3px; max-width: 68ch;
  font-size: 0.89rem; line-height: 1.55; color: var(--muted);
}
.m-arrow {
  padding-top: 2px;
  font-size: 1rem; color: var(--amber-ink);
  opacity: 0; transform: translateX(-5px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.manifest a:hover .m-arrow { opacity: 1; transform: translateX(0); }
.manifest a:hover .m-title {
  text-decoration: underline; text-decoration-color: var(--amber);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.manifest-start a { grid-template-columns: 112px minmax(0, 1fr) 22px; }

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

.article { animation: pageIn 0.3s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.breadcrumbs {
  margin: 0 0 20px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--amber-ink); text-decoration: underline; }
.breadcrumbs span { color: var(--line-strong); padding: 0 7px; }

.article-header { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-label {
  display: inline-block; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber-ink);
}
.article-header h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.026em;
  text-wrap: balance;
}
.article-deck {
  margin: 0 0 14px; max-width: 66ch;
  font-size: 1.06rem; line-height: 1.62; color: var(--ink-2);
}
.article-meta {
  margin: 0;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.03em;
  color: var(--muted);
}

.toc {
  margin: 0 0 30px; padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.toc h2 {
  margin: 0 0 8px;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.toc ol {
  margin: 0; padding-left: 1.15em;
  columns: 2; column-gap: 28px;
  font-size: 0.9rem; line-height: 1.5;
}
.toc li { margin-bottom: 4px; break-inside: avoid; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--amber-ink); text-decoration: underline; }

.article-body { max-width: 60ch; }
.article-body > p:first-child { font-size: 1.06rem; color: var(--ink-2); }
.article-body h2 {
  margin: 2em 0 0.55em;
  font-size: 1.42rem; font-weight: 600; letter-spacing: -0.015em;
  text-wrap: balance; scroll-margin-top: calc(var(--header-h) + 18px);
}
.article-body h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.1rem; font-weight: 600; scroll-margin-top: calc(var(--header-h) + 18px);
}
.article-body ul, .article-body ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.article-body li { margin-bottom: 0.35em; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--amber-ink); }

.table-wrap {
  margin: 1.5em 0; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem; line-height: 1.5;
}
.data-table th {
  padding: 10px 13px; text-align: left;
  background: var(--navy-2); color: #eef4f8;
  font-family: var(--font-display); font-weight: 600; font-size: 0.84rem;
  letter-spacing: 0.01em;
}
.data-table td {
  padding: 10px 13px; border-top: 1px solid var(--line);
  vertical-align: top; color: var(--ink-2);
}
.data-table tr:nth-child(even) td { background: var(--surface-2); }

.info-box, .tip-box, .warning-box {
  margin: 1.5em 0; padding: 15px 18px;
  border-radius: var(--radius); font-size: 1rem; line-height: 1.62;
  color: var(--ink);
}
.info-box { background: var(--blue-soft); border: 1px solid var(--blue-line); }
.tip-box { background: var(--green-soft); border: 1px solid var(--green-line); }
.warning-box { background: var(--red-soft); border: 1px solid var(--red-line); }
.info-box p:last-child, .tip-box p:last-child, .warning-box p:last-child { margin-bottom: 0; }
.info-box h3, .tip-box h3, .warning-box h3 { margin-top: 0; margin-bottom: 0.4em; font-size: 1rem; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item details { padding: 0; }
.faq-item summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 15px 34px 15px 2px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--ink); line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-family: var(--font-mono); font-size: 1.2rem; line-height: 1;
  color: var(--amber-ink); transition: transform 0.2s var(--ease);
}
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 28px 16px 2px; font-size: 0.97rem; color: var(--ink-2); }
.faq-a p:last-child { margin-bottom: 0; }

.glossary { margin: 1.4em 0; }
.glossary dt {
  padding-top: 14px; margin-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
}
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: 4px 0 0; font-size: 0.97rem; color: var(--ink-2); }

.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin: 46px 0 4px; padding-top: 20px; border-top: 1px solid var(--line);
}
.article-nav a {
  display: block; padding: 12px 0; text-decoration: none; color: var(--ink);
}
.article-nav a:hover .an-title { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.an-label {
  display: block; margin-bottom: 4px;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.an-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
.article-nav .next { text-align: right; }
.article-nav .next .an-label { color: var(--amber-ink); }

.notfound { padding: 30px 0 60px; max-width: 60ch; }
.notfound h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.025em; margin: 0 0 12px; }
.notfound p { color: var(--ink-2); }

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

.site-footer {
  margin-left: var(--sidebar-w); margin-top: 64px;
  padding: 30px clamp(18px, 3.4vw, 44px);
  background: var(--navy); color: #a9bcc9;
  border-top: 1px solid #1d3444;
}
.footer-inner {
  max-width: 1020px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  font-size: 0.86rem; line-height: 1.6;
}
.footer-brand {
  margin: 0 0 6px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #ffffff;
}
.footer-brand em { font-style: normal; color: var(--amber); }
.footer-note { margin: 0; max-width: 46ch; color: #93a9b8; font-size: 0.82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.footer-links a { color: #c3d2dc; text-decoration: none; font-size: 0.84rem; }
.footer-links a:hover { color: var(--amber-bright); text-decoration: underline; }

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

.vd-cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 860px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 18px;
  background: var(--navy-2); color: #e2ebf1;
  border: 1px solid #2b4a5e; border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  font-size: 0.82rem; line-height: 1.5;
}
.vd-cookie-bar p { margin: 0; max-width: 58ch; }
.vd-cookie-bar a { color: var(--amber-bright); }
.vd-cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.vd-btn-ghost, .vd-btn-solid {
  padding: 9px 14px; border-radius: 4px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.83rem; font-weight: 600;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.vd-btn-ghost { background: transparent; color: #e2ebf1; border: 1px solid #4a6a7e; }
.vd-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.vd-btn-solid { background: var(--amber); color: #14100a; border: 1px solid var(--amber); }
.vd-btn-solid:hover { background: var(--amber-bright); }
.vd-btn-ghost:active, .vd-btn-solid:active { transform: scale(0.97); }

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

@media (max-width: 980px) {
  .app-header { gap: 12px; padding: 0 14px; }
  .menu-btn { display: inline-flex; }
  .sidebar {
    width: 302px; padding-top: 18px;
    transform: translateX(-102%);
    transition: transform 0.28s var(--ease);
    box-shadow: 14px 0 40px rgba(0, 0, 0, 0.28);
  }
  .sidebar.open { transform: translateX(0); }
  .shell { margin-left: 0; }
  .site-footer { margin-left: 0; }
  .brand-sub { display: none; }
  .search-wrap { width: 300px; max-width: none; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 760px) {
  :root { --header-h: 112px; }
  .app-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: 42px 38px;
    align-content: center;
    row-gap: 8px;
    padding: 8px 14px;
  }
  .menu-btn { grid-column: 1; grid-row: 1; }
  .brand { grid-column: 2; grid-row: 1; }
  .search-wrap { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; }
  .search-results { left: 0; right: 0; width: auto; }
  .shell { padding-top: calc(var(--header-h) + 18px); padding-left: 16px; padding-right: 16px; }
  .hero { min-height: 440px; margin-left: -16px; margin-right: -16px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(5, 16, 25, 0.64) 0%, rgba(5, 16, 25, 0.84) 52%, rgba(5, 16, 25, 0.94) 100%);
  }
  .hero-copy { padding: 22px 18px 26px; }
  .hero h1 { font-size: clamp(1.9rem, 8.2vw, 2.5rem); }
  .hero-lead { font-size: 1rem; }
  .section-head h2 { font-size: 1.16rem; }
  .manifest a { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 14px 2px; }
  .manifest-start a { grid-template-columns: 1fr; gap: 4px; }
  .m-tag { padding-top: 0; }
  .m-arrow { display: none; }
  .m-title { font-size: 0.99rem; }
  .m-excerpt { font-size: 0.87rem; }
  .toc ol { columns: 1; }
  .article-header h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .article-nav { grid-template-columns: 1fr; gap: 0; }
  .article-nav .next { text-align: left; border-top: 1px solid var(--line); }
  .data-table { font-size: 0.84rem; min-width: 520px; }
  .vd-cookie-bar { flex-direction: column; align-items: stretch; gap: 10px; left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; font-size: 0.8rem; }
  .vd-cookie-actions { display: flex; gap: 8px; }
  .vd-btn-ghost, .vd-btn-solid { flex: 1; min-height: 40px; font-size: 0.8rem; }
  .footer-inner { flex-direction: column; gap: 16px; }
}

@media (max-width: 430px) {
  .brand-text { font-size: 0.95rem; }
  .brand-mark { width: 30px; height: 30px; font-size: 0.7rem; }
  .hero-cta { width: 100%; justify-content: center; }
  .vd-btn-ghost, .vd-btn-solid { width: 100%; }
}

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