@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&display=swap');

/* ============================================================
   PRERNA STHAL - DESIGN SYSTEM & SHARED STYLES
   Vidya Pratishthan, Nakshatra Udyan, Baramati
   ============================================================ */

:root {
  /* Marathi Typography - Baloo 2 */
  --font-mr: 'Baloo 2', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Color Palette */
  --ink:          #17231f;
  --ink-soft:     #2b3d37;
  --teal:         #0f4a44;
  --teal-light:   #17635c;
  --teal-deep:    #0a2f2b;
  --maroon:       #56374d;
  --gold:         #c79a4a;
  --gold-soft:    #dcc189;
  --gold-glow:    rgba(199, 154, 74, 0.25);
  --brick:        #96552f;
  --parchment:    #f3ecde;
  --parchment-subtle: #ede3d1;
  --paper:        #faf6ee;
  --line:         rgba(23, 35, 31, 0.12);
  --line-strong:  rgba(23, 35, 31, 0.22);
  --line-onlight: rgba(250, 245, 234, 0.22);
  --line-ongold:  rgba(199, 154, 74, 0.35);

  /* Unified Type Scale (8 distinct sizes, strictly under 10; minimum >= 12px) */
  --fs-xs:   12px;   /* microcopy, badges, secondary indicators, small labels */
  --fs-sm:   14px;   /* nav items, button labels, fine print, card body */
  --fs-base: 16px;   /* standard body copy, intros, form controls */
  --fs-md:   18px;   /* section lead copy, highlighted features */
  --fs-lg:   22px;   /* subheadings, card titles, quotes */
  --fs-xl:   28px;   /* modal/panel headings, key stat numbers */
  --fs-2xl:  36px;   /* section headings */
  --fs-3xl:  48px;   /* main hero title / display */

  /* Unified Corner Radii (4 distinct scales, strictly under 6) */
  --radius-sm:   4px;    /* tags, subtle inner borders */
  --radius-md:   8px;    /* buttons, interactive controls, thumbnails */
  --radius-lg:   16px;   /* cards, modal dialogs, overview boxes */
  --radius-full: 9999px; /* circular icons, round controls */

  /* Standardized Unified Button Radius (Issue 14 fix) */
  --btn-radius:  var(--radius-md);

  /* Navigation Height */
  --nav-height: 118px;

  /* Spacing */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 56px;
  --sp-7: 72px;
  --sp-8: 96px;
  --sp-9: 128px;

  --gap-eyebrow-title: var(--sp-3);
  --gap-title-copy:    var(--sp-4);
  --gap-head-body:     var(--sp-6);

  --content-w: 1200px;
  --content-pad: clamp(18px, 5vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  margin: 0;
  line-height: 1.15;
  color: var(--teal-deep);
  letter-spacing: -0.015em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

.mr, .mr-text {
  font-family: var(--font-mr) !important;
  letter-spacing: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Global Marathi Typography when body has .lang-mr */
body.lang-mr {
  font-family: var(--font-mr);
  word-break: break-word;
  overflow-wrap: break-word;
}

body.lang-mr * {
  overflow-wrap: break-word;
  word-break: break-word;
}

body.lang-mr h1,
body.lang-mr h2,
body.lang-mr h3,
body.lang-mr h4,
body.lang-mr h5 {
  font-family: var(--font-mr);
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: break-word;
}

body.lang-mr p,
body.lang-mr li,
body.lang-mr span,
body.lang-mr a,
body.lang-mr div,
body.lang-mr blockquote {
  word-break: break-word;
  overflow-wrap: break-word;
}

body.lang-mr .nav-links-row a,
.nav-links-row a.mr {
  font-family: var(--font-mr) !important;
  font-size: 13.5px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 600;
}

body.lang-mr .visit-pill,
.visit-pill.mr {
  font-family: var(--font-mr) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 600;
}

body.lang-mr .lang-toggle button,
.lang-toggle button.mr {
  font-family: var(--font-mr) !important;
  letter-spacing: 0 !important;
}

body.lang-mr .eyebrow,
.eyebrow .mr,
.eyebrow.mr {
  font-family: var(--font-mr) !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}

.wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--teal-deep);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.skip-link:focus {
  top: 16px;
}

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

/* Bilingual Visibility */
body.lang-mr .en { display: none !important; }
.mr-block { display: none !important; }
body.lang-mr .mr-block { display: block !important; }
.mr-inline { display: none !important; }
body.lang-mr .mr-inline { display: inline !important; }
.mr-flex { display: none !important; }
body.lang-mr .mr-flex { display: flex !important; }
.mr-grid { display: none !important; }
body.lang-mr .mr-grid { display: grid !important; }

/* Eyebrow badge (Issue 8 fix: minimum >= 12px) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 700;
}
.eyebrow.on-dark {
  color: var(--gold-soft);
}
.eyebrow.center {
  justify-content: center;
}

/* Section Header */
.section-head {
  text-align: center;
  margin-bottom: var(--gap-head-body);
}
.section-head .eyebrow {
  margin-bottom: var(--gap-eyebrow-title);
}
.section-head h2 {
  font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl));
  line-height: 1.15;
}
.section-head .intro {
  margin: var(--gap-title-copy) auto 0;
  max-width: 65ch;
  font-size: var(--fs-base);
  line-height: 1.8;
  opacity: 0.88;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.16, 0.8, 0.28, 1), transform 0.75s cubic-bezier(0.16, 0.8, 0.28, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto !important;
  }
}

