/* EVOLYN — accessible readability layer, all workspaces.
   Typography and semantic emphasis only; preserves existing layouts and workflows. */
:root {
  --ev-readable-text: #242235;
  --ev-readable-muted: #625b75;
  --ev-readable-purple: #6543c7;
}
body:not(.login-page) { font-size: 16px; line-height: 1.6; }
body:not(.login-page) :is(.page-content, .main-content) { color: var(--ev-readable-text); }
body:not(.login-page) .page-content :is(p, li, label, td, input, select, textarea, .description, .subtitle) {
  font-size: max(16px, 1em);
  line-height: 1.6;
}
body:not(.login-page) .page-content :is(h1, .page-title) {
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -.025em;
}
body:not(.login-page) .page-content h2 { font-size: clamp(21px, 1.9vw, 27px); font-weight: 750; line-height: 1.3; }
body:not(.login-page) .page-content h3 { font-size: clamp(18px, 1.45vw, 22px); font-weight: 700; line-height: 1.35; }
body:not(.login-page) .page-content :is(.ev-stat, .stat-card, .stat-box) strong {
  font-size: clamp(24px, 2vw, 32px); font-weight: 800; line-height: 1.2;
}
body:not(.login-page) :is(.sidebar .sidebar-link, .sidebar a, .topbar) { font-size: 15.5px; }
body:not(.login-page) .sidebar :is(.sidebar-link, a) { line-height: 1.5; }
body:not(.login-page) .page-content :is(.btn, .ev-btn, button, input[type=submit]) {
  font-size: 15px; font-weight: 700; line-height: 1.45;
}
body:not(.login-page) .page-content :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  font-size: 16px; line-height: 1.5;
}
body:not(.login-page) .page-content :is(th, thead td) {
  font-size: 14px; font-weight: 800; letter-spacing: .025em; color: #4d4668;
}
body:not(.login-page) .page-content td { font-size: 15.5px; }
body:not(.login-page) .page-content :is(small, .small, .text-muted, .muted, .helper-text, .hint, .card-subtitle) {
  font-size: 14.5px; line-height: 1.55; color: var(--ev-readable-muted);
}
body:not(.login-page) .page-content :is(.ev-back, .mw-back, .qa-back) { font-size: 15px; font-weight: 750; color: var(--ev-readable-purple); }
body:not(.login-page) .page-content :is(.badge, .status-badge, .ev-badge, .pill) { font-size: 13.5px; font-weight: 750; line-height: 1.35; }
body:not(.login-page) .page-content :is(a, button, .btn):focus-visible { outline: 3px solid #ad97ff; outline-offset: 3px; }
/* Authentication and landing have bespoke layouts; improve readability without resizing their containers. */
body:is(.login-page, .register-page) :is(label, input, select, button, .btn) { font-size: 16px; }
body:is(.login-page, .register-page) :is(.helper-text, small, .small) { font-size: 14px; line-height: 1.5; }
@media (max-width: 768px) {
  body:not(.login-page) .page-content :is(h1, .page-title) { font-size: 27px; }
  body:not(.login-page) .page-content :is(h2) { font-size: 21px; }
  body:not(.login-page) .page-content td { font-size: 15px; }
}
@media print {
  body:not(.login-page) { font-size: 12pt; }
  body:not(.login-page) .page-content td { font-size: 10pt; }
}
