.notice-page,
.notice-detail-page {
    min-height: calc(100vh - 120px);
    background: #fff;
    color: #102033;
}

.notice-page {
    padding: 64px 20px 80px;
}

.notice-container {
    max-width: 980px;
    margin: 0 auto;
}

.notice-title {
    margin: 0 0 62px;
    color: #102033;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.notice-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 34px;
    padding: 5px;
    border: 1px solid #d7e1f1;
    border-radius: 14px;
    background: #f1f5fb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 26px rgba(15, 23, 42, 0.06);
}

.notice-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    color: #48617f;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.notice-tabs a.active,
.notice-tabs a:hover {
    background: #ffffff;
    color: #0f3f8f;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.notice-search {
    position: relative;
    width: 100%;
    max-width: 586px;
    margin-bottom: 20px;
}

.notice-search input {
    width: 100%;
    height: 40px;
    padding: 0 50px 0 14px;
    border: 1px solid #c9ced6;
    border-radius: 4px;
    color: #102033;
    font-size: 16px;
}

.notice-search input::placeholder {
    color: #b9c0ca;
}

.notice-search button {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #566273;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.notice-board {
    display: grid;
    gap: 18px;
}

.notice-board-section {
    display: grid;
}

.notice-board-section-pinned {
    padding: 14px 16px 6px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.07);
}

.notice-section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 0 0 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

.notice-section-label-regular {
    margin: 4px 0 8px;
    background: #f1f5f9;
    color: #52657e;
}

.notice-section-pin,
.notice-section-pin svg {
    display: inline-flex;
    width: 14px;
    height: 14px;
}

.notice-section-pin svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notice-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 22px;
    padding: 12px 16px;
    border-bottom: 1px solid #dfe4ea;
    background: #fff;
}

.notice-board-section-pinned .notice-list-item {
    padding-left: 0;
    padding-right: 0;
    border-bottom-color: #d8e7fb;
    background: transparent;
}

.notice-board-section-pinned .notice-list-item:last-child {
    border-bottom: 0;
}

.notice-list-main {
    min-width: 0;
}

.notice-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    margin-bottom: 7px;
    padding: 0 9px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.notice-category.event {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.notice-category.notice {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.notice-category.updated.notice {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1e40af;
}

.notice-category.updated.event {
    border-color: #fdba74;
    background: #ffedd5;
    color: #9a3412;
}

.notice-list-item h2 {
    margin: 0 0 8px;
    color: #102033;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.42;
}

.notice-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    vertical-align: -3px;
}

.notice-pin svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notice-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #344054;
    font-size: 13px;
}

.notice-list-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 9px;
    color: #36526f;
    font-size: 14px;
    font-weight: 400;
}

.notice-list-side time {
    white-space: nowrap;
    color: #36526f;
    font-size: 14px;
    font-weight: 400;
}

.notice-author-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.notice-list-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #d7dee9;
    background: #f8fafc;
    flex-shrink: 0;
}

.notice-list-author-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
    background: #e5e7eb;
}

.notice-list-author-name {
    color: #36526f;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.notice-list-side form {
    margin: 0;
}

.notice-delete-btn {
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.notice-empty {
    padding: 60px 20px;
    color: #64748b;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
}

.notice-detail-page {
    padding: 42px 20px 84px;
}

.notice-detail-container {
    max-width: 980px;
    margin: 0 auto;
}

.notice-detail-head {
    position: relative;
    padding: 24px 128px 22px 28px;
    border: 1px solid #d7e5f6;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.notice-detail-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.notice-detail-topline > a:first-child {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef6ff;
    color: #155ebc;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.notice-detail-topline > .notice-category {
    margin-bottom: 0;
}

.notice-detail-topline > .notice-category.notice {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.notice-detail-topline > .notice-category.event {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.notice-detail-topline > .notice-category.updated.notice {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1e40af;
}

.notice-detail-topline > .notice-category.updated.event {
    border-color: #fdba74;
    background: #ffedd5;
    color: #9a3412;
}

.notice-detail-close {
    position: absolute;
    top: 24px;
    right: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #dbe7f7;
    background: #eef5ff;
    color: #2563eb;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.notice-detail-close:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.notice-detail-head h1 {
    margin: 0 0 14px;
    color: #071527;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.24;
    letter-spacing: 0;
}

.notice-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #47617e;
    font-size: 14px;
    font-weight: 400;
}

.notice-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #eef2ff);
    color: #155ebc;
    font-size: 15px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.notice-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notice-author-avatar {
    width: 22px;
    height: 22px;
    font-size: 11px;
}

.notice-detail-head p {
    margin: 0;
    color: #667b95;
    font-size: 14px;
    font-weight: 400;
}

.notice-detail-content {
    min-height: 120px;
    margin-top: 18px;
    padding: 26px 28px 30px;
    border: 1px solid #dfeaf8;
    border-radius: 18px;
    background: #fff;
    color: #102033;
    font-size: 17px;
    line-height: 1.85;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.notice-like-row {
    position: absolute;
    right: 28px;
    bottom: 24px;
    margin: 0;
}

.notice-like-btn {
    min-width: 60px;
    height: 42px;
    border: 1px solid #c7d7ee;
    border-radius: 12px;
    background: #fff;
    color: #2f80ed;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.notice-like-btn:hover {
    border-color: #93c5fd;
    background: #f5f9ff;
    transform: translateY(-1px);
}

.notice-like-btn.is-liked,
.notice-like-btn:disabled {
    background: #eef6ff;
    color: #155ebc;
    cursor: default;
    opacity: 1;
    transform: none;
}

.notice-comments {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
    padding: 18px 20px 20px;
    border: 1px solid #e7edf6;
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.72);
}

.notice-comments h2 {
    order: 0;
    margin: 0;
    color: #667085;
    font-size: 0;
    font-weight: 700;
}

.notice-comments h2::before {
    content: "댓글";
    font-size: 13px;
}

.notice-comment-list {
    order: 2;
    display: grid;
    gap: 8px;
    max-height: 310px;
    overflow: auto;
    margin: 0;
    padding-right: 2px;
}

.notice-comment-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
}

.notice-comment-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
    font-weight: 700;
}

