/* ================================================================
   News archive stylesheet
   Depends on: global.css (variables, resets, .fp-container, .page-hero)
   ================================================================ */

/* ----------------------------------------------------------------
   Hero — page-hero news variant with floating decorations
   ---------------------------------------------------------------- */

.page-hero--news {
    position: relative;
    padding: 30px 30px 54px;
    overflow-x: clip;
    overflow-y: visible;
}

.main--news .fp-container {
    max-width: 940px;
    padding: 0 20px;
}

.page-hero--news .page-hero__content {
    position: relative;
    z-index: 2;
}

/* Title follows page-contact's page-subhero__title/__sub-title sizing */
.page-hero--news .page-hero__title-en {
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.04em;
}

.page-hero--news .page-hero__title-ja {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: var(--fp-white);
}

.page-hero__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.page-hero__deco-img {
    position: absolute;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
}

.page-hero__deco-img--blob {
    left: calc(50% - 211px);
    top: 12px;
    width: 84px;
    transform: rotate(-12.696deg);
}

.page-hero__deco-img--sphere {
    left: calc(50% - 138px);
    top: 104px;
    width: 35px;
}

.page-hero__deco-img--cone {
    left: calc(50% + 139px);
    top: 25px;
    width: 67px;
    transform: rotate(6.722deg);
}

.page-hero__deco-img--wristband {
    left: calc(50% + 100px);
    top: 77px;
    width: 69.4px;
    transform: rotate(12.88deg);
}

/* ----------------------------------------------------------------
   Filter bar (絞り込み button + active filter chips)
   ---------------------------------------------------------------- */

.news-content {
    position: relative;
    z-index: 2;
}

.news-filterbar {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.news-filterbar:has(.news-chips) {
    margin-bottom: 32px;
}

.news-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 60px;
    padding: 12px 32px;
    background: var(--fp-btn-gradient);
    color: var(--fp-white);
    border: none;
    border-radius: 999px;
    font-family: var(--fp-font-jp);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--fp-ease);
}

.news-filter-btn:hover {
    background: var(--fp-news-gradient-hover);
}

.news-filter-icon {
    flex-shrink: 0;
}

/* Active state: translucent panel wrapping the selected chips */
.news-filterbar--active {
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: var(--fp-white-15);
    border-radius: 20px;
}

.news-filterbar--active .news-filter-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.news-filterbar--active .news-filter-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.news-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.news-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fp-white);
    background-color: var(--fp-blue);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.02em;
    transition: background var(--fp-ease), border-color var(--fp-ease);
}

.news-chip--service {
    border: 1px solid var(--fp-white);
    border-radius: 999px;
    padding: 8px 16px;
    line-height: 170%;
}

.news-chip:hover {
    background: var(--fp-btn-gradient);
    border-color: transparent;
}

.news-chip__x {
    flex-shrink: 0;
}

/* ----------------------------------------------------------------
   News list
   ---------------------------------------------------------------- */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card {
    position: relative;
    display: grid;
    grid-template-areas:
        "date"
        "title"
        "terms";
    gap: 8px;
    padding: 16px 40px 16px 16px;
    background: rgba(5, 8, 92, 0.20);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    color: var(--fp-white);
    transition: background var(--fp-ease);
}

.news-card:hover {
    background: var(--news-dark-blue-3);
}

.news-card__date {
    grid-area: date;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.news-card__terms {
    grid-area: terms;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 170%;
    letter-spacing: 0.02em;
}

.news-card__service {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid var(--fp-white);
    border-radius: 999px;
}

.news-card__service+.news-card__tag {
    margin-left: 4px;
}

.news-card__title {
    grid-area: title;
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: 0.04em;
}

.news-card__icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* ----------------------------------------------------------------
   Empty state
   ---------------------------------------------------------------- */

.news-empty {
    margin: 68px 0 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.04em;
    text-align: center;
}

/* ----------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------- */

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    margin-bottom: 36px;
}

.news-pagination__btn,
.news-pagination__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--fp-white);
    color: var(--fp-white);
    font-size: 16px;
    font-weight: 700;
    line-height: 110%;
    transition: background var(--fp-ease);
}

a.news-pagination__btn:hover,
a.news-pagination__num:hover {
    background: var(--fp-white-15);
}

.news-pagination__num--current {
    background: var(--fp-white);
    color: var(--fp-blue);
}

.news-pagination__btn--disabled {
    opacity: 0.4;
}

