/* room between the logo and the site name */
#logo {
  margin-right: 0.6rem;
}

/* The forge's dark left side holds the copy; the shared work stays visible on the right. */
.vh-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 1;
  min-height: 0;
  margin: 1.5rem 0 2rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: 1rem;
  color: #fff;
  background: #0c1321;
}

.vh-hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.vh-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}

.vh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 14, 25, 0.55), rgba(9, 14, 25, 0.12) 40%, transparent 58%);
}

.vh-hero-content {
  width: 46%;
  max-width: 36rem;
}

.vh-hero h1 {
  font-size: clamp(1.875rem, 2.6vw, 2.5rem);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.vh-hero p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.92;
}

.vh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
  margin-bottom: 0;
}

.vh-hero-actions .btn {
  margin: 0;
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
}

/* On tablets and phones, keep the scene above the copy so the furnace stays unobscured. */
@media (max-width: 991.98px) {
  .vh-hero {
    display: block;
    min-height: 0;
    aspect-ratio: auto;
    padding: 0;
  }

  .vh-hero-art {
    position: relative;
    inset: auto;
    display: block;
    aspect-ratio: 16 / 9;
  }

  .vh-hero-art img {
    position: absolute;
    inset: 0;
    object-position: right center;
  }

  .vh-hero::after {
    content: none;
  }

  .vh-hero-content {
    width: auto;
    max-width: none;
    padding: 1.75rem 1.5rem;
  }

  .vh-hero h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }
}
.vh-cards a.card {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vh-cards a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.14);
}

.vh-card-visual {
  height: 17.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--bs-tertiary-bg);
}

.vh-card-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* code starts at the box's top; a longer example is cut at its foot rather than pushing the card's text down */
.vh-card-code {
  align-items: flex-start;
  overflow: hidden;
}

.vh-card-code pre {
  width: 100%;
  margin: 0;
  font-size: 0.68rem;
  white-space: pre-wrap;
}

/* the home page's four parts: a small card each - its drawing, its name and what it is for - leading to its section */
.vh-parts {
  margin-bottom: 1rem;
}

.vh-part {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vh-part:hover {
  border-color: #7b5cff;
  box-shadow: 0 0.4rem 1.2rem rgba(43, 22, 96, 0.12);
}

.vh-part-art {
  display: block;
  height: 5.5rem;
  width: auto;
  margin-bottom: 0.75rem;
}

.vh-part-title {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.vh-part-text {
  display: block;
  font-size: 0.92rem;
  color: var(--bs-secondary-color);
}

/* room between the three cards and the heading of the four parts */
.vh-cards + h2 {
  margin-top: 3rem;
}

.vh-explore {
  margin: 2.5rem 0 1rem;
  text-align: center;
  color: var(--bs-secondary-color);
}

/* the API reference's front page: a hero for each big category, then its real-world scenarios */
.vh-category {
  margin: 2.5rem 0 3.5rem;
}

.vh-category-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: var(--bs-tertiary-bg);
}

.vh-category-hero h2 {
  margin-top: 0;
}

.vh-category-text {
  flex: 1 1 auto;
  min-width: 0;
}

.vh-category-text p:last-child {
  margin-bottom: 0;
}

.vh-category-intro {
  font-size: 1.05rem;
}

/* beside the text at a fixed width; on a phone, above it */
.vh-category-image {
  flex: 0 0 19rem;
  width: 19rem;
  height: auto;
}

@media (max-width: 767.98px) {
  .vh-category-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .vh-category-image {
    order: -1;
    flex-basis: auto;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
  }
}

.vh-scenario {
  height: 100%;
  padding: 1rem 1.15rem 0.6rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.6rem;
}

.vh-scenario p {
  margin-bottom: 0.45rem;
}

.vh-scenario-title {
  font-weight: 600;
}

.vh-scenario-packages {
  font-size: 0.85rem;
}

/* a guide's picture, under its title */
.vh-article-hero {
  margin: 0.75rem 0 1.75rem;
  overflow: hidden;
  border-radius: 0.75rem;
}

.vh-article-hero picture {
  display: block;
}

/* Keep the complete casting scene visible at every width. */
.vh-article-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* the Libraries page: a card for each group of packages; an abstraction's border is dashed, as its drawing is */
.vh-groups {
  margin-bottom: 1.5rem;
}

.vh-group-art {
  display: block;
  height: 4rem;
  width: auto;
  margin-bottom: 0.6rem;
}

.vh-group-count {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
}

.vh-group-abstraction {
  border-style: dashed;
  border-color: #b3a1ff;
}

/* a group's page: its drawing beside what it is for; on a phone, above it */
.vh-group-image {
  flex: 0 0 10rem;
  width: 10rem;
  height: auto;
}

@media (max-width: 767.98px) {
  .vh-group-image {
    order: -1;
    flex-basis: auto;
    width: 8rem;
    margin: 0 auto;
  }
}

/* a group page's diagram, as Proxy management's of what goes through a proxy: no wider than it needs */
.vh-group-diagram {
  margin: 0.5rem 0 1.25rem;
}

.vh-group-diagram img {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
}

/* a guide's steps (Build your VPN app): a numbered circle on a line, the step's title, and its picture beside its text;
   on a phone, the picture above it */
.vh-steps > ol {
  list-style: none;
  counter-reset: vh-step;
  padding-left: 0;
  margin: 1.25rem 0 1.5rem;
}

.vh-steps > ol > li {
  counter-increment: vh-step;
  display: flow-root;
  position: relative;
  padding: 0.25rem 0 1.75rem 3.25rem;
}

.vh-steps > ol > li::before {
  content: counter(vh-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a6dff, #4a25c9);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vh-steps > ol > li:last-child {
  padding-bottom: 0.25rem;
}

.vh-steps > ol > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 2.6rem;
  bottom: 0.4rem;
  width: 2px;
  background: rgba(123, 92, 255, 0.3);
}

.vh-steps > ol > li > strong:first-of-type,
.vh-steps > ol > li > p:first-child > strong:first-of-type {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.vh-steps ul {
  display: flow-root;
  margin-top: 0.5rem;
}

.vh-step-art {
  float: right;
  width: 15rem;
  height: auto;
  margin: 0 0 0.75rem 1.25rem;
}

@media (max-width: 767.98px) {
  .vh-step-art {
    float: none;
    display: block;
    width: 100%;
    max-width: 18rem;
    margin: 0.25rem 0 0.75rem;
  }
}
