/* Shri Khatu Dham, Mandsaur: public site styles ("Mor Pankh" design). */

:root {
  --teal-900: #0B3D45;
  --teal-700: #0E5A73;
  --teal-100: #E6F0EC;
  --gold: #D9A441;
  --gold-soft: #F4D58D;
  --bg: #F2F6F1;
  --ink: #10302F;
  --muted: #3E6360;
  --on-teal: #E8F1EC;
  --on-teal-muted: #C9DDD6;
  --line: #D5E3DD;
  --white: #FFFFFF;
  --radius: 24px;
  --shadow: 0 14px 30px rgba(11, 61, 69, 0.12);
  --font-display: 'Yatra One', 'Baloo 2', serif;
  --font-body: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--teal-700); }
a:hover { color: var(--teal-900); }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.k-skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.k-skip:focus { left: 8px; }

.k-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.k-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 44px); color: var(--teal-900); }
.k-eyebrow { color: var(--teal-700); font-size: 18px; font-weight: 700; }

/* Buttons */
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 24px; border-radius: 14px; border: 0;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.k-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.k-btn--gold { background: var(--gold); color: var(--ink); }
.k-btn--gold:hover { color: var(--ink); }
.k-btn--teal { background: var(--teal-700); color: var(--on-teal); }
.k-btn--teal:hover { color: var(--white); }
.k-btn--dark { background: var(--teal-900); color: var(--gold-soft); }
.k-btn--dark:hover { color: var(--gold-soft); }
.k-btn--outline { background: transparent; color: var(--teal-900); border: 2px solid var(--teal-900); }
.k-link { font-weight: 700; text-decoration: none; }
.k-link:hover { text-decoration: underline; }

/* Header */
.k-header { background: var(--teal-900); color: var(--on-teal); position: sticky; top: 0; z-index: 50; }
.k-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; max-width: 1240px; margin: 0 auto; }
.k-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold-soft); }
.k-brand:hover { color: var(--gold-soft); }
.k-brand img { width: 60px; height: 32px; object-fit: contain; background: var(--bg); border-radius: 8px; padding: 3px; }
.k-brand span { font-family: var(--font-display); font-size: 24px; white-space: nowrap; }
.k-nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.k-nav a { color: var(--on-teal); text-decoration: none; font-weight: 500; font-size: 17px; padding: 6px 0; border-bottom: 2px solid transparent; }
.k-nav a:hover, .k-nav a.is-active { color: var(--gold-soft); border-color: var(--gold); }
.k-header__actions { display: flex; align-items: center; gap: 12px; }
.k-live {
  display: inline-flex; align-items: center; gap: 8px; background: #B91C1C; color: var(--white);
  font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; text-decoration: none;
}
.k-live:hover { color: var(--white); }
.k-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: k-pulse 1.4s infinite; }
@keyframes k-pulse { 50% { opacity: .3; } }
.k-menu-toggle {
  display: none; background: transparent; border: 2px solid var(--gold); color: var(--gold-soft);
  border-radius: 12px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer;
}

@media (max-width: 1080px) {
  .k-menu-toggle { display: inline-flex; }
  .k-header__inner { flex-wrap: wrap; }
  .k-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .k-nav.is-open { display: flex; }
  .k-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .k-header__actions .k-btn { display: none; }
}

