/* /features: a directory, not a long page. One viewport on desktop: pick a row, the right side shows what it is.
   On phones the list is the page and a row opens a sheet. Not a dark-build source: both themes are written here. */
.features-page{--fx-ink:#1c2027;--fx-muted:#5c636e;--fx-line:#e2e5ea;--fx-panel:#f6f7f9;--fx-lit:#1c2027;--fx-on-lit:#fff;--fx-hover:#f1f3f5;--fx-tag:#1d7a57}
html[data-site-theme=dark] .features-page{--fx-ink:#f4f4f5;--fx-muted:#b2b2ba;--fx-line:#2c2c32;--fx-panel:#121214;--fx-lit:#f4f4f5;--fx-on-lit:#111113;--fx-hover:#18181b;--fx-tag:#5ccfab}
.fx{display:flex;flex-direction:column;width:min(1500px,100%);margin:0 auto;padding:20px 32px 24px;color:var(--fx-ink)}
.fx-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.fx-head h1{margin:0;font-size:clamp(30px,3vw,44px);line-height:1.06;font-weight:500;letter-spacing:-.04em}
.fx-head p{margin:6px 0 0;color:var(--fx-muted);font-size:16px}
.fx-head-side{display:flex;align-items:center;gap:12px;flex:none}
.fx-head-side .button{min-height:46px}
.fx-find{display:flex;align-items:center;gap:10px;width:280px;height:46px;padding:0 16px;border:1px solid var(--fx-line);border-radius:14px;background:var(--fx-panel);color:var(--fx-muted)}
.fx-find:focus-within{border-color:var(--fx-ink)}
.fx-find svg{flex:none}
.fx-find input{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;color:var(--fx-ink);font:16px DM,-apple-system,BlinkMacSystemFont,sans-serif}
.fx-find input::placeholder{color:var(--fx-muted);opacity:1}
.fx-find input::-webkit-search-cancel-button{display:none}
.fx-tabs{display:flex;gap:6px;margin:18px 0 0;padding:0;overflow-x:auto;scrollbar-width:none}
.fx-tabs::-webkit-scrollbar{display:none}
.fx-tabs button{flex:none;min-height:44px;padding:0 16px;border:1px solid var(--fx-line);border-radius:12px;background:none;color:var(--fx-ink);font:500 15px DM,-apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer;transition:background .16s}
.fx-tabs button:hover{background:var(--fx-hover)}
.fx-tabs button[aria-pressed=true]{border-color:var(--fx-lit);background:var(--fx-lit);color:var(--fx-on-lit)}
.fx-explorer{display:grid;grid-template-columns:340px minmax(0,1fr);gap:20px;height:max(560px,calc(100dvh - 268px));margin-top:16px}
.fx-list{position:relative;min-height:0;overflow-y:auto;padding-right:6px;scrollbar-width:thin;scrollbar-color:var(--fx-line) transparent}
.fx-list section+section{margin-top:18px}
.fx-list h2{position:sticky;top:0;z-index:1;margin:0;padding:6px 12px;background:#fff;color:var(--fx-muted);font-size:13px;font-weight:500;letter-spacing:0}
html[data-site-theme=dark] .fx-list h2{background:#0b0b0c}
.fx-list ul{margin:0;padding:0;list-style:none}
.fx-list a{display:flex;flex-direction:column;gap:2px;min-height:58px;padding:9px 12px;border-radius:12px;color:inherit;text-decoration:none;transition:background .14s}
.fx-list a:hover{background:var(--fx-hover);opacity:1}
.fx-list a:focus-visible,.fx-tabs button:focus-visible,.fx-shot:focus-visible{outline:2px solid var(--fx-tag);outline-offset:-2px}
.fx-list li.is-active a{background:var(--fx-lit);color:var(--fx-on-lit)}
.fx-row-name{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500;letter-spacing:-.01em}
.fx-row-short{overflow:hidden;color:var(--fx-muted);font-size:14px;line-height:1.35;white-space:nowrap;text-overflow:ellipsis}
.fx-list li.is-active .fx-row-short{color:inherit;opacity:.78}
.fx em,.fx-sheet em{font-style:normal;font-size:12px;font-weight:600;color:var(--fx-tag)}
.fx-list li.is-active em{color:inherit}
.fx-empty{margin:12px;color:var(--fx-muted);font-size:15px}
.fx-empty button{min-height:44px;padding:0 6px;border:0;background:none;color:var(--fx-ink);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}
.fx-stage{min-width:0;min-height:0}
.fx-item{display:flex;flex-direction:column;height:100%;overflow:hidden;border:1px solid var(--fx-line);border-radius:20px;background:var(--fx-panel)}
html.fx-ready .fx-item:not(.is-active){display:none}
html:not(.fx-ready) .fx-explorer{height:auto}
html:not(.fx-ready) .fx-item{height:auto;margin-bottom:16px}
.fx-shot{position:relative;flex:1;min-height:0;display:block;width:100%;padding:0;border:0;border-bottom:1px solid var(--fx-line);background:#0b0b0c;cursor:zoom-in}
.fx-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:left top}
.fx-copy{flex:none;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 22px}
.fx-copy h2{display:flex;align-items:center;gap:10px;margin:0;font-size:22px;font-weight:600;letter-spacing:-.02em}
.fx-copy p{max-width:74ch;margin:5px 0 0;color:var(--fx-muted);font-size:15.5px;line-height:1.5}
.fx-copy .button{flex:none;min-height:46px}
.fx-item--text{justify-content:center}
.fx-item--text .fx-copy{flex-direction:column;align-items:flex-start;gap:22px;padding:clamp(24px,6vw,72px)}
.fx-item--text h2{font-size:clamp(28px,3vw,40px);font-weight:500}
.fx-item--text p{font-size:18px}
.fx-address{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:520px;margin-top:18px!important;padding:6px 6px 6px 16px;border:1px solid var(--fx-line);border-radius:12px;color:var(--fx-ink)!important;font-size:15px!important}
.fx-address span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.fx-address button{flex:none;min-height:44px;padding:0 14px;border:1px solid var(--fx-line);border-radius:10px;background:none;color:var(--fx-ink);font:500 14px DM,-apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer}
.fx-note{margin:14px 0 0;color:var(--fx-muted);font-size:12.5px;line-height:1.5}

.fx .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* zoom: the whole screenshot */
.fx-zoom{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#050506f2;overflow:auto}
.fx-zoom::backdrop{background:#050506f2}
.fx-zoom[open]{display:grid;place-items:center}
.fx-zoom img{display:block;width:min(96vw,calc(92dvh*1.6));height:auto;border-radius:12px;cursor:zoom-out}
.fx-zoom button{position:fixed;top:16px;right:16px;width:44px;height:44px;padding:0;border:1px solid #ffffff30;border-radius:50%;background:#18181b;color:#fff;font-size:20px;cursor:pointer}

/* phones and small tablets: the list is the page, a row opens a sheet */
.fx-sheet{position:fixed;inset:auto 0 0 0;width:100%;max-width:none;height:auto;max-height:90dvh;margin:0;padding:0;overflow:hidden;border:0;border-radius:24px 24px 0 0;background:var(--fx-panel);color:var(--fx-ink)}
.fx-sheet::backdrop{background:#04090dbf}
.fx-sheet[open]{display:flex;flex-direction:column}
.fx-sheet-bar{flex:none;display:flex;justify-content:space-between;gap:8px;padding:10px 12px}
.fx-sheet-bar button{min-width:44px;min-height:44px;padding:0 14px;border:1px solid var(--fx-line);border-radius:12px;background:none;color:var(--fx-ink);font:500 14px DM,-apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer}
.fx-sheet-body{flex:1;min-height:0;overflow-y:auto;padding:0 12px calc(16px + env(safe-area-inset-bottom))}
.fx-sheet .fx-item{display:block;height:auto;border-radius:16px}
.fx-sheet .fx-shot{height:auto;aspect-ratio:16/10}
.fx-sheet .fx-copy{flex-direction:column;align-items:stretch;gap:16px;padding:16px}
.fx-sheet .fx-copy .button{justify-content:center;text-align:center}
.fx-sheet .fx-item--text .fx-copy{padding:20px 16px}
@media(max-width:1000px){
  .fx{padding:20px 16px 24px}
  .fx-head{flex-direction:column;align-items:stretch;gap:14px}
  .fx-head-side{flex-direction:column;align-items:stretch}
  .fx-head-side .button{display:none}
  .fx-find{width:100%}
  .fx-tabs{margin-inline:-16px;padding-inline:16px}
  .fx-explorer{display:block;height:auto}
  .fx-list{overflow:visible;padding:0}
  .fx-stage{display:none}
  html:not(.fx-ready) .fx-stage{display:block}
  .fx-list h2{position:static;padding:6px 0;background:none}
  html[data-site-theme=dark] .fx-list h2{background:none}
  .fx-list a{min-height:60px;padding:10px 0;border-radius:0;border-bottom:1px solid var(--fx-line)}
  .fx-list li.is-active a{background:none;color:inherit}
  .fx-list li.is-active .fx-row-short{color:var(--fx-muted);opacity:1}
  .fx-list li.is-active em{color:var(--fx-tag)}
  .fx-row-short{white-space:normal}
}
@media(prefers-reduced-motion:reduce){.fx-list a,.fx-tabs button{transition:none}}
.features-page .side-social-dock{display:none}
