/* =====================================================================
   Reader widgets (poll, prayer times, weather, currency), listen button
   and Facebook comments. Dark by default (modern design); light in the
   classic and portal designs.
   ===================================================================== */
.rw{
  --rw-card:rgba(255,255,255,.035);--rw-line:var(--line,rgba(255,239,236,.13));
  --rw-text:var(--white,#fff4f1);--rw-muted:var(--muted,#c4afb0);--rw-accent:var(--red2,#ed6b70);
  --rw-soft:rgba(255,255,255,.06);--rw-bar:rgba(237,107,112,.28);
  display:grid;gap:14px;margin:16px 0;color:var(--rw-text);font-size:15px;line-height:1.5
}
body.classic .rw{
  --rw-card:#fff;--rw-line:var(--cl-rule,#dcdcdc);--rw-text:var(--cl-ink,#121212);--rw-muted:var(--cl-muted,#6b6b6b);
  --rw-accent:var(--cl-red,#d0202f);--rw-soft:var(--cl-soft,#f5f5f3);--rw-bar:rgba(208,32,47,.14)
}
body.portal .rw-card{box-shadow:var(--pt-shadow);border-color:transparent;border-radius:var(--pt-radius,12px)}
.pulse-panel .rw{margin:14px 0}

.rw-card{background:var(--rw-card);border:1px solid var(--rw-line);border-radius:14px;padding:14px 16px}
.rw-title{font-size:16px;font-weight:700;margin:0 0 10px;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.rw-title small{font-size:13px;font-weight:500;color:var(--rw-muted)}
.rw-small{font-size:13px;color:var(--rw-muted);margin:10px 0 0}
.rw-small b{color:var(--rw-text);font-weight:600}
.rw-source{font-size:11.5px;color:var(--rw-muted);margin:10px 0 0;line-height:1.45}
.rw-source a{text-decoration:underline;text-underline-offset:2px}

/* District picker shared by prayer times and weather */
.rw-place{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--rw-muted);background:var(--rw-card);border:1px solid var(--rw-line);border-radius:14px;padding:10px 14px}
body.portal .rw-place{box-shadow:var(--pt-shadow);border-color:transparent;border-radius:var(--pt-radius,12px)}
.rw-place label{white-space:nowrap;font-weight:600;color:var(--rw-text)}
.rw-place select{flex:1;min-width:0;padding:7px 10px;border-radius:9px;border:1px solid var(--rw-line);background:var(--rw-soft);color:var(--rw-text);font:inherit}
.rw-place select option{color:#111;background:#fff}

/* Poll */
.rw-q{font-weight:600;margin:0 0 10px}
.rw-poll-opts{display:grid;gap:8px}
.rw-poll-opts button{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:10px;
  padding:9px 12px;border-radius:10px;border:1px solid var(--rw-line);background:var(--rw-soft);color:var(--rw-text);text-align:left;font:inherit}
.rw-poll-opts button:not(:disabled):hover{border-color:var(--rw-accent)}
.rw-poll-opts button span,.rw-poll-opts button b{position:relative;z-index:1}
.rw-poll-opts button em{position:absolute;inset:0 auto 0 0;width:0;background:var(--rw-bar);transition:width .5s}
.rw-poll-opts button.mine{border-color:var(--rw-accent)}
.rw-poll-opts button:disabled{cursor:default}

/* Prayer times */
.rw-next{margin:0 0 10px;padding:8px 10px;border-radius:10px;background:var(--rw-soft);font-size:13.5px}
.rw-next b{color:var(--rw-accent)}
.rw-times{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 14px}
.rw-times li{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px dashed var(--rw-line)}
.rw-times li.rw-sun span,.rw-times li.rw-sun b{color:var(--rw-muted);font-weight:500}
.rw-times li.rw-now span,.rw-times li.rw-now b{color:var(--rw-accent)}
.rw-times b{font-variant-numeric:tabular-nums;font-weight:600}

/* Weather */
.rw-wx-main{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:12px}
.rw-wx-icon{width:46px;height:46px;color:var(--rw-accent)}
.rw-wx-icon svg{display:none;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.rw-wx-icon[data-wx-icon="sun"] [data-i="sun"],.rw-wx-icon[data-wx-icon="moon"] [data-i="moon"],
.rw-wx-icon[data-wx-icon="sun-cloud"] [data-i="sun-cloud"],.rw-wx-icon[data-wx-icon="moon-cloud"] [data-i="moon-cloud"],
.rw-wx-icon[data-wx-icon="cloud"] [data-i="cloud"],.rw-wx-icon[data-wx-icon="rain"] [data-i="rain"],
.rw-wx-icon[data-wx-icon="storm"] [data-i="storm"],.rw-wx-icon[data-wx-icon="fog"] [data-i="fog"]{display:block}
.rw-temp{font-size:34px;font-weight:700;line-height:1}
.rw-wx-label{color:var(--rw-muted);font-size:14px}
.rw-wx-facts{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:4px;font-size:13.5px;color:var(--rw-muted)}
.rw-wx-facts li{display:flex;justify-content:space-between}
.rw-wx-facts b{color:var(--rw-text);font-weight:600}

/* Currency */
.rw-fx-table{width:100%;border-collapse:collapse;font-size:14px}
.rw-fx-table th{text-align:left;font-weight:500;padding:6px 0;border-bottom:1px solid var(--rw-line)}
.rw-fx-table th small{color:var(--rw-muted);font-size:11.5px;margin-left:4px}
.rw-fx-table td{text-align:right;font-weight:600;padding:6px 0;border-bottom:1px solid var(--rw-line);font-variant-numeric:tabular-nums;white-space:nowrap}
.rw-fx-table tr.rw-fx-more{display:none}
.rw-fx.open tr.rw-fx-more{display:table-row}
.rw-more{margin-top:8px;background:none;border:0;padding:0;color:var(--rw-accent);font:inherit;font-size:13.5px;font-weight:600}

/* Listen (text-to-speech) */
.tts{display:inline-flex;align-items:center;gap:8px;margin:12px 0 4px;flex-wrap:wrap}
.tts[hidden]{display:none}
.tts-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px;border:1px solid var(--line,#ddd);
  background:rgba(255,255,255,.06);color:inherit;font:inherit;font-size:14.5px;font-weight:600}
.tts-btn svg{width:18px;height:18px;fill:currentColor}
.tts-btn:hover{border-color:var(--red2,#d0202f)}
body.classic .tts-btn{background:var(--cl-soft,#f5f5f3);border-color:var(--cl-rule,#dcdcdc);color:var(--cl-ink,#121212)}
.tts-stop{padding:8px 12px}
.tts-msg{font-size:13px;color:var(--muted,#6b6b6b)}
body.classic .tts-msg{color:var(--cl-muted,#6b6b6b)}
.tts-reading{background:rgba(237,107,112,.16);border-radius:4px;box-shadow:0 0 0 3px rgba(237,107,112,.16)}
body.classic .tts-reading{background:#fff3c4;box-shadow:0 0 0 3px #fff3c4}

/* Facebook comments */
.fb-comments-wrap{min-height:120px}
.fb-comments-wrap .fb-comments,.fb-comments-wrap .fb-comments span,.fb-comments-wrap iframe{width:100%!important}
body:not(.classic) .fb-comments-wrap{background:#fff;border-radius:12px;padding:8px}

/* "Get the app" card, Android banner and download page */
.rw-app{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--rw-text)}
.rw-app svg{width:30px;height:30px;flex:none;fill:none;stroke:var(--rw-accent);stroke-width:1.8;stroke-linecap:round}
.rw-app span{flex:1;display:flex;flex-direction:column;line-height:1.35}
.rw-app small{color:var(--rw-muted);font-size:12.5px}
.rw-app em{font-style:normal;font-weight:700;font-size:13px;color:#fff;background:var(--rw-accent);padding:6px 12px;border-radius:999px}
.rw-app:hover{border-color:var(--rw-accent)}

.app-banner{position:sticky;top:0;z-index:1200;display:flex;align-items:center;gap:10px;padding:8px 12px;
  background:#fff;color:#15171c;border-bottom:1px solid #e3e5ea;box-shadow:0 2px 10px rgba(0,0,0,.08);font-size:14px}
.app-banner[hidden]{display:none}
.app-banner img{width:40px;height:40px;object-fit:contain;border-radius:9px;background:#fff;border:1px solid #e3e5ea}
.app-banner span{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.app-banner small{color:#5f6470;font-size:12.5px}
.app-banner a{background:#c8102e;color:#fff;font-weight:700;padding:7px 14px;border-radius:999px;white-space:nowrap}
.app-banner button{border:0;background:none;font-size:24px;line-height:1;color:#5f6470;padding:0 4px}

.appdl{max-width:900px;margin:24px auto;padding:0 16px}
.appdl-hero{display:grid;grid-template-columns:120px 1fr;gap:24px;align-items:center;padding:28px;border-radius:18px;
  background:var(--panel,#fff);border:1px solid var(--line,#e3e5ea)}
body.classic .appdl-hero,body.classic .appdl-steps{background:#fff;border-color:var(--cl-rule,#e3e5ea);color:var(--cl-ink,#15171c)}
body.portal .appdl-hero,body.portal .appdl-steps{box-shadow:var(--pt-shadow);border-color:transparent}
.appdl-logo{width:120px;height:120px;object-fit:contain;border-radius:26px;background:#fff;padding:10px;border:1px solid #e3e5ea}
.appdl h1{font-size:26px;line-height:1.35;margin:0 0 8px}
.appdl-hero p{margin:0 0 16px;line-height:1.7}
.appdl-actions{display:flex;flex-wrap:wrap;gap:12px}
.appdl-btn{display:inline-flex;align-items:center;gap:12px;padding:12px 20px;border-radius:14px;background:#c8102e;color:#fff;text-decoration:none;font-weight:700;font-size:16px}
.appdl-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.appdl-btn-alt svg{fill:currentColor;stroke:none}
.appdl-btn span{display:flex;flex-direction:column;line-height:1.3}
.appdl-btn small{font-weight:500;font-size:12.5px;opacity:.9}
.appdl-btn-alt{background:#15171c}
.appdl-note{font-size:13.5px;color:var(--muted,#5f6470);margin-top:12px}
body.classic .appdl-note{color:var(--cl-muted,#5f6470)}
.appdl-steps{margin-top:20px;padding:24px 28px;border-radius:18px;background:var(--panel,#fff);border:1px solid var(--line,#e3e5ea)}
.appdl-steps h2{font-size:20px;margin:0 0 12px}
.appdl-steps ol{margin:0;padding-left:22px;display:grid;gap:10px;line-height:1.7}
.appdl-verify{margin-top:14px;font-size:13.5px}
.appdl-verify summary{cursor:pointer;font-weight:600}
.appdl-verify code{display:block;word-break:break-all;font-size:12px;padding:8px 10px;margin-top:6px;border-radius:8px;background:rgba(127,127,127,.12)}
@media (max-width:640px){.appdl-hero{grid-template-columns:1fr;text-align:center;padding:22px}.appdl-logo{margin:0 auto;width:96px;height:96px}.appdl-actions{justify-content:center}.appdl h1{font-size:22px}}

/* Home page app strip (all designs) */
.app-strip{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;margin:22px 0;padding:18px 22px;border-radius:16px;
  background:linear-gradient(120deg,#2a1f22,#3a1c22 60%,#5a1620);color:#fff;border:1px solid rgba(255,255,255,.08)}
body.classic .app-strip{background:linear-gradient(120deg,#1d1f24,#2b2d33 55%,#7d0f1d)}
.app-strip-icon{width:46px;height:46px;fill:none;stroke:#ff8a8f;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.app-strip h2{font-size:19px;margin:0 0 4px;color:#fff;line-height:1.4}
.app-strip p{margin:0;font-size:14px;color:rgba(255,255,255,.78);line-height:1.6}
.app-strip-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.app-strip-btn{display:inline-flex;flex-direction:column;align-items:center;padding:10px 20px;border-radius:12px;background:#c8102e;color:#fff;
  font-weight:700;font-size:15.5px;line-height:1.3;text-decoration:none;white-space:nowrap}
.app-strip-btn small{font-weight:500;font-size:12px;opacity:.85}
.app-strip-btn:hover{background:#e0213f;color:#fff}
.app-strip-alt{background:#fff;color:#15171c}
.app-strip-alt:hover{background:#f1f1f1;color:#15171c}
.app-strip-link{color:#fff;font-size:13.5px;text-decoration:underline;text-underline-offset:3px;opacity:.85}
@media (max-width:760px){
  .app-strip{grid-template-columns:auto 1fr;padding:16px}
  .app-strip-actions{grid-column:1 / -1;justify-content:flex-start}
  .app-strip-btn{flex:1}
}
.cl-tool.cl-app svg{fill:none}
/* At the top of the page: slimmer, so the lead story stays close */
.app-strip--top{margin:6px 0 16px;padding:12px 18px}
.app-strip--top h2{font-size:17px}
.app-strip--top .app-strip-icon{width:38px;height:38px}
@media (max-width:760px){
  .app-strip--top{grid-template-columns:1fr auto;gap:10px;padding:10px 12px;margin:4px 0 12px}
  .app-strip--top .app-strip-icon,.app-strip--top p,.app-strip--top .app-strip-link,.app-strip--top .app-strip-alt{display:none}
  .app-strip--top h2{font-size:15px;margin:0}
  .app-strip--top .app-strip-actions{grid-column:auto}
  .app-strip--top .app-strip-btn{flex:none;padding:8px 14px;font-size:14px}
}
