/* ============================================================
   instrukcja-vss.css | Studio VSS.net - dokumentacja on-line
   SoftwareStudio Sp. z o.o. | Wersja 1.1 | 2026-05
   ============================================================ */

/* --- Reset i podstawy --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Nagłówek --- */
header {
  background: #3a4554;
  color: #fff;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

header img.logo {
  height: 36px;
  width: auto;
}

header a {
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  opacity: .95;
}

header a:hover { opacity: 1; text-decoration: underline; }

/* --- Wrapper główny --- */
.layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* --- Sidebar nawigacyjny --- */
nav.sidebar {
  width: 268px;
  min-width: 268px;
  background: #f5f6f8;
  border-right: 1px solid #dde1e7;
  padding: 20px 0 40px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
}

nav.sidebar::-webkit-scrollbar { width: 4px; }
nav.sidebar::-webkit-scrollbar-thumb { background: #c5c9d1; border-radius: 2px; }

nav.sidebar .nav-section {
  margin-top: 20px;
  padding: 0 16px 4px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a9099;
}

nav.sidebar ul {
  list-style: none;
}

nav.sidebar ul li a {
  display: block;
  padding: 6px 20px 6px 20px;
  font-size: .875rem;
  color: #3a4554;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1.4;
}

nav.sidebar ul li a:hover {
  background: #eaecf0;
  color: #ff6a13;
  border-left-color: #ff6a13;
}

nav.sidebar ul li a[aria-current="page"],
nav.sidebar ul li span[aria-current="page"] {
  background: #fff3ec;
  color: #ff6a13;
  border-left-color: #ff6a13;
  font-weight: 600;
}

/* Bieżąca strona w menu — <span> zamiast <a>, kursor domyślny */
nav.sidebar ul li span[aria-current="page"] {
  display: block;
  padding: 6px 20px;
  font-size: .875rem;
  border-left: 3px solid #ff6a13;
  cursor: default;
  line-height: 1.4;
}

/* Podrzędne pozycje menu (poziom 2) */
nav.sidebar ul ul li a {
  padding-left: 36px;
  font-size: .84rem;
  color: #555;
}

/* Poziom 3 */
nav.sidebar ul ul ul li a {
  padding-left: 52px;
  font-size: .82rem;
  color: #666;
}

/* --- Obszar treści --- */
main {
  flex: 1;
  min-width: 0;
  padding: 32px 48px 60px;
  max-width: 900px;
}

/* --- Breadcrumbs --- */
nav.breadcrumb {
  margin-bottom: 24px;
}

nav.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: .8rem;
  color: #8a9099;
}

nav.breadcrumb ol li { display: flex; align-items: center; gap: 4px; }

nav.breadcrumb ol li + li::before {
  content: '›';
  color: #bbb;
  font-size: .9rem;
}

nav.breadcrumb ol li a {
  color: #ff6a13;
  text-decoration: none;
}

nav.breadcrumb ol li a:hover { text-decoration: underline; }

nav.breadcrumb ol li[aria-current="page"] { color: #555; font-weight: 500; }

/* --- Artykuł --- */
article h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1f2b;
  margin-bottom: 20px;
  line-height: 1.25;
  border-bottom: 2px solid #ff6a13;
  padding-bottom: 12px;
}

article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #3a4554;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #ff6a13;
}

article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #3a4554;
  margin: 24px 0 8px;
}

article h4 {
  font-size: .95rem;
  font-weight: 600;
  color: #555;
  margin: 18px 0 6px;
}

article p {
  margin-bottom: 14px;
  color: #333;
}

article ul, article ol {
  margin: 0 0 14px 22px;
  color: #333;
}

article ul li, article ol li { margin-bottom: 6px; }

