﻿/* Minimal integration layer for original Logomashina header/footer styles.
   Main styles are loaded from /reference/style.css and /reference/blog.css. */

@font-face {
  font-family: "InterLocal";
  src: url("/fonts/Inter-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterLocal";
  src: url("/fonts/Inter-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterLocal";
  src: url("/fonts/Inter-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterLocal";
  src: url("/fonts/Inter-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterLocal";
  src: url("/fonts/Inter-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --base-ff: "InterLocal" !important;
}

body,
button,
input,
textarea,
select {
  font-family: "InterLocal", system-ui, sans-serif;
}

.dark-bg {
  margin-top: 24px;
}

/* Fallback dropdown behavior for header menus if original theme JS is not loaded */
.header .menu-item-has-children {
  position: relative;
}

.header .menu-item-has-children.is-open > .sub-menu {
  display: flex !important;
}

.header .menu-item-has-children > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header .menu-item-has-children > a::after {
  content: "";
  width: 12px;
  height: 6px;
  background-color: currentColor;
  mask-image: url("/img/dropdown.svg");
  -webkit-mask-image: url("/img/dropdown.svg");
  mask-size: 100%;
  -webkit-mask-size: 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  position: relative;
  top: 0;
  transform: none;
  opacity: 0.9;
  transition: opacity 0.18s ease;
  flex: 0 0 auto;
}

.header .menu-item-has-children > a.active::after {
  transform: none;
  opacity: 1;
}

@media (max-width: 720px) {
  .dark-bg {
    margin-top: 16px;
  }
}
