:root {
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
  --white: #111923;
  --black: #edf2f8;
  --dark: #202c3b;
  --gray: #aab7c7;
  --light: #293748;
  --lighter: #1b2634;
  --color: #23436b;
  --color-rgb: 35, 67, 107;
  --text-color: #e3eaf2;
  --headings-color: #f4f7fb;
  --logo-color: #ffffff;
  --link-color: #dce7f4;
  --link-hover-color: #9bc5ff;
  --border-color-light: #344355;
}

[data-theme="dark"] .navbar_mobile_overlay .navbar__menu li a:hover,
[data-theme="dark"] .navbar_mobile_overlay .navbar__menu li a:focus,
[data-theme="dark"] .navbar_mobile_overlay .navbar__menu li a:active,
[data-theme="dark"] .navbar_mobile_sidebar .navbar__menu li a:hover,
[data-theme="dark"] .navbar_mobile_sidebar .navbar__menu li a:focus,
[data-theme="dark"] .navbar_mobile_sidebar .navbar__menu li a:active,
[data-theme="dark"] .navbar_mobile_sidebar .navbar__menu li .is-separator:hover,
[data-theme="dark"] .navbar_mobile_sidebar .navbar__menu li .is-separator:focus,
[data-theme="dark"] .navbar_mobile_sidebar .navbar__menu li .is-separator:active {
  color: var(--text-color);
}

[data-theme="dark"] .navbar .navbar__submenu li a,
[data-theme="dark"] .navbar .navbar__submenu li span {
  color: var(--text-color);
}

[data-theme="dark"] .btn,
[data-theme="dark"] [type="button"],
[data-theme="dark"] [type="submit"],
[data-theme="dark"] button,
[data-theme="dark"] .navbar .navbar__menu li a,
[data-theme="dark"] .navbar .navbar__menu li span,
[data-theme="dark"] .follow > a,
[data-theme="dark"] .u-comment-count,
[data-theme="dark"] .content__featured-image > figcaption,
[data-theme="dark"] .gallery__item figcaption {
  color: #ffffff;
}

[data-theme="dark"] .content__share > a > svg {
  fill: #ffffff;
}

[data-theme="dark"] .btn:hover,
[data-theme="dark"] [type="button"]:hover,
[data-theme="dark"] [type="submit"]:hover,
[data-theme="dark"] button:hover {
  background: var(--color);
  border-color: var(--color);
  color: #ffffff;
}

[data-theme="dark"] .content__share > a:hover {
  background: var(--color);
}

[data-theme="dark"] .msg--highlight {
  background-color: #493a20;
  color: #fff0c4;
}

[data-theme="dark"] .msg--info {
  background-color: #1d3b50;
  color: #d7f0ff;
}

[data-theme="dark"] .msg--success {
  background-color: #23432e;
  color: #d9f7df;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  color: var(--text-color);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--gray);
  opacity: 1;
}

[data-theme="dark"] .content__related-image-link > img,
[data-theme="dark"] .content__nav__link > img {
  background: var(--lighter);
  object-fit: contain;
}

.content__related-image-link > img,
.content__nav__link > img {
  object-fit: contain;
}

.content__related-image-link {
  background: var(--lighter);
}

.theme-toggle {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 3px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 0.62rem;
  line-height: 1.2;
  margin-left: 0.5rem;
  padding: 0.4rem 0.55rem;
  text-transform: none;
  width: auto !important;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(0, 0, 0, 0.4);
  border-color: #ffffff;
  color: #ffffff;
}

.theme-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.content--policy-info .u-header__meta,
.content--policy-info .content__footer {
  display: none !important;
}

.content--policy-info .content__entry.u-inner {
  max-width: none;
  padding: 0;
  width: 100%;
}

.main:has(> .content--policy-info) + .sidebar {
  display: none;
}

@media (min-width: 56.25em) {
  .main:has(> .content--policy-info) {
    grid-column: 2 / 4;
  }
}

@media (max-width: 56.1875em) {
  .theme-toggle {
    font-size: 0;
    height: 2.3rem;
    padding: 0.35rem;
    width: 2.3rem !important;
  }

  .theme-toggle::before {
    content: attr(data-icon);
    font-size: 1.1rem;
  }
}

.content__bio {
  align-items: center;
  border-top: 1px solid var(--border-color-light);
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.content__bio .content__bio-avatar {
  border-radius: 50%;
  flex: 0 0 3.25rem;
  height: 3.25rem;
  margin: 0;
  object-fit: cover;
  width: 3.25rem;
}

.content__bio-details {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  justify-content: space-between;
  min-width: 0;
}

.content__bio-label {
  color: var(--gray);
  flex-basis: 100%;
  font-size: 0.75rem;
  line-height: 1.2;
  margin: 0;
}

.content__bio h4 {
  margin: 0;
}

.content__bio-profile {
  border: 1px solid var(--color);
  border-radius: 3px;
  color: var(--color);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  padding: 0.35rem 0.65rem;
}

.content__bio-profile:hover,
.content__bio-profile:focus {
  background: var(--color);
  color: var(--white);
}

.content__bio-profile:focus {
  outline: 2px solid var(--color);
  outline-offset: 2px;
}

.navbar_mobile_sidebar > .logo {
  display: block;
  margin: 1.5rem 24px 0;
  max-width: calc(100% - 48px);
}

.navbar_mobile_sidebar > .logo img {
  display: block;
  height: auto;
  max-height: 3rem;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.navbar_mobile_sidebar__copyright {
  border-top: 1px solid var(--border-color-light);
  color: var(--gray);
  font-size: 0.68rem;
  line-height: 1.5;
  margin: 0 24px;
  padding: 1rem 0 1.5rem;
}

.navbar_mobile_sidebar__copyright a {
  color: var(--headings-color);
}

.navbar_mobile_sidebar .navbar__menu {
  margin: 1rem 24px 1.25rem;
}

.content__nav__link {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.content__nav__link > img {
  border-radius: var(--border-radius);
  flex: 0 0 6rem;
  height: 3.75rem;
  object-fit: contain;
  width: 6rem;
}

.content__nav__link > div {
  min-width: 0;
}

.content__nav-title {
  overflow-wrap: anywhere;
}

@media all and (max-width: 37.4375em) {
  .content__nav.box {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .content__nav__prev,
  .content__nav__next {
    max-width: none;
    width: 100%;
  }

  .content__nav__next {
    margin-left: 0;
  }

  .content__nav__link {
    gap: 0.65rem;
    width: 100%;
  }

  .content__nav__prev .content__nav__link > img,
  .content__nav__next .content__nav__link > img {
    flex: 0 0 3.5rem;
    height: 2.75rem;
    margin: 0;
    width: 3.5rem;
  }

  .content__nav-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .content__bio.box {
    align-items: flex-start;
    background: var(--lighter);
    border: 1px solid var(--border-color-light);
    border-top: 3px solid var(--color);
    border-radius: var(--border-radius);
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .content__bio .content__bio-avatar,
  .content__bio > .u-author__avatar {
    flex: 0 0 2.75rem;
    height: 2.75rem;
    width: 2.75rem;
  }

  .content__bio-details {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: flex-start;
  }

  .content__bio > div {
    flex: 1;
    min-width: 0;
  }

  .content__bio-profile {
    max-width: 100%;
    text-align: center;
  }
}
