.fdl-header svg {
  width: auto !important;
  height: auto !important;
  fill: none !important;
}

.fdl-header {
  position: sticky;
  top: 0;
  z-index: 999;
  padding-bottom: var(--fdl-space-2);
  margin-bottom: var(--fdl-space-3);
  background-color: #fff;
}

.fdl-header-top {
  padding-top: calc(var(--fdl-space-4) + var(--fdl-space-2));
  background-color: #fff;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease;
}

.fdl-header.is-scrolled .fdl-header-top {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fdl-header-nav {
  max-height: 96px;
  transition:
    max-height 0.25s ease,
    padding 0.25s ease;
}

.fdl-header.is-scrolled .fdl-header-nav {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .fdl-header.is-scrolled .fdl-header-top {
    background-color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

body.admin-bar .fdl-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .fdl-header {
    top: 0;
  }
}

.fdl-header-top__inner {
  display: flex;
  align-items: center;
  gap: var(--fdl-space-4);
  padding-bottom: var(--fdl-space-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color 0.25s ease;
}

.fdl-header.is-scrolled .fdl-header-top__inner {
  border-bottom-color: transparent;
}

.fdl-icon {
  flex-shrink: 0;
  display: block;
}

.fdl-logo {
  flex-shrink: 0;
}

.fdl-logo__image {
  display: block;
  max-height: 48px;
  width: auto;
}

.fdl-header-top__search {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.fdl-search-group {
  width: 100%;
  max-width: 760px;
}

.fdl-search-group {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--fdl-radius);
  overflow: hidden;
  background-color: #fff;
}

.fdl-search-group__input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 42px !important;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  padding: 0 var(--fdl-space-3) !important;
  font-size: var(--fdl-font-size-sm) !important;
  line-height: 1 !important;
  -webkit-appearance: textfield !important;
  appearance: textfield !important;
  font-family: inherit !important;
  box-shadow: none !important;
}

.fdl-search-group__input:focus,
.fdl-search-group__input:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.fdl-search-group:focus-within {
  outline: 2px solid var(--fdl-primary);
  outline-offset: 2px;
}

.fdl-search-group__input::-webkit-search-decoration,
.fdl-search-group__input::-webkit-search-cancel-button,
.fdl-search-group__input::-webkit-search-results-button,
.fdl-search-group__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.fdl-search-group__submit {
  flex-shrink: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border: none !important;
  background-color: var(--fdl-primary, #000000);
  color: var(--fdl-button-text, #ffffff);
  cursor: pointer;
}

.fdl-search-group__submit svg {
  width: 19px !important;
  height: 19px !important;
  flex-shrink: 0;
}

.fdl-header-top__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--fdl-space-3);
}

.fdl-cta-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--fdl-space-2);
  padding: var(--fdl-space-2) var(--fdl-space-4);
  border-radius: var(--fdl-radius);
  background-color: var(--fdl-primary, #000000);
  color: var(--fdl-button-text, #ffffff);
  font-size: var(--fdl-font-size-sm);
  text-decoration: none;
  white-space: nowrap;
}

.fdl-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.fdl-hamburger span {
  display: block;
  height: 2px;
  background-color: currentColor;
}

.fdl-header-nav {
  padding-top: var(--fdl-space-3);
  padding-bottom: var(--fdl-space-3);
}

.fdl-header-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--fdl-space-5);
}

.fdl-categories-trigger {
  position: relative;
  flex-shrink: 0;
}

