/* The top navigation of every page of Bus Mallorca (/tib/: the map, the statistics, the lines, a line, the airport, About, a stop;
   Pages::nav() writes it, index.html, stats/index.html and stop/index.html carry the same markup): Mapa, Línies, Estadístiques as
   buttons with an icon and a word, in the family of the theme, language and account buttons of the widget (theme.css .db-w-btn); the
   page on show tinted with the accent; on a phone the icons only (their words stay for screen readers). About is at the bottom. */
.tib-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tib-nav-btn {
  display: inline-flex; flex: none; align-items: center; gap: 7px; height: 36px; padding: 0 12px; box-sizing: border-box; border-radius: var(--db-radius-sm);
  border: 1px solid var(--db-border); background: transparent; color: var(--db-text) !important; font: 700 14px/1 var(--db-font);
  text-decoration: none !important; white-space: nowrap; transition: background-color .15s, border-color .15s;
}
.tib-nav-btn .db-icon { width: 18px; height: 18px; flex: none; }
.tib-nav-btn:hover { background: var(--db-surface-2); border-color: var(--db-border-strong); }
.tib-nav-btn[aria-current="page"] { background: var(--db-accent-soft); border-color: var(--db-accent); color: var(--db-accent-soft-text) !important; }
.tib-nav-btn:focus-visible { outline: 2px solid var(--db-accent); outline-offset: 2px; }
/* icons only: a phone, and the map's header when it has no room for the words */
@media (max-width: 760px) {
  .tib-nav { gap: 5px; }
  .tib-nav-btn { width: 36px; padding: 0; justify-content: center; }
  .tib-nav-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* with the switch Interurbano | Urbano in the header (900-1199 px): the three buttons show their icons only, so everything fits */
@media (min-width: 900px) and (max-width: 1199px) {
  .has-net-float .tib-nav-btn { width: 36px; padding: 0; justify-content: center; }
  .has-net-float .tib-nav-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* a small phone: the pages with the platform's top bar keep the logo without its word, so the buttons keep their size */
@media (max-width: 430px) {
  .db-topbar .db-brand > span { display: none; }
}
/* the smallest phones (320-380 px): the logo, three buttons and the theme, language and account buttons in one row without touching
   (at 320 px they needed 34 px more: the quality check of 14 Nov 2026 found the statistics button under the theme button) */
@media (max-width: 380px) {
  .db-topbar { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .tib-nav { gap: 4px; }
  .db-topbar .db-widget { gap: 4px; }
  .db-topbar .db-w-btn[data-open="lang"] { padding: 0 7px; gap: 4px; }
}
@media (max-width: 340px) {
  .tib-nav-btn { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .tib-nav-btn { transition: none; }
}
