/* Partner page */

body.page-partner {
  --pt-text: #101a2e;
  --pt-muted: #6b7c92;
  --pt-muted-2: #55667d;
  --pt-line: rgba(16, 26, 46, 0.08);
  background:
    radial-gradient(circle at 8% 10%, rgba(27, 177, 242, 0.15), transparent 40%),
    radial-gradient(circle at 92% 12%, rgba(255, 7, 108, 0.12), transparent 42%),
    radial-gradient(circle at 72% 76%, rgba(27, 177, 242, 0.07), transparent 46%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8ff 48%, #eef3fb 100%);
  color: var(--pt-text);
}

body.page-partner::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 26, 46, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 26, 46, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}

body.page-partner.partner-overlay-open {
  overflow: hidden;
}

.page-partner .site-header {
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 0.93), rgba(249, 252, 255, 0.79)),
    radial-gradient(circle at 10% 0%, rgba(27, 177, 242, 0.08), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(255, 7, 108, 0.07), transparent 40%);
  border-bottom: 1px solid rgba(16, 26, 46, 0.05);
  box-shadow:
    0 10px 28px rgba(16, 26, 46, 0.035),
    0 1px 0 rgba(255, 255, 255, 0.74) inset;
}

.page-partner .site-header::after {
  background: linear-gradient(
    90deg,
    rgba(27, 177, 242, 0.22),
    rgba(255, 7, 108, 0.18),
    rgba(16, 26, 46, 0)
  );
}

.page-partner .brand {
  color: var(--pt-text);
}

.page-partner .brand-mark {
  filter:
    drop-shadow(0 0 14px rgba(27, 177, 242, 0.16))
    drop-shadow(0 6px 14px rgba(255, 7, 108, 0.1));
}

.page-partner .nav-link {
  color: #5a6d84;
}

.page-partner .nav-link::before {
  background: linear-gradient(90deg, rgba(27, 177, 242, 0.95), rgba(255, 7, 108, 0.78));
}

.page-partner .nav-link:hover {
  color: #15253b;
}

.page-partner .nav-link.is-active {
  color: #0f1c30;
}

.page-partner .site-footer {
  border-top: 1px solid rgba(16, 26, 46, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.55)),
    radial-gradient(circle at 8% 18%, rgba(27, 177, 242, 0.08), transparent 45%),
    radial-gradient(circle at 92% 14%, rgba(255, 7, 108, 0.07), transparent 44%);
  backdrop-filter: blur(10px);
}

.page-partner .footer-kicker {
  color: #16263a;
}

.page-partner .footer-note,
.page-partner .footer-copy,
.page-partner .footer-col-title {
  color: #63758c;
}

.page-partner .footer-list a {
  color: #31465d;
}

.page-partner .footer-list a:hover {
  color: #14253a;
  border-bottom-color: rgba(27, 177, 242, 0.26);
}

.page-partner .main-content {
  position: relative;
  z-index: 1;
  padding-top: 1.35rem;
  padding-bottom: 2.9rem;
}

.pt-shell {
  max-width: min(100%, 1100px);
  margin-inline: auto;
}

.pt-olive-stage {
  position: fixed;
  top: calc(var(--header-height, 56px) + 0.55rem);
  left: 0;
  z-index: 0;
  pointer-events: none;
  width: min(44vw, 560px);
  opacity: 0.56;
}

.pt-olive {
  display: block;
  width: 100%;
  height: auto;
  transform: translate3d(-27%, 0, 0) rotate(-8deg);
  transform-origin: left center;
  filter:
    drop-shadow(0 14px 20px rgba(16, 26, 46, 0.05))
    drop-shadow(0 0 20px rgba(27, 177, 242, 0.12));
}

.pt-hero,
.pt-list {
  position: relative;
  z-index: 2;
}

.pt-hero {
  margin-top: 0.15rem;
}

.pt-hero-shell {
  padding: 0.9rem 0 0.4rem;
  border-top: 1px solid rgba(16, 26, 46, 0.06);
  position: relative;
}

.pt-hero-shell::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(100%, 420px);
  height: 1px;
  background: linear-gradient(90deg, rgba(27, 177, 242, 0.52), rgba(255, 7, 108, 0.38), transparent);
}

.pt-hero-copy h1 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.2vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.032em;
  color: #101a2e;
}

.pt-hero-note {
  margin: 0.8rem 0 0;
  color: var(--pt-muted);
  max-width: 58ch;
  line-height: 1.5;
}

.pt-list {
  margin-top: 0.95rem;
}

.pt-list-head h2 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.03;
  letter-spacing: -0.024em;
  color: #0f1b30;
}

.pt-list-head h2 .hl-lead-a {
  color: #1bb1f2;
}

