:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --surface-soft: #fff2dc;
  --text: #1f2933;
  --muted: #64748b;
  --line: #eadbc5;
  --primary: #a33b17;
  --primary-dark: #7f2d12;
  --accent: #157a6e;
  --shadow: 0 18px 45px rgba(79, 45, 22, 0.12);
  --site-font-family: "Temples Telugu Local", "Nirmala UI", "Gautami", "Noto Sans Telugu", system-ui, sans-serif;
  --heading-font-family: var(--site-font-family);
}

@font-face {
  font-family: "Temples Telugu Local";
  src: local("Nirmala UI"), local("Gautami"), local("Noto Sans Telugu"), local("Noto Sans Telugu UI");
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--site-font-family);
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tv-icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.skip-link:focus {
  z-index: 99;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--surface);
  clip: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 20, 42, 0.92);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
}

.site-description {
  margin: 2px 0 0;
  color: #f5b942;
  font-size: 0.88rem;
  line-height: 1.4;
}

.custom-logo {
  max-height: 58px;
  width: auto;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: block;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  padding: 9px 12px;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background: rgba(245, 185, 66, 0.12);
  color: #f5b942;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  min-height: 470px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(28, 24, 20, 0.78), rgba(28, 24, 20, 0.34)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Crect width='1600' height='900' fill='%23c9793c'/%3E%3Cpath d='M0 650h1600v250H0z' fill='%2398542a'/%3E%3Cpath d='M330 650V350h115v300zm150 0V250h140v400zm180 0V150h180v500zm230 0V275h140v375zm175 0V390h115v260z' fill='%23f3d2a4'/%3E%3Cpath d='M300 350h940l-470-230z' fill='%23893e22'/%3E%3Ccircle cx='1260' cy='190' r='80' fill='%23ffd88a'/%3E%3Cpath d='M0 735c210-75 410-90 660-30 320 76 560 10 940-80v275H0z' fill='%23734324' opacity='.55'/%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
}

.home-main {
  padding-top: 0;
}

.hero-elegant {
  position: relative;
  min-height: 650px;
  margin-top: -76px;
  padding-top: 76px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 17, 34, 0.92) 0%, rgba(8, 17, 34, 0.72) 38%, rgba(8, 17, 34, 0.26) 72%),
    url("../hero-temple.png");
  background-size: cover;
  background-position: center;
}

.hero-elegant::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 56px;
  background: var(--bg);
  clip-path: polygon(0 35%, 6% 52%, 13% 42%, 22% 62%, 31% 42%, 42% 58%, 53% 38%, 64% 55%, 73% 35%, 83% 58%, 92% 44%, 100% 60%, 100% 100%, 0 100%);
}

.hero-elegant .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  align-items: center;
}

.hero-elegant .hero-copy {
  max-width: 680px;
  padding: 90px 0 120px;
}

.hero-elegant .eyebrow {
  color: #f5b942;
  letter-spacing: 0;
}

.hero-elegant h1 {
  font-family: var(--heading-font-family);
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  letter-spacing: 0;
  line-height: 0.98;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.hero-elegant h1 span {
  color: #f5ca45;
}

.hero-search-card {
  max-width: 650px;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 8px;
}

.search-icon {
  display: grid;
  width: 38px;
  place-items: center;
  color: var(--muted);
}

.hero-search-card input,
.hero-search-card select {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

.hero-search-card input {
  flex: 1.4;
}

.hero-search-card select {
  min-width: 150px;
  border-left: 1px solid var(--line);
}

.hero-search-card button {
  min-width: 120px;
  background: #f4a300;
  color: #2a1903;
}

.hero-search-card button:hover {
  background: #ffc247;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  color: #fff;
}

.hero-stats div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  border-left: 1px solid rgba(245, 185, 66, 0.44);
  padding-left: 14px;
}

.hero-stats .tv-icon {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  color: #f5b942;
}

.hero-stats strong {
  display: block;
  font-size: 1.2rem;
}

.hero-stats span {
  display: block;
  color: #f5dca3;
  font-size: 0.9rem;
}

.journey-card {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  padding: 18px;
}

.journey-card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.journey-card a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  border-radius: 10px;
  color: var(--text);
  padding: 12px 6px;
}

