:root {
    color-scheme: dark;
    font-family: Pretendard, "Noto Sans KR", "Segoe UI", Arial, sans-serif;
    font-synthesis: none;
    --navy-950: #08111f;
    --navy-900: #0d192b;
    --navy-800: #142744;
    --navy-700: #1a365b;
    --blue-600: #2868a8;
    --blue-500: #3a84c8;
    --blue-300: #85b9e6;
    --gold-500: #f6b72f;
    --gold-400: #ffd15d;
    --orange-500: #f08332;
    --text: #f5f8fc;
    --muted: #aebdd0;
    --line: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 280px;
    min-height: 100%;
    background: var(--navy-950);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 20% -10%, rgba(58, 132, 200, 0.23), transparent 36rem),
        radial-gradient(circle at 90% 110%, rgba(246, 183, 47, 0.09), transparent 30rem),
        linear-gradient(145deg, #07101d 0%, #0e1c30 56%, #091321 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 44px 44px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 3px;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-frame {
    width: min(100% - 32px, 920px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 22px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 6px 14px;
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.brand-mark {
    display: grid;
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    color: #15253d;
    font-size: 1.35rem;
    font-weight: 900;
    transform: none;
    background: linear-gradient(145deg, var(--gold-400), var(--orange-500));
    border-radius: 8px;
    box-shadow: 0 9px 24px rgba(240, 131, 50, 0.2);
}

.brand-mark img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.brand > span:last-child {
    display: flex;
    flex-direction: column;
    letter-spacing: 0.08em;
}

.brand strong {
    font-size: 0.96rem;
    line-height: 1.15;
}

.brand small {
    margin-top: 3px;
    color: var(--blue-300);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
}

.language-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #71849b;
    font-size: 0.78rem;
    font-weight: 700;
}

.language-switch a {
    padding: 8px 5px;
    color: #8395aa;
    transition: color 140ms ease;
}

.language-switch a:hover,
.language-switch a.active {
    color: var(--gold-400);
}

.notice-window {
    overflow: hidden;
    min-height: 610px;
    background:
        linear-gradient(180deg, rgba(48, 112, 176, 0.94), rgba(27, 64, 106, 0.98)),
        var(--navy-700);
    border: 1px solid rgba(141, 194, 238, 0.25);
    border-radius: 6px 6px 20px 20px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.13);
}

.content-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 58px;
    background: rgba(7, 19, 34, 0.44);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.content-tabs a {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 10px 12px;
    color: #b9cee1;
    font-size: clamp(0.82rem, 2vw, 0.98rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 140ms ease, background 140ms ease;
}

.content-tabs a:last-child {
    border-right: 0;
}

.content-tabs a::after {
    position: absolute;
    right: 18%;
    bottom: -1px;
    left: 18%;
    height: 3px;
    content: "";
    background: transparent;
    border-radius: 3px 3px 0 0;
}

.content-tabs a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
}

.content-tabs a.active {
    color: #1f2e42;
    background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
    text-shadow: 0 1px rgba(255, 255, 255, 0.25);
}

.content-tabs a.active::after {
    background: #fff1b8;
}

.content-panel {
    min-height: 550px;
    padding: clamp(18px, 3vw, 28px) clamp(24px, 5vw, 48px) clamp(24px, 5vw, 48px);
}

.section-kicker {
    margin: 0 0 6px;
    color: var(--gold-400);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.detail-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 4vw, 2.15rem);
    line-height: 1.28;
    letter-spacing: -0.045em;
}

.notice-list,
.event-list {
    display: grid;
    gap: 9px;
}

.notice-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 16px;
    gap: 18px;
    align-items: center;
    min-height: 62px;
    padding: 13px 18px;
    color: #edf6ff;
    background: rgba(4, 19, 35, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.notice-row:hover {
    z-index: 1;
    background: rgba(7, 29, 51, 0.58);
    border-color: rgba(255, 210, 94, 0.45);
    transform: translateX(4px);
}

.row-detail-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    color: #25344a;
    font-size: 0.7rem;
    font-family: inherit;
    font-weight: 900;
    background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: filter 140ms ease, transform 140ms ease;
}

