/* Homepage colour options A–D, switched with data-v on <html>. Layered over site.css. */

/* Light token set, reused wherever a light area appears */
html[data-v="b"] .section,
html[data-v="c"],
html[data-v="d"] .section{
  --ivory:#1f2427; --text:#3b403e; --muted:#5d6260;
  --line:rgba(31,36,39,.14); --line-strong:rgba(31,36,39,.3);
  --gold:#94713f; --goldbright:#7a5a2c; --tile:#fbf8f3; --raise:#ece6da;
}
/* The footer and dark bands always use the dark token set */
html[data-v] .site-footer,
html[data-v="b"] .band,html[data-v="c"] .band,html[data-v="d"] .band{
  --ivory:#f5f2ed; --text:#d3d3d0; --muted:#b4b6b4;
  --line:rgba(248,245,239,.17); --line-strong:rgba(248,245,239,.32);
  --gold:#cbb180; --goldbright:#e5cda0;
}

/* ---------- A · Lifted charcoal: same look, a few shades lighter ---------- */
html[data-v="a"]{--ink:#272c30; --tile:#2e3337; --raise:#32383c; --text:#dcdcd9; --muted:#bdbfbd; --line:rgba(248,245,239,.19)}
html[data-v="a"],html[data-v="a"] body{background-color:#272c30}
html[data-v="a"] body{background-image:radial-gradient(ellipse 55% 40% at 85% 30%,rgba(120,92,70,.32) 0,transparent 70%),radial-gradient(ellipse 50% 40% at 10% 70%,rgba(60,80,92,.4) 0,transparent 70%),radial-gradient(ellipse 45% 35% at 70% 95%,rgba(150,125,100,.18) 0,transparent 75%)}
html[data-v="a"] .atmos:after{background:linear-gradient(180deg,rgba(20,24,27,.3) 0%,transparent 30%)}
html[data-v="a"] .atmos:before{opacity:1.25}
html[data-v="a"] .site-header.scrolled{background:rgba(39,44,48,.92)}
html[data-v="a"] .geo{opacity:.13}
html[data-v="a"] .section:nth-of-type(odd){background:rgba(255,255,255,.025)}

/* ---------- B · Dark banner, warm ivory reading areas ---------- */
html[data-v="b"] .section{background:var(--paper);color:var(--ivory);position:relative;isolation:isolate}
html[data-v="b"] .section:nth-of-type(even){background:#ece5d8}
html[data-v="b"] .section+.section{border-top:0}
html[data-v="b"] .band{background:var(--raise);color:var(--ivory);position:relative;isolation:isolate;overflow:hidden}
html[data-v="b"] .band p{color:var(--text)}
html[data-v="b"] .band .eyebrow{color:var(--gold)}
html[data-v="b"] .band .btn-dark{background:var(--gold);border-color:var(--gold);color:#1c2122}
html[data-v="b"] .band .btn-dark .icon{color:#1c2122}

/* ---------- C · Light throughout ---------- */
html[data-v="c"]{--ink:#f4f0e9; color-scheme:light}
html[data-v="c"],html[data-v="c"] body{background-color:#f4f0e9;color:var(--ivory)}
html[data-v="c"] body{background-image:radial-gradient(ellipse 55% 40% at 85% 20%,rgba(203,177,128,.22) 0,transparent 70%),radial-gradient(ellipse 50% 40% at 5% 60%,rgba(214,200,175,.35) 0,transparent 70%)}
html[data-v="c"] body::before{background:#f4f0e9}
html[data-v="c"] .ribbon{background:#e9e2d5;border-color:var(--line)}
html[data-v="c"] .site-header.scrolled{background:rgba(244,240,233,.92)}
html[data-v="c"] .brand-sub{color:#6b6a63}
html[data-v="c"] .nav-link{color:#3b403e}
html[data-v="c"] .atmos:before{background:radial-gradient(ellipse 34% 40% at 78% 38%,rgba(203,177,128,.5) 0,transparent 78%),radial-gradient(ellipse 40% 34% at 18% 22%,rgba(226,214,190,.8) 0,transparent 80%),radial-gradient(ellipse 50% 40% at 30% 95%,rgba(203,177,128,.25) 0,transparent 80%)}
html[data-v="c"] .atmos:after{background:none}
html[data-v="c"] .geo{opacity:.16}
html[data-v="c"] .emblem:before{border-color:rgba(148,113,63,.35)}
html[data-v="c"] .emblem:after{border-color:rgba(148,113,63,.28)}
html[data-v="c"] .btn-gold{background:#cbb180;border-color:#cbb180}
html[data-v="c"] .btn-ghost{border-color:rgba(31,36,39,.4);color:#1f2427}
html[data-v="c"] .hijri{color:#8a7a5d}
html[data-v="c"] .section:nth-of-type(even){background:#ece5d8}
html[data-v="c"] .band{background:var(--raise-dark,#262b2f);color:var(--ivory)}
html[data-v="c"] .band p{color:var(--text)}
html[data-v="c"] .band .eyebrow{color:var(--gold)}
html[data-v="c"] .band .btn-dark{background:var(--gold);border-color:var(--gold);color:#1c2122}
html[data-v="c"] .band .btn-dark .icon{color:#1c2122}
html[data-v="c"] .drawer{background:#ece6da}
html[data-v="c"] .inline-form input::placeholder{color:#7a7f7d}

/* ---------- D · Deep green and gold ---------- */
html[data-v="d"]{--ink:#183530; --tile:#1d3c36; --raise:#1f413a; --muted:#bccac5; --line:rgba(236,244,240,.17)}
html[data-v="d"],html[data-v="d"] body{background-color:#183530}
html[data-v="d"] body{background-image:radial-gradient(ellipse 55% 40% at 85% 25%,rgba(203,177,128,.18) 0,transparent 70%),radial-gradient(ellipse 50% 40% at 10% 70%,rgba(30,90,78,.45) 0,transparent 70%)}
html[data-v="d"] body::before{background:#183530}
html[data-v="d"] .ribbon{background:#132b27}
html[data-v="d"] .site-header.scrolled{background:rgba(24,53,48,.92)}
html[data-v="d"] .atmos:before{background:radial-gradient(ellipse 30% 34% at 23% 24%,rgba(60,120,105,.55) 0,transparent 80%),radial-gradient(ellipse 31% 40% at 77% 37%,rgba(203,177,128,.28) 0,transparent 75%),radial-gradient(ellipse 60% 50% at 10% 93%,rgba(14,46,40,.8) 0,transparent 82%)}
html[data-v="d"] .atmos:after{background:linear-gradient(180deg,rgba(10,30,26,.35) 0%,transparent 30%)}
html[data-v="d"] .geo{opacity:.14}
html[data-v="d"] .section{background:#f4f0e9;color:var(--ivory)}
html[data-v="d"] .section:nth-of-type(even){background:#ebe6da}
html[data-v="d"] .section+.section{border-top:0}
html[data-v="d"] .band{background:#1f413a;color:var(--ivory)}
html[data-v="d"] .band p{color:var(--text)}
html[data-v="d"] .band .eyebrow{color:var(--gold)}
html[data-v="d"] .band .btn-dark{background:var(--gold);border-color:var(--gold);color:#1c2122}
html[data-v="d"] .band .btn-dark .icon{color:#1c2122}
html[data-v="d"] .site-footer{background:#132b26}

/* light areas: form + tag details */
html[data-v="b"] .section .inline-form,html[data-v="c"] .inline-form,html[data-v="d"] .section .inline-form{background:#fffdf9}
html[data-v="b"] .section .inline-form button,html[data-v="c"] .inline-form button,html[data-v="d"] .section .inline-form button{background:#20282a;color:#fff}
html[data-v="b"] .section .tag,html[data-v="c"] .section .tag,html[data-v="d"] .section .tag{border-color:rgba(148,113,63,.4)}
html[data-v="b"] .section .tag:before,html[data-v="c"] .section .tag:before,html[data-v="d"] .section .tag:before{background:#b8955b}
html[data-v="b"] .section .geo-soft,html[data-v="c"] .section .geo-soft,html[data-v="d"] .section .geo-soft{display:block}

/* faint girih pattern in light areas so they don't feel flat */
.geo-soft{display:none;position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.07;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%2394713f' stroke-width='1'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Cpath d='M0 48H20M76 48H96M48 0V20M48 76V96'/%3E%3C/g%3E%3C/svg%3E");background-size:96px 96px;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 60%);mask-image:linear-gradient(90deg,transparent 0%,#000 60%)}

/* option switcher */
.switcher{position:fixed;z-index:80;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:6px;background:#0f1215;border:1px solid rgba(203,177,128,.45);box-shadow:0 14px 40px rgba(0,0,0,.45);max-width:calc(100% - 32px)}
.switcher .sw-label{color:#cbb180;font-size:calc(10px * var(--fs-b,1));letter-spacing:.2em;text-transform:uppercase;font-weight:600;padding:0 8px 0 6px;white-space:nowrap}
.switcher button{border:1px solid transparent;background:transparent;color:#f5f2ed;min-width:44px;min-height:44px;padding:0 12px;font-size:calc(12px * var(--fs-b,1));letter-spacing:.06em;font-weight:600;display:flex;align-items:center;gap:8px;white-space:nowrap}
.switcher button span{font-weight:400;color:#b4b6b4}
.switcher button[aria-pressed="true"]{background:#cbb180;color:#1c2122}
.switcher button[aria-pressed="true"] span{color:#1c2122}
.has-switcher .site-footer{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
@media (max-width:760px){.switcher button span{display:none}.switcher .sw-label{display:none}}
html[data-v] .section{position:relative;isolation:isolate}
html[data-v="c"] .site-footer{background:#22272b}

/* B on the inner pages: paper panels and tiles sitting on ivory */
html[data-v="b"] .section .paper,html[data-v="d"] .section .paper{background:#fffdf9;border:1px solid #e0d9cb;box-shadow:0 24px 60px rgba(60,48,30,.12)}
html[data-v="b"] .section .giftaid,html[data-v="d"] .section .giftaid{background:#f6f1e7}
html[data-v="b"] .section .chip[aria-pressed="true"],html[data-v="d"] .section .chip[aria-pressed="true"]{background:#20282a;border-color:#20282a;color:#fff}
html[data-v="b"] .section .btn-ghost,html[data-v="d"] .section .btn-ghost{border-color:rgba(31,36,39,.4);color:#1f2427}
html[data-v="b"] .section .btn-ghost .icon,html[data-v="d"] .section .btn-ghost .icon{color:#94713f}
html[data-v="b"] .section .social-card:hover .s-icon,html[data-v="d"] .section .social-card:hover .s-icon{background:#20282a;border-color:#20282a;color:#f5f2ed}
html[data-v="b"] .section .social-link,html[data-v="d"] .section .social-link{border-color:rgba(31,36,39,.35);color:#1f2427}
html[data-v="b"] .section .social-link:hover,html[data-v="d"] .section .social-link:hover{background:#20282a;border-color:#20282a;color:#f5f2ed}
html[data-v="b"] .section .draft-note,html[data-v="d"] .section .draft-note{color:#7a5a2c}
html[data-v="b"] .section .hijri,html[data-v="d"] .section .hijri{color:#8a7a5d}
html[data-v="b"] .section .month-label .h,html[data-v="d"] .section .month-label .h{color:#8a7a5d}
html[data-v="b"] .section .copy-btn,html[data-v="d"] .section .copy-btn{color:#3b403e}
html[data-v="b"] .section .value .ar,html[data-v="d"] .section .value .ar{color:#94713f}
