/* FLAW global visual system: loaded after the legacy editorial layers. */
:root {
  --flaw-font-heading: "Noto Serif", Georgia, "Times New Roman", serif;
  --flaw-font-body: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --flaw-container-wide: 1240px;
  --flaw-container-default: 1180px;
  --flaw-container-reading: 800px;
  --flaw-container-narrow: 720px;
  --flaw-gutter: clamp(18px, 3vw, 32px);
  --flaw-space-xs: .5rem;
  --flaw-space-sm: .75rem;
  --flaw-space-md: 1rem;
  --flaw-space-lg: 1.5rem;
  --flaw-space-xl: 2rem;
  --flaw-space-2xl: clamp(3.5rem, 7vw, 7rem);
  --flaw-shell: min(calc(100% - (2 * var(--flaw-gutter))), var(--flaw-container-wide));
  --flaw-article-shell: min(calc(100% - (2 * var(--flaw-gutter))), var(--flaw-container-default));
  --flaw-reading-shell: min(100%, var(--flaw-container-reading));
}

html[lang="zh-CN"], html[lang="zh"], html[lang^="zh-"] {
  --flaw-font-heading: "Noto Serif SC", "Songti SC", SimSun, serif;
  --flaw-font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.flaw-legal-site,
body.flaw-legal-site button,
body.flaw-legal-site input,
body.flaw-legal-site select,
body.flaw-legal-site textarea,
body.flaw-legal-site .nav,
body.flaw-legal-site .flaw-topic-filters,
body.flaw-legal-site .flaw-pagination,
body.flaw-legal-site .flaw-journal-card__meta,
body.flaw-legal-site .flaw-article-meta {
  font-family: var(--flaw-font-body);
}

body.flaw-legal-site h1,
body.flaw-legal-site h2,
body.flaw-legal-site h3,
body.flaw-legal-site h4,
body.flaw-legal-site h5,
body.flaw-legal-site h6,
body.flaw-legal-site .entry-title,
body.flaw-legal-site .page-title h1,
body.flaw-legal-site .flaw-article-header h1,
body.flaw-legal-site .flaw-journal-archive__header h1,
body.flaw-legal-site .flaw-journal-card__body h2,
body.flaw-legal-site .flaw-journal-card__body h3 {
  font-family: var(--flaw-font-heading);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.12;
}

html[lang="zh-CN"] body.flaw-legal-site h1,
html[lang="zh-CN"] body.flaw-legal-site h2,
html[lang="zh-CN"] body.flaw-legal-site h3,
html[lang="zh-CN"] body.flaw-legal-site h4,
html[lang="zh-CN"] body.flaw-legal-site h5,
html[lang="zh-CN"] body.flaw-legal-site h6 {
  letter-spacing: 0;
  line-height: 1.22;
}

body.flaw-legal-site .flaw-editorial-home {
  width: 100%;
  max-width: none;
  margin-left: 0;
}

body.flaw-legal-site .flaw-editorial-wrap,
body.flaw-legal-site .flaw-site-header__inner {
  width: var(--flaw-shell);
}

body.flaw-legal-site .row,
body.flaw-legal-site .container {
  max-width: var(--flaw-container-wide);
}

body.flaw-legal-site .flaw-editorial-hero__grid {
  width: var(--flaw-shell);
  grid-template-columns: minmax(0, .98fr) minmax(18rem, .62fr);
  gap: clamp(2rem, 6vw, 6rem);
}

body.flaw-legal-site .flaw-editorial-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.55rem, 4.8vw, 5.5rem);
  line-height: 1.04;
}

body.flaw-legal-site .flaw-editorial-hero__lead { max-width: 62ch; }
body.flaw-legal-site .flaw-editorial-section__head { max-width: 760px; }
body.flaw-legal-site .flaw-editorial-section h2,
body.flaw-legal-site .flaw-editorial-final h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 3.6vw, 4.1rem);
  line-height: 1.12;
}

body.flaw-legal-site .entry-header,
body.flaw-legal-site .page-title {
  width: var(--flaw-article-shell);
  max-width: none;
}

body.flaw-legal-site .entry-title,
body.flaw-legal-site .page-title h1,
body.flaw-legal-site .flaw-article-header h1,
body.flaw-legal-site .flaw-journal-archive__header h1 {
  max-width: 21ch;
  font-size: clamp(2.15rem, 4vw, 4.5rem);
  line-height: 1.12;
}

body.flaw-legal-site .entry-content,
body.flaw-legal-site .flaw-article-content {
  width: var(--flaw-reading-shell);
  max-width: none;
  margin-inline: auto;
  font-size: clamp(1rem, .98rem + .12vw, 1.075rem);
  line-height: 1.78;
}

body.flaw-legal-site .flaw-article-wrap,
body.flaw-legal-site .flaw-journal-archive > .flaw-editorial-wrap {
  width: var(--flaw-article-shell);
}

body.flaw-legal-site .flaw-article-header,
body.flaw-legal-site .flaw-journal-archive__header {
  max-width: 900px;
}