/* prev/first = next/last icons mirrored */
.news-pagination__icon--flip {
    transform: scaleX(-1);
}

/* SP: only the current page number is visible */
.news-pagination__num:not(.news-pagination__num--current) {
    display: none;
}

/* ----------------------------------------------------------------
   Post detail — header (date / title / terms) + content card
   ---------------------------------------------------------------- */

.news-article {
    margin-top: 24px;
}

.news-article__date {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 170%;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

.news-article__title {
    margin-top: 12px;
    font-size: 28px;
    font-weight: 800;
    line-height: 150%;
    letter-spacing: 0.04;
}

.news-article__terms {
    margin-top: 12px;
}

.news-article__card-wrap {
    margin-top: 24px;
    margin-bottom: 60px;
    padding: 0;
}

.news-article__card {
    background: var(--fp-card-bg);
    border-radius: 36px;
    padding: 52px 30px;
}

/* ----------------------------------------------------------------
   Post detail — WordPress block content styling
   ---------------------------------------------------------------- */

.news-body {
    font-size: 16px;
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0.04em;
}

.news-body>* {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 500;
    line-height: 200%;
    letter-spacing: 0.04em;
}

.main--news .news-body>*:first-child {
    margin-top: 0;
}

.news-body h2 {
    margin-top: 40px;
    font-size: 24px;
    font-weight: 800;
    line-height: 150%;
    letter-spacing: 0.04em;
}

.news-body h3 {
    margin-top: 32px;
    font-size: 20px;
    font-weight: 800;
    line-height: 150%;
    letter-spacing: 0.04em;
}

.news-body a {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity var(--fp-ease);
}

.news-body a:hover {
    color: #ff0;
}

/* 別タブで開くリンクに外部リンクアイコンを付与 */
.news-body a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 4px;
    background-color: currentColor;
    mask: url("../image/news/icon-external.svg") center / contain no-repeat;
    -webkit-mask: url("../image/news/icon-external.svg") center / contain no-repeat;
    vertical-align: middle;
}

.news-body mark {
    background: var(--fp-yellow);
    color: var(--fp-blue);
}

.news-body mark,
.news-body strong,
.news-body b {
    font-weight: 800;
}

/* 囲み文章 (quote block) */
.news-body .wp-block-quote {
    margin-top: 20px;
    background: var(--news-dark-blue-3);
    padding: 20px;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.02em;

}

/* Lists */
.news-body ul,
.news-body ol,
.news-body ul.wp-block-list,
.news-body ol.wp-block-list {
    margin-top: 44px;
    padding-left: 24px;
}

.news-body ul,
.news-body ul.wp-block-list {
    list-style: disc;
}

.news-body ol,
.news-body ol.wp-block-list {
    list-style: decimal;
}

.news-body ul li::marker,
.news-body ol li::marker,
.news-body ul.wp-block-list li::marker,
.news-body ol.wp-block-list li::marker {
    color: var(--fp-accent);
}

.news-body li+li {
    margin-top: 12px;
}

/* 注釈リスト block style */
.news-body ul.is-style-note {
    list-style: none;
    padding-left: 0;
}

.news-body ul.is-style-note li {
    position: relative;
    padding-left: 1.5em;
    color: var(--fp-white);
}

.news-body ul.is-style-note li::before {
    content: '※';
    position: absolute;
    left: 0;
}

/* Images & video embeds */
.news-body .wp-block-image {
    margin-top: 32px;
}

.news-body .wp-block-image img {
    width: 100%;
    height: auto;
}

.news-body .wp-element-caption {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 170%;
    letter-spacing: 0.02em;
    text-align: left;
    color: var(--fp-white);
}

.news-body .wp-block-embed {
    margin-top: 52px;
}

.news-body .wp-block-embed__wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

.news-body .wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* 関連リンク box — default styling for any group block in the news body */
.news-body .wp-block-group {
    background: var(--news-dark-blue-2);
    padding: 12px 20px 40px;
    margin-top: 52px;
}

.news-body .wp-block-group .wp-block-group__inner-container>* {
    margin-top: 12px;
}

/* リンク見出し (heading block style, any level) */
.news-body .is-style-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-body .is-style-link::before {
    content: '';
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: url("../image/news/icon-link.svg") center / contain no-repeat;
}

.news-body .wp-block-group ul {
    list-style: none;
    padding: 0;
}

.news-body .wp-block-group li+li {
    margin-top: 16px;
}

