/*
 * WordPress 7.1 frontend compatibility (validated in Local).
 * Core .wp-block-table td/th adds borders on all four sides.
 * Original public theme css/style.css (.p-entry table td/th) only specifies
 * top/bottom borders, so new left/right borders remain visible.
 * Reset left/right to match the previous public rendering.
 * Higher-specificity existing rules in css/style.css still preserve the
 * intentional thin separators in THEAD and THEAD+TBODY tables.
 */
.p-entry .wp-block-table table th,
.p-entry .wp-block-table table td {
    border-left: 0;
    border-right: 0;
}

/* 表の見出し下に表示される不要な太線を解除 */
.p-entry table thead {
    border-bottom: 0 !important;
}


/*
 * Local: append to iryoseikyo_theme/css/local-wp71-preview.css
 * Scope: newspaper archive page, post ID 67.
 * Important: use only after checking the Local site.
 */

/* Existing button block has right justification metadata but the frontend theme
   did not apply the layout. Only correct this page. */
body.page-id-67 .p-entry .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end !important;
}

/* First column is styled whether Gutenberg adds a <th> or a <td> when
   a new row is inserted using the visual editor. */
.p-entry .wp-block-table.kenkura-backnumbers tbody tr > :first-child {
  background-color: #f4f3ed;
  font-weight: 500;
  width: 24.242%;
  max-width: 24rem;
  text-align: center;
}
.p-entry .wp-block-table.kenkura-backnumbers tbody tr > :nth-child(2) {
  text-align: center;
}

@media screen and (max-width: 575px) {
  .p-entry .wp-block-table.kenkura-backnumbers tbody tr > :first-child {
    width: 30%;
    max-width: 30rem;
  }
}

/* 手動アイコンがある場合は、リンク側の自動アイコンを解除 */
.wp-block-paragraph a:has(> .u-icon-pdf),
.wp-block-paragraph a:has(> .u-icon-external-link) {
    background-image: none !important;
    padding-right: 0 !important;
}

/* Local検証用：メディアとテキストを左右50%にする */
@media screen and (min-width: 768px) {
    .wp-block-media-text {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 3rem !important;
    }
}

/* 番号付きリスト：左インデントを32pxに統一 */

.p-entry ol:not([class^="p-"]) {
    margin-left: 0 !important;
    padding-left: 32px !important;
}