/*
 * Classic Production Template + Stage Enhancements (Universal Peace Sanctuary)
 * Keeps the production white-background look & feel while integrating:
 * - New circular blue Universal Peace Sanctuary Foundation logo (#135A88)
 * - Matching blue Donate CTA button (#135A88, hover #0E466B, WCAG AAA contrast)
 * - Stylized November 17th Foundation Launch / Gala announcement (#00183C & gold)
 * - Uncropped architectural gallery + face-aware enhanced news cards
 */

:where(img) {
  max-width: 100%;
  height: auto;
}

.classic-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.classic-skip-link {
  position: fixed;
  left: -9999px;
  top: 12px;
  z-index: 100000;
  background: #135a88;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
}

.classic-skip-link:focus {
  left: 16px;
}

body.classic-site {
  background-color: #ffffff;
  color: #4a4a4a;
}

body.classic-site.homepage {
  background-color: #ffffff;
}

body.classic-site section[id] {
  scroll-margin-top: 108px;
}

/* Top-Left Circular Blue Foundation Logo + Brand Text */
body.classic-site .logoWrap {
  margin-right: 44px;
}

body.classic-site .logoWrap a .d-flex.items-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.classic-site .logoWrap a img.foundation-logo-mark {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 24, 60, 0.22));
}

body.classic-site .logo-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.2;
  padding-left: 0;
}

body.classic-site .logoWrap a .whiteLogo {
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 24, 60, 0.35);
}

body.classic-site .logoWrap a .darkLogo {
  color: #135a88;
}

body.classic-site .logoWrap a .darkLogo span:first-child {
  color: #135a88;
  font-weight: 600;
}

body.classic-site .logoWrap a .darkLogo span:last-child {
  color: #266d9b;
  font-weight: 400;
  padding-left: 0;
}

/* Header readability over hero & crisp white sticky bar when scrolled */
body.classic-site:not(.whiteHeader) .siteHeader:not(.main-tool-bar--scrolled) {
  background: linear-gradient(180deg, rgba(8, 25, 48, 0.42) 0%, rgba(8, 25, 48, 0.14) 72%, rgba(8, 25, 48, 0) 100%);
}

body.classic-site .siteHeader.main-tool-bar--scrolled,
body.classic-site.whiteHeader .siteHeader {
  background-color: #ffffff;
  border-bottom: 1px solid #e4ecf2;
  box-shadow: 0 4px 20px rgba(0, 24, 60, 0.06);
}

/* Matching Blue Donate CTA Button (Top-Right Header, Mobile Nav, Homepage) */
body.classic-site .button.donate-blue-btn,
body.classic-site .btn.donate-blue-btn,
body.classic-site .headerIcons .button.btn.donate-blue-btn,
body.classic-site .main-tool-bar--scrolled .headerIcons .button.btn.donate-blue-btn,
body.classic-site.whiteHeader .headerIcons .button.btn.donate-blue-btn {
  background-color: #135a88 !important;
  color: #ffffff !important;
  border: 2px solid #135a88 !important;
  box-shadow: 0 4px 14px rgba(19, 90, 136, 0.26);
  font-weight: 600;
  letter-spacing: 1px;
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

body.classic-site:not(.whiteHeader) .siteHeader:not(.main-tool-bar--scrolled) .headerIcons .button.btn.donate-blue-btn {
  border-color: rgba(255, 255, 255, 0.55) !important;
}

body.classic-site .button.donate-blue-btn::after,
body.classic-site .btn.donate-blue-btn::after,
body.classic-site .headerIcons .button.btn.donate-blue-btn::after,
body.classic-site .main-tool-bar--scrolled .headerIcons .button.btn.donate-blue-btn::after,
body.classic-site.whiteHeader .headerIcons .button.btn.donate-blue-btn::after {
  background-color: #135a88 !important;
  transform: scale(1, 1) !important;
}

body.classic-site .button.donate-blue-btn:hover,
body.classic-site .btn.donate-blue-btn:hover,
body.classic-site .headerIcons .button.btn.donate-blue-btn:hover,
body.classic-site .main-tool-bar--scrolled .headerIcons .button.btn.donate-blue-btn:hover,
body.classic-site.whiteHeader .headerIcons .button.btn.donate-blue-btn:hover,
body.classic-site .button.donate-blue-btn:focus-visible,
body.classic-site .btn.donate-blue-btn:focus-visible {
  background-color: #0e466b !important;
  border-color: #0e466b !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(14, 70, 107, 0.34);
}

body.classic-site .button.donate-blue-btn:hover::after,
body.classic-site .btn.donate-blue-btn:hover::after,
body.classic-site .headerIcons .button.btn.donate-blue-btn:hover::after,
body.classic-site .main-tool-bar--scrolled .headerIcons .button.btn.donate-blue-btn:hover::after,
body.classic-site.whiteHeader .headerIcons .button.btn.donate-blue-btn:hover::after {
  background-color: #0e466b !important;
  transform: scale(1, 1) !important;
}

/* Welcome Section (exact production look + semantic H1 + Foundation PDF block) */
body.classic-site #welcomeSection .richText {
  padding-top: 5.5rem;
  padding-bottom: 4.5rem;
  background-color: #ffffff;
}

