/* betterthings family links on the Better Explora pages.
   scripts/sync-explora.py adds them to the betterthingslab.com copy only (the GitHub Pages site stays as it is):
   a "bt." mark before the Explora name in the top bar, and a row of the family's products under the footer.
   Product names and the brand need no translation, so this works in all of Explora's languages.
   Colours come from the Explora page's own variables, so it follows its light and dark modes. */
.bt-home { display: inline-flex; align-items: center; flex: none; border-radius: 7px; }
.bt-mark { display: inline-block; flex: none; width: 24px; height: 24px; background: url(/assets/brand/logo-mark.svg) center / contain no-repeat; }
.bt-slash { flex: none; margin: 0 -12px; color: var(--soft, #8a8780); font-size: 18px; font-weight: 300; }

.bt-family { flex-basis: 100%; order: 99; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px;
  margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line, rgba(0, 0, 0, .09)); font-size: 14px; }
.bt-logo { display: inline-flex; align-items: center; margin-right: auto; color: var(--text, #111); text-decoration: none;
  font: 800 16px/1 'Be Vietnam Pro', var(--font, sans-serif); letter-spacing: -0.03em; }
.bt-logo .bt-mark { width: 20px; height: 20px; margin-right: 7px; }
.bt-logo .l { font-weight: 400; }
.bt-logo .d { color: #FF6A1A; }
.bt-family nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.bt-family nav a { color: var(--muted, #6b6862); text-decoration: none; }
.bt-family nav a:hover { color: var(--text, #111); text-decoration: underline; text-underline-offset: 3px; }
.bt-family nav a[aria-current] { color: var(--text, #111); }

:root[data-theme="dark"] .bt-mark { background-image: url(/assets/brand/logo-mark-light.svg); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .bt-mark { background-image: url(/assets/brand/logo-mark-light.svg); } }
.nav .brand { white-space: nowrap; }
/* Phones and tablets: Explora's top bar folds its links into the ☰ menu, so the way home moves there too */
.bt-menu-home { display: none; }
@media (max-width: 900px) {
  .bt-home, .bt-slash { display: none; }
  .nav.open .bt-menu-home { display: block; }
}
