/* ============================================================
   Learn Qur'an Without Grammar — Stylesheet
   Mobile-first, Arabic-ready, clean educational design
   ============================================================ */

:root {
  --green:        #1a6b3a;
  --green-dark:   #0f4425;
  --green-light:  #e8f5ee;
  --gold:         #b8930a;
  --gold-light:   #f5e8a0;
  --cream:        #fdfcf7;
  --white:        #ffffff;
  --text:         #1c1c1e;
  --muted:        #636366;
  --border:       #ddd9ce;
  --table-stripe: #f7f5ee;
  --warn-bg:      #fef9ec;
  --warn-border:  #e6a817;
  --font-arabic:  'Amiri', 'Scheherazade New', 'Traditional Arabic', 'Arabic Typesetting', serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-tamil:   'Noto Sans Tamil', 'Tamil Sangam MN', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* ── Base ── */
body {
  font-family: var(--font-ui);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  background: var(--green);
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.nav-container {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-arabic {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  color: var(--gold-light);
  line-height: 1;
}
.logo-divider {
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}
.logo-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.01em;
}

/* ── Main ── */
.main-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ── Article spacing ── */
.lesson-body > * + * { margin-top: 1.2rem; }

/* ── Headings ── */
.lesson-body h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}
.lesson-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  padding-bottom: 0.35rem;
  border-bottom: 2.5px solid var(--gold);
  margin-top: 2.5rem;
}
.lesson-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 2rem;
}
.lesson-body h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Paragraphs ── */
.lesson-body p { line-height: 1.8; }

/* ── Horizontal rule ── */
.lesson-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Bold/emphasis ── */
/* Arabic text appears in bold (**word**) throughout lessons.
   Amiri font + larger size ensures Arabic renders at card-quality
   even when inline with English text. */
.lesson-body strong {
  font-weight: 700;
  font-size: 1.2em;
  font-family: var(--font-arabic), var(--font-ui);
  line-height: 2;
}
.lesson-body em { font-style: italic; }

/* ── Links ── */
.lesson-body a { color: var(--green); text-decoration: underline; }
.lesson-body a:hover { color: var(--gold); }

/* ── Lists ── */
.lesson-body ul,
.lesson-body ol {
  padding-left: 1.5rem;
  line-height: 1.8;
}
.lesson-body li + li { margin-top: 0.25rem; }

/* ── Blockquotes (hadith, teacher cues, notes) ── */
.lesson-body blockquote {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  padding: 0.85rem 1.25rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  color: #4a3e10;
}
.lesson-body blockquote > p + p { margin-top: 0.5rem; }

/* First blockquote = verification warning */
/* (naturally styled by the rule above) */

