/* STEP21: guide reading tools and MOS-ready editorial blocks */
.guide-reading-progress {
    background: transparent;
    height: 3px;
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
}
.guide-reading-progress span {
    background: #b91c1c;
    display: block;
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .12s linear;
}

.guide-auto-toc {
    border-bottom: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    margin: 18px 0 24px;
    padding: 0;
}
.guide-auto-toc-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #111827;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    justify-content: space-between;
    padding: 14px 0;
    text-align: left;
    width: 100%;
}
.guide-auto-toc-toggle::after {
    color: #6b7280;
    content: "▾";
    font-size: .95rem;
    transition: transform .16s ease;
}
.guide-auto-toc.is-open .guide-auto-toc-toggle::after {
    transform: rotate(180deg);
}
.guide-auto-toc-body {
    display: none;
    padding: 0 0 14px;
}
.guide-auto-toc.is-open .guide-auto-toc-body {
    display: block;
}
.guide-auto-toc-body a {
    border-left: 3px solid #e5e7eb;
    color: #374151;
    display: block;
    font-size: .98rem;
    line-height: 1.35;
    padding: 8px 0 8px 12px;
    text-decoration: none;
}
.guide-auto-toc-body a:hover {
    border-left-color: #b91c1c;
    color: #111827;
}

.guide-callout {
    border-left: 5px solid #9ca3af;
    margin: 1.15em 0;
    padding: 14px 16px;
}
.guide-callout-title {
    align-items: center;
    color: #111827;
    display: flex;
    font-size: 1rem;
    font-weight: 900;
    gap: 8px;
    margin-bottom: 8px;
}
.guide-callout-title span {
    line-height: 1;
}
.guide-callout-body {
    color: #2f3542;
    font-size: 1.02rem;
    line-height: 1.48;
}
.guide-callout-body p:last-child,
.guide-callout-body ul:last-child,
.guide-callout-body ol:last-child {
    margin-bottom: 0;
}
.guide-callout--important,
.guide-callout--warning {
    background: #fff7ed;
    border-left-color: #ea580c;
}
.guide-callout--tip {
    background: #f0fdf4;
    border-left-color: #16a34a;
}
.guide-callout--note,
.guide-callout--info {
    background: #eff6ff;
    border-left-color: #2563eb;
}
.guide-callout--quote {
    background: #f9fafb;
    border-left-color: #111827;
}
.guide-callout--error {
    background: #fef2f2;
    border-left-color: #dc2626;
}
.guide-callout--checklist {
    background: #f8fafc;
    border-left-color: #0f766e;
}
.guide-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.guide-checklist li {
    margin: .45em 0;
    padding-left: 1.65em;
    position: relative;
}
.guide-checklist li::before {
    color: #16a34a;
    content: "✓";
    font-weight: 900;
    left: 0;
    position: absolute;
}

.guide-content blockquote {
    border-left: 5px solid #111827;
    color: #111827;
    font-size: 1.08em;
    font-style: normal;
    line-height: 1.45;
    margin: 1.25em 0;
    padding: 6px 0 6px 18px;
}
.guide-content blockquote p:last-child {
    margin-bottom: 0;
}

.guide-content ul,
.guide-content ol {
    margin: 0 0 1.05em 1.2em;
    padding-left: 1.05em;
}
.guide-content li {
    margin: .32em 0;
}
.guide-content a {
    color: #b91c1c;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .guide-auto-toc {
        margin: 14px 0 20px;
    }
    .guide-callout {
        margin: 1em 0;
        padding: 12px 13px;
    }
    .guide-callout-body {
        font-size: 1rem;
        line-height: 1.43;
    }
}