.row-detail-button:not(:disabled):hover {
    color: #172235;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.row-detail-button:disabled {
    color: #a5b0bd;
    background: #46566c;
    cursor: not-allowed;
    opacity: 0.65;
}

.row-title {
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pinned-badge {
    display: inline-block;
    margin-right: 9px;
    padding: 4px 7px;
    color: #273449;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    vertical-align: 2px;
    background: var(--gold-400);
    border-radius: 3px;
}

.notice-row time {
    color: #adc2d6;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.row-arrow,
.card-arrow {
    color: var(--gold-400);
    font-size: 1.5rem;
    font-weight: 300;
}

.event-card {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 190px;
    align-items: flex-end;
    padding: 26px 56px 24px 26px;
    background: linear-gradient(135deg, #3da7ce, #1c548a 58%, #e88b35 145%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(3, 15, 28, 0.2);
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.event-card::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(90deg, rgba(5, 16, 30, 0.9) 0%, rgba(5, 17, 31, 0.68) 55%, rgba(5, 17, 31, 0.2) 100%);
    pointer-events: none;
}

.event-card:hover {
    border-color: rgba(255, 210, 94, 0.45);
    transform: translateY(-3px);
}

.event-card-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.event-card:hover .event-card-background {
    transform: scale(1.035);
}

.event-card.no-image::before {
    position: absolute;
    top: -50%;
    right: -5%;
    width: 54%;
    aspect-ratio: 1;
    content: "";
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.thumbnail-placeholder {
    position: absolute;
    z-index: 2;
    top: 22px;
    right: 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.event-copy {
    position: relative;
    z-index: 2;
    width: min(100%, 580px);
    min-width: 0;
}

.event-title-line {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.event-title-line h2 {
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: clamp(1.02rem, 2.5vw, 1.3rem);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-copy > p {
    overflow: hidden;
    margin: 8px 0 11px;
    color: #e0eaf3;
    font-size: 0.8rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-copy time {
    color: var(--gold-400);
    font-size: 0.72rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.event-card .card-arrow {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 22px;
}

.event-status {
    flex: none;
    padding: 5px 7px;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    border-radius: 3px;
}

.event-status.live {
    background: var(--orange-500);
}

.event-status.upcoming {
    background: #22a96b;
}

.event-status.ended {
    color: #d3deea;
    background: #53677d;
}

.post-detail {
    width: min(100%, 720px);
    margin: 0 auto;
}

.detail-header {
    position: relative;
    padding: 0 0 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-header time {
    display: inline-block;
    margin-top: 14px;
    color: #b9ccdf;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
}

.event-period {
    margin: 8px 0 0;
    color: var(--gold-400);
    font-size: 0.78rem;
    font-weight: 700;
}

.detail-summary {
    margin: 24px 0 0;
    padding: 16px 18px;
    color: #e9f3fc;
    font-size: 0.9rem;
    line-height: 1.65;
    text-align: center;
    background: rgba(4, 19, 35, 0.25);
    border-left: 3px solid var(--gold-400);
}

.detail-image {
    overflow: hidden;
    margin: 28px 0 0;
    background: rgba(4, 19, 35, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
}

.detail-image img {
    display: block;
    width: 100%;
    height: auto;
}

.detail-body {
    min-height: 180px;
    padding: clamp(28px, 5vw, 44px) clamp(4px, 2vw, 16px);
    color: #f2f7fc;
    font-size: clamp(0.88rem, 2vw, 0.98rem);
    line-height: 1.95;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.detail-body a {
    color: var(--gold-400);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-body a:hover,
.detail-body a:focus-visible {
    color: #ffe18a;
}

.detail-link-action {
    display: flex;
    justify-content: center;
    padding: 0 0 28px;
}

.detail-link-action .row-detail-button {
    min-width: 132px;
}

.detail-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-navigation > a,
.detail-navigation > span {
    color: #d4e1ed;
    font-size: 0.77rem;
}

.detail-navigation > a:hover {
    color: var(--gold-400);
}

.detail-navigation > span {
    opacity: 0.4;
}

.detail-navigation > :last-child {
    text-align: right;
}

.detail-navigation .list-button,
.primary-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    color: #25344a;
    font-size: 0.78rem;
    font-weight: 900;
    background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(22, 31, 43, 0.18);
}

.detail-navigation .list-button:hover,
.primary-button:hover {
    color: #172235;
    filter: brightness(1.06);
}

.empty-state {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.empty-state h1,
.empty-state h2 {
    margin: 0 0 24px;
    font-size: 1.15rem;
}

.empty-mark {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0 0 18px;
    place-items: center;
    color: var(--gold-400);
    font-size: 1.4rem;
    font-weight: 900;
    border: 1px solid rgba(255, 210, 94, 0.6);
    border-radius: 50%;
}

.status-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text);
    text-align: center;
}

.status-page h1 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 5vw, 2.3rem);
}

.status-page > p:not(.status-code) {
    margin: 0 0 25px;
    color: var(--muted);
}

.status-code {
    margin: 0 0 10px;
    color: var(--gold-400);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.25em;
}

.request-id {
    margin-top: 28px;
    color: #687c91;
}

#blazor-error-ui {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
    padding: 12px 20px;
    color: #241900;
    background: var(--gold-400);
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
    .site-frame {
        width: 100%;
        padding: 0;
    }

    .site-header {
        min-height: 64px;
        padding: 10px 15px;
        background: rgba(7, 17, 30, 0.9);
    }

    .brand-mark {
        flex-basis: 34px;
        width: 34px;
        min-width: 34px;
        max-width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }

    .brand strong {
        font-size: 0.78rem;
    }

    .brand small {
        font-size: 0.52rem;
    }

    .notice-window {
        min-height: calc(100vh - 64px);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .content-tabs {
        min-height: 50px;
    }

    .content-panel {
        min-height: calc(100vh - 114px);
        padding: 14px 15px 34px;
    }

    .notice-row {
        grid-template-columns: minmax(0, 1fr) 12px;
        gap: 10px;
        min-height: 57px;
        padding: 11px 13px;
    }

    .notice-row time {
        display: none;
    }

    .row-title {
        font-size: 0.85rem;
    }

    .event-card {
        min-height: 158px;
        padding: 20px 42px 18px 16px;
    }

    .event-card::after {
        background: linear-gradient(90deg, rgba(5, 16, 30, 0.91) 0%, rgba(5, 17, 31, 0.64) 76%, rgba(5, 17, 31, 0.34) 100%);
    }

    .event-card .card-arrow {
        right: 16px;
        bottom: 17px;
    }

    .thumbnail-placeholder {
        top: 14px;
        right: 16px;
        font-size: 0.56rem;
    }

    .event-copy > p {
        display: -webkit-box;
        overflow: hidden;
        margin: 7px 0 9px;
        font-size: 0.7rem;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .event-title-line {
        align-items: center;
    }

    .event-title-line h2 {
        font-size: 0.94rem;
        white-space: normal;
    }

    .event-status {
        padding: 4px 5px;
        font-size: 0.53rem;
    }

    .event-copy time {
        display: block;
        font-size: 0.62rem;
    }

    .detail-navigation {
        gap: 7px;
    }

    .detail-navigation > a,
    .detail-navigation > span {
        font-size: 0.68rem;
    }

    .detail-navigation .list-button {
        min-height: 37px;
        padding: 8px 15px;
    }

}

@media (max-width: 380px) {
    .language-switch {
        gap: 4px;
        font-size: 0.68rem;
    }

    .content-tabs a {
        padding-inline: 5px;
        font-size: 0.73rem;
    }

    .event-card {
        min-height: 146px;
    }

    .detail-navigation > a:not(.list-button),
    .detail-navigation > span {
        overflow: hidden;
        max-width: 64px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
