@font-face {
    font-family: 'Speda';
    src: url('../fonts/Speda.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 500;
    font-display: swap;
}

@font-face {
    font-family: 'Speda';
    src: url('../fonts/Speda-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600 900;
    font-display: swap;
}

:root { --bs-body-font-family: 'Speda', Tahoma, sans-serif; }
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, .tooltip, .popover {
    font-family: 'Speda', Tahoma, sans-serif !important;
}

/* A shared reading scale for the application and standalone portal pages. */
@media screen {
    html { font-size: 17px; }
    body { line-height: 1.85; }
    h1, h2, h3, h4, h5, h6 { line-height: 1.65; }
    p, label, .form-text, small, .small { line-height: 1.85; }
    small, .small { font-size: .88em; }
    input, select, textarea, button { line-height: 1.7; }
    html[dir='rtl'] body,
    html[dir='rtl'] h1, html[dir='rtl'] h2, html[dir='rtl'] h3,
    html[dir='rtl'] h4, html[dir='rtl'] h5, html[dir='rtl'] h6,
    html[dir='rtl'] .metric-label, html[dir='rtl'] .metric-value {
        letter-spacing: 0;
    }
    .sidebar .nav-link { font-size: 1rem; line-height: 1.85; gap: 14px; }
    .sidebar .system-submenu .nav-link { font-size: .96rem; line-height: 1.85; padding-block: 11px; }
    .sidebar .nav-header { font-size: .85rem; }
    .main-content .table { font-size: 1rem; line-height: 1.85; }
    .main-content .table th { font-size: .94rem; line-height: 1.8; }
    .main-content label { font-size: 1rem; line-height: 1.85; margin-bottom: .6rem; }
    .main-content .form-control, .main-content .form-select {
        font-size: 1rem;
        line-height: 1.7;
        min-height: 48px;
    }
    .main-content .btn { line-height: 1.75; }
    .main-content .btn-sm { font-size: .88rem; }
    .main-content .badge { font-size: .82em; line-height: 1.65; }
    .new-year-dashboard .metric-label { font-size: .94rem; line-height: 1.8; }
    .topbar { height: auto; min-height: 76px; padding-block: 10px; gap: 12px; }
    @media (max-width: 575px) {
        html { font-size: 16px; }
        .topbar { min-height: 68px; padding-inline: .75rem; gap: 8px; }
    }
}
