/* ======================================
   Karte Global — Credits Page Styles
   Page-specific; always load after base.css
   ====================================== */

/* ===== Credits uses a narrower container ===== */
/* TODO: update credits.html to use class="container-narrow"
   instead of class="container" and remove this override */
.container { max-width: 880px; }

/* ===== Typography overrides (credits uses h2 as doc-section headers) ===== */
h1 { margin-bottom: 1.5rem; }

h2 {
  font-size: 1.625rem;
  margin: 2.5rem 0 1rem;
}

@media (min-width: 768px) {
  h2 { font-size: 1.875rem; }
}

p { max-width: 60ch; }

/* ===== Back link (credits nav) ===== */
.back-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--accent); }

/* ===== Main content padding ===== */
main { padding: 4rem 0 6rem; }

@media (min-width: 768px) {
  main { padding: 6rem 0 8rem; }
}

/* ===== Attribution list ===== */
.credits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  border-top: 1px solid var(--border);
}

.credits-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 600px) {
  .credits-list li {
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 1.5rem;
  }
}

.credit-country {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--headline);
  font-weight: 500;
}

.credit-photographer {
  font-size: 0.9375rem;
  color: var(--text);
}

.credit-source {
  font-size: 0.875rem;
  color: var(--text-soft);
}

@media (min-width: 600px) {
  .credit-source { text-align: right; }
}

.credit-source a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.credit-source a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== Footer override (credits has a simpler footer, no .footer-grid) ===== */
footer {
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}
