/* Temples directory: a ruled photo index and pill filters on the site's tokens. */
.temple-directory { padding-block: clamp(2.5rem, 4.5vw, 4rem); border-bottom: 1px solid var(--border); background: var(--subtle); }
.temple-directory-intro { margin-bottom: 1rem; }
.temple-directory-intro h2 { max-width: 24ch; }
.temple-directory-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.temple-filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.temple-filter { display: inline-flex; align-items: center; justify-content: center; min-height: 2.15rem; padding: .35rem .85rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--fg-2); font: 500 .8125rem/1.2 var(--sans); cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.temple-filter:hover { border-color: var(--gold-ink); color: var(--deep); }
.temple-filter[aria-pressed="true"] { border-color: var(--deep); background: var(--deep); color: var(--on-deep); font-weight: 600; }
.temple-result-count { color: var(--fg-3); font-size: .8125rem; }
.temple-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 2.75rem); align-items: start; }
.temple-card { min-width: 0; }
.temple-card-photo { overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--gold); border-radius: var(--r-md); background: var(--subtle-2); }
.temple-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s var(--ease); }
.temple-card[aria-labelledby="place-padmavathi"] .temple-card-photo img { object-position: center 33%; }
.temple-card-photo-note { margin-top: .45rem; color: var(--fg-3); font-size: .8125rem; line-height: 1.45; }
.temple-card-content { padding-top: .85rem; }
.temple-card-meta { color: var(--gold-ink); font-size: .8125rem; font-weight: 600; }
.temple-card h3 { margin-top: .3rem; font: 600 1.45rem/1.2 var(--display); letter-spacing: 0; color: var(--deep); text-wrap: pretty; }
.temple-card-description { margin-top: .45rem; color: var(--fg-2); font-size: .875rem; line-height: 1.55; }
.temple-card-planning { margin-top: .6rem; color: var(--fg-3); font-size: .8125rem; line-height: 1.5; }
.temple-card-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .7rem; }
.temple-card-links a { display: inline-flex; align-items: center; gap: .3rem; color: var(--fg); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.temple-card-links a:hover { color: var(--accent); }
.temple-card-links .ico { width: .85rem; height: .85rem; }
.temple-directory-note { max-width: 60rem; margin-top: 1.5rem; color: var(--fg-3); font-size: .8125rem; line-height: 1.55; }
.temple-directory-note a { color: var(--fg-2); }
.temple-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1024px) {
  .temple-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .temple-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .temple-card, .temple-card-photo img, .temple-filter { transition: none; }
}
