/* All features page: docs layout, sticky contents on the left, one band per plan, one article per feature. */
.fx-hero { padding-bottom: 64px; }
.fx-hero h1 { font-size: clamp(38px, 5.2vw, 68px); max-width: 16ch; }
.fx-hero .tier-chips { margin-top: 4px; }

.fx-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-block: 48px 80px; align-items: start; }
.fx-toc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; font-size: 13.5px; padding-right: 6px; }
.fx-toc ul { list-style: none; margin: 4px 0 14px; padding: 0 0 0 12px; display: grid; gap: 4px; }
.fx-toc a { text-decoration: none; color: var(--muted); }
.fx-toc a:hover { color: var(--ink); }
.toc-tier a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.toc-tier a::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--cg); }

.fx-list { display: grid; gap: 56px; min-width: 0; }
.fx-tier { display: grid; gap: 36px; scroll-margin-top: 20px; }
.fx-tier-head { position: relative; border-radius: var(--r-lg); background: var(--cg); color: var(--co); padding: 26px 28px; display: grid; gap: 8px; justify-items: start; }
.fx-tier-head h2 { font-size: clamp(32px, 3.6vw, 46px); }
.fx-tier-head p { max-width: 62ch; opacity: 0.92; }
.fx-tier-meta { font-weight: 600; }
.fx-try { margin-top: 6px; background: var(--co); color: var(--cg); }

.fx-feat { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; scroll-margin-top: 20px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.fx-tier .fx-feat:last-child { border-bottom: 0; padding-bottom: 0; }
.fx-text { display: grid; gap: 12px; align-content: start; }
.fx-text .vig { max-width: 160px; margin: 0; }
.fx-text h3 { font-size: clamp(22px, 2.2vw, 28px); }
.fx-text > p { color: var(--muted); }
.fx-how { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 15.5px; }
.fx-from { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.fx-shot { position: sticky; top: 20px; }
.fx-shot > *:not(.shot-bar) { margin: 0; }
.fx-pad { padding: 14px 16px; }
.fx-scroll { overflow-x: auto; }
.fx-scroll .grid td { white-space: nowrap; }
.fx-slip-name { font: var(--d-weight) 20px/1.2 var(--font-d); letter-spacing: var(--d-track); }
.fx-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 0; }
.fx-shifts { display: grid; gap: 6px; }
.fx-shifts div { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.fx-shifts i { font-style: normal; font-weight: 500; padding: 6px 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--ground) 16%, var(--surface)); }
.fx-shifts i.rest { background: var(--sunk); color: var(--muted); }
.fx-kiosk { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.fx-qr .vig { margin: 0; }
.fx-kbtn { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.fx-kbtn span { text-align: center; padding: 8px; border-radius: var(--r-sm); background: var(--ground); color: var(--on-ground); font-size: 13px; font-weight: 600; }
.fx-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fx-week div { display: grid; gap: 6px; justify-items: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; }
.fx-week small { color: var(--muted); font-size: 11.5px; }
.fx-chain { list-style: none; margin: 0; display: grid; gap: 0; }
.fx-chain li { position: relative; padding: 0 0 16px 28px; display: grid; gap: 2px; font-size: 14px; }
.fx-chain li::before { content: ''; position: absolute; left: 4px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); background: var(--surface); }
.fx-chain li::after { content: ''; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.fx-chain li:last-child::after { display: none; }
.fx-chain .ok::before { background: var(--good); border-color: var(--good); }
.fx-chain .skip::before { background: var(--warn-soft); border-color: var(--warn); }
.fx-chain .now::before { background: var(--ground); border-color: var(--ground); }
.fx-chain span { color: var(--muted); }
.fx-check { list-style: none; margin: 0; display: grid; gap: 6px; }
.fx-check li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--sunk); font-size: 14px; }
.fx-check li span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.fx-check li.ok span { color: var(--good); }
.fx-bridge { display: grid; grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); gap: 8px; align-items: end; height: 190px; }
.fx-bridge div { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; align-items: end; justify-items: center; font-size: 11.5px; color: var(--muted); text-align: center; }
.fx-bridge i { width: 100%; border-radius: 3px 3px 0 0; display: block; }
.fx-bridge i.tot { background: var(--ground); }
.fx-bridge i.up { background: color-mix(in srgb, var(--good) 70%, var(--surface)); }
.fx-bridge i.down { background: color-mix(in srgb, var(--bad) 70%, var(--surface)); }
.vig .v-fx { font: italic 700 22px Georgia, serif; fill: var(--ground); }

/* Real app screens, labelled like the docs: dashed numbered boxes on the picture, the legend under it */
.fx-real { margin: 0; display: grid; gap: 16px; }
.fx-real-img { position: relative; max-width: var(--cw, 100%); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 24px 60px -36px rgba(20, 30, 50, 0.4); }
.fx-real-img img { display: block; width: 100%; height: auto; border-radius: inherit; }
.fx-hl { position: absolute; border: 2.5px dashed var(--brand); border-radius: 8px; background: color-mix(in srgb, var(--brand) 7%, transparent); pointer-events: none; }
.fx-hl span, .fx-legend .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-size: 12.5px; font-weight: 700; }
.fx-hl span { position: absolute; top: -13px; left: -13px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.fx-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.fx-legend li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }

@media (max-width: 1060px) {
  .fx-body { grid-template-columns: 1fr; }
  .fx-toc { display: none; }
}
@media (max-width: 860px) {
  .fx-feat { grid-template-columns: 1fr; }
  .fx-shot { position: static; }
  .fx-days, .fx-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-kiosk { grid-template-columns: 1fr; }
}
main.fx-list { padding-block: 0; }
.fx-shot .hint { font-size: 13px; color: var(--muted); }
.fx-shot .remit p { display: grid; gap: 2px; }

/* Roomier docs layout (round 4) */
.fx-body.wrap { max-width: 1440px; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-block: 64px 96px; }
.fx-list { gap: 96px; }
.fx-tier { gap: 56px; }
.fx-text { gap: 16px; }
.fx-text > p { font-size: 17px; line-height: 1.65; }
.fx-how { gap: 8px; }
.fx-scroll .grid { font-size: 13px; }
.fx-toc { scrollbar-gutter: stable; }
@media (max-width: 760px) {
  .fx-feat { gap: 20px; padding-bottom: 40px; }
  .fx-text .vig { max-width: 110px; }
  .fx-tier-head { padding: 22px 20px; }
  .fx-try { min-height: 44px; }
}