/* Sections */
.k-section { padding: 88px 0; }
.k-section--tight { padding: 56px 0; }
.k-section--mint { background: var(--teal-100); }
.k-section--teal { background: var(--teal-700); color: var(--on-teal); }
.k-section--teal .k-title { color: var(--gold-soft); }
.k-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.k-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.k-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.k-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.k-split > .k-split__main { flex: 999 1 460px; display: flex; flex-direction: column; gap: 20px; }
.k-split > .k-split__aside { flex: 1 1 340px; }
.k-card { background: var(--white); border-radius: var(--radius); }
.k-lead { font-size: 19px; line-height: 1.8; color: #24504D; margin: 0; }

/* Home hero */
.k-hero { background: var(--teal-900); color: var(--on-teal); overflow: hidden; }
.k-hero__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 56px 24px 120px; max-width: 1240px; margin: 0 auto; }
.k-hero__text { flex: 999 1 460px; display: flex; flex-direction: column; gap: 22px; }
.k-hero__text .k-eyebrow { color: #8FD1C6; font-weight: 600; }
.k-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 1.15; color: var(--gold-soft); }
.k-hero p { margin: 0; font-size: 20px; color: var(--on-teal-muted); max-width: 500px; }
.k-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.k-hero__visual { flex: 1 1 420px; position: relative; min-height: 480px; }
.k-hero__main { position: absolute; right: 0; top: 0; width: 90%; height: 400px; object-fit: cover; border-radius: 200px 24px 200px 24px; }
.k-hero__portrait { position: absolute; left: 0; bottom: 0; width: 200px; height: 250px; object-fit: cover; object-position: top; border-radius: 100px 100px 20px 20px; border: 6px solid var(--gold); }
.k-next-card {
  position: absolute; right: 12px; bottom: 16px; width: 290px; max-width: calc(100% - 210px); min-width: 220px;
  background: var(--white); color: var(--ink); border-radius: 20px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px; box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}
.k-next-card__label { font-size: 14px; color: var(--muted); font-weight: 600; }
.k-next-card__title { font-size: 22px; font-weight: 700; line-height: 1.2; }
.k-pill { align-self: flex-start; background: #DDF3EA; color: #0B5A3F; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; }

@media (max-width: 560px) {
  .k-hero__visual { min-height: 420px; }
  .k-hero__main { width: 100%; height: 300px; border-radius: 120px 20px 120px 20px; }
  .k-hero__portrait { width: 140px; height: 180px; }
  .k-next-card { position: absolute; left: auto; right: 0; bottom: 0; max-width: calc(100% - 150px); min-width: 0; width: auto; }
  .k-next-card__title { font-size: 18px; }
}

/* Quick tiles */
.k-quick { margin-top: -64px; position: relative; }
.k-tile {
  background: var(--white); border-radius: 22px; padding: 24px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: transform .15s ease;
}
.k-tile:hover { transform: translateY(-3px); color: var(--ink); }
.k-tile strong { font-size: 20px; }
.k-tile span { font-size: 15px; color: var(--muted); }
.k-tile--gold { background: var(--gold); }
.k-tile--gold span { color: #2C2410; }
.k-icon { width: 30px; height: 30px; flex: none; }

/* Aarti schedule */
.k-schedule { padding: 36px; }
.k-toggle { display: inline-flex; background: var(--teal-100); border-radius: 999px; padding: 5px; }
.k-toggle button {
  font: inherit; font-size: 17px; font-weight: 600; border: 0; background: transparent; color: #24504D;
  padding: 9px 22px; border-radius: 999px; cursor: pointer; min-height: 44px;
}
.k-toggle button[aria-pressed='true'] { background: var(--teal-900); color: var(--gold-soft); font-weight: 700; }
.k-aarti {
  background: var(--teal-100); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: var(--ink);
}
.k-aarti:hover { color: var(--ink); }
.k-aarti__name { font-size: 20px; font-weight: 700; color: var(--teal-900); }
.k-aarti__time { font-size: 30px; font-weight: 700; line-height: 1.15; }
.k-aarti__other { font-size: 15px; color: var(--muted); }
.k-aarti.is-next { background: var(--teal-700); color: var(--white); }
.k-aarti.is-next .k-aarti__name { color: var(--gold-soft); }
.k-aarti.is-next .k-aarti__other { color: #CBE3E8; }
.k-aarti__badge { display: none; font-size: 13px; font-weight: 700; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 2px 10px; align-self: flex-start; }
.k-aarti.is-next .k-aarti__badge { display: inline-block; }

/* Event cards */
.k-event { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.k-event:hover { color: var(--ink); box-shadow: var(--shadow); }
.k-event__strip { background: var(--teal-900); color: var(--gold-soft); padding: 16px 24px; display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.k-event:nth-child(3n+2) .k-event__strip { background: var(--teal-700); }
.k-event:nth-child(3n+3) .k-event__strip { background: var(--gold); color: var(--ink); }
.k-event__img { width: 100%; height: 200px; object-fit: cover; }
.k-event__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.k-event__body > .k-link { margin-top: auto; }
.k-event__body h3 { font-size: 23px; }
.k-event__meta { color: var(--muted); }

/* Video cards */
.k-video { overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.k-video:hover { color: var(--ink); box-shadow: var(--shadow); }
.k-video__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--teal-900); overflow: hidden; }
.k-video__thumb img { width: 100%; height: 100%; object-fit: cover; }
.k-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
}
.k-video__title { padding: 18px 20px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.k-video__date { padding: 0 20px 18px; color: var(--muted); font-size: 15px; margin-top: -10px; }
.k-festival-date { padding: 16px 20px 0; margin-bottom: -10px; color: var(--teal-700); font-size: 14px; font-weight: 700; }
.k-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.k-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Explore cards */
.k-explore { background: var(--teal-900); border-radius: 22px; padding: 28px; text-decoration: none; color: var(--on-teal); display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease; }
.k-explore:hover { transform: translateY(-3px); color: var(--on-teal); }
.k-explore strong { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--gold-soft); }
.k-explore span { font-size: 16px; color: var(--on-teal-muted); }

/* Katha images */
.k-arches { display: flex; gap: 18px; align-items: flex-end; }
.k-split > .k-split__aside.k-arches { flex: 1 1 440px; max-width: 520px; }
.k-arches > img, .k-arches > picture { flex: 1 1 0; min-width: 0; }
.k-arches > picture { display: block; }
.k-arches img { width: 100%; object-fit: cover; }
.k-arches > img:first-child, .k-arches > picture:first-child img { height: 400px; object-position: 13% center; border-radius: 200px 200px 24px 24px; }
.k-arches > img:last-child, .k-arches > picture:last-child img { height: 320px; object-position: 35% center; border-radius: 24px 24px 200px 200px; }

/* Gallery */
.k-gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.k-gallery a { display: block; border-radius: 20px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: var(--teal-100); }
.k-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.k-gallery a:hover img { transform: scale(1.04); }
.k-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; color: var(--white); font-weight: 600; background: linear-gradient(0deg, rgba(11, 61, 69, .85), rgba(11, 61, 69, 0)); }
.k-lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); }
.k-lightbox::backdrop { background: rgba(6, 26, 29, .88); }
.k-lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 16px; }
.k-lightbox p { color: var(--white); text-align: center; font-weight: 600; margin: 12px 0 0; }
.k-lightbox button { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); font-size: 26px; cursor: pointer; }

