/* The "More apps" tab. Each microsite restyles itself freely; this file only
   owns .ta-*. Pages can retint it by setting these on :root:
     --ta-bg  --ta-fg  --ta-muted  --ta-line  --ta-accent  --ta-font */

:root {
  --ta-bg: rgb(255 255 255 / .82);
  --ta-fg: #1b1a17;
  --ta-muted: #6d6a63;
  --ta-line: rgb(0 0 0 / .1);
  --ta-accent: #b3441d;
  --ta-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ta-bg: rgb(24 23 20 / .82);
    --ta-fg: #efece6;
    --ta-muted: #9c988e;
    --ta-line: rgb(255 255 255 / .12);
    --ta-accent: #e2743f;
  }
}

.ta-nav {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 1000;
  pointer-events: none;
  font-family: var(--ta-font);
}
.ta-nav > * { pointer-events: auto; }

.ta-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 11px;
  border: 1px solid var(--ta-line);
  border-radius: 999px;
  background: var(--ta-bg);
  color: var(--ta-fg);
  font: 600 13px/1 var(--ta-font);
  letter-spacing: .01em;
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 2px 10px rgb(0 0 0 / .08);
  transition: transform .15s ease;
}
.ta-tab:hover { transform: translateY(-1px); }
.ta-tab[aria-expanded="true"] { border-color: var(--ta-accent); }
.ta-tab:focus-visible, .ta-pill:focus-visible { outline: 2px solid var(--ta-accent); outline-offset: 2px; }

/* 2x2 dots glyph, drawn in CSS so it follows currentColor */
.ta-grid {
  width: 12px; height: 12px; flex: none;
  background:
    radial-gradient(circle, currentColor 2px, transparent 2.5px) 0 0 / 6px 6px;
  opacity: .8;
}

.ta-tray {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--ta-line);
  border-radius: 20px;
  background: var(--ta-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 40px rgb(0 0 0 / .18);
  max-width: max-content;
  animation: ta-in .18s ease-out;
}
.ta-tray[hidden] { display: none; }
@keyframes ta-in { from { opacity: 0; transform: translateY(-6px); } }

.ta-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: calc(100vw - 50px);
}
.ta-row::-webkit-scrollbar { display: none; }

.ta-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 5px 16px 5px 5px;
  border: 1px solid var(--ta-line);
  border-radius: 999px;
  color: var(--ta-fg);
  font: 500 14px/1 var(--ta-font);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.ta-pill img { width: 28px; height: 28px; border-radius: 7px; }
.ta-pill:hover { background: color-mix(in srgb, var(--ta-fg) 7%, transparent); }
.ta-pill.is-current { border-color: var(--ta-accent); background: color-mix(in srgb, var(--ta-accent) 12%, transparent); }
.ta-home { padding-left: 14px; }
.ta-ext { color: var(--ta-muted); font-size: 12px; margin-left: -3px; }

@media (prefers-reduced-motion: reduce) {
  .ta-tab, .ta-tray { transition: none; animation: none; }
}
