:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --border: #e6e3de;
  --accent: #2f6fde;
  --accent-ink: #ffffff;
  --code-bg: #f3f1ed;
  --radius: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1d2024;
    --text: #e6e6e6;
    --muted: #9aa0a8;
    --border: #2d3137;
    --accent: #7aa7ff;
    --accent-ink: #0d1117;
    --code-bg: #24282e;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--content-width, 1040px); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

:root { --adminbar-h: 0px; }
body:has(.adminbar) { --adminbar-h: 32px; }
.adminbar { position: sticky; top: 0; z-index: 100; box-sizing: border-box; height: var(--adminbar-h); display: flex; gap: 18px; align-items: center; background: #1f2328; color: #d0d4da; font-size: 13px; padding: 0 20px; }
.adminbar a { color: #fff; }
.adminbar span { margin-left: auto; }

.search input { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); width: 160px; }


.archive-header { margin-bottom: 28px; }
.archive-header h1 { font: 700 34px/1.2 var(--serif); margin: 0 0 6px; }
.archive-header p { margin: 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.card-image img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.card-body { padding: 22px 26px; }
.card h2 { font: 700 26px/1.25 var(--serif); margin: 4px 0 10px; }
.card h2 a { color: var(--text); }
.card p { margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 14px; }
.meta a { text-decoration: underline; }
.meta-sep { opacity: .6; }
.meta-rating { white-space: nowrap; cursor: default; }
.meta-star { color: #f5b301; }
.more { font-size: 15px; font-weight: 600; }

.sidebar h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.sidebar ul { list-style: none; padding: 0; margin: 0 0 28px; }
.sidebar li { padding: 4px 0; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; color: var(--muted); font-size: 15px; }
.empty { color: var(--muted); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-nav a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; }
.post-nav .is-next { margin-left: auto; text-align: right; }
.b-post-nav-label { color: var(--muted); font-size: 14px; }
.b-post-nav-title { font-weight: 600; }

.preview-banner { background: #fff4ce; color: #5c4400; border: 1px solid #f0d77a; padding: 10px 16px; border-radius: var(--radius); margin-bottom: 24px; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }
.tags a { background: var(--code-bg); padding: 3px 12px; border-radius: 999px; font-size: 14px; }

.prose { font-size: 18px; }
.prose h1, .prose h2, .prose h3 { font-family: var(--serif); line-height: 1.25; margin: 1.8em 0 .6em; }
.prose blockquote { margin: 1.5em 0; padding: .2em 1.2em; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; font-size: .88em; }
.prose pre { background: var(--code-bg); padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; }
.prose img { border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }

.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { font: 700 40px/1.2 var(--serif); }


/* Rich text content */
.prose::after { content: ""; display: block; clear: both; }
.prose h4 { font-family: var(--serif); line-height: 1.25; margin: 1.6em 0 .5em; }
.prose mark { background: #fff3a3; color: inherit; padding: 0 .15em; border-radius: 3px; }
.prose th { background: var(--code-bg); text-align: left; }
.prose td > p, .prose th > p { margin: 0; }
.prose figure { margin: 1.5em 0; }
.prose td > p:empty::before, .prose th > p:empty::before { content: "\00a0"; }

/* ------------------------------------------------------------------ Page builder blocks */
.b-section { min-width: 0; }
.b-inner { display: flex; width: 100%; margin: 0 auto; padding-left: 20px; padding-right: 20px; min-width: 0; }
.b-dir-column { flex-direction: column; }
.b-dir-row { flex-direction: row; flex-wrap: wrap; }
.b-w-contained { max-width: var(--content-width, 1040px); }
.b-w-narrow { max-width: 760px; }
.b-w-full { max-width: none; padding-left: 0; padding-right: 0; }
.b-columns { display: grid; min-width: 0; }
.b-column { display: flex; flex-direction: column; min-width: 0; }
.b-text > :first-child { margin-top: 0; }
.b-text > :last-child { margin-bottom: 0; }
.b-heading, .b-post-title { font-family: var(--serif); line-height: 1.2; margin: 0; }
.b-heading { font-weight: 700; }
/* :where() keeps these as weak as a plain class, so the sizes of Site style and of a block's own Design tab can replace them. */
:where(h1).b-heading, :where(h1).b-post-title { font-size: 42px; font-weight: 700; line-height: 1.15; }
:where(h2).b-heading { font-size: 30px; }
:where(h3).b-heading { font-size: 24px; }
:where(h4).b-heading { font-size: 20px; }
:where(h5, h6).b-heading { font-size: 17px; }
.b-image { margin: 0; }
.b-image img { display: inline-block; max-width: 100%; height: auto; border-radius: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.b-image figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.b-image figcaption strong, .b-image figcaption span { display: block; }
.b-image figcaption strong { font-weight: 600; }
.b-image figcaption span { opacity: .85; }
.b-button-wrap { margin: 0; }
.b-button { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; border-radius: var(--radius); cursor: pointer; line-height: 1.3; }
.b-button:hover { text-decoration: none; filter: brightness(.94); }
.b-button.is-sm { font-size: 14px; padding: 6px 14px; }
.b-button.is-md { font-size: 16px; padding: 10px 20px; }
.b-button.is-lg { font-size: 18px; padding: 14px 28px; }
.b-button.is-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.b-button.is-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.b-button.is-text { background: transparent; color: var(--accent); padding-left: 0; padding-right: 0; border-color: transparent; }
.b-hero { display: flex; align-items: center; justify-content: center; padding: 48px 20px; background-color: var(--code-bg); }
.b-hero-inner { width: 100%; max-width: 760px; }
.b-hero h1 { font: 700 clamp(30px, 5vw, 52px)/1.12 var(--serif); margin: 0 0 14px; }
.b-hero p { font-size: 1.15em; margin: 0 0 22px; opacity: .92; }
.b-divider { border: 0; margin: 0; }
.b-spacer { flex: none; }
.b-site-title { font: 700 24px/1.2 var(--serif); color: var(--text); display: inline-block; }
.b-site-title:hover { text-decoration: none; }
.b-tagline { color: var(--muted); font-size: 14px; }
.b-menu { display: flex; flex-wrap: wrap; align-items: center; }
.b-menu a { color: var(--text); font-size: 15px; }
.b-menu a.active { color: var(--accent); font-weight: 600; }
.b-menu-item { position: relative; display: flex; align-items: center; gap: 2px; }
.b-sub-label { font: inherit; font-size: 15px; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.b-sub-label.active { color: var(--accent); font-weight: 600; }
.b-sub-toggle { flex: none; width: 22px; height: 22px; padding: 0; background: none; border: 0; border-radius: 4px; color: inherit; cursor: pointer; }
.b-sub-toggle::after, .b-menu-item > .b-sub-label::after { content: ''; display: block; width: 6px; height: 6px; margin: 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.b-sub { display: none; position: absolute; z-index: 30; top: 100%; left: 0; min-width: 180px; flex-direction: column; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.b-menu-item:hover > .b-sub, .b-menu-item:focus-within > .b-sub, .b-menu-item.is-open > .b-sub { display: flex; }
.b-sub a, .b-sub > .b-sub-label { display: block; padding: 7px 12px; border-radius: 5px; white-space: nowrap; }
.b-sub a:hover { background: var(--surface-2, rgba(127,127,127,.12)); text-decoration: none; }
.b-menu.is-column .b-menu-item { flex-wrap: wrap; }
.b-menu.is-column .b-sub { position: static; width: 100%; box-shadow: none; border: 0; background: none; padding: 4px 0 0 14px; }
.b-lang { display: flex; flex-wrap: wrap; align-items: center; }
.b-lang a { color: var(--text); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.b-flag { width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(127,127,127,.35); flex: none; }
.b-lang a.active { color: var(--accent); font-weight: 600; }
.b-lang-dd { display: block; position: relative; }
.b-lang-dd summary { list-style: none; cursor: pointer; color: var(--text); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; }
.b-lang-dd summary::-webkit-details-marker { display: none; }
.b-lang-dd summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.b-lang-dd details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.b-lang-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.b-lang-list a { padding: 6px 10px; border-radius: 5px; white-space: nowrap; }
.b-lang-list a:hover { background: var(--surface-2, rgba(127,127,127,.12)); text-decoration: none; }
.b-search { margin: 0; }
.b-post-image.featured { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.b-post-content { min-width: 0; }
.b-meta { margin-top: 0; }
.b-tags { margin-top: 36px; padding-top: 20px; }
.b-post-list .card:last-child { margin-bottom: 0; }
.b-categories ul { margin-bottom: 0; }
.b-note { color: var(--muted); font-size: 13px; font-style: italic; }

/* Header: on small screens the menu, language switcher and search fold into a dropdown */
.b-nav-toggle { display: none; }
.b-mobile-nav { display: contents; }
@media (max-width: 800px) {
  .b-nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 42px; height: 38px; padding: 0 9px; background: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
  .b-nav-toggle span, .b-nav-toggle::before, .b-nav-toggle::after { content: ''; display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .is-nav-open .b-nav-toggle span { opacity: 0; }
  .is-nav-open .b-nav-toggle::before { transform: translateY(7px) rotate(45deg); }
  .is-nav-open .b-nav-toggle::after { transform: translateY(-7px) rotate(-45deg); }
  .b-mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 14px; padding: 14px 20px 18px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(0,0,0,.18); max-height: calc(100vh - 80px); overflow-y: auto; }
  .is-nav-open .b-mobile-nav { display: flex; }
  .b-mobile-nav > * { margin: 0 !important; }
  .b-mobile-nav .b-menu { flex-direction: column !important; align-items: flex-start; gap: 0 !important; }
  .b-mobile-nav .b-menu a { display: block; padding: 10px 0; width: 100%; }
  .b-mobile-nav .b-menu-item { flex-wrap: wrap; width: 100%; }
  .b-mobile-nav .b-sub { display: flex; position: static; width: 100%; box-shadow: none; border: 0; background: none; padding: 0 0 0 14px; }
  .b-mobile-nav .b-sub-toggle, .b-mobile-nav .b-menu-item > .b-sub-label::after { display: none; }
  .b-mobile-nav .b-search input { width: 100% !important; box-sizing: border-box; }
}

/* Card, icon & text, accordion blocks */
.b-cardbox { display: flex; flex-direction: column; height: 100%; min-width: 0; overflow: hidden; }
.b-cardbox img { display: block; width: 100%; height: auto; object-fit: cover; }
.b-cardbox-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.b-cardbox h3 { margin: 0; font: 700 22px/1.25 var(--serif); }
.b-cardbox p { margin: 0; white-space: pre-line; }
.b-cardbox .b-button { margin-top: auto; }
.b-cardbox p + .b-button { margin-top: 8px; }

.b-feature { display: flex; flex-direction: column; gap: 14px; }
.b-feature.is-side { flex-direction: row; align-items: flex-start; gap: 18px; }
.b-feature-icon { flex: none; display: flex; align-items: center; justify-content: center; line-height: 1; }
.b-feature-body { min-width: 0; }
.b-feature h3 { margin: 0 0 6px; font: 700 20px/1.3 var(--serif); }
.b-feature p { margin: 0; white-space: pre-line; }

.b-accordion { display: flex; flex-direction: column; }
.b-accordion-item { border-bottom: 1px solid var(--border); }
.b-accordion-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; font-weight: 600; cursor: pointer; list-style: none; }
.b-accordion-item > summary::-webkit-details-marker { display: none; }
.b-accordion-item > summary::after { content: ''; flex: none; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.b-accordion-item[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.b-accordion-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 0 4px 16px; }
.b-accordion.is-boxed { gap: 8px; }
.b-accordion.is-boxed .b-accordion-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.b-accordion.is-boxed > .b-accordion-item > summary { padding: 14px 18px; }
.b-accordion.is-boxed > .b-accordion-item > .b-accordion-body { padding: 0 18px 16px; }

/* Gallery and video blocks */
.b-gallery { display: grid; }
.b-gallery a { display: block; line-height: 0; }
.b-gallery img { display: block; max-width: 100%; height: auto; }
.b-gallery a:hover img { filter: brightness(.92); }
.b-gallery figure { margin: 0; }
.b-gallery figcaption { margin-top: 6px; font-size: .875rem; color: var(--muted, inherit); line-height: 1.4; }
.b-gallery figcaption strong, .b-gallery figcaption span { display: block; }
.b-gallery figcaption span { opacity: .85; }
.b-video { margin: 0; }
.b-video-frame { position: relative; background: #000; overflow: hidden; border-radius: var(--radius); }
.b-video-frame iframe, .b-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-video-stub { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.b-video figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.b-video figcaption strong, .b-video figcaption span { display: block; }
.b-video figcaption strong { font-weight: 600; }
.b-video figcaption span { opacity: .85; }
:where(.has-bgvideo) { position: relative; isolation: isolate; }
.b-bgvideo, .b-bgvideo-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; border-radius: inherit; pointer-events: none; }
.b-bgvideo { object-fit: cover; }
.b-slider { position: relative; }
.b-slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.b-slider.is-live .b-slider-track { scrollbar-width: none; }
.b-slider.is-live .b-slider-track::-webkit-scrollbar { display: none; }
.b-slide { flex: 0 0 100%; box-sizing: border-box; min-width: 0; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; padding: 48px 20px; background-color: var(--code-bg); }
.b-slider.is-live .b-slide { padding-left: 72px; padding-right: 72px; }
.b-slide-inner { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.b-slider.is-edit .b-slider-track { overflow: visible; }
.b-slider.is-edit .b-slide:not(.is-current) { display: none; }
/* The clip decides the proportions. The size is only a default (zero specificity): the block's Width, Max width and Min height in its Design tab win. */
:where(.b-slider.is-fit.has-ratio) { width: min(100%, calc(100vh * var(--ratio))); width: min(100%, calc(100svh * var(--ratio))); max-width: var(--clip-w); aspect-ratio: var(--ratio); margin-left: auto; margin-right: auto; }
.b-slider.is-fit.has-ratio .b-slider-track { height: 100%; }
.b-slider.is-fit.has-ratio .b-slide { overflow: hidden; }
.b-slider-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.b-slider-bar button { padding: 4px 10px; border: 1px solid var(--border, #c9ced6); border-radius: 999px; background: transparent; color: inherit; font: 13px system-ui, sans-serif; cursor: pointer; }
.b-slider-bar button.is-current { background: var(--accent, #2563eb); border-color: var(--accent, #2563eb); color: #fff; }
.b-slide.has-video { position: relative; overflow: hidden; }
.b-slide-video, .b-slide-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.b-slide-video { object-fit: cover; pointer-events: none; }
.b-slide.has-video .b-slide-inner { position: relative; }
.b-slide-flag { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font: 12px system-ui, sans-serif; }
.b-slide-sound { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: rgba(0,0,0,.4); color: #fff; cursor: pointer; }
.b-slide-sound[hidden] { display: none; }
.b-slide-sound:hover { background: rgba(0,0,0,.6); }
.b-slide-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(0,0,0,.5); }
.b-slide-sound svg { width: 24px; height: 24px; fill: currentColor; }
.b-slide-sound .is-sound, .b-slide-sound[aria-pressed="true"] .is-muted { display: none; }
.b-slide-sound[aria-pressed="true"] .is-sound { display: block; }
.b-slider-ctl { display: none; }
.b-slider.is-live .b-slider-arrow { display: flex; align-items: center; justify-content: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: rgba(0,0,0,.4); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.b-slider.is-live .b-slider-arrow:hover { background: rgba(0,0,0,.6); }
.b-slider-arrow.is-prev { left: 12px; }
.b-slider-arrow.is-next { right: 12px; }
.b-slider.is-live .b-slider-dots { display: flex; position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; justify-content: center; gap: 10px; pointer-events: none; }
.b-slider-dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; pointer-events: auto; }
.b-slider-dots button::after { content: ''; position: absolute; inset: -8px; }
.b-slider-dots button[aria-current="true"] { background: #fff; transform: scale(1.3); }
.b-slider.is-live .b-slider-pause { display: block; position: absolute; right: 12px; bottom: 8px; z-index: 2; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: rgba(0,0,0,.4); color: #fff; cursor: pointer; }
.b-slider.has-sound .b-slider-pause { right: 64px; bottom: 20px; }
.b-slider-pause::before { content: ''; display: block; width: 10px; height: 10px; margin: auto; border: solid #fff; border-width: 0 3px; box-sizing: border-box; }
.b-slider-pause[aria-pressed="true"]::before { border-width: 5px 0 5px 9px; border-color: transparent transparent transparent #fff; width: 0; height: 0; margin-left: 10px; }
.b-slider-arrow:focus-visible, .b-slider-dots button:focus-visible, .b-slider-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(0,0,0,.5); }
@media (max-width: 700px) { .b-slider.is-live .b-slide { padding-left: 52px; padding-right: 52px; } .b-slider.is-live .b-slider-arrow { width: 36px; height: 36px; font-size: 22px; } .b-slider-arrow.is-prev { left: 6px; } .b-slider-arrow.is-next { right: 6px; } }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.88); }
.lightbox .lb-figure { display: flex; flex-direction: column; max-width: 92vw; }
.lightbox img { display: block; width: 100%; height: auto; max-width: 92vw; max-height: 80vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-caption { padding: 12px 0 0; text-align: center; color: #fff; max-height: 14vh; overflow-y: auto; }
.lightbox .lb-caption p { margin: 4px 0 0; font-size: .875rem; opacity: .85; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }
.pdfbox { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: rgba(0,0,0,.88); }
.pdfbox .pdf-bar { display: flex; align-items: center; gap: 8px; width: min(1100px, 100%); color: #fff; }
.pdfbox .pdf-bar strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pdfbox .pdf-tab, .pdfbox .pdf-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1; text-decoration: none; cursor: pointer; }
.pdfbox .pdf-tab:hover, .pdfbox .pdf-close:hover { background: rgba(255,255,255,.28); }
.pdfbox iframe { flex: 1; min-height: 0; width: min(1100px, 100%); border: 0; border-radius: 6px; background: #fff; }

/* Contact form block */
.b-contact { position: relative; margin: 0; }
.b-contact-head { margin: 0 0 18px; }
.b-contact-title { margin: 0 0 6px; }
.b-contact-subtitle { margin: 0; color: var(--muted); white-space: pre-line; }
.b-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.b-form > * { grid-column: 1 / -1; }
.b-form > .is-half { grid-column: span 1; }
.b-form-row { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.b-form-field { position: relative; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.b-form :is(input:not([type=checkbox], [type=radio], [type=hidden]), textarea, select) { font: inherit; font-weight: 400; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.b-form textarea { min-height: 80px; resize: vertical; }
.b-form :is(input, textarea, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.b-form-hint { color: var(--muted); font-size: 13px; }
/* Field styles */
.b-form.is-filled :is(input:not([type=checkbox], [type=radio], [type=hidden]), textarea, select) { background: var(--code-bg); border-color: transparent; }
.b-form.is-underline :is(input:not([type=checkbox], [type=radio], [type=hidden]), textarea, select) { border-width: 0 0 2px; border-radius: 0; background: transparent; padding-left: 2px; padding-right: 2px; }
.b-form.is-underline :is(input, textarea, select):focus-visible { outline: 0; }
/* Required marker */
.b-form.has-stars .b-form-row.is-required .b-form-label::after { content: "\00a0*"; }
/* Label beside the field */
.b-form-row.l-side > .b-form-field { flex-direction: row; align-items: center; gap: 12px; }
.b-form-row.l-side > .b-form-field:has(textarea) { align-items: flex-start; }
.b-form-row.l-side > .b-form-field > .b-form-label { flex: 0 0 30%; }
.b-form-row.l-side > .b-form-hint { padding-left: calc(30% + 12px); }
/* Label inside the field, as its placeholder */
.b-form-row.l-placeholder > .b-form-field > .b-form-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Label inside the field that moves up when the field is focused or filled */
.b-form-row.l-floating > .b-form-field > :is(input, textarea, select) { padding-top: 22px; padding-bottom: 6px; }
.b-form-row.l-floating > .b-form-field > .b-form-label { position: absolute; z-index: 1; left: 13px; top: 50%; transform: translateY(-50%); margin: 0; max-width: calc(100% - 26px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 400; line-height: 1.2; color: var(--muted); pointer-events: none; transition: top .15s ease, transform .15s ease, font-size .15s ease, color .15s ease; }
.b-form-row.l-floating > .b-form-field > textarea ~ .b-form-label { top: 22px; transform: none; }
.b-form-row.l-floating > .b-form-field > :is(input, textarea, select):focus ~ .b-form-label,
.b-form-row.l-floating > .b-form-field > :is(input, textarea):not(:placeholder-shown) ~ .b-form-label,
.b-form-row.l-floating.is-always > .b-form-field > .b-form-label { top: 7px; transform: none; font-size: 11.5px; }
.b-form-row.l-floating > .b-form-field > :is(input, textarea, select):focus ~ .b-form-label { color: var(--accent); }
.b-form-row.l-floating > .b-form-field > :is(input, textarea)::placeholder { color: transparent; }
.b-form-row.l-floating > .b-form-field > :is(input, textarea):focus::placeholder { color: var(--muted); }
.b-form.is-underline .l-floating > .b-form-field > .b-form-label { left: 2px; }
/* Choices and checkboxes */
.b-form-group { border: 0; margin: 0; padding: 0; gap: 8px; }
.b-form-group > .b-form-label { padding: 0; margin-bottom: 2px; font-size: 14px; font-weight: 600; }
.b-form-choice, .b-form-consent { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; }
.b-form-choice { align-items: center; gap: 8px; }
.b-form-consent input { margin-top: 4px; }
.b-form .b-button { justify-self: start; }
.b-form.is-full .b-button { justify-self: stretch; }
.b-form button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 600px) {
  .b-form > .is-half { grid-column: 1 / -1; }
  .b-form-row.l-side > .b-form-field { flex-direction: column; align-items: stretch; gap: 6px; }
  .b-form-row.l-side > .b-form-field > .b-form-label { flex: none; }
  .b-form-row.l-side > .b-form-hint { padding-left: 0; }
}
.b-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.b-form-ok, .b-form-error { display: none; padding: 14px 18px; border-radius: var(--radius); scroll-margin-top: 140px; }
.b-form-ok { border: 1px solid #2e9e5b; background: rgba(46, 158, 91, .12); }
.b-form-error { margin-top: 14px; border: 1px solid #c0392b; background: rgba(192, 57, 43, .12); }
.b-form-ok:target, .b-form-error:target, .is-sent .b-form-ok, .is-failed .b-form-error { display: block; }
.b-contact:has(.b-form-ok:target) .b-form, .b-contact.is-sent .b-form { display: none; }

/* Star rating of a post */
.b-rating { --star: #f5b301; --star-off: color-mix(in srgb, var(--text) 18%, transparent); display: flex; flex-direction: column; gap: 4px; }
.b-rating-label { font-size: 15px; font-weight: 600; }
.b-rating-info { font-size: 14px; color: var(--muted); }
.b-rating-stars { display: inline-flex; line-height: 1; }
/* --fill is how much of the star is yellow (0 to 1); the gradient is clipped to the glyph */
.b-star { --fill: 0; appearance: none; border: 0; margin: 0; padding: 0 .04em; background-color: transparent; font: inherit; line-height: 1; color: transparent; -webkit-text-fill-color: transparent; background-image: linear-gradient(90deg, var(--star) calc(var(--fill) * 100%), var(--star-off) calc(var(--fill) * 100%)); -webkit-background-clip: text; background-clip: text; }
button.b-star { cursor: pointer; }
button.b-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* Pointing at a star lights it and the ones before it */
.b-rating:not(.is-readonly) .b-rating-stars:hover .b-star { --fill: 1 !important; }
.b-rating:not(.is-readonly) .b-rating-stars .b-star:hover ~ .b-star { --fill: 0 !important; }
.b-rating.is-busy { opacity: .6; pointer-events: none; }

/* Comments of a post */
.b-comments-title { margin: 0 0 14px; }
.b-comments-count { color: var(--muted); font-size: .7em; font-weight: 400; }
.b-comment-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.b-comment { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 140px; }
.b-comment:target { border-color: var(--accent); }
.b-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 6px; }
.b-comment-head time { color: var(--muted); font-size: 13px; }
.b-comment-body { white-space: pre-line; overflow-wrap: anywhere; }
.b-comment-none { margin: 0 0 24px; color: var(--muted); }
.b-comment-replies { margin: 12px 0 0; padding-left: 20px; border-left: 2px solid var(--border); }
.b-comment-reply, .b-comment-cancel { appearance: none; border: 0; background: none; padding: 0; margin-top: 8px; font: inherit; font-size: 13px; color: var(--accent); cursor: pointer; }
.b-comment-reply:hover, .b-comment-cancel:hover { text-decoration: underline; }
.b-comment-staff-note { margin: 0; color: var(--muted); font-size: 14px; }
.b-comment-replying { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: var(--radius); background: var(--code-bg); font-size: 14px; }
.b-comment-replying[hidden] { display: none; }
.b-comment-replying .b-comment-cancel { margin: 0; }
.b-comment-pages { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 24px; }
.b-comment-form-title { margin: 0 0 12px; }
.b-comment-form { max-width: 640px; }

/* Pricing variant of the card */
.b-cardbox { position: relative; }
.b-cardbox-price { display: flex; align-items: baseline; gap: 6px; }
.b-price { font: 700 40px/1.1 var(--serif); }
.b-period { color: var(--muted); font-size: 15px; }
.b-cardbox-features { margin: 6px 0 10px; }
.b-cardbox-flag { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }

/* List */
.b-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; counter-reset: b-n; }
.b-list li { position: relative; padding-left: 1.8em; counter-increment: b-n; }
.b-list li::before { position: absolute; left: 0; color: var(--marker, var(--accent)); font-weight: 700; }
.b-list.is-bullets li::before { content: ''; left: .4em; top: .62em; width: .42em; height: .42em; border-radius: 50%; background: var(--marker, var(--accent)); }
.b-list.is-check li::before { content: '\2713'; }
.b-list.is-cross li::before { content: '\2715'; }
.b-list.is-arrow li::before { content: '\2192'; }
.b-list.is-numbers li::before { content: counter(b-n) '.'; }
.b-list.is-none li { padding-left: 0; }
.b-list.is-none li::before { content: none; }

/* Badge */
.b-badge-wrap { margin: 0; }
.b-badge { display: inline-block; font-weight: 700; line-height: 1; letter-spacing: .02em; border: 1px solid transparent; text-decoration: none; }
a.b-badge:hover { text-decoration: none; filter: brightness(.94); }
.b-badge.is-sm { font-size: 11px; padding: 4px 8px; }
.b-badge.is-md { font-size: 13px; padding: 6px 12px; }
.b-badge.is-pill { border-radius: 999px; }
.b-badge.is-rounded { border-radius: 6px; }
.b-badge.is-solid { background: var(--badge, var(--accent)); color: var(--badge-ink, var(--accent-ink)); }
.b-badge.is-soft { background: color-mix(in srgb, var(--badge, var(--accent)) 16%, transparent); color: var(--badge, var(--accent)); }
.b-badge.is-outline { border-color: var(--badge, var(--accent)); color: var(--badge, var(--accent)); }

/* Numbers */
.b-counters { display: grid; gap: 28px 24px; }
.b-counter-num { font-family: var(--serif); font-weight: 700; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.b-counter-label { margin-top: 6px; color: var(--muted); }

/* Quote */
.b-quote { margin: 0; }
.b-quote blockquote { margin: 0; }
.b-quote blockquote p { margin: 0 0 14px; font-size: 1.1em; font-style: italic; }
.b-quote.is-large blockquote p { font: italic 500 clamp(22px, 3vw, 32px)/1.4 var(--serif); }
.b-quote.is-boxed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.b-quote-stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 8px; }
.b-quote-stars span { color: var(--border); }
.b-quote figcaption { display: flex; align-items: center; gap: 12px; }
.b-quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.b-quote-who { display: flex; flex-direction: column; text-align: left; }
.b-quote-who small { color: var(--muted); }

/* Tabs */
.b-tabs-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.b-tabs { position: relative; }
.b-tabs-bar { display: flex; gap: 4px; padding-bottom: 1px; border-bottom: 1px solid var(--border); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.b-tabs-bar label { flex: none; padding: 10px 16px; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.b-tabs-bar label:hover { color: var(--text); }
.b-tab-panel { display: none; flex-direction: column; gap: 16px; min-width: 0; padding: 18px 4px; }

/* Donate */
.b-donate-action { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.b-donate { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.b-donate.is-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.b-donate h3 { margin: 0; font: 700 24px/1.3 var(--serif); }
.b-donate p { margin: 0; max-width: 52ch; white-space: pre-line; }
.b-donate-amounts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.b-donate-amount { padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--text); background: var(--bg); }
.b-donate-amount:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.b-donate-bank { align-self: stretch; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border); text-align: left; }
.b-donate-bank h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.b-donate-bank dl { display: grid; gap: 8px; margin: 0; }
.b-donate-bank dl > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.b-donate-bank dt { flex: 0 0 110px; color: var(--muted); font-size: .9em; }
.b-donate-bank dd { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Map */
.b-map { position: relative; overflow: hidden; background: var(--surface-2, #ddd); }
.b-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-map.b-video-stub { background: #333; }

/* Countdown */
.b-countdown { margin: 0; }
.b-cd-units { display: flex; flex-wrap: wrap; gap: 14px; }
.b-cd-cell { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.b-cd-num { font-family: var(--serif); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--accent); }
.b-cd-label { margin-top: 4px; font-size: 13px; color: var(--muted); }
.b-countdown.is-boxed .b-cd-cell { padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 84px; }
.b-cd-done { display: none; font-size: 1.3em; font-weight: 600; }
.b-countdown.is-done .b-cd-units { display: none; }
.b-countdown.is-done .b-cd-done { display: block; }

/* Code */
.b-code { margin: 0; background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.b-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.b-code-copy { font: inherit; padding: 3px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); cursor: pointer; }
.b-code-copy:hover { border-color: var(--accent); }
.b-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.55; background: none; border: 0; }
.b-code code { font: inherit; background: none; padding: 0; }

/* Social links */
.b-social { display: flex; flex-wrap: wrap; align-items: center; }
.b-social a { display: inline-flex; align-items: center; justify-content: center; color: var(--social, var(--text)); border-radius: 50%; transition: opacity .15s, transform .15s; }
.b-social a:hover { opacity: .75; transform: translateY(-1px); text-decoration: none; }
.b-social.is-circle a { border: 1.5px solid currentColor; }
.b-social.is-filled a { background: var(--social, var(--accent)); color: #fff; }
.b-social svg { display: block; }

/* Breadcrumbs */
.b-breadcrumbs { font-size: 14px; color: var(--muted); }
.b-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.b-breadcrumbs li + li::before { content: '\203A'; margin-right: 10px; opacity: .6; }
.b-breadcrumbs a { color: var(--muted); }
.b-breadcrumbs a:hover { color: var(--accent); }
.b-breadcrumbs li[aria-current] { color: var(--text); }

/* E-shop (only used on /shop pages) */
.small { font-size: 14px; }
.shop h1 { font: 700 30px/1.25 var(--serif); margin: 0 0 14px; }
.shop h2 { font-size: 20px; margin: 22px 0 10px; }
.shop-pictures img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.shop-card { margin: 0; }
.shop-card .card-body { padding: 16px 18px; }
.shop-card h2 { font-size: 20px; margin: 0 0 6px; }
.shop-price { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.shop-card .shop-price { font-size: 17px; margin: 0 0 4px; }
.shop-soldout { color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.shop-low { color: #b45309; font-size: 14px; margin: 0 0 10px; }
.shop-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 10px; }
.shop-add { display: flex; gap: 10px; align-items: stretch; margin: 16px 0; }
.shop-qty input { width: 72px; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); height: 100%; box-sizing: border-box; }
.shop-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.shop-table th, .shop-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.shop-table td.num, .shop-table th.num { text-align: right; white-space: nowrap; }
.shop-table .shop-qty input { width: 64px; padding: 6px 8px; height: auto; }
.shop-totals { margin-left: auto; max-width: 320px; }
.shop-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.shop-totals .grand { font-weight: 700; font-size: 20px; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }
.shop-form { display: grid; gap: 14px; max-width: 560px; }
.shop-form label { display: grid; gap: 4px; font-size: 15px; font-weight: 600; }
.shop-form input:not([type=radio]):not([type=checkbox]), .shop-form textarea, .shop-form select { font: inherit; font-weight: 400; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.shop-form .check, .shop-form .radio { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.shop-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; display: grid; gap: 8px; }
.shop-error { background: #fdecea; color: #7a1f17; border: 1px solid #f3b8b1; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.shop-ok { background: #e8f5ec; color: #14532d; border: 1px solid #a7d7b5; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.shop-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.shop button.b-button { font-family: inherit; }
@media (prefers-color-scheme: dark) { .shop-error { background: #3a1613; color: #f6c6c1; border-color: #6b2b25; } .shop-ok { background: #12301c; color: #b9e5c6; border-color: #2b5a3a; } .shop-low { color: #f2b45a; } }
.shop-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.shop-row { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.shop-downloads { list-style: none; padding: 0; display: grid; gap: 12px; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.shop-chips a { display: inline-block; background: var(--code-bg); padding: 3px 12px; border-radius: 999px; font-size: 14px; }
.b-cart-link { display: inline-flex; align-items: center; gap: .45em; }
.b-cart-icon { display: inline-flex; width: 1.25em; height: 1.25em; }
.b-cart-icon svg, img.b-cart-icon { width: 100%; height: 100%; object-fit: contain; }
.b-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4em; height: 1.4em; padding: 0 .35em; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .8em; line-height: 1; }
.b-button.is-solid .b-cart-count { background: var(--accent-ink); color: var(--accent); }
.shop-term-description { margin: -6px 0 16px; }

/* Animations set in the builder (Design tab → Animation). The block's own rule names the keyframes and the timing.
   An entrance animation hides the block until site.js sees it come into view. Only the `from` state is given: the
   block's normal look is the end. Moves use translate/scale/rotate, which add to the hover effect's transform. */
@keyframes fx-fade { from { opacity: 0; } }
@keyframes fx-rise { from { opacity: 0; translate: 0 var(--fx-d, 32px); } }
@keyframes fx-drop { from { opacity: 0; translate: 0 calc(var(--fx-d, 32px) * -1); } }
@keyframes fx-from-left { from { opacity: 0; translate: calc(var(--fx-d, 32px) * -1) 0; } }
@keyframes fx-from-right { from { opacity: 0; translate: var(--fx-d, 32px) 0; } }
@keyframes fx-zoom { from { opacity: 0; scale: .85; } }
@keyframes fx-blur { from { opacity: 0; filter: blur(12px); } }
@keyframes fx-flip { from { opacity: 0; transform: perspective(700px) rotateX(-70deg); transform-origin: 50% 0; } }
@keyframes fx-rotate { from { opacity: 0; rotate: -8deg; scale: .9; } }
@keyframes fx-bounce { 0% { opacity: 0; translate: 0 calc(var(--fx-d, 32px) * 1.5); } 55% { opacity: 1; translate: 0 calc(var(--fx-d, 32px) * -.4); } 78% { translate: 0 calc(var(--fx-d, 32px) * .15); } 100% { translate: 0 0; } }
@keyframes fx-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-wipe-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-float { 50% { translate: 0 -10px; } }
@keyframes fx-pulse { 50% { scale: 1.05; } }
@keyframes fx-swing { 25% { rotate: 2deg; } 75% { rotate: -2deg; } }
@keyframes fx-spin { to { rotate: 360deg; } }
@keyframes fx-heartbeat { 14% { scale: 1.12; } 28% { scale: 1; } 42% { scale: 1.08; } 70% { scale: 1; } }
@keyframes fx-shake { 2%, 6%, 10% { translate: -4px 0; } 4%, 8% { translate: 4px 0; } 12% { translate: 0 0; } }
@keyframes fx-gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
/* Tied to the scroll bar (view timeline); the range is set where the block's rule is. */
@keyframes fx-s-drift { from { translate: 0 var(--fx-d, 32px); } to { translate: 0 calc(var(--fx-d, 32px) * -1); } }
@keyframes fx-s-grow { from { scale: .86; opacity: .4; } to { scale: 1; opacity: 1; } }
@keyframes fx-s-fade { 0% { opacity: 0; } 30%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-failsafe { to { opacity: 1; } }
.fx-enter:not(.is-in) { opacity: 0; }
/* If the page script never runs, show everything after a moment rather than leave it hidden. */
html:not(.fx-ready) .fx-enter:not(.is-in) { animation: fx-failsafe 1ms 2.5s forwards; }
@media (prefers-reduced-motion: reduce) {
  .fx-enter { opacity: 1 !important; animation: none !important; }
  .fx-loop { animation: none !important; }
}
@media print { .fx-enter { opacity: 1 !important; } }

/* Marquee block: two identical rounds side by side, moved left by one round and then started again. */
.b-marquee { overflow: hidden; }
.b-marquee.is-fade { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.b-marquee-track { display: flex; width: max-content; animation: fx-marquee var(--speed, 30s) linear infinite; }
.b-marquee.is-pause:hover .b-marquee-track { animation-play-state: paused; }
.b-marquee-group { display: flex; flex: none; align-items: center; list-style: none; margin: 0; padding: 0; }
.b-marquee-item { display: flex; align-items: center; flex: none; white-space: nowrap; margin-right: var(--gap, 40px); }
.b-marquee-item::before { content: var(--sep, none); margin-right: var(--gap, 40px); }
.b-marquee img { display: block; height: var(--img, 48px); width: auto; max-width: none; }
@keyframes fx-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .b-marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .b-marquee-group[aria-hidden] { display: none; }
  .b-marquee.is-fade { -webkit-mask-image: none; mask-image: none; }
}
