/* ============================================================================
   3fp-core.css — shared base of zemla.org · mim2000.cz · bodyterapie.com
   v1.1.0 · 2026-11-14 · byte-identical in all three themes (inc/3fp-core.css)

   Loaded AFTER each theme's style.css. One typographic system, one reading
   column, one header behaviour, one set of content elements. Site identity
   (colours, symbol, homepage) lives in inc/3fp-site.css — a thin layer.

   Sections
     0  fonts            5  page + post header
     1  tokens           6  reading column and content elements
     2  base + type      7  footer, widget, utilities
     3  containers       8  typographic variant B
     4  site header      9  motion, print
   Source of truth: 3-fold-path/shared/3fp-core/ — edit there, then run
   scripts/3fp-core-sync.sh; the drift check compares the three copies.
   ========================================================================== */

/* ── 0 · fonts — self-hosted, path relative to this file (inc/) ─────────────
   The stage-a @font-face rules pointed at /wp-content/themes/<name>/…, but the
   deployed folders carry other names, so every request returned 404 and the
   sites fell back to a CDN (zemla) or to system fonts (the other two).      */
/* 2026-11-16: the five files shipped until now (NotoSerif-Regular.woff2 …) held 348 glyphs and no Latin
   letters at all — a non-Latin subset under the right name — so every page fell back to system fonts.
   Replaced by the Latin, Latin Extended and Greek subsets of Noto (OFL), with their unicode ranges. */
@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/noto-serif-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/noto-serif-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/noto-serif-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Noto Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/noto-serif-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/noto-serif-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/noto-serif-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/noto-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/noto-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/noto-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/noto-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/noto-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/noto-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/noto-serif-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/noto-sans-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }

/* ── 1 · tokens ───────────────────────────────────────────────────────────── */
:root {
  /* families */
  --tfp-serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --tfp-sans:  "Noto Sans", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --tfp-mono:  "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --tfp-ja:    "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --tfp-font-text: var(--tfp-serif);
  --tfp-font-head: var(--tfp-sans);
  --tfp-font-ui:   var(--tfp-sans);

  /* type scale — ratio 1.2 on a 18 px text size (17 px on phones) */
  --tfp-fs-text: 1.0625rem;
  --tfp-fs-xs:   0.8125rem;   /* 13 px — the smallest size on any site */
  --tfp-fs-sm:   0.9375rem;   /* 15 px — UI, meta, captions */
  --tfp-fs-lead: 1.1875rem;
  --tfp-fs-h3:   1.25rem;
  --tfp-fs-h2:   1.5rem;
  --tfp-fs-h1:   clamp(1.75rem, 1.25rem + 2.2vw, 2.5rem);
  --tfp-lh-text: 1.65;
  --tfp-lh-head: 1.22;
  --tfp-w-h1: 700; --tfp-w-h2: 700; --tfp-w-h3: 700;   /* a site may lighten its headings */

  /* layout */
  --tfp-measure: 42rem;                       /* reading column: 60–72 characters */
  --tfp-wide:    68rem;                       /* section pages, grids */
  --tfp-pad:     clamp(1.25rem, 5vw, 2rem);   /* side padding, never 0 */
  --tfp-header-h: 4rem;

  /* rhythm */
  --tfp-s1: .5rem; --tfp-s2: 1rem; --tfp-s3: 1.5rem; --tfp-s4: 2.5rem; --tfp-s5: 4rem;

  /* colour roles — each site maps its palette onto these in 3fp-site.css */
  --tfp-bg:      var(--c-bg, #f8f7f4);
  --tfp-surface: var(--c-surface, #fff);
  --tfp-ink:     var(--c-ink, #1c1b18);
  --tfp-ink-2:   var(--c-ink-2, #4a4840);     /* secondary text: ≥ 7:1 on bg */
  --tfp-ink-3:   #66635b;                     /* tertiary text: ≥ 4.5:1 on bg */
  --tfp-line:    var(--c-border, #e0ddd6);
  --tfp-accent:  var(--c-accent, #3d5c3d);
  --tfp-link:    var(--c-link, var(--tfp-accent));
  --tfp-focus:   #1a5fb4;
}
@media (min-width: 48em) { :root { --tfp-fs-text: 1.125rem; --tfp-fs-lead: 1.3125rem; --tfp-fs-h3: 1.3125rem; --tfp-fs-h2: 1.625rem; } }

/* legacy token names used throughout the three style.css files now resolve
   to the shared system, so old rules inherit the new values without edits */
:root {
  --f-body: var(--tfp-font-text); --font-body: var(--tfp-font-text);
  --f-ui: var(--tfp-font-ui);     --font-heading: var(--tfp-font-head);
  --f-mono: var(--tfp-mono);      --font-mono: var(--tfp-mono);
  --f-display: var(--tfp-font-head);
  --fs-body: var(--tfp-fs-text);  --lh-body: var(--tfp-lh-text); --lh-base: var(--tfp-lh-text);
  --c-ink-3: var(--tfp-ink-3);
  --fs-xs: var(--tfp-fs-xs); --fs-sm: var(--tfp-fs-sm);   /* were 12 and 14 px */
  --sp-5: 1.25rem; --sp-10: 2.5rem;   /* used but never defined */
}

/* ── 2 · base + type ──────────────────────────────────────────────────────── */
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--tfp-header-h) + 1rem); }
body {
  font-family: var(--tfp-font-text);
  font-size: var(--tfp-fs-text);
  line-height: var(--tfp-lh-text);
  color: var(--tfp-ink);
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  hanging-punctuation: first;
  overflow-wrap: break-word;
}
/* Japanese gets its own face; nothing else does. (One theme listed the JP
   family first for every language, so Latin text was set in its Latin glyphs.)
   2026-11-17: the face follows the language of the CONTENT. When a page shows a text
   in another language than the menu (body.tfp-cl-foreign, set in inc/lang-variants.php),
   the Japanese rules apply to header, footer and the notice only — not to the text.
   Before, Czech text opened with ?..._lang=ja was set in the Japanese face and with
   Japanese leading: five "language versions" of one Czech page in three typographies.
   This block is the ONLY place for these rules; the copies in each theme's style.css
   were removed on the same day. Checked by scripts/tests/lang_gate.py (T3) and by
   scripts/3fp-lang-design-probe.js on the live site. */
html:lang(ja) body:not(.tfp-cl-foreign), body.locale-ja:not(.tfp-cl-foreign), body.lang-ja:not(.tfp-cl-foreign) { font-family: var(--tfp-ja); line-height: 1.85; }
html:lang(ja) body:not(.tfp-cl-foreign) :is(h1, h2, h3, h4),
html:lang(ja) body.tfp-cl-foreign :is(header, footer) :is(h1, h2, h3, h4) { font-family: var(--tfp-ja); font-weight: 700; letter-spacing: .02em; }
:where(body:not(.tfp-cl-foreign)) :lang(ja):not(html):not(body),
:where(body.tfp-cl-foreign) :where(header, footer, .tfp-page-notice):lang(ja):not(html):not(body),
:where(body.tfp-cl-foreign) :where(header, footer, .tfp-page-notice) :lang(ja):not(html):not(body),
:where(body.tfp-cl-foreign) [lang|="ja"]:not(html):not(body) { font-family: var(--tfp-ja); }

/* Note at the head of a DE/IT/JA digest (written by scripts/lang_digest_note.py) and the
   notice shown when a page does not exist in the requested language: same voice, same
   width as the text they stand above. */
.tfp-digest-note, .tfp-lang-fallback-notice {
  font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-sm); font-style: normal; line-height: 1.5;
  color: var(--tfp-ink-2); max-width: var(--tfp-measure);
  margin: 0 0 1.75rem; padding: .6rem 0 .6rem .9rem; border-left: 2px solid currentColor; background: none;
}
.tfp-digest-note a, .tfp-lang-fallback-notice a { white-space: nowrap; }
:is(body.page-template-default, body.single) .tfp-page-notice.container { max-width: calc(var(--tfp-measure) + 2 * var(--tfp-pad)); }
.tfp-page-notice .tfp-lang-fallback-notice { margin: 1rem 0 0; }

:where(h1, h2, h3, h4) {
  font-family: var(--tfp-font-head);
  line-height: var(--tfp-lh-head);
  color: var(--tfp-ink);
  text-wrap: balance;
  letter-spacing: -0.005em;
}
body:not(.home) main h1 { font-size: var(--tfp-fs-h1); font-weight: var(--tfp-w-h1); letter-spacing: -0.015em; }
main :is(h2) { font-size: var(--tfp-fs-h2); font-weight: var(--tfp-w-h2); }
main :is(h3) { font-size: var(--tfp-fs-h3); font-weight: var(--tfp-w-h3); }
main :is(h4) { font-size: var(--tfp-fs-text); font-weight: 700; }
main p { text-wrap: pretty; }

/* three text sizes and no others: running text, card/aside text, labels.
   Before this rule the same paragraph was 12, 14, 16 or 18 px depending on
   which template printed it, and labels went down to 10 px.               */
body:not(.home) main :is(p, li, dd) { font-size: var(--tfp-fs-text); }
body:not(.home) main :is([class*="card"], [class*="grid"] > *, aside, figure, table, nav, details) :is(p, li, dd),
body:not(.home) main :is(p, li, dd):is([class*="card"], [class*="meta"], [class*="note"], [class*="caption"], [class*="desc"]) { font-size: var(--tfp-fs-sm); line-height: 1.55; }
body:not(.home) main :is([class*="badge"], [class*="label"], [class*="__tag"], [class*="status"], [class*="role"], [class*="domain"], [class*="partner"], [class*="kicker"], [class*="-nav"] > a, [class*="refs"]) { font-size: var(--tfp-fs-xs); line-height: 1.4; }

a { text-underline-offset: .18em; text-decoration-thickness: .06em; }
:focus-visible { outline: 2px solid var(--tfp-focus); outline-offset: 2px; border-radius: 2px; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

/* ── 3 · containers ───────────────────────────────────────────────────────── */
/* padding-inline is !important on purpose: two themes carry an inline
   `padding: … 0 …` on .container, which removed the side padding on phones */
.container { width: 100%; max-width: var(--tfp-wide); margin-inline: auto; padding-inline: var(--tfp-pad) !important; box-sizing: border-box; }

/* single posts and plain pages: header and text share one reading column */
body.single main .container,
body.page-template-default main .container { max-width: calc(var(--tfp-measure) + 2 * var(--tfp-pad)); }

/* section templates keep the wide container, but running text never runs wide */
body:not(.home) main :where(p, li, dd, blockquote, figcaption) { max-width: var(--tfp-measure); }
body:not(.home) main :where(.page-lead, .post-lead, .seed-lead) { max-width: 38rem; }
/* text inside cards, tables and grids is already narrow — do not constrain twice */
main :where(table, [class*="card"], [class*="grid"], nav, figure) :where(p, li, dd, figcaption) { max-width: none; }

/* ── 4 · site header ──────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; padding-block: 0; }
.site-header__inner { display: flex; align-items: center; gap: var(--tfp-s3); min-height: var(--tfp-header-h); flex-wrap: nowrap; }
.site-header :is(.site-title, .site-logo) { flex: 0 0 auto; font-family: var(--tfp-font-ui); font-weight: 700; font-size: 1.125rem; text-decoration: none; white-space: nowrap; }
.site-nav { flex: 1 1 auto; min-width: 0; }
/* zemla keeps its own menu rules (burger panel below 900 px); the two themes
   without a burger get a plain row. Direct children only: dropdowns stay theirs. */
body:not(.theme-zemla) .site-nav > ul { display: flex; flex-wrap: wrap; gap: 0 clamp(.75rem, 2vw, 1.75rem); list-style: none; margin: 0; padding: 0; align-items: center; }
body:not(.theme-zemla) .site-nav > ul > li { margin: 0; }
.site-nav a { font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-sm); font-weight: 400; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav a[aria-current] { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 2px; }

.lang-switcher { flex: 0 0 auto; display: flex; gap: .25rem; margin-left: auto; }
.lang-switcher :is(.lang-btn, a, button) {
  font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-xs); font-weight: 700; letter-spacing: .04em;
  min-width: 2.25rem; min-height: 2.25rem; padding: 0 .4rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; text-decoration: none; line-height: 1;
}

/* below 56em the header is one 56 px row: name · language · menu.
   It is not sticky — on a phone the text needs the height.
   Without script the menu falls back to one scrollable row.                */
.tfp-nav-toggle { display: none; }
@media (max-width: 56em) {
  .site-header { position: static; }
  .site-header__inner { flex-wrap: wrap; row-gap: 0; column-gap: .5rem; min-height: 3.5rem; position: relative; }
  .site-header :is(.site-title, .site-logo) { order: 1; margin-right: auto; }
  .lang-switcher { order: 2; margin-left: 0; }
  .lang-switcher :is(.lang-btn, a, button) { min-width: 2.75rem; min-height: 2.75rem; padding: 0 .35rem; }

  /* language: current code only; the rest opens under it */
  .lang-switcher.tfp-lang .lang-btn:not(.lang-btn--active) { display: none; }
  .lang-switcher.tfp-lang .lang-btn--active::after { content: ""; width: .4em; height: .4em; margin-left: .35em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-25%) rotate(45deg); }
  /* open: the other four appear in the same row (the row wraps if it has to) */
  .lang-switcher.tfp-lang.tfp-lang-open .lang-btn:not(.lang-btn--active) { display: inline-flex; }
  .lang-switcher.tfp-lang.tfp-lang-open .lang-btn--active::after { transform: translateY(15%) rotate(-135deg); }

  /* menu button */
  .tfp-nav-toggle { order: 3; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 .75rem; border: 1px solid var(--tfp-line); border-radius: 6px; background: transparent; color: var(--tfp-ink); font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-sm); font-weight: 700; cursor: pointer; }
  .tfp-nav-toggle__bars { display: grid; gap: 4px; width: 1.1rem; }
  .tfp-nav-toggle__bars i { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s, opacity .2s; }
  .tfp-nav-open .tfp-nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .tfp-nav-open .tfp-nav-toggle__bars i:nth-child(2) { opacity: 0; }
  .tfp-nav-open .tfp-nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  body:not(.theme-zemla) .site-nav { order: 4; flex: 1 0 100%; }
  body:not(.theme-zemla) .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap; }
  body:not(.theme-zemla) .site-nav > ul > li { border-top: 1px solid var(--tfp-line); }
  body:not(.theme-zemla) .site-nav > ul > li > a { display: flex; min-height: 3rem; font-size: 1rem; white-space: normal; }
  body.tfp-has-nav-toggle .site-nav { display: none; padding-bottom: .5rem; }
  body.tfp-has-nav-toggle .tfp-nav-open .site-nav { display: block; }
  /* no script: one scrollable row instead of a closed menu */
  html:not(.tfp-js) body:not(.theme-zemla) .site-nav { overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--tfp-line); }
  html:not(.tfp-js) body:not(.theme-zemla) .site-nav > ul { flex-direction: row; gap: 1.25rem; width: max-content; }
  html:not(.tfp-js) body:not(.theme-zemla) .site-nav > ul > li { border-top: 0; }
}

