/* HebrewKids shared readability and touch rules. Loaded last on every page. */
:root { --gold-text: #8A6410; }

/* 1. Gold is for dark backgrounds. On light ones, small gold text is too faint to read. */
.section-label, .slide-type-tag, .section-eye, .eyebrow, .next-label, .unit-count:not([href]) { color: var(--gold-text) !important; }
.hero h1 em { color: #A37A14 !important; }
.streak-chip { color: #B23C00 !important; }
.metric-sub, .panel-link { color: #14775A !important; }
.panel-link { color: #5B4FCF !important; }
/* faint white text on navy */
.profile-level, .xp-lbl, .xp-lbl span, .nav-group-label, .hero-stat-lbl, .plan-renews, .nav-label-sm, .footer-logo { color: rgba(255,255,255,.72) !important; }
.footer-logo span { color: var(--gold) !important; }
.nav-logo { gap: 0 !important; } /* the name is one word: HebrewKids */
.progress-bar-lbl, .progress-bar-lbl span, .sidebar-bottom a { color: rgba(255,255,255,.75) !important; }
.progress-bar-lbl, .progress-bar-lbl span { font-size: 12px !important; }
.mod-name span[id^="pmod-"] { color: var(--navy) !important; font-weight: 700; }

/* 2. Nothing a child or parent has to read is smaller than 12px. */
.bottom-nav-item .nav-label, .letter-name, .vn, .holiday-date, .holiday-xp, .prayer-badge, .lesson-badge, .mod-desc,
.section-label, .bar-label, .child-stat-lbl, .slide-type-tag, .cc-s, .hero-stat-lbl, .eyebrow, .today-eyebrow, .plan-eyebrow,
.next-label, .hero-eyebrow, .tutor-status, .demo-status, .demo-badge, .featured-pill, .badge-save, .nav-group-label, .nav-label-sm,
.ks-badges button em, #step-lbl, .month, .profile-level, .xp-lbl { font-size: 12px !important; }
.letter-sound { font-size: 11px !important; line-height: 1.25; }

/* 3. Phones: fields at 16px so iOS does not zoom the page, and targets a finger can hit. */
@media (max-width: 900px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
  .back-btn, .bbtn, .sug, .level-btn, .btn-sm, .pwa-banner-btn, .pwa-banner-close, .mobile-parent-bar-btn, .sn-link, .signup-link,
  #forgot-link, .back, .panel-link, .in, .section-row a, .nav-right a, .nav-links a, .unit-count[href] { min-height: 44px; display: inline-flex; align-items: center; }
  .pwa-banner-close, a.back[title] { min-width: 44px; justify-content: center; }
  .lnav a, .sidebar-bottom a, .upcoming a, .cal-item a { min-height: 44px; display: inline-flex; align-items: center; }
  .back-btn, .bbtn, .back { padding-right: 10px; }
  .nav-logo, .sn-logo, .logo { min-height: 44px; display: inline-flex; align-items: center; }
  .topbar-actions { display: none !important; } /* the bar above already has this button */
}
input[type=checkbox] { width: 20px; height: 20px; }
/* the on/off switch keeps its look but answers a tap anywhere near it */
.toggle::before { content: ''; position: absolute; inset: -10px -6px; }

/* 4. A visible focus ring for keyboards and switch devices. */
a:focus-visible, button:focus-visible, [role=button]:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #C9A84C; outline-offset: 2px; }

/* 5. Long Hebrew phrases get the full width, with the English underneath. */
.vocab-row.long { flex-direction: column; align-items: stretch; gap: 8px; }
.vocab-row.long .vocab-heb { font-size: 26px; line-height: 1.5; text-align: right; }
.vocab-row.long .vocab-en { text-align: left; }
.vocab-row.long .vocab-translit { font-size: 15px; }

/* 6. Pressing something should feel like pressing something. */
.btn:active, .next-btn:active, .sbtn:active, .rw-next-btn:active, .vocab-row:active, .quiz-choice:active, .letter-card:active, .module-card:active, .opt:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
