/* Responsive fixes on top of the original build (styles-*.css).
   Only layout/size changes for small screens; animations, colors and effects are untouched.
   Bump the file name (v2, v3...) when editing: /assets/ is cached as immutable. */

/* 1) /products hero: 5 mascots in one row overflowed and got clipped below 1024px */
@media (max-width: 1023.98px) {
  ul[class~="md:gap-10"][class~="items-end"] > li > a > img[class~="h-36"] { height: 9rem; }
  ul[class~="md:gap-10"][class~="items-end"] > li > a > img[class~="h-32"],
  ul[class~="md:gap-10"][class~="items-end"] > li > a > span[class~="h-32"] { height: 8rem; }
  ul[class~="md:gap-10"][class~="items-end"] > li > a > img[class~="h-28"] { height: 7rem; }
  ul[class~="md:gap-10"][class~="items-end"] { column-gap: 1.25rem; }
}
@media (max-width: 767.98px) {
  /* 3 on top, 2 centered below */
  ul[class~="md:gap-10"][class~="items-end"] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    justify-items: center;
    column-gap: 0.5rem;
    row-gap: 1.75rem;
  }
  ul[class~="md:gap-10"][class~="items-end"] > li { grid-column: span 2; }
  ul[class~="md:gap-10"][class~="items-end"] > li:nth-child(4) { grid-column: 2 / 4; }
  ul[class~="md:gap-10"][class~="items-end"] > li:nth-child(5) { grid-column: 4 / 6; }
  ul[class~="md:gap-10"][class~="items-end"] > li > a > img[class~="h-36"] { height: 6.75rem; }
  ul[class~="md:gap-10"][class~="items-end"] > li > a > img[class~="h-32"],
  ul[class~="md:gap-10"][class~="items-end"] > li > a > span[class~="h-32"] { height: 6rem; }
  ul[class~="md:gap-10"][class~="items-end"] > li > a > img[class~="h-28"] { height: 5.25rem; }
  ul[class~="md:gap-10"][class~="items-end"] > li > a > span[class~="whitespace-nowrap"] {
    font-size: 0.75rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }
}

/* 2) /products detail sections: header and mascot bubble pushed the column wider than small phones */
@media (max-width: 639.98px) {
  .grid > [class~="lg:col-span-5"],
  .grid > [class~="lg:col-span-7"] { min-width: 0; }
  [class~="lg:col-span-5"] > .flex.items-center.gap-5 { gap: 1rem; }
  [class~="lg:col-span-5"] > .flex.items-center.gap-5 > span.h-24 {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2.25rem;
    border-radius: 1.25rem;
  }
  [class~="lg:col-span-5"] > .flex.items-center.gap-5 > span.h-24 > img { width: 3rem; height: 3rem; }
  [class~="lg:col-span-5"] > .flex.items-center.gap-5 h2 { font-size: 1.875rem; overflow-wrap: anywhere; }
  [class~="lg:col-span-7"] > .mb-6.flex > span { min-width: 0; padding-left: 1rem; padding-right: 1rem; }
  [class~="lg:col-span-7"] > .mb-6.flex > img.h-36 { height: 7rem; }
}

/* 2b) /products Ket Space comparison table: 3 columns got clipped on 320–360px phones */
@media (max-width: 399.98px) {
  .grid[class~="grid-cols-[1fr_1.2fr_1.2fr]"] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
    font-size: 13px;
  }
  .grid[class~="grid-cols-[1fr_1.2fr_1.2fr]"] > div {
    padding: 0.75rem 0.625rem;
    gap: 0.375rem;
    overflow-wrap: anywhere;
  }
}

/* 3) /about "New OmniChat B2B2C" diagram overflowed on 320–360px phones */
@media (max-width: 399.98px) {
  figure > .mt-3.flex.items-center.justify-center.gap-2 { gap: 0.25rem; flex-wrap: wrap; }
  figure > .mt-3.flex.items-center.justify-center.gap-2 > .flex { gap: 0.25rem; }
  figure > .mt-3.flex.items-center.justify-center.gap-2 .rounded-xl { padding-left: 0.5rem; padding-right: 0.5rem; }
}
