/* Joined by the theme (includes/core/assets/css-bundle.php) from:
/wp-content/themes/nuzp/assets/css/css-blocks/header/layout.css:1796500037
/wp-content/themes/nuzp/assets/css/css-blocks/header/logo.css:1796500037
/wp-content/themes/nuzp/assets/css/css-blocks/header/navigation.css:1796500037
/wp-content/themes/nuzp/assets/css/css-blocks/header/controls.css:1796500037
/wp-content/themes/nuzp/assets/css/css-blocks/header/page-header.css:1796500037
*/

/* /wp-content/themes/nuzp/assets/css/css-blocks/header/layout.css */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: var(--color-bg-primary);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header._scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Wider than 2560 the page is a 2560px canvas in the middle (variables.css);
   being fixed, the header is placed by the window, not by the page, so it is
   centred on the canvas here. Its navy bar, when scrolled, still runs to the
   window's edges (.header-bottom::before, 100vw). */
@media (min-width: 2561px) {
  .header {
    right: 0;
    max-width: 2560px;
    margin-inline: auto;
  }
}

/*
 * On a wide screen the header shrinks by 16px when scrolled (.header-top's
 * padding below) and grows back over 0.35s. The page is laid out under the
 * full header, so flung back to the top it arrived before the header had
 * grown, and for that moment the white of the page showed between the
 * header's bar and a navy page header. The page header now starts 17px
 * higher, tucked under the full header, with a transparent top border of
 * the same depth that its own background shows through: at rest the header
 * covers it, and while the header grows it is the page header itself that
 * shows, not white. Its content stays where it was. Only a .page-hero (and
 * the alumni opening) that comes first and follows the general rule for the
 * first section; a page whose own CSS places its first section otherwise
 * keeps that.
 */
@media (min-width: 1280px) {
  main > section.page-hero:first-of-type,
  main > section.alumni-intro:first-of-type {
    margin-top: calc(var(--header-height-1px) - 17px);
    border-top: 17px solid transparent;
    background-origin: border-box;
  }
}

.header-top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-bg-primary);
  padding: 1rem 0;
  transition: padding 0.35s ease-in-out;
  color: var(--color-text-secondary);
}

.header._scrolled .header-top {
  padding: 0.5rem 0;
}

.header-top__item {
  position: relative;
  z-index: 1;
}

.header-top__item:nth-child(1) {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-bottom {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-blue-200);
  color: var(--color-white);
}

.header-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100vw;
  height: 100%;
  background-color: var(--color-blue-200);
  transition: transform 0.35s ease-in-out;
  z-index: -1;
  transform-origin: center;
}

.header._scrolled .header-bottom::before {
  transform: translateX(-50%) scaleX(1);
}

.header-bottom__item {
  position: relative;
  width: 100%;
}

.header-bottom__item a {
  padding: 1.1rem 0;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease;
}

@media (min-width: 1280px) {
  .header-top {
    font-size: 1rem;
  }
  .header-top__item:nth-child(2) {
    display: flex;
    width: 100%;
    justify-content: flex-end;
  }
  .header-bottom {
    font-size: 1rem;
    font-weight: 500;
  }
}

/* No larger size of the menu's own: 18-19px at 1920 read as oversized beside other sites (the owner,
   2026-12-02). From 2000px the root itself grows (variables.css), so the menu's 1rem is 18px there. */

@media (max-width: 1279px) {
  .header._scrolled {
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.05),
      0 12px 32px rgba(0, 0, 0, 0.1);

    background-color: rgba(var(--color-bg-primary--rgb), 0.98);
  }

  .header-top__item:nth-child(3) {
    max-width: 90%;
    width: 100%;
  }
  .header-bottom {
    display: none;
  }
}

/*
 * Small screens: the controls take only their own width and the logo gets
 * the rest of the bar, shrinking its wordmark instead of overflowing
 * (logo.css).
 */
@media (max-width: 899px) {
  .header-top__item:nth-child(1) {
    flex-shrink: 1;
    min-width: 0;
  }

  .header-top__item:nth-child(3) {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 899px) {
  .header-top {
    padding: 0.5rem 0;
  }
  .categories__container {
    padding: 0 !important;
  }
}



/* /wp-content/themes/nuzp/assets/css/css-blocks/header/logo.css */
.logo-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.logo-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  will-change: transform;
}

