/* ZAD — craft pass on look A (emerald ornamental) */

/* ---- default look ---- */
html[data-look="a"]{
  --ivory:#f6f1e4; --surface:#fffcf4; --surface-2:#f0e8d6;
  --line:#e2d5b8; --emerald:#0a4a3b; --emerald-2:#0f6b53;
  --gold:#a67c2c; --gold-line:#c8a96a; --gold-soft:#f2e7cc;
  --ink:#1b2320; --muted:#6a7168;
}

/* ---- top bar ---- */
html[data-look="a"] .topbar{
  border-bottom:1px solid var(--gold-line);
  box-shadow:0 1px 0 rgba(166,124,44,.12), 0 8px 24px -22px rgba(27,35,32,.7);
  padding-block:.6rem;
}
html[data-look="a"] .brand-mark{
  box-shadow:0 0 0 1px rgba(200,169,106,.55) inset, 0 6px 16px -10px rgba(10,74,59,.9);
  border-radius:13px;
}
html[data-look="a"] .brand-text b{font-family:'Amiri',serif;font-size:1.5rem;letter-spacing:.02em}
html[data-look="a"] .brand-text small{letter-spacing:.02em;color:#7b8177}
html[data-look="a"] .icon-btn{border-color:var(--gold-line);background:var(--surface)}

/* ---- hero: mihrab ---- */
html[data-look="a"] .hero{
  position:relative;overflow:hidden;
  border-radius:104px 104px 20px 20px / 92px 92px 20px 20px;
  padding:2.7rem 1.25rem 1.15rem;
  margin-top:.35rem;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(226,199,138,.20), transparent 58%),
    linear-gradient(168deg,#0d5645 0%,#0a4438 46%,#073227 100%);
  border:1px solid rgba(200,169,106,.55);
  box-shadow:
    0 1px 0 rgba(255,246,222,.20) inset,
    0 -30px 60px -40px rgba(0,0,0,.9) inset,
    0 22px 50px -30px rgba(7,50,39,.95),
    0 3px 10px -6px rgba(7,50,39,.55);
}
html[data-look="a"] .hero::after{
  content:"";position:absolute;inset-inline-end:-70px;top:-70px;width:220px;height:220px;border-radius:50%;
  border:1px solid rgba(226,199,138,.16);
  box-shadow:0 0 0 26px rgba(226,199,138,.05), 0 0 0 58px rgba(226,199,138,.035);
  pointer-events:none;
}
html[data-look="a"] .hero-girih{position:absolute;inset:0;width:100%;height:100%;opacity:.85;pointer-events:none}
html[data-look="a"] .hero-frame{
  position:absolute;inset:9px;border:1px solid rgba(226,199,138,.30);
  border-radius:96px 96px 14px 14px / 84px 84px 14px 14px;pointer-events:none;
}
html[data-look="a"] .hero-apex{
  position:absolute;top:6px;left:50%;transform:translateX(-50%);
  color:rgba(226,199,138,.85);display:grid;place-items:center;pointer-events:none;
}
html[data-look="a"] .hero-top{position:relative;z-index:2}
html[data-look="a"] .kicker{
  margin:0 0 .15rem;font-size:.58rem;letter-spacing:.24em;text-transform:uppercase;
  color:rgba(226,199,138,.85);font-weight:600;
}
html[data-look="a"] .hero .hijri{
  font-family:'Amiri',serif;font-size:1.72rem;line-height:1.2;letter-spacing:.01em;
  margin:0;color:#fdf7e7;text-shadow:0 1px 0 rgba(0,0,0,.25);
}
html[data-look="a"] .hero .greg{margin:.2rem 0 0;font-size:.76rem;color:rgba(246,241,227,.72);letter-spacing:.02em}
html[data-look="a"] .hero .next-prayer .label{
  font-size:.56rem;letter-spacing:.22em;text-transform:uppercase;color:rgba(226,199,138,.9);
  margin-bottom:.15rem;
}
html[data-look="a"] .hero .next-prayer .name{
  font-family:'Amiri',serif;font-size:1.5rem;line-height:1.1;color:#fdf7e7;
}
html[data-look="a"] .hero .next-prayer .time{
  font-size:.95rem;color:#e6cf9a;letter-spacing:.06em;font-variant-numeric:tabular-nums;
}
html[data-look="a"] .hero .countdown{
  position:relative;z-index:2;margin-top:1rem;padding-top:.7rem;
  border-top:1px solid rgba(226,199,138,.28);
  color:rgba(246,241,227,.75);font-size:.72rem;letter-spacing:.06em;
}
html[data-look="a"] .hero .countdown b{color:#fdf7e7;font-size:1.02rem;letter-spacing:.10em}
html[data-look="a"] .cd-link{color:rgba(226,199,138,.95);font-size:.68rem;letter-spacing:.08em}

/* ---- section titles ---- */
html[data-look="a"] .section-title{margin:1.5rem 0 .65rem;align-items:baseline}
html[data-look="a"] .section-title h2{
  font-family:'Amiri',serif;font-size:1.28rem;font-weight:700;color:#123f33;letter-spacing:.01em;
}
html[data-look="a"] .section-title a{
  font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);font-weight:600;
}

/* ---- tiles ---- */
html[data-look="a"] .tile{
  position:relative;border-radius:14px;padding:.8rem .7rem .75rem;
  background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 100%);
  border:1px solid var(--line);
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset, 0 8px 18px -16px rgba(27,35,32,.55);
  transition:transform 90ms ease-out, box-shadow 90ms ease-out;
}
html[data-look="a"] .tile::after{
  content:"";position:absolute;inset:4px;border:1px solid rgba(200,169,106,.22);
  border-radius:10px;pointer-events:none;
}
html[data-look="a"] .tile:active{transform:translateY(1px) scale(.995);box-shadow:0 1px 0 rgba(255,255,255,.7) inset}
html[data-look="a"] .tile .ico{
  background:transparent;border:1px solid var(--gold-line);color:var(--gold);
  width:32px;height:32px;border-radius:9px;
}
html[data-look="a"] .tile b{font-size:.85rem;font-weight:600;color:#16241f}
html[data-look="a"] .tile small{font-size:.64rem;letter-spacing:.06em;color:#8a8f83}

/* ---- cards & ornaments ---- */
html[data-look="a"] .card,
html[data-look="a"] .dhikr{
  position:relative;border:1px solid var(--line);border-radius:16px;
  background:linear-gradient(180deg,var(--surface) 0%,#fdfaf0 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset, 0 12px 26px -24px rgba(27,35,32,.6);
}
html[data-look="a"] .card::after,
html[data-look="a"] .dhikr::after{
  content:"";position:absolute;inset:5px;border:1px solid rgba(200,169,106,.20);
  border-radius:12px;pointer-events:none;
}
html[data-look="a"] .card-scripture{padding:1.6rem 1.35rem 1.25rem;border-color:var(--gold-line)}
html[data-look="a"] .card-scripture::after{inset:7px;border-color:rgba(200,169,106,.42)}
html[data-look="a"] .orn{
  position:absolute;width:18px;height:18px;pointer-events:none;color:var(--gold);opacity:.85;
  background:no-repeat center/18px 18px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cg fill='none' stroke='%23a67c2c' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M1 6V1h5'/%3E%3Cpath d='M4.5 4.5 8 8' stroke-opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-look="a"] .orn-tl{top:8px;inset-inline-start:8px}
html[data-look="a"] .orn-tr{top:8px;inset-inline-end:8px;transform:scaleX(-1)}
html[data-look="a"] .orn-bl{bottom:8px;inset-inline-start:8px;transform:scaleY(-1)}
html[data-look="a"] .orn-br{bottom:8px;inset-inline-end:8px;transform:scale(-1)}

/* ---- scripture ---- */
html[data-look="a"] .ayat-feature{
  font-size:1.78rem;line-height:2.25;margin:0 0 .9rem;text-align:center;text-align-last:center;
  color:#14231d;
}
html[data-look="a"] .scripture-ref{
  margin:0;display:flex;align-items:center;gap:.5rem;justify-content:center;
  font-size:.72rem;letter-spacing:.08em;color:var(--gold);
}
html[data-look="a"] .scripture-ref .rule{
  width:22px;height:1px;background:linear-gradient(90deg,transparent,var(--gold-line));
}
html[data-look="a"] .scripture-ref .rule::after{content:""}
html[data-look="a"] .scripture-ref::before{
  content:"";width:7px;height:7px;transform:rotate(45deg);border:1px solid var(--gold-line);
  background:var(--gold-soft);
}

/* ---- dhikr feature ---- */
html[data-look="a"] .dhikr-feature{padding:1.15rem 1.1rem}
html[data-look="a"] .dhikr .txt{font-size:1.36rem;line-height:2.05;color:#15241e}
html[data-look="a"] .dhikr .ref{border-inline-start-color:var(--gold-line);color:#7d8378}

/* ---- tab bar ---- */
html[data-look="a"] .tabbar{
  border-top:1px solid var(--gold-line);
  box-shadow:0 -8px 26px -22px rgba(27,35,32,.8);
  padding-top:.45rem;
}
html[data-look="a"] .tabbar a{
  position:relative;border-radius:10px;transition:color 90ms ease-out, background 90ms ease-out;
  font-size:.64rem;letter-spacing:.02em;
}
html[data-look="a"] .tabbar a[aria-current="page"]{
  background:transparent;color:#0a4a3b;
}
html[data-look="a"] .tabbar a[aria-current="page"]::before{
  content:"";position:absolute;top:-.45rem;left:50%;transform:translateX(-50%);
  width:18px;height:2px;border-radius:2px;background:var(--gold);
}
html[data-look="a"] .tabbar a[aria-current="page"] svg{filter:drop-shadow(0 1px 0 rgba(200,169,106,.35))}

/* ---- motion ---- */
#app{animation:none}
#app.route-enter{animation:routeIn 120ms ease-out}
@keyframes routeIn{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}
html[data-look="a"] .count-btn,html[data-look="a"] .icon-btn,html[data-look="a"] .pager a{
  transition:transform 90ms ease-out, background 90ms ease-out, border-color 90ms ease-out;
}
html[data-look="a"] .count-btn:active,html[data-look="a"] .icon-btn:active,html[data-look="a"] .pager a:active{transform:scale(.97)}

/* dark variant of A keeps the same structure, deeper ground */
html[data-look="a"][data-theme="dark"]{
  --ivory:#0b1210; --surface:#111a17; --surface-2:#16211d; --line:#26332c;
  --gold:#d3ac63; --gold-line:#4a3f28; --gold-soft:#241d10; --ink:#ece6d7; --muted:#98a49d;
}
html[data-look="a"][data-theme="dark"] .hero{
  background:radial-gradient(120% 90% at 50% -10%, rgba(211,172,99,.16), transparent 58%),
    linear-gradient(168deg,#0f3a30 0%,#0b2b24 50%,#081e19 100%);
  border-color:rgba(211,172,99,.45);
  box-shadow:0 1px 0 rgba(255,246,222,.10) inset, 0 24px 60px -34px #000, 0 0 70px -30px rgba(58,163,132,.5);
}
html[data-look="a"][data-theme="dark"] .section-title h2{color:#e9e2d0}
html[data-look="a"][data-theme="dark"] .tile{background:linear-gradient(180deg,#121c18,#0e1613)}
html[data-look="a"][data-theme="dark"] .tile b{color:#eae4d4}
html[data-look="a"][data-theme="dark"] .card,
html[data-look="a"][data-theme="dark"] .dhikr{background:linear-gradient(180deg,#111a17,#0d1512)}
html[data-look="a"][data-theme="dark"] .ayat-feature{color:#f4eddb}
html[data-look="a"][data-theme="dark"] .dhikr .txt{color:#f0e9d8}
html[data-look="a"][data-theme="dark"] .tabbar a[aria-current="page"]{color:var(--gold)}

/* hero layout refinement */
html[data-look="a"] .hero{display:flex;flex-direction:column;gap:1rem;padding:2.5rem 1.15rem 1.05rem}
html[data-look="a"] .hero-date{position:relative;z-index:2;text-align:center}
html[data-look="a"] .hero-date .kicker{margin-bottom:.2rem}
html[data-look="a"] .hero-date .hijri{font-size:clamp(1.25rem,5.9vw,1.55rem);white-space:nowrap}
html[data-look="a"] .hero-date .greg{margin-top:.25rem}
html[data-look="a"] .hero-foot{
  position:relative;z-index:2;display:flex;align-items:flex-end;justify-content:space-between;gap:.75rem;
  padding-top:.85rem;border-top:1px solid rgba(226,199,138,.26);
}
html[data-look="a"] .hero-foot .next-prayer{text-align:start}
html[data-look="a"] .hero-foot .np-row{display:flex;align-items:baseline;gap:.45rem}
html[data-look="a"] .hero-foot .name{font-family:'Amiri',serif;font-size:1.3rem;line-height:1;color:#fdf7e7}
html[data-look="a"] .hero-foot .time{font-size:.86rem;color:#e6cf9a;font-variant-numeric:tabular-nums;letter-spacing:.04em}
html[data-look="a"] .countdown{
  display:flex;flex-direction:column;align-items:flex-end;gap:.1rem;margin:0;padding:0;border:0;
}
html[data-look="a"] .countdown .cd-label{font-size:.56rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(226,199,138,.85)}
html[data-look="a"] .countdown b{font-size:1.15rem;letter-spacing:.08em;color:#fdf7e7;font-variant-numeric:tabular-nums}
html[data-look="a"] .countdown .cd-link{font-size:.62rem;letter-spacing:.08em;color:rgba(226,199,138,.9);border-bottom:1px solid rgba(226,199,138,.35);padding-bottom:1px}
