/* Thawabak — site styles */

/* ---------- fonts ---------- */
/* "Display": Arabic headings in Naskh (to sit with the calligraphic logo), Latin headings in Reem Kufi's geometric sans */
@font-face {
  font-family: "Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/noto-naskh-arabic-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Display"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/noto-naskh-arabic-arabic-600-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/noto-naskh-arabic-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Display"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/reem-kufi-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/noto-naskh-arabic-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/noto-naskh-arabic-arabic-600-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/noto-naskh-arabic-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/noto-naskh-arabic-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/noto-naskh-arabic-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/noto-naskh-arabic-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --paper: #F1F4F0;      /* sage-white page */
  --surface: #FFFFFF;
  --ink: #152742;        /* navy ink, same as the logo */
  --ink-2: #4A5770;
  --line: #D9DFD9;
  --line-2: #BCC6C0;
  --lapis: #23409A;
  --lapis-deep: #1A3180;
  --lapis-2: #E4E9F6;
  --gold: #A87B1C;
  --gold-ink: #6E4F12;
  --gold-2: #F4EAD0;
  --gold-line: #DCC68E;
  --jade: #1C6B5E;
  --jade-2: #DDEEE9;
  --jade-line: #A9D2C7;
  --danger: #A23A2C;
  --danger-2: #F6E3DF;
  --field: #FFFFFF;
  --backdrop: rgba(13, 21, 48, .45);
  --on-lapis: #FFFFFF;

  --f-display: "Display", "Noto Naskh Arabic", system-ui, sans-serif;
  --f-body: "Noto Naskh Arabic", Georgia, "Times New Roman", serif;

  --s-1: .833rem;
  --s0: 1rem;
  --s1: 1.2rem;
  --s2: 1.44rem;
  --s3: 1.728rem;
  --s4: 2.074rem;
  --s5: 2.488rem;
  --s6: 2.986rem;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0D1530;
    --surface: #141F42;
    --ink: #E9EDF6;
    --ink-2: #A8B3CB;
    --line: #26325A;
    --line-2: #39466F;
    --lapis: #9DB1FF;
    --lapis-deep: #B9C8FF;
    --lapis-2: #1C2A57;
    --gold: #D8B661;
    --gold-ink: #EBD08F;
    --gold-2: #2E2A1F;
    --gold-line: #5E5030;
    --jade: #6CCBB8;
    --jade-2: #12312C;
    --jade-line: #23574D;
    --danger: #F09A8C;
    --danger-2: #3A1F1C;
    --field: #0F1937;
    --backdrop: rgba(0, 0, 0, .6);
    --on-lapis: #0D1530;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0D1530; --surface: #141F42; --ink: #E9EDF6; --ink-2: #A8B3CB; --line: #26325A; --line-2: #39466F;
  --lapis: #9DB1FF; --lapis-deep: #B9C8FF; --lapis-2: #1C2A57; --gold: #D8B661; --gold-ink: #EBD08F; --gold-2: #2E2A1F;
  --gold-line: #5E5030; --jade: #6CCBB8; --jade-2: #12312C; --jade-line: #23574D; --danger: #F09A8C; --danger-2: #3A1F1C;
  --field: #0F1937; --backdrop: rgba(0, 0, 0, .6); --on-lapis: #0D1530;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; } /* 17px */
@media (min-width: 720px) { html { font-size: 112.5%; } }       /* 18px */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s0);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
[dir="ltr"] body { line-height: 1.6; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.45; margin: 0; letter-spacing: 0; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 { line-height: 1.25; }
p { margin: 0; }
a { color: var(--lapis); text-underline-offset: 3px; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
.muted { color: var(--ink-2); }
.small { font-size: var(--s-1); }
.num { font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 10px; }

/* ---------- night sky (header, home hero, footer) ---------- */
.sky {
  --ink: #EEF1F7; --ink-2: #AEB9D1; --line: rgba(238, 241, 247, .13); --line-2: rgba(238, 241, 247, .28);
  --gold: #D9B45E; --gold-ink: #E8CB86; --gold-2: rgba(217, 180, 94, .14); --gold-line: rgba(217, 180, 94, .45);
  --lapis: #E3C274; --lapis-deep: #EDD293; --lapis-2: rgba(255, 255, 255, .08); --on-lapis: #10203F;
  --surface: rgba(255, 255, 255, .06); --paper: #10203F; --field: rgba(255, 255, 255, .07);
  --jade: #6CCBB8; --jade-2: rgba(108, 203, 184, .14); --jade-line: rgba(108, 203, 184, .4);
  position: relative; isolation: isolate; background: #10203F; color: var(--ink);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sky { background: #091228; --paper: #091228; } }
:root[data-theme="dark"] .sky { background: #091228; --paper: #091228; }
.sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: #FFFFFF; pointer-events: none; }
.sky-stars .st-gold { fill: #E8CB86; }
.sky select option { color: #152742; background: #FFFFFF; }

/* inner pages: a sky band, then content whose first card lifts over its edge */
.sky-page { padding-block: 28px 72px; overflow: clip; }
@media (min-width: 720px) { .sky-page { padding-block: 44px 96px; } }
.sky-page .page-head { margin-bottom: 18px; }
.sky-page .lead { color: var(--ink-2); }
.page-lift { padding-top: 0; }
.lift { position: relative; z-index: 2; margin-top: -44px; box-shadow: 0 14px 36px rgba(16, 32, 63, .14); }
@media (min-width: 720px) { .lift { margin-top: -60px; } }
.sky .next-prayer, .sky .countdown { border: 0; padding-bottom: 0; margin-bottom: 0; }
.sky .city-picker { margin-top: 18px; }
.sky .btn-primary { box-shadow: 0 8px 24px rgba(217, 180, 94, .2); }

/* ---------- header ---------- */
.site-header { overflow: hidden; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo-ar { height: 50px; width: auto; }
.brand .logo-en { height: 17px; width: auto; margin-top: 14px; }
[lang="ar"] .brand .logo-en { display: none; }
.lg-ink { fill: var(--ink); }
.lg-gold { fill: var(--gold); }
.lang-switch {
  font-family: var(--f-display); font-weight: 600; font-size: var(--s-1); text-decoration: none; color: var(--ink);
  padding: 6px 15px; border: 1px solid var(--line-2); border-radius: 999px;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }
.main-nav { border-top: 1px solid var(--line); }
.nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-inner::-webkit-scrollbar { display: none; }
.main-nav a {
  flex: none; font-family: var(--f-display); font-weight: 600; font-size: var(--s-1); color: var(--ink-2); text-decoration: none;
  padding: 11px 12px 9px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
@media (min-width: 960px) {
  .header-inner { min-height: 84px; }
  .brand .logo-ar { height: 58px; }
  .main-nav { position: absolute; top: 0; inset-inline: 0; border: 0; pointer-events: none; }
  .nav-inner { justify-content: center; gap: 6px; }
  .main-nav a { pointer-events: auto; padding: 30px 12px 28px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--f-display); font-size: var(--s0); font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .55; cursor: progress; }
.btn-primary { background: var(--lapis); color: var(--on-lapis); }
.btn-primary:hover { background: var(--lapis-deep); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--lapis); color: var(--lapis); }
.btn-gold { background: var(--gold-2); color: var(--gold-ink); border-color: var(--gold-line); }
.btn-gold:hover { border-color: var(--gold); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger-2); }
.btn-danger:hover { border-color: var(--danger); }
.btn-danger.is-armed { background: var(--danger); color: #fff; }
.btn-lg { min-height: 54px; padding: 12px 30px; font-size: var(--s1); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer;
  font-family: var(--f-display); font-size: 1.5rem; line-height: 1;
}
.icon-btn:hover { border-color: var(--lapis); color: var(--lapis); }
[dir="ltr"] .icon-btn span { display: inline-block; transform: scaleX(-1); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-size: var(--s-1); font-weight: 600; color: var(--ink-2); padding: 0; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--field); color: var(--ink); font-size: var(--s0); line-height: 1.5;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px var(--lapis-2); }
input::placeholder, textarea::placeholder { color: var(--ink-2); opacity: .7; }
.form-error { color: var(--danger); font-size: var(--s-1); min-height: 0; }
.form-error:empty { display: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.field-row .field-grow { flex: 2; }
.field-row input[type="number"] { min-width: 5.6em; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
@media (min-width: 720px) { .panel { padding: 28px; } }
.panel h2 { font-size: var(--s2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-family: var(--f-body); font-weight: 600; font-size: var(--s-1); cursor: pointer; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--lapis); border-color: var(--lapis); color: var(--on-lapis); }
.chip:hover:not([aria-pressed="true"]) { border-color: var(--lapis); }

/* ---------- shared blocks ---------- */
.page { padding-block: 28px 72px; }
@media (min-width: 720px) { .page { padding-block: 44px 96px; } }
.page-narrow { max-width: 640px; display: grid; gap: 20px; justify-items: start; }
.page-head { display: grid; gap: 14px; margin-bottom: 28px; }
.page-head h1 { font-size: var(--s5); }
@media (min-width: 720px) { .page-head h1 { font-size: var(--s6); } }
.lead { font-size: var(--s1); color: var(--ink-2); max-width: 38em; }
.note { font-size: var(--s-1); color: var(--ink-2); margin-top: 18px; max-width: 46em; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-head h2, .month-times h2, .upcoming h2, .convert h2 { font-size: var(--s3); }

.hadith { margin: 0; padding-inline-start: 16px; border-inline-start: 3px solid var(--gold); max-width: 40em; }
.hadith blockquote { margin: 0; font-size: var(--s1); line-height: 2; color: var(--ink); }
.hadith figcaption { font-size: var(--s-1); color: var(--ink-2); margin-top: 4px; }
.hadith-sm blockquote { font-size: var(--s0); }

/* one fixed row (label | select | button) so the layout doesn't jump when the web font loads */
.city-picker { display: grid; grid-template-columns: auto minmax(0, 280px) auto; justify-content: start; align-items: center; gap: 10px; }
.city-picker label { font-size: var(--s-1); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.city-picker select { width: 100%; min-width: 0; height: 52px; }
.city-picker .btn { white-space: nowrap; height: 52px; }
.city-picker > [hidden] { display: none !important; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.times-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; white-space: nowrap; }
.times-table th, .times-table td { padding: 9px 12px; text-align: start; border-bottom: 1px solid var(--line); }
.times-table thead th { font-family: var(--f-display); font-weight: 600; font-size: var(--s-1); color: var(--ink-2); background: var(--paper); position: sticky; top: 0; }
.times-table tbody tr:last-child td { border-bottom: 0; }
.times-table td.d { font-family: var(--f-display); }
.times-table td .sub { display: block; font-size: .78rem; color: var(--ink-2); line-height: 1.3; }
.times-table tr.is-today td { background: var(--lapis-2); }
.times-table tr.is-today td.d { box-shadow: inset 3px 0 0 var(--lapis); }
[dir="rtl"] .times-table tr.is-today td.d { box-shadow: inset -3px 0 0 var(--lapis); }
.times-table tr.is-fri td.d { color: var(--jade); }
@media (max-width: 560px) { .times-table .opt { display: none; } .times-table th, .times-table td { padding: 8px 9px; } }

.toast {
  position: fixed; inset-inline: 16px; bottom: 18px; margin-inline: auto; max-width: 440px; z-index: 80;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; text-align: center;
  font-size: var(--s-1); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.site-footer { padding-block: 48px 56px; margin-top: 32px; overflow: hidden; }
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 22px; max-width: 38em; }
.footer-brand .logo-full { width: 96px; height: auto; flex: none; }
.footer-brand p { color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--f-display); font-weight: 600; font-size: var(--s-1); }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); text-decoration: underline; }
.footer-note, .footer-copy { font-size: var(--s-1); color: var(--ink-2); max-width: 46em; }

/* ================= HOME ================= */
.sky-hero { padding-bottom: 104px; overflow: clip; }
html, body { overflow-x: clip; }
.sky-hero::after { /* moonlight behind the ring */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%; top: 150px; inset-inline-end: -120px;
  background: radial-gradient(closest-side, rgba(217, 180, 94, .16), rgba(217, 180, 94, 0));
}
@media (max-width: 859px) { .sky-hero::after { width: 420px; height: 420px; top: 120px; inset-inline-end: calc(50% - 210px); } }
.today { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-block: 26px 8px; }
.moon { width: 64px; height: 64px; flex: none; }
@media (min-width: 720px) { .moon { width: 76px; height: 76px; } }
.moon svg { width: 100%; height: 100%; }
.today-date { flex: 1 1 auto; min-width: 0; }
.today-weekday { font-family: var(--f-display); font-weight: 600; font-size: var(--s-1); color: var(--ink-2); }
.today-hijri { font-family: var(--f-display); font-weight: 700; font-size: var(--s3); color: var(--ink); line-height: 1.4; }
.today-greg { font-size: var(--s-1); color: var(--ink-2); }
.today-prayer {
  display: grid; grid-template-columns: auto auto; grid-template-areas: "l l" "n t"; column-gap: 14px; align-items: baseline;
  text-decoration: none; color: var(--ink); padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface);
}
.today-prayer:hover { border-color: var(--gold); }
.tp-label { grid-area: l; font-size: var(--s-1); color: var(--ink-2); }
.tp-name { grid-area: n; font-family: var(--f-display); font-weight: 700; font-size: var(--s2); color: var(--gold); }
.tp-time { grid-area: t; font-size: var(--s-1); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .today-prayer { width: 100%; grid-template-columns: 1fr auto; }
  .tp-time { justify-self: end; }
}

.hero { display: grid; gap: 30px; align-items: center; padding-block: 26px 0; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 56px; padding-block: 48px 0; } }
.hero-text { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: 2.6rem; line-height: 1.3; }
@media (min-width: 720px) { .hero h1 { font-size: 3.7rem; } }
[dir="ltr"] .hero h1 { line-height: 1.12; }
.hero-lead { font-size: var(--s1); color: var(--ink-2); max-width: 30em; }
.hero .btn-primary { box-shadow: 0 8px 24px rgba(217, 180, 94, .22); }
.hero .hadith { margin-top: 6px; }
.hero-ring { position: relative; width: min(100%, 380px); justify-self: center; order: -1; }
@media (min-width: 860px) { .hero-ring { order: 0; } }
@media (max-width: 859px) { .hero-ring { width: min(62%, 240px); } }
.hero-ring-svg { width: 100%; height: auto; }
.hero-ring-svg circle { fill: rgba(238, 241, 247, .16); animation: bead-fill .45s ease-out forwards; animation-delay: calc(var(--ri) * 45ms + 300ms); }
[dir="ltr"] .hero-ring-svg circle { animation-delay: calc(var(--li) * 45ms + 300ms); }
@keyframes bead-fill { to { fill: var(--gold); } }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring-n { font-family: var(--f-display); font-weight: 700; font-size: clamp(3.4rem, 10vw, 5rem); color: var(--ink); }
.ring-u { font-family: var(--f-display); font-size: var(--s1); color: var(--ink-2); }

/* tiles lift over the edge of the sky */
.tiles { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: -64px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -72px; } }
.tile {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 18px; min-height: 212px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; color: var(--ink); text-decoration: none;
  box-shadow: 0 14px 36px rgba(16, 32, 63, .14); transition: transform .18s ease, box-shadow .18s ease;
}
@media (min-width: 720px) { .tile { padding: 20px 22px 22px; min-height: 236px; } }
.tile:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(16, 32, 63, .2); }
.tile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
@media (max-width: 600px) { .tile-head { flex-direction: column; align-items: flex-start; gap: 8px; } .tile-big { font-size: 2.6rem; } }
.tile-icon {
  width: 38px; height: 38px; padding: 7px; border-radius: 12px; flex: none;
  background: var(--gold-2); fill: none; stroke: var(--gold-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tile-title { font-size: var(--s0); line-height: 1.4; }
.tile-big { font-family: var(--f-display); font-weight: 700; font-size: 3rem; line-height: 1.05; color: var(--ink); margin-top: auto; font-variant-numeric: tabular-nums; }
.tile-unit { font-family: var(--f-display); font-weight: 600; font-size: var(--s0); color: var(--ink); }
.tile-sub { font-size: var(--s-1); color: var(--ink-2); line-height: 1.6; }
.tile-strong { color: var(--gold-ink); font-weight: 600; margin-top: auto; }
.mini-times { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 1px; font-size: var(--s-1); }
.mini-times li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.mini-times li.is-next { background: var(--gold-2); color: var(--gold-ink); font-weight: 700; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 6px 0 4px; font-size: .7rem; text-align: center; line-height: 1.75; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mini-cal .is-today { background: var(--ink); color: var(--paper); border-radius: 6px; font-weight: 700; }
.mini-cal .is-white { color: var(--gold-ink); font-weight: 700; }
.mini-cal .is-fri { color: var(--jade); }

.how { display: grid; gap: 22px; justify-items: start; padding-block: 64px 24px; }
.how h2 { font-size: var(--s4); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; width: 100%; }
@media (min-width: 820px) { .how-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.how-steps li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.how-n {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-family: var(--f-display); font-weight: 700; font-size: var(--s2);
}
.how-steps p { font-size: var(--s0); line-height: 1.7; }

/* ================= PRAYER ================= */
.page-prayer .page-head, .page-ramadan .page-head { grid-template-columns: 1fr; }
@media (min-width: 860px) { .page-prayer .page-head { grid-template-columns: 1fr auto; align-items: end; } }
.next-prayer { padding: 22px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.np-label { font-size: var(--s-1); color: var(--ink-2); }
.np-name { font-family: var(--f-display); font-weight: 700; font-size: 3.2rem; color: var(--lapis); line-height: 1.25; }
.np-count { font-size: var(--s1); color: var(--ink); font-variant-numeric: tabular-nums; }
.day-times { max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
@media (min-width: 720px) { .day-times { padding: 20px 22px; } }
.day-times .pt-list { border-radius: var(--r); }
.day-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; margin-bottom: 12px; }
.day-label { text-align: center; font-family: var(--f-display); font-size: var(--s0); line-height: 1.5; }
.day-label .sub { display: block; font-family: var(--f-body); font-size: var(--s-1); color: var(--ink-2); }
.pt-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.pt-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pt-list li:last-child { border-bottom: 0; }
.pt-list .pn { font-family: var(--f-display); font-size: var(--s1); }
.pt-list .pt { font-size: var(--s1); font-variant-numeric: tabular-nums; }
.pt-list li.is-minor .pn, .pt-list li.is-minor .pt { color: var(--ink-2); font-size: var(--s0); }
.pt-list li.is-next { background: var(--lapis-2); box-shadow: inset 4px 0 0 var(--lapis); }
[dir="rtl"] .pt-list li.is-next { box-shadow: inset -4px 0 0 var(--lapis); }
.pt-list li.is-next .pn, .pt-list li.is-next .pt { color: var(--lapis); font-weight: 700; }
.pt-method { font-size: var(--s-1); color: var(--ink-2); margin-top: 10px; }
.month-times { margin-top: 48px; display: grid; gap: 14px; }
@media (min-width: 720px) { .month-times .table-wrap { max-height: 620px; } }

/* ================= RAMADAN ================= */
.countdown { padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 36px; display: grid; gap: 6px; }
.cd-big { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); color: var(--lapis); line-height: 1.05; }
.cd-n { font-size: clamp(5rem, 22vw, 8.5rem); font-weight: 700; }
.cd-unit { font-size: var(--s3); color: var(--ink); }
.cd-text { font-family: var(--f-display); font-size: var(--s2); }
.cd-dates { color: var(--ink-2); max-width: 40em; }
.imsakiya { display: grid; gap: 10px; margin-bottom: 40px; }
.imsak-table td.iftar { color: var(--jade); font-weight: 700; }
.imsak-table td.imsak { color: var(--lapis); font-weight: 700; }

/* ================= CALENDAR ================= */
.cal-today { display: flex; align-items: center; gap: 18px; }
.cal-today .today-hijri { font-size: var(--s3); }
@media (min-width: 720px) { .cal-today .today-hijri { font-size: var(--s5); } }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
@media (min-width: 720px) { .cal { padding: 24px 28px 28px; } }
.cal-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; margin-bottom: 16px; }
.cal-heading { text-align: center; }
.cal-heading h2 { font-size: var(--s2); }
@media (min-width: 720px) { .cal-heading h2 { font-size: var(--s3); } }
.cal-heading p { font-size: var(--s-1); color: var(--ink-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
@media (min-width: 720px) { .cal-grid { gap: 8px; } }
.cal-wd { text-align: center; font-family: var(--f-display); font-size: .78rem; color: var(--ink-2); padding-bottom: 4px; }
.cal-day {
  position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 58px; padding: 6px 7px 5px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--paper); line-height: 1.1;
}
@media (min-width: 720px) { .cal-day { min-height: 78px; padding: 8px 10px 7px; } }
.cal-day .hd { font-family: var(--f-display); font-weight: 600; font-size: var(--s1); }
@media (min-width: 720px) { .cal-day .hd { font-size: var(--s2); } }
.cal-day .gd { font-size: .72rem; color: var(--ink-2); justify-self: end; }
.cal-day.is-fri .hd { color: var(--jade); }
.cal-day.is-white::after {
  content: ""; position: absolute; bottom: 9px; inset-inline-start: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.cal-day.is-occ { background: var(--gold-2); border-color: var(--gold-line); }
.cal-day.is-occ .hd { color: var(--gold-ink); }
.cal-day.is-today { background: var(--lapis); border-color: var(--lapis); }
.cal-day.is-today .hd, .cal-day.is-today .gd { color: var(--on-lapis); }
.cal-blank { visibility: hidden; }
.cal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; font-size: var(--s-1); color: var(--ink-2); }
.cal-legend li { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg-today { background: var(--lapis); }
.lg-white { background: var(--gold); border-radius: 50%; width: 8px; height: 8px; }
.lg-occ { background: var(--gold-2); border: 1px solid var(--gold-line); }
.cal-events { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.cal-events li { display: flex; gap: 10px; align-items: baseline; }
.cal-events .ev-d { font-family: var(--f-display); color: var(--gold-ink); min-width: 4.5em; }
.cal-columns { display: grid; gap: 40px; margin-top: 44px; }
@media (min-width: 900px) { .cal-columns { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.convert { display: grid; gap: 18px; align-content: start; }
.conv-form { display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.conv-form h3 { font-size: var(--s1); }
.conv-form .btn { justify-self: start; }
.conv-result { font-family: var(--f-display); font-size: var(--s1); color: var(--lapis); }
.conv-result .sub { display: block; font-family: var(--f-body); font-size: var(--s-1); color: var(--ink-2); }
.conv-result.is-error { color: var(--danger); font-family: var(--f-body); font-size: var(--s-1); }
.upcoming { display: grid; gap: 14px; align-content: start; }
.up-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.up-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.up-list .up-name { font-family: var(--f-display); font-size: var(--s1); }
.up-list .up-in { font-family: var(--f-display); color: var(--gold-ink); align-self: center; grid-row: span 2; text-align: end; }
.up-list .up-date { font-size: var(--s-1); color: var(--ink-2); }

/* ================= KHATMA: create ================= */
.khatma-layout { max-width: 640px; }
.sky .steps { margin-top: 10px; }
@media (min-width: 820px) { .sky .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; font-size: var(--s1); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold-ink); font-family: var(--f-display); font-weight: 700; font-size: var(--s1);
}
[dir="rtl"] .steps li::before { content: counter(step, arabic-indic); }
.mine { margin-top: 56px; display: grid; gap: 14px; }
.mine h2 { font-size: var(--s3); }
.mine-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mine-list li a { display: flex; justify-content: space-between; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mine-list li a:hover .mt { color: var(--lapis); }
.mine-list .mt { font-family: var(--f-display); font-size: var(--s1); }
.mine-list .mr { color: var(--ink-2); font-size: var(--s-1); white-space: nowrap; align-self: center; }

/* ================= KHATMA: view ================= */
.k-created { background: var(--jade-2); color: var(--jade); border: 1px solid var(--jade-line); border-radius: var(--r); padding: 14px 18px; margin-bottom: 24px; font-weight: 600; }
.k-head { display: grid; gap: 24px; align-items: center; margin-bottom: 24px; }
@media (min-width: 820px) { .k-head { grid-template-columns: 1fr auto; gap: 48px; } }
.k-titles { display: grid; gap: 8px; }
.k-titles h1 { font-size: var(--s5); line-height: 1.25; }
@media (min-width: 720px) { .k-titles h1 { font-size: var(--s6); } }
.k-ded { font-size: var(--s1); color: var(--ink); }
.k-ded:empty { display: none; }
.k-meta { font-size: var(--s-1); color: var(--ink-2); }
.k-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; white-space: pre-line; max-width: 40em; margin-top: 6px; }
.k-progress { display: flex; align-items: center; gap: 22px; }
.k-ring { position: relative; width: 168px; flex: none; }
.k-ring svg { width: 100%; height: auto; }
.k-ring .b-free { fill: var(--line-2); }
.k-ring .b-reserved { fill: var(--jade); }
.k-ring .b-done { fill: var(--gold); }
.k-ring .rc { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.k-ring .rc b { font-family: var(--f-display); font-size: 2.6rem; color: var(--lapis); }
.k-ring .rc span { font-size: var(--s-1); color: var(--ink-2); }
.k-counts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--s0); }
.k-counts li { display: flex; align-items: center; gap: 9px; }
.k-counts i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.k-counts .c-done i { background: var(--gold); }
.k-counts .c-reserved i { background: var(--jade); }
.k-counts .c-free i { background: var(--line-2); }
.k-share { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.k-share svg { width: 20px; height: 20px; fill: currentColor; }

.juz-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .juz-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 960px) { .juz-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.juz {
  width: 100%; height: 100%; min-height: 104px; display: grid; align-content: start; gap: 1px; text-align: start;
  padding: 10px 12px 11px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  color: var(--ink); transition: border-color .15s, background-color .15s;
}
.juz:hover { border-color: var(--lapis); }
.juz .jn { font-family: var(--f-display); font-weight: 700; font-size: var(--s3); line-height: 1.15; }
.juz .jf { font-size: .76rem; color: var(--ink-2); line-height: 1.5; }
.juz .js { font-size: var(--s-1); font-weight: 600; line-height: 1.5; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.juz.st-free .js { color: var(--lapis); }
.juz.st-reserved { background: var(--jade-2); border-color: var(--jade-line); }
.juz.st-reserved .js { color: var(--jade); }
.juz.st-done { background: var(--gold-2); border-color: var(--gold-line); }
.juz.st-done .jn, .juz.st-done .js { color: var(--gold-ink); }
.juz.is-mine { box-shadow: 0 0 0 2px var(--lapis); border-color: var(--lapis); }
.juz.is-flash { animation: juz-flash .9s ease-out; }
@keyframes juz-flash { 0% { transform: scale(.96); } 50% { transform: scale(1.03); } 100% { transform: none; } }

.k-complete { border: 1px solid var(--gold-line); background: var(--surface); border-radius: var(--r-lg); padding: 26px 22px; margin-bottom: 32px; display: grid; gap: 10px; text-align: center; justify-items: center; }
.k-complete h2 { font-size: var(--s4); color: var(--gold-ink); }
.k-complete h3 { font-size: var(--s1); margin-top: 14px; color: var(--ink-2); }
.duas-quran { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 40em; }
.duas-quran .ayah { font-size: var(--s2); line-height: 2.1; }
.duas-quran .ref { font-size: var(--s-1); color: var(--ink-2); }
.k-rounds { margin-top: 18px; }
.k-admin { margin-top: 48px; display: grid; gap: 14px; }
.k-missing { display: grid; gap: 16px; justify-items: start; }

/* bottom sheet */
.sheet {
  border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none;
  width: 100%; margin: auto 0 0; inset-inline: 0;
}
.sheet::backdrop { background: var(--backdrop); }
.sheet-inner {
  background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  display: grid; gap: 14px; max-width: 520px; margin-inline: auto; border: 1px solid var(--line); border-bottom: 0;
}
.sheet[open] .sheet-inner { animation: sheet-up .22s ease-out; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) {
  .sheet { margin: auto; width: auto; }
  .sheet-inner { border-radius: 22px; width: 460px; border-bottom: 1px solid var(--line); padding: 26px; }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-size: var(--s3); }
.sheet-x { width: 40px; height: 40px; font-size: 1.6rem; }
.sh-sub { color: var(--ink-2); font-size: var(--s-1); margin-top: -8px; }
.sh-status { font-weight: 600; }
.sh-status:empty { display: none; }
.sheet-actions { display: grid; gap: 10px; }
.sh-read { font-size: var(--s-1); justify-self: center; }

/* ================= DUA ================= */
.page-dua .page-head { gap: 20px; }
.dua-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 940px) { .dua-layout { grid-template-columns: 380px 1fr; gap: 48px; } .dua-form { position: sticky; top: 20px; } }
.dua-toggle { display: none; }
@media (max-width: 939px) {
  .dua-toggle { display: inline-flex; }
  .dua-form.is-collapsed { display: none; }
}
.chips-filter { margin-bottom: 8px; }
.dua-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dua-item { padding: 18px 2px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.dua-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--s-1); color: var(--ink-2); }
.dua-cat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); color: var(--jade); }
.dua-cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dua-cat.c-deceased { color: var(--lapis); }
.dua-cat.c-relief, .dua-cat.c-success { color: var(--gold-ink); }
.dua-for { font-family: var(--f-display); font-size: var(--s1); }
.dua-body { font-size: var(--s0); line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.dua-by { font-size: var(--s-1); color: var(--ink-2); }
.dua-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.btn-ameen {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--gold-line); background: transparent; color: var(--gold-ink); font-family: var(--f-display); font-size: var(--s0); font-weight: 600; cursor: pointer;
}
.btn-ameen:hover { background: var(--gold-2); }
.btn-ameen .cnt { font-variant-numeric: tabular-nums; font-weight: 400; color: var(--ink-2); }
.btn-ameen.is-done { background: var(--gold-2); border-color: var(--gold); cursor: default; }
.btn-ameen.is-done .cnt { color: var(--gold-ink); }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--ink-2); font-size: var(--s-1); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--danger); }

/* ================= ADMIN ================= */
.admin-login { max-width: 420px; }
.admin-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.admin-list li { padding: 14px 2px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.admin-list .meta { font-size: var(--s-1); color: var(--ink-2); }
.admin-list .btn { min-height: 38px; padding: 6px 14px; font-size: var(--s-1); }

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .hero-ring-svg circle { fill: var(--gold); }
}

/* ================= DOCUMENT PAGES (about, privacy, terms) ================= */
.prose { max-width: 820px; padding: 26px 22px 34px; }
@media (min-width: 720px) { .prose { padding: 40px 52px 52px; } }
.prose > * + * { margin-top: 14px; }
.prose .updated { font-size: var(--s-1); color: var(--ink-2); }
.prose h2 { font-size: var(--s2); margin-top: 34px; padding-top: 4px; }
.prose h3 { font-size: var(--s1); margin-top: 22px; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin-block: 10px 0; display: grid; gap: 6px; }
.prose li::marker { color: var(--gold); }
.prose .summary { background: var(--gold-2); border: 1px solid var(--gold-line); border-radius: var(--r); padding: 14px 18px; }
.prose blockquote { margin: 18px 0; padding-inline-start: 16px; border-inline-start: 3px solid var(--gold); font-size: var(--s1); }
.contact-form { max-width: 640px; }
.contact-direct { color: var(--ink-2); }
.contact-direct a { color: var(--gold-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold-line); unicode-bidi: isolate; }
.contact-direct a:hover { color: var(--gold); }
.footer-nav a.footer-mail { unicode-bidi: isolate; }
.footer-legal { font-size: .8rem; }
