/* ==========================================
   UsFind - centrum poradników
   • .gn-*  nawigacja po kategoriach (lewy pasek na /poradniki i w artykułach)
   • .gh-*  lista wszystkich poradników na /poradniki
   • .gd-*  układ artykułu /poradniki/<slug>
   ========================================== */

/* ─── Nawigacja po kategoriach ─── */
.gn-group { border-radius: 12px; }
.gn-group + .gn-group { margin-top: .15rem; }
.gn-group summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .7rem; border-radius: 10px;
  font-size: .84rem; font-weight: 700; line-height: 1.3;
  color: var(--text); transition: color .15s, background .15s;
}
.gn-group summary::-webkit-details-marker { display: none; }
.gn-group summary:hover { color: var(--text); background: rgba(255,255,255,.03); }
.gn-group summary i { color: var(--or2); width: 16px; text-align: center; font-size: .8rem; }
.gn-group summary em {
  margin-left: auto; font-style: normal; font-size: .64rem; font-weight: 700;
  color: var(--sub); background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 999px; padding: .05rem .45rem; letter-spacing: 0;
}
.gn-group summary::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .55rem;
  color: var(--sub); opacity: .6; transition: transform .2s;
}
.gn-group[open] summary::after { transform: rotate(180deg); }
.gn-group ul { list-style: none; margin: .1rem 0 .45rem; padding: 0 0 0 .55rem; display: flex; flex-direction: column; gap: 1px; }
.gn-group li a {
  display: flex; align-items: center; gap: .55rem;
  padding: .42rem .65rem; border-radius: 8px; border-left: 2px solid transparent;
  font-size: .84rem; font-weight: 500; line-height: 1.35; color: var(--sub); text-decoration: none;
  transition: color .15s, background .15s, border-color .15s;
}
.gn-group li a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.gn-group li a.is-current { color: var(--or); background: var(--or-dim); border-left-color: var(--or); font-weight: 700; }
.gn-num {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: .66rem; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--or), #ff7a1a);
}
.gn-start { background: linear-gradient(160deg, rgba(255,82,0,.08), transparent 70%); border: 1px solid rgba(255,82,0,.2); padding-bottom: .15rem; }
.gn-start summary { color: var(--or2); }

/* lewy pasek na /poradniki (.master-sidebar z poradniki.css) */
.master-sidebar .gs-guides { display: flex; flex-direction: column; gap: .15rem; }
.master-sidebar .gs-guides + .master-sidebar__title,
.master-sidebar .master-sidebar__title + .master-link { margin-top: .2rem; }
.master-sidebar .gs-mobile-all { display: none; }
.master-sidebar .master-sidebar__title { color: var(--sub); opacity: .7; margin-top: .6rem; }
@media (max-width: 1200px) {
  /* poprawka: blok „FIX" na końcu poradniki.css ustawiał wysokość na cały ekran także na
     telefonie, przez co poziomy pasek zakrywał pierwszy ekran strony */
  .tutorials-page-wrapper .master-sidebar { height: auto; min-height: 0; padding: 8px 10px; gap: 8px; }
  .master-sidebar .gs-guides { display: none; }
  .master-sidebar .gs-mobile-all { display: flex; text-decoration: none; color: var(--or2); white-space: nowrap; }
}

/* ─── Lista wszystkich poradników ─── */
.gh { max-width: 1080px; margin: 0 auto; padding: 1.2rem 1.5rem 2.5rem; scroll-margin-top: 90px; }
.gh-head { text-align: center; max-width: 760px; margin: 0 auto 1.6rem; }
.gh-kicker {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--or2);
  background: rgba(255,82,0,.08); border: 1px solid rgba(255,82,0,.25); border-radius: 999px; padding: .28rem .85rem; margin-bottom: .7rem;
}
.gh-head h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: .45rem; }
.gh-head p { color: var(--sub); font-size: .92rem; line-height: 1.65; }
.gh-search {
  display: flex; align-items: center; gap: .6rem; max-width: 520px; margin: 1.1rem auto 0;
  background: var(--bg-card); border: 1px solid var(--border2); border-radius: 12px; padding: 0 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.gh-search:focus-within { border-color: var(--or); box-shadow: 0 0 0 3px rgba(255,82,0,.14); }
.gh-search i { color: var(--sub); font-size: .85rem; }
.gh-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 500 .92rem 'Poppins', 'Poppins Fallback', sans-serif; padding: .75rem 0; }
.gh-search input::placeholder { color: var(--sub); opacity: .7; }
.gh-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .9rem; }
.gh-jump a {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; color: var(--sub);
  text-decoration: none; border: 1px solid var(--border2); border-radius: 999px; padding: .32rem .75rem; transition: all .15s;
}
.gh-jump a i { color: var(--or2); font-size: .72rem; }
.gh-jump a:hover { color: var(--text); border-color: var(--or); }