.journey-card a + a {
  border-top: 1px solid var(--line);
}

.journey-card a:hover {
  background: #fff7eb;
  text-decoration: none;
}

.journey-card strong,
.journey-card small {
  display: block;
  grid-column: 2;
}

.journey-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-icon {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff0d6;
  color: #e46f12;
  font-weight: 800;
}

.mini-icon .tv-icon {
  width: 23px;
  height: 23px;
}

.mini-icon.green {
  background: #ddf8ed;
  color: #0f8f66;
}

.mini-icon.gold {
  background: #fff4c7;
  color: #d89600;
}

.mini-icon.red {
  background: #ffe7e7;
  color: #d92727;
}

.home-category-band {
  padding: 8px 0 24px;
}

.ornate-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  text-align: center;
}

.ornate-heading h2 {
  margin: 0;
  color: #4b2618;
  font-family: var(--heading-font-family);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.ornate-heading span {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d79a2b, transparent);
}

.category-scroll {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 14px;
}

.category-card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(79, 45, 22, 0.14);
  color: var(--text);
  text-align: center;
  padding: 14px;
}

.category-card:hover {
  transform: translateY(-2px);
  color: var(--primary-dark);
  text-decoration: none;
}

.category-art {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 35%, #fff8e7 0 24%, transparent 25%),
    linear-gradient(135deg, #f7c15f, #b64b1d);
  position: relative;
}

.category-art::before {
  content: none;
}

.category-art .tv-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  color: #7d3219;
  filter: drop-shadow(0 3px 8px rgba(255, 255, 255, 0.54));
}

.category-art.mountain {
  background: linear-gradient(135deg, #c4efb8, #43a047);
}

.category-art.sun {
  background: linear-gradient(135deg, #ffdf80, #fa6464 58%, #3ba7d7);
}

.home-states-section {
  padding: 0 0 32px;
}

.premium-state-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.premium-state-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(79, 45, 22, 0.14);
  color: var(--text);
  min-height: 198px;
}

.premium-state-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.state-photo {
  display: block;
  height: 120px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(91, 39, 15, 0.3)),
    linear-gradient(135deg, #79c7ed, #f7bc65);
  position: relative;
}

.state-photo::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 88px;
  height: 88px;
  background: #9f471e;
  clip-path: polygon(50% 0, 64% 18%, 64% 32%, 78% 32%, 78% 100%, 22% 100%, 22% 32%, 36% 32%, 36% 18%);
}

