:root {
  color-scheme: light;
  font-family: "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  color: #152742;
  background: #edf3f9;
  line-height: 1.65;
  --ink: #152742;
  --muted: #465b74;
  --blue: #075bca;
  --border: #d8e3ef;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 15% 20%, #f8fbff 0%, #edf3f9 62%); }
a { text-decoration: none; }
.site-header { background: #fff; border-bottom: 1px solid #e2eaf3; }
.bar, main { width: min(calc(100% - 3rem), 68rem); margin-inline: auto; }
.bar { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-size: 1.04rem; font-weight: 800; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; background: #075bca; }
.brand-mark span { width: .66rem; height: .86rem; border: 1.5px solid white; border-radius: .13rem; position: relative; }
.brand-mark span::after { content: ""; position: absolute; left: .12rem; right: .12rem; bottom: .2rem; border-bottom: 1.5px solid white; }
nav { display: flex; flex-wrap: wrap; gap: .25rem; }
nav a { padding: .42rem .7rem; border-radius: .5rem; color: var(--muted); font-size: .9rem; font-weight: 650; }
nav a:hover { background: #f2f6fb; }
nav a[aria-current] { color: #0755b8; background: #eaf3ff; }
main { padding-block: clamp(2.5rem, 8vh, 5.5rem); }
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  min-height: 31rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: 0 26px 70px -32px #1b447450, 0 7px 20px -12px #1b447440;
  background: #fff;
}
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.45rem 0 0 1.45rem;
  padding: clamp(1.75rem, 4.3vw, 3.5rem);
  color: #fff;
  background: radial-gradient(ellipse at 93% 103%, #2379e4 0%, #124b9d 39%, #102b58 75%, #0e254c 100%);
}
.intro-copy { position: relative; z-index: 1; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.12; }
.intro p { max-width: 26ch; margin-top: 1.3rem; color: #daebff; font-size: 1rem; line-height: 1.85; }
.archive-illustration { position: absolute; width: 17rem; height: 15rem; bottom: -.3rem; right: -.3rem; pointer-events: none; }
.orbit { position: absolute; border: 1px solid #c5e5ff50; border-radius: 50%; }
.orbit-outer { width: 19rem; height: 19rem; right: -1.1rem; bottom: -3rem; }
.orbit-inner { width: 14.2rem; height: 14.2rem; right: 1.3rem; bottom: -.6rem; border-color: #c5e5ff62; }
.orbit-dot { position: absolute; left: .55rem; top: 4.1rem; width: .42rem; height: .42rem; border-radius: 50%; background: #8fe2ff; box-shadow: 0 0 1.2rem #8fe2ff; }
.archive-file {
  position: absolute;
  left: 5.6rem;
  bottom: 2.15rem;
  width: 6.3rem;
  height: 8.1rem;
  display: grid;
  place-items: end start;
  padding: .75rem 1rem;
  border: 1px solid #d0eaffac;
  border-radius: .75rem;
  clip-path: polygon(0 0, 67% 0, 100% 25%, 100% 100%, 0 100%);
  transform: rotate(-11deg);
  background: linear-gradient(155deg, #b3dcff96, #5ba7fa48 74%);
  color: #f4faff;
  font: 800 .95rem/1 system-ui, sans-serif;
  letter-spacing: .14em;
}
.archive-fold { position: absolute; top: 0; right: 0; width: 2.08rem; height: 2.03rem; border-radius: 0 0 0 .35rem; background: #e2f2ffad; }
.zipper { position: absolute; left: 1.05rem; top: 0; width: .52rem; height: 3rem; background: repeating-linear-gradient(to bottom, #eff8ffc9 0 3px, transparent 3px 6px); }
.zipper::after { content: ""; position: absolute; top: 100%; left: -.1rem; width: .7rem; height: 1rem; border: 1.5px solid #eaf6ff; border-radius: .18rem; }
.archive-badge { position: absolute; left: 10.1rem; bottom: 2.5rem; width: 2.75rem; height: 2.75rem; border: 1px solid #abdeff; border-radius: .8rem; background: #9fdcff; box-shadow: 0 .4rem 1.4rem #082b6b6e; }
.archive-badge::before, .archive-badge::after { content: ""; position: absolute; left: 50%; top: 50%; }
.archive-badge::before { width: 2px; height: .95rem; background: #103d70; transform: translate(-50%, -60%); }
.archive-badge::after { width: .52rem; height: .52rem; border-right: 2px solid #103d70; border-bottom: 2px solid #103d70; transform: translate(-50%, -29%) rotate(45deg); }
.panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(1.75rem, 5vw, 4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 800; line-height: 1.35; letter-spacing: -.025em; margin-bottom: 1.5rem; }
.field + .field { margin-top: 1.3rem; }
label { display: block; margin-bottom: .46rem; color: var(--ink); font-size: .92rem; font-weight: 750; }
input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3.2rem;
  padding: .66rem .85rem;
  border: 1px solid #b8c9db;
  border-radius: .65rem;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
}
input::placeholder { color: #586d85; opacity: 1; }
input:focus { border-color: var(--blue); background: #fff; }
.challenge { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; gap: .65rem; }
#question { display: grid; place-items: center; min-width: 6.6rem; padding: .45rem .7rem; color: #174e96; background: #eaf3ff; border: 1px solid #d6e7fd; border-radius: .65rem; font-size: 1rem; text-align: center; font-variant-numeric: tabular-nums; }
.actions { display: grid; gap: .63rem; margin-top: 1.65rem; }
button { min-height: 3.15rem; padding: .63rem 1rem; border: 1px solid var(--blue); border-radius: .65rem; background: var(--blue); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
button:not(:disabled):hover { background: #084da9; }
button:disabled { opacity: .7; cursor: wait; }
.secondary { color: #154f95; border-color: #c6d8ed; background: #f7fbff; }
.secondary:not(:disabled):hover { background: #eaf3ff; }
:focus-visible { outline: 3px solid #2786e2; outline-offset: 2px; }
.feedback { padding: .7rem .85rem; border-radius: .65rem; background: #ebf4ff; color: #18477d; overflow-wrap: anywhere; }
.error { margin-bottom: 1rem; background: #fff0ed; color: #8a2b21; }
#status { margin-top: .95rem; }
#status:empty { display: none; }
dl { margin: 0 0 .9rem; padding: .4rem .9rem; background: #f4f8fd; border: 1px solid #e3edf7; border-radius: .65rem; }
dl div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: .5rem; padding: .47rem 0; }
dl div + div { border-top: 1px solid #dee8f4; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
.result-note { color: var(--muted); font-size: .92rem; }
@media (max-width: 47rem) {
  .bar, main { width: min(calc(100% - 2rem), 33rem); }
  .bar { min-height: 4rem; }
  main { padding-block: 1.7rem 2.5rem; }
  .download-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .intro { border-radius: 1.45rem 1.45rem 0 0; }
  .intro p { max-width: 28ch; }
  .archive-illustration { opacity: .62; right: -2.2rem; bottom: -1.8rem; transform: scale(.7); transform-origin: bottom right; }
}
@media (max-width: 30rem) {
  .bar { flex-wrap: wrap; align-content: center; padding-block: .7rem; }
  nav a { padding: .35rem .55rem; }
  .intro, .panel { padding: 1.35rem; }
  h1 { font-size: 2.3rem; }
  .intro p { max-width: 26ch; font-size: .94rem; }
  .archive-illustration { opacity: .32; right: -2.9rem; }
}
@media (max-width: 21rem) {
  .challenge { grid-template-columns: minmax(0, 1fr); }
}
