/* The title bar and the tabs (net_cyc/shared/_titlebar), as Vector 2022's: the title in the serif over a rule, the
   language menu at its right ("N languages", in the link colour), the contents' button at its left on narrow screens;
   then the namespace tabs (Article, Talk) and the views (Read) and the Tools menu, the selected tab in the text colour
   and underlined, over a fainter rule. */

.nc-titlebar { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--nc-border); }
.nc-title { flex: 1; min-width: 0; margin: 0; padding: 0.0625rem 0; color: var(--nc-heading); font-family: var(--nc-serif); font-size: 1.8rem; font-weight: 400; line-height: 1.375; overflow-wrap: break-word; }
.nc-toc-menu { flex: none; }
.nc-toc-menu .nc-dropdown__panel { width: 18rem; }

.nc-languages { flex: none; }
.nc-languages__button { display: flex; align-items: center; gap: 0.25rem; padding: 0.3125rem 0.5rem; border-radius: 2px; color: var(--nc-link); font-size: var(--nc-ui-size); font-weight: 700; cursor: pointer; }
.nc-languages__button:hover { background: var(--nc-hover); }
.nc-languages__button .nc-icon--chevron { width: 0.875rem; height: 0.875rem; }
.nc-languages__list { margin: 0; padding: 0; list-style: none; columns: 2 9rem; column-gap: 1rem; }
.nc-languages__link { display: block; padding: 0.3125rem 0; }

.nc-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--nc-border-subtle); font-size: var(--nc-ui-size); }
.nc-tabs { display: flex; gap: 1rem; }
.nc-tab { display: block; padding: 0.4375rem 0 0.375rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nc-tab.is-selected, .nc-tab.is-selected:visited { border-bottom-color: var(--nc-text); color: var(--nc-text); }
.nc-tab.is-selected:hover { text-decoration: none; }
.nc-toolbar__end { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nc-tools__button { display: flex; align-items: center; gap: 0.125rem; padding: 0.4375rem 0 0.375rem; color: var(--nc-text); cursor: pointer; }
.nc-tools__button .nc-icon--chevron { width: 0.875rem; height: 0.875rem; }
.nc-dropdown.nc-tools[open] > summary { background: none; }
.nc-tools__panel { width: 12rem; }

@media (max-width: 40rem) {
  .nc-titlebar { flex-wrap: wrap; row-gap: 0; }
  .nc-title { font-size: 1.75rem; }
  .nc-languages { flex-basis: 100%; display: flex; justify-content: flex-end; }
  .nc-languages > summary { margin-right: -0.5rem; }
}
