/* ============================================================
   VÚB · Testovacie dáta – Právnická osoba
   Dizajnový systém:
   - farby: tmavá zelenočierna (#0B1410) + VÚB zelená #0B4A35 + VÚB oranžová #EA600E
   - typografia: systémový sans, škála 12/14/15/17/21/26/36
   - layout: sidebar 264px + obsah max 920px
   ============================================================ */

:root {
  --bg: #0b1410;
  --bg-soft: #0e1a15;
  --panel: #122019;
  --panel-2: #17291f;
  --panel-3: #1d3226;
  --line: #24382c;
  --line-soft: #1b2c22;

  --text: #e9efea;
  --muted: #9cb2a5;
  --faint: #6e8378;

  --brand: #0b4a35;        /* VÚB zelená */
  --brand-bright: #17724f;
  --orange: #ea600e;       /* VÚB oranžová */
  --orange-soft: #f0762b;

  --ok: #4cc38a;
  --ok-bg: rgba(76, 195, 138, .12);
  --fail: #e5484d;
  --fail-bg: rgba(229, 72, 77, .12);
  --warn: #f5b43b;
  --warn-bg: rgba(245, 180, 59, .10);
  --info-bg: rgba(76, 149, 195, .10);
  --info: #6fb5e0;

  --radius: 10px;
  --radius-sm: 6px;
  --sidebar-w: 264px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Consolas", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(234, 96, 14, .35); }

a { color: var(--orange-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.layout { display: flex; min-height: 100vh; }

.side {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-soft);
  border-right: 1px solid var(--line-soft);
  padding: 22px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 40px 48px 90px;
}

.content { max-width: 920px; }

/* ---------- brand ---------- */

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

.brand-mark {
  width: 42px; height: 42px;
  background: var(--brand);
  border: 1px solid var(--brand-bright);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  color: #fff;
  flex-shrink: 0;
}

.brand-mark span { border-bottom: 2px solid var(--orange); padding-bottom: 1px; }

.brand-name { line-height: 1.3; }
.brand-name strong { display: block; font-size: 14px; }
.brand-name span { font-size: 12px; color: var(--muted); }

/* ---------- nav ---------- */

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
  margin: 16px 10px 6px;
  font-weight: 600;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  border-left: 2px solid transparent;
}

.nav a svg { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; }

.nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }

.nav a[aria-current="page"] {
  background: var(--panel-2);
  color: #fff;
  border-left-color: var(--orange);
}

.side-foot {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.8;
}
.side-foot a { display: block; color: var(--muted); font-size: 12.5px; }
.side-foot a:hover { color: var(--orange-soft); }

/* top bar (na desktope len brand, na mobile aj tlačidlo menu) */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.menu-btn { display: none; }

/* ---------- typography ---------- */

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--orange-soft);
  margin-bottom: 10px;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 750;
  margin-bottom: 14px;
}

.lead { font-size: 16.5px; color: var(--muted); max-width: 64ch; }

h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 52px 0 6px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

h2:first-of-type { border-top: 0; padding-top: 0; }

.h2-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

h3 { font-size: 16.5px; font-weight: 650; margin: 26px 0 8px; }

p + p { margin-top: 10px; }

.small { font-size: 13px; color: var(--muted); }

strong { font-weight: 650; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 14px; margin: 20px 0; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  display: block;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}

a.card:hover { text-decoration: none; border-color: var(--brand-bright); background: var(--panel-2); }

.card .icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.card .icon svg { width: 18px; height: 18px; stroke: var(--orange-soft); }

.card h3 { margin: 0 0 6px; font-size: 15.5px; }
.card p { font-size: 13.5px; color: var(--muted); }

.card .go {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--orange-soft);
}
.card .go svg { width: 14px; height: 14px; stroke: currentColor; }

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--muted);
  margin-bottom: 10px;
}

/* ---------- status ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.pill svg { width: 12px; height: 12px; stroke: currentColor; }
.pill.ok   { background: var(--ok-bg);   color: var(--ok); }
.pill.fail { background: var(--fail-bg); color: var(--fail); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.neutral { background: var(--panel-3); color: var(--muted); }

.status-table { width: 100%; border-collapse: collapse; margin: 18px 0 6px; }
.status-table th, .status-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  vertical-align: top;
}
.status-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--faint);
  font-weight: 650;
}
.status-table td:last-child { color: var(--muted); font-size: 13.5px; }
.status-table tr:last-child td { border-bottom: 0; }

/* ---------- callouts ---------- */

.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 18px 0;
  font-size: 14px;
  border: 1px solid;
}
.callout svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.callout > div > strong { display: block; margin-bottom: 2px; }
.callout p { color: inherit; opacity: .92; }

