/* KFGQPC Hafs — Kompleks Raja Fahd (KFGQPC Uthmanic Script HAFS)
   File asli tanpa perubahan: assets/fonts/hafs.ttf (KFGQPC Hafs V30) — lisensi: KFGQPC-Hafs-V30-license.docx */
@font-face {
  font-family: "KFGQPC Hafs";
  src: local("KFGQPC HAFS Uthmanic Script"), local("KFGQPC Uthmanic Script HAFS"), local("KFGQPCUthmanicScriptHAFS"),
       url("fonts/hafs.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC;
}

/* ==========================================================
   koranru.com — стиль Самарканда и Центральной Азии
   слоновая кость, кобальт, бирюза куполов, гранат и шафран;
   узор ткани икат (абр), ребристый бирюзовый купол
   ========================================================== */
:root {
  --bg: #f7f3ea;
  --bg-2: #eee7d8;
  --surface: #fffdf8;
  --surface-2: #faf6ed;
  --ink: #1b2233;
  --ink-2: #3b4458;
  --muted: #6a7286;
  --line: #e5ddcb;
  --line-2: #d5c9ad;
  --sec: #a8293f;
  --sec-2: #c23a52;
  --sec-deep: #5c1220;
  --sec-soft: #f7e6e6;
  --pri: #1f4096;
  --pri-2: #2f5cc4;
  --pri-deep: #13265c;
  --pri-soft: #e6ecf8;
  --tq: #0f8f8c;
  --tq-soft: #def3f1;
  --gold: #a8741a;
  --gold-2: #d89b2b;
  --gold-3: #f0cf7e;
  --gold-soft: #fbf0d6;
  --mark: #f6dd94;
  --tf-q: #1f4096;
  --tf-p: #0f7f7c;
  --tf-b: #a8293f;
  --shadow-sm: 0 1px 2px rgba(19, 38, 92, .07);
  --shadow: 0 1px 2px rgba(19, 38, 92, .06), 0 18px 38px -24px rgba(19, 38, 92, .45);
  --radius: 16px;
  --ar-size: 2.1rem;
  --tr-size: 1.06rem;

  --f-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-read: "Manrope", system-ui, sans-serif;
  --f-head: "PT Serif", Georgia, serif;
  --f-ar-osm: "KFGQPC Hafs", "Amiri Quran", "Amiri", "Scheherazade New", serif;
  --f-ar-simple: "Scheherazade New", "Amiri", "Noto Naskh Arabic", serif;
  --f-ar: var(--f-ar-osm);
  --f-ar-ui: "Amiri", "Noto Naskh Arabic", serif;
  --lh-read: 1.8;

  --ikat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='80' viewBox='0 0 56 80'%3E%3Cpath d='M28.0,4.0 L32.0,7.1 L33.3,12.0 L37.3,15.1 L38.7,20.0 L42.7,23.1 L44.0,28.0 L48.0,31.1 L49.3,36.0 L52.0,40.0 L50.7,44.9 L46.7,48.0 L45.3,52.9 L41.3,56.0 L40.0,60.9 L36.0,64.0 L34.7,68.9 L30.7,72.0 L28.0,76.0 L24.0,72.9 L22.7,68.0 L18.7,64.9 L17.3,60.0 L13.3,56.9 L12.0,52.0 L8.0,48.9 L6.7,44.0 L4.0,40.0 L5.3,35.1 L9.3,32.0 L10.7,27.1 L14.7,24.0 L16.0,19.1 L20.0,16.0 L21.3,11.1 L25.3,8.0Z' fill='%23b42e46'/%3E%3Cpath d='M28.0,17.0 L32.1,20.9 L34.0,26.2 L38.1,30.1 L40.0,35.4 L43.0,40.0 L41.1,45.3 L37.0,49.2 L35.1,54.5 L31.0,58.4 L28.0,63.0 L23.9,59.1 L22.0,53.8 L17.9,49.9 L16.0,44.6 L13.0,40.0 L14.9,34.7 L19.0,30.8 L20.9,25.5 L25.0,21.6Z' fill='%23e2a63a'/%3E%3Cpath d='M28.0,30.0 L30.9,32.8 L32.0,36.7 L34.0,40.0 L32.9,43.8 L30.0,46.7 L28.0,50.0 L25.1,47.2 L24.0,43.3 L22.0,40.0 L23.1,36.2 L26.0,33.3Z' fill='%231b9a98'/%3E%3Cpath d='M0.0,-36.0 L4.0,-32.9 L5.3,-28.0 L9.3,-24.9 L10.7,-20.0 L14.7,-16.9 L16.0,-12.0 L20.0,-8.9 L21.3,-4.0 L24.0,0.0 L22.7,4.9 L18.7,8.0 L17.3,12.9 L13.3,16.0 L12.0,20.9 L8.0,24.0 L6.7,28.9 L2.7,32.0 L0.0,36.0 L-4.0,32.9 L-5.3,28.0 L-9.3,24.9 L-10.7,20.0 L-14.7,16.9 L-16.0,12.0 L-20.0,8.9 L-21.3,4.0 L-24.0,0.0 L-22.7,-4.9 L-18.7,-8.0 L-17.3,-12.9 L-13.3,-16.0 L-12.0,-20.9 L-8.0,-24.0 L-6.7,-28.9 L-2.7,-32.0Z' fill='%231f4096'/%3E%3Cpath d='M0.0,-23.0 L4.1,-19.1 L6.0,-13.8 L10.1,-9.9 L12.0,-4.6 L15.0,0.0 L13.1,5.3 L9.0,9.2 L7.1,14.5 L3.0,18.4 L0.0,23.0 L-4.1,19.1 L-6.0,13.8 L-10.1,9.9 L-12.0,4.6 L-15.0,0.0 L-13.1,-5.3 L-9.0,-9.2 L-7.1,-14.5 L-3.0,-18.4Z' fill='%23f3ead6'/%3E%3Cpath d='M0.0,-10.0 L2.9,-7.2 L4.0,-3.3 L6.0,0.0 L4.9,3.8 L2.0,6.7 L0.0,10.0 L-2.9,7.2 L-4.0,3.3 L-6.0,0.0 L-4.9,-3.8 L-2.0,-6.7Z' fill='%23b42e46'/%3E%3Cpath d='M56.0,-36.0 L60.0,-32.9 L61.3,-28.0 L65.3,-24.9 L66.7,-20.0 L70.7,-16.9 L72.0,-12.0 L76.0,-8.9 L77.3,-4.0 L80.0,0.0 L78.7,4.9 L74.7,8.0 L73.3,12.9 L69.3,16.0 L68.0,20.9 L64.0,24.0 L62.7,28.9 L58.7,32.0 L56.0,36.0 L52.0,32.9 L50.7,28.0 L46.7,24.9 L45.3,20.0 L41.3,16.9 L40.0,12.0 L36.0,8.9 L34.7,4.0 L32.0,0.0 L33.3,-4.9 L37.3,-8.0 L38.7,-12.9 L42.7,-16.0 L44.0,-20.9 L48.0,-24.0 L49.3,-28.9 L53.3,-32.0Z' fill='%231f4096'/%3E%3Cpath d='M56.0,-23.0 L60.1,-19.1 L62.0,-13.8 L66.1,-9.9 L68.0,-4.6 L71.0,0.0 L69.1,5.3 L65.0,9.2 L63.1,14.5 L59.0,18.4 L56.0,23.0 L51.9,19.1 L50.0,13.8 L45.9,9.9 L44.0,4.6 L41.0,0.0 L42.9,-5.3 L47.0,-9.2 L48.9,-14.5 L53.0,-18.4Z' fill='%23f3ead6'/%3E%3Cpath d='M56.0,-10.0 L58.9,-7.2 L60.0,-3.3 L62.0,0.0 L60.9,3.8 L58.0,6.7 L56.0,10.0 L53.1,7.2 L52.0,3.3 L50.0,0.0 L51.1,-3.8 L54.0,-6.7Z' fill='%23b42e46'/%3E%3Cpath d='M0.0,44.0 L4.0,47.1 L5.3,52.0 L9.3,55.1 L10.7,60.0 L14.7,63.1 L16.0,68.0 L20.0,71.1 L21.3,76.0 L24.0,80.0 L22.7,84.9 L18.7,88.0 L17.3,92.9 L13.3,96.0 L12.0,100.9 L8.0,104.0 L6.7,108.9 L2.7,112.0 L0.0,116.0 L-4.0,112.9 L-5.3,108.0 L-9.3,104.9 L-10.7,100.0 L-14.7,96.9 L-16.0,92.0 L-20.0,88.9 L-21.3,84.0 L-24.0,80.0 L-22.7,75.1 L-18.7,72.0 L-17.3,67.1 L-13.3,64.0 L-12.0,59.1 L-8.0,56.0 L-6.7,51.1 L-2.7,48.0Z' fill='%231f4096'/%3E%3Cpath d='M0.0,57.0 L4.1,60.9 L6.0,66.2 L10.1,70.1 L12.0,75.4 L15.0,80.0 L13.1,85.3 L9.0,89.2 L7.1,94.5 L3.0,98.4 L0.0,103.0 L-4.1,99.1 L-6.0,93.8 L-10.1,89.9 L-12.0,84.6 L-15.0,80.0 L-13.1,74.7 L-9.0,70.8 L-7.1,65.5 L-3.0,61.6Z' fill='%23f3ead6'/%3E%3Cpath d='M0.0,70.0 L2.9,72.8 L4.0,76.7 L6.0,80.0 L4.9,83.8 L2.0,86.7 L0.0,90.0 L-2.9,87.2 L-4.0,83.3 L-6.0,80.0 L-4.9,76.2 L-2.0,73.3Z' fill='%23b42e46'/%3E%3Cpath d='M56.0,44.0 L60.0,47.1 L61.3,52.0 L65.3,55.1 L66.7,60.0 L70.7,63.1 L72.0,68.0 L76.0,71.1 L77.3,76.0 L80.0,80.0 L78.7,84.9 L74.7,88.0 L73.3,92.9 L69.3,96.0 L68.0,100.9 L64.0,104.0 L62.7,108.9 L58.7,112.0 L56.0,116.0 L52.0,112.9 L50.7,108.0 L46.7,104.9 L45.3,100.0 L41.3,96.9 L40.0,92.0 L36.0,88.9 L34.7,84.0 L32.0,80.0 L33.3,75.1 L37.3,72.0 L38.7,67.1 L42.7,64.0 L44.0,59.1 L48.0,56.0 L49.3,51.1 L53.3,48.0Z' fill='%231f4096'/%3E%3Cpath d='M56.0,57.0 L60.1,60.9 L62.0,66.2 L66.1,70.1 L68.0,75.4 L71.0,80.0 L69.1,85.3 L65.0,89.2 L63.1,94.5 L59.0,98.4 L56.0,103.0 L51.9,99.1 L50.0,93.8 L45.9,89.9 L44.0,84.6 L41.0,80.0 L42.9,74.7 L47.0,70.8 L48.9,65.5 L53.0,61.6Z' fill='%23f3ead6'/%3E%3Cpath d='M56.0,70.0 L58.9,72.8 L60.0,76.7 L62.0,80.0 L60.9,83.8 L58.0,86.7 L56.0,90.0 L53.1,87.2 L52.0,83.3 L50.0,80.0 L51.1,76.2 L54.0,73.3Z' fill='%23b42e46'/%3E%3C/svg%3E");
  --ikat-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='80' viewBox='0 0 56 80'%3E%3Cg fill='none' stroke='%23e9c46a' stroke-width='1.2'%3E%3Cpath d='M28.0,4.0 L32.0,7.1 L33.3,12.0 L37.3,15.1 L38.7,20.0 L42.7,23.1 L44.0,28.0 L48.0,31.1 L49.3,36.0 L52.0,40.0 L50.7,44.9 L46.7,48.0 L45.3,52.9 L41.3,56.0 L40.0,60.9 L36.0,64.0 L34.7,68.9 L30.7,72.0 L28.0,76.0 L24.0,72.9 L22.7,68.0 L18.7,64.9 L17.3,60.0 L13.3,56.9 L12.0,52.0 L8.0,48.9 L6.7,44.0 L4.0,40.0 L5.3,35.1 L9.3,32.0 L10.7,27.1 L14.7,24.0 L16.0,19.1 L20.0,16.0 L21.3,11.1 L25.3,8.0Z'/%3E%3Cpath d='M28.0,20.0 L31.6,23.3 L33.2,28.0 L36.8,31.3 L38.4,36.0 L41.0,40.0 L39.4,44.7 L35.8,48.0 L34.2,52.7 L30.6,56.0 L28.0,60.0 L24.4,56.7 L22.8,52.0 L19.2,48.7 L17.6,44.0 L15.0,40.0 L16.6,35.3 L20.2,32.0 L21.8,27.3 L25.4,24.0Z'/%3E%3Cpath d='M0.0,-36.0 L4.0,-32.9 L5.3,-28.0 L9.3,-24.9 L10.7,-20.0 L14.7,-16.9 L16.0,-12.0 L20.0,-8.9 L21.3,-4.0 L24.0,0.0 L22.7,4.9 L18.7,8.0 L17.3,12.9 L13.3,16.0 L12.0,20.9 L8.0,24.0 L6.7,28.9 L2.7,32.0 L0.0,36.0 L-4.0,32.9 L-5.3,28.0 L-9.3,24.9 L-10.7,20.0 L-14.7,16.9 L-16.0,12.0 L-20.0,8.9 L-21.3,4.0 L-24.0,0.0 L-22.7,-4.9 L-18.7,-8.0 L-17.3,-12.9 L-13.3,-16.0 L-12.0,-20.9 L-8.0,-24.0 L-6.7,-28.9 L-2.7,-32.0Z'/%3E%3Cpath d='M0.0,-20.0 L3.6,-16.7 L5.2,-12.0 L8.8,-8.7 L10.4,-4.0 L13.0,0.0 L11.4,4.7 L7.8,8.0 L6.2,12.7 L2.6,16.0 L0.0,20.0 L-3.6,16.7 L-5.2,12.0 L-8.8,8.7 L-10.4,4.0 L-13.0,0.0 L-11.4,-4.7 L-7.8,-8.0 L-6.2,-12.7 L-2.6,-16.0Z'/%3E%3Cpath d='M56.0,-36.0 L60.0,-32.9 L61.3,-28.0 L65.3,-24.9 L66.7,-20.0 L70.7,-16.9 L72.0,-12.0 L76.0,-8.9 L77.3,-4.0 L80.0,0.0 L78.7,4.9 L74.7,8.0 L73.3,12.9 L69.3,16.0 L68.0,20.9 L64.0,24.0 L62.7,28.9 L58.7,32.0 L56.0,36.0 L52.0,32.9 L50.7,28.0 L46.7,24.9 L45.3,20.0 L41.3,16.9 L40.0,12.0 L36.0,8.9 L34.7,4.0 L32.0,0.0 L33.3,-4.9 L37.3,-8.0 L38.7,-12.9 L42.7,-16.0 L44.0,-20.9 L48.0,-24.0 L49.3,-28.9 L53.3,-32.0Z'/%3E%3Cpath d='M56.0,-20.0 L59.6,-16.7 L61.2,-12.0 L64.8,-8.7 L66.4,-4.0 L69.0,0.0 L67.4,4.7 L63.8,8.0 L62.2,12.7 L58.6,16.0 L56.0,20.0 L52.4,16.7 L50.8,12.0 L47.2,8.7 L45.6,4.0 L43.0,0.0 L44.6,-4.7 L48.2,-8.0 L49.8,-12.7 L53.4,-16.0Z'/%3E%3Cpath d='M0.0,44.0 L4.0,47.1 L5.3,52.0 L9.3,55.1 L10.7,60.0 L14.7,63.1 L16.0,68.0 L20.0,71.1 L21.3,76.0 L24.0,80.0 L22.7,84.9 L18.7,88.0 L17.3,92.9 L13.3,96.0 L12.0,100.9 L8.0,104.0 L6.7,108.9 L2.7,112.0 L0.0,116.0 L-4.0,112.9 L-5.3,108.0 L-9.3,104.9 L-10.7,100.0 L-14.7,96.9 L-16.0,92.0 L-20.0,88.9 L-21.3,84.0 L-24.0,80.0 L-22.7,75.1 L-18.7,72.0 L-17.3,67.1 L-13.3,64.0 L-12.0,59.1 L-8.0,56.0 L-6.7,51.1 L-2.7,48.0Z'/%3E%3Cpath d='M0.0,60.0 L3.6,63.3 L5.2,68.0 L8.8,71.3 L10.4,76.0 L13.0,80.0 L11.4,84.7 L7.8,88.0 L6.2,92.7 L2.6,96.0 L0.0,100.0 L-3.6,96.7 L-5.2,92.0 L-8.8,88.7 L-10.4,84.0 L-13.0,80.0 L-11.4,75.3 L-7.8,72.0 L-6.2,67.3 L-2.6,64.0Z'/%3E%3Cpath d='M56.0,44.0 L60.0,47.1 L61.3,52.0 L65.3,55.1 L66.7,60.0 L70.7,63.1 L72.0,68.0 L76.0,71.1 L77.3,76.0 L80.0,80.0 L78.7,84.9 L74.7,88.0 L73.3,92.9 L69.3,96.0 L68.0,100.9 L64.0,104.0 L62.7,108.9 L58.7,112.0 L56.0,116.0 L52.0,112.9 L50.7,108.0 L46.7,104.9 L45.3,100.0 L41.3,96.9 L40.0,92.0 L36.0,88.9 L34.7,84.0 L32.0,80.0 L33.3,75.1 L37.3,72.0 L38.7,67.1 L42.7,64.0 L44.0,59.1 L48.0,56.0 L49.3,51.1 L53.3,48.0Z'/%3E%3Cpath d='M56.0,60.0 L59.6,63.3 L61.2,68.0 L64.8,71.3 L66.4,76.0 L69.0,80.0 L67.4,84.7 L63.8,88.0 L62.2,92.7 L58.6,96.0 L56.0,100.0 L52.4,96.7 L50.8,92.0 L47.2,88.7 L45.6,84.0 L43.0,80.0 L44.6,75.3 L48.2,72.0 L49.8,67.3 L53.4,64.0Z'/%3E%3C/g%3E%3C/svg%3E");
  --ikat-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12'%3E%3Crect width='28' height='12' fill='%231f4096'/%3E%3Cpath d='M0 6 7 0.6 14 6 7 11.4Z' fill='%23e2a63a'/%3E%3Cpath d='M14 6 21 0.6 28 6 21 11.4Z' fill='%231b9a98'/%3E%3Cpath d='M4 6 7 3.6 10 6 7 8.4Z' fill='%23b42e46'/%3E%3Cpath d='M18 6 21 3.6 24 6 21 8.4Z' fill='%23f3ead6'/%3E%3C/svg%3E");
  --dome-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 96'%3E%3Cg fill='none' stroke='%23e9c46a' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M60 4c2.2 2.4 3.2 4.4 3.2 6.2 0 1.8-1.4 3.2-3.2 3.2s-3.2-1.4-3.2-3.2c0-1.8 1-3.8 3.2-6.2z'/%3E%3Cpath d='M33 58C20 47 24 24 60 16C96 24 100 47 87 58Z'/%3E%3Cpath d='M60 17C50 24 45 40 46 58M60 17C55 26 53 42 53.5 58M60 17V58M60 17C65 26 67 42 66.5 58M60 17C70 24 75 40 74 58' opacity='.6'/%3E%3Cpath d='M38 58H82V82H38Z'/%3E%3Cpath d='M38 64H82M38 76H82' opacity='.6'/%3E%3Cpath d='M30 82H90V88H30Z'/%3E%3C/g%3E%3C/svg%3E");
  --dome-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 96'%3E%3Cdefs%3E%3ClinearGradient id='d' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%233cc4bf'/%3E%3Cstop offset='1' stop-color='%230b6f73'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M60 4c2.2 2.4 3.2 4.4 3.2 6.2 0 1.8-1.4 3.2-3.2 3.2s-3.2-1.4-3.2-3.2c0-1.8 1-3.8 3.2-6.2z' fill='%23d89b2b'/%3E%3Cpath d='M33 58C20 47 24 24 60 16C96 24 100 47 87 58Z' fill='url(%23d)' stroke='%23d89b2b' stroke-width='1.5'/%3E%3Cpath d='M60 17C50 24 45 40 46 58M60 17C55 26 53 42 53.5 58M60 17V58M60 17C65 26 67 42 66.5 58M60 17C70 24 75 40 74 58' fill='none' stroke='%23a8ece6' stroke-width='1' opacity='.7'/%3E%3Cpath d='M38 58H82V82H38Z' fill='%231f4096' stroke='%23d89b2b' stroke-width='1.5'/%3E%3Cpath d='M38 66H82V72H38Z' fill='%23d89b2b'/%3E%3Cpath d='M30 82H90V88H30Z' fill='%23d89b2b'/%3E%3C/svg%3E");
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0c1424;
  --bg-2: #111b30;
  --surface: #131e35;
  --surface-2: #17233d;
  --ink: #eef1f8;
  --ink-2: #c9d0e0;
  --muted: #8e99b3;
  --line: #24314f;
  --line-2: #33436a;
  --sec: #f08a9c;
  --sec-2: #f6a7b5;
  --sec-deep: #07101f;
  --sec-soft: #2a1a2a;
  --pri: #7fa2f0;
  --pri-2: #a3bdf6;
  --pri-deep: #0a1a40;
  --pri-soft: #19274a;
  --tq: #5fd3cf;
  --tq-soft: #11302f;
  --gold: #eec26a;
  --gold-2: #e0aa48;
  --gold-3: #f4d690;
  --gold-soft: #2c2616;
  --mark: #5a4718;
  --tf-q: #a3bdf6;
  --tf-p: #5fd3cf;
  --tf-b: #f6a7b5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 36px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}
[data-yazi="simple"] { --f-ar: var(--f-ar-simple); }
[data-yazi="osm"] { --f-ar: var(--f-ar-osm); }
[data-arfont="hafs"] { --f-ar: "KFGQPC Hafs", "Amiri Quran", serif; }
[data-arfont="amiriquran"] { --f-ar: "Amiri Quran", "Amiri", serif; }
[data-arfont="naskh"] { --f-ar: "Noto Naskh Arabic", "Amiri", serif; }
[data-arfont="scheherazade"] { --f-ar: "Scheherazade New", "Amiri", serif; }
[data-arfont="amiri"] { --f-ar: "Amiri", "Amiri Quran", serif; }
.ar-osm { font-family: var(--f-ar-osm) !important; }
.ar-simple { font-family: var(--f-ar-simple) !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.7 var(--f-ui);
  background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pri); }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--pri-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-3); color: #1b2233; }
