/* guides.css - Parmar Tech Solutions help guides
   Loaded after ../style.css, which provides the colours, font, header and footer. */

/* ---------- Page head ---------- */
.guide-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 36px 0 34px; }
.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--navy); font-weight: 700; text-decoration: none; }
.crumbs a:hover { color: var(--orange-dark); }
.crumbs .sep { margin: 0 8px; color: #a9b1b9; }
.guide-head h1 { max-width: 820px; margin-bottom: 14px; }
.guide-head .lead { font-size: 1.2rem; color: var(--muted); max-width: 760px; margin-bottom: 22px; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 0.95rem; color: var(--muted); }
.meta-row .meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-row .meta-item strong { color: var(--ink); font-weight: 700; }
.meta-row .icon { color: var(--navy); width: 18px; height: 18px; }
.btn--small { padding: 9px 16px; font-size: 0.92rem; }

/* ---------- Layout ---------- */
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 44px; padding-bottom: 72px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.95rem; }
.toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc ol a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; line-height: 1.35; }
.toc ol a:hover { color: var(--navy); border-left-color: var(--orange); }
.toc .toc-help { margin-top: 22px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc .toc-help p { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; }

.guide-body { max-width: 760px; font-size: 1.1rem; line-height: 1.72; }
.guide-body > h2 { font-size: 1.6rem; margin: 48px 0 14px; padding-top: 8px; }
.guide-body > h2:first-of-type { margin-top: 36px; }
.guide-body p { margin-bottom: 0.9em; }
.guide-body ul, .guide-body ol:not(.gsteps) { padding-left: 22px; }
.guide-body li { margin-bottom: 6px; }

/* ---------- Callouts ---------- */
.callout { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 16px; background: var(--surface); }
.callout-title { display: block; font-weight: 800; color: var(--navy); margin-bottom: 6px; font-size: 1.02rem; }
.callout ul { margin: 4px 0 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--info  { border-left-color: var(--navy); }
.callout--amber { border-left-color: var(--orange); background: #FFFAF0; }
.callout--grey  { border-left-color: #9aa5b1; background: #F6F7F8; font-size: 1rem; }
.callout--stop  { border-left-color: var(--danger); background: var(--danger-soft); }
.callout--stop .callout-title { color: var(--danger); }
.callout--good  { border-left-color: var(--green); background: var(--green-soft); }

/* ---------- Steps ---------- */
ol.gsteps { list-style: none; counter-reset: gstep; padding: 0; margin: 18px 0 8px; }
ol.gsteps > li {
    counter-increment: gstep; position: relative;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px 20px 76px; margin-bottom: 14px;
}
ol.gsteps > li::before {
    content: counter(gstep); position: absolute; left: 22px; top: 19px;
    width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff;
    font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; justify-content: center;
}
ol.gsteps > li h3 { font-size: 1.17rem; margin: 5px 0 8px; line-height: 1.35; }
ol.gsteps > li p:last-child { margin-bottom: 0; }
ol.gsteps > li ul, ol.gsteps > li ol { margin: 6px 0 10px; padding-left: 22px; }

.see, .tip, .warn { border-radius: var(--radius-sm); padding: 11px 14px; margin-top: 12px; font-size: 1.02rem; line-height: 1.6; }
.see  { background: var(--green-soft); }
.tip  { background: var(--navy-soft); }
.warn { background: var(--danger-soft); }
.see::before, .tip::before, .warn::before { font-weight: 800; margin-right: 4px; }
.see::before  { content: "You should now see:"; color: var(--green); }
.tip::before  { content: "Tip:"; color: var(--navy); }
.warn::before { content: "Careful:"; color: var(--danger); }

/* ---------- Inline bits ---------- */
.btn-name { font-weight: 800; color: var(--navy); background: var(--navy-soft); border-radius: 5px; padding: 1px 7px; white-space: nowrap; }
kbd {
    display: inline-block; background: #fff; border: 1px solid #b8c2cc; border-bottom-width: 3px;
    border-radius: 6px; padding: 0 8px; font-family: inherit; font-size: 0.92em; font-weight: 800;
    color: var(--ink); white-space: nowrap; line-height: 1.6;
}
.path { font-weight: 800; color: var(--navy); }

/* ---------- Tables ---------- */
.guide-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 18px; font-size: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.guide-table th { background: var(--navy); color: #fff; text-align: left; padding: 11px 14px; font-weight: 800; }
.guide-table td { border-top: 1px solid var(--line); padding: 11px 14px; vertical-align: top; }
.guide-table tr:nth-child(even) td { background: #FBFAF8; }

/* ---------- End of guide ---------- */
.help-panel { background: var(--navy); color: #fff; border-radius: 16px; padding: 30px; margin: 44px 0 20px; }
.help-panel h2 { color: #fff; font-size: 1.5rem; margin: 0 0 8px; }
.help-panel p { color: #cfd9e3; margin: 0 0 20px; }
.help-panel .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.kofi-box {
    display: none; /* shown by guides.js once a Ko-fi link is set */
    align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
    border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 20px;
}
.kofi-box p { margin: 0; color: var(--muted); flex: 1; min-width: 220px; }
.kofi-box p strong { color: var(--ink); }

.related { margin-top: 36px; }
.related h2 { font-size: 1.25rem; margin-bottom: 14px; }
.related .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.related .link-card { padding: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 800; text-decoration: none; }
.disclaimer { font-size: 0.88rem; color: var(--muted); margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Hub page ---------- */
.hub-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.hub-head .lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; margin-bottom: 26px; }
.hub-search { position: relative; max-width: 620px; }
.hub-search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hub-search input {
    width: 100%; padding: 16px 20px 16px 52px; font: inherit; font-size: 1.08rem;
    border: 1.5px solid #cfd6dd; border-radius: 999px; background: #fff; color: var(--ink);
}
.hub-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,59,90,0.15); }
.hub-body { padding-top: 44px; padding-bottom: 72px; }
.hub-cat { margin-bottom: 40px; }
.hub-cat h2 { font-size: 1.35rem; margin-bottom: 16px; }
.link-card .card-meta { font-size: 0.88rem; color: var(--muted); margin: -6px 0 14px; }
.no-results { display: none; color: var(--muted); font-size: 1.1rem; padding: 10px 0 30px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .guide-layout { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
    .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 8px; }
    .toc .toc-help { display: none; }
}
@media (max-width: 600px) {
    .guide-body { font-size: 1.06rem; }
    .guide-body > h2 { font-size: 1.35rem; }
    ol.gsteps > li { padding: 64px 16px 16px; }
    ol.gsteps > li::before { left: 16px; top: 16px; }
    .guide-table { border: none; background: transparent; }
    .guide-table, .guide-table tbody, .guide-table tr, .guide-table td { display: block; width: 100%; }
    .guide-table tr:first-child { display: none; }
    .guide-table tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface); }
    .guide-table td { border: none; padding: 6px 14px; }
    .guide-table tr:nth-child(even) td { background: transparent; }
    .guide-table td:first-child { font-weight: 800; color: var(--navy); padding-top: 12px; }
    .guide-table td:last-child { padding-bottom: 12px; }
    .guide-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 800; color: var(--muted); }
    .help-panel { padding: 24px 20px; }
    .help-panel .btn { width: 100%; }
}

/* ---------- Printing ---------- */
@media print {
    .site-header, .site-footer, .whatsapp-float, .toc, .print-btn, .kofi-box, .help-panel, .related, .back-link, .skip-link { display: none !important; }
    body { background: #fff; font-size: 11.5pt; }
    .guide-head { border: none; padding: 0 0 10px; }
    .guide-layout { display: block; padding: 0; }
    .guide-body { max-width: none; }
    ol.gsteps > li { break-inside: avoid; border-color: #ccc; }
    .callout, .see, .tip, .warn { break-inside: avoid; }
    a { color: #000; text-decoration: none; }
}