.fdl-categories-trigger__button {
  display: flex;
  align-items: center;
  gap: var(--fdl-space-2);
  border: none;
  border-radius: var(--fdl-radius);
  background-color: var(--fdl-primary, #000000);
  color: var(--fdl-button-text, #ffffff);
  padding: var(--fdl-space-2) var(--fdl-space-4);
  font-size: var(--fdl-font-size-sm);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.fdl-icon--chevron {
  transition: transform 0.2s ease;
}

.fdl-mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  width: 480px;
  padding-top: var(--fdl-space-2);
}

.fdl-mega-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--fdl-space-2);
  list-style: none;
  margin: 0;
  padding: var(--fdl-space-3);
  background-color: #fff;
  border-radius: var(--fdl-radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.fdl-mega-panel__card a {
  display: flex;
  align-items: center;
  gap: var(--fdl-space-2);
  padding: var(--fdl-space-2);
  border-radius: var(--fdl-radius);
  color: inherit;
  text-decoration: none;
}

.fdl-mega-panel__card a:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.fdl-mega-panel__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: var(--fdl-radius-sm);
  background-color: rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.fdl-mega-panel__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.fdl-mega-panel__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fdl-mega-panel__name {
  font-weight: 600;
  font-size: var(--fdl-font-size-sm);
}

.fdl-mega-panel__count {
  font-size: var(--fdl-font-size-sm);
  opacity: 0.6;
}

.fdl-pages-list {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--fdl-space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.fdl-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fdl-pages-list .fdl-menu-link {
  color: inherit;
  text-decoration: none;
  font-size: var(--fdl-font-size-base);
  font-weight: 500;
  white-space: nowrap;
}

.fdl-menu-link__icon {
  display: none;
}

.fdl-pages-list .fdl-menu-link:hover {
  color: var(--fdl-primary, #000000);
}

.fdl-menu-link__chevron {
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.fdl-submenu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  padding-top: var(--fdl-space-2);
}

.fdl-submenu {
  min-width: 200px;
  background-color: #fff;
  border-radius: var(--fdl-radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: var(--fdl-space-2) 0;
  overflow: hidden;
}

.fdl-submenu-item {
  display: block;
}

.fdl-submenu .fdl-menu-link {
  display: block;
  padding: var(--fdl-space-2) var(--fdl-space-3);
}

.fdl-submenu .fdl-menu-link:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.fdl-header-info {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--fdl-space-4);
}

.fdl-header-info__item {
  display: flex;
  align-items: center;
  gap: var(--fdl-space-2);
}

.fdl-icon-circle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fdl-primary, #000000);
}

.fdl-header-info__text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.fdl-header-info__label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1px;
}

.fdl-header-info__value {
  display: block;
  font-size: 0.75rem;
  line-height: 1.3;
  opacity: 0.75;
}

.fdl-header-info__value-sub {
  display: block;
  font-size: 0.75rem;
  line-height: 1.3;
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .fdl-hamburger {
    display: flex;
  }

  .fdl-header-nav {
    display: none;
  }

  .fdl-header-nav--open {
    display: block;
  }

  .fdl-header-nav__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .fdl-pages-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
  }

  .fdl-mega-panel {
    position: static;
    width: 100%;
    padding-top: 0;
  }

  .fdl-mega-panel__grid {
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .fdl-submenu-wrapper {
    position: static;
    padding-top: 0;
  }

  .fdl-submenu {
    box-shadow: none;
  }

  .fdl-header-info {
    flex-wrap: wrap;
  }
}

@media (max-width: 1024px) {
  .fdl-header-top__search {
    display: none;
  }
}

.fdl-mobile-cat-trigger {
  display: none;
}

@media (max-width: 1024px) {
  .fdl-header-top__inner {
    border-bottom: none;
  }

  .fdl-mobile-cat-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
  }

  .fdl-header-top__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .fdl-logo {
    justify-self: center;
  }

  .fdl-header-top__actions {
    justify-self: end;
  }

  .fdl-header-top__actions .fdl-cta-button {
    display: none;
  }

  .fdl-logo__image {
    width: 200px;
    height: 60px;
    max-height: none;
    object-fit: contain;
  }

  .fdl-hamburger {
    align-items: center;
  }

  .fdl-hamburger span {
    width: 22px;
  }
}

.fdl-mobile-drawer-overlay,
.fdl-mobile-nav-drawer,
.fdl-mobile-cat-drawer {
  display: none;
}

@media (max-width: 1024px) {
  .fdl-mobile-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .fdl-mobile-nav-drawer,
  .fdl-mobile-cat-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 100001;
    width: 85%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    background-color: var(--fdl-primary, #000000);
    color: var(--fdl-button-text, #ffffff);
    transition: transform 0.3s ease;
    overflow: hidden;
  }

  .fdl-mobile-cat-drawer {
    left: 0;
    border-radius: 0 var(--fdl-radius) var(--fdl-radius) 0;
    transform: translateX(-100%);
  }

  .fdl-mobile-nav-drawer {
    right: 0;
    border-radius: var(--fdl-radius) 0 0 var(--fdl-radius);
    transform: translateX(100%);
  }

  .fdl-mobile-nav-drawer.is-open,
  .fdl-mobile-cat-drawer.is-open {
    transform: translateX(0);
  }

  .fdl-mobile-drawer__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--fdl-space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .fdl-mobile-drawer__title {
    font-weight: 600;
    font-size: var(--fdl-font-size-base);
  }

  .fdl-mobile-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
  }

  .fdl-mobile-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--fdl-space-4);
    padding: var(--fdl-space-4);
    overflow-y: auto;
  }

  .fdl-mobile-nav-drawer .fdl-mobile-drawer__body {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .fdl-mobile-drawer__footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--fdl-space-3);
    padding: var(--fdl-space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .fdl-mobile-nav-drawer .fdl-mobile-drawer__footer {
    padding-top: 0;
    border-top: none;
    margin-top: auto;
  }

  .fdl-mobile-drawer__footer--cat {
    border-top-color: rgba(0, 0, 0, 0.08);
    text-align: left;
  }

  .fdl-mobile-drawer__credit-group--bottom {
    padding: 0 var(--fdl-space-4) var(--fdl-space-4);
  }

  .fdl-mobile-drawer__credit-group--bottom::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 calc(var(--fdl-space-4) * -1) var(--fdl-space-3);
    background-color: rgba(255, 255, 255, 0.2);
  }

  .fdl-mobile-drawer__copyright {
    font-size: 0.6875rem;
    opacity: 0.7;
    margin: 0 0 2px;
  }

  .fdl-mobile-drawer__credit {
    font-size: 0.625rem;
    opacity: 0.6;
    margin: 0;
  }

  .fdl-mobile-drawer__credit a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
  }

  .fdl-mobile-drawer__search {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
  }

  .fdl-mobile-drawer__search .fdl-search-group__input {
    color: var(--fdl-button-text, #ffffff) !important;
  }

  .fdl-mobile-drawer__search .fdl-search-group__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }

  .fdl-mobile-drawer__search .fdl-search-group__submit {
    background-color: var(--fdl-button-text, #ffffff);
    color: var(--fdl-primary, #000000);
  }

  .fdl-mobile-drawer__nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .fdl-mobile-drawer__nav .fdl-menu-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .fdl-mobile-drawer__nav .fdl-menu-link {
    display: flex;
    align-items: center;
    gap: var(--fdl-space-3);
    padding: var(--fdl-space-2) var(--fdl-space-3);
    color: inherit;
    font-size: var(--fdl-font-size-sm);
    border-radius: var(--fdl-radius);
  }

  .fdl-mobile-drawer__nav .fdl-menu-link__icon {
    display: block;
    flex-shrink: 0;
    opacity: 0.85;
  }

  .fdl-mobile-drawer__nav .fdl-menu-link:active {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .fdl-mobile-drawer__nav .fdl-menu-item--current > .fdl-menu-link {
    position: relative;
    background-color: rgba(255, 255, 255, 0.08);
    font-weight: 600;
  }

  .fdl-mobile-drawer__nav .fdl-menu-item--current > .fdl-menu-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    border-radius: var(--fdl-radius-sm);
    background-color: var(--fdl-button-text, #ffffff);
  }

  .fdl-mobile-drawer__nav .fdl-menu-link__chevron {
    display: none;
  }

  .fdl-mobile-drawer__nav .fdl-submenu-wrapper {
    display: block !important;
    position: static;
    padding-top: var(--fdl-space-2);
  }

  .fdl-mobile-drawer__nav .fdl-submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0 0 var(--fdl-space-4);
    background: none;
    box-shadow: none;
  }

  .fdl-mobile-drawer__nav .fdl-submenu .fdl-menu-link {
    padding: var(--fdl-space-2) var(--fdl-space-3);
    font-size: var(--fdl-font-size-sm);
    opacity: 0.85;
  }

  .fdl-mobile-drawer__footer .fdl-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    background-color: var(--fdl-hover, #1559ed);
    color: var(--fdl-button-text, #ffffff);
  }

  .fdl-mobile-cat-drawer {
    background-color: #fff;
    color: #1a1a1a;
  }

  .fdl-mobile-cat-drawer .fdl-mobile-drawer__head {
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }

  .fdl-mobile-cat-drawer .fdl-mega-panel__grid {
    grid-template-columns: 1fr;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .fdl-mobile-cat-drawer .fdl-mega-panel__card a {
    color: inherit;
  }

  .fdl-mobile-cat-drawer .fdl-mega-panel__card a:hover {
    background-color: rgba(0, 0, 0, 0.04);
  }

  .fdl-mobile-cat-drawer .fdl-mega-panel__icon {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .fdl-mobile-cat-drawer .fdl-mega-panel__count {
    opacity: 0.6;
  }

  .fdl-header-nav {
    display: none !important;
  }
}
