:root {
  --navy: #08244d;
  --navy-2: #123b73;
  --gold: #c99a2e;
  --gold-2: #f1d48b;
  --white: #ffffff;
  --paper: #f6f8fb;
  --line: #dce3ee;
  --ink: #1e293b;
  --muted: #667085;
  --shadow: 0 18px 45px rgba(8, 36, 77, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  color: var(--navy);
}

.brand-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 6px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
  line-height: 1.18;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.brand-thai {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .86rem;
}

.nav-menu a { color: var(--navy); font-weight: 700; }
.nav-menu a:hover { color: var(--gold); }
.nav-logout {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 800;
}

.nav-logout:hover {
  border-color: var(--gold);
  color: #9a6b08;
}

.nav-logout:disabled {
  cursor: wait;
  opacity: .62;
}

.nav-menu a.btn-primary,
.nav-menu a.btn-primary:hover,
.site-header .nav-menu a.btn.btn-primary,
.site-header .nav-menu a.btn.btn-primary:visited,
.site-header .nav-menu a.btn.btn-primary:hover {
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.btn-primary { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-layout {
  display: block;
  width: 100%;
  padding: 0;
}

.hero-carousel {
  position: relative;
  min-height: min(760px, calc(100vh - 78px));
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: var(--navy);
}

.hero-slides, .hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: flex;
  align-items: end;
  padding: clamp(24px, 5vw, 58px);
  color: var(--white);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .5s ease;
}

.hero-slide.is-active { opacity: 1; }
.hero-copy { max-width: 720px; position: relative; z-index: 1; }
.hero-copy h1 { margin: 12px 0 10px; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.05; letter-spacing: 0; }
.hero-copy p { max-width: 650px; font-size: clamp(1rem, 1.8vw, 1.24rem); }
.hero-copy time { display: block; margin-bottom: 18px; color: var(--gold-2); font-weight: 700; }

.hero-controls {
  position: absolute;
  inset: auto 18px 18px auto;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.16);
  color: var(--white);
  cursor: pointer;
}

.hero-dots {
  position: absolute;
  left: 28px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.45);
}

.hero-dots button.is-active { width: 28px; background: var(--gold); }

.mini-news {
  display: none;
  gap: 12px;
}

.mini-news a {
  display: grid;
  gap: 5px;
  min-height: 120px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(8,36,77,.08);
  font-weight: 800;
}

.mini-news span, .mini-news small { color: var(--gold); font-size: .82rem; }

.section { padding: 54px 0; }
.section-white { background: var(--white); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2, .page-hero h1 { margin: 0; color: var(--navy); line-height: 1.16; letter-spacing: 0; }
.section-head p, .page-hero p { margin: 8px 0 0; color: var(--muted); }

.page-hero {
  padding: 54px 0;
  background: linear-gradient(90deg, rgba(8,36,77,.9), rgba(18,59,115,.74)), url("https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: var(--white);
}

.page-hero h1, .page-hero p { color: var(--white); }
.page-hero p { max-width: 720px; }

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(8,36,77,.06);
  padding: 20px;
}

.action-card { min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; }
.action-card h3, .card h3 { margin: 0 0 8px; color: var(--navy); line-height: 1.25; }
.action-card p, .card p { margin: 0 0 12px; color: var(--muted); }
.text-link { color: var(--navy); font-weight: 800; }
.text-link:hover { color: var(--gold); }

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 900;
}

.badge-soft { background: #fff6dd; color: #86630e; }

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

.stat {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}

.stat strong { display: block; font-size: 2.4rem; color: var(--gold-2); line-height: 1; }
.stat span { font-weight: 700; }

.directory-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.dash-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.dash-stat strong {
  display: block;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.1;
}

.dash-stat span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}

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

.dashboard-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.register-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(201, 154, 46, .42);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 70%);
  box-shadow: 0 16px 34px rgba(8, 36, 77, .08);
}

.register-callout span {
  display: block;
  color: #9a6b08;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.register-callout h2 {
  margin: 2px 0 3px;
  color: var(--navy);
}

