/* ═══════════════════════════════════════════════════════════
   AEROVANIA — Interactive layer
   Replaces paragraph-heavy blocks with tiles, explorers, charts,
   checklists and a swipe gallery. Detail stays in the DOM (readable by
   screen readers and search engines) and is revealed on hover / tap.
   Loads AFTER field.css; behaviours live in js/interact.js.
   ═══════════════════════════════════════════════════════════ */

/* ── Reveal tiles: value + short label, detail on hover / tap ── */
.fx-tiles { display: grid; gap: 18px; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }

.fx-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 228px;
  padding: 24px 24px 22px;
  border: 1px solid var(--fx-line);
  background: var(--fx-panel);
  box-shadow: var(--fx-shadow);
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: border-color .35s, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.fx-tile:hover { border-color: var(--fx-line2); transform: translateY(-3px); }

.fx-tile-ico { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--fx-line2); color: var(--fx-cyan); flex: none; }
.fx-tile-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fx-tile-ico .o { stroke: var(--fx-orange); }

.fx-tile-k { padding-right: 34px; font: 500 10.5px/1.3 var(--fx-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fx-mut); }
.fx-tile-k b { color: var(--fx-cyan); font-weight: 500; }

.fx-tile-v {
  display: block;
  margin-top: auto;
  font: 600 clamp(32px, 3.2vw, 46px)/1 var(--fx-sans);
  letter-spacing: -.045em;
  color: var(--fx-ink);
}
.fx-tile-v.grad { color: var(--fx-cyan); }
.fx-tile-v small { font-size: .42em; letter-spacing: -.01em; margin-left: 4px; color: var(--fx-mut); -webkit-text-fill-color: var(--fx-mut); }