.logo-link__label {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  transition: 0.5s ease-in-out;
  transition-property: transform;
}

.logo-link__text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  width: auto;
  height: auto;
  max-width: 260px;
  margin-left: 12px;
  opacity: 1;
  transform: translateX(0);
  transform-origin: left center;
  transition: 0.5s ease-in-out;
  transition-property: max-width, margin-left, opacity, transform;
}

.logo-link__text img {
  width: auto;
  height: 32px;
}

/* Wordmark twins, see site-header.php: blue letters on light, white on dark. */
.logo-link__text .logo-link__img--dark,
html[data-theme="dark"] .logo-link__text .logo-link__img--light {
  display: none;
}

html[data-theme="dark"] .logo-link__text .logo-link__img--dark {
  display: block;
}

.header._scrolled .logo-link__text {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  transform: translateX(-15px);
}

.header._scrolled .logo-link__label {
  transform: scale(0.85);
}

@media (min-width: 1600px) {
  .logo-link__label {
    width: 64px;
    height: 64px;
  }
  .logo-link__text {
    max-width: 340px;
    margin-left: 16px;
  }
  .logo-link__text img {
    height: 40px;
  }
}

@media (min-width: 1280px) and (max-width: 1599px) {
  .logo-link__label {
    width: 56px;
    height: 56px;
  }
  .logo-link__text {
    max-width: 280px;
    margin-left: 14px;
  }
  .logo-link__text img {
    height: 36px;
  }
}

@media (min-width: 1280px) and (max-width: 1279px) {
  .logo-link__label {
    width: 48px;
    height: 48px;
  }
  .logo-link__text {
    margin-left: 10px;
  }
  .logo-link__text img {
    height: 30px;
  }
}

@media (max-width: 1279px) {
  .logo-link__label {
    width: 42px;
    height: 42px;
  }
}

/*
 * Small screens. All five controls stay in the bar at their full spacing,
 * so the wordmark gives way instead: below 768px it takes whatever room the
 * controls leave, up to 200px, and scales with it.
 */
@media (max-width: 899px) {
  .logo-link__text {
    flex-shrink: 1;
    min-width: 0;
    max-width: 200px;
    margin-left: 8px;
  }

  .logo-link__text img {
    width: 100%;
    height: auto;
  }
}

/*
 * Phones. Beside five icons the wordmark would shrink to an unreadable
 * 15px strip and crowd the bar, so the shield stands alone, a size larger;
 * its alt text still names the university.
 */
@media (max-width: 480px) {
  .logo-link__label {
    width: 40px;
    height: 40px;
  }

  .logo-link__text {
    display: none;
  }
}


/* /wp-content/themes/nuzp/assets/css/css-blocks/header/navigation.css */
.menu {
  width: 100%;
}

.menu__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.menu-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
}

