.notice-page {
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
    background: #ffffff;
    padding: 42px 15px 80px;
}

.notice-page [hidden] {
    display: none !important;
}

.notice-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.notice-head > div {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.notice-head h1 {
    margin: 0;
    color: #202124;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 600;
}

.notice-search {
    width: min(100%, 420px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid #d9dde5;
    border-radius: 8px;
    background: #ffffff;
}

.notice-search input,
.notice-search button {
    border: 0;
    background: transparent;
}

.notice-search input {
    min-width: 0;
    padding: 0 16px;
    color: #202124;
    font-size: 15px;
    outline: 0;
}

.notice-search button {
    background: #202124;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.notice-board {
    width: 100%;
    margin: 0;
    padding: 30px 0 0;
}

.notice-count {
    display: inline-flex;
    color: #7b838f;
    font-size: 14px;
}

.notice-count strong {
    color: #202124;
    font-weight: 600;
}

.notice-list {
    border-top: 1px solid #202124;
}

.notice-list__head,
.notice-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 130px 90px;
    align-items: center;
    gap: 18px;
}

.notice-list__head {
    min-height: 50px;
    border-bottom: 1px solid #e5e8ee;
    color: #6f7680;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.notice-list__head span:nth-child(2) {
    text-align: left;
}

.notice-item {
    min-height: 68px;
    border-bottom: 1px solid #edf0f4;
    color: #202124;
    transition: background 0.2s ease;
}

.notice-item.is-hidden {
    display: none;
}

.notice-item:hover {
    background: #fffdfb;
}

.notice-item__type {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 4px;
    background: #f4f5f7;
    color: #6f7680;
    font-size: 13px;
    font-weight: 600;
}

.notice-item__type.is-important {
    background: #fff3ef;
    color: #dd4a2c;
}

.notice-item__title {
    min-width: 0;
    overflow: hidden;
    color: #202124;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-item__title:hover {
    color: #dd4a2c;
}

.notice-item__date,
.notice-item__views {
    color: #7b838f;
    font-size: 14px;
    text-align: center;
}

.notice-empty {
    padding: 72px 0;
    border-bottom: 1px solid #edf0f4;
    text-align: center;
}

.notice-state,
.notice-detail--state {
    margin: 0;
    padding: 56px 0;
    border-bottom: 1px solid #edf0f4;
    color: #6f7680;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    word-break: keep-all;
}

.notice-state.is-error,
.notice-detail--state.is-error {
    color: #c7351b;
}

.notice-empty strong {
    color: #202124;
    font-size: 20px;
    font-weight: 600;
}

.notice-empty p {
    margin: 10px 0 0;
    color: #7b838f;
    font-size: 15px;
}

.notice-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
}

.notice-pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #6f7680;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.notice-pagination button:hover,
.notice-pagination button.is-active {
    border-color: #202124;
    background: #202124;
    color: #ffffff;
}

.notice-pagination button:disabled {
    opacity: 0.4;
    cursor: default;
}

.notice-pagination button:active:not(:disabled) {
    transform: translateY(1px);
}

.notice-detail {
    width: min(100% - 40px, 980px);
    margin: 0 auto;
    padding: 34px 15px 0;
}

.notice-detail__header {
    padding-bottom: 30px;
    border-bottom: 1px solid #202124;
}

.notice-detail__header .notice-item__type {
    justify-self: start;
}

.notice-detail__header h2 {
    margin: 16px 0 18px;
    color: #202124;
    font-size: 30px;
    line-height: 1.42;
    font-weight: 600;
    word-break: keep-all;
}

.notice-detail__header dl {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin: 0;
}

.notice-detail__header div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notice-detail__header dt {
    color: #8a929d;
    font-size: 14px;
}

.notice-detail__header dd {
    margin: 0;
    color: #4d535b;
    font-size: 14px;
}

.notice-detail__body {
    padding: 42px 0 48px;
    border-bottom: 1px solid #e5e8ee;
    color: #34383e;
    font-size: 16px;
    line-height: 1.85;
    word-break: keep-all;
}

.notice-detail__body p {
    margin: 0;
}

.notice-detail__body p + p,
.notice-detail__body section + p,
.notice-detail__body p + section,
.notice-detail__body section + section {
    margin-top: 24px;
}

.notice-detail__body h3 {
    margin: 0 0 10px;
    color: #202124;
    font-size: 18px;
    font-weight: 600;
}

.notice-detail__body h1,
.notice-detail__body h2,
.notice-detail__body h3,
.notice-detail__body h4 {
    margin: 0 0 12px;
    color: #202124;
    line-height: 1.45;
    font-weight: 600;
    word-break: keep-all;
}

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

.notice-detail__body h2 {
    font-size: 21px;
}

.notice-detail__body h4 {
    font-size: 17px;
}

.notice-detail__body a {
    color: #dd4a2c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notice-detail__body ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notice-detail__body li {
    position: relative;
    padding-left: 14px;
}

.notice-detail__body li::before {
    position: absolute;
    top: 13px;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #dd4a2c;
    content: "";
}

.notice-detail__nav {
    border-bottom: 1px solid #e5e8ee;
}

.notice-detail__nav a {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 58px;
    border-top: 1px solid #edf0f4;
}

.notice-detail__nav span {
    color: #8a929d;
    font-size: 14px;
}

.notice-detail__nav strong {
    overflow: hidden;
    color: #202124;
    font-size: 15px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-detail__nav a:hover strong {
    color: #dd4a2c;
}

.notice-detail__actions {
    display: flex;
    justify-content: center;
    padding-top: 34px;
}

.notice-detail__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 44px;
    border-radius: 6px;
    background: #202124;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.notice-detail__actions a:hover {
    background: #dd4a2c;
}

.notice-detail__actions a:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .notice-page {
        width: min(100% - 30px, 1280px);
        padding: 24px 0 70px;
    }

    .notice-head,
    .notice-board {
        padding-right: 0;
        padding-left: 0;
    }

    .notice-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

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

    .notice-search {
        width: 100%;
        max-width: 420px;
        justify-self: stretch;
    }

    .notice-head > div {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .notice-detail {
        width: min(100% - 30px, 980px);
        padding-right: 0;
        padding-left: 0;
    }

    .notice-detail__header h2 {
        font-size: 24px;
    }

    .notice-detail__body {
        padding: 32px 0 40px;
        font-size: 16px;
    }

    .notice-detail__nav a {
        grid-template-columns: 68px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .notice-page {
        padding-top: 28px;
    }

    .notice-search {
        max-width: none;
    }

    .notice-list__head {
        display: none;
    }

    .notice-item {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 10px;
        min-height: auto;
        padding: 16px 0 18px;
    }

    .notice-item__type {
        flex: 0 0 auto;
        width: fit-content;
    }

    .notice-item__title {
        flex: 0 0 100%;
        font-size: 16px;
        white-space: normal;
    }

    .notice-item__date,
    .notice-item__views {
        display: inline-flex;
        align-items: center;
        text-align: left;
    }

    .notice-item__views::before {
        content: "조회 ";
    }

    .notice-pagination {
        margin-top: 28px;
    }

    .notice-detail {
        padding-top: 28px;
    }

    .notice-detail__header {
        padding-bottom: 26px;
    }

    .notice-detail__header h2 {
        margin: 14px 0 16px;
        font-size: 23px;
        line-height: 1.4;
    }

    .notice-detail__body {
        padding: 30px 0 36px;
        line-height: 1.78;
    }
}

@media (max-width: 520px) {
    .notice-head h1 {
        font-size: 24px;
    }

    .notice-search {
        grid-template-columns: minmax(0, 1fr) 72px;
    }
}
