/* Hadith Matters — quiet, contemporary reading design */
:root {
  color-scheme: light;
  --page: 1170px;
  --paper: #ffffff;
  --hero: #f8faf8;
  --soft: #f6f8f6;
  --soft-warm: #faf9f6;
  --ink: #27312f;
  --text: #46514e;
  --muted: #68746f;
  --soft-ink: #84908a;
  --accent: #466961;
  --accent-dark: #34554d;
  --accent-pale: #ebf2ee;
  --line: #e5eae5;
  --line-dark: #d6dfd8;
  --body-font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display-font: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --quote-font: 'Source Serif 4', Georgia, serif;
  --ease: cubic-bezier(.22,.7,.28,1);
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.62 var(--body-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button,input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a,button { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
::selection { background: #dceae3; color: #1f3832; }
:focus-visible { outline: 3px solid #729b8e; outline-offset: 4px; border-radius: 4px; }
[hidden] { display:none!important; }
.page-width { width: min(calc(100% - 88px), var(--page)); margin-inline:auto; }
.salawat { white-space: nowrap; font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI Symbol', sans-serif; font-size: .93em; }
.skip-link { position:fixed; z-index:200; top:-100px; left:16px; padding:11px 18px; background:var(--accent-dark); color:white; border-radius:6px; }
.skip-link:focus { top:12px; }
.reading-progress { position:fixed; z-index:120; top:0; left:0; width:100%; height:2px; pointer-events:none; }
.reading-progress span { display:block; height:100%; width:0; background:#85a398; }

/* Navigation — simple and quiet */
.site-header { position:sticky; z-index:90; top:0; background:rgba(255,255,255,.96); border-bottom:1px solid #e9ede9; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.header-inner { display:flex; align-items:center; height:76px; gap:30px; }
.brand { display:inline-flex; flex-shrink:0; align-items:center; gap:8px; font:650 22px/1 var(--display-font); letter-spacing:-.065em; white-space:nowrap; }
.brand-mark { width:29px; height:29px; flex:0 0 auto; color:#567b6f; }
.brand-light { font-weight:450; }
.brand-dot { color:#78988e; }
.header-nav { display:flex; align-items:center; gap:34px; margin-left:auto; }
.header-nav a { font:500 13px/1.4 var(--display-font); color:#66716c; white-space:nowrap; transition:color .2s var(--ease); }
.header-nav a:hover { color:var(--accent-dark); }
.header-cta { display:inline-flex; align-items:center; justify-content:center; font:600 13px/1.25 var(--display-font); background:#edf3ef; color:#34574d; border:1px solid transparent; border-radius:7px; padding:12px 17px; white-space:nowrap; transition:background .2s var(--ease); }
.header-cta:hover { background:#e1ece5; }

/* Opening: let the words carry the design */
.hero { background:var(--hero); border-bottom:1px solid var(--line); }
.hero-inner { display:block; padding-block:112px 105px; min-height:0; }
.hero-content { max-width:930px; }
.hero-eyebrow { display:flex; gap:10px; align-items:center; color:var(--accent); font:600 12px/1.35 var(--display-font); letter-spacing:.06em; }
.hero-eyebrow::before { content:''; width:7px; height:7px; background:#7fa495; border-radius:50%; }
.hero h1 { font:500 clamp(46px,4.75vw,65px)/1.145 var(--display-font); letter-spacing:-.053em; text-wrap:balance; margin:28px 0 24px; max-width:980px; }
.hero-lede { max-width:690px; font:400 clamp(19px,1.8vw,22px)/1.54 var(--body-font); color:#596661; margin:0; }
.hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:28px; margin-top:36px; }
.primary-button { display:inline-flex; align-items:center; justify-content:center; padding:0 24px; min-height:51px; background:var(--accent-dark); border:1px solid var(--accent-dark); border-radius:7px; color:white; font:600 14px/1.2 var(--display-font); transition:background .2s var(--ease),transform .2s var(--ease); }
.primary-button:hover { background:#466c60; transform:translateY(-1px); }
.text-button { display:inline-flex; align-items:center; gap:9px; color:#53645c; font:550 14px/1.35 var(--display-font); padding:10px 0; transition:color .2s; }
.text-button:hover { color:#243d34; }
.text-button span { font-size:18px; }
/* A typographic summary instead of decorative tiles */
.credentials-strip { border-bottom:1px solid var(--line); background:white; }
.credentials-inner { display:flex; align-items:center; justify-content:flex-start; gap:0; min-height:109px; }
.credentials-inner > div { display:flex; align-items:baseline; gap:10px; padding:0 43px; border-left:1px solid var(--line); }
.credentials-inner > div:first-child { padding-left:0; border-left:0; }
.credentials-inner strong { font:550 27px/1 var(--display-font); color:#334b42; letter-spacing:-.04em; }
.credentials-inner span { font:400 14px/1.4 var(--body-font); color:#6a756f; }

/* Reading shell */
.reading-shell { display:grid; grid-template-columns:215px minmax(0,1fr); gap:clamp(52px,6.3vw,106px); align-items:start; padding-block:96px 104px; }
.article-content { min-width:0; max-width:790px; }
.desktop-toc { height:100%; }
.toc-inner { position:sticky; top:103px; max-height:calc(100vh - 124px); overflow-y:auto; padding-right:15px; scrollbar-width:thin; scrollbar-color:#dbe3dc transparent; }
.toc-label { margin:0 0 15px; color:#829089; text-transform:uppercase; letter-spacing:.11em; font:650 10px/1.4 var(--display-font); }
.toc-main { display:flex; flex-direction:column; border-left:1px solid #e2e8e3; }
.toc-main a { display:block; margin-left:-1px; padding:8px 0 8px 13px; border-left:2px solid transparent; color:#7a857e; font:450 12.8px/1.45 var(--display-font); transition:color .15s var(--ease),border-color .15s var(--ease); }
.toc-main a:hover,.toc-main a.is-current { color:#355d51; border-left-color:#7b9b8d; }
.toc-main a.is-current { font-weight:600; }
.toc-divider { height:1px; background:var(--line); margin:23px 0 24px; }
.toc-label-topics { margin-bottom:11px; }
.toc-themes { display:flex; flex-direction:column; }
.toc-themes a { display:flex; align-items:baseline; gap:13px; padding:6px 0; color:#7c867f; font:450 12px/1.45 var(--display-font); transition:color .18s; }
.toc-themes a span { width:17px; flex-shrink:0; color:#a4afa7; font-size:10px; font-weight:600; font-variant-numeric:tabular-nums; }
.toc-themes a:hover,.toc-themes a.is-current { color:#345c50; }
.mobile-toc { display:none; }

/* Long form typography */
.essay-section { scroll-margin-top:103px; }
.essay-section + .essay-section { margin-top:91px; padding-top:76px; border-top:1px solid var(--line); }
.section-eyebrow { color:#789184; text-transform:uppercase; font:650 11px/1.4 var(--display-font); letter-spacing:.095em; margin:0 0 21px; }
.essay-section h2,.collection-head h2 { font:500 clamp(33px,3.45vw,46px)/1.2 var(--display-font); letter-spacing:-.037em; text-wrap:balance; margin:0 0 30px; color:var(--ink); }
.essay-section h2 em,.collection-head h2 em { font-style:normal; color:var(--accent); }
.prose { color:var(--text); font:400 18px/1.77 var(--body-font); letter-spacing:0; }
.prose p { margin:0 0 21px; }
.prose strong { font-weight:650; color:#293b34; }
.prose a { color:#34645a; text-decoration:underline; text-decoration-color:#b3cac0; text-underline-offset:4px; text-decoration-thickness:1px; overflow-wrap:anywhere; }
.prose a:hover { text-decoration-color:currentColor; }
.prose h2 { font:500 clamp(33px,3.4vw,44px)/1.2 var(--display-font); letter-spacing:-.037em; margin:0 0 27px; color:var(--ink); }
.prose h3 { font:500 clamp(24px,2.45vw,29px)/1.28 var(--display-font); letter-spacing:-.02em; color:var(--ink); margin:46px 0 20px; }
.prose h3:first-child { margin-top:0; }
.prose ul { padding-left:25px; margin:14px 0 27px; }
.prose li { padding-left:6px; margin:0 0 9px; }
.prose li::marker { color:#82a194; }
.prose blockquote { border:0; border-left:2px solid #a6bdb1; background:#f5f8f6; margin:32px 0; padding:25px 28px 19px; border-radius:0 8px 8px 0; }
.prose blockquote p { font:400 22px/1.54 var(--quote-font); letter-spacing:-.007em; color:#34463e; margin:0 0 10px; }
.prose blockquote p + p { font:600 12px/1.5 var(--display-font); letter-spacing:.012em; color:#57756b; margin:13px 0 0; }
.prose blockquote p strong { font-weight:600; color:inherit; }
.first-essay .prose > p:first-child { color:#44564b; font-weight:550; }
.first-essay .prose > p:nth-child(2),.first-essay .prose > p:nth-child(3),.first-essay .prose > p:nth-child(4) { font-size:20px; line-height:1.55; color:#35463c; margin-bottom:10px; }
.first-essay .prose > p:nth-child(4) { margin-bottom:28px; }
#prophetic-authority .prose > p:first-child { color:#5b7569; font-size:21px; font-weight:550; }

/* 100 teachings: topic directory and generous typographic rows */
.collection { margin-top:103px; padding-top:80px; border-top:1px solid var(--line); scroll-margin-top:102px; }
.collection-head h2 { margin-bottom:18px; }
.collection-head > p { max-width:575px; color:var(--muted); font-size:18px; line-height:1.65; margin:0 0 38px; }
.topic-directory { background:var(--soft-warm); border-radius:10px; padding:29px 28px 22px; margin:0 0 50px; }
.directory-intro { display:flex; gap:18px; align-items:baseline; justify-content:space-between; margin-bottom:18px; }
.directory-intro h3 { font:600 17px/1.4 var(--display-font); letter-spacing:-.015em; margin:0; }
.directory-intro p { margin:0; color:#879088; font:400 13px/1.5 var(--body-font); }
.directory-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:25px; }
.directory-link { display:flex; align-items:center; min-height:46px; gap:12px; padding:10px 2px; border-top:1px solid #e9eae3; font:500 14px/1.35 var(--display-font); color:#43524a; transition:color .18s var(--ease); }
.directory-link:hover { color:#215548; }
.directory-num { flex-shrink:0; width:19px; color:#91a195; font:600 11px/1.4 var(--display-font); font-variant-numeric:tabular-nums; }
.directory-name { flex:1; }
.directory-arrow { font-size:16px; font-weight:400; color:#8caa9c; }
.teaching-groups { max-width:790px; }
.teaching-group { padding-top:32px; scroll-margin-top:100px; }
.teaching-group + .teaching-group { border-top:1px solid var(--line); padding-top:75px; margin-top:55px; }
.section-index { display:flex; align-items:center; gap:10px; color:#849b8f; font:650 11px/1.35 var(--display-font); letter-spacing:.065em; }
.section-index .hairline { width:20px; height:1px; background:#acbeb1; }
.topic-heading h3 { font:500 clamp(27px,3vw,36px)/1.24 var(--display-font); letter-spacing:-.032em; color:var(--ink); text-wrap:balance; margin:13px 0 13px; }
.topic-introduction { color:var(--muted); font:400 16.5px/1.68 var(--body-font); max-width:685px; }
.topic-introduction p { margin:0; }
.topic-introduction em { font-style:normal; }
.teaching-list { list-style:none; margin:28px 0 0; padding:0; border-top:1px solid var(--line); }
.teaching-item { display:grid; grid-template-columns:42px minmax(0,1fr) 28px; gap:13px; position:relative; padding:25px 0 23px; border-bottom:1px solid var(--line); scroll-margin-top:100px; transition:background .2s; }
.teaching-item:target { background:#f0f7f2; outline:9px solid #f0f7f2; border-radius:3px; }
.teaching-number { font:600 13px/1.7 var(--display-font); color:#8da39a; font-variant-numeric:tabular-nums; padding-top:1px; }
.teaching-text h4 { margin:0 0 8px; color:#2a3933; font:600 17px/1.46 var(--display-font); letter-spacing:-.017em; }
.teaching-text p { color:#5b6861; font:400 16px/1.65 var(--body-font); margin:0; }
.source-link { margin-top:8px; }
.source-link a { display:inline-flex; gap:6px; color:#4d7868; font:600 12.5px/1.5 var(--display-font); text-decoration:none; padding:4px 0; border-bottom:1px solid #bfd0c6; transition:border-color .15s,color .15s; }
.source-link a::after { content:'↗'; margin-left:5px; font-size:14px; line-height:1.1; }
.source-link a:hover { color:#245849; border-bottom-color:currentColor; }
.copy-teaching { display:grid; place-items:center; height:32px; width:32px; margin-top:-4px; background:transparent; color:#8b9e93; border:0; border-radius:6px; opacity:0; transition:background .18s,opacity .18s; }
.copy-teaching svg { width:17px; height:17px; }
.teaching-item:hover .copy-teaching,.copy-teaching:focus-visible { opacity:1; }
.copy-teaching:hover { background:#eef4ef; }
.topic-reflection { padding:0 0 0 18px; margin-top:30px; border-left:2px solid #cfddd2; font-size:16.5px; line-height:1.75; color:#637169; }
.topic-reflection p:last-child { margin-bottom:0; }
.topic-reflection strong { color:#40574c; }

/* Final article portions */
.post-collection { margin-top:125px; padding-top:33px; border-top:1px solid var(--line); }
.closing-essay { margin-top:73px; }
.post-collection .essay-section + .essay-section { margin-top:87px; padding-top:73px; }
.source-note { display:flex; gap:17px; align-items:flex-start; margin-top:72px; padding-top:25px; border-top:1px solid var(--line); }
.source-note-icon { display:grid; place-items:center; border:1px solid var(--line-dark); color:#5e8070; flex:0 0 auto; height:26px; width:26px; border-radius:50%; font:500 14px var(--quote-font); }
.source-note p { font:400 14px/1.65 var(--body-font); color:#6c7870; margin:0; }
.closing-panel { background:#f3f7f4; border-top:1px solid #e6ede7; border-bottom:1px solid #e4ebe5; }
.closing-inner { display:flex; justify-content:space-between; align-items:flex-end; gap:48px; padding-block:82px 90px; }
.closing-lead { max-width:715px; }
.closing-overline { color:#648677; text-transform:uppercase; letter-spacing:.075em; font:650 11px/1.45 var(--display-font); }
.closing-star { display:none; }
.closing-inner h2 { margin:17px 0 18px; color:var(--ink); font:500 clamp(36px,4.2vw,52px)/1.18 var(--display-font); letter-spacing:-.04em; }
.closing-inner h2 em { font-style:normal; color:#567c6d; }
.closing-inner p { max-width:610px; margin:0; font-size:17px; line-height:1.7; color:#56685e; }
.closing-link { display:inline-flex; align-items:center; gap:14px; flex-shrink:0; max-width:275px; padding:0 0 7px; color:#356152; border-bottom:1px solid #9dbdaf; font:600 14px/1.5 var(--display-font); }
.closing-link svg { width:18px; height:18px; flex-shrink:0; transition:transform .2s; }
.closing-link:hover svg { transform:translateX(3px); }
.site-footer { background:white; }
.footer-inner { min-height:125px; display:flex; justify-content:space-between; align-items:center; gap:25px; }
.footer-brand { font-size:20px; }
.footer-inner p { color:#85918a; font:400 13px/1.5 var(--body-font); }
.footer-share { display:inline-flex; align-items:center; gap:9px; color:#547064; padding:10px 13px; border:1px solid #d9e4dc; background:white; border-radius:7px; font:600 12px/1.3 var(--display-font); white-space:nowrap; transition:background .2s; }
.footer-share:hover { background:#f1f6f2; }
.footer-share svg { width:17px; height:17px; }
.back-to-top { position:fixed; z-index:40; bottom:24px; right:24px; display:grid; place-items:center; height:45px; width:45px; border:1px solid #dce6df; border-radius:50%; background:white; color:#476c5b; box-shadow:0 5px 24px rgba(27,52,38,.08); opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .2s,visibility .2s,transform .2s; }
.back-to-top.is-visible { opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top svg { width:19px; height:19px; }
.toast { position:fixed; z-index:180; bottom:28px; left:50%; transform:translate(-50%,12px); opacity:0; visibility:hidden; pointer-events:none; background:#2b4a3d; color:white; border-radius:7px; box-shadow:0 8px 28px rgba(32,47,36,.16); padding:12px 17px; font:550 13px/1.4 var(--display-font); transition:opacity .2s,transform .2s,visibility .2s; text-align:center; }
.toast.show { opacity:1; visibility:visible; transform:translate(-50%,0); }
.not-found { min-height:100vh; display:grid; place-items:center; padding:35px; text-align:center; }
.not-found h1 { font:550 clamp(38px,6vw,70px)/1.15 var(--display-font); }
.not-found p { color:var(--muted); }
.not-found .primary-button { margin-top:20px; }

@media (max-width:1080px) {
  .page-width { width:min(calc(100% - 64px),var(--page)); }
  .header-nav { gap:22px; }
  .hero-inner { padding-block:90px 88px; }
  .reading-shell { grid-template-columns:192px minmax(0,1fr); gap:49px; }
  .closing-inner { gap:30px; }
}
@media (max-width:850px) {
  html { scroll-padding-top:85px; }
  .page-width { width:min(calc(100% - 56px),var(--page)); }
  .header-inner { height:69px; }
  .header-nav { display:none; }
  .header-cta { margin-left:auto; }
  .hero-inner { padding-block:78px 74px; }
  .hero h1 { max-width:750px; font-size:clamp(46px,6.8vw,60px); }
  .credentials-inner { min-height:95px; }
  .credentials-inner > div { padding-inline:24px; }
  .reading-shell { display:block; max-width:758px; padding-block:55px 82px; }
  .desktop-toc { display:none; }
  .mobile-toc { display:block; margin-bottom:60px; border:1px solid var(--line); border-radius:8px; background:#fff; }
  .mobile-toc summary { list-style:none; display:flex; align-items:center; justify-content:space-between; padding:16px 20px; cursor:pointer; color:#496d5d; font:600 14px/1.4 var(--display-font); }
  .mobile-toc summary::-webkit-details-marker { display:none; }
  .mobile-toc-chevron { font-size:22px; transition:transform .2s; }
  .mobile-toc[open] .mobile-toc-chevron { transform:rotate(180deg); }
  .mobile-toc-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:5px 11px 14px; }
  .mobile-toc-links a { padding:10px 11px; color:#5e7166; border-radius:6px; font:450 14px/1.35 var(--display-font); }
  .mobile-toc-links a:hover { background:#f4f7f4; }
  .closing-inner { display:block; padding-block:67px 72px; }
  .closing-link { margin-top:26px; }
}
@media (max-width:580px) {
  .page-width { width:calc(100% - 40px); }
  .header-inner { height:66px; }
  .brand { font-size:19px; }
  .brand-mark { width:25px; height:25px; }
  .header-cta { font-size:11.5px; padding:10px 11px; }
  .hero-inner { padding-block:65px 66px; }
  .hero-eyebrow { font-size:11px; letter-spacing:.025em; }
  .hero h1 { font-size:clamp(38px,9.2vw,53px); line-height:1.14; letter-spacing:-.048em; margin:22px 0 21px; }
  .hero-lede { font-size:18px; line-height:1.55; }
  .hero-actions { gap:12px 23px; margin-top:26px; }
  .primary-button { min-height:48px; padding-inline:17px; font-size:13px; }
  .text-button { font-size:13px; }
  .credentials-inner { min-height:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 17px; padding-block:24px; }
  .credentials-inner > div { padding:0; border:0; display:block; }
  .credentials-inner > div:last-child { grid-column:span 2; border-top:1px solid var(--line); padding-top:16px; }
  .credentials-inner strong { display:inline; font-size:23px; margin-right:8px; }
  .credentials-inner span { display:inline; font-size:13px; }
  .reading-shell { padding-block:32px 68px; }
  .mobile-toc { margin-bottom:52px; }
  .mobile-toc-links { grid-template-columns:1fr; }
  .essay-section h2,.collection-head h2 { font-size:clamp(31px,8.6vw,42px); margin-bottom:22px; }
  .prose { font-size:17px; line-height:1.72; }
  .prose p { margin-bottom:18px; }
  .first-essay .prose > p:nth-child(2),.first-essay .prose > p:nth-child(3),.first-essay .prose > p:nth-child(4) { font-size:18px; }
  .prose h2 { font-size:clamp(30px,8vw,39px); }
  .prose h3 { font-size:24px; margin:32px 0 16px; }
  .prose blockquote { padding:20px 19px 16px; margin:25px 0; }
  .prose blockquote p { font-size:20px; }
  .essay-section + .essay-section { margin-top:65px; padding-top:55px; }
  .collection { margin-top:70px; padding-top:60px; }
  .collection-head > p { font-size:17px; margin-bottom:25px; }
  .topic-directory { padding:22px 19px 14px; margin-bottom:30px; }
  .directory-intro { display:block; }
  .directory-intro h3 { font-size:16px; }
  .directory-intro p { margin-top:4px; font-size:13px; }
  .directory-grid { grid-template-columns:1fr; }
  .directory-link { min-height:43px; padding:8px 1px; font-size:13.5px; }
  .teaching-group { padding-top:36px; }
  .teaching-group + .teaching-group { padding-top:60px; margin-top:40px; }
  .topic-heading h3 { font-size:clamp(26px,7.7vw,32px); }
  .topic-introduction { font-size:15.5px; }
  .teaching-item { grid-template-columns:27px minmax(0,1fr) 25px; gap:9px; padding-block:21px 23px; }
  .teaching-number { font-size:12px; }
  .teaching-text h4 { font-size:15.5px; line-height:1.52; }
  .teaching-text p { font-size:15.5px; line-height:1.58; }
  .source-link a { font-size:12px; }
  .copy-teaching { opacity:.7; width:27px; height:30px; }
  .topic-reflection { font-size:15.5px; padding-left:15px; }
  .post-collection { margin-top:85px; }
  .closing-essay { margin-top:58px; }
  .post-collection .essay-section + .essay-section { margin-top:68px; padding-top:55px; }
  .source-note { margin-top:52px; }
  .closing-inner h2 { font-size:clamp(34px,8.8vw,45px); }
  .closing-inner p { font-size:16px; }
  .footer-inner { min-height:140px; flex-wrap:wrap; gap:8px 12px; align-content:center; }
  .footer-inner p { order:3; width:100%; margin:2px 0 0; font-size:12px; }
  .footer-share { margin-left:auto; font-size:11px; padding:9px; }
  .back-to-top { width:43px; height:43px; right:17px; bottom:17px; }
}
@media (max-width:365px) {
  .brand { font-size:18px; }
  .header-cta { padding-inline:8px; font-size:10.5px; }
  .hero h1 { font-size:37px; }
  .directory-link { font-size:12.5px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}

 
/* --------------------------------------------------------------------------
   Hadith Matters · Reader-first refinement
   Designed for sustained reading: comfortable typesetting, WCAG AA color
   contrast for normal text, calm whitespace, and mobile-first tap targets.
   -------------------------------------------------------------------------- */
:root {
  --hero: #f8faf7;
  --soft: #f5f8f5;
  --soft-warm: #faf9f5;
  --ink: #25332d;
  --text: #3c4c43;
  --muted: #53665b;
  --soft-ink: #53685c;
  --accent: #376a56;
  --accent-dark: #2d5747;
  --accent-pale: #edf4ee;
  --line: #e1e9e2;
  --line-dark: #d3ded6;
}
html { scroll-padding-top: 96px; }
body { color:var(--ink); font-size:19px; line-height:1.65; }
.page-width { --page:1170px; }
.salawat {
  font-family:'Noto Naskh Arabic','Segoe UI Symbol','Amiri',serif;
  font-size:1.06em;
  vertical-align:baseline;
}

/* Landing: less dead space, more immediate access to the article. */
.site-header { border-color:#e3eae4; }
.header-inner { height:74px; }
.header-nav { gap:30px; }
.header-nav a { font-size:14px; color:#566a5e; font-weight:500; }
.header-nav a:hover,.header-nav a:focus-visible { color:#244f3c; }
.header-cta { font-size:14px; color:#2c5545; padding:13px 17px; }
.hero-inner { padding-block:88px 85px; }
.hero-eyebrow { font-size:13px; color:#3f6b57; }
.hero h1 { font-size:clamp(44px,4.6vw,65px); line-height:1.13; letter-spacing:-.05em; margin-block:25px 22px; }
.hero-lede { font-size:clamp(19px,1.75vw,22px); line-height:1.58; color:#4c5f53; max-width:730px; }
.hero-actions { margin-top:34px; }
.primary-button { font-size:15px; min-height:50px; }
.text-button { font-size:15px; color:#436052; }
.credentials-inner { min-height:91px; }
.credentials-inner strong { font-size:26px; color:#2e4d3e; }
.credentials-inner span { font-size:15px; color:#52675b; }
.credentials-inner > div { padding-inline:35px; }

/* Article shell. Side navigation is secondary, never hard to decipher. */
.reading-shell { grid-template-columns:222px minmax(0,1fr); gap:clamp(56px,6.1vw,97px); padding-block:76px 108px; }
.article-content { max-width:785px; }
.toc-inner { top:99px; max-height:calc(100vh - 116px); }
.toc-label { color:#526b5d; font-size:12px; letter-spacing:.08em; margin-bottom:16px; }
.toc-main a { font-size:14px; line-height:1.47; padding-block:9px; color:#55685d; }
.toc-themes a { font-size:13.5px; line-height:1.45; padding-block:8px; color:#54695d; gap:11px; }
.toc-themes a span { color:#526c5d; font-size:12px; width:19px; }
.toc-main a.is-current, .toc-themes a.is-current { color:#255b43; }
.toc-divider { margin-block:25px; }

/* The central measure is deliberately narrower than the available grid. */
.essay-section + .essay-section { margin-top:86px; padding-top:73px; }
.section-eyebrow { font-size:12px; color:#4f7862; letter-spacing:.075em; margin-bottom:20px; }
.essay-section h2,.collection-head h2 { font-size:clamp(35px,3.45vw,47px); line-height:1.17; margin-bottom:27px; }
.prose { color:var(--text); font-size:19px; line-height:1.74; max-width:745px; }
.prose p { margin-bottom:22px; }
.prose strong { color:#25372b; font-weight:650; }
.prose h2 { font-size:clamp(35px,3.45vw,46px); }
.prose h3 { font-size:clamp(26px,2.5vw,30px); line-height:1.27; margin-block:43px 18px; }
.prose blockquote { background:#f4f8f4; border-left-color:#83aa92; padding:26px 30px 22px; }
.prose blockquote p { font-size:24px; line-height:1.57; color:#2c4536; }
.prose blockquote p + p { font-size:14px; color:#3c6a55; line-height:1.6; }
.first-essay .prose > p:first-child,
.first-essay .prose > p:nth-child(2),
.first-essay .prose > p:nth-child(3) {
  color:#344b3d; font-size:21px; line-height:1.54; font-weight:500; margin-bottom:11px;
}
.first-essay .prose > p:nth-child(3) { margin-bottom:30px; }
#prophetic-authority .prose > p:first-child { color:#456251; font-size:21px; }

/* Reading directory: looks like an index, not a dashboard. */
.collection { margin-top:98px; padding-top:76px; }
.collection-head > p { font-size:19px; line-height:1.65; color:#52665a; max-width:650px; }
.topic-directory { background:#faf9f5; border:1px solid #eeeae1; border-radius:9px; padding:30px 32px 26px; margin-bottom:51px; }
.directory-intro h3 { font-size:19px; }
.directory-intro p { color:#586a5e; font-size:14px; }
.directory-link { font-size:15.5px; min-height:51px; line-height:1.4; color:#334c3e; gap:13px; }
.directory-num { color:#557363; font-size:13px; width:23px; }
.directory-arrow { color:#426d54; }
.teaching-group + .teaching-group { padding-top:73px; margin-top:51px; }
.section-index { font-size:12.5px; color:#4e745e; }
.topic-heading h3 { font-size:clamp(30px,3vw,38px); line-height:1.21; margin-block:16px; }
.topic-introduction { font-size:18px; line-height:1.67; color:#4d6255; max-width:725px; }

/* The core of the site: 100 readable, scannable, source-backed entries. */
.teaching-list { margin-top:30px; }
.teaching-item { grid-template-columns:45px minmax(0,1fr) 36px; column-gap:14px; padding-block:26px 25px; }
.teaching-number { font-size:15px; line-height:1.6; color:#4d7460; padding-top:2px; font-weight:600; }
.teaching-text h4 { font-size:19.5px; line-height:1.42; font-weight:650; letter-spacing:-.012em; color:#263b2e; margin-bottom:9px; }
.teaching-text p { font-size:18px; line-height:1.62; color:#425448; }
.source-link { margin-top:7px; }
.source-link a { font-size:14.5px; line-height:1.48; font-weight:650; color:#2e654d; min-height:40px; padding:8px 0; border-color:#aec7b7; }
.source-link a::after { font-size:15px; }
.copy-teaching { width:36px; height:40px; margin-top:-3px; color:#416954; opacity:0; }
.copy-teaching:hover,.copy-teaching:focus-visible { background:#eaf2ea; }
.teaching-item:hover .copy-teaching,.copy-teaching:focus-visible { opacity:1; }
.topic-reflection { font-size:18px; color:#4b5e51; line-height:1.7; margin-top:28px; }
.topic-reflection strong { color:#2d4f3b; }
.source-note p { font-size:15.5px; color:#4d6154; }
.closing-overline { font-size:12.5px; color:#456b55; }
.closing-inner p { font-size:18px; color:#405a4a; }
.closing-link { font-size:15px; }
.footer-inner p { font-size:14px; color:#526458; }
.footer-share { font-size:14px; color:#2f604a; }
.toast { font-size:14px; }

/* Tablet: remove the side rail before it makes paragraphs cramped. */
@media (max-width:1080px) and (min-width:851px) {
  .reading-shell { grid-template-columns:195px minmax(0,1fr); gap:49px; }
  .toc-main a { font-size:13.5px; }
  .toc-themes a { font-size:13px; }
  .credentials-inner > div { padding-inline:24px; }
}
@media (max-width:850px) {
  .header-inner { height:69px; }
  .hero-inner { padding-block:76px 74px; }
  .reading-shell { max-width:758px; padding-block:46px 82px; }
  .mobile-toc { margin-bottom:59px; }
  .mobile-toc summary { font-size:16px; color:#315b47; min-height:54px; }
  .mobile-toc-links a { font-size:15.5px; color:#415b49; padding-block:13px; }
  .credentials-inner { min-height:87px; }
}
@media (max-width:580px) {
  .page-width { width:calc(100% - 40px); }
  .header-inner { height:66px; }
  .header-cta { font-size:12.5px; padding:11px 12px; }
  .hero-inner { padding-block:60px 61px; }
  .hero-eyebrow { font-size:12.5px; letter-spacing:.025em; }
  .hero h1 { font-size:clamp(38px,9.3vw,53px); line-height:1.15; }
  .hero-lede { font-size:18.5px; line-height:1.56; }
  .primary-button { font-size:14px; }
  .text-button { font-size:14px; }
  .credentials-inner { padding-block:23px; gap:17px 14px; }
  .credentials-inner strong { font-size:24px; }
  .credentials-inner span { font-size:14px; }
  .reading-shell { padding-block:34px 68px; }
  .mobile-toc { margin-bottom:49px; }
  .mobile-toc summary { font-size:15.5px; }
  .mobile-toc-links a { font-size:15px; }
  .section-eyebrow { font-size:12px; }
  .essay-section h2,.collection-head h2 { font-size:clamp(33px,8.65vw,42px); line-height:1.2; }
  .prose { font-size:18px; line-height:1.72; }
  .prose p { margin-bottom:20px; }
  .first-essay .prose > p:first-child,
  .first-essay .prose > p:nth-child(2),
  .first-essay .prose > p:nth-child(3) { font-size:19px; line-height:1.6; margin-bottom:8px; }
  .first-essay .prose > p:nth-child(3) { margin-bottom:28px; }
  .prose h2 { font-size:clamp(33px,8.4vw,40px); }
  .prose h3 { font-size:26px; margin-top:35px; }
  .prose blockquote { padding:22px 20px 20px; margin-block:26px; }
  .prose blockquote p { font-size:22px; line-height:1.57; }
  .prose blockquote p + p { font-size:14px; }
  #prophetic-authority .prose > p:first-child { font-size:19px; }
  .collection-head > p { font-size:18px; }
  .topic-directory { padding:23px 20px 18px; }
  .directory-intro h3 { font-size:18px; }
  .directory-intro p { font-size:14px; }
  .directory-link { font-size:15.5px; min-height:48px; padding-block:9px; }
  .directory-num { font-size:13px; }
  .section-index { font-size:12px; }
  .topic-heading h3 { font-size:clamp(29px,8vw,34px); }
  .topic-introduction { font-size:17.5px; line-height:1.65; }
  .teaching-item { grid-template-columns:33px minmax(0,1fr); column-gap:11px; padding-block:24px 23px; }
  .teaching-number { font-size:14px; line-height:1.6; color:#4b735e; padding-top:2px; }
  .teaching-text h4 { font-size:18.5px; line-height:1.43; margin-bottom:9px; }
  .teaching-text p { font-size:17.5px; line-height:1.63; }
  .source-link { padding-right:42px; margin-top:7px; }
  .source-link a { font-size:14.5px; line-height:1.42; min-height:42px; }
  .copy-teaching { position:absolute; right:0; bottom:23px; width:39px; height:41px; margin:0; opacity:1; color:#3f6d56; background:#f3f7f3; }
  .copy-teaching svg { width:18px; height:18px; }
  .topic-reflection { font-size:17.5px; }
  .source-note p { font-size:15px; }
  .closing-inner p { font-size:17.5px; }
  .closing-link { font-size:15px; }
  .footer-inner p { font-size:13.5px; }
  .footer-share { font-size:13px; }
}
@media (max-width:365px) {
  .page-width { width:calc(100% - 34px); }
  .hero h1 { font-size:37px; }
  .teaching-item { grid-template-columns:29px minmax(0,1fr); column-gap:10px; }
  .teaching-text h4 { font-size:18px; }
  .teaching-text p { font-size:17px; }
  .directory-link { font-size:15px; }
}
@media (hover:none) and (min-width:581px) {
  .copy-teaching { opacity:1; background:#f3f7f3; }
}
@media print {
  .site-header,.desktop-toc,.mobile-toc,.hero-actions,.back-to-top,.copy-teaching,.footer-share,.reading-progress { display:none!important; }
  body { font-size:12pt; color:#111; }
  .reading-shell { display:block; }
  .page-width,.article-content { width:100%; max-width:100%; }
  .teaching-item { break-inside:avoid; }
  a { text-decoration:underline; }
}
