/* Books page — uses design system tokens */

.books-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 80px;
}

@media (max-width: 720px) {
  .books-wrap { padding: 64px 20px 60px; }
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 0 0 32px;
  border-bottom: 1px solid #ebeee8;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.intro {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  color: #283027;
  max-width: 480px;
  line-height: 1.7;
  margin: 8px 0 0;
}

/* ── STATS ── */
.stats {
  display: flex;
  gap: 40px;
  flex-shrink: 0;
}
.stat-num {
  display: block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: #0f1410;
  line-height: 1;
}
.stat-num.accent { color: #3f7a4f; }
.stat-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9aa399;
}

/* ── LEGEND ── */
.legend-bar {
  padding: 14px 0;
  border-bottom: 1px solid #ebeee8;
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 0;
}
.legend-item {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9aa399;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pip {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pip.read   { background: #3f7a4f; }
.pip.queued { background: #d4dacd; }
.pip.gap    { background: transparent; border: 1px solid #d4dacd; }

/* ── MAIN ── */
.main { padding: 0 0 80px; }

/* ── CONTINENT SECTION ── */
.continent { margin-top: 48px; }

.continent h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aa399;
  margin: 0 0 0;
  padding: 12px 0;
  border-top: 2px solid #0f1410;
}

/* ── TABLE ── */
table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9aa399;
  text-align: left;
  padding: 12px 16px 10px 0;
  border: none !important;
}
thead th:first-child { padding-left: 0; width: 22%; }
thead th:nth-child(2) { width: 35%; }
thead th:nth-child(3) { width: 28%; }
thead th:last-child  { width: 15%; }

tbody tr { border: none !important; }
table, thead, tbody, tfoot, tr, td, th { border: none !important; }

td {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  padding: 10px 16px 10px 0;
  vertical-align: middle;
  color: #0f1410;
  border: none !important;
  border-bottom: 1px solid #ebeee8 !important;
}
td:first-child { padding-left: 0; }

.td-country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  white-space: nowrap;
}

.td-book {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 16px;
}

.td-author {
  color: #9aa399;
  font-size: 14px;
}

.badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.badge.read   { color: #3f7a4f; }
.badge.queued { color: #9aa399; }
.badge.gap    { color: #d4dacd; }

tr.row-gap .td-country { color: #9aa399; }
tr.row-gap .td-book    { color: #9aa399; font-style: normal; }
tr.row-gap .td-author  { color: #d4dacd; }

.try-tag {
  font-style: normal;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d4dacd;
  margin-right: 4px;
}

tr.row-combined td { padding-top: 6px; padding-bottom: 6px; }
.combined-countries {
  font-size: 11px;
  color: #9aa399;
  line-height: 1.6;
}

.book-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.book-link:hover { color: #3f7a4f; }
.book-cover {
  height: 80px;
  width: auto;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .stats { gap: 24px; }
  thead th:nth-child(3), td:nth-child(3),
  thead th:nth-child(4), td:nth-child(4) { display: none; }
  thead th:first-child { width: 38%; }
  thead th:nth-child(2) { width: 62%; }
  .legend-bar { gap: 20px; }
}
