/* Conservative navbar and footer refresh for the modern view only. */
body.psy-modern-view {
  --psy-chrome-header: rgba(250, 250, 250, .97);
  --psy-chrome-header-text: #30343a;
  --psy-chrome-header-muted: #6f747a;
  --psy-chrome-header-field: #f0f1f2;
  --psy-chrome-border: rgba(24, 31, 44, .12);
  --psy-chrome-footer: #202225;
  --psy-chrome-footer-text: #f0f0f0;
  --psy-chrome-footer-muted: #a7aaae;
}
body.psy-modern-view.psy-theme-dark {
  --psy-chrome-header: rgba(34, 34, 34, .97);
  --psy-chrome-header-text: #eee;
  --psy-chrome-header-muted: #aaa;
  --psy-chrome-header-field: #303234;
  --psy-chrome-border: rgba(255, 255, 255, .1);
  --psy-chrome-footer: #171819;
  --psy-chrome-footer-text: #f2f2f2;
  --psy-chrome-footer-muted: #a9abad;
}

body.psy-modern-view > header {
  border-bottom: 1px solid var(--psy-chrome-border);
  background: var(--psy-chrome-header) !important;
  box-shadow: 0 5px 22px rgba(0, 0, 0, .11);
  backdrop-filter: blur(12px);
}
body.psy-modern-view > header .header-logo::after { background: var(--psy-chrome-border); }
body.psy-modern-view > header #logo {
  image-rendering: auto;
  transition: opacity .2s ease;
}
body.psy-modern-view > header #logo:hover { opacity: .88; }
body.psy-modern-view > header #menu ul.top-menu { margin-bottom: 0; }
body.psy-modern-view > header #menu ul.top-menu > li > a {
  position: relative;
  color: var(--psy-chrome-header-text);
  font-weight: 400;
  letter-spacing: .01em;
  transition: color .2s ease, background .2s ease;
}
body.psy-modern-view > header #menu ul.top-menu > li:hover > a,
body.psy-modern-view > header #menu ul.top-menu > li.active > a {
  color: var(--psy-accent);
}
body.psy-modern-view > header #menu ul.top-menu > li.active > a { border-bottom: 0 !important; }
body.psy-modern-view > header #menu ul.top-menu > li.active > a::after {
  position: absolute;
  right: 5px;
  bottom: 0;
  left: 5px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--psy-accent);
  content: "";
}
body.psy-modern-view > header #menu .sub-container {
  overflow: hidden;
  border: 1px solid var(--psy-chrome-border);
  border-top: 2px solid var(--psy-accent);
  border-radius: 0 0 11px 11px;
  background: var(--psy-chrome-header) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .22);
}
body.psy-modern-view > header #menu .sub-container ul.sub-menu li a {
  border-radius: 6px;
  color: var(--psy-chrome-header-muted) !important;
}
body.psy-modern-view > header #menu .sub-container ul.sub-menu li:hover a {
  background: var(--psy-accent);
  color: #fff !important;
}
body.psy-modern-view > header #search .search-content { position: relative; }
body.psy-modern-view > header #search input.search-input {
  height: 36px;
  padding-right: 42px;
  border: 1px solid var(--psy-chrome-border);
  border-radius: 8px;
  background: var(--psy-chrome-header-field);
  box-shadow: none;
  color: var(--psy-chrome-header-text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
body.psy-modern-view > header #search input.search-input::placeholder { color: var(--psy-chrome-header-muted); opacity: .85; }
body.psy-modern-view > header #search input.search-input:focus {
  border-color: color-mix(in srgb, var(--psy-accent) 70%, transparent);
  background: var(--psy-chrome-header);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--psy-accent) 14%, transparent);
}
body.psy-modern-view > header #search button {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0 7px 7px 0;
  background: transparent;
  color: var(--psy-accent);
  font-size: 17px;
}
body.psy-modern-view > header #search button:hover { background: color-mix(in srgb, var(--psy-accent) 12%, transparent); }
body.psy-modern-view > header #searchform button .fa {
  position: static;
  float: none;
  color: inherit;
  font: normal normal normal 17px/34px FontAwesome;
}
body.psy-modern-view > header .search-suggest.searchwp-live-search-results {
  top: 43px !important;
  right: 0 !important;
  left: auto !important;
  width: 370px;
  max-width: calc(100vw - 24px);
  max-height: min(540px, calc(100vh - 100px));
  overflow: hidden !important;
  border: 1px solid var(--psy-chrome-border);
  border-top: 2px solid var(--psy-accent);
  border-radius: 10px;
  background: var(--psy-chrome-header);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}