.notice-comment-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
}

.notice-comment-meta strong {
    color: #27364a;
    font-size: 13px;
    font-weight: 600;
}

.notice-comment-meta time {
    color: #667085;
    font-size: 12px;
    font-weight: 400;
}

.notice-comment-delete-form {
    margin-left: auto;
}

.notice-comment-delete-btn {
    height: 28px;
    padding: 0 9px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff5f5;
    color: #dc2626;
    font-size: 0;
    font-weight: 600;
    cursor: pointer;
}

.notice-comment-delete-btn::before {
    content: "삭제";
    font-size: 11px;
}

.notice-comment-delete-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.notice-comment-item p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
}

.notice-comment-box {
    order: 1;
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.notice-comment-input {
    position: relative;
    min-height: 50px;
    padding: 0;
    border: 1px solid #d8e3f2;
    border-radius: 14px;
    background: #fff;
}

.notice-comment-input.has-editor {
    display: block;
}

.notice-comment-input.login-required {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 8px 7px 16px;
}

.notice-comment-input p {
    margin: 0;
    color: #c5ccd6;
    font-size: 13px;
    font-weight: 400;
}

.notice-comment-input textarea {
    width: 100%;
    min-height: 50px;
    height: 50px;
    padding: 13px 64px 13px 16px;
    border: 0;
    outline: 0;
    resize: none;
    color: #334155;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    font-family: inherit;
    box-sizing: border-box;
}

.notice-comment-input a,
.notice-comment-input button {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d8e3f2;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
}

.notice-comment-input button::before {
    content: "";
    width: 17px;
    height: 17px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 2 11 13M22 2l-7 20-4-9-9-4Z' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 2 11 13M22 2l-7 20-4-9-9-4Z' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.notice-comment-input a {
    width: auto;
    gap: 5px;
    padding: 0 13px;
    border-color: #cfe0f6;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
    color: #3d628f;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.08);
}

.notice-comment-input.login-required .notice-comment-login-link {
    position: static;
    flex: 0 0 auto;
}

.notice-comment-input a::before {
    content: "";
    width: 13px;
    height: 13px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.notice-comment-input button:hover,
.notice-comment-input a:hover {
    border-color: #b8d1f2;
    background: #eef5ff;
    color: #245a98;
}

@media (max-width: 768px) {
    .notice-page {
        padding: 46px 16px 70px;
    }

    .notice-title {
        margin-bottom: 42px;
        font-size: 25px;
    }

    .notice-tabs {
        gap: 8px;
        flex-wrap: wrap;
    }

    .notice-list-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 4px;
    }

    .notice-list-side {
        justify-items: start;
        grid-auto-flow: column;
        justify-content: start;
    }

    .notice-detail-page {
        padding: 34px 14px 70px;
    }

    .notice-detail-head {
        padding: 20px 18px 74px;
    }

    .notice-detail-head h1 {
        font-size: 24px;
    }

    .notice-detail-content {
        min-height: 90px;
        padding: 22px 18px 24px;
        font-size: 16px;
        line-height: 1.8;
    }

    .notice-like-row {
        right: 18px;
        bottom: 18px;
    }

    .notice-comment-box {
        grid-template-columns: 1fr;
    }
}
