/* Naseema's reading room: a few clear collections, followed by bounded pages.
   This layer shares the selected appearance's colours and readable typefaces. */
#page-explore{max-width:1080px;padding-block-end:32px}
#page-explore .explore-heading{padding-block:25px 22px;text-align:start}
#page-explore .explore-heading h1{font:var(--display-weight,500) clamp(36px,4vw,49px)/1.18 var(--serif);letter-spacing:-.025em;color:var(--ink)}
#page-explore .explore-toolbar{flex-direction:row;align-items:center;gap:12px;margin-block:0 24px}
#page-explore .search-box{border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:none}
#page-explore .search-box:focus-within{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-soft)}
#page-explore .search-box input{min-height:52px;font-size:15px}
#page-explore .explore-search-clear{inset-inline-end:5px;top:4px}
#page-explore .explore-hub-heading{margin-block:0 15px;align-items:center}
#page-explore .explore-hub-heading h2{font:500 14px/1.5 var(--sans);color:var(--muted);letter-spacing:0}
#page-explore .explore-hub-heading .text-button{min-height:44px;font-size:13px;color:var(--primary-dark)}

/* Photographs have one generous, unobstructed crop; labels sit on the paper. */
#page-explore .explore-topic-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:27px 24px}
#page-explore .explore-topic{padding:0;gap:11px;border:0;border-radius:4px;background:transparent;box-shadow:none;text-align:start;align-items:stretch;transition:none}
#page-explore .explore-topic:hover{border:0;background:transparent;box-shadow:none}
#page-explore .explore-topic-image{display:block;width:100%;height:auto;aspect-ratio:1.55;object-fit:cover;border:0;border-radius:10px;background:var(--art-bg)}
#page-explore .explore-topic-name{padding-inline:1px;font:var(--display-weight,500) 26px/1.3 var(--serif);min-height:0;text-wrap:balance;color:var(--ink)}
#page-explore .explore-topic:hover .explore-topic-name{color:var(--primary-dark)}
#page-explore .explore-topic:focus-visible{outline:3px solid var(--primary);outline-offset:6px}

/* Tradition is an intentional entrance, distinct from the general collections. */
#page-explore .explore-sections{margin-block:0 27px}
#page-explore .explore-faith-entry{min-height:104px;gap:20px;padding:10px 20px 10px 10px;border:1px solid var(--primary-dark);border-radius:12px;background:var(--primary);color:var(--button-ink);box-shadow:none;text-align:start}
#page-explore .explore-faith-entry img{width:104px;height:82px;border:0;border-radius:6px;object-fit:cover}
#page-explore .faith-entry-copy{gap:6px}
#page-explore .faith-entry-copy strong{font:var(--display-weight,500) 29px/1.2 var(--serif);letter-spacing:-.015em;color:var(--button-ink)}
#page-explore .faith-entry-copy small{font:500 12px/1.5 var(--sans);letter-spacing:0;color:var(--button-ink);opacity:.88}
#page-explore .explore-faith-entry>svg{width:34px;height:34px;padding:7px;border:1px solid currentColor;border-radius:50%;background:transparent;color:var(--button-ink);opacity:.9}
#page-explore .explore-faith-entry:hover{background:var(--primary-dark);border-color:var(--primary-dark);box-shadow:none}
#page-explore .explore-faith-entry:focus-visible{outline:3px solid var(--primary);outline-offset:5px}