/* ================= NAVIGATION ================= */
.site-nav:empty { min-height: var(--nav-height, 118px); }  /* filled by shared.js */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px -8px rgba(23, 35, 31, 0.12);
  transition: background-color 0.3s ease;
}

.nav-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--content-pad);
  max-width: var(--content-w);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-link {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}
.logo-link:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
/* Issue 3 fix: Minimum font size >= 12px */
.brand-sub {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
  opacity: 0.88;
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Issue 4 fix: Remove long runs of all-caps on navigation links */
.nav-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 22px);
  height: 46px;
  border-top: 1px solid var(--line);
  font-family: inherit;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 500;
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links-row::-webkit-scrollbar {
  display: none;
}

.nav-links-row a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.82;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  transition: color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}
.nav-links-row a:hover,
.nav-links-row a:focus-visible {
  color: var(--teal);
  background: rgba(15, 74, 68, 0.08);
  opacity: 1;
}
.nav-links-row a.is-current {
  color: var(--paper);
  background: var(--teal);
  opacity: 1;
  font-weight: 600;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--paper);
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  min-height: 32px;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.65;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  transition: all 0.2s ease;
}
.lang-toggle button.active {
  background: var(--teal);
  color: var(--paper);
  opacity: 1;
}

/* Issue 14 fix: Standardize button corner radius across design system */
.visit-pill {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  background: var(--teal);
  border: 1px solid var(--teal);
  padding: 8px 18px;
  border-radius: var(--btn-radius);
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 74, 68, 0.2);
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}
.visit-pill:hover {
  background: var(--brick);
  border-color: var(--brick);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(150, 85, 47, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.85;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.mobile-menu a:hover,
.mobile-menu a.is-current {
  color: var(--teal);
  background: rgba(15, 74, 68, 0.08);
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: var(--content-pad);
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
}
.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child { transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .brand-text {
    display: none !important;
  }
}

@media (max-width: 860px) {
  :root { --nav-height: 62px; }
  .hamburger { display: flex; }
  .nav-links-row { display: none; }
  .nav-top { height: 60px; padding: 0 14px; gap: 8px; justify-content: flex-start; }
  .nav-brand { gap: 0; margin-left: 4px; }  /* logo sits right next to the menu button */
  .nav-actions { margin-left: auto; }        /* language switch + Visit stay on the right */
  .logo-img { height: 40px; }
  .brand-text { display: none !important; }
  .nav-actions { gap: 8px; }
  .lang-toggle button { padding: 5px 8px; min-height: 28px; font-size: var(--fs-xs); }
  .visit-pill { padding: 6px 12px; font-size: var(--fs-xs); border-radius: var(--btn-radius); }
}

/* ================= GLOBAL FOOTER ================= */
.site-footer {
  background-color: var(--teal-deep);
  background-image: radial-gradient(circle at 50% 100%, rgba(199, 154, 74, 0.08), transparent 60%);
  color: var(--paper);
  padding: var(--sp-8) 0 var(--sp-5);
  position: relative;
  overflow: visible;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: var(--sp-6);
}
.footer-brand h3 {
  color: var(--gold-soft);
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}
.footer-brand p {
  color: var(--paper);
  opacity: 0.82;
  font-size: var(--fs-sm);
  line-height: 1.75;
  max-width: 42ch;
  margin: 0;
}
.footer-col h4 {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--sp-3);
  font-weight: 700;
}
.footer-col p {
  color: var(--paper);
  opacity: 0.88;
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin: 0 0 12px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links span {
  font-size: var(--fs-sm);
  color: var(--paper);
  opacity: 0.78;
}
.footer-links a {
  font-size: var(--fs-sm);
  color: var(--paper);
  opacity: 0.78;
  transition: opacity 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--gold-soft);
}
.footer-bottom {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-onlight);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-fine {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.85;
}
.footer-fine a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.footer-fine a:hover {
  color: #fff;
  opacity: 1;
}

@media (max-width: 860px) {
  .site-footer { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .site-footer { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ================= MODAL / LIGHTBOX ================= */
.ps-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 30, 27, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ps-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ps-modal-dialog {
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--gold-glow);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ps-modal.is-open .ps-modal-dialog {
  transform: scale(1);
}
.ps-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s ease;
}
.ps-modal-close:hover {
  background: var(--parchment);
}

/* Portrait framing: align images to top center so faces and heads are never cropped */
.card-frame img,
.carousel-card .frame img,
.bio-modal-portrait img {
  object-fit: cover;
  object-position: top center !important;
  transform-origin: top center;
}

/* ================= BOARD INTRO (official board text on inner pages) ================= */
.board-intro {
  background: var(--paper);
  color: var(--ink);
  padding: var(--sp-7) 0 var(--sp-6);
}
.board-intro-inner {
  max-width: 780px;
  margin: 0 auto;
}
.board-intro h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: var(--teal-deep);
  margin: 0 0 var(--sp-3);
}
.board-intro p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-2);
}
.board-intro p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .board-intro { padding: var(--sp-6) 0 var(--sp-5); }
  .board-intro p { font-size: 16px; line-height: 1.85; }
}

