/* ==========================================================================
   Design system base. Every value comes from --fx-* tokens (see Design.php).
   Scope: body.fx-site (canvas pages) and .fx-scope (shortcodes inside themes).
   ========================================================================== */

/* ---------- derived tokens ---------- */
:root {
  --fx-s1: calc(1rem * var(--fx-scale));
  --fx-s2: calc(var(--fx-s1) * var(--fx-scale));
  --fx-s3: calc(var(--fx-s2) * var(--fx-scale));
  --fx-s4: calc(var(--fx-s3) * var(--fx-scale));
  --fx-s5: calc(var(--fx-s4) * var(--fx-scale));
  --fx-s6: calc(var(--fx-s5) * var(--fx-scale));
  --fx-gutter: clamp(20px, 4.4vw, 64px);
  --fx-pad: calc(clamp(68px, 9.5vw, 144px) * var(--fx-density));
  --fx-gap: calc(clamp(20px, 2.6vw, 40px) * var(--fx-density));
  --fx-header-h: 76px;
  --fx-shadow: 0 1px 2px color-mix(in srgb, var(--fx-ink) 6%, transparent), 0 18px 40px -24px color-mix(in srgb, var(--fx-ink) 28%, transparent);
  --fx-shadow-lg: 0 40px 80px -40px color-mix(in srgb, var(--fx-ink) 45%, transparent);
}
html[data-fx-motion="none"] { --fx-dur: 0ms; }

/* ---------- reset (scoped) ---------- */
html:has(body.fx-site) { font-size: var(--fx-base); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--fx-header-h) + 16px); }
body.fx-site { margin: 0; background: var(--fx-bg); color: var(--fx-ink); font-family: var(--fx-font-body); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
.fx-site *, .fx-site *::before, .fx-site *::after,
.fx-scope *, .fx-scope *::before, .fx-scope *::after { box-sizing: border-box; }
.fx-site :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd) { margin: 0; }
.fx-site :where(ul, ol)[class] { list-style: none; padding: 0; }
.fx-site :where(img, svg, video, iframe) { display: block; max-width: 100%; }
.fx-site :where(img) { height: auto; }
.fx-site :where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.fx-site :where(button, input, select, textarea) { font: inherit; color: inherit; }
.fx-site :where(button) { cursor: pointer; }
.fx-site ::selection { background: var(--fx-accent); color: var(--fx-accent-ink); }
.fx-site :focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 3px; border-radius: 2px; }
.fx-main { display: block; outline: 0; }
.fx-scope { font-family: var(--fx-font-body); color: var(--fx-ink); background: var(--fx-bg); }

