/* WordPress/Astra bridge for approved BSS inner-page fragments only. */
body.page-template-page-bss-approved-inner .site-content,
body.page-template-page-bss-approved-inner .site-content > .ast-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}

body.page-template-page-bss-approved-inner #masthead {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.page-template-page-bss-approved-inner .bss-inner-error {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}


/* BSS approved inner-page template — responsive safeguards only.
   The homepage does not load this bridge. Do not override desktop typography,
   colors, content or page order. */
@media (max-width: 1024px) {
  body.page-template-page-bss-approved-inner .site-content,
  body.page-template-page-bss-approved-inner .site-content > .ast-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body.page-template-page-bss-approved-inner .site-content :is(main,.ao-page) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body.page-template-page-bss-approved-inner .site-content :is(img,svg,video,iframe) {
    max-width: 100%;
  }
  body.page-template-page-bss-approved-inner .site-content :is(
    .wrap,.ao-container,.hero-layout,.s-hero-layout,.s-story,
    .feature-panel,.eye-composition,.csr-methods,.donation-intro-grid,
    .bank-grid,.cv-hero-grid,.cv-enquiry-grid
  ) { min-width: 0; max-width: 100%; }
  body.page-template-page-bss-approved-inner .site-content :is(
    .feature-panel,.s-story,.s-hero-layout,.cv-hero-grid,
    .cv-enquiry-grid,.bank-grid,.donation-intro-grid
  ) > * { min-width: 0; }
}
@media (max-width: 767px) {
  body.page-template-page-bss-approved-inner .site-content :is(h1,h2,h3,h4,p,li,figcaption,address,dd) {
    overflow-wrap: break-word;
  }
  body.page-template-page-bss-approved-inner .site-content :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    font-size: max(16px, 1rem);
  }
  body.page-template-page-bss-approved-inner .site-content :is(
    .btn,.button,.ao-button,.nav-toggle,.mobile-nav-trigger,
    .ao-living-tile__toggle
  ) { min-height: 44px; }
  body.page-template-page-bss-approved-inner .site-content iframe {
    max-width: 100%;
  }
  body.page-template-page-bss-approved-inner .site-content :is(.modal,.s-lightbox,.ao-lightbox) {
    max-width: 100vw;
    max-height: 100dvh;
  }
}
/* ==============================================================
   BSS Gurugram — mobile inner-page hero composition, 2026-11-14
   Applies ONLY to the approved inner-page WordPress template.
   Desktop, source content, assets and document order are untouched.

   Mobile reading order: eyebrow / heading -> image -> prose -> actions.
   Existing hero wrappers are visually flattened with display:contents;
   there is no duplicated HTML and no device-detection JavaScript.
   ============================================================== */