body.flaw-legal-site .flaw-article-layout {
  grid-template-columns: minmax(0, 12rem) minmax(0, var(--flaw-container-reading));
  gap: clamp(2rem, 5vw, 5rem);
}

body.flaw-legal-site .flaw-journal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  background: transparent;
}

body.flaw-legal-site .flaw-journal-card {
  border: 1px solid var(--flaw-line);
}

body.flaw-legal-site .flaw-journal-card--feature { grid-row: auto; }
body.flaw-legal-site .flaw-journal-card__body h2,
body.flaw-legal-site .flaw-journal-card__body h3 { font-size: clamp(1.35rem, 1.8vw, 1.85rem); line-height: 1.2; }
body.flaw-legal-site .flaw-topic-filters { overflow: visible; }
body.flaw-legal-site .flaw-topic-filters a { border-radius: 2px; font-weight: 500; }

/* Legacy UX Builder page shells keep their backgrounds full bleed; their text and grids do not. */
body.flaw-legal-site .jpv-page .jpv-hero__inner {
  width: var(--flaw-shell);
  max-width: var(--flaw-container-wide);
  margin-inline: auto;
}
body.flaw-legal-site .jpv-page .jpv-hero__inner h1 { max-width: 18ch; }
body.flaw-legal-site .jpv-page .jpv-hero__inner > p { max-width: 62ch; }
body.flaw-legal-site .jpv-hub-page .jpv-content > section {
  width: var(--flaw-shell);
  margin-inline: auto;
}
body.flaw-legal-site .jpv-hub-page .jpv-p1-page > p,
body.flaw-legal-site .jpv-hub-page .jpv-p1-page > section > :is(p, h2) {
  max-width: var(--flaw-container-reading);
}
body.flaw-legal-site .jpv-hub-page .flaw-dynamic-hub {
  width: var(--flaw-shell);
  margin-inline: auto;
}
body.flaw-legal-site .jpv-contact-page .jpv-ml-contact-section { padding-inline: var(--flaw-gutter); }
body.flaw-legal-site .jpv-contact-page .jpv-ml-contact-grid {
  width: min(100%, 1040px);
  margin-inline: auto;
}

body.flaw-legal-site .flaw-footer-contact .container,
body.flaw-legal-site .footer-widgets .row { max-width: var(--flaw-container-wide); margin-inline: auto; }
body.flaw-legal-site .jpv-ml-form-box { max-width: var(--flaw-container-narrow); margin-inline: auto; }

body.flaw-legal-site img,
body.flaw-legal-site picture,
body.flaw-legal-site video,
body.flaw-legal-site iframe,
body.flaw-legal-site svg,
body.flaw-legal-site canvas { max-width: 100%; }
body.flaw-legal-site .flaw-article-content table { max-width: 100%; }
body.flaw-legal-site .flaw-article-content :is(pre, code, a) { overflow-wrap: anywhere; }
body.flaw-legal-site :is(.flaw-journal-card, .flaw-dynamic-hub, .jpv-ml-card, .col, .col-inner) { min-width: 0; }

@media (max-width: 1179px) {
  body.flaw-legal-site .flaw-site-header__inner { grid-template-columns: auto auto; min-height: 78px; }
  body.flaw-legal-site .flaw-site-header { position: relative; }
  body.flaw-legal-site .flaw-site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 1rem 0 1.5rem;
    border-bottom: 1px solid var(--flaw-line);
    background: var(--flaw-ivory);
    box-shadow: var(--flaw-shadow);
  }
  body.flaw-legal-site .flaw-site-header.is-open .flaw-site-nav { display: block; }
  body.flaw-legal-site .flaw-site-nav__list { width: var(--flaw-shell); margin-inline: auto; gap: 0; }
  body.flaw-legal-site .flaw-site-nav__list > li > a { display: block; min-height: 44px; padding: .7rem 0; border-bottom: 1px solid var(--flaw-line); font-size: .86rem; white-space: normal; }
  body.flaw-legal-site .flaw-site-header__tools { display: none; }
  body.flaw-legal-site .flaw-site-header__toggle { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
  body.flaw-legal-site .flaw-editorial-hero__grid { grid-template-columns: 1fr; }
  body.flaw-legal-site .flaw-journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --flaw-gutter: 20px; }
  body.flaw-legal-site .flaw-editorial-hero h1 { font-size: clamp(2.1rem, 10vw, 3.35rem); }
  body.flaw-legal-site .flaw-editorial-section h2,
  body.flaw-legal-site .flaw-editorial-final h2 { font-size: clamp(1.85rem, 8vw, 2.7rem); }
  body.flaw-legal-site .flaw-article-layout,
  body.flaw-legal-site .flaw-journal-grid { grid-template-columns: 1fr; }
  body.flaw-legal-site .flaw-topic-filters { flex-wrap: wrap; }
  body.flaw-legal-site .flaw-topic-filters a { flex: 1 1 auto; }
}