.register-callout p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.dashboard-grid h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1rem;
}

.summary-bars {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.summary-bars li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-bottom: 7px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
}

.summary-bars li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-bars li strong {
  color: var(--navy);
  font-size: .86rem;
}

.summary-bars li i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.summary-bars li i::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  background: var(--gold);
}

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

.province-wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
}

.map-placeholder {
  min-height: 330px;
  display: grid;
  place-items: center;
  border: 1px dashed #9fb1c7;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 20%, rgba(201,154,46,.28), transparent 20%),
    radial-gradient(circle at 55% 45%, rgba(18,59,115,.18), transparent 24%),
    linear-gradient(135deg, #fff, #edf3fb);
  color: var(--navy);
  text-align: center;
  padding: 28px;
}

.province-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.province-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.province-list-featured {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.province-list-featured li {
  align-items: center;
  min-height: 86px;
  padding: 18px;
}

.province-list-featured span {
  font-weight: 900;
  color: var(--navy);
}

.province-list-featured strong {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.05rem;
}

.province-list-dashboard {
  max-height: 280px;
  overflow: auto;
}

.province-list-dashboard li {
  padding: 9px 10px;
  border-radius: 12px;
}

.province-list-dashboard span,
.province-list-dashboard strong {
  font-size: .88rem;
}

.news-card { padding: 0; overflow: hidden; }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-card div { padding: 18px; }
.news-link-card {
  display: block;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 145, 32, .38);
  box-shadow: 0 18px 42px rgba(6, 27, 63, .12);
}
.news-link-card div { padding: 0; }
.news-link-card .text-link { display: inline-flex; margin-top: 8px; }
.person-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.role { font-weight: 800; color: var(--navy) !important; }

.about-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: start;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 28px;
  align-items: stretch;
}

.about-story-main,
.about-split article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(6, 27, 63, .06);
}

.about-story-main p,
.about-split p {
  color: var(--muted);
  line-height: 1.9;
}

.about-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.about-quote strong {
  color: var(--gold-2);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.about-quote span {
  color: rgba(255,255,255,.78);
  font-weight: 700;
  line-height: 1.75;
}

.about-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.objective-list article {
  padding: 18px;
  border: 1px solid rgba(198, 145, 32, .28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.65;
}

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

.clubs-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 210px;
}

.clubs-grid strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.35rem;
}

.clubs-grid h3 {
  margin: 0 0 8px;
}

.clubs-grid p {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-logo-section {
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
}

.about-logo-figure {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.about-logo-figure img {
  display: block;
  width: 100%;
  height: auto;
}

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

.logo-meaning-grid article {
  position: relative;
  min-height: 150px;
  padding: 20px 20px 20px 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(6, 27, 63, .07);
}

.logo-meaning-grid strong {
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-2);
  font-size: 1.1rem;
}

.logo-meaning-grid h3 {
  margin: 0 0 6px;
}

.logo-meaning-grid p {
  margin: 0;
  color: var(--muted);
}

.alumni-grid {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.directory-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-status {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.directory-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  margin-bottom: 14px;
}

.directory-list-head h2 {
  margin: 0;
}

.directory-list-head p {
  margin: 3px 0 0;
}

.alumni-table-head,
.alumni-card {
  display: grid;
  grid-template-columns: 1fr .75fr 1.7fr 1fr;
  gap: 12px;
  align-items: center;
}

.alumni-table-head.is-member-view,
.alumni-card.is-member-view {
  grid-template-columns: .7fr 1.05fr .55fr .95fr 1fr 1.35fr .7fr .72fr;
}

.alumni-table-head {
  padding: 9px 12px;
  background: #f4f7fb;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  border-bottom: 1px solid var(--line);
}

.alumni-row.card {
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  background: var(--white);
  min-height: 0;
}

.alumni-row.card:last-child {
  border-bottom: 0;
}

.btn-mini {
  min-height: 32px;
  padding: 6px 10px;
  font-size: .76rem;
}

.alumni-actions {
  display: flex;
  justify-content: flex-start;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 36, 77, .42);
}

.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--gold-2);
  font-size: 1.45rem;
  font-weight: 900;
}