/* ── Tables ── */
.lesson-body table {
  font-size: 0.92rem;
  margin: 1rem 0;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: block;        /* enables horizontal scroll on mobile */
  overflow-x: auto;
  width: 100%;
}
.lesson-body th {
  background: var(--green);
  color: white;
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.lesson-body td {
  padding: 0.65rem 0.9rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  /* Amiri covers both Arabic Unicode and Latin — applies to all cells */
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  line-height: 2;        /* generous for Arabic diacritics */
}
.lesson-body tr:last-child td { border-bottom: none; }
.lesson-body tr:nth-child(even) td { background: var(--table-stripe); }
.lesson-body tr:hover td { background: #eeeae0; transition: background 0.1s; }

/* ── Anchor Arabic display ── */
/* The big central Arabic phrase in the Anchor section */
.lesson-body h2 + p strong,
.anchor-phrase {
  font-family: var(--font-arabic);
}

/* Inline Arabic text (naturally renders via font) */
/* Amiri handles Arabic Unicode ranges automatically */

/* ── Audio player ── */
.lesson-body audio {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 42px;
  margin: 0.4rem 0 0.8rem;
  border-radius: 6px;
  background: var(--green-light);
}



/* Audio container label */
.audio-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

/* ── Verse Card (Option A) ── */
.verse-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}
.verse-card .header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}
.verse-card .verse-label {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-shrink: 0;
}
.verse-card .verse-num {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.verse-card .verse-form {
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.verse-card .verse-ref {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.verse-card audio {
  display: inline-block;
  width: 220px;
  height: 28px;
  margin: 0;
  background: transparent;
  vertical-align: middle;
  border-radius: 4px;
  max-width: none;
}
.verse-card .verse-arabic {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.verse-card .verse-arabic b,
.verse-card .verse-arabic strong {
  color: var(--green);
}
.verse-card .verse-english {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
  text-align: right;
  margin-bottom: 0.75rem;
}
.verse-card .verse-english strong {
  color: var(--green);
}
.verse-card .verse-hook {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.5;
  border-left: 3px solid var(--border);
  padding-left: 0.75rem;
}
.verse-card .verse-ref-bottom {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.verse-card .verse-ref-bottom audio {
  display: inline-block;
  width: 220px;
  height: 28px;
  margin: 0;
  background: transparent;
  vertical-align: middle;
  border-radius: 4px;
  max-width: none;
}

/* Language-dependent audio in verse cards */
.verse-card audio.lang-ta,
.verse-card .verse-ref-bottom audio.lang-ta { display: none; }
.lang-active-ta .verse-card audio.lang-en,
.lang-active-ta .verse-card .verse-ref-bottom audio.lang-en { display: none; }
.lang-active-ta .verse-card audio.lang-ta,
.lang-active-ta .verse-card .verse-ref-bottom audio.lang-ta { display: inline-block; }

/* ── Anchor card variant ── */
.anchor-card {
  border-left: 4px solid var(--gold);
  background: linear-gradient(to right, #fdf8e8, var(--white) 30%);
}
.anchor-card .verse-num {
  color: var(--gold);
}

/* ── Phrase-pair table (Option B) — Arabic | English side-by-side ── */
.pair-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}
.pair-table thead { display: none; }
.pair-table td {
  padding: 0.5rem 0.75rem;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}
.pair-table tr:last-child td { border-bottom: none; }
.pair-table td:first-child {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  line-height: 2;
  direction: rtl;
  text-align: right;
  width: 55%;
  color: var(--text);
}
.pair-table td:first-child strong { color: var(--green); }
.pair-table td:nth-child(2) {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
  vertical-align: middle;
}
.pair-table td:nth-child(2) strong { color: var(--green); }
.pair-table td.pair-audio {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  padding-left: 0.25rem;
}
.pair-table td.pair-audio audio {
  width: 140px;
  height: 28px;
}

/* ── Phrase-pair stacked with dividers (Option C — spare) ── */
.phrase-pairs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.5rem 0;
}
.phrase-pair .pair-arabic {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  color: var(--text);
}
.phrase-pair .pair-arabic strong { color: var(--green); }
.phrase-pair .pair-english {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  text-align: right;
  line-height: 1.6;
}
.phrase-pair .pair-english strong { color: var(--green); }
.phrase-pairs-divided .phrase-pair {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 0.75rem;
}
.phrase-pairs-divided .phrase-pair:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Download link */
.download-link {
  display: inline-block;
  background: var(--green);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.download-link:hover {
  background: var(--green-dark);
  color: white !important;
}

/* ── Centered root-word tables ── */
.root-table {
  margin-left: auto !important;
  margin-right: auto !important;
  display: table !important;    /* override block to allow centering */
  width: auto !important;
}
.root-table th:nth-child(1),
.root-table td:nth-child(1) {
  text-align: right;
}
.root-table th:nth-child(n+2),
.root-table td:nth-child(n+2) {
  text-align: left;
}
/* Transliteration column — UI font, italic */
.root-table td:nth-child(2) {
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
}
/* English column — UI font */
.root-table td:nth-child(3) {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Summary table ── */
.summary-table {
  margin-left: auto !important;
  margin-right: auto !important;
}
.summary-table td:nth-child(2) {
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 0.9rem;
}
.summary-table td:nth-child(3) {
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.summary-table td:nth-child(4) {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Preview line ── */
.lesson-preview {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 1rem 0 1.5rem;
}

/* ── Code ── */
.lesson-body code {
  font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace;
  background: #eeebe1;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.87em;
}

/* ── Star ayah call-out ── */
/* ⭐ renders as Unicode — no extra styling needed */

/* ── Teacher cue lines ── */
/* **Teacher cue:** "..." — bold label is enough */

/* ── Footer ── */
.site-footer {
  background: var(--green-dark);
  text-align: center;
  padding: 2rem 1.5rem;
}
.footer-arabic {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}
.footer-trans {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ── Homepage cards ── */
.lesson-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  color: var(--text);
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  margin-bottom: 1rem;
}
.lesson-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: var(--green);
}
.lesson-card .lesson-card-title a {
  text-decoration: none;
  color: var(--green);
}
.lesson-card:hover .lesson-card-title a {
  text-decoration: underline;
}
.lesson-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.25rem;
}
.lesson-card-arabic {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--green-dark);
  line-height: 2;
}
.lesson-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── Phrases Summary List (stacked) ── */
.phrases-list {
  display: flex;
  flex-direction: column;
  margin: 1rem 0;
}
.phrase-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.phrase-row:last-child {
  border-bottom: none;
}
.phrase-arabic {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  color: var(--text);
}
.phrase-english {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.15rem;
}
.phrase-ref {
  font-style: normal;
  font-size: 0.8rem;
  color: #aaa;
}

/* ── Lesson Map ── */
.lesson-map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.88rem;
}
.lesson-map a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-arabic), var(--font-ui);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.lesson-map a:hover {
  background: var(--green-light);
  text-decoration: underline;
}
.lesson-map .map-arrow {
  color: var(--muted);
  font-size: 0.75rem;
}
.lesson-map .map-detail {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Study Tip (collapsible) ── */
.study-tip {
  background: var(--green-light);
  border: 1px solid #c5e0ce;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.study-tip summary {
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  font-size: 0.92rem;
}
.study-tip summary:hover { text-decoration: underline; }
.study-tip p { margin-top: 0.5rem; }
.study-tip a { color: var(--green); }

/* ── Back to Top ── */
.back-to-top {
  text-align: right;
  margin-top: 1.5rem;
  font-size: 0.82rem;
}
.back-to-top a {
  color: var(--muted);
  text-decoration: none;
}
.back-to-top a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* ── Quiz Section ── */
.quiz-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}
.quiz-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.quiz-arabic {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.quiz-arabic b,
.quiz-arabic strong {
  color: var(--green);
}
.quiz-reveal {
  font-size: 0.9rem;
}
.quiz-reveal summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
  padding: 0.3rem 0;
}
.quiz-reveal summary:hover { color: var(--green); }
.quiz-answer {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
}

/* ── Translation Toggle (sticky footer button) ── */
.translation-toggle-float {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 99;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.translation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  font-family: var(--font-ui);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.translation-toggle:hover {
  background: var(--green-light);
  border-color: var(--green);
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}
.translation-toggle.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* Hidden translations */
.translations-hidden .verse-english,
.translations-hidden .pair-table td:nth-child(2),
.translations-hidden .quiz-answer {
  visibility: hidden;
  position: relative;
}
.translations-hidden .verse-english::after,
.translations-hidden .pair-table td:nth-child(2)::after {
  content: 'tap to reveal';
  visibility: visible;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  cursor: pointer;
  text-align: right;
}
.translations-hidden .verse-english.revealed,
.translations-hidden .pair-table td.revealed {
  visibility: visible;
}
.translations-hidden .verse-english.revealed::after,
.translations-hidden .pair-table td.revealed::after {
  display: none;
}

/* Scroll margin for anchor links (avoid sticky header) */
h2[id], h3[id], .lesson-map, #lesson-map {
  scroll-margin-top: 80px;
}

/* ── Responsive ── */
/* ── Language Toggle Button (floating, bottom-right) ── */
.lang-toggle-container {
  display: flex;
  gap: 0;
}
.lang-toggle-btn {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-ui);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.lang-toggle-btn:first-child {
  border-radius: 20px 0 0 20px;
  border-right: none;
}
.lang-toggle-btn:last-child {
  border-radius: 0 20px 20px 0;
  font-family: var(--font-tamil);
}
.lang-toggle-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.lang-toggle-btn:hover:not(.active) {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
}

/* ── Tamil Font Styling ── */
.lang-ta,
.verse-tamil,
.hook-ta,
.phrase-tamil {
  font-family: var(--font-tamil);
  line-height: 1.8;
}

/* ── Language Visibility: Default = English ── */
.lang-ta,
.verse-tamil,
.hook-ta,
.phrase-tamil {
  display: none;
}

/* ── Language Visibility: Tamil active ── */
.lang-active-ta .lang-ta,
.lang-active-ta .verse-tamil,
.lang-active-ta .hook-ta,
.lang-active-ta .phrase-tamil {
  display: block;
}
/* Inline Tamil elements (spans inside summaries, etc.) */
.lang-active-ta span.lang-ta,
.lang-active-ta a.lang-ta {
  display: inline;
}
.lang-active-ta .lang-en,
.lang-active-ta .verse-english,
.lang-active-ta .hook-en,
.lang-active-ta .phrase-english {
  display: none;
}
/* Inline English elements */
span.lang-ta, a.lang-ta {
  display: none;
}

/* Tamil verse translations in cards */
.verse-card .verse-tamil {
  font-family: var(--font-tamil);
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
  text-align: right;
  margin-bottom: 0.75rem;
}
.verse-card .verse-tamil strong {
  color: var(--green);
}

/* Tamil hook text in cards */
.verse-card .hook-ta {
  font-family: var(--font-tamil);
  font-size: 0.95rem;
  color: #888;
  line-height: 1.6;
  border-left: 3px solid var(--border);
  padding-left: 0.75rem;
}

/* Tamil quiz answers — quiz answers use lang-en/lang-ta classes */
.quiz-answer.lang-ta {
  display: none;
  font-family: var(--font-tamil);
}
.lang-active-ta .quiz-answer.lang-en { display: none; }
.lang-active-ta .quiz-answer.lang-ta { display: inline-block; }

/* Tamil in pair-table (second column) */
.pair-table .cell-ta { display: none; }
.lang-active-ta .pair-table .cell-en { display: none; }
.lang-active-ta .pair-table .cell-ta { display: table-cell; }

/* Tamil download links */
.review-audio-ta,
.download-link-ta { display: none; }
.lang-active-ta .review-audio-en,
.lang-active-ta .download-link-en { display: none; }
.lang-active-ta .review-audio-ta { display: block; }
.lang-active-ta .download-link-ta { display: inline-block; }

/* ── Translation toggle adjustments for Tamil ── */
.translations-hidden .verse-tamil {
  visibility: hidden;
  position: relative;
}
.translations-hidden .verse-tamil::after {
  content: 'காண தட்டுக';
  visibility: visible;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  cursor: pointer;
  text-align: right;
  font-family: var(--font-tamil);
}
.translations-hidden .verse-tamil.revealed {
  visibility: visible;
}
.translations-hidden .verse-tamil.revealed::after {
  display: none;
}

@media (max-width: 640px) {
  .main-content   { padding: 1.5rem 1rem 3rem; }
  .lesson-body h1 { font-size: 1.45rem; }
  .lesson-body h2 { font-size: 1.15rem; }
  .lesson-body td,
  .lesson-body th { padding: 0.5rem 0.65rem; font-size: 0.88rem; }
  .logo-arabic    { font-size: 1.15rem; }
  .logo-text      { font-size: 0.82rem; }
  .footer-arabic  { font-size: 1.3rem; }
  .verse-card { padding: 1rem; }
  .verse-card .header-row { flex-wrap: wrap; }
  .verse-card audio { width: 180px; height: 26px; }
  .verse-card .verse-arabic { font-size: 1.3rem; }
}