/* skip link (printed by inc/3fp-core.php) */
.tfp-skip { position: absolute; left: -999rem; top: .5rem; z-index: 1000; background: var(--tfp-surface); color: var(--tfp-ink); padding: .6rem 1rem; border-radius: 4px; font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-sm); }
.tfp-skip:focus { left: .5rem; }

/* ── 5 · page + post header ───────────────────────────────────────────────── */
body:not(.home) main :is(.page-header, .post-header) { padding-block: var(--tfp-s4) var(--tfp-s3); text-align: left; }
.breadcrumb { font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-sm); color: var(--tfp-ink-2); margin: 0 0 var(--tfp-s2); }
.breadcrumb a { color: inherit; }
body:not(.home) .page-symbol { display: block; font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); line-height: 1; margin: 0 0 var(--tfp-s2); }
body:not(.home) main :is(.page-header, .post-header) h1 { margin: 0; max-width: 24em; }
body:not(.home) main :is(.page-lead, .post-lead, .seed-lead) { font-size: var(--tfp-fs-lead); line-height: 1.5; color: var(--tfp-ink-2); margin: var(--tfp-s2) 0 0; }
.post-meta, .post-meta * { font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-sm) !important; color: var(--tfp-ink-2); }
.post-header .post-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; margin-bottom: var(--tfp-s2); }
.page-header .post-meta { margin-top: var(--tfp-s2) !important; }