@media (max-width:767px) {
  body.page-template-page-bss-approved-inner {
    --bss-mh-gutter: clamp(20px, 5.4vw, 30px);
    --bss-mh-saffron: #bb713b;
    --bss-mh-paper: #fff7ed;
  }

  /* Comfortable gutters and a compact, non-fullscreen masthead. */
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero, .hero, .ao-hero, .mandir-hero, .care-hero,
    .nature-hero, .school-hero, .spirit-hero, .local-hero,
    .intro-hero, .csr-hero, .donation-hero, .vol-hero,
    .cv-hero, .puja-hero
  ) {
    min-height: 0 !important;
    height: auto !important;
    padding-block: 0 !important;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(175, 103, 51, .19);
  }

  body.page-template-page-bss-approved-inner main > :is(
    .s-hero, .hero, .ao-hero, .mandir-hero, .care-hero,
    .nature-hero, .school-hero, .spirit-hero, .local-hero,
    .intro-hero, .csr-hero, .donation-hero, .vol-hero,
    .cv-hero
  ) > :is(
    .s-hero-layout, .hero-layout, .ao-hero__inner,
    .nature-hero-layout, .school-hero-grid, .spirit-hero-layout,
    .local-hero-inner, .intro-hero-grid, .csr-hero-grid,
    .donation-hero-grid, .vol-hero-grid, .cv-hero-grid
  ) {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: auto;
    align-content: start !important;
    align-items: start !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 30px var(--bss-mh-gutter) 34px !important;
    margin: 0 !important;
  }

  /* Flatten only the introductory copy wrapper into the mobile grid.
     The DOM, content, and desktop layout remain completely unchanged. */
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero, .hero, .ao-hero, .mandir-hero, .care-hero,
    .nature-hero, .school-hero, .spirit-hero, .local-hero,
    .intro-hero, .csr-hero, .donation-hero, .vol-hero,
    .cv-hero
  ) :is(
    .s-hero-layout > div:first-child,
    .hero-layout > .hero-copy,
    .ao-hero__inner > .ao-hero__copy,
    .nature-hero-layout > .hero-story,
    .school-hero-grid > div:first-child,
    .spirit-hero-layout > .hero-copy,
    .local-hero-inner > .local-hero-copy,
    .intro-hero-grid > div:first-child,
    .csr-hero-grid > div:first-child,
    .donation-hero-grid > div:first-child,
    .vol-hero-grid > div:first-child,
    .cv-hero-grid > .cv-lede
  ) {
    display: contents !important;
  }

  /* Text hierarchy: eyebrow and any invocation precede the heading. */
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero,.hero,.ao-hero,.mandir-hero,.care-hero,.nature-hero,
    .school-hero,.spirit-hero,.local-hero,.intro-hero,.csr-hero,
    .donation-hero,.vol-hero,.cv-hero,.puja-hero
  ) :is(.eyebrow,.ao-eyebrow,.hero-kicker,.pretitle,.devanagari-mini) {
    order: 0;
    grid-column: 1;
    position: relative;
    max-width: 100%;
    margin: 0 0 10px !important;
    line-height: 1.55 !important;
    text-align: left !important;
    letter-spacing: .11em;
  }
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero,.hero,.ao-hero,.mandir-hero,.care-hero,.nature-hero,
    .school-hero,.spirit-hero,.local-hero,.intro-hero,.csr-hero,
    .donation-hero,.vol-hero,.cv-hero,.puja-hero
  ) h1 {
    order: 1;
    grid-column: 1;
    width: 100%;
    max-width: 100% !important;
    margin: 4px 0 17px !important;
    padding: 0 0 16px !important;
    font-family: 'Forum', Georgia, serif !important;
    font-size: clamp(34px, 9vw, 47px) !important;
    font-weight: 500 !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
    text-wrap: balance;
    text-align: left !important;
  }
  /* Quiet saffron double-rule ornament: distinct from a generic divider. */
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero,.hero,.ao-hero,.mandir-hero,.care-hero,.nature-hero,
    .school-hero,.spirit-hero,.local-hero,.intro-hero,.csr-hero,
    .donation-hero,.vol-hero,.cv-hero,.puja-hero
  ) h1::after {
    content: '';
    display: block;
    margin-top: 15px;
    width: 83px;
    height: 5px;
    background: linear-gradient(to right,
      #b66b39 0 35px, transparent 35px 43px,
      #e2ad79 43px 49px, transparent 49px 57px,
      #b66b39 57px 83px);
    border-radius: 2px;
    opacity: .93;
  }

  /* Image comes directly after the title, before the introduction. */
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero,.hero,.ao-hero,.mandir-hero,.care-hero,.nature-hero,
    .school-hero,.spirit-hero,.local-hero,.intro-hero,.csr-hero,
    .donation-hero,.vol-hero,.cv-hero
  ) :is(
    .s-hero-layout > .s-hero-visual,
    .hero-layout > .hero-art,
    .hero-layout > .hero-board,
    .nature-hero-layout > .hero-collage,
    .school-hero-grid > .school-hero-image,
    .spirit-hero-layout > .hero-photo,
    .local-hero-inner > .hero-photo-box,
    .intro-hero-grid > .intro-visual,
    .csr-hero-grid > .photo-slot,
    .donation-hero-grid > .photo-slot,
    .vol-hero-grid > .photo-slot,
    .cv-hero-grid > .cv-map-area
  ) {
    order: 2 !important;
    grid-column: 1;
    position: relative;
    z-index: 1;
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 4px 0 20px !important;
    align-self: start !important;
    justify-self: stretch !important;
    transform: none !important;
  }

  /* Remaining copy, including page-specific CTAs and quotations, follows the image. */
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero,.hero,.ao-hero,.mandir-hero,.care-hero,.nature-hero,
    .school-hero,.spirit-hero,.local-hero,.intro-hero,.csr-hero,
    .donation-hero,.vol-hero,.cv-hero,.puja-hero
  ) :is(
    .s-hero-summary,.hero-lead,.hero-intro,.hero-signoff,.hero-quiet,
    .hero-sub,.school-location,.ao-hero__summary,.intro,.subnote,
    .cv-lead
  ) {
    order: 3;
    grid-column: 1;
    margin: 0 0 13px !important;
    padding: 0 !important;
    font-size: clamp(15px, 3.8vw, 17px) !important;
    line-height: 1.7 !important;
    max-width: 100% !important;
    text-align: left !important;
    opacity: 1 !important;
  }
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero,.hero,.ao-hero,.mandir-hero,.care-hero,.nature-hero,
    .school-hero,.spirit-hero,.local-hero,.intro-hero,.csr-hero,
    .donation-hero,.vol-hero,.cv-hero,.puja-hero
  ) :is(.s-hero-layout,.hero-layout,.ao-hero__inner,.nature-hero-layout,
       .school-hero-grid,.spirit-hero-layout,.local-hero-inner,.intro-hero-grid,
       .csr-hero-grid,.donation-hero-grid,.vol-hero-grid,.cv-hero-grid)
       > :first-child > :is(p:not(.eyebrow):not(.ao-eyebrow):not(.pretitle):not(.devanagari-mini),
                          ul,.btn-row,.hero-actions,.hero-meta,.ao-actions,.cv-visit-window,
                          .cv-address-block,.cv-main-actions,.hero-history,.sanskrit-hero) {
    order: 4;
    grid-column: 1;
    max-width: 100% !important;
    margin: 0 0 13px !important;
  }
  /* Text paragraphs in 'flat' hero copy need to remain after the picture. */
  body.page-template-page-bss-approved-inner :is(
    .csr-hero-grid,.donation-hero-grid,.vol-hero-grid,.intro-hero-grid
  ) > :first-child > p:not(.eyebrow) { order: 4; font-size: 15px !important; line-height: 1.7 !important; }
  body.page-template-page-bss-approved-inner :is(
    .hero-layout,.nature-hero-layout,.spirit-hero-layout,.local-hero-inner,
    .cv-hero-grid,.school-hero-grid
  ) > :first-child > :is(p:not(.eyebrow):not(.pretitle),.btn-row,.hero-actions,
                           .hero-meta,.cv-visit-window,.cv-address-block,.cv-main-actions,
                           .sanskrit-hero) { order: 4; }

  /* Hero media gets a soft picture-mat and fine decorative border. */
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero,.mandir-hero,.care-hero,.nature-hero,.school-hero,
    .spirit-hero,.local-hero,.intro-hero,.csr-hero,.donation-hero,.vol-hero
  ) :is(.s-hero-visual > .s-picture,.hero-board,.hero-photo-box,
        .hero-photo,.school-slot,.photo-slot.has-image,
        .csr-hero-grid > .photo-slot,.donation-hero-grid > .photo-slot,
        .vol-hero-grid > .photo-slot,.intro-visual .photo-slot) {
    box-sizing: border-box !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 5px solid #e3be93 !important;
    border-radius: 5px !important;
    box-shadow: 0 10px 26px rgba(67,44,28,.13) !important;
    overflow: hidden;
    background: #f7ebdb;
  }
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero,.mandir-hero,.care-hero,.nature-hero,.school-hero,
    .spirit-hero,.local-hero,.intro-hero,.csr-hero,.donation-hero,.vol-hero
  ) :is(.s-hero-visual > .s-picture,.hero-board,.hero-photo-box,
        .hero-photo,.school-slot,.photo-slot.has-image,
        .csr-hero-grid > .photo-slot,.donation-hero-grid > .photo-slot,
        .vol-hero-grid > .photo-slot,.intro-visual .photo-slot) img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
    object-position: 50% 35%;
    transform: none !important;
  }
  /* Historical records should not be cropped, especially group photographs. */
  body.page-template-page-bss-approved-inner .s-hero .s-hero-visual img {
    object-fit: contain !important;
    background: #f2e4d4;
  }
  body.page-template-page-bss-approved-inner .s-hero .s-hero-visual .s-picture {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: 0 10px 26px rgba(67,44,28,.13) !important;
  }
  body.page-template-page-bss-approved-inner .s-hero .s-hero-visual .s-photo,
  body.page-template-page-bss-approved-inner .s-hero .s-hero-visual .photo {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
    border: 0 !important;
  }
  body.page-template-page-bss-approved-inner .s-hero .s-hero-visual figcaption { padding: 8px 10px; }
  body.page-template-page-bss-approved-inner .s-hero :is(.s-presence-hero-collage,.s-nationwide-cover) {
    width: 100%; max-width: 100%; min-height: 230px; margin: 0;
  }
  body.page-template-page-bss-approved-inner .s-hero .s-nationwide-cover .s-picture {
    height: auto !important; aspect-ratio: 4/3;
  }

  /* Devotional portraits must preserve the full figure, not crop the face. */
  body.page-template-page-bss-approved-inner .hero .hero-art {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column;
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 0 0 !important;
  }
  body.page-template-page-bss-approved-inner .hero .hero-art :is(
    .portrait-overview,.portrait-life,.portrait-philosophy,.teachings-hero-image
  ) {
    width: min(83%, 320px) !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3/4;
    margin: 0 auto !important;
    transform: none !important;
  }
  body.page-template-page-bss-approved-inner .hero .hero-art :is(
    .portrait-overview,.portrait-life,.portrait-philosophy,.teachings-hero-image
  ) img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  /* Special photo arrangements: keep gallery content while simplifying the frame. */
  body.page-template-page-bss-approved-inner .nature-hero .hero-collage,
  body.page-template-page-bss-approved-inner .intro-hero .intro-visual {
    min-height: 210px !important;
    max-height: 320px;
    overflow: hidden;
    border: 5px solid #e3be93;
    border-radius: 5px;
    box-shadow: 0 10px 26px rgba(67,44,28,.13);
  }
  body.page-template-page-bss-approved-inner .nature-hero .hero-collage > *,
  body.page-template-page-bss-approved-inner .intro-hero .intro-visual > * {
    max-width: 100%;
  }

  /* Durga Puja: its image sits outside the normal layout wrapper. */
  body.page-template-page-bss-approved-inner main > .puja-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
    gap: 0 !important;
    padding: 30px var(--bss-mh-gutter) 34px !important;
  }
  body.page-template-page-bss-approved-inner .puja-hero > .wrap.hero-grid,
  body.page-template-page-bss-approved-inner .puja-hero .hero-copy {
    display: contents !important;
  }
  body.page-template-page-bss-approved-inner .puja-hero > .hero-visual {
    order: 2 !important;
    display: block !important;
    grid-column: 1;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 4px 0 20px !important;
    border: 5px solid #e3be93 !important;
    border-radius: 5px;
    overflow: hidden;
    opacity: 1 !important;
  }
  body.page-template-page-bss-approved-inner .puja-hero > .hero-visual img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: contain !important;
    background: #f3e4d2;
    opacity: 1 !important;
  }
  body.page-template-page-bss-approved-inner .puja-hero .hero-copy > :is(p:not(.eyebrow),.hero-history) {
    order: 4;
    grid-column: 1;
    margin: 0 0 12px !important;
  }

  /* Ashram overview: reuse its approved panorama as a framed image; remove
     only the fullscreen background treatment on mobile. */
  body.page-template-page-bss-approved-inner .ao-hero {
    display: block !important;
    background: #ffe4ca !important;
    color: #2f2923 !important;
  }
  body.page-template-page-bss-approved-inner .ao-hero::before,
  body.page-template-page-bss-approved-inner .ao-hero__fragments,
  body.page-template-page-bss-approved-inner .ao-hero__shade,
  body.page-template-page-bss-approved-inner .ao-hero__bottom {
    display: none !important;
  }
  body.page-template-page-bss-approved-inner .ao-hero__inner::before {
    content: '';
    order: 2;
    display: block;
    width: 100%;
    min-height: 235px;
    aspect-ratio: 4/3;
    margin: 4px 0 20px;
    background: var(--ao-hero-image) center / cover no-repeat;
    border: 5px solid #e3be93;
    border-radius: 5px;
    box-shadow: 0 10px 26px rgba(67,44,28,.13);
  }
  body.page-template-page-bss-approved-inner .ao-hero__invocation {
    order: 5;
    grid-column: 1;
    margin-top: 10px;
  }
  body.page-template-page-bss-approved-inner .ao-hero .ao-actions {
    order: 4; grid-column:1; margin-top: 12px !important;
  }

  /* Contact's existing interactive map is the hero visual. */
  body.page-template-page-bss-approved-inner .cv-hero .cv-map-area {
    margin-block: 5px 20px !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  body.page-template-page-bss-approved-inner .cv-hero .cv-map-frame,
  body.page-template-page-bss-approved-inner .cv-hero .cv-map-frame iframe {
    width: 100% !important;
    min-height: 245px !important;
    height: 245px !important;
    max-height: 245px !important;
  }
  body.page-template-page-bss-approved-inner .cv-hero :is(.cv-visit-window,.cv-address-block,.cv-main-actions) {
    order: 5;
    grid-column: 1;
    margin-bottom: 14px;
  }
  body.page-template-page-bss-approved-inner .cv-hero .cv-lead { order: 4; }

  /* Keep decorative elements inside their own card, not over the next section. */
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero,.hero,.ao-hero,.mandir-hero,.care-hero,.nature-hero,
    .school-hero,.spirit-hero,.local-hero,.intro-hero,.csr-hero,
    .donation-hero,.vol-hero,.cv-hero,.puja-hero
  ) :is(.hero-watermark,.hero-halo,.philosophy-circle) { pointer-events:none; }
}

