/* Static content pages (guide, city pages). Same palette as the 3D app, no JavaScript. */
:root {
  --bg: #030817;
  --panel: #0a1636;
  --panel-2: #10214d;
  --line: rgba(110, 150, 230, 0.2);
  --text: #e9eefb;
  --muted: #9aa9cd;
  --gold: #ffc53d;
  --font: 'Manrope Variable', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #13265a 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 500 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd978; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px max(16px, calc((100% - 1040px) / 2));
  background: rgba(3, 8, 23, 0.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--gold); }

main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 48px; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 14px; }
h2 { font-size: 23px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.lead { font-size: 18px; color: #d6def2; max-width: 820px; }
.lead strong { color: var(--gold); }
p, li, dd { max-width: 820px; }

.cta {
  display: inline-block; margin: 6px 10px 6px 0; padding: 11px 18px; border-radius: 12px;
  background: var(--gold); color: #1a1300; font-weight: 800; text-decoration: none;
  box-shadow: 0 0 24px rgba(255, 197, 61, 0.35);
}
.cta:hover { color: #1a1300; background: #ffd36b; }
.cta.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); box-shadow: none; }

.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
th, td { padding: 9px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-size: 13px; font-weight: 700; background: var(--panel-2); position: sticky; top: 0; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; }
td b { color: var(--gold); }

.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin: 8px 0; }
.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 700; }
.faq p { margin: 0; padding: 0 16px 14px; color: #d6def2; }

.cities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 16px; }
.cities small { color: var(--muted); }
.glossary dt { font-weight: 800; color: var(--gold); margin-top: 12px; }
.glossary dd { margin: 2px 0 0; color: #d6def2; }

.foot { border-top: 1px solid var(--line); padding: 24px max(16px, calc((100% - 1040px) / 2)); color: var(--muted); font-size: 14px; }
.foot p { margin: 6px 0; max-width: none; }

/* language links (footer) */
.foot .langs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13px; }
.foot .langs span { color: var(--muted); }
.foot .langs b { color: var(--text); }

/* right-to-left pages (Arabic) */
[dir='rtl'] body { text-align: right; }
[dir='rtl'] th, [dir='rtl'] td { text-align: right; }
[dir='rtl'] .faq summary { padding-right: 0; }

/* today block (filled in the browser), Moon calendar, related links */
.today { margin: 18px 0 22px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); max-width: 820px; }
.today h2 { margin: 0 0 10px; font-size: 18px; }
.today-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 15px; }
.today-grid dt { color: var(--muted); }
.today-grid dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.today noscript p { color: var(--muted); font-size: 14px; margin: 0; }
.moon-cal { table-layout: fixed; min-width: 560px; }
.moon-cal th { text-align: center; }
.moon-cal td { text-align: center; white-space: normal; vertical-align: top; padding: 8px 4px; height: 84px; }
.moon-cal td .d { display: block; font-weight: 700; font-size: 13px; color: var(--muted); }
.moon-cal td svg { display: block; margin: 4px auto 2px; }
.moon-cal td small { display: block; font-size: 11px; color: var(--muted); }
.moon-cal td em { display: block; font-style: normal; font-size: 11px; color: var(--gold); line-height: 1.2; }
.moon-cal td.major { background: rgba(255, 197, 61, 0.06); }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.related { color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .today-grid { grid-template-columns: 1fr; gap: 0 0; } .today-grid dd { margin-bottom: 6px; } }
