/*
 * "How the queue works" page.
 *
 * Lives inside the .support shell, so every colour here reads one of that
 * block's --s-* tokens and both themes are already solved. Nothing below
 * names a colour of its own.
 *
 * The only structures this page needs beyond the shell are a comparison table
 * and a definition list for the API fields; the rest is prose.
 */

.qi__section {
    margin: 32px 0 0;
}

.qi__section h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--s-strong);
    margin: 0 0 8px;
}

.qi__section p {
    color: var(--s-text);
    line-height: 1.6;
    margin: 0 0 10px;
}

.qi__list {
    margin: 0 0 10px;
    padding-left: 18px;
    color: var(--s-text);
    line-height: 1.6;
}

.qi__list li {
    margin-bottom: 6px;
}

/* Tables scroll inside themselves rather than pushing the page sideways on a
   phone, which is the only way the tier and changelog tables fit at 360px. */
.qi__tablewrap {
    overflow-x: auto;
    margin: 12px 0;
}

.qi__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 460px;
}

.qi__table th,
.qi__table td {
    text-align: left;
    padding: 9px 12px;
    border-bottom: 1px solid var(--s-line);
    color: var(--s-text);
    vertical-align: top;
}

.qi__table th {
    font-weight: 600;
    color: var(--s-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

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

/* The tier edge: same 3px colour rail the result page runs down a stem card
   and the support list runs down a ticket, so a tier is scannable rather than
   read. */
.qi__table td:first-child {
    position: relative;
    padding-left: 18px;
    font-weight: 600;
}

.qi__table td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 2px;
    background: var(--s-closed);
}

.qi__table tr[data-tier="premium"] td:first-child::before { background: var(--s-answered); }
.qi__table tr[data-tier="registered"] td:first-child::before { background: var(--s-unread); }
.qi__table tr[data-tier="anon"] td:first-child::before { background: var(--s-waiting); }

.qi__num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.qi__code {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--s-wash-strong);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--s-strong);
}

.qi__fields {
    margin: 10px 0;
    padding: 0;
    color: var(--s-text);
}

.qi__fields dt {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--s-strong);
    margin-top: 8px;
}

.qi__fields dd {
    margin: 2px 0 0 0;
    color: var(--s-muted);
    font-size: 14px;
}

.qi__note {
    border-left: 3px solid var(--s-line);
    padding: 2px 0 2px 12px;
    color: var(--s-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 12px 0;
}

.qi__updated {
    color: var(--s-muted);
    font-size: 13px;
    margin-top: 6px;
}