/* ---------- typography ---------- */
.fx-display, .fx-h1, .fx-h2, .fx-h3, .fx-h4,
.fx-site :where(h1, h2, h3) {
  font-family: var(--fx-font-display);
  font-weight: var(--fx-display-weight);
  letter-spacing: var(--fx-display-tracking);
  text-transform: var(--fx-display-case);
  font-style: var(--fx-display-style);
  line-height: 1.06;
  text-wrap: balance;
  color: var(--fx-ink);
}
.fx-display { font-size: clamp(var(--fx-s4), 7.4vw, calc(var(--fx-s6) * 1.38)); line-height: .98; }
.fx-h1, .fx-site :where(h1) { font-size: clamp(var(--fx-s3), 5.6vw, var(--fx-s6)); }
.fx-h2, .fx-site :where(h2) { font-size: clamp(calc(var(--fx-s3) * .92), 4.2vw, var(--fx-s5)); line-height: 1.1; }
.fx-h3, .fx-site :where(h3) { font-size: clamp(var(--fx-s1), 2.2vw, var(--fx-s2)); line-height: 1.2; }
.fx-h4 { font-size: var(--fx-s1); line-height: 1.3; }
.fx-display em, .fx-h1 em, .fx-h2 em, .fx-h3 em, .fx-site :where(h1, h2, h3) em { font-style: italic; color: var(--fx-accent); font-weight: inherit; }
html[data-fx-theme="dark"] .fx-display em, html[data-fx-theme="dark"] .fx-h1 em, html[data-fx-theme="dark"] .fx-h2 em { color: color-mix(in srgb, var(--fx-accent) 75%, var(--fx-ink)); }
.fx-eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--fx-font-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: var(--fx-eyebrow-case);
  color: var(--fx-accent); margin-bottom: 1.1rem;
}
.fx-eyebrow--line::before { content: ""; width: 2.4em; height: 1px; background: currentColor; opacity: .7; }
.fx-lead { font-size: clamp(1.06rem, 1.4vw, 1.24rem); line-height: 1.6; color: var(--fx-muted); max-width: 62ch; }
.fx-lead + .fx-lead { margin-top: 1em; }
.fx-muted { color: var(--fx-muted); }
.fx-small { font-size: .875rem; }
.fx-prose { max-width: 68ch; font-size: 1.06rem; line-height: 1.75; }
.fx-prose > * + * { margin-top: 1.2em; }
.fx-prose :where(h2, h3) { margin-top: 1.8em; }
.fx-prose :where(a) { color: var(--fx-accent); }
.fx-prose :where(ul, ol) { padding-left: 1.2em; }
.fx-prose :where(blockquote) { border-left: 2px solid var(--fx-accent); padding-left: 1.2em; font-family: var(--fx-font-display); font-size: 1.3em; line-height: 1.4; }
.fx-prose :where(img, figure) { border-radius: var(--fx-radius); }
.fx-prose :where(figcaption) { color: var(--fx-muted); font-size: .85rem; margin-top: .5em; }

