/* Shared visual scale for the refreshed homepage, loaded after its section styles. */
:root {
  --hphc-purple: #6242a6;
  --hphc-purple-hover: #4d3287;
  --hphc-deep-purple: #30213f;
  --hphc-ink: #342b43;
  --hphc-muted: #655d73;
  --hphc-wash: #faf8fe;
  --hphc-border: #e6def1;
  --hphc-width: 1120px;
  --hphc-gutter: clamp(20px, 4vw, 40px);
  --hphc-section-space: clamp(44px, 5vw, 72px);
  --hphc-heading-size: clamp(28px, 2.6vw, 38px);
  --hphc-page-title-size: clamp(30px, 3.2vw, 40px);
  --hphc-section-title-size: var(--hphc-heading-size);
  --hphc-card-title-size: clamp(21px, 2vw, 24px);
  --hphc-radius: 20px;
}

html { scroll-padding-top: 112px; }
.page-home { background: #fff; color: var(--hphc-ink); }
.header-main, .mobile-menu-bar { background-color: var(--hphc-deep-purple); }
.header-main .social-bar { height: 32px; padding-inline: max(var(--hphc-gutter), calc((100% - 1120px) / 2)); background-color: #30213f; }
.header-main .social-bar .social-icon { margin: 0 0 0 10px; }
.header-main .social-bar .social-icon > img { width: 24px; height: 24px; }
.whaf-language-switch button[aria-pressed="true"] { background: var(--hphc-purple); }

.page-home .hphc-home-name {
  padding: 28px var(--hphc-gutter) 12px;
  background: #fff;
  border: 0;
  color: var(--hphc-purple);
}
.page-home .hphc-home-name h1 { max-width: var(--hphc-width); margin: 0 auto 8px; font-size: clamp(23px, 2.2vw, 30px); line-height: 1.45; }
.page-home .hphc-home-name p { margin: 0; font-size: clamp(15px, 1.4vw, 18px); color: var(--hphc-muted); }
html[lang="en"] .page-home .hphc-home-name p { max-width: var(--hphc-width); margin: 0 auto 8px; font-size: clamp(23px, 2.2vw, 30px); color: var(--hphc-purple); }
html[lang="en"] .page-home .hphc-home-name { align-items: center; }
html[lang="en"] .page-home .hphc-home-name h1 { width: 100%; margin: 0 auto; font-size: 15px; color: var(--hphc-muted); }
#top { padding: 12px var(--hphc-gutter) 0 !important; }
#top > .row.column { width: 100%; padding: 0; max-width: var(--hphc-width); margin-left: auto; margin-right: auto; }
.hphc-home-banner { max-width: var(--hphc-width); margin: 0 auto; grid-template-columns: 55% 45%; color: var(--hphc-purple); }
.hphc-hero-photos { position: relative; aspect-ratio: 841 / 578; }
.hphc-hero-photos img { position: absolute; width: 190.249703%; max-width: none; height: auto; left: -8.561237%; top: -12.629758%; }
.hphc-hero-copy { padding: 24px 12px 24px 28px; }
.hphc-hero-copy h2 { font-size: clamp(38px, 4.5vw, 64px); font-weight: 600; line-height: 1.2; margin-bottom: 16px; }
html[lang="en"] .hphc-hero-copy h2 { font-size: clamp(36px, 4vw, 58px); }
.hphc-hero-copy p { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.6; }

#about.hphc-about { padding: var(--hphc-section-space) var(--hphc-gutter) 0; }
.hphc-about-card { max-width: var(--hphc-width); padding: clamp(28px, 3vw, 40px); }
.hphc-about-card::before { background: var(--hphc-purple); border-top-left-radius: 64px; border-bottom-left-radius: 64px; }
.hphc-about-copy { font-size: clamp(20px, 2vw, 27px); line-height: 1.65; font-weight: 600; }
.hphc-about-footer { gap: 28px; margin-top: 16px; }
.hphc-about-nature { max-width: 640px; }
.hphc-about-footer .button { border-radius: 100px; padding: 13px 22px; font-size: 15px; line-height: 1.5; }

#what.hphc-work, #news.hphc-news { padding: var(--hphc-section-space) var(--hphc-gutter); }
#what.hphc-work { padding-bottom: calc(var(--hphc-section-space) * .65); }
#news.hphc-news { padding-top: calc(var(--hphc-section-space) * .8); }
.hphc-work-inner, .hphc-news-inner, .hphc-resources-inner, .hphc-footer-inner { max-width: var(--hphc-width); }
.hphc-work-heading { margin-bottom: 32px; }
.hphc-work-heading h2, .hphc-resource-heading h2, .hphc-news-heading h2 {
  color: var(--hphc-purple);
  font-size: var(--hphc-heading-size);
  font-weight: 600;
  line-height: 1.35;
}
.hphc-work-heading p, .hphc-resource-intro { color: var(--hphc-muted); font-size: 18px; line-height: 1.8; }
.hphc-work-grid, .hphc-news-grid { gap: 24px; }
.hphc-work-card, .hphc-news-card, .hphc-resource-card { border: 1px solid var(--hphc-border); border-radius: var(--hphc-radius); box-shadow: 0 4px 18px rgba(50,21,63,.035); }
.hphc-work-card > img, .hphc-news-image img { aspect-ratio: 16 / 10; }
.hphc-work-card-body { padding: 24px; }
.hphc-work-card-body h3 { color: var(--hphc-purple); font-size: 24px; line-height: 1.4; }
.hphc-work-card-body p { color: var(--hphc-muted); font-size: 17px; line-height: 1.75; }
.hphc-news-heading { margin-bottom: 32px; }
.hphc-news-body { padding: 24px; }
.hphc-news-body h3 { color: var(--hphc-purple); font-size: 21px; line-height: 1.5; }
.hphc-news-summary { color: var(--hphc-muted); font-size: 16px; }
.hphc-news-date { color: var(--hphc-muted); font-size: 13px; }
.hphc-news-all, .hphc-news-more { color: var(--hphc-purple); }

#data.hphc-resources {
  padding: calc(var(--hphc-section-space) * .65) var(--hphc-gutter) !important;
  background: #fff;
  color: var(--hphc-ink);
  border: 0;
}
.hphc-resource-photo {
  left: max(var(--hphc-gutter), calc((100% - 1120px) / 2));
  top: 20px;
  width: clamp(150px, 19vw, 240px);
  opacity: .7;
  -webkit-mask-image: radial-gradient(ellipse at 45% 45%, #000 42%, transparent 75%);
  mask-image: radial-gradient(ellipse at 45% 45%, #000 42%, transparent 75%);
}
.hphc-resource-leaves { right: max(var(--hphc-gutter), calc((100% - 1120px) / 2)); width: 120px; opacity: .35; }
.hphc-resource-heading { width: 66%; max-width: 760px; min-height: 160px; margin: 0 auto 32px; }
.hphc-resource-eyebrow { color: var(--hphc-purple); font-size: 11px; letter-spacing: .13em; }
.hphc-resource-grid { gap: 20px; }
.hphc-resource-card { grid-template-columns: 56px minmax(0, 1fr) 28px; padding: 24px 20px; gap: 10px; min-height: 152px; background: var(--hphc-wash); color: var(--hphc-purple); }
.hphc-resource-card-copy h3 { color: var(--hphc-purple); font-size: 22px; line-height: 1.4; }
.hphc-resource-card-copy > span { color: var(--hphc-muted); font-size: 15px; line-height: 1.7; }
.hphc-resource-icon { width: 56px; height: 56px; }
.hphc-resource-waves {
  height: 72px;
  opacity: .16;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent);
}
.hphc-resource-action { margin-top: 32px; }
.hphc-resource-button.button, .hphc-donation-button {
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 100px;
  background: var(--hphc-purple);
  box-shadow: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.hphc-resource-button.button:hover, .hphc-donation-button:hover { background: var(--hphc-purple-hover); color: #fff; }

#contact.hphc-donation { display: block; padding: 0 var(--hphc-gutter) var(--hphc-section-space); }
.hphc-donation-panel { width: 100%; max-width: var(--hphc-width); border-radius: var(--hphc-radius); background: var(--hphc-wash); padding: 40px; gap: 32px; }
.hphc-donation-copy h2 { color: var(--hphc-purple); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.4; }
.hphc-donation-copy p { color: var(--hphc-muted); font-size: 18px; }
.hphc-donation-action p { color: var(--hphc-muted); font-size: 13px; }
#map.hphc-site-footer { padding: 48px var(--hphc-gutter) 0; background: var(--hphc-deep-purple); }
.hphc-footer-grid { gap: 40px; }
.hphc-footer-brand h2 { font-size: 23px; }

@media (min-width: 1200px) {
  .header-main nav { align-items: center; width: calc(100% - 2 * var(--hphc-gutter)); max-width: var(--hphc-width); margin: 0 auto; padding: 0; min-height: 80px; }
  .header-main .logo { align-self: center; }
  .header-main nav > ul { flex: 1; flex-wrap: nowrap; justify-content: center; }
  .header-main nav > ul > li > a { padding: 0 8px; line-height: 80px; font-size: 14px; }
}
@media (min-width: 641px) and (max-width: 1199px) {
  .header-main nav { align-items: center; width: calc(100% - 2 * var(--hphc-gutter)); margin: 0 auto; gap: 12px; min-height: 104px; padding: 12px 0; }
  .header-main .logo { align-self: center; min-width: 72px; height: 60px; }
  .header-main nav > ul { flex: 1; display: grid; grid-template-columns: repeat(4, max-content); justify-content: center; column-gap: 16px; }
  .header-main nav > ul > li > a { padding: 0; line-height: 36px; font-size: 14px; }
  .header-main nav > .whaf-language-switch { margin: 0; }
}
@media (min-width: 641px) and (max-width: 767px) {
  .header-main nav > ul { grid-template-columns: repeat(3,max-content); column-gap: 12px; }
  .header-main nav > ul > li > a { font-size: 12px; }
}

@media (max-width: 1199px) {
  .hphc-resource-heading { width: 70%; margin-left: 24%; }
}
@media (max-width: 767px) {
  .hphc-resource-heading { width: 100%; max-width: 660px; min-height: 0; margin-left: auto; }
  .hphc-resource-photo { width: 150px; opacity: .15; }
  .hphc-resource-leaves { opacity: .18; width: 90px; }
  .hphc-donation-panel { padding: 32px; }
}
@media (max-width: 639px) {
  html { scroll-padding-top: 64px; }
  .page-home .hphc-home-name { padding: 24px 20px 12px; }
  .page-home .hphc-home-name h1 { font-size: 23px; }
  html[lang="en"] .page-home .hphc-home-name p { font-size: 23px; }
  #top { padding: 0 20px !important; }
  .hphc-home-banner { grid-template-columns: 1fr; }
  .hphc-hero-copy { padding: 4px 0 12px; }
  .hphc-hero-copy h2, html[lang="en"] .hphc-hero-copy h2 { font-size: 38px; }
  .hphc-hero-copy p { font-size: 21px; }
  .hphc-about-card { padding: 28px 24px; }
  .hphc-about-card::before { border-top-left-radius: 36px; border-bottom-left-radius: 36px; }
  .hphc-about-copy { font-size: 19px; line-height: 1.75; }
  .hphc-about-footer { gap: 0; margin-top: 0; }
  .hphc-work-heading { text-align: center; margin-bottom: 28px; }
  .hphc-work-heading p, .hphc-resource-intro { font-size: 17px; }
  .hphc-work-card-body, .hphc-news-body { padding: 20px; }
  .hphc-work-card-body h3 { font-size: 23px; }
  .hphc-resource-heading { margin-bottom: 28px; }
  .hphc-resource-card { min-height: 124px; padding: 20px; }
  .hphc-resource-heading h2 { margin-bottom: 12px; }
  .hphc-donation-panel { padding: 28px 24px; }
  .hphc-donation-copy h2 { font-size: 28px; }
  .hphc-donation-copy p { font-size: 17px; }
}
#what.hphc-work-brief .hphc-work-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; text-align: left; position: relative; padding: 20px 0 44px;
}
#what.hphc-work-brief .hphc-work-visual { position: relative; min-width: 0; height: 510px; background: #c6b2d9; padding: 26px 56px 64px 26px; border-radius: 88px 0 0 0; }
.hphc-work-photo-main { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; border-radius: 62px 0 0 0; }
.hphc-work-photo-detail { position: absolute; width: 46%; height: 220px; right: -12px; bottom: -24px; object-fit: cover; border: 8px solid #fff; border-radius: 80px 0 28px 0; }
.hphc-work-orbit { position: absolute; bottom: 24px; left: 28px; width: 64px; height: 64px; border: 1px solid #c6b2d9; border-radius: 50%; pointer-events: none; }
.hphc-work-orbit::after { content: ''; position: absolute; width: 64px; height: 64px; left: 26px; top: 0; border: 1px solid #c6b2d9; border-radius: 50%; }
#what.hphc-work-brief .hphc-work-panel { position: relative; z-index: 1; background: #eee6f4; margin: 68px 0 0 -36px; padding: clamp(28px,3.5vw,48px); border-radius: 0 36px 36px 0; }
#what.hphc-work-brief .hphc-work-heading { text-align: left; margin: 0 0 22px; }
#what.hphc-work-brief .hphc-work-heading::before { content: ''; display: block; width: 42px; height: 4px; background: #a78bce; margin-bottom: 22px; }
#what.hphc-work-brief h2 { font-size: clamp(32px,3.4vw,44px); }
#what.hphc-work-brief .hphc-work-copy { margin: 0; max-width: none; }
#what.hphc-work-brief .hphc-work-copy p { font-size: 18px; line-height: 1.9; color: #51495f; }
#what.hphc-work-brief .hphc-work-readmore { background: transparent; color: #6242a6; padding: 0 0 5px; min-height: 40px; border-radius: 0; border-bottom: 2px solid #ae95d2; }
#what.hphc-work-brief .hphc-work-readmore:hover { border-color: #6242a6; }
@media(max-width:900px) {
  #what.hphc-work-brief .hphc-work-visual { height: 500px; padding-right: 26px; }
  #what.hphc-work-brief .hphc-work-panel { margin-left: -24px; padding: 28px; }
  .hphc-work-photo-detail { width: 60%; }
}
@media(max-width:639px) {
  #what.hphc-work-brief .hphc-work-inner { grid-template-columns: 1fr; padding: 0; }
  #what.hphc-work-brief .hphc-work-visual { height: 310px; padding: 18px 48px 40px 18px; border-radius: 60px 0 0 0; }
  .hphc-work-photo-main { border-radius: 42px 0 0 0; }
  .hphc-work-photo-detail { width: 42%; height: 150px; right: 12px; bottom: -8px; border-width: 6px; border-radius: 50px 0 20px 0; }
  .hphc-work-orbit { transform: scale(.65); transform-origin: left bottom; bottom: 10px; left: 18px; }
  #what.hphc-work-brief .hphc-work-panel { margin: 0 0 0 16px; padding: 30px 24px; border-radius: 0 0 28px 28px; }
  #what.hphc-work-brief .hphc-work-copy p { font-size: 17px; }
  #what.hphc-work-brief .hphc-work-readmore { font-size: 15px; gap: 12px; }
}
/* Shared editorial treatment for the lower homepage sections. */
#data.hphc-resources { padding-top: 32px !important; padding-bottom: 40px !important; }
#data .hphc-resource-photo, #data .hphc-resource-leaves, #data .hphc-resource-waves { display: none; }
#data .hphc-resources-inner { padding: clamp(28px,4vw,48px); border-radius: 0 48px 48px 48px; background: #eee6f4; border-top: 4px solid #c6b2d9; }
#data .hphc-resource-heading { width: 100%; max-width: none; min-height: 0; margin: 0 0 32px; text-align: left; padding-left: 22px; border-left: 4px solid #c6b2d9; }
#data .hphc-resource-eyebrow { justify-content: flex-start; margin-bottom: 10px; letter-spacing: .05em; }
#data .hphc-resource-eyebrow::before, #data .hphc-resource-eyebrow::after { display: none; }
#data .hphc-resource-heading h2 { font-size: clamp(30px,3vw,40px); line-height: 1.4; margin-bottom: 14px; }
#data .hphc-resource-intro { max-width: 800px; margin: 0; font-size: 17px; line-height: 1.85; }
#data .hphc-resource-grid { gap: 18px; }
#data .hphc-resource-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 18px; min-height: 240px; padding: 24px; background: #fff; border-radius: 0 24px 24px 24px; box-shadow: none; text-align: left; }
#data .hphc-resource-icon { width: 64px; height: 64px; flex-shrink: 0; }
#data .hphc-resource-card-copy h3 { font-size: 23px; margin-bottom: 8px; }
#data .hphc-resource-card-copy > span { font-size: 15px; }
#data .hphc-resource-arrow { position: absolute; top: 24px; right: 20px; width: 30px; height: 30px; background: #eee7f9; }
#data .hphc-resource-card:hover { border-color: #a58acb; transform: none; box-shadow: 0 4px 16px #5c1e7e0b; }
#data .hphc-resource-action { text-align: center; margin-top: 28px; }
#data .hphc-resource-button.button { background: #6242a6; color: #fff; border: 0; border-radius: 100px; padding: 16px 28px; min-height: 54px; box-shadow: none; }
#data .hphc-resource-button.button:hover { background: #4d3287; color: #fff; }
#news .hphc-news-heading { border-left: 4px solid #c6b2d9; padding-left: 22px; }
#news .hphc-news-heading h2 { font-size: clamp(30px,3vw,40px); }
#news .hphc-news-card { border-radius: 0 28px 28px 28px; box-shadow: none; }
#news .hphc-news-body { border-top: 3px solid #e1d6ef; }
#news .hphc-news-more, #news .hphc-news-all { border-bottom: 1px solid #c6b2d9; padding-bottom: 5px; }
#contact .hphc-donation-panel { position: relative; overflow: hidden; border-radius: 0 40px 40px 40px; border-left: 5px solid #7655aa; background: #eee6f4; }
#contact .hphc-donation-panel::after { content: ''; position: absolute; width: 220px; height: 220px; right: -100px; top: -140px; border: 1px solid #d3b9e2; border-radius: 50%; pointer-events: none; }
#contact .hphc-donation-copy, #contact .hphc-donation-action { position: relative; z-index: 1; }
@media(max-width:900px) { #data .hphc-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:639px) {
  #data .hphc-resources-inner { padding: 28px 20px; border-radius: 0 28px 28px 28px; }
  #data .hphc-resource-heading { padding-left: 16px; }
  #data .hphc-resource-card { padding: 20px 16px; min-height: 230px; gap: 14px; }
  #data .hphc-resource-grid { gap: 12px; }
  #data .hphc-resource-icon { width: 50px; height: 50px; }
  #data .hphc-resource-arrow { top: 20px; right: 12px; width: 24px; height: 24px; font-size: 16px; }
  #data .hphc-resource-card-copy h3 { font-size: 20px; }
  #data .hphc-resource-card-copy > span { font-size: 14px; }
  #news .hphc-news-heading { padding-left: 16px; }
  #contact .hphc-donation-panel { border-radius: 0 28px 28px 28px; }
}

/* Continuous spacing and soft transitions between homepage sections. */
#foundation-stats.hphc-impact { padding-bottom: 18px; }
#about.hphc-about { padding-top: 24px; }
#what.hphc-work-brief { padding-top: clamp(36px,4vw,56px); padding-bottom: 20px; }
#what.hphc-work-brief .hphc-work-inner { padding-bottom: 24px; }
#impact.fk-impact { padding-top: 24px; padding-bottom: 32px; }
#data.hphc-resources { padding-top: 24px !important; padding-bottom: 28px !important; }
#data .hphc-resources-inner { border-top: 0; background: linear-gradient(180deg,#eee6f4 0%,#f8f5fd 72%,#fff 100%); border-radius: 0 40px 24px 24px; }
#data .hphc-resource-action { margin-top: 24px; }
#news.hphc-news { padding-top: 32px; padding-bottom: 44px; }
#contact.hphc-donation { padding-top: 0; padding-bottom: 40px; background: linear-gradient(180deg,#fff 55%,#faf8fe 100%); }
#contact .hphc-donation-panel { background: linear-gradient(115deg,#eee6f4,#fcfaff); }
#map.hphc-site-footer { border-radius: 32px 32px 0 0; }
@media(max-width:639px) {
  #foundation-stats.hphc-impact { padding-bottom: 12px; }
  #about.hphc-about { padding-top: 20px; }
  #what.hphc-work-brief { padding-top: 32px; padding-bottom: 16px; }
  #what.hphc-work-brief .hphc-work-inner { padding-bottom: 0; }
  #impact.fk-impact { padding-top: 24px; padding-bottom: 24px; }
  #data.hphc-resources { padding-top: 16px !important; padding-bottom: 20px !important; }
  #news.hphc-news { padding-top: 24px; padding-bottom: 32px; }
  #contact.hphc-donation { padding-bottom: 28px; }
  #map.hphc-site-footer { border-radius: 24px 24px 0 0; }
}

/* Navigation type stays readable across all local preview pages. */
@media(min-width:1200px) {
  .header-main nav { max-width:1280px; gap:18px; }
  .header-main nav > ul { min-width:0; }
  .header-main nav > ul > li > a { font-family:Sarabun,sans-serif; font-size:16px; font-weight:600; padding:0 8px; white-space:nowrap; }
  .header-main nav > .whaf-language-switch { margin-left:0; }
}
@media(min-width:1200px) and (max-width:1359px) {
  .header-main nav { gap:12px; }
  .header-main nav > ul > li > a { font-size:15px; padding:0 6px; }
}
@media(min-width:768px) and (max-width:1199px) {
  .header-main nav > ul > li > a { font-family:Sarabun,sans-serif; font-size:15px; font-weight:600; }
}
@media(min-width:641px) and (max-width:767px) {
  .header-main nav > ul > li > a { font-size:14px; }
}
/* Featured news: stable-height slides and clear manual controls. */
.hphc-featured-slides { display: grid; grid-template-columns: minmax(0,1fr); }
.hphc-featured-slides .hphc-featured-story { grid-area: 1 / 1; min-width: 0; }
.hphc-featured-slides .hphc-featured-story[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
.hphc-featured-garden .hphc-featured-photo { object-position: center 40%; }
.hphc-featured-preview { display: inline-block; margin-top: 20px; color: #796b82; font-size: 13px; }
.hphc-featured-controls { display: flex; justify-content: center; padding: 18px 0 4px; }
.hphc-featured-dots { display: flex; align-items: center; justify-content: center; gap: 0; }
.hphc-featured-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.hphc-featured-dots button::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: #d4c6ea; transition: background .15s; }
.hphc-featured-dots button[aria-current="true"]::before { background: #6242a6; }
.hphc-featured-dots button:hover::before { background: #9a7bc2; }
.hphc-featured-dots button:focus-visible { outline: 2px solid #6242a6; outline-offset: 3px; }
@media (max-width:639px) {
 .hphc-featured-slides .hphc-featured-story[hidden] { display: block !important; }
 .hphc-featured-controls { padding-top: 16px; }
}
.hphc-featured-controls { gap:8px; }
/* Crossfade featured stories without moving the surrounding page. */
.hphc-featured-slides .hphc-featured-story {
  opacity:1;
  visibility:visible;
  transition:opacity .65s ease, visibility 0s;
}
.hphc-featured-slides .hphc-featured-story[hidden] {
  opacity:0;
  visibility:hidden;
  transition:opacity .65s ease, visibility 0s .65s;
}
@media (prefers-reduced-motion:reduce) {
  .hphc-featured-slides .hphc-featured-story,
  .hphc-featured-slides .hphc-featured-story[hidden] { transition:none; }
}

/* Modern lavender palette; navigation dimensions remain unchanged. */
.header-main, .mobile-menu-bar { background-color:#46315f; }
.header-main ul li ul { background-color:#46315f; }
.hphc-featured-panel { box-shadow:0 8px 30px rgba(72,47,105,.08); }
.hphc-featured-panel::after { background:#f4effb; border-color:#e7dcf4; }
.hphc-featured-label { background:#6242a6; }

/* Muted lavender reference, with nature lettering masked clear of its old background. */
:root { --hphc-lavender:#c6b2d9; --hphc-wash:#f6f2fa; }
.hphc-about-card::before { background:#c6b2d9; }
.hphc-about-copy { color:#352343; }
.hphc-about-footer .button { color:#fff; border-color:#6242a6; background:#6242a6; }
.hphc-about-footer .button:hover { background:#4d3287; border-color:#4d3287; }
.hphc-about-nature { -webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20900%20305%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22trim%22%3E%3CfeMorphology%20operator%3D%22erode%22%20radius%3D%221.6%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath%20filter%3D%22url(%23trim)%22%20fill%3D%22white%22%20fill-rule%3D%22evenodd%22%20d%3D%22M0%200H71V115H138V0H210V305H138V182H71V305H0Z%20M230%200H340C400%200%20435%2038%20435%20100S400%20193%20340%20193H301V305H230Z%20M301%2067V143H332C355%20143%20363%20129%20363%20105S355%2067%20332%2067Z%20M446%200H517V115H584V0H656V305H584V182H517V305H446Z%20M900%20126H830C830%2084%20817%2063%20791%2063C762%2063%20747%2093%20747%20152S762%20242%20791%20242C817%20242%20830%20221%20830%20178H900C900%20263%20861%20305%20791%20305C716%20305%20676%20254%20676%20152S716%200%20791%200C861%200%20900%2042%20900%20126Z%22%2F%3E%3C%2Fsvg%3E"); mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20900%20305%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22trim%22%3E%3CfeMorphology%20operator%3D%22erode%22%20radius%3D%221.6%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath%20filter%3D%22url(%23trim)%22%20fill%3D%22white%22%20fill-rule%3D%22evenodd%22%20d%3D%22M0%200H71V115H138V0H210V305H138V182H71V305H0Z%20M230%200H340C400%200%20435%2038%20435%20100S400%20193%20340%20193H301V305H230Z%20M301%2067V143H332C355%20143%20363%20129%20363%20105S355%2067%20332%2067Z%20M446%200H517V115H584V0H656V305H584V182H517V305H446Z%20M900%20126H830C830%2084%20817%2063%20791%2063C762%2063%20747%2093%20747%20152S762%20242%20791%20242C817%20242%20830%20221%20830%20178H900C900%20263%20861%20305%20791%20305C716%20305%20676%20254%20676%20152S716%200%20791%200C861%200%20900%2042%20900%20126Z%22%2F%3E%3C%2Fsvg%3E"); -webkit-mask-size:100% 100%; mask-size:100% 100%; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; clip-path:none; }

/* Muted lavender across navigation and shared sections. */
.header-main, .mobile-menu-bar, .header-main ul li ul { background-color:#c6b2d9; }
.header-main ul li a, .header-main nav > ul > li > a { color:#352343; }
.header-main ul li a:hover, .header-main ul li a:focus-visible { color:#352343; background-color:#e3d7ed; }
.header-main ul li ul li:hover { background-color:#e3d7ed; }
.mobile-menu-bar .icon-menu { color:#352343; }
.whaf-language-switch { border-color:#a78bbe; }
#what.hphc-work-brief .hphc-work-visual { background:#c6b2d9; }
#map.hphc-site-footer { background:#c6b2d9; color:#352343; }
#map.hphc-site-footer h2, #map.hphc-site-footer h3, #map.hphc-site-footer a { color:#352343; }
#map .hphc-footer-brand p, #map .hphc-footer-fax, #map .hphc-footer-bottom { color:#51405e; }
#map .hphc-footer-bottom { border-color:#a88ebc; }
#map .hphc-footer-social a { color:#352343; border-color:#a88ebc; background:rgba(255,255,255,.22); }
#map .hphc-footer-social a:hover { background:rgba(255,255,255,.5); border-color:#745489; }
#map a:focus-visible { outline-color:#6242a6; }
/* Keep social icons readable on the light footer despite the legacy SVG fill rule. */
#map .hphc-footer-social svg, #map .hphc-footer-social svg path { color:#352343; fill:currentColor; }
/* Tablet English labels need three columns to leave room for the language switch. */
@media (min-width:641px) and (max-width:959px) {
 html[lang="en"] .header-main nav > ul { grid-template-columns:repeat(3,max-content); column-gap:14px; }
 html[lang="en"] .header-main nav > ul > li > a { font-size:14px; }
}
@media (max-width:640px) {
 .header-main.opened { top:50px; padding-top:0; height:calc(100dvh - 50px); overflow-y:auto; }
 .header-main.opened nav { height:auto; min-height:0; overflow:visible; padding:20px 28px 28px; gap:18px; align-content:flex-start; }
 .header-main.opened .logo { height:80px; justify-content:center; width:100%; }
 .header-main.opened .logo img { height:76px; }
 .header-main.opened nav > ul { height:auto; }
 .header-main.opened nav > .whaf-language-switch { display:none; }
 .header-main ul li:focus-within, .header-main ul li ul li { background-color:#e3d7ed; }
}
/* A people-led image connects the introduction to the foundation's work. */
.hphc-about-community { display:block; flex:1 1 60%; min-width:0; width:60%; max-width:640px; aspect-ratio:2.3/1; height:auto; object-fit:cover; object-position:center 55%; margin-left:auto; border:4px solid rgba(255,255,255,.65); border-radius:48px 14px 48px 14px; }
@media(max-width:639px) {
 .hphc-about-community { flex:none; width:100%; aspect-ratio:3/2; margin:24px 0 0; border-radius:32px 12px 32px 12px; }
}
/* Plum lettering supports the introduction with a quieter scale. */
.hphc-about-nature { background-image:none; background-color:#59416f; max-width:560px; }
.hphc-about-footer { margin-top:28px; gap:36px; padding-bottom:8px; }
@media(max-width:639px) {
 .hphc-about-footer { margin-top:12px; gap:0; padding-bottom:0; }
 .hphc-about-nature { width:92%; margin:24px auto 0; }
}
/* Reference-inspired identity banner, with live translatable copy. */
.hphc-about-card { padding:clamp(28px,3.5vw,48px); }
.hphc-about-card::before { background:linear-gradient(145deg,#ead4f5 0%,#f2e6f8 58%,#e4c9f1 100%); }
.hphc-about-card::after { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; border-radius:64px 0 0 64px; clip-path:polygon(0 0,100% 0,89% 50%,100% 100%,0 100%); background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 600' preserveAspectRatio='none'%3E%3Cpath d='M0 390C300 365 420 680 760 555S1150 615 1400 420V600H0Z' fill='%23dbc0ed' opacity='.5'/%3E%3Cpath d='M0 465C280 440 405 660 740 590S1190 590 1400 475V600H0Z' fill='%23cfaae6' opacity='.35'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hphc-about-copy { color:#28123e; width:94%; font-weight:400; line-height:1.7; }
.hphc-about-identity { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); align-items:end; gap:20px; padding-right:7%; padding-bottom:0; margin-top:20px; }
.hphc-about-identity .button { display:inline-flex; align-items:center; justify-self:start; gap:18px; grid-column:1; grid-row:1; margin:0 0 20px; padding:15px 24px; border:2px solid #fff; background:linear-gradient(135deg,#702cac,#461077); color:#fff; box-shadow:0 7px 16px rgba(83,34,120,.18); font-size:17px; }
.hphc-about-identity .button:hover { background:#461077; border-color:#fff; }
.hphc-about-identity .button > [aria-hidden] { font-size:24px; line-height:1; }
.hphc-lettermark { display:block; width:100%; height:auto; grid-column:2; grid-row:1; overflow:visible; }
/* Override the original site's global white SVG fill without affecting its text. */
.hphc-lettermark > path { fill:#ac73d3; }
@media(max-width:900px) and (min-width:640px) {
 .hphc-about-identity { grid-template-columns:minmax(0,1fr); gap:12px; }
 .hphc-lettermark { grid-column:1; }
 .hphc-about-identity .button { grid-column:1/-1; grid-row:2; justify-self:start; margin:0; }
}
@media(max-width:639px) {
 .hphc-about-card { padding:28px 24px; }
 .hphc-about-card::after { border-radius:36px 0 0 36px; clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%); }
 .hphc-about-copy { width:95%; font-size:18px; }
 .hphc-about-identity { grid-template-columns:minmax(0,1fr); gap:14px 8px; padding-right:0; margin-top:20px; }
 .hphc-lettermark { grid-column:1; grid-row:1; }
 .hphc-about-identity .button { grid-column:1/-1; grid-row:2; justify-self:start; margin:0; font-size:16px; padding:12px 20px; }
}
/* Keep the community illustration's colors clear of legacy global SVG rules. */
.hphc-about-copy strong { font-weight:700; }
/* Stronger footer hierarchy and readable contrast on muted lavender. */
#map.hphc-site-footer { color:#2e193e; }
#map.hphc-site-footer h2, #map.hphc-site-footer h3 { color:#291436; }
#map .hphc-footer-brand p, #map .hphc-footer-contact address, #map .hphc-footer-phone, #map .hphc-footer-fax, #map .hphc-footer-nav li, #map .hphc-footer-nav a { color:#35223f; font-family:Sarabun,sans-serif; font-size:16px; font-weight:400; line-height:1.85; }
#map .hphc-footer-brand p { max-width:370px; }
#map .hphc-footer-phone a { font-size:16px; font-weight:600; }
#map .hphc-footer-contact address { margin-bottom:20px; }
#map .hphc-footer-social { gap:10px; }
#map .hphc-footer-social a { min-height:46px; background:#f7f2fb; color:#35223f; border-color:#957aa8; font-size:14px; font-weight:600; padding:11px 15px; }
#map .hphc-footer-social a:hover { background:#fff; border-color:#6242a6; }
#map .hphc-footer-bottom { color:#35223f; border-top-color:#a38ab6; font-size:14px; font-weight:400; }
#map .hphc-footer-bottom a { color:#35223f; font-weight:600; }
/* Recognizable platform colors, with readable neutral link labels. */
#map .hphc-footer-social a[href*="facebook.com"] svg,
#map .hphc-footer-social a[href*="facebook.com"] svg path { color:#1877f2; fill:currentColor; }
#map .hphc-footer-social a[href*="youtube.com"] svg,
#map .hphc-footer-social a[href*="youtube.com"] svg path { color:#ff0000; fill:currentColor; }
#map .hphc-footer-social a[href*="tiktok.com"] svg,
#map .hphc-footer-social a[href*="tiktok.com"] svg path { color:#161823; fill:currentColor; }
#map .hphc-footer-social a[href*="tiktok.com"] svg { filter:drop-shadow(1px 1px 0 #fe2c55) drop-shadow(-1px -1px 0 #25f4ee); }
/* The foundation's identity follows the selected website language. */
.hphc-lettermark-en { display:none; }
.hphc-lettermark-th { display:block; }
html[lang="en"] .hphc-lettermark-en { display:block; }
html[lang="en"] .hphc-lettermark-th { display:none; }
