/* Guide page — extends style.css with the bits a long-form doc needs */

.guide {
    max-width: 760px;
}

.guide-back {
    margin-bottom: 24px;
}

.guide-back a {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
}

.guide-back a:hover {
    text-decoration: underline;
}

.guide header h1 {
    font-size: 36px;
    margin: 0 0 12px;
}

.guide .lede {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px;
}

/* Table of contents */
.toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 28px;
    margin: 0 0 40px;
}

.toc h2 {
    margin: 0 0 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-mute);
    font-weight: 600;
}

.toc ol {
    column-count: 2;
    column-gap: 32px;
    padding-left: 24px;
    margin: 0;
}

.toc li {
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.5;
    break-inside: avoid;
}

.toc a {
    color: var(--text);
    text-decoration: none;
}

.toc a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Section blocks */
.guide section {
    margin-bottom: 44px;
    scroll-margin-top: 16px;
}

.guide h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.guide p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.65;
}

.guide ul, .guide ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.guide li {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.guide strong {
    color: var(--text);
    font-weight: 600;
}

.guide code {
    background: var(--surface);
    color: var(--text-dim);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 12.5px;
}

.guide kbd {
    display: inline-block;
    padding: 2px 7px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 4px;
    color: var(--text);
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
}

.guide a {
    color: var(--accent);
    text-decoration: none;
}

.guide a:hover {
    text-decoration: underline;
}

/* Tables */
.guide table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 18px;
    font-size: 13.5px;
}

.guide thead th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.guide tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--surface-2);
    color: var(--text);
    line-height: 1.55;
}

.guide tbody tr:last-child td {
    border-bottom: none;
}

/* Priority color swatches in the priority table */
.swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 8px;
}

.swatch.p0 { background: var(--priority-p0); }
.swatch.a1 { background: #E09B52; }
.swatch.a2 { background: #5299E0; }
.swatch.b1 { background: #888888; }

/* Definition list for troubleshooting */
.guide dl {
    margin: 0;
}

.guide dt {
    font-weight: 600;
    color: var(--text);
    margin: 16px 0 4px;
    font-size: 14px;
}

.guide dt:first-child {
    margin-top: 0;
}

.guide dd {
    margin: 0 0 8px;
    padding-left: 16px;
    color: var(--text);
    border-left: 2px solid var(--border);
    font-size: 13.5px;
    line-height: 1.6;
}

/* Footer */
.guide-footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-mute);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 600px) {
    .toc ol { column-count: 1; }
    .guide h2 { font-size: 20px; }
    .guide header h1 { font-size: 28px; }
}
