/* -------------------------------------------------------
   Global base
------------------------------------------------------- */

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html,
body {
  margin: 0;
  padding: 0;

  background-color: #f5f6f8;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  color: #1d1d1f;
  line-height: 1.6;
}

.page-content {
  flex: 1;
  padding-bottom: 100px;
}


/* -------------------------------------------------------
   Typography
------------------------------------------------------- */

/* Prevent Bootstrap from centering long text blocks */
main p,
main li {
  text-align: left;
}


/* -------------------------------------------------------
   Navbar
------------------------------------------------------- */

.navbar {
  background-color: rgba(255, 255, 255, 0.85) !important;

  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header-memoji {
  width: 64px;
  height: 64px;

  display: block;
  object-fit: cover;

  border-radius: 50%;
}

.nav-link {
  font-weight: 500;
  color: #3a3a3c !important;
}

.nav-link:hover {
  color: #000 !important;
}

@media (min-width: 576px) {
  .navbar-nav {
    gap: 14px;
  }
}


/* -------------------------------------------------------
   Buttons & focus
------------------------------------------------------- */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(0, 122, 255, 0.35);
}


/* -------------------------------------------------------
   Forms
------------------------------------------------------- */

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: #8e8e93;
  text-align: start;
}


/* -------------------------------------------------------
   Utilities
------------------------------------------------------- */

.box-shadow {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
}


/* -------------------------------------------------------
   iApps Footer
------------------------------------------------------- */

.iapps-footer {
  padding: 64px 0 40px;

  background: #f5f5f7;
  border-top: 1px solid #d2d2d7;

  color: #6e6e73;
  font-size: 14px;
}

.footer-container {
  max-width: 1100px;

  margin: 0 auto;
  padding: 0 24px;
}


/* Footer top
------------------------------------------------------- */

.footer-top {
  margin-bottom: 28px;
}

.footer-brand {
  margin-bottom: 10px;

  color: #1d1d1f;

  font-size: 28px;
  font-weight: 600;

  letter-spacing: -0.01em;
}

.footer-tagline {
  margin: 0;

  color: #6e6e73;

  font-size: 16px;
  line-height: 1.6;
}


/* Footer author link
------------------------------------------------------- */

.iapps-footer .footer-tagline a,
.iapps-footer .footer-tagline a:visited {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.iapps-footer .footer-tagline a:hover,
.iapps-footer .footer-tagline a:focus {
  color: inherit;
  text-decoration: none;
}

.iapps-footer .footer-tagline a:focus-visible {
  outline: 2px solid rgba(66, 66, 69, 0.45);
  outline-offset: 3px;

  border-radius: 3px;
}


/* Footer divider
------------------------------------------------------- */

.footer-divider {
  height: 1px;

  margin: 36px 0 24px;

  background: #d2d2d7;
}


/* Footer bottom
------------------------------------------------------- */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 14px;
}

.footer-copyright {
  margin: 0;

  color: #86868b;

  font-size: 13px;
}


/* Footer navigation
------------------------------------------------------- */

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 22px;

  font-size: 13px;
}

.footer-links a {
  position: relative;

  color: #424245;
  text-decoration: none;

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #000;
  text-decoration: none;
}


/* Footer underline animation */

.footer-links a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0;
  height: 1px;

  background: #424245;

  transition: width 0.25s ease;
}

.footer-links a:hover::after,
.footer-links a.active::after {
  width: 100%;
}


/* Footer navigation keyboard focus */

.footer-links a:focus-visible {
  outline: 2px solid rgba(66, 66, 69, 0.45);
  outline-offset: 5px;

  border-radius: 3px;
}


/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */

@media (max-width: 768px) {

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;

    gap: 12px;
  }

  .footer-links {
    column-gap: 14px;
    row-gap: 10px;
  }

}

/* -------------------------------------------------------
   Footer: YouTube icon
------------------------------------------------------- */

.footer-youtube-icon {
  display: inline-block;

  margin-right: 5px;

  vertical-align: -1px;
}


/* -------------------------------------------------------
   YouTube click-to-load video
   Nothing loads from YouTube until the visitor presses play
   (privacy-enhanced youtube-nocookie.com player).
------------------------------------------------------- */

.yt-lite {
  position: relative;

  display: block;

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  border-radius: 18px;

  background: #000;
}

.yt-lite-button {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  padding: 0;
  margin: 0;

  border: 0;
  border-radius: inherit;

  background: #000;

  cursor: pointer;
}

.yt-lite-button img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.3s ease, filter 0.3s ease;
}

.yt-lite-button:hover img {
  transform: scale(1.02);

  filter: brightness(0.9);
}

.yt-lite-play {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 68px;
  height: 48px;

  transform: translate(-50%, -50%);

  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

.yt-lite-button:focus-visible {
  outline: 3px solid #70e6ff;
  outline-offset: -3px;
}

.yt-lite iframe {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .yt-lite-button img {
    transition: none;
  }

  .yt-lite-button:hover img {
    transform: none;
  }
}