.state-tone-2 .state-photo {
  background: linear-gradient(135deg, #cfe9ff, #d89b3f);
}

.state-tone-3 .state-photo {
  background: linear-gradient(135deg, #b9e5d8, #efc16f);
}

.state-tone-4 .state-photo {
  background: linear-gradient(135deg, #f4b39f, #80391d);
}

.state-tone-5 .state-photo {
  background: linear-gradient(135deg, #76c8ff, #51b28b);
}

.state-tone-6 .state-photo {
  background: linear-gradient(135deg, #d4e8ff, #f6b23e);
}

.state-info {
  display: block;
  padding: 13px 14px;
}

.state-info strong,
.state-info small {
  display: block;
}

.state-info small {
  color: var(--muted);
}

.spiritual-strip {
  background:
    radial-gradient(circle at 88% 50%, rgba(255, 178, 66, 0.32), transparent 24%),
    linear-gradient(90deg, #04264d, #063d70);
  color: #fff;
  padding: 22px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.strip-grid div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.strip-grid span {
  grid-row: 1 / span 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 185, 66, 0.8);
  border-radius: 50%;
  color: #f5b942;
  font-size: 1.4rem;
}

.strip-grid span .tv-icon {
  width: 28px;
  height: 28px;
}

.strip-grid strong,
.strip-grid small {
  display: block;
}

.strip-grid small {
  color: #dbeafe;
}

.latest-temples {
  padding-top: 38px;
}

.hero-inner {
  width: 100%;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffe0a7;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.18;
}

.hero p {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.hero-search,
.search-form {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.hero-search input,
.search-field {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
}

.hero-search button,
.search-submit,
button,
input[type="submit"] {
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 13px 18px;
}

.hero-search button:hover,
.search-submit:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
}

.quick-links {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.quick-grid a {
  min-height: 82px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.quick-grid a:hover {
  background: var(--surface-soft);
  color: var(--primary-dark);
  text-decoration: none;
}

.featured-section,
.site-main {
  padding: 42px 0;
}

.section-heading,
.archive-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

h1,
h2,
h3,
h4 {
  color: #17202a;
  line-height: 1.35;
}

.section-heading h2,
.archive-header h1 {
  margin: 0;
  font-size: 1.85rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card,
.post-card-row,
.single-article,
.widget,
.no-results,
.not-found {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-card {
  overflow: hidden;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-image,
.related-image,
.row-thumb {
  background: linear-gradient(135deg, #fff4df, #f3c879);
}

.card-placeholder,
.related-placeholder,
.row-placeholder {
  display: grid;
  place-items: center;
  color: #9f471e;
}

.card-placeholder {
  aspect-ratio: 16 / 10;
}

.card-placeholder .tv-icon,
.related-placeholder .tv-icon,
.row-placeholder .tv-icon {
  width: 52px;
  height: 52px;
  opacity: 0.86;
}

.card-body,
.info-card > p,
.info-card > h3 {
  padding: 18px;
}

.card-body h3,
.info-card h3 {
  margin: 6px 0 8px;
  font-size: 1.14rem;
}

.card-body p,
.info-card p,
.row-content p {
  color: var(--muted);
  margin: 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.layout-left-sidebar .sidebar {
  order: -1;
}

.layout-no-sidebar {
  grid-template-columns: minmax(0, 940px);
  justify-content: center;
}

.layout-no-sidebar .posts-list {
  width: 100%;
}

.archive-filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.7fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(79, 45, 22, 0.08);
  padding: 18px;
}

.archive-filter-panel h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.archive-filter-panel p {
  margin: 0;
  color: var(--muted);
}

.archive-filter-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
  gap: 10px;
}

.archive-filter-panel input,
.archive-filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
}

.archive-filter-panel button {
  min-height: 44px;
  white-space: nowrap;
}

.posts-list {
  display: grid;
  gap: 18px;
}

.post-card-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 210px;
  overflow: hidden;
}

.row-thumb img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.row-placeholder {
  min-height: 210px;
}

.row-content {
  padding: 22px;
}

.row-content h2 {
  margin: 5px 0 8px;
  font-size: 1.35rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.temple-directory {
  padding: 42px 0 0;
}

.dark {
  color: var(--primary);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.state-link {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  padding: 16px;
}

.state-link:hover {
  background: var(--surface-soft);
  color: var(--primary-dark);
  text-decoration: none;
}

.state-link span {
  font-weight: 800;
}

.state-link small,
.temple-location {
  color: var(--muted);
  font-size: 0.88rem;
}

.home-state-grid {
  margin-bottom: 42px;
}

.temple-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 28px;
}

.temple-facts div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px;
}

.temple-facts strong {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.read-more {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 800;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.widget {
  padding: 20px;
}

.widget-title {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.widget ul {
  margin: 0;
  padding-left: 20px;
}

.widget li + li {
  margin-top: 8px;
}

.single-article,
.page-wrap .single-article {
  padding: clamp(22px, 4vw, 42px);
}

.entry-header h1 {
  margin: 8px 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.25;
}

.featured-image {
  margin: 0 0 28px;
}

.featured-image img {
  width: 100%;
  border-radius: 8px;
}

.entry-content {
  font-size: 1.05rem;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.8em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.entry-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 24px 0;
  padding: 12px 18px;
  background: #f0fbf8;
}

.tags {
  margin-top: 28px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.page-wrap {
  max-width: 920px;
}

.no-results,
.not-found {
  padding: 36px;
}

.site-footer {
  background: #251f1a;
  color: #f8ead9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  padding: 40px 0;
}

.site-footer h2,
.site-footer a {
  color: #fff7e8;
}

.site-footer p {
  color: #ead7c1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px 16px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.pagination .nav-links {
  justify-content: center;
}

.page-numbers {
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 8px 10px;
}

.page-numbers.current {
  background: var(--primary);
  color: #fff;
}

.detail-main {
  background:
    radial-gradient(circle at 12% 4%, rgba(245, 185, 66, 0.12), transparent 28%),
    linear-gradient(180deg, #fffaf2, #fff);
  padding: 24px 0 52px;
}

.detail-shell {
  border: 1px solid rgba(234, 219, 197, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 80px rgba(79, 45, 22, 0.14);
  overflow: hidden;
  padding: clamp(16px, 3vw, 28px);
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.detail-breadcrumb a,
.detail-breadcrumb strong {
  color: var(--text);
}

.back-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  min-width: 0;
}

.detail-grid-post {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

.detail-gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.detail-left,
.detail-side,
.detail-content-panel,
.side-panel,
.visit-card,
.related-card {
  min-width: 0;
}

.detail-featured {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 16px;
  background: #d9e6ef;
}

.detail-featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-detail-featured {
  margin-bottom: 22px;
}

.detail-badge,
.photo-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-badge .tv-icon,
.photo-pill .tv-icon,
.detail-meta-line .tv-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.detail-badge {
  top: 18px;
  left: 18px;
  background: #ffc247;
  color: #5b2a07;
  padding: 8px 12px;
}

.photo-pill {
  right: 14px;
  bottom: 14px;
  background: rgba(23, 32, 42, 0.82);
  color: #fff;
  padding: 10px 13px;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.thumb-strip span {
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-soft);
}

.thumb-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-title-block {
  padding: 18px 0 8px;
}

.detail-title-block h1 {
  margin: 0 0 8px;
  font-family: var(--heading-font-family);
  font-size: clamp(1.55rem, 3vw, var(--single-title-size, 38px));
  color: var(--single-title-color, #17202a);
  letter-spacing: 0;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.detail-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-meta-line .tv-icon {
  color: #f4a300;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.detail-tags span {
  border-radius: 999px;
  background: #edf9f0;
  color: #197245;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 11px;
}

.detail-tags span:first-child {
  background: #ffe9ef;
  color: #b52758;
}

.detail-tags span:nth-child(2) {
  background: #fff1d6;
  color: #9b5800;
}

.detail-title-block p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(79, 45, 22, 0.08);
  margin: 16px 0 18px;
}

.fact-row div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  padding: 16px;
}

.fact-row div + div {
  border-left: 1px solid var(--line);
}

.fact-row .tv-icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff4df;
  color: #f29b16;
  padding: 10px;
}

.fact-row strong,
.fact-row small {
  display: block;
}

.fact-row small {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.post-fact-row {
  grid-template-columns: repeat(3, 1fr);
}

.detail-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--surface);
  padding: 0 10px;
}

.detail-tabs a {
  flex: 0 0 auto;
  border-bottom: 3px solid transparent;
  color: var(--text);
  font-weight: 700;
  padding: 14px 16px 11px;
}

.detail-tabs a:first-child {
  border-color: #1775ff;
  color: #1775ff;
}

.detail-tabs a:hover {
  color: #1775ff;
  text-decoration: none;
}

.detail-content-panel {
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  background: var(--single-panel-bg, var(--surface));
  color: var(--single-body-color, var(--text));
  font-size: var(--single-body-size, 17px);
  overflow-wrap: anywhere;
  padding: clamp(18px, 3vw, 28px);
}

.detail-content-panel.entry-content {
  color: var(--single-body-color, var(--text));
  font-size: var(--single-body-size, 17px);
}

.detail-side {
  display: grid;
  gap: 18px;
}

.visit-card,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(79, 45, 22, 0.08);
}

.visit-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background:
    linear-gradient(90deg, #fff8e9, rgba(255, 248, 233, 0.86)),
    radial-gradient(circle at 95% 20%, rgba(245, 185, 66, 0.3), transparent 32%);
  padding: 18px;
}

.visit-card > .tv-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff0d6;
  color: #f29b16;
  padding: 13px;
}

.visit-card strong,
.visit-card b,
.visit-card small {
  display: block;
}

.visit-card small {
  color: var(--muted);
}

.side-panel {
  padding: 20px;
}

.side-panel h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.side-panel p {
  color: var(--muted);
  margin: 0;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: grid;
  grid-template-columns: 28px 90px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.info-list .tv-icon {
  width: 22px;
  height: 22px;
  color: #f29b16;
}

.info-list strong {
  font-size: 0.86rem;
}

.info-list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.related-section {
  margin-top: 34px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(79, 45, 22, 0.1);
  color: var(--text);
  min-height: 280px;
}

.related-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.related-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.related-image,
.related-placeholder {
  display: block;
  aspect-ratio: 16 / 10;
}

.related-placeholder {
  display: grid;
  place-items: center;
}

.related-body {
  display: block;
  padding: 16px;
}

.related-body strong {
  display: block;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.related-body small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    display: block;
    padding: 8px;
  }

  .main-navigation a {
    color: var(--text);
  }

  .hero-elegant {
    margin-top: -68px;
    padding-top: 68px;
  }

  .hero-elegant .hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-elegant .hero-copy {
    padding: 70px 0 0;
  }

  .journey-card {
    margin-bottom: 86px;
  }

  .hero-stats,
  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-scroll {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .premium-state-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-layout,
  .footer-grid,
  .archive-filter-panel,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .archive-filter-panel form {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .state-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-row,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-row div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    min-height: 68px;
  }

  .main-navigation {
    top: 68px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-copy {
    padding: 50px 0;
  }

  .hero-search,
  .search-form {
    flex-direction: column;
  }

  .hero-search-card select {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-search-card button {
    width: 100%;
  }

  .hero-stats,
  .strip-grid,
  .category-scroll,
  .archive-filter-panel form {
    grid-template-columns: 1fr;
  }

  .category-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-stats,
  .strip-grid,
  .premium-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card {
    min-height: 118px;
    padding: 12px 8px;
  }

  .category-art {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .category-art .tv-icon {
    width: 34px;
    height: 34px;
  }

  .hero-stats div {
    grid-template-columns: 28px minmax(0, 1fr);
    padding-left: 10px;
  }

  .hero-stats .tv-icon {
    width: 25px;
    height: 25px;
  }

  .hero-stats strong {
    font-size: 1rem;
  }

  .hero-stats span,
  .category-card strong,
  .strip-grid small,
  .state-info small {
    font-size: 0.78rem;
  }

  .strip-grid div {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .strip-grid span {
    width: 42px;
    height: 42px;
  }

  .strip-grid span .tv-icon {
    width: 22px;
    height: 22px;
  }

  .state-photo {
    height: 92px;
  }

  .premium-state-card {
    min-height: 158px;
  }

  .quick-grid,
  .card-grid,
  .post-card-row,
  .state-grid,
  .temple-facts,
  .fact-row,
  .related-grid,
  .thumb-strip {
    grid-template-columns: 1fr;
  }

  .detail-shell {
    border-radius: 18px;
    padding: 12px;
    width: min(100% - 16px, 1120px);
  }

  .detail-main .container {
    width: min(100% - 12px, 1120px);
  }

  .detail-featured,
  .detail-featured img {
    border-radius: 12px;
  }

  .detail-badge,
  .photo-pill {
    max-width: calc(100% - 24px);
  }

  .info-list li {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .info-list small {
    grid-column: 2;
  }

  .section-heading,
  .archive-header,
  .nav-links {
    align-items: start;
    flex-direction: column;
  }

  .row-thumb img {
    min-height: 190px;
  }

  .featured-section,
  .site-main {
    padding: 28px 0;
  }
}
