/* Sidrah site header - shared by every page except the homepage.

   A faithful port of the header in /index.html (the 16 Nov redesign): sticky
   bar, horizontal wordmark, "The app | For masaajid | Support Sidrah | Help
   Centre | Admin login | Register for free", collapsing to a Menu/Close toggle
   at 900px. Breakpoints and values are index.html's, copied as they are. If
   the homepage header ever changes, change it here too.

   Everything is namespaced (.site-header, .sh-*) and sets its own font,
   colour, sizing and spacing, so a page's own .nav, .brand, .wrap, a {} or
   img {} rules cannot reach it. Colours are literals, not the page's custom
   properties, because some pages (landing.html) redefine --ink and friends for
   dark mode. The Admin login dialog is injected by /site-header.js and styled
   at the bottom of this file. Pair with /site-header.js, loaded straight after
   the </header>. No em dashes. */

:root { --sh-h:85px; --sh-scroll-pad:100px }
html { scroll-padding-top:var(--sh-scroll-pad) }

.site-header { position:sticky;top:0;z-index:20;display:block;margin:0;padding:0;background:rgba(255,253,248,.97);border:0;border-bottom:1px solid rgba(26,43,74,.15);box-shadow:none;color:#1A2B4A;font-family:'Plus Jakarta Sans',system-ui,sans-serif;font-size:16px;font-weight:400;line-height:1.65;letter-spacing:normal;text-align:left }
.site-header *, .site-header *::before, .site-header *::after { box-sizing:border-box }
.site-header a, .site-header button { -webkit-tap-highlight-color:transparent }
.site-header a { color:inherit;text-decoration:none }
.site-header a:hover { text-decoration:underline;text-underline-offset:5px }
.site-header :focus-visible { outline:3px solid #C94F38;outline-offset:5px }
.site-header button { font:inherit;color:inherit;cursor:pointer;margin:0 }

.site-header .sh-wrap { width:min(1184px,calc(100% - 96px));max-width:none;margin:auto;padding:0 }
.site-header .sh-nav { min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:28px }
.site-header .sh-brand { display:flex;align-items:center;gap:10px;margin:0;padding:0;font-size:1.45rem;font-weight:800;letter-spacing:-.04em }
.site-header .sh-brand img.sh-wordmark { display:block;width:203px;height:auto;max-width:100%;margin:0;padding:0;border:0;object-fit:fill }
.site-header .sh-links { display:flex;align-items:center;gap:24px;margin:0;padding:0;font-size:.8rem;font-weight:700 }

.site-header .sh-links .sh-btn { display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:42px;margin:0;padding:10px 17px;border-radius:100px;font-size:.75rem;font-weight:800;line-height:1.65;border:1px solid rgba(26,43,74,.15);background:transparent;color:#1A2B4A;white-space:normal }
.site-header .sh-links .sh-btn:hover { text-decoration:none;background:#F8F1E4 }
.site-header .sh-links .sh-btn.sh-primary { background:#16274B;color:#FFFDF8;border-color:#16274B }
.site-header .sh-links .sh-btn.sh-primary:hover { background:#29416a }

.site-header .sh-toggle { display:none;background:none;border:1px solid rgba(26,43,74,.15);border-radius:30px;padding:9px 16px;min-height:44px;font-size:16px;font-weight:400;line-height:1.65 }

@media(max-width:1100px) {
  .site-header .sh-wrap { width:calc(100% - 56px) }
  .site-header .sh-links { gap:14px }
  .site-header .sh-links .sh-btn { padding-inline:12px }
}
@media(max-width:900px) {
  :root { --sh-h:73px }
  .site-header .sh-nav { min-height:72px;flex-wrap:wrap;gap:0 }
  .site-header .sh-toggle { display:block }
  .site-header .sh-links { width:100%;display:flex;flex-wrap:wrap;padding:10px 0 22px;gap:18px }
  .sh-js .site-header .sh-links { display:none }
  .sh-js .site-header .sh-links.open { display:flex }
  .site-header .sh-links a, .site-header .sh-links button { min-height:44px;display:inline-flex;align-items:center }
}
@media(max-width:650px) {
  :root { --sh-scroll-pad:84px }
  .site-header .sh-wrap { width:calc(100% - 40px) }
  .site-header .sh-brand img.sh-wordmark { width:178px }
  .site-header .sh-links { flex-direction:column;align-items:stretch;gap:4px }
  .site-header .sh-links a { padding:6px 0 }
  .site-header .sh-links .sh-btn { justify-content:center;margin-top:8px;padding:10px }
  .site-header .sh-links.open { padding-bottom:20px }
}

/* Admin login dialog - index.html's dialog#admin-modal, injected by
   /site-header.js. Margin is set back to auto because several pages reset
   * { margin:0 }, which would pin a modal dialog to the top-left corner. */
dialog.sh-modal { width:min(420px,calc(100% - 40px));max-width:none;margin:auto;border:0;border-radius:25px;padding:32px;background:#FFFDF8;color:#1A2B4A;text-align:center;box-shadow:0 30px 90px #16274b40;font-family:'Plus Jakarta Sans',system-ui,sans-serif;font-size:16px;font-weight:400;line-height:1.65;letter-spacing:normal }
dialog.sh-modal::backdrop { background:#0a112299 }
.sh-modal *, .sh-modal *::before, .sh-modal *::after { box-sizing:border-box }
.sh-modal :focus-visible { outline:3px solid #C94F38;outline-offset:5px }
.sh-modal .sh-modal-title { margin:0 0 15px;padding:0;font-size:1.8rem;font-weight:800;line-height:1.12;letter-spacing:-.045em;color:#1A2B4A }
.sh-modal .sh-modal-label { display:block;margin:20px 0 0;padding:0;text-align:left;font-size:.85rem;font-weight:400;color:#1A2B4A;text-transform:none;letter-spacing:normal }
.sh-modal .sh-modal-input { display:block;width:100%;margin:5px 0 0;padding:12px;border:1px solid rgba(26,43,74,.15);border-radius:10px;background:white;color:#1A2B4A;font:inherit;box-shadow:none }
.sh-modal .sh-modal-sub, .sh-modal .sh-modal-ok { font-size:.9rem }
.sh-modal .sh-modal-err { color:#a63321;font-size:.85rem;margin-top:12px }
.sh-modal .sh-modal-err[hidden] { display:none }
.sh-modal .sh-modal-btn { display:inline-flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:50px;margin:15px 0 0;padding:13px 23px;border-radius:100px;font:inherit;font-size:.875rem;font-weight:800;background:#16274B;color:#FFFDF8;border:1px solid #16274B;cursor:pointer;-webkit-tap-highlight-color:transparent }
.sh-modal .sh-modal-btn:hover { background:#29416a }
.sh-modal .sh-modal-btn:disabled { opacity:.6;cursor:wait }
.sh-modal .sh-modal-x { display:inline-block;margin:14px 0 0;background:none;border:0;padding:8px 20px;text-decoration:underline;font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent }

/* Store badges variant - landing.html only (<header class="site-header
   sh-badged" data-sh-collapse="1279">). The masjid pages keep the App Store and
   Google Play badges after the two buttons. The full row is about 1160px wide,
   so this header folds to the Menu toggle below 1280px (the wrap is capped at
   1184px from there up, so the row always has room) instead of 900px; the
   900px rules above are repeated here at that width. In the opened menu the
   badges sit side by side. site-header.js reads the same width from
   data-sh-collapse. */
.site-header .sh-badges { display:flex;align-items:center;gap:8px;margin:0;padding:0 }
.site-header .sh-badges a { display:block;line-height:0 }
.site-header .sh-badges a:hover { text-decoration:none }
.site-header .sh-badges img { display:block;width:auto;height:36px;max-width:none;margin:0;padding:0;border:0 }
@media(max-width:1279px) {
  .site-header.sh-badged .sh-nav { min-height:72px;flex-wrap:wrap;gap:0 }
  .site-header.sh-badged .sh-toggle { display:block }
  .site-header.sh-badged .sh-links { width:100%;display:flex;flex-wrap:wrap;padding:10px 0 22px;gap:18px }
  .sh-js .site-header.sh-badged .sh-links { display:none }
  .sh-js .site-header.sh-badged .sh-links.open { display:flex }
  .site-header.sh-badged .sh-links a:not(.sh-btn), .site-header.sh-badged .sh-links button:not(.sh-btn) { min-height:44px;display:inline-flex;align-items:center }
  .site-header.sh-badged .sh-badges { gap:10px }
  .site-header.sh-badged .sh-badges img { height:40px }
}
@media(max-width:650px) {
  .site-header.sh-badged .sh-links { gap:4px }
  .site-header.sh-badged .sh-badges { justify-content:center;margin-top:8px }
  .site-header.sh-badged .sh-links.open { padding-bottom:20px }
}