/* Donation */
.k-donate { background: var(--gold); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.k-donate h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px; color: var(--ink); }
.k-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.k-amounts a, .k-amounts button {
  text-align: center; background: var(--bg); color: var(--ink); text-decoration: none; padding: 10px 0; border-radius: 10px;
  font: inherit; font-weight: 700; border: 2px solid transparent; cursor: pointer; min-height: 44px;
}
.k-amounts .is-selected, .k-amounts a:nth-child(2) { background: var(--teal-900); color: var(--gold-soft); }
.k-photo { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); }

/* Visit */
.k-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.k-facts dt { color: var(--teal-700); font-weight: 700; }
.k-facts dd { margin: 2px 0 0; }
.k-panel { padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.k-panel--teal { background: var(--teal-900); color: var(--on-teal); border-radius: var(--radius); }
.k-panel--teal h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--gold-soft); }
.k-social { display: flex; flex-wrap: wrap; gap: 10px; }
.k-social a { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-700); color: var(--on-teal); text-decoration: none; padding: 10px 16px; border-radius: 12px; font-weight: 600; }
.k-social a:hover { color: var(--white); background: #12708F; }
.k-map { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }

/* Inner page header */
.k-page-hero { background: var(--teal-900); color: var(--on-teal); position: relative; overflow: hidden; }
.k-page-hero::after {
  content: ''; position: absolute; right: -80px; top: 0; bottom: 0; width: 46%;
  background: url('../img/khatu/peacock.jpg') center / cover;
  background: image-set(url('../img/khatu/peacock.webp') type('image/webp'), url('../img/khatu/peacock.jpg') type('image/jpeg')) center / cover; opacity: .28;
  border-radius: 220px 0 0 220px;
}
.k-page-hero__inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 56px 24px 64px; display: flex; flex-direction: column; gap: 12px; }
.k-page-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 60px); color: var(--gold-soft); }
.k-page-hero p { margin: 0; color: var(--on-teal-muted); font-size: 19px; max-width: 640px; }
.k-crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--on-teal-muted); }
.k-crumbs a { color: var(--on-teal); text-decoration: none; }
.k-crumbs li + li::before { content: '›'; margin-right: 8px; }