.alumni-cell,
.alumni-main {
  min-width: 0;
}

.alumni-cell {
  overflow: hidden;
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alumni-name {
  color: var(--navy);
  font-weight: 800;
}

.alumni-nickname {
  color: #86630e;
  font-weight: 800;
}

.alumni-name-cell {
  color: var(--navy);
  font-weight: 800;
}

.alumni-work {
  color: var(--muted);
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
}

.alumni-work-detail {
  color: var(--muted);
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
}

.alumni-name-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.alumni-name-line h3 {
  margin: 0;
}

.nickname-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(198, 155, 61, .16);
  color: var(--navy);
  font-size: .86rem;
  font-weight: 900;
}

.mini-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 14px 0;
}

.alumni-facts {
  grid-template-columns: 100px minmax(180px, 1.2fr) minmax(120px, .8fr) minmax(150px, 1fr);
  gap: 10px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.alumni-facts div {
  padding: 0;
  border: 0;
  background: transparent;
}

.mini-meta div { min-width: 0; }
.mini-meta dt { color: var(--muted); font-size: .82rem; }
.mini-meta dd { margin: 0; font-weight: 800; color: var(--navy); }
.note { font-size: .94rem; }

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.filters input, .filters select, .form-grid input, .form-grid select, .form-grid textarea, .newsletter input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px 12px;
  color: var(--ink);
}

.job-card { display: grid; gap: 10px; }
.business-card { display: grid; gap: 10px; border-top: 4px solid var(--navy-2); }
.donor-card { border-top: 4px solid var(--gold); }
.level { color: var(--gold); font-weight: 900; }
.record-id {
  display: inline-block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-actions button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.tab-actions button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.split-forms {
  display: grid;
  gap: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed #b7c4d6;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 6px;
  color: var(--navy);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 4vw, 32px);
}

.form-grid > label {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  color: var(--navy);
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  margin-top: 0;
  font-weight: 500;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.filters input:focus,
.filters select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 46, .16);
  outline: 0;
}

