/* Saengthong Witthaya photo/media consent notice (owner request, 30 Oct 2026).
   Same palette and face as the landing page (index.html, 22 Oct 2026). */
:root {
  --ink: #333333;
  --ink-soft: #595959;
  --paper: #ffffff;
  --well: #F5F8FC;
  --rule: #E3E9F2;
  --blue: #1E1AE0;
  --blue-deep: #1713AA;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Bai Jamjuree", -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
}
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between;
  padding: 0.85rem clamp(1rem, 5vw, 3rem);
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--blue);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem;
}
.top nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-flex; align-items: center; padding: 0.4rem 0.9rem; border-radius: 8px;
  border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  background: var(--paper); font-family: inherit; cursor: pointer;
}
.pill[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill:hover:not([aria-current="page"]) { border-color: var(--blue); color: var(--blue); }

main { max-width: 52rem; margin: 0 auto; padding: 2.5rem clamp(1rem, 5vw, 2rem) 4rem; }
.letterhead { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.letterhead img { width: 84px; height: auto; }
.school { font-weight: 600; color: var(--blue); letter-spacing: 0.02em; }
h1 { font-size: clamp(1.25rem, 3.2vw, 1.6rem); line-height: 1.45; margin: 0; text-wrap: balance; }
.note {
  margin: 1.5rem 0 0; padding: 0.75rem 1rem; border-radius: 8px;
  background: var(--well); font-size: 0.9rem; color: var(--ink-soft);
}
h2 {
  scroll-margin-top: 5rem;
  font-size: 1.1rem; margin: 2.25rem 0 0.5rem; padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule); color: var(--blue-deep);
}
p { margin: 0.6rem 0; }
.indent { text-indent: 2.5em; }
ol.purposes { margin: 0.5rem 0; padding-left: 1.75em; }
ol.purposes li { padding-left: 0.25em; margin: 0.2rem 0; }
.pledge { font-weight: 700; }

.form {
  margin-top: 2.5rem; padding: clamp(1rem, 4vw, 1.75rem); border: 1px solid var(--rule); border-radius: 10px;
}
.form h2 { margin-top: 0; }
.form h2 + * { margin-top: 0.75rem; }
.form h2:not(:first-child) { margin-top: 1.75rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.6rem 1.5rem; }
.field { display: flex; gap: 0.5rem; align-items: flex-end; }
.field span:first-child { white-space: nowrap; }
.line { flex: 1; min-width: 4rem; border-bottom: 1px dotted var(--ink-soft); height: 1.4em; }
.choices { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1rem; margin: 1.25rem 0 0.5rem; font-weight: 600; }
.box { display: inline-block; width: 1em; height: 1em; border: 1.5px solid var(--ink); vertical-align: -0.12em; margin-right: 0.4em; }
.sign { margin: 2.25rem 0 0 auto; width: min(100%, 20rem); display: grid; gap: 0.6rem; text-align: center; }
.sign .field { justify-content: center; }
.print-row { margin-top: 1.5rem; display: flex; justify-content: flex-end; }

footer {
  border-top: 1px solid var(--rule); padding: 1.5rem clamp(1rem, 5vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  font-size: 0.85rem; color: var(--ink-soft);
}

@media print {
  .top, .note, .print-row, footer { display: none; }
  body { font-size: 11pt; }
  main { max-width: none; padding: 0; }
  .form { border: 0; padding: 0; break-before: page; }
  h2 { break-after: avoid; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
