/* NcStatusCheck - Troubleshooting page styles (AGPL-3.0) */

.ts-intro,
.ts-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.ts-intro p {
    margin: 0 0 8px;
    color: var(--gray-700);
}
.ts-intro p:last-child {
    margin-bottom: 0;
}

.ts-section h2 {
    font-size: 1.15rem;
    margin: 0 0 12px;
    color: var(--gray-800);
}

.ts-section h3 {
    font-size: 0.98rem;
    margin: 18px 0 8px;
    color: var(--gray-700);
}

.ts-section p {
    color: var(--gray-700);
    margin: 0 0 10px;
}

.ts-section ol,
.ts-section ul {
    margin: 0 0 12px;
    padding-left: 22px;
    color: var(--gray-700);
}

.ts-section li {
    margin-bottom: 8px;
}

.ts-section code {
    font-size: 0.85rem;
    background: var(--gray-100);
    padding: 1px 5px;
    border-radius: 3px;
}

/* Quick nav pills at the top of the page */
.ts-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.ts-nav a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--gray-200);
}
.ts-nav a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Command blocks (curl, cron, script) — same look & feel as .audit-cmd */
.ts-cmd {
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.82rem;
    overflow-x: auto;
    white-space: pre;
    margin: 6px 0 12px;
}

/* Screenshots — a visibly distinct tinted "mat" so the shot doesn't blend
   into the surrounding white section (the app UI it depicts is also white). */
.ts-figure {
    margin: 14px 0 18px;
    padding: 16px;
    text-align: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
}
.ts-figure-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    padding: 3px 10px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
}
.ts-figure img {
    display: block;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: zoom-in;
}
.ts-figure figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* Lightbox (click a screenshot to see it full-size) */
.ts-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(15, 23, 42, 0.85);
    cursor: zoom-out;
}
.ts-lightbox.ts-lightbox-open {
    display: flex;
}
.ts-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* Callouts (pitfalls / important notes) */
.ts-callout {
    border-radius: 6px;
    padding: 10px 14px;
    margin: 10px 0;
    font-size: 0.88rem;
    line-height: 1.5;
}
.ts-callout-warn {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}
.ts-callout-info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}
.ts-callout strong {
    font-weight: 700;
}

/* Legend / diagnostic tables */
.ts-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
    font-size: 0.88rem;
}
.ts-table th,
.ts-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}
.ts-table thead th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ts-table tbody tr:last-child td {
    border-bottom: none;
}
.ts-table code {
    font-size: 0.8rem;
    background: var(--gray-100);
    padding: 1px 5px;
    border-radius: 3px;
}

/* Badge chips reused inline in prose/tables (mirrors style.css .data-mode-badge) */
.ts-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.ts-badge-extended { background: #ede9fe; color: #6d28d9; }
.ts-badge-push { background: #e0f2fe; color: #0369a1; }
.ts-badge-old { background: #fef3c7; color: #92400e; }
.ts-badge-offline { background: #fee2e2; color: #b91c1c; }

.ts-back-to-top {
    text-align: right;
    margin-top: -6px;
}
.ts-back-to-top a {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-decoration: none;
}
.ts-back-to-top a:hover {
    text-decoration: underline;
}

/* Copy button injected next to each .ts-cmd block by troubleshooting.js */
.ts-cmd-row {
    position: relative;
}
.ts-cmd-row .ts-cmd {
    margin: 6px 0 12px;
    padding-right: 90px;
}
.ts-cmd-row .ts-cmd-copy {
    position: absolute;
    top: 12px;
    right: 8px;
}
