/* IONTMAX Ambassador Team for Shoptet - v1.0.5 */
#iontmax-ambassador-team-app,
#iontmax-ambassador-team-app * {
  box-sizing: border-box;
}

/* The Shoptet article template limits custom pages to a narrow text column.
   The JS adds these host classes only on the Ambassador Team page. */
body.iontmax-at-page .iontmax-at-host-content,
body.iontmax-at-page .iontmax-at-host-inner,
body.iontmax-at-page .iontmax-at-host-article,
body.iontmax-at-page .iontmax-at-host-about {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

#iontmax-ambassador-team-app {
  position: relative;
  left: 50%;
  display: block !important;
  width: min(1280px, calc(100vw - 48px)) !important;
  max-width: none !important;
  margin: 0 0 50px !important;
  transform: translateX(-50%);
}

.iontmax-at {
  --iontmax-at-accent: #d8007f;
  --iontmax-at-black: #070707;
  --iontmax-at-border: #e6e6e6;
  width: 100%;
  margin: 0;
  color: #111;
  font-family: inherit;
}

.iontmax-at__intro {
  position: relative;
  overflow: hidden;
  margin: 18px 0 16px;
  padding: 34px 38px;
  border: 1px solid var(--iontmax-at-border);
  border-radius: 26px;
  background: #fff;
}

.iontmax-at__intro::after {
  content: "";
  position: absolute;
  right: -45px;
  top: -94px;
  width: 260px;
  height: 260px;
  border: 42px solid #f3f3f3;
  border-radius: 50%;
  pointer-events: none;
}

.iontmax-at__eyebrow {
  position: relative;
  z-index: 2;
  margin-bottom: 9px;
  color: var(--iontmax-at-accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.iontmax-at__intro h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 9px !important;
  color: #000 !important;
  font-size: clamp(38px, 4.1vw, 58px) !important;
  line-height: .98 !important;
  font-weight: 950 !important;
  letter-spacing: -.04em;
}

.iontmax-at__intro p {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0;
  color: #444;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}

.iontmax-at__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.iontmax-at__stat {
  display: flex;
  align-items: baseline;
  gap: 13px;
  min-height: 96px;
  padding: 22px 28px;
  border: 1px solid var(--iontmax-at-border);
  border-radius: 22px;
  background: #fff;
}

.iontmax-at__stat strong {
  color: #000;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.045em;
}

.iontmax-at__stat span {
  color: #4c4c4c;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.iontmax-at__filter-panel {
  margin-bottom: 22px;
  padding: 20px 22px;
  border: 1px solid var(--iontmax-at-border);
  border-radius: 22px;
  background: #fff;
}

.iontmax-at__filter-label {
  margin: 0 0 12px;
  color: #666;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.iontmax-at__filters {
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 9px;
  overflow: visible;
}

.iontmax-at__filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #f7f7f7;
  color: #111;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.iontmax-at__filter span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.iontmax-at__filter:hover {
  transform: translateY(-1px);
  border-color: #aaa;
  background: #fff;
}

.iontmax-at__filter small {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 10px;
  font-weight: 950;
}

.iontmax-at__filter.is-active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.iontmax-at__filter.is-active small {
  background: var(--iontmax-at-accent);
  color: #fff;
}

.iontmax-at__body {
  min-height: 160px;
}

.iontmax-at__loader,
.iontmax-at__empty,
.iontmax-at__error {
  padding: 24px;
  border: 1px solid var(--iontmax-at-border);
  border-radius: 20px;
  background: #fff;
  font-weight: 900;
}

.iontmax-at__loader {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iontmax-at__loader span {
  width: 28px;
  height: 28px;
  border: 4px solid #eee;
  border-top-color: var(--iontmax-at-accent);
  border-radius: 50%;
  animation: iontmaxAtSpin .8s linear infinite;
}

@keyframes iontmaxAtSpin {
  to { transform: rotate(360deg); }
}

.iontmax-at__error {
  color: #a40000;
}

.iontmax-at__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.iontmax-at__member {
  display: grid;
  grid-template-columns: minmax(270px, 46%) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--iontmax-at-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .055);
  animation: iontmaxAtReveal .5s cubic-bezier(.2, .75, .25, 1) both;
  animation-delay: var(--iontmax-at-delay, 0ms);
}

@keyframes iontmaxAtReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.iontmax-at__photo {
  position: relative;
  align-self: start;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ececec;
}

.iontmax-at__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .55s cubic-bezier(.2, .75, .25, 1);
}

.iontmax-at__member:hover .iontmax-at__photo img {
  transform: scale(1.035);
}

.iontmax-at__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(0, 0, 0, .42), transparent);
  pointer-events: none;
}

.iontmax-at__photo-mark {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.iontmax-at__photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #171717, #050505);
  color: #fff;
}

.iontmax-at__photo-placeholder span {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .12em;
}

.iontmax-at__content {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  padding: 28px 28px 25px;
}

