/* SEO text block under each mini app (how to / private / FAQ / related tools). The block itself comes from
   common/seo/apps/{app}/{lang}.json (tools/seo/gen-apps.mjs) and replaces <!--seo-ssr--> in the app's index.html.
   Every app is dark; the block takes the app's own --bg/--fg/--dim/--acc/--ui/--serif/--panel/--glass-b tokens,
   with --seo-* overrides where an app names them differently. Each app places it (start screen or About sheet). */
section.seo-block { box-sizing: border-box; position: relative; display: block; width: auto; max-width: 640px; margin: 40px auto 0; padding: 22px 20px 26px;
  background: var(--seo-bg, var(--panel, var(--bg, #121316))); color: var(--seo-fg, var(--fg, #f5f4f0));
  border: 1px solid var(--seo-line, var(--glass-b, rgba(255,255,255,.14))); border-radius: 22px;
  font: 400 15.5px/1.55 var(--seo-font, var(--ui, system-ui, -apple-system, 'Segoe UI', sans-serif)); letter-spacing: normal; text-transform: none;
  text-align: left; text-shadow: none; white-space: normal; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto;
  user-select: text; -webkit-user-select: text; pointer-events: auto; touch-action: pan-y; }
section.seo-block *, section.seo-block *::before, section.seo-block *::after { box-sizing: border-box; }
section.seo-block h1 { font: 400 clamp(30px, 7.4vw, 40px)/1.06 var(--seo-serif, var(--serif, Georgia, serif)); letter-spacing: -.005em; margin: 0 0 14px; color: inherit; text-shadow: none; text-transform: none; }
section.seo-block h2 { font: 600 18px/1.3 var(--seo-font, var(--ui, system-ui, sans-serif)); letter-spacing: normal; text-transform: none; margin: 28px 0 10px; color: inherit; }
section.seo-block h3 { font: 600 15.5px/1.4 var(--seo-font, var(--ui, system-ui, sans-serif)); letter-spacing: normal; text-transform: none; margin: 16px 0 4px; color: inherit; }
section.seo-block p, section.seo-block li { font: inherit; margin: 0 0 10px; color: var(--seo-dim, var(--dim, rgba(245,244,240,.72))); }
section.seo-block .seo-lead { font-size: 16.5px; line-height: 1.5; color: inherit; margin-top: 0; }
section.seo-block ol, section.seo-block ul { margin: 0 0 12px; padding: 0 0 0 22px; }
section.seo-block ol li::marker { color: var(--seo-acc, var(--acc, #fff)); font-weight: 600; }
section.seo-block .seo-faq h3:first-child { margin-top: 0; }
section.seo-block .seo-rel { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
section.seo-block .seo-rel li { margin: 0; }
section.seo-block a { color: var(--seo-acc, var(--acc, #8cf2cf)); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
section.seo-block .seo-rel a { font-weight: 600; }
section.seo-block .seo-rel span { display: block; font-size: 14px; line-height: 1.4; color: var(--seo-dim, var(--dim, rgba(245,244,240,.72))); }
section.seo-block .seo-brand { margin: 24px 0 0; font-size: 13px; opacity: .8; }
@media (min-width: 700px) { section.seo-block .seo-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
/* inside an About/Info bottom sheet: no card, just a section after the sheet's own text */
.sheet section.seo-block { max-width: none; margin: 26px 0 0; padding: 20px 0 0; background: none; border: 0; border-top: 1px solid var(--seo-line, var(--glass-b, rgba(255,255,255,.14))); border-radius: 0; }
/* The keyword-led H1 that replaces a start-screen headline is longer than the old slogan in some languages: on narrow
   phones it is set a little smaller so the start button stays where it was. */
@media (max-width: 480px) { #start h1[data-seo="h1"] { font-size: clamp(28px, 9vw, 40px); line-height: 1.04; text-wrap: balance; } }
/* SEO fixes round 2 (2026-10-19): visible breadcrumb (Tools › app, = the BreadcrumbList) at the top of the block and the
   app's other-language versions as plain links at its end */
section.seo-block .seo-crumbs { margin: 0 0 14px; font-size: 13px; line-height: 1.35; color: var(--seo-dim, var(--dim, rgba(245,244,240,.72))); }
section.seo-block .seo-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; }
section.seo-block .seo-crumbs li { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
section.seo-block .seo-crumbs li + li::before { content: '›'; margin: 0 7px; }
section.seo-block .seo-crumbs a { font-weight: 600; }
section.seo-block .seo-langs { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13px; line-height: 1.4; color: var(--seo-dim, var(--dim, rgba(245,244,240,.72))); }
section.seo-block .seo-langs [aria-current] { font-weight: 700; color: var(--seo-fg, var(--fg, #f5f4f0)); }
section.seo-block .seo-cookies { margin: 10px 0 0; font-size: 13px; }
