/*
Theme Name: TrustLinks Custom Phase 2.1
Theme URI: https://trustlinks.net/
Author: TrustLinks
Description: Phase 2.1 React/Vite UI with selected Arena shell, legal/contact and SEO fixes, plus native Industry catalogs and CBD product pages.
Version: 0.2.6
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: trustlinks-custom
*/

.tl-wp-native-content {
  min-height: 50vh;
}

/*
 * Homepage — Most Requested Editorial Services
 * Keep the desktop design intact while preventing cramped/cut mobile layouts.
 */
.tl-most-requested {
  overflow: hidden;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 639px) {
  .tl-most-requested {
    border-radius: 1.35rem !important;
    padding: 1.75rem 0.875rem !important;
  }

  .tl-most-requested > div:first-child {
    padding-inline: 0.25rem;
  }

  .tl-most-requested > div:first-child > p:first-child {
    gap: 0.4rem !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.19em !important;
    white-space: nowrap;
  }

  .tl-most-requested > div:first-child > p:first-child span {
    width: 1rem !important;
    flex: 0 0 1rem;
  }

  .tl-most-requested > div:first-child > h2 {
    margin-top: 0.75rem !important;
    font-size: clamp(1.65rem, 8vw, 2.05rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    text-wrap: balance;
  }

  .tl-most-requested > div:first-child > p:last-child {
    margin-top: 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }

  .tl-most-requested > div:nth-child(2) {
    margin-top: 1.75rem !important;
    gap: 1.75rem !important;
  }

  .tl-most-requested > div:nth-child(2) > div > div:first-child {
    margin-bottom: 0.75rem !important;
    gap: 0.65rem !important;
  }

  .tl-most-requested > div:nth-child(2) > div > div:first-child > span {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 0.65rem !important;
    font-size: 0.95rem !important;
  }

  .tl-most-requested > div:nth-child(2) > div > div:first-child > h3 {
    font-size: 1rem !important;
  }

  .tl-editorial-product-row {
    width: 100%;
    min-width: 0;
    gap: 0.625rem !important;
    border-radius: 0.9rem !important;
    padding: 0.7rem !important;
  }

  .tl-editorial-product-row > span:first-child {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 0.65rem !important;
    font-size: 0.9rem !important;
  }

  .tl-editorial-product-row > div:nth-child(2) {
    min-width: 0 !important;
  }

  .tl-editorial-product-row > div:nth-child(2) > p:first-child {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
  }

  .tl-editorial-product-row > div:nth-child(2) > div {
    margin-top: 0.3rem !important;
    gap: 0.35rem 0.45rem !important;
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
  }

  .tl-editorial-product-row > div:last-child {
    min-width: 2.65rem;
  }

  .tl-editorial-product-row > div:last-child > p:first-child {
    font-size: 0.5rem !important;
    letter-spacing: 0.06em !important;
  }

  .tl-editorial-product-row > div:last-child > p:last-child {
    font-size: 0.95rem !important;
    line-height: 1.15 !important;
  }
}

@media (max-width: 374px) {
  .tl-most-requested {
    padding-inline: 0.625rem !important;
  }

  .tl-editorial-product-row {
    gap: 0.5rem !important;
    padding: 0.625rem !important;
  }

  .tl-editorial-product-row > span:first-child {
    width: 2rem !important;
    height: 2rem !important;
  }

  .tl-editorial-product-row > div:nth-child(2) > p:first-child {
    font-size: 0.7rem !important;
  }
}
