/*
   Nápověda (Pages/Help): rozcestník a články. Barvy z tokenů prezentace
   v site.css (--ink, --muted, --blue, --cloud, --line), takže tmavý motiv
   funguje sám. Čitelně, ne minifikovaně: obsah nápovědy poroste.
*/

.help { --help-radius: 16px; }

.help-header .navbar { gap: 14px; flex-wrap: nowrap; }
.help-home {
  font-weight: 700; font-size: 15px; color: var(--blue); text-decoration: none;
  padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap;
}
.help-header .legal-actions .btn { padding: 9px 16px; }

/* ------------------------------------------------------------- rozcestník -- */

.help-hero {
  background: radial-gradient(1100px 380px at 85% -40%, rgb(22 135 239 / 16%), transparent 70%), var(--cloud);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.help-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 14px;
}
.help-hero h1 {
  font-size: clamp(38px, 5vw, 60px); font-weight: 700; letter-spacing: -2.4px; line-height: 1.05; margin-bottom: 16px;
}
.help-hero p { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 620px; margin-bottom: 28px; }

.help-search {
  display: flex; align-items: center; gap: 12px; max-width: 640px;
  background: var(--bs-body-bg, #fff); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px 8px 6px 18px; box-shadow: 0 10px 30px rgb(20 43 69 / 8%);
}
.help-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(9 105 197 / 14%); }
.help-search .icon { color: var(--muted); width: 22px; height: 22px; }
.help-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font-size: 17px; padding: 12px 0;
}

.help-groups { padding-top: 52px; padding-bottom: 24px; }
.help-group { margin-bottom: 44px; }
.help-group h2 {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 16px;
}
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }

.help-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 22px;
  background: var(--bs-body-bg, #fff); border: 1px solid var(--line); border-radius: var(--help-radius);
  color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.help-card:hover, .help-card:focus-visible {
  border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 14px 30px rgb(20 43 69 / 9%);
}
.help-card[hidden] { display: none; }
.help-card-icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: rgb(22 135 239 / 12%); color: var(--blue);
}
.help-card-icon .icon { width: 23px; height: 23px; }
.help-card-body { display: grid; gap: 6px; flex: 1; min-width: 0; }
.help-card-body strong { font-size: 17px; letter-spacing: -.2px; }
.help-card-body span { font-size: 14px; line-height: 1.65; color: var(--muted); }
.help-card-arrow { flex: none; color: var(--muted); margin-top: 12px; transition: transform .15s ease, color .15s ease; }
.help-card:hover .help-card-arrow { color: var(--blue); transform: translateX(3px); }

.help-empty {
  font-size: 16px; color: var(--muted); padding: 18px 20px; border: 1px dashed var(--line);
  border-radius: var(--help-radius); margin-bottom: 32px;
}

.help-contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--cloud); border-radius: 20px; padding: 32px 36px; margin-bottom: 72px;
}
.help-contact h2 { font-size: 26px; font-weight: 700; letter-spacing: -.8px; margin-bottom: 6px; }
.help-contact p { color: var(--muted); margin: 0; max-width: 560px; line-height: 1.7; }
.help-contact.compact { margin: 48px 0 0; padding: 24px 28px; }
.help-contact.compact h2 { font-size: 20px; }

/* ----------------------------------------------------------------- článek -- */

.help-layout {
  display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr);
  padding-top: 36px; padding-bottom: 72px;
}

@media (min-width: 992px) {
  .help-layout { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (min-width: 1300px) {
  .help-layout { grid-template-columns: 240px minmax(0, 1fr) 210px; max-width: 1360px; }
}

.help-nav details { border: 0; }
.help-nav summary {
  font-size: 15px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bs-body-bg, #fff);
}
.help-nav summary::after { top: 9px; right: 14px; }

@media (min-width: 992px) {
  .help-nav { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; }
  .help-nav summary { display: none; }
}

/* !important kvůli „details p“ ze site.css (odsazení odpovědí ve FAQ). */
.help-nav-group {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin: 22px 0 8px; padding: 0 !important;
}
.help-nav ul { list-style: none; margin: 0; padding: 0; }
.help-nav li a {
  display: block; padding: 7px 12px; border-radius: 9px; font-size: 14px; line-height: 1.45;
  color: var(--ink); text-decoration: none;
}
.help-nav li a:hover { background: var(--cloud); }
.help-nav li a.on { background: rgb(22 135 239 / 12%); color: var(--blue); font-weight: 700; }

.help-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.help-crumbs a { color: var(--blue); text-decoration: none; }

.help-article { min-width: 0; max-width: 780px; }
.help-article-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 30px; }
.help-article-head .help-card-icon { width: 54px; height: 54px; border-radius: 14px; }
.help-article-head h1 {
  font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; letter-spacing: -1.4px; line-height: 1.12; margin-bottom: 10px;
}
.help-lead { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0; }

/* Text článku. */
.help-body { font-size: 16px; line-height: 1.8; color: var(--ink); }
.help-body h2 {
  font-size: 25px; font-weight: 700; letter-spacing: -.6px; margin: 48px 0 14px; scroll-margin-top: 24px;
}
.help-body h3 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
.help-body p { margin: 0 0 16px; }
.help-body ul, .help-body ol { margin: 0 0 18px; padding-left: 22px; }
.help-body li { margin-bottom: 8px; }
.help-body li::marker { color: var(--blue); }
.help-body a { color: var(--blue); }
.help-body strong { font-weight: 700; }
.help-body kbd {
  font-family: inherit; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--line); border-bottom-width: 2px; background: var(--cloud); color: var(--ink);
}
.help-body code { font-size: 14px; padding: 1px 6px; border-radius: 6px; background: var(--cloud); color: var(--ink); }

