/* Homepage tuned to the owner-approved reference */
html,body{max-width:100%;overflow-x:hidden}
body,button,input,select,textarea,.brand-copy .brand-th,.brand-copy h1,.hero h2,.section h2,.footer-main h2,.nav-links a small,.quick small,.back-to-top small{font-family:"Sarabun",sans-serif}
header{display:contents}
.brand{min-height:185px;padding:13px 0}.brand:before{content:"";position:absolute;inset:0 -20vw;background:radial-gradient(circle at 73% 70%,rgba(255,218,83,.32),transparent 18%),linear-gradient(110deg,transparent 45%,rgba(79,142,198,.42),transparent 75%)}.brand:after{font-size:150px;color:rgba(255,221,124,.2)}.seal{width:148px;height:148px}.gold-line{height:132px;width:3px;background:linear-gradient(transparent,#fff2a6 20%,var(--gold) 50%,#fff2a6 80%,transparent);margin:0 24px}.brand-copy .brand-th{font-size:clamp(2.4rem,4.4vw,4rem);line-height:1.02;text-shadow:0 3px 0 #6f4400,0 0 10px rgba(255,234,138,.5)}.brand-copy h1{font-size:clamp(1.45rem,2.55vw,2.35rem);text-shadow:0 2px 3px #001a35}.social,.lang-switch{border-width:2px;box-shadow:0 0 12px rgba(255,203,69,.4)}.nav{border-top:3px solid #f6d365}.nav-links{border-width:3px;border-radius:40px;padding:5px 8px;background:linear-gradient(#0a3d6b,#041f3e);box-shadow:inset 0 0 0 1px #ffe99a,0 0 10px rgba(255,200,40,.35)}.nav-links a{padding:8px 10px;border-right-width:2px;grid-template-columns:36px 1fr}.nav-links a.active{border-radius:29px;box-shadow:inset 0 0 0 2px white,0 3px 7px #001830}.nav-icon{font-size:29px}.hero-reference{height:23.2vw;min-height:270px;max-height:388px;position:relative;overflow:hidden;background:#d9f3ff;border-bottom:5px solid #e3ad25}.hero-reference>img{position:absolute;width:100%;height:auto;top:-16.15vw;left:0;display:block}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.quick{background:#fffdf7;padding:24px 0}.quick .money-emoji{font-size:34px;filter:drop-shadow(0 2px 1px rgba(90,55,0,.22))}
@media(max-width:980px){.brand{min-height:120px}.seal{width:90px;height:90px}.gold-line{height:80px;margin:0 14px}.hero-reference{height:31vw;min-height:255px}.hero-reference>img{width:132%;max-width:none;left:-16%;top:-18vw}}
@media(max-width:620px){.hero-reference{height:62vw;min-height:285px}.hero-reference>img{width:205%;left:-52%;top:-19vw}.brand{min-height:105px}.seal{width:78px;height:78px}.gold-line{height:70px}.brand-copy .brand-th{font-size:1.45rem}.brand-copy h1{font-size:.8rem}}

.back-to-top{position:fixed;right:24px;bottom:24px;z-index:50;width:64px;height:64px;border-radius:50%;border:2px solid #ffe88c;background:linear-gradient(145deg,#f6ce55,#c98712);color:#082e55;box-shadow:0 7px 22px rgba(0,28,58,.35),inset 0 0 0 2px rgba(255,255,255,.55);display:grid;place-content:center;gap:0;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(18px);transition:opacity .25s,transform .25s,visibility .25s}.back-to-top.show{opacity:1;visibility:visible;transform:translateY(0)}.back-to-top:hover,.back-to-top:focus-visible{background:linear-gradient(145deg,#fff17f,#dda51d);transform:translateY(-3px);outline:3px solid rgba(255,213,72,.35);outline-offset:3px}.back-to-top span{font:700 28px/22px Arial}.back-to-top small{font:600 12px/16px "Noto Sans Thai",sans-serif}@media(max-width:620px){.back-to-top{right:14px;bottom:14px;width:56px;height:56px}}
.nav-icon.nav-emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:27px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.28));text-shadow:none}.nav-links a.active .nav-emoji{filter:drop-shadow(0 1px 0 rgba(255,255,255,.35))}
.nav-picture{width:38px;height:42px;display:grid;place-items:center;overflow:visible;background:transparent;border:0;box-shadow:none}.nav-picture img{display:block;max-width:100%;max-height:100%;object-fit:contain}.home-temple-picture img{width:40px;height:34px}.chedi-picture img{width:25px;height:42px}.monk-picture img{width:38px;height:39px}.nav-links a.dhamma-nav{grid-template-columns:50px 1fr;padding-left:5px;padding-right:5px}.dhamma-wheel-picture{width:46px;height:46px}.dhamma-wheel-picture img{width:46px;height:46px;max-width:none;max-height:none}.nav-links a.active .nav-picture{background:transparent;border:0;box-shadow:none}@media(max-width:980px){.nav-links a.dhamma-nav{grid-template-columns:50px 1fr;padding-left:10px;padding-right:10px}}
.content-feature{display:grid;grid-template-columns:150px 1fr;gap:32px;align-items:center;padding:34px;border:1px solid #ead9b2;background:#fff;border-radius:18px}.content-feature>img{width:130px;height:130px;object-fit:contain}.content-feature h3{font-size:1.55rem;margin:0}.linked-cards{grid-template-columns:repeat(4,1fr)}.linked-cards>a{padding:26px;border:1px solid #e5d3aa;border-radius:16px;box-shadow:0 10px 30px rgba(31,39,49,.08);text-decoration:none;color:var(--ink);background:#fff;transition:.2s}.linked-cards>a:hover,.linked-cards>a:focus-visible{transform:translateY(-4px);border-color:#c58b16}.linked-cards b{font-size:44px;color:#c48712}.linked-cards h3{margin:.2em 0}.section-action{margin-top:28px}.btn.light{background:#fff;color:#07345e;border:2px solid #e7bd49}.legacy-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:28px}.legacy-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;border:2px solid #e0b43b;background:#fff}.source-note{border-left:4px solid #d9a72e;padding:10px 14px;background:#fff7d9}.event-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:24px}.event-grid article{display:grid;grid-template-columns:92px 1fr;align-items:center;border:1px solid #ead7a8;border-radius:12px;background:#fff;padding:14px 16px;box-shadow:0 5px 16px rgba(24,42,61,.06)}.event-grid time{color:#8c5b00;font-weight:700;font-size:1.12rem}.event-grid span{font-weight:600}.info-card strong{color:#ffe38b}@media(max-width:980px){.linked-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.content-feature{grid-template-columns:86px 1fr;padding:22px;gap:18px}.content-feature>img{width:82px;height:82px}.legacy-gallery{grid-template-columns:repeat(2,1fr)}.event-grid{grid-template-columns:1fr}.event-grid article{grid-template-columns:78px 1fr}}@media(max-width:460px){.linked-cards{grid-template-columns:1fr}.legacy-gallery{grid-template-columns:1fr}.content-feature{grid-template-columns:1fr}.content-feature>img{margin:auto}}
.footer-links a,.legacy-contact a{display:flex;align-items:center;gap:10px}.contact-image{position:relative;display:inline-block;flex:0 0 34px;width:34px;height:34px;border-radius:50%;overflow:hidden;background:#9b3f00}.contact-image img{position:absolute;left:50%;top:50%;height:auto;max-width:none;transform:translate(-50%,-50%)}.contact-image.phone img{width:56px}.contact-image.email img{width:50px}.contact-image.website img{width:64px}
/* Detailed golden Dhammachakra used consistently on every Dhamma article card. */
.linked-cards b{display:block;width:56px;height:56px;font-size:0;background:url("assets/dhammachakra-gold-v2-transparent.png") center/contain no-repeat}

/* Public-service and funding overview on the home page. */
.grant-home{padding-top:68px;background:linear-gradient(135deg,#f6f9fc,#fff9e9)}
.grant-home-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:28px;align-items:stretch}
.grant-home-about,.grant-home-mission{border:1px solid #dec273;border-radius:22px;padding:clamp(26px,4vw,42px);background:#fff;box-shadow:0 14px 34px rgba(7,52,94,.09)}
.grant-home-about h2,.grant-home-mission h2{margin-top:0}.grant-home-mission h2{font-size:clamp(2rem,3vw,2.35rem)}
.grant-home-about p{line-height:1.86}
.grant-home-mission{position:relative;overflow:hidden;background:linear-gradient(145deg,#07345e,#0b4b7d);color:#fff;border-top:6px solid #e2b53a}
.grant-home-mission .eyebrow,.grant-home-mission h2{color:#ffd967}
.grant-home-mission p{position:relative;z-index:1;line-height:1.9}
.mission-mark{position:absolute;right:-24px;bottom:-42px;font-size:190px;color:rgba(255,255,255,.055)}
.grant-home-badges{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px;position:relative;z-index:1}
.grant-home-badges span{border:1px solid #e9c557;border-radius:999px;padding:6px 12px;color:#ffe593;font-weight:700;font-size:.86rem}
@media(max-width:820px){.grant-home-grid{grid-template-columns:1fr}.grant-home{padding-top:50px}}

/* Use a real image instead of the Unicode wheel. Safari/iOS otherwise renders
   the symbol as a large purple emoji that obscures the card content. */
.seal-watermark,
.mission-mark{
  width:104px;
  height:104px;
  right:18px;
  bottom:18px;
  font-size:0;
  color:transparent;
  background:url("assets/dhammachakra-gold-v2-transparent.png") center/contain no-repeat;
  opacity:.12;
  pointer-events:none;
}
.info-card>h3,
.info-card>p,
.grant-home-mission>p,
.grant-home-badges{position:relative;z-index:1}

@media(max-width:820px){
  .seal-watermark,
  .mission-mark{right:14px;bottom:14px;width:72px;height:72px;opacity:.1}
  .info-card,
  .grant-home-mission{padding-bottom:34px}
}
@media(max-width:620px){
  .info-card,
  .grant-home-mission{padding:24px}
  .info-card h3{font-size:1.35rem;line-height:1.35}
  .info-card p,
  .grant-home-mission p{font-size:1rem;line-height:1.75;overflow-wrap:anywhere}
  .seal-watermark,
  .mission-mark{width:58px;height:58px;right:12px;bottom:12px;opacity:.09}
  .event-grid article{grid-template-columns:70px minmax(0,1fr);padding:13px 12px}
  .event-grid span{min-width:0;overflow-wrap:anywhere}
}

/* Refined hero: full new artwork, gentle reveal and restrained gold glints. */
.hero-reference{aspect-ratio:3/1;height:auto;min-height:0;max-height:none;position:relative;overflow:hidden;background:#082d54;border-bottom:5px solid #e3ad25;isolation:isolate}
.hero-reference>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block;opacity:0;transform:scale(1.018);animation:hero-reveal 1.35s cubic-bezier(.22,.8,.22,1) .08s forwards}
.hero-reference:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(105deg,transparent 8%,rgba(255,242,174,.18) 17%,transparent 26%);transform:translateX(-120%);animation:hero-glow 7s ease-in-out 1.8s infinite}
.hero-sparkle{position:absolute;z-index:2;width:7px;height:7px;border-radius:50%;background:#fff9c9;box-shadow:0 0 7px 2px rgba(255,221,102,.8),0 0 18px 5px rgba(255,190,50,.35);opacity:0;pointer-events:none;animation:hero-twinkle 4.8s ease-in-out infinite}
.hero-sparkle:before,.hero-sparkle:after{content:"";position:absolute;left:50%;top:50%;background:linear-gradient(transparent,#fffbe1,transparent);transform:translate(-50%,-50%)}
.hero-sparkle:before{width:1px;height:24px}.hero-sparkle:after{width:24px;height:1px}
.hero-sparkle-one{left:8.3%;top:12%;animation-delay:1.4s}.hero-sparkle-two{left:45%;top:27%;animation-delay:3.1s;transform:scale(.72)}.hero-sparkle-three{right:17%;top:45%;animation-delay:4.7s;transform:scale(.58)}
@keyframes hero-reveal{to{opacity:1;transform:scale(1)}}
@keyframes hero-glow{0%,58%,100%{transform:translateX(-120%);opacity:0}68%{opacity:.55}82%{transform:translateX(120%);opacity:0}}
@keyframes hero-twinkle{0%,72%,100%{opacity:0;filter:blur(.3px)}78%{opacity:.85}84%{opacity:.2}89%{opacity:.72}94%{opacity:0}}
@media(max-width:980px){.hero-reference{aspect-ratio:2.15/1;height:auto;min-height:0}.hero-reference>img{inset:0;width:100%;height:100%;object-position:46% center}.hero-sparkle-three{display:none}}
@media(max-width:620px){.hero-reference{aspect-ratio:1.55/1;height:auto;min-height:0}.hero-reference>img{inset:0 auto 0 -11%;width:155%;height:100%;object-position:left center}.hero-reference:after,.hero-sparkle-two{display:none}}
@media(prefers-reduced-motion:reduce){.hero-reference>img{animation:none;opacity:1;transform:none}.hero-reference:after,.hero-sparkle{animation:none;display:none}}

/* High-contrast Zelle details, especially for iPhone automatic phone links. */
.donate-card .donate-phone,
.donate-card .donate-phone:link,
.donate-card .donate-phone:visited{
  color:#fff;
  font-size:clamp(1.85rem,3vw,2.35rem);
  font-weight:800;
  line-height:1.2;
  text-decoration:none;
  letter-spacing:.01em;
  white-space:nowrap;
  text-shadow:0 2px 8px rgba(0,0,0,.28);
  -webkit-text-fill-color:#fff;
}
.donate-card .donate-name{
  color:#ffe28a;
  font-size:clamp(1.05rem,1.8vw,1.3rem);
  font-weight:700;
  line-height:1.35;
  margin-top:8px;
}
@media(max-width:620px){
  .donate-card{padding:34px 20px;gap:12px}
  .donate-card strong{font-size:2.7rem}
  .donate-card .donate-phone,
  .donate-card .donate-phone:link,
  .donate-card .donate-phone:visited{font-size:clamp(1.8rem,8vw,2.15rem)}
  .donate-card .donate-name{font-size:1.16rem;max-width:280px;margin:4px auto 0}
}
.footer-links .footer-facebook{
  width:min(100%,360px);
  margin-top:10px;
  padding:10px 18px;
  border:3px solid #8bc4ff;
  border-radius:999px;
  background:#1877f2;
  color:#fff;
  font-size:1.05rem;
  font-weight:700;
  justify-content:flex-start;
  box-shadow:0 7px 18px rgba(0,20,50,.22);
}
.footer-links .footer-facebook span{
  flex:0 0 42px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#1877f2;
  font:800 30px/1 Arial,sans-serif;
}
.footer-links .footer-facebook b{line-height:1.35}
@media(max-width:620px){
  .footer-links .footer-facebook{width:100%;font-size:1rem;padding:9px 14px}
}

/* Removed the former-site migration notice from the public calendar. */
.source-note{display:none}

/* Useful replacement for the former decorative location card. */
.weather-card{
  min-height:280px;
  padding:30px;
  text-decoration:none;
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg,#0b4776 0%,#1789c2 56%,#f0c451 100%);
  color:#fff;
  border:2px solid #e4b743;
  transition:transform .2s ease,box-shadow .2s ease;
}
.weather-card:hover,
.weather-card:focus-visible{transform:translateY(-4px);box-shadow:0 18px 42px rgba(0,38,74,.25);outline:3px solid rgba(228,183,67,.35);outline-offset:3px}
.weather-card p{color:#fff;font-size:1.8rem;margin:12px 0 0;line-height:1.25}
.weather-card strong{font-size:1.3rem;color:#fff}
.weather-card small{display:block;margin-top:8px;color:#fff3bd;font-size:.95rem}
.weather-sun{
  width:78px;
  height:78px;
  border-radius:50%;
  background:#ffd75e;
  box-shadow:0 0 0 10px rgba(255,226,123,.18),0 0 35px rgba(255,222,91,.58);
}
@media(max-width:620px){
  .weather-card{min-height:245px;padding:26px 20px}
  .weather-card p{font-size:1.65rem}
  .weather-card strong{font-size:1.18rem}
  .weather-sun{width:66px;height:66px}
}

/* Live National Weather Service data. */
.weather-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  text-align:left;
  cursor:default;
}
.weather-card:hover{transform:none}
.weather-heading{display:flex;align-items:center;gap:16px}
.weather-heading p{margin:0;font-size:1.55rem}
.weather-heading strong{display:block;font-size:1rem;color:#fff3bd}
.weather-icon{
  flex:0 0 76px;
  width:76px;
  height:76px;
  object-fit:cover;
  border-radius:50%;
  background:#ffd75e;
  box-shadow:0 0 0 8px rgba(255,226,123,.16),0 0 28px rgba(255,222,91,.4);
}
.weather-icon:not([src]){background:radial-gradient(circle,#ffd75e 0 45%,transparent 47%),linear-gradient(145deg,#4fa6d4,#0b4776)}
.weather-live{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center;padding:13px 0;border-top:1px solid rgba(255,255,255,.28);border-bottom:1px solid rgba(255,255,255,.28)}
.weather-temp{font-size:clamp(2.7rem,5vw,4.2rem);font-weight:800;line-height:1;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.22)}
.weather-summary{display:grid;gap:4px;min-width:0}
.weather-summary strong{font-size:1.15rem;line-height:1.35}
.weather-summary small{margin:0;color:#fff;font-size:.94rem;line-height:1.45}
.weather-updated{margin:0!important;color:#fff3bd!important;font-size:.87rem!important}
.weather-source{position:absolute;right:15px;bottom:10px;margin:0!important;color:rgba(255,255,255,.72)!important;font-size:.72rem!important}
.weather-error .weather-temp{display:none}
.weather-error .weather-live{grid-template-columns:1fr}
@media(max-width:620px){
  .weather-card{min-height:300px;padding:24px 20px;gap:14px}
  .weather-heading p{font-size:1.45rem}
  .weather-icon{flex-basis:64px;width:64px;height:64px}
  .weather-live{gap:14px}
  .weather-temp{font-size:3rem}
  .weather-summary strong{font-size:1.08rem}
  .weather-summary small{font-size:.9rem}
}
