/* Shared theme and related-noha styles */
:root { color-scheme: light; }
body.dark-mode {
  color-scheme: dark;
  --paper:#06150f;
  --ink:#f3f6f3;
  --muted:#c3cec7;
  --line:rgba(226,238,230,.24);
  --white:#10221a;
  --green:#0d382c;
  --deep:#020b07;
  --gold:#f2d37d;
}
body.dark-mode, body.dark-mode main { background:#06150f; color:#f3f6f3; }
body.dark-mode header, body.dark-mode .nav-links { background:#06150f; border-color:var(--line); }
body.dark-mode .hero { background:#0b2b21; color:#fdda86; }
body.dark-mode .hero h1, body.dark-mode .hero p, body.dark-mode .hero .eyebrow,
body.dark-mode .hero-aside, body.dark-mode .page-hero, body.dark-mode .page-hero h1,
body.dark-mode .page-hero p { color:#fdda86; }
body.dark-mode footer { background:#020b07; color:#fdda86; }
body.dark-mode .library, body.dark-mode .intro, body.dark-mode .offerings,
body.dark-mode .calendar-section { background:#06150f; color:#fdda86; }
body.dark-mode .featured-noha, body.dark-mode .entry, body.dark-mode .toolbar,
body.dark-mode .empty, body.dark-mode .media-panel, body.dark-mode .credit,
body.dark-mode .similar-card, body.dark-mode .calendar-card, body.dark-mode .calendar-grid,
body.dark-mode .library-panel, body.dark-mode .selected-event, body.dark-mode .month-nav,
body.dark-mode .days-grid, body.dark-mode .today-card, body.dark-mode .today-controls select,
body.dark-mode .day-cell, body.dark-mode .card { background:#10231a; color:#fdda86; border-color:var(--line); }
body.dark-mode .tag-chip { background:#193126; color:#fdda86; border-color:var(--line); }
body.dark-mode .tag-chip.type-tag, body.dark-mode .status-tag, body.dark-mode .event-chip {
  background:#29351f; color:#fdda86;
}
body.dark-mode .lyric-text p, body.dark-mode .lyric-text .refrain,
body.dark-mode .featured-noha h2, body.dark-mode .entry h3, body.dark-mode .section-head h2,
body.dark-mode .library-copy h2, body.dark-mode .card h3, body.dark-mode .similar-nohas h2,
body.dark-mode .brand-copy strong, body.dark-mode .nav-links, body.dark-mode .nav-links a,
body.dark-mode .header-hijri-date, body.dark-mode .selected-date, body.dark-mode .selected-copy h4,
body.dark-mode .language-button, body.dark-mode .theme-toggle { color:#fdda86; }
body.dark-mode .featured-intro, body.dark-mode .detail-bottom,
body.dark-mode .entry p, body.dark-mode .card p, body.dark-mode .intro-copy,
body.dark-mode .selected-copy p, body.dark-mode .gregorian-number, body.dark-mode .weekday,
body.dark-mode .count, body.dark-mode .footer-nav, body.dark-mode .footer-bottom { color:#dbc681; }
body.dark-mode .filter { color:#fdda86; border-color:var(--line); }
body.dark-mode .filter:hover, body.dark-mode .filter[aria-pressed="true"],
body.dark-mode .day-cell:hover, body.dark-mode .day-cell.selected { background:#263a2b; border-color:#d4b860; color:#fdda86; }
body.dark-mode .language-button[aria-pressed="true"] { color:#fdda86; border-color:#fdda86; }
body.dark-mode .searchbox input, body.dark-mode .today-controls select { color:#fdda86; }
body.dark-mode .searchbox input::placeholder { color:#dbc681; }
body.dark-mode .selected-date.sorrow { color:#fdda86; }
body.dark-mode .theme-toggle { border-color:rgba(253,218,134,.42); }
body.dark-mode .theme-toggle:hover { background:#10231a; }
body.dark-mode .selected-event a, body.dark-mode .youtube-link,
body.dark-mode body.dark-mode .selected-copy a { color:#fdda86; }
.lyric-text p { font-weight:700 !important; }
.similar-nohas { margin:34px 0 12px; padding:24px 0 0; border-top:1px solid var(--line); }
.similar-nohas h2 { margin:0 0 15px; color:var(--green); font-size:20px; }
.similar-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.similar-card { display:block; min-height:100px; padding:15px; border:1px solid var(--line); background:#fff; transition:transform .2s,border-color .2s; }
.similar-card:hover { transform:translateY(-2px); border-color:var(--gold); }
.similar-card strong { display:block; color:var(--green); font-size:13px; line-height:1.5; }
.similar-card span { display:inline-block; margin-top:8px; color:var(--muted); font-size:10px; }
.theme-control { position:relative; display:inline-flex; align-items:center; flex:0 0 auto; margin-left:14px; }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; flex:0 0 38px; margin:0; padding:0; border:1px solid var(--line); border-radius:50%; background:transparent; color:var(--green); font:600 18px/1 'Poppins',sans-serif; cursor:pointer; }
.theme-toggle:hover { border-color:var(--gold); }
.theme-toggle:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
.theme-menu { position:absolute; z-index:1200; top:calc(100% + 9px); right:0; display:grid; grid-template-columns:repeat(2,minmax(78px,1fr)); gap:5px; min-width:180px; padding:9px; border:1px solid var(--line); border-radius:12px; background:var(--paper,#f4efdf); box-shadow:0 12px 30px rgba(0,0,0,.18); }
.theme-menu[hidden] { display:none!important; }
.theme-menu button { min-height:36px; border:1px solid var(--line); border-radius:8px; background:var(--white,#fff); color:var(--ink,#182620); font:600 12px/1 'Poppins',sans-serif; cursor:pointer; }
.theme-menu button[aria-checked="true"] { border-color:var(--green,#144d45); background:var(--green,#144d45); color:#fff; }
.theme-menu button:focus-visible { outline:2px solid var(--gold,#d5a942); outline-offset:2px; }
@media(max-width:900px) and (min-width:681px) {
  .nav { gap:12px; }
  .theme-control { margin-left:8px; }
  .theme-toggle { width:36px; height:36px; flex-basis:36px; }
  .nav-links { gap:18px; }
}
@media(max-width:680px) {
  .similar-grid { grid-template-columns:1fr; }
  .similar-nohas { margin-top:27px; }
  .theme-control { position:absolute; top:18px; right:63px; margin:0; }
  .theme-toggle { width:36px; height:36px; margin:0; }
}
body.dark-mode .eyebrow, body.dark-mode .credit strong, body.dark-mode .media-panel h3,
body.dark-mode .tag-chip, body.dark-mode .similar-card strong, body.dark-mode .similar-nohas h2,
body.dark-mode .language-button[aria-pressed="true"] { color:#fdda86; }
body.dark-mode .detail-back, body.dark-mode .youtube-link, body.dark-mode body.dark-mode .selected-copy a { color:#fdda86; }
body.dark-mode .credit { color:#dbc681; }

/* Lyric pages use a single-column hero after the decorative illustration is removed. */
.lyrics-page .hero-inner { grid-template-columns:1fr; }
.lyrics-page .hero { min-height:0; }
/* Related nohas use their matching YouTube thumbnails as featured images. */
.similar-nohas { margin:42px 0 12px; padding:28px 0 0; border-top:1px solid var(--line); }
.similar-nohas h2 { margin:0 0 20px; color:var(--green); font:700 clamp(24px,3vw,32px)/1.2 'Poppins',sans-serif; }
.similar-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.similar-card { display:block; min-width:0; padding:0; overflow:hidden; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); text-decoration:none; transition:transform .2s,border-color .2s,box-shadow .2s; }
.similar-card:hover { transform:translateY(-3px); border-color:var(--gold); box-shadow:0 10px 25px rgba(13,57,52,.12); }
.similar-thumb { display:block; width:100%; aspect-ratio:16/9; overflow:hidden; background:#102c24; }
.similar-thumb img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.similar-card:hover .similar-thumb img { transform:scale(1.035); }
.similar-card-body { display:block; padding:12px 14px 16px; }
.similar-tag { display:inline-flex; margin:0 0 8px; padding:4px 7px; border:1px solid var(--line); border-radius:5px; background:#f5f1e6; color:#6f6655; font-size:10px; line-height:1.2; }
.similar-card strong { display:block; color:var(--green); font-size:16px; font-weight:700; line-height:1.4; }
body.dark-mode .similar-card { background:#10231a; color:#fdda86; border-color:var(--line); }
body.dark-mode .similar-tag { background:#26351f; color:#fdda86; border-color:var(--line); }
body.dark-mode .similar-card strong, body.dark-mode .similar-nohas h2 { color:#fdda86; }
@media(max-width:900px) and (min-width:681px) { .similar-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } }
@media(max-width:680px) { .similar-grid { grid-template-columns:1fr; gap:14px; } .similar-nohas { margin-top:32px; padding-top:22px; } }

/* Dark-mode green accents use the light brand green for readable contrast. */
body.dark-mode .eyebrow,
body.dark-mode .brand-copy strong,
body.dark-mode .nav-links,
body.dark-mode .nav-links a,
body.dark-mode .menu-btn,
body.dark-mode .theme-toggle,
body.dark-mode .header-hijri-date,
body.dark-mode .intro h2,
body.dark-mode .section-head h2,
body.dark-mode .library-copy h2,
body.dark-mode .shrine-streams-head h2,
body.dark-mode .card-icon,
body.dark-mode .card h3,
body.dark-mode .card-arrow,
body.dark-mode .inline-link,
body.dark-mode .spark,
body.dark-mode .path-copy h2,
body.dark-mode .step strong,
body.dark-mode .instagram-head h2,
body.dark-mode .ig-follow svg,
body.dark-mode .ig-fallback a { color:#cdffb8; }
body.dark-mode .brand-mark { background-image:url('/logo-gold-transparent.webp')!important; }
body.dark-mode .theme-toggle { border-color:rgba(205,255,184,.42); }

/* Give the Instagram area the same dark surface as the rest of dark mode. */
body.dark-mode #instagram { background:#06150f; color:#fdda86; }
body.dark-mode #instagram .instagram-copy p { color:#dbc681; }
body.dark-mode #instagram .ig-card { background:#10231a; border-color:var(--line); }
body.dark-mode #instagram .ig-card blockquote.instagram-media { background:#10231a!important; }
body.dark-mode #instagram .ig-control { border-color:rgba(205,255,184,.42); color:#cdffb8; }
body.dark-mode #instagram .ig-control:hover { background:#193126; color:#cdffb8; }
body.dark-mode #instagram .ig-fallback { color:#dbc681; }

/* Keep the theme and menu controls side by side on narrow screens. */
@media(max-width:700px) {
  .theme-control { position:static; width:auto; height:auto; flex:0 0 auto; margin:0 8px 0 auto; }
  .theme-toggle { position:static; width:36px; height:36px; flex:0 0 36px; margin:0; }
  .theme-menu { right:0; }
}
@media(max-width:420px) {
  .header-hijri-date { display:none; }
}

/* Homepage sections added for daily remembrance and recent nohas. */
body.dark-mode .today-history { background:#06150f; }
body.dark-mode .today-panel, body.dark-mode .recent-card { background:#10231a; color:#fdda86; border-color:var(--line); }
body.dark-mode .today-date,
body.dark-mode .today-copy h2,
body.dark-mode .recent-head h2,
body.dark-mode .recent-card strong { color:#cdffb8; }
body.dark-mode .today-copy p,
body.dark-mode .recent-head p,
body.dark-mode .recent-reciter { color:#dbc681; }
body.dark-mode .today-note a,
body.dark-mode .recent-tag { color:#cdffb8; }
body.dark-mode .recent-control { border-color:rgba(205,255,184,.42); color:#cdffb8; }
body.dark-mode .recent-control:hover { background:#193126; color:#cdffb8; }

/* Unified four-mode appearance menu and high-contrast reading colors. */
body.reader-sepia {
  color-scheme:light;
  --paper:#f2e7cf; --white:#fbf3df; --ink:#342d22; --muted:#625847;
  --line:rgba(70,54,31,.24); --green:#244d43; --deep:#283c32; --gold:#f2d37d;
}
body.reader-gray {
  color-scheme:light;
  --paper:#e9ebec; --white:#f7f8f8; --ink:#25282a; --muted:#555d61;
  --line:rgba(40,48,52,.24); --green:#244b45; --deep:#30383a; --gold:#f2d37d;
}
body.reader-sepia, body.reader-sepia main { background:var(--paper); color:var(--ink); }
body.reader-gray, body.reader-gray main { background:var(--paper); color:var(--ink); }
body.reader-sepia header, body.reader-gray header { background:var(--paper); color:var(--ink); border-color:var(--line); }
body.reader-sepia .theme-menu, body.reader-gray .theme-menu { background:var(--paper); }
body.reader-sepia .theme-menu button, body.reader-gray .theme-menu button { background:var(--white); color:var(--ink); }
body.reader-sepia .theme-menu button[aria-checked="true"], body.reader-gray .theme-menu button[aria-checked="true"] { background:var(--green);color:#fff; }
body.reader-sepia #young-readers .home-young-head h2,body.reader-gray #young-readers .home-young-head h2 { color:#f6f2e7!important; }
body.reader-sepia #young-readers .home-young-head .eyebrow,body.reader-gray #young-readers .home-young-head .eyebrow { color:#f2d37d!important; }
body.reader-sepia #young-readers .home-young-head p,body.reader-gray #young-readers .home-young-head p { color:#e3e6df!important; }

/* The young-reader cards have a light editorial cover, so keep their copy dark and clear. */
#young-readers .home-young-copy .home-young-kicker { color:#6c5317!important; }
#young-readers .home-young-copy h3,
#young-readers .home-young-copy h3 a { color:#174a40!important; }
#young-readers .home-young-copy h3 a:hover,
#young-readers .home-young-copy .home-text-link { color:#174a40!important; }
#young-readers .home-young-copy p { color:#4d5a53!important; }

/* Dark surfaces use light text; pale editorial covers retain dark text for contrast. */
body.dark-mode :is(p,li,dd,dt,small,label,summary,blockquote,td,figcaption,.muted,.intro-copy,.entry p,.card p,.selected-copy p,.detail-bottom,.featured-intro,.reader-meta,.reader-crumb,.sound-status,.reader-percent) { color:#c6d1ca!important; }
body.dark-mode :is(h1,h2,h3,h4,strong,.entry-link,.inline-link,.nav-links a,.brand-copy strong,.selected-date,.similar-card strong,.section-head h2,.library-copy h2) { color:#d6ffca; }
body.dark-mode .theme-menu { background:#10231a; border-color:rgba(226,238,230,.25); }
body.dark-mode .theme-menu button { background:#172d23; color:#f3f6f3; border-color:rgba(226,238,230,.25); }
body.dark-mode .theme-menu button[aria-checked="true"] { background:#d6ffca; color:#10231a; }
body.dark-mode #young-readers .home-scroll-card { background:#fbf3df!important; color:#174a40!important; border-color:rgba(226,238,230,.35)!important; }
body.dark-mode #young-readers .home-young-copy :is(.home-young-kicker,h3,h3 a,.home-text-link) { color:#174a40!important; }
body.dark-mode #young-readers .home-young-copy p { color:#4d5a53!important; }


/* Latest dark-mode refinements: alternate near-black and deep-green surfaces. */
body.dark-mode header .brand-copy strong,
body.dark-mode header .brand-copy small,
body.dark-mode header .header-hijri-date,
body.dark-mode header .nav-links,
body.dark-mode header .nav-links a,
body.dark-mode header .theme-toggle,
body.dark-mode header .menu-btn { color:#fdda86; }
body.dark-mode header .theme-toggle { border-color:rgba(253,218,134,.42); }
body.dark-mode .library-heading h2,
body.dark-mode .entry-link,
body.dark-mode .entry-link span { color:#cdffb8; }
body.dark-mode #today-in-history,
body.dark-mode #instagram,
body.dark-mode #recent-nohas { background:#06150f; }
body.dark-mode #home .quote-day,
body.dark-mode #live-shrines { background:#020b07; }
body.dark-mode #today-in-history .today-panel,
body.dark-mode #instagram .ig-card,
body.dark-mode #recent-nohas .recent-card,
body.dark-mode #live-shrines .shrine-card { background:#10231a; }
body.dark-mode #quoteTitle { color:#cdffb8; }
body.dark-mode #live-shrines .shrine-card-title h3,
body.dark-mode #live-shrines .shrine-watch,
body.dark-mode #live-shrines .shrine-streams-head h2 { color:#cdffb8; }
body.dark-mode #live-shrines .shrine-card-title span,
body.dark-mode #live-shrines .shrine-streams-head p { color:#dbc681; }
body.dark-mode .lyrics-page .hero { background:#0b2b21; }
body.dark-mode .lyrics-page .library { background:#06150f; }
body.dark-mode .language-button { color:#fdda86; }
body.dark-mode .language-button[aria-pressed="true"] { color:#cdffb8; border-color:#cdffb8; }
body.dark-mode .entry-link { color:#cdffb8; }

/* Calendar contrast: strengthen small date labels in the base light palette. */
.weekdays span { color:#56645d; }
.gregorian-number { color:#65736c; }
.day-cell.outside { color:#65736c; }
.calendar-foot,.today-label,.today-controls label,.date-note,.settings-label,
.month-heading small,.overview-head>span,.overview-event p,.overview-empty,
.method-panel p,.converter,.observance-row p,.year-month small,.reminder-box p,
.selected-copy p,.selected-empty { color:#56645d; }
.selected-copy a,.observance-row a,.text-action { color:#705517; }

/* The calendar has its own white surfaces; recolor every control and panel per mode. */
body.dark-mode .calendar-settings,
body.dark-mode .method-panel,
body.dark-mode .calendar-shell,
body.dark-mode .overview-card,
body.dark-mode .observance-list,
body.dark-mode .year-panel,
body.dark-mode .converter { background:#10231a; color:#f3f6f3; border-color:var(--line); }
body.dark-mode .method-panel strong,
body.dark-mode .method-panel summary,
body.dark-mode .overview-head h3,
body.dark-mode .overview-event h4,
body.dark-mode .observance-row h3,
body.dark-mode .observance-row-date,
body.dark-mode .year-month,
body.dark-mode .reminder-box strong { color:#d6ffca; }
body.dark-mode .method-panel p,
body.dark-mode .overview-head>span,
body.dark-mode .overview-event p,
body.dark-mode .overview-empty,
body.dark-mode .observance-row p,
body.dark-mode .calendar-foot,
body.dark-mode .date-note,
body.dark-mode .settings-label,
body.dark-mode .today-label,
body.dark-mode .today-controls label,
body.dark-mode .month-heading small,
body.dark-mode .year-month small,
body.dark-mode .reminder-box p,
body.dark-mode .selected-copy p,
body.dark-mode .selected-empty { color:#c3cec7; }
body.dark-mode .region-tabs,
body.dark-mode .weekdays,
body.dark-mode .calendar-foot,
body.dark-mode .reminder-box { background:#172d23; border-color:var(--line); }
body.dark-mode .region-tab { color:#d0d9d2; }
body.dark-mode .region-tab.active,body.dark-mode .region-tab[aria-pressed="true"] { background:#d6ffca; color:#10231a; }
body.dark-mode .weekdays span { color:#c3cec7; }
body.dark-mode .day-cell { background:#10231a; color:#f3f6f3; border-color:rgba(226,238,230,.16); }
body.dark-mode .day-cell.outside { background:#091a12; color:#aebbb2; }
body.dark-mode .hijri-number,body.dark-mode .day-cell.event-day-joy .hijri-number,
body.dark-mode .day-cell.event-day-sorrow .hijri-number,
body.dark-mode .day-cell.event-day-neutral .hijri-number { color:#e7f0e8; }
body.dark-mode .gregorian-number { color:#bac6bd; }
body.dark-mode .day-cell.today { background:#1b3829; box-shadow:inset 0 0 0 2px #cdffb8; }
body.dark-mode .day-cell.selected,body.dark-mode .day-cell:hover { background:#233d2c; }
body.dark-mode .event-chip,
body.dark-mode .event-chip.neutral { background:#40391e; border-left-color:#e4c46d; color:#fff0bd; }
body.dark-mode .event-chip.joy { background:#174b3b; border-left-color:#76c9a5; color:#e5fff1; }
body.dark-mode .event-chip.sorrow { background:#4a2525; border-left-color:#e09a9a; color:#fff0f0; }
body.dark-mode .event-detail-item.joy h4,body.dark-mode .selected-date.joy { color:#9be3bd; }
body.dark-mode .event-detail-item.sorrow h4,body.dark-mode .selected-date.sorrow { color:#ffb8b8; }
body.dark-mode .event-detail-item.neutral h4,body.dark-mode .selected-date.neutral { color:#f2d37d; }
body.dark-mode .calendar-shell .month-button { background:#172d23; color:#d6ffca; }
body.dark-mode .calendar-shell .month-button:hover { background:#d6ffca; color:#10231a; }
body.dark-mode .selected-copy a,body.dark-mode .observance-row a,body.dark-mode .text-action { color:#f2d37d; }
body.dark-mode .converter input,body.dark-mode .today-controls select,
body.dark-mode .year-month { background:#091a12; color:#f3f6f3; border-color:var(--line); }

body.reader-sepia .calendar-settings,body.reader-sepia .method-panel,
body.reader-sepia .calendar-shell,body.reader-sepia .overview-card,
body.reader-sepia .observance-list,body.reader-sepia .year-panel,
body.reader-sepia .converter { background:#fbf3df; color:#342d22; border-color:rgba(70,54,31,.24); }
body.reader-sepia .weekdays,body.reader-sepia .region-tabs,
body.reader-sepia .calendar-foot,body.reader-sepia .reminder-box { background:#f0e4ca; }
body.reader-sepia .day-cell { background:#fbf3df; color:#342d22; border-color:rgba(70,54,31,.17); }
body.reader-sepia .day-cell.outside { background:#eee3cd; color:#625847; }
body.reader-sepia .gregorian-number,body.reader-sepia .weekdays span,
body.reader-sepia .calendar-foot,body.reader-sepia .today-label,
body.reader-sepia .today-controls label,body.reader-sepia .date-note,
body.reader-sepia .settings-label,body.reader-sepia .overview-event p,
body.reader-sepia .overview-empty,body.reader-sepia .method-panel p,
body.reader-sepia .observance-row p,body.reader-sepia .year-month small,
body.reader-sepia .reminder-box p,body.reader-sepia .selected-copy p,
body.reader-sepia .selected-empty { color:#625847; }
body.reader-sepia .hijri-number,body.reader-sepia .overview-head h3,
body.reader-sepia .overview-event h4,body.reader-sepia .observance-row h3,
body.reader-sepia .observance-row-date,body.reader-sepia .method-panel strong,
body.reader-sepia .method-panel summary { color:#244d43; }
body.reader-sepia .day-cell.today { background:#e8efdf; }

body.reader-gray .calendar-settings,body.reader-gray .method-panel,
body.reader-gray .calendar-shell,body.reader-gray .overview-card,
body.reader-gray .observance-list,body.reader-gray .year-panel,
body.reader-gray .converter { background:#f7f8f8; color:#25282a; border-color:rgba(40,48,52,.24); }
body.reader-gray .weekdays,body.reader-gray .region-tabs,
body.reader-gray .calendar-foot,body.reader-gray .reminder-box { background:#e4e7e8; }
body.reader-gray .day-cell { background:#f7f8f8; color:#25282a; border-color:rgba(40,48,52,.17); }
body.reader-gray .day-cell.outside { background:#e9ebec; color:#555d61; }
body.reader-gray .gregorian-number,body.reader-gray .weekdays span,
body.reader-gray .calendar-foot,body.reader-gray .today-label,
body.reader-gray .today-controls label,body.reader-gray .date-note,
body.reader-gray .settings-label,body.reader-gray .overview-event p,
body.reader-gray .overview-empty,body.reader-gray .method-panel p,
body.reader-gray .observance-row p,body.reader-gray .year-month small,
body.reader-gray .reminder-box p,body.reader-gray .selected-copy p,
body.reader-gray .selected-empty { color:#555d61; }
body.reader-gray .hijri-number,body.reader-gray .overview-head h3,
body.reader-gray .overview-event h4,body.reader-gray .observance-row h3,
body.reader-gray .observance-row-date,body.reader-gray .method-panel strong,
body.reader-gray .method-panel summary { color:#244b45; }
body.reader-gray .day-cell.today { background:#e2ece8; }

/* Article tables: visible rules and legible cell colors in every appearance mode. */
.article-table-wrap { max-width:100%; overflow-x:auto; border:1px solid rgba(20,77,69,.28); border-radius:8px; }
.article-body table { width:100%; border-collapse:collapse; color:#252d29; background:#fffdf7; }
.article-body th,.article-body td { padding:11px 13px; border:1px solid rgba(20,77,69,.3); text-align:left; vertical-align:top; }
.article-body th { background:#144d45; color:#fffaf0; }
.article-body tbody tr:nth-child(even) { background:#f1f5f2; }
body.reader-sepia .article-table-wrap { border-color:rgba(70,54,31,.34); }
body.reader-sepia .article-body table { background:#fbf3df; color:#342d22; }
body.reader-sepia .article-body th,body.reader-sepia .article-body td { border-color:rgba(70,54,31,.32); }
body.reader-sepia .article-body th { background:#244d43; color:#fff8e8; }
body.reader-sepia .article-body tbody tr:nth-child(even) { background:#efe4ce; }
body.reader-gray .article-table-wrap { border-color:rgba(40,48,52,.34); }
body.reader-gray .article-body table { background:#f7f8f8; color:#25282a; }
body.reader-gray .article-body th,body.reader-gray .article-body td { border-color:rgba(40,48,52,.32); }
body.reader-gray .article-body th { background:#244b45; color:#fff; }
body.reader-gray .article-body tbody tr:nth-child(even) { background:#e9ebec; }
body.dark-mode .article-table-wrap { border-color:rgba(226,238,230,.34); }
body.dark-mode .article-body table { background:#10231a!important; color:#f3f6f3!important; border-color:rgba(226,238,230,.3)!important; }
body.dark-mode .article-body th,body.dark-mode .article-body td { color:#f3f6f3!important; border-color:rgba(226,238,230,.28)!important; }
body.dark-mode .article-body th { background:#20594b!important; color:#fff!important; }
body.dark-mode .article-body tbody tr:nth-child(even) { background:#172d23!important; }



.lyrics-search{display:flex;align-items:center;gap:16px;margin:18px 0 24px;padding:14px 16px;background:var(--white, #fffaf0);border:1px solid var(--line);border-left:3px solid var(--gold)}
.lyrics-search-label{flex:0 0 auto;color:var(--green);font-size:10px;font-weight:600}
.lyrics-search-field{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.lyrics-search-field svg{width:18px;height:18px;flex:0 0 auto;color:var(--green)}
.lyrics-search-field input{flex:1;min-width:0;border:1px solid var(--line);border-radius:3px;background:var(--paper);color:var(--ink);padding:10px 12px;font-size:11px}
.lyrics-search-field input::placeholder{color:var(--muted)}
.lyrics-search-field button{flex:0 0 auto;border:0;border-radius:3px;background:var(--green);color:#fff0c7;padding:10px 15px;font-size:10px;font-weight:600;cursor:pointer}
.lyrics-search-field button:hover{background:var(--deep)}
.lyrics-search-field button:focus-visible,.lyrics-search-field input:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
body.dark-mode .lyrics-search{background:#10231a;border-color:var(--line)}
body.dark-mode .lyrics-search-label,body.dark-mode .lyrics-search-field svg{color:#cdffb8}
body.dark-mode .lyrics-search-field input{background:#06150f;color:#fdda86;border-color:var(--line)}
body.dark-mode .lyrics-search-field button{background:#cdffb8;color:#06150f}
@media(max-width:680px){.lyrics-search{align-items:stretch;flex-direction:column;gap:8px;padding:13px}.lyrics-search-field{gap:7px}.lyrics-search-field button{padding:10px 11px}}

.entry-thumb-placeholder,.recent-thumb-placeholder{display:grid;place-items:center;background:#0d3934;color:#cdffb8;font-family:Anton,sans-serif;font-size:clamp(20px,3vw,34px);letter-spacing:.02em;text-align:center}.entry-thumb-placeholder span,.recent-thumb-placeholder span{padding:12px}

.tag-thumb-placeholder{display:grid;width:100%;height:100%;place-items:center;color:#cdffb8;background:#0d3934;font:26px Anton,sans-serif}

.article-inline-image{margin:24px 0 30px}.article-inline-image img{display:block;width:100%;height:auto;border-radius:14px}.article-table-wrap{overflow-x:auto;margin:22px 0}.article-table-wrap table{width:100%;border-collapse:collapse}.article-table-wrap th,.article-table-wrap td{padding:10px 12px;border:1px solid rgba(20,77,69,.2);text-align:left;vertical-align:top}.article-table-wrap th{background:rgba(20,77,69,.08);color:var(--deep)}.article-body blockquote{margin:24px 0;padding:16px 22px;border-left:4px solid var(--green);background:rgba(20,77,69,.06);font-size:1.04em}

/* Keep the full Aʿmāl section on a dark surface in dark appearance mode. */
body.dark-mode #daily-amals { background:#06150f !important; color:#f3f6f3; }


/* Keep calendar actions together beneath the month grid. */
.calendar-tools { flex-wrap:wrap; }
.calendar-tools-actions { display:flex; flex-wrap:wrap; gap:9px; }
.calendar-tools .year-panel { width:100%; }
@media(max-width:700px){ .calendar-tools-actions { display:grid; grid-template-columns:1fr; } }
