.family-page {
  --hero-sand:#eee0c7;
  --warm-line:#cdb895;
  --type-brown:#503c2a;
  background:var(--paper);
  color:var(--text);
}
.family-container {width:min(1104px,88%);margin-inline:auto}
.family-page :is(figure,blockquote,dl,dd) {margin:0}
.family-page :is(h1,h2,h3) {color:var(--ink);font-family:var(--font-heading);font-weight:700;text-wrap:balance}
.family-page figcaption {font-family:var(--font-ui);color:var(--muted)}
.family-page .eyebrow,.place-line {color:var(--ochre);font:700 13px/1.75 var(--font-ui);margin:0}
.family-page [id] {scroll-margin-top:20px}
.family-page :is(summary,button,a):focus-visible {outline:3px solid var(--ochre);outline-offset:4px}
.family-page :is(summary,button,a) {-webkit-tap-highlight-color:transparent}
.visually-hidden {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.reading-progress {display:none}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion:no-preference) {
    .reading-progress {display:block;position:fixed;inset:0 0 auto;z-index:10;height:2px;pointer-events:none;background:#9b7444;transform-origin:right;animation:reading linear both;animation-timeline:scroll(root block)}
    @keyframes reading {from{transform:scaleX(0)}to{transform:scaleX(1)}}
  }
}

