/* Kur'an Takip Sûre Kitabı: all selectors are namespaced to avoid Porto/theme conflicts. */
#ktq-sure-app{--ktq-green:#073d32;--ktq-gold:#c9a258;--ktq-cream:#f9f0d8;--ktq-ink:#332d24;font-family:Georgia,"Times New Roman",serif;box-sizing:border-box}
#ktq-sure-app *{box-sizing:border-box}
#ktq-sure-app button,#ktq-sure-app select{font:inherit;cursor:pointer}
#ktq-sure-app button:focus-visible,#ktq-sure-app a:focus-visible,#ktq-sure-app select:focus-visible{outline:3px solid #e6b758;outline-offset:3px}
body.ktq-modal-open{overflow:hidden!important}
#ktq-sure-app .ktq-book-overlay{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:6px}
#ktq-sure-app .ktq-book-overlay.is-open{display:flex}
#ktq-sure-app .ktq-book-shade{position:absolute;inset:0;background:rgba(4,25,21,.79);backdrop-filter:blur(5px)}
#ktq-sure-app .ktq-book-modal{position:relative;display:flex;flex-direction:column;width:min(1220px,calc(100vw - 26px));height:min(97dvh,1050px);max-height:calc(100dvh - 12px);overflow:hidden;border:1px solid #d7bc79;border-radius:18px;background:#0b3329;box-shadow:0 38px 100px rgba(0,0,0,.53);color:#faf3df;outline:none;isolation:isolate}
#ktq-sure-app .ktq-book-modal::before{content:"";position:absolute;inset:6px;pointer-events:none;border:1px solid rgba(208,165,75,.32);border-radius:13px;z-index:-1}
#ktq-sure-app .ktq-book-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 16px;border-bottom:1px solid rgba(228,186,90,.3);background:linear-gradient(110deg,#0d4c3e,#07372d)}
#ktq-sure-app .ktq-book-brand{display:flex;align-items:center;gap:11px;color:#f3cb7b}
#ktq-sure-app .ktq-brand-mark{font-size:28px;line-height:1}
#ktq-sure-app .ktq-book-brand strong{display:block;font-size:16px;letter-spacing:.22em;line-height:1.3}
#ktq-sure-app .ktq-book-brand small{display:block;font-family:Arial,sans-serif;font-size:9px;letter-spacing:.3em;color:#f1e4c0}
#ktq-sure-app .ktq-book-close{border:1px solid #b99c65;border-radius:50%;background:transparent;color:#fff5d7;width:35px;height:35px;line-height:1;font-size:28px}
#ktq-sure-app .ktq-book-close:hover{background:#965e48}
#ktq-sure-app .ktq-book-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:5px 16px;background:#104437;font-family:Arial,sans-serif;font-size:12px}
#ktq-sure-app .ktq-select-wrap{display:flex;align-items:center;gap:10px;flex:1;max-width:490px}
#ktq-sure-app .ktq-select-wrap span{white-space:nowrap;color:#dfc68c;font-weight:700}
#ktq-sure-app .ktq-surah-select{border:1px solid #be9f65;border-radius:7px;min-width:0;width:100%;height:32px;max-height:34px;padding:5px 10px;background:#f7edd5;color:#293b30;font-family:Arial,sans-serif;font-size:13px}
#ktq-sure-app .ktq-qari{color:#e9c27f;white-space:nowrap}
#ktq-sure-app .ktq-book-stage{position:relative;min-height:0;flex:1 1 auto;overflow:hidden;display:flex;justify-content:center;padding:8px 10px 6px;background:radial-gradient(ellipse at center,#1a6453 0,#0e4337 55%,#05271f 100%);perspective:1700px}
#ktq-sure-app .ktq-book-gutter{position:absolute;top:8px;bottom:6px;left:12px;width:15px;border-radius:50%;background:linear-gradient(90deg,rgba(0,0,0,.45),rgba(255,255,255,.12),transparent);pointer-events:none}
#ktq-sure-app .ktq-book-sheet{position:relative;width:100%;max-width:1160px;height:100%;min-height:0;margin:0 auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ad915c #f3e6c8;transform-style:preserve-3d;transform-origin:right center;backface-visibility:hidden;direction:rtl;background:repeating-linear-gradient(0deg,transparent 0 42px,rgba(144,113,62,.019) 43px),linear-gradient(120deg,#fef9e9 0%,#f9eed4 45%,#eedbb4 100%);border-radius:7px 12px 12px 7px;box-shadow:-5px 0 0 #c9b48b,-9px 0 0 #e4d3ad,0 17px 25px rgba(0,0,0,.35),inset 0 0 18px rgba(137,103,55,.17);color:#382e24}
#ktq-sure-app .ktq-page-border{position:relative;min-height:100%;padding:12px clamp(18px,3.2vw,38px) 20px;border:7px double rgba(179,141,74,.42);outline:1px solid rgba(145,104,42,.5);outline-offset:-17px}
#ktq-sure-app .ktq-page-border::before,#ktq-sure-app .ktq-page-border::after{content:"❈";position:absolute;color:#b69256;font-size:21px;top:10px}
#ktq-sure-app .ktq-page-border::before{left:15px}
#ktq-sure-app .ktq-page-border::after{right:15px}
#ktq-sure-app .ktq-page-ornament{text-align:center;font-size:13px;letter-spacing:.26em;color:#a27f43;line-height:1.05;margin-bottom:2px}
#ktq-sure-app .ktq-book-surah-title{text-align:center;margin:0 0 3px;padding:0 12px;border:1px solid #cdb67a;border-radius:50px;color:#624b2a;font-family:"Amiri","Noto Naskh Arabic","Traditional Arabic",serif;font-weight:700;font-size:clamp(22px,2.7vw,31px);line-height:1.3}
#ktq-sure-app .ktq-basmala{text-align:center;font-family:"Amiri","Noto Naskh Arabic","Traditional Arabic",serif;font-size:clamp(19px,2.5vw,30px);color:#6f5338;margin:0 0 9px;line-height:1.55;white-space:nowrap!important;overflow:visible;text-align:center;max-width:100%}
#ktq-sure-app .ktq-ayahs{direction:rtl;text-align:justify;text-align-last:center;line-height:2.12;font-family:"Amiri","Noto Naskh Arabic","Traditional Arabic",serif;font-size:clamp(21px,2.25vw,30px);font-weight:400;color:var(--ktq-ink)}
#ktq-sure-app .ktq-ayah{display:inline!important;vertical-align:baseline!important;white-space:normal!important;text-align:inherit!important;line-height:inherit!important;letter-spacing:0!important;background:transparent!important;border:none!important;border-radius:5px!important;margin:0!important;padding:2px 4px!important;color:inherit!important;cursor:pointer!important;transition:background-color .22s ease,color .22s ease}
#ktq-sure-app .ktq-ayah:hover{background:rgba(186,141,60,.15)!important}
#ktq-sure-app .ktq-ayah.is-active{background:rgba(202,158,73,.29)!important;color:#103e31!important;box-decoration-break:clone;-webkit-box-decoration-break:clone;outline:1px solid rgba(136,105,44,.15)}
#ktq-sure-app .ktq-ayah-number{display:inline;color:#a37d41;font-size:.72em;white-space:nowrap;margin-inline-start:7px;margin-inline-end:4px}
#ktq-sure-app .ktq-sheet-bottom{position:relative;direction:ltr;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid rgba(175,135,73,.35);margin-top:10px;padding-top:3px;color:#8b6f47;font-size:14px}
#ktq-sure-app .ktq-sheet-label{font-family:"Amiri","Traditional Arabic",serif;font-size:17px}
#ktq-sure-app .ktq-flip-sheet{position:absolute;pointer-events:none;z-index:3;left:50%;right:10px;top:8px;bottom:6px;opacity:0;transform:rotateY(0deg);transform-origin:right center;background:linear-gradient(95deg,#e5d1ac,#fff5dd 75%,#c9af7b);border-radius:5px 12px 12px 5px;box-shadow:0 10px 25px rgba(0,0,0,.2);backface-visibility:hidden}
#ktq-sure-app .ktq-book-stage.turn-next .ktq-flip-sheet{animation:ktq-book-turn-next .66s ease-in-out both}
#ktq-sure-app .ktq-book-stage.turn-prev .ktq-flip-sheet{transform-origin:left center;animation:ktq-book-turn-prev .66s ease-in-out both}
#ktq-sure-app .ktq-book-stage.turn-next .ktq-book-sheet,#ktq-sure-app .ktq-book-stage.turn-prev .ktq-book-sheet{animation:ktq-book-content-change .66s ease-in-out both}
@keyframes ktq-book-turn-next{0%{opacity:0;transform:rotateY(0deg)}12%{opacity:.95}52%{opacity:.85;transform:rotateY(-90deg);box-shadow:0 25px 50px rgba(0,0,0,.46)}94%{opacity:.2}100%{opacity:0;transform:rotateY(-180deg)}}
@keyframes ktq-book-turn-prev{0%{opacity:0;transform:rotateY(0deg)}12%{opacity:.95}52%{opacity:.85;transform:rotateY(90deg);box-shadow:0 25px 50px rgba(0,0,0,.46)}94%{opacity:.2}100%{opacity:0;transform:rotateY(180deg)}}
@keyframes ktq-book-content-change{0%,35%{opacity:1;filter:brightness(1)}48%{opacity:.32;filter:brightness(.8)}62%{opacity:.75;filter:brightness(.92)}100%{opacity:1;filter:brightness(1)}}
#ktq-sure-app .ktq-book-loading{position:absolute;inset:8px 10px 6px;z-index:4;display:none;align-items:center;justify-content:center;padding:28px;text-align:center;border:2px solid #d8bc80;border-radius:7px;background:rgba(255,249,230,.97);color:#325345;font-family:Arial,sans-serif;font-size:16px;font-weight:600}
#ktq-sure-app .ktq-book-loading.is-visible{display:flex}
#ktq-sure-app .ktq-book-loading.is-error{color:#973f2e}
#ktq-sure-app .ktq-player{display:flex;align-items:center;gap:10px;padding:6px 15px;background:#0c3d32;border-top:1px solid #917744;font-family:Arial,sans-serif}
#ktq-sure-app .ktq-play{flex:0 0 auto;display:flex;align-items:center;gap:7px;border:none;border-radius:99px;padding:7px 13px;background:#e7b85f;color:#163a30;font-family:Arial,sans-serif;font-size:13px;font-weight:700;min-width:102px;justify-content:center}
#ktq-sure-app .ktq-play:hover{background:#f4d492}
#ktq-sure-app .ktq-restart{border:1px solid #bd9a54;background:transparent;color:#f1e3c4;border-radius:50%;width:34px;height:34px;font-size:25px;line-height:1}
#ktq-sure-app .ktq-audio-info{display:flex;flex:1;flex-direction:column;min-width:0;gap:3px}
#ktq-sure-app .ktq-now-playing{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fbecd5}
#ktq-sure-app .ktq-audio-hint{font-size:11px;color:#b8d3bd}
#ktq-sure-app .ktq-volume{display:flex;align-items:center;gap:5px;white-space:nowrap;color:#efcb7a}
#ktq-sure-app .ktq-volume input{accent-color:#efc46f;width:80px}
#ktq-sure-app .ktq-player audio{display:none}
#ktq-sure-app .ktq-book-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:5px 15px;background:#104437;font-family:Arial,sans-serif}
#ktq-sure-app .ktq-book-footer button{background:transparent;color:#f2dba8;border:1px solid rgba(223,185,102,.7);border-radius:9px;padding:5px 12px;font-size:13px;font-weight:600;min-width:100px}
#ktq-sure-app .ktq-book-footer button:hover:not([disabled]){background:#1d5848}
#ktq-sure-app .ktq-book-footer button[disabled]{opacity:.3;cursor:default}
#ktq-sure-app .ktq-position{text-align:center;font-size:11px;color:#d9c7a0}
#ktq-sure-app .ktq-sources{padding:3px 12px 4px;text-align:center;font-family:Arial,sans-serif;font-size:10px;color:#b8caaf;background:#0a342a}
#ktq-sure-app .ktq-sources a{color:#e5c482!important;text-decoration:underline!important}
@media(max-width:780px){
  #ktq-sure-app .ktq-book-overlay{padding:4px}
  #ktq-sure-app .ktq-book-modal{width:100%;height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);border-radius:10px}
  #ktq-sure-app .ktq-book-stage{padding:7px 8px;min-height:150px}
  #ktq-sure-app .ktq-book-gutter{display:none}
  #ktq-sure-app .ktq-book-sheet{height:100%;box-shadow:0 6px 22px rgba(0,0,0,.3)}
  #ktq-sure-app .ktq-page-border{padding:20px 19px 34px;border-width:5px;outline-offset:-10px}
  #ktq-sure-app .ktq-ayahs{font-size:clamp(20px,5vw,27px);line-height:2.05}
  #ktq-sure-app .ktq-book-header{padding:8px 12px}
  #ktq-sure-app .ktq-book-toolbar{padding:7px 10px}
  #ktq-sure-app .ktq-qari{display:none}
  #ktq-sure-app .ktq-player{padding:8px 10px;gap:8px}
  #ktq-sure-app .ktq-volume{display:none}
  #ktq-sure-app .ktq-book-footer{padding:6px 10px}
  #ktq-sure-app .ktq-book-footer button{min-width:75px;padding:6px 8px}
  #ktq-sure-app .ktq-sources{font-size:9px}
}
@media(max-width:780px){#ktq-sure-app .ktq-book-stage{min-height:0}#ktq-sure-app .ktq-page-ornament{display:none}#ktq-sure-app .ktq-basmala{font-size:clamp(16px,4vw,21px);white-space:nowrap!important}#ktq-sure-app .ktq-page-border{padding:12px 13px 18px}#ktq-sure-app .ktq-book-surah-title{margin-bottom:3px}#ktq-sure-app .ktq-book-brand strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){#ktq-sure-app *,#ktq-sure-app *::before,#ktq-sure-app *::after{animation:none!important;transition:none!important}}

/* v1.4.0 — The homepage's featured surahs are read-only Arabic text with one local MP3. */
#ktq-sure-app .ktq-featured-mode .ktq-ayah-static{cursor:text!important;}
#ktq-sure-app .ktq-featured-mode .ktq-ayah-static:hover{background:transparent!important;}
#ktq-sure-app .ktq-featured-source{display:none;}
#ktq-sure-app .ktq-featured-mode .ktq-verse-source{display:none;}
#ktq-sure-app .ktq-featured-mode .ktq-featured-source{display:inline;}

/* v1.9: make it evident that the Quran page may continue below the book viewport. */
#ktq-sure-app .ktq-book-sheet{scrollbar-width:auto;scrollbar-color:#a78243 #f3e6c8}
#ktq-sure-app .ktq-book-sheet::-webkit-scrollbar{width:13px}
#ktq-sure-app .ktq-book-sheet::-webkit-scrollbar-track{background:#f3e6c8}
#ktq-sure-app .ktq-book-sheet::-webkit-scrollbar-thumb{background:#a78243;border:3px solid #f3e6c8;border-radius:12px}
#ktq-sure-app .ktq-position{font-size:12px;line-height:1.45}

#ktq-sure-app .ktq-book-footer .ktq-page-next,#ktq-sure-app .ktq-book-footer .ktq-page-prev{min-width:115px}