.gh-group { margin-top: 1.8rem; scroll-margin-top: 90px; }
.gh-group-h { margin-bottom: .8rem; }
.gh-group-h h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.08rem; font-weight: 800; }
.gh-group-h h3 i { color: var(--or2); font-size: .95rem; }
.gh-group-h h3 em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--sub); background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 999px; padding: .08rem .5rem; }
.gh-group-h p { color: var(--sub); font-size: .84rem; line-height: 1.6; margin-top: .25rem; }
.gh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .7rem; }
.gh-card {
  position: relative; display: flex; flex-direction: column; gap: .35rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: .95rem 1rem .85rem; text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s, background .15s;
}
.gh-card:hover { border-color: rgba(255,82,0,.5); transform: translateY(-2px); background: linear-gradient(160deg, rgba(255,82,0,.05), var(--bg-card) 60%); }
.gh-card-t { font-size: .94rem; font-weight: 700; line-height: 1.35; }
.gh-card-d { font-size: .8rem; color: var(--sub); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gh-card-m { margin-top: auto; padding-top: .2rem; font-size: .7rem; color: var(--sub); opacity: .85; }
.gh-card-m i { margin-right: .2rem; }
.gh-start .gh-grid { counter-reset: none; }
.gh-start .gh-card { padding-left: 3.1rem; border-color: rgba(255,82,0,.22); }
.gh-step {
  position: absolute; left: .95rem; top: .95rem; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .76rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--or), #ff7a1a); box-shadow: 0 3px 10px rgba(255,82,0,.35);
}
.gh-empty { text-align: center; color: var(--sub); font-size: .9rem; margin-top: 1.5rem; }

/* ─── Artykuł ─── */
.lp-wrap.gd-wrap { max-width: 1440px; }
.gd { display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; grid-template-areas: "nav main toc"; gap: 2.2rem; align-items: start; }
.gd-main { grid-area: main; min-width: 0; }
.gd-main .art-sec, .gd-main .lp-intro, .gd-main .lp-faq, .gd-main .lp-sub { max-width: 780px; }
.gd-main .art-sec { scroll-margin-top: 90px; }
.gd-main #najczestsze-pytania { scroll-margin-top: 90px; }
.gd-cat {
  display: inline-flex; align-items: center; gap: .4rem; margin: .2rem 0 .7rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--or2); text-decoration: none; background: rgba(255,82,0,.08); border: 1px solid rgba(255,82,0,.25);
  border-radius: 999px; padding: .25rem .75rem;
}
.gd-cat:hover { border-color: var(--or); }
.gd-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: 0 0 1rem; font-size: .8rem; color: var(--sub); }
.gd-meta i { color: var(--or2); margin-right: .25rem; }
.gd-lead { font-size: 1.02rem; }
.gd-all-mobile { display: none; }