/* Visual-flow refinements for older hero structures with absolute-positioned images. */
@media (max-width:767px) {
  /* Any ordinary introductory paragraph must follow the media, including
     guru-mandir where the art is placed before the copy in source HTML. */
  body.page-template-page-bss-approved-inner main > :is(
    .s-hero,.hero,.mandir-hero,.care-hero,.nature-hero,.school-hero,
    .spirit-hero,.local-hero,.intro-hero,.csr-hero,.donation-hero,.vol-hero,.cv-hero
  ) :is(.hero-copy,.hero-story,.local-hero-copy) > p:not(.eyebrow):not(.devanagari-mini):not(.pretitle) {
    order: 4 !important;
    grid-column: 1;
    max-width: 100% !important;
    margin: 0 0 12px !important;
  }
  body.page-template-page-bss-approved-inner .hero-overview .devanagari-mini {
    order: 0 !important;
    margin: 0 0 7px !important;
  }
  body.page-template-page-bss-approved-inner .mandir-hero .hero-line { display: none !important; }

  /* Legacy photo-slot images are position:absolute; without a height on the
     frame they shrink to a decorative five-pixel border and hide the photo. */
  body.page-template-page-bss-approved-inner main > :is(
    .care-hero,.spirit-hero,.local-hero,.puja-hero,.csr-hero,
    .donation-hero,.vol-hero,.school-hero,.intro-hero
  ) :is(
    .hero-board,.hero-photo,.hero-photo-box,.hero-visual,
    .school-slot,.photo-slot.has-image,.intro-visual .photo-slot,
    .csr-hero-grid > .photo-slot,.donation-hero-grid > .photo-slot,
    .vol-hero-grid > .photo-slot
  ) {
    position: relative !important;
    display: block !important;
    aspect-ratio: 4 / 3;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
  }
  body.page-template-page-bss-approved-inner main > :is(
    .care-hero,.spirit-hero,.local-hero,.puja-hero,.csr-hero,
    .donation-hero,.vol-hero,.school-hero,.intro-hero
  ) :is(
    .hero-board,.hero-photo,.hero-photo-box,.hero-visual,
    .school-slot,.photo-slot.has-image,.intro-visual .photo-slot,
    .csr-hero-grid > .photo-slot,.donation-hero-grid > .photo-slot,
    .vol-hero-grid > .photo-slot
  ) > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center 35%;
  }
  body.page-template-page-bss-approved-inner .puja-hero > .hero-visual > img {
    object-fit: contain !important;
    background: #f3e4d2;
  }

  /* Two original Get Involved images remain distinct in a simple diptych. */
  body.page-template-page-bss-approved-inner .intro-hero .intro-visual {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-template-rows: minmax(0,1fr) !important;
    gap: 5px !important;
    aspect-ratio: 4 / 3;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 5px;
  }
  body.page-template-page-bss-approved-inner .intro-hero .intro-visual > .photo-slot {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 2px !important;
  }

  /* Four existing Gaushala photographs in a compact 2x2 mosaic. */
  body.page-template-page-bss-approved-inner .nature-hero .hero-collage {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-template-rows: repeat(2,minmax(0,1fr)) !important;
    gap: 5px !important;
    aspect-ratio: 4 / 3;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 5px;
  }
  body.page-template-page-bss-approved-inner .nature-hero .hero-collage > figure {
    grid-area: auto !important;
    grid-row: auto !important;
    grid-column: auto !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
  }
  body.page-template-page-bss-approved-inner .nature-hero .hero-collage > figure > img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* The panorama and the guiding ideal are both retained on mobile. */
  body.page-template-page-bss-approved-inner .ao-hero .ao-hero__textlink {
    color: #744829 !important;
    border-color: rgba(116,72,41,.48) !important;
  }
  body.page-template-page-bss-approved-inner .ao-hero .ao-hero__invocation {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #64442f !important;
    background: rgba(255,248,237,.62);
    padding: 13px 15px !important;
    border-left: 2px solid #c18b56;
    margin-top: 14px !important;
  }
  body.page-template-page-bss-approved-inner .ao-hero .ao-hero__invocation * {
    color: inherit !important;
  }
}