article strong { color: #1a1f2b; }
article em { color: #555; }

article a {
  color: #ff6a13;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,106,19,.3);
  transition: border-color .15s, color .15s;
}

article a:hover {
  color: #cc5510;
  border-bottom-color: #cc5510;
}

/* --- Tabele --- */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: .9rem;
}

article table th {
  background: #3a4554;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

article table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e0e3e8;
  color: #333;
  vertical-align: top;
}

article table tr:nth-child(even) td { background: #f9fafb; }
article table tr:hover td { background: #fff3ec; }

/* --- Obrazki (ogólne) --- */
article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border: 1px solid #dde1e7;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ══════════════════════════════════════════════════════════════════
   Zrzuty ekranu systemu — figure z img[loading="lazy"]
   Celuje wyłącznie w nowe screenshoty (nie infografiki SVG,
   nie placeholdery z loading="eager").
   Struktura HTML:
     <figure><img loading="lazy"><figcaption>...</figcaption></figure>
     <p>Opis ekranu...</p>
   ══════════════════════════════════════════════════════════════════ */

/* — Górna karta: figure z obrazkiem — */
article figure:has(img[loading="lazy"]):not(.infografika) {
  margin: 40px 0 0;
  border: 1px solid #c4cad4;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,.11), 0 1px 4px rgba(0,0,0,.05);
  background: #fff;
}

/* — Zerowanie ogólnych styli img (override zasad z "article img") — */
article figure:has(img[loading="lazy"]):not(.infografika) img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* — Pasek podpisu (figcaption) — ciemny pasek pod screenshotem — */
article figure:has(img[loading="lazy"]):not(.infografika) figcaption {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 18px 12px;
  background: #2b3545;
  color: #9daab8;
  font-size: .8rem;
  font-style: italic;
  line-height: 1.6;
  border-top: 3px solid #ff6a13;
}

/* — Ikona ◉ przed podpisem — */
article figure:has(img[loading="lazy"]):not(.infografika) figcaption::before {
  content: '◉';
  color: #ff6a13;
  font-style: normal;
  font-size: .72rem;
  margin-top: .18em;
  flex-shrink: 0;
}

/* — Panel opisu (p bezpośrednio po figure) — dolna część karty — */
article figure:has(img[loading="lazy"]):not(.infografika) + p {
  margin: 0 0 44px;
  padding: 8px 18px 16px;
  background: #f4f7fc;
  border: 1px solid #c4cad4;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  font-size: .875rem;
  color: #3a4a5c;
  line-height: 1.78;
}

/* — Etykieta "Opis ekranu" nad treścią opisu — */
article figure:has(img[loading="lazy"]):not(.infografika) + p::before {
  content: 'Opis ekranu';
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #ff6a13;
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid #dde4ee;
  font-style: normal;
}

/* — Responsywność — */
@media (max-width: 768px) {
  article figure:has(img[loading="lazy"]):not(.infografika) {
    margin-top: 28px;
    border-radius: 8px 8px 0 0;
  }
  article figure:has(img[loading="lazy"]):not(.infografika) figcaption {
    font-size: .78rem;
    padding: 9px 14px 10px;
  }
  article figure:has(img[loading="lazy"]):not(.infografika) + p {
    margin-bottom: 32px;
    border-radius: 0 0 8px 8px;
    padding: 8px 14px 14px;
    font-size: .84rem;
  }
}

/* --- Nawigacja między stronami --- */
nav.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #e0e3e8;
  gap: 16px;
}

nav.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f5f6f8;
  border: 1px solid #dde1e7;
  border-radius: 6px;
  color: #3a4554;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
  max-width: 48%;
}

nav.page-nav a:hover {
  background: #fff3ec;
  border-color: #ff6a13;
  color: #ff6a13;
}

nav.page-nav a.prev::before { content: '←'; }
nav.page-nav a.next::after  { content: '→'; }

/* --- Stopka --- */
footer {
  background: #3a4554;
  color: #c8cdd6;
  text-align: center;
  padding: 16px 24px;
  font-size: .8rem;
}

footer a { color: #ff6a13; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ============================================================
   Hamburger button (widoczny tylko mobile)
   ============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-right: 14px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   Karty nawigacyjne (.nav-cards) - strona główna instrukcji
   ============================================================ */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0 36px;
}

.nav-card {
  border: 1px solid #dde1e7;
  border-radius: 6px;
  padding: 20px 20px 16px;
  background: #fff;
  transition: box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-card:hover {
  box-shadow: 0 4px 14px rgba(255,106,19,.14);
  border-color: #ff6a13;
}

.nav-card-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 9px;
  border-radius: 12px;
  background: #fff3ec;
  color: #ff6a13;
  align-self: flex-start;
  margin-bottom: 2px;
}

.nav-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3a4554;
  text-decoration: none;
  display: block;
  line-height: 1.3;
  border-bottom: none;
}

.nav-card-title:hover {
  color: #ff6a13;
  text-decoration: none;
  border-bottom: none;
}

.nav-card-desc {
  font-size: .85rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

.nav-card-links {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid #eef0f3;
  padding-top: 10px;
}

.nav-card-links li::before {
  content: "→ ";
  color: #ff6a13;
  font-size: .78rem;
}

.nav-card-links a {
  font-size: .82rem;
  color: #3a4554;
  text-decoration: none;
  border-bottom: none;
}

.nav-card-links a:hover {
  color: #ff6a13;
  text-decoration: underline;
  border-bottom: none;
}

/* ============================================================
   Media query - widok mobilny (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .layout { flex-direction: column; }

  /* Pokaż przycisk hamburgera */
  .nav-toggle {
    display: flex;
  }

  /* Sidebar jako rozwijany overlay od góry */
  nav.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: calc(100vh - 60px);
    border-right: none;
    border-bottom: 3px solid #ff6a13;
    z-index: 99;
    overflow-y: auto;
    /* Stan zamknięty: wysunięty ponad ekran */
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .26s ease, opacity .22s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
  }

  nav.sidebar.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  main {
    padding: 20px 16px 40px;
  }

  article h1 { font-size: 1.35rem; }
  article h2 { font-size: 1.05rem; }

  nav.page-nav { flex-direction: column; gap: 10px; }
  nav.page-nav a { max-width: 100%; width: 100%; justify-content: center; }

  /* nav-cards mobile */
  .nav-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0 28px;
  }
}

