@font-face {
    font-family: "Acumin Variable Concept";
    src: url("../fonts/Acumin-Variable-Concept.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Fluid root: ~16px phones → ~18px large screens (rem-based UI scales with this) */
html {
    font-size: clamp(16px, 0.35vw + 14.75px, 18px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* In-page dashboard anchors: clear sticky topbar */
#section-estimates,
#section-global-map,
#section-country-overview {
    scroll-margin-top: 5.75rem;
}

/* Customer dashboard: single full-width stat */
.dashboard-stat-solo {
    background: linear-gradient(120deg, rgba(24, 42, 72, 0.06) 0%, rgba(255, 255, 255, 1) 42%, rgba(255, 255, 255, 1) 100%);
}

.dashboard-stat-solo__eyebrow {
    letter-spacing: 0.08em;
    font-weight: 600;
}

.dashboard-stat-solo__value {
    font-size: clamp(2.125rem, 5vw + 1rem, 3.25rem);
    line-height: 1.1;
}

.dashboard-stat-solo__figure {
    border: 1px solid rgba(2, 168, 181, 0.2);
}

:root {
    --ct-font-sans-serif: "Poppins", sans-serif;
    --ct-font-heading: "Acumin Variable Concept", sans-serif;

    /* Theme tokens (inherited where components do not redefine the variable) */
    --ct-body-font-size: 1rem;
    --ct-body-line-height: 1.6;
    --ct-nav-link-font-size: 1rem;
    --ct-breadcrumb-font-size: 0.9375rem;
    --ct-menu-item-font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
}

/* Components set their own font-size tokens; bump them here (loads after Bootstrap) */
.dropdown-menu {
    --ct-dropdown-font-size: 1rem;
}

.pagination {
    --ct-pagination-font-size: 1rem;
}

.toast {
    --ct-toast-font-size: 1rem;
}

.tooltip {
    --ct-tooltip-font-size: 0.875rem;
}

.popover {
    --ct-popover-font-size: 0.9375rem;
    --ct-popover-header-font-size: 1rem;
}

.progress,
.progress-stacked {
    --ct-progress-font-size: 0.75rem;
}

.dataTables_wrapper {
    font-size: 1rem;
}

body {
    line-height: var(--ct-body-line-height);
}

/* Default buttons ship with 0.875rem on the component; normalize for readability */
.btn {
    --ct-btn-font-size: 1rem;
}

.btn-group-sm > .btn,
.btn-sm {
    --ct-btn-font-size: 0.9375rem;
}

.btn-group-lg > .btn,
.btn-lg {
    --ct-btn-font-size: 1.125rem;
}

/* Hard-coded in Bootstrap theme */
.form-control,
.form-select,
.input-group-text {
    font-size: 1rem;
}

.form-label {
    font-size: 1rem;
}

.form-text {
    font-size: 0.875rem;
}

.accordion-button {
    font-size: 1rem;
}

small,
.small {
    font-size: 0.9375rem;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ct-font-heading) !important;
}

.page-title,
.header-title,
.card-title,
.card-subtitle,
.modal-title,
.offcanvas-title,
.dropdown-header,
.menu-title,
.popover-header {
    font-family: var(--ct-font-heading) !important;
}

/* Theme defaults hard-code a legacy sans stack on some widgets; use Poppins like the rest of the UI */
.legend tr,
.filter-menu a,
.morris-chart text,
.morris-hover.morris-default-style .morris-hover-row-label {
    font-family: var(--ct-font-sans-serif) !important;
}

div.hopscotch-bubble h3 {
    font-family: var(--ct-font-heading) !important;
}

/*
 * Main column is a flex item (#wrapper display:flex). Without min-width: 0, intrinsic
 * width from wide tables (e.g. wages index + DataTables) prevents shrinking and clips
 * the right edge of the page instead of allowing horizontal scroll inside the main area.
 */
#wrapper > .content-page {
    min-width: 0;
}