.form-grid h3 {
  margin: 8px 0 12px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-section-title {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #f8fbff;
  border: 1px solid var(--line);
}

.form-section-title h2 {
  margin: 0;
  color: var(--navy);
  line-height: 1.25;
}

.form-section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.choice-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.choice-group legend {
  padding: 0 8px;
  color: var(--navy);
  font-weight: 900;
}

.choice-group label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #e5edf6;
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.choice-group input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

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

.checkbox-group label, .consent label {
  display: flex;
  gap: 8px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.checkbox-group input,
.consent input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.check-card-grid {
  padding: 20px;
  border: 1px solid #cfe5f5;
  border-radius: 18px;
  background: var(--white);
}

.check-card-grid label {
  min-height: 76px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-color: #d3e8f8;
  border-radius: 16px;
  background: #fbfdff;
  color: #203f5f;
  font-size: 1.02rem;
  font-weight: 900;
}

.check-card-grid input {
  width: 30px;
  min-height: 30px;
  margin: 0;
  accent-color: var(--navy);
}

.form-message { color: #0f7b42; font-weight: 800; }

.section-compact {
  padding: 20px 0 0;
}

.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-status-card,
.auth-gate,
.admin-panel {
  padding: 22px;
}

.auth-status-card {
  grid-column: 1 / -1;
}

.member-console {
  grid-column: 1 / -1;
  padding: 22px;
}

.member-console .tab-panel {
  padding-top: 4px;
}

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

.member-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.member-post-row p {
  margin: 4px 0;
  color: var(--muted);
}

.member-post-row small {
  color: var(--muted);
  font-weight: 800;
}

.auth-gate {
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-gate h2 {
  margin: 0 0 8px;
  color: var(--navy);
}

.auth-gate-inline {
  max-width: none;
  text-align: left;
  box-shadow: none;
}

.directory-email-gate {
  margin: 0;
}

.email-access-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.email-access-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 800;
}

.email-access-form .form-message {
  grid-column: 1 / -1;
  margin: 0;
}

.member-only-notice {
  margin-bottom: 18px;
}

.is-member-locked {
  opacity: .72;
}

.admin-stack {
  display: grid;
  gap: 18px;
}

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

.admin-inline-actions {
  align-items: center;
  margin-bottom: 16px;
}

.admin-inline-actions .form-message {
  margin: 0;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.admin-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.admin-row span {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.45;
}

.admin-row-banner {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
}

.admin-row-banner img {
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
  background: #eef2f7;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.site-footer {
  padding: 46px 0 28px;
  background: var(--navy);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr;
  gap: 28px;
}

.site-footer a, .site-footer p { color: rgba(255,255,255,.78); }
.site-footer h3 { margin-top: 0; color: var(--gold-2); }
.footer-links { display: grid; gap: 8px; }
.newsletter { display: flex; gap: 8px; }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.66); }

@media (max-width: 1020px) {
  .brand-logo {
    width: 58px;
    height: 58px;
  }
  .brand-thai {
    max-width: 260px;
  }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }
  .province-wrap, .footer-grid, .about-intro, .about-story, .about-split { grid-template-columns: 1fr; }
  .grid-4, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .province-list-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-meaning-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .objective-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clubs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-dashboard, .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alumni-table-head,
  .alumni-card {
    grid-template-columns: 1fr .7fr 1.5fr .9fr;
  }
  .alumni-table-head.is-member-view,
  .alumni-card.is-member-view {
    grid-template-columns: .7fr 1fr .55fr .95fr 1fr 1.3fr .7fr .72fr;
  }
  .directory-list-head { align-items: start; }
  .alumni-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1180px); }
  .brand { gap: 9px; }
  .brand-logo {
    width: 52px;
    height: 52px;
    padding: 5px;
  }
  .brand small {
    font-size: .68rem;
  }
  .brand-thai {
    display: none;
  }
  .hero-carousel { min-height: 500px; }
  .hero-layout { padding-top: 0; }
  .mini-news, .grid-2, .grid-3, .grid-4, .stats-grid, .filters, .form-grid, .email-access-form, .checkbox-group { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .admin-row { align-items: stretch; flex-direction: column; }
  .admin-row-banner {
    display: flex;
    flex-direction: column;
  }
  .admin-row-banner img {
    width: 100%;
  }
  .province-list-featured { grid-template-columns: 1fr; }
  .logo-meaning-grid { grid-template-columns: 1fr; }
  .objective-list, .clubs-grid { grid-template-columns: 1fr; }
  .about-story-main,
  .about-split article,
  .about-quote {
    padding: 22px;
  }
  .clubs-grid article {
    min-height: 0;
  }
  .logo-meaning-grid article {
    min-height: 0;
    padding: 18px 18px 18px 72px;
  }
  .directory-dashboard, .dashboard-grid { grid-template-columns: 1fr; }
  .register-callout {
    align-items: stretch;
    flex-direction: column;
  }
  .section-head { display: block; }
  .section { padding: 38px 0; }
  .hero-controls { right: 12px; bottom: 12px; }
  .hero-dots { left: 20px; bottom: 18px; }
  .alumni-grid { overflow-x: auto; }
  .directory-list-head { display: block; }
  .alumni-table-head,
  .alumni-card {
    grid-template-columns: 90px 72px 180px 110px;
    min-width: 520px;
  }
  .alumni-table-head.is-member-view,
  .alumni-card.is-member-view {
    grid-template-columns: 90px 150px 82px 170px 180px 260px 110px 96px;
    min-width: 1140px;
  }
  .alumni-row { padding: 10px 12px; }
  .avatar { width: 44px; height: 44px; font-size: 1.15rem; }
  .alumni-facts, .mini-meta { grid-template-columns: 1fr; }
  .newsletter { flex-direction: column; }
}