/* Final visual finish: comfortable separation and readable mobile CTA buttons. */
@media (max-width:767px) {
  body.page-template-page-bss-approved-inner main > :is(
    .hero,.mandir-hero,.care-hero,.nature-hero,.school-hero,
    .spirit-hero,.local-hero
  ) :is(.hero-layout,.nature-hero-layout,.school-hero-grid,
        .spirit-hero-layout,.local-hero-inner) > :is(.hero-copy,.hero-story,.local-hero-copy)
        > p:not(.eyebrow):not(.pretitle):not(.devanagari-mini) {
    padding-top: 8px !important;
  }
  body.page-template-page-bss-approved-inner .puja-hero .hero-visual::after {
    display:none !important;
  }
  body.page-template-page-bss-approved-inner .puja-hero .hero-history strong {
    color:#503b2f !important;
  }
  body.page-template-page-bss-approved-inner .intro-hero .btn-row .btn:not(.btn-ghost) {
    background:#b96e40 !important;
    color:#fffaf5 !important;
    border-color:#b96e40 !important;
  }
  body.page-template-page-bss-approved-inner .intro-hero .btn-row .btn-ghost {
    color:#4d3628 !important;
    border-color:rgba(77,54,40,.55) !important;
  }
}

/* Ashram hero photo: reference the already-existing theme asset directly.
   This also avoids relying on the malformed absolute URL in the old
   data-fragment-assembly inline custom property. Mobile only. */