[hidden] { display: none !important; }
.ic { flex: none; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 32px); }
.nast { font-family: var(--f-head); font-weight: 700; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }

.readbar { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.readbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pri-2), var(--gold-2)); }

/* ---------- полоса икат ---------- */
.ikat-band { height: 8px; background: var(--ikat-band) repeat-x center / 19px 8px; }

/* ---------- kepala situs ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand:hover { color: inherit; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font: 800 1.28rem/1.1 var(--f-ui); letter-spacing: -.02em; color: var(--pri-deep); }
[data-theme="dark"] .brand-text b { color: var(--ink); }
.brand-text b em { font-style: normal; color: var(--tq); margin-inline-start: 1px; }
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.mainnav { display: flex; gap: 2px; }
.mainnav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.mainnav a:hover { background: var(--sec-soft); color: var(--sec); }
.mainnav a.on { color: var(--pri); background: var(--pri-soft); }
.topsearch { flex: 1; max-width: 340px; margin-inline-start: auto; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.topsearch:focus-within { border-color: var(--pri-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri-2) 18%, transparent); }
.topsearch input { border: 0; background: none; outline: 0; width: 100%; color: var(--ink); font-size: .92rem; }
.topactions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.topsearch + .topactions { margin-inline-start: 0; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--ink-2); text-decoration: none; }
.iconbtn:hover { background: var(--sec-soft); color: var(--sec); }
.js-menu { display: none; }
.langsw { position: relative; }
.langsw-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 50; }
.langsw-menu a { display: block; padding: 8px 12px; border-radius: 10px; font-size: .94rem; }
.langsw-menu a:hover { background: var(--sec-soft); }
.langsw-menu a[aria-current] { color: var(--pri); font-weight: 700; }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; background: var(--pri); color: #fff; font-weight: 700; font-size: .93rem; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--pri-deep); color: #fff; }
[data-theme="dark"] .btn { color: #0a1530; }
[data-theme="dark"] .btn:hover { background: var(--pri-2); color: #0a1530; }
.btn-soft { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.btn-soft:hover { background: var(--sec-soft); color: var(--sec); border-color: var(--line-2); }
[data-theme="dark"] .btn-soft { color: var(--ink-2); }
[data-theme="dark"] .btn-soft:hover { background: var(--sec-soft); color: var(--sec); }
.btn-ghost { background: none; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--sec-soft); color: var(--sec); }
.btn-gold { background: linear-gradient(180deg, var(--gold-3), var(--gold-2)); color: #3a230f; border-color: #b8842f; }
.btn-gold:hover { background: linear-gradient(180deg, #f6dfa6, #d6a54b); color: #2a1a0b; }
[data-theme="dark"] .btn-gold { color: #2a1a0b; }
.btn-icon { width: 42px; padding: 0; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #f8ecd6;
  background: radial-gradient(900px 420px at 50% 0%, #2f5cc4 0%, transparent 70%), linear-gradient(180deg, #16307a, #11265f 70%, #0e2052); }
.hero-ikat { position: absolute; inset: 0; background: var(--ikat-line) 0 0 / 56px 80px; opacity: .16;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, transparent 22%, #000 72%); mask-image: radial-gradient(ellipse at 50% 40%, transparent 22%, #000 72%); }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 10px; background: var(--ikat-band) repeat-x center / 24px 10px; }
.hero-in { position: relative; padding: 34px 0 54px; display: flex; justify-content: center; }
.hero-panel { position: relative; width: min(760px, 100%); text-align: center; padding-top: 6px; }
.hero-dome { width: 128px; aspect-ratio: 120 / 96; margin: 0 auto 0; background: var(--dome-line) center / contain no-repeat; opacity: .95; }
.hero-bis { font: 400 1.8rem/1.6 var(--f-ar-ui); color: var(--gold-3); margin: 6px 0 0; }
.hero-title { margin: 6px 0 10px; color: #fffaf0; display: flex; flex-direction: column; gap: 6px; }
.ht-main { font: 700 clamp(2.1rem, 5vw, 3.3rem)/1.1 var(--f-head); letter-spacing: -.015em; }
.ht-sub { font: 600 clamp(1rem, 2.4vw, 1.3rem)/1.4 var(--f-ui); color: var(--gold-3); letter-spacing: .01em; }
.hero-lead { color: #d3dcf3; max-width: 620px; margin: 0 auto 22px; font-size: 1.02rem; }
.hero-search { display: flex; align-items: center; gap: 10px; background: #fffaf0; color: #7d6754; border-radius: 16px; padding: 7px 7px 7px 16px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(233, 201, 127, .45); max-width: 640px; margin: 0 auto; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #2a1c12; font-size: 1rem; height: 44px; }
.hero-search input::placeholder { color: #8f7a66; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.quick a { padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #fff3dc;
  background: rgba(12, 28, 72, .7); border: 1px solid rgba(240, 207, 126, .38); }
.quick a:hover { background: #fff3dc; color: #13265c; }
.hero-sm .hero-in { padding: 26px 0 44px; }
.hero-ar { font: 400 2rem/1.6 var(--f-ar-osm); color: var(--gold-3); }
.hero-sm .ht-main { font-size: clamp(1.7rem, 4vw, 2.5rem); }

/* ---------- beranda ---------- */
.home-top { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; margin: 28px 0 10px; }
.daily { position: relative; padding: 24px 26px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.daily::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--pri), var(--gold-2), var(--sec)); }
.daily-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--sec); }
.daily-date { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.daily-ar { font: 400 calc(var(--ar-size) * .95)/2.1 var(--f-ar); text-align: center; margin: 10px 0; color: var(--ink); }
.daily-ro { text-align: center; }
.daily-tr { font: 400 1.05rem/1.75 var(--f-read); color: var(--ink-2); margin: 6px 0 12px; }
.daily-ref { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--pri); font-size: .93rem; }
.side-stack { display: flex; flex-direction: column; gap: 12px; }
.card { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.continue-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; margin-top: 6px; color: var(--pri); }
.marks ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.marks li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.marks li a { font-weight: 600; font-size: .93rem; }
.marks li button { border: 0; background: none; color: var(--muted); width: 28px; height: 28px; border-radius: 8px; }
.marks li button:hover { background: var(--sec-soft); color: var(--sec); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats div { padding: 12px 6px; text-align: center; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--line); }
.stats b { display: block; font: 700 1.3rem/1.2 var(--f-head); color: var(--sec); }
.stats span { font-size: .78rem; color: var(--muted); }
.promo { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.promo:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: inherit; border-color: var(--line-2); }
.promo > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.promo b { font-weight: 700; }
.promo small { color: var(--muted); font-size: .82rem; }
.promo-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pri-soft); color: var(--pri); flex: none; }
.promo-ic--t { background: var(--gold-soft); color: var(--gold); }