body.psy-modern-view > header .search-suggest.searchwp-live-search-results > ul {
  max-height: min(538px, calc(100vh - 102px));
  margin: 0 !important;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  scrollbar-color: var(--psy-accent) transparent;
  scrollbar-width: thin;
}
body.psy-modern-view > header .search-suggest ul li {
  position: relative;
  min-height: 88px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--psy-chrome-border);
  background: transparent;
  color: var(--psy-chrome-header-muted);
  transition: background .18s ease;
}
body.psy-modern-view > header .search-suggest ul li:hover { background: var(--psy-chrome-header-field); }
body.psy-modern-view > header .search-suggest ul li .thumb {
  width: 46px;
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--psy-chrome-border);
  border-radius: 6px;
  background-position: center top;
  background-size: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
  image-rendering: auto;
}
body.psy-modern-view > header .search-suggest ul li .ss-info {
  min-height: 68px;
  padding-left: 58px;
  color: var(--psy-chrome-header-muted);
}
body.psy-modern-view > header .search-suggest ul li .ss-info a.ss-title {
  display: -webkit-box;
  margin: 0 0 3px;
  overflow: hidden;
  color: var(--psy-chrome-header-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body.psy-modern-view > header .search-suggest ul li .ss-info a.ss-title:hover { color: var(--psy-accent); }
body.psy-modern-view > header .search-suggest ul li .ss-info p {
  margin: 0 0 3px;
  color: var(--psy-chrome-header-muted);
  font-size: 11px;
  line-height: 1.35;
}
body.psy-modern-view > header .search-suggest ul li .ss-info > a:not(.ss-title) {
  display: inline-block;
  margin: 2px 3px 0 0;
  padding: 2px 6px;
  overflow: hidden;
  border-radius: 5px;
  background: color-mix(in srgb, var(--psy-accent) 14%, transparent);
  color: var(--psy-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
}
body.psy-modern-view > header .search-suggest ul li.ss-bottom {
  position: sticky;
  z-index: 2;
  bottom: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
}
body.psy-modern-view > header .search-suggest ul li.ss-bottom a {
  height: 42px;
  border-radius: 0;
  background: var(--psy-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 42px;
}
body.psy-modern-view > header .search-suggest ul li.ss-bottom a:hover { background: var(--psy-accent-strong); }
body.psy-modern-view > header #top-user .btn-login {
  border: 0 !important;
  border-radius: 8px;
  background: var(--psy-accent);
  box-shadow: none;
  font-weight: 800;
}
body.psy-modern-view > header #top-user .btn-login:hover { background: var(--psy-accent-strong); }
body.psy-modern-view > header .logged-user .avatar img {
  border: 2px solid color-mix(in srgb, var(--psy-accent) 60%, transparent);
  border-radius: 50%;
}
body.psy-modern-view > header .dropdown-menu {
  overflow: hidden;
  border: 1px solid var(--psy-chrome-border);
  border-radius: 9px;
  background: var(--psy-chrome-header);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}
body.psy-modern-view > header .dropdown-menu > li > a { color: var(--psy-chrome-header-text); }
body.psy-modern-view > header .dropdown-menu > li > a:hover { background: var(--psy-accent); color: #fff; }

body.psy-modern-view > footer {
  margin-top: 28px;
  padding: 34px 0 28px;
  border-top: 1px solid color-mix(in srgb, var(--psy-accent) 35%, transparent);
  background: var(--psy-chrome-footer);
  color: var(--psy-chrome-footer-text);
}
body.psy-modern-view > footer #footer > .container > .row:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
body.psy-modern-view > footer #footer > .container > .row:first-child > .col-lg-4 {
  margin: 0;
  padding: 8px 24px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  background: transparent;
}
body.psy-modern-view > footer #footer > .container > .row:first-child > .col-lg-4:last-of-type { border-right: 0; }
body.psy-modern-view > footer #footer > .container > .row:first-child > .footer-subs { width: 50%; }
body.psy-modern-view > footer #footer > .container > .row:first-child > .footer-subs:nth-of-type(2) { border-right: 0; }
body.psy-modern-view > footer #footer > .container > .row:first-child > .footer-copyright {
  float: none;
  width: 100%;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-right: 0;
  text-align: center;
}
body.psy-modern-view > footer .footer-link-head {
  margin: 0 0 13px;
  color: var(--psy-chrome-footer-text);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px !important;
  font-weight: 800;
}
body.psy-modern-view > footer .footer-subs {
  color: var(--psy-chrome-footer-muted);
  font-size: 12px;
  line-height: 1.8;
}
body.psy-modern-view > footer .footer-subs .desc {
  max-width: 300px;
  margin: 0 auto;
  color: var(--psy-chrome-footer-muted);
  line-height: 1.55;
}
body.psy-modern-view > footer .footer-social { margin-top: 15px; }
body.psy-modern-view > footer .footer-social a {
  display: inline-grid;
  width: 39px;
  height: 39px;
  margin: 0 3px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .055);
  color: var(--psy-chrome-footer-text);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
body.psy-modern-view > footer .footer-social a:hover {
  border-color: var(--psy-accent);
  background: var(--psy-accent);
  color: #fff;
  transform: translateY(-2px);
}
body.psy-modern-view > footer .footer-social a i.fa {
  margin: 0;
  font-size: 22px;
}
body.psy-modern-view > footer .footer-copyright { color: var(--psy-chrome-footer-muted); }
body.psy-modern-view > footer .footer-copyright > p,
body.psy-modern-view > footer .footer-copyright > center {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}
body.psy-modern-view > footer .footer-copyright #logo-footer {
  width: auto;
  max-width: min(100%, 260px);
  height: auto;
  image-rendering: auto;
}
body.psy-modern-view > footer .footer-copyright p { line-height: 1.55; }
body.psy-modern-view > footer .footer-tags {
  margin: 22px 0 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
body.psy-modern-view > footer .footer-tags a {
  height: auto;
  min-height: 27px;
  margin: 3px;
  padding: 3px 11px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--psy-chrome-footer-muted);
  line-height: 19px;
}
body.psy-modern-view > footer .footer-tags a:hover {
  border-color: color-mix(in srgb, var(--psy-accent) 55%, transparent);
  color: var(--psy-accent);
}
body.psy-modern-view > footer a[href*="/status/"] img { opacity: .72; transition: opacity .2s ease; }
body.psy-modern-view > footer a[href*="/status/"]:hover img { opacity: 1; }

@media (max-width: 1199px) {
  body.psy-modern-view > footer #footer > .container > .row:first-child > .footer-copyright { margin-top: 20px; padding-top: 20px; }
}
@media (max-width: 991px) {
  body.psy-modern-view > header #menu {
    border: 1px solid var(--psy-chrome-border);
    border-radius: 0 0 10px 10px;
    background: var(--psy-chrome-header);
    box-shadow: 0 15px 32px rgba(0, 0, 0, .2);
  }
  body.psy-modern-view > header #menu ul.top-menu > li { border-color: var(--psy-chrome-border); }
  body.psy-modern-view > header #menu ul.top-menu > li.active > a::after { display: none; }
  body.psy-modern-view > header #search {
    border: 1px solid var(--psy-chrome-border);
    border-radius: 0 0 10px 10px;
    background: var(--psy-chrome-header);
    box-shadow: 0 15px 32px rgba(0, 0, 0, .2);
  }
  body.psy-modern-view > header .search-suggest.searchwp-live-search-results {
    top: 48px !important;
    right: 15px !important;
    width: min(370px, calc(100vw - 30px));
  }
  body.psy-modern-view > header .mobile-menu,
  body.psy-modern-view > header .mobile-search {
    border: 1px solid var(--psy-chrome-border);
    border-radius: 8px;
    background: var(--psy-chrome-header-field);
    color: var(--psy-chrome-header-text);
  }
  body.psy-modern-view > header .mobile-menu.active,
  body.psy-modern-view > header .mobile-search.active { border-color: var(--psy-accent); background: var(--psy-accent); color: #fff; }
}
@media (max-width: 767px) {
  body.psy-modern-view > footer #footer > .container > .row:first-child { display: block; margin: 0; }
  body.psy-modern-view > footer #footer > .container > .row:first-child > .footer-subs,
  body.psy-modern-view > footer #footer > .container > .row:first-child > .footer-copyright {
    width: 100%;
    margin: 0 0 12px;
    padding: 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
  }
  body.psy-modern-view > footer #footer > .container > .row:first-child > .col-lg-4 { border-right: 0; }
}
@media (max-width: 480px) {
  body.psy-modern-view > footer { padding: 24px 0 18px; }
  body.psy-modern-view > footer .footer-social a { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  body.psy-modern-view > header #logo,
  body.psy-modern-view > header #menu ul.top-menu > li > a,
  body.psy-modern-view > header #search input.search-input,
  body.psy-modern-view > footer .footer-social a { transition: none; }
}