/* A short page of stories needs a clear return path, not a second sticky bar. */
#page-explore .explore-context{position:static;margin:0 0 21px;padding:20px 0 17px;background:transparent;border-bottom:1px solid var(--line);z-index:auto}
#page-explore .explore-back{margin:0 0 8px;min-height:44px;font-size:13px;color:var(--primary-dark)}
#page-explore .explore-context-title{gap:18px;align-items:center}
#page-explore #exploreCollectionTitle{font:var(--display-weight,500) 38px/1.2 var(--serif);letter-spacing:-.02em;color:var(--ink)}
#page-explore #changeFaith{max-width:none;min-height:44px;padding:8px 14px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font:600 12px/1.4 var(--sans);color:var(--primary-dark)}
#page-explore .faith-selection-summary{margin-block:11px 0;font-size:13px;line-height:1.7;color:var(--muted)}
#page-explore #typeFilters{flex:1 1 270px;padding:3px;gap:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}
#page-explore #typeFilters button{min-height:44px;border-radius:7px;font-size:14px}
#page-explore #typeFilters button[aria-pressed="true"]{background:var(--surface-raised);color:var(--ink);box-shadow:0 1px 3px #00000008}
#page-explore .explore-story-kind{gap:14px;font-size:13px}
#page-explore .explore-story-kind select{min-height:46px;border-color:var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
#page-explore .collection-heading{margin-block:2px 7px}
#page-explore .collection-heading p{font:500 12px/1.6 var(--sans);color:var(--muted)}
#page-explore .explore-results{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:30px;row-gap:0}
#page-explore .explore-row{grid-template-columns:minmax(0,1fr) 44px;gap:7px;padding:19px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
#page-explore .explore-row:hover{border-bottom-color:var(--line-strong);background:transparent;box-shadow:none}
#page-explore .explore-row-open{grid-template-columns:92px minmax(0,1fr);gap:17px;align-items:center;border-radius:4px}
#page-explore .explore-row-image{width:92px;height:118px;border:0;border-radius:7px;object-fit:cover;background:var(--art-bg)}
#page-explore .explore-row-copy{gap:7px;padding-block:3px}
#page-explore .explore-row-meta{font:500 12px/1.55 var(--sans);color:var(--muted)}
#page-explore .explore-row-title{font:var(--display-weight,500) 26px/1.24 var(--serif);letter-spacing:-.015em;margin:0;color:var(--ink);-webkit-line-clamp:2}
#page-explore .explore-row-excerpt{font:400 14px/1.65 var(--sans);color:var(--muted);-webkit-line-clamp:2}
#page-explore .explore-row-action .save-button{width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--muted)}
#page-explore .explore-row-action .save-button:hover,#page-explore .explore-row-action .save-button[aria-pressed="true"]{background:var(--primary-soft);color:var(--primary-dark)}
#page-explore .explore-row-open:focus-visible,#page-explore .save-button:focus-visible{outline:3px solid var(--primary);outline-offset:4px}
#page-explore .explore-pager{margin-block:22px 0;padding-block:0;border:0;gap:12px}
#page-explore .explore-pager .btn{min-height:46px;padding:11px 15px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--ink);font-size:13px;box-shadow:none}
#page-explore .explore-pager .btn:not(:disabled):hover{background:var(--primary-soft);border-color:var(--primary)}
#page-explore .explore-page-position{font:500 13px/1.6 var(--sans);color:var(--muted)}

/* Six traditions remain visible choices, with source information inside each reading. */
#page-explore .faith-heading{margin-block:5px 17px}
#page-explore .faith-heading h2{font:var(--display-weight,500) 28px/1.3 var(--serif);letter-spacing:-.01em}
#page-explore .faith-choice-grid{gap:17px}
#page-explore .faith-choice{min-height:175px;aspect-ratio:1.55;border-radius:10px;box-shadow:none}
#page-explore .faith-choice[aria-pressed="true"]{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-soft)}
#page-explore .faith-choice img{border-radius:0}
#page-explore .faith-choice-copy{inset:auto 14px 15px;gap:6px}
#page-explore .faith-choice-copy strong{font-size:27px;line-height:1.15}
#page-explore .faith-choice-copy>span{font-size:12px;line-height:1.5}
#page-explore .faith-daily-row{margin-block:22px 17px;padding:16px 0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:transparent;font-size:14px;font-weight:500}
#page-explore #browseFaith{min-height:48px;border-radius:9px;box-shadow:none}

/* Arabic has its own reading rhythm; decorative English sizing never shrinks it. */
html[lang="ar"] #page-explore .explore-heading h1{font:600 36px/1.6 var(--arabic-reading);letter-spacing:0}
html[lang="ar"] #page-explore .explore-topic-name{font:500 22px/1.65 var(--arabic-ui);letter-spacing:0;word-spacing:normal;text-wrap:balance}
html[lang="ar"] #page-explore #exploreCollectionTitle{font:600 33px/1.6 var(--arabic-reading);letter-spacing:0}
html[lang="ar"] #page-explore .search-box input{font:400 18px/1.7 var(--arabic-ui)}
html[lang="ar"] #page-explore .explore-hub-heading h2,html[lang="ar"] #page-explore .explore-hub-heading .text-button{font:500 16px/1.7 var(--arabic-ui)}
html[lang="ar"] #page-explore .explore-back{font:500 17px/1.8 var(--arabic-ui)}
html[lang="ar"] #page-explore .explore-row-copy{gap:5px;padding-block:6px}
html[lang="ar"] #page-explore .explore-row-title{font:600 26px/1.65 var(--arabic-reading);letter-spacing:0;word-spacing:normal;margin:0}
html[lang="ar"] #page-explore .explore-row-excerpt{font:400 21px/1.85 var(--arabic-reading);letter-spacing:0;word-spacing:normal;-webkit-line-clamp:1}
html[lang="ar"] #page-explore .explore-row-meta,html[lang="ar"] #page-explore .collection-heading p,html[lang="ar"] #page-explore .explore-page-position{font:500 15px/1.8 var(--arabic-ui);letter-spacing:0}
html[lang="ar"] #page-explore #typeFilters button,html[lang="ar"] #page-explore .explore-story-kind,html[lang="ar"] #page-explore .explore-pager .btn{font:500 16px/1.8 var(--arabic-ui);letter-spacing:0}