body.classic-site .classic-welcome-kicker,
body.classic-site .classic-welcome-h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 22px;
  line-height: 28px;
  text-transform: uppercase;
  font-weight: 400;
  color: #555555;
  letter-spacing: 1px;
  margin: 0 0 14px 0;
}

body.classic-site .classic-welcome-h1 {
  margin-bottom: 22px;
}

body.classic-site .classic-welcome-divider {
  border: 0;
  border-top: 1px solid #dce5ec;
  margin: 3.2rem auto;
  max-width: 520px;
}

body.classic-site .classic-foundation-intro h3 {
  line-height: 1.55;
  margin-bottom: 10px;
}

body.classic-site .classic-foundation-intro .linkAnchor {
  margin-top: 18px;
}

/* Stylized November 17th Gala / Foundation Launch Card (#00183C & Double Gold Border) */
.gala-nov17-section {
  padding: 1.5rem 0 5.5rem;
  background-color: #ffffff;
}

.page-gala .gala-nov17-section {
  padding: 2rem 0 3rem;
}

.gala-nov17-card {
  max-width: 820px;
  margin: 0 auto;
  background-color: #00183c;
  padding: 14px;
  border: 1px solid #c8a45d;
  box-shadow: 0 22px 54px rgba(0, 24, 60, 0.2);
}

.gala-nov17-inner {
  border: 1px solid rgba(200, 164, 93, 0.72);
  padding: 46px 48px 44px;
  text-align: center;
  color: #f8fafc;
}

.gala-nov17-emblem-wrap {
  margin: 0 auto 30px;
}

.gala-nov17-emblem {
  width: 196px;
  height: 196px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.gala-nov17-stanza {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  color: #ffffff;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  margin: 0 auto 30px;
  max-width: 680px;
}

.gala-nov17-line {
  display: block;
}

.gala-nov17-lead {
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.38;
}

.gala-nov17-title-line {
  font-size: clamp(25px, 2.95vw, 36px);
  font-weight: 500;
  line-height: 1.32;
  margin: 2px 0;
}

.gala-nov17-date {
  font-size: clamp(22px, 2.45vw, 30px);
  line-height: 1.42;
}

.gala-nov17-date sup {
  font-size: 0.62em;
  vertical-align: super;
  line-height: 0;
}

.gala-nov17-venue {
  font-size: clamp(20px, 2.15vw, 27px);
  line-height: 1.46;
  margin-bottom: 34px;
}

.gala-nov17-sponsors {
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.gala-nov17-tree-wrap {
  margin: 6px auto 0;
}

.gala-nov17-tree {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

/* Homepage Video Section: clean aspect ratio & reliable play button */
body.classic-site #videoSection .videoWrapper {
  position: relative;
  background: #000000;
  overflow: hidden;
}

body.classic-site #videoSection #OnclickvideoIDMob {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
}

body.classic-site #videoSection .video-play-button {
  border: none;
  cursor: pointer;
}

body.classic-site #videoSection.is-playing .js-poster-video-wrap,
body.classic-site #videoSection.is-playing #videoPlayButton {
  display: none !important;
}

/* Homepage Architectural Gallery: Uncropped 16:10 framing */
body.classic-site #SliderSection {
  background-color: #ffffff;
}

body.classic-site .ImgSliderWrap {
  padding-top: 62.5%;
  background-color: #f4f7fa;
  border-radius: 2px;
}

body.classic-site .ImgSliderWrap img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  object-position: center center;
  background-color: #f4f7fa;
}

/* Experience Section light surface without Locomotive Scroll */
body.classic-site #experienceSection {
  position: relative;
  z-index: 1;
}

body.classic-site #experienceSection .bg-gray-light {
  position: absolute;
  inset: 0;
  background-color: #edf2f6;
  z-index: -1;
}

/* Latest News Section on Homepage (uses enhanced WebP + photo-focus.css crops) */
.classic-latest-news {
  padding: 5.5rem 0 4.5rem;
  background-color: #f6fafe;
  border-top: 1px solid #e6eef4;
  border-bottom: 1px solid #e6eef4;
}