/* ================= SHARED AUDIO PLAYER ================= */
.ps-audio { max-width: 620px; margin: 26px auto 0; }
.ps-audio button { font: inherit; }
.ps-audio-wave { display: block; cursor: pointer; touch-action: none; min-width: 0; }
.ps-audio-wave:focus-visible, .ps-audio button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ps-audio-time { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; flex: 0 0 auto; }
.ps-audio-play { flex: 0 0 auto; border-radius: 50%; border: 0; cursor: pointer; display: inline-grid; place-items: center; transition: transform 0.15s ease, background 0.2s ease; }
.ps-audio-play:hover { transform: scale(1.05); }

/* A · capsule (dark pill with waveform) */
.ps-audio--capsule {
  --wave-done: #dcc189; --wave-todo: rgba(220, 193, 137, 0.25);
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #103c37 0%, #072522 100%);
  border: 1px solid rgba(199, 154, 74, 0.45); border-radius: 999px;
  padding: 8px 20px 8px 8px;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(220, 193, 137, 0.3);
}
.ps-audio--capsule .ps-audio-play { width: 46px; height: 46px; background: linear-gradient(135deg, #e8d3a7 0%, #c79a4a 55%, #ad7e34 100%); color: #072522; box-shadow: 0 4px 14px rgba(199, 154, 74, 0.45); }
.ps-audio--capsule .ps-audio-wave { flex: 1 1 auto; height: 40px; width: 100%; }
.ps-audio--capsule .ps-audio-time { color: var(--gold-soft); }

/* B · card (larger listening card, mirrored waveform) */
.ps-audio--card {
  --wave-done: #dcc189; --wave-todo: rgba(220, 193, 137, 0.25);
  display: grid; gap: 12px;
  background: rgba(250, 246, 238, 0.06);
  border: 1px solid rgba(220, 193, 137, 0.3); border-radius: 18px;
  padding: 18px 20px 16px; color: var(--paper); text-align: left;
}
.ps-audio--card .ps-audio-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ps-audio--card .ps-audio-title { font-family: 'Fraunces', Georgia, serif; font-size: 18px; line-height: 1.3; min-width: 0; }
.ps-audio--card .ps-audio-title small { display: block; margin-bottom: 2px; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }
body.lang-mr .ps-audio--card .ps-audio-title small { font-family: var(--font-mr); letter-spacing: 0.02em; font-size: 12.5px; text-transform: none; }
.ps-audio--card .ps-audio-time { color: var(--gold-soft); padding-top: 2px; }
.ps-audio--card .ps-audio-wave { width: 100%; height: 64px; }
.ps-audio--card .ps-audio-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ps-audio--card .ps-audio-ctrls { display: flex; align-items: center; gap: 10px; }
.ps-audio--card .ps-audio-play { width: 50px; height: 50px; background: var(--gold); color: var(--teal-deep); }
.ps-audio--card .ps-audio-skip { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(220, 193, 137, 0.35); background: transparent; color: var(--gold-soft); cursor: pointer; font-family: 'Space Mono', monospace; font-size: 11.5px; }
.ps-audio--card .ps-audio-skip:hover, .ps-audio--card .ps-audio-speed:hover { background: rgba(199, 154, 74, 0.18); }
.ps-audio--card .ps-audio-speed { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; color: var(--gold-soft); border: 1px solid rgba(220, 193, 137, 0.35); background: transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; }

/* D · inline (quiet, for light sections) */
.ps-audio--inline {
  --wave-done: #0f4a44; --wave-todo: rgba(15, 74, 68, 0.2);
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.ps-audio--inline .ps-audio-play { width: 42px; height: 42px; border: 1.5px solid var(--teal); background: transparent; color: var(--teal); }
.ps-audio--inline.is-playing .ps-audio-play { background: var(--teal); color: var(--paper); }
.ps-audio--inline .ps-audio-wave { flex: 1 1 auto; height: 34px; width: 100%; }
.ps-audio--inline .ps-audio-time { color: var(--teal); }

.board-intro .ps-audio { margin: 0 auto var(--sp-4); }

@media (max-width: 480px) {
  .ps-audio--capsule { gap: 10px; padding-right: 14px; }
  .ps-audio--capsule .ps-audio-play { width: 42px; height: 42px; }
  .ps-audio--card { padding: 16px 14px 14px; }
  .ps-audio--card .ps-audio-wave { height: 52px; }
  .ps-audio-time { font-size: 11px; }
}

/* ================= HEADER BUTTONS: same size in English and Marathi ================= */
.lang-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 0;
  padding: 0;
  line-height: 1;
}
.lang-toggle button[data-lang="en"] {
  width: 40px;
  font-family: 'Space Mono', monospace !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
}
.lang-toggle button[data-lang="mr"] {
  width: 54px;
  font-family: var(--font-mr) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
}
.nav-actions .visit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 38px;
  padding: 0 10px;
  line-height: 1;
}
body.lang-mr .nav-actions .visit-pill.mr { display: inline-flex !important; }
@media (max-width: 860px) {
  .lang-toggle button { height: 30px; padding: 0; }
  .lang-toggle button[data-lang="en"] { width: 34px; font-size: 11.5px !important; }
  .lang-toggle button[data-lang="mr"] { width: 48px; font-size: 12.5px !important; }
  .nav-actions .visit-pill { width: 76px; height: 34px; padding: 0 8px; }
}

/* ================= FULL-WIDTH PHOTOS & PHOTO GALLERY =================
 * <figure class="photo-band"><img ...></figure>  edge-to-edge photo between sections
 * <div class="photo-gallery"> with <figure class="g-big|g-tall|g-wide"> photos
 */
.photo-band {
  position: relative;
  margin: 0;
  height: clamp(260px, 52vw, 560px);
  overflow: hidden;
  background: var(--teal-deep);
}
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px max(16px, env(safe-area-inset-left, 0px)) 18px;
  background: linear-gradient(180deg, rgba(10, 47, 43, 0) 0%, rgba(10, 47, 43, 0.55) 45%, rgba(10, 47, 43, 0.85) 100%);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  color: var(--paper);
  font-family: 'Fraunces', serif; font-size: clamp(16px, 2vw, 21px);
  text-align: center;
}

/* Photo gallery grid (Nakshatra Udyan, Vidya Pratishthan) */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 12px;
  margin-top: var(--sp-5);
}
.photo-gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--parchment); cursor: zoom-in; }
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.photo-gallery figure:hover img { transform: scale(1.03); }
.photo-gallery .g-big  { grid-column: span 2; grid-row: span 2; }
.photo-gallery .g-tall { grid-row: span 2; }
.photo-gallery .g-wide { grid-column: span 2; }
@media (max-width: 760px) {
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
}
.photo-gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 240px; }
@media (max-width: 760px) { .photo-gallery.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } }
