/* System-wide visual hierarchy and typography baseline.
 * Keep page-specific layouts intact while giving every workspace the same
 * readable scale, focus treatment, and light/dark contrast. */
:root {
    --peso-font-ui: Inter, "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --peso-font-size-body: 16px;
    --peso-line-body: 1.55;
}

html,
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body[data-peso-page] {
    font-family: var(--peso-font-ui) !important;
    font-size: var(--peso-font-size-body);
    line-height: var(--peso-line-body);
    color: var(--peso-ink, #17251e);
}

body[data-peso-page] :is(input, select, textarea, button) {
    font-family: inherit;
}

body[data-peso-page] :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--peso-font-ui) !important;
    letter-spacing: -0.018em;
    line-height: 1.2;
}

body[data-peso-page] h1 {
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 750;
}

body[data-peso-page] h2 {
    font-size: clamp(23px, 2.2vw, 30px);
    font-weight: 730;
}

body[data-peso-page] h3 {
    font-size: clamp(19px, 1.7vw, 24px);
    font-weight: 700;
}

body[data-peso-page] p,
body[data-peso-page] li,
body[data-peso-page] label,
body[data-peso-page] .form-text,
body[data-peso-page] .help-text,
body[data-peso-page] .subtitle,
body[data-peso-page] .page-subtitle {
    font-size: 15px;
    line-height: 1.55;
}

body[data-peso-page] small,
body[data-peso-page] .meta,
body[data-peso-page] .muted,
body[data-peso-page] .helper,
body[data-peso-page] .hint {
    font-size: 14px;
    line-height: 1.45;
}

body[data-peso-page] :is(.nav-link, .dashboard-sidebar-link, .sidebar .nav-link, .site-header .nav a, .peso-public-header .nav a) {
    font-size: 14px;
    font-weight: 650;
}

body[data-peso-page] :is(.card-title, .job-title, .job-card h3, .job-card h4, .vacancy-card h3, .application-card h3) {
    font-size: clamp(17px, 1.25vw, 20px);
    font-weight: 720;
    line-height: 1.3;
}

body[data-peso-page] :is(.btn, button, [role="button"], input[type="submit"], input[type="button"]) {
    min-height: 44px;
    font-size: 14px;
    font-weight: 700;
}

body[data-peso-page] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 44px;
    font-size: 15px;
}

body[data-peso-page] :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--peso-gold, #d6a514) 72%, transparent);
    outline-offset: 3px;
}

body[data-peso-page] :is(.badge, .status-badge, .tag, .chip, .pill) {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

body[data-peso-page] :is(.dashboard-sidebar, .sidebar) {
    font-family: var(--peso-font-ui) !important;
}

@media (max-width: 720px) {
    body[data-peso-page] {
        font-size: 15px;
    }

    body[data-peso-page] h1 {
        font-size: clamp(26px, 8vw, 34px);
    }

    body[data-peso-page] h2 {
        font-size: clamp(21px, 6vw, 28px);
    }

    body[data-peso-page] :is(p, li, label, .form-text, .help-text, .subtitle, .page-subtitle) {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-peso-page] *,
    body[data-peso-page] *::before,
    body[data-peso-page] *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
