/* Public entity index — component styling belongs to template, not Core/theme. */
.hst-entity-index { max-width: 1200px; width: min(1200px, calc(100% - 2rem)); min-width: 0; margin: 0 auto clamp(2.5rem, 6vw, 5rem); }
.hst-entity-index, .hst-entity-index * { box-sizing: border-box; }
.hst-entity-index__breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.4rem 0 2.6rem; font-size: .8rem; color: var(--hst-muted, inherit); }
.hst-entity-index__breadcrumbs a { color: inherit; text-underline-offset: .25em; }
.hst-entity-index__header { display: flex; gap: 1.8rem; justify-content: space-between; align-items: end; margin-bottom: clamp(1.65rem, 3vw, 2.65rem); }
.hst-entity-index__intro { min-width: 0; }
.hst-entity-index__intro .eyebrow { margin: 0 0 .6rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--hst-accent, currentColor); }
.hst-entity-index__intro h1 { font-size: clamp(2.1rem, 4.9vw, 4.2rem); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 .9rem; max-width: 21ch; text-wrap: balance; }
.hst-entity-index__intro>p:last-child { margin: 0; line-height: 1.65; font-size: clamp(.96rem, 1.3vw, 1.08rem); color: var(--hst-muted, inherit); max-width: 67ch; }
.hst-entity-index__count { display: flex; flex-direction: column; align-items: end; min-width: max-content; padding: .6rem 0 .3rem 1.5rem; border-left: 1px solid var(--hst-line, currentColor); color: var(--hst-muted, inherit); }
.hst-entity-index__count strong { font: 400 clamp(2.1rem, 3vw, 3rem)/1.05 Georgia, serif; color: var(--hst-text, inherit); }
.hst-entity-index__count span { font: 600 .72rem/1.5 system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.hst-entity-index__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.3rem); align-items: stretch; }
.hst-entity-index__item { min-width: 0; }
.hst-entity-index__card { min-width: 0; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--hst-line, currentColor); border-radius: 14px; color: inherit; background: var(--hst-surface, transparent); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.hst-entity-index__card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.12); border-color: var(--hst-accent, currentColor); }
.hst-entity-index__meta { margin: 0; display: grid; gap: .35rem; }
.hst-entity-index__meta > div { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: .4rem .65rem; align-items: baseline; }
.hst-entity-index__meta dt { margin: 0; font: 700 .68rem/1.35 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--hst-muted, inherit); }
.hst-entity-index__meta dd { margin: 0; font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }
.hst-entity-index__relations { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--hst-muted, inherit); }
.hst-entity-index__relations-label { display: block; font: 700 .65rem/1.35 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--hst-accent, inherit); margin-bottom: .2rem; }
.hst-entity-index__relations a { color: inherit; text-underline-offset: .2em; }
.hst-entity-index__visual { position: relative; overflow: hidden; display: grid; place-items: center; width: 100%; aspect-ratio: 6/5; color: var(--hst-muted, inherit); background: color-mix(in srgb, var(--hst-accent, #a68a70) 10%, var(--hst-surface, #222)); border-bottom: 1px solid var(--hst-line, currentColor); }
.hst-entity-index__visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; transition: transform .45s ease; }
.hst-entity-index__card:hover .hst-entity-index__visual img { transform: scale(1.035); }
.hst-entity-index__visual.is-monogram::after { content: ''; position: absolute; inset: 13px; border: 1px solid color-mix(in srgb, var(--hst-line, currentColor) 75%, transparent); border-radius: 50% 50% 1rem 1rem; pointer-events: none; }
.hst-entity-index__visual.is-monogram span { font: 400 clamp(2.6rem, 5vw, 4.2rem)/1 Georgia, serif; letter-spacing: -.05em; opacity: .66; user-select: none; }
.hst-entity-index__card-body { display: flex; flex: 1; flex-direction: column; gap: .65rem; padding: 1.1rem clamp(.85rem, 1.3vw, 1.25rem) 1.15rem; min-height: 0; }
.hst-entity-index__kind { font: 700 .65rem/1.4 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--hst-accent, inherit); margin: 0; }
.hst-entity-index__card-body h2 { font-size: clamp(1.2rem, 1.85vw, 1.56rem); line-height: 1.2; font-weight: 400; margin: -.1rem 0 0; letter-spacing: -.012em; text-wrap: balance; }
.hst-entity-index__teaser { margin: 0; color: var(--hst-muted, inherit); line-height: 1.58; font-size: .9rem; overflow-wrap: break-word; min-height: 4.7em; }
.hst-entity-index__teaser--empty { opacity: .7; }
.hst-entity-index__action { margin-top: auto; padding-top: .9rem; display: inline-flex; justify-content: space-between; gap: .7rem; align-items: center; font: 700 .8rem/1.4 system-ui, sans-serif; color: var(--hst-accent, inherit); text-decoration: none; }
.hst-entity-index__action:hover, .hst-entity-index__action:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.hst-entity-index__action:focus-visible { outline: 2px solid var(--hst-accent, currentColor); outline-offset: 3px; }
.hst-entity-index__action span { font-size: 1.13rem; transition: transform .18s ease; }
.hst-entity-index__card:hover .hst-entity-index__action span { transform: translate(2px, -2px); }
.hst-entity-index__footnote { margin: 2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--hst-line, currentColor); color: var(--hst-muted, inherit); font-size: .85rem; line-height: 1.65; }
@media (max-width: 1100px) { .hst-entity-index__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .hst-entity-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hst-entity-index__breadcrumbs { margin-bottom: 1.7rem; } }
@media (max-width: 540px) { .hst-entity-index { width: min(100%, calc(100% - 1.25rem)); } .hst-entity-index__header { gap: .6rem; align-items: start; } .hst-entity-index__count { padding-left: .75rem; } .hst-entity-index__grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; } .hst-entity-index__card { display: grid; grid-template-columns: minmax(0, 124px) minmax(0, 1fr); min-height: 160px; } .hst-entity-index__visual { aspect-ratio: auto; height: 100%; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--hst-line, currentColor); } .hst-entity-index__visual.is-monogram::after { inset: 9px; border-radius: 50% 50% .7rem .7rem; } .hst-entity-index__visual.is-monogram span { font-size: 2.6rem; } .hst-entity-index__card-body { padding: .9rem; gap: .4rem; } .hst-entity-index__card-body h2 { font-size: clamp(1.13rem, 4.5vw, 1.45rem); } .hst-entity-index__teaser { font-size: .8rem; line-height: 1.48; min-height: 0; } .hst-entity-index__action { padding-top: .5rem; } }
@media (max-width: 360px) { .hst-entity-index__card { grid-template-columns: 102px minmax(0, 1fr); } .hst-entity-index__teaser { font-size: .77rem; } }
@media (prefers-reduced-motion: reduce) { .hst-entity-index__card,.hst-entity-index__visual img,.hst-entity-index__action span { transition: none; } }
