/* Public-page additions to the AI Deal Radar dashboard (https://asdaledynamics.com/ai-deals/).
   Loaded after styles.css by the page that scripts/publish-site.mjs builds. */

/* Controls that only work on the local app */
#openSettings,
#topScanButton,
#heroScanButton,
#nextScanLabel,
#sourceSettingsButton,
.hide-button,
.settings-drawer,
.drawer-scrim {
  display: none !important;
}

/* Site links in the dashboard's top bar */
.topbar-actions,
.topbar-actions > nav {
  min-width: 0;
  max-width: 100%;
}

.topbar-crumb a {
  color: var(--muted);
  text-decoration: none;
}

.topbar-crumb a:hover {
  color: var(--emerald);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-link {
  flex: none;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.top-link:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.top-link[aria-current="page"] {
  background: var(--emerald);
  color: #fff;
}

/* Site footer under the dashboard footer */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-foot p {
  margin: 0;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.site-foot a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--emerald);
  text-decoration: underline;
}

/* No-JavaScript fallback list */
.noscript-list {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.noscript-list li {
  margin: 6px 0;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-block: 10px;
  }

  .topbar-actions {
    width: 100%;
    min-width: 0;
  }

  .top-nav {
    width: 100%;
  }
}
