:root {
  --page-navy: #0b0e13;
  --page-panel: #151922;
  --page-blue: #0070d1;
  --page-blue-dark: #0059aa;
  --page-ink: #11141a;
  --page-muted: #616875;
  --page-line: #dfe3e8;
  --page-soft: #f3f5f8;
  --page-white: #fff;
}

.page-header {
  padding: 28px 0 72px;
  background: var(--page-navy);
  color: var(--page-white);
}

.page-header .wordmark {
  margin-bottom: 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.breadcrumb a {
  color: #fff;
  text-underline-offset: 3px;
}

.page-kicker {
  margin: 0 0 12px;
  color: #76b9ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-header h1 {
  max-width: 980px;
}

.page-summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(18px, 2.4vw, 22px);
}

.page-main {
  padding: 72px 0 96px;
}

.page-section + .page-section {
  margin-top: 76px;
}

.page-section h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.page-section h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.prose {
  max-width: 820px;
  color: #343a43;
  font-size: 17px;
  line-height: 1.8;
}

.prose p {
  margin: 0 0 20px;
}

.prose a,
.text-link {
  color: var(--page-blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--page-line);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  background: var(--page-soft);
  color: #4a515c;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table td:first-child {
  font-weight: 700;
}

.data-table a {
  color: var(--page-blue-dark);
}

.sample-grid,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.sample-card,
.collection-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  background: #fff;
}

.sample-card img,
.collection-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 245 / 342;
  object-fit: cover;
  background: var(--page-soft);
}

.sample-copy,
.collection-copy {
  display: grid;
  gap: 4px;
  padding: 15px;
}

.sample-copy strong,
.collection-copy strong {
  overflow-wrap: anywhere;
}

.sample-copy span,
.collection-copy span {
  color: var(--page-muted);
  font-size: 13px;
}

.image-fallback-card {
  display: none;
  aspect-ratio: 245 / 342;
  place-items: center;
  padding: 20px;
  background: var(--page-soft);
  text-align: center;
}

.sample-card.image-failed img,
.collection-card.image-failed img {
  display: none;
}

.sample-card.image-failed .image-fallback-card,
.collection-card.image-failed .image-fallback-card {
  display: grid;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.insight-card {
  border-top: 4px solid var(--page-blue);
  border-radius: 0 0 8px 8px;
  padding: 24px;
  background: var(--page-soft);
}

.insight-card h3 {
  margin: 0 0 12px;
}

.insight-card p {
  margin: 0;
  color: #454b55;
  line-height: 1.7;
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  padding: 30px;
  background: var(--page-navy);
  color: #fff;
}

.page-cta h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.page-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.page-cta .primary-button {
  flex: 0 0 auto;
}

.sibling-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sibling-links a {
  border: 1px solid var(--page-line);
  border-radius: 8px;
  padding: 18px;
  color: var(--page-blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.sibling-links a:hover {
  border-color: var(--page-blue);
}

.status-note {
  border-left: 4px solid var(--page-blue);
  padding: 16px 18px;
  background: #eef6ff;
  color: #2f3946;
}

.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.collection-group + .collection-group {
  margin-top: 54px;
}

.collection-count {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--page-blue);
  color: #fff !important;
  font-weight: 700;
}

.empty-state {
  border: 1px dashed #b9c1cc;
  border-radius: 10px;
  padding: 44px 28px;
  text-align: center;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--page-muted);
}

.legal-list {
  max-width: 860px;
  margin: 0;
  padding-left: 24px;
}

.legal-list li {
  margin-bottom: 18px;
  padding-left: 8px;
  color: #343a43;
  line-height: 1.75;
}

.updated {
  margin: 0 0 30px;
  color: var(--page-muted);
  font-weight: 700;
}

.simple-page .page-main {
  min-height: 55vh;
}

.error-code {
  margin: 0;
  color: var(--page-blue);
  font-size: clamp(96px, 22vw, 220px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.error-copy {
  max-width: 600px;
  margin: 28px 0;
  font-size: 21px;
}

.loading-copy {
  color: var(--page-muted);
}

@media (max-width: 900px) {
  .sample-grid,
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .page-header {
    padding: 24px 0 52px;
  }

  .page-header .wordmark {
    margin-bottom: 40px;
  }

  .page-main {
    padding: 52px 0 72px;
  }

  .page-section + .page-section {
    margin-top: 58px;
  }

  .sample-grid,
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .sibling-links {
    grid-template-columns: 1fr;
  }

  .page-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .sample-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }
}
