.public-site {
  --pub-ink: #1c2d46;
  --pub-forest: #1d4ed8;
  --pub-forest-deep: #132b50;
  --pub-leaf: #d8b45e;
  --pub-coral: #d8b45e;
  --pub-paper: #cbdcf2;
  --pub-line: #e1e8f2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #eaf3ff 0%, #cbdcf2 52%, #9fbde3 100%);
  background-attachment: fixed;
  color: var(--pub-ink);
}

.public-nav {
  min-height: 76px;
  padding: 0 clamp(1rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--pub-line);
  box-shadow: 0 3px 16px rgba(19, 43, 80, .045);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--pub-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.public-brand small {
  display: block;
  margin-top: .25rem;
  color: #718096;
  font-size: .72rem;
  font-weight: 400;
}

.public-brand-mark {
  width: 54px;
  height: 44px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.public-login {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .9rem;
  border: 1px solid #d7e1ef;
  border-radius: 4px;
  color: var(--pub-forest);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.public-login:hover { background: #edf3fc; border-color: #b7c9e4; color: var(--pub-forest-deep); }

.public-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(120deg, #132b50 0%, #1d4ed8 100%);
  color: #fff;
}

.public-hero-inner {
  width: min(100% - 2rem, 1400px);
  min-height: 330px;
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.public-hero-copy { position: relative; z-index: 1; max-width: 38rem; padding: .35rem 0; animation: public-enter .55s ease-out both; }

.public-eyebrow,
.public-section-kicker {
  color: #adc8f1;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.public-eyebrow { display: inline-flex; align-items: center; gap: .5rem; }
.public-eyebrow i { color: var(--pub-leaf); font-size: 1rem; }

.public-hero h1 {
  margin: .8rem 0 .55rem;
  color: #fff;
  font-family: 'Kanit', 'Sarabun', sans-serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.12;
}

.public-hero h1 span { color: var(--pub-leaf); }
.public-hero-copy > p { max-width: 31rem; margin: 0; color: #d8e4f5; font-size: 1.05rem; line-height: 1.7; }

.public-hero-note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: .9rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(211, 235, 214, .25);
  border-radius: 3px;
  background: rgba(255, 255, 255, .06);
  color: #eef4fd;
  font-size: .84rem;
}

.public-hero-note i { color: var(--pub-leaf); }

.public-hero-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: #0b2345;
  box-shadow: 0 22px 56px rgba(3, 15, 35, .32);
  animation: public-enter .7s .08s ease-out both;
}

.public-hero-visual img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }

.public-main {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1440px);
  margin: 0 auto;
  padding: 0 0 4rem;
  flex: 1 0 auto;
}

.public-site .system-credit { margin-top: auto; margin-left: 0; }

.public-search-panel {
  position: relative;
  margin-top: -1.35rem;
  padding: clamp(1rem, 2vw, 1.7rem);
  border: 1px solid #e1e8f2;
  border-top: 4px solid var(--pub-coral);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(19, 43, 80, .1);
  animation: public-enter .6s .15s ease-out both;
}

.public-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.public-section-kicker { color: #73839a; text-transform: uppercase; }
.public-search-heading h2,
.public-results-heading h2 {
  margin: .12rem 0 0;
  color: var(--pub-ink);
  font-family: 'Kanit', 'Sarabun', sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.public-category {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border-radius: 3px;
  background: #edf3fc;
  color: #31558b;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.public-category i { color: #c39a3e; }
.public-search-panel .form-label { margin-bottom: .32rem; color: #52627a; font-size: .8rem; font-weight: 600; }
.public-search-panel .form-control,
.public-search-panel .form-select { min-height: 46px; border-color: #d7e1ef; border-radius: 5px; color: #263d56; font-size: .88rem; }
.public-search-panel .form-control:focus,
.public-search-panel .form-select:focus { border-color: #78a5f2; box-shadow: 0 0 0 .2rem rgba(29, 78, 216, .13); }
.public-search-panel .btn-primary { min-height: 46px; padding: .55rem 1rem; border-color: var(--pub-forest); border-radius: 5px; background: var(--pub-forest); font-weight: 600; }
.public-search-panel .btn-primary:hover { border-color: #132b50; background: #132b50; }
.public-search-panel .btn-outline-secondary { min-height: 46px; border-radius: 5px; }

.public-alert { margin-top: 1rem; border-radius: 3px; }

.public-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 .75rem;
}

.public-results-heading h2 { font-size: 1.45rem; }
.public-results-heading h2 b { color: #bd8e2f; font-variant-numeric: tabular-nums; }
.public-page-count { padding: .3rem .6rem; border: 1px solid #d7e1ef; border-radius: 3px; color: #65748a; font-size: .82rem; }

.public-results { overflow: hidden; border: 1px solid #e1e8f2; border-radius: 5px; background: #fff; }
.public-table { min-width: 890px; color: #30425b; }
.public-table thead th { padding: .85rem .8rem; border-bottom: 1px solid #dce5f1; background: #e9f0fb; color: #354e73; font-size: .78rem; font-weight: 700; }
.public-table tbody td { padding: .9rem .8rem; border-color: #edf1f7; font-size: .87rem; }
.public-table tbody tr:hover { background: #f7f9fd; }
.public-table tbody td:nth-child(2) b { color: #1c3559; font-size: .94rem; }
.public-table tbody td small { display: inline-block; margin-top: .25rem; color: #78869a !important; }
.public-table .badge { border-radius: 3px; background: #f7efd9 !important; color: #765b24 !important; font-weight: 600; }
.public-table .thumb { width: 42px; height: 42px; object-fit: cover; border: 1px solid #e1e8f2; border-radius: 3px; }
.public-table .bi-file-earmark-pdf { font-size: 1.7rem !important; }
.public-table .text-center { padding: 2.5rem 1rem; }

.public-site .pagination { gap: .3rem; }
.public-site .page-link { border-color: #d7e1ef; border-radius: 3px !important; color: var(--pub-forest); }
.public-site .page-item.active .page-link { border-color: var(--pub-forest); background: var(--pub-forest); }

@media (max-width: 900px) {
  .public-hero-inner { min-height: 300px; grid-template-columns: minmax(260px, 1.05fr) minmax(300px, .95fr); gap: 1.5rem; }
  .public-hero h1 { font-size: 2.6rem; }
}

@media (max-width: 680px) {
  .public-nav { min-height: 62px; padding-inline: 1rem; }
  .public-brand-mark { width: 42px; height: 38px; }
  .public-login { padding: .5rem .65rem; font-size: .82rem; }
  .public-hero-inner { width: 100%; min-height: auto; padding: 1.5rem 1rem 2rem; grid-template-columns: 1fr; gap: 1.25rem; }
  .public-hero-copy { padding: 0; }
  .public-hero h1 { margin-top: .55rem; font-size: 2.2rem; }
  .public-hero-copy > p { max-width: 24rem; font-size: .95rem; }
  .public-hero-note { margin-top: 1rem; font-size: .78rem; }
  .public-hero-visual { width: 100%; }
  .public-main { width: 100%; padding: 0 1rem 2.5rem; }
  .public-search-panel { margin-top: -1rem; }
  .public-search-heading { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .public-search-heading h2 { font-size: 1.25rem; }
  .public-search-panel .row > div:last-child { width: 100%; }
  .public-results-heading { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .public-login { transition: none; }
  .public-hero-copy,.public-hero-visual,.public-search-panel { animation: none; }
}

@keyframes public-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}