/* Aasiya v37.1: ease for older readers. Loaded last, so it only raises things.
   Rules: no interface text under 14px (a label under an icon may be 13px); every button, select, input and link block is
   at least 44 x 44px (padding and min-height, the glyphs stay the same size); text contrast is raised through the colour
   tokens in themes.css. scripts/verify_v371_ease.py measures all of it in a browser.
   Sacred text (.ar, Quran, duas) keeps its own sizes. Logical properties are used so right-to-left pages need no copy. */
:root { --tap: 48px; --text-min: .875rem; --label-min: .8125rem; }

/* ---------- tap targets ---------- */
button, select, summary,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]) { min-height: var(--tap); }
button { min-width: var(--tap); }
button, summary { touch-action: manipulation; }
input[type="checkbox"], input[type="radio"] { min-width: 24px; min-height: 24px; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { min-height: var(--tap); display: inline-flex; align-items: center; gap: 10px; }
.si-link, .si-change, .pl-btn, .mq-dir, #settingsJump, .ob-link, .ob-privacy-link, .doc-link, a.link-btn {
  display: inline-flex; align-items: center; min-height: var(--tap); }
.tab { min-height: var(--tap); }
.ob-x { min-width: var(--tap); min-height: var(--tap); }
.t-check { width: var(--tap); height: var(--tap); }
.ay-play { width: var(--tap); height: var(--tap); }

/* ---------- text floors ---------- */
.tab span, .dash-item span, .dash-item .di-label { font-size: var(--label-min); }
#toast, #homeHijri, #nextLabel, #nextAt, #locName, #adhanToggleLabel, #sunnahLine, #shukrSave, #ayahRef, #ayahOpen, #sunnahTodayGo, .ao-tr, .ao-en, #sunnahTodayTitle,
#sunnahTodaySrc, #settingsJump, #rerunSetupBtn, #startOverBtn, #signInBtn, #pushFine, #moreFine, #setZipNote, #surahAudioBtn,
#goalCard .ac-label, #shukrCard .ac-label, #askCard .ask-text span, #view-settings .section-h, #settingsSection,
#view-settings .fineprint, .spn-label, .spn-line, .house-more,   /* setup text is set (larger) in onboarding.css */
.goal-btns .pill, .sr-num, .sr-en, .sr-title, .sr-sub, .lang-btn-code, .brand-sub, .fineprint, .muted, .ac-label, .pill.small, .pill.ghost.small {
  font-size: var(--text-min);
}
.dash-item { font-size: var(--label-min); }
#brandHome { min-height: var(--tap); display: flex; align-items: center; }

/* ---------- contrast on gold fills in the four light themes: dark ink on dark gold failed, so these use the light ink the
   themes already define for gold (--on-gold), and the gradient never starts on a pale gold ---------- */
html[data-theme="v1"] .si-primary, html[data-theme="v2"] .si-primary,
html[data-theme="v3"] .si-primary, html[data-theme="v4"] .si-primary { color: var(--on-gold); }
html[data-theme="v1"] #installBtn, html[data-theme="v2"] #installBtn,
html[data-theme="v3"] #installBtn, html[data-theme="v4"] #installBtn { background: linear-gradient(140deg, var(--gold), var(--gold-bright)); color: #fff; }
/* Iznik Classic: the label and the time under the countdown sit on the pale blue plate, not on the page */
html[data-theme="v3"] .hero-label, html[data-theme="v3"] .hero-at { color: #3e538a; }
html[data-theme="v1"] .ob-btn:not(.ghost), html[data-theme="v2"] .ob-btn:not(.ghost), html[data-theme="v3"] .ob-btn:not(.ghost), html[data-theme="v4"] .ob-btn:not(.ghost),
html[data-theme="v1"] .ob-next, html[data-theme="v2"] .ob-next, html[data-theme="v3"] .ob-next, html[data-theme="v4"] .ob-next { color: var(--on-gold); }
.pl-btn.pl-change { color: var(--text); }
.ay-num { color: var(--gold-bright); }
/* a long word in a menu button wraps instead of pushing the page sideways (Tamil at 320px) */
.menu-item { max-width: 100%; }
.menu-item span, button span { overflow-wrap: anywhere; min-width: 0; }
/* v37.1: "Change" has a pale button face in every theme (it is not a gold fill), so it keeps the body ink; the white-on-pale it had in the
   four light themes was nearly invisible. "Use this as my place" and "Search here" ARE gold fills: they take the ink made for gold. */
html[data-theme="v1"] .pl-use, html[data-theme="v2"] .pl-use, html[data-theme="v3"] .pl-use, html[data-theme="v4"] .pl-use,
html[data-theme="v1"] .pl-go, html[data-theme="v2"] .pl-go, html[data-theme="v3"] .pl-go, html[data-theme="v4"] .pl-go,
html[data-theme="v1"] .pl-btn.pl-main, html[data-theme="v2"] .pl-btn.pl-main, html[data-theme="v3"] .pl-btn.pl-main, html[data-theme="v4"] .pl-btn.pl-main,
html[data-theme="v1"] .pl-use:hover, html[data-theme="v2"] .pl-use:hover, html[data-theme="v3"] .pl-use:hover, html[data-theme="v4"] .pl-use:hover,
html[data-theme="v1"] .pl-go:hover, html[data-theme="v2"] .pl-go:hover, html[data-theme="v3"] .pl-go:hover, html[data-theme="v4"] .pl-go:hover { color: var(--on-gold); }
.pl-btn.pl-change:hover { color: var(--text); }
html[data-theme="v1"] .ay-num, html[data-theme="v2"] .ay-num, html[data-theme="v3"] .ay-num, html[data-theme="v4"] .ay-num { color: var(--brand-red-deep); }

/* v37.1: the Arabic name on the highlighted (current) prayer row sits on a tinted background, where the dim colour fell under 4.5 to 1 */
html[data-theme="v1"] .times li.now .t-name .ar, html[data-theme="v2"] .times li.now .t-name .ar,
html[data-theme="v3"] .times li.now .t-name .ar, html[data-theme="v4"] .times li.now .t-name .ar { color: var(--text); }
