/* "Memorizing the Quran" guide pages and the 404 page. Loaded after styles.css and legal.css (the shared
   document layout: transparent header with a thin line, 680px column, serif headings, sans body). */

/* Header: transparent over the cream page, thin line below, the homepage links in petrol (2026-11-17) */
.hf-guide .hf-header{position:sticky;top:0;background:rgba(247,246,240,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.hf-guide .hf-header .hf-brand{color:var(--petrol)}
.hf-guide .hf-nav a{color:var(--deep)}
.hf-guide .hf-nav a:hover,.hf-guide .hf-nav a[aria-current]{color:var(--teal)}
.hf-guide .hf-header-cta{border-color:rgba(18,61,67,.28);color:var(--petrol)}
.hf-guide .hf-header-cta:hover{background:var(--petrol);border-color:var(--petrol);color:#fff}
.hf-guide .hf-header :focus-visible{outline-color:var(--teal)}
.gd-crumbs{font:500 12px/1.4 var(--hf-sans);letter-spacing:.14em;text-transform:uppercase}
.gd-crumbs a{color:var(--teal)}
.gd-crumbs a:hover{color:var(--petrol)}
.gd-article h1{font-size:clamp(36px,3.6vw,54px);text-wrap:balance;-webkit-hyphens:manual;hyphens:manual}
.gd-article h1,.gd-list-title{white-space:normal}
.gd-intro{border-top:0!important;padding-top:0!important}
.hf-doc-body h2{text-wrap:balance}

/* Call to action at the end of a guide: dark ground, like the homepage's download screen. */
.gd-cta{margin-top:64px;padding:40px 36px 36px;border-radius:4px;background:#0B2F39;color:#fff}
.gd-cta .hf-label{color:#9BD3CA}
.gd-cta h2{margin-top:12px;font:400 32px/1.15 var(--hf-serif);color:#fff}
.gd-cta h2 em{font-style:italic;color:#9BD3CA}
.gd-cta>p:not(.hf-label):not(.hf-code){margin-top:14px;font:400 17px/1.55 var(--hf-sans);color:rgba(255,255,255,.85)}
.gd-cta .hf-stores{margin-top:26px}

/* Guide index */
.gd-list{margin-top:48px;border-top:1px solid var(--line)}
.gd-list a{display:grid;gap:6px;padding:26px 0;border-bottom:1px solid var(--line)}
.gd-list-title{font:400 26px/1.25 var(--hf-serif);color:var(--petrol);transition:color .3s}
.gd-list a:hover .gd-list-title{color:var(--teal)}

.gd-list-meta{font:400 13px/1.4 var(--hf-sans);color:var(--muted)}

/* 404 */
.gd-404 h1 em{font-style:italic;color:var(--teal)}
.gd-404-links{margin-top:36px;display:grid;gap:12px;font:400 17px/1.5 var(--hf-sans)}
.gd-404-links a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.gd-404-links a:hover{color:var(--petrol)}

@media (max-width:959px){
 .gd-cta{margin-top:48px;padding:32px 22px 28px}
 .gd-cta h2{font-size:27px}
 .gd-list-title{font-size:22px}
}

/* Blog cards on the hub (Orhan's model, 17 Nov): wide horizontal card, illustration on its light-blue ground on the
   left, text on white on the right; the whole card is one link. Phones stack the picture on top. */
.gd-hub{max-width:none}
.gd-hub>:not(.gd-list){max-width:680px}
.gd-list{border-top:0;display:grid;gap:28px;max-width:1100px}
.gd-list a.gd-card{display:grid;grid-template-columns:minmax(0,37fr) minmax(0,63fr);padding:0;border:1px solid #C9DCE0;border-radius:24px;overflow:hidden;
 background:var(--white);transition:transform .45s cubic-bezier(.22,.8,.2,1),box-shadow .45s,border-color .3s}
.gd-card-img{display:block;overflow:hidden;background:#DCF3FE}
.gd-card-img img{display:block;width:100%;height:100%;min-height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.22,.8,.2,1)}
.gd-card-body{display:flex;flex-direction:column;justify-content:center;gap:0;padding:44px 56px 44px 64px}
.gd-card .gd-list-meta{font:500 16px/1.3 var(--hf-sans);color:var(--teal)}
.gd-card .gd-list-title{margin-top:14px;font:400 clamp(30px,3vw,42px)/1.08 var(--hf-serif);letter-spacing:-.01em;color:var(--petrol);text-wrap:balance}

.gd-card-more{display:inline-flex;align-items:center;gap:10px;margin-top:28px;font:500 18px/1 var(--hf-sans);color:var(--teal)}
.gd-card-more svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .45s cubic-bezier(.22,.8,.2,1)}
.gd-list a.gd-card:hover{transform:translateY(-4px);border-color:#AFCBD1;box-shadow:0 22px 44px -22px rgba(18,61,67,.3)}
.gd-card:hover .gd-list-title{color:var(--petrol)}
.gd-card:hover .gd-card-img img{transform:scale(1.03)}
.gd-card:hover .gd-card-more svg{transform:translateX(5px)}
.gd-card:focus-visible{outline:2px solid var(--teal);outline-offset:4px}
@media (max-width:860px){
 .gd-list a.gd-card{grid-template-columns:1fr;border-radius:18px}
 .gd-card-img{aspect-ratio:3/2}
 .gd-card-body{padding:24px 22px 26px}
 .gd-card .gd-list-meta{font-size:14px}
 .gd-card .gd-list-title{margin-top:10px;font-size:28px}
 
 .gd-card-more{margin-top:20px;font-size:16px}
}

/* Article picture under the lead */
.gd-hero{margin:36px 0 0}
.gd-hero img{display:block;width:100%;height:auto;border-radius:18px;background:#DCF3FE}

/* Footer: links and company line on the left, store badges bottom right */
.gd-foot-row{display:flex;align-items:flex-end;justify-content:space-between;gap:32px 48px}
.gd-foot-info p{max-width:560px}
.gd-foot-stores{display:grid;justify-items:end;gap:10px;flex-shrink:0}
.gd-foot-stores .hf-store img{height:44px}
.gd-foot-stores .hf-store:focus-visible{outline-color:var(--petrol)}
.gd-foot-stores .hf-code{margin:0;font-size:13px;color:var(--deep)}

@media (max-width:760px){
 .gd-foot-row{flex-direction:column;align-items:flex-start}
 .gd-foot-stores{justify-items:start}
 .gd-hero{margin-top:28px}
 .gd-hero img{border-radius:14px}
}
@media (prefers-reduced-motion:reduce){.gd-list a.gd-card,.gd-card-img img,.gd-card-more svg{transition:none}.gd-list a.gd-card:hover{transform:none}}

/* Article v3 (17 Nov): download line after "How Hafidh App puts these methods into practice", small Sources list */
.hf-doc-body .gd-inline-cta{margin-top:24px;padding:4px 0 4px 20px;border-left:2px solid var(--teal);color:var(--petrol)}
.hf-doc-body .gd-inline-cta strong{display:block;margin-bottom:4px;font:italic 400 22px/1.35 var(--hf-serif);color:var(--petrol)}
.hf-doc-body ul.gd-sources{list-style:none;padding-left:0;font-size:14.5px;line-height:1.55;color:var(--muted)}
.hf-doc-body ul.gd-sources li+li{margin-top:4px}
.gd-saw{font-size:1.4em;line-height:0;vertical-align:-.08em}

/* 404 drawing (Orhan 18 Nov): right of the text on desktop, above the title on phones */
.gd-404-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,380px);align-items:center;gap:48px}
.gd-404-grid .hf-doc-col{grid-row:1;grid-column:1}
.gd-404-art{grid-row:1;grid-column:2;margin:0}
.gd-404-art img{display:block;width:100%;height:auto}
@media (max-width:760px){
 .gd-404-grid{grid-template-columns:1fr;gap:8px}
 .gd-404-art{grid-row:1;grid-column:1;width:170px}
 .gd-404-grid .hf-doc-col{grid-row:2}
 .gd-404 h1{margin-top:16px}
}
