:root {
  color-scheme: light;
  --brand-blue: #517d8b;
  --brand-aqua: #64d7d6;
  --white: #fff;
  --brand-mid: #6898a7;
  --brand-slate: #3e606b;
  --brand-light: #8de1e1;
  --ink: #203a43;
  --deep: #254550;
  --muted: #4e6972;
  --page: #f5f9fa;
  --line: #d9e6e9;
  --pale: #eaf5f7;
  --radius: 20px;
  --font: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 18px; scroll-padding-bottom: 70px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1rem/1.55 var(--font); }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { font-weight: 500; }
strong { font-weight: 600; }
h2, h3 { line-height: 1.16; letter-spacing: -.025em; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #20798c; outline-offset: 3px; }
.hero :focus-visible, .friday-prayer :focus-visible { outline-color: var(--brand-aqua); }
[hidden] { display: none !important; }
body:not(.js) .js-only { display: none; }
.symbols { position: absolute; width: 0; height: 0; pointer-events: none; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 8; inset: 10px auto auto 10px; transform: translateY(-200%); background: white; padding: 12px 16px; border-radius: 8px; }
.skip:focus { transform: translateY(0); }
.frame { width: min(100% - 32px, 1200px); margin-inline: auto; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
.tag { background: var(--pale); color: var(--deep); width: fit-content; border-radius: 100px; padding: 5px 10px; font-size: .8rem; font-weight: 600; }

.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 135px; height: auto; display: block; }
.desktop-nav { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; max-width: 100%; border-radius: 9px; border: 1px solid transparent; padding: 9px 15px; font-size: .93rem; font-weight: 600; text-align: center; line-height: 1.3; }
.button .icon { width: 19px; height: 19px; }
.primary { background: var(--brand-slate); color: white; }
.primary:hover { background: var(--deep); }
.secondary { background: white; color: var(--deep); border-color: var(--brand-blue); }
.secondary:hover { background: var(--pale); }
.aqua { background: var(--brand-aqua); color: #15373d; }
.aqua:hover { background: var(--brand-light); }
.light-outline { color: white; background: #203a4370; border-color: #ffffff7a; }
.light-outline:hover { background: #203a43; }
.header-don { padding-inline: 11px; }

.page { padding-block: 16px 40px; }
.lead { display: grid; gap: 16px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: center; min-height: 315px; border-radius: var(--radius); background: var(--deep); color: white; padding: 26px 22px 43px; }
.hero-architecture { position: absolute; inset: 0; z-index: -2; background: url("assets/arches.webp") 72% 48% / cover no-repeat; filter: grayscale(1); opacity: .65; mix-blend-mode: luminosity; }
.hero::after { position: absolute; content: ""; inset: 0; z-index: -1; background: linear-gradient(90deg,#203d48 0%,#254550ed 28%,#2647547a 78%), linear-gradient(0deg,#203a43c9,transparent 30%); }
.hero-content { position: relative; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; border: 1px solid #ffffff45; border-radius: 999px; padding: 5px 11px; font-size: .8rem; font-weight: 600; color: #efffff; background: #25455070; }
.hero-tag span { background: var(--brand-aqua); width: 7px; height: 7px; border-radius: 50%; }
.hero h1 { margin: 17px 0 13px; font-size: clamp(2rem, 8.3vw, 3.85rem); line-height: 1.02; letter-spacing: -.04em; }
.hero-intro { max-width: 30ch; color: #f1f9fa; line-height: 1.45; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 23px; }
.hero-credit { position: absolute; bottom: 11px; right: 16px; color: #e0f1f2; font-size: .75rem; }

.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.schedule { padding: 18px; }
.schedule-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.schedule-head h2 { font-size: 1.22rem; margin-bottom: 3px; }
.section-icon { display: grid; place-items: center; flex: none; width: 41px; height: 41px; border-radius: 11px; background: var(--pale); color: var(--brand-slate); }
.next-prayer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #e1f6f6; border: 1px solid #c6eaea; }
.next-prayer .eyebrow { color: #365961; }
.next-name, .next-timing strong { font-size: 1.55rem; font-weight: 600; letter-spacing: -.035em; line-height: 1.14; }
.next-timing { text-align: right; display: grid; font-variant-numeric: tabular-nums; }
.next-timing span { color: var(--muted); font-size: .8rem; }
.day-control { display: flex; justify-content: space-between; align-items: center; gap: 5px 9px; flex-wrap: wrap; margin-block: 13px 8px; }
.segments { display: flex; gap: 2px; border-radius: 8px; background: #edf3f5; padding: 3px; }
.segments button, .filters button { border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 500; padding: 5px 8px; min-height: 33px; }
.segments [aria-selected="true"] { color: var(--deep); background: white; border-color: var(--line); }
.segments button:hover, .filters button:hover { color: var(--deep); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; font-size: .94rem; }
th, td { padding: 4px 7px; text-align: right; }
th:first-child { text-align: left; }
thead th { color: var(--muted); font-size: .78rem; font-weight: 600; }
tbody th, tbody td { border-top: 1px solid #e9f1f3; }
tbody .is-next th, tbody .is-next td { color: var(--deep); background: #e8f8f8; font-weight: 600; }
.is-next th:first-child { border-radius: 5px 0 0 5px; }
.is-next td:last-child { border-radius: 0 5px 5px 0; }
.table-note { margin-top: 9px; }

.quick-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-block: 16px 0; }
.quick-links a { display: flex; align-items: center; gap: 8px; min-height: 64px; border: 1px solid var(--line); background: white; border-radius: 13px; padding: 8px; }
.quick-links a:hover { border-color: var(--brand-mid); background: #f8fcfd; }
.quick-links .section-icon { width: 32px; height: 34px; border-radius: 8px; }
.quick-links .section-icon .icon { width: 19px; height: 19px; }
.quick-links strong, .quick-links small { display: block; line-height: 1.25; }
.quick-links strong { font-size: .92rem; }
.quick-links small { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.quick-links .chevron { display: none; color: var(--brand-slate); margin-left: auto; width: 17px; }

.section { margin-top: 34px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.section-heading h2, .practical-grid h2 { font-size: clamp(1.43rem,3vw,1.9rem); }
.friday-grid, .community-grid, .practical-grid { display: grid; gap: 16px; }
.friday-prayer, .replay, .donation, .contact { padding: 20px; border-radius: var(--radius); }
.friday-prayer { color: white; background: var(--brand-slate); }
.friday-prayer .section-icon { background: #ffffff24; color: #e5ffff; }
.friday-prayer h3, .replay h3 { font-size: 1.42rem; margin-top: 11px; }
.friday-time { font-variant-numeric: tabular-nums; font-size: clamp(2.8rem, 8vw, 3.75rem); font-weight: 600; line-height: 1; margin-block: 10px; letter-spacing: -.035em; }
.friday-time span { font-size: .48em; letter-spacing: 0; }
.friday-note { color: #edf7f9; max-width: 34ch; margin-bottom: 15px; }
.replay-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.sermon-meta { display: flex; gap: 24px; margin-block: 13px 9px; }
.sermon-meta dt { font-size: .82rem; color: var(--muted); }
.sermon-meta dd { margin: 0; font-weight: 600; }
details { border-top: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 12px; padding: 10px 0; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand-slate); font-size: 1.25rem; }
details[open] > summary::after { content: "−"; }
details p { color: var(--muted); margin-bottom: 12px; }
.replay .button { margin-top: 6px; }
.community-grid { gap: 28px; }
.list-card { padding: 0 15px; }
.list-card details:first-child { border-top: 0; }
.list-card summary { min-height: 66px; }
.list-card .eyebrow { display: block; color: var(--muted); margin-bottom: 3px; font-size: .72rem; }
.list-card .text-link { display: inline-block; color: var(--deep); text-decoration: underline; text-underline-offset: 3px; margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.filters button { border-color: var(--line); background: white; min-height: 36px; border-radius: 100px; padding-inline: 13px; }
.filters [aria-pressed="true"] { border-color: var(--brand-slate); background: var(--brand-slate); color: white; }
.donation { background: #e3f5f6; border: 1px solid #cee9ed; }
.donation .section-icon { background: var(--brand-light); }
.practical-grid h2 { margin-top: 12px; }
.practical-grid h2 + p, .contact address { margin-top: 9px; }
.practical-grid .button { margin-top: 14px; }
.donation .button + p { margin-top: 8px; }
.contact address { font-style: normal; font-weight: 600; }
.contact address + p { margin-top: 5px; }
.no-script { margin-top: 16px; padding: 12px; }

.footer { background: #eaf3f6; border-top: 1px solid var(--line); padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer p, .footer a { color: var(--muted); font-size: .86rem; }
.footer a:hover { text-decoration: underline; }
.mobile-nav { position: fixed; z-index: 6; inset: auto 0 0; background: white; border-top: 1px solid var(--line); box-shadow: 0 -5px 25px #2545500c; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); padding: 4px 3px max(6px,env(safe-area-inset-bottom)); }
.mobile-nav a { display: grid; justify-items: center; align-content: center; gap: 1px; min-width: 0; min-height: 48px; border-radius: 8px; color: var(--muted); font-size: .72rem; font-weight: 500; }
.mobile-nav a[aria-current] { color: var(--deep); background: var(--pale); }
.mobile-nav .icon { width: 20px; height: 20px; }

dialog { width: min(480px, 100% - 32px); max-height: 85dvh; overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: white; color: var(--ink); box-shadow: 0 24px 90px #203a4350; }
dialog::backdrop { background: #172f3bb8; }
dialog h2 { font-size: 1.4rem; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 7px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--page); color: var(--deep); }
.icon-button:hover { background: var(--pale); }
dialog > p { color: var(--muted); }
audio { display: block; width: 100%; margin-block: 15px; }
fieldset { margin: 13px 0; padding: 0; border: 0; }
legend { font-weight: 600; }
.amounts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.amounts label { display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px; min-height: 42px; background: var(--page); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.amounts input { accent-color: var(--brand-slate); }
.amounts label:has(input:checked) { background: #dbf5f4; border-color: var(--brand-blue); }
.confirmation:not(:empty) { padding: 10px; background: var(--pale); border-radius: 9px; margin-top: 12px; color: var(--deep); }
.chat-log { max-height: 230px; overflow: auto; display: flex; align-items: flex-start; flex-direction: column; gap: 7px; padding: 12px; margin-block: 12px; background: var(--page); border-radius: 12px; }
.chat-log p { padding: 8px 11px; border-radius: 10px; background: #e1f4f4; max-width: 94%; }
.chat-log .user-line { background: var(--deep); color: white; align-self: flex-end; }
.chat-choices { display: flex; flex-wrap: wrap; gap: 7px; }

@media (min-width: 560px) {
  .frame { width: min(100% - 56px, 1200px); }
  .hero { padding-inline: 34px; }
  .quick-links a { padding-inline: 13px; }
  .quick-links .chevron { display: block; }
  .friday-grid { grid-template-columns: .8fr 1.2fr; }
  .practical-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .desktop-nav { display: flex; gap: 6px; align-items: center; }
  .desktop-nav a { display: grid; place-items: center; color: var(--muted); padding: 8px 11px; min-height: 44px; border-radius: 8px; font-size: .93rem; font-weight: 500; }
  .desktop-nav a:hover, .desktop-nav a[aria-current] { background: var(--pale); color: var(--deep); }
  .mobile-nav { display: none; }
  .footer { padding-bottom: 0; }
  .header-inner { min-height: 77px; }
  .brand img { width: 155px; }
  .header-don { padding-inline: 15px; }
  .page { padding-top: 24px; padding-bottom: 60px; }
  .lead { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 18px; }
  .hero { padding-inline: clamp(34px,4.1vw,60px); }
  .hero h1 { font-size: clamp(2.85rem,4.7vw,4.15rem); }
  .hero-intro { font-size: 1.09rem; }
  .schedule { padding: 19px 21px 15px; }
  .quick-links { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
  .quick-links .section-icon { width: 37px; height: 37px; }
  .quick-links a { gap: 11px; }
  .section { margin-top: 41px; }
  .friday-grid, .community-grid, .practical-grid { gap: 18px; }
  .friday-grid { grid-template-columns: 1fr 1.5fr; }
  .community-grid { grid-template-columns: 1fr 1fr; }
  .friday-prayer, .replay, .donation, .contact { padding: 22px; }
}

@font-face {
  font-family: "Amiri Quran";
  src: url("assets/AmiriQuran-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

.quran-entry { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px 13px; margin-top: 16px; padding: 15px; border: 1px solid #c9e6e7; border-radius: 15px; background: #e8f6f6; }
.quran-entry .section-icon { background: #d5efef; }
.quran-entry h2 { font-size: 1.27rem; margin-bottom: 3px; }
.quran-entry-text > p { color: var(--muted); font-size: .9rem; }
.quran-actions, .friday-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quran-actions { grid-column: 1 / -1; }

.quran-reader { --reading-text: clamp(1.75rem, 6.7vw, 2.25rem); width: min(850px, calc(100% - 24px)); max-height: min(90dvh, 950px); padding: 0; overflow: hidden; }
.quran-reader[open] { display: flex; flex-direction: column; }
.quran-reader[data-text-size="large"] { --reading-text: clamp(2.1rem, 8.2vw, 2.85rem); }
.quran-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 11px 14px; background: var(--white); border-bottom: 1px solid var(--line); }
.reader-heading { display: flex; align-items: center; gap: 10px; }
.quran-body { overflow: auto; min-height: 0; background: var(--page); padding: 13px; overscroll-behavior: contain; }
.quran-index { border: 1px solid var(--line); background: white; border-radius: 11px; padding-inline: 12px; max-width: 695px; margin-inline: auto; }
.quran-index summary { min-height: 47px; }
.index-controls { display: grid; gap: 6px; padding-bottom: 10px; }
.index-controls label, .reading-controls label, .reading-controls legend { font-size: .875rem; color: var(--deep); font-weight: 500; }
.index-controls input, .index-controls select, .jump-fields input { min-height: 40px; width: 100%; min-width: 0; max-width: 100%; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--brand-mid); color: var(--ink); background: white; font-size: 1rem; }
.reading-sheet { max-width: 695px; margin: 13px auto 0; border: 1px solid var(--line); background: white; border-radius: 13px; }
.surah-heading { padding: 15px 10px 13px; text-align: center; }
#surah-arabic-title, .surah-opening, .verse-text { font-family: "Amiri Quran", "Noto Naskh Arabic", "Geeza Pro", serif; font-weight: 400; }
#surah-arabic-title { color: var(--brand-slate); font-size: 2.42rem; line-height: 1.5; }
.surah-heading h3 { font-size: 1.46rem; }
#surah-meta { margin-top: 3px; }
.reading-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 9px 15px; padding: 11px; border-top: 1px solid var(--line); }
.reading-controls label { display: block; margin-bottom: 4px; }
.jump-fields { display: flex; gap: 6px; }
.jump-fields input { max-width: 82px; }
.jump-fields button { min-height: 40px; padding-inline: 10px; }
.reading-size { margin: 0; }
.reading-size legend { margin-bottom: 4px; padding: 0; }
.reading-size .segments button[aria-pressed="true"] { color: var(--deep); background: white; border-color: var(--line); }
.surah-opening { padding: 8px 12px; border-top: 1px solid var(--line); color: var(--brand-slate); font-size: var(--reading-text); line-height: 1.8; text-align: center; }
.quran-verses { display: grid; padding: 0; margin: 0; list-style: none; }
.quran-verses li { display: grid; align-items: start; grid-template-columns: auto minmax(0,1fr); gap: 10px; border-top: 1px solid var(--line); padding: 12px 11px 11px; }
.quran-verses li:focus { background: #edf8f8; outline: 2px solid var(--brand-blue); outline-offset: -2px; }
.verse-index { padding: 1px 6px; margin-top: 10px; min-width: 23px; border-radius: 20px; color: var(--brand-slate); background: var(--pale); font: 500 .78rem/1.65 var(--font); text-align: center; }
.verse-text { font-size: var(--reading-text); line-height: 1.95; text-align: start; overflow-wrap: anywhere; }
.surah-navigation { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 11px; border-top: 1px solid var(--line); }
.surah-navigation .button:disabled { opacity: .48; cursor: default; }
.quran-source { padding: 4px 11px 13px; }
.quran-source a { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 620px) {
  .quran-entry { grid-template-columns: auto minmax(0,1fr) auto; padding-inline: 18px; }
  .quran-actions { grid-column: auto; justify-content: flex-end; }
  .quran-top { padding-inline: 20px; }
  .quran-body { padding: 17px 23px; }
  .quran-verses li, .reading-controls, .surah-navigation { padding-inline: 22px; }
  .quran-source { padding-inline: 22px; }
}

/* ---------- V1 : horaires réels, douas, Qibla, accès, Coran bilingue ---------- */
tbody .is-info th, tbody .is-info td { color: var(--muted); font-weight: 500; font-size: .86rem; }
.schedule-warning { margin-top: 9px; padding: 9px 11px; border-radius: 9px; background: #fff4e5; color: #6b4a12; font-size: .9rem; }

.spiritual-grid { display: grid; gap: 28px; }
.dua-list { padding: 0 15px; }
.dua-list details:first-child { border-top: 0; }
.dua-list summary { align-items: flex-start; padding-block: 14px; }
.dua-arabic { font-family: "Amiri Quran", "Noto Naskh Arabic", "Geeza Pro", serif; font-weight: 400; font-size: 1.45rem; line-height: 1.9; text-align: start; }
.dua-body { padding-bottom: 12px; }
.dua-body p { margin-bottom: 8px; }
.dua-translit { color: var(--deep); font-style: italic; }
.dua-fr { color: var(--ink) !important; }

.qibla { padding: 20px; display: grid; justify-items: start; gap: 6px; }
.qibla h2 { font-size: clamp(1.43rem,3vw,1.9rem); margin-top: 6px; }
.qibla-bearing { color: var(--muted); }
.qibla-bearing strong { color: var(--deep); font-size: 1.2rem; }
.compass { justify-self: center; margin-block: 12px 6px; }
.compass-dial { --heading: 0deg; position: relative; width: 190px; height: 190px; border-radius: 50%; border: 2px solid var(--line); background: radial-gradient(circle, white 58%, var(--pale) 59%); transform: rotate(var(--heading)); transition: transform .25s ease-out; }
.compass-north { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-weight: 700; color: var(--brand-slate); font-size: .9rem; }
.compass-needle { --angle: 119deg; position: absolute; left: 50%; top: 50%; width: 6px; height: 78px; margin-left: -3px; margin-top: -78px; border-radius: 3px; background: var(--needle, var(--brand-slate)); transform-origin: 50% 100%; transform: rotate(var(--angle)); }
.compass-needle::before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); border: 9px solid transparent; border-bottom: 13px solid var(--needle, var(--brand-slate)); border-top: 0; }
.compass-dial.is-aligned { border-color: var(--brand-aqua); box-shadow: 0 0 0 6px #64d7d633; }
.compass-dial.is-aligned { --needle: #1f8f8c; }

.directions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.directions + p { margin-top: 8px; }
.footer-by { font-size: .82rem; }

.verse-body { min-width: 0; }
.verse-fr { margin-top: 6px; color: var(--muted); font-size: .98rem; line-height: 1.55; }

@media (min-width: 900px) {
  .spiritual-grid { grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
  .qibla { padding: 22px; }
}

/* ---------- Lot 2 : hégire, alertes, annonces réelles, don Stripe ---------- */
.hijri { font-family: "Amiri Quran", "Noto Naskh Arabic", "Geeza Pro", serif; font-size: 1rem; color: var(--brand-slate); unicode-bidi: isolate; white-space: nowrap; }
.hijri:empty { display: none; }
.day-label { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
tbody .is-jumua th { color: var(--deep); }

.alerts { margin-top: 16px; padding: 16px; display: grid; gap: 12px; }
.alerts-head { display: flex; align-items: flex-start; gap: 12px; }
.alerts h2 { font-size: 1.22rem; margin-bottom: 3px; }
.alerts fieldset { margin: 0; }
.alert-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.alert-choices label { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; padding: 7px 10px; background: var(--page); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; line-height: 1.25; }
.alert-choices label:has(input:checked) { background: #dbf5f4; border-color: var(--brand-blue); }
.alert-choices input { accent-color: var(--brand-slate); width: 18px; height: 18px; flex: none; margin: 0; }
.alert-choices small { color: var(--muted); font-size: .78rem; }
.alert-wide { grid-column: 1 / -1; }
.alerts-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.alerts-actions .button:disabled, .don-form .button:disabled { opacity: .55; cursor: default; }
.alerts-status { color: var(--deep); }
.alerts-status:empty { display: none; }

.feed-empty { padding: 14px 15px; }
.feed-body { white-space: pre-line; overflow-wrap: anywhere; }
.feed-arabic { border-top: 1px dashed var(--line); padding-top: 10px; margin-bottom: 12px; text-align: start; }
.feed-arabic p { font-family: "Amiri Quran", "Noto Naskh Arabic", "Geeza Pro", serif; font-size: 1.2rem; line-height: 1.8; color: var(--ink); margin-bottom: 6px; }
.feed-arabic .feed-arabic-title { font-weight: 600; color: var(--deep); }
.feed-location { color: var(--deep) !important; }
.list-card summary strong { overflow-wrap: anywhere; }

.don-unavailable { margin-top: 12px; color: var(--deep); font-weight: 500; }
.don-unavailable:empty { display: none; }
.don-form fieldset { margin-bottom: 8px; }
.don-other { display: block; margin-top: 4px; font-size: .9rem; font-weight: 500; color: var(--deep); }
.don-other-input { display: block; width: 100%; max-width: 220px; min-height: 44px; margin-top: 5px; padding: 8px 11px; border: 1px solid var(--brand-mid); border-radius: 9px; background: white; color: var(--ink); font-size: 1rem; }
.don-form .button + p { margin-top: 8px; }

@media (min-width: 560px) {
  .alert-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .alerts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; padding: 19px 21px; column-gap: 24px; }
  .alerts-status { grid-column: 2; }
  .alerts-form[hidden] + .alerts-status { grid-column: 2; align-self: center; }
}

.don-direct { display: grid; gap: .75rem; justify-items: start; }
.don-direct .don-amounts-hint { margin: 0; font-weight: 600; }
