:root {
    --digest-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

body {
    font-size: 0.9375rem;
}

.navbar {
    background-color: var(--bs-tertiary-bg);
}

/* The post preview should look like Telegram: no monospace font here,
   but line wrapping and tight spacing, yes. */
.tg-preview {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
    max-height: 70vh;
    overflow-y: auto;
}

.tg-preview a {
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.digest-item {
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    padding: .75rem;
    margin-bottom: .75rem;
    background: var(--bs-tertiary-bg);
}

.digest-item.pinned {
    border-left: 3px solid var(--bs-warning);
}

.candidate-row {
    border-bottom: 1px solid var(--bs-border-color);
    padding: .5rem 0;
}

.candidate-row:last-child {
    border-bottom: none;
}

.score-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--bs-secondary-bg);
    overflow: hidden;
}

.score-bar > div {
    height: 100%;
    background: var(--bs-success);
}

.text-mono {
    font-family: var(--digest-mono);
    font-size: .8125rem;
}

.table-sm td, .table-sm th {
    vertical-align: middle;
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

textarea.autosize {
    min-height: 5rem;
    resize: vertical;
}

.stat-card {
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    padding: .75rem 1rem;
    background: var(--bs-tertiary-bg);
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.stat-card .label {
    font-size: .8125rem;
    color: var(--bs-secondary-color);
}
