/* Public website additions, loaded after the app's app.css (copied in unchanged by build.py).
   Only the app's color tokens are used, so every text/background pair keeps the contrast checked
   there, in both themes. */

/* JavaScript on or off -------------------------------------------------------------------- */

/* site-init.js marks <html> with .js before the page paints. Without JavaScript the menu button
   and the theme toggle can't work, so they're hidden and the menu stays open. */
html:not(.js) .nav-toggle,
html:not(.js) .theme-toggle {
  display: none;
}

/* Header ---------------------------------------------------------------------------------- */

/* A Sign in button sits where the app has the account chip. */
.topbar .signin {
  flex: none;
}
.nav .nav-signin {
  display: none;
}
/* app.css collapses the menu below 960px, which leaves room for Sign in. Without JavaScript the
   menu stays open there instead. */
@media (max-width: 960px) {
  html:not(.js) .nav {
    display: flex;
  }
  html:not(.js) .topbar .signin {
    margin-left: auto;
  }
}
/* On phones, Sign in moves into the menu (as the app's account link does). */
@media (max-width: 560px) {
  .topbar .signin {
    display: none;
  }
  .nav .nav-signin {
    display: block;
  }
}

/* Page scaffolding ------------------------------------------------------------------------ */

/* Anchored sections clear the sticky header. */
main [id] {
  scroll-margin-top: 84px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.page-header .row {
  margin-top: 1rem;
}

/* Cards ----------------------------------------------------------------------------------- */

/* h2s that sit at card size: they head their own section but look like the app's card titles. */
.card-title,
.callout-title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.card-source {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.dash-card p.questions-label {
  margin-bottom: 0;
}
/* The example prompt on each Use AI card, as in the app. */
.example-prompt {
  margin: 0.4rem 0 0;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-2);
}
.level-allows {
  margin-top: 0.75rem;
  color: var(--text-2);
}
.request-card ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  color: var(--text-2);
}
.request-card li + li {
  margin-top: 0.3rem;
}
.callout > div > * + * {
  margin-top: 0.4rem;
}

/* Dataset lists --------------------------------------------------------------------------- */

/* Items aren't links on this site. */
.dataset-list .dataset-item:hover {
  background: none;
}
/* The filter hides items, so each one draws its own divider and the list's border covers the
   first visible one's (app.css draws them with li + li, which a hidden first item would break). */
.dataset-list li + li {
  border-top: 0;
}
.dataset-list li {
  border-top: 1px solid var(--border);
  margin-top: -1px;
}
/* A dataset's Open Data Portal page, or an iMAP layer's data catalog item and ArcGIS service,
   under the details line: set off from it as it is from the summary, and in its type size. Each
   link is at least 24px tall, the WCAG 2.2 target size. */
.dataset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  margin-top: 0.3rem;
  font-size: 0.85rem;
}
.dataset-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.5rem;
}
.dataset-links .icon {
  width: 0.95em;
  height: 0.95em;
}
