:root {
  --bg: #fff;
  --ink: #202020;
  --muted: #656565;
  --soft: #f4f1ec;
  --soft-2: #e7e1d6;
  --line: #ded8ce;
  --brand: #556d54;
  --brand-dark: #344733;
  --gold: #b08a4a;
  --footer: #252525;
  --max: 1120px;
  --pad: clamp(18px, 4vw, 42px);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
}
body[data-lang="th"] {
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, var(--sans);
  line-height: 1.9;
}
body.menu-open { overflow: hidden; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: #111; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
p, li, h1, h2, h3, h4, a { overflow-wrap: anywhere; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: #111;
  color: #fff;
  padding: 10px 14px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.topline {
  background: var(--brand-dark);
  color: #f4f2ec;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topline .wrap {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.topline a { color: #fff; text-decoration: none; }
.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f6f2ea;
}
.language-toggle-label {
  font: 700 11px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.language-toggle-track {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 104px;
  min-height: 32px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.16), 0 8px 20px rgba(0,0,0,.12);
  overflow: hidden;
}
.language-toggle-thumb {
  position: absolute;
  z-index: -1;
  inset: 3px auto 3px 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transform: translateX(0);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), background .2s ease;
}
.language-toggle[data-lang-state="th"] .language-toggle-thumb {
  transform: translateX(100%);
}
.language-toggle-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  font: 800 12px/1 var(--sans);
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.language-toggle-option:hover {
  color: #fff;
  transform: translateY(-1px);
}
.language-toggle-option[aria-current="true"] {
  color: var(--brand-dark);
  pointer-events: none;
}
.language-toggle-track:focus-within {
  outline: 2px solid rgba(255,255,255,.72);
  outline-offset: 3px;
}
.header-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 236px;
}
.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.brand-title {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.08;
}
.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-top: 3px;
}
.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item,
.drop-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  color: #2a2a2a;
  text-decoration: none;
  background: transparent;
  border: 0;
  font-size: 14px;
  white-space: nowrap;
}
.nav-item[aria-current="page"],
.nav-item:hover,
.drop-trigger:hover {
  color: var(--brand-dark);
}
.nav-cta {
  border: 1px solid var(--gold);
  color: #fff;
  background: var(--gold);
  margin-left: 8px;
}
.nav-cta:hover { color: #fff; background: #98743b; }
.drop {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.drop-combo .drop-link {
  position: relative;
  gap: 5px;
}
.drop-caret {
  font-size: 11px;
  color: currentColor;
  opacity: .75;
  line-height: 1;
}
.drop-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0,0,0,.13);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.drop.open .drop-panel,
.drop:hover .drop-panel,
.drop:focus-within .drop-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.drop-panel a {
  display: block;
  padding: 9px 10px;
  color: #2d2d2d;
  text-decoration: none;
  font-size: 14px;
}
.drop-panel a:hover { background: var(--soft); }
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
}

.mobile-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 390px);
  background: #fff;
  z-index: 140;
  transform: translateX(100%);
  transition: transform .24s ease;
  box-shadow: -12px 0 34px rgba(0,0,0,.18);
  padding: 22px;
  overflow-y: auto;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mobile-panel a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #222;
  text-decoration: none;
}
.mobile-label {
  margin: 24px 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 130;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.scrim.open { opacity: 1; visibility: visible; }

.hero {
  position: relative;
  min-height: clamp(420px, 58vw, 620px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #333;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.46));
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--pad), 900px);
  margin: auto;
  color: #fff;
  text-align: center;
  padding-block: 80px;
}
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1,
.page-title h1 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 18px;
}
.hero h1 { font-size: clamp(40px, 8vw, 76px); }
.hero p {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
  color: #f5f2ea;
}
.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { color: #fff; background: #98743b; }
.btn-secondary {
  background: rgba(255,255,255,.92);
  color: var(--brand-dark);
  border-color: rgba(255,255,255,.95);
}
.btn-secondary:hover { background: #fff; color: #111; }
.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }

.page-title {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(58px, 10vw, 112px);
  text-align: center;
}
.page-title h1 { font-size: clamp(34px, 6vw, 64px); }
.page-title p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
}

.section { padding-block: clamp(52px, 8vw, 92px); }
.section-tight { padding-block: clamp(32px, 5vw, 58px); }
.section-soft { background: var(--soft); border-block: 1px solid var(--line); }
.center { text-align: center; }
.lead {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 20px;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.16;
  margin: 0 0 18px;
}
h3 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 10px;
}
.prose {
  max-width: 820px;
  margin-inline: auto;
}
.prose > * + * { margin-top: 18px; }
.prose ul,
.prose ol { padding-left: 24px; }
.prose blockquote {
  margin: 28px 0;
  padding: 22px 28px;
  border-left: 4px solid var(--gold);
  background: var(--soft);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}
