/* Shared styles for /articles/ pages — matches the site's tokens (index.html, weekly-classes) */
@font-face{font-family:'Clarity City';src:url('/fonts/ClarityCity-Light.ttf') format('truetype');font-weight:300;font-display:swap}
@font-face{font-family:'Clarity City';src:url('/fonts/ClarityCity-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'Clarity City';src:url('/fonts/ClarityCity-Medium.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:'Clarity City';src:url('/fonts/ClarityCity-SemiBold.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:'Clarity City';src:url('/fonts/ClarityCity-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:'Clarity City';src:url('/fonts/ClarityCity-ExtraBold.ttf') format('truetype');font-weight:800;font-display:swap}
:root{
  --navy-deep:#0B1E3A;--navy-mid:#142F57;--navy-accent:#1E3D6E;
  --gold:#D4AF57;--gold-light:#E8C87A;--gold-soft:#F1E3B6;--gold-pale:#FBF5E0;
  --cream:#FAF8F2;--warm-white:#FFFDF8;
  --text-dark:#0D1B2A;--text-mid:#2E3D52;--text-muted:#607080;
  --border:#E2E8F0;--shadow:0 4px 24px rgba(11,30,58,.08);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Clarity City',sans-serif;background:var(--warm-white);color:var(--text-dark);line-height:1.65}
a{color:var(--navy-accent)}
.ar{font-family:'Amiri','El Messiri',serif;direction:rtl}

/* top bar (same as weekly-classes / madrasah-signup) */
.top-nav{background:var(--cream);border-bottom:1px solid var(--border);padding:.85rem 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.top-nav a.logo{display:flex;align-items:center;gap:.75rem;text-decoration:none;color:var(--navy-deep);font-weight:700;font-size:.92rem}
.top-nav img{width:42px;height:42px;border-radius:50%;border:1.5px solid rgba(198,167,86,.35)}
.top-links{display:flex;gap:1.25rem;align-items:center}
.back-link{font-size:.82rem;font-weight:600;white-space:nowrap;color:var(--text-muted);text-decoration:none}
.back-link:hover{color:var(--gold)}

/* hero */
.hero{background:var(--navy-deep);padding:3.25rem 1.5rem 2.75rem;position:relative;overflow:hidden}
.hero::after{content:'';position:absolute;inset:0;background:url('/navy%20bg.jpg') center/cover no-repeat;opacity:.08;pointer-events:none}
.hero-inner{max-width:980px;margin:0 auto;position:relative;z-index:1}
.hero-tag{font-size:.62rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:.55rem}
.hero-title{font-size:clamp(2rem,4.5vw,3rem);font-weight:800;color:#fff;line-height:1.12;margin-bottom:.7rem}
.hero-title em{color:var(--gold-light);font-style:italic}
.hero-sub{font-size:.97rem;color:rgba(255,255,255,.62);line-height:1.8;font-weight:300;max-width:660px}
.crumbs{font-size:.75rem;margin-bottom:1rem;color:rgba(255,255,255,.45)}
.crumbs a{color:var(--gold-light);text-decoration:none}
.crumbs a:hover{text-decoration:underline}

.main{max-width:980px;margin:0 auto;padding:2.75rem 1.5rem 3.5rem}

/* audience switch (articles index) */
.audience{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:2.25rem}
.audience a{font-size:.82rem;font-weight:700;text-decoration:none;padding:.6rem 1.1rem;border-radius:999px;border:1px solid var(--border);color:var(--navy-deep);background:#fff}
.audience a:hover{border-color:var(--gold);background:var(--gold-pale)}
.section{scroll-margin-top:24px;margin-bottom:3rem}
.section-head{margin-bottom:1.25rem;padding-bottom:.6rem;border-bottom:2px solid var(--gold-soft)}
.section-head .tag{font-size:.66rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#9a7a2c}
.section-head h2{font-size:1.6rem;font-weight:800;color:var(--navy-deep);margin-top:.15rem}
.section-head p{font-size:.92rem;color:var(--text-mid);font-weight:300;line-height:1.75;margin-top:.35rem;max-width:640px}

/* the clickable topic buttons */
.topics{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.topic{display:flex;gap:1rem;align-items:flex-start;padding:1.35rem 1.4rem;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);text-decoration:none;color:inherit;transition:all .25s}
.topic:hover{border-color:var(--gold);transform:translateY(-2px);box-shadow:0 10px 30px rgba(11,30,58,.12)}
.topic-num{flex-shrink:0;width:2.4rem;height:2.4rem;border-radius:50%;background:var(--navy-deep);color:var(--gold-light);font-weight:800;font-size:.95rem;line-height:1;padding-top:.1em;display:flex;align-items:center;justify-content:center}
.topic h3{font-size:1.08rem;font-weight:800;color:var(--navy-deep);line-height:1.3}
.topic p{font-size:.84rem;color:var(--text-muted);margin-top:.3rem;line-height:1.6}
.topic .go{display:inline-block;margin-top:.6rem;font-size:.78rem;font-weight:700;color:var(--navy-accent)}
.topic .soon{display:inline-block;margin-top:.6rem;font-size:.66rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#9a7a2c;background:var(--gold-pale);border:1px solid var(--gold-soft);padding:.2rem .55rem;border-radius:999px}
.empty{background:var(--cream);border:1px dashed var(--gold-soft);border-radius:14px;padding:1.6rem;text-align:center;color:var(--text-muted);font-size:.92rem;line-height:1.7}

/* article body */
.article{max-width:720px;margin:0 auto}
.article .lead{font-size:1.15rem;color:var(--navy-mid);font-weight:500;line-height:1.75}
.article p{font-size:1.04rem;color:var(--text-mid);line-height:1.9;margin-top:1rem}
.article h2{font-size:1.45rem;font-weight:800;color:var(--navy-deep);line-height:1.3;margin-top:2.6rem;padding-top:1.2rem;border-top:1px solid var(--gold-soft)}
.article .emph{font-weight:700;color:var(--navy-deep)}
.article .pull{font-size:1.15rem;font-weight:800;color:var(--navy-deep);margin-top:1.4rem}
.article blockquote{margin:1.4rem 0;padding:1rem 1.25rem;border-left:3px solid var(--gold);background:var(--gold-pale);border-radius:0 10px 10px 0;font-size:1.04rem;font-style:italic;color:var(--navy-mid);line-height:1.8}
.article blockquote cite{display:block;margin-top:.4rem;font-style:normal;font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#9a7a2c}
.article .stack{list-style:none;margin:1.2rem 0;display:grid;gap:.45rem}
.article .stack li{font-size:1rem;color:var(--text-mid);line-height:1.6;padding:.55rem .9rem;background:#fff;border:1px solid var(--border);border-left:3px solid var(--gold);border-radius:8px}
.article .stack li b{color:var(--navy-deep)}
.article .closing{margin-top:2rem;padding:1.5rem;border-radius:14px;background:var(--navy-deep);color:#fff;text-align:center}
.article .closing .ar{font-size:1.7rem;color:var(--gold-light);display:block;line-height:1.6}
.article .closing p{color:rgba(255,255,255,.8);margin-top:.4rem;font-size:1rem}
.article h3{font-size:1.08rem;font-weight:800;color:var(--navy-deep);margin-top:1.5rem;line-height:1.4}
.article h3 .ar{font-size:1.05rem;color:#9a7a2c;font-weight:600;margin-left:.3rem}
.article .num{display:inline-flex;align-items:center;justify-content:center;width:1.9rem;height:1.9rem;margin-right:.6rem;border-radius:50%;background:var(--navy-deep);color:var(--gold-light);font-size:.9rem;font-weight:800;line-height:1;padding-top:.1em;vertical-align:.15em}
.article .ar-inline{font-family:'Amiri','El Messiri',serif;direction:rtl;unicode-bidi:isolate;color:#9a7a2c}
.article .ar-quote{margin:1.2rem 0 .4rem;padding:1rem 1.25rem;background:#fff;border:1px solid var(--gold-soft);border-radius:10px;font-family:'Amiri','El Messiri',serif;direction:rtl;text-align:right;font-size:1.15rem;line-height:2;color:var(--navy-mid)}
.article .note{margin-top:1.2rem;padding:1rem 1.2rem;background:var(--cream);border:1px solid var(--border);border-radius:10px}
.article .note p:first-child{margin-top:0}
.article .note b{color:var(--navy-deep)}
.article ol.steps{margin:1rem 0 0 1.2rem;display:grid;gap:.5rem}
.article ol.steps li,.article ul.plain li{font-size:1rem;color:var(--text-mid);line-height:1.75}
.article ul.plain{margin:1rem 0 0 1.2rem;display:grid;gap:.5rem}
.article .isnot{list-style:none;margin:1.2rem 0;display:grid;gap:.5rem}
.article .isnot li{display:flex;gap:.65rem;align-items:flex-start;font-size:1rem;line-height:1.65;color:var(--text-mid);padding:.65rem .9rem;border-radius:8px;border:1px solid var(--border);background:#fff}
.article .isnot li.yes{border-left:3px solid #2f8f5b}
.article .isnot li.no{border-left:3px solid #c0392b;background:#fdf6f5}
.article .isnot .mark{flex-shrink:0;font-weight:800;width:1.2rem;text-align:center}
.article .isnot li.yes .mark{color:#2f8f5b}
.article .isnot li.no .mark{color:#c0392b}
.article .summary{margin-top:2.4rem;padding:1.5rem 1.6rem;border-radius:14px;background:var(--navy-deep)}
.article .summary h2{margin-top:0;padding-top:0;border-top:0;color:#fff}
.article .summary p{color:rgba(255,255,255,.82)}
.resources{max-width:720px;margin:2rem auto 0;padding:1.3rem 1.4rem;border:1px solid var(--border);border-radius:12px;background:#fff}
.resources h3{font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.6rem}
.resources ul{list-style:none;display:grid;gap:.55rem}
.resources li{font-size:.92rem;color:var(--navy-deep);font-weight:600;line-height:1.5}
.resources li a{font-weight:500;font-size:.84rem;margin-left:.35rem}
.resources ol{list-style:none;display:grid;gap:.35rem}
.resources ol a{display:flex;align-items:baseline;gap:.6rem;font-size:.95rem;font-weight:600;color:var(--navy-deep);text-decoration:none;padding:.3rem 0}
.resources ol a:hover{color:var(--navy-accent);text-decoration:underline}
.series-num{flex:none;display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border-radius:50%;background:var(--gold-pale);color:#9a7a2c;font-size:.75rem;font-weight:700;line-height:1;padding-top:.1em}
.article hr{border:0;border-top:1px solid var(--border);margin:2rem 0}
.series-wrap{max-width:720px;margin:2rem auto 0}
.series{padding:1.3rem 1.4rem;border:1px solid var(--border);border-radius:12px;background:#fff}
.series h3{font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.5rem}
.series-parent{font-size:.9rem;margin-bottom:.6rem}
.series-parent a{font-weight:700;color:var(--navy-accent)}
.series ol{padding-left:1.3rem;display:grid;gap:.35rem}
.series li{font-size:.9rem;line-height:1.5;color:var(--text-mid)}
.series li a{color:var(--navy-deep);text-decoration:none}
.series li a:hover{text-decoration:underline}
.series li.here{font-weight:700;color:var(--navy-accent)}
.meta-line{font-size:.8rem;color:rgba(255,255,255,.5);margin-top:.9rem}
.sources{max-width:720px;margin:2.5rem auto 0;padding-top:1.2rem;border-top:1px solid var(--border);font-size:.82rem;color:var(--text-muted);line-height:1.7}
.sources h3{font-size:.7rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.4rem}
.next{max-width:720px;margin:2rem auto 0;display:flex;flex-wrap:wrap;gap:.6rem}
.btn{display:inline-flex;align-items:center;gap:.45rem;padding:.65rem 1.1rem;border-radius:6px;font-size:.84rem;font-weight:700;text-decoration:none;transition:all .2s}
.btn-navy{background:var(--navy-mid);color:#fff}
.btn-navy:hover{background:var(--navy-deep)}
.btn-gold{background:var(--gold);color:var(--navy-deep)}
.btn-gold:hover{background:var(--gold-light)}
.btn-line{border:1px solid var(--border);color:var(--navy-accent);background:#fff}
.btn-line:hover{border-color:var(--gold)}

.footer{background:var(--navy-deep);color:rgba(255,255,255,.55);text-align:center;font-size:.75rem;padding:1.25rem 1rem}
.footer a{color:var(--gold-light);text-decoration:none}

@media(max-width:680px){
  .topics{grid-template-columns:1fr}
  .hero{padding:2.25rem 1rem 2rem}
  .main{padding:2rem 1rem 2.5rem}
  .article p{font-size:1rem}
  .top-links .hide-sm{display:none}
}
