/* 참가 신청 안내 페이지. 토큰과 버튼, 내비, 푸터는 styles.css를 그대로 쓴다. */

.page-apply .nav__links a[aria-current="page"] { color: var(--ink); }

.apply { padding-top: clamp(120px, 15vh, 168px); }
.apply__head { padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.apply__eyebrow { font-size: 0.9375rem; font-weight: 700; color: var(--accent); }
.apply__title { margin-top: 14px; font-family: var(--f-head); font-weight: 600; font-size: clamp(2.1rem, 1rem + 3.6vw, 3.9rem); line-height: 1.12; letter-spacing: -0.035em; }
.apply__lede { margin-top: 20px; max-width: 44ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  .apply__title { animation: hero-headline-in 1s var(--e-hero) both; }
  .apply__eyebrow, .apply__lede { animation: hero-copy-in 0.8s var(--e-hero) 0.3s both; }
}

/* 2단: 왼쪽 마감·목차 고정, 오른쪽 내용 */
.apply__body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 5vw, 64px); }
.apply__aside { position: sticky; top: 96px; align-self: start; }
.deadline { background: var(--panel); border-radius: 14px; padding: 22px; }
.deadline__label { font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); }
.deadline__date { margin-top: 6px; font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.3; }
.deadline__dday { margin-top: 4px; font-weight: 700; color: var(--accent); min-height: 1.5em; }
.deadline__btn { width: 100%; margin-top: 16px; padding: 0; }
.deadline__note { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-2); }
.toc { margin-top: 24px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc a { padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 0.9375rem; color: var(--ink-3); transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }

.apply__content { min-width: 0; max-width: 720px; }
.sec { padding-bottom: clamp(56px, 7vw, 88px); scroll-margin-top: 96px; }
.sec__title { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.2; }
.sec__lede { margin-top: 14px; color: var(--ink-2); }
.note { margin-top: 20px; font-size: 0.9375rem; color: var(--ink-2); }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.facts { margin-top: 24px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--ink-3); font-size: 0.9375rem; padding-top: 1px; }
.facts dd { font-size: 1.0625rem; }
.facts dd span { display: block; margin-top: 2px; font-size: 0.9375rem; color: var(--ink-2); }
.facts--small dd { font-size: 0.9875rem; }

.checks { margin-top: 24px; display: grid; gap: 12px; }
.checks li { background: var(--panel); border-radius: 12px; padding: 18px 20px 18px 52px; position: relative; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.checks b { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 4px; }


.steps2 { margin-top: 24px; counter-reset: s; display: grid; gap: 0; }
.steps2 li { counter-increment: s; position: relative; padding: 0 0 26px 52px; }
.steps2 li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 0.9375rem; }
.steps2 li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line); }
.steps2 b { display: block; font-size: 1.0625rem; }
.steps2 span { display: block; margin-top: 4px; color: var(--ink-2); }
.tip { margin-top: 8px; border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.tip b { display: block; }
.tip p { margin-top: 4px; color: var(--ink-2); }

.sched { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sched li { background: var(--panel); border-radius: 12px; padding: 16px 18px; }
.sched li.is-key { background: var(--accent); color: var(--on-accent); }
.sched time { display: block; font-size: 0.8125rem; font-weight: 700; opacity: 0.7; }
.sched b { display: block; margin-top: 6px; font-size: 1.0625rem; }
.sched span { display: block; margin-top: 2px; font-size: 0.875rem; opacity: 0.75; }
@media (max-width: 640px) { .sched { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gets { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.gets li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; }
.gets b { font-size: 1.0625rem; }
.gets span { color: var(--ink-2); }
.promise { margin-top: 28px; background: var(--panel); border-radius: 12px; padding: 20px 22px; }
.promise ul { margin-top: 10px; display: grid; gap: 6px; color: var(--ink-2); }
.promise li { padding-left: 16px; position: relative; }
.promise li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 2px; background: var(--ink-3); }
@media (max-width: 640px) { .gets li { grid-template-columns: 1fr; gap: 4px; } }

.parents { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.parents li { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.parents b { display: block; font-size: 1.0625rem; }
.parents span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 640px) { .parents { grid-template-columns: 1fr; } }

.faq { margin-top: 20px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 1.0625rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.375rem; font-weight: 400; color: var(--ink-3); transition: transform 0.3s var(--e-std); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.35s var(--e-std), content-visibility 0.35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq p { padding: 0 0 20px; color: var(--ink-2); }

.sec--end { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); }
.end__title { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.03em; }
.end__cd { margin-top: 10px; font-size: 1.0625rem; color: var(--ink-2); }
.end__cd .cd { color: var(--accent); font-weight: 700; }
.end__row { margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--ink-2); }

/* 작은 화면: 목차를 숨기고 마감 상자를 머리 아래에 둔다 */
@media (max-width: 900px) {
  .apply__body { grid-template-columns: 1fr; }
  .apply__aside { position: static; }
  .toc { display: none; }
}

/* 모집 대상 안의 선발 기준 */
.sec__sub { margin-top: 36px; font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.crit { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: c; }
.crit li { counter-increment: c; border-top: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); padding-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }
.crit li::before { content: counter(c, decimal-leading-zero); display: block; font-size: 0.8125rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.crit b { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 4px; }
@media (max-width: 560px) { .crit { grid-template-columns: 1fr; } }
