/* Averlo UX — anti-bounce layer (directory, cards, sticky stack, newsletter) */

/* —— Shared control system (search rows, chips, actions) —— */
.averlo-home-search,
.averlo-catalog__search {
  --averlo-search-h: 48px;
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
  max-width: 40rem;
}
.averlo-home-search__input,
.averlo-catalog__input {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--averlo-search-h);
  min-height: var(--averlo-search-h);
  max-height: var(--averlo-search-h);
  padding: 0 1rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.25;
  border: 1px solid var(--grey--400, #d4d4d8);
  border-radius: 10px;
  background: var(--color--card-bg, #fff);
  color: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}
.averlo-catalog__input {
  padding-right: 2.4rem;
}
.averlo-home-search__input:focus,
.averlo-catalog__input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  border-color: #2563eb;
}
.averlo-home-search .button,
.averlo-home-search__btn,
.averlo-catalog__search .button {
  flex: 0 0 auto !important;
  align-self: stretch !important;
  height: var(--averlo-search-h) !important;
  min-height: var(--averlo-search-h) !important;
  max-height: var(--averlo-search-h) !important;
  padding: 0 1.25rem !important;
  margin: 0 !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  font-weight: 550 !important;
  line-height: 1 !important;
  transform: none !important;
}
.averlo-home-search .button:hover,
.averlo-catalog__search .button:hover {
  transform: none !important;
}
.averlo-home-search .button > div,
.averlo-catalog__search .button > div {
  line-height: 1 !important;
}
.averlo-catalog__clear {
  position: absolute;
  right: calc(0.5rem + 5.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--font-secondary, #71717a);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  display: block;
}
.averlo-catalog__clear[hidden] {
  display: none !important;
}

/* Unified chips across home + directory */
.averlo-catalog .averlo-chip,
.averlo-home-discover .averlo-chip,
.averlo-filters .averlo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--grey--300, #e4e4e7);
  background: var(--color--card-bg, #fff);
  color: var(--grey--700, #3f3f46);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.averlo-catalog .averlo-chip:hover:not(.is-active),
.averlo-home-discover .averlo-chip:hover:not(.is-active),
.averlo-filters .averlo-chip:hover:not(.is-active) {
  border-color: var(--grey--500, #a1a1aa);
  background: var(--grey--50, #fafafa);
}
.averlo-catalog .averlo-chip.is-active,
.averlo-home-discover .averlo-chip.is-active,
.averlo-filters .averlo-chip.is-active {
  background: var(--grey--900, #18181b);
  border-color: var(--grey--900, #18181b);
  color: #fff;
  font-weight: 600;
}
.averlo-catalog .averlo-chip--more {
  border-style: dashed;
  color: var(--grey--600, #71717a);
  background: transparent;
}

/* —— Homepage discovery (curated, search-first) —— */
.averlo-home-hero__inner {
  max-width: 42rem !important;
}
.averlo-home-hero .h1-style {
  font-size: clamp(1.75rem, 3.6vw, 2.45rem) !important;
  margin-bottom: 0.55rem !important;
}
.averlo-home-hero__sub {
  margin: 0 0 1.15rem !important;
  max-width: 36rem;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}
.averlo-home-hero__hint {
  margin: 0.75rem 0 0 !important;
  font-size: 0.88rem !important;
}
.averlo-home-hero__trust {
  margin: 0.45rem 0 0 !important;
  max-width: 38rem;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  opacity: 0.92;
}
.averlo-home-discover {
  padding-top: 0.5rem !important;
}
.averlo-home-block {
  margin: 1.75rem 0 0;
  padding: 0;
}
.averlo-home-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.averlo-home-block__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.averlo-home-block__head p {
  margin: 0.2rem 0 0;
  width: 100%;
  font-size: 0.9rem;
  color: var(--grey--600, #71717a);
}
.averlo-home-block__head a {
  font-size: 0.88rem;
  color: var(--grey--600, #71717a);
  text-decoration: none;
  white-space: nowrap;
}
.averlo-home-block__head a:hover {
  color: inherit;
  text-decoration: underline;
}
.averlo-home-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.averlo-home-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--grey--300, #e4e4e7);
  border-radius: 10px;
  background: var(--color--card-bg, #fff);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
  min-height: 0;
}
.averlo-home-card:hover {
  border-color: var(--grey--500, #a1a1aa);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.averlo-home-card__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.averlo-home-card__body {
  min-width: 0;
  flex: 1;
}
.averlo-home-card__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 0.2rem;
  color: inherit !important;
}
.averlo-home-card__desc {
  margin: 0 0 0.4rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--grey--600, #71717a) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.averlo-home-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.74rem;
  color: var(--grey--600, #71717a);
}
.averlo-home-card__trust {
  font-weight: 650;
  color: #047857;
  background: color-mix(in srgb, #10b981 14%, transparent);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}
.averlo-usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.averlo-usecase {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.75rem;
  padding: 0.75rem 0.65rem;
  border: 1px solid var(--grey--300, #e4e4e7);
  border-radius: 10px;
  background: var(--color--card-bg, #fff);
  text-decoration: none !important;
  color: inherit !important;
  font-size: 0.88rem;
  font-weight: 550;
}
.averlo-usecase:hover {
  border-color: var(--grey--700, #3f3f46);
  background: var(--grey--50, #fafafa);
}
.averlo-home-dir-cta {
  margin-top: 2rem;
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--grey--300, #e4e4e7);
  border-radius: 12px;
  background: var(--grey--50, #fafafa);
}
.averlo-home-dir-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.averlo-home-dir-cta p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--grey--600, #71717a);
  max-width: 36rem;
}
.averlo-home-block--compact .averlo-filters {
  flex-wrap: wrap;
}
.averlo-dir-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.averlo-dir-filters.is-collapsed {
  display: none;
}
@media (max-width: 900px) {
  .averlo-home-search,
  .averlo-catalog__search {
    flex-direction: column;
  }
  .averlo-home-search .button,
  .averlo-home-search__btn,
  .averlo-catalog__search .button {
    width: 100%;
    text-align: center;
  }
  .averlo-catalog__clear {
    right: 0.65rem;
    top: 1.15rem;
    transform: translateY(-50%);
  }
  .averlo-usecase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  .averlo-usecase {
    padding: 0.65rem 0.4rem;
    font-size: 0.8rem;
  }
  .averlo-home-card-grid {
    grid-template-columns: 1fr;
  }
}
.averlo-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
  align-items: center;
}
.averlo-hero-ctas .button.secondary {
  background: transparent !important;
  color: inherit !important;
  border: 1px solid var(--grey--400, #d4d4d8) !important;
  box-shadow: none !important;
}
.averlo-hero-ctas .button.secondary:hover {
  border-color: var(--grey--700, #3f3f46) !important;
}

/* —— Directory cards (readable, not “raw link” soup) —— */
.averlo-card.averlo-card--dense {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 0.95rem 0.8rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-height: 0;
}
.averlo-card.averlo-card--dense:hover {
  border-color: var(--grey--500, #a1a1aa);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.averlo-card--dense .averlo-card-top {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  text-decoration: none !important;
  color: inherit !important;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.averlo-card--dense .averlo-card-top:hover,
.averlo-card--dense .averlo-card-top:focus,
.averlo-card--dense .averlo-card-top:visited {
  text-decoration: none !important;
  color: inherit !important;
}
.averlo-card--dense .averlo-card-top h2 {
  color: inherit !important;
  text-decoration: none !important;
  font-weight: 650;
}
.averlo-card--dense .averlo-card__tagline {
  color: var(--grey--600, #71717a) !important;
  text-decoration: none !important;
}
.averlo-card--dense .averlo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding-top: 0;
  margin-top: 0;
}
.averlo-meta__badge {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.averlo-meta__badge--official {
  color: #047857;
  background: color-mix(in srgb, #10b981 14%, transparent);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
}
.averlo-meta__badge--new {
  color: #1d4ed8;
  background: color-mix(in srgb, #3b82f6 12%, transparent);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
}
.averlo-meta__badge--active,
.averlo-meta__badge--maintained,
.averlo-meta__badge--abandoned,
.averlo-meta__badge--trending {
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--grey--100, #f4f4f5);
}
.averlo-compat {
  display: none; /* dense cards: too noisy; detail page still shows clients */
}
.averlo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  opacity: 1 !important;
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--grey--200, #f4f4f5);
}
.averlo-card__actions button,
.averlo-card__actions a {
  font-size: 0.72rem;
  font-weight: 550;
  padding: 0.32rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--grey--300, #e4e4e7);
  background: var(--color--card-bg, #fff);
  color: var(--grey--700, #3f3f46) !important;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.2;
}
.averlo-card__actions button[data-act="copy"] {
  background: var(--grey--900, #18181b);
  color: #fff !important;
  border-color: var(--grey--900, #18181b);
}
.averlo-card__actions button:hover,
.averlo-card__actions a:hover {
  border-color: var(--grey--600, #52525b);
}
.averlo-card.is-kbd-focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.averlo-dir-toolbar__search {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}
.averlo-search-clear {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--font-secondary, #71717a);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  display: none;
}
.averlo-dir-toolbar__search.has-query .averlo-search-clear {
  display: block;
}
.averlo-dir-result-count {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--font-secondary, #71717a);
}
.averlo-empty--rich {
  padding: 1.5rem 0.25rem;
  text-align: left;
}
.averlo-empty--rich a {
  margin-right: 0.65rem;
}

.averlo-filters--collapsed .averlo-chip--more-only,
.averlo-filters .averlo-chip.is-extra {
  display: none;
}
.averlo-filters.is-expanded .averlo-chip.is-extra {
  display: inline-flex;
}
.averlo-filters.is-expanded .averlo-chip--more {
  display: none;
}

/* Dense cards: styles live above — do not reintroduce hover-gated actions */

.averlo-meta__gh {
  font-size: 0.78rem;
  color: var(--font-secondary, #71717a);
  text-decoration: none;
}
.averlo-meta__gh:hover { text-decoration: underline; }

/* Homepage sections */
.averlo-home-section {
  margin: 1.75rem 0 0.5rem;
  padding: 0 0.15rem;
}
.averlo-home-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.averlo-home-section__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}
.averlo-home-section__head a {
  font-size: 0.85rem;
  color: var(--font-secondary, #71717a);
}
.averlo-home-section__week {
  font-size: 0.8rem;
  color: var(--font-secondary, #71717a);
  font-weight: 500;
}
.averlo-new-week-grid,
.averlo-trending-list {
  display: grid;
  gap: 0.65rem;
}
.averlo-new-week-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.averlo-trending-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--card-border, #e4e4e7);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg, #fff);
}
.averlo-trending-item__rank {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--font-secondary, #71717a);
  min-width: 1.5rem;
}
.averlo-trending-item img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}
.averlo-trending-item__meta {
  font-size: 0.78rem;
  color: var(--font-secondary, #71717a);
}

/* Stack builder */
.averlo-stack-builder {
  margin: 1.25rem 0 0.5rem;
  padding: 1.1rem 1rem;
  border: 1px solid var(--card-border, #e4e4e7);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--card-bg-subtle, #fafafa), var(--card-bg, #fff));
}
.averlo-stack-builder h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.averlo-stack-builder__hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--font-secondary, #71717a);
}
.averlo-stack-builder__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.averlo-stack-builder__form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--field-border, #d4d4d8);
  border-radius: 8px;
  background: var(--field-bg, #fff);
  color: inherit;
  font: inherit;
}
.averlo-stack-builder__templates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.averlo-stack-builder__templates a,
.averlo-stack-builder__templates button {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--card-border, #e4e4e7);
  background: var(--card-bg, #fff);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.averlo-stack-builder__result {
  margin-top: 1rem;
  display: none;
}
.averlo-stack-builder__result.is-open { display: block; }
.averlo-stack-builder__mcps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0;
}
.averlo-stack-builder__mcps a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--card-border, #e4e4e7);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  background: var(--card-bg, #fff);
}
.averlo-stack-builder__mcps img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.averlo-stack-builder__loading {
  font-size: 0.9rem;
  color: var(--font-secondary, #71717a);
}

/* Newsletter */
.averlo-newsletter {
  margin: 2rem 0 0.5rem;
  padding: 1.35rem clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--card-border, #e4e4e7);
  border-radius: 14px;
  background: var(--card-bg-subtle, #fafafa);
  display: grid;
  gap: 0.85rem;
}
.averlo-newsletter__copy {
  max-width: 36rem;
}
.averlo-newsletter__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--font-secondary, #71717a);
}
.averlo-newsletter h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.averlo-newsletter p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--font-secondary, #71717a);
}
.averlo-newsletter__form {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
  max-width: 28rem;
}
.averlo-newsletter__form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--field-border, #d4d4d8);
  border-radius: 8px;
  background: var(--field-bg, #fff);
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.averlo-newsletter__form input:focus {
  outline: none;
  border-color: #a1a1aa;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}
.averlo-newsletter__form button {
  flex: 0 0 auto;
  height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid #18181b;
  border-radius: 8px;
  background: #18181b;
  color: #fafafa;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}
.averlo-newsletter__form button:hover {
  background: #27272a;
  border-color: #27272a;
}
.averlo-newsletter__count {
  margin: 0;
  font-size: 0.8rem;
  color: var(--font-secondary, #71717a);
}
@media (max-width: 520px) {
  .averlo-newsletter__form {
    flex-direction: column;
    max-width: none;
  }
  .averlo-newsletter__form input,
  .averlo-newsletter__form button {
    width: 100%;
  }
}
html.dark-mode .averlo-newsletter {
  background: #15171c;
  border-color: #2e313c;
}
html.dark-mode .averlo-newsletter__form input {
  background: #111318;
  border-color: #3f3f46;
}
html.dark-mode .averlo-newsletter__form button {
  background: #fafafa;
  border-color: #fafafa;
  color: #18181b;
}

/* My stack sticky bar */
.averlo-mystack-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: min(720px, calc(100vw - 1.5rem));
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--card-border, #e4e4e7);
  background: var(--card-bg, #fff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}
.averlo-mystack-bar.is-visible {
  transform: translateX(-50%) translateY(0);
}
.averlo-mystack-bar__label {
  font-size: 0.88rem;
  flex: 1 1 160px;
}
.averlo-mystack-bar__actions {
  display: flex;
  gap: 0.4rem;
}

/* Exit intent */
.averlo-exit-intent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 300px;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--card-border, #e4e4e7);
  background: var(--card-bg, #fff);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  display: none;
}
.averlo-exit-intent.is-open { display: block; }
.averlo-exit-intent p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.averlo-exit-intent__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.averlo-exit-intent__actions .averlo-btn {
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

/* Mobile filter sheet */
.averlo-mobile-filter-btn {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--card-border, #e4e4e7);
  background: var(--button-primary-bg, #18181b);
  color: var(--button-primary-text, #fff);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
@media (max-width: 900px) {
  .averlo-mobile-filter-btn { display: inline-flex; }
  .averlo-mystack-bar.is-visible ~ .averlo-mobile-filter-btn,
  body.has-mystack .averlo-mobile-filter-btn {
    bottom: 4.5rem;
  }
}
.averlo-filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(0, 0, 0, 0.35);
}
.averlo-filter-sheet.is-open { display: block; }
.averlo-filter-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 70vh;
  overflow: auto;
  padding: 1rem 1rem 1.5rem;
  border-radius: 16px 16px 0 0;
  background: var(--card-bg, #fff);
}
.averlo-filter-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* Scroll top */
.averlo-scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 65;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--card-border, #e4e4e7);
  background: var(--card-bg, #fff);
  color: inherit;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.averlo-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Keyboard help */
.averlo-kbd-help {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
}
.averlo-kbd-help.is-open { display: flex; }
.averlo-kbd-help__panel {
  width: min(360px, 100%);
  padding: 1.1rem;
  border-radius: 12px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e4e4e7);
}
.averlo-kbd-help__panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.averlo-kbd-help__panel dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.85rem;
  font-size: 0.88rem;
}
.averlo-kbd-help__panel dt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
}

/* Detail page UX blocks */
.averlo-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0.55rem 0 0.75rem;
  font-size: 0.84rem;
  color: var(--font-secondary, #71717a);
  line-height: 1.35;
}
.averlo-status-row a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.averlo-status-row .averlo-badge {
  vertical-align: middle;
}
.averlo-install-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin: 0.65rem 0 0.85rem;
}
.averlo-install-quick__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--font-secondary, #71717a);
  margin-right: 0.15rem;
}
.averlo-install-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--card-border, #e4e4e7);
  background: var(--card-bg, #fff);
  color: var(--font-primary, #18181b);
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.averlo-install-chip:hover {
  border-color: #a1a1aa;
  background: var(--card-bg-subtle, #fafafa);
}
html.dark-mode .averlo-install-chip {
  background: transparent;
  border-color: #3f3f46;
  color: #e4e4e7;
}
html.dark-mode .averlo-install-chip:hover {
  background: #27272a;
  border-color: #71717a;
}

.averlo-mcp-hero__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.averlo-prompt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.averlo-prompt-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--card-border, #e4e4e7);
  border-radius: 10px;
  background: var(--card-bg-subtle, #fafafa);
}
.averlo-prompt-list li span {
  flex: 1;
  font-size: 0.9rem;
}
.averlo-tools-list {
  margin: 0;
  padding-left: 1.1rem;
}
.averlo-tools-list li {
  margin: 0.35rem 0;
}
.averlo-pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}
.averlo-pair-card {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--card-border, #e4e4e7);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg, #fff);
}
.averlo-pair-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.averlo-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}
.averlo-stats-row div {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--card-border, #e4e4e7);
  border-radius: 8px;
}
.averlo-stats-row dt {
  font-size: 0.72rem;
  color: var(--font-secondary, #71717a);
  margin: 0;
}
.averlo-stats-row dd {
  margin: 0.15rem 0 0;
  font-weight: 650;
  font-size: 0.92rem;
}

.averlo-stack-setup ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.averlo-stack-setup li {
  margin: 0.35rem 0;
}
.averlo-stack-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.averlo-category-featured {
  display: grid;
  gap: 0.25rem;
  margin: 0.85rem 0 1.1rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--card-border, #e4e4e7);
  border-radius: 12px;
  background: var(--card-bg-subtle, #fafafa);
}
.averlo-category-featured__label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--font-secondary, #71717a);
}
.averlo-category-featured__link {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--font-primary, #18181b);
  text-decoration: none;
  line-height: 1.3;
}
.averlo-category-featured__link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.averlo-category-featured__sub {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--font-secondary, #71717a);
}
.averlo-category-picks-wrap {
  margin: 0 0 1.15rem;
}
.averlo-category-picks-wrap > strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}
.averlo-category-picks {
  margin: 0;
  padding-left: 1.2rem;
}
.averlo-category-picks li {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--font-secondary, #71717a);
}
.averlo-category-picks a {
  font-weight: 600;
  color: var(--font-primary, #18181b);
  text-decoration: none;
}
.averlo-category-picks a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.averlo-sidebar-newsletter {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--divider, #e4e4e7);
}
.averlo-sidebar-newsletter h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}
.averlo-sidebar-newsletter p {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--font-secondary, #71717a);
}

/* —— Catalog directory (search-first utility; not homepage discovery) —— */
.averlo-catalog {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 3vw, 1.75rem) 3rem;
}
.averlo-catalog__hero {
  margin: 0 0 1.25rem;
  max-width: 40rem;
}
.averlo-catalog__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  color: var(--grey--600, #71717a);
}
.averlo-catalog__eyebrow a {
  color: inherit;
  text-decoration: none;
}
.averlo-catalog__eyebrow a:hover {
  text-decoration: underline;
}
.averlo-catalog__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.averlo-catalog__sub {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--grey--600, #71717a);
}
.averlo-catalog__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 0.75rem;
}
.averlo-catalog__primary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.averlo-catalog__controls-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.averlo-catalog__sort {
  min-height: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--grey--300, #e4e4e7);
  border-radius: 8px;
  background: var(--color--card-bg, #fff);
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  box-sizing: border-box;
}
.averlo-catalog__sort:hover {
  border-color: var(--grey--400, #d4d4d8);
}
.averlo-catalog__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  height: 2.25rem;
  padding: 0 0.85rem;
  border: 1px solid var(--grey--300, #e4e4e7);
  border-radius: 8px;
  background: var(--color--card-bg, #fff);
  color: var(--grey--700, #3f3f46);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 550;
  cursor: pointer;
  line-height: 1.2;
  box-sizing: border-box;
}
.averlo-catalog__action:hover {
  border-color: var(--grey--500, #a1a1aa);
  background: var(--grey--50, #fafafa);
}
.averlo-catalog .averlo-chip {
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}
.averlo-catalog .averlo-chip--more {
  border-style: dashed;
  color: var(--grey--600, #71717a);
  background: transparent;
}
.averlo-catalog .averlo-chip--more:hover {
  border-color: var(--grey--500, #a1a1aa);
  color: inherit;
  background: var(--grey--50, #fafafa);
}
.averlo-catalog .averlo-filters--cat {
  margin: 0 0 0.85rem;
}
.averlo-catalog__status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0 0 0.85rem;
}
.averlo-catalog__count {
  margin: 0;
  font-size: 0.95rem;
  color: inherit;
}
.averlo-catalog__count strong {
  font-weight: 650;
}
.averlo-catalog__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--grey--500, #71717a);
}
.averlo-catalog__context {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--grey--600, #71717a);
}
.averlo-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
}
.averlo-catalog__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1.5rem 0 0.5rem;
}
.averlo-catalog__pager[hidden] {
  display: none !important;
}
.averlo-catalog__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--grey--300, #e4e4e7);
  border-radius: 8px;
  background: var(--color--card-bg, #fff);
  color: var(--grey--700, #3f3f46);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 550;
  cursor: pointer;
  line-height: 1;
}
.averlo-catalog__page:hover:not(:disabled):not(.is-current) {
  border-color: var(--grey--500, #a1a1aa);
  background: var(--grey--50, #fafafa);
}
.averlo-catalog__page.is-current {
  background: var(--grey--900, #18181b);
  border-color: var(--grey--900, #18181b);
  color: #fff;
  cursor: default;
}
.averlo-catalog__page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.averlo-catalog__page--nav {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.averlo-catalog__page-gap {
  color: var(--grey--500, #71717a);
  padding: 0 0.15rem;
  font-size: 0.9rem;
}
.averlo-catalog__page-meta {
  width: 100%;
  text-align: center;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--grey--500, #71717a);
}
.averlo-catalog-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.05rem 0.9rem;
  border: 1px solid var(--grey--300, #e4e4e7);
  border-radius: 12px;
  background: var(--color--card-bg, #fff);
  min-height: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.averlo-catalog-card:hover,
.averlo-catalog-card:focus-within {
  border-color: var(--grey--500, #a1a1aa);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.averlo-catalog-card:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.averlo-catalog-card__main {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex: 1 1 auto;
}
.averlo-catalog-card__logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--grey--50, #fafafa);
}
.averlo-catalog-card__text {
  min-width: 0;
  flex: 1 1 auto;
}
.averlo-catalog-card__name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: inherit;
}
.averlo-catalog-card__desc {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--grey--600, #71717a);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.averlo-catalog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.75rem;
  color: var(--grey--600, #71717a);
}
.averlo-catalog-card__trust {
  font-weight: 650;
  color: #047857;
  background: color-mix(in srgb, #10b981 14%, transparent);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}
.averlo-catalog-card__stars {
  font-variant-numeric: tabular-nums;
}
.averlo-catalog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--grey--200, #f4f4f5);
}
.averlo-catalog-card__actions button,
.averlo-catalog-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  font-size: 0.78rem;
  font-weight: 550;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--grey--300, #e4e4e7);
  background: var(--color--card-bg, #fff);
  color: var(--grey--700, #3f3f46) !important;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.2;
  box-sizing: border-box;
}
.averlo-catalog-card__actions button[data-act="copy"] {
  background: var(--grey--900, #18181b);
  color: #fff !important;
  border-color: var(--grey--900, #18181b);
}
.averlo-catalog-card__actions button:hover,
.averlo-catalog-card__actions a:hover {
  border-color: var(--grey--600, #52525b);
}
.averlo-empty__suggest {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--grey--600, #71717a);
}
.averlo-empty__suggest a {
  margin-right: 0.65rem;
  color: inherit;
}
.averlo-catalog--category .averlo-category-nav {
  margin: 0 0 1rem;
}
@media (max-width: 720px) {
  .averlo-catalog__search {
    flex-direction: column;
  }
  .averlo-catalog__clear {
    right: 0.65rem;
    top: 1.15rem;
  }
  .averlo-catalog__search .button {
    width: 100%;
    text-align: center;
  }
  .averlo-catalog__grid {
    grid-template-columns: 1fr;
  }
  .averlo-catalog__controls {
    flex-direction: column;
    align-items: stretch;
  }
  .averlo-catalog__controls-end {
    justify-content: space-between;
  }
}

/* —— Averlo mobile site menu (Webflow hamburger was stripped) —— */
.averlo-mobile-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0 0.35rem 0 0;
  border: 1px solid var(--color--button-secondary-border, #e4e4e7);
  border-radius: 10px;
  background: var(--color--button-secondary-bg, #fff);
  color: var(--color--font-primary, #18181b);
  cursor: pointer;
  flex: 0 0 auto;
}
.averlo-mobile-nav__burger,
.averlo-mobile-nav__burger::before,
.averlo-mobile-nav__burger::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}
.averlo-mobile-nav__burger::before,
.averlo-mobile-nav__burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.averlo-mobile-nav__burger::before { top: -5px; }
.averlo-mobile-nav__burger::after { top: 5px; }

.averlo-mobile-nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.4);
}
.averlo-mobile-nav__backdrop[hidden] {
  display: none !important;
}
.averlo-mobile-nav__panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  width: min(20rem, 86vw);
  height: 100%;
  padding: 1rem 1.1rem 1.5rem;
  background: var(--card-bg, #fff);
  color: var(--color--font-primary, #18181b);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.14);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.averlo-mobile-nav__panel[hidden] {
  display: none !important;
}
.averlo-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border, #e4e4e7);
}
.averlo-mobile-nav__title {
  font-size: 0.95rem;
  font-weight: 600;
}
.averlo-mobile-nav__close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}
.averlo-mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.averlo-mobile-nav__links a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
}
.averlo-mobile-nav__links a:hover,
.averlo-mobile-nav__links a[aria-current="page"] {
  background: #f4f4f5;
}
html.dark-mode .averlo-mobile-nav__panel {
  background: #15171c;
  color: #f4f4f5;
}
html.dark-mode .averlo-mobile-nav__head {
  border-color: #2e313c;
}
html.dark-mode .averlo-mobile-nav__links a:hover,
html.dark-mode .averlo-mobile-nav__links a[aria-current="page"] {
  background: #1f222a;
}
html.dark-mode .averlo-mobile-nav__toggle {
  background: #1a1c22;
  border-color: #3f3f46;
  color: #f4f4f5;
}

@media (max-width: 991px) {
  .averlo-mobile-nav__toggle {
    display: inline-flex;
  }
}
body.averlo-mobile-nav-open {
  overflow: hidden;
}
/* Keep the empty shell out of a11y when closed — panel/backdrop use [hidden] */
#averlo-mobile-nav:empty {
  display: none;
}
