/* English Park — shared styles */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: #34553F; text-decoration: none; }
a:hover { color: #45504A; }
img { max-width: 100%; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid #34553F; outline-offset: 3px; }

/* Mobile menu */
@media (max-width: 760px) {
  .ep-links { display: none !important; }
  .ep-burger { display: inline-flex !important; }
}
#ep-menu[hidden] { display: none !important; }

/* Payment open / closed (set PAYMENT_OPEN in /assets/site.js) */
html:not(.pay-open) [data-pay="open"] { display: none !important; }
html.pay-open [data-pay="closed"] { display: none !important; }

/* Q&A accordion */
.ep-faq summary::-webkit-details-marker { display: none; }
.ep-faq .ep-faq-mark::before { content: "+"; }
.ep-faq[open] .ep-faq-mark::before { content: "−"; }

/* Legal pages */
.ep-legal { font-size: 16px; line-height: 1.85; color: #45504A; }
.ep-legal h2 { margin: 40px 0 12px; font-size: 20px; font-weight: 700; line-height: 1.4; color: #34553F; }
.ep-legal p { margin: 0 0 14px; }
.ep-legal ul { margin: 0 0 14px; padding-left: 22px; }
.ep-legal li { margin-bottom: 6px; }
.ep-legal a { color: #34553F; text-decoration: underline; text-underline-offset: 4px; }
.ep-legal .ep-legal-date { font-size: 14px; color: #5A635C; margin-bottom: 24px; }

/* Payment buttons full width */
[data-pay] { display: flex; flex-direction: column; }
[data-pay] > a, [data-pay] > div { width: 100%; }

/* Before / After on mobile */
@media (max-width: 760px) {
  .ep-ba-head { display: none !important; }
  .ep-ba-row { gap: 4px !important; }
  .ep-ba-b::before { content: "Before  "; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #5A635C; }
  .ep-ba-a::before { content: "After  "; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #34553F; }
}

/* ============================================================
   Recruitment closed (set RECRUIT_CLOSED in /assets/site.js)
   ============================================================ */
html.recruit-closed [data-pay="open"] { display: none !important; }
html.recruit-closed [data-pay="closed"] { display: flex !important; }

/* Hide banner + /classes schedule & steps before JS runs (no flash) */
html.recruit-closed div:has(> a > [data-seats-banner]),
html.recruit-closed section[aria-labelledby="curri"],
html.recruit-closed section[aria-labelledby="steps"] { display: none !important; }

/* Hero badge: filled pill */
.ep-closed-badge { background: #34553F; color: #FAFAF7; display: inline-flex; align-items: center; gap: 8px; }
.ep-closed-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #CFD9CC; }

/* Nav "수업 안내": outline instead of solid */
.ep-links a.ep-closed-cta { background: transparent !important; color: #34553F !important; box-shadow: inset 0 0 0 1px #34553F; }
.ep-links a.ep-closed-cta:hover { background: #34553F !important; color: #FAFAF7 !important; }

/* Simple closed notice (replaces the class card) */
.ep-closed-note { padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid #34553F; border-bottom: 1px solid #E3E1DA; display: flex; flex-direction: column; gap: 12px; }
.ep-closed-note-t { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.03em; color: #34553F; }
.ep-closed-note-d { margin: 0; font-size: 17px; line-height: 1.7; color: #45504A; }
.ep-closed-note-d a { color: #34553F; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* /classes: header already has a bottom rule, so drop the notice's top rule */
header + section:has(> .ep-closed-note) { padding-top: clamp(32px, 4vw, 48px) !important; }
header + section > .ep-closed-note { border-top: 0; padding-top: 0; }
