/* ============================================================
   TRANSITIONAL Bootstrap shim — the ~40 utilities the not-yet-
   migrated pages (Pages/Admin/Newsletters, Pages/Admin/Tags,
   public pages) still use. Replaces the full 12k-line
   bootstrap.css. Dies together with those pages (messaging
   rebuild Phases B/C).
   ============================================================ */

/* grid (subset) */
.row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 0 -8px; }
.row > * { padding: 0 8px; box-sizing: border-box; }
.g-3 { row-gap: 16px; }
.col { flex: 1 0 0%; min-width: 0; }
.col-1 { flex: 0 0 auto; width: 8.3333%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-12 { flex: 0 0 auto; width: 100%; }
.col-md-3, .col-md-6 { flex: 0 0 auto; width: 100%; }
@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-6 { width: 50%; }
}
.col-form-label { font-size: 12.5px; font-weight: 500; color: var(--text-secondary); padding-top: 6px; }

/* display / flex */
.d-flex { display: flex; }
.d-block { display: block; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-self-start { align-self: flex-start; }
.justify-content-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }

/* spacing */
.m-2 { margin: 8px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.my-2 { margin-top: 8px; margin-bottom: 8px; }
.my-3 { margin-top: 16px; margin-bottom: 16px; }
.me-2 { margin-right: 8px; }
.ms-auto { margin-left: auto; }
.w-100 { width: 100%; }

/* forms (map onto the design-system input look) */
.form-label { display: inline-block; font-size: 12.5px; font-weight: 500; color: var(--text-secondary); margin-bottom: 5px; }
.form-control, .form-select {
    display: block;
    width: 100%;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font: 400 13.5px var(--font);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(94, 106, 210, 0.15);
}
.form-text { font-size: 12px; color: var(--text-muted); }
.form-check { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.form-check-input { accent-color: var(--accent); }

/* buttons: base .btn/.btn-primary/.btn-danger/.btn-sm come from Just.UI */
.btn-outline-primary { background: var(--surface); border-color: var(--border); color: var(--accent); box-shadow: var(--shadow-sm); }
.btn-outline-primary:hover:not(:disabled) { background: var(--accent-soft); }
.btn-outline-secondary { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-outline-secondary:hover:not(:disabled) { background: #f4f4f6; }

/* misc */
.spinner-border, .spinner-border-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: -2px;
}
.card-body { padding: 18px 20px; }
.text-muted, .text-body-secondary { color: var(--text-muted); }
.text-danger { color: var(--red); }
.text-warning { color: var(--amber); }
.text-end { text-align: right; }
.small, small.small-text { font-size: 12.5px; }
