.learn-page { background: var(--paper); --focus-color: #354126; }
.learn-page :is(.learn-hero,.dark-section,.site-header,.site-footer,.learn-footer) { --focus-color: var(--gold); }
.practice-selector { max-width: 720px; margin: 0 auto 2.75rem; padding: 1.5rem 1.75rem; border: 1px solid rgba(195,161,95,.26); background: rgba(116,122,91,.09); scroll-margin-top: 7rem; }
.practice-selector fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.practice-selector legend { width: 100%; padding: 0; margin-bottom: 1rem; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.practice-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: 410px; margin: 0 auto; }
.practice-option { position: relative; cursor: pointer; min-width: 0; }
.practice-option input { position: absolute; inset-inline-start: 50%; top: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; }
.practice-option > span { display: flex; justify-content: center; align-items: center; gap: .6rem; min-height: 3.75rem; padding: .5rem 1rem; border: 1px solid var(--line-light); color: #c4c5b8; background: rgba(116,122,91,.05); transition: background .18s,border-color .18s,color .18s; }
.practice-option svg { width: 32px; height: 32px; flex-shrink: 0; }
.practice-option strong { font-size: .95rem; font-weight: 550; }
.practice-option input:checked + span { background: #c3a15f; color: #202319; border-color: #c3a15f; }
.practice-option:hover > span { border-color: #c3a15f; }
.practice-option input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 4px; }
.practice-hint { max-width: 620px; margin: 1rem auto .5rem; color: #c4c5b8; font-size: .8rem; line-height: 1.75; }
.practice-saved { margin: 0; color: #a5a99a; font-size: .69rem; line-height: 1.65; }
.practice-context { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem .75rem; margin: 0 auto 1.5rem; font-size: .75rem; line-height: 1.7; color: #646a51; }
.practice-context strong { font-weight: 550; }
.practice-context a { font-size: .68rem; color: inherit; text-underline-offset: 4px; }
.practice-context-dot { width: 5px; height: 5px; border-radius: 50%; background: #8b7745; }
.dark-section .practice-context { color: #c7ccb5; }
.practice-validity { max-width: 770px; margin: 1.5rem auto 0; text-align: center; }
.practice-validity p { margin: 0; font-size: .76rem; line-height: 1.85; color: #626851; }
.practice-validity a { margin-top: .4rem; font-size: .68rem; }
.practice-source-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; }
.women-preparation { margin: 2.5rem 0 0; padding: 2rem; background: #d9dccd; border: 1px solid #b5bda1; }
.women-preparation[hidden] { display: none; }
.women-preparation-heading { max-width: 700px; text-align: center; margin: 0 auto 1.5rem; }
.women-preparation-heading .eyebrow { font-size: .68rem; color: #656e46; }
.women-preparation-heading h3 { font: 400 clamp(1.8rem,3vw,2.6rem)/1.15 var(--display-font); letter-spacing: -.025em; margin: .65rem 0 .75rem; }
.women-preparation-heading p { font-size: .87rem; line-height: 1.8; color: #505942; }
.women-prep-cards { display: grid; gap: .65rem; }
.women-prep-card { border: 1px solid #adb69a; background: rgba(238,232,218,.36); }
.women-prep-card summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 550; font-size: .95rem; }
.women-prep-card summary::-webkit-details-marker { display: none; }
.women-prep-card summary > span:last-child { color: #70794d; transition: transform .2s; }
.women-prep-card[open] summary > span:last-child { transform: rotate(45deg); }
.women-prep-card summary:focus-visible { outline: 2px solid #70794d; outline-offset: -4px; }
.women-prep-body { padding: 0 1.25rem 1.4rem; max-width: 900px; color: #424d35; }
.women-prep-body > p { font-size: .9rem; line-height: 1.9; margin: .6rem 0; }
.women-prep-body > .learn-note { font-size: .8rem; color: #58634a; }
.ghusl-steps { padding-inline-start: 1.4rem; margin: 1.25rem 0; }
.ghusl-steps li { padding-inline-start: .4rem; margin: 0 0 1rem; font-size: .9rem; line-height: 1.9; }
.ghusl-steps li::marker { color: #778051; font-weight: 600; }
@media(max-width:600px) { .practice-selector { padding: 1.25rem 1rem; margin-bottom: 2rem; } .practice-option > span { padding: .6rem .45rem; } .practice-option strong { font-size: .85rem; } .women-preparation { padding: 1.35rem 1rem; } .women-prep-card summary { padding: 1rem; font-size: .86rem; } .women-prep-body { padding: 0 1rem 1.25rem; } }
.learn-page main { overflow: clip; }
.learn-page section[id] { scroll-margin-top: 6.25rem; }
.learn-wrap { width: min(var(--max), calc(100% - 2 * var(--pad))); margin-inline: auto; }
.learn-hero { position: relative; padding: 8rem 0 4.5rem; background: var(--ink); color: var(--cream); text-align: center; }
.learn-orbit { position: absolute; width: 52rem; height: 52rem; border: 1px solid rgba(195,161,95,.09); border-radius: 50%; top: -13rem; left: 50%; transform: translateX(-50%); pointer-events: none; }
.learn-hero .learn-wrap { position: relative; }
.breadcrumb { display: inline-flex; gap: .6rem; align-items: center; color: #b4b3a5; text-decoration: none; font-size: .75rem; margin-bottom: 2.75rem; }
.breadcrumb:hover { color: var(--gold); }
.center-eyebrow { justify-content: center; }
.learn-hero .eyebrow { color: var(--gold); margin: 0 0 1rem; }
.learn-hero h1 { font: 400 clamp(3rem,6.4vw,6.5rem)/1.06 var(--display-font); letter-spacing: -.045em; margin: 0; }
.learn-hero h1 > span, .learn-hero h1 > em { display: block; }
.learn-hero h1 em { font-weight: 400; color: var(--gold); }
.learn-lead { max-width: 660px; margin: 1.75rem auto 2.75rem; color: #c4c3b7; font-size: 1.05rem; line-height: 1.8; }
.topic-prompt { margin-bottom: 1rem; color: #a4a696; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.topic-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: .65rem; max-width: 1050px; margin-inline: auto; }
.topic-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 164px; padding: 1.4rem .8rem 1.2rem; color: var(--cream); background: rgba(116,122,91,.08); border: 1px solid var(--line-light); text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.topic-card:hover { background: rgba(116,122,91,.18); border-color: var(--gold); transform: translateY(-3px); }
.learn-icon { width: 40px; height: 40px; flex-shrink: 0; color: var(--gold); }
.topic-card strong { font-size: .9rem; font-weight: 550; margin-top: .8rem; }
.topic-card > span[data-learn] { font-size: .65rem; margin-top: .3rem; color: #aeb1a1; }
.topic-arrow { position: absolute; top: .4rem; right: .65rem; color: var(--gold); font-size: .8rem; }
.scope-note { max-width: 780px; margin: 2rem auto 0; color: #aaaC9e; font-size: .72rem; line-height: 1.8; }
.learn-section { padding: clamp(3.75rem,7vw,6.5rem) 0; }
.paper-section { background: var(--paper); color: var(--ink); }
.dark-section { background: var(--ink-soft); color: var(--cream); }
.olive-section { background: #c8cbbb; color: var(--ink); }
.center-heading { text-align: center; max-width: 800px; margin: 0 auto 2.75rem; }
.center-heading .eyebrow, .path-intro .eyebrow { margin-bottom: 1.1rem; color: #697049; }
.dark-section .eyebrow { color: var(--gold); }
.center-heading h2, .path-intro h2 { font: 400 clamp(2.35rem,4.6vw,4.5rem)/1.08 var(--display-font); letter-spacing: -.035em; margin: 0 0 1.5rem; text-wrap: balance; }
.center-heading > p:not(.eyebrow) { max-width: 720px; margin: .8rem auto; line-height: 1.8; }
.center-heading .learn-note { font-size: .8rem; color: #686c5d; }
.dark-section .center-heading > p:not(.eyebrow) { color: #c1c5b4; }
.prep-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.prep-card { padding: 1.65rem 1.35rem; border-top: 1px solid var(--line-dark); }
.prep-card .learn-icon { color: #767a55; margin: 0 0 .7rem; }
.prep-card h3 { font: 400 1.55rem/1.2 var(--display-font); margin: 0 0 .8rem; }
.prep-card p { margin: 0; font-size: .93rem; line-height: 1.85; color: #565b4b; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; text-decoration-thickness: 1px; text-underline-offset: 5px; margin-top: 1rem; }
.text-link:hover { color: #777c51; }
.wudu-panel { margin-top: 2.25rem; padding: 2.4rem; border: 1px solid var(--line-dark); background: rgba(238,232,218,.3); }
.wudu-intro { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; max-width: 890px; margin-bottom: 2.2rem; }
.wudu-intro .learn-icon { color: #767a55; grid-row: span 2; }
.wudu-intro h3 { margin: 0; font: 400 2rem/1.2 var(--display-font); }
.wudu-intro p { margin: .6rem 0 0; color: #5b604f; font-size: .95rem; line-height: 1.85; }
.wudu-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.wudu-list > li { display: flex; gap: .8rem; border-top: 1px solid var(--line-dark); padding-top: 1.2rem; }
.list-number { color: #8b7745; font: 400 1rem var(--display-font); margin-top: .2rem; }
.wudu-list h4 { margin: 0 0 .4rem; font-size: .95rem; }
.wudu-list p { margin: 0; font-size: .9rem; line-height: 1.8; color: #5b604f; }
.note-pair { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; margin-top: 1.3rem; }
.learn-note { font-size: .78rem; line-height: 1.85; color: #666c5a; }
.back-top { display: block; width: fit-content; margin: 2rem auto 0; color: inherit; opacity: .65; font-size: .72rem; text-decoration: none; }
.back-top:hover { opacity: 1; }
.times-widget { padding: 2rem; border: 1px solid var(--line-light); background: rgba(116,122,91,.07); }
.times-widget label { display: block; margin-bottom: .5rem; color: #c8ccb9; font-size: .73rem; font-weight: 550; }
.times-widget input, .times-widget select { width: 100%; min-width: 0; height: 3rem; padding: .6rem .8rem; border: 1px solid #686e55; border-radius: 0; background: #2f3326; color: var(--cream); font: inherit; font-size: .93rem; color-scheme: dark; }
.times-widget input::placeholder { color: #a9ae99; }
.city-search { display: grid; grid-template-columns: 1fr auto; gap: .65rem; }
.gold-button { display: inline-flex; justify-content: center; align-items: center; gap: .85rem; padding: .75rem 1.3rem; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); text-decoration: none; cursor: pointer; font-size: .8rem; font-weight: 600; }
.gold-button:hover { background: #d0b475; }
.time-options { display: grid; grid-template-columns: .65fr 1fr 1.4fr; gap: 1rem; margin-top: 1.15rem; }
.time-status { min-height: 1.8rem; text-align: center; margin: 1.5rem 0; font-size: .82rem; color: #c8ccb9; }
.time-status.error { color: #efd1a8; }
.location-results { border: 1px solid #555e41; padding: 1rem; margin-top: 1rem; }
.location-results h3 { margin: 0 0 .6rem; font-size: .8rem; font-weight: 500; }
#location-options { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
#location-options button { text-align: start; border: 1px solid var(--line-light); background: #303629; color: var(--cream); padding: .8rem; cursor: pointer; font-size: .8rem; }
#location-options button:hover { border-color: var(--gold); }
#location-options button small { display: block; color: #b3bba1; margin-top: .15rem; }
.time-context { text-align: center; margin: 1.75rem 0 1.4rem; }
.time-context h3 { font: 400 2.1rem var(--display-font); margin: 0; }
.time-context p { font-size: .75rem; margin: .3rem 0 .6rem; color: #bcc4aa; }
.time-context > span { color: var(--gold); text-transform: uppercase; font-size: .65rem; letter-spacing: .1em; }
.times-grid { display: grid; grid-template-columns: repeat(5,1fr); border-block: 1px solid var(--line-light); }
.time-card { text-align: center; padding: 1.6rem .7rem; border-inline-end: 1px solid var(--line-light); }
.time-card:last-child { border-inline-end: 0; }
.time-name { color: var(--gold); font-size: .8rem; }
.time-card > strong { display: block; font: 400 clamp(1.7rem,3vw,2.7rem) var(--display-font); margin: .5rem 0; white-space: nowrap; }
.rakah { margin: .5rem 0; font-size: .65rem; color: #c3c8b3; }
.rakah > span:first-child { font-size: .9rem; color: var(--cream); }
.time-explain { font-size: .69rem; line-height: 1.7; color: #b7bfaa; margin-bottom: 0; }
.sunrise { text-align: center; font-size: .75rem; color: var(--gold); margin: 1rem 0; }
.widget-note { color: #c0c6b3; font-size: .77rem; line-height: 1.8; margin: 1.6rem 0 .3rem; }
.time-data-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1.75rem; }
.dark-section .text-link:hover { color: var(--gold); }
.privacy-note { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-light); color: #aab29b; font-size: .68rem; line-height: 1.8; }
.units-note { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; max-width: 1000px; margin: 1.7rem auto 0; font-size: .8rem; color: #c0c6b3; }
.units-note p { margin: 0; }
.dark-section .muted { color: #aab39d; }
.prayer-stepper { border: 1px solid var(--line-dark); background: rgba(238,232,218,.25); }
.step-nav { display: block; border-bottom: 1px solid var(--line-dark); }
.step-nav button { min-width: 0; padding: 1rem .45rem; text-align: center; font: inherit; font-size: .63rem; line-height: 1.45; color: #60674f; border: 0; border-inline-end: 1px solid var(--line-dark); background: transparent; cursor: pointer; }
.step-nav button:last-child { border-inline-end: 0; }
.step-nav button > span:first-child { display: block; color: #8a794c; font: 400 1.25rem var(--display-font); margin-bottom: .4rem; }
.step-nav button[aria-pressed="true"] { background: #747a5b; color: var(--cream); }
.step-nav button[aria-pressed="true"] > span:first-child { color: #e8cd91; }
.step-nav button:hover { background: #c9cfba; color: var(--ink); }
.step-stage { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 470px; }
.pose-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 2rem 1rem; background: #d5d9c8; border-inline-end: 1px solid var(--line-dark); }
.pose-counter { position: absolute; top: 1.2rem; inset-inline-start: 1.3rem; color: #7a8065; font-size: .65rem; letter-spacing: .1em; direction: ltr; }
.pose-panel img { width: min(100%,420px); height: auto; }
.pose-rail { display: flex; gap: .5rem; margin-top: .6rem; }
.pose-rail span { width: 20px; height: 1px; background: #8c9472; }
.step-copy { padding: 2.2rem 2.5rem; }
.step-kicker { text-transform: uppercase; font-size: .65rem; letter-spacing: .09em; color: #787d57; margin: 0 0 .6rem; }
.step-copy h3 { font: 400 2.1rem/1.12 var(--display-font); margin: 0 0 1.4rem; }
.step-copy h4 { margin: 0 0 .45rem; font-size: .68rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #6c744f; }
.step-copy p:not(.step-kicker) { font-size: .95rem; line-height: 1.85; margin: 0; }
.step-say { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); }
.step-copy p.step-note { color: #697057; font-size: .75rem; margin-top: 1.4rem; }
.step-controls { display: flex; justify-content: space-between; border-top: 1px solid var(--line-dark); padding: .8rem 1.3rem; }
.step-controls button { display: flex; align-items: center; gap: .65rem; background: transparent; border: 0; color: #50583c; padding: .5rem; font-size: .8rem; cursor: pointer; }
.step-controls button:disabled { opacity: .4; cursor: default; }
.extend-note { display: grid; grid-template-columns: auto 1fr; gap: 2rem; padding: 2.25rem 0 0; max-width: 1000px; margin: auto; }
.extend-count { font: 400 2.8rem var(--display-font); color: #8d8058; direction: ltr; }
.extend-note h3 { font: 400 1.6rem var(--display-font); margin: 0 0 .7rem; }
.extend-note p { font-size: .95rem; line-height: 1.85; margin: .5rem 0; }
.extend-note .learn-note { font-size: .75rem; }
.texts-layout { display: grid; grid-template-columns: .75fr 1.8fr; gap: 3rem; align-items: start; }
.texts-aside { position: sticky; top: 7rem; }
.texts-aside .learn-icon { color: #717954; width: 50px; height: 50px; }
.texts-aside h3 { font: 400 2.5rem/1.08 var(--display-font); margin: 1.1rem 0; }
.texts-aside p { color: #555e45; font-size: .95rem; line-height: 1.85; }
.surah-stack { display: flex; flex-direction: column; gap: 1rem; }
.surah-card { background: rgba(238,232,218,.5); border: 1px solid var(--line-dark); }
.surah-heading { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.6rem; gap: 1rem; }
.surah-id { font: 400 .8rem var(--display-font); color: #7e815d; }
.surah-heading h4 { font: 400 1.85rem var(--display-font); margin: .2rem 0; }
.surah-heading p { font-size: .73rem; color: #5c664a; margin: .4rem 0 0; }
.audio-button { display: flex; align-items: center; gap: .5rem; border: 1px solid #8b9578; background: transparent; padding: .65rem .8rem; font-size: .7rem; cursor: pointer; color: #414b32; flex-shrink: 0; }
.audio-button > span:first-child { font-size: 1.2rem; line-height: 1; }
.audio-button:hover { background: #c5ceb3; }
.audio-slot { padding: 0 1.6rem 1rem; }
.audio-slot audio { display: block; width: 100%; height: 38px; }
.audio-slot p, .audio-slot .text-link { font-size: .7rem; }
.surah-text > summary { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.6rem; cursor: pointer; border-top: 1px solid var(--line-dark); font-size: .75rem; color: #596445; }
.surah-text[open] > summary { border-bottom: 1px solid var(--line-dark); }
.surah-text > summary::-webkit-details-marker, .dua-card > summary::-webkit-details-marker { display: none; }
.verse-labels { display: flex; justify-content: space-between; padding: 1.25rem 1.6rem 0; color: #737a5e; font-size: .65rem; }
.verse-list { list-style: none; padding: 0 1.6rem; margin: 0; }
.verse-list li { padding: .7rem 0; border-bottom: 1px solid rgba(27,28,22,.09); }
.arabic { font-family: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", serif; font-size: 1.75rem; font-weight: 400; line-height: 2; text-align: right; margin: .3rem 0; letter-spacing: 0; }
.ayah-number { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1px solid #b0b498; border-radius: 50%; font-size: .7rem; font-family: var(--body-font); vertical-align: middle; margin-inline-start: .25rem; color: #5d6749; }
.latin { font-size: .82rem; line-height: 1.9; color: #566148; overflow-wrap: anywhere; }
.verse-list .latin { margin: .3rem 0 0; }
.surah-basmala { margin: .6rem 1.6rem 0; padding: .7rem 0; border-bottom: 1px solid var(--line-dark); text-align: center; }
.surah-basmala .latin { margin: .3rem 0 0; }
.step-reading-body .surah-basmala, .day-reading-body .surah-basmala { margin-inline: 0; }
.meaning-block { padding: 1.4rem 1.6rem .5rem; }
.meaning-block h5, .dua-body h5 { text-transform: uppercase; font-size: .64rem; letter-spacing: .07em; color: #697451; margin: 0 0 .6rem; }
.meaning-block p { margin: 0; font-size: .93rem; line-height: 1.9; color: #47503b; }
.surah-text > .text-link { margin: .75rem 1.6rem 1.5rem; }
.dua-heading { margin: 3rem auto 1.5rem; max-width: 660px; text-align: center; }
.dua-heading h3 { font: 400 2.5rem var(--display-font); margin: 0 0 1rem; }
.dua-heading p { font-size: .95rem; color: #5c644d; }
.dua-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; align-items: start; }
.dua-card { border: 1px solid var(--line-dark); background: rgba(238,232,218,.24); }
.dua-card > summary { display: flex; align-items: center; gap: .85rem; padding: 1rem; list-style: none; cursor: pointer; font-size: .82rem; font-weight: 500; }
.dua-number { color: #7c835f; font: 400 .8rem var(--display-font); }
.expand-symbol { margin-inline-start: auto; font-size: 1rem; color: #80865f; }
details[open] > summary .expand-symbol { transform: rotate(45deg); }
.dua-body { padding: .3rem 1.5rem 1.4rem; border-top: 1px solid var(--line-dark); }
.dua-body .arabic { margin: 1rem 0; font-size: 1.65rem; }
.dua-body p:not(.arabic) { font-size: .9rem; line-height: 1.85; }
.dua-body h5 { margin-top: 1rem; }
.dua-audio-link { text-align: center; margin-top: 1.5rem; }
.learning-path { display: grid; grid-template-columns: .9fr 1.2fr; gap: 5rem; }
.path-intro .eyebrow { font-size: .7rem; }
.path-intro h2 { font-size: clamp(2.5rem,4.5vw,4.25rem); }
.path-intro > p:not(.eyebrow) { font-size: .88rem; color: #5b644b; }
.path-reassurance { font-family: var(--display-font); font-size: 1.45rem !important; color: #777e59 !important; margin-top: 2rem; }
.path-list { padding: 0; margin: 0; list-style: none; }
.path-list li { display: flex; gap: 1.5rem; border-top: 1px solid var(--line-dark); padding: 1.6rem 0; }
.path-number { font: 400 1.4rem var(--display-font); color: #8f7c4a; }
.path-list h3 { font: 400 1.6rem var(--display-font); margin: 0 0 .5rem; }
.path-list p { margin: 0; color: #58604d; font-size: .93rem; line-height: 1.85; }
.learn-sources { padding: 3.5rem 0; background: var(--paper-deep); }
.learn-sources h2 { font: 400 2.35rem var(--display-font); margin: 0 0 1rem; }
.learn-sources .learn-wrap > p { font-size: .8rem; max-width: 850px; line-height: 1.85; color: #5c644f; }
.sources-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem 1.25rem; margin: 1.5rem 0; }
.source-link { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; padding: .8rem 0; font-size: .75rem; border-bottom: 1px solid var(--line-dark); }
.source-link:hover { color: #747a4d; }
.learn-sources p.source-attribution { max-width: none; margin-top: 2rem; font-size: .65rem; color: #656d55; }
.learn-footer { padding: 4.5rem var(--pad) 2rem; background: var(--ink); color: var(--cream); text-align: center; }
.learn-footer .footer-mark { color: var(--gold); width: 3rem; }
.learn-footer h2 { font: 400 clamp(2.5rem,5vw,4.4rem) var(--display-font); margin: 1.5rem 0 .75rem; }
.learn-footer p { color: #b3b9a3; font-size: .93rem; }
.learn-footer .gold-button { margin-top: 1rem; }
.learn-footer p.learn-copyright { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; margin: 3rem 0 0; }
.learn-page :is(a,button,input,select,summary):focus-visible { outline: 2px solid var(--focus-color); outline-offset: 4px; }
html[dir="rtl"] .learn-page :is(.eyebrow,.topic-prompt,.step-kicker,.step-copy h4,.meaning-block h5,.dua-body h5) { letter-spacing: 0; }
@media(max-width:1000px) { .prep-grid { grid-template-columns: repeat(2,1fr); gap: 1rem; }.step-nav { grid-template-columns: repeat(3,1fr); }.step-nav button { display: flex; align-items: center; gap: .5rem; font-size: .72rem; text-align: start; padding: .8rem; border-bottom: 1px solid var(--line-dark); }.step-nav button > span:first-child { margin: 0; font-size: 1rem; }.texts-layout { gap: 2rem; grid-template-columns: .7fr 1.8fr; }.surah-heading { align-items: start; flex-direction: column; }.learning-path { gap: 2.5rem; } }
@media(max-width:720px) { .learn-hero { padding-top: 7rem; }.breadcrumb { margin-bottom: 2rem; }.topic-grid { grid-template-columns: repeat(6,1fr); gap: .5rem; }.topic-card { grid-column: span 2; min-height: 145px; padding: 1rem .45rem; }.topic-card:nth-last-child(2) { grid-column: 2 / span 2; }.topic-card strong { font-size: .8rem; }.topic-card > span[data-learn] { font-size: .6rem; }.topic-card .learn-icon { width: 32px; height: 32px; }.topic-prompt { font-size: .65rem; }.scope-note { font-size: .69rem; }.wudu-panel { padding: 1.4rem; }.wudu-list { grid-template-columns: repeat(2,1fr); gap: 1.5rem; }.note-pair,.units-note { grid-template-columns: 1fr; gap: .4rem; }.times-widget { padding: 1.2rem; }.time-options { grid-template-columns: 1fr 1fr; gap: .8rem; }.time-options > div:last-child { grid-column: 1 / -1; }.city-search { grid-template-columns: 1fr; }.times-grid { grid-template-columns: repeat(6,1fr); }.time-card { grid-column: span 2; padding: 1.2rem .5rem; border-bottom: 1px solid var(--line-light); }.time-card:nth-last-child(2) { grid-column: 2 / span 2; }.time-card:nth-child(3) { border-inline-end: 0; }.time-card:nth-last-child(-n+2) { border-bottom: 0; }.time-explain { font-size: .64rem; }.step-stage { grid-template-columns: 1fr; min-height: auto; }.pose-panel { border-inline-end: 0; border-bottom: 1px solid var(--line-dark); padding: 1.1rem; }.pose-panel img { width: min(100%,320px); }.step-copy { padding: 1.6rem; }.step-copy h3 { font-size: 2rem; }.extend-note { gap: 1rem; }.extend-count { font-size: 2rem; }.texts-layout { grid-template-columns: 1fr; gap: 1.6rem; }.texts-aside { position: static; text-align: center; max-width: 550px; margin-inline: auto; }.texts-aside h3 { font-size: 2rem; }.texts-aside .learn-icon { width: 40px; height: 40px; }.surah-heading { flex-direction: row; align-items: center; }.surah-heading,.surah-text>summary { padding-inline: 1.1rem; }.surah-heading h4 { font-size: 1.6rem; }.audio-button { font-size: .65rem; padding: .6rem; }.verse-list,.verse-labels,.meaning-block { padding-inline: 1.1rem; }.arabic { font-size: 1.6rem; }.dua-grid { grid-template-columns: 1fr; }.learning-path { grid-template-columns: 1fr; gap: 1.7rem; }.sources-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:420px) { .learn-lead { font-size: .93rem; }.prep-grid { grid-template-columns: 1fr; gap: .25rem; }.prep-card { padding: 1.35rem .3rem; }.wudu-list { grid-template-columns: 1fr; gap: 1.1rem; }.wudu-intro { display: block; }.wudu-intro .learn-icon { margin-bottom: .5rem; }.wudu-intro h3 { font-size: 1.6rem; }.time-options { grid-template-columns: 1fr; }.time-options>div:last-child { grid-column: auto; }.step-nav button { font-size: .6rem; padding: .65rem .35rem; }.step-copy { padding: 1.3rem; }.surah-heading { flex-direction: column; align-items: start; }.sources-grid { grid-template-columns: 1fr; }#location-options { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:reduce) { .topic-card { transition: none; }.topic-card:hover { transform: none; } }

/* Clear stages and short action lists keep the existing illustrated walkthrough. */
.wudu-actions { margin: .65rem 0 0; padding-inline-start: 1.15rem; font-size: .9rem; line-height: 1.85; color: #5b604f; }
.wudu-actions li { padding-inline-start: .2rem; margin-bottom: .65rem; }
.wudu-actions li::marker, .step-actions li::marker { color: #82724b; font-weight: 600; }
.example-intro { max-width: 820px; margin: 0 auto 1.7rem; padding: 1.25rem 1.6rem; border-inline-start: 3px solid var(--gold); background: rgba(116,122,91,.07); }
.example-intro h3 { font: 400 clamp(1.5rem,3vw,2rem)/1.2 var(--display-font); margin: 0 0 .7rem; }
.example-intro p { margin: 0; color: #5b604f; font-size: .95rem; line-height: 1.85; }
.step-group { display: grid; grid-template-columns: 135px 1fr; border-bottom: 1px solid var(--line-dark); }
.step-group:last-child { border-bottom: 0; }
.step-group-title { display: flex; align-items: center; margin: 0; padding: .8rem 1rem; font-size: .75rem; font-weight: 600; line-height: 1.6; color: #626b48; background: rgba(116,122,91,.05); border-inline-end: 1px solid var(--line-dark); }
.step-group-buttons { display: grid; grid-template-columns: repeat(var(--step-columns),minmax(0,1fr)); }
.step-nav button { font-size: .71rem; }
.step-phase { display: inline-block; color: #626b48; background: rgba(116,122,91,.1); padding: .3rem .6rem; font-size: .76rem !important; font-weight: 600; margin-bottom: .7rem !important; }
.step-actions { padding-inline-start: 1.2rem; margin: .4rem 0 0; font-size: .95rem; line-height: 1.85; }
.step-actions li { padding-inline-start: .2rem; margin-bottom: .65rem; }
.step-readings { margin-top: 1.25rem; }
.step-reading { margin-top: .5rem; border: 1px solid var(--line-dark); background: rgba(238,232,218,.22); }
.step-reading[hidden] { display: none; }
.step-reading summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; font-size: .82rem; font-weight: 550; line-height: 1.6; cursor: pointer; list-style: none; }
.step-reading summary::-webkit-details-marker { display: none; }
.step-reading[open] summary > span:last-child { transform: rotate(45deg); }
.step-reading-body { padding: .5rem 1rem 1.1rem; border-top: 1px solid var(--line-dark); overflow-wrap: anywhere; }
.step-reading-body h5 { font-size: .65rem; text-transform: uppercase; color: #697451; letter-spacing: .05em; margin: 1.1rem 0 .4rem; }
.step-copy .step-reading-body p.arabic { font-size: 1.6rem; line-height: 2.1; margin: .6rem 0; }
.step-copy .step-reading-body p.latin { font-size: .9rem; line-height: 1.9; }
.step-reading-body .text-link { display: inline-block; margin-top: .8rem; }
.step-reading-body .verse-list { padding: 0; }
@media (max-width:1000px) {
  .step-group { grid-template-columns: 120px 1fr; }
  .step-group-buttons { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .step-group-title { padding: .8rem; }
}
@media (max-width:720px) {
  .step-group { display: block; }
  .step-group-title { border-inline-end: 0; border-bottom: 1px solid var(--line-dark); }
  .example-intro { padding: 1rem; }
  .wudu-list { grid-template-columns: 1fr; }
  .wudu-actions { font-size: .95rem; }
}
@media (max-width:420px) {
  .step-group-buttons { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .step-nav button { font-size: .72rem; }
}

/* Two-view teaching illustrations and self-contained daily prayer reference. */
.topic-grid { grid-template-columns: repeat(6,minmax(0,1fr)); max-width: 1150px; }
.topic-card { min-width: 0; }
.pose-panel { padding: 1.25rem; background: linear-gradient(145deg,#dde0d0,#ccd2bb); }
.pose-toolbar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.pose-counter { position: static; color: #545e42; }
.pose-zoom { display: flex; align-items: center; gap: .45rem; border: 0; border-bottom: 1px solid #7e876a; background: transparent; color: #465037; padding: .4rem 0; font: inherit; font-size: .72rem; cursor: pointer; }
.pose-viewport { width: 100%; position: relative; margin: .6rem 0; }
.pose-panel .pose-viewport img { display: block; width: 100%; height: auto; }
.pose-arrow { position: absolute; top: 49%; transform: translateY(-50%); width: 38px; height: 44px; border: 1px solid #9ca68a; border-radius: 20px; background: #e8ebdef0; color: #425034; font: 300 2.1rem/1 var(--display-font); cursor: pointer; box-shadow: 0 2px 12px #45513512; }
.pose-arrow-prev { left: 0; }
.pose-arrow-next { right: 0; }
.pose-arrow:hover { background: var(--cream); }
.pose-views { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem; width: 100%; }
.pose-views button,.pose-dialog-controls button { padding: .6rem .8rem; border: 1px solid #8b9574; border-radius: 2px; background: transparent; color: #424e32; font: inherit; font-size: .75rem; cursor: pointer; }
.pose-views button[aria-pressed="true"],.pose-dialog-controls button[aria-pressed="true"] { background: #596448; color: #f1eddf; border-color: #596448; }
#pose-view-counter { font-size: .65rem; color: #596448; white-space: nowrap; }
.pose-caption { width: 100%; font-size: .83rem; line-height: 1.8; color: #424b34; margin: 1.2rem 0 .7rem; text-align: center; }
.pose-note { width: 100%; font-size: .7rem; line-height: 1.75; color: #586248; margin: 0; text-align: center; }
.pose-dialog { width: min(840px,94vw); max-height: 94dvh; padding: 1.1rem 1.5rem; border: 1px solid #a2aa8b; background: #dce0ce; color: #39432e; border-radius: 6px; overflow: auto; box-shadow: 0 20px 90px #10130ae6; }
.pose-dialog::backdrop { background: #171d15dc; }
.pose-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pose-dialog-heading h2 { font: 400 1.55rem/1.2 var(--display-font); margin: 0; }
#pose-close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #a2aa8b; border-radius: 50%; background: transparent; color: inherit; font-size: 1.8rem; cursor: pointer; }
#pose-dialog-title { text-align: center; font: 600 .85rem/1.5 var(--body-font); margin: .8rem 0 0; }
#pose-dialog-image { display: block; width: 100%; height: min(65dvh,720px); object-fit: contain; }
#pose-dialog-caption { max-width: 620px; margin: .5rem auto .8rem; font-size: .85rem; line-height: 1.8; text-align: center; }
.pose-dialog-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; }
.day-choices { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .7rem; max-width: 950px; margin: 0 auto 1.7rem; }
.day-choice { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.25rem .7rem .85rem; border: 1px solid #60684a; color: var(--cream); text-decoration: none; background: #303629; border-radius: 3px; }
.day-choice:hover,.day-choice:focus-visible { background: #414b34; border-color: var(--gold); }
.day-choice[aria-current="true"] { background: #465136; border-color: #c3a15f; }
.day-choice-name { font: 400 1.9rem/1.1 var(--display-font); }
.day-choice-units { font-size: .78rem; color: #d0d5bc; }
.day-choice-units strong { color: var(--gold); }
.day-choice > span:last-child { color: var(--gold); font-size: .8rem; }
.day-scope { max-width: 900px; margin: 0 auto 2rem; color: #c0c7ac; font-size: .8rem; line-height: 1.9; text-align: center; }
.day-prayers { max-width: 950px; margin-inline: auto; }
.day-prayer { scroll-margin-top: 100px; border: 1px solid #5c6548; border-radius: 3px; margin-bottom: 1rem; overflow: hidden; }
.day-prayer > summary { display: flex; align-items: center; gap: 1.25rem; padding: 1.3rem 1.6rem; background: #333b2b; list-style: none; cursor: pointer; }
.day-prayer > summary::-webkit-details-marker,.day-reading > summary::-webkit-details-marker { display: none; }
.day-prayer-name { font: 400 2rem/1.1 var(--display-font); min-width: 105px; }
.day-prayer-meta { display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; font-size: .8rem; color: #d1d7c1; }
.day-prayer-meta strong { color: var(--gold); }
.day-expand { margin-inline-start: auto; flex-shrink: 0; color: var(--gold); font-size: 1.1rem; }
.day-prayer[open] > summary .day-expand,.day-reading[open] > summary .day-expand { transform: rotate(45deg); }
.day-prayer-body { padding: 1.5rem clamp(1rem,3vw,2.5rem) 2rem; background: #272e22; }
.day-preparation { padding: 1rem 1.25rem; border-inline-start: 2px solid var(--gold); background: #333a2b; margin-bottom: 2rem; }
.day-preparation h4 { font-size: .8rem; margin: 0 0 .4rem; color: #eee4c9; }
.day-preparation p { font-size: .85rem; line-height: 1.85; margin: 0; color: #d1d7c3; }
.day-unit + .day-unit { margin-top: 2.2rem; padding-top: 1.7rem; border-top: 1px solid #566041; }
.day-unit-heading { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.35rem; }
.day-unit-number { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #899669; border-radius: 50%; color: #e2c58d; font: 400 1.25rem/1 var(--display-font); }
.day-unit-heading h4 { font: 400 1.7rem/1.2 var(--display-font); margin: 0; color: #f0e8d6; }
.day-actions { counter-reset: day-actions; list-style: none; padding: 0; margin: 0; }
.day-action { position: relative; display: grid; grid-template-columns: 2rem minmax(0,1fr); gap: .55rem; padding-bottom: 1.2rem; }
.day-action::before { counter-increment: day-actions; content: counter(day-actions,decimal-leading-zero); color: #c4ad7c; font-size: .67rem; padding-top: .12rem; }
.day-action::after { content: ""; position: absolute; top: 1.5rem; bottom: .15rem; inset-inline-start: .45rem; width: 1px; background: #566043; }
.day-action:last-child::after { display: none; }
.day-action h5 { font-size: .85rem; font-weight: 600; color: #ede5d2; line-height: 1.55; margin: 0 0 .25rem; }
.day-action p { font-size: .85rem; line-height: 1.85; color: #d3dac4; margin: 0; }
.day-action p.day-small-note { margin-top: .5rem; font-size: .78rem; color: #c2cca9; border-inline-start: 2px solid #a38e5d; padding-inline-start: .7rem; }
.day-action[data-day-action="firstSit"] h5,.day-action[data-day-action="finalSit"] h5,.day-action[data-day-action="salam"] h5 { color: #e6c78d; }
.day-reading { margin-top: .55rem; border: 1px solid #586344; border-radius: 3px; background: #333b2c; }
.day-reading summary { display: flex; align-items: center; gap: .5rem; list-style: none; padding: .6rem .85rem; cursor: pointer; color: #e2e6d7; font-size: .8rem; }
.day-reading-body { border-top: 1px solid #586344; padding: .9rem 1rem 1.1rem; background: #30382a; overflow-wrap: anywhere; }
.day-reading-body h6 { color: #c3cfa8; font-size: .67rem; margin: 0 0 .5rem; }
.day-verse-labels { font-size: .67rem; color: #c3cfa8; margin-bottom: .6rem; }
.day-reading-body p.arabic { font-size: 1.65rem; line-height: 2; color: #f2ead7; margin-bottom: .7rem; }
.day-reading-body p.latin { font-size: .87rem; color: #e1dfc8; margin-bottom: .7rem; }
.day-reading-body .verse-list { padding: 0; }
.day-reading-body .text-link { display: inline-block; margin-top: .65rem; color: #d3bd8a; }
.day-complete { display: flex; justify-content: center; align-items: center; gap: .65rem; padding: 1.1rem; margin-top: .8rem; border: 1px solid #77895c; background: #3d4a2e; color: #e5eacb; font-size: .83rem; }
.day-complete > span { color: #d4c690; }
.day-calm { font-size: .85rem; text-align: center; color: #cad3b5; margin: 1.7rem auto .5rem; }
.day-guide-link { display: block; text-align: center; width: fit-content; margin: 1rem auto 0; color: var(--gold); }
.pose-panel button:focus-visible,.pose-dialog button:focus-visible,.day-prayer summary:focus-visible { outline: 2px solid #354126; outline-offset: 4px; }
.day-choice:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
html[dir="rtl"] .day-eyebrow { letter-spacing: 0; }
@media (max-width:1000px) {
  .topic-grid { grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 800px; }
  .pose-panel { padding: 1rem .8rem; }
  .pose-views { gap: .35rem; }
  .pose-views button { font-size: .7rem; padding: .6rem; }
}
@media (max-width:720px) {
  .topic-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .topic-card,.topic-card:nth-last-child(2) { grid-column: auto; }
  .pose-panel { padding: 1.1rem; }
  .pose-viewport { max-width: 480px; }
  .pose-panel .pose-viewport img { width: 100%; }
  .pose-caption,.pose-note { max-width: 520px; }
  .pose-dialog { padding: .8rem; }
  .pose-dialog-heading h2 { font-size: 1.25rem; }
  .day-choices { grid-template-columns: repeat(6,minmax(0,1fr)); gap: .5rem; }
  .day-choice { grid-column: span 2; padding: 1rem .4rem .6rem; }
  .day-choice:nth-last-child(2) { grid-column: 2 / span 2; }
  .day-choice-name { font-size: 1.5rem; }
  .day-choice-units { font-size: .7rem; }
  .day-prayer > summary { gap: .65rem; padding: 1rem; }
  .day-prayer-name { min-width: 75px; font-size: 1.65rem; }
  .day-prayer-meta { font-size: .7rem; }
  .day-prayer-body { padding-inline: .85rem; }
  .day-preparation { padding: .9rem; }
  .day-action { grid-template-columns: 1.6rem minmax(0,1fr); gap: .3rem; }
  .day-reading-body { padding: .7rem; }
  .day-reading-body p.arabic { font-size: 1.4rem; }
}

/* Continue from the Fard reference to the separate beginner categories guide. */
.learn-basics-teaser { padding: 3.5rem 0; background: #343c2b; color: var(--cream); border-block: 1px solid #64704f; }
.learn-basics-teaser .learn-wrap { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.learn-basics-teaser .eyebrow { color: var(--gold); margin: 0 0 1rem; }
.learn-basics-teaser h2 { font: 400 clamp(1.9rem,3.5vw,3rem)/1.15 var(--display-font); margin: 0 0 1rem; }
.learn-basics-teaser p:not(.eyebrow) { max-width: 760px; color: #c2c9b4; font-size: .92rem; line-height: 1.85; margin-bottom: 0; }
@media (max-width: 900px) { .learn-basics-teaser .learn-wrap { grid-template-columns: 1fr; text-align: center; } .learn-basics-teaser .eyebrow { justify-content: center; } .learn-basics-teaser .gold-button { justify-self: center; } }