@media (max-width:767px) {
  body.page-template-page-bss-approved-inner .ao-hero__inner::before {
    background-image: url('assets/images/ashram-overview/hero-campus-panorama.webp') !important;
  }
  body.page-template-page-bss-approved-inner .hero .hero-art :is(
    .portrait-overview,.portrait-life,.portrait-philosophy,.teachings-hero-image
  ) {
    width: min(76%, 285px) !important;
  }
}

/* ========================================================================== 
   Shared approved homepage navigation — INNER PAGES ONLY (2026-11-14)
   Homepage V9 and its scroll-triggered menu are deliberately untouched.
   This replaces the separate Astra/plugin-generated inner header visually;
   links come from the same "BSS Primary" WordPress menu as the homepage.
   ========================================================================== */
body.page-template-page-bss-approved-inner #masthead,
body.page-template-page-bss-approved-inner .bss-inner-topbar {
  display: none !important;
}
body.page-template-page-bss-approved-inner {
  padding-top: 0 !important;
}
body.page-template-page-bss-approved-inner {
  --bss-inner-nav-height: 84px;
}
body.page-template-page-bss-approved-inner .site-content {
  padding-top: var(--bss-inner-nav-height) !important;
}
/* Account for the WordPress admin toolbar without covering the page hero. */
body.admin-bar.page-template-page-bss-approved-inner #bss-inner-shared-nav {
  top: 32px !important;
}
body.admin-bar.page-template-page-bss-approved-inner .site-content {
  padding-top: calc(var(--bss-inner-nav-height) + 32px) !important;
}
@media (max-width: 782px) {
  body.admin-bar.page-template-page-bss-approved-inner #bss-inner-shared-nav { top: 46px !important; }
  body.admin-bar.page-template-page-bss-approved-inner .site-content { padding-top: calc(var(--bss-inner-nav-height) + 46px) !important; }
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav {
  --bss-header-ink: #432619;
  display: flex !important;
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 10000 !important;
  width: 100% !important;
  height: 84px !important;
  padding: 0 clamp(18px,2.6vw,44px) !important;
  box-sizing: border-box !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(223,166,94,.985) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(89,51,23,.22) !important;
  box-shadow: 0 7px 22px rgba(51,28,12,.16) !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
  text-transform: none;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav *,
body.page-template-page-bss-approved-inner #bss-inner-shared-nav *::before,
body.page-template-page-bss-approved-inner #bss-inner-shared-nav *::after {
  box-sizing: border-box;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  min-width: 0;
  gap: 9px;
  margin: 0;
  color: #432619 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand-mark {
  width: 60px !important;
  height: 60px !important;
  flex: 0 0 60px !important;
  display: block !important;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  overflow: visible;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand-mark img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 50%;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 0;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand b {
  display: block;
  margin: 0;
  font-family: "Forum", Georgia, serif !important;
  font-size: 31px !important;
  font-weight: 400 !important;
  line-height: 1.04 !important;
  letter-spacing: .003em !important;
  text-transform: none !important;
  color: #47271b !important;
  text-shadow: 0 1px 0 rgba(255,244,215,.32);
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand small {
  display: block;
  margin: 3px 0 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .035em;
  text-transform: none;
  color: #603a22;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav nav {
  display: block !important;
  min-width: 0;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  background: transparent;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu {
  display: flex !important;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li::before {
  content: none !important;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li:not(.nav-donate) > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 41px;
  padding: 10px clamp(8px,.7vw,11px) !important;
  border: 1px solid rgba(111,67,32,.23) !important;
  border-radius: 7px !important;
  background: rgba(255,249,228,.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,251,235,.35);
  color: #47291e !important;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s ease,border-color .2s ease,color .2s ease;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li:not(.nav-donate):hover > a,
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li.menu-open > a,
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li:not(.nav-donate) > a:focus-visible {
  background: rgba(255,250,229,.72) !important;
  color: #8b3125 !important;
  border-color: rgba(144,72,32,.49) !important;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu ul {
  display: block;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  width: max-content;
  min-width: 230px;
  max-width: 320px;
  margin: 0;
  padding: 10px 18px;
  list-style: none;
  background: #fff8ea !important;
  border: 1px solid #d5a76c;
  border-radius: 0 0 9px 9px;
  box-shadow: 0 15px 29px rgba(51,29,13,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease,transform .2s ease,visibility .2s ease;
  z-index: 2;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu li:hover > ul,
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu ul a {
  display: block;
  padding: 10px 2px !important;
  color: #482b20 !important;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  white-space: normal;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu ul a:hover {
  color: #a63c2c !important;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li.nav-donate {
  display: flex;
  align-items: center;
  margin-left: 5px;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li.nav-donate > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 11px 18px !important;
  border: 1px solid #a53223 !important;
  border-radius: 7px !important;
  background: linear-gradient(180deg,#c84a33,#a93425) !important;
  color: #fffdf8 !important;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  text-decoration: none !important;
  line-height: 1 !important;
  white-space: nowrap;
  box-shadow: 0 4px 11px rgba(118,45,29,.24),inset 0 1px 0 rgba(255,239,219,.21);
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li.nav-donate > a:hover {
  background: linear-gradient(180deg,#ae3626,#92261c) !important;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav a:focus-visible,
body.page-template-page-bss-approved-inner #bss-inner-shared-nav button:focus-visible {
  outline: 2px solid #883b26;
  outline-offset: 2px;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .nav-toggle {
  display: none;
  flex: 0 0 auto;
  border: 0;
  padding: 10px;
  margin: 0;
  cursor: pointer;
  background: transparent !important;
  color: #4b281b;
  border-radius: 6px;
}
body.page-template-page-bss-approved-inner #bss-inner-shared-nav .nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  border-radius: 0;
  background: #4b281b;
}

@media (max-width: 1280px) {
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .nav-toggle {
    display: block !important;
    margin-left: auto;
  }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav nav {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    display: block !important;
    max-height: calc(100svh - 84px);
    overflow: auto;
    background: #e6b579 !important;
    border-bottom: 1px solid #b98849;
    box-shadow: 0 12px 28px rgba(45,27,16,.15);
  }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu {
    display: none !important;
    padding: 12px clamp(16px,3vw,32px) 19px;
    max-height: inherit;
    overflow: auto;
  }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu.is-open {
    display: block !important;
  }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li {
    margin: 4px 0;
  }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li:not(.nav-donate) > a {
    display: flex !important;
    width: 100%;
    min-height: 45px;
    justify-content: flex-start;
    text-align: left;
    font-size: 13px !important;
    padding: 12px 15px !important;
  }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu ul {
    display: none !important;
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 2px 0 10px 14px;
    padding: 3px 12px;
    border: 0;
    border-left: 2px solid #b66e37;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255,248,230,.25) !important;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu li:hover > ul,
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu li:focus-within > ul {
    display: none !important;
  }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu li.menu-open > ul,
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu li.menu-open:hover > ul,
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu li.menu-open:focus-within > ul {
    display: block !important;
  }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu ul a {
    padding: 10px 6px !important;
  }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li.nav-donate {
    display: block;
    margin: 15px 0 4px;
  }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .primary-menu > li.nav-donate > a {
    padding: 13px 24px !important;
  }
}
@media (max-width: 850px) {
  body.page-template-page-bss-approved-inner { --bss-inner-nav-height: 76px; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav { height: 76px !important; padding: 0 16px !important; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand-mark { width: 54px !important; height: 54px !important; flex-basis: 54px !important; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand b { font-size: clamp(22px,3vw,27px) !important; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand small { font-size: 12px; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav nav { max-height: calc(100svh - 76px); }
}
@media (max-width: 480px) {
  body.page-template-page-bss-approved-inner { --bss-inner-nav-height: 71px; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav { height: 71px !important; padding: 0 12px !important; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand { gap: 9px; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand-mark { width: 45px !important; height: 45px !important; flex-basis: 45px !important; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand b { font-size: clamp(18px,4.8vw,22px) !important; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand small { font-size: 10px; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav nav { max-height: calc(100svh - 71px); }
}
@media (max-width: 355px) {
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand b { font-size: 17px !important; }
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav .brand-mark { width: 41px !important; height: 41px !important; flex-basis: 41px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-template-page-bss-approved-inner #bss-inner-shared-nav * {
    transition: none !important;
  }
}