/* Rich text from the admin editor */
.k-prose { font-size: 18px; line-height: 1.85; color: #1F3F3D; }
.k-prose > * + * { margin-top: 1em; }
.k-prose p { margin: 0; }
.k-prose h2, .k-prose h3 { font-family: var(--font-display); font-weight: 400; color: var(--teal-900); margin-top: 1.4em; }
.k-prose img { border-radius: 16px; height: auto; }
.k-prose a { font-weight: 600; }

/* Filters and pagination */
.k-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.k-chips a, .k-chips button {
  font: inherit; font-weight: 600; text-decoration: none; padding: 8px 18px; border-radius: 999px; min-height: 44px;
  display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--teal-900); border: 1px solid var(--line); cursor: pointer;
}
.k-chips .is-active { background: var(--teal-900); color: var(--gold-soft); border-color: var(--teal-900); }
.k-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; list-style: none; padding: 0; }
.k-pagination a, .k-pagination span {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px;
  border-radius: 12px; background: var(--white); color: var(--teal-900); text-decoration: none; font-weight: 600; border: 1px solid var(--line);
}
.k-pagination [aria-current='page'] span { background: var(--teal-900); color: var(--gold-soft); border-color: var(--teal-900); }
.k-pagination .is-disabled span { opacity: .45; }

