:root {
    --accent: #0b5fff;
    --accent-light: rgba(11, 95, 255, .06);
}

body {
    background: #f8f9fa;
}

/* Header */
.guide-header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
}

.guide-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.guide-header .lead {
    opacity: .9;
    font-size: 1.1rem;
    max-width: 700px;
}

.guide-header .logo-img {
    max-height: 44px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

/* TOC */
.toc {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.toc .list-group-item {
    border: none;
    padding: .6rem 1.25rem;
    font-size: .95rem;
}

.toc .list-group-item:hover {
    background: var(--accent-light);
}

.toc .list-group-item.active-section {
    background: var(--accent-light);
    font-weight: 600;
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.toc .list-group-item .badge {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}

/* Steps */
.step-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.step-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.step-card .step-header {
    background: var(--accent-light);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.step-card .step-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #1a56db;
}

.step-card .step-body {
    padding: 1.5rem;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Figures */
figure {
    margin: 1rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
    max-width: 75%;
}

figure img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity .15s;
}

figure img:hover {
    opacity: .85;
}

figcaption {
    padding: .5rem 1rem;
    font-size: .85rem;
    color: #6b7280;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Portrait / tall screenshots – constrain width */
.figure-portrait {
    max-width: 340px;
}

/* Extra small figure for login */
.figure-login {
    max-width: 220px;
}

.figure-portrait img,
.figure-login img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 2rem;
    animation: lbFadeIn .2s ease;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .4);
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Info box (blue) */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .95rem;
    color: #1e40af;
}

/* Field tables */
.field-table th {
    background: #f1f5f9;
    font-weight: 600;
    width: 150px;
    white-space: nowrap;
    vertical-align: top;
}

.field-table td, .field-table th {
    padding: .6rem .9rem;
    font-size: .93rem;
}

/* Note box */
.note-box {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .95rem;
    color: #92400e;
}

/* Action button style */
.action-btn {
    display: inline-block;
    padding: .15em .5em;
    font-size: .92em;
    font-family: inherit;
    background: #e5e7eb;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-weight: 600;
}

/* Footer */
.guide-footer {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    color: #dbeafe;
    font-size: .88rem;
}

.guide-footer a {
    color: #fff;
    text-decoration: none;
}

.guide-footer a:hover {
    color: #e0e7ff;
}

/* Scroll margin for anchors */
[id] {
    scroll-margin-top: 80px;
}

@media print {
    body {
        background: #fff;
    }

    .guide-header {
        background: #2563eb !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .step-card {
        break-inside: avoid;
        box-shadow: none;
    }

    .toc {
        display: none;
    }
}

