.page-body > .notice-content {
    width: min(52rem, calc(100% - 2.5rem));
    margin-inline: auto;
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.page .page-body > .notice-content > :first-child {
    margin-top: 0;
}

.notice-content :is(h2, h3) {
    scroll-margin-top: 6rem;
    text-wrap: pretty;
}

.notice-content ul {
    margin: 0 0 1.5rem;
    padding-inline-start: 1.4rem;
    color: var(--muted);
}

.notice-content li + li {
    margin-top: .5rem;
}

.notice-content .wp-block-table {
    margin: 1.5rem 0 2rem;
}

.notice-content .wp-block-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: clamp(.875rem, 2vw, 1rem);
    line-height: 1.5;
}

.notice-content .wp-block-table :is(th, td) {
    padding: clamp(.35rem, 1.4vw, .875rem);
    border: 1px solid var(--line, #c0cbd1);
    text-align: start;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.notice-content .wp-block-table th {
    background: var(--paper, #f3f5f6);
}

.notice-content .notice-field-label {
    display: none;
}

@media screen {
    .notice-content table.notice-table-cards,
    .notice-content .notice-table-cards :is(tbody, tr, caption, th, td) {
        display: block;
    }

    .notice-content table.notice-table-cards {
        position: relative;
        width: 100%;
        font-size: 1rem;
    }

    .notice-content .notice-table-cards caption {
        margin-bottom: .625rem;
        font-weight: 700;
        text-align: start;
    }

    .notice-content .notice-table-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .notice-content .notice-table-cards tbody tr {
        border: 1px solid var(--line, #c0cbd1);
    }

    .notice-content .notice-table-cards tbody tr + tr {
        margin-top: .75rem;
    }

    .notice-content .notice-table-cards tbody :is(th, td) {
        border: 0;
        padding: .5rem .875rem;
    }

    .notice-content .notice-table-cards tbody [role="rowheader"] {
        padding-block: .625rem;
        background: var(--paper, #f3f5f6);
        font-weight: 700;
    }

    .notice-content .notice-table-cards tbody td:last-child {
        padding-bottom: .75rem;
    }

    .notice-content .notice-table-cards .notice-field-label {
        display: block;
        font-size: .875rem;
        font-weight: 700;
    }

    .notice-content .notice-table-cards .notice-field-label::before {
        content: attr(data-label);
    }
}
