/* —— Hero: never hide it, keep it tight on small screens —— */
body.averlo-home .page_hero,
.page_hero {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

@media screen and (max-width: 991px) {
  .page_hero {
    gap: 1rem;
    padding: 0.75rem 1.25rem 0.75rem;
  }

  .home_hero-wrapper {
    width: 100% !important;
    max-width: 100%;
  }

  .hero_h1,
  .hero_h1-wrapper .h1-style {
    font-size: clamp(1.4rem, 6.4vw, 2.085rem) !important;
    line-height: 1.12 !important;
  }

  .hero_h1-wrapper {
    flex-wrap: wrap;
    overflow: visible !important;
  }

  .hero_h1,
  .hero_h1-wrapper .h1-style,
  .page_hero .h1-style {
    overflow: visible !important;
  }

  .averlo-hero-stats {
    font-size: 0.85rem !important;
  }

  body.averlo-home .page_hero .button,
  body.averlo-home .hero_wrapper .button {
    width: 100%;
    justify-content: center;
  }

  /* Keep hero clear of fixed nav — Webflow used large empty margin before */
  .page-content_wrapper {
    padding-top: 4.25rem !important;
  }

  body.averlo-home main.page-content {
    padding-top: 0.75rem !important;
    overflow: visible !important;
  }

  body.averlo-home .page_hero,
  body.averlo-home .page-content_container {
    overflow: visible !important;
  }
}

@media screen and (max-width: 479px) {
  .page_hero {
    padding: 0.5rem 1rem 0.5rem;
  }

  .hero_h1,
  .hero_h1-wrapper .h1-style {
    font-size: clamp(1.35rem, 7vw, 1.65rem) !important;
    line-height: 1.15 !important;
  }

  .hero_wrapper {
    gap: 0.6rem;
  }

  .page-content_wrapper {
    padding-top: 4rem !important;
  }
}

/* —— MCP cards: compact on mobile/tablet without breaking layout —— */
@media screen and (max-width: 991px) {
  .cms-collection_grid,
  .cms-collection_grid.is-latest {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-column-gap: 0.65rem !important;
    grid-row-gap: 0.75rem !important;
  }

  .cms-card_container {
    gap: 0.5rem !important;
  }

  .cms-card_header {
    gap: 0.5rem !important;
    padding-bottom: 0 !important;
    align-items: center;
  }

  .cms-card_logo-wrapper {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
  }

  .tool-card_logo {
    max-width: 26px;
    max-height: 26px;
  }

  .cms-card_header-top {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
  }

  .tool-card_tagline,
  .cms-card_header-bottom {
    font-size: 0.72rem !important;
    height: auto !important;
    max-height: 2.4em;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cms-card_img-wrapper {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 7;
    border-radius: 10px;
  }

  .cms-card_img {
    height: 100% !important;
    object-fit: cover;
  }

  /* Directory cards (.averlo-card) also stay compact */
  .averlo-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
  }

  .averlo-card {
    padding: 0.8rem;
  }

  .averlo-card-top img {
    width: 32px;
    height: 32px;
  }

  .averlo-card h2 {
    font-size: 0.9rem;
  }

  .averlo-card p {
    font-size: 0.78rem;
  }
}

@media screen and (max-width: 479px) {
  .cms-collection_grid,
  .cms-collection_grid.is-latest {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-column-gap: 0.5rem !important;
    grid-row-gap: 0.65rem !important;
  }

  .cms-card_logo-wrapper {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
  }

  .tool-card_logo {
    max-width: 22px;
    max-height: 22px;
  }

  .cms-card_header-top {
    font-size: 0.74rem !important;
    font-weight: 500;
  }

  .tool-card_tagline,
  .cms-card_header-bottom {
    font-size: 0.66rem !important;
  }

  .cms-card_img-wrapper {
    aspect-ratio: 16 / 6;
  }

  .averlo-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .averlo-sponsor-card {
    padding: 1.1rem 0.8rem 0.9rem;
    min-height: 0;
  }

  .averlo-sponsor-card__emoji {
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
  }

  .averlo-sponsor-card__logo,
  .averlo-sponsor-card__logo img {
    width: 34px;
    height: 34px;
  }

  .averlo-sponsor-card__name {
    font-size: 0.85rem;
  }

  .averlo-sponsor-card__tagline {
    font-size: 0.72rem;
  }
}

/* —— Footer mobile tweaks keep working with the compact cards —— */
@media screen and (max-width: 767px) {
  .home_section-header {
    gap: 0.5rem;
  }

  .home_section-header .button {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }
}


.averlo-logo-wrap {
  display: flex;
  align-items: center;
}

.averlo-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.averlo-brand__mark {
  display: block;
  height: 36px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.nav_logo-wrapper .averlo-brand__mark,
.left-sidebar_container .averlo-brand__mark {
  height: 34px;
}

/* Hide third-party floating chrome without touching Webflow layout */
.w-webflow-badge,
.w-webflow-badge > img {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#ms-inspector-badge,
.ms-inspector-badge {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* MCP card heroes are center-composed SVGs */
.cms-card_img {
  object-fit: cover;
  object-position: center center;
}

.card_actions.is-stack,
.card_actions,
.bookmark_logged-out,
.bookmark_logged-in,
.product-hunt_badges,
.product-hunt_award,
.sponsor-home,
.preloader,
.form_modal-wrapper,
.form_abolute-container,
.social-share-wrapper,
.jetboost-toggle-favorite-ljq1,
.jetboost-toggle-favorite,
.hide-jb-embed,
.jb_favorite-link,
[data-ms-content="members"],
.nav_right-logged-in,
.nav_mobile-menu-login {
  display: none !important;
}

.banner {
  display: none !important;
}

a[aria-label="bookmark"],
.icon[aria-label="bookmark outlined"],
.icon[aria-label="bookmark filled"] {
  display: none !important;
}

/* Agent stack cards — keep icon row inside the card */
.stack-list_wrapper .stack-card_wrapper {
  position: relative;
  min-height: 11.5rem;
}

.stack-list_wrapper .stack-card_cms-wrapper {
  position: absolute;
  top: 14px;
  left: 14px;
  width: auto;
  max-width: calc(100% - 28px);
  pointer-events: none;
}

.stack-list_wrapper .stack-card_cms-list {
  flex-wrap: wrap;
  max-width: 100%;
}

.stack-list_wrapper .stack-card_cms-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.stack-list_wrapper .stack-card_cms-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.stack-list_wrapper .cms-collection_item {
  overflow: hidden;
}

/* Inner pages that reuse the homepage shell (nav + sidebar) */
.averlo-site-page {
  padding: 0 0 3rem;
  max-width: none;
}

main.page-content .home_section.wrapper.averlo-site-page {
  padding-top: 0.5rem;
}

.averlo-site-page .averlo-toolbar {
  margin-top: 1.25rem;
}

.averlo-site-prose {
  max-width: 52rem;
}

.averlo-site-prose ul {
  padding-left: 1.25rem;
}

.averlo-site-prose li {
  margin: 0.35rem 0;
}

.averlo-mcp-topbar,
.averlo-mcp-topbar__back,
.averlo-mcp-theme-toggle {
  display: none !important;
}

a.button.averlo-nav-submit {
  text-decoration: none;
}

.nav_right-logged-out .averlo-nav-submit {
  flex-shrink: 0;
}

body:not(.averlo-home) .contents_tabs {
  display: none !important;
}

.averlo-mcp-detail-in-shell .averlo-mcp-hero,
.averlo-mcp-detail-in-shell .averlo-mcp-layout {
  max-width: none;
}

.averlo-mcp-detail-in-shell .averlo-mcp-hero {
  padding-top: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color--divider, #e4e4e7);
  margin-bottom: 1rem;
}

.averlo-mcp-detail-in-shell .averlo-mcp-layout {
  padding-top: 0;
}

.averlo-mcp-detail-in-shell .averlo-mcp-footer {
  margin-top: 1.5rem;
  max-width: none;
  padding-top: 1.15rem;
  border-top: 1px solid var(--color--divider, #e4e4e7);
}

.averlo-mcp-detail-in-shell .averlo-breadcrumbs {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}

/* Layout: natural page height — avoid pinning footer in the viewport */
.page-content_wrapper {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto !important;
  overflow: visible !important;
}

body.averlo-home .page-content_container {
  height: auto !important;
  max-height: none !important;
  /* keep flex so sidebar + main sit side-by-side */
  display: flex !important;
  align-items: stretch;
}

/* Hide leftover magazine floating tabs — keep the sidebar */
body.averlo-home .contents_tabs,
body.averlo-home .tabs,
body.averlo-directory-page .contents_tabs,
body.averlo-directory-page .tabs {
  display: none !important;
}

body.averlo-home main.page-content,
body.averlo-directory-page main.page-content,
body.averlo-catalog-page main.page-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.page-content_container {
  height: auto !important;
  max-height: none !important;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

body.averlo-home .page_sidebar {
  max-width: 15rem;
  min-width: 12.5rem;
  width: 14rem;
  flex: 0 0 14rem;
}
body.averlo-home .sidebar-section_header,
body.averlo-home .sidebar-section-header {
  font-size: 0.78rem;
}
@media (max-width: 900px) {
  body.averlo-home .page_sidebar {
    display: none !important;
  }
}

/* Sidebar list items were clipped (max-height: 16.5svh + overflow hidden from
   the original Webflow CSS; the expand-on-click interactions no longer exist).
   Show the full lists — the sidebar wrapper itself scrolls. */
.sidebar-collection_list {
  max-height: none;
  overflow: visible;
}

main.page-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
}

/* Webflow ships ~48px top padding on main — tightens hero / directory start */
body.averlo-home main.page-content {
  padding-top: 1.25rem;
}

body:not(.averlo-home) main.page-content {
  padding-top: 1rem;
}

body:not(.averlo-home) .page-content_wrapper {
  height: auto !important;
  min-height: 0;
  overflow: visible;
}

/* Webflow mobile: 6–13.5svh margin-top on .page-content_container leaves a huge empty band */
@media screen and (max-width: 991px) {
  .page-content_container,
  .page-content_container.is-all-tools {
    margin-top: 0 !important;
    flex-direction: column;
  }

  .page_sidebar {
    display: none !important;
  }

  .page-content_wrapper {
    padding-top: 4.25rem;
  }

  body.averlo-home main.page-content {
    padding-top: 0.75rem;
  }
}

/* Site footer */
.page-content_wrapper > .averlo-site-footer,
.page-content_container > .averlo-site-footer,
.averlo-site-footer {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  clear: both;
  align-self: stretch;
  margin-top: 2.5rem;
  border-top: 1px solid var(--color--divider, #e4e4e7);
  background: #fff;
  color: var(--color--font-primary, #18181b);
  padding: 2.25rem clamp(1rem, 3vw, 1.75rem) 1.35rem;
}

.averlo-site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.averlo-site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 1.5rem 2.75rem;
  align-items: end;
}

.averlo-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.averlo-site-footer__logo {
  display: inline-flex;
  text-decoration: none;
  line-height: 0;
  width: fit-content;
}

.averlo-site-footer__logo .averlo-brand__mark {
  height: 28px;
}

.averlo-site-footer__tagline {
  margin: 0;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--color--font-secondary, #52525b);
}

.averlo-site-footer__subscribe {
  min-width: 0;
}

.averlo-site-footer__subscribe-label {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.averlo-site-footer__subscribe-hint {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--color--font-secondary, #71717a);
}

.averlo-site-footer__form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.averlo-site-footer__form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 0.9rem !important;
  margin: 0 !important;
  border: 1px solid #d4d4d8 !important;
  border-radius: 8px !important;
  background: #fafafa !important;
  color: inherit !important;
  font: inherit !important;
  font-size: 0.9rem !important;
  line-height: 44px !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.averlo-site-footer__form input[type="email"]:focus {
  outline: none;
  background: #fff !important;
  border-color: #a1a1aa !important;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.averlo-site-footer__submit {
  flex: 0 0 auto;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 1.15rem !important;
  margin: 0 !important;
  border: 1px solid #18181b !important;
  border-radius: 8px !important;
  background: #18181b !important;
  color: #fafafa !important;
  font: inherit !important;
  font-size: 0.875rem !important;
  font-weight: 550 !important;
  line-height: 1 !important;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.averlo-site-footer__submit:hover {
  background: #27272a;
  border-color: #27272a;
}

.averlo-site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  padding-top: 0.15rem;
}

.averlo-site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.averlo-site-footer__col-title {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.averlo-site-footer__col a {
  color: #52525b;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
}

.averlo-site-footer__col a:hover {
  color: #18181b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.averlo-site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color--divider, #e4e4e7);
}

.averlo-site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: #71717a;
}

.averlo-site-footer__copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.dark-mode .averlo-site-footer {
  background-color: var(--dark--theme-bg, #191b21);
  border-top-color: var(--dark--divider, #2e313c);
}

html.dark-mode .averlo-site-footer__form input[type="email"] {
  background: #111318;
  border-color: #3f3f46;
  color: #f4f4f5;
}

html.dark-mode .averlo-site-footer__submit {
  background: #fafafa;
  border-color: #fafafa;
  color: #18181b;
}

html.dark-mode .averlo-site-footer__submit:hover {
  background: #e4e4e7;
  border-color: #e4e4e7;
}

html.dark-mode .averlo-site-footer__bottom {
  border-top-color: var(--dark--divider, #2e313c);
}

html.dark-mode .averlo-site-footer__col a {
  color: #a1a1aa;
}

html.dark-mode .averlo-site-footer__col a:hover {
  color: #fafafa;
}

@media (max-width: 760px) {
  .averlo-site-footer {
    padding: 1.85rem 1rem 1.2rem;
    margin-top: 2rem;
  }

  .averlo-site-footer__top {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.35rem;
  }

  .averlo-site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .averlo-site-footer__form {
    flex-direction: column;
  }

  .averlo-site-footer__form input[type="email"],
  .averlo-site-footer__submit {
    width: 100%;
    height: 2.95rem;
  }
}

body.averlo-mcp-detail,
body.averlo-stack-detail {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

body.averlo-mcp-detail > .averlo-site-footer,
body.averlo-stack-detail > .averlo-site-footer {
  margin-top: auto;
}

.averlo-card-top img,
.averlo-grid .averlo-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.averlo-breadcrumbs {
  font-size: 0.8rem;
  color: var(--font-color_secondary, #6b7280);
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.averlo-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.averlo-breadcrumbs a:hover {
  text-decoration: underline;
}

.averlo-env-warning {
  font-size: 0.9rem;
  color: #b45309;
  margin: 0.35rem 0 0.5rem;
}

.averlo-badge--warn {
  background: #fef3c7;
  color: #92400e;
}

.averlo-badge-page .averlo-embed-code {
  font-size: 0.75rem;
  overflow-x: auto;
  padding: 0.75rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
}

/* —— Kill Webflow's electric #0001fd default link color —— */
a {
  color: inherit;
}

a:hover {
  color: inherit;
}

/* Bare inline text links: readable, not blue */
.averlo-hero-stats a,
.font-color_secondary a,
.averlo-section-lead a,
.averlo-mcp-facts__row a,
.averlo-install-setup-link,
p a:not([class]),
dd a:not([class]),
li a:not([class]),
td a:not([class]) {
  color: var(--color--font-primary, #0d0d0d);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--color--divider, #d4d4d8);
}

.averlo-hero-stats a:hover,
.font-color_secondary a:hover,
.averlo-section-lead a:hover,
.averlo-mcp-facts__row a:hover,
.averlo-install-setup-link:hover,
p a:not([class]):hover,
dd a:not([class]):hover,
li a:not([class]):hover,
td a:not([class]):hover {
  text-decoration-color: currentColor;
}

html.dark-mode .averlo-hero-stats a,
html.dark-mode .font-color_secondary a,
html.dark-mode .averlo-section-lead a,
html.dark-mode .averlo-mcp-facts__row a,
html.dark-mode .averlo-install-setup-link,
html.dark-mode p a:not([class]),
html.dark-mode dd a:not([class]),
html.dark-mode li a:not([class]),
html.dark-mode td a:not([class]) {
  color: var(--color--font-primary, #f4f4f5);
}

/* Stack bar / chrome buttons must never fall through to Webflow blue */
a.averlo-btn,
button.averlo-btn,
.averlo-btn {
  color: var(--color--font-primary, #0d0d0d);
  text-decoration: none;
}

a.averlo-btn--primary,
.averlo-btn--primary {
  color: var(--color--button-primary-text, #ffffff);
}

a.averlo-btn--secondary,
.averlo-btn--secondary {
  color: var(--color--button-secondary-text, #0d0d0d);
}

a.averlo-btn--ghost,
.averlo-btn--ghost {
  color: var(--color--font-secondary, #67676d);
}

html.dark-mode a.averlo-btn--secondary,
html.dark-mode .averlo-btn--secondary {
  color: var(--dark--button-secondary-text, #fff);
}

html.dark-mode a.averlo-btn--ghost,
html.dark-mode .averlo-btn--ghost {
  color: var(--color--font-secondary, #a1a1aa);
}
