.ah-partner-strip {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 8px 18px;
  overflow: hidden;
  border: 1px solid #747d89;
  border-top-color: #d7dce2;
  border-bottom-color: #4c535d;
  border-radius: 5px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, rgba(0, 0, 0, .035) 1px 2px),
    linear-gradient(100deg, #9ba3ad, #eef1f4 16%, #a8b0ba 34%, #f5f6f7 52%, #969fa9 72%, #e5e8eb 88%, #8d96a1);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .82),
    inset 0 -1px rgba(32, 38, 46, .34),
    0 8px 22px rgba(0, 0, 0, .28);
}

.ah-partner-strip::before,
.ah-partner-strip::after {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(25, 31, 39, .34), transparent);
}

.ah-partner-strip::before { top: 5px; }
.ah-partner-strip::after { bottom: 5px; }

:is(body.ah-app:not(.ah-preauth), body.ah-admin-app) main {
  min-height: 100vh;
  min-height: 100svh;
  margin-bottom: 0;
}

:is(body.ah-app, body.ah-admin-app) .footer {
  position: static;
  bottom: auto;
  margin-top: 0;
  height: auto;
  line-height: normal;
  z-index: 0;
  padding-block: 28px !important;
  padding-inline: 42px;
}

.ah-app .footer.ah-challenges-footer {
  position: static;
  bottom: auto;
  margin-top: 0;
}

/* Logo strip laid out like the official event strip: 주관 then 후원, logos packed and
   centered (not spread), every size taken from that strip in its own pixels ("ref px").
   --ah-u is how many screen px one ref px is; it follows the strip's width, so the
   whole row always fits. Below ~980px of strip, 주관 and 후원 go on two rows. */
.ah-partner-strip { container-type: inline-size; }

.ah-partner-strip-list {
  --ah-u: clamp(.45px, calc((100cqw - 48px) / 1340), 1.1px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: calc(22 * var(--ah-u));
}

.ah-partner-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: calc(22 * var(--ah-u));
}

/* 주관 logos sit close together, 후원 logos further apart, as on the official strip. */
.ah-partner-group:first-child { gap: calc(12 * var(--ah-u)); }
.ah-partner-group:first-child .ah-partner-role { margin-right: 0; }

.ah-partner-role {
  flex: none;
  color: #1d2430;
  font-size: max(11px, calc(17 * var(--ah-u)));
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ah-partner-card {
  display: grid;
  place-items: center;
  flex: none;
  height: max(28px, calc(40 * var(--ah-u)));
  padding: 0;
  background: transparent;
}

.ah-partner-strip img {
  display: block;
  width: auto;
  max-width: none;
  height: calc(var(--ah-logo-h, 18) * var(--ah-u));
  object-fit: contain;
  filter: none;
  transform: translateY(calc(var(--ah-logo-y, 0) * var(--ah-u)));
}

/* ===== 로고별 손보기 (여기 숫자만 바꾸면 됩니다) =====
   --ah-logo-h : 로고 높이 (공식 띠 기준 px, 단위 없이 숫자만). 클수록 큼
   --ah-logo-y : 위아래 위치 (같은 기준 px). 0 = 가운데, 2 = 아래로, -2 = 위로 */
.ah-partner-strip .ah-partner-kookmin   { --ah-logo-h: 28; --ah-logo-y: 0; }
.ah-partner-strip .ah-partner-coss      { --ah-logo-h: 22; --ah-logo-y: 0; }
.ah-partner-strip .ah-partner-knu       { --ah-logo-h: 21; --ah-logo-y: -2; }
.ah-partner-strip .ah-partner-autocrypt { --ah-logo-h: 18; --ah-logo-y: 0; }
.ah-partner-strip .ah-partner-etas      { --ah-logo-h: 17; --ah-logo-y: 0; }
.ah-partner-strip .ah-partner-fescaro   { --ah-logo-h: 21; --ah-logo-y: 0; }
.ah-partner-strip .ah-partner-katech    { --ah-logo-h: 25; --ah-logo-y: -2; }
.ah-partner-strip .ah-partner-vector    { --ah-logo-h: 16; --ah-logo-y: 0; }
/* ===== 손보기 끝 ===== */

/* Narrower strips: 주관 on one row, 후원 below, each centered. */
@container (max-width: 980px) {
  .ah-partner-strip-list {
    --ah-u: clamp(.45px, calc((100cqw - 32px) / 790), 1.1px);
    flex-direction: column;
    gap: calc(6 * var(--ah-u));
  }
}

/* Phones: logos may wrap inside each row instead of shrinking too far. */
@container (max-width: 520px) {
  .ah-partner-strip-list { --ah-u: clamp(.5px, calc((100cqw - 16px) / 470), 1px); }
  .ah-partner-group { max-width: 100%; flex-wrap: wrap; justify-content: center; row-gap: 4px; }
}

@media (max-width: 1100px) {
  :is(.ah-app, .ah-admin-app) .footer { padding-inline: 25px; }
}

@media (max-width: 767px) {
  :is(.ah-app, .ah-admin-app) .footer { padding-inline: 17px; }

  .ah-partner-strip {
    padding: 5px clamp(4px, 2vw, 10px);
    border-radius: 4px;
  }
}
