:root {
  --accent: #475569;
  --accent-deep: #0f172a;
  --accent-soft: rgba(71, 85, 105, 0.1);
  --accent-line: rgba(71, 85, 105, 0.2);
  --accent-underline: rgba(71, 85, 105, 0.32);
  --spark: #f59e0b;
  --spark-deep: #b45309;
  --spark-soft: rgba(245, 158, 11, 0.16);
  --spark-line: rgba(245, 158, 11, 0.34);
  --heading: #0f172a;
  --ink: #1f2937;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.13);
  --paper: #fafaf9;
  --soft: #f3f4f6;
  --white: #ffffff;
  --gold: #a8a29e;
  --shadow: 0 22px 60px rgba(31, 41, 55, 0.08);
  --ku-green: var(--accent);
  --ku-green-deep: var(--accent-deep);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper) 0%, var(--soft) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: grid;
  gap: 2px;
  color: var(--ku-green-deep);
  line-height: 1.25;
}

.brand strong {
  font-size: 1.02rem;
}

.brand span {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-toggle {
  display: none;
}

.nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--spark-soft);
  color: var(--spark-deep);
  box-shadow: inset 0 0 0 1px var(--spark-line);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.language-switch a[aria-current="page"],
.language-switch a:hover {
  background: var(--spark-soft);
  color: var(--spark-deep);
  box-shadow: inset 0 0 0 1px var(--spark-line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: center;
  padding: 54px 0 30px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 290px);
  gap: 30px;
  align-items: center;
  padding: 58px 0 30px;
}

.about-copy p {
  max-width: 46rem;
  color: #2d4346;
  font-size: 1.02rem;
  line-height: 1.86;
}

.about-copy .role-line {
  margin-top: 10px;
  color: var(--heading);
  font-weight: 700;
}

.about-copy .contact-line {
  margin-top: 14px;
  color: var(--muted);
}

.contact-line span {
  display: inline-block;
  margin-left: 14px;
}

.contact-line a {
  color: var(--spark-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--spark-line);
  text-underline-offset: 0.2em;
}

.portrait-card--quiet {
  box-shadow: none;
}

.kicker {
  color: var(--spark-deep);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--heading);
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  margin: 12px 0 0;
  font-size: clamp(2.45rem, 5vw, 4.3rem);
  line-height: 1.03;
}

.person-name {
  max-width: min(100%, 17em);
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  font-size: clamp(2.35rem, 4.6vw, 4rem);
}

.lead {
  max-width: 47rem;
  margin: 22px 0 0;
  color: #263c3e;
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ku-green-deep);
  font-weight: 700;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button.primary {
  border-color: transparent;
  color: #111827;
  background: var(--spark);
}

.button:hover {
  border-color: var(--spark-line);
  background: var(--spark-soft);
  color: var(--spark-deep);
  transform: translateY(-1px);
}

.button.primary:hover {
  background: var(--spark-deep);
  color: #fff;
}

.portrait-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.portrait-card img {
  aspect-ratio: 4 / 4.25;
  width: 100%;
  object-fit: cover;
}

.portrait-caption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.section {
  padding: 36px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.18;
}

