/* Pomoč – navodila in pogosta vprašanja (templates/help/guide.php, public/js/guide.js; Nenad, 13. 11. 2026) */
/* minmax(0, 1fr): drsna vrstica čipov (telefon) ne sme razširiti mreže čez zaslon (vodoravni drsnik v upravljanju) */
.gd { max-width: 820px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 40px; }
.gd--manage { max-width: 900px; }
.gd-hero { display: grid; gap: 6px; margin: 4px 0 2px; }
.gd-hero__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }
.gd-hero__ic .ico { width: 28px; height: 28px; }
.gd-hero h1 { font-size: clamp(26px, 4.4vw, 34px); letter-spacing: -.02em; text-wrap: balance; }
.gd-hero p { color: var(--muted); max-width: 60ch; text-wrap: pretty; }

/* iskanje */
.gd-search { position: sticky; top: var(--topbar-h, 56px); z-index: 5; display: flex; align-items: center; margin: -8px 0; padding: 8px 0; background: var(--bg); }
.gd-search::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: linear-gradient(var(--bg), transparent); pointer-events: none; } /* mehak prehod pod lepljivim poljem */
.gd-search__in { height: 50px; padding-left: 44px; padding-right: 44px; border-radius: 14px; font-size: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.gd-search__in::-webkit-search-cancel-button { display: none; }
.gd-search__ic { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.gd-search__x { position: absolute; right: 6px; }
.gd-count { margin: -6px 2px 0; color: var(--muted); font-size: 13.5px; }
.gd-empty { padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); color: var(--muted); text-align: center; }
.gd-toc { flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) { .gd-toc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; } .gd-toc::-webkit-scrollbar { display: none; } .gd-toc .chip { flex: none; } }
.gd-toc .chip { gap: 6px; }
.gd-toc .chip .ico { color: var(--brand); }
.gd.is-searching .gd-toc { display: none; }

/* opombe */
.gd-note { text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); background: var(--brand-soft); color: var(--text); font-size: 14.5px; transition: transform var(--t-fast) var(--ease); }
.gd-note:active { transform: scale(.995); }
.gd-note__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--brand); }
.gd-note__go { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--brand); white-space: nowrap; }
.gd-coach { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .gd-note { display: grid; grid-template-columns: auto minmax(0, 1fr); } .gd-note__go { grid-column: 2; margin-left: 0; } }

