/* Partner hub (/partner/) contained split layout */

body:has(main.partner-hub) {
  background: #ebe8e0;
}

main.partner-hub.site-chrome {
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100% - 2rem));
  max-width: 1180px;
  margin: 1rem auto 2.5rem;
  padding: 0;
  min-height: auto;
  background: #f5f2ea;
  border: 1px solid var(--rule, #d8d4cc);
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 2px 14px rgba(26, 30, 36, 0.05);
}

main.partner-hub > .topbar {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-bottom: 0;
  padding: 1rem 1.25rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid var(--rule, #d8d4cc);
  box-sizing: border-box;
}

.partner-crumb {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 0.5rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--rule, #d8d4cc);
  box-sizing: border-box;
}

.partner-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  color: var(--muted, #555e6a);
}

.partner-crumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #9aa3ad;
}

.partner-crumb a {
  color: var(--accent, #295f4e);
  text-decoration: none;
  font-weight: 600;
}

.partner-crumb a:hover {
  text-decoration: underline;
}

.partner-crumb [aria-current="page"] {
  color: var(--ink, #1a1e24);
  font-weight: 600;
}

.partner-split {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  border-bottom: 1px solid var(--rule, #d8d4cc);
}

.split-left {
  background: var(--accent-deep, #1a3a2a);
  color: #e8f0eb;
  padding: 2.5rem 1.75rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.split-right {
  background: #f5f2ea;
  padding: 2rem 1.5rem 2.5rem;
  overflow-y: visible;
  min-width: 0;
}

.kicker {
  font-family: var(--mono, "DM Mono", ui-monospace, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8eaaa0;
  margin-bottom: 18px;
}

.split-left h1 {
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 1.25rem;
  max-width: 22ch;
}

.trend-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trend-list li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #c4d4cc;
  padding-left: 14px;
  border-left: 2px solid rgba(168, 196, 184, 0.35);
}

.left-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.left-stat {
  font-size: 0.78rem;
  color: #8eaaa0;
  line-height: 1.6;
  margin-bottom: 16px;
}

.left-stat strong {
  color: #d4e4dc;
  font-weight: 600;
}

.btn-partner {
  display: inline-block;
  background: #fff;
  color: var(--accent-deep, #1a3a2a);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 11px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn-partner:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.btn-sandbox {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #a8c4b8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-sandbox:hover {
  color: #fff;
}

.right-header {
  margin-bottom: 1.25rem;
}

.right-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.right-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted, #555e6a);
  max-width: 58ch;
}

.rollout-label {
  font-family: var(--mono, "DM Mono", ui-monospace, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, #295f4e);
  margin-bottom: 14px;
}

.partner-grid {
  display: block;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--rule, #d8d4cc);
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.card:hover {
  border-color: var(--accent, #295f4e);
  box-shadow: 0 4px 16px rgba(26, 58, 42, 0.06);
}

.card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted, #555e6a);
  line-height: 1.5;
}

.meta {
  font-family: var(--mono, "DM Mono", ui-monospace, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent, #295f4e);
  margin-top: 10px;
}

.card-pilots {
  grid-column: 1 / -1;
  background: var(--chalk, #f7f4ee);
}

main.partner-hub > .footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1rem 1.25rem 1.75rem;
  background: #f5f2ea;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  main.partner-hub.site-chrome {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  body:has(main.partner-hub) {
    background: #f5f2ea;
  }

  .partner-split {
    grid-template-columns: 1fr;
  }

  .split-left {
    padding: 2rem 1.25rem 2rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .split-right {
    padding: 1.75rem 1.25rem 2rem;
  }

  .split-left h1 {
    max-width: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card-pilots {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-partner:hover {
    transform: none;
  }
}