.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 26px 0 14px; }
.pane-head h2 { margin: 0; font-size: 1.45rem; }
.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pop-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px 16px 22px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; transition: border-color .15s, transform .15s; }
.pop-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--ikat) 0 0 / 14px 14px, var(--gold-soft); }
.pop-card:hover { border-color: var(--gold-2); transform: translateY(-1px); color: inherit; }
.pop-card b { font-weight: 800; color: var(--pri-deep); }
[data-theme="dark"] .pop-card b { color: var(--pri); }
.pc-roman { font-size: .88rem; font-weight: 600; color: var(--sec); }
.pop-card small { color: var(--muted); font-size: .84rem; line-height: 1.5; }

.tabs { display: flex; gap: 6px; margin: 34px 0 0; padding: 5px; border-radius: 14px; background: var(--bg-2); width: max-content; max-width: 100%; }
.tab { padding: 8px 20px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.tab.on { background: var(--surface); color: var(--pri); box-shadow: var(--shadow-sm); }
.tabpane { display: none; }
.tabpane.on { display: block; }
.filter { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); min-width: 260px; }
.filter:focus-within { border-color: var(--pri-2); }
.filter input { border: 0; outline: 0; background: none; width: 100%; color: var(--ink); }
.filter.big { max-width: 440px; margin: 16px auto 0; height: 48px; }

