/* Python docs page — hero illustration and page-specific layout */
.v2-docs-python-hero {
  padding-bottom: 72px;
}

.v2-docs-python-hero .v2-hero__inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 56px;
  align-items: start;
}

.v2-docs-python-hero .v2-hero__title {
  font-size: 52px;
}

.v2-docs-python-hero .v2-hero__title-sub {
  font-size: 42px;
}

.v2-docs-python-hero .v2-hero__desc {
  max-width: 600px;
}

.v2-docs-python-hero .v2-hero__desc code,
.v2-docs-python-hero__code {
  font-family: var(--v2-font-mono);
  font-size: 0.9em;
  background: var(--v2-blue-light);
  color: var(--v2-blue);
  border: 1px solid var(--v2-blue-light-border);
  border-radius: 7px;
  padding: 2px 8px;
}

.v2-docs-python-hero__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.v2-docs-python-hero__art-wrap {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.v2-docs-python-hero__illustration {
  position: relative;
  width: 520px;
  height: 420px;
  max-width: 100%;
}

.v2-docs-python-card {
  left: 0;
  width: 205px;
  min-height: 68px;
}

.v2-docs-python-card--location { top: 28px; }
.v2-docs-python-card--security { top: 155px; }
.v2-docs-python-card--timezone { top: 282px; }

.v2-docs-python-api-card {
  left: 222px;
  top: 36px;
  width: 296px;
}

.v2-docs-python-api-card .v2-api-card__line {
  white-space: nowrap;
}

.v2-faq-section .v2-faq-list {
  max-width: var(--v2-container);
}

.v2-related-grid--single {
  grid-template-columns: 1fr;
}

@media (max-width: 1060px) {
  .v2-docs-python-hero .v2-hero__inner {
    gap: 40px;
  }

  .v2-docs-python-card {
    width: 190px;
  }

  .v2-docs-python-api-card {
    left: 205px;
  }
}

@media (max-width: 860px) {
  .v2-docs-python-hero .v2-hero__inner {
    grid-template-columns: 1fr;
  }

  .v2-docs-python-hero__illustration {
    height: auto;
    width: min(100%, 520px);
  }

  .v2-docs-python-api-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .v2-docs-python-hero .v2-hero__title {
    font-size: 36px;
  }

  .v2-docs-python-hero .v2-hero__title-sub {
    font-size: 30px;
  }

  .v2-docs-python-hero__panels {
    grid-template-columns: 1fr;
  }
}