.menu-arrow svg {
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

@media (min-width: 1280px) {
  .menu.menu__mobile {
    display: none;
  }

  .menu__list {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .menu.menu__top .menu__list {
    justify-content: flex-end;
  }

  .menu.menu__bottom .menu__list {
    padding: 0 var(--wrap);
    justify-content: space-between;
  }

  .menu__list > .menu-item > .menu-row > .menu-arrow {
    display: none !important;
  }

  .menu-item {
    position: relative;
  }

  .menu-row {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .menu-arrow {
    margin-left: 6px;
    pointer-events: none;
  }

  .menu.menu__top .menu-item:hover .menu__link {
    color: var(--color-text-primary);
  }

  .menu-item:hover > .menu-row .menu-arrow svg,
  .menu-item:has(:focus-visible) > .menu-row .menu-arrow svg,
  .menu-item._kb-open > .menu-row .menu-arrow svg {
    transform: rotate(180deg);
  }

  .menu__link span {
    position: relative;
    text-align: center;
  }

  .menu__link span::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .menu-item:hover > .menu-row .menu__link span::before {
    transform: scaleX(1);
  }


  .sub-menu {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    /* Drops from the menu item it belongs to rather than rising towards it. */
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.3s;
    position: absolute;
    min-width: 320px;
    background: var(--color-surface-card);
    border: 1px solid rgba(var(--color-ink--rgb), 0.05);
    padding: 0;
    z-index: 100;
    flex-direction: column;
    box-shadow: none;
    top: 100%;
    left: 0;
  }

  /* The item's row is as tall as the bar, so its dropdown hangs right from
     the bar's edge with no gap to bridge. The items used to reach 15px past
     the bar for that, and the invisible strip took the clicks meant for what
     lies just under the header (the tab of the section bar). */
  .menu__list > .menu-item > .sub-menu {
    top: 100%;
  }

  .menu__bottom .sub-menu {
    background: var(--color-blue-200);
    color: var(--color-white);
    left: 0;
    right: auto;
    border: none;
  }

  /* Items on the right side of the menu should open dropdowns to the left */
  .menu__list > .menu-item:nth-last-child(-n+3) > .sub-menu {
    right: 0;
    left: auto;
  }

  /* A keyboard user tabbing into a section opens its submenu the same way the
     pointer does; :focus-visible keeps a mouse click from pinning it open.
     ._kb-open (header.js) holds it open while the focus moves from one of its
     items to the next: between the two the item has no focus for an instant,
     the submenu would hide and the link taking the focus would drop it. */
  .menu-item:hover > .sub-menu,
  .menu-item:has(:focus-visible) > .sub-menu,
  .menu-item._kb-open > .sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sub-menu .menu-item {
    width: 100%;
    border-bottom: 1px solid rgba(var(--color-ink--rgb), 0.05);
    position: relative;
  }
  
  .sub-menu .menu-item:hover {
    background-color: rgba(var(--color-ink--rgb), 0.04);
  }

  .menu__bottom .sub-menu .menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sub-menu .menu-item:last-child {
    border-bottom: none;
  }

  .sub-menu .menu-row {
    width: 100%;
    padding: 0;
  }

  .sub-menu .menu__link {
    font-size: 0.9rem;
    flex-grow: 1;
    padding: 5px 15px;
    width: auto;
    color: inherit;
  }

  .sub-menu .menu__link span {
    text-align: left;
    display: block;
  }

  .sub-menu .menu-arrow {
    margin-left: auto;
    padding-right: 15px;
  }

  .sub-menu .sub-menu {
    top: 0 !important;
    bottom: auto !important;
    left: 100%;
    right: auto;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    overscroll-behavior: contain;
    background-color: var(--color-bg-secondary);
    transition: top 0.2s ease-out;
  }
  
  .menu__bottom .sub-menu .sub-menu {
    background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08));
    background-color: var(--color-blue-200);
  }

  /* 3rd level sub-menus on the right side of the screen should open to the left */
  .menu__list > .menu-item:nth-last-child(-n+3) .sub-menu .sub-menu {
    right: 100%;
    left: auto;
  }


}

@media (max-width: 1279px) {
  .menu.menu__top,
  .menu.menu__bottom {
    display: none;
  }

  .menu.menu__mobile {
    color: var(--color-white);
    font-size: 1.1rem;
    line-height: 1.4;
    display: block;
    width: 100%;
    overflow-x: hidden;
    margin-top: 0;
  }

  .menu__mobile .menu-item-has-children > a::after,
  .menu__mobile .menu-item-has-children > a::before {
    content: none !important;
    display: none !important;
  }

  .menu__mobile .menu-item {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu__mobile .menu-row {
    display: flex;
    width: 100%;
    min-height: 50px;
    background: transparent;
    position: relative;
    z-index: 2;
    align-items: stretch;
    transition: background-color 0.3s ease;
  }

  .menu__mobile .menu__link {
    flex: 1;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    word-break: break-word;
    hyphens: auto;
  }

  .menu__mobile .menu__link span {
    display: block;
    width: 100%;
  }

  .menu__mobile .menu-arrow {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    background: transparent;
  }

  .menu__mobile .menu-item._open > .menu-row {
    background: rgba(255, 255, 255, 0.05);
  }

  .menu__mobile .menu-item._open > .menu-row .menu-arrow svg {
    transform: rotate(180deg);
  }

  .menu__mobile .sub-menu {
    display: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 !important;
  }

  .menu__mobile .menu-item._open > .sub-menu {
    display: block;
    animation: mobileSlideDownFade 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }
  
  @keyframes mobileSlideDownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .menu__mobile .sub-menu .menu-row {
    min-height: 40px;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .menu__mobile .sub-menu .menu__link {
    padding: 12px 15px 12px 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0;
    transition: background 0.2s, color 0.2s, padding-left 0.3s ease;
  }
  
  .menu__mobile .sub-menu .menu__link:hover,
  .menu__mobile .sub-menu .menu__link:active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 25px;
  }

  .menu__mobile .sub-menu .sub-menu {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0 !important;
    margin-top: 0;
  }

  .menu__mobile .sub-menu .sub-menu .menu-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  }

  .menu__mobile .sub-menu .sub-menu .menu-item:last-child .menu-row {
    border-bottom: none;
  }

  .menu__mobile .sub-menu .sub-menu .menu__link {
    padding: 10px 15px 10px 25px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 0;
  }
  
  .menu__mobile .sub-menu .sub-menu .menu__link:hover,
  .menu__mobile .sub-menu .sub-menu .menu__link:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    padding-left: 30px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/*
 * «Зимовий вступ» in the top menu (the owner, 2026-11-27): the first item, as the others (no colour or decoration
 * of its own), parted from the menu by the same hairline as the controls. The desktop header starts at 1280px for it
 * (under that the tablet's header with the burger, where the item is a quick link); at 1280-1365px the top menu is
 * 14px and closer, at 1366-1535px 15px, so that it fits beside the logo.
 */
@media (min-width: 1280px) {
  .menu__top .menu__sep {
    flex: 0 0 auto;
    width: 1px;
    height: 1.25rem;
    background-color: var(--color-border);
  }

  .menu__link--winter {
    white-space: nowrap;
  }
}

@media (min-width: 1280px) and (max-width: 1365px) {
  .menu.menu__top .menu__list {
    gap: 10px;
    font-size: 0.875rem;
  }
}

@media (min-width: 1366px) and (max-width: 1535px) {
  .menu.menu__top .menu__list {
    gap: 12px;
    font-size: 0.9375rem;
  }
}


/* /wp-content/themes/nuzp/assets/css/css-blocks/header/controls.css */
/*
 * The header controls - language, theme, accessibility, search, burger - are
 * all 24px icons in a row, spaced by one gap. The accessibility button comes
 * from the ms-accessibility plugin as a 40px box (its 24px icon plus an 8px
 * padding that its round hover highlight needs); the negative margin takes
 * that padding back out of the row, so its icon lines up at the same gap.
 */
.header__buttons {
  --header-btn-gap: 1.5rem;

  display: flex;
  align-items: center;
  gap: var(--header-btn-gap);
  margin-left: 20px;
}

.header__buttons #accessibility-toggle-btn.header-style {
  margin: 0 -8px;
}

/*
 * The theme's lighter icon for the button (filters.php) is drawn with lines;
 * the plugin paints its own glyph with fill, which would flood the ring.
 */
.header__buttons #accessibility-toggle-btn.header-style .header-a11y-icon {
  fill: none;
}


