/* Cairo's Arabic and Latin glyphs share the same variable weight axis. */
:root {
    --type-caption: .8125rem;
    --type-label: .875rem;
    --type-data: .9375rem;
}
.eyeline, .elevation-kicker { font-weight: 700; }
.crumbs b, .themes button[aria-pressed="true"] { font-weight: 700; }
.page-intro h1, .wf-heading h1, .access-notice h1 { text-wrap: balance; }
.wf-heading h1 { font-weight: 820; line-height: 1.4; }
.wf-heading p, .wf-boxhead p { line-height: 1.75; }
.wf h2, .wf-details > summary { font-weight: 740; line-height: 1.55; }
.wf :is(h3, legend) { font-weight: 700; }
.side-brand-copy strong { font-weight: 820; }
.side .nav-item { font-weight: 560; }
.side .nav-item.active, .side-project-copy strong { font-weight: 740; }
.nav-group > summary { font-weight: 700; }
.wf-kpi > strong, .wf-receipt-total strong, .chart-totals strong { font-weight: 760; line-height: 1.4; }
.metric-label { font-weight: 650; }
.wf-btn, .wf-tab { font-weight: 650; }
.wf-form > label, .wf-fields label, .wf-filter label { font-size: var(--type-label); font-weight: 600; }
.wf :is(input,select,textarea) { font-size: var(--type-data); font-weight: 450; line-height: 1.6; }
.wf table, .record-register table { font-size: var(--type-data); line-height: 1.65; }
.wf .wf-table-scroll th, .record-register th { font-size: var(--type-label); font-weight: 700; }
.wf .wf-table-scroll bdi, .wf-amount, .record-register bdi, .wf-ref, time { font-variant-numeric: tabular-nums; }
.wf .wf-amount { font-weight: 650; }
.wf .wf-amount small { font-weight: 500; }
.record-tools label, .record-count, .recent-register td small { font-size: var(--type-caption); }
.wf-print-receipt header { font-weight: 750; line-height: 1.5; }
.wf-print-receipt dd { font-weight: 600; }
.access-notice p { line-height: 1.8; }

@media (max-width: 650px) {
    .wf :is(input, select, textarea), .record-tools :is(input, select) { font-size: 1rem; }
    .wf table, .record-register table { font-size: var(--type-label); }
    .wf .wf-table-scroll th, .record-register th { font-size: var(--type-caption); }
    .record-tools label, .record-count, .recent-register td small { font-size: .775rem; }
    .page-intro h1 { font-size: clamp(1.8rem, 6vw, 2.1rem); }
}

@media (max-width: 520px) {
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric { padding: 10px 12px; }
    .metric:first-child { grid-column: 1/-1; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; column-gap: 8px; }
    .metric:first-child .metric-head { margin: 0; }
    .metric:first-child .currency-tag { display: none; }
    .metric:first-child .metric-value { justify-self: end; }
    .metric-label { font-size: var(--type-caption); line-height: 1.65; }
    .metric-value { font-size: clamp(1.15rem, 4.6vw, 1.4rem); letter-spacing: -.005em; }
    .metric:first-child .metric-value { font-size: clamp(1.3rem, 5.5vw, 1.65rem); }
}

@media print {
    .wf table, .record-register table { font-size: 10pt; }
    .wf-print-receipt { font-size: 11pt; line-height: 1.65; }
}
