:root {
    color-scheme: light;
    --ink: #164b63;
    --muted: #5c7d8c;
    --line: rgba(177, 221, 241, 0.8);
    --card: rgba(255, 255, 255, 0.72);
    --shadow: 0 10px 28px rgba(80, 170, 210, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

* { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 30%),
        linear-gradient(135deg, #eaf8ff 0%, #d8f1ff 45%, #f7fcff 100%);
    font-family: Arial, "Noto Sans KR", sans-serif;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url("/assets/logo.png") center center / min(70vw, 520px) auto no-repeat;
    opacity: 0.08;
    pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
a:focus-visible { outline: 3px solid rgba(53, 173, 223, 0.55); outline-offset: 4px; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; padding: 12px 18px; background: #fff; }
.skip-link:focus { top: 12px; }
.site-header, .events-container, .site-footer { position: relative; z-index: 1; }
.site-header {
    border-bottom: 1px solid rgba(180, 220, 240, 0.6);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.header-inner { max-width: 1180px; min-height: 82px; margin: auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; color: #22627f; }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(118, 205, 255, 0.8)); }
.header-link {
    display: inline-flex;
    min-height: 40px;
    padding: 7px 14px;
    align-items: center;
    border: 1px solid rgba(165, 218, 242, 0.65);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 14px rgba(95, 180, 220, 0.08);
    color: #2e6f8c;
    font-size: 13px;
}
.header-link:hover { background: #f0faff; }
.events-container { width: calc(100% - 40px); max-width: 900px; margin: 0 auto; padding: 28px 0 48px; }
.page-heading {
    margin-bottom: 30px;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow);
}
.page-heading h1 { margin-bottom: 8px; font-size: 27px; letter-spacing: -0.03em; line-height: 1.45; }
.page-description { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.section-label { margin: 0 0 13px; color: #2e6f8c; font-size: 18px; font-weight: 600; }
.event-feature {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.status-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 12px; line-height: 1.7; font-weight: 600; }
.status-upcoming { color: #3d7187; background: #e3f4fc; }
.status-preparing { color: #786638; background: #faf4e3; }
.status-closed { color: #657c86; background: #edf3f5; }
.category-label { color: var(--muted); font-size: 12px; }
.event-feature h3, .detail-hero h1 { margin-bottom: 12px; font-size: 28px; letter-spacing: -0.03em; line-height: 1.45; }
.feature-description { max-width: 610px; margin-bottom: 12px; color: #3f6c81; font-size: 15px; line-height: 1.8; }
.department-line { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.feature-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(177, 221, 241, 0.5); }
.period-block { display: flex; flex-direction: column; gap: 5px; }
.period-block > span { color: var(--muted); font-size: 12px; }
.period-block strong { color: #2e6f8c; font-size: 15px; font-weight: 600; }
.button {
    display: inline-flex;
    min-height: 45px;
    padding: 10px 22px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(151, 210, 236, 0.55);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.button-primary { color: #20556f; background: linear-gradient(135deg, #c9efff, #a5def4); box-shadow: 0 5px 15px rgba(80, 170, 210, 0.14); }
.button-primary:hover { background: linear-gradient(135deg, #b7e8fc, #94d5f0); box-shadow: 0 7px 18px rgba(80, 170, 210, 0.18); }
.feature-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.past-section { margin-top: 32px; }
.section-heading { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(160, 210, 235, 0.65); }
.section-heading h2 { margin: 0; color: #2e6f8c; font-size: 20px; font-weight: 600; }
.past-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.past-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 7px 20px rgba(80, 170, 210, 0.07); }
.past-card h3 { margin: 14px 0 10px; font-size: 18px; font-weight: 600; }
.past-date { margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.past-description { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.site-footer { padding: 0 20px 28px; color: var(--muted); text-align: center; font-size: 12px; }
.detail-container { max-width: 800px; padding-top: 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover, .back-link:hover { color: #2e6f8c; text-decoration: underline; }
.detail-hero { margin-bottom: 20px; }
.info-card { margin-bottom: 18px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.info-card h2 { margin: 0 0 19px; color: #2e6f8c; font-size: 20px; font-weight: 600; line-height: 1.6; }
.event-facts { margin: 0; }
.event-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid rgba(177, 221, 241, 0.35); }
.event-facts > div:first-child { padding-top: 0; border: 0; }
.event-facts > div:last-child { padding-bottom: 0; }
.event-facts dt { color: var(--muted); font-size: 13px; }
.event-facts dd { margin: 0; color: #3f6c81; font-size: 14px; }
.event-facts small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.info-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.application-placeholder { scroll-margin-top: 22px; padding: 32px 30px; text-align: center; background: rgba(255, 255, 255, 0.6); }
.application-placeholder .status-badge { margin-bottom: 15px; }
.application-placeholder h2 { margin-bottom: 12px; }
.application-placeholder > p { max-width: 530px; margin: 0 auto; color: var(--muted); font-size: 13px; }
.application-placeholder .placeholder-note { margin-top: 8px; font-size: 12px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
    .header-inner { min-height: 78px; padding: 12px 16px; }
    .brand { font-size: 20px; }
    .brand img { width: 50px; height: 50px; }
    .events-container { width: calc(100% - 28px); padding-top: 20px; padding-bottom: 34px; }
    .page-heading { margin-bottom: 26px; padding: 24px; }
    .page-heading h1 { font-size: 23px; }
    .event-feature { padding: 26px 24px; }
    .event-feature h3, .detail-hero h1 { font-size: 25px; }
    .feature-description { font-size: 14px; }
    .feature-bottom { align-items: stretch; flex-direction: column; gap: 18px; margin-top: 22px; padding-top: 18px; }
    .period-block strong { font-size: 14px; }
    .button { width: 100%; }
    .past-section { margin-top: 30px; }
    .past-grid { grid-template-columns: 1fr; gap: 12px; }
    .past-card { padding: 22px 24px; }
    .past-card h3 { margin-top: 12px; }
    .detail-container { padding-top: 18px; }
    .detail-hero { margin-bottom: 18px; }
    .info-card { padding: 25px 24px; }
    .event-facts > div { grid-template-columns: 1fr; gap: 5px; }
    .application-placeholder { padding-top: 30px; padding-bottom: 30px; }
    .desktop-break { display: none; }
}

@media (max-width: 360px) {
    .events-container { width: calc(100% - 24px); }
    .event-feature, .info-card, .past-card, .page-heading { padding-left: 18px; padding-right: 18px; }
    .period-block strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
