:root {
  --infoflex-accent: #d8262f;
  --infoflex-text: #171717;
  --infoflex-muted: #747474;
  --infoflex-line: #ececec;
  --infoflex-surface: #fff;
  --infoflex-soft-surface: #fafafa;
  --infoflex-active-surface: #fff2f2;
  --infoflex-max-width: 1280px;
}

.infoflex-core-active #masthead,
.infoflex-core-active #site-navigation {
  display: none !important;
}

.infoflex-core-active {
  padding-top: 0;
}

.infoflex-header,
.infoflex-header * {
  box-sizing: border-box;
}

.infoflex-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: var(--infoflex-surface);
  border-bottom: 1px solid var(--infoflex-line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .035);
}

.infoflex-header__inner {
  width: min(calc(100% - 40px), var(--infoflex-max-width));
  height: 75px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.infoflex-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.infoflex-brand .custom-logo-link {
  display: flex;
  align-items: center;
}

.infoflex-brand .custom-logo {
  display: block;
  width: auto;
  max-width: 245px;
  max-height: 56px;
}

.infoflex-brand__text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--infoflex-text);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.infoflex-brand__text strong {
  color: var(--infoflex-accent);
  font-size: .72em;
  font-weight: 800;
  letter-spacing: -.35px;
}

.infoflex-navigation {
  min-width: 0;
  flex: 1 1 auto;
}

.infoflex-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 1.4vw, 23px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.infoflex-menu > li {
  margin: 0;
  padding: 0;
}

.infoflex-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 75px;
  color: var(--infoflex-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.35px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}

.infoflex-menu > li > a:hover,
.infoflex-menu > li > a:focus-visible,
.infoflex-menu > .current-menu-item > a,
.infoflex-menu > .current-category-ancestor > a {
  color: var(--infoflex-accent);
}

.infoflex-menu > .current-menu-item > a::after,
.infoflex-menu > .current-category-ancestor > a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--infoflex-accent);
  content: '';
}

.infoflex-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.infoflex-social-link {
  width: 30px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--infoflex-text);
  text-decoration: none;
}

.infoflex-social-link:hover,
.infoflex-social-link:focus-visible {
  color: var(--infoflex-accent);
}

