:root {
  --light-gray: rgb(162, 169, 177);
  --blue: rgb(6, 69, 173);
  --white-bone: rgb(248, 249, 250);
  --light-black: rgb(32, 33, 34);
}

section:nth-of-type(2) {
  background-color: #efefef;
}

.btn-cta {
  background-color: #a6192e;
  border-color: #a6192e;
  font-weight: bold;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background-color: #851425;
  color: #851425;
  color: #fff;
}

.table-of-contents {
  padding: 1.5ch;
  border: 1px solid var(--light-gray);
  font-size: 1.5rem;
  background: var(--white-bone);
  max-width: fit-content;
  margin: auto;
}

.table-narrow {
  width: 160px;
}

.list-invisible {
  display: none;
}

.wrap {
  display: flex;
  justify-content: center;
  align-items: center;

  margin: 4px 0;
}

.table__title {
  margin-right: 0.5ch;

  font-size: 1.5rem;
}

.toggle-wrapper::before {
  content: "[";

  color: var(--light-black);
}

.toggle-wrapper::after {
  content: "]";

  color: var(--light-black);
}

.toggle {
  padding: 0;
  border: none;

  font-size: 1.5rem;

  color: var(--blue);
  background-color: inherit;
}

.toggle:hover {
  text-decoration: underline var(--blue);
  cursor: pointer;
}

.toggle:focus {
  border: 1px dotted var(--blue);

  text-decoration: underline var(--blue);
}

.toggle:active {
  border: none;
  text-decoration: none;
}

.table__list,
.table__nested-list {
  list-style: none;
}

.content__number {
  margin-right: 0.5ch;

  color: var(--light-black);
}

.table__list {
  padding: 0;
}

.table__nested-list {
  padding-left: 3ch;
}

.table__link {
  color: #005288;

  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;

  text-decoration: none;
}

.content__number {
  font-size: 1.1rem;
}

.table__link:active {
  color: rgb(245, 194, 66);
}

.table__link:hover {
  text-decoration: underline var(--blue);
}

.main-title {
  padding: 0.5em 0;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 30px;

  font-family: "Georgia", serif;
  font-size: clamp(2.3rem, 3vw, 2.88rem);
  font-weight: 500;
}

ol li,
ul li {
  font-size: 1.2rem;
}

.img-container {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.img-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.next_link {
  max-width: 350px;
}

.card-footer {
  display: flex;
}

.card-footer p {
  margin: auto;
  font-weight: 500;
  font-size: 0.9rem;
  color: #005288;
}

@media screen and (max-width: 768px) {
  .img-container {
    height: auto;
  }

  .img-container img {
    position: relative;
    height: auto;
    top: unset;
    left: unset;
    transform: unset;
  }
}
