/* ----------------------------------------------------
Base
---------------------------------------------------- */

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fafafa;
  color: #333;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------
Header
---------------------------------------------------- */

.site-header {
  background: #ffffff;
  padding: 3rem 1rem 2rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.header-logo img {
  max-width: 240px;
  height: auto;
}

.site-nav {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #555;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------
Main
---------------------------------------------------- */

main {
  max-width: 900px;
  margin: auto;
  padding: 3rem 1rem;
}

h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

p {
  line-height: 1.6;
}

/* ----------------------------------------------------
Tables
---------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

th {
  text-align: left;
  font-size: 0.95rem;
}

.rank {
  width: 60px;
  white-space: nowrap;
}

.reviews {
  text-align: right;
  white-space: nowrap;
}

.last-month {
  white-space: nowrap;
}

.partner {
  color: #777;
  font-size: 14px;
  margin-top: 3px;
}

/* ----------------------------------------------------
Rank movement
---------------------------------------------------- */

.last-month {
  white-space: nowrap;
}

.rank-change.up {
  color: #0a8f3c;
  font-weight: 600;
}

.rank-change.down {
  color: #c0392b;
  font-weight: 600;
}

.rank-change.same {
  color: #777;
}

.rank-change.new {
  color: #555;
  font-weight: 600;
}

/* ----------------------------------------------------
Stats cards
---------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.stat {
  border: 1px solid #ddd;
  padding: 14px;
  background: #fff;
  border-radius: 10px;
}

.stat-label {
  font-size: 13px;
  color: #777;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  margin-top: 4px;
}

/* ----------------------------------------------------
Footer
---------------------------------------------------- */

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #999;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

/* ----------------------------------------------------
Brands
---------------------------------------------------- */

.az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
}

.az-nav a {
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid #ddd;
}

.brand-letter-section {
    margin: 40px 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.brand-card {
    border: 1px solid #eee;
    padding: 16px;
}

.brand-card h3 {
    margin-top: 0;
}

.brand-meta,
.brand-details {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

/* ----------------------------------------------------
About Page
---------------------------------------------------- */

.page-intro {
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #777;
}

section {
  margin-bottom: 2rem;
}

ul {
  padding-left: 18px;
  line-height: 1.6;
}

/* ----------------------------------------------------
Mobile
---------------------------------------------------- */

@media (max-width: 768px) {
  .site-header {
    padding: 2rem 1rem 1.5rem;
  }

  .header-logo img {
    max-width: 220px;
  }

  main {
    padding: 2rem 1rem;
  }

  .stats,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .brands-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 8px;
    font-size: 0.92rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}