/**
 * Additional styles for Instruction Manual.
 */

/**
 * Variables.
 */
:root {
  --font-size-h3: 22px;
}

body.manual {
  counter-reset: heading;
}

.topic {
  padding-top: 20px;
  margin-bottom: 50px;
}
.topic:first-of-type {
    margin-top: 50px;
}

.topic h3 {
  line-height: 28px;
  border-bottom: 1px solid var(--color-heading-border);
  padding-bottom: 10px;
}

.topic h4 {
  line-height: 26px;
  transition: opacity var(--animation-duration) var(--animation-type);
}
.topic h4:hover {
  opacity: 0.6;
}

/**
 * Heading counters.
 */
.topic h3 {
  counter-increment: heading;
}
.topic h3 a {
  display: flex;
}
.topic h3 a::before {
  content: counter(heading) ". ";
  margin-right: 10px;
}

/* Tips */
p.tip {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 24px;
}
/* Tip icon */
p.tip::before,
p.tip::after {
  position: absolute;
  top: 4.5px;
  left: 4px;
}
/* Tip background */
p.tip::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: rgba(0, 108, 255, 0.87);
  border-radius: 100px;
  text-align: center;
}
/* Tip foreground */
p.tip::after {
  left: 4.5px;
  content: "i";
  width: 16px;
  height: 16px;
  color: #fff;
  border-radius: 100px;
  text-align: center;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
}

/**
 * Tablet and upwards.
 */
@media (min-width: 764px) {

  .topic {
    display: grid;
    grid-template-columns: 1fr 3fr;
    column-gap: 30px;
    margin-bottom: 60px;
  }

  .topic h3 {
    margin-top: 16px;
    line-height: 34px;
  }

}