.pt-list-head h2 .hl-lead-b {
  color: #ff076c;
}

.pt-list-rows {
  margin-top: 1rem;
  border-top: 1px solid var(--pt-line);
}

.pt-item {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 2.3rem minmax(82px, 100px) minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 0.8rem 1rem;
  align-items: center;
  padding: 0.95rem 0.15rem;
  text-align: left;
  border-bottom: 1px solid var(--pt-line);
  position: relative;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pt-item::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(27, 177, 242, 0.56), rgba(255, 7, 108, 0.42));
  transition: width 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pt-item:hover,
.pt-item:focus-visible {
  background:
    linear-gradient(
      90deg,
      rgba(27, 177, 242, 0.03),
      rgba(255, 7, 108, 0.02) 54%,
      rgba(255, 255, 255, 0)
    );
}

.pt-item:hover::before,
.pt-item:focus-visible::before,
.pt-item.is-active::before {
  width: min(100%, 560px);
}

.pt-item:focus-visible {
  outline: 0;
}

.pt-item-index {
  color: #74879f;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.pt-item:nth-child(odd) .pt-item-index {
  color: rgba(27, 177, 242, 0.82);
}

.pt-item:nth-child(even) .pt-item-index {
  color: rgba(255, 7, 108, 0.74);
}

.pt-item-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  transition:
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 220ms ease;
}

.pt-item.is-active .pt-item-logo-wrap {
  transform: translate3d(-16px, 0, 0);
}

.pt-item-logo {
  display: block;
  max-width: 92px;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(16, 26, 46, 0.07));
}

.pt-item-main {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.pt-item-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: #101a2e;
}

.pt-item-kind {
  display: block;
  color: #667a92;
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.pt-item-short {
  color: var(--pt-muted-2);
  line-height: 1.4;
  font-size: 0.9rem;
}

.pt-item-open {
  color: #31465d;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-right: 1rem;
}

.pt-item-open::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-52%);
  color: #ff076c;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pt-item:hover .pt-item-open::after,
.pt-item:focus-visible .pt-item-open::after,
.pt-item.is-active .pt-item-open::after {
  transform: translate(3px, -52%);
}

.pt-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.pt-overlay[hidden] {
  display: none !important;
}

.pt-overlay-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 0.985), rgba(243, 248, 255, 0.992)),
    radial-gradient(circle at 10% 14%, rgba(27, 177, 242, 0.11), transparent 42%),
    radial-gradient(circle at 90% 18%, rgba(255, 7, 108, 0.1), transparent 44%),
    rgba(246, 250, 255, 0.985);
  backdrop-filter: blur(14px) saturate(1.04);
  opacity: 0;
  transition: opacity 220ms ease;
}

.pt-overlay-layer {
  position: absolute;
  inset: 0;
  overflow: auto;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  background: rgba(246, 250, 255, 0.18);
  transition:
    opacity 260ms ease,
    transform 340ms cubic-bezier(0.16, 0.84, 0.14, 1);
}

.pt-overlay.is-open .pt-overlay-backdrop {
  opacity: 1;
}

.pt-overlay.is-open .pt-overlay-layer {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.pt-overlay-shell {
  min-height: 100svh;
  width: min(100%, 1240px);
  margin-inline: auto;
  padding:
    calc(var(--header-height, 56px) + 0.85rem)
    clamp(1rem, 2.2vw, 1.8rem)
    1.4rem;
  position: relative;
}

.pt-overlay-close {
  position: absolute;
  top: calc(var(--header-height, 56px) + 2.35rem);
  right: clamp(1rem, 2.4vw, 2rem);
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: #22364e;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0.4rem 0.2rem 0.45rem 1.1rem;
  z-index: 3;
}

.pt-overlay-close::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-53%);
  color: #ff076c;
  font-size: 1.15rem;
  line-height: 1;
}

.pt-detail {
  margin-top: 0.2rem;
  padding-top: 0.35rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pt-detail-head {
  border-top: 1px solid rgba(16, 26, 46, 0.07);
  padding-top: 0.85rem;
  position: relative;
}

.pt-detail-head::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(100%, 520px);
  height: 1px;
  background: linear-gradient(90deg, rgba(27, 177, 242, 0.55), rgba(255, 7, 108, 0.42), transparent);
}

.pt-detail-brand {
  display: grid;
  grid-template-columns: minmax(84px, 128px) minmax(0, 1fr);
  gap: 0.95rem 1.2rem;
  align-items: center;
}

.pt-detail-logo-wrap {
  min-height: 72px;
  display: grid;
  align-items: center;
}

.pt-detail-logo {
  display: block;
  max-width: 120px;
  max-height: 74px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 16px rgba(16, 26, 46, 0.06))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.pt-detail-title-wrap h2 {
  margin: 0.32rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.94;
  letter-spacing: -0.032em;
  color: #101a2e;
}