/* Tables */
.news-body .wp-block-table {
    margin-top: 20px;
    margin-bottom: 80px;
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.news-body .wp-block-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.wp-block-table thead,
.wp-block-table td,
.wp-block-table th {
    border: none;
}

.news-body .wp-block-table th,
.news-body .wp-block-table td {
    padding: 16px;
    font-size: 16px;
    line-height: 150%;
    text-align: left;
    min-width: var(--col-sp, 192px);
    background-color: var(--news-dark-blue-1);
    background-clip: padding-box;
    border-right: 4px solid transparent;
    border-bottom: 4px solid transparent;
}
.news-body .wp-block-table th {
    font-weight: 700;
}

.news-body .wp-block-table td {
    font-weight: 400;
}

.news-body .wp-block-table tr> :last-child {
    border-right: none;
}

.news-body .wp-block-table table> :last-child>tr:last-child>* {
    border-bottom: none;
}

.news-body .wp-block-table th {
    background-color: var(--news-dark-blue-6);
    font-weight: 700;
    text-align: center;
}

/* 左列見出し block style — first column rendered as header cells */
.news-body .is-style-col-header tr> :first-child:not(th) {
    background-color: var(--news-dark-blue-3);
    font-weight: 700;
    text-align: center;
}

.news-body .wp-block-table.is-style-col-header:not(:has(thead)) {
    margin-bottom: 48px;
}

/* SP: 左列見出し stacks — each row becomes a header bar with its content
   below. Tables that also have a header row (thead) opt out and stay a
   horizontally scrollable grid, matching the design. */
@media (max-width: 1023px) {

    .news-body .is-style-col-header:not(:has(thead)) table,
    .news-body .is-style-col-header:not(:has(thead)) tbody,
    .news-body .is-style-col-header:not(:has(thead)) tr,
    .news-body .is-style-col-header:not(:has(thead)) th,
    .news-body .is-style-col-header:not(:has(thead)) td {
        display: block;
    }

    .news-body .is-style-col-header:not(:has(thead)) th,
    .news-body .is-style-col-header:not(:has(thead)) td {
        border: none;
        min-width: 0;
    }

    .news-body .is-style-col-header:not(:has(thead)) tr>*+*,
    .news-body .is-style-col-header:not(:has(thead)) tr+tr {
        margin-top: 4px;
    }
}

/* ----------------------------------------------------------------
   Scroll hint — icon UI from vendored css/scroll-hint.css,
   markup injected by news.js on horizontally overflowing elements
   ---------------------------------------------------------------- */

.js-scroll-hint {
    position: relative;
}

.scroll-hint-icon-wrap .scroll-hint-icon {
    display: none;
}

@media (max-width: 768px) {

    .scroll-hint-icon-wrap.is-active .scroll-hint-icon {
        display: block;
        z-index: 1;
        opacity: 1;
        background-color: #555;
    }

    .scroll-hint-text {
        margin-top: 18px;
        display: inline-block;
    }
}

/* ----------------------------------------------------------------
   Filter modal
   ---------------------------------------------------------------- */

.news-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.news-modal--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.news-modal__panel {
    position: relative;
    width: 100%;
    min-height: 100%;
    background: var(--fp-white-15);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    padding: 64px 24px 36px;
}

.news-modal__close {
    position: absolute;
    top: 20px;
    right: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity var(--fp-ease);
}

.news-modal__close:hover {
    opacity: 0.75;
}

.news-modal__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 150%;
    text-align: center;
    margin-bottom: 24px;
}

.news-modal__label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.news-modal__options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 16px;
}

.news-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.news-check__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.news-check__box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--fp-white);
    border-radius: 6px;
    flex-shrink: 0;
    transition: background var(--fp-ease);
}

.news-check__box svg {
    opacity: 0;
    transition: opacity var(--fp-ease);
}

.news-check__input:checked+.news-check__box {
    background: var(--fp-btn-gradient);
}

.news-check__input:checked+.news-check__box svg {
    opacity: 1;
}

.news-check__input:focus-visible+.news-check__box {
    outline: 2px solid var(--fp-yellow);
    outline-offset: 0;
}

.news-check__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.news-modal__divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    margin: 32px 0 24px;
}

.news-modal__divider.news-modal__divider--actions {
    margin-top: 74px;
}

.news-modal__actions {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
}

