/* Temple Darshan Circuit: homepage section, directory and temple guides. Everything is scoped under .tc-* */
.tc-sec { padding: 72px 0; background: linear-gradient(180deg, #fff9ef 0%, #fbf2e0 100%); position: relative; }
.tc-sec::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold, #d9a64f), transparent); opacity: .7; }
.tc-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.tc-head { margin-bottom: 30px; padding-left: 16px; border-left: 4px solid var(--saffron, #c96d24); }
.tc-label { display: inline-block; margin-bottom: 8px; padding: 4px 14px; color: var(--maroon, #7d2727); background: #fdf0dc; border: 1px solid rgba(201,109,36,.3); border-radius: 99px; font-size: .82rem; font-weight: 800; }
.tc-head h2 { margin: 0; color: var(--maroon-900, #481014); font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.35 "Tiro Devanagari Sanskrit", serif; }
.tc-head p { margin: 6px 0 0; color: var(--muted, #75645f); max-width: 760px; }

.tc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 28px; padding: 0; list-style: none; }
.tc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-grid > li { display: flex; min-width: 0; }
.tc-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; color: var(--ink, #2f2220); background: #fff; border: 1px solid rgba(125,39,39,.14); border-radius: 20px; box-shadow: 0 4px 16px rgba(64,22,17,.06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tc-card:hover, .tc-card:focus-visible { transform: translateY(-5px); border-color: rgba(201,109,36,.55); box-shadow: 0 16px 34px rgba(64,22,17,.14); }
.tc-card:focus-visible { outline: 3px solid var(--saffron-bright, #e38c36); outline-offset: 2px; }
.tc-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f6ead2; border-bottom: 3px solid var(--gold, #d9a64f); }
.tc-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tc-card:hover .tc-media img { transform: scale(1.05); }
.tc-ph { display: grid; place-items: center; align-content: center; gap: 4px; width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, #fff7e4 0%, #f3e2bd 100%); }
.tc-ph svg { width: 58%; max-width: 190px; height: auto; }
.tc-ph-note { padding: 2px 12px; color: #8a5a14; background: rgba(255,255,255,.7); border-radius: 99px; font-size: .72rem; font-weight: 800; }
.tc-cbody { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.tc-tag { align-self: flex-start; padding: 2px 10px; color: #fff; background: var(--maroon, #7d2727); border-radius: 99px; font-size: .7rem; font-weight: 800; }
.tc-card h3 { margin: 4px 0 0; color: var(--maroon-900, #481014); font: 700 1.2rem/1.45 "Tiro Devanagari Sanskrit", serif; overflow-wrap: anywhere; }
.tc-place { color: var(--saffron, #c96d24); font-size: .86rem; font-weight: 800; line-height: 1.5; }
.tc-dist { align-self: flex-start; padding: 2px 10px; color: var(--maroon, #7d2727); background: #fdf0dc; border-radius: 99px; font-size: .76rem; font-weight: 800; }
.tc-desc { color: var(--muted, #75645f); font-size: .9rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tc-go { margin-top: auto; padding-top: 10px; color: var(--saffron, #c96d24); font-size: .88rem; font-weight: 800; }
.tc-cta-row { margin-top: 8px; text-align: center; }

.tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 28px; color: #fff; background: linear-gradient(135deg, var(--saffron, #c96d24), var(--maroon, #7d2727)); border: 1px solid transparent; border-radius: 99px; font-weight: 800; box-shadow: 0 12px 24px rgba(169,75,18,.22); transition: transform .2s ease, box-shadow .2s ease; text-align: center; }
.tc-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(169,75,18,.28); }
.tc-btn:focus-visible { outline: 3px solid var(--saffron-bright, #e38c36); outline-offset: 3px; }
.tc-btn.tc-btn-light { color: var(--maroon-900, #481014); background: #fff; border-color: rgba(125,39,39,.2); box-shadow: none; }
.tc-btn.tc-btn-light:hover { background: #fff8ed; border-color: rgba(201,109,36,.5); }

/* directory + detail pages */
.tc-hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 6px; padding: 0; list-style: none; }
.tc-hero-facts li { padding: 8px 18px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 99px; font-size: .92rem; font-weight: 800; }
.tc-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.tc-body { padding: 56px 0 72px; background: #fbf5ea; }
.tc-h2 { margin: 38px 0 14px; color: var(--maroon-900, #481014); font: 700 1.5rem/1.4 "Tiro Devanagari Sanskrit", serif; }
.tc-lead { margin: -6px 0 16px; color: var(--muted, #75645f); }
.tc-block { margin: 0 0 22px; padding: 26px; background: #fff; border: 1px solid rgba(125,39,39,.12); border-radius: 18px; }
.tc-block h2 { margin: 0 0 12px; color: var(--maroon-900, #481014); font: 700 1.4rem/1.45 "Tiro Devanagari Sanskrit", serif; }
.tc-block p { margin: 0 0 12px; }
.tc-block p:last-child { margin-bottom: 0; }
.tc-list { margin: 8px 0 0; padding-left: 20px; }
.tc-list li { margin-bottom: 6px; }
.tc-note { padding: 12px 16px; color: #5b3a1a; background: #fff6e3; border-left: 4px solid var(--gold, #d9a64f); border-radius: 0 12px 12px 0; font-size: .9rem; }
.tc-meta { color: var(--muted, #75645f); font-size: .84rem; }
.tc-kind { color: var(--muted, #75645f); font-size: .84rem; }
.tc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tc-back { justify-content: center; margin: 26px 0; }
.tc-disclaimer { margin: 18px 0 0; text-align: center; color: var(--muted, #75645f); font-size: .86rem; }

.tc-detail-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 22px; }
.tc-photo { margin: 0; overflow: hidden; background: #f6ead2; border: 1px solid rgba(125,39,39,.14); border-bottom: 4px solid var(--gold, #d9a64f); border-radius: 22px; box-shadow: 0 14px 34px rgba(64,22,17,.12); }
.tc-photo img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; margin-inline: auto; }
.tc-photo .tc-ph { min-height: 260px; aspect-ratio: 16 / 9; }
.tc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tc-stat { padding: 18px; background: #fff; border: 1px solid rgba(125,39,39,.14); border-top: 4px solid var(--saffron, #c96d24); border-radius: 16px; }
.tc-stat small { display: block; color: var(--muted, #75645f); font-size: .8rem; font-weight: 800; }
.tc-stat strong { display: block; margin: 2px 0; color: var(--maroon-900, #481014); font-size: 1.15rem; line-height: 1.45; overflow-wrap: anywhere; }
.tc-stat span { color: var(--muted, #75645f); font-size: .8rem; line-height: 1.5; }

.tc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(125,39,39,.14); border-radius: 14px; }
.tc-table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; font-size: .94rem; }
.tc-table th, .tc-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(125,39,39,.1); }
.tc-table thead th { color: #fff; background: var(--maroon, #7d2727); font-weight: 800; }
.tc-table tbody th { color: var(--maroon-900, #481014); font-weight: 800; }
.tc-table tbody th a { color: inherit; text-decoration: underline; text-decoration-color: rgba(201,109,36,.5); }
.tc-table tbody tr:last-child th, .tc-table tbody tr:last-child td { border-bottom: 0; }
.tc-table-kv { min-width: 0; }
.tc-table-kv tbody th { width: 30%; background: #fdf6e8; }

.tc-faq details { margin-bottom: 10px; background: #fff; border: 1px solid rgba(125,39,39,.14); border-radius: 14px; }
.tc-faq summary { position: relative; padding: 14px 48px 14px 18px; color: var(--maroon-900, #481014); font-weight: 800; cursor: pointer; list-style: none; }
.tc-faq summary::-webkit-details-marker { display: none; }
.tc-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; color: #fff; background: var(--maroon, #7d2727); border-radius: 50%; line-height: 1; }
.tc-faq details[open] summary::after { content: "–"; }
.tc-faq details > div { padding: 0 18px 16px; color: #4a3a36; }
.tc-faq summary:focus-visible { outline: 3px solid var(--saffron-bright, #e38c36); outline-offset: 2px; border-radius: 14px; }
.tc-sources a { color: var(--saffron, #c96d24); font-weight: 700; overflow-wrap: anywhere; }
.tc-404 { text-align: center; padding: 40px 0; }
.tc-404 h1 { margin: 0 0 10px; color: var(--maroon-900, #481014); font: 700 1.9rem/1.4 "Tiro Devanagari Sanskrit", serif; }

@media (max-width: 1100px) { .tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .tc-grid, .tc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tc-sec { padding: 52px 0; }
  .tc-wrap { width: min(1180px, calc(100% - 32px)); }
  .tc-grid, .tc-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .tc-stats { grid-template-columns: 1fr; }
  .tc-block { padding: 20px 16px; }
  .tc-btn { width: 100%; }
  .tc-table-kv tbody th { width: 36%; }
}
@media (prefers-reduced-motion: reduce) { .tc-card, .tc-media img, .tc-btn { transition: none; } .tc-card:hover { transform: none; } }

/* long-form article additions (content expansion) */
.tc-block h3 { margin: 16px 0 8px; color: var(--maroon-800, #5a1a1a); font: 700 1.1rem/1.5 "Tiro Devanagari Sanskrit", serif; }
.tc-block h2 + h3 { margin-top: 4px; }
.tc-block p a, .tc-block .tc-list a { color: var(--maroon-700, #7d2727); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tc-block p a:hover, .tc-block .tc-list a:hover { color: var(--gold-700, #a9761f); }
.tc-block ol.tc-list { padding-left: 22px; }
.tc-links-after { margin: -6px 0 22px; }