.pt-detail-kind {
  margin: 0.7rem 0 0;
  color: #5f7490;
  font-size: 0.9rem;
  font-weight: 600;
}

.pt-detail-body {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.2rem 1.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(16, 26, 46, 0.06);
}

.pt-detail-col-side {
  padding-left: 1.1rem;
  border-left: 1px solid rgba(16, 26, 46, 0.08);
}

.pt-detail-text {
  margin: 0;
  color: #243a55;
  line-height: 1.72;
  font-size: 0.98rem;
  max-width: 70ch;
}

.pt-detail-text + .pt-detail-text {
  margin-top: 0.75rem;
}

.pt-detail-text--muted {
  color: var(--pt-muted);
}

.pt-detail-side-label {
  margin: 0;
  color: #74879f;
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.pt-detail-side-value {
  margin: 0.35rem 0 0.95rem;
  color: #172b44;
  font-weight: 700;
  line-height: 1.35;
}

.pt-detail-side-label:nth-of-type(1) + .pt-detail-side-value {
  color: #0f8ea8;
}

.pt-detail-side-label:nth-of-type(2) + .pt-detail-side-value {
  color: #c53d70;
}

.pt-detail-links {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(16, 26, 46, 0.06);
  display: grid;
  gap: 0.6rem;
}

.pt-detail-links-title {
  margin: 0;
  color: #74879f;
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.pt-detail-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}

.pt-detail-link-list a {
  color: #1f3651;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 26, 46, 0.14);
  padding-bottom: 0.08rem;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.pt-detail-link-list a:hover {
  color: #10233a;
  border-bottom-color: rgba(27, 177, 242, 0.28);
}

.pt-detail-link-list a[aria-disabled="true"] {
  color: #6a7d94;
  border-bottom-style: dashed;
}

@media (max-width: 1120px) {
  .pt-item {
    grid-template-columns: 2.1rem 86px minmax(0, 1fr) auto;
  }

  .pt-item-short {
    grid-column: 3 / -1;
    margin-top: -0.1rem;
    padding-right: 0.2rem;
  }

  .pt-item-open {
    justify-self: end;
    align-self: start;
  }

  .pt-detail-body {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .pt-detail-col-side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(16, 26, 46, 0.06);
    padding-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 1rem;
    align-items: start;
  }

  .pt-detail-side-value {
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 760px) {
  .page-partner .main-content {
    padding-top: 1rem;
    padding-bottom: 2.2rem;
  }

  .pt-olive-stage {
    display: none;
  }

  .pt-hero-shell {
    padding-top: 0.7rem;
  }

  .pt-hero-copy h1 {
    font-size: clamp(1.75rem, 8.6vw, 2.35rem);
  }

  .pt-list {
    margin-top: 0.8rem;
  }

  .pt-list-rows {
    margin-top: 0.8rem;
  }

  .pt-item {
    grid-template-columns: 1.8rem 72px minmax(0, 1fr);
    gap: 0.55rem 0.75rem;
    padding: 0.85rem 0;
  }

  .pt-item-short {
    grid-column: 1 / -1;
    margin-top: 0.05rem;
    padding-left: 2.35rem;
  }

  .pt-item-open {
    grid-column: 3 / -1;
    justify-self: start;
    margin-top: -0.1rem;
  }

  .pt-item-logo {
    max-width: 72px;
    max-height: 38px;
  }

  .pt-item.is-active .pt-item-logo-wrap {
    transform: translate3d(-8px, 0, 0);
  }

  .pt-overlay-shell {
    width: 100%;
    padding:
      calc(var(--header-height, 56px) + 0.6rem)
      0.95rem
      1rem;
  }

  .pt-overlay-close {
    top: calc(var(--header-height, 56px) + 1.55rem);
    right: 0.95rem;
    font-size: 0.72rem;
  }

  .pt-detail-brand {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    align-items: start;
  }

  .pt-detail-logo-wrap {
    min-height: 0;
  }

  .pt-detail-logo {
    max-width: 98px;
    max-height: 56px;
  }

  .pt-detail-title-wrap h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .pt-detail-kind {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .pt-detail-body {
    margin-top: 0.95rem;
    padding-top: 0.65rem;
  }

  .pt-detail-text {
    font-size: 0.93rem;
    line-height: 1.58;
  }

  .pt-detail-col-side {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .pt-detail-links {
    margin-top: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-item,
  .pt-item::before,
  .pt-item-logo-wrap,
  .pt-item-open::after,
  .pt-overlay-backdrop,
  .pt-overlay-layer {
    transition: none !important;
  }
}