.news-modal__clear,
.news-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 240px;
    height: 60px;
    padding: 0;
    border: none;
    border-radius: 999px;
    font-family: var(--fp-font-jp);
    font-size: 16px;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 0;
    cursor: pointer;
    transition: background var(--fp-ease), opacity var(--fp-ease);
}

.news-modal__clear {
    background: var(--fp-white);
    color: var(--fp-blue);
}

.news-modal__clear:hover {
    opacity: 0.85;
}

.news-modal__submit {
    background: var(--fp-btn-gradient);
    color: var(--fp-white);
}

.news-modal__submit:hover {
    background: var(--fp-btn-gradient-hover);
}

/* ================================================================
   Desktop overrides (≥ 1024px)
   ================================================================ */

@media (min-width: 1024px) {

    /* Hero */
    .page-hero--news {
        padding: 37px 0 37px;
    }

    .page-hero--news .page-hero__title {
        gap: 0;
    }

    .page-hero--news .page-hero__title-en {
        font-size: 72px;
    }

    .page-hero--news .page-hero__title-ja {
        font-size: 24px;
        margin-top: 8px;
    }

    .page-hero__deco-img--blob {
        left: calc(50% - 590px);
        top: -11px;
        width: 142px;
    }

    .page-hero__deco-img--sphere {
        left: calc(50% - 605px);
        top: 155px;
        width: 64px;
    }

    .page-hero__deco-img--cone {
        left: calc(50% + 506px);
        top: 0;
        width: 116px;
        transform: none;
    }

    .page-hero__deco-img--wristband {
        left: calc(50% + 397px);
        top: 81px;
        width: 133px;
        transform: rotate(12.88deg);
    }

    /* Filter bar */
    .news-filterbar {
        justify-content: flex-end;
        margin-bottom: 24px;
    }

    .news-filter-btn {
        height: 56px;
        padding: 12px 36px;
        gap: 8px;
        font-size: 16px;
        letter-spacing: 0;
    }

    .news-filter-icon {
        width: 32px;
        height: 32px;
    }

    .news-filterbar--active {
        align-items: center;
        padding: 20px 20px 20px 40px;
        border-radius: 48px;
    }

    .news-chips {
        gap: 8px;
    }

    .news-chip {
        font-size: 16px;
        font-weight: 700;
        line-height: 22px;
    }

    .news-chip.news-chip--tag {
        height: 32px;
    }

    .news-empty {
        margin-top: 132px;
        margin-bottom: 80px;
        font-size: 24px;
        font-weight: 900;
        line-height: 150%;
        letter-spacing: 0.04em;
    }

    .news-filterbar--active .news-filter-btn {
        width: 173px;
        height: 56px;
        padding: 0 32px;
        border-radius: 999px;
    }

    .news-filterbar--active .news-filter-btn__label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip-path: none;
        white-space: normal;
    }

    /* News list */
    .news-list {
        gap: 16px;
    }

    .news-card {
        grid-template-areas:
            "date terms"
            "title title";
        grid-template-columns: auto 1fr;
        column-gap: 24px;
        row-gap: 4px;
        align-items: center;
        padding: 20px 72px 20px 30px;
        border-radius: 20px;
    }

    .news-card__date {
        font-size: 16px;
        font-weight: 500;
        line-height: 200%;
        letter-spacing: 0.04em;
    }

    .news-card__service,
    .news-card__tag {
        font-size: 14px;
        font-weight: 500;
        line-height: 125%;
        letter-spacing: 0.02em;
    }

    .news-card__title {
        font-size: 16px;
        font-weight: 500;
        line-height: 200%;
        letter-spacing: 0.04em;
    }

    .news-card__icon {
        right: 32px;
    }

    /* Post detail */
    .news-article {
        margin-top: 60px;
    }

    .news-article__date {
        font-size: 14px;
        font-weight: 500;
        line-height: 125%;
        letter-spacing: 0.02em;
    }

    .news-article__title {
        margin-top: 12px;
        font-size: 38px;
        font-weight: 900;
        line-height: 160%;
        letter-spacing: 0.04em;
    }

    .news-article__card-wrap {
        max-width: 900px;
        margin: 40px auto 0;
        padding: 0;
    }

    .news-article__card {
        border-radius: 40px;
        padding: 60px 60px;
    }

    .news-body>* {
        margin-top: 40px;
        font-size: 16px;
        line-height: 35px;
        letter-spacing: 0.04em;
    }

    .news-body h2 {
        margin-top: 40px;
        font-size: 28px;
        font-weight: 900;
        line-height: 160%;
        letter-spacing: 0.04em;
    }

    .news-body .wp-block-quote {
        margin-top: 32px;
        padding: 20px 32px;
        font-size: 16px;
        font-weight: 400;
        line-height: 200%;
        letter-spacing: 0.04em;
    }

    .news-body ul,
    .news-body ol,
    .news-body ul.wp-block-list,
    .news-body ol.wp-block-list {
        font-size: 16px;
        font-weight: 500;
        line-height: 180%;
        letter-spacing: 0.02em;
    }

    .news-body .wp-element-caption {
        margin-top: 12px;
        font-size: 14px;
        font-weight: 500;
        line-height: 200%;
        letter-spacing: 0.56px;
    }

    .news-body>.wp-block-paragraph {
        margin-top: 32px;
    }

    .news-body .wp-block-group {
        margin-top: 48px;
        padding: 4px 36px 40px;
    }

    .news-body .wp-block-group * {
        font-feature-settings: normal;
        letter-spacing: 0;
    }

    .news-body .wp-block-group .wp-block-group__inner-container>* {
        margin-top: 20px;
    }

    .news-body .wp-block-group li {
        line-height: 100%;
    }

    .news-body .wp-block-group li+li {
        margin-top: 32px;
    }

    .news-body .wp-block-embed {
        margin-top: 48px;
    }

    .news-body h3 {
        margin-top: 40px;
        font-size: 24px;
        font-weight: 900;
        line-height: 160%;
        letter-spacing: 0.04em;
    }

    .news-body .wp-block-table {
        margin-top: 32px;
    }

    .news-body .wp-block-table table.has-fixed-layout {
        table-layout: fixed;
    }

    .news-body .wp-block-table th,
    .news-body .wp-block-table td {
        min-width: var(--col-pc, 0px);
    }

    .news-body .is-style-col-header tr> :first-child {
        width: 199px;
    }

    .news-body .wp-block-table.is-style-col-header:not(:has(thead)),
    .news-body .wp-block-table {
        margin-bottom: 0;
    }

    /* Pagination */
    .news-pagination {
        gap: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .news-pagination__btn,
    .news-pagination__num {
        width: 48px;
        height: 48px;
    }

    .news-pagination__num:not(.news-pagination__num--current) {
        display: flex;
    }

    /* Modal */
    .news-modal {
        align-items: center;
        padding: 40px;
    }

    .news-modal__panel {
        max-width: 1080px;
        min-width: 0;
        min-height: 0;
        border-radius: 44px;
        padding: 36px;
    }

    .news-modal__close {
        top: 26px;
        right: 35px;
    }

    .news-modal__title {
        font-size: 24px;
        font-size: 24px;
        font-weight: 900;
        line-height: 150%;
        letter-spacing: 0.04em;
        margin-top: 32px;
        margin-bottom: 44px;
    }

    .news-modal__group {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .news-modal__label {
        width: 120px;
        padding-left: 12px;
        flex-shrink: 0;
        font-size: 20px;
        font-weight: 700;
        line-height: 150%;
        letter-spacing: 0.04em;
        margin-bottom: 0;
    }

    .news-modal__options {
        display: flex;
        flex-wrap: wrap;
        column-gap: 24px;
        row-gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .news-modal__options--tags {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, max-content));
        column-gap: 40px
    }

    .news-check__box {
        width: 28px;
        height: 28px;
    }

    .news-check__label {
        font-size: 16px;
        font-weight: 700;
        line-height: 200%;
        letter-spacing: 0.04em;
    }

    .news-modal__divider {
        margin: 32px 0;
    }

    .news-modal__divider--actions {
        display: none;
    }

    .news-modal__actions {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
        margin-top: 64px;
    }

    .news-modal__clear,
    .news-modal__submit {
        width: 240px;
        height: 60px;
        font-size: 16px;
    }
}

/* ================================================================
   Modal, narrow desktop (1024–1149px)
   ================================================================ */

@media (min-width: 1024px) and (max-width: 1149px) {

    .news-modal {
        padding: 40px 24px;
    }

    .news-modal__panel {
        padding: 36px 24px;
    }

    .news-modal__label {
        width: 104px;
        padding-left: 0;
    }

    .news-modal__options {
        column-gap: 16px;
    }

    .news-modal__options--tags {
        grid-template-columns: repeat(4, minmax(0, max-content));
        column-gap: 24px;
    }
}