/* ---------- layout ---------- */
.fx-container { width: 100%; max-width: calc(var(--fx-container) + var(--fx-gutter) * 2); margin-inline: auto; padding-inline: var(--fx-gutter); }
.fx-container--wide { max-width: calc(var(--fx-container) * 1.2 + var(--fx-gutter) * 2); }
.fx-container--narrow { max-width: calc(780px + var(--fx-gutter) * 2); }
.fx-container--full { max-width: none; }
.fx-s { position: relative; padding-block: var(--fx-pad); background: var(--fx-bg); color: var(--fx-ink); }
.fx-pad-compact { --fx-pad: calc(clamp(44px, 5.5vw, 80px) * var(--fx-density)); }
.fx-pad-airy { --fx-pad: calc(clamp(96px, 13vw, 200px) * var(--fx-density)); }
.fx-pad-none { --fx-pad: 0px; }
.fx-head { display: grid; gap: .2rem; margin-bottom: clamp(36px, 5vw, 72px); max-width: 760px; }
.fx-head--center { text-align: center; margin-inline: auto; justify-items: center; }
.fx-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.fx-head .fx-lead { margin-top: 1rem; }
.fx-grid { display: grid; gap: var(--fx-gap); }
.fx-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx-auto { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.fx-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.fx-stack > * + * { margin-top: var(--fx-stack, 1rem); }
.fx-center { text-align: center; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 2rem; }
.fx-center .fx-actions, .fx-actions--center { justify-content: center; }
.fx-divider { height: 1px; background: var(--fx-line); border: 0; margin: 0; }
@media (max-width: 1024px) { .fx-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .fx-split, .fx-cols-2, .fx-cols-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .fx-cols-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tones ---------- */
.fx-tone-surface { --fx-bg: var(--fx-surface); }
.fx-tone-surface .fx-card { background: var(--fx-bg); }
.fx-tone-inverse {
  --fx-bg: var(--fx-inverse); --fx-ink: var(--fx-inverse-ink);
  --fx-muted: color-mix(in srgb, var(--fx-inverse-ink) 66%, var(--fx-inverse));
  --fx-line: color-mix(in srgb, var(--fx-inverse-ink) 16%, var(--fx-inverse));
  --fx-surface: color-mix(in srgb, var(--fx-inverse-ink) 6%, var(--fx-inverse));
  --fx-surface-2: color-mix(in srgb, var(--fx-inverse-ink) 11%, var(--fx-inverse));
  color-scheme: dark;
}
.fx-tone-accent {
  --fx-bg: var(--fx-accent); --fx-ink: var(--fx-accent-ink);
  --fx-muted: color-mix(in srgb, var(--fx-accent-ink) 75%, var(--fx-accent));
  --fx-line: color-mix(in srgb, var(--fx-accent-ink) 22%, var(--fx-accent));
  --fx-surface: color-mix(in srgb, var(--fx-accent-ink) 8%, var(--fx-accent));
}
.fx-tone-accent .fx-btn--primary { --b-bg: var(--fx-ink); --b-ink: var(--fx-bg); --b-line: var(--fx-ink); }
.fx-tone-accent .fx-btn--primary:hover { --b-bg: transparent; --b-ink: var(--fx-ink); }
.fx-tone-accent em, .fx-tone-accent .fx-eyebrow, .fx-tone-accent .fx-icon-badge { color: inherit !important; }
.fx-tone-accent .fx-icon-badge { background: color-mix(in srgb, var(--fx-accent-ink) 12%, transparent); }
.fx-tone-inverse, .fx-tone-accent, .fx-tone-surface { background: var(--fx-bg); color: var(--fx-ink); }

/* ---------- buttons ---------- */
.fx-btn {
  --b-bg: var(--fx-accent); --b-ink: var(--fx-accent-ink); --b-line: var(--fx-accent);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 3.1rem; padding: .9em 1.7em;
  font-family: var(--fx-font-body); font-size: .8rem; font-weight: 600; line-height: 1.1;
  letter-spacing: var(--fx-btn-tracking); text-transform: var(--fx-btn-case);
  text-decoration: none; white-space: nowrap;
  color: var(--b-ink); background: var(--b-bg); border: 1px solid var(--b-line); border-radius: var(--fx-btn-radius);
  transition: background var(--fx-dur) var(--fx-ease), color var(--fx-dur) var(--fx-ease), border-color var(--fx-dur) var(--fx-ease), transform .3s var(--fx-ease), box-shadow .3s var(--fx-ease);
  transition-duration: 360ms;
  cursor: pointer; isolation: isolate; overflow: hidden;
}
.fx-btn .fx-btn__icon { width: 1.15em; height: 1.15em; transition: transform .4s var(--fx-ease); }
.fx-btn:hover .fx-btn__icon { transform: translateX(4px); }
.fx-btn--primary:hover { --b-bg: var(--fx-ink); --b-line: var(--fx-ink); --b-ink: var(--fx-bg); }
.fx-btn--ghost { --b-bg: transparent; --b-ink: var(--fx-ink); --b-line: color-mix(in srgb, var(--fx-ink) 32%, transparent); }
.fx-btn--ghost:hover { --b-bg: var(--fx-ink); --b-ink: var(--fx-bg); --b-line: var(--fx-ink); }
.fx-btn--light { --b-bg: #fff; --b-ink: #111; --b-line: #fff; }
.fx-btn--light:hover { --b-bg: transparent; --b-ink: #fff; }
.fx-btn--text { --b-bg: transparent; --b-line: transparent; --b-ink: var(--fx-ink); padding-inline: 0; min-height: auto; }
.fx-btn--text::after { content: ""; position: absolute; left: 0; right: 0; bottom: .35em; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--fx-ease); }
.fx-btn--text:hover::after { transform: scaleX(0); }
.fx-btn--block { width: 100%; }
html[data-fx-buttons="outline"] .fx-btn--primary { --b-bg: transparent; --b-ink: var(--fx-ink); --b-line: var(--fx-ink); }
html[data-fx-buttons="outline"] .fx-btn--primary:hover { --b-bg: var(--fx-ink); --b-ink: var(--fx-bg); }
html[data-fx-buttons="underline"] .fx-btn--primary, html[data-fx-buttons="underline"] .fx-btn--ghost { --b-bg: transparent; --b-line: transparent; --b-ink: var(--fx-ink); padding-inline: 0; min-height: auto; }
html[data-fx-buttons="underline"] .fx-btn--primary::after, html[data-fx-buttons="underline"] .fx-btn--ghost::after { content: ""; position: absolute; left: 0; right: 0; bottom: .3em; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--fx-ease); }
html[data-fx-buttons="underline"] .fx-btn--primary:hover::after { transform: scaleX(0); }
html[data-fx-buttons="underline"] .fx-btn--primary:hover { --b-bg: transparent; --b-ink: var(--fx-accent); }

/* ---------- links ---------- */
.fx-link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--fx-ease); padding-bottom: 2px; }
.fx-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.fx-arrow-link { display: inline-flex; gap: .5em; align-items: center; font-weight: 600; text-decoration: none; font-size: .9rem; }
.fx-arrow-link .fx-icon { width: 1.1em; height: 1.1em; transition: transform .4s var(--fx-ease); }
.fx-arrow-link:hover .fx-icon { transform: translateX(4px); }