/* ── Alfabetyczny spis treści ─────────────────────────────────────── */
.index-controls {
  margin: 24px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.index-search-wrap {
  position: relative;
  max-width: 480px;
}
.index-search-input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  font-size: .95rem;
  font-family: inherit;
  border: 1.5px solid #dde1e7;
  border-radius: 6px;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.index-search-input:focus {
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0,86,179,.12);
}
.index-search-input::placeholder { color: #aab0b8; }
.index-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  font-size: .85rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 50%;
  transition: color .12s, background .12s;
}
.index-search-clear:hover { color: #0056b3; background: #e8f0fb; }
.alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.alpha-btn {
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 700;
  font-family: inherit;
  color: #3a4554;
  background: #f5f6f8;
  border: 1.5px solid #dde1e7;
  border-radius: 4px;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  letter-spacing: .04em;
  line-height: 1.6;
}
.alpha-btn:hover {
  background: #e8f0fb;
  border-color: #0056b3;
  color: #0056b3;
}
.alpha-btn.active {
  background: #0056b3;
  border-color: #0056b3;
  color: #fff;
}
.index-list { margin-top: 8px; }
.alpha-group { margin-bottom: 32px; }
.alpha-heading {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0056b3 0%, #003f8a 100%);
  padding: 4px 16px;
  border-radius: 4px;
  margin: 0 0 12px;
  min-width: 40px;
  text-align: center;
  letter-spacing: .06em;
}
.index-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.index-entry {
  background: #f9fafb;
  border: 1px solid #e8ebf0;
  border-left: 3px solid transparent;
  border-radius: 5px;
  padding: 10px 14px;
  transition: background .12s, border-color .12s;
}
.index-entry:hover {
  background: #f0f5ff;
  border-left-color: #0056b3;
  border-color: #c8d9f5;
}
.index-entry a {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  color: #1a1f2b;
  border: none;
  margin-bottom: 4px;
  line-height: 1.3;
  text-decoration: none;
  transition: color .12s;
}
.index-entry a:hover { color: #0056b3; }
.index-entry-desc {
  display: block;
  font-size: .78rem;
  color: #6a737d;
  line-height: 1.5;
}
.index-no-results {
  padding: 24px 20px;
  text-align: center;
  color: #888;
  font-size: .9rem;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px dashed #dde1e7;
  margin: 8px 0 20px;
}
.alpha-group[hidden], .index-entry[hidden] { display: none; }
@media (max-width: 768px) {
  .index-search-wrap { max-width: 100%; }
  .index-entries { grid-template-columns: 1fr; }
  .alpha-btn { padding: 4px 10px; font-size: .75rem; }
}
/* ============================================================
   Sekcja FAQ — .ss-faq
   Styl akordeonu z kodem QR-orange accent
   ============================================================ */

article .ss-faq {
  margin: 44px 0 48px;
  padding: 28px 32px 24px;
  background: #f8fafd;
  border: 1px solid #dde1e7;
  border-radius: 10px;
}

article .ss-faq > h2 {
  margin: 0 0 20px;
  padding-left: 0;
  border-left: none;
  font-size: 1.1rem;
  color: #1a1f2b;
  display: flex;
  align-items: center;
  gap: 10px;
}

article .ss-faq > h2::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #ff6a13;
  color: #fff;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}

article .ss-faq details {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 7px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow .18s, border-color .18s;
}

article .ss-faq details:last-child {
  margin-bottom: 0;
}

article .ss-faq details:hover {
  border-color: #ff6a13;
  box-shadow: 0 2px 10px rgba(255,106,19,.1);
}

article .ss-faq details[open] {
  border-color: #ff6a13;
  box-shadow: 0 3px 14px rgba(255,106,19,.13);
}

article .ss-faq summary {
  list-style: none;
  padding: 14px 52px 14px 18px;
  font-size: .93rem;
  font-weight: 600;
  color: #3a4554;
  cursor: pointer;
  user-select: none;
  position: relative;
  line-height: 1.5;
  transition: color .15s, background .15s;
}

article .ss-faq summary::-webkit-details-marker { display: none; }
article .ss-faq summary::marker { display: none; }

article .ss-faq summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #fff3ec;
  color: #ff6a13;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  transition: background .15s, transform .2s;
}

article .ss-faq details[open] summary::after {
  content: '−';
  background: #ff6a13;
  color: #fff;
  transform: translateY(-50%) rotate(0deg);
}

article .ss-faq summary:hover {
  color: #ff6a13;
  background: #fdf5f0;
}

article .ss-faq details[open] summary {
  color: #ff6a13;
  background: #fff8f4;
  border-bottom: 1px solid #ffe0cc;
}

article .ss-faq details > p,
article .ss-faq details > ul,
article .ss-faq details > ol {
  margin: 0;
  padding: 14px 20px 16px 18px;
  font-size: .9rem;
  color: #445;
  line-height: 1.75;
}

article .ss-faq details > ul,
article .ss-faq details > ol {
  padding-left: 36px;
}

/* ============================================================
   Słownik pojęć — .ss-glosariusz
   Styl karty z pomarańczowym akcentem dla każdego terminu
   ============================================================ */

article .ss-glosariusz {
  margin: 44px 0 48px;
  padding: 28px 32px 20px;
  background: linear-gradient(135deg, #f4f7fc 0%, #fdf5f0 100%);
  border: 1px solid #dde1e7;
  border-top: 4px solid #ff6a13;
  border-radius: 0 0 10px 10px;
}

article .ss-glosariusz > h2 {
  margin: 0 0 20px;
  padding-left: 0;
  border-left: none;
  font-size: 1.1rem;
  color: #1a1f2b;
  display: flex;
  align-items: center;
  gap: 10px;
}

article .ss-glosariusz > h2::before {
  content: 'A-Z';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  background: #3a4554;
  color: #fff;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
}

article .ss-glosariusz dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

article .ss-glosariusz dt {
  margin: 0;
  padding: 14px 0 5px;
  font-size: .95rem;
  font-weight: 700;
  color: #1a1f2b;
  border-top: 1px solid #e0e4ea;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

article .ss-glosariusz dl dt:first-of-type {
  border-top: none;
  padding-top: 0;
}

article .ss-glosariusz dt::before {
  content: '';
  display: block;
  width: 4px;
  min-width: 4px;
  height: 18px;
  margin-top: 1px;
  background: #ff6a13;
  border-radius: 2px;
  flex-shrink: 0;
}

article .ss-glosariusz dd {
  margin: 0 0 14px 14px;
  padding: 6px 12px 8px 14px;
  font-size: .88rem;
  color: #4a5568;
  line-height: 1.75;
  border-left: 2px solid #ffd5b8;
  background: rgba(255,255,255,.6);
  border-radius: 0 4px 4px 0;
}

/* ============================================================
   Media query — FAQ i glosariusz na mobile
   ============================================================ */
@media (max-width: 768px) {
  article .ss-faq,
  article .ss-glosariusz {
    padding: 20px 16px 16px;
    border-radius: 8px;
  }

  article .ss-faq summary {
    padding: 12px 44px 12px 14px;
    font-size: .88rem;
  }

  article .ss-glosariusz dt {
    font-size: .9rem;
  }

  article .ss-glosariusz dd {
    font-size: .85rem;
    margin-left: 8px;
  }
}


/* ----------------------------------------------------------------
   HOW TO - .ss-howto
   Styl zbliżony do .ss-faq — szare tło, pomarańczowy akcent
   ---------------------------------------------------------------- */

article .ss-howto {
  margin: 44px 0 48px;
  padding: 28px 32px 24px;
  background: #f8fafd;
  border: 1px solid #dde1e7;
  border-radius: 10px;
}

article .ss-howto > h2 {
  margin: 0 0 10px;
  padding-left: 0;
  border-left: none;
  font-size: 1.1rem;
  color: #1a1f2b;
  display: flex;
  align-items: center;
  gap: 10px;
}

article .ss-howto > h2::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: #ff6a13;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Ccircle cx='3' cy='6' r='1.2' fill='%23fff' stroke='none'/%3E%3Ccircle cx='3' cy='12' r='1.2' fill='%23fff' stroke='none'/%3E%3Ccircle cx='3' cy='18' r='1.2' fill='%23fff' stroke='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

/* Akapit zajawki pod h2 */
article .ss-howto > p {
  margin: 0 0 18px;
  font-size: 0.91rem;
  color: #556;
  line-height: 1.65;
}

/* Pasek metadanych (czas / koszt / narzędzia) */
article .ss-howto__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
  border: 1px solid #dde1e7;
  border-radius: 7px;
  margin-bottom: 24px;
  overflow: hidden;
}

article .ss-howto__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 0.83rem;
  color: #556;
  border-right: 1px solid #e8ebf0;
  flex: 1 1 auto;
  min-width: 140px;
}

article .ss-howto__meta span:last-child { border-right: none; }

article .ss-howto__meta strong {
  color: #1a1f2b;
  font-weight: 700;
}

article .ss-howto__meta span:nth-child(1)::before {
  content: '';
  display: inline-block;
  width: 15px; height: 15px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a13' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
}

article .ss-howto__meta span:nth-child(2)::before {
  content: '';
  display: inline-block;
  width: 15px; height: 15px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a13' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cline x1='2' y1='10' x2='22' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
}

article .ss-howto__meta span:nth-child(3)::before {
  content: '';
  display: inline-block;
  width: 15px; height: 15px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a13' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='7' height='7'/%3E%3Crect x='15' y='3' width='7' height='7'/%3E%3Crect x='15' y='15' width='7' height='7'/%3E%3Cpath d='M2 15h4v4H2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
}

/* Lista kroków ol */
article .ss-howto__steps {
  list-style: none;
  padding: 20px 20px 8px 20px;
  margin: 0;
  background: #fff;
  border: 1px solid #dde1e7;
  border-radius: 7px;
  counter-reset: howto-counter;
}

/* Pojedynczy krok li */
article .ss-howto__step {
  position: relative;
  padding: 0 0 20px calc(40px + 14px);
  counter-increment: howto-counter;
}

article .ss-howto__step:last-child {
  padding-bottom: 8px;
}

/* Kółko z numerem */
article .ss-howto__step::before {
  content: counter(howto-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 38px;
  height: 38px;
  background: #ff6a13;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255,106,19,.28);
  z-index: 1;
  line-height: 1;
  transition: background .18s;
}

article .ss-howto__step:hover::before {
  background: #e55c0b;
}

/* Pionowa linia łącząca kroki */
article .ss-howto__step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: calc(0.1rem + 38px + 4px);
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #e8ebf0 70%, transparent 100%);
  z-index: 0;
}

/* Tytuł kroku h3 */
article .ss-howto__step h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: #1a1f2b;
  margin: 0.1rem 0 0.4rem;
  line-height: 1.35;
  transition: color .15s;
}