/* prvi koraki kluba */
.gd-setup { padding: 0; }
.gd-setup__sum { list-style: none; display: grid; gap: 12px; padding: 16px 18px; cursor: pointer; border-radius: inherit; }
.gd-setup__sum::-webkit-details-marker { display: none; }
.gd-setup__sum:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.gd-setup__head { display: flex; align-items: center; gap: 10px; }
.gd-setup__title { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.gd-setup__title .ico { color: var(--brand); }
.gd-setup__n { flex: none; padding: 4px 10px; border-radius: var(--r-full); background: var(--surface-3); font-size: 13px; font-weight: 700; white-space: nowrap; }
.gd-setup__chev { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform var(--t) var(--ease); }
.gd-setup[open] .gd-setup__chev { transform: rotate(180deg); }
.gd-setup__bar { display: block; height: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.gd-setup__bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--ok))); transition: width .6s var(--ease); }
.gd-setup__lead { margin: 0; padding: 0 18px; color: var(--muted); font-size: 14px; }
.gd-setup[open] > .gd-setup__list { padding: 4px 18px 6px; }
@media (max-width: 560px) { .gd-setup__title { font-size: 16.5px; } }
.gd-setup__list { list-style: none; margin: 0; padding: 0; display: grid; }
.gd-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.gd-step__ic .ico { width: 22px; height: 22px; margin-top: 1px; }
.gd-step.is-done .gd-step__ic { color: var(--ok); }
.gd-step.is-todo .gd-step__ic { color: var(--faint); }
.gd-step.is-check .gd-step__ic { color: var(--info, var(--brand)); }
.gd-step__main { display: grid; gap: 2px; min-width: 0; }
.gd-step__main b { font-weight: 650; }
.gd-step__main > span { color: var(--muted); font-size: 14px; text-wrap: pretty; }
.gd-step__main .gd-step__st { font-size: 12.5px; font-weight: 650; color: var(--faint); }
.gd-step.is-done .gd-step__st { color: var(--ok); }
.gd-step.is-todo .gd-step__st { color: var(--warn); }
.gd-step__opt { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.gd-step__acts { display: flex; gap: 6px; align-items: center; }
.gd-step.is-done .gd-step__main b { color: var(--text-2); }
@media (max-width: 560px) {
    .gd-step { grid-template-columns: auto minmax(0, 1fr); }
    .gd-step__acts { grid-column: 2; }
    .gd-hide-sm { display: none; }
}

/* razdelki in članki */
.gd-sec { display: grid; gap: 10px; scroll-margin-top: 130px; }
.gd-sec__head { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.gd-sec__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); color: var(--brand); }
.gd-sec__head h2 { font-size: 19px; letter-spacing: -.01em; }
.gd-sec__head p { margin-top: 1px; color: var(--muted); font-size: 14px; }
.gd-list { display: grid; gap: 8px; }
.gd-art { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); scroll-margin-top: 130px; transition: border-color var(--t-fast), box-shadow var(--t) var(--ease); }
.gd-art[open] { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.gd-art > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; border-radius: inherit; }
.gd-art > summary::-webkit-details-marker { display: none; }
.gd-art > summary:hover .gd-art__t { color: var(--brand); }
.gd-art > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.gd-art__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gd-art__t { font-weight: 650; line-height: 1.3; transition: color var(--t-fast); }
.gd-art__d { color: var(--muted); font-size: 14px; text-wrap: pretty; }
.gd-art__chev { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform var(--t) var(--ease); }
.gd-art[open] .gd-art__chev { transform: rotate(180deg); }
.gd-art__body { padding: 0 16px 14px; display: grid; gap: 12px; animation: gd-in .22s var(--ease); }
.gd-p { margin: 0; line-height: 1.55; text-wrap: pretty; }
.gd-art__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.gd-art__acts { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.gd-more { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.gd-art.is-flash { animation: gd-flash 1.6s var(--ease); }
mark.gd-hl { background: color-mix(in srgb, var(--brand) 26%, transparent); color: inherit; border-radius: 2px; padding: 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* kontakt: naslov in besedilo, glavni gumb čez vso širino, ostale povezave kot vrstice (Nenad, 13. 11. 2026) */
.gd-contact { display: grid; gap: 16px; padding: 20px; margin-top: 8px; }
.gd-contact__top { display: flex; align-items: flex-start; gap: 14px; }
.gd-contact__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.gd-contact__txt { min-width: 0; }
.gd-contact h2 { font-size: 17px; letter-spacing: -.01em; }
.gd-contact p { margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.gd-contact__cta { width: 100%; height: 48px; gap: 8px; font-size: 15.5px; }
.gd-contact__links { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gd-contact__links a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 14px; color: var(--text); font-weight: 550; text-decoration: none; transition: background var(--t-fast); }
.gd-contact__links a + a { border-top: 1px solid var(--line); }
.gd-contact__links a:hover { background: var(--surface-2, var(--surface-3)); }
.gd-contact__links a > span:nth-child(2) { flex: 1; min-width: 0; }
.gd-contact__lic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); color: var(--brand); }
.gd-contact__go { flex: none; color: var(--faint); }
@media (min-width: 720px) {
    .gd-contact { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; column-gap: 24px; }
    .gd-contact__top, .gd-contact__cta { grid-column: 1; }
    .gd-contact__links { grid-column: 2; grid-row: 1 / span 2; }
    .gd-contact__cta { width: auto; justify-self: start; padding-inline: 22px; }
}

/* koraki, nasvet in »Kje« so v app.css (tudi okno »Pomoč« na straneh upravljanja – help/_popup) */

@keyframes gd-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes gd-flash { 0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent); } 100% { box-shadow: var(--shadow-1); } }
@media (prefers-reduced-motion: reduce) {
    .gd-art__body, .gd-art.is-flash { animation: none; }
    .gd-art__chev, .gd-setup__bar > span, .gd-note { transition: none; }
}
