/* Serlo visual system: cool neutrals, blue accents and a layered product stage. */
:root{--bg:#f5f5f7;--surface:#fff;--soft:#eaeaef;--ink:#1d1d1f;--muted:#62646e;--line:#e0e1e7;--green:#0066cc;--accent:#e7f1ff;--gold:#2865a4;--shadow:0 18px 50px #1e3c6614;--blue-button:#0066d4;--stage-bg:#eaf2ff;--stage-edge:#d7e5fa;--stage-glow:#96bfff8c;--dock-height:66px;--header-height:69px;--ease:cubic-bezier(.22,.7,.22,1);background:var(--bg)}
html[data-theme=dark]{--bg:#101114;--surface:#191b21;--soft:#24262f;--ink:#f5f5f7;--muted:#b4b6c2;--line:#333640;--green:#7db8ff;--accent:#1d304f;--gold:#9ac9ff;--shadow:0 18px 50px #0005;--blue-button:#086bd7;--stage-bg:#151d2e;--stage-edge:#2a3b56;--stage-glow:#2c5fad76;background:var(--bg)}
html{scroll-padding-top:calc(var(--header-height) + 14px);scroll-padding-bottom:110px}body{font-size:16px;line-height:1.55;letter-spacing:-.01em}main,.nav-shell,footer{width:min(1200px,calc(100% - 88px))}a,button,input,select{transition:background .24s var(--ease),color .24s var(--ease),border-color .24s var(--ease),transform .28s var(--ease),box-shadow .24s var(--ease)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--green);outline-offset:3px}::selection{background:#559bff55}.skip-link{position:fixed;z-index:100;top:8px;left:12px;background:var(--surface);color:var(--green);padding:12px 18px;border-radius:12px;transform:translateY(-160%)}.skip-link:focus{transform:none}.site-header{background:color-mix(in srgb,var(--bg) 80%,transparent);backdrop-filter:saturate(170%) blur(22px);-webkit-backdrop-filter:saturate(170%) blur(22px)}.nav-shell{height:var(--header-height);gap:20px}.brand{gap:10px}.brand-icon{width:33px;height:33px;border-radius:10px;background:linear-gradient(150deg,#3188ff,#0058ca);color:#fff;box-shadow:0 3px 10px #0066cc26}.brand-name{font-size:27px;letter-spacing:-.065em;font-weight:720}.site-header nav{gap:30px}.nav-link{font-size:14px;font-weight:520;padding:13px 6px}.nav-link.active:after{bottom:6px;background:var(--green)}.header-actions{gap:10px}.header-actions .icon-button{width:44px;height:44px}.reading-button{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 16px;border-radius:24px;font-size:13px;font-weight:530}.reading-button span{margin:0;color:var(--ink)}.reading-button .icon{width:16px;height:16px;color:var(--green)}.mobile-nav{display:none}

.hero{grid-template-columns:1fr 1fr;min-height:565px;gap:clamp(24px,4vw,62px);padding:54px 0 40px}.hero-content{animation:serlo-in .72s var(--ease) both}.eyebrow{font-size:11px;letter-spacing:.15em;color:var(--green);font-weight:690}.status-dot{width:6px;height:6px;box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 13%,transparent)}.hero h1{font-family:inherit;font-size:clamp(46px,5.1vw,75px);line-height:1.035;letter-spacing:-.073em;font-weight:740;margin:22px 0 21px}.hero h1 em{font:inherit;color:var(--green)}.hero-description{font-size:clamp(16px,1.45vw,19px);line-height:1.55;letter-spacing:-.015em;max-width:430px}.hero-actions{margin-top:26px;gap:12px}.button{min-height:47px;padding:12px 21px;border-radius:28px;gap:9px;font-size:14px;font-weight:560}.button .icon{width:18px;height:18px}.button.primary{background:var(--blue-button);border-color:transparent;color:#fff}.button.primary:hover{background:#005bbc;box-shadow:0 8px 20px #0066cc33;transform:translateY(-2px)}.button.secondary{border-color:color-mix(in srgb,var(--green) 40%,var(--line));background:var(--surface);color:var(--green)}.button.secondary:hover{background:var(--accent);border-color:var(--green)}.button:active,.counter-button:active,.play-main:active{transform:scale(.97)}.hero-meta{font-size:12px;gap:16px;margin-top:24px}.hero-meta span+span:before{background:var(--green);margin-right:16px}
.product-stage{height:485px;border-radius:34px;isolation:isolate;border:1px solid var(--stage-edge);background:radial-gradient(ellipse at var(--mx,63%) var(--my,40%),var(--stage-glow),transparent 65%),linear-gradient(145deg,var(--surface),var(--stage-bg));overflow:hidden;perspective:1050px;padding-bottom:24px;box-shadow:0 20px 55px #19478316,inset 0 1px 0 #ffffff52;animation:serlo-in .85s var(--ease) .06s both}.product-stage::before{content:"";position:absolute;inset:0;background:linear-gradient(122deg,#fff2,transparent 33%,#58a0ff10 63%,transparent 83%);pointer-events:none}.product-stage .orb{width:430px;height:430px;opacity:.9;background:radial-gradient(circle at center,#85b5ff44,#68a6ff00 66%);transform:translate(10px,-12px)}html[data-theme=dark] .product-stage .orb{opacity:.55}.product-stage .orbit{width:399px;height:399px;border-color:color-mix(in srgb,var(--green) 16%,transparent);box-shadow:0 0 0 25px color-mix(in srgb,var(--green) 3%,transparent),0 0 0 50px color-mix(in srgb,var(--green) 2%,transparent);transform:rotate(-27deg) scaleY(.81)}.product-stage .orbit:before,.product-stage .orbit:after{color:var(--gold);opacity:.8}.product-stage .book,.product-stage:hover .book{width:280px;height:366px;transform:rotateX(calc(8deg + var(--rx,0deg))) rotateY(calc(-20deg + var(--ry,0deg))) rotateZ(-12deg) translateY(-12px);transform-style:preserve-3d;filter:drop-shadow(17px 24px 15px #102e6245);transition:transform .55s var(--ease)}.stage-index{position:absolute;top:23px;left:24px;font-size:9px;letter-spacing:.18em;color:var(--gold);font-weight:650;z-index:1}.stage-index span{margin:0 4px}.art-caption{bottom:22px;gap:1px}.art-caption span{font-size:24px;color:var(--green)}.art-caption small{font-size:10px;letter-spacing:.02em}.reveal-pending{opacity:0;transform:translateY(14px);transition:opacity .65s var(--ease),transform .65s var(--ease)}.reveal-pending.is-visible,.reveal-pending:focus-within{opacity:1;transform:none}.reveal-pending:focus-within{transition:none}@keyframes serlo-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

.daily-card{border-radius:24px;padding:25px 29px;box-shadow:0 4px 20px #162b4a08}.daily-label{font-size:10px;letter-spacing:.09em;color:var(--green)}.daily-label small{font-size:12px;line-height:1.6}.daily-verse .arabic-text{font-size:28px}.daily-verse p:not(.arabic-text){font-size:15px;line-height:1.55}.daily-verse small{font-size:11px}.round-button{width:44px;height:44px}.workspace{padding-top:0;margin-top:78px;scroll-margin-top:0}.section-intro{margin-bottom:29px}.section-intro h2{font-family:inherit;font-weight:720;font-size:clamp(30px,4vw,48px);line-height:1.1;letter-spacing:-.055em}.section-intro p{font-size:16px}.quiet-link{font-size:14px;font-weight:560;min-height:44px}.workspace-note{font-size:12px}.view-tabs{border-radius:14px;gap:5px}.view-tab{font-size:14px;min-height:44px;border-radius:10px;font-weight:560}.view-tab .icon{width:18px;height:18px}.reader-layout{gap:20px}.surah-sidebar,.reader-card{border-radius:23px}.surah-sidebar{top:calc(var(--header-height) + 14px)}.search-box{border-radius:12px;min-height:46px}.search-box input{font-size:16px}.list-caption{font-size:10px;letter-spacing:.1em}.surah-item{min-height:63px}.surah-info strong{font-size:14px;white-space:normal;overflow-wrap:anywhere}.surah-info small,.surah-number{font-size:11px}.surah-arabic{font-size:17px}.reader-card,.ayah-row{scroll-margin-top:0}.reader-heading small{font-size:11px;letter-spacing:.11em}.reader-heading h3{font-family:inherit;font-size:32px;font-weight:670;letter-spacing:-.045em}.surah-subhead,.reader-pagination>span{font-size:13px}.reader-tools .icon-button{width:44px;height:44px;font-size:14px}.ayah-translation,.azkar-meaning{font-size:16px;line-height:1.7}.ayah-top .verse-number{font-size:12px}.bookmark-button{width:44px;height:44px;border-radius:12px;opacity:1}.bookmark-button .icon{width:18px;height:18px}.audio-intro h3,.external-reciter h3{font-family:inherit;font-weight:670;font-size:32px;letter-spacing:-.045em}.audio-intro p,.external-reciter p,.audio-source-note{font-size:14px}.audio-track strong{font-size:15px}.audio-track small{font-size:12px}.external-reciter{border-radius:22px}.azkar-tab{font-size:14px;min-height:44px}.azkar-progress{font-size:13px}.azkar-card{border-radius:22px}.azkar-category,.azkar-note,.azkar-footer a{font-size:12px}.azkar-card h3{font-size:20px;font-weight:650}.counter-button{min-height:44px;font-size:14px;border-radius:12px}.about-item h3{font-size:16px}.about-item p,.footer-links button,.footer-main p{font-size:13px}.footer-bottom{font-size:11px}.footer-links button{min-height:44px}.footer-arabic{color:var(--green)}

.audio-player{border-radius:22px;background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:saturate(165%) blur(24px);-webkit-backdrop-filter:saturate(165%) blur(24px);box-shadow:var(--shadow)}.player-cover{background:linear-gradient(150deg,#3c95ff,#005bc9);color:#fff}.player-info strong{font-size:14px}.player-info small,.player-info .player-status,.player-progress>span{font-size:11px}.player-controls>.icon-button,.play-main{width:44px;height:44px}.play-main{background:var(--blue-button);color:#fff}.player-options select{width:61px;min-height:44px;font-size:12px}.player-options .icon-button{width:44px;height:44px}.player-progress input{min-height:26px;accent-color:var(--blue-button)}.modal{border-radius:25px}.modal h2{font-family:inherit;font-weight:670;font-size:28px}.modal .close-button{width:44px;height:44px}.modal p{font-size:15px;line-height:1.55}.toast{font-size:14px}

@media(max-width:1100px){main,.nav-shell,footer{width:calc(100% - 54px)}.hero{gap:25px;min-height:520px}.hero h1{font-size:clamp(44px,5.25vw,61px)}.product-stage{height:425px}.product-stage .book,.product-stage:hover .book{width:241px;height:321px}.product-stage .orbit,.product-stage .orb{width:335px;height:335px}.daily-card{grid-template-columns:190px 1fr 44px}.reader-layout{grid-template-columns:250px minmax(0,1fr)}.player-info{width:185px}.audio-player{gap:13px}.player-controls{gap:2px}}
@media(max-width:760px){
  :root{--header-height:62px}html{scroll-padding-top:calc(var(--header-height) + 13px);scroll-padding-bottom:calc(var(--dock-height) + env(safe-area-inset-bottom) + 13px)}main,.nav-shell,footer{width:calc(100% - 32px)}.nav-shell{height:var(--header-height);align-items:center;align-content:center;padding:0;gap:0;flex-wrap:nowrap}.brand-name{font-size:25px}.site-header nav{display:none}.header-actions{gap:5px}.reading-button{width:44px;height:44px;padding:0;justify-content:center}.reading-button span{display:none}.reading-button .icon{width:20px;height:20px}.header-actions .icon-button{width:44px;height:44px}
  .hero{grid-template-columns:1fr;min-height:auto;gap:22px;padding:33px 0 22px}.hero-content{text-align:center}.hero .eyebrow{font-size:10px}.hero h1{font-size:clamp(39px,10.9vw,64px);letter-spacing:-.069em;margin:16px 0 13px}.hero-description{font-size:16px;max-width:390px;margin-inline:auto}.hero-actions{margin-top:19px;gap:9px}.button,.hero-actions .button{font-size:14px;padding:11px 15px;min-height:46px}.hero-meta{font-size:12px;margin-top:17px}.product-stage{height:clamp(273px,71vw,361px);margin:0;border-radius:26px;padding-bottom:14px}.product-stage .orb,.product-stage .orbit{width:clamp(225px,63vw,318px);height:clamp(225px,63vw,318px)}.stage-index{top:14px;left:16px;font-size:8px}.art-caption{bottom:12px}.art-caption span{font-size:21px}.art-caption small{font-size:9px}
  .daily-card{padding:17px 16px;grid-template-columns:1fr 44px;border-radius:19px}.daily-label{font-size:9px;letter-spacing:.05em}.daily-label small{font-size:11px}.daily-verse .arabic-text{font-size:24px}.daily-verse p:not(.arabic-text){font-size:14px}.daily-verse small{font-size:11px}.daily-card .round-button{width:44px;height:44px}.workspace{margin-top:49px}.section-intro h2{font-size:32px}.section-intro p{font-size:14px}.section-intro .eyebrow{font-size:10px}.section-intro>.quiet-link{width:44px;height:44px;margin-top:22px;font-size:0}.view-tab{font-size:13px;gap:5px;padding:8px 5px}.reader-layout{grid-template-columns:minmax(0,1fr)}.reader-card,.surah-sidebar{border-radius:19px}.reader-card{padding:20px 16px;scroll-margin-top:0}.reader-heading h3{font-size:clamp(23px,6.4vw,31px);overflow-wrap:anywhere}.reader-heading small{font-size:9px}.reader-tools .icon-button,.reader-tools .round-button{width:44px;height:44px;margin:0}.reader-tools{gap:0}.surah-item{gap:10px}.surah-info strong{font-size:14px}.surah-info small{font-size:11px}.ayah-translation,.azkar-meaning{font-size:16px}.reader-pagination .quiet-link{font-size:12px}.reader-pagination>span{font-size:11px}.audio-intro h3{font-size:27px}.audio-intro p,.audio-source-note{font-size:14px}.azkar-top{gap:9px}.azkar-tab{font-size:13px;padding:8px 10px}.azkar-card{padding:19px;border-radius:19px}.azkar-card h3{font-size:19px}.azkar-progress,.azkar-footer a{font-size:12px}.about-strip{margin:40px 0 30px}.footer-bottom{font-size:11px}footer{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
  .mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:0;left:0;right:0;bottom:0;width:100%;height:calc(var(--dock-height) + env(safe-area-inset-bottom));padding:3px max(7px,env(safe-area-inset-right)) calc(3px + env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));z-index:42;background:color-mix(in srgb,var(--surface) 91%,transparent);backdrop-filter:saturate(175%) blur(24px);-webkit-backdrop-filter:saturate(175%) blur(24px);border-top:1px solid var(--line)}.mobile-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;min-width:0;border-radius:12px;font-size:11px;line-height:1.2;color:var(--muted);font-weight:560}.mobile-link .icon{width:21px;height:21px}.mobile-link.active{background:var(--accent);color:var(--green)}
  .audio-player{bottom:calc(var(--dock-height) + 8px + env(safe-area-inset-bottom));width:calc(100% - 20px);padding:8px 10px;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 7px;border-radius:17px}.player-info{width:auto;max-width:none;min-width:0;gap:7px}.player-info strong{font-size:13px}.player-info small,.player-info .player-status{font-size:10px}.player-cover{width:34px;height:34px}.player-controls{gap:0}.player-controls>.icon-button,.play-main{width:44px;height:44px}.player-progress{position:static;height:auto;min-width:0;gap:6px}.player-progress>span{font-size:10px;min-width:22px}.player-progress input{height:22px;min-height:0}.player-options{display:flex;margin:0;justify-content:flex-end}.player-options select{width:56px;min-height:44px;font-size:12px}.player-options>.icon-button{display:inline-flex;width:44px;height:44px}.player-options>.icon-button .icon{width:16px;height:16px}.toast{max-width:calc(100% - 22px);width:max-content}.modal{max-height:calc(100dvh - 44px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
  body:not([data-view=audio]):not([data-audio-active=true]) .audio-player{display:none}body[data-view=audio]:has(.audio-player:not([hidden])) footer,body[data-audio-active=true] footer{padding-bottom:calc(194px + env(safe-area-inset-bottom))}
}
@media(max-width:380px){.hero h1{font-size:clamp(34px,11vw,41px)}.hero-actions .button{font-size:13px}.hero-meta{font-size:11px}.daily-label small{margin-left:auto}.player-info .player-cover{display:none}.azkar-tab{font-size:12px;padding:7px 8px}.view-tab .icon{width:16px;height:16px}.view-tab{font-size:12px}.reader-card{padding-inline:13px}.reader-tools .round-button,.reader-tools .icon-button{width:42px}.reader-heading h3{font-size:22px}}
@media(max-width:760px){.site-header{padding-top:env(safe-area-inset-top)}html{scroll-padding-top:calc(var(--header-height) + 13px + env(safe-area-inset-top))}.product-stage .book,.product-stage:hover .book{width:clamp(152px,43vw,213px);height:clamp(196px,53vw,275px);transform:rotateX(7deg) rotateY(-16deg) rotateZ(-11deg) translateY(-17px)}.toast{bottom:calc(var(--dock-height) + 116px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.hero-content,.product-stage{animation:none}.reveal-pending,.reveal-pending.is-visible{opacity:1;transform:none}}

/* Keep the active selection and focused controls clear of fixed UI. */
.surah-item:focus-visible {
  outline-offset: -3px;
}

.modal {
  overscroll-behavior: contain;
}

@media (min-width: 761px) {
  .surah-list {
    max-height: clamp(110px, calc(100dvh - var(--header-height) - 212px), 570px);
  }
}

@media (max-width: 760px) {
  html:has(body[data-view=audio] .audio-player:not([hidden]), body[data-audio-active=true]) {
    scroll-padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom) + 115px);
  }
}