.classic-latest-news-header {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.classic-latest-news-header h2 {
  font-size: 28px;
  color: #3c3c3c;
  margin-bottom: 14px;
}

.classic-latest-news-header p {
  color: #555555;
  font-size: 16px;
  line-height: 1.65;
}

.classic-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.classic-news-card {
  background: #ffffff;
  border: 1px solid #e3ebf2;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.classic-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 24, 60, 0.08);
}

.classic-news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.classic-news-card .resourcesImg {
  margin-bottom: 0;
  background-color: #edf2f6;
}

.classic-news-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.classic-news-card-body .dateTime {
  color: #135a88;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.classic-news-card-body h4 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 19px;
  line-height: 1.35;
  color: #2d3748;
  text-transform: none;
  margin-bottom: 12px;
  max-width: none;
}

.classic-news-card-body p {
  color: #555555;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

.classic-news-more {
  margin-top: 2.2rem;
}

/* News index clickable cards */
body.classic-site .post-item {
  cursor: pointer;
}

/* Newsletter Form on Classic Homepage */
body.classic-site #joinPeaceMovementSec .newletterForm form {
  flex-wrap: wrap;
  gap: 12px;
}

body.classic-site #joinPeaceMovementSec .newletterForm form .input-field {
  flex: 1 1 280px;
  max-width: none;
}

body.classic-site #joinPeaceMovementSec .newletterForm form .input-btn {
  margin-left: 0;
}

.classic-form-status {
  width: 100%;
  margin-top: 10px;
  font-size: 14px;
  color: #1f2937;
}

#joinPeaceMovementSec .classic-form-status,
#joinPeaceMovementSec .classic-staging-note {
  color: #1f3647;
  font-size: 13.5px;
  margin-top: 10px;
}

/* Clean Light-Mode Styles for Semantic SEO & Contact Components on Inner Pages */
body.classic-site #sanctuary-facts {
  padding: 3.5rem 0;
  background-color: #f6fafe;
  border-top: 1px solid #e4ecf2;
  border-bottom: 1px solid #e4ecf2;
  margin-bottom: 3rem;
}

body.classic-site #sanctuary-facts .container {
  max-width: 980px;
}

body.classic-site .mg-facts {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 14px 28px;
  margin: 24px 0;
}

body.classic-site .mg-facts dt {
  font-weight: 600;
  color: #135a88;
}

body.classic-site .mg-facts dd {
  color: #4a4a4a;
  line-height: 1.6;
}

body.classic-site .mg-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  max-width: 520px;
}

body.classic-site .mg-contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: #3c3c3c;
  margin-top: 6px;
}

body.classic-site .mg-contact-form input,
body.classic-site .mg-contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: #333333;
  background: #ffffff;
}

body.classic-site .mg-contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

body.classic-site .mg-contact-form button[type="submit"] {
  margin-top: 12px;
  align-self: flex-start;
  background-color: #135a88;
  border-color: #135a88;
  color: #ffffff;
}

body.classic-site .mg-contact-form button[type="submit"]::after {
  background-color: #135a88;
}

body.classic-site .mg-site-map {
  columns: 2;
  column-gap: 48px;
  margin-top: 28px;
  list-style: none;
}

body.classic-site .mg-site-map li {
  break-inside: avoid;
  margin-bottom: 10px;
}

body.classic-site .mg-stage-banner,
body.classic-site .mg-staging-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a5f;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  margin: 16px 0;
}

body.classic-site .classic-stage-disclosure {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2eaf0;
  font-size: 12.5px;
  color: #5a6b7c;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
  body.classic-site .logoWrap {
    margin-right: 24px;
  }
  body.classic-site .translateGlobe {
    margin-right: 24px;
  }
}

@media (max-width: 991px) {
  .classic-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.classic-site .logoWrap a img.foundation-logo-mark {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  body.classic-site .logo-text {
    font-size: 15px;
    line-height: 1.18;
  }

  body.classic-site .headerIcons .button.btn.donate-blue-btn {
    min-width: 110px;
    min-height: 42px;
    font-size: 12.5px;
    padding: 0 16px;
  }

  .gala-nov17-section {
    padding: 1rem 0 3.5rem;
  }

  .gala-nov17-card {
    padding: 10px;
  }

  .gala-nov17-inner {
    padding: 32px 20px 30px;
  }

  .gala-nov17-emblem {
    width: 148px;
    height: 148px;
  }

  .gala-nov17-tree {
    width: 78px;
    height: 78px;
  }

  .classic-news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.classic-site .mg-facts {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.classic-site .mg-site-map {
    columns: 1;
  }
}