article .ss-howto__step:hover h3 {
  color: #ff6a13;
}

/* Opis kroku p */
article .ss-howto__step p {
  font-size: 0.875rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.7;
}

/* Responsywność */
@media (max-width: 768px) {
  article .ss-howto {
    padding: 20px 16px 16px;
    border-radius: 8px;
  }
  article .ss-howto__meta span {
    padding: 8px 14px;
    font-size: .8rem;
  }
  article .ss-howto__steps {
    padding: 16px 14px 6px 14px;
  }
  article .ss-howto__step {
    padding-left: calc(36px + 12px);
  }
  article .ss-howto__step::before {
    width: 34px; height: 34px; font-size: .88rem;
  }
}

/* ============================================================
   Sekcja CTA
   ============================================================ */
.vss-cta-section {
  margin: 40px 0;
  padding: 30px;
  background-color: #f4f7fa;
  border-left: 4px solid #0056b3;
  border-radius: 0 4px 4px 0;
}

.vss-cta-section h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #333333;
}

.vss-cta-section p {
  margin-bottom: 20px;
  color: #555555;
  line-height: 1.6;
}

.vss-cta-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: #0056b3;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}

.vss-cta-button:hover {
  background-color: #004494;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   Metadane artykułu (article-meta-box)
   ============================================================ */
.article-meta-box {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.85rem;
  color: #666666;
}

.article-meta-box p {
  margin: 5px 0;
}

.article-meta-box .meta-verified {
  color: #2e7d32;
  font-weight: bold;
}

/* ============================================================
   CTA — wariant marki (pomarańczowy #ff6a13)
   ============================================================ */
.vss-cta-section--brand {
  background-color: #fff3ec;
  border-left-color: #ff6a13;
}

.vss-cta-button--brand {
  background-color: #ff6a13;
}

.vss-cta-button--brand:hover {
  background-color: #e05a0a;
}

/* CTA h3 wariant ciemny (#3a4554) */
.vss-cta-section h3.cta-dark {
  color: #3a4554;
}

/* ============================================================
   Tabele SLA (parametry-techniczne-i-sla.html)
   ============================================================ */
.sla-table {
  margin-top: 10px;
}

/* Szerokości kolumn tabeli SLA — tabela 1 (5 kolumn) */
.sla-table.sla-table--kpi th:nth-child(1) { width: 4%; }
.sla-table.sla-table--kpi th:nth-child(2) { width: 28%; }
.sla-table.sla-table--kpi th:nth-child(3) { width: 22%; }
.sla-table.sla-table--kpi th:nth-child(4) { width: 22%; }
.sla-table.sla-table--kpi th:nth-child(5) { width: 24%; }

/* Szerokości kolumn tabeli SLA — tabela 2 (3 kolumny) */
.sla-table.sla-table--poziomy th:nth-child(1) { width: 22%; }
.sla-table.sla-table--poziomy th:nth-child(2) { width: 44%; }
.sla-table.sla-table--poziomy th:nth-child(3) { width: 34%; }

/* Odznaki SLA */
.sla-badge--critical {
  background: #fde8e8;
  color: #c0392b;
}

.sla-badge--warning {
  background: #fff3cd;
  color: #856404;
}

/* Lista w sekcji SLA */
.sla-list {
  margin: 6px 0 0 16px;
  padding: 0;
  list-style: disc;
}

/* ============================================================
   Indeks terminologii
   ============================================================ */
.index-list {
  margin-top: 28px;
}

/* Pomocnicza klasa akapitu z górnym marginesem */
.mt-10 {
  margin-top: 10px;
}

/* ============================================================
   Dokumenty prawne - regulamin (index.html)
   ============================================================ */

/* Layout override - WordPress theme fix */
.layout { display: block !important; max-width: none !important; }
main { display: block !important; max-width: 800px !important; margin: 0 auto !important; padding: 20px 24px; box-sizing: border-box; width: 100% !important; }

/* Treść dokumentu */
.legal-doc { font-size: 0.93rem; line-height: 1.7; color: #333; max-width: 800px; margin: 0 auto; padding: 0 16px; }

/* Spis treści */
.legal-toc { background: #f8f9fb; border: 1px solid #dde1e7; border-radius: 6px; padding: 18px 22px; margin: 24px 0 36px; }
.legal-toc h2 { margin: 0 0 10px; font-size: 0.88rem; text-transform: uppercase; letter-spacing: .06em; color: #ff6a13; }
.legal-toc ul { margin: 0; padding-left: 20px; }
.legal-toc li { margin: 3px 0; }
.legal-toc a { color: #3a4554; text-decoration: none; font-size: 0.88rem; }
.legal-toc a:hover { color: #ff6a13; text-decoration: underline; }

/* Paragrafy */
.legal-para { margin: 0 0 40px; }
.legal-para-title {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 1rem; font-weight: 700; color: #fff;
  background: #3a4554; padding: 10px 16px; border-radius: 5px;
  margin-bottom: 14px;
}
.legal-para-num { font-size: 1.05rem; color: #ff6a13; white-space: nowrap; }

/* Listy numerowane */
.legal-ol { margin: 0 0 10px 0; padding-left: 0; list-style: none; counter-reset: legal-item; }
.legal-ol > li { counter-increment: legal-item; display: flex; gap: 10px; margin: 0 0 8px; }
.legal-ol > li::before { content: counter(legal-item) "."; min-width: 24px; font-weight: 600; color: #ff6a13; flex-shrink: 0; }
.legal-ol-sub { margin: 8px 0 8px 0; padding-left: 0; list-style: none; counter-reset: legal-sub; width: 100%; }
.legal-ol-sub > li { counter-increment: legal-sub; display: flex; gap: 8px; margin: 0 0 6px; }
.legal-ol-sub > li::before { content: counter(legal-sub, lower-alpha) ")"; min-width: 22px; font-weight: 500; color: #555; flex-shrink: 0; }

/* Elementy specjalne */
.legal-note { background: #fff3ec; border-left: 3px solid #ff6a13; padding: 10px 14px; border-radius: 0 4px 4px 0; margin: 14px 0; font-size: 0.88rem; color: #444; }
.legal-company-box { background: #f8f9fb; border: 1px solid #dde1e7; border-radius: 6px; padding: 16px 20px; margin: 14px 0; }
.legal-company-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 0.88rem; }
.legal-company-box dt { font-weight: 600; color: #555; white-space: nowrap; }
.legal-company-box dd { margin: 0; color: #333; }
.legal-correction { border: 1px solid #dde1e7; border-radius: 5px; padding: 10px 14px; margin: 10px 0; font-size: 0.85rem; background: #fffbe6; }
.legal-correction strong { color: #b45309; }

/* CTA do SLA */
.sla-nav-cta { text-align: center; margin: 40px 0 20px; }
.btn-sla-primary { display: inline-block; background: #ff6a13; color: #fff; font-size: 1.05rem; font-weight: 700; padding: 14px 32px; border-radius: 6px; text-decoration: none; letter-spacing: .02em; }
.btn-sla-primary:hover { background: #e05500; }

/* FAQ */
.ss-faq { margin: 40px 0; }
.ss-faq h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: #ff6a13; margin: 0 0 20px; }
.ss-faq__item { border-bottom: 1px solid #dde1e7; padding: 14px 0; }
.ss-faq__item:first-of-type { border-top: 1px solid #dde1e7; }
.ss-faq__q { font-weight: 700; color: #3a4554; font-size: 0.95rem; margin: 0 0 6px; }
.ss-faq__a { color: #444; font-size: 0.88rem; line-height: 1.65; margin: 0; }

/* §2 Definicje - lista terminów (grid 2-kolumnowy) */
dl.legal-def-list { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 0 20px; margin: 10px 0 0; padding: 0; }
dl.legal-def-list dt { font-weight: 700; color: #1a1f2b; padding: 5px 0; border-bottom: 1px solid #eef0f3; align-self: stretch; display: flex; align-items: flex-start; }
dl.legal-def-list dd { margin: 0; padding: 5px 0; border-bottom: 1px solid #eef0f3; }
dl.legal-def-list dd a { word-break: break-all; }

@media (max-width: 768px) {
  .legal-company-box dl { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  dl.legal-def-list { grid-template-columns: 1fr; }
  dl.legal-def-list dt { border-bottom: none; padding-bottom: 2px; margin-top: 8px; }
  dl.legal-def-list dd { padding-top: 0; }
}

/* ============================================================
   Dokumenty prawne - SLA (sla.html)
   ============================================================ */

.sla-doc { font-size: 0.93rem; line-height: 1.7; color: #333; max-width: 800px; margin: 0 auto; padding: 0 16px; }

/* Metryki KPI */
.sla-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 36px; }
.sla-kpi-card {
  border: 1px solid #dde1e7; border-radius: 8px; padding: 20px 16px 16px;
  background: #fff; text-align: center; position: relative; overflow: hidden;
}
.sla-kpi-card::before {
  content: ""; display: block; height: 4px; background: #ff6a13;
  position: absolute; top: 0; left: 0; right: 0;
}
.sla-kpi-value { font-size: 2.2rem; font-weight: 800; color: #ff6a13; line-height: 1.1; margin-bottom: 4px; }
.sla-kpi-label { font-size: 0.82rem; font-weight: 600; color: #3a4554; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.sla-kpi-desc { font-size: 0.8rem; color: #666; line-height: 1.45; }

/* Sekcje */
.sla-para { margin: 0 0 36px; }
.sla-para-title {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 1rem; font-weight: 700; color: #fff;
  background: #3a4554; padding: 9px 16px; border-radius: 5px; margin-bottom: 14px;
}
.sla-para-num { font-size: 1rem; color: #ff6a13; white-space: nowrap; }

/* Tabele */
.sla-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.88rem; }
.sla-table th { background: #3a4554; color: #fff; padding: 9px 12px; text-align: left; font-weight: 600; }
.sla-table th:first-child { border-radius: 4px 0 0 0; }
.sla-table th:last-child  { border-radius: 0 4px 0 0; }
.sla-table td { padding: 9px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.sla-table tr:hover td { background: #fffaf7; }
.sla-badge { display: inline-block; background: #fff3ec; color: #ff6a13; font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
.sla-badge-ok { background: #e6f4ea; color: #2e7d32; }

/* Definicje SLA */
.sla-defs dt { font-weight: 700; color: #3a4554; margin-top: 12px; }
.sla-defs dd { margin: 3px 0 0 16px; color: #444; }

/* Notatka */
.sla-note { background: #fff3ec; border-left: 3px solid #ff6a13; padding: 10px 14px; border-radius: 0 4px 4px 0; margin: 14px 0; font-size: 0.88rem; color: #444; }

/* Lista */
.sla-ol { margin: 0 0 8px; padding-left: 0; list-style: none; counter-reset: sl; }
.sla-ol > li { counter-increment: sl; display: flex; gap: 10px; margin: 0 0 7px; }
.sla-ol > li::before { content: counter(sl) "."; min-width: 22px; font-weight: 600; color: #ff6a13; flex-shrink: 0; }

@media (max-width: 768px) {
  .sla-kpi-grid { grid-template-columns: 1fr; }
  .sla-kpi-value { font-size: 1.8rem; }
}