/* ---------- media & cards ---------- */
.fx-media { position: relative; overflow: hidden; border-radius: var(--fx-radius-lg); background: var(--fx-surface); }
.fx-media > img, .fx-media > .fx-ph, .fx-media > video, .fx-media > iframe { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-media--zoom > img { transition: transform 1.4s var(--fx-ease); }
.fx-media--zoom:hover > img, a:hover .fx-media--zoom > img { transform: scale(1.045); }
.fx-ratio-square { aspect-ratio: 1; }
.fx-ratio-portrait { aspect-ratio: 4 / 5; }
.fx-ratio-tall { aspect-ratio: 3 / 4; }
.fx-ratio-land { aspect-ratio: 4 / 3; }
.fx-ratio-wide { aspect-ratio: 16 / 9; }
.fx-ratio-cinema { aspect-ratio: 21 / 9; }
.fx-ph {
  display: block; width: 100%; height: 100%; min-height: 120px;
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--fx-accent) 30%, transparent), transparent 60%),
    radial-gradient(90% 80% at 90% 100%, color-mix(in srgb, var(--fx-accent-2) 26%, transparent), transparent 60%),
    linear-gradient(160deg, var(--fx-surface-2), var(--fx-surface));
}
.fx-card { position: relative; background: var(--fx-surface); border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); padding: clamp(24px, 3vw, 40px); transition: transform .5s var(--fx-ease), box-shadow .5s var(--fx-ease), border-color .5s var(--fx-ease); }
.fx-card--plain { background: transparent; border: 0; padding: 0; }
.fx-card--hover:hover { transform: translateY(-6px); box-shadow: var(--fx-shadow); border-color: color-mix(in srgb, var(--fx-ink) 18%, transparent); }
.fx-icon { width: 1.25em; height: 1.25em; flex: none; }
.fx-icon-badge { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: var(--fx-radius-lg); background: var(--fx-accent-soft); color: var(--fx-accent); }
.fx-icon-badge .fx-icon { width: 1.5rem; height: 1.5rem; }
.fx-badge { display: inline-flex; align-items: center; gap: .4em; padding: .35em .8em; border-radius: 999px; background: var(--fx-accent-soft); color: var(--fx-accent); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.fx-num { font-family: var(--fx-font-display); font-variant-numeric: tabular-nums lining-nums; }

/* ---------- forms ---------- */
.fx-field { display: grid; gap: .45rem; }
.fx-label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--fx-ink); }
.fx-label .fx-req { color: var(--fx-accent); }
.fx-input, .fx-site .fx-input {
  width: 100%; min-height: 3.15rem; padding: .85em 1.05em;
  background: color-mix(in srgb, var(--fx-surface) 60%, var(--fx-bg)); color: var(--fx-ink);
  border: 1px solid var(--fx-line); border-radius: var(--fx-radius);
  font-size: 1rem; line-height: 1.4; transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
textarea.fx-input { min-height: 8.5rem; resize: vertical; }
select.fx-input { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.6em; }
.fx-input:hover { border-color: color-mix(in srgb, var(--fx-ink) 30%, transparent); }
.fx-input:focus { outline: 0; border-color: var(--fx-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fx-accent) 18%, transparent); background: var(--fx-bg); }
.fx-input[aria-invalid="true"] { border-color: var(--fx-danger); }
.fx-input::placeholder { color: color-mix(in srgb, var(--fx-muted) 70%, transparent); }
.fx-check { display: flex; gap: .7em; align-items: flex-start; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.fx-check input { width: 1.15rem; height: 1.15rem; margin-top: .15em; accent-color: var(--fx-accent); flex: none; }
.fx-error { color: var(--fx-danger); font-size: .82rem; }
.fx-notice { padding: 1rem 1.2rem; border-radius: var(--fx-radius); border: 1px solid var(--fx-line); background: var(--fx-surface); }
.fx-notice--ok { border-color: color-mix(in srgb, var(--fx-ok) 40%, transparent); background: color-mix(in srgb, var(--fx-ok) 9%, var(--fx-bg)); }
.fx-notice--err { border-color: color-mix(in srgb, var(--fx-danger) 40%, transparent); background: color-mix(in srgb, var(--fx-danger) 8%, var(--fx-bg)); }

/* ---------- reveal motion ---------- */
html.fx-js:not([data-fx-motion="none"]) [data-fx-reveal] { opacity: 0; transition: opacity var(--fx-dur) var(--fx-ease), transform var(--fx-dur) var(--fx-ease), clip-path var(--fx-dur) var(--fx-ease), filter var(--fx-dur) var(--fx-ease); transition-delay: var(--fx-delay, 0ms); will-change: opacity, transform; }
html.fx-js:not([data-fx-motion="none"]) [data-fx-reveal="up"] { transform: translate3d(0, var(--fx-reveal-distance), 0); }
html.fx-js:not([data-fx-motion="none"]) [data-fx-reveal="fade"] { transform: none; }
html.fx-js:not([data-fx-motion="none"]) [data-fx-reveal="zoom"] { transform: scale(1.06); }
html.fx-js:not([data-fx-motion="none"]) [data-fx-reveal="left"] { transform: translate3d(calc(var(--fx-reveal-distance) * -1.4), 0, 0); }
html.fx-js:not([data-fx-motion="none"]) [data-fx-reveal="right"] { transform: translate3d(calc(var(--fx-reveal-distance) * 1.4), 0, 0); }
html.fx-js:not([data-fx-motion="none"]) [data-fx-reveal="mask"] { clip-path: inset(0 0 100% 0); opacity: 1; }
html.fx-js:not([data-fx-motion="none"]) [data-fx-reveal="blur"] { filter: blur(12px); }
html.fx-js [data-fx-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); filter: none; }
html[data-fx-motion="expressive"] [data-fx-reveal="mask"] { transition-duration: 1400ms; }
@media (prefers-reduced-motion: reduce) {
  html.fx-js [data-fx-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; transition: none !important; }
  .fx-site *, .fx-site *::before, .fx-site *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- marquee ---------- */
.fx-marquee { display: flex; overflow: hidden; user-select: none; gap: var(--fx-marquee-gap, 3rem); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fx-marquee__track { display: flex; flex: none; gap: var(--fx-marquee-gap, 3rem); min-width: 100%; justify-content: space-around; animation: fx-marquee var(--fx-marquee-speed, 40s) linear infinite; }
.fx-marquee:hover .fx-marquee__track { animation-play-state: paused; }
@keyframes fx-marquee { to { transform: translateX(calc(-100% - var(--fx-marquee-gap, 3rem))); } }
html[data-fx-motion="none"] .fx-marquee__track { animation: none; }

/* ---------- carousel (scroll-snap) ---------- */
.fx-carousel { position: relative; }
.fx-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: var(--fx-slide, 80%); gap: var(--fx-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: var(--fx-gutter); padding-bottom: 4px; }
.fx-carousel__track::-webkit-scrollbar { display: none; }
.fx-carousel__track > * { scroll-snap-align: start; min-width: 0; }
.fx-carousel__nav { display: flex; gap: 10px; }
.fx-round-btn { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--fx-line); background: transparent; color: var(--fx-ink); transition: background .3s, color .3s, border-color .3s; }
.fx-round-btn:hover:not(:disabled) { background: var(--fx-ink); color: var(--fx-bg); border-color: var(--fx-ink); }
.fx-round-btn:disabled { opacity: .35; cursor: default; }
.fx-round-btn .fx-icon { width: 1.15rem; height: 1.15rem; }
.fx-dots { display: flex; gap: 8px; justify-content: center; margin-top: 1.5rem; }
.fx-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--fx-line); transition: width .4s var(--fx-ease), background .3s; }
.fx-dots button[aria-current="true"] { width: 28px; background: var(--fx-ink); }

