.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

@media (prefers-color-scheme: dark) {
  #app-icon {
    content: url("/assets/img/app-icon-dark.png");
  }
}

.hero {
  text-align: center;
  padding: 2rem 1rem;
}
@media only screen and (max-width: 400px) {
  .hide-sm { display: none; }
}

.app-store-badge {
  height: 60px;
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .app-store-badge { height: 50px; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;       /* Keep it above the content */
  background: var(--pico-background-color); /* Match Pico's theme */
  backdrop-filter: blur(8px); /* Optional: adds a soft translucent effect */
  border-bottom: 1px solid var(--pico-muted-border-color);
  padding: 0 1em;
  background-color: rgba(255, 255, 255, 0.8);
  @media (prefers-color-scheme: dark) {
    background-color: rgba(20, 20, 20, 0.8);
  }
}

main {
  :target {
    scroll-margin-top: 5rem; /* or the height of sticky nav */
  }
}

img.inline {
  height: 18px;
}

/* The animation wrapper for list items */
article {
  overflow: hidden;
  max-height: 500px; /* something larger than your tallest article */
  opacity: 1;
  transform: scale(1);
  transition:
    max-height 0.35s ease-in-out,
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out,
    margin 0.3s ease-in-out,
    padding 0.3s ease-in-out;
}

/* Hidden state (collapsing) */
article.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transform: scale(0.98);
  pointer-events: none;
}

/* Optional: make transitions look even smoother when many articles collapse */
section.collection {
  display: grid;
  gap: 0.75rem;
}





html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-bottom: var(--pico-spacing);
}

/* Pico-style link chips */
#tags .tag-link {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.3rem;
  border-radius: 9999px;
  background: var(--pico-muted-border-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap; /* keep each tag one line */
}

#tags .tag-link:hover {
  background: var(--pico-muted-color);
}

#tag-bar .tag.active {
  background: var(--pico-primary);
  color: var(--pico-primary-inverse);
}

/* Default: show light, hide dark */
.light-only { display: block; }
.dark-only  { display: none; }

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  .light-only { display: none; }
  .dark-only  { display: block; }
}
