:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --accent: #2c7be5;
  --accent-soft: #e1ecff;
  --text-main: #222;
  --text-muted: #666;
  --border-soft: #dde3f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f4f6fb, #e7f0ff);
  color: var(--text-main);
}

/* HEADER & NAV */

header {
  background: #0c1020;
  color: #fff;
  padding: 1.5rem 1.5rem 1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* Make sure header title is actually visible (white) */
header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.03em;
  color: #ffffff;
}

header p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: #d5ddff;
}

.navbar {
  background: #141a30;
  padding: 0.6rem 1.5rem;
}

.navbar a {
  color: #cfd6ff;
  margin-right: 1.1rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.navbar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* LAYOUT */

.container {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

.panel {
  background: var(--panel);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: 0 10px 30px rgba(19, 41, 84, 0.12);
  border: 1px solid var(--border-soft);
}

/* UI ELEMENTS */

.pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* HEADINGS & TEXT */

h1 {
  margin-top: 0;
  font-size: 1.7rem;
  color: #111b33;
}

h2 {
  margin-top: 1.25rem;
  font-size: 1.3rem;
  color: #111b33;
}

p {
  line-height: 1.6;
  font-size: 0.95rem;
}

/* DOWNLOAD CARD */

.download-card {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed var(--accent);
  background: linear-gradient(135deg, rgba(44, 123, 229, 0.05), rgba(44, 123, 229, 0));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  justify-content: space-between;
}

.btn-primary {
  border: none;
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(44, 123, 229, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(44, 123, 229, 0.55);
}

.btn-primary span:first-child {
  font-size: 1.1rem;
}

/* FIGURES / IMAGES */

figure {
  margin: 1rem 0 1.25rem;
}

figure img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  display: block;
}

figure figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* TABLES */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.85rem;
  background: #f9fbff;
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 0.55rem 0.6rem;
  border: 1px solid #e0e6f2;
  text-align: left;
}

th {
  background: #e5edff;
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: #f4f7ff;
}

/* MONOTHEIST LIST (chips) */

.monotheist-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.monotheist-list li {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
}

/* SOURCES TEXT */

.sources {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* AD SLOT */

.ad-slot {
  margin-top: 1.5rem;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px dashed #cbd3e6;
  background: #f8f9ff;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 100px; /* helps prevent layout jump while ads load */
}

.ad-slot strong {
  display: block;
  margin-bottom: 0.3rem;
}

/* FOOTER */

footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2rem 0 1.5rem;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  header h1 {
    font-size: 1.4rem;
  }

  .download-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    padding: 0.6rem 1rem;
  }

  .navbar a {
    display: inline-block;
    margin: 0 0.8rem 0.3rem 0;
  }
}