.section-header p {
  max-width: 37rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.feature-grid .card:nth-child(4) {
  grid-column: span 3;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 38px rgba(31, 41, 55, 0.05);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.card:hover {
  border-color: var(--spark-line);
  box-shadow: 0 18px 44px rgba(180, 83, 9, 0.1);
  transform: translateY(-1px);
}

.card.media {
  overflow: hidden;
}

.card.media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.38;
}

.card p,
.card li {
  color: #324549;
  line-height: 1.75;
}

.card p {
  margin: 10px 0 0;
}

.card .card-link-note {
  color: var(--spark-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.card .card-link-note::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.45em;
  border-radius: 999px;
  background: var(--spark);
}

.card ul {
  margin: 12px 0 0;
  padding-left: 1.15rem;
}

.meta {
  margin-bottom: 8px;
  color: var(--ku-green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.band {
  margin: 30px 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.band h2 {
  margin-top: 0;
}

.publications-page {
  padding: 42px 0 18px;
}

.publication-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.publication-hero h1 {
  max-width: none;
}

.publication-hero-copy {
  min-width: 0;
}

.profile-panel {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(31, 41, 55, 0.05);
}

.profile-photo {
  width: 132px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.profile-body {
  min-width: 0;
}

.profile-name {
  color: var(--heading);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.35;
}

.profile-affiliation,
.profile-contact,
.profile-note {
  margin-top: 9px;
  color: #34494c;
  font-size: 0.96rem;
  line-height: 1.65;
}

.profile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.profile-contact a,
.publication-links a,
.project-link {
  color: var(--spark-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--spark-line);
  text-underline-offset: 0.2em;
}

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.interest-chips span,
.publication-meta span,
.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ku-green-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.publication-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 12px;
}

.stat-card {
  display: grid;
  gap: 4px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.stat-value {
  color: var(--heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
}

.stat-label {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.publication-section {
  padding: 34px 0 4px;
}

.source-section {
  padding-top: 30px;
}

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

.source-card {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.source-card:hover {
  border-color: var(--spark-line);
  box-shadow: 0 18px 44px rgba(180, 83, 9, 0.1);
  transform: translateY(-1px);
}

.source-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.38;
}

.source-card p {
  margin: 10px 0 0;
  color: #34494c;
  line-height: 1.7;
}

.research-signals {
  padding: 28px 0 4px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.analysis-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.analysis-card.wide {
  grid-column: 1 / -1;
}

.analysis-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.analysis-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.analysis-card li {
  color: #34494c;
  line-height: 1.72;
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signal-stat {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.signal-value {
  color: var(--heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.signal-label {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.signal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--spark-line);
  border-radius: 999px;
  background: var(--spark-soft);
  color: var(--spark-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.publication-tools {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.publication-tools label {
  color: var(--ku-green-deep);
  font-weight: 700;
}

.publication-tools input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.publication-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  cursor: pointer;
  font-family: inherit;
}

.filter-pill:hover,
.filter-pill.is-active {
  border-color: var(--spark-line);
  background: var(--spark-soft);
  color: var(--spark-deep);
}

.publication-list {
  display: grid;
  gap: 12px;
}

.publication-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.publication-item h3 {
  margin: 10px 0 0;
  font-size: 1.1rem;
  line-height: 1.44;
}

.publication-item h3 a:hover {
  color: var(--spark-deep);
  text-decoration: underline;
  text-decoration-color: var(--spark-line);
  text-underline-offset: 0.2em;
}

.publication-meta,
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.publication-source,
.publication-authors {
  margin: 8px 0 0;
  color: #34494c;
  line-height: 1.7;
}

.publication-authors {
  color: var(--muted);
  font-size: 0.95rem;
}

.publication-links {
  margin-top: 12px;
}

.publication-more {
  justify-self: center;
  margin-top: 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.project-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.project-year {
  color: var(--spark-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.project-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.46;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.profile-page {
  padding: 42px 0 18px;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.profile-detail-grid--wide .wide {
  grid-column: 1 / -1;
}

.profile-detail-grid .analysis-card h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.profile-subsection + .profile-subsection {
  margin-top: 18px;
}

.profile-subsection h3,
.profile-insight h3 {
  margin: 0 0 10px;
  color: var(--spark-deep);
  font-size: 0.98rem;
  line-height: 1.45;
}

.profile-detail-grid ul {
  margin: 0;
  padding-left: 1.15rem;
}

.profile-detail-grid li {
  color: #34494c;
  line-height: 1.72;
}

.profile-timeline {
  display: grid;
  gap: 8px;
  list-style: none;
  padding-left: 0;
}

.profile-timeline li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.profile-insight {
  display: grid;
  gap: 10px;
}

.profile-insight p,
.profile-insight li {
  color: #34494c;
  line-height: 1.76;
}

.profile-insight p,
.profile-insight ul {
  margin: 0;
}

.profile-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-link-list a {
  color: var(--spark-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--spark-line);
  text-underline-offset: 0.2em;
}

.class-note {
  align-self: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.class-note p {
  margin: 8px 0 0;
  color: #34494c;
  line-height: 1.72;
}

.class-list {
  display: grid;
  gap: 10px;
}

.class-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.class-item p {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.46;
}

.class-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.empty-state,
.profile-loading {
  padding: 18px;
  border: 1px dashed var(--accent-line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  line-height: 1.65;
}

.article-tools {
  display: grid;
  gap: 8px;
  margin: 24px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.article-tools label {
  color: var(--ku-green-deep);
  font-weight: 700;
}

.article-tools input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.filter-status {
  color: var(--spark-deep);
  font-size: 0.94rem;
  font-weight: 700;
}

.filter-status a {
  margin-left: 8px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--accent-underline);
  text-underline-offset: 0.2em;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ku-green-deep);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.filter-chips a:hover {
  border-color: var(--spark-line);
  background: var(--spark-soft);
  color: var(--spark-deep);
}

.filter-chips a[href*="talent-development"] {
  border-color: var(--spark-line);
  background: var(--spark-soft);
  color: var(--spark-deep);
}

.article-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.article-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.article-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft);
}

.article-row h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
  line-height: 1.42;
}

.article-row p {
  margin: 8px 0 0;
  color: #3a4b4e;
  font-size: 0.96rem;
  line-height: 1.7;
}

.muted-note {
  color: var(--muted);
}

.prose {
  max-width: 820px;
  padding: 42px 0;
}

.prose h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 3.55rem);
}

.prose h2 {
  margin-top: 34px;
  font-size: 1.65rem;
}

.prose p,
.prose li {
  color: #2d4346;
  font-size: 1.02rem;
  line-height: 1.86;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 34px;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .section-header,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
  }

  .site-header .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ku-green-deep);
    transition: transform 140ms ease, opacity 140ms ease;
  }

  .nav-toggle span + span {
    margin-top: 4px;
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header.has-mobile-nav .nav {
    display: none;
    flex: 1 0 100%;
    justify-content: flex-start;
    padding: 8px 0 2px;
    border-top: 1px solid var(--line);
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .site-header.has-mobile-nav .language-switch {
    display: none;
    flex: 1 0 100%;
    width: fit-content;
    margin-top: -6px;
  }

  .site-header.is-nav-open .language-switch {
    display: inline-flex;
  }

  .hero,
  .about-hero,
  .publication-hero,
  .grid,
  .grid.two,
  .publication-stats,
  .analysis-grid,
  .profile-detail-grid,
  .source-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .signal-list {
    grid-template-columns: 1fr;
  }

  .feature-grid .card:nth-child(4) {
    grid-column: auto;
  }

  .hero {
    padding-top: 34px;
  }

  .portrait-card {
    max-width: 360px;
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .profile-photo {
    width: 96px;
  }
}
