/* The Shifa Institute website. Shared layout and components.
   Brand tokens (colors, type families, lattice, star, arch) live in shifa.css.
   Theme: plain navy throughout, with a darker band for the statistics. */

html { scroll-padding-top: 96px; background: var(--navy); }
.night { background-image: none; }
body { overflow-x: clip; font-size: 17px; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -.015em; line-height: 1.14; }
.lede { font-family: var(--sans); font-weight: 400; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.btn { border-radius: 10px; padding: 13px 22px; min-height: 48px; font-size: 16px; }
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--ice); color: var(--midnight); }
.btn-light:hover { background: #fff; }
a { text-underline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--midnight); padding: 10px 16px; border-radius: 8px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--midnight); border-bottom: 1px solid var(--line-light); color: var(--ice); }
.utility { border-bottom: 1px solid var(--line-light); font-size: 14px; color: var(--periwinkle); }
.utility .wrap { display: flex; justify-content: flex-end; gap: 8px 22px; padding-block: 7px; flex-wrap: wrap; }
.utility a { color: var(--ice); font-weight: 500; }
.site-header .bar { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 42px; width: auto; }
.brand b { font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { text-decoration: none; font-size: 16px; color: var(--mist); white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.site-nav .nav-donate-m { display: none; }
.menu-btn { display: none; background: none; border: 1px solid rgba(203, 212, 236, .4); border-radius: 10px; color: var(--ice); padding: 0 16px; min-height: 44px; font-size: 15px; }

@media (max-width: 900px) {
  .utility .wrap { justify-content: center; text-align: center; }
  .site-header .bar { height: 62px; gap: 12px; }
  .brand img { height: 36px; }
  .brand b { font-size: 17px; }
  .menu-btn { display: block; }
  .header-donate { display: none; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--midnight); border-bottom: 1px solid var(--line-light); flex-direction: column; gap: 0; padding: 4px 20px 24px; }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 21px; font-weight: 500; color: var(--ice); padding: 16px 0; border-bottom: 1px solid var(--line-light); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line-light); color: var(--gold); }
  .site-nav .nav-donate-m { display: inline-flex; align-self: flex-start; margin-top: 20px; font-size: 16px; color: var(--midnight); border-bottom: 0; padding: 13px 22px; }
}