/* ── 6 · reading column and content elements ──────────────────────────────── */
.post-content { font-size: var(--tfp-fs-text); line-height: var(--tfp-lh-text); max-width: var(--tfp-measure); }
.post-content > :first-child { margin-top: 0; }
.post-content :is(p, ul, ol, dl, blockquote, figure, table, pre) { margin-block: 0 var(--tfp-s3); }
.post-content p { font-size: inherit; line-height: inherit; }
.post-content h2 { margin: var(--tfp-s4) 0 var(--tfp-s2); font-size: var(--tfp-fs-h2); }
.post-content h3 { margin: var(--tfp-s3) 0 var(--tfp-s1); font-size: var(--tfp-fs-h3); }
.post-content h4 { margin: var(--tfp-s3) 0 var(--tfp-s1); }
.post-content :is(h2, h3, h4) + * { margin-top: 0; }
.post-content :is(ul, ol) { padding-left: 1.4em; margin-left: 0; }
.post-content li { margin-bottom: .45em; }
.post-content li > :is(ul, ol) { margin-top: .45em; margin-bottom: 0; }
.post-content a { color: var(--tfp-link); text-decoration: underline; }
.post-content strong { font-weight: 700; }
.post-content blockquote { margin-inline: 0; padding: .1rem 0 .1rem 1.25rem; border-left: 3px solid var(--tfp-line); color: var(--tfp-ink-2); font-style: normal; }
.post-content blockquote > :last-child { margin-bottom: 0; }
.post-content hr { border: 0; border-top: 1px solid var(--tfp-line); margin: var(--tfp-s4) 0; }

