/* ============================================
   Inner Page Shared Styles
   ============================================ */

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: 0.05;
  pointer-events: none;
}

.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumbs a:hover { color: var(--text-primary); }

.page-title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 16px;
}

.page-title .serif {
  color: var(--accent);
}

.page-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
}

.page-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.page-stat {
  display: flex;
  flex-direction: column;
}

.page-stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-stat-label {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== TOOLBAR ===== */
.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

[data-theme="dark"] .toolbar {
  background: rgba(10, 10, 9, 0.85);
}

.toolbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.chip {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-fast);
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.chip.is-active {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 7px 34px 7px 14px; /* extra right padding to make room for the arrow */
  font-size: 13px;
  font-weight: 500;
  background-color: var(--bg-elevated);
  /* Custom chevron — sits 12px from the right edge, vertically centered */
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A5A55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}
.sort-select::-ms-expand { display: none; }
.sort-select:hover { border-color: var(--border-strong); }
.sort-select:focus {
  outline: none;
  border-color: var(--text-primary);
}

.view-switch {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
}

.view-switch button {
  padding: 6px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}

.view-switch button.is-active {
  background: var(--text-primary);
  color: var(--bg);
}

/* ===== PAGE BODY ===== */
.page-body {
  padding: 48px 0 96px;
}

.page-body-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== EMPTY STATE / LOAD MORE ===== */
.load-more {
  display: flex;
  justify-content: center;
  margin: 64px 0 0;
}