.iontmax-at__sports {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.iontmax-at__sports span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #222;
  font-size: 9px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.iontmax-at__content h3 {
  margin: 0 0 14px !important;
  color: #000 !important;
  font-size: clamp(30px, 2.25vw, 42px) !important;
  line-height: 1.01 !important;
  font-weight: 950 !important;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.iontmax-at__achievements {
  max-width: 48ch;
  margin: 0 0 22px;
  color: #454545;
  font-size: 14px;
  line-height: 1.62;
  font-weight: 520;
  overflow-wrap: anywhere;
}

.iontmax-at__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.iontmax-at__socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  color: #111 !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 900;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.iontmax-at__socials a:hover {
  transform: translateY(-1px);
  border-color: #111;
  background: #111;
  color: #fff !important;
}

.iontmax-at__socials svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.iontmax-at__social--facebook svg {
  fill: currentColor;
  stroke: none;
}

.iontmax-at__social--website svg,
.iontmax-at__social--instagram svg {
  fill: none;
  stroke: currentColor;
}

.iontmax-at__socials span {
  white-space: nowrap;
}

/* One wide horizontal member per row before the mobile layout becomes compact. */
@media (max-width: 1180px) {
  #iontmax-ambassador-team-app {
    width: min(980px, calc(100vw - 40px)) !important;
  }

  .iontmax-at__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .iontmax-at__member {
    grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  #iontmax-ambassador-team-app {
    left: auto;
    width: 100% !important;
    max-width: 100% !important;
    transform: none;
  }

  .iontmax-at__intro {
    padding: 23px 21px;
    border-radius: 20px;
  }

  .iontmax-at__intro::after {
    right: -100px;
  }

  .iontmax-at__intro h2 {
    font-size: clamp(31px, 8vw, 42px) !important;
  }

  .iontmax-at__intro p {
    font-size: 14px;
  }

  .iontmax-at__summary {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .iontmax-at__stat {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 88px;
    padding: 14px 16px;
  }

  .iontmax-at__stat strong {
    font-size: 36px;
  }

  .iontmax-at__stat span {
    font-size: 10px;
  }

  .iontmax-at__filter-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .iontmax-at__filters {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 7px;
    overflow: visible;
    padding-bottom: 0;
  }

  .iontmax-at__filter {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 38px;
    gap: 7px;
    padding: 8px 11px;
    font-size: 11px;
    white-space: normal;
  }

  .iontmax-at__filter span {
    min-width: 0;
    max-width: 100%;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .iontmax-at__filter small {
    flex: 0 0 auto;
  }

  .iontmax-at__grid {
    gap: 13px;
  }

  .iontmax-at__member {
    grid-template-columns: minmax(132px, 36%) minmax(0, 1fr);
    align-items: start;
    border-radius: 20px;
  }

  .iontmax-at__content {
    min-height: 100%;
    padding: 17px 18px 17px;
  }

  .iontmax-at__sports {
    margin-bottom: 9px;
  }

  .iontmax-at__content h3 {
    margin-bottom: 9px !important;
    font-size: clamp(22px, 6vw, 30px) !important;
    line-height: 1.04 !important;
  }

  .iontmax-at__achievements {
    margin-bottom: 12px;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .iontmax-at__socials {
    padding-top: 2px;
  }

  .iontmax-at__socials a {
    width: 38px;
    justify-content: center;
    padding: 8px;
  }

  .iontmax-at__socials a span {
    display: none;
  }
}

@media (max-width: 560px) {
  .iontmax-at__intro {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .iontmax-at__intro h2 {
    font-size: 28px !important;
  }

  .iontmax-at__intro p {
    font-size: 13px;
    line-height: 1.45;
  }

  .iontmax-at__summary {
    gap: 7px;
  }

  .iontmax-at__stat {
    min-height: 76px;
    padding: 11px 12px;
  }

  .iontmax-at__stat strong {
    font-size: 30px;
  }

  .iontmax-at__stat span {
    font-size: 8px;
    line-height: 1.25;
  }

  .iontmax-at__filter-panel {
    padding: 11px;
  }

  .iontmax-at__filters {
    gap: 6px;
  }

  .iontmax-at__filter {
    min-height: 34px;
    gap: 6px;
    padding: 6px 9px;
    font-size: 9.5px;
  }

  .iontmax-at__filter small {
    min-width: 19px;
    height: 19px;
    font-size: 8px;
  }

  .iontmax-at__member {
    grid-template-columns: minmax(108px, 34%) minmax(0, 1fr);
    border-radius: 18px;
  }

  .iontmax-at__photo-mark {
    left: 8px;
    bottom: 7px;
    font-size: 7px;
    letter-spacing: .08em;
  }

  .iontmax-at__photo-placeholder span {
    font-size: 12px;
    letter-spacing: .08em;
  }

  .iontmax-at__content {
    padding: 11px 12px 12px;
  }

  .iontmax-at__sports {
    gap: 4px;
    margin-bottom: 8px;
  }

  .iontmax-at__sports span {
    padding: 4px 6px;
    font-size: 7.5px;
    letter-spacing: .04em;
  }

  .iontmax-at__content h3 {
    margin-bottom: 8px !important;
    font-size: clamp(18px, 5.4vw, 22px) !important;
  }

  .iontmax-at__achievements {
    margin-bottom: 10px;
    font-size: 11.5px;
    line-height: 1.43;
  }

  .iontmax-at__socials {
    gap: 5px;
  }

  .iontmax-at__socials a {
    width: 32px;
    min-height: 32px;
    padding: 6px;
    border-radius: 10px;
  }

  .iontmax-at__socials svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 380px) {
  .iontmax-at__filter-panel {
    padding: 10px;
  }

  .iontmax-at__filters {
    gap: 5px;
  }

  .iontmax-at__filter {
    min-height: 32px;
    gap: 5px;
    padding: 6px 8px;
    font-size: 9px;
  }

  .iontmax-at__filter small {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 7.5px;
  }

  .iontmax-at__member {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .iontmax-at__content {
    padding: 9px 10px 10px;
  }

  .iontmax-at__content h3 {
    font-size: 17px !important;
  }

  .iontmax-at__achievements {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iontmax-at__loader span,
  .iontmax-at__member {
    animation: none;
  }

  .iontmax-at__photo img,
  .iontmax-at__filter,
  .iontmax-at__socials a {
    transition: none;
  }
}
