:root{color-scheme:dark;--night:#080b13;--navy:#111a2c;--gold:#dcc18a;--gold-light:#f0dab0;--muted:#b9bfce;--ivory:#f6f2e9;--edge:rgba(225,193,132,.22);--glass:rgba(219,229,255,.055)}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;min-width:0;background:radial-gradient(ellipse at 5% 22%,rgba(77,97,153,.20),transparent 43%),radial-gradient(ellipse at 95% 44%,rgba(112,83,143,.15),transparent 40%),linear-gradient(155deg,#080b13 5%,#141d30 47%,#090d17 100%);background-attachment:fixed;color:var(--ivory);font:400 16px/1.85 "IBM Plex Sans Arabic",sans-serif}a{color:var(--gold-light);text-underline-offset:4px}button{font:inherit}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--gold-light);outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Amiri,serif;line-height:1.35}h1{font-weight:700;font-size:clamp(3.25rem,8.5vw,6rem);color:#fff9ee;text-shadow:0 6px 36px #e3c68c20}h2{font-size:clamp(2rem,4vw,2.85rem);font-weight:700;color:var(--ivory)}h3{font-size:clamp(1.5rem,2.6vw,2rem);color:var(--ivory)}[hidden]{display:none!important}.mem-skip{position:absolute;inset-block-start:-100px;background:#fff;color:#111;padding:12px;z-index:4}.mem-skip:focus{inset-block-start:0}.mem-top{background:rgba(8,11,19,.55);border-bottom:1px solid var(--edge);backdrop-filter:blur(20px)}.top-inner{max-width:1110px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:12px 24px;gap:14px}.mem-brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ivory)}.mem-brand img{object-fit:contain}.mem-brand b{font:700 1.6rem/1.2 Amiri,serif}.mem-brand small{display:block;font-size:.72rem;color:var(--muted)}.mem-back{font-size:.88rem;text-decoration:none;padding:7px 15px;border:1px solid var(--edge);border-radius:7px;color:var(--gold-light);background:rgba(255,255,255,.035)}.mem-back span{margin-inline-start:10px}.mem-hero{padding:30px 24px 24px;text-align:center;position:relative;isolation:isolate;background:radial-gradient(ellipse at 50% 0%,rgba(214,181,117,.11),transparent 70%)}.hero-frame{position:relative;max-width:1060px;margin:auto;padding:34px 22px 31px;border:1px solid var(--edge);border-radius:3px;background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.005));box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 25px 70px #0003}.hero-frame:before,.hero-frame:after{content:"";position:absolute;width:35px;height:35px;border-color:var(--gold);border-style:solid;pointer-events:none}.hero-frame:before{top:7px;right:7px;border-width:1px 1px 0 0}.hero-frame:after{bottom:7px;left:7px;border-width:0 0 1px 1px}.hero-mark{width:94px;margin:0 auto 9px;color:var(--gold)}.hero-mark svg{display:block;width:100%;height:auto}.mem-kicker,.section-label{font-size:.8rem;letter-spacing:.03em;color:var(--gold);font-weight:500}.hero-sub{font-size:clamp(1rem,2.6vw,1.3rem);color:#d9deea;margin:6px 0 22px}.verse{max-width:650px;margin:auto;padding:16px 10px 0;border-top:1px solid var(--edge)}.verse p{font:400 clamp(1.6rem,3vw,2.2rem)/1.6 Amiri,serif;color:var(--gold-light)}.verse span{display:block;font-size:.94rem;max-width:520px;margin:auto;color:#d1d5e1}.mem-period{color:#b6bbca;font-size:.76rem;margin-top:20px}.mem-period span{color:var(--gold);margin:0 7px}.mem-wrap{max-width:940px;margin:auto;padding:5px 24px 56px}.region-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:7px;border:1px solid var(--edge);border-radius:12px;background:rgba(255,255,255,.035);backdrop-filter:blur(22px);box-shadow:0 15px 40px #0002;margin-bottom:32px}.region-nav a{display:flex;justify-content:center;align-items:center;gap:10px;text-decoration:none;text-align:center;min-height:49px;padding:8px 7px;color:#ced3df;border:1px solid transparent;border-radius:7px;font-weight:600;font-size:1rem}.region-nav a small{font-size:.7rem;color:var(--gold);font-weight:400}.region-nav a[aria-current="true"]{background:linear-gradient(135deg,rgba(214,181,117,.19),rgba(214,181,117,.055));border-color:rgba(220,193,138,.56);color:#fff4db;box-shadow:inset 0 1px 0 #ffffff12}.region-nav a:hover{background-color:#ffffff09}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--edge);margin-bottom:18px}.section-label{margin-bottom:5px}.section-count{font-size:.78rem;color:var(--muted);white-space:nowrap;padding-bottom:3px}.mem-section{scroll-margin-top:12px;margin-bottom:32px}.honor-list{border:1px solid var(--edge);border-radius:12px;overflow:hidden;background:linear-gradient(135deg,rgba(240,245,255,.068),rgba(240,245,255,.022));backdrop-filter:blur(25px);box-shadow:0 25px 60px #0002}.honor-record{display:grid;grid-template-columns:49px minmax(0,1fr);gap:18px;padding:24px 25px;border-bottom:1px solid rgba(216,223,245,.10)}.honor-record:last-child{border-bottom:none}.record-index{font-size:.83rem;font-variant-numeric:tabular-nums;letter-spacing:.08em;color:var(--gold);border:1px solid rgba(220,193,138,.28);border-radius:5px;align-self:start;display:grid;place-items:center;height:43px;background:rgba(220,193,138,.045)}.record-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 15px;justify-content:space-between}.record-title time{color:var(--gold-light);font-size:.88rem;white-space:nowrap}.record-meta{display:flex;flex-wrap:wrap;gap:5px 17px;margin:7px 0 11px;color:var(--muted);font-size:.83rem}.record-meta span+span:before{content:"·";margin-inline-end:14px;color:var(--gold)}.record-content p{font-size:.94rem;color:#e3e5ed;line-height:1.8}.featured{background:radial-gradient(ellipse at 95% 0%,rgba(225,191,125,.13),transparent 80%),linear-gradient(115deg,rgba(225,191,125,.05),rgba(255,255,255,.015));border-bottom:1px solid rgba(225,191,125,.42);padding-block:31px}.featured .record-index{border-color:var(--gold);color:var(--gold-light)}.featured-caption{flex-basis:100%;font-size:.72rem;color:var(--gold);margin-bottom:3px}.featured h3{font-size:clamp(1.8rem,3.8vw,2.6rem);color:#fff6e2}.sources{margin-top:11px;font-size:.78rem;color:var(--gold-light)}.sources summary{cursor:pointer;width:fit-content;color:var(--gold);padding:3px 0}.source-links,.mem-sources{display:flex;flex-wrap:wrap;gap:6px 16px;margin:7px 0 0;font-size:.82rem}.source-links a,.mem-sources a{overflow-wrap:anywhere}.mem-note{padding:21px 24px;margin:16px 0;border:1px solid var(--edge);border-radius:10px;background:var(--glass);backdrop-filter:blur(20px)}.mem-note h3{font-size:1.55rem;margin-bottom:8px}.mem-note p{color:#d6d9e3;font-size:.93rem;margin:7px 0}.mem-pending{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin-top:14px}.mem-pending>div{border-top:1px solid var(--edge);padding:12px 0}.mem-pending b{font-weight:600}.mem-pending a{font-size:.8rem}.mem-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.mem-actions a,.mem-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 15px;background:rgba(220,193,138,.10);color:var(--gold-light);border:1px solid var(--edge);border-radius:7px;text-decoration:none;cursor:pointer;font-size:.86rem}.mem-actions a:hover,.mem-actions button:hover{background:rgba(220,193,138,.19)}.provenance{padding:16px 0;border-top:1px solid var(--edge);font-size:.79rem;color:var(--muted)}.provenance a{display:inline-block;margin-top:6px}.mem-footer{text-align:center;padding:32px 18px 37px;background:#080b13a6;border-top:1px solid var(--edge)}.footer-line{font-size:.8rem;color:var(--gold);margin-bottom:12px}.mem-footer p{font:400 1.45rem/1.6 Amiri,serif;color:var(--gold-light);margin-bottom:9px}.mem-footer a{font-size:.84rem;color:var(--ivory);text-decoration:none}.mem-footer small{display:block;margin-top:9px;color:var(--muted);font-size:.71rem}
@media(max-width:600px){.top-inner{padding:10px 15px}.mem-brand img{width:40px;height:40px}.mem-brand b{font-size:1.35rem}.mem-hero{padding:17px 12px 19px}.hero-frame{padding:25px 13px 22px}.hero-mark{width:72px}.hero-sub{margin-bottom:16px}.verse{padding-top:12px}.verse span{font-size:.84rem}.mem-wrap{padding:0 12px 32px}.region-nav{gap:4px;padding:4px;margin-bottom:25px}.region-nav a{font-size:.84rem;min-height:46px;gap:4px;padding:6px 3px}.region-nav a small{display:none}.section-heading{gap:7px;margin-bottom:13px;padding-bottom:12px}.section-count{font-size:.69rem}.honor-record{grid-template-columns:31px minmax(0,1fr);gap:11px;padding:17px 13px}.record-index{height:34px;font-size:.71rem}.record-title{display:block}.record-title time{display:block;margin-top:4px;font-size:.8rem}.record-meta{gap:2px 8px;font-size:.75rem;margin:5px 0 8px}.record-meta span+span:before{margin-inline-end:7px}.record-content p{font-size:.88rem}.featured{padding-block:23px}.featured-caption{display:block}.mem-note{padding:17px 15px}.mem-pending{grid-template-columns:1fr}.mem-actions>*{flex:1 1 auto}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}@media print{@page{size:A4;margin:15mm}*{color:#111!important;text-shadow:none!important;box-shadow:none!important;background:transparent!important;backdrop-filter:none!important}body{font-size:11pt}.mem-top,.region-nav,.mem-skip,.mem-actions,.provenance a{display:none!important}.mem-section[hidden]{display:block!important}.mem-hero{padding:0 0 12px}.hero-frame{padding:10px}.hero-frame:before,.hero-frame:after{display:none}.hero-mark{width:50px}h1{font-size:28pt}.mem-wrap{padding:0}.section-heading{break-after:avoid}.honor-list{overflow:visible;border:none}.honor-record,.mem-note{break-inside:avoid;padding:10px;border:1px solid #ccc;margin:0 0 7px}.mem-pending{display:block}.mem-footer{padding:12px}.sources:not([open])>*:not(summary){display:block!important}}
/* Unified translucent royal glass; the background remains visible throughout. */
@media screen{
body{background:radial-gradient(ellipse at 13% 19%,rgba(88,109,167,.27),transparent 44%),radial-gradient(ellipse at 93% 53%,rgba(122,95,157,.20),transparent 48%),radial-gradient(ellipse at 47% 3%,rgba(214,181,117,.10),transparent 40%),linear-gradient(155deg,#080b13 5%,#141d30 47%,#090d17 100%);background-attachment:fixed}
.mem-top,.mem-footer{background:transparent;backdrop-filter:none}
.mem-hero{background:transparent}
.hero-frame,.honor-list,.mem-note,.region-nav{background:rgba(255,255,255,.018);border-color:rgba(220,193,138,.30);box-shadow:inset 0 1px 0 rgba(255,255,255,.045);backdrop-filter:blur(11px);-webkit-backdrop-filter:blur(11px)}
.region-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.region-nav a,.mem-back,.record-index,.mem-actions a,.mem-actions button{background:transparent}
.region-nav a[aria-current="true"]{background:rgba(220,193,138,.055);border-color:rgba(220,193,138,.65);box-shadow:none}
.region-nav a:hover,.mem-actions a:hover,.mem-actions button:hover{background:rgba(220,193,138,.07)}
.honor-record,.featured{background:transparent}
.featured{border-bottom-color:rgba(220,193,138,.45)}
.featured .record-index{background:transparent}
.subtle-download{font-size:.78rem;font-weight:400;color:var(--muted)}
}

/* Refined two-region navigation and consistent memorial typography. */
@media screen {
.hero-frame,.mem-wrap,.top-inner{max-width:960px}
.hero-frame{border-radius:12px;padding-block:30px 27px}
.mem-hero{padding-bottom:20px}
.mem-wrap{padding-top:0}
.region-nav{position:relative;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 28px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.region-nav a{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-width:0;min-height:60px;padding:12px 18px;gap:8px;border:1px solid rgba(220,193,138,.36);border-radius:10px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.008));backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);font-size:1rem;line-height:1.45;color:#e3d6ba}
.region-nav a svg{flex:none;opacity:.68;transform:rotate(180deg)}
.region-nav a[aria-current="true"]{background:linear-gradient(145deg,rgba(220,193,138,.085),rgba(255,255,255,.012));border-color:#dcc18a;color:#fff5dc;box-shadow:inset 0 -2px 0 #dcc18a}
.region-nav a[aria-current="true"] svg{opacity:1}
.region-nav a:hover{border-color:#f0dab0}
.section-heading{align-items:center;min-width:0;margin-bottom:16px;padding-bottom:14px}
.section-heading>div{min-width:0}
.section-count{white-space:normal;text-align:end;flex:none;max-width:35%}
.honor-list{border:0;border-radius:0;overflow:visible;display:grid;gap:12px;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.honor-record,.honor-record:last-child{border:1px solid rgba(220,193,138,.23);border-radius:12px;background:linear-gradient(145deg,rgba(255,255,255,.025),rgba(255,255,255,.008));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:21px 22px;gap:16px;min-width:0}
.honor-record.featured{border-color:rgba(220,193,138,.59);padding-block:24px}
.record-content{min-width:0}
.record-title{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 12px}
.record-title h3{font-size:clamp(1.45rem,2.5vw,1.85rem);overflow-wrap:anywhere}
.featured h3{font-size:clamp(1.7rem,3.5vw,2.3rem)}
.featured-caption{grid-column:1/-1;margin:0 0 4px}
.record-title time{font-variant-numeric:tabular-nums;white-space:normal}
.record-meta{gap:6px 10px;margin:7px 0 9px}
.record-meta span+span:before{margin-inline-end:10px}
.sources{margin-top:9px}
.sources summary{display:inline-flex;align-items:center;gap:7px;min-height:38px;list-style:none;padding:5px 0;cursor:pointer}
.sources summary::-webkit-details-marker{display:none}
.sources summary:after{content:"+";font-size:1.05em;color:var(--gold)}
.sources[open] summary:after{content:"−"}
.source-links{padding:2px 0 6px;border-top:1px solid var(--edge);margin:0}
.provenance{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 15px}
.provenance p{flex:1 1 280px}
.provenance .subtle-download{min-height:44px;display:inline-flex;align-items:center;margin:0;color:var(--gold-light)}
}
@media screen and (max-width:600px){
.mem-hero{padding:14px 12px 16px}
.hero-frame{padding:22px 12px 20px}
h1{font-size:clamp(2.5rem,10vw,3.7rem)}
.hero-mark{width:64px}
.mem-wrap{padding-inline:12px}
.region-nav{gap:8px;margin-bottom:23px}
.region-nav a{font-size:.86rem;min-height:54px;padding:9px 10px;gap:5px}
.region-nav a svg{width:13px;height:13px}
.section-heading h2{font-size:clamp(1.55rem,6vw,2rem)}
.section-count{font-size:.68rem}
.honor-list{gap:10px}
.honor-record,.honor-record:last-child{grid-template-columns:32px minmax(0,1fr);gap:10px;padding:15px 12px}
.honor-record.featured{padding-block:19px}
.record-title{grid-template-columns:minmax(0,1fr)}
.record-title time{margin:0;font-size:.82rem}
.record-meta{font-size:.77rem;gap:4px 8px}
.record-meta span+span:before{margin-inline-end:8px}
.record-title h3{font-size:1.43rem}
.featured h3{font-size:1.7rem}
.record-content p{font-size:.89rem}
}
@media screen and (max-width:350px){.region-nav a{font-size:.78rem;padding:8px 7px}.region-nav a svg{display:none}.honor-record,.honor-record:last-child{padding-inline:10px}}

.martyr-gallery{margin-block:14px}.martyr-gallery summary{cursor:pointer;padding:10px 0;color:var(--gold)}.martyr-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:10px}.martyr-photos figure{margin:0;min-width:0}.martyr-photos img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}.martyr-photos figcaption{overflow-wrap:anywhere;font-size:.85rem}@media print{.martyr-gallery{display:none}}

.martyr-gallery summary{min-height:44px;display:list-item;font-weight:600}.martyr-photos{grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr))}.martyr-photos a{display:block;min-height:44px}.martyr-photos a:focus-visible,.memorial-photo-dialog button:focus-visible{outline:2px solid var(--gold-light);outline-offset:3px}.martyr-photos img{object-fit:contain;background:rgba(0,0,0,.22)}.gallery-cover{grid-column:1/-1}.gallery-cover img{aspect-ratio:auto;max-height:380px}.memorial-photo-dialog{width:min(92vw,900px);max-height:90vh;overflow:auto;border:1px solid var(--gold);border-radius:14px;padding:12px;background:#172233;color:#fff;box-sizing:border-box}.memorial-photo-dialog::backdrop{background:rgba(0,0,0,.82)}.memorial-photo-dialog img{display:block;max-width:100%;max-height:68vh;object-fit:contain;margin:10px auto}.memorial-photo-dialog button{min-height:44px;padding:8px 16px;color:inherit;background:#26364b;border:1px solid var(--gold);border-radius:8px;cursor:pointer}.memorial-photo-dialog p{text-align:center;overflow-wrap:anywhere}

.mem-search{margin-block:0 24px;display:grid;gap:7px}.mem-search label{color:var(--gold-light);font-weight:600}.mem-search input{font:inherit;color:var(--ivory);background:rgba(255,255,255,.035);border:1px solid var(--edge);border-radius:10px;padding:10px 14px;min-height:44px;width:100%;box-sizing:border-box}.mem-search input:focus-visible,.mem-retry:focus-visible{outline:2px solid var(--gold-light);outline-offset:3px}.mem-search p{margin:0;color:var(--muted)}.honor-record[hidden]{display:none!important}.mem-retry{font:inherit;min-height:44px;color:var(--gold-light);background:transparent;border:1px solid var(--edge);border-radius:8px;padding:8px 16px;cursor:pointer}@media print{.mem-search,.mem-retry{display:none!important}.honor-record[hidden]{display:grid!important}}

/* Accessible translucent memorial controls — clear hierarchy and touch targets. */
@media screen {
  :root {
    --control-text:#fff5df;
    --control-line:rgba(240,218,176,.55);
    --control-glass:rgba(237,224,196,.075);
    --control-hover:rgba(237,224,196,.15);
  }
  .region-nav {gap:12px;margin-bottom:26px}
  .region-nav a {
    min-height:64px;padding:13px 18px;gap:10px;
    border:1px solid var(--control-line);border-radius:12px;
    background:linear-gradient(145deg,rgba(240,218,176,.10),rgba(240,218,176,.035));
    color:var(--control-text);font-size:1.06rem;font-weight:600;
    text-align:start;line-height:1.5;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
    backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  }
  .region-nav a span {min-width:0}
  .region-nav a svg {width:19px;height:19px;opacity:1;color:#f0dab0;stroke-width:2;flex:none}
  .region-nav a[aria-current="true"] {
    background:linear-gradient(145deg,rgba(220,193,138,.28),rgba(220,193,138,.11));
    color:#fff9ec;border-color:#e8cb90;font-weight:700;
    box-shadow:inset 0 -3px 0 #e8cb90,inset 0 1px 0 rgba(255,255,255,.15);
  }
  .mem-back,.mem-actions a,.mem-actions button,.mem-retry,.memorial-photo-dialog button,
  .sources summary,.martyr-gallery summary {
    display:inline-flex;align-items:center;justify-content:center;gap:9px;
    min-height:46px;padding:9px 15px;max-width:100%;
    border:1px solid var(--control-line);border-radius:10px;
    background:var(--control-glass);color:var(--control-text);
    font-family:inherit;font-size:.95rem;font-weight:600;line-height:1.55;
    text-decoration:none;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  }
  .mem-back {white-space:nowrap;flex:none}
  .mem-back span {margin-inline-start:0}
  #memorial-admin-actions {margin:0 0 12px}
  #memorial-admin-actions a {width:100%;background:rgba(220,193,138,.15);border-color:#d9bb80}
  .sources,.martyr-gallery {margin-block:10px}
  .sources summary,.martyr-gallery summary {
    width:100%;justify-content:space-between;text-align:start;list-style:none;
  }
  .sources summary::-webkit-details-marker,.martyr-gallery summary::-webkit-details-marker {display:none}
  .sources summary::after,.martyr-gallery summary::after {
    content:"+";display:grid;place-items:center;flex:none;width:23px;height:23px;
    border-radius:6px;background:rgba(220,193,138,.12);color:#fff1d3;
    font-size:1.18rem;line-height:1;font-weight:600;
  }
  .sources[open] summary,.martyr-gallery[open] summary {
    border-color:#e8cb90;background:rgba(220,193,138,.15);
  }
  .sources[open] summary::after,.martyr-gallery[open] summary::after {content:"−"}
  .sources[open]>p,.martyr-gallery[open] .martyr-photos {margin-block-start:10px}
  .mem-search label {color:var(--control-text);font-size:1rem}
  .mem-search input {
    min-height:50px;border-color:var(--control-line);
    background:rgba(255,255,255,.065);font-size:1rem;
  }
  .mem-search input::placeholder {color:#bfc6d5;opacity:1}
  .mem-search p:empty {display:none}
  .mem-retry {margin-block-start:8px;width:fit-content}
  .region-nav a:focus-visible,.mem-back:focus-visible,.mem-actions a:focus-visible,
  .mem-actions button:focus-visible,.sources summary:focus-visible,.martyr-gallery summary:focus-visible,
  .mem-retry:focus-visible,.memorial-photo-dialog button:focus-visible,.mem-search input:focus-visible {
    outline:2px solid #fff0c9;outline-offset:3px;
  }
  .region-nav a:active,.mem-back:active,.mem-actions a:active,.mem-actions button:active,
  .sources summary:active,.martyr-gallery summary:active,.mem-retry:active,
  .memorial-photo-dialog button:active {border-color:#fff0c9;background:rgba(220,193,138,.23)}
}
@media screen and (hover:hover) and (pointer:fine) {
  .region-nav a:hover,.mem-back:hover,.mem-actions a:hover,.mem-actions button:hover,
  .sources summary:hover,.martyr-gallery summary:hover,.mem-retry:hover,
  .memorial-photo-dialog button:hover {background:var(--control-hover);border-color:#f0dab0}
  .region-nav a[aria-current="true"]:hover {background:rgba(220,193,138,.30)}
}
@media screen and (max-width:600px) {
  .region-nav {gap:9px;margin-bottom:22px}
  .region-nav a {min-height:60px;font-size:.96rem;padding:10px 11px;gap:5px}
  .region-nav a svg {width:15px;height:15px}
  .mem-back {font-size:.88rem;padding-inline:11px}
  .sources summary,.martyr-gallery summary {font-size:.92rem;padding:9px 11px}
}
@media screen and (max-width:350px) {
  .region-nav a {font-size:.9rem;padding-inline:9px}
  .region-nav a svg {display:none}
}

/* V10: keep the memorial's distinct identity in both reading modes. */
@media screen{
 .family-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:44px;border:1px solid var(--edge);border-radius:10px;background:var(--navy);color:var(--ivory);font:600 13px/1.4 'IBM Plex Sans Arabic',sans-serif;padding:6px 10px;cursor:pointer}
 .family-theme-toggle [data-theme-icon]{font-size:20px;line-height:1;color:var(--gold)}
 :root[data-theme="light"]{color-scheme:light;--night:#f6f3ec;--navy:#fffdf8;--gold:#795a27;--gold-light:#735621;--muted:#536071;--ivory:#253448;--edge:#c7c1b0;--glass:#fffdf8;--control-text:#253448;--control-line:#c7c1b0;--control-hover:#e9e6dc}
 :root[data-theme="light"] body{background:#f6f3ec;color:var(--ivory)}
 :root[data-theme="light"] :is(.mem-top,.hero-frame,.mem-footer,.memorial-photo-dialog,.memorial-photo-dialog button){background:var(--navy);color:var(--ivory);box-shadow:none;backdrop-filter:none}
 :root[data-theme="light"] :is(h1,.hero-sub,.verse span,.mem-period,.record-content p,.featured h3,.mem-note p,.region-nav a,.region-nav a[aria-current="true"],.sources summary::after,.martyr-gallery summary::after,.mem-search input){color:var(--ivory);text-shadow:none}
 :root[data-theme="light"] .region-nav a[aria-current="true"]{background:#eae6d8;border-color:var(--gold)}
 :root[data-theme="light"] .region-nav a svg{color:var(--gold)}
 :root[data-theme="light"] .mem-search input{background:var(--navy)}
 :root[data-theme="light"] .mem-search input::placeholder{color:var(--muted)}
 :root[data-theme="light"] :is(a,button,summary,input):focus-visible{outline-color:var(--gold)}
 @media(max-width:500px){.top-inner{padding-inline:12px;gap:6px;flex-wrap:wrap}.mem-brand{gap:7px}.mem-brand img{width:36px;height:36px}.family-theme-toggle [data-theme-label]{display:none}}
}

/* V11 — medium glass for both memorial reading modes, preserving the navy/gold identity. */
@media screen{
 :root{--mem-glass:rgba(17,26,44,.74);--mem-chrome:rgba(8,11,19,.76)}
 :root[data-theme="light"]{--mem-glass:rgba(255,253,248,.74);--mem-chrome:rgba(255,253,248,.76)}
 :root[data-theme="light"] body{background:radial-gradient(ellipse at 10% 12%,#e9edf3,transparent 55%),radial-gradient(ellipse at 95% 60%,#f5efdf,transparent 48%),#f6f3ec}
 @supports ((backdrop-filter:blur(10px)) or (-webkit-backdrop-filter:blur(10px))){
  :root[data-theme] :is(.hero-frame,.honor-record,.honor-record:last-child,.mem-note){background:var(--mem-glass);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
  :root[data-theme] .mem-top{background:var(--mem-chrome);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
 }
 @media(prefers-reduced-transparency:reduce){
  :root[data-theme] :is(.hero-frame,.honor-record,.honor-record:last-child,.mem-note,.mem-top){background:var(--navy);backdrop-filter:none;-webkit-backdrop-filter:none}
 }
}

/* V12 — memorial contrast preserves the navy identity and print layout. */
@media screen{
 :root{--gold:#E8CB79;--gold-light:#E8CB79;--mem-heading:#f6f2e9;--mem-focus:#E8CB79}
 :root[data-theme="light"]{--gold:#8A641C;--gold-light:#8A641C;--muted:#374151;--ivory:#164638;--mem-heading:#164638;--mem-focus:#8A641C;--control-text:#164638;--control-line:#758478;--control-glass:#fffdf8;--control-hover:#edf2ec}
 :root[data-theme="light"] :is(h1,h2,h3,.featured h3){color:var(--mem-heading)}
 :root[data-theme="light"] :is(.hero-sub,.verse span,.mem-period,.record-content p,.mem-note p,.record-meta,.section-count,.provenance,.mem-search input::placeholder){color:var(--muted)}
 :root[data-theme="light"] :is(.region-nav a,.mem-back,.mem-actions a,.mem-actions button,.sources summary,.martyr-gallery summary,.mem-retry,.family-theme-toggle,.memorial-photo-dialog button){border-color:var(--control-line);color:var(--control-text)}
 :root[data-theme="light"] :is(.region-nav a[aria-current="true"],.sources[open] summary,.martyr-gallery[open] summary){background:#edf2ec;border-color:var(--gold);box-shadow:inset 0 -2px 0 var(--gold)}
 :root[data-theme="light"] :is(.region-nav a svg,.sources summary::after,.martyr-gallery summary::after){color:var(--gold)}
 :root[data-theme] :is(a,button,summary,input):focus-visible{outline:3px solid var(--mem-focus);outline-offset:3px}
}

/* V13 — dignified navy/gold memorial; royal heading font, matching reading controls. */
@media screen{
  :root{
    --mem-royal:'Amiri','Noto Naskh Arabic','Traditional Arabic',Tahoma,serif;
    --mem-ui:'IBM Plex Sans Arabic',Tahoma,Arial,system-ui,sans-serif;
    --mem-glass:rgba(17,26,44,.9);--mem-chrome:rgba(8,11,19,.94);
    --mem-shadow:0 8px 24px #03061135;
  }
  :root[data-theme=light]{--mem-glass:rgba(255,253,248,.92);--mem-chrome:rgba(255,253,248,.96);--mem-shadow:0 6px 24px #26364b10}
  body{font-family:var(--mem-ui);line-height:1.85;background-attachment:scroll}
  :is(h1,h2,h3,.mem-brand b,.mem-footer p,.verse p){font-family:var(--mem-royal);letter-spacing:normal;line-height:1.6}
  h1{font-size:clamp(39px,7vw,64px);line-height:1.5;text-shadow:none}
  h2{font-size:clamp(28px,4.5vw,40px)}
  h3{font-size:clamp(23px,3vw,30px)}
  .mem-top,.hero-frame,.honor-record,.honor-record:last-child,.mem-note,.region-nav{
    background:var(--mem-glass);border-color:var(--edge);box-shadow:var(--mem-shadow);backdrop-filter:none;-webkit-backdrop-filter:none
  }
  .mem-top{background:var(--mem-chrome)}
  .hero-frame{border-radius:19px}
  .honor-record,.honor-record:last-child{box-shadow:none}
  .honor-list{background:var(--mem-glass);border-radius:16px;backdrop-filter:none;-webkit-backdrop-filter:none}
  .honor-record.featured{border-inline-start:3px solid var(--gold)}
  .record-content p,.mem-note p{font-size:15px;line-height:1.9;overflow-wrap:anywhere}
  .region-nav a,.mem-back,.family-theme-toggle,.mem-actions :is(a,button),.mem-search input{font-family:var(--mem-ui);font-weight:600;line-height:1.5;border-radius:10px;min-height:44px}
  .mem-search input{font-size:16px}
  .record-title time,.section-count,.record-index{font-variant-numeric:tabular-nums;letter-spacing:normal}
  :root[data-theme=light] :is(.mem-top,.mem-footer){background:var(--mem-chrome)}
  :root[data-theme=light] :is(.honor-record,.mem-note,.hero-frame,.region-nav){background:var(--mem-glass)}
  @media(max-width:600px){h1{font-size:clamp(34px,9vw,43px)}h2{font-size:29px}.record-content p,.mem-note p{font-size:14px}.hero-frame{border-radius:15px}.mem-note,.region-nav{box-shadow:none}}
  @media(prefers-reduced-transparency:reduce){:root[data-theme] :is(.mem-top,.hero-frame,.honor-record,.mem-note,.region-nav,.honor-list){background:var(--navy)}}
  @media(prefers-reduced-motion:reduce){:is(.region-nav a,.mem-actions a,.mem-actions button,.family-theme-toggle){transition:none!important;animation:none!important}}
}

/* V14 — restrained depth for the memorial, preserving its solemn identity. */
@media screen{
  :root{--mem-glint:#ffffff16;--mem-depth-edge:#050d19;--mem-depth-surface:linear-gradient(150deg,#ffffff0c,transparent 50%,#050d191e),var(--mem-glass);--mem-depth-focus:#efcf8a}
  :root[data-theme=light]{--mem-glint:#fffefbe8;--mem-depth-edge:#bec6cb;--mem-depth-surface:linear-gradient(150deg,#ffffffa6,transparent 50%,#dfe4e733),var(--mem-glass);--mem-depth-focus:#285e48}
  :root[data-theme] :is(.hero-frame,.honor-list,.mem-note,.region-nav){background:var(--mem-depth-surface);box-shadow:inset 0 1px 0 var(--mem-glint),0 3px 0 #7e8b9426,var(--mem-shadow)}
  :root[data-theme] :is(.region-nav a,.mem-back,.family-theme-toggle,.mem-actions a,.mem-actions button,.mem-retry){box-shadow:inset 0 1px 0 var(--mem-glint),0 3px 0 var(--mem-depth-edge);border-radius:12px}
  :root[data-theme] .region-nav a[aria-current=true]{box-shadow:inset 0 1px 0 var(--mem-glint),0 3px 0 #9c7a42}
  :root[data-theme] :is(a,button,input,summary):focus-visible{outline:3px solid var(--mem-depth-focus);outline-offset:3px}
  @media(prefers-reduced-motion:no-preference){
    :is(.region-nav a,.mem-back,.family-theme-toggle,.mem-actions a,.mem-actions button,.mem-retry){transition:transform 160ms ease,box-shadow 160ms ease,border-color 160ms ease}
    :is(.region-nav a,.mem-back,.family-theme-toggle,.mem-actions a,.mem-actions button,.mem-retry):active{transform:translateY(2px)}
    @media(hover:hover) and (pointer:fine){:is(.region-nav a,.mem-back,.family-theme-toggle,.mem-actions a,.mem-actions button,.mem-retry):hover:not(:active){transform:translateY(-2px)}}
  }
  @media(max-width:600px){:root{--mem-shadow:0 5px 12px #03061118}}
  @media(prefers-reduced-transparency:reduce){:root[data-theme] :is(.hero-frame,.honor-list,.mem-note,.region-nav){background:var(--navy)}}
  @media(prefers-reduced-motion:reduce){:is(.region-nav a,.mem-back,.family-theme-toggle,.mem-actions a,.mem-actions button,.mem-retry){transition:none;transform:none}}
}

/* V15 — a single, dignified illumination of the Arabic memorial heading. */
@media screen{
  :root{--mem-ink:linear-gradient(108deg,#e4c98f,#fff4d9 32%,#f0d9a4 44%,#fff8e5 52%,#e4c98f 80%)}
  :root[data-theme=light]{--mem-ink:linear-gradient(108deg,#26384a,#4e5a5a 32%,#70521f 44%,#365044 52%,#26384a 80%)}
  h1{font-kerning:normal;font-variant-ligatures:common-ligatures contextual;text-wrap:balance}
  @keyframes memorial-ink-sweep{from{background-position:100% 50%}to{background-position:0% 50%}}
  @supports ((background-clip:text) or (-webkit-background-clip:text)){
    h1{background-color:var(--ivory);background-image:var(--mem-ink);background-size:230% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none}
    @media(prefers-reduced-motion:no-preference){:root:not([data-low-data=true]) h1{animation:memorial-ink-sweep 3s ease-out .25s 1 both}}
  }
  :root[data-low-data=true] h1{background:none;-webkit-text-fill-color:currentColor;animation:none}
  @media(prefers-reduced-motion:reduce),(prefers-reduced-data:reduce),(forced-colors:active),(prefers-contrast:more){h1{background:none;-webkit-text-fill-color:currentColor;animation:none!important;transform:none!important}}
}
