* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --saffron: #e9963a;
  --saffron-dark: #c77e2a;
  --maroon: #7a1f1f;
  --cream: #fdf6ec;
  --ink: #2d2418;
  --muted: #7a6a55;
  --card: #ffffff;
  --shadow: 0 4px 14px rgba(45, 36, 24, 0.12);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

.hero {
  background: linear-gradient(135deg, var(--maroon) 0%, #b3452d 55%, var(--saffron-dark) 100%);
  color: #fff;
  padding: 48px 24px 56px;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.6rem;
  letter-spacing: 1px;
}

.site-title a {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}

.tagline {
  margin: 12px 0 24px;
  font-size: 1.05rem;
  opacity: 0.94;
}

.search-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.search-bar input {
  flex: 1 1 320px;
  padding: 12px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.cat-tab {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cat-tab:hover {
  background: rgba(255, 255, 255, 0.25);
}

.cat-tab.active {
  background: var(--saffron);
  border-color: var(--saffron);
}

.container {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 32px auto 56px;
  padding: 0 24px;
}

.sidebar {
  flex: 0 0 240px;
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
  box-shadow: var(--shadow);
}

.sidebar h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.filter-label {
  display: block;
  margin: 12px 0 4px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}

select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #e2d5c0;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
}

.btn-primary {
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  background: var(--saffron);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--saffron-dark);
}

.btn-secondary {
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid #e2d5c0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: #f3eadb;
}

.result-count {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.content {
  flex: 1;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat {
  background: var(--card);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.4rem;
  color: var(--maroon);
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

.temple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.temple-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.temple-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(45, 36, 24, 0.18);
}

.card-image {
  height: 170px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8dcc8, #d9c39a);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.temple-card:hover .card-image img {
  transform: scale(1.04);
}

.card-image.img-fallback {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 40%),
    linear-gradient(135deg, var(--maroon) 0%, #b3452d 55%, var(--saffron-dark) 100%);
}

.card-image.img-fallback::after {
  content: '\1F3D9';
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  opacity: 0.55;
}

.card-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cat-badge {
  text-transform: capitalize;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--maroon);
}

.cat-hindu { background: var(--saffron-dark); }
.cat-buddhist { background: #b3523a; }
.cat-jain { background: #7a6a55; }
.cat-sikh { background: #4d6b33; }
.cat-shinto { background: #c0392b; }
.cat-heritage { background: #5d5d8f; }

.temple-country {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.temple-card h3 {
  font-size: 1.1rem;
  color: var(--maroon);
  line-height: 1.3;
}

.temple-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.temple-rating {
  font-weight: 600;
  color: var(--saffron-dark);
}

.temple-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  background: var(--cream);
  border: 1px solid #e8dcc8;
  color: var(--maroon);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* Source type badges (Official / Government / Directory / Reference) */
.src-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  color: #fff;
  vertical-align: middle;
}

.src-official { background: #2e7d32; }
.src-government { background: #455a64; }
.src-directory { background: #8d6e63; }
.src-reference { background: #616161; }

/* Static (SEO) pages */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--maroon);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.static-page {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.static-page h1 {
  color: var(--maroon);
  font-size: 1.9rem;
  margin: 10px 0 6px;
}

.static-page .modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.static-page .modal-image {
  width: calc(100% + 64px);
  margin: -32px -32px 20px;
  height: 260px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.static-page .modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.static-page .modal-image.img-fallback {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 40%),
    linear-gradient(135deg, var(--maroon) 0%, #b3452d 55%, var(--saffron-dark) 100%);
}

.static-page .temple-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.static-page .facts {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 16px;
  margin-top: 16px;
}

.static-page .facts dt {
  font-weight: 600;
  color: var(--muted);
}

.static-page .facts dd {
  margin: 0;
}

.static-page .description {
  margin-top: 16px;
}

.static-page .website a {
  display: inline-block;
  margin: 12px 8px 12px 0;
  padding: 10px 18px;
  background: var(--saffron);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.static-page .website a:hover {
  background: var(--saffron-dark);
}

.sources {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e8dcc8;
}

.sources h3 {
  font-size: 1rem;
  color: var(--maroon);
  margin-bottom: 8px;
}

.sources ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sources li {
  font-size: 0.9rem;
}

.sources a {
  color: var(--maroon);
}

.sources .src-badge {
  margin-left: 6px;
}

.back-link {
  margin-top: 24px;
}

.back-link a {
  color: var(--maroon);
  font-weight: 600;
}

.static-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px 20px;
}

.static-list li {
  font-size: 0.95rem;
}

.static-list a {
  color: var(--maroon);
  text-decoration: none;
}

.static-list a:hover {
  text-decoration: underline;
}

.static-list .temple-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer p {
  margin: 4px 0;
}

.footer-links a {
  color: var(--maroon);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    flex: none;
    width: 100%;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* DivyaYatra brand + nav */
.brand {
  font-size: 3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 18px 0 4px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  transition: background 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--saffron);
  border-color: var(--saffron);
}

/* Card action buttons */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-mini {
  padding: 5px 10px;
  border: 1px solid #e2d5c0;
  border-radius: 8px;
  background: #fff;
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-mini:hover {
  background: #f3eadb;
}

.btn-plan {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

.btn-plan:hover {
  background: var(--saffron-dark);
}

.btn-remove:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast a {
  color: var(--saffron);
  font-weight: 700;
}

/* Journey planner */
.journey-container {
  flex-direction: column;
  max-width: 900px;
}

.journey-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.journey-tab {
  padding: 8px 18px;
  border: 1px solid #e2d5c0;
  border-radius: 999px;
  background: var(--card);
  color: var(--maroon);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.journey-tab:hover {
  background: #f3eadb;
}

.journey-tab.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

.journey-panel {
  display: none;
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.journey-panel.active {
  display: block;
}

.journey-panel h2 {
  color: var(--maroon);
  margin-bottom: 6px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}

.tool-select {
  flex: 1 1 260px;
}

.tool-arrow {
  font-size: 1.3rem;
  color: var(--muted);
}

.nearby-status {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.nearby-list,
.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nearby-item,
.plan-stop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid #f0e7d6;
}

.nearby-item:last-child,
.plan-stop:last-child {
  border-bottom: none;
}

.nearby-item .rank-main,
.plan-stop .rank-main {
  flex: 1;
  min-width: 0;
}

.nearby-item .rank-label,
.plan-stop .rank-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
}

.nearby-item .rank-label:hover,
.plan-stop .rank-label:hover {
  text-decoration: underline;
}

.nearby-dist,
.leg-dist {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.plan-num {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-actions {
  display: flex;
  gap: 4px;
}

.plan-actions .btn-mini {
  padding: 3px 8px;
}

.plan-total,
.route-summary {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: 10px;
  font-size: 0.95rem;
}

.plan-clear {
  margin-top: 12px;
  width: auto;
}

.route-output {
  margin-top: 10px;
}

.dist-result {
  margin-top: 6px;
  color: var(--ink);
}

/* Static page info sections */
.info-section {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e8dcc8;
}

.info-section h3 {
  font-size: 1.05rem;
  color: var(--maroon);
  margin-bottom: 8px;
}

.darshan-box {
  background: var(--cream);
  border: 1px solid #e8dcc8;
  border-radius: 10px;
  padding: 16px 18px;
}

.action-links {
  list-style: none;
  padding: 0;
  margin: 10px 0 6px;
}

.action-btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--saffron);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.action-btn:hover {
  background: var(--saffron-dark);
}

.small-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.festival-tag {
  background: #f3eadb;
  border-color: var(--saffron);
  color: var(--maroon);
  font-weight: 600;
}

/* Accessibility helper: visually hidden but still available to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Section headings inside static pages (logical h2 under the single h1) */
.section-h {
  font-size: 1.05rem;
  color: var(--maroon);
  margin-bottom: 8px;
}

/* Links on temple pages to related country / deity pages */
.country-link,
.modal-head a.temple-country {
  text-decoration: none;
  color: var(--saffron-dark);
  font-weight: 600;
}

.country-link:hover,
.modal-head a.temple-country:hover {
  text-decoration: underline;
}

.content-heading {
  font-size: 1.3rem;
  color: var(--maroon);
  margin-bottom: 14px;
}

/* ---- Server-rendered homepage intro ---- */
.home-intro {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.home-intro-inner {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 28px;
}

.home-intro-inner h2 {
  color: var(--maroon);
  font-size: 1.35rem;
  margin: 18px 0 8px;
}

.home-intro-inner h2:first-child {
  margin-top: 0;
}

.home-intro-inner p {
  color: var(--ink);
  max-width: 72ch;
}

.home-intro-inner a {
  color: var(--saffron-dark);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0 6px;
}

.home-stat {
  background: var(--cream);
  border: 1px solid #e8dcc8;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.home-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 36, 24, 0.14);
}

.home-stat strong {
  font-size: 1.5rem;
  color: var(--maroon);
}

.home-stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

.home-stat em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--saffron-dark);
  margin-top: 4px;
}

.home-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tradition-chip {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 5px 12px;
  border: 1px solid #e8dcc8;
  transition: background 0.15s ease, color 0.15s ease;
}

a.tradition-chip:hover {
  background: var(--saffron);
  color: #fff;
}

@media (max-width: 860px) {
  .home-intro {
    padding: 0 16px;
    margin-top: 20px;
  }

  .home-intro-inner {
    padding: 20px 18px;
  }
}

/* ---- Accessibility & UX polish ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  z-index: 9999;
  background: var(--maroon);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Footer link groups ---- */
.footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  justify-content: center;
  text-align: left;
  max-width: 900px;
  margin: 0 auto 14px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.footer-col-title {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.footer-col a {
  color: var(--maroon);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer .footer-note {
  color: var(--muted);
  max-width: 860px;
  margin: 6px auto;
}

/* ---- Homepage featured blocks ---- */
.featured-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 10px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin: 6px 0 18px;
}

a.featured-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card);
  border: 1px solid #e8dcc8;
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

a.featured-card:hover,
a.featured-card:focus-visible {
  border-color: var(--saffron);
  transform: translateY(-2px);
}

.featured-card strong {
  color: var(--maroon);
  font-size: 1.02rem;
}

.featured-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.featured-card em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--saffron-dark);
  margin-top: 6px;
}

/* ---- Contact form ---- */
.contact-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-row .req {
  color: var(--maroon);
}

.form-row .muted {
  font-weight: 400;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid #d9c9af;
  border-radius: 6px;
  padding: 9px 12px;
}

.contact-form textarea {
  resize: vertical;
}

.form-actions {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.form-status {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status.error {
  color: #b00020;
}

.form-status.success {
  color: #1e6f3e;
}

/* ---- Journey plan toolbar ---- */
.plan-toolbar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-toolbar .plan-clear {
  margin-left: auto;
}

/* ---- Print-only itinerary sheet (journey planner) ---- */
.print-sheet {
  display: none;
}

body.printing #print-sheet {
  display: block;
}

body.printing > *:not(#print-sheet) {
  display: none !important;
}

@media print {
  body.printing {
    background: #fff;
  }

  #print-sheet {
    display: block !important;
  }

  .print-sheet {
    padding: 24px;
    color: #000;
  }

  .print-sheet h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: #000;
  }

  .print-date {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .print-table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
  }

  .print-table th,
  .print-table td {
    border: 1px solid #444;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
    font-size: 0.85rem;
  }

  .print-table tfoot th,
  .print-table tfoot td {
    font-weight: 700;
  }

  .print-note {
    font-size: 0.75rem;
    color: #333;
    margin-top: 10px;
  }
}

/* Sourced data tables (e.g. the ISKCON resource page) */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  border: 1px solid #e2d9cc;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: #f5efe6;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: #fbf8f3;
}

.data-table .small-note {
  margin: 4px 0 0;
}

.muted {
  color: #7a7168;
}