/* ---------- lightbox ---------- */
.fx-lightbox { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: color-mix(in srgb, #000 92%, transparent); opacity: 0; transition: opacity .35s var(--fx-ease); padding: 4vh 4vw; }
.fx-lightbox.is-open { opacity: 1; }
.fx-lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.97); transition: transform .45s var(--fx-ease); }
.fx-lightbox.is-open img { transform: none; }
.fx-lightbox__btn { position: absolute; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; }
.fx-lightbox__btn:hover { background: #fff; color: #000; }
.fx-lightbox__close { top: 20px; right: 20px; }
.fx-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.fx-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.fx-lightbox__cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }

/* ---------- accordion (details) ---------- */
.fx-acc { border-top: 1px solid var(--fx-line); }
.fx-acc:last-child { border-bottom: 1px solid var(--fx-line); }
.fx-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 1.5rem 0; cursor: pointer; font-family: var(--fx-font-display); font-size: var(--fx-s1); line-height: 1.3; }
.fx-acc summary::-webkit-details-marker { display: none; }
.fx-acc__icon { position: relative; width: 1.1rem; height: 1.1rem; flex: none; }
.fx-acc__icon::before, .fx-acc__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .4s var(--fx-ease); }
.fx-acc__icon::after { transform: rotate(90deg); }
.fx-acc[open] .fx-acc__icon::after { transform: rotate(0); }
.fx-acc__body { padding: 0 0 1.6rem; color: var(--fx-muted); max-width: 70ch; }
.fx-acc__body > * + * { margin-top: .8em; }