/* outranks the legacy `body.rd main .fx h3 { margin: 0 }` reset */
body .fx .fx-tile-ico + .fx-tile-t,
body.rd main .fx .fx-tile-ico + .fx-tile-t { margin-top: auto; }
body .fx .fx-tile-t { font-size: 16.5px !important; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.fx-tile .fx-tags { margin-top: 2px; }

/* the hidden detail: a dark instrument panel that slides up over the tile */
.fx-tile-more {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 22px;
  background: #08131f;
  color: #c3d4e0;
  border-top: 2px solid #6df7ff;
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  overflow: auto;
}
/* margin-top:auto (not justify-content:flex-end) keeps overflowing text scrollable from the top */
.fx-tile-more > :first-child { margin-top: auto; }
.fx-tile-more .fx-tile-echo { padding-right: 34px; font: 500 10.5px/1.3 var(--fx-mono); letter-spacing: .14em; text-transform: uppercase; color: #6df7ff; }
body .fx .fx-tile-more p { font-size: 14.5px; line-height: 1.55; color: #c3d4e0 !important; }
.fx-tile-more .fx-tag { border-color: #2a4a66; color: #a7bccb; }
.fx-tile-more .fx-tag.ok { color: #5dffb0; border-color: rgba(93, 255, 176, .4); }

@media (hover: hover) { .fx-tile:hover .fx-tile-more { transform: none; } }
.fx-tile.is-open .fx-tile-more,
.fx-tile:has(.fx-tile-btn:focus-visible) .fx-tile-more { transform: none; }

/* the + / × toggle (also the keyboard handle) */
.fx-tile-btn {
  all: unset;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fx-line2);
  border-radius: 50%;
  background: var(--fx-solid);
  color: var(--fx-cyan);
  cursor: pointer;
  transition: transform .35s, background .35s, border-color .35s, color .35s;
}
.fx-tile-btn::before,
.fx-tile-btn::after { content: ""; position: absolute; width: 11px; height: 1.5px; background: currentColor; }
.fx-tile-btn::after { transform: rotate(90deg); }
.fx-tile-btn:focus-visible { outline: 2px solid var(--fx-cyan); outline-offset: 3px; }
@media (hover: hover) { .fx-tile:hover .fx-tile-btn { transform: rotate(45deg); background: #08131f; border-color: #2a4a66; color: #6df7ff; } }
.fx-tile.is-open .fx-tile-btn,
.fx-tile:has(.fx-tile-btn:focus-visible) .fx-tile-btn { transform: rotate(45deg); background: #08131f; border-color: #2a4a66; color: #6df7ff; }

/* compact tiles (module grid, document register) */
.fx-tiles.compact .fx-tile { min-height: 176px; padding: 20px; }
.fx-tiles.compact .fx-tile-more { padding: 20px; }
body .fx .fx-tiles.compact .fx-tile-more p { font-size: 13.5px; }

/* photo tiles (enterprise sectors) */
.fx-tile.photo { min-height: clamp(260px, 26vw, 340px); border: 0; color: #f7fbff; background: #08131f; }
.fx-tile.photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.fx-tile.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 17, 31, .05) 25%, rgba(7, 17, 31, .88) 100%); }
.fx-tile.photo:hover > img { transform: scale(1.05); }
.fx-tile.photo .fx-tile-k { align-self: flex-start; padding: 6px 9px; color: rgba(247, 251, 255, .85); background: rgba(7, 17, 31, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fx-tile.photo .fx-tile-k b { color: #6df7ff; }
body .fx .fx-tile.photo .fx-tile-t { margin-top: auto; font-size: clamp(20px, 1.9vw, 26px) !important; color: #f7fbff !important; line-height: 1.1; }
.fx-tile.photo .fx-chip { align-self: flex-start; padding: 6px 9px; font: 500 10.5px/1 var(--fx-mono); letter-spacing: .1em; text-transform: uppercase; color: #f7fbff; background: rgba(7, 17, 31, .55); border: 1px solid rgba(247, 251, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fx-tile.photo .fx-tile-btn { background: rgba(7, 17, 31, .55); border-color: rgba(247, 251, 255, .35); color: #f7fbff; }
.fx-tile.photo .fx-tile-more { background: rgba(8, 19, 31, .94); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

@media (max-width: 1020px) { .fx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .fx-tiles { gap: 12px; }
  .fx-tile { min-height: 196px; padding: 18px 16px 16px; }
  .fx-tile-more { padding: 18px 16px 16px; gap: 8px; }
  body .fx .fx-tile-more p, body .fx .fx-tiles.compact .fx-tile-more p { font-size: 13.5px; line-height: 1.5; }
  .fx-tile-more .fx-tag { padding: 5px 7px; font-size: 9.5px; }
  .fx-tile-btn { top: 10px; right: 10px; }
  .fx-tiles.one-sm { grid-template-columns: 1fr; }
  .fx-tiles.one-sm .fx-tile { min-height: 168px; }
}
@media (max-width: 380px) { .fx-tiles { grid-template-columns: 1fr; } }

/* ── Progressive disclosure (native <details>) ────────────── */
.fx-more { margin-top: 28px; border-top: 1px solid var(--fx-line); border-bottom: 1px solid var(--fx-line); }
.fx-more > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  font: 500 11.5px/1.3 var(--fx-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fx-cyan);
}
.fx-more > summary::-webkit-details-marker { display: none; }
.fx-more > summary::after { content: "+"; font: 300 22px/1 var(--fx-mono); transition: transform .3s; }
.fx-more[open] > summary::after { transform: rotate(45deg); }
.fx-more > :not(summary) { margin-bottom: 22px; }
.fx-more.sm { margin-top: 0; border-bottom: 0; }
.fx-more.sm > summary { padding: 12px 0 0; font-size: 10.5px; }
.fx-more.sm > :not(summary) { margin: 12px 0 0; font-size: 14px; }

/* ── Count-up stats ───────────────────────────────────────── */
[data-count] { font-variant-numeric: tabular-nums; }

/* ── Track explorer (courses) ─────────────────────────────── */
.fx-tablist.fx-tracktabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0;
  border: 1px solid var(--fx-line);
  border-bottom: 0;
  background: var(--fx-panel);
}
.fx-tracktabs button {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px !important;
  border-left: 1px solid var(--fx-line);
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.fx-tracktabs button:first-child { border-left: 0; }
.fx-tracktabs button b { font: 600 clamp(17px, 1.6vw, 21px)/1 var(--fx-sans); letter-spacing: -.02em; color: var(--fx-ink); }
.fx-tracktabs button small { font: 500 10px/1.3 var(--fx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fx-mut); }
.fx-tracktabs .fx-load { display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 500 10px/1 var(--fx-mono); color: var(--fx-mut); }
.fx-tracktabs .fx-load i { flex: 1; height: 3px; background: var(--fx-line); position: relative; }
.fx-tracktabs .fx-load i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%); background: var(--fx-grad); }
.fx-tracktabs button[aria-selected="true"] { background: var(--fx-glow); }
.fx-tracktabs button[aria-selected="true"] small { color: var(--fx-cyan); }
.fx-tracktabs .fx-flag { position: static; align-self: flex-start; margin: -4px 0 0; }

.fx-track {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  border: 1px solid var(--fx-line);
  background: var(--fx-panel);
  box-shadow: var(--fx-shadow);
}
.fx-track-media { min-height: 420px; }
.fx-track-media figcaption {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 500 10.5px/1 var(--fx-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f7fbff;
}
.fx-track-media figcaption span { padding: 7px 10px; background: rgba(7, 17, 31, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fx-track-body { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 44px); }
.fx-track-body .fx-idx { display: flex; justify-content: space-between; gap: 12px; font: 500 11px/1.3 var(--fx-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fx-mut); }
.fx-track-body .fx-idx b { font-weight: 500; color: var(--fx-cyan); }
body .fx .fx-track-body h3 { font-size: clamp(26px, 2.6vw, 36px) !important; line-height: 1.05; letter-spacing: -.035em; }
.fx-track-body > p { font-size: 16px; max-width: 46ch; }
.fx-track-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--fx-line); }
.fx-track-foot dl { display: flex; gap: 28px; margin: 0; }
.fx-track-foot dt { font: 500 9.5px/1.3 var(--fx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fx-mut); }
.fx-track-foot dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; color: var(--fx-ink); letter-spacing: -.02em; }
.fx-track-foot .fx-actions { margin-left: auto; }

/* hour bars */
.fx-hbars { display: grid; gap: 10px; }
.fx-hbars > div { display: grid; grid-template-columns: 86px minmax(0, 1fr) 52px; gap: 14px; align-items: center; }
.fx-hbars span { font: 500 10.5px/1 var(--fx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fx-mut); }
.fx-hbars i { position: relative; height: 10px; background: var(--fx-bg2); border: 1px solid var(--fx-line); }
.fx-hbars i b { position: absolute; inset: -1px auto -1px -1px; width: calc(var(--v) / var(--max, 50) * 100%); background: var(--fx-cyan); transform-origin: left; }
.fx-hbars .o i b { background: var(--fx-violet); }
.fx-hbars .r i b { background: var(--fx-orange); }
.fx-hbars strong { font: 600 15px/1 var(--fx-sans); color: var(--fx-ink); text-align: right; }

[role="tabpanel"]:not([hidden]) .fx-hbars i b,
.fx-tile .fx-mini b { animation: fx-grow .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fx-grow { from { transform: scaleX(0); } }

/* module chips */
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--fx-line); background: var(--fx-solid); font-size: 13.5px; color: var(--fx-ink); }
.fx-chips li b { font: 500 10px/1 var(--fx-mono); letter-spacing: .1em; color: var(--fx-cyan); }

@media (max-width: 1020px) {
  .fx-tablist.fx-tracktabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fx-tablist.fx-tracktabs::-webkit-scrollbar { display: none; }
  .fx-tracktabs button { scroll-snap-align: start; }
}
@media (max-width: 820px) {
  .fx-track { grid-template-columns: 1fr; }
  .fx-track-media { min-height: 0; aspect-ratio: 16 / 9; }
  .fx-track-foot .fx-actions { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) { .fx-hbars > div { grid-template-columns: 70px minmax(0, 1fr) 44px; gap: 10px; } }

/* mini stacked bar inside module tiles */
.fx-mini { display: flex; height: 6px; background: var(--fx-bg2); border: 1px solid var(--fx-line); }
.fx-mini b { display: block; height: 100%; width: calc(var(--v) / 8 * 100%); background: var(--fx-cyan); transform-origin: left; }
.fx-mini b + b { background: var(--fx-orange); }
.fx-mini-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 10.5px/1.3 var(--fx-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-mut); }
.fx-mini-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; background: var(--fx-cyan); }
.fx-mini-legend i.o { background: var(--fx-orange); }

/* ── Segmented control (charts) ──────────────── */
.fx-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--fx-line2); }
.fx-seg button {
  all: unset;
  cursor: pointer;
  padding: 10px 16px;
  font: 500 11px/1.2 var(--fx-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fx-mut);
  transition: background .25s, color .25s;
}
.fx-seg button + button { border-left: 1px solid var(--fx-line2); }
.fx-seg button:hover { color: var(--fx-ink); }
.fx-seg button[aria-pressed="true"] { background: var(--fx-cyan); color: #07111f; }
.fx-seg button:focus-visible { outline: 2px solid var(--fx-cyan); outline-offset: 2px; }

/* ── Comparison chart (compliance) ────────────────────────── */
.fx-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.fx-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 500 10.5px/1.3 var(--fx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--b-mut, var(--fx-mut)); }
.fx-chart-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -2px; background: #2c4a63; }
.fx-chart-legend i.av { background: linear-gradient(90deg, #6df7ff, #9976ff); }
.fx-chart-rows { display: grid; gap: 18px; }
.fx-chart-rows li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; gap: 18px; align-items: center; }
.fx-chart-rows .lab b { display: block; font: 600 16px/1.1 var(--fx-sans); color: var(--b-ink, var(--fx-ink)); letter-spacing: -.02em; }
.fx-chart-rows .lab small { display: block; margin-top: 4px; font: 500 10px/1.3 var(--fx-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--b-mut, var(--fx-mut)); }
.fx-chart-rows .bars { display: grid; gap: 5px; }
.fx-chart-rows .bars i { position: relative; display: block; height: 14px; width: calc(var(--v) / var(--max, 50) * 100%); min-width: 2px; background: #2c4a63; transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.fx-chart-rows .bars i.av { background: linear-gradient(90deg, #6df7ff, #9976ff); }
.fx-chart-rows .bars em { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font: 500 10.5px/1 var(--fx-mono); font-style: normal; white-space: nowrap; color: var(--b-tx, var(--fx-tx)); }
.fx-chart-rows .bars i.av em { color: #6df7ff; }
.fx-chart-rows .delta { font: 600 15px/1 var(--fx-sans); color: #5dffb0; text-align: right; }
.fx-chart-rows li.is-na .bars i { width: 0; min-width: 0; }
.fx-chart-rows li.is-na .bars i em { left: 0; }
.fx-chart-rows li.is-na .delta { color: var(--b-mut, var(--fx-mut)); }
@media (max-width: 620px) {
  .fx-chart-rows li { grid-template-columns: 1fr 52px; gap: 8px 12px; }
  .fx-chart-rows .lab { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
  .fx-chart-rows .lab small { margin: 0; }
  .fx-chart-rows .bars { padding-right: 44px; }
}

/* ── Vertical tab explorer (compliance instruments) ───────── */
.fx-vtabs { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.fx-vtabs .fx-tablist.vertical button { font-size: clamp(16px, 1.4vw, 19px); padding: 16px 20px; }
.fx-vpanel { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--fx-line); background: var(--fx-panel); box-shadow: var(--fx-shadow); display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.fx-vpanel .fx-idx { display: flex; justify-content: space-between; gap: 12px; font: 500 11px/1.3 var(--fx-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fx-mut); }
.fx-vpanel .fx-idx b { color: var(--fx-cyan); font-weight: 500; }
body .fx .fx-vpanel h3 { font-size: clamp(22px, 2.2vw, 30px) !important; line-height: 1.12; }
.fx-vpanel > p { font-size: 16.5px; max-width: 52ch; }
.fx-vpanel .fx-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--fx-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 10.5px/1.3 var(--fx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fx-mut); }
.fx-vpanel:not([hidden]) { animation: fx-fade .45s ease both; }
@keyframes fx-fade { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 820px) { .fx-vtabs { grid-template-columns: 1fr; } }

/* ── Interactive checklist (enrolment documents) ──────────── */
.fx-progress { height: 6px; background: var(--fx-bg2); border: 1px solid var(--fx-line); }
.fx-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--fx-grad); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.fx-checks { border-top: 1px solid var(--fx-line); }
.fx-checks li { border-bottom: 1px solid var(--fx-line); }
.fx-checks label { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center; padding: 13px 0; cursor: pointer; font-size: 15px; color: var(--fx-ink); }
.fx-checks input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border: 1px solid var(--fx-line2); background: var(--fx-solid); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.fx-checks input::after { content: ""; width: 10px; height: 5px; border: 2px solid #07111f; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s; }
.fx-checks input:checked { background: var(--fx-cyan); border-color: var(--fx-cyan); }
.fx-checks input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.fx-checks input:checked + span { color: var(--fx-mut); text-decoration: line-through; text-decoration-color: var(--fx-line2); }
.fx-checks small { display: block; margin-top: 2px; font: 500 10px/1.3 var(--fx-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-mut); text-decoration: none; }
.fx-checklist .fx-idx output { color: var(--fx-cyan); font-weight: 600; }
.fx-checklist.is-done .fx-progress i { background: var(--fx-good); }

/* ── Swipe gallery (home) ─────────────────────────────────── */
.fx-gallery { position: relative; }
.fx-gallery-track {
  --gutter: max(clamp(16px, 4vw, 48px), calc((100vw - var(--fx-max)) / 2 + clamp(16px, 4vw, 48px)));
  display: flex;
  align-items: flex-end;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 8px;
  scrollbar-width: none;
  cursor: grab;
}
.fx-gallery-track::-webkit-scrollbar { display: none; }
.fx-gallery-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.fx-gallery-track.is-drag * { pointer-events: none; }
.fx-gal-item { flex: none; height: clamp(280px, 34vw, 460px); aspect-ratio: 4 / 3; scroll-snap-align: start; border-radius: 4px; }
.fx-gal-item.tall { aspect-ratio: 3 / 4; }
.fx-gal-item img { -webkit-user-drag: none; user-select: none; }
.fx-gal-item:hover img { transform: scale(1.04); }
.fx-gal-item figcaption {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(7, 17, 31, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 500;
  color: #f7fbff;
}
.fx-gal-item figcaption b { font: 500 10px/1 var(--fx-mono); letter-spacing: .14em; color: #6df7ff; }
.fx-gallery-ctl { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.fx-gallery-ctl .hint { display: inline-flex; align-items: center; gap: 12px; font: 500 11px/1 var(--fx-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fx-mut); }
.fx-gallery-ctl .hint i { display: block; width: 48px; height: 1px; background: linear-gradient(90deg, var(--fx-cyan), transparent); }
.fx-gallery-ctl .btns { display: flex; gap: 8px; }
.fx-gallery-ctl button { all: unset; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--fx-line2); color: var(--fx-ink); transition: background .25s, color .25s, border-color .25s; }
.fx-gallery-ctl button:hover { background: var(--fx-ink); color: var(--fx-bg); border-color: var(--fx-ink); }
.fx-gallery-ctl button:focus-visible { outline: 2px solid var(--fx-cyan); outline-offset: 2px; }
.fx-gallery-ctl button[disabled] { opacity: .35; cursor: default; pointer-events: none; }
.fx-gallery-ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fx-gallery-progress { flex: 1; max-width: 280px; height: 2px; background: var(--fx-line); position: relative; }
.fx-gallery-progress i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, .2) * 100%); background: var(--fx-cyan); transition: width .2s linear; }
@media (max-width: 620px) {
  .fx-gal-item { height: 300px; aspect-ratio: auto; width: 78vw; }
  .fx-gal-item.tall { width: 62vw; }
  .fx-gallery-progress { display: none; }
}

/* ── Compact process steps: time badge instead of a paragraph ── */
.fx-step .fx-dur { margin-top: 2px; }
.fx-step.short p { font-size: 13.5px; color: var(--fx-mut); }

@media (prefers-reduced-motion: reduce) {
  .fx-tile, .fx-tile-more, .fx-tile-btn, .fx-chart-rows .bars i, .fx-progress i { transition: none; }
  [role="tabpanel"]:not([hidden]) .fx-hbars i b, .fx-tile .fx-mini b, .fx-vpanel:not([hidden]) { animation: none; }
}