/*
 * The language flag keeps its 8px padding as a touch area (pagination.css),
 * and the negative margin takes that padding back out of the row, so the
 * flag itself lines up at the same gap as the icons. The current language
 * sits on the bar with no plate of its own; only the dropdown gets one.
 */
.header__buttons .menu__lang {
  margin: 0 -8px;
}

.header__buttons .menu__lang .current-lang {
  background-color: transparent;
}

.header__buttons .menu__lang .lang-item:not(.current-lang) {
  background-color: var(--color-surface-card);
}

@media (min-width: 1280px) {
  .header__buttons {
    justify-content: space-between;
    margin-left: var(--header-btn-gap);
  }

  /*
   * On desktop the top menu links sit right before the controls; a short
   * hairline, spaced like the icons, keeps the two groups apart. Phones have
   * no top menu, so no line either.
   */
  .header__buttons::before {
    content: "";
    flex: 0 0 auto;
    width: 1px;
    height: 1.25rem;
    background-color: var(--color-border);
  }
}
@media (max-width: 1279px) {
  .header__buttons {
    justify-content: flex-end;
  }
}

.header__btn__search {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  padding: 0;
  background-color: transparent;
  color: var(--color-text-primary);
  justify-content: center;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.header__btn__search svg {
  width: 100%;
  height: auto;
}

.header__btn__search svg path,
.header__btn__search svg circle {
  transition: stroke 0.3s ease;
}

html:not(.v-mobile) .header__btn__search:hover svg > * {
  stroke: var(--color-accent);
}

.menu-burger {
  position: relative;
  display: block;

  flex: 0 0 1.5625rem;
  width: 1.5625rem;

  height: 1.125rem;
  border: unset;
  padding: unset;
  background-color: transparent;
  transition: transform 0.3s ease;

  min-width: 1.5625rem;
}

.menu-burger._opened {
  transform: rotate(225deg);
}

.menu-burger::before,
.menu-burger::after,
.menu-burger span {
  content: "";
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 0.125rem;
  background-color: var(--color-text-primary);
}

.menu-burger span {
  top: 50%;
  transition:
    color 0.3s ease,
    transform 0.3s;
}
.menu-burger._opened span {
  transform: scale(0);
}

.menu-burger::before {
  top: 0;
  transition:
    color 0.3s ease,
    transform 0.2s;
}
.menu-burger._opened::before {
  transform: translate(0, 9px);
}

.menu-burger::after {
  top: 100%;
  transition:
    color 0.3s ease,
    transform 0.2s;
}
.menu-burger._opened::after {
  transform: translate(0, -9px) rotate(90deg);
}

.menu-burger:focus-visible::before,
.menu-burger:focus-visible::after,
.menu-burger:focus-visible span {
  background-color: var(--color-accent);
}

html:not(.v-mobile) .menu-burger:hover span,
html:not(.v-mobile) .menu-burger:hover::before,
html:not(.v-mobile) .menu-burger:hover::after {
  background-color: var(--color-accent);
}

@media (min-width: 1280px) {
  .menu-burger {
    display: none;
  }
}

.menu__lang {
  position: relative;
}

.menu__lang ul {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  padding-top: 0.3125rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu__lang:hover ul,
.menu__lang:focus-visible ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu__lang .lang-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 0.9375rem;
  color: var(--color-text-secondary);
  filter: brightness(1.1);
}

.menu__lang .lang-item > * + * {
  margin-left: 0.5em;
}

.menu__lang .lang-item a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu__lang .lang-item a img {
  width: 100%;
  height: auto;
}

.menu__lang .lang-item svg {
  width: 0.375rem;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu__lang:hover svg,
.menu__lang:focus-visible svg {
  transform: rotate(180deg);
}

.menu__lang .lang-item-current img {
  max-width: 1.4375rem;
  width: 100%;
  height: auto;
}


/* Light / dark switch; markup in template-parts/ui/controls/theme-toggle.php. */
.theme-toggle {
  display: flex;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  padding: 0;
  background-color: transparent;
  color: var(--color-text-primary);
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.theme-toggle__icon {
  width: 100%;
  height: auto;
  overflow: visible;
}

/*
 * The icon shows the theme the button switches to, as on YouTube and GitHub:
 * a moon on the light theme, a sun on the dark one. On a switch one fades
 * out while the other fades in with a slight turn and scale - quiet, in step
 * with the page's cross-fade.
 */
.theme-toggle__moon,
.theme-toggle__sun {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 0.35s cubic-bezier(0.42, 0, 0.58, 1),
    transform 0.35s cubic-bezier(0.42, 0, 0.58, 1);
}

.theme-toggle__sun {
  opacity: 0;
  transform: rotate(-30deg) scale(0.8);
}

html[data-theme="dark"] .theme-toggle__moon {
  opacity: 0;
  transform: rotate(30deg) scale(0.8);
}

html[data-theme="dark"] .theme-toggle__sun {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle__icon * {
    transition: none !important;
  }
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Only where there is a pointer to hover with: a tap on a phone would leave it stuck blue. */
@media (hover: hover) {
  html:not(.v-mobile) .theme-toggle:hover {
    color: var(--color-accent);
  }
}

/*
 * Phones. Beside a 40px shield the desktop icons read heavy: 24px with a 2px
 * line and a thick burger. Here the icons are 22px drawn with a 1.5px line
 * and the burger's bars thin to match, so the row reads as one quiet set.
 * The gap stays the desktop 24px: it is also the width of each icon's touch
 * area (below), and a narrower one made a finger land on the wrong icon.
 */
@media (max-width: 899px) {
  .theme-toggle,
  .header__btn__search {
    width: 22px;
    height: 22px;
  }

  .theme-toggle__icon,
  .header__btn__search svg {
    stroke-width: 1.4;
  }

  /* The plugin's 40px box shrinks with its icon, so its 8px margin still evens out. */
  .header__buttons #accessibility-toggle-btn.header-style {
    width: 38px;
    height: 38px;
  }

  .header__buttons #accessibility-toggle-btn.header-style svg {
    width: 22px;
    height: 22px;
  }

  .menu-burger {
    flex-basis: 22px;
    width: 22px;
    min-width: 22px;
  }

  .menu-burger::before,
  .menu-burger::after,
  .menu-burger span {
    height: 1.5px;
  }
}

/*
 * Touch screens. The icons are 24px, well under the 44px a finger needs, so
 * each control gets an invisible touch area around it: 44px tall, and as wide
 * as the middle of the gap on either side, so neighbours never overlap. The
 * icons themselves do not move. The burger draws its lines with ::before and
 * ::after, so it grows by a transparent border instead, which its negative
 * margin takes back out of the row; the border is even on both sides so the
 * burger still turns into a cross around its own centre.
 */
@media (pointer: coarse) {
  .header__buttons #accessibility-toggle-btn.header-style,
  .header__buttons .theme-toggle,
  .header__buttons .header__btn__search,
  .header__buttons .menu__lang .current-lang > a {
    position: relative;
  }

  .header__buttons #accessibility-toggle-btn.header-style::after,
  .header__buttons .theme-toggle::after,
  .header__buttons .header__btn__search::after {
    content: "";
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: calc(var(--header-btn-gap) / -2);
    right: calc(var(--header-btn-gap) / -2);
  }

  .header__buttons .menu__lang .current-lang > a::after {
    content: "";
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: 0;
    right: 0;
  }

  .header__buttons .menu-burger {
    box-sizing: content-box;
    border: solid transparent;
    border-width: 13px calc(var(--header-btn-gap) / 2);
    margin: -13px calc(var(--header-btn-gap) / -2);
    background-clip: padding-box;
  }
}


/* /wp-content/themes/nuzp/assets/css/css-blocks/header/page-header.css */
._inner-header {
  margin-bottom: 1.25rem;
}

._inner-header > * + * {
  margin-top: 1.25rem;
}

._inner-header__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 116%;
  color: var(--color-text-heading);
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

._inner-header__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

._inner-header__info > * + * {
  margin-left: 14px;
}

._inner-header__info .share {
  display: flex;
  align-items: center;
  font-weight: 700;
  line-height: 140%;
  color: var(--color-text-heading);
  transition: 0.3s ease;
}

._inner-header__info .share:hover {
  color: var(--color-text-primary);
}

._inner-header__info .share > * + * {
  margin-left: 8px;
}

._inner-header__date {
  display: block;
  font-weight: 700;
  line-height: 140%;
  color: var(--color-text-heading);
  text-transform: lowercase;
}

@media (min-width: 900px) {
  ._inner-header__title__container {
    max-width: 100%;
  }
  ._inner-header__title {
    font-size: 3rem;
  }
  ._inner-header__info .share,
  ._inner-header__date {
    font-size: 1rem;
  }
}

@media (max-width: 899px) {
  ._inner-header__title {
    font-size: var(--fs-title);
  }
  ._inner-header__info .share,
  ._inner-header__date {
    font-size: 0.875rem;
  }
}

