/*
   Kushal Insurance POSP - Readable visual scale
   Loaded last so the complete application uses comfortable typography,
   larger controls and clearer spacing without changing server-side logic.
*/

:root {
    --read-body: 15px;
    --read-small: 13px;
    --read-caption: 12px;
    --read-control: 14.5px;
    --read-button: 13.5px;
    --read-line: 1.58;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: var(--read-body) !important;
    line-height: var(--read-line) !important;
    letter-spacing: 0;
}

button,
input,
select,
textarea {
    font-size: var(--read-control);
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Master page and navigation ---------- */
.brand-copy strong {
    font-size: 14.5px !important;
    line-height: 1.25;
}

.brand-copy span {
    font-size: 11.5px !important;
    line-height: 1.35;
}

.sidebar-search input {
    font-size: 13px !important;
}

.sidebar-search kbd {
    font-size: 10px !important;
}

.menu-title {
    font-size: 10.5px !important;
    letter-spacing: .11em;
}

.nav-link {
    min-height: 43px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 13px !important;
    line-height: 1.35;
}

.nav-link > i {
    font-size: 14px !important;
}

.nav-children .nav-link {
    min-height: 40px !important;
    font-size: 12.5px !important;
}

.menu-no-result {
    font-size: 12.5px !important;
}

.sidebar-user-copy strong {
    font-size: 12.5px !important;
}

.sidebar-user-copy span,
.sidebar-collapse {
    font-size: 11.5px !important;
}

.page-heading h1 {
    font-size: clamp(18px, 1.8vw, 21px) !important;
    line-height: 1.25;
}

.page-heading p {
    font-size: 12.5px !important;
}

.sync-pill,
.user-chip-copy span {
    font-size: 11.5px !important;
}

.user-chip-copy strong {
    font-size: 12.5px !important;
}

.guest-brand,
.guest-nav a,
.guest-theme {
    font-size: 13px !important;
}

.top-action,
.sidebar-toggle {
    min-width: 40px;
    min-height: 40px;
}

/* ---------- Shared application typography ---------- */
.posp-header h1,
.command-header h1 {
    font-size: clamp(25px, 2.25vw, 31px) !important;
    line-height: 1.2;
}

.posp-header p,
.command-header p {
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.posp-card h2 {
    font-size: 22px !important;
    line-height: 1.28;
}

.posp-card h3,
.posp-review > h3 {
    font-size: 17.5px !important;
    line-height: 1.35;
}

.posp-muted,
.panel-subtitle,
.table-muted,
.field-hint {
    font-size: 13.5px !important;
    line-height: 1.62 !important;
}

.posp-field label,
.form-field label,
.password-form-grid .form-field label {
    font-size: 13.5px !important;
    line-height: 1.4;
}

.posp-input,
.posp-select,
.posp-textarea,
.posp-field input,
.posp-field select,
.posp-field textarea,
.app-input,
.form-control,
.approval-input,
.approval-select,
.approval-textarea {
    min-height: 44px;
    font-size: 14.5px !important;
    line-height: 1.45;
}

textarea.posp-textarea,
.posp-field textarea,
.approval-textarea {
    min-height: 88px;
}

.posp-btn,
.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.approval-button,
.status-button {
    min-height: 42px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 13.5px !important;
    line-height: 1.25;
}

.posp-step {
    min-height: 42px;
    display: grid;
    place-items: center;
    font-size: 12px !important;
    line-height: 1.3;
}

.posp-review-item strong {
    font-size: 11px !important;
}

.posp-review-item label {
    font-size: 13.5px !important;
}

.posp-review-item span,
.posp-review-item div:not(.posp-review-icon) {
    font-size: 13px !important;
    line-height: 1.55;
}

.posp-notice,
.app-alert,
.notice,
.status-notice {
    font-size: 13.5px !important;
    line-height: 1.62 !important;
}

.posp-badge,
.badge,
.status-chip,
.approval-status-chip,
.approval-review-result {
    min-height: 27px;
    padding: 5px 10px;
    font-size: 11px !important;
    line-height: 1.2;
}

/* ---------- Dashboard ---------- */
.command-eyebrow,
.panel-kicker {
    font-size: 10px !important;
    letter-spacing: .1em;
}

.command-badge strong {
    font-size: 12.5px !important;
}

.command-badge span,
.summary-meta {
    font-size: 11px !important;
}

.stat-card span {
    font-size: 11.5px !important;
    line-height: 1.4;
}

.stat-card strong {
    font-size: clamp(28px, 2.6vw, 34px) !important;
    line-height: 1.15;
}

.panel-title {
    font-size: 16px !important;
}

.quick-link strong {
    font-size: 13.5px !important;
}

.quick-link span {
    font-size: 12px !important;
    line-height: 1.5;
}

.progress-meta,
.progress-meta strong {
    font-size: 12.5px !important;
}

.workflow-copy h3 {
    font-size: 15px !important;
}

.workflow-copy p {
    font-size: 12.5px !important;
    line-height: 1.55;
}

.workflow-cell span {
    font-size: 10px !important;
}

.workflow-cell strong {
    font-size: 16px !important;
}

/* ---------- Tables and management pages ---------- */
.app-table,
table {
    font-size: 13.5px;
}

.app-table th,
.app-table td,
.grid-table th,
.grid-table td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    line-height: 1.45;
}

.app-table th,
.grid-table th {
    font-size: 11.5px !important;
    letter-spacing: .045em;
}

.app-table td,
.grid-table td {
    font-size: 13px !important;
}

.panel-head h2,
.panel-head h3,
.modal-title-block h3 {
    font-size: 20px !important;
}

.modal-title-block p {
    font-size: 13.5px !important;
}

.selected-user-card strong {
    font-size: 14.5px !important;
}

.selected-user-card span:not(.selected-user-icon),
.delete-modal-body p {
    font-size: 13px !important;
}

.credential-notice,
.password-owner-notice,
.password-policy-card small {
    font-size: 12.5px !important;
}

.password-policy-card strong {
    font-size: 13px !important;
}

/* ---------- Admin approval ---------- */
.approval-page {
    font-size: 14px;
}

.approval-page-header h1 {
    font-size: clamp(25px, 2.2vw, 30px) !important;
}

.approval-page-header p {
    font-size: 14px !important;
    line-height: 1.6;
}

.approval-stat strong {
    font-size: 28px !important;
}

.approval-stat span {
    font-size: 12.5px !important;
}

.approval-card-head h2 {
    font-size: 20px !important;
}

.approval-card-head h3,
.approval-section-title {
    font-size: 16.5px !important;
}

.approval-card-head span,
.approval-list-meta,
.approval-applicant-meta,
.approval-section-meta {
    font-size: 12.5px !important;
    line-height: 1.55;
}

.approval-list-name,
.approval-applicant-name {
    font-size: 15px !important;
}

.approval-section-data-item strong,
.approval-summary-item span {
    font-size: 11.5px !important;
}

.approval-section-data-item span,
.approval-summary-item strong,
.approval-doc-name,
.approval-doc-file {
    font-size: 13px !important;
    line-height: 1.5;
}

/* ---------- Applicant status ---------- */
.status-page {
    font-size: 14px;
}

.status-page-header h1 {
    font-size: clamp(25px, 2.2vw, 30px) !important;
}

.status-page-header p,
.status-card-head p,
.status-section-description,
.status-section-meta,
.status-help {
    font-size: 13.5px !important;
    line-height: 1.6;
}

.status-applicant-name,
.status-card-head h2 {
    font-size: 20px !important;
}

.status-card-head h3,
.status-section-title {
    font-size: 16px !important;
}

.status-stat strong {
    font-size: 28px !important;
}

.status-stat span {
    font-size: 12.5px !important;
}

.status-current-caption,
.status-stage-label {
    font-size: 11px !important;
}

/* ---------- Training, exam and certificate ---------- */
.posp-module-item {
    font-size: 13.5px;
    line-height: 1.5;
}

.posp-question > strong {
    font-size: 15px !important;
    line-height: 1.6;
}

.posp-question label,
.option {
    font-size: 13.5px !important;
    line-height: 1.55;
}

.posp-certificate p {
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- Login and setup ---------- */
.auth-page {
    font-size: 15px;
}

.auth-hero h1 {
    font-size: clamp(36px, 4.2vw, 58px) !important;
}

.auth-hero p {
    font-size: 15px !important;
    line-height: 1.75 !important;
}

.hero-brand strong {
    font-size: 18px !important;
}

.hero-eyebrow,
.auth-card-badge {
    font-size: 10.5px !important;
}

.hero-point {
    font-size: 13.5px !important;
}

.auth-card h2 {
    font-size: 26px !important;
}

.auth-card .subtitle {
    font-size: 13.5px !important;
    line-height: 1.65;
}

.auth-card .field label,
.auth-card label {
    font-size: 13px !important;
}

.auth-card .form-control {
    min-height: 46px;
    font-size: 14.5px !important;
}

.auth-card .btn-primary {
    min-height: 46px;
    font-size: 14px !important;
}

.auth-links,
.security-note,
.password-rules,
.validation,
.alert {
    font-size: 12.5px !important;
    line-height: 1.6;
}

/* ---------- Responsive readability ---------- */
@media (max-width: 1024px) {
    :root {
        --read-body: 14.5px;
        --read-control: 14px;
    }

    .page-heading h1 {
        font-size: 18px !important;
    }

    .posp-header h1,
    .command-header h1,
    .approval-page-header h1,
    .status-page-header h1 {
        font-size: 24px !important;
    }
}

@media (max-width: 640px) {
    :root {
        --read-body: 14px;
        --read-control: 16px; /* Prevents mobile browser zoom on focused fields. */
    }

    .posp-header,
    .approval-page-header,
    .status-page-header {
        padding: 18px !important;
    }

    .posp-header h1,
    .command-header h1,
    .approval-page-header h1,
    .status-page-header h1 {
        font-size: 22px !important;
    }

    .posp-header p,
    .command-header p,
    .approval-page-header p,
    .status-page-header p {
        font-size: 13.5px !important;
    }

    .posp-card h2 {
        font-size: 20px !important;
    }

    .posp-card h3 {
        font-size: 17px !important;
    }

    .posp-btn,
    .btn,
    .approval-button,
    .status-button {
        min-height: 44px;
        font-size: 14px !important;
    }

    .app-table {
        font-size: 13px;
    }

    .auth-card h2 {
        font-size: 23px !important;
    }

    .auth-hero h1 {
        font-size: 34px !important;
    }
}

/* Print remains compact and avoids oversized report text. */
@media print {
    html,
    body {
        font-size: 12px !important;
    }
}
