/* features page */
.feat-layout { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: start; }
.feat-layout > * { min-width: 0; }
@media (max-width: 700px) { .fn-table { display: block; overflow-x: auto; } #tutorial-steps { columns: 1 !important; } }
.feat-nav { position: sticky; top: 90px; display: grid; gap: 0.2rem; font-size: 0.95rem; }
.feat-nav a { padding: 0.35rem 0.7rem; border-radius: var(--pill); color: var(--fg); font-weight: 600; }
.feat-nav a:hover, .feat-nav a.active { background: var(--accent-soft); text-decoration: none; }
.feat-section { padding: 2.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.feat-section:first-child { border-top: 0; padding-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0.4rem; }
.chips + h4 { margin-top: 1.4rem; }
h4 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 1.6rem 0 0.2rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--muted); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.lib { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.8rem; text-align: center; }
.lib .pic { height: 72px; display: grid; place-items: center; background: repeating-conic-gradient(var(--bg-2) 0 25%, var(--panel) 0 50%) 0 0 / 16px 16px; border-radius: var(--radius); margin-bottom: 0.5rem; }
.lib img { max-height: 64px; width: auto; }
.lib b { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.lib small { color: var(--muted); font-size: 0.8rem; display: block; line-height: 1.3; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.bg-grid figure { margin: 0; }
.bg-grid img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.bg-grid figcaption { font-size: 0.9rem; font-weight: 600; margin-top: 0.3rem; }
.fn-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 1rem; }
.fn-table th, .fn-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fn-table code { background: var(--bg-2); padding: 0.1em 0.4em; border-radius: 4px; }
.sound-row { display: inline-flex; align-items: center; gap: 0.5rem; }
.sound-row button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; font-size: 0.8rem; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.4rem 1.5rem; margin-top: 1rem; }
.shortcuts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 860px) { .feat-layout { grid-template-columns: 1fr; } .feat-nav { position: static; display: flex; flex-wrap: wrap; } }