/* Tables */
.k-table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--white); }
.k-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.k-table th { background: var(--teal-900); color: var(--gold-soft); text-align: left; padding: 16px 20px; font-weight: 700; }
.k-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.k-table tr:nth-child(even) td { background: #F7FAF8; }
.k-table tr.is-today td { background: #FFF6DF; font-weight: 700; }

/* Forms */
.k-form { display: flex; flex-direction: column; gap: 16px; }
.k-form__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.k-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.k-input {
  font: inherit; font-weight: 400; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); min-height: 48px;
}
.k-input:focus { border-color: var(--teal-700); outline: 2px solid rgba(14, 90, 115, .25); }
.k-input.is-invalid { border-color: #B42318; }
.k-error { color: #B42318; font-size: 14px; font-weight: 500; }
.k-alert { border-radius: 14px; padding: 14px 18px; font-weight: 600; margin-bottom: 20px; }
.k-alert--success { background: #DDF3EA; color: #0B5A3F; }
.k-alert--error { background: #FDE7E7; color: #8A1C1C; }

/* Footer */
.k-footer { background: var(--teal-900); color: var(--on-teal-muted); margin-top: 0; }
.k-footer__inner { max-width: 1240px; margin: 0 auto; padding: 56px 24px 32px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.k-footer h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--gold-soft); margin-bottom: 10px; }
.k-footer h4 { color: var(--on-teal); font-size: 18px; margin-bottom: 10px; }
.k-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.k-footer a { color: var(--on-teal-muted); text-decoration: none; }
.k-footer a:hover { color: var(--gold-soft); }
.k-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); max-width: 1240px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 15px; }

.k-empty { background: var(--white); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
.k-stack { display: flex; flex-direction: column; gap: 20px; }
.k-two { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.k-two > .k-two__main { flex: 999 1 560px; min-width: 0; }
.k-two > .k-two__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.k-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .k-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .k-tile { padding: 18px; }
  .k-tile strong { font-size: 18px; }
  .k-explore { padding: 20px; }
  .k-explore strong { font-size: 22px; }
  .k-schedule .k-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .k-aarti { padding: 16px; }
  .k-aarti__name { font-size: 17px; }
  .k-aarti__time { font-size: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .k-section { padding: 64px 0; }
  .k-schedule, .k-panel { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Daily shringar darshan (home) */
.k-shringar { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.k-shringar__main { position: relative; flex: 0 1 300px; display: block; border-radius: 160px 160px 24px 24px; overflow: hidden; border: 6px solid var(--gold); box-shadow: var(--shadow); aspect-ratio: 9 / 16; max-height: 560px; background: var(--teal-900); }
.k-shringar__main img { width: 100%; height: 100%; object-fit: cover; }
.k-shringar__main:hover img { transform: scale(1.03); transition: transform .3s ease; }
.k-shringar__text { flex: 999 1 420px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.k-shringar__past { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.k-shringar__past-label { font-weight: 700; color: var(--muted); }
.k-shringar__thumbs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.k-shringar__thumbs::-webkit-scrollbar { display: none; }
.k-shringar__thumbs a { flex: 0 0 104px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; }
.k-shringar__thumbs img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; }
@media (max-width: 560px) {
  .k-shringar { gap: 28px; }
  .k-shringar__main { flex-basis: 100%; max-width: 320px; margin: 0 auto; }
}

/* Content from the admin editor: embeds, tables and long words must never be wider than the screen. */
.k-prose { overflow-wrap: anywhere; }
.k-prose iframe, .k-prose video, .k-prose embed, .k-prose object { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.k-prose img { max-width: 100%; height: auto !important; }
.k-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.k-prose td, .k-prose th { border: 1px solid var(--line); padding: 8px 12px; }
.k-prose pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.k-prose [style*="width"] { max-width: 100% !important; }

/* Comfortable tap targets (WCAG 2.2: at least 24x24px) */
.k-nav a { padding-left: 4px; padding-right: 4px; }
.k-crumbs { align-items: center; }
.k-crumbs li { display: inline-flex; align-items: center; line-height: 1.5; }
.k-crumbs a, .k-crumbs [aria-current] { display: inline-block; padding: 4px 2px; }
.k-facts dd a, .k-panel > a.k-link { display: inline-block; padding: 4px 0; }

/* Keep the menu at the right edge, also when there is no donate button. */
@media (min-width: 1081px) { .k-nav { margin-left: auto; } }

/* Small phones (≤ 380px): keep the header on one line and give the next-aarti card full width. */
@media (max-width: 400px) {
  .k-header__inner { padding: 12px 16px; gap: 10px; }
  .k-brand { gap: 8px; }
  .k-brand img { width: 46px; height: 26px; }
  .k-brand span { font-size: 20px; }
  .k-header__actions { gap: 8px; }
  .k-live { padding: 5px 9px; font-size: 12px; }
}
@media (max-width: 380px) {
  .k-hero__visual { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
  .k-hero__visual picture:first-of-type, .k-hero__main { display: block; }
  .k-hero__main { position: relative; width: 100%; height: 260px; border-radius: 110px 18px 110px 18px; }
  .k-hero__portrait, .k-hero__visual picture:has(.k-hero__portrait) { display: none; }
  .k-next-card { position: relative; right: auto; bottom: auto; width: auto; max-width: none; min-width: 0; }
}

.k-nowrap { white-space: nowrap; }

/* "दर्शन के लिए पधारें": details in a 2×2 grid with icons, social links stacked beside it. */
.k-visit { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px; align-items: stretch; }
.k-visit__main { gap: 26px; }
.k-visit__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.k-visit__facts li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.k-visit__facts li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.6; overflow-wrap: anywhere; }
.k-visit__facts strong { color: var(--teal-700); font-weight: 700; }
.k-visit__facts a { color: var(--ink); }
.k-visit__icon { flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--teal-100, #E6F0EC); display: inline-flex; align-items: center; justify-content: center; }
.k-visit__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.k-visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.k-visit__side { justify-content: flex-start; }
.k-visit__social { display: flex; flex-direction: column; gap: 10px; }
.k-visit__social a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--teal-700); color: var(--on-teal); text-decoration: none; }
.k-visit__social a:hover { background: #12708F; color: #fff; }
.k-visit__social svg { flex: 0 0 26px; width: 26px; height: 26px; fill: none; stroke: var(--gold-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-visit__social span { display: flex; flex-direction: column; font-size: 14px; color: var(--on-teal-muted); line-height: 1.4; }
.k-visit__social strong { font-size: 16px; color: var(--on-teal); }
@media (max-width: 900px) { .k-visit { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .k-visit__facts { grid-template-columns: 1fr; gap: 18px; } }

/* Small carousel: arrow buttons over the left/right edge of a scrolling strip (used for "पिछले श्रृंगार"). */
.k-carousel { position: relative; }
.k-carousel__btn { position: absolute; top: calc(50% - 14px); transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white, #fff); color: var(--teal-900); box-shadow: 0 6px 18px rgba(11, 61, 69, .22); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.k-carousel__btn[hidden] { display: none; }
.k-carousel__btn:hover, .k-carousel__btn:focus-visible { background: var(--gold); color: var(--ink); }
.k-carousel__btn:disabled { opacity: 0; pointer-events: none; }
.k-carousel__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.k-carousel__btn--prev { left: -14px; }
.k-carousel__btn--next { right: -14px; }
@media (max-width: 560px) { .k-carousel__btn--prev { left: -6px; } .k-carousel__btn--next { right: -6px; } }

/* YouTube-Shorts-style video cards in a sliding row ("भजन संध्या"). */
.k-shorts { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.k-shorts::-webkit-scrollbar { display: none; }
.k-short { flex: 0 0 calc((100% - 5 * 16px) / 6); min-width: 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.k-short:hover { color: var(--ink); }
.k-short__media { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--teal-900); }
.k-short__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.k-short:hover .k-short__media img { transform: scale(1.04); }
.k-short__media .k-play { opacity: 0; transition: opacity .2s; }
.k-short:hover .k-play, .k-short:focus-visible .k-play { opacity: 1; }
.k-short__media--plain { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle at 50% 35%, var(--teal-700), var(--teal-900) 70%); }
.k-short__media--plain img.k-short__emblem { width: 56%; height: auto; object-fit: contain; background: #fff; border-radius: 16px; padding: 10px; }
.k-short:hover .k-short__media--plain img.k-short__emblem { transform: none; }
.k-short__label { font-family: var(--font-display); font-size: 22px; color: var(--gold-soft); }
.k-short__media--plain .k-play { opacity: 1; position: static; transform: none; }
.k-short__title { margin-top: 4px; font-weight: 600; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-short__date { color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) { .k-short { flex-basis: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 700px) { .k-short { flex-basis: calc((100% - 2 * 12px) / 2.4); } .k-shorts { gap: 12px; } }
.k-shorts + .k-carousel__btn, .k-carousel:has(.k-shorts) .k-carousel__btn { top: 38%; }

/* Ekadashi calendar */
.k-ekadashi__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.k-ekadashi__years a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 22px; border-radius: 999px; color: var(--teal-900); font-weight: 600; text-decoration: none; }
.k-ekadashi__years a.is-active { background: var(--teal-900); color: var(--gold-soft); font-weight: 700; }
.k-ekadashi__count { color: var(--muted); font-weight: 600; }
.k-ekadashi__next { background: var(--teal-900); color: var(--on-teal); border-radius: var(--radius); padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; }
.k-ekadashi__next .k-eyebrow { color: var(--gold-soft); font-size: 15px; }
.k-ekadashi__next h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px; color: var(--gold-soft); margin: 0; }
.k-ekadashi__next p { margin: 0; color: var(--on-teal-muted); }
.k-ekadashi__next p strong { color: var(--on-teal); }
.k-ekadashi td small { display: block; color: var(--muted); font-size: 13px; }
.k-ekadashi__range { font-size: 14px; color: var(--muted); white-space: nowrap; }
.k-ekadashi tr.is-past td { opacity: .55; }
.k-ekadashi tr.is-next td { background: #FFF6E0 !important; }
.k-ekadashi tr.is-next td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.k-note { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 560px) { .k-ekadashi__next { padding: 22px; } .k-ekadashi__next h2 { font-size: 28px; } }
.k-ekadashi__alt { color: #9A6B12 !important; margin-top: 2px; }
.k-ekadashi td small.k-ekadashi__mobile-time { display: none; }
@media (max-width: 700px) {
  .k-ekadashi { min-width: 0; }
  .k-ekadashi th:last-child, .k-ekadashi td:last-child { display: none; }
  .k-ekadashi th, .k-ekadashi td { padding: 12px 10px; }
  .k-ekadashi td small.k-ekadashi__mobile-time { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
}

/* Footer: contact with icons, social as icon buttons; on phones the two link lists sit side by side. */
.k-footer__inner { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); }
.k-footer__contact { gap: 10px !important; }
.k-footer__contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.k-footer__contact svg, .k-footer__map svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--gold-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.k-footer__contact a { overflow-wrap: anywhere; }
.k-footer ul a { display: inline-block; padding: 3px 0; }
.k-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.k-footer__social a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: var(--on-teal); font-size: 15px; font-weight: 600; }
.k-footer__social a:hover { background: rgba(255, 255, 255, .14); color: var(--gold-soft); }
.k-footer__social svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-soft); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.k-footer__map { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(244, 213, 141, .45); color: var(--gold-soft) !important; font-weight: 600; font-size: 15px; }
.k-footer__map svg { margin-top: 0; }
.k-footer__map:hover { background: rgba(244, 213, 141, .1); }
@media (max-width: 1000px) {
  .k-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .k-footer__inner { padding: 40px 20px 24px; gap: 28px 20px; }
  .k-footer__brand, .k-footer__connect { grid-column: 1 / -1; }
  .k-footer__social a { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .k-footer__map { width: 100%; justify-content: center; }
  .k-footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 14px; padding: 16px 20px 22px; }
}

/* ---------- Smooth page loads ---------- */
/* 1. Page-to-page fade (Chrome, Edge, Safari 18+; others just load normally). The header stays put. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: k-fade-out .18s ease both; }
::view-transition-new(root) { animation: k-fade-in .28s ease both; }
.k-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }
@keyframes k-fade-out { to { opacity: 0; } }
@keyframes k-fade-in { from { opacity: 0; transform: translateY(6px); } }

/* 2. Thin gold bar at the top while the next page is loading. */
.k-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); box-shadow: 0 0 8px rgba(217, 164, 65, .6); opacity: 0; transition: width .4s ease, opacity .3s ease; pointer-events: none; }
.k-progress.is-active { opacity: 1; width: 75%; transition: width 8s cubic-bezier(.1, .7, .1, 1), opacity .1s; }
.k-progress.is-done { opacity: 0; width: 100%; transition: width .2s ease, opacity .4s ease .2s; }

/* 3. Lazy images fade in instead of popping; their box already has a calm colour. */
.js img[loading="lazy"] { opacity: 0; transition: opacity .45s ease; }
.js img[loading="lazy"].is-loaded { opacity: 1; }

/* 4. Big photos on detail pages keep their space while loading (no jump). */
.k-cover-img { display: block; width: 100%; height: auto; aspect-ratio: 1296 / 560; max-height: 520px; object-fit: cover; border-radius: var(--radius); background: var(--teal-100); }
.k-cover-img--video { aspect-ratio: 16 / 9; max-height: none; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .k-progress { display: none; }
  .js img[loading="lazy"] { opacity: 1; transition: none; }
}
