/* All interface languages of the Windows app (features page, #all-languages).
   Scoped under .la-*; nothing here touches another section.
   The list is a wrapping grid of single names. Direction is set on the RTL name
   itself (a dir attribute on the inner span, which isolates it), never on the
   grid cell, so a right-to-left name cannot flip the layout of its row. */
.la-all { margin-top: 28px; }
.la-title { margin: 0 0 14px; font-size: 17px; font-weight: 800; line-height: 1.6; }
.la-search { margin: 0 0 14px; }
.la-input {
    display: block; box-sizing: border-box; width: 100%; max-width: 420px; height: 44px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--fg);
    font: inherit; font-size: 14px;
}
.la-input::placeholder { color: var(--muted); opacity: 1; }
.la-input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.la-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}
.la-item {
    min-width: 0; padding: 9px 10px; box-sizing: border-box;
    border: 1px solid var(--border); border-radius: 10px; background: var(--card);
    font-size: 13px; font-weight: 600; line-height: 1.6; text-align: center;
    overflow-wrap: anywhere;
}
.la-item[hidden] { display: none; }
.la-empty { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 620px) {
    .la-list { gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); }
    .la-item { padding: 8px 6px; font-size: 12.5px; }
    .la-input { max-width: none; }
}

/* Phones: the list opens on its first 12 names and a button shows the rest. The class la-js is put on
   the block by a tiny inline script before the list is painted, so the short list is there from the
   first frame (no layout shift); without script the class is absent and every name shows, and the
   button never appears. A typed search (la-q) always looks through all of them. From 768px up the
   whole list is shown and the button is gone. */
.la-more { display: none; }
@media (max-width: 767px) {
    .la-js .la-more {
        display: block; box-sizing: border-box; width: 100%; min-height: 44px; margin: 10px 0 0; padding: 0 14px;
        border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--fg);
        font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
    }
    .la-js .la-more:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
    .la-js:not(.la-open):not(.la-q) .la-item:nth-child(n+13) { display: none; }
    .la-js.la-open .la-more, .la-js.la-q .la-more { display: none; }
}
.la-item:focus { outline: none; }
.la-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