.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.split.contain img {
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
}
.split .prose { max-width: none; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
  overflow: hidden;
  box-shadow: 0 24px 50px -34px rgba(40, 50, 35, .55);
}
.stat {
  padding: clamp(30px, 4vw, 48px) clamp(18px, 3vw, 30px);
  text-align: center;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat b {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
}
.stat b::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold), var(--brand));
  transition: width .85s .35s cubic-bezier(.22, .61, .36, 1);
}
.stat.in b::after { width: 46px; }
.stat span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.outreach-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: 34px;
}
.outreach-secondary-heading {
  margin-top: clamp(42px, 7vw, 72px);
}
.outreach-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.card {
  border: 1px solid var(--line);
  background: #fff;
  min-width: 0;
  border-radius: 8px;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.card img[src*="board-games"],
.card img[src*="grooming-poster"],
.card img[src*="poster-grooming"],
.card img[src*="curriculum-grooming"],
.report-card img {
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 12px;
}
.card-body { padding: 24px; }
.card-featured {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  box-shadow: 0 24px 54px -38px rgba(40, 50, 35, .55);
}
.card-featured .card-body {
  padding: clamp(24px, 3vw, 32px);
}
.card-featured h3 {
  font-size: clamp(27px, 3vw, 34px);
}
.card p { color: var(--muted); margin: 0 0 16px; }
.tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  margin: 0 6px 8px 0;
  border-radius: 999px;
  background: #edf3e9;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag-muted {
  background: #f4eee2;
  color: #7a5f35;
}
.tag-source {
  background: #edf0f4;
  color: #46515d;
}
.tag-grooming-prevention {
  background: #e9f2ee;
  color: #285c48;
}
.tag-lifelong-parenting {
  background: #f5ead8;
  color: #805a22;
}
.tag-harmful-sexual-behavior {
  background: #f1e8ef;
  color: #6c3d63;
}
.tag-placeholder,
.tag-coming-soon {
  background: #f6f0e6;
  color: #765d32;
}

.card-link a,
.article-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.text-link {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.actions-left {
  justify-content: flex-start;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(20px, 3vw, 30px);
}
.detail-card p {
  margin: 0;
  color: var(--muted);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  align-items: stretch;
}
.team-grid-small {
  margin-bottom: 26px;
}
.person-card {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  text-align: center;
  flex: 1 1 250px;
  max-width: 270px;
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding-top: 24px;
}
.person-photo,
.person-placeholder {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.person-photo {
  object-fit: cover;
  object-position: center 28%;
  filter: grayscale(1) contrast(1.04);
  background: var(--soft);
}
.person-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--soft), #fff);
  color: var(--brand-dark);
}
.person-placeholder span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--serif);
  font-size: 28px;
}
.person-body {
  padding: 18px 22px 24px;
}
.person-body h3 {
  font-size: 23px;
}
.person-body p {
  margin: 0 0 13px;
  color: var(--muted);
}
.person-role {
  color: var(--brand-dark) !important;
  font-weight: 700;
}
.person-programs {
  font-size: 13px;
}
.person-card.is-placeholder {
  border-style: dashed;
  background: #fffdf9;
}

