/* Night-blue and gold theme for the public pages, built from the supplied ornament picture:
   img/texture.jpg is its plain painted-blue middle, img/corner-*.webp its four gold floral
   corners (feathered towards the centre), so any section width keeps the corners intact.
   Loaded last on / and /book. */
/* Theme variables. Blue is the default; html[data-theme="purple"] swaps colours and pictures.
   Set on :root (not body) so html-level backgrounds see them too. */
:root {
  --accent: #1d4f9c; --accent-rgb: 29, 79, 156; --accent-2: #173f80; --accent-3: #0f2f63; --accent-light: #4a86d8;
  --accent-ink: #fff;
  --gold: #e9b46a; --gold-light: #f6d9a0;
  --night: #0a3a74; --night-2: #0b2a5c; --night-deep: #04264f; --shade-rgb: 2, 25, 60;
  --light-rgb: 234, 241, 251; --tint: #eef4fd; --tint-2: #dde9fb; --tint-3: #c9d9f1;
  --line-soft: #d6e2f3; --ink-deep: #13305f; --muted-deep: #4f5f78;
  --tex: url('/template/img/texture.jpg');
  --c-tl: url('/template/img/corner-tl.webp'); --c-tr: url('/template/img/corner-tr.webp');
  --c-bl: url('/template/img/corner-bl.webp'); --c-br: url('/template/img/corner-br.webp');
}
:root[data-theme="purple"] {
  --accent: #7b2d93; --accent-rgb: 123, 45, 147; --accent-2: #5f1f76; --accent-3: #47155a; --accent-light: #b26ad0;
  --night: #5a1a6e; --night-2: #3f0f50; --night-deep: #2a0838; --shade-rgb: 40, 6, 52;
  --light-rgb: 247, 240, 251; --tint: #f6edfb; --tint-2: #ecdcf6; --tint-3: #dcc4ec;
  --line-soft: #e6d4f0; --ink-deep: #3d1250; --muted-deep: #6a5674;
  --tex: url('/template/img/purple/texture.jpg');
  --c-tl: url('/template/img/purple/corner-tl.webp'); --c-tr: url('/template/img/purple/corner-tr.webp');
  --c-bl: url('/template/img/purple/corner-bl.webp'); --c-br: url('/template/img/purple/corner-br.webp');
}
body.home .item.active, body.home .font-option.selected, body.home .btn.added { background: var(--tint); }
body.home .brand { color: var(--accent-2); }
body.home .brand-moon { color: var(--gold); }

/* Shared night background + ornament corners. The existing pattern layers become the corners. */
.hero, .wizard-head, .cta, .site-footer, .lang-picker-head {
  background:
    linear-gradient(180deg, rgba(var(--shade-rgb), .45) 0%, rgba(var(--shade-rgb), 0) 55%),
    var(--tex) center / cover,
    var(--night);
  color: #fff;
}
.hero .hero-pattern, .wizard-head .hero-pattern, .cta-pattern, .footer-pattern {
  --orn: clamp(150px, 24vw, 400px);
  opacity: 1; filter: none; -webkit-mask-image: none; mask-image: none;
  background:
    var(--c-tl) left top / var(--orn) auto no-repeat,
    var(--c-tr) right top / var(--orn) auto no-repeat,
    var(--c-bl) left bottom / var(--orn) auto no-repeat,
    var(--c-br) right bottom / var(--orn) auto no-repeat;
}
.lang-picker-head::before { opacity: .12; }