.family-header,.family-hero {background:var(--hero-sand)}
.header-rule {display:flex;align-items:center;gap:10px;min-height:70px;color:var(--type-brown);font:700 13px/1.6 var(--font-ui)}
.header-rule::after {content:"";flex:1;height:1px;background:var(--warm-line);margin-inline-start:10px}
.mosque-mark {width:32px;height:37px;display:grid;place-items:center;color:var(--ink);flex:none}
.mosque-art {width:31px;height:26px;position:relative;display:block;direction:ltr}
.mosque-art i {position:absolute;display:block;background:currentColor}
.mosque-art .minaret {left:1px;bottom:2px;width:7px;height:23px;clip-path:polygon(50% 0,96% 22%,86% 34%,86% 39%,100% 39%,100% 47%,84% 47%,84% 100%,14% 100%,14% 47%,0 47%,0 39%,12% 39%,12% 34%,4% 22%)}
.mosque-art .dome {left:10px;bottom:12px;width:19px;height:12px;clip-path:polygon(50% 0,64% 20%,84% 35%,95% 58%,100% 82%,96% 100%,4% 100%,0 82%,4% 60%,16% 37%,36% 21%)}
.mosque-art .prayer-hall {left:10px;bottom:2px;width:19px;height:8px;border-radius:1px}
.mosque-art .prayer-hall::after {content:"";position:absolute;bottom:0;left:7px;width:5px;height:6px;background:var(--hero-sand);border-radius:5px 5px 0 0}
.family-hero {border-bottom:1px solid var(--warm-line)}
.hero-spread {display:grid;grid-template-columns:minmax(0,0.92fr) minmax(0,1.08fr);grid-template-areas:"title photo" "dedication photo";gap:17px clamp(30px,5.2vw,76px);align-content:center;padding:clamp(26px,4vw,58px) 0 clamp(48px,6.7vw,94px)}
.hero-title {grid-area:title;align-self:end}
.hero-title h1 {font-size:clamp(56px,6.2vw,86px);line-height:1.16;margin:0 0 18px}
.hero-title h1 span {display:block;color:var(--type-brown)}
.hero-kin {max-width:37ch;font-size:clamp(18px,1.65vw,22px);line-height:1.9;margin:0}
.hero-kin strong {color:var(--ink)}
.hero-dedication {grid-area:dedication;align-self:start;max-width:46ch;margin:0;padding-inline-start:15px;border-inline-start:2px solid #aa8351;color:var(--type-brown);font-size:clamp(16px,1.38vw,19px);line-height:1.85}
.hero-dedication strong {color:var(--type-brown)}
.archive-cover {grid-area:photo;align-self:center;width:100%;padding:8px 8px 0;background:#fcf7ea;border:1px solid #cdb894;box-shadow:5px 6px 0 #dccaab;transform:rotate(-1deg)}
.archive-window {border:1px solid #d8c5a6}
.archive-window img {display:block;width:100%;height:auto}
.archive-cover figcaption,.scene-photo figcaption {display:flex;align-items:baseline;justify-content:space-between;gap:9px;font-size:12px;line-height:1.7}
.archive-cover figcaption {padding:11px 4px;color:var(--type-brown)}
.archive-cover figcaption span {display:flex;align-items:center;gap:6px}

.story-region {padding:clamp(46px,6vw,90px) 0 clamp(40px,5vw,80px)}
.story-lead {margin-bottom:clamp(8px,1.5vw,21px)}
.story-lead .eyebrow,.fund-intro .eyebrow,.message-writing .eyebrow {display:flex;align-items:center;gap:10px}
.story-lead .eyebrow::before,.fund-intro .eyebrow::before,.message-writing .eyebrow::before {content:"";width:27px;height:2px;background:var(--warm-line)}
.story-lead h2,.fund-intro h2,.message-writing h2 {font-size:clamp(36px,4.2vw,57px);line-height:1.38;margin:8px 0 0}
.story-scene {position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);grid-template-areas:"writing image";align-items:center;gap:clamp(32px,6.3vw,98px);padding:clamp(38px,5.1vw,76px) 0;border-top:1px solid var(--line)}
.scene-makkah {border-top:0}
.scene-shop,.scene-son {grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);grid-template-areas:"image writing"}
.scene-writing {grid-area:writing}
.place-line {font-size:12px;display:flex;align-items:center;gap:9px;color:var(--ochre)}
.place-line::before {content:"";width:7px;height:7px;border:1px solid #967044;transform:rotate(45deg);flex:none}
.scene-writing h3 {margin:7px 0 13px;font-size:clamp(30px,3.35vw,45px);line-height:1.4}
.scene-writing p:not(.place-line),.message-writing p:not(.eyebrow),.fund-intro p:not(.eyebrow) {margin:0;font-size:clamp(16px,1.48vw,19px);line-height:1.96}
.scene-writing p+p:not(.place-line),.message-writing p+p {margin-top:9px}
.scene-writing strong {color:var(--ink)}

.scene-photo {grid-area:image;width:100%;justify-self:center}
.photo-print {padding:6px;background:#fffaf0;border:1px solid var(--line)}
.photo-print img {display:block;width:100%;height:auto}
.scene-photo figcaption {padding:9px 1px 0}
.scene-shop .scene-photo {max-width:382px}
.scene-son .scene-photo {max-width:306px}
.scene-son .photo-print {padding:8px}
.journey-route {display:flex;list-style:none;max-width:345px;gap:0;padding:0;margin:20px 0 0;color:var(--type-brown);font-size:12px}
.journey-route li {position:relative;flex:1;text-align:center;padding-top:17px}
.journey-route li::before {content:"";position:absolute;z-index:1;top:3px;left:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:var(--ochre);box-shadow:0 0 0 3px var(--paper)}
.journey-route li:not(:last-child)::after {content:"";position:absolute;top:5px;right:50%;width:100%;height:1px;transform-origin:right;background:#a78556}




.birr-region {background:#f0e6d5;border-block:1px solid var(--line);padding:clamp(40px,5.5vw,78px) 0}
.birr-spread {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);align-items:center;gap:clamp(34px,8vw,112px)}
.message-writing h2 {margin:8px 0 15px;max-width:16ch}
.hadith {border-inline-start:1px solid #b99d71;padding:5px clamp(22px,3.5vw,48px) 5px 0}
.quote-flourish {height:30px;display:block;color:#a88351;font:700 48px/.95 var(--font-heading)}
.hadith p {margin:10px 0 0;color:var(--muted);font:13px/1.8 var(--font-ui)}
.hadith blockquote {color:var(--ink);font:700 clamp(25px,2.7vw,37px)/1.8 var(--font-heading);margin:7px 0}

.fund-region {padding:clamp(48px,7vw,105px) 0 clamp(52px,6vw,90px)}
.fund-container {width:min(780px,88%);margin-inline:auto}
.fund-intro {text-align:center;margin:0 auto 26px}
.fund-intro .eyebrow {justify-content:center}
.fund-intro .eyebrow::after {content:"";width:27px;height:2px;background:var(--warm-line)}
.fund-intro h2 {font-size:clamp(32px,3.7vw,49px);margin-bottom:13px}
.fund-intro p:not(.eyebrow) {max-width:56ch;margin-inline:auto;color:var(--muted)}
.fund-card {border-radius:18px;border:1px solid var(--warm-line);background:var(--surface);padding:clamp(21px,4vw,44px);box-shadow:0 5px 0 #ede2cf}
.fund-main {display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px}
.total-received {min-width:0}
.total-received p {margin:0 0 5px;color:var(--muted);font-size:16px}
.total-received>strong {display:block;color:var(--ink);font:700 clamp(40px,5vw,67px)/1.35 var(--font-heading)}
.total-received small,.fund-totals small,.fund-extras small {font:400 .37em/1.4 var(--font-ui);white-space:nowrap}
.fund-ring {position:relative;width:clamp(112px,12vw,146px);aspect-ratio:1;flex:none;color:var(--ink)}
.fund-ring svg {display:block;width:100%;height:100%;overflow:visible}
.fund-ring circle {fill:none;stroke-width:7}
.ring-track {stroke:#e8dcc6}
.ring-arc {stroke:#386451;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:var(--arc-offset)}
.ring-center {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px}
.ring-center strong {font:700 clamp(24px,2.9vw,38px)/1.22 var(--font-heading)}
.ring-center span {color:var(--muted);font-size:12px}
.fund-totals {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:19px 0 21px;border-block:1px solid var(--line)}
.fund-totals>div+div {border-inline-start:1px solid var(--line);padding-inline-start:clamp(15px,5vw,58px)}
.fund-totals dt {color:var(--muted);font-size:14px}
.fund-totals dd {color:var(--type-brown);font:700 clamp(27px,3.2vw,41px)/1.65 var(--font-heading);overflow-wrap:anywhere}
.fund-totals .balance dd {color:var(--ochre)}
.fund-totals small {font-size:.44em}
.mosque-funding-note {display:flex;align-items:flex-start;gap:9px;margin-top:16px;padding:10px 14px;background:var(--wash);border-inline-start:2px solid var(--warm-line);border-radius:4px;color:var(--type-brown)}
.mosque-funding-note svg {flex:none;margin-top:4px;color:var(--ochre)}
.mosque-funding-note p {margin:0;font-size:13px;line-height:1.9}
.mosque-funding-note strong {white-space:nowrap}
.mosque-funding-note small {font:inherit}
.fund-extras>div {display:flex;align-items:baseline;justify-content:space-between;gap:6px 18px}
.fund-extras dt {font-size:15px}
.fund-extras dd {color:var(--ink);font-size:16px;font-weight:700}
.fund-extras {margin-top:10px;border-top:1px solid var(--line);padding-top:7px}
.fund-extras small {font-size:12px}
.fund-note {font-size:13px;color:var(--muted);margin:12px 0 0}
.giving-action {margin-top:18px}
.giving-action summary {cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:11px 16px;border:1px solid var(--ink);border-radius:9px;background:var(--ink);color:var(--on-ink);font:700 17px/1.7 var(--font-ui);list-style:none}
.giving-action summary::-webkit-details-marker {display:none}
.giving-action summary:hover {background:#2a5242}
.giving-action summary>svg:first-child {color:#e4c692}
.giving-arrow {margin-inline-start:2px}
.giving-action[open] .giving-arrow {transform:rotate(180deg)}
.bank-card {border:1px solid var(--line);border-radius:9px;background:var(--paper);margin-top:12px;padding:clamp(16px,3vw,25px);display:grid;gap:17px}
.bank-head {display:flex;align-items:center;gap:8px}
.bank-icon {display:grid;place-items:center;color:var(--ochre)}
.bank-head h3 {font-size:24px;margin:0}
.account-lines {display:grid;gap:4px;padding-top:9px}
.account-lines>div {display:flex;gap:5px 14px;align-items:baseline}
.account-lines dt,.iban-box>span {color:var(--muted);font-size:13px}
.account-lines dt {min-width:55px}
.account-lines dd {font-size:15px}
.bank-action {display:flex;align-items:center;flex-wrap:wrap;gap:11px 16px;padding-top:13px;border-top:1px solid var(--line)}
.iban-box {flex:1;min-width:0}
.iban-box>span {display:block}
.iban-code {display:inline-block;color:var(--ink);font:700 clamp(14px,2vw,21px)/1.8 var(--font-ui);white-space:nowrap;user-select:all}
.bank-copy,.official-link {display:inline-flex;align-items:center;justify-content:center;min-height:44px;gap:6px;color:var(--ink);font:700 13px/1.6 var(--font-ui)}
.bank-copy {background:var(--surface);border:1px solid var(--warm-line);border-radius:7px;padding:7px 11px;cursor:pointer}
.official-link {flex-basis:100%;justify-content:start;text-decoration:underline;text-underline-offset:4px}
.copy-manual {flex-basis:100%;font-size:13px;margin:0}
@media (prefers-reduced-motion:no-preference) {
  .giving-arrow,.bank-copy,.giving-action summary {transition:background-color .18s,transform .2s}
  .story-scene.is-in-view .photo-print {animation:unfold-print .65s ease-out both}
  @keyframes unfold-print {from{transform:translateY(8px);opacity:.78}to{transform:translateY(0);opacity:1}}
  .scene-makkah.is-in-view .journey-route li:not(:last-child)::after {animation:route-line .65s ease-out both}
  .scene-makkah.is-in-view .journey-route li:nth-child(2)::after {animation-delay:.35s}
  @keyframes route-line {from{transform:scaleX(0)}to{transform:scaleX(1)}}
  .fund-card.is-in-view .ring-arc {animation:fill-funds .8s ease-out both}
  @keyframes fill-funds {from{stroke-dashoffset:100}to{stroke-dashoffset:var(--arc-offset)}}
}
@media (max-width:800px) {
  .family-container,.fund-container {width:90%}
  .hero-spread {column-gap:26px}
  .hero-title h1 {font-size:clamp(45px,7vw,56px)}
  .hero-kin {font-size:17px}
  .story-scene,.birr-spread {column-gap:30px}
}
@media (max-width:650px) {
  .family-container,.fund-container {width:calc(100% - 38px)}
  .header-rule {min-height:52px;font-size:12px;gap:6px}
  .header-rule::after {margin-inline-start:7px}
  .mosque-mark {width:28px}
  .mosque-art {transform:scale(.85)}
  .hero-spread {grid-template-areas:"title" "photo" "dedication";grid-template-columns:minmax(0,1fr);gap:18px;padding:17px 0 29px}
  .hero-title,.archive-cover,.hero-dedication {width:100%;max-width:510px;justify-self:center}
  .hero-title h1 {font-size:clamp(34px,8.6vw,50px);line-height:1.4;margin-bottom:6px}
  .hero-title h1 span {display:inline-block}
  .hero-kin {font-size:clamp(15px,3.8vw,18px);line-height:1.8;max-width:none}
  .archive-cover {transform:none;padding:5px 5px 0;box-shadow:3px 4px 0 #dccaab}
  .archive-cover figcaption {font-size:11px;padding:7px 1px}
  .archive-cover figcaption span {gap:4px}
  .hero-dedication {font-size:15px;line-height:1.85;padding-inline-start:12px}
  .story-region {padding:38px 0 35px}
  .story-lead h2,.message-writing h2 {font-size:clamp(32px,7.8vw,43px)}
  .story-lead {margin:0}
  .story-scene {grid-template-columns:minmax(0,1fr);grid-template-areas:"writing" "image";gap:17px;padding:30px 0}
  .scene-makkah {padding-top:21px}
  .scene-writing h3 {font-size:clamp(25px,6.2vw,33px);margin:5px 0 8px}
  .scene-writing p:not(.place-line),.message-writing p:not(.eyebrow),.fund-intro p:not(.eyebrow) {font-size:16px;line-height:1.9}
  .eyebrow,.place-line,.family-page .eyebrow {font-size:12px}

  .journey-route {margin-top:13px}
  .scene-photo {max-width:465px}
  .scene-shop .scene-photo {max-width:320px}
  .scene-son .scene-photo {max-width:260px}
  .scene-photo figcaption {font-size:11px;padding-top:6px}
  .birr-spread {grid-template-columns:minmax(0,1fr);gap:22px}
  .message-writing h2 {max-width:none;margin:5px 0 9px}
  .hadith {padding:0 16px 0 0}
  .quote-flourish {height:21px;font-size:40px}
  .hadith p {font-size:12px}
  .hadith blockquote {font-size:26px;margin:3px 0}
  .fund-region {padding:38px 0 45px}
  .fund-intro {margin-bottom:18px}
  .fund-intro h2 {font-size:clamp(27px,6.8vw,37px);margin-bottom:8px}
  .fund-card {padding:18px;border-radius:13px}
  .fund-main {gap:6px;padding-bottom:14px}
  .fund-ring {width:clamp(82px,24vw,115px)}
  .ring-center {gap:1px}
  .ring-center strong {font-size:clamp(21px,5.6vw,29px)}
  .ring-center span {font-size:10px}
  .total-received p {font-size:12px;margin-bottom:3px}
  .total-received>strong {font-size:clamp(31px,8.6vw,45px)}
  .fund-totals {padding:12px 0}
  .fund-totals dt {font-size:12px}
  .fund-totals dd {font-size:clamp(22px,5.7vw,30px)}
  .fund-totals>div+div {padding-inline-start:13px}
  .mosque-funding-note {margin-top:12px;padding:8px 10px;gap:6px}
  .mosque-funding-note p {font-size:12px}
  .fund-extras dt {font-size:14px}
  .fund-extras dd {font-size:15px}
  .giving-action {margin-top:13px}
  .giving-action summary {min-height:52px;font-size:15px}
  .bank-card {padding:13px;gap:8px}
  .bank-action {display:block;padding-top:8px}
  .bank-copy {margin-top:5px}
  .account-lines>div {display:block}
  .account-lines dd {font-size:14px}
  .iban-code {font-size:clamp(12px,3.3vw,15px)}
}
@media (max-width:350px) {
  .family-container,.fund-container {width:calc(100% - 26px)}
  .fund-card {padding:13px}
  .archive-cover figcaption {font-size:10px}
  .fund-totals>div+div {padding-inline-start:9px}
  .fund-totals dt {font-size:11px}
}
