html {
  scroll-padding-top: 0;
  scroll-behavior: smooth;
}

body {
  padding: 0;
  counter-reset: chapter;
}

section {
  position: relative;
  isolation: isolate;
  margin-bottom: 0 !important;
}
section .container {
  position: relative;
  z-index: 1;
}
section .background-image {
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.3;
}

.t-aqua {
  color: #009acb;
}
.t-aqua * {
  color: #009acb;
}

.t-blue {
  color: #08303a;
}
.t-blue * {
  color: #08303a;
}

.t-green {
  color: #299a96;
}
.t-green * {
  color: #299a96;
}

.t-white {
  color: #fff;
}
.t-white * {
  color: #fff;
}

.text p,
.text a,
.text ul,
.text li,
.text h3 {
  font-size: 1.25rem;
}
@media (min-width: 992px) {
  .text p,
  .text a,
  .text ul,
  .text li,
  .text h3 {
    font-size: 1.5rem;
  }
}
.text h3 {
  margin-top: 3rem;
}
.text p.t-emoji {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
}
.text p.t-emoji::first-letter {
  margin-left: -2rem;
  margin-right: 0rem;
}
.text p.t-emoji + *:not(p.t-emoji) {
  margin-top: 3rem;
}
.text blockquote {
  padding: 0;
  background-color: transparent;
}
.text blockquote p {
  color: inherit !important;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}
@media (min-width: 1200px) {
  .text blockquote p {
    font-size: 3rem;
  }
}

#login {
  background-color: #08303a;
}
#login main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: 100dvh;
}
#login main #rex-yform {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
}
#login main #rex-yform .alert {
  margin-bottom: 1rem;
}
#login main #rex-yform .alert li {
  color: #fff;
  line-height: 1;
}
#login main #rex-yform .form-group#yform-login_form-password {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
#login main #rex-yform .form-group#yform-login_form-password label {
  color: #fff;
}
#login main #rex-yform .form-group#yform-login_form-password input {
  padding: 0.5rem;
  width: 100%;
  border-radius: 1.25rem;
  border: none;
  border-radius: 1.25rem;
  font-size: 1rem;
}

#portal-close {
  z-index: 100;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 1rem;
  background-color: #fff;
}
#portal-close::before, #portal-close::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: calc(1rem - 1px);
  width: 1rem;
  height: 2px;
  background-color: #08303a;
}
#portal-close::before {
  transform: rotateZ(45deg);
}
#portal-close::after {
  transform: rotateZ(-45deg);
}

#portal-to-top {
  z-index: 40;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 3rem;
  background-color: #fff;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
#portal-to-top svg {
  margin-bottom: 3px;
}

.portal-title {
  z-index: 50;
}
.portal-title .title {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: 100dvh;
}
.portal-title .title h1 {
  text-align: center;
}

.portal-content {
  padding: 8rem 0;
  min-height: 100vh;
  min-height: 100dvh;
}
.portal-content .content ol {
  counter-reset: item;
}
.portal-content .content ol > li {
  display: block;
  counter-increment: item;
}
.portal-content .content ol > li::before {
  content: counters(item, ".") ". ";
}
.portal-content .content ol > li.plus::before {
  content: "+" !important;
  font-size: 150%;
}
.portal-content .content ol ol {
  grid-column: 1/span 3;
  max-height: 0;
  overflow: hidden;
  padding-left: 2rem;
  transition: max-height 0.2s ease-out;
}
.portal-content .content ol ol > li {
  list-style-type: none;
  margin-top: 0.5rem;
}
.portal-content .content ol ol > li::before {
  content: counters(item, ".") ". ";
}
.portal-content .content a,
.portal-content .content li::before {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.portal-content .content > ol > li {
  display: grid;
  -moz-column-gap: 1rem;
       column-gap: 1rem;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 0.5rem;
}
.portal-content .content button {
  width: 24px;
  height: 28px;
  background-image: url("/assets/icons/arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  transition: all 200ms ease-in-out;
}
.portal-content .content button[aria-expanded=true] {
  transform: rotate(-180deg);
}

.portal-chapter {
  position: relative;
  overflow: clip;
}
.portal-chapter .row {
  padding-top: 8rem;
  padding-bottom: 8rem;
  min-height: 100vh;
  min-height: 100dvh;
}
.portal-chapter[data-chapter=true], .portal-chapter[data-chapter=plus] {
  counter-reset: subchapter;
}
.portal-chapter[data-chapter=true]::before, .portal-chapter[data-chapter=plus]::before {
  content: counters(chapter, "");
  counter-increment: chapter;
  position: absolute;
  top: 0%;
  transform: translateX(-20%);
  font-size: 60vh;
  font-weight: 700;
  opacity: 0.3;
}
@media (min-width: 1200px) {
  .portal-chapter[data-chapter=true]::before, .portal-chapter[data-chapter=plus]::before {
    font-size: 100vh;
    top: 50%;
    transform: translateY(-40%) translateX(-20%);
  }
}
.portal-chapter[data-chapter=plus]::before {
  content: "+" !important;
}

.portal-text-single[data-subchapter=true] h1:first-child,
.portal-title[data-subchapter=true] h1:first-child {
  counter-increment: subchapter;
}
.portal-text-single[data-subchapter=true] h1:first-child::before,
.portal-title[data-subchapter=true] h1:first-child::before {
  content: counter(chapter) "." counter(subchapter) " ";
}

.portal-text-single .row {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.portal-text-double .row {
  padding-top: 8rem;
  padding-bottom: 8rem;
}
.portal-text-double img {
  margin-top: 3rem;
  max-width: 400px;
}

.portal-image .row {
  padding-bottom: 6rem;
}

section.bg-white:not(.bg-image) + section.bg-white .row,
section.bg-offwhite:not(.bg-image) + section.bg-offwhite .row,
section.bg-blue:not(.bg-image) + section.bg-blue .row,
section.bg-aqua:not(.bg-image) + section.bg-aqua .row,
section.bg-green:not(.bg-image) + section.bg-green .row {
  padding-top: 0;
}