/*
    Additions for /troubleshoot.html only. The navbar, panels, buttons, state pills, and footer all come
    from status.css, which both pages load, so the two look like one site.
*/

.panel-head-link {
    color: var(--color-Primary);
    font-size: 13px;
    white-space: nowrap;
}

.panel-head-link:hover {
    text-decoration: underline;
}

.troubleshoot-intro {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    max-width: 78ch;
}

.troubleshoot-intro code {
    padding: 1px 5px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.troubleshoot-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.troubleshoot-actions .button-primary:disabled {
    opacity: 0.5;
    cursor: progress;
}

.troubleshoot-progress {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Quieter than the intro, because it is a disclosure rather than an instruction, but not hidden. */
.troubleshoot-privacy {
    margin: 16px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    max-width: 78ch;
}

.verdict-detail {
    margin: 12px 0 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    max-width: 78ch;
}

#verdict-reference {
    margin-top: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

/* ---------------------------------------------------------------- check list */

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.check-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/*
    The icon carries the same three colors the status page uses, and it is an icon rather than a colored
    dot for the same reason: a result that is only distinguishable by hue is not a result everyone can
    read.
*/
.check-icon {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-top: 2px;
}

.check-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.check-icon[data-state="operational"] { color: var(--color-Operational); }
.check-icon[data-state="degraded"]    { color: var(--color-Degraded); }
.check-icon[data-state="outage"]      { color: var(--color-Outage); }
.check-icon[data-state="unknown"]     { color: #9CA3AF; }

.check-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.check-label {
    font-size: 14px;
    font-weight: 600;
}

.check-detail {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.check-timing {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