.callout.warn { background: var(--warn-bg); border-color: rgba(245,180,59,.3); color: #f0d9a8; }
.callout.warn svg { stroke: var(--warn); }
.callout.fail { background: var(--fail-bg); border-color: rgba(229,72,77,.3); color: #f2c1c3; }
.callout.fail svg { stroke: var(--fail); }
.callout.info { background: var(--info-bg); border-color: rgba(111,181,224,.25); color: #c8dfef; }
.callout.info svg { stroke: var(--info); }
.callout.ok { background: var(--ok-bg); border-color: rgba(76,195,138,.3); color: #c4e8d5; }
.callout.ok svg { stroke: var(--ok); }

.callout code { background: rgba(0,0,0,.3); }

/* ---------- steps ---------- */

.steps { margin: 26px 0; display: flex; flex-direction: column; }

.step {
  display: flex;
  gap: 18px;
  padding-bottom: 34px;
  position: relative;
}

.step:last-child { padding-bottom: 6px; }

.step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.step:last-child::before { display: none; }

.step-num {
  width: 35px; height: 35px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
  border: 1px solid var(--brand-bright);
  color: #fff;
  font-weight: 750;
  font-size: 14px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.step-body { min-width: 0; flex: 1; padding-top: 5px; }
.step-body h3 { margin: 0 0 8px; font-size: 16.5px; }
.step-body > p { color: var(--muted); font-size: 14px; }

/* ---------- screenshots ---------- */

figure.shot {
  margin: 16px 0;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  background: #fff;
}

figure.shot figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
figure.shot figcaption svg { width: 13px; height: 13px; stroke: var(--faint); flex-shrink: 0; }

.shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shot-row figure.shot { margin: 16px 0 0; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 8, .92);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox-hint {
  position: fixed;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- tables ---------- */

.tbl-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line-soft); border-radius: var(--radius); }

table.params { width: 100%; border-collapse: collapse; font-size: 13.5px; }

table.params th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--faint);
  font-weight: 650;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

table.params td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.params tr:last-child td { border-bottom: 0; }
table.params td:first-child { white-space: nowrap; font-family: var(--mono); font-size: 12.5px; color: var(--orange-soft); }
table.params td:nth-child(2) { color: var(--text); }
table.params td:last-child { color: var(--muted); }
table.params .req { color: var(--warn); font-size: 11px; font-weight: 700; margin-left: 4px; }

/* ---------- code ---------- */

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

pre {
  background: #0a120e;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 14px 0;
  line-height: 1.6;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  color: #cfe0d5;
  white-space: pre;
}

pre .c { color: var(--faint); }          /* komentár */
pre .k { color: #f0762b; }               /* kľúčové slovo */
pre .s { color: #8fd7ae; }               /* string */
pre .f { color: #6fb5e0; }               /* volanie */
pre .hl { background: rgba(229,72,77,.15); display: inline-block; width: 100%; }

.code-title {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin: 16px 0 -8px;
}

/* ---------- copy chip ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 5px 6px 5px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  margin: 3px 6px 3px 0;
}

.chip button {
  background: var(--panel-3);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font);
  font-weight: 600;
  padding: 2px 8px;
  cursor: pointer;
}
.chip button:hover { color: var(--text); border-color: var(--brand-bright); }
.chip button.done { color: var(--ok); border-color: var(--ok); }

/* ---------- flow diagram ---------- */

.flow {
  margin: 22px 0;
  display: flex;
  flex-direction: column;
}

.flow-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.flow-node .icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.flow-node .icon svg { width: 16px; height: 16px; stroke: var(--orange-soft); }
.flow-node.is-fail .icon svg { stroke: var(--fail); }
.flow-node.is-fail { border-color: rgba(229,72,77,.35); }

.flow-node h4 { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flow-node p { font-size: 13px; color: var(--muted); margin-top: 2px; }

.flow-link {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin-left: 32px;
}

/* ---------- misc ---------- */

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; margin: 14px 0; }
.kv dt { color: var(--faint); }
.kv dd { color: var(--text); font-family: var(--mono); font-size: 13px; }

hr.sep { border: 0; border-top: 1px solid var(--line-soft); margin: 40px 0; }

.footer {
  margin-top: 70px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 50px; }
.pager a {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.pager a:hover { text-decoration: none; border-color: var(--brand-bright); background: var(--panel-2); }
.pager a span { display: block; font-size: 11px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 3px; }
.pager a.next { text-align: right; }

ul.clean { list-style: none; }
ul.clean li {
  padding: 7px 0 7px 24px;
  position: relative;
  font-size: 14px;
  color: var(--muted);
}
ul.clean li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--brand-bright);
}
ul.clean li strong { color: var(--text); }

ol.plain { margin: 10px 0 10px 22px; font-size: 14px; color: var(--muted); }
ol.plain li { padding: 3px 0; }
ol.plain strong { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .layout { flex-direction: column; }

  .side {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 14px 18px;
    gap: 12px;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .menu-btn {
    display: inline-block;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
  }

  .side .nav, .side .side-foot { display: none; }
  .side.open .nav, .side.open .side-foot { display: flex; }
  .side.open .side-foot { display: block; }

  .main { padding: 28px 20px 70px; }
  h1 { font-size: 27px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .pager a.next { text-align: left; }
}
