@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{color-scheme:light;--paper:#f5f4ee;--ink:#202d35;--muted:#627079;--line:#d9ded8;--navy:#18313e;--male:#4d7f91;--female:#d2ad65;--pale:#e9ede7;--white:#fffefa;--red:#a24e44;--green:#46745b;font-family:'DM Sans',Arial,sans-serif;font-size:15px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);line-height:1.55}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}button,a,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e4b653;outline-offset:4px}button:disabled{opacity:.4;cursor:default}h1,h2,h3,p{margin:0}h2{font-size:1.2rem;font-weight:600;letter-spacing:-.025em}h3{font-size:1rem}.small{font-size:.82rem;color:var(--muted)}.eyebrow,.step{font-size:.66rem;font-weight:700;letter-spacing:.13em}.eyebrow{color:var(--muted);margin-bottom:.6rem}.step{color:var(--muted)}.skip{position:absolute;top:-100px;left:15px;z-index:20;padding:10px;background:var(--white)}.skip:focus{top:10px}.masthead{height:84px;display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:0 5.5%;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:.75rem;font-weight:700;letter-spacing:.13em}.brand-mark{font-size:2.4rem;line-height:1;color:var(--male)}.brand-divider{height:20px;width:1px;background:var(--line);margin:0 8px}.brand-sub{font-size:.78rem;font-weight:400;letter-spacing:0;color:var(--muted)}.model-tag{font-size:.72rem;color:var(--muted)}main{max-width:1500px;margin:auto;padding:0 5.5%}.intro{padding:58px 0 48px;position:relative;display:grid;grid-template-columns:1.3fr 1fr;column-gap:50px;align-items:end}.intro>.eyebrow{grid-column:1/-1;margin-bottom:17px}.intro h1{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;font-size:clamp(3.5rem,5.5vw,5.5rem);line-height:.99;letter-spacing:-.035em}.intro h1 em{font-weight:400;color:var(--male)}.lede{max-width:360px;color:var(--muted);font-size:1rem;padding-bottom:5px;line-height:1.75}.workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:46px;align-items:start}.controls{background:var(--navy);color:#f3f6f4;border-radius:5px;padding:25px 24px}.control-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.control-heading h2{font-size:1rem}.control-heading .step{color:#9db0b7;font-size:.58rem}.controls fieldset{border:0;margin:0;padding:20px 0;border-top:1px solid #39505b;min-width:0}.controls legend{font-size:.77rem;font-weight:700;letter-spacing:.025em;float:left;width:100%;padding:0;margin-bottom:17px}.controls label{display:flex;align-items:baseline;justify-content:space-between;gap:15px;font-size:.75rem;color:#dce5e6;margin:12px 0 7px;clear:both}.controls output{white-space:nowrap;font-variant-numeric:tabular-nums;color:#fff;font-weight:600}.controls input[type=range]{width:100%;height:20px;padding:0;accent-color:#e2bf7c;margin:0 0 4px;cursor:pointer}.control-note{font-size:.69rem;line-height:1.6;color:#acbfc6;margin:8px 0 13px;clear:both}.control-note a{color:#e3c88f;text-underline-offset:3px}.controls select,.controls input[type=number]{width:100%;background:#25414e;color:#f6f8f7;border:1px solid #4a606a;border-radius:4px;padding:10px;font-size:.75rem;min-width:0}.controls select{padding-right:4px}.seed-row{display:flex;gap:8px}.seed-row input{flex:1;min-width:0}.button{border:0;border-radius:4px;padding:11px 16px;font-size:.75rem;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:18px;white-space:nowrap}.button.light{background:#e7e7dd;color:var(--navy);padding:10px;font-size:.69rem}.button.dark{background:var(--navy);color:#fff}.text-button{border:0;background:transparent;color:#bdcbd0;font-size:.69rem;padding:0;text-decoration:underline;text-underline-offset:4px;margin-top:14px}.results{min-width:0}.result-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:2px 0 23px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:18px}.hero-result{padding-bottom:27px}.status{display:flex;gap:7px;align-items:center;font-size:.66rem;color:var(--green);white-space:nowrap}.status>span{width:6px;height:6px;border-radius:50%;background:var(--green)}.split-numbers{display:flex;justify-content:space-between;padding:25px 0 20px;gap:20px}.split-numbers>div{display:flex;flex-direction:column}.series-name{display:flex;align-items:center;gap:8px;font-size:.79rem;font-weight:500}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex-shrink:0}.male{background:var(--male)}.female{background:var(--female)}.split-numbers strong{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;font-size:clamp(2.8rem,4.4vw,4.9rem);line-height:1.3;letter-spacing:-.04em;font-variant-numeric:lining-nums tabular-nums}.female-number{text-align:right;align-items:flex-end}.split-bar{height:10px;display:flex;overflow:hidden;border-radius:2px;gap:3px}.split-bar.big{height:28px;border-radius:2px;gap:5px}.split-bar span{display:block;height:100%;transition:width .25s ease}.hero-foot{display:flex;justify-content:space-between;align-items:flex-start;gap:25px;margin-top:18px}.hero-foot p:first-child{font-size:.84rem;font-weight:500}.hero-foot p:last-child{font-size:.69rem;text-align:right;color:var(--muted);line-height:1.55}.journey,.death-section,.family-section{border-top:1px solid var(--line);padding:27px 0}.stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:24px}.stage-title{font-size:.74rem;color:var(--muted);margin-bottom:12px}.stage-number{font-size:.9rem;font-weight:500;margin-bottom:8px;white-space:nowrap;font-variant-numeric:tabular-nums}.stage-number span{color:var(--muted);font-weight:400}.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:0 0 28px}.panel{background:var(--white);border:1px solid var(--line);border-radius:4px;padding:22px}.panel .eyebrow{font-size:.59rem;letter-spacing:.1em}.panel h2{font-size:1.05rem}.panel>p.small{margin-top:13px;line-height:1.65}.small-split{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:24px 0 12px}.small-split strong{font-size:1.5rem;font-weight:500;font-variant-numeric:tabular-nums}.small-split span{font-size:.61rem;color:var(--muted)}.effect-value{font-family:'Libre Caslon Display',Georgia,serif;font-size:2.8rem;line-height:1.1;margin:20px 0 9px;color:var(--green)}.comparison-line{font-size:.72rem;display:flex;justify-content:space-between;gap:15px;padding-top:11px}.comparison-line strong{font-weight:500}.death-bars{margin:23px 0 15px;display:grid;gap:12px}.death-row{display:grid;grid-template-columns:80px 1fr 75px;align-items:center;gap:15px;font-size:.75rem}.death-track{height:11px;background:#e3e7e2;border-radius:1px;overflow:hidden}.death-track span{display:block;height:100%;background:var(--male)}.death-row strong{text-align:right;font-size:.74rem;font-weight:500;font-variant-numeric:tabular-nums}.family-nav{display:flex;gap:7px;align-items:center}.family-nav button{width:29px;height:30px;border:1px solid var(--line);border-radius:3px;background:transparent;color:var(--ink)}.family-nav label{font-size:.68rem;display:flex;gap:7px;align-items:center}.family-nav input{width:59px;border:1px solid var(--line);background:var(--white);border-radius:3px;padding:5px;font-size:.75rem;color:var(--ink)}.family-caption{font-size:.77rem;color:var(--muted);margin:18px 0 24px}.generation-label{font-size:.58rem;font-weight:700;letter-spacing:.14em;color:var(--muted);margin:15px 0 9px}.eldest-pair{display:flex;gap:9px;max-width:370px;margin:auto}.person{border:1px solid #d7ddd6;border-radius:3px;display:flex;flex-direction:column;padding:9px 11px;min-width:0;flex:1;background:var(--paper);gap:2px}.person.inherits{background:#eef2ea;border-color:#c4d1c2}.person.deceased{border:1px dashed #b88176;background:#f2e7e1}.person-name{font-size:.64rem;font-weight:600;overflow-wrap:anywhere}.person-amount{font-size:.71rem;font-variant-numeric:tabular-nums}.person-sex{font-size:.57rem;color:var(--muted)}.branches{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:19px;margin-top:20px}.branch{padding-top:10px;border-top:2px solid #c9d3ce;min-width:0}.branch-label{font-size:.6rem;color:var(--muted);margin-bottom:10px}.couple{display:grid;grid-template-columns:1fr 1fr;gap:6px}.children{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.children .person{padding:7px 8px}.tree-key{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:19px;font-size:.62rem}.deceased-key{width:11px;height:11px;border:1px dashed #b88176;background:#f2e7e1}.receipt-key{width:11px;height:11px;border:1px solid #c4d1c2;background:#eef2ea;margin-left:8px}.tree-key>span:last-child{margin-left:auto}.notes{border-top:1px solid var(--line)}details{border-bottom:1px solid var(--line)}summary{padding:19px 0;cursor:pointer;font-size:.81rem;font-weight:500;list-style:none;display:flex;justify-content:space-between;align-items:center}summary::after{content:'+';font-size:1.2rem;font-weight:400}details[open] summary::after{content:'−'}summary::-webkit-details-marker{display:none}.details-content{font-size:.78rem;color:var(--muted);padding-bottom:21px}.details-content p+p{margin-top:12px}.details-content a{color:var(--male);text-underline-offset:3px}.details-content ul{padding-left:20px}.details-content li+li{margin-top:10px}.result-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:25px}.result-footer p{max-width:260px;font-size:.7rem}.page-footer{border-top:1px solid var(--line);margin-top:60px;padding:23px 0 30px;display:flex;justify-content:space-between;gap:20px;font-size:.7rem;color:var(--muted)}.page-footer>span{font-weight:700;font-size:.62rem;letter-spacing:.13em}#error{border:1px solid #c9988c;border-radius:4px;background:#f6e8e2;color:#8b3d31;padding:14px;font-size:.8rem;margin-bottom:20px}
@media(min-width:1500px){.masthead{padding:0 calc((100vw - 1335px)/2)}}@media(max-width:1100px){.workspace{grid-template-columns:270px minmax(0,1fr);gap:28px}.controls{padding:22px 19px}.panel{padding:18px}.comparison-grid{gap:12px}.section-top{align-items:flex-start}.status{font-size:.58rem}.stages{gap:13px}.intro{column-gap:30px}.brand-sub{display:none}}
@media(max-width:850px){.workspace{grid-template-columns:235px minmax(0,1fr);gap:23px}main{padding:0 4%}.masthead{padding:0 4%}.intro h1{font-size:4.4rem}.intro{grid-template-columns:1fr;padding-top:40px;gap:20px}.intro>.eyebrow{margin:0}.lede{max-width:500px}.comparison-grid{grid-template-columns:1fr}.stages{grid-template-columns:1fr;gap:15px}.stage{display:grid;grid-template-columns:1fr 1fr;column-gap:15px}.stage .split-bar{grid-column:1/-1}.stage-title,.stage-number{margin-bottom:6px}.stage-number{text-align:right}.split-numbers strong{font-size:3.6rem}.status{display:none}.result-header{align-items:flex-start;flex-direction:column;gap:8px}.hero-foot{flex-direction:column;gap:8px}.hero-foot p:last-child{text-align:left}.family-section>.section-top{flex-direction:column;gap:15px}.result-footer{align-items:flex-start;flex-direction:column}.section-top>.small{font-size:.65rem}.controls label{font-size:.69rem}.control-heading{flex-direction:column;align-items:flex-start;gap:5px}.branches{grid-template-columns:1fr}.tree-key>span:last-child{margin-left:0;width:100%;margin-top:2px}}
@media(max-width:620px){.masthead{height:68px}.model-tag{font-size:.56rem;max-width:95px;text-align:right}.brand-divider{display:none}.brand{font-size:.65rem;gap:9px}.brand-mark{font-size:2rem}.intro h1{font-size:3.9rem}.intro{padding:34px 0 30px;gap:18px}.intro>.eyebrow{font-size:.55rem}.lede{font-size:.88rem;line-height:1.7}.workspace{display:flex;flex-direction:column;gap:32px}.controls,.results{width:100%}.controls{padding:22px}.control-heading{flex-direction:row;align-items:center;margin-bottom:12px}.controls form{display:grid;grid-template-columns:1fr;gap:0}.controls label{font-size:.8rem}.controls .control-note{font-size:.74rem}.controls select,.controls input[type=number]{font-size:16px}.controls legend{font-size:.85rem}.controls fieldset{padding:18px 0}.seed-row .button{font-size:.75rem;padding:11px 15px}.result-header{flex-direction:row;align-items:center}.result-header .small{font-size:.65rem}.split-numbers strong{font-size:4rem}.comparison-grid{grid-template-columns:1fr}.panel{padding:22px}.stages{grid-template-columns:1fr;gap:17px}.death-row{grid-template-columns:68px 1fr 70px;gap:12px}.family-section>.section-top{flex-direction:row}.family-nav button{height:40px;width:36px}.family-nav label{font-size:.64rem;flex-direction:column;gap:2px}.family-nav input{font-size:16px;width:60px}.section-top h2{font-size:1.1rem}.branches{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.page-footer{margin-top:40px;font-size:.63rem}.tree-key>span:last-child{width:auto;margin:0 0 0 auto}.small{font-size:.77rem}.hero-foot{flex-direction:row;gap:12px}.hero-foot p:last-child{text-align:right;font-size:.62rem}.hero-foot p:first-child{font-size:.75rem}.hero-result .section-top h2{font-size:1.25rem}}
.model-caveat{font-size:.65rem;color:var(--muted);padding-bottom:19px;line-height:1.6}.download-links{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;margin-top:22px}.download-links a,.download-links button{font-size:.72rem;color:var(--male);text-underline-offset:3px}.download-links .small{font-size:.65rem}.download-links button{border:0;padding:0;background:transparent;text-decoration:underline}.download-links a{white-space:nowrap}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.controls .checkbox-label{justify-content:flex-start;align-items:center;gap:9px}.controls input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:#e2bf7c;flex:0 0 16px}.age-controls{border-left:2px solid #39505b;padding-left:10px;margin:13px 0 18px}.person-context{font-size:.57rem;color:var(--muted);line-height:1.45}

[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.family-presets{display:flex;gap:6px;margin:4px 0 8px}.family-presets button{flex:1;min-width:0;border:1px solid #60717a;border-radius:3px;background:#25414e;color:#e8eeee;padding:7px 3px;font-size:.65rem;white-space:nowrap}.family-presets button:hover{border-color:#e2bf7c;color:#fff}.family-presets button[aria-pressed=true]{border-color:#e2bf7c;background:#3d5053;color:#f5d69c}#familyCountScale{margin-top:10px}.advanced-controls{clear:both;border-top:1px solid #39505b;border-bottom:0;margin-top:14px}.advanced-controls summary{color:#dce5e6;font-size:.73rem;padding:12px 0}.advanced-controls summary::after{color:#e2bf7c}.mortality-rates{font-size:.69rem;color:#dce5e6;line-height:1.65}.mortality-rates table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.mortality-rates th,.mortality-rates td{padding:4px 2px;text-align:right;font-weight:400}.mortality-rates th:first-child,.mortality-rates td:first-child{text-align:left}.mortality-rates th{color:#acbfc6}.run-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 20px;align-items:center;padding:18px 20px;margin-bottom:25px;border:1px solid var(--line);border-radius:4px;background:var(--white)}.run-panel h2{font-size:.95rem;margin-bottom:3px}.run-panel .small{font-size:.72rem;line-height:1.6}.run-actions{display:flex;gap:8px;flex-wrap:wrap}.button.cancel{background:transparent;color:var(--ink);border:1px solid var(--line)}#simulationProgress{width:100%;height:7px;grid-column:1/-1;border:0;border-radius:5px;overflow:hidden;accent-color:var(--male);background:var(--pale)}#simulationProgress::-webkit-progress-bar{background:var(--pale)}#simulationProgress::-webkit-progress-value{background:var(--male)}#simulationProgress::-moz-progress-bar{background:var(--male)}.sample-note{margin-top:13px;font-size:.72rem}.islam-explainer{border-top:1px solid var(--line);padding:30px 0}.islam-explainer>h2{font-family:'Libre Caslon Display',Georgia,serif;font-size:2rem;font-weight:400;line-height:1.2;letter-spacing:-.025em}.explainer-intro{font-size:.85rem;color:var(--muted);line-height:1.75;max-width:660px;margin-top:12px}.explainer-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 28px;margin-top:27px}.explainer-grid article{padding-top:17px;border-top:1px solid var(--line)}.explainer-grid h3,.estate-order>h3,.inheritance-example h3{font-size:.92rem;font-weight:600;margin-bottom:9px;letter-spacing:-.01em}.explainer-grid article>p,.inheritance-example>p{font-size:.79rem;color:var(--muted);line-height:1.75}.islam-explainer .source-links{font-size:.66rem;line-height:1.8;color:var(--muted);margin-top:10px}.source-links a{color:var(--male);text-underline-offset:3px}.estate-order{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.estate-steps{display:grid;grid-template-columns:1fr 1fr;gap:17px 26px;list-style:none;padding:0;margin:17px 0 0;counter-reset:estate-step}.estate-steps li{counter-increment:estate-step;position:relative;padding-left:32px}.estate-steps li::before{content:counter(estate-step);position:absolute;left:0;top:1px;width:22px;height:22px;border:1px solid #cbd4cd;border-radius:50%;color:var(--male);font-size:.69rem;display:flex;align-items:center;justify-content:center}.estate-steps strong{font-size:.77rem;font-weight:600;display:block;margin-bottom:4px}.estate-steps p{font-size:.76rem;color:var(--muted);line-height:1.75}.inheritance-example{background:var(--white);border:1px solid var(--line);border-left:3px solid var(--female);border-radius:3px;margin-top:24px;padding:20px 22px}.explainer-scope{font-size:.72rem;color:var(--muted);line-height:1.8;margin-top:21px}.result-footer .button{white-space:normal;text-align:center}
@media(max-width:1100px){.run-panel{grid-template-columns:1fr;gap:12px}.run-actions{justify-content:flex-start}.explainer-grid{gap:20px}.estate-steps{gap:18px}.family-presets button{font-size:.6rem}}
@media(max-width:850px){.explainer-grid,.estate-steps{grid-template-columns:1fr}.explainer-grid{gap:18px}.run-panel{padding:16px}.inheritance-example{padding:18px}.family-presets{gap:4px}.family-presets button{font-size:.57rem;padding:7px 2px}}
@media(max-width:620px){.run-panel{grid-template-columns:1fr auto;gap:12px}.run-actions{flex-direction:column}.run-panel .button{padding:10px 13px}.family-presets{gap:8px}.family-presets button{font-size:.76rem;padding:9px 4px}.explainer-grid article>p,.inheritance-example>p{font-size:.84rem}.estate-steps p{font-size:.81rem}.islam-explainer .source-links{font-size:.72rem}.explainer-scope{font-size:.78rem}.islam-explainer>h2{font-size:2rem}.explainer-grid h3,.estate-order>h3,.inheritance-example h3{font-size:1rem}.sample-note{font-size:.76rem}}
@media(max-width:390px){.run-panel{grid-template-columns:1fr}.run-actions{flex-direction:row}.result-footer .button{width:100%}}

[hidden]{display:none!important}.generation-section{margin:28px 0;padding:24px;background:#fff;border:1px solid var(--line)}.generation-result{margin:14px 0}.generation-result>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px;font-size:.78rem}.generation-result span{color:var(--muted);font-size:.7rem}.table-scroll{overflow-x:auto}.cohort-table{border-collapse:collapse;width:100%;font-size:.74rem}.cohort-table th,.cohort-table td{padding:10px 8px;text-align:right;border-bottom:1px solid var(--line)}.cohort-table th:first-child,.cohort-table td:first-child{text-align:left}.cohort-table th{color:var(--muted);font-size:.68rem}.rate-row{display:flex;justify-content:space-between;gap:6px;font-size:.67rem;padding:5px 0}.controls select{max-width:100%}@media(max-width:620px){.generation-section{padding:18px}.generation-result>div:first-child{flex-direction:column;gap:3px}.cohort-table{min-width:450px}}