/* Cesta v menu: Prodej › Tarify a připomínky. */
.help-path {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 1px 10px; border-radius: 999px; background: var(--cloud); border: 1px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; line-height: 1.7;
}
.help-path i { font-style: normal; color: var(--muted); font-weight: 400; }

/* Kroky: číslo v kroužku a text. */
.help-steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 8px 0 24px !important; }
.help-steps > li {
  counter-increment: step; position: relative; padding: 2px 0 6px 52px; margin-bottom: 18px;
}
.help-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 15px;
}
.help-steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 40px; bottom: -14px; width: 2px; background: var(--line);
}
.help-steps > li > strong:first-child { display: block; font-size: 17px; margin-bottom: 2px; }

/* Rámečky: tip, poznámka, pozor. */
.help-callout {
  position: relative; margin: 22px 0; padding: 16px 18px 16px 52px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--cloud); font-size: 15px; line-height: 1.7;
}
.help-callout::before {
  position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff;
}
.help-callout.tip { background: rgb(23 121 90 / 8%); border-color: rgb(23 121 90 / 28%); }
.help-callout.tip::before { content: "✓"; background: #17795a; }
.help-callout.note::before { content: "i"; background: var(--blue); font-family: Georgia, serif; font-style: italic; }
.help-callout.warn { background: rgb(176 120 0 / 9%); border-color: rgb(176 120 0 / 30%); }
.help-callout.warn::before { content: "!"; background: #b07800; }
.help-callout p:last-child { margin-bottom: 0; }
.help-callout strong:first-child { margin-right: 4px; }

/* Snímek obrazovky. */
.help-shot { margin: 26px 0 30px; }
.help-shot.narrow { max-width: 520px; }
.help-shot a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgb(20 43 69 / 10%); background: var(--cloud); cursor: zoom-in; }
.help-shot img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.help-shot a:hover img { transform: scale(1.01); }
.help-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.6; }

/* Dvě karty vedle sebe: „co uvidí fanoušek“ a podobně. */
.help-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 20px 0 26px; }
.help-cols > div { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--bs-body-bg, #fff); }
.help-cols h3 { margin-top: 0; font-size: 16px; }
.help-cols p:last-child, .help-cols ul:last-child { margin-bottom: 0; }

/* Předchozí a další článek. */
.help-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 56px; }
.help-pager a {
  display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none;
}
.help-pager a:hover { border-color: var(--blue); }
.help-pager small { color: var(--muted); font-size: 13px; }
.help-pager-prev small::before { content: "← "; }
.help-pager-next { text-align: right; }
.help-pager-next small::after { content: " →"; }
.help-pager-next:only-child { grid-column: -2; }

/* Na této stránce. */
.help-toc { display: none; }
@media (min-width: 1300px) {
  .help-toc:not([hidden]) { display: block; position: sticky; top: 24px; align-self: start; font-size: 13px; }
}
.help-toc strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
.help-toc ol { list-style: none; padding: 0 0 0 12px; margin: 0; border-left: 1px solid var(--line); }
.help-toc li { margin: 0 0 8px; }
.help-toc a { color: var(--muted); text-decoration: none; line-height: 1.45; display: block; }
.help-toc a:hover, .help-toc a.on { color: var(--blue); }

/* Zvětšený snímek. */
.help-lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 94vh; overflow: visible;
}
.help-lightbox::backdrop { background: rgb(8 18 30 / 82%); }
.help-lightbox img { display: block; max-width: 100%; max-height: 92vh; border-radius: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / 40%); cursor: zoom-out; }
.help-lightbox form { position: absolute; top: -14px; right: -14px; }
.help-lightbox button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #142b45;
  font-size: 22px; line-height: 1; box-shadow: 0 6px 18px rgb(0 0 0 / 25%);
}

.help-footer span a { color: var(--muted); }

[data-bs-theme="dark"] .help-search,
[data-bs-theme="dark"] .help-card,
[data-bs-theme="dark"] .help-shot a { box-shadow: none; }
[data-bs-theme="dark"] .help-card:hover { box-shadow: none; }

@media (max-width: 575px) {
  .help-hero { padding: 44px 0 40px; }
  .help-home { padding-left: 10px; font-size: 14px; }
  .help-header .navbar-brand img { width: 120px; }
  .help-contact { padding: 24px; }
  .help-article-head .help-card-icon { display: none; }
  .help-steps > li { padding-left: 46px; }
}