/* Hero on night blue */
.hero .hero-moon { display: none; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 20, 50, .35); }
.hero h1 .accent { color: var(--gold-light); background: none; }
.hero-bismillah { color: var(--gold-light); }
.hero-lead { color: rgba(255, 255, 255, .86); }
.hero-points { color: rgba(255, 255, 255, .8); }
.hero-points li::before { color: var(--gold); }
.hero .btn.primary { background: linear-gradient(180deg, #f6d9a0, #e9b46a); border-color: #e9b46a; color: var(--ink-deep); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.hero .btn.light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }
.hero .show-card { box-shadow: 0 26px 60px rgba(0, 12, 35, .5), 0 0 0 3px rgba(233, 180, 106, .5); }
@media (max-width: 900px) {
  .hero .hero-pattern { --orn: 130px; }
}

/* Booklet wizard header on night blue */
.wizard-head { border-bottom: 0; }
.wizard-head .hero-pattern { --orn: clamp(110px, 15vw, 230px); }
.wizard-head h1 { color: #fff; }
.wizard-head h1 .accent { color: var(--gold-light); }
.progress li + li::before { background: rgba(255, 255, 255, .25); }
.progress li.done::before, .progress li.current::before { background: var(--gold); }
.progress .dot { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); color: #fff; }
.progress li.done .dot { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); }
.progress li.current .dot { background: #fff; border-color: var(--gold); color: var(--ink-deep); box-shadow: 0 0 0 5px rgba(233, 180, 106, .3); }
.progress .lbl { color: rgba(255, 255, 255, .75); }
.progress li.current .lbl { color: #fff; }

/* Booklet block on the home page */
.cta .cta-pattern { --orn: clamp(120px, 16vw, 260px); }
.cta .cta-kicker { color: var(--gold-light); }
.cta .btn.primary { background: linear-gradient(180deg, #f6d9a0, #e9b46a); border-color: #e9b46a; color: var(--ink-deep); }
.cta-text { padding-left: clamp(0px, 4vw, 60px); }

/* Footer */
.site-footer .footer-pattern { --orn: clamp(140px, 20vw, 340px); }
.footer-moon { display: none; }
.footer-cols, .footer-bottom { border-color: rgba(246, 217, 160, .22); }
.footer-label, .footer-dua { color: var(--gold-light); }
.share-btn.copy { background: linear-gradient(180deg, #f6d9a0, #e9b46a); border-color: #e9b46a; color: var(--ink-deep); }
.lang-button.footer svg:first-child { color: var(--gold-light); }
/* Keep footer text clear of the side ornaments on wide screens. */
@media (min-width: 1100px) { .footer-inner { padding-left: 110px; padding-right: 110px; } }

/* "How it works": the second icon follows the new accent */
.how .step:nth-child(2) .step-icon { background: linear-gradient(135deg, var(--accent), var(--accent-light)); }
/* Hero text starts near the left edge: keep the corners a bit smaller there. */
.hero .hero-pattern { --orn: clamp(130px, 18vw, 290px); }
@media (max-width: 900px) { .hero .hero-pattern { --orn: 130px; } }

/* Bismillah: centred over the whole first screen, framed by thin gold lines. */
.hero-inner { padding-top: 34px; }
.hero .hero-bismillah {
  grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; gap: 18px;
  margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 34px); color: var(--gold-light); text-align: center;
  text-shadow: 0 2px 14px rgba(0, 20, 50, .45);
}
.hero .hero-bismillah::before, .hero .hero-bismillah::after {
  content: ''; width: clamp(40px, 9vw, 130px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Feature points as readable pills over the ornament. */
.hero-points { gap: 8px; }
.hero-points li {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  background: rgba(var(--shade-rgb), .62); border: 1px solid rgba(246, 217, 160, .35); color: #fff;
  backdrop-filter: blur(3px); font-size: 14px;
}
.hero-points li::before { margin-right: 8px; }

/* ---- Light sections in soft blue, flowing into the night-blue blocks ---- */
body.home {
  --bg: rgb(var(--light-rgb));
  --line: var(--line-soft);
  background: linear-gradient(180deg, rgb(var(--light-rgb)) 0%, #e3ecf9 55%, #c8d9f1 100%);
}
html:has(body.home) { background: var(--night-2); }

/* Hero → content: the wave melts into the light blue. */
.hero-wave path { fill: rgb(var(--light-rgb)); }

/* "How it works": light blue band with a deeper middle and the gold lattice. */
.how { background: linear-gradient(180deg, rgb(var(--light-rgb)) 0%, var(--tint-2) 50%, rgb(var(--light-rgb)) 100%); }
.how-pattern { opacity: .28; }
.how-title, .section-head.centered h2, .wstep-head h2, .download-title, .result-head h2 { color: var(--ink-deep); }
.how .step { background: linear-gradient(160deg, #ffffff 0%, var(--tint) 100%); border-color: var(--line-soft); box-shadow: 0 14px 34px rgba(var(--shade-rgb), .08); }
.how .step p { color: var(--muted-deep); }
.step-num { color: rgba(var(--accent-rgb), .12); }

/* Catalogue and wizard surfaces */
.card-item, .cover-pick, .dua-tile, .font-option, .result, .panel { border-color: var(--line-soft); }
.card-wrap, .dua-tile-img { background: var(--tint-2); }
.segmented { border-color: var(--line-soft); }
.chain-group, .tile-chain { background: var(--tint); border-color: rgba(var(--accent-rgb), .4); }
.spread-viewer { background: linear-gradient(180deg, var(--tint-2), var(--tint-3)); }
.print-help, .print-tip { background: var(--tint); border-color: var(--line-soft); }
@media (max-width: 760px) {
  .wizard-nav { background: rgba(var(--light-rgb), .95); border-top-color: var(--line-soft); }
}

/* Booklet block → footer: soft glow at the footer's top edge instead of a hard line. */
.site-footer { margin-top: 56px; }
.site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(200, 217, 241, .55), rgba(200, 217, 241, 0));
}
.footer-inner { z-index: 1; }

/* Wizard header → step area */
.wizard-head { box-shadow: 0 18px 30px -18px rgba(4, 38, 79, .45); }
/* Footer top: a soft wave in the page colour instead of the glow. */
.site-footer::before {
  height: 64px; top: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v22c-240 36-480 36-720 12S240-6 0 26z' fill='%23c9d9f1'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
}
.site-footer { margin-top: 40px; }
.footer-inner { padding-top: 84px; }
.site-footer::before { z-index: 2; }

/* ---- Final layout of the theme: ornaments only at the site's corners, soft fades between zones ---- */
body.home { background: rgb(var(--light-rgb)); }
html:has(body.home) { background: var(--night-deep); }

/* No lattice pattern anywhere; no waves. */
.how-pattern, .lang-picker-head::before, .spread-viewer::before { display: none; }
.hero-wave { display: none; }

/* Hero: top corners only, the night blue melts into the light page at the bottom. */
.hero {
  background:
    linear-gradient(180deg, rgba(var(--light-rgb), 0) 0%, rgba(var(--light-rgb), 0) 72%, rgb(var(--light-rgb)) 100%),
    linear-gradient(180deg, rgba(var(--shade-rgb), .45) 0%, rgba(var(--shade-rgb), 0) 50%),
    var(--tex) center / cover,
    var(--night);
}
.hero .hero-pattern {
  --orn: clamp(140px, 20vw, 320px);
  background:
    var(--c-tl) left top / var(--orn) auto no-repeat,
    var(--c-tr) right top / var(--orn) auto no-repeat;
}
.hero-inner { padding-bottom: 170px; }
@media (max-width: 900px) { .hero .hero-pattern { --orn: 130px; } .hero-inner { padding-bottom: 120px; } }

/* Booklet header: top corners, fades into the step area. */
.wizard-head {
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(var(--light-rgb), 0) 55%, rgb(var(--light-rgb)) 100%),
    var(--tex) center / cover, var(--night);
}
.wizard-head .hero-pattern {
  background:
    var(--c-tl) left top / var(--orn) auto no-repeat,
    var(--c-tr) right top / var(--orn) auto no-repeat;
}
.wizard-head-inner { padding-bottom: 64px; }

/* Booklet block in the page: plain night blue card, no ornaments. */
.cta .cta-pattern { display: none; }
.cta-text { padding-left: 0; }

/* Footer: the light page darkens into night blue; bottom corners only. */
.site-footer::before { display: none; }
.site-footer {
  margin-top: 0;
  background:
    linear-gradient(180deg, rgb(var(--light-rgb)) 0%, rgba(var(--light-rgb), 0) 170px),
    var(--tex) center / cover, var(--night);
}
.site-footer .footer-pattern {
  --orn: clamp(140px, 20vw, 320px);
  background:
    var(--c-bl) left bottom / var(--orn) auto no-repeat,
    var(--c-br) right bottom / var(--orn) auto no-repeat;
}
.footer-inner { padding-top: 190px; }
@media (max-width: 900px) { .site-footer .footer-pattern { --orn: 120px; } .footer-inner { padding-top: 150px; } }

/* ---- Long eased fades between the night blue and the light page (no visible band) ---- */
.hero {
  background:
    linear-gradient(180deg, rgba(var(--light-rgb), 0) 0%, rgba(var(--light-rgb), 0) 48.0%, rgba(var(--light-rgb), 0.02) 52.3%, rgba(var(--light-rgb), 0.074) 56.7%, rgba(var(--light-rgb), 0.156) 61.0%, rgba(var(--light-rgb), 0.259) 65.3%, rgba(var(--light-rgb), 0.376) 69.7%, rgba(var(--light-rgb), 0.5) 74.0%, rgba(var(--light-rgb), 0.624) 78.3%, rgba(var(--light-rgb), 0.741) 82.7%, rgba(var(--light-rgb), 0.844) 87.0%, rgba(var(--light-rgb), 0.926) 91.3%, rgba(var(--light-rgb), 0.98) 95.7%, rgba(var(--light-rgb), 1) 100.0%),
    linear-gradient(180deg, rgba(var(--shade-rgb), .45) 0%, rgba(var(--shade-rgb), 0) 45%),
    var(--tex) center / cover,
    var(--night);
}
.hero-inner { padding-bottom: 260px; }
@media (max-width: 900px) { .hero-inner { padding-bottom: 200px; } }

.wizard-head {
  background:
    linear-gradient(180deg, rgba(var(--light-rgb), 0) 0%, rgba(var(--light-rgb), 0) 35.0%, rgba(var(--light-rgb), 0.02) 40.4%, rgba(var(--light-rgb), 0.074) 45.8%, rgba(var(--light-rgb), 0.156) 51.3%, rgba(var(--light-rgb), 0.259) 56.7%, rgba(var(--light-rgb), 0.376) 62.1%, rgba(var(--light-rgb), 0.5) 67.5%, rgba(var(--light-rgb), 0.624) 72.9%, rgba(var(--light-rgb), 0.741) 78.3%, rgba(var(--light-rgb), 0.844) 83.8%, rgba(var(--light-rgb), 0.926) 89.2%, rgba(var(--light-rgb), 0.98) 94.6%, rgba(var(--light-rgb), 1) 100.0%),
    var(--tex) center / cover, var(--night);
}
.wizard-head-inner { padding-bottom: 96px; }

.site-footer {
  background:
    linear-gradient(180deg, rgba(var(--light-rgb), 1) calc(0px + (340px - 0px) * 0.000), rgba(var(--light-rgb), 0.98) calc(0px + (340px - 0px) * 0.083), rgba(var(--light-rgb), 0.926) calc(0px + (340px - 0px) * 0.167), rgba(var(--light-rgb), 0.844) calc(0px + (340px - 0px) * 0.250), rgba(var(--light-rgb), 0.741) calc(0px + (340px - 0px) * 0.333), rgba(var(--light-rgb), 0.624) calc(0px + (340px - 0px) * 0.417), rgba(var(--light-rgb), 0.5) calc(0px + (340px - 0px) * 0.500), rgba(var(--light-rgb), 0.376) calc(0px + (340px - 0px) * 0.583), rgba(var(--light-rgb), 0.259) calc(0px + (340px - 0px) * 0.667), rgba(var(--light-rgb), 0.156) calc(0px + (340px - 0px) * 0.750), rgba(var(--light-rgb), 0.074) calc(0px + (340px - 0px) * 0.833), rgba(var(--light-rgb), 0.02) calc(0px + (340px - 0px) * 0.917), rgba(var(--light-rgb), 0) calc(0px + (340px - 0px) * 1.000)),
    var(--tex) center / cover, var(--night);
}
.footer-inner { padding-top: 330px; }
@media (max-width: 900px) { .footer-inner { padding-top: 260px; } }

/* ---- Compact spacing: shorter fades, less empty space around them ---- */
.hero {
  background:
    linear-gradient(180deg, rgba(var(--light-rgb), 0) 0%, rgba(var(--light-rgb), 0) 74.0%, rgba(var(--light-rgb), 0.028) 76.6%, rgba(var(--light-rgb), 0.104) 79.2%, rgba(var(--light-rgb), 0.216) 81.8%, rgba(var(--light-rgb), 0.352) 84.4%, rgba(var(--light-rgb), 0.5) 87.0%, rgba(var(--light-rgb), 0.648) 89.6%, rgba(var(--light-rgb), 0.784) 92.2%, rgba(var(--light-rgb), 0.896) 94.8%, rgba(var(--light-rgb), 0.972) 97.4%, rgba(var(--light-rgb), 1) 100.0%),
    linear-gradient(180deg, rgba(var(--shade-rgb), .45) 0%, rgba(var(--shade-rgb), 0) 45%),
    var(--tex) center / cover, var(--night);
}
.hero-inner { padding-bottom: 110px; }
@media (max-width: 900px) { .hero-inner { padding-bottom: 90px; } }
.how-inner { padding-top: 8px; padding-bottom: 36px; }
.section-head.centered { padding-top: 32px; }

.site-footer {
  margin-top: 8px;
  background:
    linear-gradient(180deg, rgba(var(--light-rgb), 1) 0.0px, rgba(var(--light-rgb), 0.972) 15.0px, rgba(var(--light-rgb), 0.896) 30.0px, rgba(var(--light-rgb), 0.784) 45.0px, rgba(var(--light-rgb), 0.648) 60.0px, rgba(var(--light-rgb), 0.5) 75.0px, rgba(var(--light-rgb), 0.352) 90.0px, rgba(var(--light-rgb), 0.216) 105.0px, rgba(var(--light-rgb), 0.104) 120.0px, rgba(var(--light-rgb), 0.028) 135.0px, rgba(var(--light-rgb), 0) 150.0px),
    var(--tex) center / cover, var(--night);
}
.footer-inner { padding-top: 150px; }
@media (max-width: 900px) { .footer-inner { padding-top: 130px; } }
.cta { margin-bottom: 24px; }

.wizard-head {
  background:
    linear-gradient(180deg, rgba(var(--light-rgb), 0) 0%, rgba(var(--light-rgb), 0) 55.0%, rgba(var(--light-rgb), 0.028) 59.5%, rgba(var(--light-rgb), 0.104) 64.0%, rgba(var(--light-rgb), 0.216) 68.5%, rgba(var(--light-rgb), 0.352) 73.0%, rgba(var(--light-rgb), 0.5) 77.5%, rgba(var(--light-rgb), 0.648) 82.0%, rgba(var(--light-rgb), 0.784) 86.5%, rgba(var(--light-rgb), 0.896) 91.0%, rgba(var(--light-rgb), 0.972) 95.5%, rgba(var(--light-rgb), 1) 100.0%),
    var(--tex) center / cover, var(--night);
}
.wizard-head-inner { padding-bottom: 60px; }

/* ---- Longer, softer blue fades (between the compact and the very long version) ---- */
.hero {
  background:
    linear-gradient(180deg, rgba(var(--light-rgb), 0) 0%, rgba(var(--light-rgb), 0) 62.0%, rgba(var(--light-rgb), 0.02) 65.2%, rgba(var(--light-rgb), 0.074) 68.3%, rgba(var(--light-rgb), 0.156) 71.5%, rgba(var(--light-rgb), 0.259) 74.7%, rgba(var(--light-rgb), 0.376) 77.8%, rgba(var(--light-rgb), 0.5) 81.0%, rgba(var(--light-rgb), 0.624) 84.2%, rgba(var(--light-rgb), 0.741) 87.3%, rgba(var(--light-rgb), 0.844) 90.5%, rgba(var(--light-rgb), 0.926) 93.7%, rgba(var(--light-rgb), 0.98) 96.8%, rgba(var(--light-rgb), 1) 100.0%),
    linear-gradient(180deg, rgba(var(--shade-rgb), .45) 0%, rgba(var(--shade-rgb), 0) 45%),
    var(--tex) center / cover, var(--night);
}
.hero-inner { padding-bottom: 180px; }
@media (max-width: 900px) { .hero-inner { padding-bottom: 140px; } }
.site-footer {
  background:
    linear-gradient(180deg, rgba(var(--light-rgb), 1) 0.0px, rgba(var(--light-rgb), 0.98) 20.8px, rgba(var(--light-rgb), 0.926) 41.7px, rgba(var(--light-rgb), 0.844) 62.5px, rgba(var(--light-rgb), 0.741) 83.3px, rgba(var(--light-rgb), 0.624) 104.2px, rgba(var(--light-rgb), 0.5) 125.0px, rgba(var(--light-rgb), 0.376) 145.8px, rgba(var(--light-rgb), 0.259) 166.7px, rgba(var(--light-rgb), 0.156) 187.5px, rgba(var(--light-rgb), 0.074) 208.3px, rgba(var(--light-rgb), 0.02) 229.2px, rgba(var(--light-rgb), 0) 250.0px),
    var(--tex) center / cover, var(--night);
}
.footer-inner { padding-top: 230px; }
@media (max-width: 900px) { .footer-inner { padding-top: 190px; } }
.wizard-head {
  background:
    linear-gradient(180deg, rgba(var(--light-rgb), 0) 0%, rgba(var(--light-rgb), 0) 42.0%, rgba(var(--light-rgb), 0.02) 46.8%, rgba(var(--light-rgb), 0.074) 51.7%, rgba(var(--light-rgb), 0.156) 56.5%, rgba(var(--light-rgb), 0.259) 61.3%, rgba(var(--light-rgb), 0.376) 66.2%, rgba(var(--light-rgb), 0.5) 71.0%, rgba(var(--light-rgb), 0.624) 75.8%, rgba(var(--light-rgb), 0.741) 80.7%, rgba(var(--light-rgb), 0.844) 85.5%, rgba(var(--light-rgb), 0.926) 90.3%, rgba(var(--light-rgb), 0.98) 95.2%, rgba(var(--light-rgb), 1) 100.0%),
    var(--tex) center / cover, var(--night);
}
.wizard-head-inner { padding-bottom: 84px; }

/* ---- Deeper backdrop behind the card grids (catalogue, wizard steps), fading in and out ---- */
:root { --deep-rgb: 150, 180, 228; }
:root[data-theme="purple"] { --deep-rgb: 196, 160, 222; }
.catalog, .wizard {
  background: linear-gradient(180deg,
    rgba(var(--deep-rgb), 0) 0px, rgba(var(--deep-rgb), .55) 160px,
    rgba(var(--deep-rgb), .75) 50%,
    rgba(var(--deep-rgb), .55) calc(100% - 160px), rgba(var(--deep-rgb), 0) 100%);
}
.catalog { padding-bottom: 60px; }
.wizard { max-width: none; padding-left: max(16px, calc((100% - 1100px) / 2)); padding-right: max(16px, calc((100% - 1100px) / 2)); padding-bottom: 70px; }
.card-item, .cover-pick, .dua-tile { box-shadow: 0 10px 26px rgba(var(--shade-rgb), .14); }
.section-head.centered #count, .wstep-head p { color: var(--muted-deep); }

/* ---- Whole page in the night colour: no light bands between the blocks ----
   --page-rgb is the dark texture tone; the header/footer fades now end in it, so the page is one
   continuous dark fill. White cards and panels stay as they are; text lying on the page goes light. */
:root { --page-rgb: 4, 70, 126; }
:root[data-theme="purple"] { --page-rgb: 98, 30, 104; }
body.home { background: rgb(var(--page-rgb)); }
.hero, .wizard-head, .site-footer { --light-rgb: var(--page-rgb); }
.hero-inner { padding-bottom: 110px; }
@media (max-width: 900px) { .hero-inner { padding-bottom: 80px; } }
.wizard-head-inner { padding-bottom: 56px; }
.footer-inner { padding-top: 120px; }
@media (max-width: 900px) { .footer-inner { padding-top: 96px; } }
.how, .catalog, .wizard { background: none; }
.cta { border: 1px solid rgba(246, 217, 160, .35); box-shadow: 0 22px 50px rgba(0, 0, 0, .28); }

/* Text on the dark page */
.how-title, .section-head h2, .wstep-head h2, .all-duas h2, .wizard .big-label, .wizard .links { color: #fff; }
.how-kicker, .wizard .cta-kicker.gold { color: var(--gold-light); }
.section-head.centered #count, .section-head .muted, .wstep-head p { color: rgba(255, 255, 255, .74); }
.wizard .links .link, .all-duas a { color: var(--gold-light); }
@media (max-width: 760px) {
  .wizard-nav { background: rgba(var(--page-rgb), .94); border-top-color: rgba(246, 217, 160, .25); }
}
.section-head.centered h2 { color: #fff; }
/* Main wizard button in gold, so it stands out on the dark page (like the hero buttons). */
.wizard-nav #forward { background: linear-gradient(180deg, #f6d9a0, #e9b46a); border-color: #e9b46a; color: var(--ink-deep); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.wizard-nav #back { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }
/* Progress dots opaque, so the connecting line doesn't show through them; less empty space below. */
.progress .dot { background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .16)), rgb(var(--page-rgb)); }
.progress li.done .dot { background: var(--gold); }
.progress li.current .dot { background: #fff; }
.wizard-head-inner { padding-bottom: 30px; }
/* "How it works" cards: night glass with a thin gold edge instead of white. */
.how .step {
  background: linear-gradient(160deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .04) 100%);
  border: 1px solid rgba(246, 217, 160, .32); box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  backdrop-filter: blur(4px);
}
.how .step:hover { box-shadow: 0 24px 48px rgba(0, 0, 0, .3); border-color: rgba(246, 217, 160, .55); }
.how .step h3 { color: #fff; }
.how .step p { color: rgba(255, 255, 255, .76); }
.how .step-num { color: rgba(246, 217, 160, .18); }
.how .step:nth-child(2) .step-icon { background: linear-gradient(135deg, var(--accent-light), var(--accent)); box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
/* "How it works" cards in two shades of gold: light champagne into warm gold, dark text. */
.how .step {
  background: linear-gradient(150deg, #fbecc9 0%, #f3d79a 55%, #e6bc6c 100%);
  border: 1px solid rgba(255, 240, 205, .75); box-shadow: 0 18px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
  backdrop-filter: none;
}
.how .step:hover { border-color: #fff3d6; box-shadow: 0 24px 48px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .6); }
.how .step h3 { color: var(--ink-deep); }
.how .step p { color: #5b4520; }
.how .step-num { color: rgba(140, 94, 24, .2); }
.how .step:nth-child(2) .step-icon { background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.how .step:nth-child(3) .step-icon { background: linear-gradient(135deg, #b5832b, #7f5512); box-shadow: 0 8px 18px rgba(90, 55, 10, .3); }

/* Dua recordings: a gold play button on the picture (top left), a wide "Listen" button on dua pages. */
.audio-btn svg { fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.audio-btn.playing svg { fill: none; stroke-width: 3; stroke-linecap: round; }
.btn-float.audio-float {
  left: 8px; right: auto; width: 40px; height: 40px; opacity: 1;
  background: linear-gradient(180deg, #f6d9a0, #e9b46a); color: var(--ink-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.btn-float.audio-float svg { width: 17px; height: 17px; }
.btn-float.audio-float:hover { transform: scale(1.08); }
.btn-float.audio-float.playing { box-shadow: 0 0 0 4px rgba(246, 217, 160, .45), 0 4px 14px rgba(0, 0, 0, .28); }
.btn.audio-wide {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #f6d9a0, #e9b46a); border-color: #e9b46a; color: var(--ink-deep);
}
.btn.audio-wide svg { width: 18px; height: 18px; }

/* Card row: gold round play button first, then download (stretches), share, booklet. */
.card-tools { display: flex; }
.card-tools .tool-main { flex: 1 1 auto; min-width: 0; }
.card-tools .btn.tool-audio {
  flex: none; width: 40px; padding: 0; border-radius: 50%; border: 0;
  background: linear-gradient(180deg, #f6d9a0, #e9b46a); color: var(--ink-deep);
  box-shadow: 0 4px 12px rgba(150, 100, 30, .3); transition: transform .15s ease, box-shadow .15s ease;
}
.card-tools .btn.tool-audio svg { width: 16px; height: 16px; margin-left: 2px; }
.card-tools .btn.tool-audio.playing svg { margin-left: 0; }
.card-tools .btn.tool-audio:hover { transform: scale(1.06); }
.card-tools .btn.tool-audio.playing { box-shadow: 0 0 0 4px rgba(233, 180, 106, .35), 0 4px 12px rgba(150, 100, 30, .3); }

/* ---- Footer: flat, no shadows or outlines; everything lines up on the same left edge ---- */
.footer-inner { max-width: 1180px; }
.footer-share { grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; padding: 0; background: none; border: 0; box-shadow: none; }
.footer-share h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.footer-share p { font-size: 17px; max-width: 640px; color: rgba(233, 245, 242, .8); }
.share-buttons { grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 8px; }
.share-btn, .share-btn.whatsapp, .share-btn.telegram, .share-btn.vk, .share-btn.copy {
  justify-content: flex-start; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; font-size: 14px;
  background: rgba(255, 255, 255, .1); border: 0; box-shadow: none; color: #fff;
}
.share-btn:hover { transform: none; background: rgba(255, 255, 255, .18); }
.share-btn svg { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.share-btn.whatsapp svg { background: #25d366; color: #073b1c; }
.share-btn.telegram svg { background: #2aabee; }
.share-btn.vk svg { background: #0077ff; }
.share-btn.copy { background: #f0cd8a; color: var(--ink-deep); }
.share-btn.copy:hover { background: #f6d9a0; }
.share-btn.copy svg { background: rgba(255, 255, 255, .5); }
@media (max-width: 900px) { .footer-share { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .share-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.footer-cols, .footer-bottom { border: 0; position: relative; }
.footer-cols::before, .footer-bottom::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 217, 160, .4), transparent);
}
.footer-cols { grid-template-columns: 1.5fr 1fr 1fr; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-logo { color: var(--gold-light); }
.footer-nav a { position: relative; padding-left: 16px; }
.footer-nav a::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: rgba(246, 217, 160, .55); }
.footer-nav a:hover::before { background: var(--gold-light); }
.footer-lang { display: grid; align-content: start; justify-items: start; }
.footer-lang .lang-button + .footer-label { margin-top: 24px; }
.lang-button.footer, .lang-button.footer:hover { background: rgba(255, 255, 255, .1); border-color: transparent; box-shadow: none; }
.lang-button.footer:hover { background: rgba(255, 255, 255, .18); }

/* Theme switch (header and footer): two plain swatches, the chosen one ringed in gold. */
.theme-switch, .site-bar .theme-switch, .site-footer .theme-switch { margin: 0; gap: 12px; padding: 4px; background: none; border: 0; box-shadow: none; }
.site-bar .theme-switch { margin-left: auto; padding: 0 6px; gap: 10px; }
.theme-dot { border: 0; box-shadow: none; opacity: .7; transition: opacity .15s ease, transform .15s ease; }
.theme-dot:hover { opacity: 1; }
.theme-dot[aria-pressed="true"] { opacity: 1; border: 0; box-shadow: none; outline: 1.5px solid #d9a752; outline-offset: 2px; }
.site-bar .theme-dot { width: 20px; height: 20px; }
.site-footer .theme-dot { width: 28px; height: 28px; }
.site-footer .theme-dot[aria-pressed="true"] { outline-color: var(--gold-light); outline-offset: 3px; }
@media (max-width: 600px) {
  .site-bar { column-gap: 8px; }
  .site-bar .theme-switch { gap: 8px; padding: 0 4px; }
  .site-bar .theme-dot { width: 18px; height: 18px; }
}

/* Closing line: the dua, then licence · voice · copyright as plain text, no boxes. */
.footer-bottom { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; text-align: center; padding-top: 30px; }
.footer-dua { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 21px; }
.footer-dua::before, .footer-dua::after { content: '✦'; font-size: 12px; opacity: .7; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 20px; }
.footer-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0;
  color: rgba(233, 245, 242, .8); text-decoration: none; font-size: 13px; opacity: 1;
}
.footer-pill:hover { color: #fff; text-decoration: none; }
.footer-pill:hover span { text-decoration: underline; }
.footer-pill b { flex: none; white-space: nowrap; padding: 2px 8px; border-radius: 999px; font-size: 11px; letter-spacing: .03em; background: #f0cd8a; color: var(--ink-deep); }
.footer-pill svg { width: 16px; height: 16px; fill: none; stroke: var(--gold-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-copy { font-size: 13px; color: rgba(233, 245, 242, .6); }
/* Phones with a native share button: five buttons don't fit one row, so "add to book" takes its own. */
@media (max-width: 480px) {
  .card-tools:has(.tool-icon:not(.tool-bg)) { flex-wrap: wrap; }
  .card-tools:has(.tool-icon:not(.tool-bg)) .tool-book { flex: 1 0 100%; }
}

/* Footer contact column: Telegram QR (desktop) and a link pill. */
.footer-cols { grid-template-columns: 1.4fr 1fr 1fr auto; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-contact { display: grid; align-content: start; justify-items: start; gap: 12px; }
.footer-contact .footer-label { margin-bottom: 2px; }
.footer-qr { display: block; line-height: 0; border-radius: 16px; transition: transform .15s ease; }
.footer-qr:hover { transform: scale(1.03); }
.footer-qr img { width: 150px; height: auto; }
.footer-tg { padding: 0; background: none; border: 0; font-size: 15px; }
.footer-tg svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #2aabee; stroke: #fff; }
.footer-tg:hover { background: none; color: #fff; }
@media (max-width: 760px) { .footer-qr { display: none; } }
/* Desktop shows the QR only; phones (no QR) keep the @myfirstdua link. */
@media (min-width: 761px) { .footer-tg { display: none; } }

/* Header menu as clear tabs: icon + label, the current page filled, the other one outlined. */
.site-nav { gap: 8px; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--accent-2); border: 1px solid rgba(var(--accent-rgb), .28);
  background: rgba(255, 255, 255, .6); transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.site-nav a::before {
  content: ''; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--nav-icon) center / contain no-repeat; mask: var(--nav-icon) center / contain no-repeat;
}
.site-nav a[data-i18n="nav.cards"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='13' height='15' rx='2'/%3E%3Cpath d='M8 3h11a2 2 0 0 1 2 2v13'/%3E%3C/svg%3E");
}
.site-nav a[data-i18n="nav.book"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 6c-2-1.6-5-2-9-2v14c4 0 7 .4 9 2 2-1.6 5-2 9-2V4c-4 0-7 .4-9 2z'/%3E%3Cpath d='M12 6v14'/%3E%3C/svg%3E");
}
.site-nav a:hover { background: #fff; border-color: rgba(var(--accent-rgb), .55); color: var(--accent); }
.site-nav a.active, .site-nav a.active:hover {
  background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(var(--accent-rgb), .25);
}
@media (min-width: 601px) { .site-bar .site-nav { top: 0; } }
@media (max-width: 600px) {
  .site-bar .site-nav { gap: 6px; }
  .site-nav a { flex: 1; justify-content: center; padding: 7px 10px; font-size: 14px; }
}
/* Two colours: cards in the theme's blue, the booklet in gold; the current page gets a ring. */
.site-nav a[data-i18n="nav.cards"], .site-nav a[data-i18n="nav.cards"]:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.site-nav a[data-i18n="nav.book"], .site-nav a[data-i18n="nav.book"]:hover {
  background: linear-gradient(180deg, #f6d9a0, #e9b46a); border-color: #e2a955; color: var(--ink-deep);
}
.site-nav a:hover { filter: brightness(1.06); }
.site-nav a.active, .site-nav a.active:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(var(--accent-rgb), .45); }
.site-nav a[data-i18n="nav.book"].active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(226, 169, 85, .7); }

/* Wide screens: menu tabs on the left, the site name in the middle, theme and language on the right. */
@media (min-width: 1100px) {
  .site-bar .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
  .site-bar .site-nav { margin-right: auto; }
}
/* Header controls share one size (the language button's), and the language button is gold too. */
.site-nav a { padding: 8px 14px 8px 12px; font-size: 14px; gap: 6px; }
.site-nav a::before { width: 17px; height: 17px; }
.site-bar .lang-button {
  background: linear-gradient(180deg, #f6d9a0, #e9b46a); border-color: #e2a955; color: var(--ink-deep);
}
.site-bar .lang-button svg:first-child { color: var(--ink-deep); }
.site-bar .lang-button:hover { border-color: #d39a45; box-shadow: 0 4px 12px rgba(150, 100, 30, .25); filter: brightness(1.04); }
@media (min-width: 601px) { .site-nav a, .site-bar .lang-button { height: 38px; box-sizing: border-box; } }

/* Hero, tidier: two buttons of one height, the feature points as one even line without pills. */
.hero-actions { gap: 12px; }
.hero-actions .btn.big {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px;
  border-radius: 14px; font-weight: 600; font-size: 16px; box-sizing: border-box;
}
.hero .btn.light { background: rgba(255, 255, 255, .12); border: 1px solid rgba(246, 217, 160, .55); }
.hero .btn.light:hover { background: rgba(255, 255, 255, .2); }
.hero-points { margin-top: 26px; gap: 10px 26px; }
.hero-points li {
  padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none;
  color: rgba(255, 255, 255, .88); font-size: 15px;
}
.hero-points li::before { color: var(--gold-light); margin-right: 8px; }
@media (max-width: 800px) { .hero-points { flex-direction: column; align-items: center; gap: 8px; } }

/* The number of duas over the catalogue is not needed. */
.section-head #count { display: none; }
@media (max-width: 800px) { .hero-actions { flex-direction: column; align-items: center; } .hero-actions .btn.big { width: min(100%, 320px); } }
/* Feature points: one line under both hero columns; the fanned cards sit a little higher.
   Phones: points stay above the cards. */
.hero-points { grid-column: 1 / -1; margin-top: 6px; }
@media (min-width: 901px) {
  .hero-points { flex-wrap: nowrap; justify-content: flex-start; white-space: nowrap; }
  .show-card { top: 42%; }
}
@media (max-width: 900px) { .hero-showcase { order: 2; } .hero-points { margin-top: 18px; } }
/* Gallery card picture is a link to the dua's page. */
a.card-wrap { display: block; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
a.card-wrap:hover { box-shadow: 0 10px 26px rgba(var(--accent-rgb), .25); transform: translateY(-2px); }
a.card-wrap:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { a.card-wrap:hover { transform: none; } }
/* Wide screens: the points sit right under the buttons (column 1); the card fan spans both rows,
   and the spare height goes below the points instead of between buttons and points. */
@media (min-width: 901px) {
  .hero-inner { grid-template-rows: auto auto 1fr; }
  .hero-text { grid-column: 1; grid-row: 2; align-self: end; }
  .hero-showcase { grid-column: 2; grid-row: 2 / span 2; }
  .hero-points { grid-column: 1; grid-row: 3; align-self: start; margin-top: 24px; }
}
@media (min-width: 901px) {
  /* The one-line points must not widen the text column (that pushed the title onto the cards). */
  .hero-points { min-width: 0; margin-top: 28px; gap: 10px 22px; }
}

/* ---- Hero, centred composition (2026-11-04): bismillah, title, lead, buttons and points in one
   centred column; the fan of three cards below them as a showcase. Overrides the two-column hero. ---- */
@media (min-width: 901px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; justify-items: center; text-align: center; gap: 0; }
  .hero-bismillah { grid-column: 1; grid-row: 1; text-align: center; }
  .hero-text { grid-column: 1; grid-row: 2; align-self: auto; max-width: 860px; }
  .hero h1 { font-size: clamp(38px, 4.2vw, 58px); margin-bottom: 16px; }
  .hero-lead { max-width: 640px; margin: 0 auto 26px; }
  .hero-actions { justify-content: center; }
  .hero-points { grid-column: 1; grid-row: 3; justify-content: center; margin-top: 22px; }
  .hero-showcase { grid-column: 1; grid-row: 4; width: min(100%, 980px); height: clamp(300px, 27vw, 400px); margin-top: 18px; }
  .show-card { top: 50%; width: clamp(220px, 20vw, 290px); }
  .show-card.s1 { transform: translate(-128%, -46%) rotate(-8deg); }
  .show-card.s3 { transform: translate(28%, -44%) rotate(7deg); }
  @keyframes float1 { 50% { transform: translate(-128%, -49%) rotate(-9deg); } }
  @keyframes float3 { 50% { transform: translate(28%, -47%) rotate(8deg); } }
}

/* Dua page text panel: warm parchment like the card itself instead of plain white. */
.dua-text {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fffaf0 0%, #fbefd6 55%, #f6e3bd 100%);
  border: 1px solid rgba(201, 162, 74, .55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22), inset 0 0 0 6px rgba(255, 255, 255, .35);
}
.dua-text::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: var(--star-pattern); background-size: 110px;
}
.dua-text > * { position: relative; }
.dua-text h2 { color: #8a651c; }
.dua-chain { background: rgba(255, 255, 255, .55); border: 1px solid rgba(201, 162, 74, .35); }
.dua-chain p, .dua-chain a { color: var(--accent-2); }
/* Panel ornament: 8-pointed-star girih (template/img/girih.svg, generated by Hankin's method). */
.dua-text::before { background-image: url('/template/img/girih.svg'); background-size: 96px; opacity: .3; }
.dua-text::before { background-size: 100px; opacity: .55; }

/* Dua page: previous / next dua on both sides of the title. */
.dua-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.dua-pager h1 { margin: 0; }
.dua-prev, .dua-next {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 14px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(246, 217, 160, .45); transition: background .15s ease;
}
.dua-prev { justify-self: end; }
.dua-next { justify-self: start; }
.dua-prev:hover, .dua-next:hover { background: rgba(255, 255, 255, .2); }
.dua-prev > span[aria-hidden], .dua-next > span[aria-hidden] { color: var(--gold-light); font-size: 18px; line-height: 1; }
.pager-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dua-prev[href="#"], .dua-next[href="#"] { visibility: hidden; }
@media (max-width: 700px) {
  .dua-pager { grid-template-columns: 1fr 1fr; }
  .dua-pager h1 { grid-column: 1 / -1; grid-row: 1; }
  .dua-prev, .dua-next { grid-row: 2; justify-self: stretch; justify-content: center; }
}
/* Long neighbour titles shorten with an ellipsis instead of widening the page. */
.dua-prev, .dua-next { min-width: 0; }
@media (max-width: 700px) {
  .dua-pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .dua-prev, .dua-next { padding: 8px 12px; font-size: 13px; }
}
.dua-text::before { opacity: .24; }

/* Prev / next dua: round arrows on the card's middle line, outside the card and the text panel
   (over the card's edges on phones). Neighbour titles stay as tooltip / screen-reader text. */
.dua-main { position: relative; }
.dua-prev, .dua-next {
  position: absolute; top: var(--card-mid, 220px); z-index: 3; transform: translateY(-50%);
  width: 52px; height: 52px; padding: 0; gap: 0; justify-content: center; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(246, 217, 160, .6);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25); backdrop-filter: blur(4px);
}
.dua-prev { left: -72px; }
.dua-next { right: -72px; }
.dua-prev:hover, .dua-next:hover { background: rgba(255, 255, 255, .26); }
.dua-prev > span[aria-hidden], .dua-next > span[aria-hidden] { font-size: 24px; color: var(--gold-light); }
.dua-prev .pager-title, .dua-next .pager-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 1200px) { .dua-prev { left: 8px; } .dua-next { right: 8px; } }
@media (max-width: 820px) {
  .dua-prev, .dua-next { width: 44px; height: 44px; background: rgba(10, 40, 80, .45); }
  .dua-prev, .dua-next { grid-row: auto; justify-self: auto; }
}
/* Arrow as a centred vector icon (the "←" glyph sat off-centre in the circle). */
.dua-prev > span[aria-hidden], .dua-next > span[aria-hidden] { display: none; }
.dua-prev::before, .dua-next::before {
  content: ''; width: 22px; height: 22px; background: var(--gold-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dua-next::before { transform: scaleX(-1); }
.dua-prev, .dua-next { display: flex; align-items: center; justify-content: center; }
