/**
 * Editorial light-reading compatibility + component scope boundary — v0.4.153.
 *
 * Scope:
 * - ordinary editorial singular content only;
 * - generic/AFFINGER-era article tables;
 * - WordPress own-post embed containers in article content.
 *
 * The FPS JAPAN global shell and branded experiences remain dark. Theme-owned
 * application/data components and explicitly scoped standalone HTML remain
 * outside generic editorial color overrides. No post HTML or stored value is
 * rewritten.
 */

/* ---------- Hybrid light editorial reading surface ---------- */

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface {
  --fpsj-ink:var(--fpsj-setting-editorial-heading,#07101f);
  --fpsj-muted:var(--fpsj-setting-editorial-muted,#52647c);
  --fpsj-line:var(--fpsj-setting-editorial-border,#d6e0ec);
  --fpsj-panel:var(--fpsj-setting-editorial-surface,#ffffff);
  --fpsj-panel-raised:var(--fpsj-setting-editorial-surface-soft,#f5f8fc);
  --fpsj-night:var(--fpsj-setting-editorial-surface-soft,#f3f6fa);
  --fpsj-component-dark-bg:#0b1528;
  --fpsj-component-dark-surface:#101b31;
  --fpsj-component-dark-text:#f7faff;
  --fpsj-component-dark-muted:#9aabc4;
  --fpsj-component-dark-link:#31d7ff;
  --fpsj-component-dark-border:rgba(93,135,196,.36);
  --fpsj-component-light-bg:#ffffff;
  --fpsj-component-light-text:#07101f;
  --fpsj-component-light-muted:#52647c;
  --fpsj-component-light-link:#165ec9;
  position:relative;
  color-scheme:var(--fpsj-setting-editorial-color-scheme,light);
  border-color:var(--fpsj-setting-editorial-border,#cfdae8);
  background:
    linear-gradient(90deg,#3478ff 0%,var(--fpsj-setting-editorial-accent,#31d7ff) 52%,#8c63ff 100%) top/100% 4px no-repeat,
    linear-gradient(180deg,var(--fpsj-setting-editorial-surface,#ffffff) 0%,var(--fpsj-setting-editorial-surface-soft,#f7f9fc) 100%);
  color:var(--fpsj-setting-editorial-heading,#07101f);
  box-shadow:var(--fpsj-setting-editorial-surface-shadow,0 24px 72px rgba(0,14,35,.24));
}

/*
 * Standalone component color-scope contract.
 *
 * Theme responsibility:
 * - publish shared light/dark tokens;
 * - stop generic editorial typography from entering an opted-in component;
 * - supply the root inherited foreground for the requested scope.
 *
 * Component responsibility:
 * - opt in on its outermost wrapper;
 * - own background, internal hierarchy, states, and semantic colors.
 */
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface :where(
  [data-fpsj-color-scope="dark"],
  .fpsj-color-scope-dark,
  .fpsj-standalone-ui[data-color-scope="dark"]
),
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface :where(
  [data-fpsj-color-scope="dark"],
  .fpsj-color-scope-dark,
  .fpsj-standalone-ui[data-color-scope="dark"]
) {
  color-scheme:dark;
  color:var(--fpsj-component-dark-text,#f7faff);
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface :where(
  [data-fpsj-color-scope="light"],
  .fpsj-color-scope-light,
  .fpsj-standalone-ui[data-color-scope="light"]
),
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface :where(
  [data-fpsj-color-scope="light"],
  .fpsj-color-scope-light,
  .fpsj-standalone-ui[data-color-scope="light"]
) {
  color-scheme:light;
  color:var(--fpsj-component-light-text,#07101f);
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface :where(
  .fpsj-post-title,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6
):not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface :where(
  .fpsj-post-title,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6
):not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  color:var(--fpsj-setting-editorial-heading,#07101f)!important;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface :where(
  .fpsj-post-meta,
  .wp-block-post-date,
  .wp-block-post-time-to-read,
  figcaption,
  .wp-element-caption
):not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface :where(
  .fpsj-post-meta,
  .wp-block-post-date,
  .wp-block-post-time-to-read,
  figcaption,
  .wp-element-caption
):not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  color:var(--fpsj-setting-editorial-muted,#60738c)!important;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface .fpsj-category-pills a,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface .fpsj-category-pills a {
  border-color:rgba(31,108,214,.24);
  background:#edf5ff;
  color:#1256a8;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface .fpsj-featured-image,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface .fpsj-featured-image {
  border-color:var(--fpsj-setting-editorial-border,#d6e0ec);
  background:var(--fpsj-setting-editorial-surface-soft,#eef3f8);
  box-shadow:0 12px 30px var(--fpsj-setting-editorial-table-shadow,rgba(28,54,88,.10));
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content,
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content {
  color:var(--fpsj-setting-editorial-text,#26364b);
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content :where(
  p,
  li,
  dd,
  dt
):not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content :where(
  p,
  li,
  dd,
  dt
):not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  color:var(--fpsj-setting-editorial-text,#26364b);
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content strong:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content strong:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  color:var(--fpsj-setting-editorial-heading,#07101f);
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content a:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content a:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  color:var(--fpsj-setting-editorial-link,#165ec9);
  text-decoration-color:rgba(22,94,201,.34);
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content a:hover:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content a:focus-visible:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content a:hover:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  color:var(--fpsj-setting-editorial-accent,#0c438f);
  text-decoration-color:currentColor;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content > h2,
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content > h2 {
  border-left-color:#3478ff;
  border-radius:0 10px 10px 0;
  background:linear-gradient(90deg,#edf5ff,rgba(237,245,255,0));
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content > h3,
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content > h3 {
  border-bottom-color:#d6e0ec;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content :where(blockquote,.wp-block-quote):not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content :where(blockquote,.wp-block-quote):not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  border-left:4px solid #3478ff;
  background:#eef5ff;
  color:#1d3554;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content :where(blockquote,.wp-block-quote) cite:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content :where(blockquote,.wp-block-quote) cite:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  color:#60738c;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content code:not(pre code):not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content code:not(pre code):not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  border:1px solid #d6e0ec;
  border-radius:5px;
  background:var(--fpsj-setting-editorial-surface-soft,#eef3f8);
  color:#143b70;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content pre:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content pre:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  border:1px solid #294463;
  background:#081321;
  color:#e6eef9;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content .wp-block-separator:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *),
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content .wp-block-separator:not([data-fpsj-component]):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  border-color:var(--fpsj-setting-editorial-border,#d6e0ec);
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-post-footer,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-post-footer {
  border-top-color:var(--fpsj-setting-editorial-border,#d6e0ec);
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-post-navigation a,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-post-navigation a {
  border-color:var(--fpsj-setting-editorial-border,#d6e0ec);
  background:var(--fpsj-setting-editorial-surface,#ffffff);
  color:var(--fpsj-setting-editorial-heading,#07101f);
  box-shadow:0 8px 22px rgba(28,54,88,.08);
}

/* ---------- Legacy editorial tables ---------- */

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
:where(
  .wp-block-table,
  .wp-block-html,
  .scroll-box,
  .st-tbl-scroll,
  .st-table-scroll,
  .table-scroll
) {
  max-width:100%;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
:where(
  .wp-block-table,
  .scroll-box,
  .st-tbl-scroll,
  .st-table-scroll,
  .table-scroll
) {
  overflow-x:auto;
  overflow-y:hidden;
  border:1px solid var(--fpsj-setting-editorial-table-frame,#cbd7e5);
  border-radius:14px;
  background:var(--fpsj-setting-editorial-table-row,#ffffff);
  box-shadow:0 12px 30px var(--fpsj-setting-editorial-table-shadow,rgba(28,54,88,.10));
  -webkit-overflow-scrolling:touch;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  width:100%;
  min-width:620px;
  margin-block:1.25rem;
  border:1px solid var(--fpsj-setting-editorial-table-frame,#cbd7e5)!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border-radius:14px;
  background:var(--fpsj-setting-editorial-table-row,#ffffff)!important;
  color:var(--fpsj-setting-editorial-table-text,#17263c);
  font-size:clamp(.78rem,1.3vw,.9rem);
  line-height:1.48;
  box-shadow:0 12px 30px var(--fpsj-setting-editorial-table-shadow,rgba(28,54,88,.10));
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
:where(
  .wp-block-table,
  .scroll-box,
  .st-tbl-scroll,
  .st-table-scroll,
  .table-scroll
)
> table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
  margin-block:0;
  border:0!important;
  border-radius:0;
  box-shadow:none;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
:where(th,td) {
  min-width:6rem;
  padding:.78rem .7rem!important;
  border:0!important;
  border-right:1px solid var(--fpsj-setting-editorial-table-line,#d8e2ee)!important;
  border-bottom:1px solid var(--fpsj-setting-editorial-table-line,#d8e2ee)!important;
  color:var(--fpsj-setting-editorial-table-text,#17263c)!important;
  vertical-align:middle;
  text-align:left;
  background:var(--fpsj-setting-editorial-table-row,#ffffff)!important;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
:where(thead tr, tr:first-child)
> th {
  background:var(--fpsj-setting-editorial-table-header-bg,#12345b)!important;
  color:var(--fpsj-setting-editorial-table-header-text,#ffffff)!important;
  font-weight:800;
  letter-spacing:.01em;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
:where(thead tr, tr:first-child)
> th * {
  color:var(--fpsj-setting-editorial-table-header-text,#ffffff)!important;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
tbody tr:nth-child(odd)
> :where(th,td) {
  background:var(--fpsj-setting-editorial-table-row,#ffffff)!important;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
tbody tr:nth-child(even)
> :where(th,td) {
  background:var(--fpsj-setting-editorial-table-row-alt,#f1f5fa)!important;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
tbody tr:hover
> :where(th,td) {
  background:var(--fpsj-setting-editorial-table-row-hover,#e6f0ff)!important;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
tr
> :where(th,td):last-child {
  border-right:0!important;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
tbody tr:last-child
> :where(th,td) {
  border-bottom:0!important;
}

/*
 * AFFINGER-era tables can carry hard-coded black or white text on child
 * elements. Normalize only those binary legacy colors so semantic red/green/
 * blue values and badge palettes remain authoritative.
 */
:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
:where(th,td)
:where(
  [style*="color:#000"],
  [style*="color: #000"],
  [style*="color:black"],
  [style*="color: black"],
  [style*="color:rgb(0, 0, 0)"],
  [style*="color: rgb(0, 0, 0)"],
  [style*="color:#fff"],
  [style*="color: #fff"],
  [style*="color:#FFF"],
  [style*="color: #FFF"],
  [style*="color:white"],
  [style*="color: white"],
  [style*="color:rgb(255, 255, 255)"],
  [style*="color: rgb(255, 255, 255)"]
) {
  color:inherit!important;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
:where(th,td)
:where(
  font[color="#000"],
  font[color="#000000"],
  font[color="black"],
  font[color="#fff"],
  font[color="#ffffff"],
  font[color="white"]
) {
  color:inherit!important;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
a {
  color:var(--fpsj-setting-editorial-link,#165ec9);
  text-decoration-color:rgba(22,94,201,.34);
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
caption {
  padding:.75rem .9rem;
  color:var(--fpsj-setting-editorial-muted,#52647c);
  font-size:.78rem;
  text-align:left;
}

/* ---------- Responsive editorial table containment — v0.4.159 ---------- */

/*
 * Theme responsibility is limited to presentation and safe local scrolling.
 * Table meaning, headings, captions, and source HTML remain content-owned.
 */
:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
:where(
  .wp-block-table,
  .scroll-box,
  .st-tbl-scroll,
  .st-table-scroll,
  .table-scroll
) {
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}

@supports selector(:has(*)) {
  :where(
    .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
    .wp-block-post-content,
    .editor-styles-wrapper .fpsj-article-shell--editorial
  )
  .wp-block-html:has(> table) {
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
}

@supports not selector(:has(*)) {
  :where(
    .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
    .wp-block-post-content,
    .editor-styles-wrapper .fpsj-article-shell--editorial
  )
  .wp-block-html
  > table:not([class*="fpsj-"]):not([data-fpsj-component]) {
    display:block;
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
}

@media (max-width:680px) {
  :where(
    .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
    .wp-block-post-content,
    .editor-styles-wrapper .fpsj-article-shell--editorial
  )
  :where(
    .wp-block-table,
    .scroll-box,
    .st-tbl-scroll,
    .st-table-scroll,
    .table-scroll
  ) {
    touch-action:pan-x pan-y;
  }

  @supports selector(:has(*)) {
    :where(
      .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
      .wp-block-post-content,
      .editor-styles-wrapper .fpsj-article-shell--editorial
    )
    .wp-block-html:has(> table) {
      touch-action:pan-x pan-y;
    }
  }
}

/* ---------- Internal WordPress article embeds ---------- */

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
:where(
  .wp-block-embed.is-type-wp-embed,
  .wp-block-embed.wp-block-embed-wordpress,
  .wp-block-embed-wordpress
) {
  width:min(100%,var(--fpsj-editorial-embed-inline,680px));
  max-width:100%;
  margin-block:1.35rem;
}

:where(
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .wp-block-post-content,
  .editor-styles-wrapper .fpsj-article-shell--editorial
)
iframe.wp-embedded-content {
  display:block;
  width:100%!important;
  max-width:var(--fpsj-editorial-embed-inline,680px)!important;
  margin:0;
  border:0;
  border-radius:14px;
  background:transparent;
}

@media (max-width:680px) {
  :where(
    .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
    .wp-block-post-content
  )
  table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *) {
    min-width:560px;
    font-size:.78rem;
  }

  :where(
    .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
    .wp-block-post-content
  )
  table:not([class*="fpsj-"]):not([data-fpsj-component]):not([class*="fpsj-"] *):not([data-fpsj-component] *):not([data-fpsj-color-scope]):not([data-fpsj-color-scope] *):not(.fpsj-color-scope-dark):not(.fpsj-color-scope-dark *):not(.fpsj-color-scope-light):not(.fpsj-color-scope-light *):not(.fpsj-standalone-ui):not(.fpsj-standalone-ui *)
  :where(th,td) {
    padding:.68rem .62rem!important;
  }
}

/* ---------- Editorial canvas / prose / wide-content geometry — v0.4.158 ---------- */

/*
 * The ordinary article canvas follows the approved Front Page 1040px axis.
 * Long-form prose remains centered at 780px, while media/data components can
 * use the full inner canvas. This preserves reading comfort without forcing
 * tables, Custom HTML tools, or comparison layouts into a narrow column.
 */
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-single,
.editor-styles-wrapper .fpsj-article-shell--editorial {
  --fpsj-editorial-canvas-inline:var(--fpsj-setting-editorial-canvas,1040px);
  --fpsj-editorial-header-inline:var(--fpsj-setting-editorial-header,900px);
  --fpsj-editorial-prose-inline:var(--fpsj-setting-editorial-prose,780px);
  --fpsj-editorial-embed-inline:var(--fpsj-setting-editorial-embed,680px);
  --fpsj-editorial-desktop-gutter:var(--fpsj-setting-editorial-desktop-gutter,32px);
  --fpsj-editorial-mobile-gutter:var(--fpsj-setting-editorial-mobile-gutter,8px);
  --fpsj-editorial-current-gutter:var(--fpsj-editorial-desktop-gutter);
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-single .fpsj-content-frame,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-content-frame {
  width:min(var(--fpsj-editorial-canvas-inline),calc(100% - var(--fpsj-editorial-current-gutter) - var(--fpsj-editorial-current-gutter)))!important;
  max-width:var(--fpsj-editorial-canvas-inline)!important;
  margin-inline:auto!important;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-single .fpsj-reading-surface,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface {
  width:100%;
  max-width:none!important;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface > .fpsj-post-header,
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-single-studio-intro > .fpsj-post-header,
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface > .fpsj-article-slot--article-header,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface > .fpsj-post-header,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface > .fpsj-article-slot--article-header {
  width:min(100%,var(--fpsj-editorial-header-inline));
  max-width:var(--fpsj-editorial-header-inline)!important;
  margin-inline:auto!important;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface > .fpsj-single-studio-intro,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface > .fpsj-single-studio-intro {
  width:100%;
  max-width:none!important;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface > .fpsj-featured-image,
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-single-studio-intro > .fpsj-featured-image,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface > .fpsj-featured-image,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-single-studio-intro > .fpsj-featured-image {
  width:100%!important;
  max-width:none!important;
  margin-inline:auto!important;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface > .wp-block-post-content,
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface > .fpsj-article-slot--article-body,
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-article-slot--article-body > .wp-block-post-content,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface > .wp-block-post-content,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface > .fpsj-article-slot--article-body,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-article-slot--article-body > .wp-block-post-content {
  width:100%!important;
  max-width:none!important;
  margin-inline:auto!important;
}

/* Prose defaults: direct article blocks remain comfortably readable. */
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content > *,
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content > * {
  max-width:min(100%,var(--fpsj-editorial-prose-inline))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Data, media, and explicitly independent UI may use the full inner canvas. */
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content > :where(
  .alignwide,
  .alignfull,
  .wp-block-table,
  .wp-block-html,
  .wp-block-columns,
  .wp-block-media-text,
  .wp-block-gallery,
  .wp-block-cover,
  .wp-block-video,
  .scroll-box,
  .st-tbl-scroll,
  .st-table-scroll,
  .table-scroll,
  [data-fpsj-component],
  [data-fpsj-color-scope],
  .fpsj-color-scope-dark,
  .fpsj-color-scope-light,
  .fpsj-standalone-ui,
  .fpsj-reading-wide
),
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content > :where(
  .alignwide,
  .alignfull,
  .wp-block-table,
  .wp-block-html,
  .wp-block-columns,
  .wp-block-media-text,
  .wp-block-gallery,
  .wp-block-cover,
  .wp-block-video,
  .scroll-box,
  .st-tbl-scroll,
  .st-table-scroll,
  .table-scroll,
  [data-fpsj-component],
  [data-fpsj-color-scope],
  .fpsj-color-scope-dark,
  .fpsj-color-scope-light,
  .fpsj-standalone-ui,
  .fpsj-reading-wide
) {
  width:100%!important;
  max-width:none!important;
  margin-inline:auto!important;
}

/* Keep accepted own-post embeds compact even inside the wider article canvas. */
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content > :where(
  .wp-block-embed.is-type-wp-embed,
  .wp-block-embed.wp-block-embed-wordpress,
  .wp-block-embed-wordpress
),
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content > :where(
  .wp-block-embed.is-type-wp-embed,
  .wp-block-embed.wp-block-embed-wordpress,
  .wp-block-embed-wordpress
) {
  width:min(100%,var(--fpsj-editorial-embed-inline))!important;
  max-width:var(--fpsj-editorial-embed-inline)!important;
  margin-inline:auto!important;
}

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface > .fpsj-post-footer,
.editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface > .fpsj-post-footer {
  width:min(100%,var(--fpsj-editorial-prose-inline));
  max-width:var(--fpsj-editorial-prose-inline)!important;
  margin-inline:auto!important;
}

@media (max-width:680px) {
  /*
   * The template carries a legacy 1rem inline padding. Normalize that layer to
   * the same managed mobile gutter so the complete visible spacing budget is:
   * 8px shell + 8px frame + 8px surface for Balanced. Without this override,
   * the untouched 16px template padding made v0.4.157 appear almost unchanged.
   */
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-single,
  .editor-styles-wrapper .fpsj-article-shell--editorial {
    --fpsj-editorial-current-gutter:var(--fpsj-editorial-mobile-gutter);
    --fpsj-editorial-header-inline:100%;
    --fpsj-editorial-prose-inline:100%;
    padding-left:var(--fpsj-editorial-mobile-gutter)!important;
    padding-right:var(--fpsj-editorial-mobile-gutter)!important;
    box-sizing:border-box;
  }

  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-single .fpsj-content-frame,
  .editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-content-frame {
    width:calc(100% - var(--fpsj-editorial-mobile-gutter) - var(--fpsj-editorial-mobile-gutter))!important;
    max-width:calc(100% - var(--fpsj-editorial-mobile-gutter) - var(--fpsj-editorial-mobile-gutter))!important;
    margin-left:auto!important;
    margin-right:auto!important;
    box-sizing:border-box;
  }

  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .fpsj-reading-surface,
  .editor-styles-wrapper .fpsj-article-shell--editorial .fpsj-reading-surface {
    padding-left:var(--fpsj-editorial-mobile-gutter)!important;
    padding-right:var(--fpsj-editorial-mobile-gutter)!important;
    box-sizing:border-box;
  }

  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content > *,
  .editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content > * {
    min-width:0;
    box-sizing:border-box;
  }

  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content > :where(
    .alignwide,
    .alignfull,
    .wp-block-table,
    .wp-block-html,
    .wp-block-columns,
    .wp-block-media-text,
    .wp-block-gallery,
    .wp-block-cover,
    .wp-block-video,
    .scroll-box,
    .st-tbl-scroll,
    .st-table-scroll,
    .table-scroll,
    [data-fpsj-component],
    [data-fpsj-color-scope],
    .fpsj-color-scope-dark,
    .fpsj-color-scope-light,
    .fpsj-standalone-ui,
    .fpsj-reading-wide
  ),
  .editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content > :where(
    .alignwide,
    .alignfull,
    .wp-block-table,
    .wp-block-html,
    .wp-block-columns,
    .wp-block-media-text,
    .wp-block-gallery,
    .wp-block-cover,
    .wp-block-video,
    .scroll-box,
    .st-tbl-scroll,
    .st-table-scroll,
    .table-scroll,
    [data-fpsj-component],
    [data-fpsj-color-scope],
    .fpsj-color-scope-dark,
    .fpsj-color-scope-light,
    .fpsj-standalone-ui,
    .fpsj-reading-wide
  ) {
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content :where(img,video,iframe),
  .editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content :where(img,video,iframe) {
    max-width:100%;
  }
}

/* ---------- Theme-managed editorial typography ---------- */

.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app) .wp-block-post-content,
.editor-styles-wrapper .fpsj-article-shell--editorial .wp-block-post-content {
  font-size:var(--fpsj-setting-editorial-body-size,17px);
  line-height:var(--fpsj-setting-editorial-line-height,1.80);
}

/* ---------- Ordinary editorial title scale refinement — v0.4.157 ---------- */

/*
 * The wider 1040px editorial canvas made the former XXL post-title scale feel
 * closer to a landing-page hero. Keep the approved 900px header measure, but
 * reduce only ordinary editorial H1 titles by roughly twelve percent.
 * Branded/application headings and article-body H1 elements remain untouched.
 */
.fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
.fpsj-reading-surface
.fpsj-post-header
> .fpsj-post-title,
.editor-styles-wrapper
.fpsj-article-shell--editorial
.fpsj-reading-surface
.fpsj-post-header
> .fpsj-post-title {
  font-size:clamp(var(--fpsj-setting-editorial-title-desktop-min,2.25rem),4.2vw,var(--fpsj-setting-editorial-title-desktop-max,3.125rem))!important;
  line-height:1.12;
  letter-spacing:-.032em;
  text-wrap:balance;
}

@media (max-width:680px) {
  .fpsj-theme.fpsj-reading-mode-light:not(.fpsj-layout-app)
  .fpsj-reading-surface
  .fpsj-post-header
  > .fpsj-post-title,
  .editor-styles-wrapper
  .fpsj-article-shell--editorial
  .fpsj-reading-surface
  .fpsj-post-header
  > .fpsj-post-title {
    font-size:clamp(var(--fpsj-setting-editorial-title-mobile-min,2rem),8.5vw,var(--fpsj-setting-editorial-title-mobile-max,2.25rem))!important;
    line-height:1.14;
    letter-spacing:-.025em;
  }
}