/* figures, tables and code may be wider than the column on a phone — they
   scroll inside themselves instead of pushing the page sideways */
.post-content figure { margin-inline: 0; }
.post-content figure img { display: block; margin-inline: auto; }
.post-content figcaption { font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-sm); line-height: 1.45; color: var(--tfp-ink-2); margin-top: .6rem; text-align: left; }
.post-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-sm); line-height: 1.45; -webkit-overflow-scrolling: touch; }
.post-content :is(th, td) { padding: .5rem .75rem; border-bottom: 1px solid var(--tfp-line); text-align: left; vertical-align: top; }
.post-content th { font-weight: 700; border-bottom-width: 2px; white-space: nowrap; }
.post-content :is(pre, code, kbd, samp) { font-family: var(--tfp-mono); font-size: .875em; }
.post-content pre { overflow-x: auto; padding: 1rem 1.1rem; background: var(--tfp-surface); border: 1px solid var(--tfp-line); border-radius: 6px; line-height: 1.5; white-space: pre; }
.post-content :not(pre) > code { background: var(--tfp-surface); border: 1px solid var(--tfp-line); border-radius: 3px; padding: .05em .3em; overflow-wrap: anywhere; }
.post-content :is(.katex-display, .MathJax_Display, mjx-container[display="true"]) { overflow-x: auto; overflow-y: hidden; padding-block: .25rem; }
.post-content sup, .post-content sub { line-height: 0; }
.post-content .wp-block-image, .post-content .wp-block-table { margin-inline: 0; }
.post-content iframe { width: 100%; border: 0; }

/* language notice, variants navigation, tags, prev/next */
:is(.tfp-lang-notice, .tfp-page-notice, .tfp-lang-nav, .tfp-lang-fallback-notice, .post-tags, .post-nav) { font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-sm); color: var(--tfp-ink-2); }
main article > nav[aria-label], .post-nav { max-width: var(--tfp-measure); }
main article > nav[aria-label] a, .post-nav a { max-width: 46%; }

/* ── 7 · footer, ○△□ widget, utilities ────────────────────────────────────── */
.site-footer { font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-sm); line-height: 1.6; padding-block: var(--tfp-s4); margin-top: var(--tfp-s5); }
.site-footer :is(p, li, a, span) { font-size: inherit; }
.site-footer a { text-underline-offset: .2em; }
.site-footer a:hover { text-decoration: underline; }

/* the ○△□ widget stays, but never covers text or buttons on a phone */
@media (max-width: 56em) {
  .msks-widget { position: static !important; width: max-content; margin: var(--tfp-s3) auto 0; box-shadow: none; background: transparent; }
}
@media (min-width: 56.01em) { body:not(.home) main { padding-bottom: 5rem; } }

