/**
* Theme Name:         Fort Deli
* Theme URI:          https://github.com/lmandcreative/fortdeli-wp
* Author:             LM Someco
* Author URI:         https://lmsomeco.fi/
* Description:        A modern block theme for WordPress.
* Version:            1.0
* Requires at least:  6.9
* Tested up to:       6.9.4
* Requires PHP:       8.3
* License:            GNU General Public License v2 or later
* License URI:        http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain:        fortdeli
* GitHub Theme URI:   https://github.com/lmandcreative/fortdeli-wp
* Primary Branch:     main
*/

:where(.wp-site-blocks) > * {
  margin-top: 0;
  margin-bottom: 0;
}

header.site-header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-bar header.site-header.wp-block-template-part {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar header.site-header.wp-block-template-part {
    top: 46px;
  }
}

.fortdeli-header,
.fortdeli-header__inner,
.fortdeli-header .wp-block-group,
.fortdeli-header.alignfull {
  overflow: visible !important;
}

.fortdeli-header__logo {
  margin-bottom: -46px !important;
  overflow: visible !important;
  position: relative;
  z-index: 10;
}

header.site-header.wp-block-template-part
  .fortdeli-header
  .fortdeli-header__inner
  nav.wp-block-navigation
  ul.wp-block-navigation__container
  li.wp-block-navigation-item::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: transparent;
  position: absolute;
  bottom: -8px;
  left: 0;
  transition: background 0.3s ease;
}

header.site-header.wp-block-template-part
  .fortdeli-header
  .fortdeli-header__inner
  nav.wp-block-navigation
  ul.wp-block-navigation__container
  li.wp-block-navigation-item.current-menu-item::after,
header.site-header.wp-block-template-part
  .fortdeli-header
  .fortdeli-header__inner
  nav.wp-block-navigation
  ul.wp-block-navigation__container
  li.wp-block-navigation-item:hover::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--wp--preset--color--fort-deli-red);
  position: absolute;
  bottom: -8px;
  left: 0;
}

header.site-header.wp-block-template-part
  .fortdeli-header
  .fortdeli-header__inner
  nav.wp-block-navigation
  ul.wp-block-navigation__container
  li.wp-block-navigation-item
  a {
  text-transform: uppercase;
}

@media screen and (max-width: 768px) {
  .fortdeli-header__inner {
    justify-content: center !important;
  }

  .fortdeli-header__actions {
    display: none !important;
  }

  .fortdeli-header__logo {
    margin-bottom: 0 !important;
    max-width: 140px !important;
  }

  .fortdeli-header__nav_wrapper {
    position: absolute !important;
    right: 20px !important;
  }

  .wp-block-navigation__responsive-container {
    color: var(--wp--preset--color--white) !important;
    background: var(--wp--preset--color--dark-purple) !important;
  }

  header.site-header.wp-block-template-part
    .fortdeli-header
    .fortdeli-header__inner
    nav.wp-block-navigation
    ul.wp-block-navigation__container
    li.wp-block-navigation-item
    a {
    font-size: 27px !important;
  }
}