/* Styles for credits.html only. Shared tokens and components live in css/styles.css. */
.page-hero .eyebrow:empty { display: none; }

.credits-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); padding-bottom: var(--s7); margin-bottom: var(--s7); border-bottom: 1px solid var(--line); }
.credits-why-copy { display: grid; gap: var(--s4); align-content: start; max-width: 60ch; }
.credits-why-copy p { color: var(--ink-2); }
.license-defs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.license-defs > div { display: grid; grid-template-columns: 110px 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.license-defs dt { margin: 0; }
.license-defs dd { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }

.credits-head { align-items: baseline; }
.credits-count { color: var(--muted); font-size: var(--t-sm); white-space: nowrap; }
.credit-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credit-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--s5); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.credit-thumb { display: block; width: 96px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--surface); }
.credit-thumb img { width: 100%; height: 100%; object-fit: cover; }
.credit-main { display: grid; gap: 2px; min-width: 0; }
.credit-name { color: var(--ink); font-weight: 500; text-decoration: none; }
.credit-name:hover { color: var(--accent); text-decoration: underline; }
.credit-by { color: var(--muted); font-size: var(--t-sm); }
.credit-by a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.credit-by a:hover { color: var(--accent); text-decoration-color: currentColor; }
.credit-meta { display: flex; align-items: center; gap: var(--s4); justify-content: flex-end; flex-wrap: wrap; }
.credit-source { font-size: var(--t-sm); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; white-space: nowrap; }
.credit-source:hover { color: var(--accent); text-decoration-color: currentColor; }
.credits-loading { color: var(--muted); padding: var(--s5) 0; }
.credits-foot { margin-top: var(--s5); color: var(--muted); font-size: var(--t-sm); }

@media (max-width: 1023px) { .credits-why { grid-template-columns: 1fr; gap: var(--s6); } }
@media (max-width: 620px) {
  .credit-row { grid-template-columns: 72px minmax(0, 1fr); gap: var(--s2) var(--s4); align-items: start; }
  .credit-thumb { width: 72px; grid-row: span 2; }
  .credit-meta { justify-content: flex-start; gap: var(--s3); }
  .license-defs > div { grid-template-columns: 1fr; gap: var(--s2); }
  /* Phone polish: bigger tap areas on the row links without making the rows look padded. */
  .credit-row { padding: var(--s4) 0; row-gap: var(--s1); }
  .credit-name { display: block; padding-block: 6px; margin-block: -6px 0; }
  .credit-by a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .credit-meta { row-gap: 0; }
  .credit-source { display: inline-flex; align-items: center; min-height: 44px; }
  .credit-meta .license-badge { height: 32px; padding-inline: 10px; font-size: var(--t-sm); }
  .license-defs dd { font-size: var(--t-md); }
}
/* Touch screens: the license badge link is 44px tall; its visible outline stays 32px (see css/styles.css). */
@media (pointer: coarse) and (max-width: 767px) { .credit-meta a.license-badge { height: 44px; margin: -6px; padding-inline: 16px; outline-offset: -6px; } .credit-meta a.license-badge:focus-visible { outline-offset: -6px; } }
