.collection .site-header nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.collection-header { padding-top: 30px; padding-bottom: 26px; }
.collection-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.collection-portrait { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; object-fit: cover; }
.collection-identity > div { min-width: 0; }
.collection-name { font-size: 0.8125rem; color: var(--muted); margin-bottom: 4px; }
.collection-header h1 { font-size: 2rem; }
.collection-intro { max-width: 76ch; color: var(--muted); font-size: 0.9375rem; }
.collection-index { padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.collection-index ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.collection-index li { min-width: 0; }
.collection-index a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; font-size: 0.8125rem; font-weight: 600; overflow-wrap: anywhere; }
.collection-category { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; padding-top: 36px; padding-bottom: 12px; }
.collection-category > header { grid-column: 1 / -1; min-width: 0; }
.collection-category h2 { font-size: 1.375rem; margin-bottom: 6px; }
.collection-category > header p { max-width: 80ch; color: var(--muted); font-size: 0.8125rem; }
.project-row { min-width: 0; padding: 20px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); scroll-margin-top: 24px; overflow-wrap: anywhere; }
.project-row:has(> .project-gallery) { border-top-color: var(--accent); }
.project-row:target { border-color: var(--brand); }
.project-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.project-heading h3 { font-size: 1.125rem; }
.project-state { font-size: 0.75rem; line-height: 1.5; color: var(--brand); }
.project-context { margin-top: 6px; color: var(--muted); font-size: 0.75rem; }
.project-summary { margin-top: 10px; font-size: 0.9375rem; }
.project-row > .project-gallery { min-width: 0; margin-top: 16px; }
.project-row > .project-gallery .gallery-trigger { max-width: none; grid-template-rows: auto minmax(44px, auto); border: 0; border-radius: 0; background: transparent; }
.project-row > .project-gallery .gallery-trigger img { width: 100%; height: auto; max-height: 200px; aspect-ratio: 16 / 9; object-fit: contain; border: 0; }
.project-row > .project-gallery .gallery-trigger > span { padding: 0; }
.project-row > .project-gallery .gallery-links { overflow-wrap: anywhere; }
.project-row details { min-width: 0; margin-top: 14px; padding-top: 2px; border-top: 1px solid var(--rule); font-size: 0.875rem; }
.project-row summary { width: fit-content; max-width: 100%; min-height: 44px; padding: 8px 0; color: var(--accent); cursor: pointer; font-weight: 600; }
.project-row summary:hover { color: var(--accent-hover); }
.project-detail { min-width: 0; margin-top: 4px; padding: 6px 0 6px 12px; border-left: 2px solid var(--rule); overflow-wrap: anywhere; }
.project-detail p + p { margin-top: 10px; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.8125rem; }
.project-links a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.publication-title { font-style: normal; }
.publication-meta { color: var(--muted); font-size: 0.8125rem; }
.collection-note { padding-top: 20px; padding-bottom: 30px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.8125rem; }
.collection-contact { padding-top: 26px; padding-bottom: 26px; background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.collection-contact h2 { font-size: 1.25rem; margin-bottom: 12px; }
.collection-contact-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 0.875rem; overflow-wrap: anywhere; }
.collection .site-footer { flex-wrap: wrap; }
@media (max-width: 800px) {
  .collection-category { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .collection-header { padding-top: 24px; padding-bottom: 20px; }
  .collection-header h1 { font-size: 1.75rem; }
  .collection-identity { align-items: flex-start; gap: 12px; }
  .collection-portrait { width: 44px; height: 44px; flex-basis: 44px; }
  .collection-index ul { gap: 4px 18px; }
  .collection-category { gap: 16px; padding-top: 28px; }
  .project-row { padding: 16px; }
  .project-heading { gap: 6px; }
  .collection-contact-links { flex-direction: column; align-items: flex-start; }
}
