@font-face {
  font-family: PublicSarabun;
  src: url("fonts/THSarabunNew.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: PublicSarabun;
  src: url("fonts/THSarabunNew-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
.document-home {
  --document-navy: #17324d;
  --document-gold: #8c6627;
  --document-line: #deded7;
  background: #fff;
  font-family: PublicSarabun, Tahoma, sans-serif;
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--document-navy);
}
.document-home * {
  box-sizing: border-box;
}
.document-home .public-home-main {
  width: 100%;
  padding: 0;
}
.document-home .public-navbar-inner,
.document-hero,
.document-library,
.document-school-system {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.document-home .public-navbar-inner {
  min-height: 92px;
  gap: 20px;
}
.document-home .public-brand img {
  width: 56px;
  height: 64px;
}
.document-home .public-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.public-brand-copy strong {
  font-size: 1.5rem;
  color: var(--document-navy);
}
.public-brand-copy small {
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 38ch;
}
.document-home .public-navbar .btn,
.document-button,
.document-download {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 7px 22px;
  border: 1px solid var(--document-gold);
  border-radius: 6px;
  background: var(--document-navy);
  color: #fff;
  text-decoration: none;
  font:
    700 1.25rem/1.4 PublicSarabun,
    Tahoma,
    sans-serif;
  cursor: pointer;
}
.document-home .public-navbar .btn {
  background: #fff;
  color: var(--document-navy);
  border-color: #cbd3d9;
  white-space: nowrap;
}
.document-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
  align-items: center;
  gap: 32px;
  min-height: 390px;
  padding-block: 36px;
  position: relative;
  isolation: isolate;
}
.document-hero:before {
  content: "";
  position: absolute;
  inset: 0 calc((min(1120px, 100vw - 40px) - 100vw) / 2);
  z-index: -1;
  background: #fbf8ef;
}
.document-hero h1 {
  font-size: 3.25rem;
  line-height: 1.13;
  font-weight: 700;
  margin: 0 0 20px;
}
.document-hero h1 span {
  color: var(--document-gold);
}
.document-hero p {
  margin: 0 0 24px;
  color: #4f5964;
  font-size: 1.5rem;
  line-height: 1.5;
}
.document-hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.document-hero-copy > * {
  position: relative;
  z-index: 1;
}
.document-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.document-flower-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.lamduan-mote {
  --mote-angle: -12deg;
  position: absolute;
  display: block;
  width: 30px;
  opacity: 0.75;
  transform: rotate(var(--mote-angle));
}
.lamduan-mote img {
  display: block;
  width: 100%;
  height: auto;
}
.document-hero[data-blooms-moving] .lamduan-mote {
  animation: lamduan-mote-sway 10s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.document-hero[data-blooms-moving="true"] .lamduan-mote {
  animation-play-state: running;
}
.document-hero[data-blooms-moving="false"] .document-hero-art img {
  animation-play-state: paused;
}
.lamduan-mote-1 {
  left: 52%;
  top: 9%;
  width: 28px;
}
.lamduan-mote-2 {
  left: 60%;
  top: 68%;
  width: 22px;
  --mote-angle: 22deg;
}
.lamduan-mote-3 {
  right: 2%;
  top: 12%;
  width: 34px;
  --mote-angle: 8deg;
}
.lamduan-mote-4 {
  right: 4%;
  bottom: 8%;
  width: 24px;
  --mote-angle: -28deg;
}
.lamduan-mote-5 {
  left: 43%;
  bottom: 7%;
  width: 20px;
  --mote-angle: 15deg;
}
.document-hero[data-blooms-moving] .lamduan-mote-2 {
  animation-duration: 12s;
  animation-delay: -3s;
}
.document-hero[data-blooms-moving] .lamduan-mote-3 {
  animation-duration: 14s;
  animation-delay: -5s;
}
.document-hero[data-blooms-moving] .lamduan-mote-4 {
  animation-duration: 11s;
  animation-delay: -7s;
}
.document-hero[data-blooms-moving] .lamduan-mote-5 {
  animation-duration: 13s;
  animation-delay: -2s;
}
@keyframes lamduan-mote-sway {
  from {
    transform: translate3d(0, 0, 0) rotate(var(--mote-angle));
  }
  to {
    transform: translate3d(5px, -12px, 0)
      rotate(calc(var(--mote-angle) + 12deg));
  }
}
.document-hero-art img {
  display: block;
  max-width: 100%;
  width: 300px;
  height: 330px;
  object-fit: contain;
  transform-origin: 80% 90%;
}
.document-home[data-intro-motion="true"] .document-hero-art img {
  animation: lamduan-arrive 1.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.document-library {
  padding-block: 32px 48px;
  scroll-margin-top: 20px;
}
.document-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.document-section-heading h2,
.document-school-system > h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}
.document-count {
  font-size: 1.25rem;
  color: #5d6570;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.document-search {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
  background: #f5f7f9;
  border-radius: 8px;
  margin-bottom: 24px;
}
.document-search label {
  font-weight: 700;
  font-size: 1.25rem;
  min-width: 0;
}
.document-search input,
.document-search select {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  background: #fff;
  border: 1px solid #c4cdd4;
  border-radius: 5px;
  padding: 7px 12px;
  color: var(--document-navy);
  font:
    400 1.375rem/1.4 PublicSarabun,
    Tahoma,
    sans-serif;
}
.document-search input::placeholder {
  color: #656d77;
  opacity: 1;
}
.document-clear {
  color: #4b5866;
  grid-column: 1/-1;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 4px;
}
.document-results {
  border-top: 1px solid var(--document-line);
}
.document-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--document-line);
}
.document-filetype {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border: 1px solid #d8d9d1;
  border-radius: 6px;
  color: var(--document-gold);
  font-size: 1.125rem;
  font-weight: 700;
  background: #fffdf7;
}
.document-item-copy {
  min-width: 0;
}
.document-category {
  color: var(--document-gold);
  font-size: 1.125rem;
}
.document-item h3 {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 3px 0 6px;
  overflow-wrap: anywhere;
}
.document-item p {
  color: #505d6b;
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.document-item small {
  display: block;
  color: #65707b;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}
.document-download {
  background: #fff;
  color: var(--document-gold);
  white-space: nowrap;
}
.document-button,
.document-download,
.document-home .public-navbar .btn {
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.document-button:hover {
  background: #254865;
  color: #fff;
}
.document-download:hover,
.document-home .public-navbar .btn:hover {
  background: #faf1db;
  color: #654713;
  border-color: #8c6627;
}
.document-button:active,
.document-download:active {
  background: #f1e5c8;
  color: #332c21;
}
.document-empty {
  padding: 42px 24px;
  border: 1px dashed #cbd2d7;
  border-radius: 8px;
  text-align: center;
  color: #586673;
}
.document-empty h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--document-navy);
  margin: 0 0 10px;
}
.document-empty p {
  margin: 0;
  font-size: 1.375rem;
}
.document-empty a {
  color: var(--document-navy);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}
.document-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}
.document-pagination a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--document-navy);
  text-underline-offset: 4px;
}
.document-school-system {
  padding-block: 32px 0;
}
.document-school-system > h2 {
  margin-bottom: 20px;
}
.document-home .grade-entry-schedule-public {
  border-left-width: 1px;
  box-shadow: none;
}
.document-home .public-countdown-cell {
  font-variant-numeric: tabular-nums;
}
.document-home .public-schedule-eyebrow,
.document-home .public-schedule-period,
.document-home .public-schedule-time span,
.document-home .public-countdown-message,
.document-home .public-countdown-ended,
.document-home .public-countdown-label {
  font-size: 1.125rem;
}
.document-home .public-schedule-title {
  font-size: 1.5rem;
}
.document-home :is(a, button, input, select):focus-visible {
  outline: 3px solid #96702b;
  outline-offset: 4px;
}
.document-home ::selection {
  background: #eddfb9;
  color: #17324d;
}
.document-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  z-index: 1000;
  background: #fff;
  color: #17324d;
  padding: 12px;
}
.document-skip:focus {
  transform: none;
}
@keyframes lamduan-arrive {
  from {
    transform: rotate(-5deg);
    filter: brightness(1.06);
  }
  to {
    transform: rotate(0);
    filter: brightness(1);
  }
}
@media (max-width: 1000px) {
  .document-hero h1 {
    font-size: 2.75rem;
  }
  .document-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 1fr);
  }
  .document-hero-art img {
    height: 280px;
  }
  .document-home .public-schedule-layout {
    grid-template-columns: 1fr;
  }
  .document-home .public-schedule-times {
    border: 0;
    border-block: 1px solid var(--public-line);
    padding: 16px 0;
  }
}
@media (max-width: 650px) {
  .lamduan-mote-1 {
    left: auto;
    right: 10px;
    top: 6px;
    width: 20px;
  }
  .lamduan-mote-2 {
    left: auto;
    right: 24px;
    top: auto;
    bottom: 20px;
    width: 18px;
  }
  .lamduan-mote-3,
  .lamduan-mote-4,
  .lamduan-mote-5 {
    display: none;
  }
  .document-home .public-navbar-inner,
  .document-hero,
  .document-library,
  .document-school-system {
    width: calc(100% - 32px);
  }
  .document-home .public-navbar-inner {
    min-height: 88px;
    gap: 12px;
  }
  .document-home .public-brand {
    gap: 8px;
    min-width: 0;
  }
  .document-home .public-brand img {
    width: 40px;
    height: 48px;
  }
  .public-brand-copy strong {
    font-size: 1.25rem;
  }
  .public-brand-copy small {
    font-size: 1rem;
    line-height: 1.3;
  }
  .document-home .public-navbar .btn {
    padding-inline: 12px;
    font-size: 1.125rem;
  }
  .document-hero {
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 16px;
    min-height: 0;
    padding-block: 28px;
  }
  .document-hero-copy {
    display: contents;
  }
  .document-hero h1 {
    font-size: 2.125rem;
    line-height: 1.2;
    margin: 0;
  }
  .document-hero-art {
    grid-column: 2;
    grid-row: 1;
  }
  .document-hero-art img {
    height: 130px;
    width: 105px;
    max-width: 115%;
  }
  .document-hero p,
  .document-hero-actions {
    grid-column: 1/-1;
  }
  .document-hero p {
    font-size: 1.375rem;
    margin: 0;
  }
  .document-search {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    gap: 14px;
  }
  .document-library {
    padding-block: 30px;
  }
  .document-section-heading h2,
  .document-school-system > h2 {
    font-size: 1.75rem;
  }
  .document-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding-block: 20px;
  }
  .document-filetype {
    min-height: 50px;
    font-size: 1rem;
    align-self: start;
  }
  .document-download {
    grid-column: 2;
    justify-self: start;
  }
  .document-item h3 {
    font-size: 1.5rem;
  }
  .document-empty {
    padding: 28px 16px;
  }
  .document-home .public-countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .document-home .grade-entry-schedule-public {
    padding: 18px;
  }
  .document-home .public-countdown-cell {
    padding: 10px 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .document-hero[data-blooms-moving] .lamduan-mote {
    animation: none;
  }
  .document-home[data-intro-motion="true"] .document-hero-art img {
    animation: none;
  }
  .document-button,
  .document-download,
  .document-home .public-navbar .btn {
    transition: none;
  }
}

.document-search-field {
  min-width: 0;
}
.document-search label {
  display: block;
}

/* Public enrollment entry joins the existing header actions. */
.public-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex-shrink:0}
@media(max-width:650px){.document-home .public-navbar-inner{flex-wrap:wrap;padding-block:12px}.public-header-actions{margin-left:auto}}
