/* Forbidden Stars — Card Codex
   Ported from the "Forbidden Stars Codex" Claude Design component.
   Pure static CSS, no build step. Desktop-first 100vh app shell. */

/* Custom game fonts — used by the canvas card-text compositor (cardrender.js)
   to draw rules text / titles / glyph icons onto template card art. */
@font-face {
  font-family: 'Headline';
  src: url('../fonts/Headline.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'ForbiddenStars';
  src: url('../fonts/ForbiddenStars.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'EventFont';
  src: url('../fonts/EventFont.woff2') format('woff2');
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #121110;
}

body {
  color: #ece8e1;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

::selection { background: rgba(216, 166, 87, 0.28); }

/* ---- scrollbars ---- */
.fs-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.fs-scroll::-webkit-scrollbar-thumb {
  background: #2c2925;
  border-radius: 8px;
  border: 2px solid #121110;
}
.fs-scroll::-webkit-scrollbar-thumb:hover { background: #3a3631; }
.fs-scroll::-webkit-scrollbar-track { background: transparent; }

/* ---- animations ---- */
@keyframes fsfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fspop  { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: scale(1); } }

/* ---- accent themes (set via [data-accent] on .fs-app) ---- */
.fs-app {
  --fs-accent: oklch(0.80 0.12 80);
  --fs-accent-fg: #1c1810;
}
.fs-app[data-accent="amber"]   { --fs-accent: oklch(0.80 0.12 80);  --fs-accent-fg: #1c1810; }
.fs-app[data-accent="steel"]   { --fs-accent: oklch(0.72 0.10 232); --fs-accent-fg: #0b1019; }
.fs-app[data-accent="crimson"] { --fs-accent: oklch(0.62 0.185 25); --fs-accent-fg: #1c0d0c; }

/* ---- app shell ---- */
.fs-app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #121110;
  color: #ece8e1;
  overflow: hidden;
}

/* ---- header ---- */
.fs-header {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 22px;
  height: 60px;
  border-bottom: 1px solid #2c2925;
  background: #16140f;
  flex-shrink: 0;
  z-index: 10;
}
.fs-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.fs-brand-link { cursor: pointer; }
.fs-logo { position: relative; width: 24px; height: 24px; flex-shrink: 0; }
.fs-logo-ring {
  position: absolute; inset: 2px; transform: rotate(45deg);
  border: 1.5px solid var(--fs-accent); border-radius: 3px;
}
.fs-logo-core {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  margin: -3px 0 0 -3px; background: var(--fs-accent); transform: rotate(45deg);
}
.fs-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.fs-brand-title { font-size: 14.5px; font-weight: 700; letter-spacing: 0.16em; }
.fs-brand-sub {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.34em;
  color: #857f74; text-transform: uppercase; margin-top: 2px;
}

.fs-exptabs {
  display: flex; align-items: center; gap: 3px;
  overflow-x: auto; margin-left: 4px;
}

/* ---- generic tab (expansion bar) ---- */
.fs-tab {
  appearance: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
  padding: 7px 13px; border-radius: 8px; white-space: nowrap;
  display: inline-flex; align-items: center;
  background: transparent; color: #8a847a;
  transition: background .15s, color .15s;
}
.fs-tab:hover { color: #c4bdb1; }
.fs-tab.is-active {
  font-weight: 600; background: var(--fs-accent); color: var(--fs-accent-fg);
}
.fs-tab-soon {
  margin-left: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 8px;
  letter-spacing: 0.12em; opacity: 0.55;
}

/* ---- body row ---- */
.fs-body { flex: 1; display: flex; min-height: 0; }

/* ---- sidebar ---- */
.fs-sidebar {
  width: 236px; flex-shrink: 0; border-right: 1px solid #2c2925;
  background: #16140f; display: flex; flex-direction: column; padding: 18px 14px;
  min-height: 0; overflow-y: auto;
}
.fs-sidebar-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.26em;
  color: #857f74; text-transform: uppercase; padding: 0 8px 12px;
}
.fs-nav { display: flex; flex-direction: column; gap: 3px; }
.fs-nav-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
/* sub-container is indented so the faction pills sit clearly nested under the
   expansion and don't run the full width — all pills share one (shorter) width */
.fs-nav-subs { display: flex; flex-direction: column; gap: 2px; margin-left: 16px; }
.fs-nav-subs.collapsed { display: none; }
.fs-nav-subs .fs-fac-sub { padding-left: 12px; }
.fs-fac-subdot { width: 8px; height: 8px; }
/* expansion header chevron (collapse toggle) */
.fs-exp-head { gap: 8px; }
.fs-exp-chevron {
  flex-shrink: 0; width: 14px; text-align: center; color: #6f6a61; font-size: 15px; line-height: 1;
  transition: transform .15s ease; transform: rotate(0deg); cursor: pointer;
}
.fs-exp-chevron.open { transform: rotate(90deg); }

.fs-fac {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  appearance: none; border: 1px solid transparent; background: transparent;
  cursor: pointer; font-family: inherit; color: #b3ada3; font-size: 13.5px;
  font-weight: 500; padding: 9px 11px; border-radius: 10px; transition: all .15s;
}
.fs-fac:hover { background: #1d1b18; }
.fs-fac.is-active {
  border: 1px solid #34302a; background: #221f1a; color: #f3efe8; font-weight: 600;
  box-shadow: inset 2px 0 0 var(--fs-accent);
}
.fs-fac-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.035);
}
.fs-fac-name { flex: 1; }
.fs-fac-count { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #6f6a61; }

.fs-sidebar-foot {
  margin-top: auto; padding: 14px 8px 2px; border-top: 1px solid #221f1a;
}
.fs-sidebar-foot p {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px; line-height: 1.7;
  color: #5c574f; margin: 0; letter-spacing: 0.05em;
}
.fs-faq-link {
  display: inline-block; margin-bottom: 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #857f74; text-decoration: none;
  transition: color .15s;
}
.fs-faq-link:hover { color: var(--fs-accent); }

/* ---- main ---- */
.fs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.fs-cattabs-wrap {
  padding: 0 26px; border-bottom: 1px solid #2c2925; background: #141310; flex-shrink: 0;
}
.fs-cattabs { display: flex; gap: 2px; overflow-x: auto; }
.fs-cat {
  appearance: none; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500; color: #8a847a;
  padding: 13px 15px; border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.fs-cat:hover { color: #c4bdb1; }
.fs-cat.is-active {
  font-weight: 600; color: #f3efe8; border-bottom: 2px solid var(--fs-accent);
}

.fs-breadcrumb {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 26px 5px; flex-shrink: 0;
}
.fs-bc-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.fs-bc-exp {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fs-accent); white-space: nowrap;
}
.fs-bc-sep { color: #3a352f; }
.fs-bc-title {
  font-size: 16px; font-weight: 600; margin: 0; color: #f3efe8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fs-bc-total {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #857f74;
  letter-spacing: 0.08em; white-space: nowrap;
}

.fs-scrollarea { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 26px 44px; }

.fs-group-head { display: flex; align-items: center; gap: 13px; margin: 8px 0 16px; }
.fs-group-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: #bdb7ac; white-space: nowrap;
}
.fs-group-rule { height: 1px; flex: 1; background: linear-gradient(90deg, #2c2925, transparent); }
.fs-group-sub {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #6f6a61; white-space: nowrap;
}

.fs-grid { display: grid; gap: 18px; margin-bottom: 30px; }

.fs-note {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.04em;
  color: #7a746a; padding: 30px 4px;
}

/* ---- card search results ---- */
.fs-search-item { display: flex; flex-direction: column; gap: 8px; }
.fs-card--search { aspect-ratio: 434 / 615; }
.fs-card--search img { object-fit: contain; background: #141310; }
.fs-search-cap { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.fs-search-cat {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fs-accent);
}
.fs-search-name {
  font-size: 11.5px; color: #bdb7ac; line-height: 1.3; overflow: hidden;
  text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.fs-search-expcount {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
  color: #857f74; margin-left: auto; letter-spacing: 0.06em;
}
.fs-faq-cathead { width: 100%; }

/* ---- Unit Count (material) table ---- */
.fs-material-card {
  max-width: 520px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 24px; border-radius: 16px;
  background: #1a1815; border: 1px solid #2c2925;
}
.fs-material-heading {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--fs-accent);
  border-bottom: 1px solid #2c2925; padding-bottom: 11px;
}
.fs-material-body { display: flex; flex-direction: column; gap: 6px; }
.fs-material-line {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 13px; border-radius: 9px; background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
}
.fs-material-label { color: #d8d2c8; font-weight: 500; }
.fs-material-value {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600;
  color: var(--fs-accent); min-width: 28px; text-align: right;
}

.fs-card {
  appearance: none; padding: 0; margin: 0; cursor: zoom-in; background: #1e1c1a;
  border: 1px solid #2c2925; border-radius: 12px; overflow: hidden; width: 100%;
  display: block; position: relative;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.fs-card:hover {
  border-color: var(--fs-accent); transform: translateY(-5px);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .78);
}
.fs-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* natural-aspect cards (faction reference sheets, maps) — never crop or force a ratio */
.fs-card--natural { aspect-ratio: auto; }
.fs-card--natural img { height: auto; object-fit: contain; }

/* ---- unavailable state ---- */
.fs-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px; padding: 40px; text-align: center;
}
.fs-empty-glyph { position: relative; width: 54px; height: 54px; opacity: 0.85; }
.fs-empty-glyph .ring {
  position: absolute; inset: 4px; transform: rotate(45deg);
  border: 1.5px solid #3a3631; border-radius: 6px;
}
.fs-empty-glyph .core {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; background: #2c2925; transform: rotate(45deg);
}
.fs-empty-stack { display: flex; flex-direction: column; gap: 7px; align-items: center; }
.fs-empty h2 {
  font-size: 19px; font-weight: 600; margin: 0; color: #e6e1d8; letter-spacing: 0.01em;
}
.fs-empty p {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1.8;
  color: #7a746a; margin: 0; max-width: 380px; letter-spacing: 0.03em;
}
.fs-empty-btn {
  appearance: none; cursor: pointer; font-family: inherit; font-size: 12.5px;
  font-weight: 600; letter-spacing: 0.02em; color: var(--fs-accent-fg);
  background: var(--fs-accent); border: none; border-radius: 9px; padding: 10px 18px;
  transition: opacity .15s;
}
.fs-empty-btn:hover { opacity: 0.9; }

/* ---- lightbox ---- */
.fs-lb {
  position: fixed; inset: 0; z-index: 60; background: rgba(8, 7, 6, .88);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 32px; animation: fsfade .18s ease;
}
.fs-lb-nav {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid #38332c; background: rgba(30, 28, 26, .85); color: #d8d2c8;
  font-size: 24px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all .15s;
}
.fs-lb-nav:hover { border-color: var(--fs-accent); color: var(--fs-accent); }
.fs-lb-fig {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: fspop .2s ease;
}
.fs-lb-fig img {
  max-height: 90vh; max-width: min(1100px, 92vw); border-radius: 14px;
  border: 1px solid #38332c; box-shadow: 0 40px 90px -25px #000; display: block;
}
.fs-lb-cap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fs-lb-label { font-size: 15px; font-weight: 600; color: #f3efe8; }
.fs-lb-meta {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fs-accent);
}
.fs-lb-tool {
  position: absolute; top: 22px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid #38332c; background: rgba(30, 28, 26, .85);
  color: #b3ada3; font-size: 15px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all .15s; z-index: 3;
}
.fs-lb-close { right: 24px; }
.fs-lb-full { right: 70px; font-size: 16px; }
.fs-lb-mag { right: 116px; font-size: 15px; }
.fs-lb-tool:hover { border-color: var(--fs-accent); color: #f3efe8; }
.fs-lb-tool.is-active { border-color: var(--fs-accent); color: var(--fs-accent-fg); background: var(--fs-accent); }

/* hover tooltip for the top-right tool buttons */
.fs-lb-tool[data-tip]::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 9px); right: 0;
  background: rgba(20, 18, 16, .96); border: 1px solid #38332c; color: #e6e1d8;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.04em;
  white-space: nowrap; padding: 6px 10px; border-radius: 7px; box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(-3px); pointer-events: none;
  transition: opacity .12s ease, transform .12s ease; z-index: 10;
}
.fs-lb-tool[data-tip]:hover::after { opacity: 1; transform: translateY(0); }

/* full-screen mode: image actually fills the viewport vertically (upscaling
   small scans), width capped so landscape sheets don't overflow; caption hidden */
.fs-lb-fig.is-full { gap: 0; }
.fs-lb-fig.is-full img { height: 96vh; width: auto; max-width: 94vw; max-height: 96vh; border-radius: 8px; }
.fs-lb-fig.is-full .fs-lb-cap { display: none; }

/* magnifier loupe */
.fs-lb-imgwrap { position: relative; display: inline-block; line-height: 0; }
.fs-lb-imgwrap.mag-on { cursor: crosshair; }
.fs-lb-lens {
  position: absolute; display: none; width: 204px; height: 204px; border-radius: 50%;
  border: 2px solid var(--fs-accent); background-color: #0c0b0a; background-repeat: no-repeat;
  box-shadow: 0 6px 26px rgba(0, 0, 0, .7); pointer-events: none; z-index: 5;
}

/* magnifier control hint */
.fs-lb-maghint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(20, 18, 16, .92); border: 1px solid #38332c; color: #c4bdb1;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  padding: 7px 14px; border-radius: 20px; z-index: 6; pointer-events: none; white-space: nowrap;
}
.fs-lb-maghint.hidden { display: none; }

/* ---- sidebar Reference section + FAQ entry ---- */
.fs-sidebar-section { margin-top: 22px; }
.fs-faq-entry { margin-top: 2px; }
.fs-faq-dot { border-radius: 2px; transform: rotate(45deg); }
.fs-faq-entry .fs-fac-count { font-size: 14px; color: #6f6a61; }

/* ---- FAQ view ---- */
.fs-header-spacer { flex: 1; }
.fs-faq-searchwrap {
  position: relative; display: flex; align-items: center;
  width: 280px; max-width: 42vw; flex-shrink: 0;
}
.fs-faq-searchicon {
  position: absolute; left: 13px; font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: #6f6a61; pointer-events: none;
}
.fs-faq-search {
  width: 100%; appearance: none; font-family: inherit; font-size: 13px; color: #ece8e1;
  background: #1d1b18; border: 1px solid #2c2925; border-radius: 9px;
  padding: 9px 13px 9px 32px; outline: none; transition: border-color .15s;
}
.fs-faq-search:focus { border-color: var(--fs-accent); }

.fs-faq-back {
  display: inline-flex; align-items: center; gap: 7px; appearance: none;
  background: none; border: none; cursor: pointer; padding: 0; margin: 0 0 12px;
}

.fs-faq-main { display: block; min-height: 0; overflow-y: auto; }
.fs-faq-header .fs-faq-searchwrap { width: 360px; max-width: 46vw; }
.fs-faq-hero {
  padding: 34px 40px 22px; border-bottom: 1px solid #221f1a;
  background: linear-gradient(180deg, #16140f, #121110);
}
.fs-faq-kicker {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--fs-accent);
}
.fs-faq-title {
  font-size: 27px; font-weight: 700; margin: 10px 0 8px; letter-spacing: -0.01em; color: #f3efe8;
}
.fs-faq-blurb { font-size: 13.5px; line-height: 1.65; color: #9a948a; margin: 0; max-width: 620px; }

.fs-faq-content { padding: 22px 40px 60px; max-width: 840px; }
.fs-faq-sectionrow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px;
}
.fs-faq-sectionlabel {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #bdb7ac;
}
.fs-faq-countlabel {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #857f74;
  letter-spacing: 0.08em; white-space: nowrap;
}
.fs-faq-list { display: flex; flex-direction: column; gap: 10px; }
.fs-faq-item {
  border: 1px solid #2c2925; background: #1a1815; border-radius: 13px; overflow: hidden;
  transition: border-color .18s ease, background .18s ease;
}
.fs-faq-item.is-open { border-color: var(--fs-accent); background: #1b1916; }
.fs-faq-qbtn {
  appearance: none; cursor: pointer; width: 100%; text-align: left; display: flex;
  align-items: flex-start; gap: 15px; background: transparent; border: none;
  padding: 17px 19px; font-family: inherit; color: #f3efe8;
}
.fs-faq-qbtn:hover { color: #fff; }
.fs-faq-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.05em; color: var(--fs-accent); padding-top: 3px; flex-shrink: 0; width: 30px;
}
.fs-faq-q { flex: 1; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.fs-faq-icon {
  position: relative; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid #38332c; color: #9a948a;
  transition: transform .2s ease, border-color .15s, color .15s;
}
/* plus drawn as two centered bars so it stays perfectly centred and rotates to × */
.fs-faq-icon::before, .fs-faq-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 1px;
}
.fs-faq-icon::before { width: 9px; height: 1.6px; transform: translate(-50%, -50%); }
.fs-faq-icon::after { width: 1.6px; height: 9px; transform: translate(-50%, -50%); }
.fs-faq-icon.is-open { transform: rotate(45deg); border-color: var(--fs-accent); color: var(--fs-accent); }
.fs-faq-answer { display: none; padding: 0 19px 18px; }
.fs-faq-item.is-open .fs-faq-answer { display: block; animation: fsexpand .2s ease; }
.fs-faq-atext { font-size: 13.5px; line-height: 1.72; color: #c4bfb5; margin: 0; white-space: pre-wrap; }

/* ---- FAQ sidebar: sub-category nav ---- */
.fs-faq-catnav { margin-top: 8px; }
.fs-faq-catnav .fs-fac-name { font-weight: 700; }
.fs-faq-subnav {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  appearance: none; border: 1px solid transparent; background: transparent; cursor: pointer;
  font-family: inherit; color: #9a948a; font-size: 12.5px; font-weight: 500;
  padding: 6px 11px 6px 30px; border-radius: 9px; transition: all .15s;
}
.fs-faq-subnav:hover { background: #1d1b18; color: #c4bdb1; }
.fs-faq-subnav.is-active {
  color: #f3efe8; background: #221f1a; font-weight: 600;
  box-shadow: inset 2px 0 0 var(--fs-accent);
}
.fs-faq-subnav .fs-fac-name { flex: 1; }
.fs-faq-subnav .fs-fac-count { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #6f6a61; }

/* ---- FAQ grouped content ---- */
.fs-faq-sections { display: flex; flex-direction: column; gap: 28px; }
.fs-faq-catblock { display: flex; flex-direction: column; gap: 16px; }
.fs-faq-cathead {
  display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 700;
  color: #f3efe8; margin: 4px 0 0;
}
.fs-faq-catdot { width: 11px; height: 11px; border-radius: 3px; transform: rotate(45deg); display: inline-block; }
.fs-faq-subsection { display: flex; flex-direction: column; gap: 13px; }
.fs-faq-sublabel {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #bdb7ac; border-bottom: 1px solid #221f1a;
  padding-bottom: 8px; margin-top: 8px;
}
.fs-faq-facgroup { display: flex; flex-direction: column; gap: 8px; }
.fs-faq-fachead { display: flex; align-items: center; gap: 12px; padding: 4px 2px 2px; }
.fs-faq-facname { font-size: 13px; font-weight: 600; color: #d8d2c8; letter-spacing: 0.01em; flex: 1; }
.fs-faq-faccount { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #6f6a61; }
.fs-faq-facicon { width: 104px; height: 104px; object-fit: contain; flex-shrink: 0; margin-left: 4px; }
.fs-faq-tag {
  display: inline-block; margin-top: 13px; font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fs-accent);
  border: 1px solid #34302a; border-radius: 6px; padding: 4px 9px;
}
.fs-faq-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 20px; text-align: center; }
.fs-faq-empty-glyph { position: relative; width: 44px; height: 44px; opacity: 0.8; }
.fs-faq-empty-glyph .ring { position: absolute; inset: 3px; transform: rotate(45deg); border: 1.5px solid #3a3631; border-radius: 5px; }
@keyframes fsexpand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .fs-sidebar { width: 188px; }
}
@media (max-width: 720px) {
  .fs-app { height: auto; min-height: 100vh; overflow: visible; }
  .fs-body { flex-direction: column; }
  .fs-sidebar {
    width: 100%; border-right: none; border-bottom: 1px solid #2c2925;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px;
  }
  .fs-sidebar-label { display: none; }
  .fs-nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .fs-fac { width: auto; }
  .fs-fac-count { display: none; }
  .fs-sidebar-foot { display: none; }
  .fs-scrollarea { overflow-y: visible; }
  .fs-header { gap: 14px; padding: 0 14px; }
  .fs-grid { gap: 12px; }
}
