:root {
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --event-ink: #13233a;
    --event-muted: #66758a;
    --event-line: #dbe3ec;
    --event-surface: #ffffff;
    --event-soft: #f5f8fc;
    --event-primary: #1266e3;
    --event-primary-dark: #0b4fb8;
    --event-accent: #ff8a24;
}

body {
    color: var(--event-ink);
    background: #f2f5f9;
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.community-event-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 80px; }
.event-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 220px; overflow: hidden; min-height: 330px; padding: 58px 64px; border-radius: 30px; color: #fff; background: radial-gradient(circle at 78% 20%, rgba(86,164,255,.55), transparent 28%), linear-gradient(135deg, #082755 0%, #0a55ba 56%, #1582e7 100%); box-shadow: 0 24px 56px rgba(19,64,126,.22); }
.event-hero::after { content: ''; position: absolute; right: -80px; bottom: -140px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.04), 0 0 0 110px rgba(255,255,255,.03); }
.event-hero-copy { position: relative; z-index: 1; align-self: center; }
.event-kicker { display: block; margin-bottom: 16px; color: #89c7ff; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.event-hero h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -.04em; }
.event-hero-copy > p { max-width: 680px; margin: 20px 0 28px; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.75; }
.event-hero-mark { position: relative; z-index: 1; align-self: center; color: rgba(255,255,255,.9); font-size: 112px; text-align: center; filter: drop-shadow(0 18px 25px rgba(0,0,0,.18)); transform: rotate(4deg); }
.event-status-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.event-status-row > span { display: inline-flex; gap: 7px; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; background: rgba(0,20,60,.2); }
.event-status-row .event-status.is-open { color: #b7ffd7; background: rgba(7,110,69,.34); }
.event-status-row .event-status.is-closed { color: #ffe0c3; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 26px; }
.event-main-column { display: grid; gap: 20px; }
.event-card, .event-action-card, .event-form-card { border: 1px solid var(--event-line); border-radius: 22px; background: var(--event-surface); box-shadow: 0 10px 32px rgba(32,55,83,.06); }
.event-card { padding: 30px; }
.event-card-heading { display: flex; gap: 16px; align-items: flex-start; }
.event-card-heading > span { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; color: var(--event-primary); font-size: 12px; font-weight: 900; background: #eaf3ff; }
.event-card-heading h2 { margin: 1px 0 5px; font-size: 20px; letter-spacing: -.025em; }
.event-card-heading p { margin: 0; color: var(--event-muted); font-size: 13px; line-height: 1.55; }
.event-rule-list { display: grid; gap: 11px; margin: 24px 0 0; padding: 0; list-style: none; }
.event-rule-list li { display: flex; gap: 10px; align-items: flex-start; color: #34445a; font-size: 14px; line-height: 1.65; }
.event-rule-list i { margin-top: 3px; color: var(--event-primary); font-size: 16px; }
.event-content-block > h2, .event-content-heading h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -.035em; }
.event-content-block.is-heading { padding: 22px 30px; border-color: #bed5f3; background: #f3f8ff; }
.event-content-block.is-heading h2 { margin: 0; color: #124f9e; }
.event-content-block.is-notice { border-color: #f0d49a; background: #fff9ed; }
.event-content-body { margin: 0; color: #48586d; font-size: 14px; line-height: 1.85; white-space: pre-line; }
.event-content-link { display: flex; justify-content: space-between; gap: 14px; align-items: center; color: var(--event-primary); font-size: 15px; font-weight: 850; text-decoration: none; }
.event-content-link:hover { color: var(--event-primary-dark); }
.event-section-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.event-section-preview article { display: flex; gap: 12px; min-width: 0; padding: 17px; border: 1px solid #e7edf4; border-radius: 15px; background: #f9fbfd; }
.event-section-preview i { color: var(--event-primary); font-size: 19px; }
.event-section-preview strong, .event-section-preview small { display: block; }
.event-section-preview strong { margin-bottom: 5px; font-size: 14px; }
.event-section-preview small { overflow: hidden; color: var(--event-muted); font-size: 12px; line-height: 1.5; text-overflow: ellipsis; }
.event-preline, .event-consent-text { margin-top: 22px; padding: 20px; border-radius: 14px; color: #48566a; font-size: 13px; line-height: 1.75; white-space: pre-line; background: var(--event-soft); }
.event-side-column { position: sticky; top: 88px; }
.event-action-card { padding: 28px; text-align: center; }
.event-action-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 17px; place-items: center; border-radius: 18px; color: var(--event-primary); font-size: 23px; background: #eaf3ff; }
.event-action-icon.is-complete { color: #0a9b62; background: #e7f9f1; }
.event-action-card h2 { margin: 0 0 8px; font-size: 19px; }
.event-action-card p { margin: 0 0 20px; color: var(--event-muted); font-size: 13px; line-height: 1.6; }
.event-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 9px; padding: 0 18px; border: 0; border-radius: 13px; color: #fff; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; background: var(--event-primary); transition: .18s ease; }
.event-button:hover { color: #fff; background: var(--event-primary-dark); transform: translateY(-1px); }
.event-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.event-button.is-secondary { border: 1px solid var(--event-line); color: #425168; background: #fff; }
.event-button.is-secondary:hover { color: var(--event-ink); background: var(--event-soft); }
.event-text-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 20px; color: var(--event-muted); font-size: 12px; font-weight: 700; text-decoration: none; }

.event-form-page { width: min(920px, calc(100% - 40px)); }
.event-breadcrumb { display: flex; gap: 8px; align-items: center; overflow: hidden; margin-bottom: 28px; color: var(--event-muted); font-size: 12px; white-space: nowrap; }
.event-breadcrumb a { color: inherit; text-decoration: none; }
.event-breadcrumb span { overflow: hidden; color: var(--event-ink); font-weight: 700; text-overflow: ellipsis; }
.event-form-header { margin-bottom: 30px; text-align: center; }
.event-form-header .event-kicker { color: var(--event-primary); }
.event-form-header h1 { margin: 0; font-size: clamp(28px, 5vw, 42px); letter-spacing: -.04em; }
.event-form-header p { margin: 12px 0 0; color: var(--event-muted); font-size: 14px; }
.event-participation-form { display: grid; gap: 18px; }
.event-form-card { padding: 28px; }
.event-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.event-field { min-width: 0; }
.event-field-checkbox-group, .event-field-textarea { grid-column: 1 / -1; }
.event-field-label { display: block; margin-bottom: 8px; color: #34445a; font-size: 13px; font-weight: 800; }
.event-field-label > span { margin-left: 4px; color: #ef4444; }
.event-field input:not([type=checkbox]):not([type=radio]), .event-field textarea, .event-field select { width: 100%; border: 1px solid #cfd9e5; border-radius: 12px; color: var(--event-ink); font: inherit; font-size: 14px; outline: none; background: #fff; transition: .15s; box-sizing: border-box; }
.event-field input:not([type=checkbox]):not([type=radio]), .event-field select { height: 48px; padding: 0 14px; }
.event-field textarea { min-height: 150px; padding: 13px 14px; line-height: 1.65; resize: vertical; }
.event-field input:focus, .event-field textarea:focus, .event-field select:focus { border-color: var(--event-primary); box-shadow: 0 0 0 3px rgba(18,102,227,.11); }
.event-input-wrap { position: relative; }
.event-input-wrap > span { position: absolute; top: 50%; right: 14px; color: var(--event-muted); font-size: 12px; transform: translateY(-50%); }
.event-input-wrap:has(> span) input { padding-right: 55px; }
.event-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.event-choice input, .event-confirmation input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.event-choice > span { display: flex; gap: 9px; align-items: center; min-height: 48px; padding: 0 14px; border: 1px solid #d7e0ea; border-radius: 12px; color: #46556a; font-size: 13px; font-weight: 700; cursor: pointer; background: #fff; }
.event-choice i, .event-confirmation i { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border: 1px solid #c8d3df; border-radius: 6px; color: transparent; font-size: 11px; background: #fff; }
.event-choice input:checked + span { border-color: #8dbaf7; color: var(--event-primary-dark); background: #eef6ff; }
.event-choice input:checked + span i, .event-confirmation input:checked + span i { border-color: var(--event-primary); color: #fff; background: var(--event-primary); }
.event-upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; margin-top: 24px; border: 1.5px dashed #aebed0; border-radius: 17px; color: var(--event-muted); cursor: pointer; background: #f8fafc; transition: .15s; }
.event-upload-zone:hover, .event-upload-zone.is-dragging { border-color: var(--event-primary); color: var(--event-primary); background: #eef6ff; }
.event-upload-zone i { margin-bottom: 10px; font-size: 30px; }
.event-upload-zone strong { color: var(--event-ink); font-size: 14px; }
.event-upload-zone span { margin-top: 5px; font-size: 11px; }
.event-image-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.event-image-grid figure { position: relative; overflow: hidden; margin: 0; border: 1px solid var(--event-line); border-radius: 13px; background: #fff; }
.event-image-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.event-image-grid button { position: absolute; top: 7px; right: 7px; display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; color: #fff; cursor: pointer; background: rgba(8,20,38,.7); }
.event-image-grid figcaption { overflow: hidden; padding: 8px; color: var(--event-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.event-upload-count { margin: 12px 0 0; color: var(--event-muted); font-size: 12px; text-align: right; }
.event-upload-count strong { color: var(--event-primary); }
.event-consent-card { border-color: #d4e3f7; }
.event-confirmation-list { display: grid; gap: 9px; margin-top: 18px; }
.event-confirmation > span { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border: 1px solid #dde5ee; border-radius: 12px; color: #445268; font-size: 13px; line-height: 1.5; cursor: pointer; background: #fff; }
.event-confirmation.is-primary { display: block; margin-top: 14px; }
.event-confirmation.is-primary > span { border-color: #a9c8f2; color: #174d94; font-weight: 800; background: #f0f6ff; }
.event-consent-renewal { display: flex; gap: 7px; align-items: center; margin: 14px 0 0; color: #b65e0b; font-size: 12px; font-weight: 700; }
.event-submit-bar { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; padding: 9px 0; }
.event-submit-bar > .event-button { width: 130px; }
.event-submit-bar > div { display: flex; flex-direction: column; align-items: flex-end; min-width: 260px; }
.event-submit-bar > div .event-button { width: auto; min-width: 190px; }
#eventFormMessage { min-height: 18px; margin: 0 0 5px; color: #18724d; font-size: 12px; }
#eventFormMessage.is-error { color: #d43c3c; }
.event-form-closed { display: flex; gap: 16px; align-items: center; padding: 26px; border: 1px solid #f1d3b7; border-radius: 18px; background: #fff8ef; }
.event-form-closed i { color: var(--event-accent); font-size: 27px; }
.event-form-closed strong, .event-form-closed p { display: block; margin: 0; }
.event-form-closed p { margin-top: 4px; color: var(--event-muted); font-size: 13px; }

/* Event index */
.event-index-page { min-height: 70vh; }
.event-index-header { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; padding: 54px 0 34px; border-bottom: 1px solid var(--event-line); }
.event-index-header h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1; letter-spacing: -.055em; }
.event-index-header > div > p { max-width: 620px; margin: 18px 0 0; color: var(--event-muted); font-size: 16px; line-height: 1.7; }
.event-index-summary { display: flex; gap: 6px; flex: 0 0 auto; margin: 0; }
.event-index-summary > div { display: grid; min-width: 82px; padding: 14px 16px; border: 1px solid var(--event-line); border-radius: 14px; text-align: center; background: #fff; }
.event-index-summary dt { order: 2; margin-top: 4px; color: var(--event-muted); font-size: 11px; font-weight: 700; }
.event-index-summary dd { margin: 0; color: var(--event-ink); font-size: 21px; font-weight: 900; }
.event-index-section { padding-top: 42px; }
.event-index-section.is-closed { margin-top: 22px; padding-top: 34px; border-top: 1px solid var(--event-line); }
.event-index-section-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 18px; }
.event-index-section-head h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.event-index-section-head p { margin: 7px 0 0; color: var(--event-muted); font-size: 13px; }
.event-index-section-head > span { color: var(--event-muted); font-size: 12px; font-weight: 800; }
.event-index-list { overflow: hidden; border: 1px solid var(--event-line); border-radius: 22px; background: #fff; box-shadow: 0 14px 38px rgba(32,55,83,.06); }
.event-index-item { position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 28px; align-items: center; min-height: 206px; padding: 22px 28px 22px 22px; color: inherit; text-decoration: none; transition: background .18s ease; }
.event-index-item + .event-index-item { border-top: 1px solid var(--event-line); }
.event-index-item:hover { color: inherit; background: #f9fbfe; }
.event-index-item-visual { position: relative; display: grid; overflow: hidden; height: 160px; place-items: center; border-radius: 17px; color: rgba(255,255,255,.94); background: linear-gradient(145deg, #0c4fa9, #1685eb); }
.event-index-item-visual::after { position: absolute; right: -45px; bottom: -65px; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.06); content: ''; }
.event-index-item-visual > i { position: relative; z-index: 1; font-size: 46px; }
.event-index-item-number { position: absolute; top: 13px; left: 14px; color: rgba(255,255,255,.68); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.event-index-item.is-upcoming .event-index-item-visual { background: linear-gradient(145deg, #35445a, #64748b); }
.event-index-item.is-paused .event-index-item-visual { background: linear-gradient(145deg, #995014, #e68a1e); }
.event-index-item.is-draft .event-index-item-visual { background: linear-gradient(145deg, #5b38a3, #8b5cf6); }
.event-index-item.is-closed .event-index-item-visual { color: #7e8b9b; background: #edf1f5; }
.event-list-status { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 12px; color: #0869c9; font-size: 11px; font-weight: 900; }
.event-list-status.is-upcoming { color: #54647a; }
.event-list-status.is-paused { color: #b45e0b; }
.event-list-status.is-draft { color: #7344c4; }
.event-list-status.is-closed { color: #79879a; }
.event-index-item-body { min-width: 0; }
.event-index-item h3 { margin: 0; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.3; letter-spacing: -.035em; }
.event-index-item-body > p { display: -webkit-box; overflow: hidden; max-width: 700px; margin: 10px 0 0; color: var(--event-muted); font-size: 14px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-index-item-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 18px; color: #657489; font-size: 11px; font-weight: 700; }
.event-index-item-meta span { display: inline-flex; gap: 6px; align-items: center; }
.event-index-item-meta i { color: #8ba0b9; }
.event-index-item-action { display: inline-flex; gap: 8px; align-items: center; color: var(--event-primary); font-size: 12px; font-weight: 900; white-space: nowrap; }
.event-index-item-action i { transition: transform .18s ease; }
.event-index-item:hover .event-index-item-action i { transform: translateX(3px); }
.event-index-empty { display: grid; min-height: 360px; place-items: center; align-content: center; padding: 50px 24px; text-align: center; }
.event-index-empty > span { display: grid; width: 70px; height: 70px; place-items: center; border-radius: 22px; color: var(--event-primary); font-size: 29px; background: #eaf3ff; }
.event-index-empty h2 { margin: 20px 0 0; font-size: 21px; }
.event-index-empty p { margin: 9px 0 0; color: var(--event-muted); font-size: 13px; }

@media (max-width: 900px) {
    .event-hero { grid-template-columns: 1fr 120px; padding: 46px 40px; }
    .event-hero-mark { font-size: 94px; }
    .event-layout { grid-template-columns: 1fr; }
    .event-side-column { position: static; }
    .event-index-item { grid-template-columns: 130px minmax(0, 1fr); }
    .event-index-item-visual { height: 130px; }
    .event-index-item-action { display: none; }
}
@media (max-width: 640px) {
    .community-event-page, .event-form-page { width: min(100% - 24px, 1180px); padding: 22px 0 58px; }
    .event-hero { display: block; min-height: 0; padding: 34px 24px; border-radius: 22px; }
    .event-hero h1 { font-size: 32px; }
    .event-hero-copy > p { margin: 14px 0 20px; font-size: 14px; }
    .event-hero-mark { position: absolute; right: -5px; bottom: -18px; opacity: .22; font-size: 110px; }
    .event-status-row { padding-right: 35px; }
    .event-status-row > span { min-height: 32px; padding: 0 10px; font-size: 10px; }
    .event-card, .event-form-card { padding: 20px 17px; border-radius: 17px; }
    .event-card-heading { gap: 11px; }
    .event-card-heading > span { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
    .event-card-heading h2 { font-size: 17px; }
    .event-section-preview, .event-fields, .event-choice-grid { grid-template-columns: 1fr; }
    .event-field-checkbox-group, .event-field-textarea { grid-column: auto; }
    .event-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-upload-zone { min-height: 150px; padding: 20px; text-align: center; }
    .event-submit-bar { position: sticky; z-index: 5; bottom: 0; align-items: stretch; margin: 0 -12px; padding: 12px; border-top: 1px solid var(--event-line); background: rgba(242,245,249,.96); backdrop-filter: blur(10px); }
    .event-submit-bar > .event-button { width: 96px; }
    .event-submit-bar > div { flex: 1; min-width: 0; }
    .event-submit-bar > div .event-button { width: 100%; min-width: 0; }
    #eventFormMessage { align-self: stretch; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
    .event-index-header { display: block; padding: 26px 0 24px; }
    .event-index-header h1 { font-size: 36px; }
    .event-index-header > div > p { margin-top: 12px; font-size: 14px; }
    .event-index-summary { margin-top: 22px; }
    .event-index-summary > div { flex: 1; min-width: 0; padding: 11px 8px; border-radius: 12px; }
    .event-index-summary dd { font-size: 18px; }
    .event-index-section { padding-top: 30px; }
    .event-index-section-head { align-items: center; }
    .event-index-section-head h2 { font-size: 20px; }
    .event-index-section-head p { display: none; }
    .event-index-list { border-radius: 17px; }
    .event-index-item { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; min-height: 0; padding: 16px 14px; }
    .event-index-item-visual { height: 94px; border-radius: 13px; }
    .event-index-item-visual > i { font-size: 28px; }
    .event-index-item-number { top: 8px; left: 9px; font-size: 8px; }
    .event-list-status { margin-bottom: 7px; font-size: 10px; }
    .event-index-item h3 { font-size: 17px; }
    .event-index-item-body > p { margin-top: 6px; font-size: 12px; line-height: 1.5; -webkit-line-clamp: 1; }
    .event-index-item-meta { display: block; margin-top: 9px; font-size: 10px; }
    .event-index-item-meta span { margin-right: 9px; }
    .event-index-item-meta span:nth-child(n+2) { display: none; }
    .event-index-empty { min-height: 300px; }
}