.tfp-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 8 · typographic variant B — "technical sheet" ────────────────────────────
   body.tfp-v-b: sans-serif running text, serif kept for h1 and the lead.
   Variant A (default) is serif text with sans headings. Preview either on any
   page with ?tfp_v=a or ?tfp_v=b.                                            */
body.tfp-v-b { --tfp-font-text: var(--tfp-sans); --tfp-font-head: var(--tfp-sans); --tfp-lh-text: 1.6; --tfp-measure: 44rem; }
body.tfp-v-b main h1 { font-family: var(--tfp-serif); font-weight: 700; letter-spacing: -0.01em; }
body.tfp-v-b main :is(.page-lead, .post-lead, .seed-lead) { font-family: var(--tfp-serif); }
body.tfp-v-b .post-content { font-size: calc(var(--tfp-fs-text) - .0625rem); }
html:lang(ja) body.tfp-v-b:not(.tfp-cl-foreign) { --tfp-font-text: var(--tfp-ja); }

/* ── 9 · motion, print ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .msks-widget, .lang-switcher, .tfp-skip, main article > nav { display: none !important; }
  body { font-size: 11pt; background: #fff; color: #000; }
  .post-content { max-width: none; }
  .post-content a::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
}

/* ── seal and variant switch (2026-11-15) ─────────────────────────────────── */
.tfp-seal { display: block; width: 2.4rem; height: 2.4rem; margin: var(--tfp-s3) 0 0 auto; color: var(--tfp-seal, var(--tfp-accent)); }
.tfp-seal svg { display: block; width: 100%; height: 100%; }
.tfp-seal--link { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; width: auto; height: auto; text-decoration: none; }
.tfp-seal--link .tfp-seal__mark { display: block; width: 2.75rem; height: 2.75rem; flex: none; transition: transform .25s; }
.tfp-seal--link .tfp-seal__label { font-family: var(--tfp-font-text); font-size: var(--tfp-fs-text); color: var(--tfp-ink); border-bottom: 1px solid transparent; }
.tfp-seal--link:hover .tfp-seal__label, .tfp-seal--link:focus-visible .tfp-seal__label { border-bottom-color: currentColor; }
.tfp-seal--link:hover .tfp-seal__mark { transform: rotate(-4deg) scale(1.06); }
/* footer seal — the one Marusankakushikaku reminder on inner pages (2026-11-18) */
.tfp-footer-seal { display: flex; justify-content: flex-end; margin-top: var(--tfp-s3); }
.tfp-footer-seal .tfp-seal--link { display: block; width: 2.5rem; height: 2.5rem; margin: 0; }
.tfp-footer-seal .tfp-seal--link .tfp-seal__mark { width: 100%; height: 100%; }
/* The floating three-shapes box and the three-shapes mark on dividing lines are retired
   (owner, 18 Nov 2026: obsolete beside the new figures). A dividing line is a hairline. */
.msks-widget { display: none !important; }
.tfp-rule, hr.hmsw25, hr.hmsw33, .hmsw25, .hmsw33, .hmsw-dynamic { display: block; height: 0 !important; border: 0; border-top: 1px solid var(--tfp-line) !important; background: none !important; opacity: 1 !important; margin: clamp(2rem, 5vw, 3.5rem) 0; width: 100%; max-width: none; }
.hmsw25-strip::before, .hmsw25-strip::after, .vmsw25 { display: none !important; }
hr.mim-header-divider, hr.mim-footer-divider { display: none !important; }
.tfp-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .5rem; margin: var(--tfp-s4) auto 0; font-family: var(--tfp-font-ui); font-size: var(--tfp-fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.tfp-switch a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .9rem; border: 1px solid var(--tfp-line); color: var(--tfp-ink-2); text-decoration: none; }
.tfp-switch a[aria-current="true"] { border-color: var(--tfp-ink); color: var(--tfp-ink); font-weight: 600; }

/* ── round-2 figures ─────────────────────────────────────────────────────── */
.tfp-figure { width: 100%; max-width: 35rem; margin-inline: auto; }
.tfp-figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.tfp-seal { width: 2.5rem; height: 2.5rem; }
