/* krishnapranami.org — single stylesheet, no framework. Brand colours carried over from the old theme. */
:root {
  --saffron: #e56b37;
  --saffron-dark: #b9481b;
  --gold: #f1bc31;
  --ink: #232323;
  --ink-2: #555;
  --line: #e8e2d9;
  --paper: #fffdf9;
  --tint: #fbf4ea;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 6px 20px rgb(80 40 0 / .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Gujarati", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--paper); }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--saffron-dark); text-underline-offset: 2px; }
a:hover { color: var(--saffron); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; }
h2 span { color: var(--saffron); }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); font-size: .92em; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* buttons */
.btn { display: inline-block; border: 2px solid var(--saffron); background: var(--saffron); color: #fff; font: 600 15px/1 var(--font);
  padding: 12px 22px; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--saffron-dark); border-color: var(--saffron-dark); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-outline { background: transparent; color: var(--saffron-dark); }
.btn-outline:hover { background: var(--saffron); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--saffron-dark); }

/* top bar + header */
.topbar { background: var(--ink); color: #ddd; font-size: 14px; }
.topbar a { color: #eee; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.topbar-contact a + a { margin-left: 18px; }
.region a { padding: 2px 8px; border-radius: 4px; }
.region a[aria-current] { background: var(--saffron); color: #fff; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.brand img { width: 75px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a, .nav summary { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 6px; cursor: pointer; }
.nav a:hover, .nav summary:hover { color: var(--saffron); }
.nav a[aria-current="page"], .nav .is-active > details > summary { color: var(--saffron); }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: " ▾"; font-size: .8em; }
.has-sub { position: relative; }
.has-sub ul { display: block; position: absolute; right: 0; top: 100%; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; content: ""; }
.bars::before { position: absolute; top: -7px; } .bars::after { position: absolute; top: 7px; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  .has-sub ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .topbar-contact a + a { margin-left: 12px; }
}

/* page banner */
.page-banner { background: linear-gradient(120deg, var(--saffron-dark), var(--saffron) 55%, var(--gold)); color: #fff; padding: 44px 0 36px; }
.page-banner h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 42px); }
.crumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; font-size: 14px; opacity: .95; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: #fff; }

/* sections */
.section { padding: 56px 0; }
.section.tint { background: var(--tint); }
.section h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--saffron-dark); font-weight: 700; margin: 0; }
.lead { font-size: 1.12em; font-weight: 500; }
.hero img { width: 100%; max-height: 72vh; object-fit: cover; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.stack-imgs { display: grid; gap: 12px; }
.stack-imgs img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.features img { width: 56px; height: 56px; }
.features h3 { margin: 10px 0 4px; font-size: 20px; }
.features p { margin: 0 0 6px; font-size: 15px; color: var(--ink-2); }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); list-style: none; }
.card > img, .card > a > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-body h2 { margin: 0 0 8px; font-size: 26px; }
.callout { background: linear-gradient(rgb(35 20 5 / .62), rgb(35 20 5 / .62)), url(/assets/front/images/call-out-bg.jpg) center / cover; color: #fff; text-align: center; padding: 64px 0; }
.callout h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 18px; }
.callout .btn { margin: 4px; }
.dl-strip { background: var(--ink); }
.dl-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.dl-strip a { display: flex; align-items: center; gap: 14px; padding: 26px 18px; color: #fff; text-decoration: none; font-weight: 600; border-right: 1px solid rgb(255 255 255 / .1); }
.dl-strip a:hover { background: var(--saffron); }
.num { font: 700 28px var(--serif); color: var(--gold); }
.dl-strip a:hover .num { color: #fff; }
@media (max-width: 860px) {
  .split, .cards-2 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .stack-imgs { grid-template-columns: repeat(3, 1fr); }
}

/* embeds */
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed.map { aspect-ratio: 16 / 7; margin: 32px 0 56px; background: var(--tint); }

/* prose (migrated content) */
.prose { max-width: 820px; margin: 40px auto 64px; }
.prose img { border-radius: var(--radius); margin: 18px 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 18px 0; }
.prose h2 { font-size: 30px; margin: 40px 0 12px; }
.prose h1 { font-size: 30px; }
.prose h4, .prose h5, .prose h6 { font-size: 18px; margin: 28px 0 8px; font-family: var(--font); }
.prose > :first-child { margin-top: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 14px 0 24px; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--tint); width: 40%; }
.prose.post table { width: auto; }
.prose.post th, .prose.post td { border: 0; }
.prose a[target="_blank"]:not(.btn) { overflow-wrap: anywhere; }
.prose.tables { overflow-x: auto; }

/* donation options */
.donate-options { margin-top: 40px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; margin-top: 40px; }
.contact-card, .contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.contact-card h2, .contact-form h2 { margin-top: 0; }
.contact-card h3 { font: 700 14px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--saffron-dark); margin: 18px 0 2px; }
.contact-card p { margin: 0 0 4px; }
.contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 4px; font: inherit; padding: 10px 12px; border: 1px solid #cfc6b8; border-radius: 8px; background: #fff; }
.form-status { min-height: 1.5em; font-weight: 600; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* books */
.book-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.book { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.book img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.book h3 { font-size: 17px; margin: 0; }

/* gallery */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 20px; justify-content: center; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: 600 14px var(--font); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.gallery-grid { list-style: none; padding: 0; margin: 0 0 64px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery-grid a { display: block; position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(transparent, rgb(0 0 0 / .7)); font-weight: 600; font-size: 15px; }
.gallery-grid li[hidden] { display: none; }

/* dialogs */
dialog { border: 0; border-radius: var(--radius); padding: 0; box-shadow: 0 20px 60px rgb(0 0 0 / .4); }
dialog::backdrop { background: rgb(0 0 0 / .75); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.dialog-head h2 { margin: 0; font-size: 20px; }
.dialog-close { background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: inherit; padding: 0 6px; }
.darshan { width: min(1000px, 100% - 24px); }
.darshan .embed { border-radius: 0; }
.lightbox { background: #111; color: #fff; max-width: min(1200px, 96vw); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox .caption { margin: 0; padding: 8px 14px 12px; }
.lightbox .dialog-close { position: absolute; right: 6px; top: 2px; color: #fff; text-shadow: 0 0 6px #000; }

/* downloads */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 32px 0 24px; }
.tabs button { border: 1px solid var(--line); background: #fff; padding: 10px 20px; border-radius: 999px; font: 600 15px var(--font); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--saffron); border-color: var(--saffron); color: #fff; }
[role="tabpanel"] { margin-bottom: 64px; }
.table-wrap { overflow-x: auto; }
.dl-table { width: 100%; border-collapse: collapse; background: #fff; }
.dl-table th, .dl-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.dl-table audio { height: 36px; max-width: 260px; }
.video-grid, .wall-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.video-grid video { width: 100%; border-radius: var(--radius); background: #000; }
.wall-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; text-align: center; }
.wall-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }

/* booking calendar */
.calendar { margin: 32px 0 64px; }
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-title { margin: 0 auto 0 8px; font-size: 26px; min-width: 9ch; order: -1; flex: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.cal-grid > div { min-height: 92px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 6px; font-size: 13px; }
.cal-grid .dow { min-height: 0; font-weight: 700; text-align: center; background: var(--tint); padding: 6px; }
.cal-grid .out { background: #faf8f5; color: #bbb; }
.cal-grid .today { box-shadow: inset 0 0 0 2px var(--gold); }
.ev { display: block; border-radius: 4px; padding: 1px 6px; margin-top: 3px; color: #fff; font-size: 12px; font-weight: 600; }
.legend .ev { display: inline-block; }
.ev.morning { background: var(--saffron); }
.ev.evening { background: #343a40; }
@media (max-width: 640px) { .cal-grid > div { min-height: 64px; padding: 2px; } .ev { font-size: 10px; padding: 1px 3px; } }

/* blog */
.blog-grid { list-style: none; padding: 0; margin: 40px 0 64px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-grid h2 { font-size: 22px; }
.blog-grid h2 a { color: var(--ink); text-decoration: none; }

/* footer */
.site-footer { background: #1b1b1b; color: #cfcfcf; padding: 52px 0 0; font-size: 15px; }
.site-footer h2 { color: #fff; font: 700 14px var(--font); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.site-footer a { color: #e9e9e9; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.social { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.apps { display: flex; flex-direction: column; gap: 10px; }
.apps img { width: 150px; }
.site-footer .btn { color: #fff; margin-top: 6px; }
.rights { text-align: center; border-top: 1px solid #333; margin: 40px 0 0; padding: 18px 16px; font-size: 14px; color: #999; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

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