/* ---------- Sections ---------- */
.sec { padding: clamp(64px, 8vw, 112px) 0; }
.sec-tight { padding: clamp(40px, 5vw, 64px) 0; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); color: #fff; }
.sec-intro { max-width: 62ch; color: var(--mist); margin-top: 16px; }
.band-light { background: var(--mist); color: var(--midnight); }
.band-light .h2 { color: var(--midnight); }
.band-light .sec-intro { color: var(--navy); }
.source { font-size: 13.5px; color: var(--periwinkle); line-height: 1.5; }
.text-link { color: var(--ice); font-weight: 500; text-decoration-thickness: 1px; }
.band-light .text-link, .on-white .text-link { color: var(--navy-2); }
.rule { border: 0; border-top: 1px solid var(--line-light); margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 5.5vw, 84px) 0 clamp(56px, 7vw, 100px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.hero h1 { font-size: clamp(36px, 4.5vw, 62px); color: #fff; max-width: 15ch; }
.hero .lede { max-width: 44ch; margin-top: 22px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.stage { position: relative; padding: 0 0 52px 40px; }
.frame { position: relative; aspect-ratio: 5 / 4; border-radius: 200px 200px 14px 14px; overflow: hidden; background: var(--navy-2);
  box-shadow: 0 0 0 1px rgba(233, 239, 248, .5), 0 0 0 10px var(--navy), 0 0 0 11px rgba(233, 239, 248, .5), 0 40px 60px -30px rgba(8, 12, 28, .8); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.frame img.on { opacity: 1; }
.frame-dots { position: absolute; right: 0; bottom: 4px; display: flex; }
.frame-dots button { width: 44px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.frame-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--mist); transition: background .2s; }
.frame-dots button[aria-pressed="true"]::before { background: var(--gold); border-color: var(--gold); }
.float-arch { position: absolute; left: 0; bottom: 0; width: 33%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--navy-2);
  box-shadow: 0 0 0 1px rgba(233, 239, 248, .5), 0 0 0 7px var(--navy), 0 0 0 8px rgba(233, 239, 248, .5), 0 24px 40px -18px rgba(8, 12, 28, .9); }
.float-arch img { width: 100%; height: 100%; object-fit: cover; }
/* Emblem in the small arch: white mark on a slightly lighter navy */
.float-arch.emblem { display: grid; place-items: center; background: var(--navy-2); }
.emblem-mark { width: 56%; aspect-ratio: 343 / 400; margin-top: 4%; background: url(../img/logos/shifa-mark-white.png) center / contain no-repeat; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { padding: 0 0 40px 26px; max-width: 520px; }
  .frame { border-radius: 150px 150px 12px 12px; }
}

/* Facts row under the hero */
.facts-row { background: var(--midnight); border-block: 1px solid var(--line-light); }
.facts-row ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-row li { padding: 22px 24px; font-size: 16px; color: var(--mist); }
.facts-row li + li { border-left: 1px solid var(--line-light); }
.facts-row b { display: block; color: #fff; font-weight: 600; font-size: 18px; }
@media (max-width: 760px) { .facts-row ul { grid-template-columns: minmax(0, 1fr); } .facts-row li { padding: 16px 0; } .facts-row li + li { border-left: 0; border-top: 1px solid var(--line-light); } }

/* ---------- Who we are ---------- */
.who { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.who .statement { font-size: clamp(24px, 2.7vw, 36px); font-weight: 500; line-height: 1.28; letter-spacing: -.015em; color: #fff; }
.who .side p { color: var(--mist); }
.who .side p + p { margin-top: 16px; }
.who .side .btn { margin-top: 26px; }
@media (max-width: 860px) { .who { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Chapter emblems (always on white) ---------- */
.emblems { list-style: none; margin: 0; padding: clamp(18px, 2.4vw, 26px) clamp(20px, 4vw, 48px); display: flex; align-items: center; justify-content: center; gap: 22px clamp(18px, 3vw, 40px); flex-wrap: wrap; background: #fff; border-radius: var(--r-lg); }
.emblems img { height: 82px; width: auto; }
.emblems a { display: block; border-radius: 8px; }
@media (max-width: 760px) { .emblems img { height: 64px; } }

/* ---------- Photo row ---------- */
.photos-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.row-nav { display: flex; gap: 8px; }
.row-nav button { width: 48px; height: 48px; border-radius: 10px; border: 1px solid rgba(203, 212, 236, .4); background: none; color: var(--ice); font-size: 20px; line-height: 1; transition: border-color .2s, background .2s; }
.row-nav button:hover { border-color: var(--ice); background: rgba(169, 182, 222, .1); }
.photo-row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px max(20px, calc((100vw - var(--wrap)) / 2)) 18px; scrollbar-width: thin; scrollbar-color: var(--harbor) transparent; }
.photo-row img { height: clamp(220px, 25vw, 330px); width: auto; flex: none; border-radius: var(--r); scroll-snap-align: center; background: var(--navy-2); }
@media (max-width: 620px) { .row-nav { display: none; } }

/* ---------- Social ---------- */
.social { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.social-copy p { margin: 14px 0 24px; max-width: 34ch; color: var(--mist); }
.ig-feed { background: #fff; border-radius: var(--r-lg); padding: 12px; min-height: 260px; position: relative; }
.ig-feed iframe { display: block; width: 100%; border: 0; min-height: 240px; border-radius: 12px; position: relative; z-index: 1; }
.ig-fallback { position: absolute; inset: 12px; text-align: center; color: var(--ink-soft); font-size: 16px; padding: 90px 20px 20px; }
.ig-fallback a { color: var(--navy-2); }
@media (max-width: 860px) { .social { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Statistics ---------- */
.stats { background: var(--midnight); }
.stats-inner { padding: clamp(64px, 8vw, 112px) 0; }
.stat-head { max-width: 800px; }
.stat-main { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); margin-top: clamp(40px, 5vw, 64px); align-items: center; }
.twice b { font-size: clamp(96px, 14vw, 190px); line-height: .9; color: #fff; display: block; }
.twice p { color: var(--mist); font-size: 18px; max-width: 34ch; margin-top: 18px; }
.bars { margin: 0; }
.bars figcaption { font-size: 18px; font-weight: 500; color: #fff; margin-bottom: 20px; line-height: 1.35; }
.bar-row { display: grid; grid-template-columns: 104px 1fr 64px; gap: 14px; align-items: center; padding: 9px 0; font-size: 16px; color: var(--mist); }
.bar-row .track { height: 30px; position: relative; }
.bar-row .fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / 8 * 100%); background: var(--periwinkle); border-radius: 4px; transform-origin: left; transition: transform .6s ease-out; }
.js .bars:not(.in) .fill { transform: scaleX(0); }
.bar-row.lead { color: #fff; font-weight: 500; }
.bar-row.lead .fill { background: var(--gold); }
.bar-row .n { font-size: 22px; text-align: right; color: #fff; }
.bars .source { display: block; margin-top: 18px; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line-light); }
.fact { padding: 28px 36px 4px 0; }
.fact + .fact { padding: 28px 0 4px 36px; border-left: 1px solid var(--line-light); }
.fact p { color: var(--mist); }
.fact .source { display: block; margin-top: 12px; }
@media (max-width: 900px) {
  .stat-main { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact + .fact { padding: 24px 0 4px; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line-light); margin-top: 20px; }
  .bar-row { grid-template-columns: 86px 1fr 56px; }
}

/* ---------- Support ---------- */
.support { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.support > * { min-width: 0; }
.crisis { background: var(--midnight); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); }
.crisis h2, .crisis h3 { font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--periwinkle); }
.crisis .big { font-size: clamp(84px, 10vw, 124px); line-height: .95; color: #fff; display: block; margin: 8px 0 14px; }
.crisis p { color: var(--mist); }
.crisis .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.support-list > p { color: var(--mist); max-width: 56ch; margin: 14px 0 22px; }
.res-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.res-rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 18px 4px; border-bottom: 1px solid var(--line-light); text-decoration: none; transition: background .2s; }
.res-rows a:hover { background: rgba(169, 182, 222, .1); }
.res-rows b { font-weight: 600; font-size: 19px; color: #fff; overflow-wrap: anywhere; }
.res-rows .who-for { font-size: 14px; color: var(--periwinkle); align-self: center; white-space: nowrap; }
.res-rows .d { grid-column: 1 / -1; font-size: 16px; color: var(--mist); max-width: 62ch; }
@media (max-width: 860px) { .support { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .res-rows a { grid-template-columns: minmax(0, 1fr); } .res-rows .who-for { order: -1; white-space: normal; } }

/* ---------- Press ---------- */
.press { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 34px; }
.press-card { display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); text-decoration: none; border: 2px solid transparent; transition: border-color .2s; }
.press-card:hover { border-color: var(--gold); }
.press-card .outlet { font-weight: 600; font-size: 15px; color: var(--navy-2); letter-spacing: .02em; }
.press-card .outlet { display: flex; align-items: center; gap: 14px; }
.press-card .outlet img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; flex: none; }
.press-card h3 { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.22; margin: 14px 0 12px; color: var(--midnight); }
.press-card .by { font-size: 14.5px; color: var(--harbor); }
.press-card p { font-size: 16px; color: var(--ink-soft); margin-top: 12px; font-style: italic; }
.press-card .go { margin-top: auto; padding-top: 22px; font-weight: 500; color: var(--navy-2); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) { .press { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Closing band and footer ---------- */
.closing { padding: clamp(64px, 8vw, 104px) 0; background: var(--midnight); border-top: 1px solid var(--line-light); }
.closing .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(28px, 3.4vw, 44px); color: #fff; max-width: 20ch; }
.closing p { color: var(--mist); margin-top: 12px; max-width: 48ch; }

.site-footer { padding: 56px 0 36px; background: var(--midnight); border-top: 1px solid var(--line-light); color: var(--mist); }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .f-brand img { height: 54px; width: auto; margin-bottom: 16px; }
.site-footer p { font-size: 15.5px; max-width: 36ch; }
.site-footer h2 { font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--periwinkle); margin-bottom: 12px; }
.site-footer .cols a { display: block; text-decoration: none; color: var(--ice); font-size: 16px; padding: 6px 0; }
.site-footer .cols a:hover { text-decoration: underline; }
.site-footer .fine { border-top: 1px solid var(--line-light); margin-top: 40px; padding-top: 22px; font-size: 14px; color: var(--periwinkle); display: flex; gap: 12px 28px; flex-wrap: wrap; justify-content: space-between; line-height: 1.55; }
.site-footer .fine p { font-size: inherit; max-width: 72ch; }
.site-footer .fine nav { display: flex; gap: 20px; }
.site-footer .fine a { color: var(--ice); }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .f-brand { grid-column: 1 / -1; } }

/* ---------- Inner page header ---------- */
.page-head { padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-light); }
.page-head h1 { font-size: clamp(40px, 5.4vw, 72px); color: #fff; }
.page-head .lede { max-width: 56ch; margin-top: 18px; }

/* ---------- Donate ---------- */
.give { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.give > * { min-width: 0; }
.plain-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line-light); }
.plain-list li { padding: 18px 0; border-bottom: 1px solid var(--line-light); font-size: 18px; color: var(--ice); }
.give .note { font-size: 15.5px; color: var(--mist); margin-top: 22px; max-width: 50ch; }
.give-form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); }
.give-form h2 { font-size: 26px; margin-bottom: 6px; color: var(--midnight); }
.give-form > p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 18px; }
.give-form .dbox { display: block; width: 100%; max-width: 500px; min-width: 250px; border: 0; margin-inline: auto; }
.give-form .fallback { margin-top: 16px; }
.methods > .wrap > p { max-width: 56ch; margin-top: 14px; color: var(--mist); }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(169, 182, 222, .14); margin-top: 28px; }
.tabs button { border: 0; background: transparent; border-radius: 8px; padding: 0 22px; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--ice); transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--ice); color: var(--midnight); }
.method { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: center; margin-top: 24px; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); max-width: 840px; }
.method[hidden] { display: none; }
.method img { width: 100%; height: auto; }
.method h3 { font-size: 28px; margin-bottom: 10px; color: var(--midnight); }
.method p { color: var(--ink-soft); max-width: 44ch; }
.method p + p { margin-top: 10px; }
.method .btn { margin-top: 20px; }
.method .handle { font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .give { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .method { grid-template-columns: minmax(0, 1fr); } .method img { max-width: 230px; } .tabs button { padding: 0 16px; } }

/* ---------- Simple message page ---------- */
.message { min-height: 52vh; display: grid; align-items: center; padding: clamp(72px, 10vw, 130px) 0; }
.message h1 { font-size: clamp(38px, 5.4vw, 68px); color: #fff; max-width: 16ch; }
.message p { color: var(--mist); max-width: 56ch; margin-top: 20px; font-size: 18px; }
.message .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Student Chapters ---------- */
.chapter-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.chapter { grid-column: span 2; background: var(--midnight); border: 1px solid var(--line-light); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 110px; }
.chapter .emblem { background: #fff; display: grid; place-items: center; height: 230px; padding: 24px; }
.chapter .emblem img { height: 170px; width: auto; max-width: 100%; object-fit: contain; }
.chapter .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.chapter h3 { font-size: 23px; color: #fff; }
.chapter .school { color: var(--mist); }
.chapter .ig { margin-top: 14px; color: var(--ice); font-weight: 500; align-self: flex-start; padding: 6px 0; }
.chapter:target { border-color: var(--gold); }
@media (max-width: 900px) { .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chapter { grid-column: auto; } }
@media (max-width: 560px) { .chapter-grid { grid-template-columns: minmax(0, 1fr); } }
.start-chapter { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; scroll-margin-top: 110px; }
.start-chapter h2 { max-width: 22ch; }

/* ---------- About ---------- */
.prose { max-width: 68ch; }
.prose p { color: var(--mist); font-size: 18px; line-height: 1.65; }
.prose p + p { margin-top: 20px; }
.prose .fineprint { font-size: 15.5px; color: var(--periwinkle); }
.split { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); gap: clamp(20px, 5vw, 72px); align-items: start; }
.split > .h2 { position: sticky; top: 130px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split > .h2 { position: static; } }
.people { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.people li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 24px; flex-wrap: wrap; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.people b { font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; color: #fff; }
.people span { color: var(--mist); }
.people + h3 { margin-top: 48px; }
.sub { font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--periwinkle); margin-bottom: 14px; }
.venues { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.venues li { border: 1px solid var(--line-light); border-radius: 10px; padding: 12px 18px; color: var(--ice); background: rgba(169, 182, 222, .07); }
.contact-card { background: var(--midnight); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); scroll-margin-top: 110px; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 28px; font-size: 18px; }
.contact-card dt { color: var(--periwinkle); }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }
.contact-card dd a { color: #fff; font-weight: 500; }
.contact-card .fineprint { margin-top: 22px; font-size: 15.5px; color: var(--periwinkle); }
@media (max-width: 520px) { .contact-card dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .contact-card dd { margin-bottom: 14px; } }

/* ---------- Resources directory ---------- */
.crisis-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.crisis-strip .crisis { padding: 24px 26px; }
.crisis-strip .crisis .big { font-size: 54px; margin: 6px 0 10px; }
.crisis-strip .crisis .mid { font-size: 26px; font-weight: 600; color: #fff; display: block; margin: 10px 0; line-height: 1.2; }
.crisis-strip .crisis p { font-size: 16px; }
.crisis-strip .crisis .cta { margin-top: 18px; }
@media (max-width: 900px) { .crisis-strip { grid-template-columns: minmax(0, 1fr); } }

.res-tools { position: sticky; top: 104px; z-index: 20; background: var(--midnight); border: 1px solid var(--line-light); border-radius: var(--r); padding: 16px; margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--periwinkle); margin-bottom: 6px; }
.field input, .field select { width: 100%; min-height: 48px; border-radius: 10px; border: 1px solid rgba(203, 212, 236, .4); background: var(--navy); color: #fff; font: inherit; font-size: 16px; padding: 0 14px; }
.field input::placeholder { color: var(--periwinkle); opacity: 1; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.res-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; min-height: 44px; color: var(--mist); }
.res-status button { background: none; border: 0; color: var(--ice); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 4px; font-size: 16px; }
.res-group { margin-top: 36px; }
.res-group > h3 { font-size: 24px; color: #fff; padding-bottom: 12px; border-bottom: 1px solid var(--line-light); }
.res-group > h3 span { font-weight: 400; color: var(--periwinkle); font-size: 17px; }
.res-cards { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.res-card { background: var(--midnight); border: 1px solid var(--line-light); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.res-card h4 { font-size: 21px; color: #fff; line-height: 1.2; overflow-wrap: anywhere; }
.res-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.res-tags span { font-size: 13.5px; padding: 3px 10px; border-radius: 6px; background: rgba(169, 182, 222, .14); color: var(--mist); }
.res-desc { color: var(--mist); }
.res-facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 16px; }
.res-facts dt { color: var(--periwinkle); }
.res-facts dd { margin: 0; color: var(--ice); overflow-wrap: anywhere; }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.res-check { font-size: 13.5px; color: var(--periwinkle); border-top: 1px solid var(--line-light); padding-top: 12px; line-height: 1.5; }
.res-check a { color: var(--ice); }
.res-empty { margin-top: 28px; padding: 32px; border: 1px dashed rgba(203, 212, 236, .4); border-radius: var(--r); color: var(--mist); }
.res-empty b { display: block; color: #fff; font-size: 20px; margin-bottom: 6px; }
@media (max-width: 1000px) { .res-tools { position: static; } }
@media (max-width: 760px) { .res-cards { grid-template-columns: minmax(0, 1fr); } }

.guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.guide h2 { margin-bottom: 18px; }
.guide details { border-bottom: 1px solid var(--line-light); }
.guide details:first-of-type { border-top: 1px solid var(--line-light); }
.guide summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 500; font-size: 18px; color: #fff; list-style: none; position: relative; min-height: 44px; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 300; color: var(--periwinkle); }
.guide details[open] summary::after { content: "\2212"; }
.guide details p { color: var(--mist); padding: 0 0 18px; max-width: 58ch; }
@media (max-width: 860px) { .guide { grid-template-columns: minmax(0, 1fr); } }
.report { color: var(--mist); max-width: 64ch; }

/* ---------- About: header photo, people, venues ---------- */
.about-head .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.about-head img { width: 100%; height: auto; border-radius: var(--r-lg); }
@media (max-width: 800px) { .about-head .wrap { grid-template-columns: minmax(0, 1fr); } }
.people-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.people-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--navy-2); }
.people-grid h3 { font-size: clamp(20px, 2vw, 24px); color: #fff; margin-top: 16px; }
.people-grid p { color: var(--mist); margin-top: 4px; }
@media (max-width: 620px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.venue-logos { list-style: none; margin: 32px 0 0; padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 48px); display: flex; align-items: center; justify-content: space-around; gap: 24px clamp(24px, 5vw, 72px); flex-wrap: wrap; background: #fff; border-radius: var(--r-lg); }
.venue-logos img { height: 110px; width: auto; max-width: 260px; object-fit: contain; }
@media (max-width: 620px) { .venue-logos img { height: 80px; max-width: 200px; } }

/* ---------- Resources: top row, language, right-to-left ---------- */
.res-top { padding-bottom: 0; }
.res-top-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); padding-bottom: 24px; border-bottom: 1px solid var(--line-light); }
.res-top-row h1 { font-size: clamp(40px, 5.4vw, 72px); color: #fff; }
.lang-field { min-width: 190px; }
.lang-note { background: rgba(216, 188, 106, .12); border: 1px solid rgba(216, 188, 106, .45); color: var(--ice); border-radius: 10px; padding: 14px 18px; margin-bottom: 28px; max-width: 80ch; font-size: 16px; }
.res-tools { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.res-tools .field-wide { grid-column: 1 / -1; }
.script-other, .script-other h1, .script-other h2, .script-other h3, .script-other h4, .script-other .btn, .script-other input, .script-other select { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Naskh Arabic", "Noto Nastaliq Urdu", "Noto Sans Devanagari", "Noto Sans Bengali", sans-serif; letter-spacing: 0; }
.script-other { line-height: 1.75; }
[lang="ar"].script-other, [lang="ar"].script-other h1, [lang="ar"].script-other h2, [lang="ar"].script-other h3, [lang="ar"].script-other h4, [lang="ar"].script-other .btn, [lang="ar"].script-other input, [lang="ar"].script-other select { font-family: "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif; }
[lang="ur"].script-other, [lang="ur"].script-other h1, [lang="ur"].script-other h2, [lang="ur"].script-other h3, [lang="ur"].script-other h4, [lang="ur"].script-other .btn, [lang="ur"].script-other input, [lang="ur"].script-other select { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Geeza Pro", "Segoe UI", "Noto Naskh Arabic", Tahoma, Arial, sans-serif; }
[lang="ur"].script-other { line-height: 2.1; }
[lang="ur"].script-other .btn, [lang="ur"].script-other select, [lang="ur"].script-other input { line-height: 1.9; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { line-height: 1.4; }
[dir="rtl"] .res-top-row h1 { font-size: clamp(36px, 4.6vw, 60px); }
.script-other .num { font-family: var(--display); }
[dir="rtl"] .guide summary { padding: 16px 0 16px 28px; }
[dir="rtl"] .guide summary::after { right: auto; left: 4px; }
[dir="rtl"] .res-top-row, [dir="rtl"] .res-status { direction: rtl; }
@media (max-width: 1000px) { .res-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.toc { border: 1px solid var(--line-light); border-radius: var(--r); padding: 22px 26px; margin: 28px 0 8px; background: var(--midnight); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 40px; }
.toc li { color: var(--periwinkle); break-inside: avoid; padding: 3px 0; }
@media (max-width: 700px) { .toc ol { columns: 1; } }
.legal h2 { scroll-margin-top: 120px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 74ch; }
.legal h2 { font-size: 25px; color: #fff; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--mist); line-height: 1.65; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--ice); }
.legal .updated { color: var(--periwinkle); font-size: 15.5px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .bars:not(.in) .fill { transform: none; }
  .photo-row { scroll-behavior: auto; }
}
