.notice-home {
    display: grid;
    gap: var(--rc-space-3);
}

.notice-home-heading .btn {
    flex: 0 0 auto;
}

.notice-home-list {
    gap: var(--rc-space-2);
}

.notice-home-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: var(--rc-space-3) var(--rc-space-4);
    border-width: var(--bs-border-width);
    border-radius: var(--bs-border-radius);
}

.notice-home-title {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 650;
}

.notice-home-link time {
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    white-space: nowrap;
}

.notice-page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.notice-page-header .btn {
    width: 100%;
}

.notice-feed {
    display: grid;
    gap: 1rem;
}

.notice-post {
    overflow: hidden;
    scroll-margin-top: 6rem;
}

.notice-post:target {
    border-color: var(--rc-accent);
}

.notice-post-title {
    margin-bottom: 0.35rem;
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    overflow-wrap: anywhere;
}

.notice-post-title a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

.notice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.45rem;
    margin-bottom: 1.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
}

.notice-body {
    overflow-wrap: anywhere;
}

.notice-body > :last-child {
    margin-bottom: 0;
}

.notice-body blockquote {
    margin: 1rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
    border-left: 0.25rem solid var(--bs-border-color);
    color: var(--bs-secondary-color);
}

.notice-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.notice-gallery img {
    width: 100%;
    max-height: 34rem;
    object-fit: contain;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
}

.notice-post-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.notice-pagination {
    margin-top: 1.5rem;
}

.notice-pagination .pagination {
    flex-wrap: wrap;
}

.notice-form .form-label {
    font-weight: 650;
}

.notice-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
    border: 1px solid var(--bs-border-color);
    border-bottom: 0;
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
    background: var(--bs-tertiary-bg);
}

.notice-editor-toolbar .btn {
    min-height: 2.75rem;
}

.notice-rich-editor {
    min-height: 14rem;
    padding: 0.75rem;
    overflow-wrap: anywhere;
    border: 1px solid var(--bs-border-color);
    border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
    background: var(--bs-body-bg);
}

.notice-rich-editor:focus {
    border-color: var(--bs-primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(var(--bs-primary-rgb) / 25%);
}

.notice-edit-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.notice-edit-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.notice-edit-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.notice-image-remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
}

.notice-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.notice-delete-card {
    max-width: 42rem;
    margin-inline: auto;
}

@media (min-width: 576px) {
    .notice-page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .notice-page-header .btn {
        width: auto;
    }

    .notice-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notice-gallery-single {
        grid-template-columns: minmax(0, 48rem);
    }

    .notice-post-actions,
    .notice-form-actions {
        display: flex;
        justify-content: flex-end;
    }

    .notice-post-actions .btn,
    .notice-form-actions .btn {
        min-width: 8rem;
    }

    .notice-edit-images {
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    }
}