@media(max-width:850px){
  #page-explore .explore-results{grid-template-columns:1fr}
  #page-explore .explore-row-open{grid-template-columns:100px minmax(0,1fr);gap:18px}
  #page-explore .explore-row-image{width:100px;height:122px}
}
@media(max-width:680px){
  #page-explore .explore-heading{padding-block:20px 17px}
  #page-explore .explore-heading h1{font-size:38px}
  #page-explore .explore-toolbar{margin-block-end:21px}
  #page-explore .explore-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 15px}
  #page-explore .explore-topic{gap:9px}
  #page-explore .explore-topic-image{aspect-ratio:1.5;border-radius:8px}
  #page-explore .explore-topic-name{font-size:22px;line-height:1.3}
  #page-explore .explore-hub-heading{margin-block-end:12px}
  #page-explore .explore-hub-heading h2{font-size:13px}
  #page-explore .explore-hub-heading .text-button{font-size:12px}
  #page-explore .explore-sections{margin-block-end:24px}
  #page-explore .explore-faith-entry{min-height:96px;gap:13px;padding:9px 13px 9px 9px;border-radius:10px}
  #page-explore .explore-faith-entry img{width:76px;height:76px;border-radius:5px}
  #page-explore .faith-entry-copy strong{font-size:25px;line-height:1.15}
  #page-explore .faith-entry-copy small{font-size:11px;line-height:1.5}
  #page-explore .explore-faith-entry>svg{width:30px;height:30px;padding:6px}
  #page-explore .explore-context{margin-block-end:18px;padding-block:15px}
  #page-explore #exploreCollectionTitle{font-size:32px;line-height:1.25}
  #page-explore #changeFaith{max-width:104px;padding:8px 10px;font-size:12px}
  #page-explore .explore-row{padding-block:17px;gap:5px}
  #page-explore .explore-row-open{grid-template-columns:80px minmax(0,1fr);gap:14px}
  #page-explore .explore-row-image{width:80px;height:108px;border-radius:6px}
  #page-explore .explore-row-title{font-size:24px;line-height:1.25}
  #page-explore .explore-row-meta{font-size:11.5px}
  #page-explore .explore-row-excerpt{font-size:14px;-webkit-line-clamp:1}
  #page-explore .explore-pager{gap:8px;margin-block-start:21px}
  #page-explore .explore-pager .btn{font-size:13px;padding-inline:12px;gap:7px}
  #page-explore .faith-choice-grid{gap:12px}
  #page-explore .faith-choice{min-height:172px;aspect-ratio:.95;border-radius:9px}
  #page-explore .faith-choice-copy{inset:auto 11px 14px;gap:6px}
  #page-explore .faith-choice-copy strong{font-size:24px}
  #page-explore .faith-choice-copy>span{font-size:11px;line-height:1.5}
  #page-explore .faith-daily-row{font-size:14px;line-height:1.6}
  html[lang="ar"] #page-explore .explore-heading h1{font-size:34px}
  html[lang="ar"] #page-explore .explore-topic-name{font-size:20px;line-height:1.75}
  html[lang="ar"] #page-explore #exploreCollectionTitle{font-size:30px;line-height:1.65}
  html[lang="ar"] #page-explore .explore-row-title{font-size:25px;line-height:1.7}
  html[lang="ar"] #page-explore .explore-row-excerpt{font-size:20px;line-height:1.9}
}
@media(max-width:360px){
  #page-explore .explore-topic-grid{gap:21px 12px}
  #page-explore .explore-topic-name{font-size:20px;line-height:1.35}
  #page-explore .explore-row{grid-template-columns:minmax(0,1fr) 44px;gap:3px}
  #page-explore .explore-row-open{grid-template-columns:64px minmax(0,1fr);gap:11px}
  #page-explore .explore-row-image{width:64px;height:98px}
  #page-explore .explore-row-title{font-size:22px;line-height:1.3}
  #page-explore .explore-faith-entry{gap:10px;padding-inline-end:10px}
  #page-explore .explore-faith-entry img{width:58px;height:73px}
  #page-explore .faith-entry-copy strong{font-size:22px}
  #page-explore .faith-entry-copy small{font-size:10.5px}
  #page-explore .explore-faith-entry>svg{width:28px;height:28px;padding:6px}
  #page-explore .faith-choice{min-height:166px}
  #page-explore .faith-choice-copy strong{font-size:22px}
  #page-explore .faith-choice-copy>span{font-size:11px}
  #page-explore .explore-pager .btn{font-size:12px;padding-inline:10px}
  html[lang="ar"] #page-explore .explore-topic-name{font-size:19px;line-height:1.8}
  html[lang="ar"] #page-explore .explore-row-title{font-size:23px;line-height:1.75}
  html[lang="ar"] #page-explore .explore-row-meta{font-size:14px;line-height:1.8}
  html[lang="ar"] #page-explore .explore-pager .btn{font-size:15px;line-height:1.8}
}