.gd-toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem; }
.gd-toc-h { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin-bottom: .45rem; }
.gd-toc-h i { color: var(--or2); margin-right: .3rem; }
.gd-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.gd-toc li { counter-increment: toc; }
.gd-toc a {
  display: flex; gap: .5rem; padding: .32rem .45rem; border-radius: 7px;
  font-size: .8rem; line-height: 1.4; color: var(--sub); text-decoration: none; transition: color .15s, background .15s;
}
.gd-toc a::before { content: counter(toc); font-size: .68rem; font-weight: 800; color: var(--or2); min-width: 14px; padding-top: .08rem; }
.gd-toc a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.gd-toc a.is-active { color: var(--text); background: rgba(255,82,0,.08); }
.gd-toc-side { grid-area: toc; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.gd-toc-inline { display: none; max-width: 780px; margin: .4rem 0 .6rem; }

.gd-nav {
  grid-area: nav; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto;
  padding-right: .3rem; scrollbar-width: thin; scrollbar-color: var(--border2) transparent;
}
.gd-nav-all {
  display: flex; align-items: center; gap: .55rem; margin-bottom: .5rem;
  padding: .65rem .8rem; border-radius: 11px; text-decoration: none;
  font-size: .86rem; font-weight: 700; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border2); transition: border-color .15s;
}
.gd-nav-all i { color: var(--or2); }
.gd-nav-all em { margin-left: auto; font-style: normal; font-size: .7rem; color: var(--sub); }
.gd-nav-all:hover { border-color: var(--or); }
.gd-nav-tools { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1px; }
.gd-nav-tools p { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); padding: 0 .7rem .3rem; }
.gd-nav-tools a { display: flex; align-items: center; gap: .55rem; padding: .42rem .7rem; border-radius: 8px; font-size: .83rem; color: var(--sub); text-decoration: none; }
.gd-nav-tools a i { color: var(--or2); width: 16px; text-align: center; font-size: .78rem; }
.gd-nav-tools a:hover { color: var(--text); background: rgba(255,255,255,.04); }

.gd-cta {
  display: flex; align-items: center; gap: 1rem; max-width: 780px; margin: 1.6rem 0 .4rem;
  padding: 1rem 1.1rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,82,0,.1), rgba(20,97,245,.06));
  border: 1px solid rgba(255,82,0,.3);
}
.gd-cta-ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, var(--or), #ff7a1a); }
.gd-cta-body { flex: 1; min-width: 0; }
.gd-cta-t { font-weight: 800; font-size: .95rem; margin: 0 0 .15rem; }
.gd-cta-d { font-size: .84rem; color: var(--sub); line-height: 1.55; margin: 0; }
.gd-cta-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 10px;
  font-size: .84rem; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--or), #ff7a1a); box-shadow: 0 4px 14px rgba(255,82,0,.3); transition: transform .15s;
}
.gd-cta-btn:hover { transform: translateY(-1px); }

.gd-related { max-width: 780px; margin-top: 2.4rem; }
.gd-related h2 { font-size: clamp(1.15rem, 2.3vw, 1.45rem); font-weight: 800; margin: 0 0 .8rem; }
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
.gd-pn { max-width: 780px; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.4rem; }
.gd-pn a {
  display: flex; flex-direction: column; gap: .25rem; padding: .8rem 1rem; border-radius: 12px; text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text); transition: border-color .15s;
}
.gd-pn a:hover { border-color: rgba(255,82,0,.5); }
.gd-pn small { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--or2); }
.gd-pn span { font-size: .88rem; font-weight: 600; line-height: 1.35; }
.gd-pn .gd-next { text-align: right; }

@media (max-width: 1240px) {
  .gd { grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "nav main"; gap: 1.8rem; }
  .gd-toc-side { display: none; }
  .gd-toc-inline { display: block; }
}
@media (max-width: 880px) {
  .gd { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "nav"; gap: 2rem; }
  .gd-nav { position: static; max-height: none; overflow: visible; padding: 1.2rem 0 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
  .gd-all-mobile {
    display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .7rem;
    font-size: .8rem; font-weight: 700; color: var(--or2); text-decoration: none;
  }
  .gd-cta { flex-wrap: wrap; }
  .gd-cta-btn { width: 100%; justify-content: center; }
  .gh { padding: 1rem 1rem 2rem; }
  .gh-grid, .gd-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .gd-pn { grid-template-columns: 1fr; }
  .gd-pn .gd-next { text-align: left; }
}

/* link-chip w hero /poradniki (reszta stylu z .por-hero-chip) */
a.por-hero-chip { text-decoration: none; }
