/* The index wall keeps every artwork in its original aspect ratio. */
html[data-surface] .index-page { padding-bottom: 16px; }
html[data-surface] .index-page .index-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 19px 0 12px;
}
html[data-surface] .index-page .index-heading h1 { font-size: 28px; letter-spacing: 2px; }
html[data-surface] .index-page .index-heading h1 small { font: 13px Georgia,serif; color: var(--muted); margin-left: 12px; letter-spacing: 0; }
html[data-surface] .index-page .catalog-controls { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 22px; padding: 0; background: #302d37; border-top: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
html[data-surface] .index-page .search-row { gap: 24px; }
html[data-surface] .index-page .search-field { max-width: 620px; }
html[data-surface] .index-page .search-field input { min-height: 44px; padding: 10px 0; font-size: 13px; }
html[data-surface] .index-page .catalog-select { margin: 0; min-height: 44px; padding: 8px 20px 8px 0; border: 0; max-width: 220px; }
html[data-surface] .index-page .filter-row { margin: 0; padding: 0; gap: 5px; }
html[data-surface] .index-page .filter-chip { min-height: 37px; padding: 7px 12px; font-size: 11px; border: 0; }
html[data-surface] .index-page .filter-chip[aria-pressed="true"] { color: var(--ink); background: #b7a0c31c; }
html[data-surface] .index-page .results-summary { padding: 11px 0 14px; min-height: 35px; font-size: 10px; }
html[data-surface] .index-page .presentation-wall { display: flex; flex-direction: column; gap: 38px; }
html[data-surface] .index-page .wall-chapter-group { display: flex; flex-direction: column; gap: 38px; }
html[data-surface] .index-page .wall-chapter { display: flex; align-items: center; gap: 14px; border-top: 1px solid #ac97b52b; padding-top: 22px; margin-bottom: -15px; }
html[data-surface] .index-page .wall-chapter > span { font: italic 14px Georgia,serif; color: var(--accent); }
html[data-surface] .index-page .wall-chapter h2 { font-size: 21px; }
html[data-surface] .index-page .wall-chapter small { color: var(--muted); font-size: 10px; margin-left: auto; }
html[data-surface] .index-page .wall-row { display: flex; gap: 26px; align-items: start; width: 100%; max-width: var(--row-max); }
html[data-surface] .index-page .wall-row .art-card { flex: calc(var(--art-ratio) * 2) 1 0; }
html[data-surface] .index-page .wall-row .art-card:only-child { flex: 1; }
html[data-surface] .index-page .art-card .card-image,
html[data-surface] .index-page .art-card .card-image.portrait {
  display: block; width: 100%; aspect-ratio: auto; padding: 0; background: none;
  border: 0; box-shadow: none; overflow: visible;
}
html[data-surface] .index-page .art-card .card-image img { display: block; width: 100%; height: auto; object-fit: contain; box-shadow: none; transition: none; }
html[data-surface] .index-page .art-card:hover .card-image img { transform: none; }
html[data-surface] .index-page .art-card .card-copy { margin-top: 11px; gap: 6px; }
html[data-surface] .index-page .art-card h3 { font-size: 19px; line-height: 1.5; }
html[data-surface] .index-page .card-title { display: block; text-align: left; padding: 0; font: inherit; line-height: inherit; }
html[data-surface] .index-page .card-title:hover { color: var(--accent); }
html[data-surface] .index-page .art-card small { font-size: 10px; margin-top: 4px; line-height: 1.6; }
html[data-surface] .index-page .card-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 3px; }
html[data-surface] .index-page .card-explore,
html[data-surface] .index-page .card-compare { display: inline-flex; align-items: center; min-height: 36px; margin: 0; font-size: 10px; color: var(--accent); }
html[data-surface] .index-page .card-save { min-width: 44px; height: 44px; min-height: 44px; }
html[data-surface] .index-page .card-seen { bottom: 6px; left: 6px; font-size: 8px; padding: 3px 5px; }
@media(max-width:800px) {
  html[data-surface] .index-page .catalog-controls { display: block; }
  html[data-surface] .index-page .filter-row { padding-bottom: 5px; }
}
@media(max-width:520px) {
  html[data-surface] .index-page .index-heading { padding: 17px 0 12px; gap: 10px; }
  html[data-surface] .index-page .index-heading h1 { font-size: 24px; letter-spacing: 1px; white-space: nowrap; }
  html[data-surface] .index-page .index-heading h1 small { font-size: 10px; margin-left: 4px; }
  html[data-surface] .index-page .search-row { display: flex; gap: 12px; }
  html[data-surface] .index-page .search-field { flex: 1; min-width: 0; gap: 7px; }
  html[data-surface] .index-page .search-field input { font-size: 12px; min-height: 42px; }
  html[data-surface] .index-page .search-field svg { width: 15px; flex-shrink: 0; }
  html[data-surface] .index-page .catalog-room-label { flex: 0 0 88px; max-width: 88px; }
  html[data-surface] .index-page .catalog-select { width: 100%; min-height: 42px; font-size: 11px; padding: 8px 0; }
  html[data-surface] .index-page .filter-row { gap: 5px; padding-bottom: 5px; flex-wrap: nowrap; justify-content: space-between; }
  html[data-surface] .index-page .filter-chip { min-height: 38px; font-size: 10px; padding: 7px 10px; }
  html[data-surface] .index-page .results-summary { min-height: 33px; padding: 11px 0 14px; font-size: 9px; }
  html[data-surface] .index-page .presentation-wall { gap: 27px; }
  html[data-surface] .index-page .wall-chapter-group { gap: 27px; }
  html[data-surface] .index-page .wall-chapter { padding-top: 18px; margin-bottom: -9px; gap: 10px; }
  html[data-surface] .index-page .wall-chapter h2 { font-size: 19px; }
  html[data-surface] .index-page .wall-row { gap: 14px; }
  html[data-surface] .index-page .wall-row:has(> .art-card:only-child .portrait) { max-width: min(var(--row-max),calc(48svh * var(--row-ratio))); margin-left: auto; margin-right: auto; }
  html[data-surface] .index-page .art-card h3 { font-size: 18px; }
  html[data-surface] .index-page .art-card small { font-size: 10px; margin-top: 3px; }
  html[data-surface] .index-page .art-card .card-copy { margin-top: 9px; }
  html[data-surface] .index-page .card-links { gap: 13px; margin-top: 1px; }
  html[data-surface] .index-page .card-explore,
  html[data-surface] .index-page .card-compare { font-size: 10px; min-height: 34px; }
}
html[data-surface] .index-page input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
@media(max-width:520px) {
  html[data-surface] .index-page .search-field input { font-size: 16px; }
}