/* kartu surat */
.sura-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 10px; }
.sura-grid.compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 20px; }
.sura-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.sura-card:hover { border-color: var(--pri-2); box-shadow: var(--shadow); color: inherit; }
.sc-no { width: 38px; height: 38px; flex: none; display: grid; place-items: center; position: relative; margin: 0 4px; }
.sc-no::before { content: ""; position: absolute; inset: 4px; transform: rotate(45deg); border-radius: 6px; border: 1.5px solid var(--gold-2); background: var(--gold-soft); }
.sc-no span { position: relative; font: 700 .86rem/1 var(--f-ui); color: var(--sec); }
.sura-card:hover .sc-no::before { background: var(--pri); border-color: var(--pri); }
.sura-card:hover .sc-no span { color: #fff; }
.sc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sc-main b { font-weight: 700; font-size: 1rem; }
.sc-roman { font-size: .82rem; color: var(--sec); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-main small { font-size: .78rem; color: var(--muted); }
.sc-ar { font: 400 1.35rem/1.4 var(--f-ar-ui); color: var(--pri-deep); flex: none; }
[data-theme="dark"] .sc-ar { color: var(--pri); }
.no-result, .empty { color: var(--muted); text-align: center; padding: 24px 0; }

.juz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.juz-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.juz-card:hover { border-color: var(--pri-2); color: inherit; }
.jc-no { font-weight: 800; color: var(--pri); }
.jc-name { font: 400 1.25rem/1.6 var(--f-ar-ui); }
.jc-roman { font-size: .8rem; color: var(--muted); }
.goto { display: flex; align-items: center; gap: 8px; }
.goto label { font-size: .9rem; color: var(--muted); }
.goto input { width: 100px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.page-juz { display: flex; flex-direction: column; gap: 8px; }
.pj-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pj-label { flex: none; width: 64px; font-weight: 800; color: var(--pri); padding-top: 3px; }
.pj-pages { display: flex; flex-wrap: wrap; gap: 4px; }
.pj-pages a { min-width: 36px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: .84rem; background: var(--surface-2); border: 1px solid var(--line); }
.pj-pages a:hover { background: var(--pri); color: #fff; border-color: var(--pri); }

.divider { height: 26px; margin: 40px 0 10px; background: var(--ikat) center / 26px 26px repeat-x; opacity: .35;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.divider span { display: none; }
.langs-band h2 { text-align: center; font-size: 1.45rem; }
.lang-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lang-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--pri); }
.lang-card:nth-child(2) { border-top-color: var(--sec); }
.lang-card:nth-child(3) { border-top-color: var(--gold-2); }
.lang-card:hover { box-shadow: var(--shadow); color: inherit; }
.lang-card b { font-weight: 800; font-size: 1.05rem; }
.lang-card small { color: var(--muted); }
.about { margin: 40px 0 50px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.about h2 { margin-top: 0; font-size: 1.5rem; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-cols p, .about-links { color: var(--ink-2); margin: 0 0 10px; }
.about-links a, .about-en a { color: var(--pri); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- halaman baca ---------- */
.reading main, main.wrap { padding-bottom: 50px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 14px; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: var(--line-2); }
.crumbs a:hover { color: var(--pri); }

/* kepala surat: atap tumpang */
.sarlowh { position: relative; margin: 6px 0 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; text-align: center; }
.sl-band { height: 12px; background: var(--ikat) center / 22px 31px; }
.sl-band:last-child { height: 8px; background: var(--ikat-band) repeat-x center / 19px 8px; }
.sl-body { position: relative; padding: 10px 20px 20px; background: radial-gradient(500px 160px at 50% 0, var(--gold-soft), transparent 75%); }
.sl-body::before { content: ""; display: block; width: 78px; aspect-ratio: 120 / 96; margin: 8px auto 4px; background: var(--dome-fill) center / contain no-repeat; }
.passage-head .sl-body::before { width: 64px; }
.sl-cartouche { display: inline-block; padding: 2px 22px; border-radius: 999px; border: 1px solid var(--gold-2); background: var(--surface); }
.sl-ar { font: 400 1.5rem/1.7 var(--f-ar-ui); color: var(--pri-deep); }
[data-theme="dark"] .sl-ar { color: var(--pri); }
.sl-title { margin: 8px 0 0; font-size: clamp(1.7rem, 4.4vw, 2.3rem); line-height: 1.2; }
.sl-title a:hover { color: var(--pri); }
.sl-roman { font-weight: 600; color: var(--sec); margin-top: 2px; }
.sl-sub { color: var(--ink-2); margin: 6px auto 0; max-width: 560px; font-size: .95rem; }
.sl-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: .86rem; color: var(--muted); }
.sl-meta i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-2); display: inline-block; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 16px; }
.jump { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.jump select { border: 0; background: none; outline: 0; height: 100%; max-width: 130px; }
.basmala { text-align: center; font: 400 calc(var(--ar-size) * 1.05)/2 var(--f-ar); color: var(--pri-deep); margin: 10px 0 16px; }
[data-theme="dark"] .basmala { color: var(--pri); }

/* kartu ayat */
.ayah-list { display: flex; flex-direction: column; gap: 12px; }
.ayah { position: relative; padding: 16px 20px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 96px; transition: border-color .2s, box-shadow .2s; }
.ayah:hover { border-color: var(--line-2); }
.ayah.playing { border-color: var(--pri-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri-2) 20%, transparent); }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 30% { background: var(--mark); } 100% { background: var(--surface); } }
.ayah-head { display: flex; align-items: center; gap: 10px; }
.ayah-no { width: 36px; height: 36px; display: grid; place-items: center; position: relative; flex: none; }
.ayah-no::before { content: ""; position: absolute; inset: 5px; transform: rotate(45deg); border-radius: 5px; background: var(--pri); }
.ayah-no span { position: relative; color: #fff; font-weight: 800; font-size: .8rem; }
[data-theme="dark"] .ayah-no span { color: #0a1530; }
.ayah-ref { font-size: .82rem; color: var(--muted); font-weight: 600; }
.ayah-tools { margin-inline-start: auto; display: flex; gap: 2px; }
.tool { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); }
.tool:hover { background: var(--sec-soft); color: var(--sec); }
.tool.on { color: var(--gold); }
.tool.on .ic { fill: currentColor; }
.ar { font: 400 var(--ar-size)/2.15 var(--f-ar); text-align: right; margin: 12px 0 6px; color: var(--ink); word-spacing: .04em; }
.ayah-end { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .2em; margin-inline: .12em; vertical-align: middle;
  font: 700 .5em/1 var(--f-ar-ui); color: var(--sec); border: 1.5px solid var(--gold-2); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 3px var(--gold-3); }
.sajda { color: var(--sec); font-size: .8em; }
.roman { font: italic 500 .98rem/1.7 var(--f-read); color: var(--tq); margin: 4px 0 10px; }
.meals { display: flex; flex-direction: column; gap: 10px; }
.meal { padding-top: 10px; border-top: 1px dashed var(--line-2); }
.meal:first-child { border-top: 0; padding-top: 2px; }
.meal-src { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: .76rem; margin-bottom: 2px; }
.meal-src b { color: var(--sec); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.meal-src span { color: var(--muted); }
.meal p { margin: 0; font: 400 var(--tr-size)/var(--lh-read) var(--f-read); color: var(--ink); }
.meal:not(.meal--main) p { color: var(--ink-2); font-size: calc(var(--tr-size) * .95); }
.meal-tf { font-size: .95rem; color: var(--ink-2); }
.meal-tf p { margin: 0 0 8px; }
details.tafsir { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.tafsir summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--pri);
  padding: 5px 12px; border-radius: 999px; background: var(--pri-soft); list-style: none; }
details.tafsir summary::-webkit-details-marker { display: none; }
details.tafsir[open] summary { background: var(--pri); color: #fff; }
[data-theme="dark"] details.tafsir[open] summary { color: #0a1530; }
.tafsir-text { padding-top: 10px; }
.tafsir-text .loading { color: var(--muted); }
.tf-block { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 8px; }
.tf-block h4 { margin: 0 0 4px; font: 800 .82rem/1.4 var(--f-ui); color: var(--sec); text-transform: uppercase; letter-spacing: .06em; }
.tf-block p { margin: 0 0 6px; font-size: .96rem; line-height: 1.75; color: var(--ink-2); }
.tf-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .86rem; color: var(--pri); }

.single-head { text-align: center; margin: 6px 0 18px; }
.single-head h1 { margin: 6px 0 2px; font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1.2; }
.single-head h1 span { display: block; font-size: .62em; color: var(--sec); font-family: var(--f-ui); font-weight: 700; margin-top: 4px; }
.h-roman { color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
.page-hero .h-roman { color: var(--sec); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.chips.start { justify-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.chip:hover { border-color: var(--pri-2); color: var(--pri); }
.chip-teal { background: var(--tq-soft); color: var(--tq); border-color: transparent; }
.chip-gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.chip-select { padding: 0 8px; }
.chip-select select { border: 0; background: none; outline: 0; font-weight: 600; }
.single-list .ayah { padding: 20px 24px 22px; }
.single-list .ar { font-size: calc(var(--ar-size) * 1.12); text-align: center; }
.alt-script { margin: 14px 0; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--line-2); }
.alt-script summary { cursor: pointer; font-weight: 600; color: var(--sec); }
.alt-script .ar { text-align: center; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 28px 0 10px; }
.pg { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.pg:hover { border-color: var(--pri-2); color: inherit; }
.pg span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; font-weight: 700; }
.pg small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.pg.next { justify-content: flex-end; text-align: end; }
.pg.ghost { background: none; border: 0; }
.pg-center { font-size: .88rem; font-weight: 700; color: var(--pri); text-align: center; }

.anchor { display: block; height: 0; }
.sura-cont { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; margin: 18px 0 4px; padding: 10px; border-radius: 14px; background: var(--gold-soft); }
.sura-cont a { font-weight: 800; color: var(--pri); }
.sura-cont span { font: 400 1.2rem/1.5 var(--f-ar-ui); }
.sura-cont small { color: var(--muted); }
.juz-suras { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }

.sura-about { margin-top: 30px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.sura-about h2 { margin: 0 0 12px; font-size: 1.35rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 16px; }
.facts div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.facts dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; }
.facts dd a { color: var(--pri); }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary:hover { color: var(--pri); }
.faq p { margin: 6px 0 0; color: var(--ink-2); }
.other-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.other-langs a { color: var(--pri); font-weight: 600; }

/* ---------- mushaf ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.page-head h1 { margin: 2px 0 0; font-size: 1.6rem; }
.mushaf-nav { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; }
.mn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); grid-row: 1; }
.mn:first-child { grid-column: 3; }
.mn:last-child { grid-column: 1; }
.mn:hover { background: var(--pri); color: #fff; border-color: var(--pri); }
.mushaf { grid-column: 2; grid-row: 1; }
.mushaf-frame { padding: 14px; border-radius: 10px; background: #fffdf6; border: 1px solid var(--line-2);
  box-shadow: inset 0 0 0 6px #fffaf0, inset 0 0 0 7px var(--gold-2), inset 0 0 0 10px #fffaf0, inset 0 0 0 11px var(--pri), var(--shadow); color: #2a1c12; }
[data-theme="dark"] .mushaf-frame { background: #241a12; box-shadow: inset 0 0 0 6px #241a12, inset 0 0 0 7px var(--gold-2), inset 0 0 0 10px #241a12, inset 0 0 0 11px var(--pri), var(--shadow); color: var(--ink); }
.mushaf-top { display: flex; justify-content: space-between; padding: 6px 16px 0; font: 400 1rem/1.6 var(--f-ar-ui); color: var(--sec); }
.mushaf-text { padding: 8px 18px 6px; font: 400 calc(var(--ar-size) * .95)/2.25 var(--f-ar); text-align: justify; text-align-last: center; }
.m-ayah { border-radius: 6px; cursor: pointer; }
.m-ayah:hover { background: var(--pri-soft); }
.m-ayah.playing { background: var(--mark); }
.m-sura { margin: 10px 0 6px; padding: 4px; text-align: center; border-radius: 8px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); border-block: 1px solid var(--gold-2); }
.m-sura span { font: 400 1.25rem/1.6 var(--f-ar-ui); color: var(--pri-deep); }
[data-theme="dark"] .m-sura span { color: var(--pri); }
.m-basmala { text-align: center; }
.mushaf-foot { text-align: center; font-weight: 700; color: var(--sec); padding-bottom: 6px; }
.page-meal { margin-top: 24px; }
.page-meal.hide { display: none; }
.section-title { font-size: 1.25rem; margin: 22px 0 10px; }
.section-title small { font-size: .7em; color: var(--muted); font-family: var(--f-ui); font-weight: 600; }
.pm-item { padding: 10px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.pm-ref { font-size: .82rem; color: var(--pri); font-weight: 700; }
.pm-text { margin: 2px 0 0; font: 400 var(--tr-size)/var(--lh-read) var(--f-read); }
.pm-alt { color: var(--ink-2); font-size: .95em; }
.pm-text .lang { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- tafsir ---------- */
.page-hero { text-align: center; padding: 10px 0 18px; }
.page-hero h1 { margin: 8px 0 2px; font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.page-hero p { color: var(--ink-2); max-width: 620px; margin: 6px auto 0; }
.ph-ic { width: 60px; height: 60px; margin: 0 auto; display: grid; place-items: center; position: relative; color: #fff; }
.ph-ic::before { content: ""; position: absolute; inset: 8px; transform: rotate(45deg); border-radius: 10px; background: linear-gradient(135deg, var(--pri-2), var(--pri-deep)); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--gold-2); }
.ph-ic svg { position: relative; }
.tf-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0; }
.tf-switch a { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .92rem; line-height: 1.3; }
.tf-switch a small { font-weight: 500; font-size: .74rem; color: var(--muted); }
.tf-switch a.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.tf-switch a.on small { color: #dbe4fa; }
[data-theme="dark"] .tf-switch a.on { color: #0a1530; }
[data-theme="dark"] .tf-switch a.on small { color: #13265c; }
.tf-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tf-list a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tf-list a:hover { border-color: var(--pri-2); color: inherit; }
.tf-no { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--gold-soft); color: var(--sec); font-weight: 800; font-size: .84rem; }
.tf-meal { flex: 1; min-width: 0; font-size: .93rem; color: var(--ink-2); }
.tf-card { padding: 22px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tf-ar { font: 400 calc(var(--ar-size) * 1.08)/2.2 var(--f-ar); text-align: center; color: var(--ink); }
.tf-roman { text-align: center; }
.tf-actions { display: flex; justify-content: center; margin: 6px 0 4px; }
.tf-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.tf-sec h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--sec); }
.tf-sec h2 small { font: 500 .78rem/1.4 var(--f-ui); color: var(--muted); margin-inline-start: 6px; }
.tf-meal-box p { margin: 0; font: 400 1.1rem/1.8 var(--f-read); }
.tf-body { font: 400 1.04rem/1.9 var(--f-read); color: var(--ink); }
.tf-body p { margin: 0 0 12px; }
.tf-q { color: var(--tf-q); font-weight: 600; }
.tf-p { color: var(--tf-p); }
.tf-b { color: var(--tf-b); }
.tf-arab { font-family: var(--f-ar-ui); font-size: 1.3em; line-height: 1.6; color: var(--pri-deep); }
[data-theme="dark"] .tf-arab { color: var(--pri); }
.tf-ref { color: var(--pri); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tf-w-allah { color: var(--pri); font-weight: 700; }
.tf-w-nabi { color: var(--sec); font-weight: 700; }
.tf-w-rh { color: var(--muted); font-style: italic; }
.tf-w-sahih { color: var(--gold); font-weight: 700; }
.tf-other { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tf-other span { flex: 1; }
.tf-other:hover { border-color: var(--pri-2); color: inherit; }
.tf-lang { margin-top: 14px; }

/* ---------- pencarian ---------- */
.search-head { text-align: center; padding: 6px 0 10px; }
.search-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.4rem); margin: 6px 0 14px; }
.big-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); color: var(--muted); }
.big-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; color: var(--ink); font-size: 1rem; }
.big-search select { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 0 8px; }
.hint { font-size: .88rem; color: var(--muted); }
.hint a { color: var(--pri); font-weight: 600; }
.results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.result { padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.r-ref { font-size: .86rem; font-weight: 700; color: var(--pri); }
.r-ar { font: 400 calc(var(--ar-size) * .85)/2 var(--f-ar); text-align: right; margin: 6px 0; }
.r-tr { margin: 0; color: var(--ink-2); }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- murottal ---------- */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.rc-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.rc-card:hover { border-color: var(--pri-2); box-shadow: var(--shadow); color: inherit; }
.rc-name { font-weight: 700; font-size: .93rem; line-height: 1.35; }
.rc-card small { color: var(--muted); font-size: .76rem; }
.rc-av { --s: 56px; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--pri-2), var(--pri-deep)); color: #fff; font: 700 calc(var(--s) * .4)/1 var(--f-head); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--gold-2); }
.rc-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listen-quick { margin-top: 30px; }
.listen-quick h2 { font-size: 1.3rem; }
.rc-head { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.rc-head h1 { margin: 2px 0; font-size: 1.7rem; }
.rc-head p { margin: 2px 0 0; color: var(--muted); }
.rc-select { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.rc-select select { border: 0; outline: 0; background: none; max-width: 260px; }
.tracks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.track { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.track.playing { border-color: var(--pri-2); background: var(--pri-soft); }
.tr-play { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--pri); height: 40px; padding: 0 6px; border-radius: 10px; }
.tr-play:hover { background: var(--pri-soft); }
.tr-no { font-weight: 800; font-size: .84rem; color: var(--muted); min-width: 22px; }
.tr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tr-main small { color: var(--muted); font-size: .8rem; }
.tr-ar { font: 400 1.15rem/1.4 var(--f-ar-ui); color: var(--pri-deep); }
[data-theme="dark"] .tr-ar { color: var(--pri); }
.tr-dl { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.tr-dl:hover { background: var(--sec-soft); color: var(--sec); }
.lp-card { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.lp-who { display: flex; align-items: center; gap: 14px; text-align: start; }
.lp-who small { display: block; color: var(--muted); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lp-others h2 { font-size: 1.2rem; margin: 26px 0 10px; }
.rc-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.rc-mini a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.rc-mini a:hover { border-color: var(--pri-2); color: inherit; }

/* ---------- info ---------- */
.prose { padding: 22px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.prose h2 { font-size: 1.2rem; margin: 18px 0 6px; color: var(--sec); }
.prose section:first-child h2 { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--pri); text-decoration: underline; }
.source-card { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--gold-soft); border: 1px solid var(--line); }
.sc-label { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sec); }
.source-card a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.source-card { flex-wrap: wrap; }
.source-card a small { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { text-align: center; padding: 60px 0; }
.big-num { font: 700 5rem/1 var(--f-head); color: var(--gold-2); }

/* ---------- kaki situs ---------- */
.sitefoot { margin-top: 30px; background: linear-gradient(180deg, #13265c, #0c1a42); color: #dfe5f4; }
[data-theme="dark"] .sitefoot { background: linear-gradient(180deg, #08101f, #050a15); }

.foot-verse { text-align: center; padding: 34px 0 20px; border-bottom: 1px solid rgba(240, 207, 126, .2); }
.foot-ar { font: 400 1.9rem/1.8 var(--f-ar-osm); color: var(--gold-3); }
.foot-tr { margin: 6px auto 0; max-width: 640px; color: #c9d2ea; font-style: italic; }
.foot-tr span { font-style: normal; color: var(--gold-2); font-weight: 700; font-size: .86rem; margin-inline-start: 4px; }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 26px; padding: 30px 0 20px; }
.foot-brand .brand-text b { color: #fff6e6; }
.foot-brand .brand-text b em { color: var(--gold-3); }
.foot-brand .brand-text small { color: #9fb0d6; }
.foot-brand p { color: #b7c3e0; font-size: .9rem; margin-top: 12px; }
.foot-cols nav { display: flex; flex-direction: column; gap: 6px; }
.foot-cols h2 { margin: 0 0 6px; font: 800 .78rem/1.4 var(--f-ui); color: var(--gold-3); text-transform: uppercase; letter-spacing: .1em; }
.foot-cols nav a { color: #d6deef; font-size: .9rem; }
.foot-cols nav a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 0 26px; border-top: 1px solid rgba(240, 207, 126, .2); font-size: .84rem; color: #9fb0d6; }
.copy { margin: 0; }
.foot-legal { display: flex; gap: 14px; }
.foot-legal a:hover { color: #fff; }

/* ---------- pemutar ---------- */
.player, .splayer { position: fixed; inset-inline: 0; bottom: 14px; z-index: 55; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.player-in, .sp-in { pointer-events: auto; display: flex; align-items: center; gap: 8px; width: min(720px, 100%); padding: 8px 12px; border-radius: 18px;
  background: var(--pri-deep); color: #f3ead8; box-shadow: 0 20px 40px -16px rgba(0,0,0,.55); border: 1px solid rgba(233, 201, 127, .3); }
[data-theme="dark"] .player-in, [data-theme="dark"] .sp-in { background: #0a1a40; }
.player .iconbtn, .splayer .iconbtn { color: #f3ead8; }
.player .iconbtn:hover, .splayer .iconbtn:hover { background: rgba(255,255,255,.1); color: #fff; }
.pbtn { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gold-2); color: #2a1a0b; flex: none; }
.player-info, .sp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.player-info b, .sp-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info small, .sp-info small { color: #b9c7ea; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-progress { width: 110px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.player-progress span { display: block; height: 100%; width: 0; background: var(--gold-3); }
.sp-seek { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: #b9c7ea; }
.sp-seek input { width: 140px; accent-color: var(--gold-2); }
.js-sp-repeat[aria-pressed="true"] { color: var(--gold-3) !important; background: rgba(255,255,255,.12) !important; }
body.has-splayer { padding-bottom: 80px; }

/* ---------- pengaturan ---------- */
dialog.settings { border: 0; padding: 0; border-radius: 22px; width: min(520px, 100% - 24px); max-height: calc(100vh - 40px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
dialog.settings::backdrop { background: rgba(10, 18, 40, .55); backdrop-filter: blur(3px); }
.settings-in { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.settings-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.settings-head h2 { margin: 0; font-size: 1.25rem; }
.settings-body { overflow: auto; padding: 6px 18px 14px; }
.settings-body section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings-body section:last-child { border-bottom: 0; }
.settings-body h3 { margin: 0 0 8px; font: 800 .78rem/1.4 var(--f-ui); color: var(--sec); text-transform: uppercase; letter-spacing: .08em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line); font-size: .86rem; font-weight: 600; }
.seg b { font-size: 1.4rem; font-weight: 400; line-height: 1.7; }
.seg input:checked + span { border-color: var(--pri); background: var(--pri-soft); color: var(--pri); }
.seg input:focus-visible + span { outline: 2px solid var(--pri-2); }
.langgroup { margin-bottom: 8px; }
.langname { font-size: .78rem; font-weight: 700; color: var(--muted); margin: 6px 0 2px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pri); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--pri); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--pri-2); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-weight: 600; font-size: .92rem; }
.field select { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 10px; }
.field input[type=range] { accent-color: var(--pri); }
.field output { color: var(--muted); font-weight: 500; }
.settings-foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70;
  padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .9rem; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- navigasi bawah (ponsel) ---------- */
.bottomnav { display: none; }

/* ---------- responsif ---------- */
@media (max-width: 1080px) {
  .topsearch { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .js-menu { display: grid; }
  .mainnav { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; padding: 10px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 10px 12px; }
  .home-top { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar-in { min-height: 60px; gap: 8px; }
  .brand .logo { width: 38px; height: 38px; }
  .brand-text b { font-size: 1.12rem; }
  .brand-text small { display: none; }
  .iconbtn { width: 38px; height: 38px; }
  .hero-in { padding: 22px 0 40px; }
  .hero-bis { font-size: 1.45rem; }
  .hero-lead { font-size: .95rem; }
  .hero-search { padding: 6px 6px 6px 12px; }
  .hero-search .btn { padding: 0 14px; }
  .quick a { font-size: .84rem; padding: 6px 12px; }
  .stats b { font-size: 1.1rem; }
  .daily { padding: 20px 16px 18px; }
  .filter { min-width: 0; width: 100%; }
  .sura-grid { grid-template-columns: 1fr; }
  .ayah { padding: 14px 14px 16px; border-radius: 16px; }
  .single-list .ayah { padding: 16px; }
  .ar { line-height: 2.05; }
  .tool { width: 34px; height: 34px; }
  .ayah-ref { display: none; }
  .tf-card { padding: 18px 16px; }
  .sura-about, .about, .prose { padding: 18px 16px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pg-center { grid-column: 1 / -1; grid-row: 1; }
  .pg.ghost { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .mushaf-nav { grid-template-columns: 1fr; }
  .mn { display: none; }
  .mushaf { grid-column: 1; }
  .mushaf-text { padding: 6px 8px; }
  .player-progress, .sp-seek { display: none; }
  .bottomnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: .72rem; font-weight: 700; color: var(--muted); }
  .bottomnav a.on { color: var(--pri); }
  body:has(.bottomnav) { padding-bottom: 64px; }
  body:has(.bottomnav) .player, body:has(.bottomnav) .splayer { bottom: 74px; }
  .rc-head { flex-direction: column; text-align: center; }
  .big-search { flex-wrap: wrap; }
  .big-search select { flex: 1; }
  .goto label { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .topbar, .sitefoot, .toolbar, .ayah-tools, .bottomnav, .player, .splayer, .tafsir { display: none !important; } .ayah { break-inside: avoid; border: 0; } }
