/* Feasibility audit — sample documents gallery + lightbox */
.fx-tabs { margin-bottom: 20px; }
.fx-tabs .rb-filter { background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.fx-tabs .rb-filter.is-active { background: var(--violet); }
.fx-sample { margin: 0 0 28px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.fx-sample b { color: var(--black); }
.fx-doc + .fx-doc { margin-top: 40px; }
.fx-doc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.fx-doc-head h3 { margin: 0; font-family: var(--font-head); font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; }
.fx-doc-head span { font-size: 13px; color: var(--ink-soft); }
.fx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.fx-thumb { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; font: inherit; color: inherit; }
.fx-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--blush);
  box-shadow: 0 0 0 1px rgba(4, 4, 4, 0.10), 0 6px 18px rgba(4, 4, 4, 0.06); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.fx-thumb span { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; }
.fx-thumb:hover img { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--violet), 0 12px 28px rgba(4, 4, 4, 0.12); }
.fx-thumb:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 10px; }
@media (max-width: 1100px) { .fx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.fx-lightbox { position: fixed; inset: 0; z-index: 1000; touch-action: pan-y pinch-zoom; display: flex; flex-direction: column; background: rgba(4, 4, 4, 0.97); color: var(--white); padding: 16px; }
.fx-lightbox[hidden] { display: none; }
.fx-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1600px; width: 100%; margin: 0 auto; }
.fx-lb-caption { margin: 0; font-size: 14px; line-height: 1.4; }
.fx-lb-caption b { color: var(--lime); }
.fx-lb-close, .fx-lb-nav { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s; }
.fx-lb-close:hover, .fx-lb-nav:hover { background: var(--violet); }
.fx-lb-close:focus-visible, .fx-lb-nav:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.fx-lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; max-width: 1600px; width: 100%; margin: 12px auto; }
.fx-lb-stage img { transition: opacity .2s var(--ease-out); max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; background: var(--white); }
.fx-lb-foot { display: flex; align-items: center; justify-content: center; gap: 20px; }
.fx-lb-count { margin: 0; min-width: 64px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.8); }
body.fx-open { overflow: hidden; }
html:has(body.fx-open) { scrollbar-gutter: stable; }