.resource-grid,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.resource-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.resource-card img,
.article-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.resource-card img[src*="poster-grooming"],
.resource-card img[src*="curriculum-grooming"] {
  object-fit: contain;
  background: #fff;
  padding: 12px;
}
.resource-body,
.article-body {
  padding: 22px;
}
.resource-body h3,
.article-body h3 {
  font-size: 24px;
}
.resource-body p,
.article-body p {
  color: var(--muted);
  margin: 0 0 14px;
}
.article-body time {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.filter-panel label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 1px solid #cfc7ba;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
}
.filter-controls button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.filter-panel select {
  display: none;
}
.empty-state,
.coming-soon {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
}
.empty-state {
  width: 100%;
  justify-content: center;
  margin: 26px 0 0;
}
.btn-small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 14px;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.meta-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
}
.meta-list dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.meta-list dd {
  margin: 0;
}
.article-layout {
  width: min(100% - (var(--pad) * 2), 880px);
}
.article-prose .tag-pill {
  vertical-align: middle;
}
.source-note {
  color: var(--muted);
  font-size: 14px;
}
.notice-strong {
  border-left: 4px solid var(--gold);
  background: #fff;
}
.final-cta {
  background: linear-gradient(180deg, var(--soft), #fff);
  border-top: 1px solid var(--line);
}
.table-wrap {
  overflow-x: auto;
}
.sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.link-list {
  display: grid;
  gap: 12px;
}
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.link-row:hover { background: var(--soft); }

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 650px;
  margin-inline: auto;
}
.gallery img {
  width: clamp(150px, 28vw, 190px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.notice {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 22px;
  color: var(--muted);
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}
.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table th {
  width: 34%;
  background: var(--soft);
  color: #333;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cfc7ba;
  padding: 12px;
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-status {
  display: none;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 14px 16px;
}
.form-status.show { display: block; }

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: clamp(24px, 4vw, 38px);
}
.center .actions-left {
  justify-content: center;
}

.site-footer {
  background: var(--footer);
  color: #dedede;
  padding-block: 56px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}
.footer-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  margin-bottom: 14px;
}
.site-footer h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-footer a { color: #f3f3f3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 36px;
  padding-top: 20px;
  color: #bcbcbc;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
}
@media (max-width: 820px) {
  .topline .wrap { align-items: flex-start; flex-direction: column; padding-block: 8px; }
  .header-row { min-height: 68px; }
  .brand { min-width: 0; }
  .brand img { width: 44px; height: 44px; }
  .brand-title { font-size: 17px; }
  .brand-sub { font-size: 10px; }
  .hero { min-height: 430px; }
  .split,
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .stats,
  .grid,
  .grid.two,
  .resource-grid,
  .articles-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-controls { display: none; }
  .filter-panel select { display: block; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .outreach-feature-grid,
  .outreach-secondary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .hero-actions,
  .actions { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .mobile-panel { width: 94vw; }
  .table th,
  .table td { display: block; width: 100%; }
  .person-card {
    flex-basis: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .gallery img { width: min(100%, 190px); }
  .language-toggle { width: 100%; justify-content: space-between; }
  .language-toggle-track { width: 104px; }
  .meta-list div { grid-template-columns: 1fr; gap: 2px; }
}

/* =====================================================================
   Motion — scroll reveals, hero entrance, hover micro-interactions
   ===================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal-up.in { opacity: 1; transform: none; }

.card,
.resource-card,
.article-card,
.person-card { overflow: hidden; transition: transform .26s ease, box-shadow .26s ease; }
.card:hover,
.resource-card:hover,
.article-card:hover,
.person-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(40, 50, 35, .5); }
.card img { transition: transform .55s cubic-bezier(.22, .61, .36, 1); }
.card:hover img { transform: scale(1.045); }

.btn { transition: background .2s ease, color .2s ease, transform .16s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }

.link-row { transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.link-row:hover { transform: translateX(3px); border-color: var(--brand); }

.nav-item:not(.nav-cta) { position: relative; }
.nav-item:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-item:not(.nav-cta):hover::after,
.nav-item:not(.nav-cta)[aria-current="page"]::after { transform: scaleX(1); }
.drop-combo .drop-link::after {
  right: 6px;
}

@keyframes ppRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > .kicker { animation: ppRise .7s .05s both; }
  .hero-inner > h1 { animation: ppRise .7s .16s both; }
  .hero-inner > p { animation: ppRise .7s .27s both; }
  .hero-inner > .hero-actions { animation: ppRise .7s .38s both; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Color themes (demo bar swatches). :root is the warm-foundation default;
   each palette keeps light backgrounds + dark ink for readable contrast.
   ===================================================================== */
html[data-theme="teal-calm"] {
  --brand: #2f7e7a; --brand-dark: #1d514f; --gold: #bf8a44;
  --ink: #1f2a29; --muted: #586564;
  --soft: #eef3f1; --soft-2: #dce9e5; --line: #cde0db; --footer: #1e2c2a;
}
html[data-theme="terracotta"] {
  --brand: #b5603a; --brand-dark: #7d3f25; --gold: #bd8a3f;
  --ink: #2a211c; --muted: #6b5a4e;
  --soft: #f7efe8; --soft-2: #ecdccd; --line: #e3cdb9; --footer: #382a21;
}
html[data-theme="slate"] {
  --brand: #4d5f86; --brand-dark: #313e5c; --gold: #a9803f;
  --ink: #1e232b; --muted: #586070;
  --soft: #eef0f5; --soft-2: #dde1ec; --line: #d2d7e2; --footer: #232733;
}
html[data-theme="forest"] {
  --brand: #3f6b4a; --brand-dark: #284832; --gold: #b0894a;
  --ink: #1d241d; --muted: #566051;
  --soft: #eef2ea; --soft-2: #dde6d5; --line: #cdd9c3; --footer: #1f2a1f;
}

/* =====================================================================
   Demo concept bar — a charcoal meta strip above the site's own header so
   it reads clearly as preview chrome. Stays constant across themes.
   ===================================================================== */
.demobar { background: #17181b; color: #e8e8ea; }
.demobar-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 46px;
  padding-block: 7px;
}
.demobar-id { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.demobar-id strong { color: #fff; font-weight: 700; }
.demobar-lead { color: #a9adb4; }
.demobar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7bbf7b;
  animation: dbpulse 2.4s infinite;
}
.demobar-themes { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.demobar-themes-label {
  color: #a9adb4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: #dfe1e5;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.swatch i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.swatch[data-set-theme="warm-foundation"] i { background: #556d54; }
.swatch[data-set-theme="teal-calm"] i { background: #2f7e7a; }
.swatch[data-set-theme="terracotta"] i { background: #b5603a; }
.swatch[data-set-theme="slate"] i { background: #4d5f86; }
.swatch[data-set-theme="forest"] i { background: #3f6b4a; }
.swatch:hover { background: rgba(255,255,255,.12); color: #fff; }
.swatch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.swatch[aria-pressed="true"] { background: #fff; color: #17181b; border-color: #fff; font-weight: 700; }
@keyframes dbpulse {
  0% { box-shadow: 0 0 0 0 rgba(123,191,123,.55); }
  70% { box-shadow: 0 0 0 7px rgba(123,191,123,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,191,123,0); }
}

/* =====================================================================
   Header topline + dropdown caret/toggle (SVG chevron)
   ===================================================================== */
.topline-name { display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.topline-sep { opacity: .6; }
.menu-toggle svg { width: 22px; height: 22px; }

.drop-combo { gap: 0; }
.drop-combo .drop-link { gap: 0; padding-right: 4px; }
.drop-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #2a2a2a;
  cursor: pointer;
}
.drop-toggle:hover,
.drop.open .drop-toggle,
.drop.open .drop-trigger { color: var(--brand-dark); }
.drop-toggle:focus-visible,
.drop-trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.chev { width: 11px; height: 8px; flex: none; transition: transform .2s ease; }
.drop-trigger .chev { margin-left: 6px; }
.drop:hover .drop-toggle .chev,
.drop.open .drop-toggle .chev,
.drop:hover .drop-trigger .chev,
.drop.open .drop-trigger .chev { transform: rotate(180deg); }
.drop-panel a[aria-current="page"] { color: var(--brand-dark); font-weight: 700; background: var(--soft); }

/* =====================================================================
   Breadcrumbs (outreach sub-tree) + article secondary title
   ===================================================================== */
.breadcrumb { background: var(--soft); border-bottom: 1px solid var(--line); }
.breadcrumb .wrap { padding-block: 11px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.breadcrumb li { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 9px; color: var(--muted); opacity: .55; }
.breadcrumb a { color: var(--brand-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

.article-alt-title {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
body[data-lang="th"] .article-alt-title,
.article-alt-title[lang="th"] { font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, var(--sans); }

@media (max-width: 1080px) {
  /* caret toggle only matters where the desktop nav shows */
  .drop-toggle { display: none; }
}
@media (max-width: 600px) {
  .demobar-themes-label { width: 100%; }
  .swatch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .swatch { padding: 5px; width: 30px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .demobar-dot { animation: none; }
  .chev { transition: none; }
}

/* =====================================================================
   Abstract-art heroes — calm, on-brand backdrops for conceptual and
   sensitive-topic pages. Unique per page via --a/--b colour + --x/--y
   bloom-position custom properties set inline. No photos, no AI artdefacts.
   ===================================================================== */
.hero-has-art { background: #1b211b; }
.hero-has-art::after { background: linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.32)); }
.hero-art {
  position: absolute;
  inset: 0;
  background-color: #1b211b;
  background-image:
    radial-gradient(72% 62% at var(--x, 30%) var(--y, 28%), var(--a, #3f6149), transparent 60%),
    radial-gradient(66% 64% at calc(100% - var(--x, 30%)) calc(100% - var(--y, 28%)), var(--b, #22332a), transparent 58%),
    linear-gradient(140deg, rgba(0,0,0,.15), rgba(0,0,0,.5));
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(122deg, rgba(255,255,255,.05) 0 1px, transparent 1px 27px);
  opacity: .55;
}
