@font-face{font-family:Plex;src:url('/assets/ibm-plex-sans-arabic-400-arabic.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C,U+200D,U+204F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:Plex;src:url('/assets/ibm-plex-sans-arabic-600-arabic.woff2') format('woff2');font-weight:600 800;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C,U+200D,U+204F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:Plex;src:url('/assets/ibm-plex-sans-arabic-400-latin.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Plex;src:url('/assets/ibm-plex-sans-arabic-600-latin.woff2') format('woff2');font-weight:600 800;font-display:swap}

:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --surface: #fdfbf4;
  --ink: #14382f;
  --green: #123b31;
  --muted: #4b6056;
  --line: #c5ccbd;
  --gold: #efcc82;
  --next: #eee2c3;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 Plex, 'Segoe UI', Tahoma, Arial, sans-serif; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
button, input, select, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #267f65; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1, h2, strong { font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); letter-spacing: -.04em; line-height: 1.14; }
[dir=rtl] h1 { letter-spacing: normal; }
h2 { font-size: clamp(1.32rem, 2.6vw, 1.75rem); line-height: 1.35; }
time, bdi { font-variant-numeric: tabular-nums; }
.shell { width: min(1144px, calc(100% - 44px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 3; inset: .5rem auto auto .5rem; background: var(--surface); padding: .6rem; }
.header { border-block-end: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.75rem; }
.header-inner { min-height: 70px; }
.wordmark { display: inline-flex; align-items: center; gap: .57rem; font-size: 1.38rem; line-height: 1; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand-mark { display: inline-block; flex: none; width: 1.33rem; height: 1.33rem; border: .12rem solid currentColor; border-radius: 50%; position: relative; overflow: hidden; }
.brand-mark::before { content: ''; position: absolute; inset: -3px -4px 4px 4px; border-radius: 50%; background: var(--paper); border: .1rem solid currentColor; }
.main-nav, .footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; align-items: center; }
.main-nav a, .language { text-decoration: none; font-weight: 600; }
.main-nav a:hover, .language:hover { text-decoration: underline; }
.language { border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 999px; }
.intro { margin-block: clamp(1.6rem, 5vw, 3.7rem) 1.12rem; }
.intro p { color: var(--muted); margin-block-start: .65rem; }
.city-form { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; margin-block: 1rem 1.25rem; }
.city-form > label { font-weight: 600; }
.search-controls { display: flex; flex-wrap: nowrap; gap: .42rem; flex: 0 1 28rem; min-width: 0; }
input[type=search], select { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: .55rem; padding: .56rem .68rem; min-block-size: 2.75rem; }
input[type=search] { width: 100%; min-width: 0; }
.search-controls button, .archive-form button, .print-controls button { border: 1px solid var(--green); background: var(--green); color: white; border-radius: .55rem; white-space: nowrap; padding: .5rem .82rem; }
.search-controls button:hover, .archive-form button:hover, .print-controls button:hover { background: #225347; }
.location { border: 0; background: transparent; padding: .45rem .2rem; color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.form-status { flex-basis: 100%; color: var(--muted); }
.city-pick { position: relative; order: -1; }
.city-pick summary { border: 1px solid var(--line); padding: .52rem .75rem; border-radius: .55rem; cursor: pointer; background: var(--surface); font-weight: 600; }
.city-pick ul { position: absolute; z-index: 2; inset-inline-start: 0; top: calc(100% + .4rem); width: min(26rem, calc(100vw - 44px)); background: var(--surface); border: 1px solid var(--line); padding: .65rem; border-radius: .65rem; margin: 0; }

.next-card { min-height: 208px; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--green); color: var(--surface); }
.home-page .next-card { grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr); }
.next-content { align-self: center; padding: clamp(1.25rem, 3.8vw, 2.4rem); }
.city-photo { object-fit: cover; width: 100%; height: 100%; min-height: 0; max-height: 220px; object-position: center 52%; }
.next-label { display: flex; align-items: center; flex-wrap: wrap; gap: .52rem; color: #fffbed; font-size: 1.07rem; }
.next-label > span:first-child { width: .5rem; height: .5rem; border: 1px solid var(--gold); border-radius: 50%; background: var(--gold); }
.next-city { margin-inline-start: auto; opacity: .92; }
.next-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .08rem 1rem; margin-block: .23rem .4rem; }
.next-row strong { color: var(--gold); font-size: clamp(1.8rem, 5vw, 3.55rem); line-height: 1.08; }
.next-time { font-size: clamp(2.45rem, 6.4vw, 4.75rem); letter-spacing: -.055em; line-height: 1.04; font-weight: 600; }
.next-extra { display: flex; gap: .35rem 1rem; flex-wrap: wrap; min-height: 1.6rem; color: #e5eee3; }
.date-line { margin-block: .7rem .62rem; display: flex; gap: .25rem .55rem; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.prayer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin: 0; }
.prayer-slot { min-width: 0; padding: .78rem .55rem; text-align: center; }
.prayer-slot + .prayer-slot { border-inline-start: 1px solid var(--line); }
.prayer-slot.sunrise { background: #edeee6; }
.prayer-slot.is-next { background: var(--next); }
.prayer-slot dt { color: var(--green); display: inline-flex; gap: .33rem; align-items: center; justify-content: center; }
.prayer-slot dd { font-size: clamp(1.24rem, 3.25vw, 1.85rem); font-weight: 600; margin: .13rem 0 0; line-height: 1.18; }
.sun-mark { width: .52rem; height: .52rem; border-radius: 50%; border: 1px solid currentColor; display: inline-block; }
.mark-2, .mark-3 { background: currentColor; }
.mark-0, .mark-5 { border-radius: 50%; border-inline-end-color: transparent; transform: rotate(-20deg); }
.schedule-actions, .text-links, .months { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.schedule-actions { margin-block: .65rem 0; }
.schedule-actions a { font-weight: 600; }
.home-lower, .city-support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem); gap: 1.3rem; align-items: start; margin-block: 1.55rem .85rem; }
.directory h2, .lower-section h2 { margin-block-end: .62rem; }
.city-list { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; gap: .42rem; flex-wrap: wrap; }
.city-list a { display: block; padding: .39rem .74rem; background: var(--surface); border: 1px solid var(--line); border-radius: .55rem; text-decoration: none; }
.city-list a:hover, .city-list a[aria-current] { background: var(--green); color: white; }
.weather { display: flex; align-items: flex-start; gap: .9rem; padding: .82rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); min-height: 112px; background: var(--surface); }
.weather h2 { font-size: 1.07rem; margin: 0; }
.weather p { line-height: 1.36; }
.weather-meta { color: var(--muted); font-size: .86rem; margin-block-start: .25rem; }
.temperature { font-size: 1.38rem; margin-inline-end: .18rem; font-weight: 600; }
.weather-icon { flex: none; width: 1.4rem; height: .72rem; border-radius: .85rem; border: 2px solid currentColor; margin-block-start: .55rem; position: relative; }
.weather-icon::after { content: ''; position: absolute; width: .62rem; height: .62rem; border: 2px solid currentColor; border-radius: 50%; inset: -.43rem auto auto .14rem; background: var(--surface); clip-path: inset(0 0 30% 0); }
.weather-icon[data-condition=sun], .weather-icon[data-condition=moon] { height: 1.2rem; width: 1.2rem; border-radius: 50%; margin-block-start: .28rem; }
.weather-icon[data-condition=sun]::after { display: none; }
.weather-icon[data-condition=moon]::after { inset: -.22rem auto auto .38rem; height: .72rem; clip-path: none; }
.weather-icon[data-condition=rain] { border-block-end-style: dashed; }
.method-note, .muted { color: var(--muted); }
.method-note { font-size: .94rem; margin-block: .8rem; }

.lower-section { margin-block-start: clamp(1.6rem, 4vw, 3rem); }
.archive-strip, .article-card { background: var(--surface); padding: 1.1rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); }
.archive-strip p, .article-card p { margin: 0 0 .65rem; color: var(--muted); }
.faq details { border-block-start: 1px solid var(--line); padding: .66rem 0; }
.faq details:last-child { border-block-end: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: .45rem 0 .15rem; max-width: 70ch; color: var(--muted); }
.footer { border-block-start: 1px solid var(--line); margin-block-start: 3rem; padding: 1.35rem 0 1.8rem; }
.footer-brand { font-weight: 600; text-decoration: none; }
.footer nav a { font-size: .94rem; }
.breadcrumb { display: flex; gap: .65rem; flex-wrap: wrap; margin-block-start: 1.15rem; color: var(--muted); font-size: .95rem; }
.breadcrumb + .intro { margin-block-start: 1.2rem; }
.reading { margin-block: 1.6rem 2rem; max-width: 48rem; }
.reading h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.reading h2 { margin-block: 1.4rem .4rem; }
.reading p { margin-block: .65rem; }
.intro-text { color: var(--muted); font-size: 1.13rem; }
.archive-form, .print-controls { display: flex; gap: .45rem .6rem; flex-wrap: wrap; align-items: center; margin-block: .75rem; }
.print-controls p { color: var(--muted); font-size: .94rem; }
.months { margin-block-start: .8rem; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-block-start: .58rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; white-space: nowrap; }
td, th { font-size: .95rem; text-align: center; padding: .6rem .65rem; border-block-end: 1px solid var(--line); }
th:first-child { text-align: start; }
thead { background: #e8eddf; }
tbody tr:nth-child(even) { background: #f3f3ea; }
tbody tr:last-child :is(th,td) { border-block-end: 0; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { flex-wrap: wrap; gap: .5rem; min-height: 0; padding-block: .75rem .55rem; }
  .main-nav { order: 3; flex-basis: 100%; gap: .25rem 1rem; font-size: .94rem; }
  .city-pick ul { width: min(24rem, calc(100vw - 28px)); }
  .city-form > label { flex: 1; }
  .search-controls { order: 2; flex-basis: 100%; }
  .form-status { order: 3; }
  .next-card { min-height: 160px; }
  .home-page .next-card { grid-template-columns: minmax(0, 1fr); }
  .city-photo { order: -1; height: clamp(115px, 24vw, 158px); object-position: center 57%; }
  .home-lower, .city-support { grid-template-columns: 1fr; gap: .65rem; }
  .weather { min-height: 98px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 455px) {
  .prayer-grid { grid-template-columns: minmax(0, 1fr); }
  .prayer-slot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .52rem .82rem; }
  .prayer-slot dd { margin: 0; }
  .prayer-slot + .prayer-slot { border-inline-start: none; border-block-start: 1px solid var(--line); }
}

@media print {
  body { background: white; color: black; font-size: 10pt; }
  .city-page .header, .city-page .footer, .city-page .skip, .city-page main > :not(.print-month), .print-controls { display: none !important; }
  .shell { width: 100%; }
  .print-month { margin: 0; }
  .table-scroll { border-radius: 0; overflow: visible; }
  tr { break-inside: avoid; }
  td, th { padding: .23rem .32rem; font-size: 9pt; }
}
