* { box-sizing: border-box; }
body {
  margin: 0;
  font: 1rem/1.6 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
a { color: var(--goala-navy); text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
button, summary, label:has(input[type=checkbox]) { cursor: pointer; }
:focus-visible { outline: 3px solid #39789f; outline-offset: 3px; }
.skip-form { position: fixed; top: -6rem; left: 12px; z-index: 60; padding: 12px; background: white; }
.skip-form:focus { top: 8px; }

/* The shared header and its palette also serve the standalone application. */
.header { position: sticky; top: 0; z-index: 50; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 80px), 1360px);
  margin-inline: auto;
}
.header a { text-decoration: none; }
.header .logo { display: inline-block; font: 900 24px/1 'Anton', 'Noto Sans KR', sans-serif; letter-spacing: -.025em; white-space: nowrap; }
.header .logo-mark { font-size: inherit !important; }
.header .nav-links { display: flex; align-items: center; }
.header .menu-toggle { display: none; font-size: 13px; font-weight: 800; }
.header [data-template-id="header-apply"], .header .mobile-menu { display: none; }
.header .mobile-menu {
  padding: 8px 20px 16px;
  border-top: 1px solid;
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
}
.header .mobile-menu a { padding: 10px 0; min-height: 44px; border-bottom: 1px solid #ffffff30; font-size: .875rem; }
@media (min-width: 768px) and (max-width: 1099px) {
  .header-inner { width: calc(100% - 48px); }
}
@media (max-width: 1000px) {
  .header .nav-links { display: none; }
  .header .menu-toggle { display: block; }
  .header .mobile-menu.open { display: grid; }
}
@media (max-width: 767px) {
  .header-inner { width: calc(100% - 40px); }
}
@media (max-width: 640px) {
  .header-inner { width: calc(100% - 28px); }
}

main {
  width: min(calc(100% - 40px), 660px);
  margin: clamp(24px, 4vw, 54px) auto 56px;
}
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.55rem, 4.2vw, 2.25rem); line-height: 1.3; font-weight: 800; letter-spacing: -.055em; }
h2 { color: var(--goala-navy); font-size: 1.125rem; line-height: 1.45; }
.form-intro { margin: 9px 0 20px; color: #3c5363; }
form, #bucheonInterestSuccess {
  padding: clamp(16px, 3.5vw, 28px);
  border: 1px solid var(--goala-line);
  border-radius: 8px;
  background: white;
}
.form-field + .form-field { margin-top: 16px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--goala-navy); }
.form-field :is(input, textarea) {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #98acba;
  border-radius: 5px;
  background: white;
  color: var(--goala-charcoal);
  scroll-margin-top: 112px;
}
.form-field textarea { min-height: 76px; resize: vertical; }
.form-field ::placeholder { color: #526679; opacity: 1; }
.consents { min-width: 0; margin: 24px 0 16px; padding: 12px 0 0; border: 0; }
.consents legend { width: 100%; border-top: 1px solid var(--goala-line); padding: 16px 0 0; font-weight: 750; color: var(--goala-navy); }
.consents details { margin: 0 0 7px; }
summary { padding: 10px 0; min-height: 44px; color: #37566c; font-size: .9375rem; }
details p { margin: 0 0 12px; font-size: .9375rem; color: #405664; }
.consents label { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; min-height: 44px; font-size: .9375rem; }
.consents input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--goala-navy); }
button[type=submit] { width: 100%; min-height: 50px; border: 0; border-radius: 5px; padding: 12px 16px; font-size: 1rem; font-weight: 750; }
button[type=submit]:hover { filter: brightness(1.15); }
button:disabled { cursor: wait; opacity: .65; }
.application-error { color: #9c302e; }
.application-error:not(:empty) { margin-bottom: 12px; }
#bucheonInterestSuccess { scroll-margin-top: 112px; }
#bucheonInterestSuccess p { margin-top: 10px; }
.class-support { margin: 24px 0 16px; }
.class-support p { margin: 6px 0; color: #405664; }
.support-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.support-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 600; }
footer { border-top: 1px solid var(--goala-line); padding-top: 10px; }
footer button { min-height: 44px; padding: 8px 12px; border: 1px solid #91a8b7; border-radius: 3px; background: white; color: var(--goala-navy); }
#application { scroll-margin-top: 108px; }