.infoflex-social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.infoflex-social-link[href*="x.com"] svg,
.infoflex-social-link[href*="twitter.com"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.infoflex-social-link .infoflex-youtube-play {
  fill: var(--infoflex-surface);
}

.infoflex-theme-icon {
  display: inline-flex;
}

.infoflex-theme-icon--sun {
  display: none;
}

.infoflex-icon-button {
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--infoflex-text);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.infoflex-icon-button:hover,
.infoflex-icon-button:focus-visible {
  color: var(--infoflex-accent);
  background: #fff4f4;
}

.infoflex-icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.infoflex-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.infoflex-menu-toggle span {
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.infoflex-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.infoflex-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.infoflex-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.infoflex-search-panel {
  border-top: 1px solid var(--infoflex-line);
  background: var(--infoflex-soft-surface);
}

html[data-infoflex-theme="dark"] {
  color-scheme: dark;
  --infoflex-text: #f2f2f2;
  --infoflex-muted: #b8b8b8;
  --infoflex-line: #333;
  --infoflex-surface: #181818;
  --infoflex-soft-surface: #222;
  --infoflex-active-surface: #322124;
}

html[data-infoflex-theme="dark"] body,
html[data-infoflex-theme="dark"] #page,
html[data-infoflex-theme="dark"] .site-content {
  color: #e8e8e8;
  background-color: #121212;
}

html[data-infoflex-theme="dark"] .infoflex-theme-icon--moon {
  display: none;
}

html[data-infoflex-theme="dark"] .infoflex-theme-icon--sun {
  display: inline-flex;
}

html[data-infoflex-theme="dark"] .infoflex-icon-button:hover,
html[data-infoflex-theme="dark"] .infoflex-icon-button:focus-visible,
html[data-infoflex-theme="dark"] .infoflex-menu > .current-menu-item > a,
html[data-infoflex-theme="dark"] .infoflex-menu > .current-category-ancestor > a {
  background: var(--infoflex-active-surface);
}

html[data-infoflex-theme="dark"] .infoflex-search-panel input[type="search"] {
  color: #f2f2f2;
  background: #181818;
  border-color: #444;
}

.infoflex-search-panel[hidden] {
  display: none;
}

.infoflex-search-panel__inner {
  width: min(calc(100% - 40px), 720px);
  margin: 0 auto;
  padding: 18px 0;
}

.infoflex-search-panel form {
  display: flex;
  margin: 0;
}

.infoflex-search-panel input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 7px 0 0 7px;
  font-size: 16px;
}

.infoflex-search-panel input[type="submit"],
.infoflex-search-panel button[type="submit"] {
  min-width: 82px;
  height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--infoflex-accent);
  border: 1px solid var(--infoflex-accent);
  border-radius: 0 7px 7px 0;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .infoflex-header__inner {
    gap: 20px;
  }

  .infoflex-brand .custom-logo {
    max-width: 155px;
  }

  .infoflex-brand__text {
    font-size: 22px;
  }

  .infoflex-menu {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .infoflex-menu::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 900px) {
  .infoflex-header__inner {
    width: min(calc(100% - 28px), var(--infoflex-max-width));
    min-height: 64px;
    gap: 12px;
  }

  .infoflex-brand .custom-logo {
    max-width: 150px;
    max-height: 38px;
  }

  .infoflex-navigation {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--infoflex-surface);
    border-top: 1px solid var(--infoflex-line);
    border-bottom: 1px solid var(--infoflex-line);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .09);
  }

  .infoflex-social-link {
    display: none;
  }

  .infoflex-navigation.is-open {
    display: block;
  }

  .infoflex-menu {
    width: min(calc(100% - 28px), 720px);
    margin: 0 auto;
    padding: 10px 0 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
    overflow: visible;
  }

  .infoflex-menu > li > a {
    min-height: 45px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 15px;
  }

  .infoflex-menu > .current-menu-item > a,
  .infoflex-menu > .current-category-ancestor > a {
    background: var(--infoflex-active-surface);
  }

  .infoflex-menu > .current-menu-item > a::after,
  .infoflex-menu > .current-category-ancestor > a::after {
    display: none;
  }

  .infoflex-header__actions {
    margin-left: auto;
  }

  .infoflex-menu-toggle {
    display: inline-flex;
  }

  .infoflex-search-panel__inner {
    width: calc(100% - 28px);
  }
}

@media (max-width: 480px) {
  .infoflex-brand__text {
    font-size: 19px;
    letter-spacing: -1px;
  }

  .infoflex-brand .custom-logo {
    max-width: 132px;
  }

  .infoflex-icon-button {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .infoflex-header * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Infoflex Education v0.1 visual identity */
:root{
  --infoflex-accent:#0868f2;
  --infoflex-accent-dark:#0756c8;
  --infoflex-blue-soft:#eff6ff;
  --infoflex-blue-line:#cfe0fb;
  --infoflex-text:#111827;
  --infoflex-muted:#667085;
  --infoflex-line:#e3e8ef;
  --infoflex-surface:#fff;
  --infoflex-soft-surface:#f8fbff;
  --infoflex-active-surface:#edf5ff;
  --infoflex-max-width:1200px;
}
.infoflex-header{position:relative;background:#fff;border-bottom:1px solid #e8edf5;box-shadow:none}
.infoflex-header__inner{height:68px;gap:28px}
.infoflex-brand__text{color:#0968e8;font-size:27px;letter-spacing:-1.4px}
.infoflex-brand__text strong{margin-left:3px;color:#303744;font-size:11px;font-weight:700;letter-spacing:-.2px}
.infoflex-menu>li>a{min-height:68px;font-size:14px;font-weight:700;color:#222b38}
.infoflex-header__actions .infoflex-theme-toggle,.infoflex-social-link{display:none}
.infoflex-search-toggle{border:1px solid #b7d0f7;border-radius:5px;color:#0766e6}
