/* Lists, search results, and 404. Shared colors and chrome come from home.css. */
.acg-collection-shell {
  display: flex;
  flex-direction: column;
}

.acg-collection-main {
  flex: 1;
  padding-block: 38px 76px;
}

.acg-collection-main:focus { outline: none; }

.acg-collection-intro {
  margin-bottom: 30px;
  padding: clamp(25px, 4vw, 50px);
  border: 1px solid #d9e1d3;
  border-radius: 18px;
  background: linear-gradient(105deg, #e9eee1, #f4f3e6 82%);
}

.acg-collection .acg-collection-intro h1,
.acg-collection .acg-collection-card h2 {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.acg-collection .acg-collection-intro h1::before,
.acg-collection .acg-collection-intro h1::after,
.acg-collection .acg-collection-card h2::before,
.acg-collection .acg-collection-card h2::after {
  content: none;
  display: none;
}

.acg-collection-home {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: -6px 0 10px;
  color: #385b49;
  font-size: .875rem;
  font-weight: 750;
}

.acg-collection-home:hover { text-decoration: underline; text-underline-offset: 3px; }

.acg-collection-intro h1 {
  margin: 0;
  color: var(--acg-forest-deep);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.acg-collection-intro p {
  margin: 13px 0 0;
  color: var(--acg-muted);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.65;
  word-break: keep-all;
}

.acg-collection-guide {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  padding: 9px 15px;
  border: 1px solid #b6c6b2;
  border-radius: 8px;
  background: var(--acg-surface);
  color: var(--acg-forest-deep);
  font-size: 14px;
  font-weight: 750;
}

.acg-collection-guide:hover { background: #fff; border-color: #7c9a81; }

.acg-collection-search {
  display: flex;
  gap: 8px;
  width: min(100%, 440px);
  margin: 20px 0 0;
}

.acg-collection-search input,
.acg-collection-search button {
  margin: 0;
  min-height: 48px;
  border-radius: 8px;
  font: inherit;
}

.acg-collection-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid #9aaa9b;
  background: var(--acg-surface);
  color: var(--acg-ink);
  font-size: 16px;
}

.acg-collection-search button {
  flex: none;
  min-width: 66px;
  padding: 8px 12px;
  border: 1px solid var(--acg-forest);
  background: var(--acg-forest);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.acg-collection-search button:hover { background: var(--acg-forest-deep); }
.acg-collection-search :is(input, button):focus-visible { outline: 3px solid #99611c; outline-offset: 2px; }

.acg-collection-page-number { margin: 0 0 12px; color: var(--acg-muted); font-size: 13px; }

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

.acg-collection-card {
  display: flex;
  margin: 0;
}

.acg-collection-card > a {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--acg-line);
  border-radius: 14px;
  background: var(--acg-surface);
  color: var(--acg-ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.acg-collection-card > a:hover { border-color: #9fb29d; box-shadow: 0 7px 20px #25463616; }

.acg-collection-cover {
  overflow: hidden;
  aspect-ratio: 1.8;
  background: var(--acg-soft-green);
}

.acg-collection-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}

.acg-collection-card > a:hover .acg-collection-cover img { transform: scale(1.035); }

.acg-collection-cover-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(118deg, #e2eadc, #edf1e6);
}

.acg-collection-cover-empty img { width: 48px; height: 48px; object-fit: contain; }

.acg-collection-card-copy { position: relative; flex: 1; padding: 17px 48px 20px 17px; }

.acg-collection-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 9px;
  margin-bottom: 7px;
  color: var(--acg-muted);
  font-size: 12px;
  line-height: 1.5;
}

.acg-collection-meta span { color: #375b43; font-weight: 750; }
.acg-collection-meta time { font-variant-numeric: tabular-nums; }

.acg-collection-card h2 {
  margin: 0;
  color: var(--acg-ink);
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 800;
  letter-spacing: -.044em;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.acg-collection-arrow {
  position: absolute;
  top: 19px;
  right: 14px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #d7ded0;
  border-radius: 50%;
  color: #345843;
}

.acg-collection-empty { margin: 0; color: var(--acg-muted); line-height: 1.7; }

.acg-collection .pagination { margin-top: 31px; }
.acg-collection .pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.acg-collection .pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.acg-collection .pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid var(--acg-line);
  border-radius: 8px;
  background: var(--acg-surface);
  color: var(--acg-forest-deep);
  font-size: 14px;
  font-weight: 700;
}

.acg-collection .pagination .page-numbers.current { border-color: var(--acg-forest); background: var(--acg-forest); color: #fff; }
.acg-collection .pagination .page-numbers.dots { min-width: 24px; padding-inline: 1px; background: transparent; border-color: transparent; }
.acg-collection .pagination a.page-numbers:hover { background: var(--acg-soft-green); }

@media (max-width: 850px) {
  .acg-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
}

@media (max-width: 540px) {
  .acg-collection-main { padding-block: 19px 48px; }
  .acg-collection-intro { margin-bottom: 20px; padding: 20px 17px 23px; border-radius: 13px; }
  .acg-collection-intro h1 { font-size: clamp(29px, 8vw, 38px); }
  .acg-collection-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .acg-collection-card > a {
    display: grid;
    grid-template-columns: clamp(88px, 24vw, 108px) minmax(0, 1fr);
    min-height: 100px;
  }
  .acg-collection-cover { position: relative; aspect-ratio: auto; }
  .acg-collection-cover:not(.acg-collection-cover-empty) img { position: absolute; inset: 0; }
  .acg-collection-cover-empty img { width: 36px; height: 36px; }
  .acg-collection-card-copy { align-self: center; min-width: 0; padding: 12px 31px 12px 12px; }
  .acg-collection-meta { gap: 2px 6px; margin-bottom: 4px; font-size: 11px; }
  .acg-collection-card h2 { font-size: 16px; line-height: 1.4; }
  .acg-collection-arrow { top: 50%; right: 7px; width: 21px; height: 21px; transform: translateY(-50%); }
  .acg-collection-arrow svg { width: 15px; height: 15px; }
  .acg-collection .pagination .nav-links { gap: 4px; }
  .acg-collection .pagination .page-numbers { padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .acg-collection-card > a, .acg-collection-cover img { transition: none; }
  .acg-collection-card > a:hover .acg-collection-cover img { transform: none; }
}