/* ---------- misc ---------- */
.fx-skip { position: absolute; left: 12px; top: -100px; z-index: 10000; background: var(--fx-ink); color: var(--fx-bg); padding: .8em 1.2em; border-radius: var(--fx-radius); text-decoration: none; }
.fx-skip:focus { top: 12px; }
.fx-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fx-render-error { margin: 16px auto; max-width: 900px; padding: 14px 18px; border: 1px dashed #c2410c; color: #c2410c; background: #fff7ed; font: 14px/1.4 ui-monospace, monospace; }
.fx-fallback { padding-block: calc(var(--fx-header-h) + 60px) 80px; }
.fx-empty { padding: 3rem; text-align: center; color: var(--fx-muted); border: 1px dashed var(--fx-line); border-radius: var(--fx-radius-lg); }
html[data-fx-texture="grain"] body.fx-site::after {
  content: ""; position: fixed; inset: -50%; z-index: 9998; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-fx-theme="dark"] body.fx-site::after { opacity: .08; }

/* WordPress core blocks inside prose (blog posts) */
.fx-prose .wp-block-image img { height: auto; }
.fx-prose .alignwide { margin-inline: -6vw; }
.fx-prose .wp-block-button__link { background: var(--fx-accent); color: var(--fx-accent-ink); border-radius: var(--fx-btn-radius); padding: .8em 1.4em; text-decoration: none; }
