.mosque-study{--ink:#163b30;--green:#006348;--soft:#faefdc;--line:#e7d9c3;max-width:650px;margin:0 auto 18px;color:var(--ink);font:16px/1.45 Arial,sans-serif;min-width:0}
.mosque-study *{box-sizing:border-box}
.mosque-study h1,.mosque-study h2,.mosque-study h3,.study-row strong,.study-teacher strong,.study-note-form label{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.025em;color:var(--ink);line-height:1.12}
.mosque-study a{color:var(--green);text-decoration:none}
.mosque-study button,.mosque-study textarea{font:inherit}
.mosque-study button{cursor:pointer}
.mosque-study :is(a,button,summary,textarea):focus-visible{outline:3px solid #7d662a;outline-offset:2px}
.mosque-study h1{font-size:clamp(28px,6vw,39px);margin:0}
.mosque-study h2{font-size:clamp(21px,4.3vw,27px);margin:5px 0 6px}
.mosque-study h3{font-size:21px;margin:16px 0 4px}
.study-heading{padding:8px 0 12px}
.study-heading p{margin:4px 0 0;color:#504d42;font-size:15px}
.study-intro{overflow:hidden;border-radius:14px 14px 0 0;background:#fcf7ee}
.study-intro .study-heading{position:relative;isolation:isolate;padding:16px 14px 10px;min-height:80px;display:flex;flex-direction:column;justify-content:center;background:#fdf8ef}
.study-intro .study-heading::after{content:'';position:absolute;inset:0 0 0 auto;width:25%;background:url('/study-shelf.webp') right bottom/auto 100% no-repeat;mask-image:linear-gradient(to right,transparent,#000 42%);z-index:-1}
.study-intro h1,.study-intro p{max-width:83%}
.study-intro img,.study-craft{display:block;width:100%;height:auto}
.study-list{display:block;padding:0 6px}
.study-row,.study-teacher summary{display:grid;align-items:center;grid-template-columns:42px minmax(0,1fr) 15px;gap:11px}
.study-row{padding:9px 0;min-height:59px;border-bottom:1px solid var(--line)}
.study-row:last-child{border-bottom:0}
.study-row strong,.study-teacher strong{display:block;font-size:21px}
.study-row small,.study-teacher small{display:block;font-size:13px;color:#514b40;line-height:1.35;margin-top:2px}
.study-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#f7e9d3;color:#8b5e29}
.study-row:nth-child(3) .study-icon,.study-teacher .study-icon{background:#e9eddb;color:#56633c}
.study-row>svg,.study-teacher summary>svg{color:#775f3e}
.study-quote{display:grid;gap:6px;position:relative;margin:12px 0 0;padding:13px 15px 13px 27px;background:#f8ecd9;border-radius:14px}
.study-quote::before{content:'';position:absolute;top:15px;bottom:15px;left:13px;width:2px;background:#b77e30}
.study-quote blockquote{margin:0;color:#283427;font:italic 500 clamp(18px,4.1vw,23px)/1.26 Georgia,serif}
.study-quote cite{font:12px/1.4 Arial,sans-serif;color:#504a40}
.study-quote b,.study-link,.study-back{font-size:14px;font-weight:650}
.study-back,.study-link{display:inline-flex;align-items:center;gap:6px;min-height:40px}
.study-back span{font:25px/1 Georgia,serif}
.study-card,.study-note-form{display:block;border:1px solid var(--line);background:#fcf4e7;border-radius:14px;padding:14px 16px;margin:9px 0}
.study-card>small{font-size:12px;color:#745930}
.study-card p,.study-muted{color:#494b40;margin:6px 0;line-height:1.48}
.study-card p svg{vertical-align:-3px}
.study-card .study-link{min-height:34px}
.study-filter,.study-cal-actions,.study-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.mosque-study button,.study-cal-actions button{color:var(--ink);background:#fbf6ec;border:1px solid var(--line);border-radius:10px;padding:7px 12px;min-height:40px}
.mosque-study button[aria-pressed=true],.mosque-study .study-primary{background:#07664b;border-color:#07664b;color:white}
.study-period{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;text-align:center;margin-top:10px;border-top:1px solid var(--line)}
.study-period button{border:0;background:transparent;font-size:25px}
.study-period .study-month{font:700 21px Georgia,serif;text-transform:capitalize}
.study-month span{font:15px Arial,sans-serif;color:#806c45}
.study-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;border-bottom:1px solid var(--line);padding:4px 0 8px}
.study-days button{position:relative;display:grid;place-items:center;border:0;min-width:0;padding:4px 0;background:transparent;min-height:42px}
.study-days small{font-size:12px}.study-days b{font:700 18px Georgia,serif}
.study-days .other-month:not([aria-pressed=true]){color:#736e61}
.study-days .has-lesson::after{content:'';width:4px;height:4px;border-radius:50%;background:currentColor;position:absolute;bottom:1px}
.mosque-study .study-day-title{margin-top:13px}.study-day-title::first-letter{text-transform:uppercase}
.study-cal-actions{justify-content:space-between}.study-cal-actions button{display:flex;align-items:center;gap:5px}
.study-topics{list-style:disc;padding-left:22px;margin:4px 0 12px;color:#41473b}
.study-topics li{padding:5px 0;border-bottom:1px solid var(--line)}.study-topics li::marker{color:#878d60}
.study-craft{border-radius:10px;margin:8px 0}
.study-teacher summary{cursor:pointer;list-style:none;min-height:44px}
.study-teacher summary::-webkit-details-marker{display:none}.study-teacher[open] summary>svg{transform:rotate(90deg)}
.study-actions{margin:6px 0;column-gap:18px}
.study-note-form label{font-size:21px;font-weight:700;display:block}
.study-note-form textarea{display:block;width:100%;border:1px solid #cdbb9e;border-radius:9px;background:#fffefb;padding:11px;margin:9px 0;color:#23372b;resize:vertical}
.study-note-form button+button{margin-left:8px}
.study-note p{white-space:pre-wrap;overflow-wrap:anywhere}.study-status:empty{display:none}
.study-linked-verse{outline:2px solid #838f69;outline-offset:-2px;background:#f3ead8;border-radius:8px;scroll-margin-block:84px}
.jamaat-home a.home-quran-quote{text-decoration:none}
@media(min-width:751px){.mosque-study .study-intro img{max-height:210px;object-fit:cover}.study-list{padding-inline:12px}}
@media(max-width:390px){.study-row{gap:9px}.study-intro .study-heading{padding-left:10px}.study-intro h1{max-width:86%}.study-quote{padding-right:12px}.study-day-title{font-size:21px}}
