/* Readability enhancements — scoped to Derasatek's public-facing theme. */
:root { --drt-body: clamp(17px, 0.35vw + 16px, 19px); --drt-small: clamp(15px, 0.30vw + 14px, 17px); --drt-title: clamp(27px, 2.4vw, 42px); }
body:not(.wp-admin) {
  font-family: "Segoe UI", "Traditional Arabic", "Noto Naskh Arabic", Arial, sans-serif;
  font-size: var(--drt-body);
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body:not(.wp-admin) :is(main, .site-header, .site-footer) :is(p, li, label, summary, blockquote) {
  line-height: 1.85;
}
body:not(.wp-admin) :is(.topbar, .eyebrow, .kicker, .hero-note, .quick-search, .search-heading span,
 .brand small, .card-top, .tag, .thesis-total-counter span, .card-bottom, .footer-bottom, .breadcrumb,
 .breadcrumbs, .meta, .post-meta, .service-meta, .thesis-meta) {
  font-size: var(--drt-small) !important;
  line-height: 1.7 !important;
}
body:not(.wp-admin) :is(.site-nav a, .drs-menu a, .drs-basket-header, .topbar a, .text-link,
 .quick-search a, .hero-secondary, .button, .library-search button, .pagination a,
 .page-numbers, .thesis-request-link) {
  font-size: clamp(16px, 0.35vw + 15px, 19px) !important;
  line-height: 1.55 !important;
  font-weight: 650;
}
body:not(.wp-admin) :is(.library-search input, .library-search select, .library-search textarea,
 input[type="search"], main input[type="text"], main select, main textarea) {
  font-size: clamp(17px, 0.3vw + 16px, 20px) !important;
  line-height: 1.6 !important;
  min-height: 46px;
}
body:not(.wp-admin) :is(.search-heading strong, .section-heading h2, .archive-header h1,
 .page-header h1, .entry-header h1, .service-hero h1, .single-header h1) {
  font-size: var(--drt-title) !important;
  line-height: 1.48 !important;
  font-weight: 750;
  overflow-wrap: anywhere;
}
body:not(.wp-admin) :is(.search-heading strong, .section-heading .kicker) {font-weight: 750;}
body:not(.wp-admin) :is(.thesis-card h3, .service-card h3, .guide-card h3,
 .three-grid article h3, .service-grid article h3) {
  font-size: clamp(20px, 1.2vw + 13px, 26px) !important;
  line-height: 1.65 !important;
  font-weight: 750;
  overflow-wrap: anywhere;
}
body:not(.wp-admin) :is(.thesis-card p, .service-card p, .guide-card p,
 .three-grid article p, .service-grid article p, .empty-library p,
 .search-heading, .section-heading p) {
  font-size: var(--drt-body) !important;
  line-height: 1.85 !important;
}
body:not(.wp-admin) :is(.thesis-card, .service-card, .guide-card) {min-width: 0;}
body:not(.wp-admin) :is(.thesis-card, .service-card, .guide-card, .section-heading, .search-wrap) :is(a, p, span, strong, h2, h3) {overflow-wrap: break-word;}
@media (max-width: 767px) {
  :root {--drt-body: 17px; --drt-small: 15.5px; --drt-title: clamp(25px, 6vw, 34px);}
  body:not(.wp-admin) :is(.library-search input, input[type="search"]) {font-size: 17px !important; min-width: 0;}
  body:not(.wp-admin) :is(.search-heading strong, .section-heading h2) {line-height: 1.55 !important;}
  body:not(.wp-admin) :is(.button, .library-search button, .text-link) {white-space: normal;}
}
@media (min-width: 768px) and (max-width: 1100px) {
  :root {--drt-body: 18px; --drt-small: 16px; --drt-title: clamp(30px, 3vw, 38px);}
}
@media (prefers-reduced-motion: reduce) {body:not(.wp-admin) * {scroll-behavior: auto;}}
