/* Joined by the theme (includes/core/assets/css-bundle.php) from:
/wp-content/themes/nuzp/assets/css/css-blocks/footer.css:1796500037
/wp-content/themes/nuzp/assets/css/css-blocks/breadcrumbs.css:1796500037
/wp-content/themes/nuzp/assets/css/css-blocks/news-block.css:1796500037
/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-posts/faculty-department.css:1796500037
/wp-content/themes/nuzp/assets/css/css-blocks/header/doodles.css:1796500037
/wp-content/themes/nuzp/assets/css/css-components/widget-calendar.css:1796500037
*/

/* /wp-content/themes/nuzp/assets/css/css-blocks/footer.css */
.footer {
  overflow: hidden;
}

@media (min-width: 1200px) {
  .footer {
    margin-top: 1.375rem;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .footer {
    margin-top: 2.75rem;
  }
}

@media (max-width: 899px) {
  .footer {
    margin-top: 1.25rem;
  }
}

@media (max-width: 899px) {
  .footer__container {
    padding: unset;
  }
}

.footer-contacts__wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@media (max-width: 899px) {
  .footer-contacts__wrapper {
    align-items: center;
  }
}

@media (max-width: 1150px) {
  .footer-contacts {
    gap: 2rem !important;
    width: 100%;
    flex-wrap: wrap;
  }
}



.footer__wrapper {
  position: relative;
  z-index: 1;
  background-color: var(--color-bg-secondary);
  padding: 20px;
}

@media (min-width: 1200px) {
  .footer__wrapper {
    padding: 1.375rem 2rem 1rem;
  }
}

.footer__wrapper > * + * {
  margin-top: 2rem;
}

.footer__header {
  position: relative;
  z-index: 1;
}

.footer__main {
  position: relative;
  z-index: 1;
  width: 100%;
}

.footer__bottom {
  border-top: 1px solid var(--color-accent);
  padding-top: 2rem;
}

@media (max-width: 899px) {
  .footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 1400px) {
  .footer-socials--icons,
  .footer-socials--logos {
    height: 50px;
  }
}

.footer__bg {
  position: absolute;
  margin: 0;
  top: -50px;
  right: -75px;
  z-index: 0;
  pointer-events: none;
}

.footer-contacts__link-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-contacts__link-wrapper svg {
  flex-shrink: 0;
}

@media (max-width: 899px) {
  .footer__bg {
    width: 100%;
  }
}

/*
 * The crest watermark is a faint shape in the light theme, but its white
 * parts light up on a dark page and sit right behind the column headings,
 * so the dark theme turns it down to a trace.
 */
.footer__bg {
  --footer-watermark-opacity: 1;
}

html[data-theme="dark"] .footer__bg {
  --footer-watermark-opacity: 0.3;
}

.footer__bg img,
.footer__bg svg {
  width: 85%;
  height: auto;
  opacity: var(--footer-watermark-opacity);
}

@media (min-width: 900px) {
  .footer__logo {
    max-width: 20.3125rem;
  }
}

@media (max-width: 899px) {
  .footer__logo {
    max-width: 13.3125rem;
  }
}

.footer__logo img {
  width: 100%;
  height: auto;
}

/* Logo twins, see site-footer.php: blue wordmark on light, white on dark. */
.footer__logo .logo-link__img--dark,
html[data-theme="dark"] .footer__logo .logo-link__img--light {
  display: none;
}

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

.footer-navigation {
  font-weight: 400;
  line-height: 115.384%;
}

@media (min-width: 900px) {
  .footer-navigation {
    display: grid;
    gap: 2em;
    grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
    font-size: 0.75rem;
  }
}

@media (min-width: 900px) and (min-width: 1710px) {
  .footer-navigation {
    gap: 0.769em;
    font-size: 0.8125rem;
  }
}

@media (max-width: 899px) {
  .footer-navigation {
    font-size: 0.875rem;
  }
}

@media (max-width: 899px) {
  .footer-navigation > * + * {
    border-top: 1px solid var(--color-border-strong);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
}

.footer-navigation__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: normal;
  line-height: 116%;
  font-weight: 400;
  border: unset;
  padding: unset;
  background-color: transparent;
  text-align: left;
  font-weight: 500;
  color: var(--color-link);
}

@media (min-width: 1200px) {
  .footer-navigation__title {
    font-size: 1.375rem;
  }
}

@media (min-width: 1200px) and (min-width: 1540px) {
  .footer-navigation__title {
    font-size: 1.5rem;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .footer-navigation__title {
    font-size: 1.375rem;
  }
}

@media (max-width: 899px) {
  .footer-navigation__title {
    font-size: 1.0625rem;
  }
}

@media (min-width: 900px) {
  .footer-navigation__title {
    cursor: default;
  }
}

@media (max-width: 899px) {
  .footer-navigation__title {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
}

.footer-navigation__title > * + * {
  margin-left: 2.5rem;
}

@media (min-width: 900px) {
  .footer-navigation__arrow {
    display: none;
  }
}

.footer-navigation__arrow svg {
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition:
    transform 0.3s ease,
    -webkit-transform 0.3s ease;
}

.footer-navigation__arrow svg._active {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

@media (min-width: 900px) {
  .footer-navigation__inner:not(._last) {
    margin-top: 1.75rem;
  }
}

/*
 * Phone accordion. GSAP animated the list's height while this file animated
 * its margin over a different time, both relaying out the page on every
 * frame, so opening stuttered. Now one transition of the grid row (0fr → 1fr)
 * with the margin and opacity in step; main.js only toggles _active. A closed
 * list is also hidden, so the keyboard skips its links.
 */
@media (max-width: 899px) {
  .footer-navigation__inner:not(._last) {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition:
      grid-template-rows 0.3s ease,
      margin-top 0.3s ease,
      opacity 0.2s ease,
      visibility 0s linear 0.3s;
  }

  .footer-navigation__inner:not(._last) > * {
    min-height: 0;
    overflow: hidden;
  }

  .footer-navigation__item._active .footer-navigation__inner:not(._last) {
    grid-template-rows: 1fr;
    margin-top: 1rem;
    opacity: 1;
    visibility: visible;
    transition:
      grid-template-rows 0.3s ease,
      margin-top 0.3s ease,
      opacity 0.25s ease 0.05s,
      visibility 0s;
  }

  .footer-navigation__item._active .footer-navigation__arrow svg {
    transform: rotate(180deg);
  }
}

@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .footer-navigation__inner:not(._last),
  .footer-navigation__item._active .footer-navigation__inner:not(._last),
  .footer-navigation__arrow svg {
    transition: none;
  }
}

/* The three buttons under the lists sat 16px apart on a phone. */
@media (max-width: 899px) {
  .footer-navigation__item--last .footer-list > * + * {
    margin-top: 0.625rem;
  }
}

@media (max-width: 1084px) {
  .footer-navigation__item--last {
    grid-column: 1/-1;
  }

  .extras-list {
    justify-content: center;
  }

  .extras-list__item {
    flex: 0 1 250px !important;
  }
}

.footer-list > * + * {
  margin-top: 0.75rem;
}

.footer-list__item {
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
  color: var(--color-text-primary);
  width: 100%;
}

/* The footer's link buttons keep their own lighter look (the owner's choice,
   2026-10-24): a thin light-blue line, words of normal weight in the link
   colour, the icon after them, and under the pointer the blue sliding in from
   the left. They stay .btn for size and focus; only the look differs. */
.footer-list .footer-list__item.btn {
  --btn-bg: var(--color-bg-primary);
  --btn-fg: var(--color-link);
  --btn-line: var(--color-accent);
  min-height: 0;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(var(--color-blue-100), var(--color-blue-100)) no-repeat 0 0 / 0 100%, var(--btn-bg);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  transition: background-size 0.3s ease, color 0.3s ease;
}

.footer-list .footer-list__item.btn > span {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-list .footer-list__item.btn svg {
  width: 24px;
  height: 24px;
}

/* The icons (the menu item's «icon» field and the feedback one) are drawn in
   lines with no colour of their own; they take the words'. */
.footer-list__item.btn svg path {
  stroke: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .footer-list .footer-list__item.btn:hover {
    --btn-bg: var(--color-bg-primary);
    --btn-fg: var(--color-white);
    --btn-line: var(--color-blue-100);
    background-size: 100% 100%, auto;
  }
}

@media (max-width: 899px) {
  .footer-list .footer-list__item.btn {
    font-size: 0.875rem;
  }

  .footer-list .footer-list__item.btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-list .footer-list__item.btn {
    transition: none;
  }
}

/*
 * The mail button split in two (site-footer.php): the new mail takes the width
 * and the button's usual look; the old webmail is a square part on its right
 * with an archive icon alone, there for whoever still needs it without drawing
 * the eye. Its words are a hint that rises above it under the pointer, on
 * keyboard focus, and on a touch screen after the first tap (footer.js adds
 * _tip there). The two parts share one line where they meet.
 */
.footer-mail {
  --mail-old-w: 70px;
  display: flex;
}

.footer-list .footer-list__item.btn.footer-mail__new {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline: 0.75rem;
  white-space: nowrap;
}

.footer-list .footer-list__item.btn.footer-mail__old {
  position: relative;
  flex: none;
  /* The width puts the archive icon at the middle of the part, right above
     the icons of the two buttons below, which end their centred words. On a
     wide screen those icons sit about 35px from the edge. */
  width: var(--mail-old-w);
  margin-left: -1px;
  padding: 0;
}

/* White words on the blue a footer button fills with under the pointer.
   It hangs from the button's right edge, flush with the column, as a hint
   centred over the icon stuck out past the buttons; its arrow points at the
   icon, half the part's width from that edge. */
.footer-list .footer-list__item.btn.footer-mail__old > .footer-mail__tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 2;
  display: block;
  padding: 0.375rem 0.75rem;
  background: var(--color-blue-100);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* The little arrow under the hint, pointing at the icon. */
.footer-mail__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: calc(var(--mail-old-w) / 2 - 6px);
  border: 6px solid transparent;
  border-top-color: var(--color-blue-100);
}

.footer-list .footer-list__item.btn.footer-mail__old:focus-visible > .footer-mail__tip,
.footer-list .footer-list__item.btn.footer-mail__old._tip > .footer-mail__tip {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .footer-list .footer-list__item.btn.footer-mail__old:hover > .footer-mail__tip {
    opacity: 1;
    transform: none;
  }

  /* The hovered part draws its whole line over the shared one. */
  .footer-mail > .btn:hover {
    z-index: 1;
  }

  .footer-mail > .footer-mail__new:hover {
    position: relative;
  }
}

/* On a phone the buttons below are the full width and their icons sit far in
   from the edge; a part wide enough to line up with them looked too big, so
   here it is a compact square-ish part and the icons are not lined up. */
@media (max-width: 899px) {
  .footer-mail {
    --mail-old-w: 56px;
  }
}

/*
 * The footer links are small text with 12px between them, too thin a target
 * for a finger. Padding widens what can be tapped and the equal negative
 * margin gives the space back, so nothing moves; 6px each way meets the
 * neighbour's area without overlapping it.
 */
.footer-list__item:not(.btn) {
  display: inline-block;
  padding-block: 6px;
  margin-block: -6px;
}

html:not(.v-mobile) .footer-list__item:hover {
  color: var(--color-link);
}

.footer-list__item:focus-visible {
  color: var(--color-link);
}

@media (min-width: 900px) {
  .footer-contacts {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
    width: 100%;
  }
}

@media (max-width: 899px) {
  .footer-contacts > * + * {
    margin-top: 1.5rem;
  }
}

.footer-contacts__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 140%;
  width: 100%;
}

@media (min-width: 900px) {
  .footer-contacts__item {
    max-width: 320px;
  }
}

.footer-contacts__item > * + * {
  margin-left: 0.65rem;
}

.footer-contacts__label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 1.25rem;
  height: 1.25rem;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-accent);
}

.footer-contacts__label svg,
.footer-contacts__label img {
  width: 18px;
  height: 18px;
}

.footer-contacts__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-contacts__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.footer-contacts__desc {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
}

.footer-contacts__link {
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  padding: 1px 0;
  min-height: 22px;
}

html:not(.v-mobile) .footer-contacts__link:hover {
  color: var(--color-link);
}

.footer-contacts__link:focus-visible {
  color: var(--color-link);
}

.footer-contacts__link span {
  display: block;
}

.footer-socials {
  display: flex;
}

.footer-socials > * + * {
  margin-left: 1rem;
}

.footer-socials li {
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.footer-socials__link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 2rem;
  height: 2rem;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.footer-socials__link svg,
.footer-socials__link img {
  width: 100%;
  height: auto;
}

.footer-socials__link svg path {
  /* The icons come from an ACF field with fill="black" baked in; CSS outranks the attribute. */
  fill: var(--color-text-primary);
  -webkit-transition: fill 0.3s ease;
  transition: fill 0.3s ease;
}

html:not(.v-mobile) .footer-socials__link:hover svg path {
  fill: var(--color-accent);
}

.footer-socials__link:focus-visible svg path {
  fill: var(--color-accent);
}

/*
 * Touch screens. The phone numbers and addresses were 22px-tall targets 6px
 * apart; each row is now 32px with no gap, a few pixels more per row. The
 * section headings and the social icons keep their look and get a 44px
 * target: the padding that grows it is taken back by a negative margin, so
 * nothing moves.
 */
@media (pointer: coarse) {
  .footer-contacts__content {
    gap: 0;
  }

  .footer-contacts__link {
    min-height: 32px;
  }

  /* The section headings open their lists; a 23px button in a 55px row. The
     margin takes the padding back, so the rows keep their spacing. */
  .footer-navigation__title {
    padding: 10px 0;
    margin: -10px 0;
  }

  .footer-socials__link {
    width: 44px;
    height: 44px;
    padding: 6px;
    margin: -6px;
  }
}

.footer-socials__wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 1rem;
}

.footer-socials__item--logo {
  width: 45px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.footer-socials__item--logo a {
  width: 45px;
  height: 45px;
}

.footer-socials__item--logo {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-socials__item--logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* The association logos are wide; in a 45px square they came out 45×18 on a
   phone, too small to read. There they keep their own width at 28px high. */
@media (max-width: 899px) {
  .footer-socials__item--logo,
  .footer-socials__item--logo a {
    width: auto;
    height: 28px;
  }

  .footer-socials__item--logo img {
    height: 28px;
    max-width: 120px;
  }
}

@media (max-width: 899px) {
  .footer {
    margin-top: 0;
  }
}

.footer-socials--logos {
  display: flex;
  gap: 1rem;
  margin: 0;
}

.footer-socials--logos > * {
  margin: 0 !important;
}

details[open] p {
  margin: 1.2rem 0;
}

/*
 * Reading progress bar. It is always full width and scroll.js scales it
 * along X: a transform is done by the compositor, where animating width
 * relaid out the page on every scroll step.
 */
#scrollIndicator {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background-color: var(--color-blue-100);
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s linear;
}

@media (max-width: 480px) {
  #scrollIndicator {
    height: 3px;
    background-color: var(--color-blue-100);
  }
}

@media (min-width: 481px) and (max-width: 1199px) {
  #scrollIndicator {
    height: 4px;
    background-color: var(--color-blue-100);
  }
}

@media (min-width: 1200px) and (max-width: 1920px) {
  #scrollIndicator {
    height: 5px;
  }
}

@media (min-width: 1921px) {
  #scrollIndicator {
    height: 6px;
  }
}



@media (min-width: 900px) {
  .footer-navigation__item--contacts .footer-navigation__title {
    display: none !important;
  }
  .footer-contacts__main-wrapper {
    display: grid;
    gap: 2em;
    grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
    width: 100%;
  }
}

@media (max-width: 899px) {
  .footer-navigation__item--contacts .footer-navigation__title {
    display: flex !important;
  }
  .footer-contacts__main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}


/* Newspaper covers: the cover drawn for the dark theme replaces the original there
   (site-footer.php, field «Обкладинка для темної теми»). The dark one is lazy, so a
   light-theme visit never downloads it. Two classes: section-categories.css,
   loaded after this file, shows every .categories-list__logo. */
.categories-list__logo.categories-list__logo--dark,
html[data-theme="dark"] .categories-list__logo--light {
  display: none;
}

html[data-theme="dark"] .categories-list__logo--dark {
  display: block;
}

/* section-categories.css gives every cover a white ground; the dark twin is
   drawn on a transparent one and keeps it. */
.categories-list__logo.categories-list__logo--dark {
  background-color: transparent;
}


/* The ZP Space app under the newspaper covers (template-parts/layout/footer/
   app-promo.php), laid out as the owner's «download-card»: the icon on the
   left; the name, a line and the badges on the right, then a bare QR icon
   that opens the code in a popover. The badges are smaller than their 40px
   so both fit the footer column in one line. */
.footer-app {
  --footer-app-badge: 28px;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.footer-app__icon {
  flex: none;
  width: 72px;
  height: 72px;
}

.footer-app__body {
  min-width: 0;
}

.footer-app__title,
.footer-app__text {
  margin: 0;
}

.footer-app__title {
  color: var(--color-text-primary);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
}

.footer-app__text {
  margin-top: 0.125rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.footer-app__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
}

.footer-app__store {
  display: block;
  flex: none;
  line-height: 0;
}

.footer-app__badge {
  width: auto;
  height: var(--footer-app-badge);
}

/* White badges on the light theme, black on the dark one; the dark twin is
   lazy, so a light-theme visit never downloads it. */
.footer-app__badge--dark,
html[data-theme="dark"] .footer-app__badge--light {
  display: none;
}

html[data-theme="dark"] .footer-app__badge--dark {
  display: block;
}

/* Only the icon: no frame, the badges' height for an easy tap. */
.footer-app__qr-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--footer-app-badge);
  height: var(--footer-app-badge);
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-app__qr-btn:hover {
    color: var(--color-link);
  }
}

.footer-app__store:focus-visible,
.footer-app__qr-btn:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

/* The QR card: tied to the button and opening above it, its right edge on
   the button's, or below when there is no room above. Without anchor
   positioning the browser centres it on the screen, which still works. */
.footer-app__qr-btn {
  anchor-name: --footer-app-qr;
}

.footer-app__popup {
  margin: auto;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface-card);
  color: var(--color-text-primary);
  box-shadow: 0 8px 24px rgba(var(--color-ink--rgb), 0.12);
  text-align: center;
}

@supports (position-area: top) {
  .footer-app__popup {
    position-anchor: --footer-app-qr;
    position-area: top span-left;
    position-try-fallbacks: flip-block, flip-inline;
    inset: auto;
    margin: 0 0 0.5rem;
  }
}

.footer-app__popup::backdrop {
  background: none;
}

/* The two stores' codes side by side, each named under its picture; the
   hint under both. */
.footer-app__qr-list {
  display: flex;
  gap: 0.75rem;
}

.footer-app__qr {
  margin: 0;
}

/* Navy on white in both themes: a camera reads dark on light. Smaller on a
   narrow phone, so the two codes still fit side by side in the window. */
.footer-app__qr-code {
  --footer-app-qr-size: 148px;
  display: block;
  box-sizing: content-box;
  width: var(--footer-app-qr-size);
  height: var(--footer-app-qr-size);
  margin: 0 auto;
  padding: 0.5rem;
  background-color: var(--color-white);
}

/* Which store the code leads to, in the text colour above the hint. */
.footer-app__popup-text strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.footer-app__popup-text {
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

@media (max-width: 1084px) {
  .footer-app {
    --footer-app-badge: 34px;
    justify-content: center;
  }
}

@media (max-width: 419px) {
  .footer-app__qr-code {
    --footer-app-qr-size: 120px;
  }
}

/* On a phone (the owner, 2026-12-01) the footer's column is centred, and the
   app's name and line came out centred beside a left icon, while the badges
   (34px, for a finger) and the QR button, 259px together, did not fit the
   221px beside the icon and the QR fell to a line of its own. Now the icon
   and the name with its line make the first row, set left, and the badges
   with the QR the second, across the whole width. */
@media (max-width: 899px) {
  .footer-app {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    align-items: center;
    justify-content: start;
    text-align: left;
  }

  .footer-app__body {
    display: contents;
  }

  .footer-app__icon {
    grid-row: 1;
    grid-column: 1;
    width: 56px;
    height: 56px;
  }

  .footer-app__title,
  .footer-app__text {
    grid-column: 2;
  }

  .footer-app__title {
    grid-row: 1;
    align-self: start;
    margin-top: 0.375rem;
  }

  .footer-app__text {
    grid-row: 1;
    align-self: end;
    margin-bottom: 0.375rem;
  }

  .footer-app__stores {
    grid-row: 2;
    grid-column: 1 / -1;
    margin-top: 0;
  }

  /* The contacts: the icon on the left and the words beside it set left, not
     centred like the rest of the column. */
  .footer-contacts__item {
    text-align: left;
  }
}


/* /wp-content/themes/nuzp/assets/css/css-blocks/breadcrumbs.css */
.breadcrumbs {
  display: block;

  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-secondary);

  font-size: clamp(0.75rem, 2vw, 0.875rem);
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.breadcrumbs > span:first-child:last-child {
  display: contents;
}

.breadcrumbs a {
  display: inline;
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--color-link), var(--color-link));
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.3s ease, background-size 0.3s ease;
}

html:not(.v-mobile) .breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--color-link);
  background-size: 100% 1px;
  outline: none;
}

.breadcrumbs span {
  color: var(--color-text-secondary);
}

.breadcrumbs .breadcrumb_last {
  color: var(--color-text-secondary);
  font-weight: 500;
  display: inline;
}

/*
 * Touch screens. A crumb is a 12px word, a 14px-tall target. Vertical padding
 * on an inline link widens what a finger can hit without moving the line; the
 * hover underline is drawn in the content box, so it stays under the word.
 */
@media (pointer: coarse) {
  .breadcrumbs a {
    padding: 12px 0;
    background-origin: content-box;
    background-clip: content-box;
  }
}

@media (max-width: 899px) {
  .breadcrumbs {
    line-height: 1.6;
  }
  .breadcrumbs span {
    white-space: normal;
    word-break: break-word;
  }
}

/* Other paths of a teacher or a staff member (impulse_breadcrumb_more_*() in
   includes/acf/acf-blocks.php): «+N» in the link colour at the end of the
   trail, and under it more lines of the same crumbs. */
/* Kept a little apart from the name, so it does not read as part of it. */
.breadcrumbs__more-toggle {
  display: inline;
  margin: 0 0 0 0.9em;
  padding: 0;
  border: 0;
  font: inherit;
  font-weight: 500;
  color: var(--color-link);
  cursor: pointer;
  background-color: transparent;
  background-image: linear-gradient(var(--color-link), var(--color-link));
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.3s ease, background-size 0.3s ease;
}

html:not(.v-mobile) .breadcrumbs__more-toggle:hover,
.breadcrumbs__more-toggle:focus-visible {
  color: var(--color-link-hover);
  background-size: 100% 1px;
  outline: none;
}

/* Clips the lines while breadcrumbs-more.js slides them open or shut. */
.breadcrumbs__more {
  overflow: hidden;
}

.breadcrumbs__trail {
  display: block;
  margin-top: 0.35em;
}


/* /wp-content/themes/nuzp/assets/css/css-blocks/news-block.css */
/* Several page stylesheets restyle bare h2/h3/p with !important inside their
   own .typography wrappers (page-trust-box.css, page-sdg-strategy.css,
   page-hi-rise.css). An !important declaration only loses to another
   !important one, so the card states its own layout the same way; the block's
   three-class selectors outrank those page rules. */
.news-custom-block {
  display: flex !important;
  background-color: var(--color-surface-card) !important;
  border: 2px solid var(--color-border) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 4px 6px rgba(var(--color-black--rgb), 0.05) !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease !important;
  margin-bottom: 30px !important;
  max-width: 100% !important;
  font-family: "Roboto", sans-serif !important;
  box-sizing: border-box !important;
  position: relative !important;
  cursor: pointer !important;
}

.news-custom-block *,
.news-custom-block *::before,
.news-custom-block *::after {
  box-sizing: border-box !important;
}

.news-custom-block:hover {
  box-shadow: 0 12px 20px rgba(var(--color-black--rgb), 0.1) !important;
  border-color: var(--color-border-strong) !important;
}

.events-custom-block:hover {
  border-color: var(--color-accent) !important;
}

.news-custom-block .news-image {
  flex: 0 0 280px !important;
  width: 280px !important;
  position: relative !important;
  aspect-ratio: 16 / 9 !important;
  background-color: var(--color-bg-secondary) !important;
  padding: 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.news-custom-block .news-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.news-custom-block .news-content {
  padding: 22px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 16px !important;
  flex: 1 !important;
}

/* The block ships globally and early, so page stylesheets that restyle h3/p
   would otherwise win on source order. Every text property the block relies on
   is declared here on its own classes, scoped to the block root. */
.news-custom-block.news-custom-block .news-content .news-block-title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  line-height: 116% !important;
  letter-spacing: normal !important;
  text-align: left !important;
  text-transform: none !important;
  color: var(--color-text-heading) !important;
}

/* Heading sizes follow typography.css so the card reads like page text */
@media (min-width: 1200px) {
  .news-custom-block.news-custom-block .news-content .news-block-title--h2 {
    font-size: 1.375rem !important;
  }
  .news-custom-block.news-custom-block .news-content .news-block-title--h3 {
    font-size: 1.25rem !important;
  }
  .news-custom-block.news-custom-block .news-content .news-block-title--h4 {
    font-size: 1.3rem !important;
  }
}

@media (min-width: 1540px) {
  .news-custom-block.news-custom-block .news-content .news-block-title--h2 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 1199px) {
  .news-custom-block.news-custom-block .news-content .news-block-title--h2 {
    font-size: 1.375rem !important;
  }
  .news-custom-block.news-custom-block .news-content .news-block-title--h3 {
    font-size: 1.125rem !important;
  }
  .news-custom-block.news-custom-block .news-content .news-block-title--h4 {
    font-size: 1rem !important;
  }
}

@media (max-width: 899px) {
  .news-custom-block.news-custom-block .news-content .news-block-title--h2 {
    font-size: 1.25rem !important;
  }
}

.news-custom-block.news-custom-block .news-content .news-block-title::before,
.news-custom-block.news-custom-block .news-content .news-block-title::after,
.news-custom-block.news-custom-block .news-content .news-block-excerpt::before,
.news-custom-block.news-custom-block .news-content .news-block-excerpt::after {
  content: none !important;
}

.news-custom-block.news-custom-block .news-content .news-block-title .news-block-title-link {
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
  background: none !important;
  transition: color 0.2s ease !important;
}

.news-custom-block.news-custom-block .news-content .news-block-title .news-block-title-link:hover {
  color: var(--color-link) !important;
}

.news-custom-block.news-custom-block .news-content .news-block-excerpt {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: "Roboto", sans-serif !important;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  overflow-wrap: break-word !important;
  letter-spacing: normal !important;
  text-align: left !important;
  text-transform: none !important;
  text-indent: 0 !important;
  color: var(--color-text-primary) !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Without a cover the content column simply takes the whole card */
.news-custom-block--no-image .news-content {
  flex: 1 1 100% !important;
  width: 100% !important;
}

.news-custom-block.news-custom-block .news-content .news-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 24px !important;
  background-color: var(--color-blue-100) !important;
  color: var(--color-white) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  align-self: flex-start !important;
  font-size: 0.875rem !important;
  min-height: 38px !important;
  user-select: none !important;
}

.news-custom-block.news-custom-block:hover .news-content .news-link {
  transition: 0.3s background-color ease-in !important;
  background-color: var(--color-blue-200) !important;
  font-weight: 700 !important;
}

/* Navy on the light brand blue in both themes: the button does not sit on the page. */
.events-custom-block.events-custom-block:hover .news-content .events-link {
  transition: 0.3s background-color ease-in !important;
  background-color: var(--color-highlight) !important;
  color: var(--color-blue-200) !important;
  font-weight: 700 !important;
}

/* The title link is stretched over the whole card: one anchor per card keeps
   the anchor text meaningful and gives keyboard users a single stop */
.news-custom-block.news-custom-block .news-content .news-block-title .news-block-title-link::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

.news-custom-block.news-custom-block .news-content .news-block-title .news-block-title-link:focus-visible::after {
  outline: 3px solid var(--color-link) !important;
  outline-offset: -3px !important;
}

/* Meta line: what this card is, and how fresh it is */
/* Flex, not block: as a block the paragraph keeps a line-height strut from the
   inherited page font size, and the taller strut showed up as a gap above the
   date. The row also carries the date's own font size for the same reason. */
.news-custom-block.news-custom-block .news-content .news-block-meta {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 0.875rem !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-indent: 0 !important;
}

.news-custom-block.news-custom-block .news-content .news-block-date {
  font-family: "Roboto", sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  color: var(--color-text-secondary) !important;
}

/* Without a cover the card keeps a colour cue instead of looking unfinished */
.news-custom-block--no-image {
  border-left-width: 6px !important;
  border-left-color: var(--color-accent) !important;
}

.news-custom-block--no-image.events-custom-block {
  border-left-color: var(--color-accent) !important;
}

@media (prefers-reduced-motion: reduce) {
  .news-custom-block,
  .news-custom-block:hover {
    transition: none !important;
    transform: none !important;
  }
}

/* Editor & Placeholder Styles */
.news-custom-block--placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 20px !important;
  background-color: var(--color-bg-secondary) !important;
  border: 2px dashed var(--color-border) !important;
  text-align: center !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.news-custom-block--placeholder:hover {
  transform: none !important;
  border-color: var(--color-accent) !important;
}

.news-custom-block--placeholder .news-block-placeholder-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

.news-custom-block--placeholder .dashicons {
  font-size: 36px !important;
  width: 36px !important;
  height: 36px !important;
  color: var(--color-accent) !important;
}

.events-custom-block.news-custom-block--placeholder .dashicons {
  color: var(--color-accent) !important;
}

.news-custom-block--placeholder .news-block-placeholder-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--color-text-heading) !important;
  margin: 0 !important;
}

.news-custom-block--placeholder .news-block-placeholder-desc {
  font-size: 0.875rem !important;
  color: var(--color-text-secondary) !important;
  margin: 0 !important;
}

/* Gutenberg Editor Compatibility. Typography is not repeated here any more -
   the rules above already carry it into the editor. */
.editor-styles-wrapper .news-custom-block {
  margin-top: 15px !important;
  margin-bottom: 25px !important;
}

.editor-styles-wrapper .news-custom-block a {
  text-decoration: none !important;
}

/* The stretched overlay would swallow the click that selects the block */
.editor-styles-wrapper .news-custom-block.news-custom-block .news-content .news-block-title .news-block-title-link::after {
  content: none !important;
}

@media (max-width: 899px) {
  .news-custom-block {
    flex-direction: column !important;
  }

  .news-custom-block .news-image {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
  }

  .news-custom-block .news-content {
    padding: 18px 18px !important;
    gap: 12px !important;
  }

  .news-custom-block.news-custom-block .news-content .news-block-title {
    font-size: 1.125rem !important;
    line-height: 116% !important;
  }

  .news-custom-block.news-custom-block .news-content .news-block-excerpt {
    font-size: 0.875rem !important;
    line-height: 1.7 !important;
    -webkit-line-clamp: 3 !important;
  }

  .news-custom-block--no-image {
    border-left-width: 2px !important;
    border-top-width: 6px !important;
    border-top-color: var(--color-accent) !important;
  }

  .news-custom-block--no-image.events-custom-block {
    border-left-color: var(--color-border) !important;
    border-top-color: var(--color-accent) !important;
  }

  .news-custom-block.news-custom-block .news-content .news-link {
    width: 100% !important;
    text-align: center !important;
    padding: 10px 20px !important;
    font-size: 0.8125rem !important;
    min-height: 44px !important; /* thumb-sized target on touch */
  }
}


/* /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;
  }
}


/* /wp-content/themes/nuzp/assets/css/css-posts/faculty-department.css */
.faculty-info {
  margin-bottom: 2rem;
}

.faculty-info__wrapper {
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .faculty-info__wrapper {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 4rem;
  }
}

.faculty-info__left {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .faculty-info__left {
    margin: 0;
    position: sticky;
    top: calc(var(--header-height-1px) + 2rem);
  }
}

.faculty-info__logo {
  width: 100%;
}

/* At 200px the emblem took half of a phone's first screen before a word of text. */
@media (max-width: 899px) {
  .faculty-info__logo {
    max-width: 120px;
    margin: 0 auto;
  }
}

@media (min-width: 900px) {
  .faculty-info__logo {
    max-width: 300px;
    margin: 0 auto;
  }
}

.faculty-info__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 899px) {
  .faculty-info__left {
    max-width: unset;
  }
}

.faculty-buttons-scroll {
  width: calc(100% + 24px);
  margin-left: -12px;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 12px 16px 12px 12px; /* Space for shadows and scrollbar */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 164px; /* 140px + 24px padding */
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  .faculty-buttons-scroll {
    margin-top: 2.25rem;
    margin-bottom: 2rem;
  }
}

/* Beautiful neat scrollbar */
.faculty-buttons-scroll::-webkit-scrollbar {
  width: 4px;
}
.faculty-buttons-scroll::-webkit-scrollbar-track {
  background: rgba(var(--color-blue-100--rgb), 0.05);
  border-radius: 4px;
  margin: 12px 0; /* Don't overlap padding */
}
.faculty-buttons-scroll::-webkit-scrollbar-thumb {
  background: rgba(var(--color-blue-100--rgb), 0.3);
  border-radius: 4px;
}

/* Firefox has no ::-webkit-scrollbar: the same colours from the standard properties. */
@supports not selector(::-webkit-scrollbar) {
    .faculty-buttons-scroll {
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--color-blue-100--rgb), 0.3) rgba(var(--color-blue-100--rgb), 0.05);
    }
}
.faculty-buttons-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-blue-100--rgb), 0.5);
}

.faculty-presentation-strip {
  width: 100%;
  flex-shrink: 0;
}

.fps-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 1rem;
  text-decoration: none !important;
  color: var(--color-text-heading);
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  transition: 0.3s ease;
  transition-property: background-color, border-color, box-shadow, opacity, transform;
  gap: 0.75rem;
}

@media (hover: hover) {
  .fps-link:hover {
    background-color: var(--color-bg-primary);
    box-shadow: 0 4px 10px rgba(var(--color-blue-100--rgb), 0.12);
  }
}

.fps-link:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(var(--color-blue-100--rgb), 0.1);
  background-color: rgba(var(--color-blue-100--rgb), 0.03);
  transition: 0.1s ease;
  transition-property: background-color, border-color, box-shadow, opacity, transform;
}

.fps-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.fps-label,
.fps-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(var(--color-blue-100--rgb), 0.3);
  padding-right: 0.75rem;
  color: inherit;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

@media (hover: hover) {
  .fps-link:hover .fps-label,
  .fps-link:hover .fps-icon-wrapper {
    border-right-color: var(--color-border-strong);
  }
}

.fps-label {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.fps-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  display: block;
}

.fps-icon--mask {
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

@media (hover: hover) {
  .fps-link:hover .fps-icon {
    opacity: 1;
  }
}

.fps-title {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: inherit;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fps-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-heading);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (hover: hover) {
  .fps-link:hover .fps-arrow {
    transform: translateX(5px);
  }
}

@media (max-width: 899px) {
  .fps-title {
    font-size: 0.85rem;
  }
}

.faculty-info__description {
  width: 100%;
}

@media (min-width: 900px) {
  .faculty-info__description {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
}

.faculty-history-text {
  max-height: 250px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

@media (max-width: 899px) {
  .faculty-history-text h2 {
    margin-top: 0rem !important;
  }
}

.faculty-history-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(var(--color-bg-primary--rgb), 0), var(--color-bg-primary));
  transition: opacity 0.3s ease;
}

.faculty-history-text._expanded {
  max-height: 10000px;
  transition: max-height 0.8s ease-in-out;
}

.faculty-history-text._expanded::after {
  opacity: 0;
  pointer-events: none;
}

.faculty-history-toggle {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--color-text-heading);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 1.5rem 0 0 0;
  margin: 0;
  transition: color 0.3s ease;
}

.faculty-history-toggle:hover {
  color: var(--color-link);
}

.faculty-history-toggle._expanded svg {
  transform: rotate(180deg);
}

.faculty-compound__title__container {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.875rem;
}

.faculty-compound__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 116%;
  color: var(--color-text-heading);
}

.faculty-compound-list {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.875rem;
}

.faculty-compound-list > .faculty-compound-list__item * .faculty-compound-list__item {
  border-top: 1px solid var(--color-border);
  padding-top: 1.875rem;
}

/* A department shows its first three rows of staff and the rest behind
   «Дивитися більше»: three people in one column, six in two (see the
   two-column rule below). Only the head was shown before, which hid
   almost the whole staff. The button goes when nothing is hidden. */
.faculty-compound-list._department:not(._active) .faculty-compound-list__item:nth-child(n+4) {
  display: none;
}

.faculty-compound-list._department:not(:has(> .faculty-compound-list__item:nth-child(4))) + .faculty-compound-list__more {
  display: none;
}

/* Under the list, not in its grid, so the list can fold above it (nuzp.fold);
   the gap is the list's own row gap. */
.faculty-compound-list__more {
  margin-top: 1.875rem;
  width: fit-content;
}

.faculty-compound-list__more:not(._active) .less,
.faculty-compound-list__more._active .more {
  display: none;
}

.faculty-worker {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  line-height: 140%;
  color: var(--color-text-secondary);
}

.faculty-worker.ai-center {
  align-items: center;
}

.faculty-worker__img {
  position: relative;
  display: block;
  width: 5rem;
  flex-shrink: 0;
  border-radius: 50%;
  transform: translate3d(0, 0, 0);
  overflow: hidden;
}

.faculty-worker__img__container {
  display: block;
  padding-top: 100%;
}

.faculty-worker__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-worker__info {
  flex: 1;
  min-width: 0;
  width: auto;
}

.faculty-worker__info > * + * {
  margin-top: 0.625rem;
}

.faculty-worker__link {
  position: relative;
  display: block;
  color: var(--color-text-heading);
}

.faculty-worker__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 116%;
  text-decoration-color: var(--color-text-heading);
  text-underline-offset: 0.375rem;
}

html:not(.v-mobile) .faculty-worker__link:hover .faculty-worker__title,
.faculty-worker__link:focus-visible .faculty-worker__title {
  text-decoration: underline;
}

.faculty-worker__description {
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 0;
  width: 100%;
}

.faculty-worker-details {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faculty-worker-details__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faculty-worker-details__item > * + * {
  margin-left: 0.625rem;
}

.faculty-worker-details__name {
  width: 100%;
  max-width: 4.5rem;
  flex-shrink: 0;
}

.faculty-structure__container {
  padding: 0 var(--wrap-1);
}

/* The value may shrink below its longest word, which then breaks: at 320px
   (a phone, or 400% zoom) «Університетська» was wider than the column left
   beside the label and pushed the card past the screen's edge (WCAG 1.4.10). */
.faculty-worker-details__value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.faculty-worker-details__value > * + * {
  margin-top: 0.5em;
}

/* Two phones or e-mails are separate links with nothing between them, so they
   ran together («…7641519+380…»). As in the editor (admin-blocks.css): a «;»
   after each but the last, one per line, and in a row from 1700px. */
.faculty-worker-details__value > *::after {
  content: ";";
  margin-left: -0.15em;
}

.faculty-worker-details__value > *:last-child::after {
  display: none;
}

.faculty-worker-details__value > a {
  display: block;
  width: fit-content;
  color: inherit;
  word-break: break-word;

  text-underline-offset: 0.1875rem;
}

html:not(.v-mobile) .faculty-worker-details__value > a:hover,
.faculty-worker-details__value > a:focus-visible {
  text-decoration: underline;
}

.faculty-structure._grey .faculty-structure__container {
  padding: 0 var(--wrap);
}

.faculty-structure__container.col_2 {
  display: grid;
  gap: 3.25rem;
}

.faculty-structure._grey .faculty-structure__wrapper {
  background-color: var(--color-bg-secondary);
}

.faculty-structure__image {
  width: 100%;
  height: 100%;
  max-height: 90px;
  object-fit: cover;
}

.faculty-structure__title__container {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.275rem;
}

.faculty-structure__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 116%;
  color: var(--color-text-heading);
}

.faculty-structure-list__item > * + * {
  margin-top: 0.625rem;
}

.faculty-structure-list__link {
  color: var(--color-text-heading);
}

.faculty-structure-list__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 116%;
  color: inherit;
  text-decoration-color: var(--color-text-heading);
  text-underline-offset: 0.375rem;
}

html:not(.v-mobile) .faculty-structure-list__link:hover .faculty-structure-list__title,
.faculty-structure-list__link:focus-visible .faculty-structure-list__title {
  text-decoration: underline;
}

.faculty-structure-list__additional {
  font-weight: 400;
  line-height: 140%;
  color: var(--color-text-secondary);
}

.faculty-structure-list__additional > * + * {
  margin-top: 0.625rem;
}

.faculty-structure .typography table {
  width: 100%;
  margin: 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.partners-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  padding: 10px;
  background-color: var(--color-bg-primary);
  border: 1px solid transparent;
  transition: 0.3s ease;
  transition-property: color, background-color, border-color;
}

.partners-grid__item:hover {
  border-color: var(--color-border);
  background-color: var(--color-bg-secondary);
}

.partners-grid__item img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
  display: block;
}

.partners-grid__item a {
  color: var(--color-text-heading);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 1.3;
  padding: 15px;
  transition: color 0.3s ease;
}

.partners-grid__item a:hover {
  color: var(--color-link);
}

/* A partner entered as a name only, without a logo or a link. */
.partners-grid__name {
  color: var(--color-text-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
  padding: 15px;
}

@media (max-width: 899px) {
  .faculty-info__wrapper > * + * {
    margin-top: 2rem;
  }
  .faculty-compound__title {
    font-size: var(--fs-section);
  }
  /* The people's cards were set at 12px, a step under the scale's smallest. */
  .faculty-worker {
    font-size: var(--fs-secondary);
  }
  .faculty-worker > * + * {
    margin-left: 1.5rem;
  }
  .faculty-worker__img {
    max-width: 5rem;
  }
  .faculty-worker__title {
    font-size: 1rem;
  }
  .faculty-structure._grey .faculty-structure__wrapper {
    padding: 1.5rem var(--wrap-colored);
  }
  .faculty-structure__title {
    font-size: var(--fs-section);
  }
  .faculty-structure-list > * + * {
    margin-top: 1.25rem;
  }
  .faculty-structure-list__title {
    font-size: 1rem;
  }
  .faculty-structure-list__additional {
    padding-left: 1.5rem;
    font-size: var(--fs-secondary);
  }
  .faculty-structure-list__description > * + * {
    margin-top: 0.5em;
  }
}

@media (max-width: 1199px) {
  .faculty-structure._grey .faculty-structure__container {
    padding: 0;
  }
}

@media (min-width: 900px) {
  .faculty-worker {
    font-size: 0.875rem;
  }
  .faculty-worker > * + * {
    margin-left: 2rem;
  }
  .faculty-structure__container.col_2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
  .faculty-structure._grey .faculty-structure__wrapper {
    padding: 2.5rem var(--wrap-colored);
  }
  .faculty-structure-list {
    max-width: 26.25rem;
  }
  .faculty-structure-list > * + * {
    margin-top: 1.625rem;
  }
  .faculty-structure-list__additional {
    padding-left: 2rem;
    font-size: 1rem;
  }
  .faculty-structure-list__description > * + * {
    margin-top: 0.25em;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .faculty-compound__title {
    font-size: 1.375rem;
  }
  .faculty-worker__img {
    width: 7.5rem;
    max-width: 7.5rem;
  }
  .faculty-worker__title {
    font-size: 1rem;
  }
  .faculty-structure__title {
    font-size: 1.375rem;
  }
  .faculty-structure-list__title {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .faculty-compound__title {
    font-size: 1.375rem;
  }
  .faculty-worker__img {
    width: 7.5rem;
    max-width: 7.5rem;
  }
  .faculty-worker__title {
    font-size: 1.125rem;
  }
  .faculty-structure__title {
    font-size: 1.375rem;
  }
  .faculty-structure-list__title {
    font-size: 1.125rem;
  }
}

@media (min-width: 1200px) and (min-width: 1350px) {
  .faculty-compound-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .faculty-compound-list > .faculty-compound-list__item + .faculty-compound-list__item:nth-child(2) {
    border-top: unset;
    padding-top: unset;
  }
  .faculty-compound-list._department:not(._active) .faculty-compound-list__item:nth-child(-n+6) {
    display: block;
  }
  .faculty-compound-list._department:has(> .faculty-compound-list__item:nth-child(4)):not(:has(> .faculty-compound-list__item:nth-child(7))) + .faculty-compound-list__more {
    display: none;
  }
}

@media (min-width: 1200px) and (min-width: 1540px) {
  .faculty-compound__title {
    font-size: 1.5rem;
  }
  .faculty-structure__title {
    font-size: 1.5rem;
  }
}

@media (min-width: 1200px) and (max-width: 1620px) {
  .faculty-compound-list {
    column-gap: 2.625rem;
  }
}

@media (min-width: 1200px) and (min-width: 1620px) {
  .faculty-compound-list__item {
    margin-right: 4.0625rem;
  }
  .faculty-worker__img {
    width: 10rem;
    max-width: 10rem;
  }
}

@media (min-width: 1200px) and (min-width: 1700px) {
  .faculty-worker-details__value > a {
    display: inline;
  }
  .faculty-worker-details__value > * + * {
    margin-top: unset;
    margin-left: 0.25em;
  }
}

@media (min-width: 2000px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
  }
  .partners-grid__item {
    min-height: 180px;
    padding: 20px;
  }
  .partners-grid__item img {
    max-height: 160px;
  }
  .partners-grid__item a {
    font-size: 1.75rem;
  }
}

@media (max-width: 1199px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 899px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }
  .partners-grid__item {
    min-height: 100px;
  }
  .partners-grid__item a {
    font-size: 1rem;
    padding: 10px;
  }
  .partners-grid__item img {
    max-height: 80px;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .partners-grid__item a {
    font-size: 0.9rem;
  }
}

.specialities-table td {
  vertical-align: top !important;
}

.specialities-table .dropdown-list {
  border-left: 2px solid var(--color-border-strong);
  padding-left: 1.25rem !important;
  margin-top: 0 !important;
  margin-bottom: 0;
  margin-left: 0.5rem !important;
}

.specialities-table .dropdown-list._open {
  margin-top: 1rem !important;
  margin-bottom: 0.5rem;
}

.specialities-table .dropdown-list li {
  position: relative !important;
  margin-bottom: 0.75rem !important;
  padding-left: 0 !important;
  line-height: 1.4;
}

.specialities-table .dropdown-list li:last-child {
  margin-bottom: 0 !important;
}

.specialities-table .dropdown-list li::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background-color: var(--color-border-strong);
  border-radius: 0 2px 2px 0;
  transition: width 0.3s ease;
}

.specialities-table .dropdown-list li:hover::before {
  width: 16px;
  background-color: var(--color-accent);
}

.specialities-table .dropdown-list li a {
  font-size: 0.9em;
  color: var(--color-text-heading);
}

.specialities-table .dropdown-list li span {
  font-size: 0.9em;
  color: inherit;
}

/* /wp-content/themes/nuzp/assets/css/css-blocks/header/doodles.css */
/*
 * Святкові дудли: the drawings over the header logo on a holiday.
 * Loaded by assets/js/layout/doodles.js only on a day with a doodle, and on
 * the doodles screen in wp-admin for the previews. The drawings themselves are
 * in includes/sections/site/doodles/library.php.
 *
 * Nothing here moves the logo: every layer is absolutely placed, and the room
 * the wordmark gets above and below its letters is taken back by a negative
 * margin. Motion is transform and opacity only, and the header's own shrink on
 * scroll is left alone (see the note header-logo-stutter).
 */

.logo-link--doodle {
  --dd-snow: #8db6e3;
  --dd-snow-edge: #b9d2ec;
  --dd-ice-a: #ffffff;
  --dd-ice-b: #cfe8fd;
  --dd-ice-edge: #9cc6ee;
  --dd-vane: #ffffff;
  --dd-ink: #2062af;
  /* The garland: a thin gold wire; a bead that is off goes pale, not dark,
     and the glow is faint on white paper, where a full one smudged. */
  --dd-wire: #d2a93a;
  --dd-dim: #ffffff;
  --dd-glow: 0.45;
  --dd-wood: #6b4423;
  --dd-stitch: #1a1a1a;
  --dd-blue: #0057b7;
}

html[data-theme="dark"] .logo-link--doodle,
.dd-dark .logo-link--doodle {
  --dd-snow: #ffffff;
  --dd-snow-edge: transparent;
  --dd-ice-a: #f4faff;
  --dd-ice-b: #b4daf7;
  --dd-ice-edge: #7fb2e6;
  --dd-vane: #e6ebf2;
  --dd-ink: #8fb8f0;
  --dd-wire: #b8933a;
  --dd-dim: #161b1f;
  --dd-glow: 0.9;
  --dd-wood: #b48a62;
  --dd-stitch: #e9e1d2;
  --dd-blue: #4a95ec;
}

.dd-layer {
  position: absolute;
  pointer-events: none;
}

/* What doodles.js lays out in pixels: garlands and the picture beside the wordmark. */
.logo-link--doodle {
  position: relative;
}

.dd-letters {
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 3;
}

/* Under the wordmark (z-index 1) and the shield (2): it peeks out from behind them. */
.dd-side {
  z-index: 0;
}

.dd-g {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
}

.dd-side svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}


/*
 * What hangs on the wordmark from outside its box leaves and comes back with
 * it on scroll in the very same motion: the wordmark's own transition from
 * logo.css (0.5s ease-in-out, fading while moving 15px left). (Drawn inside
 * the wordmark's clipped box instead, the garland was not painted by Chrome.)
 */
.dd-letters,
.dd-side {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.header._scrolled .dd-letters,
.header._scrolled .dd-side {
  opacity: 0;
  transform: translateX(-15px);
}

/*
 * The wordmark does not only fade: its box closes from the right and its left
 * margin goes. The garland follows both, or its lights hung on at full length
 * under half a word. Its layer is a twin of that box (doodles.js puts the
 * box's place, margin and max-width on it) and closes with the very same
 * properties and transition as logo.css gives the box. An exception to
 * «transform and opacity only», on purpose: a twin that slid and cut the
 * garland by transforms ran on the compositor while the box closed on the
 * main thread, and on a busy scroll the two drifted apart (2026-11-30).
 */
.dd-letters {
  overflow: hidden;
  margin-left: var(--dd-ml, 0px);
  max-width: var(--dd-mw, none);
  transition: 0.5s ease-in-out;
  transition-property: max-width, margin-left, opacity, transform;
}

.header._scrolled .dd-letters {
  max-width: 0;
  margin-left: 0;
}

/*
 * The lights: doodles.js sets the pattern on the garland about once a second,
 * and a bead eases between on and dimmed instead of flicking, so the strand
 * glows rather than flickers (the owner, 2026-11-30: «глаза не мусолили»).
 */
.dd-gb__dim {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.dd-gb__glow {
  opacity: var(--dd-glow);
  transition: opacity 0.6s ease-in-out;
  /* A bulb under the pointer flares from its own centre (doodles.js). */
  transform-box: fill-box;
  transform-origin: center;
}

/* Flakes shaken off the pompom (doodles.js), over the shield's edge. */
.dd-puff {
  z-index: 4;
}

.dd-g[data-p="c0"] .dd-gb:not(.dd-gb--m0) .dd-gb__dim,
.dd-g[data-p="c1"] .dd-gb:not(.dd-gb--m1) .dd-gb__dim,
.dd-g[data-p="c2"] .dd-gb:not(.dd-gb--m2) .dd-gb__dim,
.dd-g[data-p="off"] .dd-gb__dim,
.dd-g[data-p="odd"] .dd-gb--even .dd-gb__dim,
.dd-g[data-p="even"] .dd-gb--odd .dd-gb__dim {
  opacity: 0.35;
}

.dd-g[data-p="c0"] .dd-gb:not(.dd-gb--m0) .dd-gb__glow,
.dd-g[data-p="c1"] .dd-gb:not(.dd-gb--m1) .dd-gb__glow,
.dd-g[data-p="c2"] .dd-gb:not(.dd-gb--m2) .dd-gb__glow,
.dd-g[data-p="off"] .dd-gb__glow,
.dd-g[data-p="odd"] .dd-gb--even .dd-gb__glow,
.dd-g[data-p="even"] .dd-gb--odd .dd-gb__glow {
  opacity: calc(var(--dd-glow) * 0.35);
}

/* The shield's layers span −16…70 × −16…69 in its 54 × 53 coordinates. */
.dd-shield {
  left: -29.63%;
  top: -30.19%;
  width: 159.26%;
  height: 160.38%;
}

.dd-shield svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dd-shield--back {
  z-index: -1;
}

.dd-shield--front {
  z-index: 1;
}

/* 8px of room above and below the letters, inside the box that hides the wordmark on scroll. */
.logo-link--doodle .logo-link__text {
  padding-block: 8px;
  margin-block: -8px;
}


.dd-text {
  inset: 0;
  z-index: 1;
}

.dd-text > svg {
  position: absolute;
  overflow: visible;
}

.dd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------ shared motions */

@keyframes dd-in {
  from { opacity: 0; }
}

@keyframes dd-pop {
  from { opacity: 0; transform: scale(0.2); }
}

@keyframes dd-reveal {
  from { transform: scaleX(0); }
}

@keyframes dd-twinkle {
  50% { opacity: 0.35; }
}

@keyframes dd-swing {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

.dd-pop {
  transform-box: fill-box;
  transform-origin: center;
  animation: dd-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.dd-pop--2 { animation-delay: 0.15s; }
.dd-pop--3 { animation-delay: 0.3s; }

.dd-fade {
  animation: dd-in 1.6s ease-out both;
}

/* A shine across the shield now and then (Конституція, Захисники). */
.dd-shine {
  animation: dd-shine 6s ease-in-out 1s infinite;
}

@keyframes dd-shine {
  0% { transform: translateX(0); }
  30%, 100% { transform: translateX(110px); }
}

/* ------------------------------------------------ Новий рік */

/*
 * The scene, shown once (see «entrance shown once» below): the hand brings the hat, sets it down with a
 * little bounce and goes (1.1s – 3.3s); then the strand of lights under the
 * wordmark comes on. Hat and hand move together until the hat lands; both use
 * the layer's own origin, so their paths match. At rest the hat is on and
 * the hand is gone, which is also what visitors who ask for less motion see.
 */

.dd-hat {
  animation: dd-hat-in 2.2s cubic-bezier(0.35, 0.6, 0.3, 1) 1.1s both;
}

@keyframes dd-hat-in {
  0% { transform: translate(-44px, -40px) rotate(-10deg); opacity: 0; }
  8% { opacity: 1; }
  48% { transform: translate(0, -8px) rotate(-2deg); }
  60% { transform: translate(0, 0); }
  67% { transform: translate(0, -1.6px); }
  74%, 100% { transform: translate(0, 0); }
}

.dd-hand {
  opacity: 0;
  animation: dd-hand-in 2.2s cubic-bezier(0.35, 0.6, 0.3, 1) 1.1s both;
}

@keyframes dd-hand-in {
  0% { transform: translate(-44px, -40px) rotate(-10deg); opacity: 0; }
  8% { opacity: 1; }
  48% { transform: translate(0, -8px) rotate(-2deg); opacity: 1; }
  60% { transform: translate(0, 0); opacity: 1; }
  66% { transform: translate(0, 0); opacity: 1; }
  92%, 100% { transform: translate(-38px, -36px); opacity: 0; }
}

/*
 * Phones: the shield stands alone in a 56px bar and the hat rises about a
 * fifth of the shield above it, so it touched the top of the screen while
 * 8px stayed under the shield. A size smaller and set a little lower, the
 * shield with its hat has the same room above and below, about 6px (the
 * owner, 2026-11-30). Sizes and spacing only; `top`, not a transform, so the
 * header's own scale on scroll is left alone.
 */
@media (max-width: 480px) {
  .logo-link--doodle.dd--new-year .logo-link__label {
    top: 3.6px;
    width: 36px;
    height: 36px;
  }
}

/* The hat's shadow on the shield comes as the hat lands. */
.dd-hat-shadow {
  animation: dd-in 0.4s ease-out 2.4s both;
}

.dd-pompom {
  transform-box: fill-box;
  transform-origin: 0 30%;
  animation: dd-pompom 2.8s ease-in-out 3.3s infinite;
}

@keyframes dd-pompom {
  0%, 100% { transform: rotate(0); }
  35% { transform: rotate(9deg); }
  70% { transform: rotate(-5deg); }
}

/*
 * The boxes the snow falls in: in front of the wordmark, and behind the
 * wordmark (z-index 1) and the shield (2), where a flake shows between the
 * letters and at the shield's edges.
 */
.dd-snowfall {
  z-index: 4;
  overflow: hidden;
  transition: opacity 0.3s ease;
  /* A layer of its own: fading out with the header must not repaint it. The
     flakes keep their size, so the layer stays sharp. */
  will-change: opacity;
}

.header._scrolled .dd-snowfall {
  opacity: 0;
}

/*
 * Small snowflakes falling through the boxes, never past them. doodles.js
 * wraps each flake: the wrapper falls the whole height of its box at an even
 * pace (--dd-fall: from just above the box to its bottom edge) and fades only
 * on that edge; the flake inside sways from side to side as it turns
 * (--dd-sway, --dd-turn), on a beat of its own. Pace, sway, beat, size and
 * start differ for every flake and every page, so no two fall alike (the
 * owner, 2026-11-30: they fell alike and faded halfway).
 */
.dd-flake {
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  animation: dd-fall 6s linear infinite;
}

.dd-snow {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: dd-sway 2.4s ease-in-out infinite alternate;
}

@keyframes dd-fall {
  0% { transform: translateY(-12px); opacity: 0; }
  8%, 88% { opacity: 1; }
  100% { transform: translateY(var(--dd-fall, 60px)); opacity: 0; }
}

@keyframes dd-sway {
  0% { transform: translateX(calc(-1 * var(--dd-sway, 3px))) rotate(calc(-1 * var(--dd-turn, 40deg))); }
  100% { transform: translateX(var(--dd-sway, 3px)) rotate(var(--dd-turn, 40deg)); }
}

.dd-snowfall--back {
  z-index: 0;
}

/* Beside the shield a flake falls seldom: in a third of its cycle, then it waits unseen. */
.dd-flake--rare {
  animation-name: dd-fall-rare;
}

@keyframes dd-fall-rare {
  0% { transform: translateY(-12px); opacity: 0; }
  3%, 29% { opacity: 1; }
  33%, 100% { transform: translateY(var(--dd-fall, 60px)); opacity: 0; }
}

/*
 * Frost on the letters (library.php draws it to the wordmark's measured
 * letters, doodles.js lays it over the wordmark picture): a thin glassy rim
 * on each top face and a few small icicles.
 */
.dd-ice {
  z-index: 1;
  animation: dd-in 1.2s ease-out 0.4s both;
}

.dd-ice svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ------------------------------------------------ entrance shown once */

/*
 * A doodle comes in with a motion (the hand brings the hat, the lights come
 * on, the ornaments pop up) once; after that it opens already in place
 * (doodles.js adds the class; localStorage remembers for 12 hours). Stronger
 * than any drawing's own entrance rule, which may be more specific.
 */
.logo-link--dd-seen :is(.dd-g, .dd-ice, .dd-hat, .dd-hat-shadow, .dd-hand, .dd-pop, .dd-grow, .dd-chain, .dd-band, .dd-swash, .dd-fade, .dd-link) {
  animation: none !important;
}

/* ------------------------------------------------ less motion */

/*
 * variables.css shortens every animation to 1ms for these visitors; a 1ms
 * animation would leave a firework or a snowflake at its last frame, gone.
 * Without animation each drawing stands at rest, whole.
 */
@media (prefers-reduced-motion: reduce) {
  .logo-link--doodle .dd-layer,
  .logo-link--doodle .dd-layer * {
    animation: none !important;
  }

  .dd-fill,
  .dd-snowfall {
    display: none;
  }
}

/*
 * The same for «Без анімацій» of the accessibility panel (ms-accessibility),
 * which stops every animation on the page with a class on <html>. Snow that
 * stood still in the air would only look like specks, so it goes; the
 * garland's lights stay on without blinking (doodles.js).
 */
html.accessibility-no-anim .dd-fill,
html.accessibility-no-anim .dd-snowfall {
  display: none;
}


/* /wp-content/themes/nuzp/assets/css/css-components/widget-calendar.css */
/*
 * Events calendar widget: the floating button and the side panel
 * (template-parts/layout/common/widget-calendar.php). Printed inline on every
 * page until 2026-09; as a file the browser caches it between pages.
 */
.calendar-widget-btn {
    position: fixed;
    z-index: 9981;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--color-blue-200);
    border: 1px solid var(--color-white);
    color: var(--color-white);
    cursor: pointer;
    outline: none;
    padding: 0;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--color-blue-200--rgb), 0.15);
    right: max(10px, env(safe-area-inset-right));
    bottom: max(15px, env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
}

@media (hover: hover) {
    .calendar-widget-btn:hover {
        background: var(--color-blue-200);
        box-shadow: 0 10px 20px rgba(225, 29, 72, 0.2);
        width: 150px;
    }
}

.calendar-widget-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    width: 42px;
    height: 42px;
}

.calendar-widget-btn__icon svg {
    width: 20px;
    height: 20px;
}

.calendar-widget-btn__text {
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.85rem;
    padding-right: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

@media (hover: hover) {
    .calendar-widget-btn:hover .calendar-widget-btn__text {
        opacity: 1;
        transition-delay: 0.1s;
    }
}

.calendar-widget-btn__counter {
    position: absolute;
    background-color: var(--color-red);
    color: #ffffff;
    border: 2px solid var(--color-blue-200);
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1px 0 0;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    opacity: 0;
    transform: scale(0);
    box-sizing: border-box;
    pointer-events: none;
}

.calendar-widget-btn__counter.has-new {
    opacity: 1;
    transform: scale(1);
}

/*
 * The card a page link points at is ringed in navy on the light page; on
 * the dark one navy would vanish, so the ring and its wash turn blue.
 */
.calendar-side-panel {
    --cal-highlight: var(--color-blue-200);
    --cal-highlight-bg: #f0f7ff;
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    visibility: hidden;
    width: 100%;
    height: 100%; 
    height: 100dvh;
    background: var(--color-bg-secondary);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.5s;
    will-change: transform;
}

html[data-theme="dark"] .calendar-side-panel {
    --cal-highlight: var(--color-accent);
    --cal-highlight-bg: rgba(62, 166, 255, 0.1);
}

.calendar-side-panel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url("/wp-content/themes/nuzp/assets/media/general/nuzp-shield.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.ui-dialog.is-open > .calendar-side-panel {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0s;
}

.calendar-side-panel__header {
    background: var(--color-blue-200);
    color: var(--color-white);
    padding: max(16px, env(safe-area-inset-top)) 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.calendar-side-panel__header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-side-panel__header-top h3 {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 700;
}

#calendarWidgetClose {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.2s;
    border-radius: 0;
}

@media (hover: hover) {
    #calendarWidgetClose:hover {
        opacity: 1;
    }
}

.calendar-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Shown when a unit's page opened the calendar with its events only: which place, and the way back to all. */
.calendar-place-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}

.calendar-place-filter[hidden] {
    display: none;
}

.calendar-place-filter__clear {
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

@media (hover: hover) {
    .cal-nav-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    flex-grow: 1;
    margin: 0 10px;
    display: flex;
    justify-content: center;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    transition: background 0.2s ease;
}

@media (hover: hover) {
    .custom-select-trigger:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

.custom-select-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.custom-select-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    opacity: 0.9;
}

.custom-select-wrapper.is-open .custom-select-icon {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--color-surface-card);
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 35px rgba(var(--color-blue-200--rgb), 0.2);
    width: max-content;
    min-width: 160px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    transition-property: opacity, transform, visibility;
    max-height: 280px;
    overflow-y: auto;
}

.custom-select-wrapper.is-open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.custom-select-options::-webkit-scrollbar {
    width: 4px;
}
.custom-select-options::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}
.custom-select-options::-webkit-scrollbar-thumb {
    background: var(--color-border);
}

/* Firefox has no ::-webkit-scrollbar: the same colours from the standard properties. */
@supports not selector(::-webkit-scrollbar) {
    .custom-select-options {
        scrollbar-width: thin;
        scrollbar-color: var(--color-border) var(--color-bg-secondary);
    }
}

.custom-select-option {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-heading);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
    border-bottom: 1px solid rgba(var(--color-ink--rgb), 0.06);
}

.custom-select-option:last-child {
    border-bottom: none;
}

@media (hover: hover) {
    .custom-select-option:hover {
        background: var(--color-bg-secondary);
        color: var(--color-accent);
    }
}

.custom-select-option.is-selected {
    background: var(--color-blue-200);
    color: var(--color-white);
}

.calendar-side-panel__content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; 
}

.calendar-card {
    display: flex;
    align-items: stretch;
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-strong);
    border-radius: 0;
    margin-bottom: 12px;
    text-decoration: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    opacity: 0;
    will-change: transform, opacity;
    position: relative;
    cursor: pointer;
}

.calendar-card__overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
}

.ui-dialog.is-open > .calendar-side-panel .calendar-card {
    animation: fadeSlideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Only the first cards cascade, and quickly: a longer stagger made the tenth
   card appear a full second after the tap. */
.ui-dialog.is-open > .calendar-side-panel .calendar-card:nth-child(2) { animation-delay: 0.04s; }
.ui-dialog.is-open > .calendar-side-panel .calendar-card:nth-child(3) { animation-delay: 0.08s; }
.ui-dialog.is-open > .calendar-side-panel .calendar-card:nth-child(n+4) { animation-delay: 0.12s; }
@media (hover: hover) {
    .calendar-card:hover {
        box-shadow: 0 5px 15px rgba(var(--color-blue-200--rgb), 0.1);
    }
}

.calendar-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-blue-200);
    color: var(--color-white);
    padding: 12px 8px;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 899px) {
    .calendar-card__date{
        min-width: 0;
    }
}

.calendar-card__date .month {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.8;
}

.calendar-card__date .day {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 4px;
}

.calendar-card__date .dow {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.8;
    margin-top: 4px;
}

.calendar-card__info {
    padding: 12px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.calendar-card__badge {
    display: inline-block;
    color: var(--color-white);
    background: var(--color-blue-100);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    width: max-content;
    line-height: 1.2;
}

.calendar-card__cats {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 4px;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.3;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--color-border);
    position: relative;
    z-index: 2;
}

.calendar-card__cats-list {
    display: inline;
    flex-wrap: wrap;
}

.calendar-card__cat-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 3;
    transition: color 0.2s ease;
}

.calendar-card__cat-sep {
    color: var(--color-border);
    margin-right: 3px;
    font-weight: 400;
}

.calendar-card.is-past .calendar-card__cats {
    opacity: 0.5;
    border-top-color: var(--color-border);
}

.calendar-card.is-past .calendar-card__cat-link {
    color: var(--color-text-muted);
}

@media (hover: hover) {
    .calendar-card__cat-link:hover {
        color: var(--color-text-heading);
        text-decoration: underline;
    }
}

.calendar-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 6px;
}

.calendar-card__title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-heading);
    margin-bottom: 0;
    transition: color 0.2s;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

@media (hover: hover) {
    .calendar-card:hover .calendar-card__title {
        color: var(--color-link);
    }
}

.calendar-card__note {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-top: -2px;
    margin-bottom: 4px;
}

.pinned-icon {
    color: var(--color-text-heading);
    flex-shrink: 0;
    margin-top: 3px; 
}

.calendar-card__meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calendar-card__meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1;
}

.calendar-card__meta svg {
    margin-right: 5px;
    opacity: 0.7;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.calendar-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    border-left: 1px solid var(--color-border);
    color: var(--color-text-heading);
    background: var(--color-bg-secondary);
    flex-shrink: 0;
    transition: 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    transition-property: color, background-color, border-color;
}

@media (hover: hover) {
    a.calendar-card:hover .calendar-card__arrow {
        background: var(--color-blue-200);
        color: var(--color-white);
        border-color: var(--color-blue-200);
    }
}

.calendar-card.is-past {
    border-color: var(--color-border);
    background: var(--color-bg-secondary);
}

.calendar-card.is-past .calendar-card__date {
    background: var(--color-border);
    color: var(--color-text-secondary);
}

.calendar-card.is-past .calendar-card__title {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.calendar-card.is-past .calendar-card__meta {
    color: var(--color-text-muted);
}

.calendar-card.is-featured {
    border-color: #3b82f6; 
    background: rgba(59, 130, 246, 0.05);
}

.calendar-card.is-featured .calendar-card__date {
    color: var(--color-white);
}

.calendar-card.is-featured.is-past {
    border-color: var(--color-border);
    background: var(--color-bg-secondary);
}

.calendar-card.is-featured.is-past .calendar-card__date {
    background: var(--color-border);
    color: var(--color-text-secondary);
}

.calendar-card.is-featured.is-past .pinned-icon {
    color: var(--color-accent);
}

.calendar-card.is-target-highlight {
    border-color: var(--cal-highlight) !important;
    background: var(--cal-highlight-bg) !important;
    box-shadow: 0 0 0 2px var(--cal-highlight), 0 8px 24px rgba(var(--color-blue-200--rgb), 0.22) !important;
    transform: translateY(-2px);
    position: relative;
    z-index: 2;
    transition: 0.35s ease;
    transition-property: color, background-color, border-color, box-shadow, transform;
}

.calendar-card.is-target-highlight .calendar-card__date {
    background: var(--color-blue-200) !important;
    color: var(--color-white) !important;
}

.calendar-card.is-target-highlight .calendar-card__date .month,
.calendar-card.is-target-highlight .calendar-card__date .day,
.calendar-card.is-target-highlight .calendar-card__date .dow {
    color: var(--color-white) !important;
}

.calendar-group-divider {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin: 15px -20px 8px;
    padding: 0 20px 4px;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: -20px;
    background: var(--color-bg-secondary);
    z-index: 2;
}

.calendar-side-panel__content > .calendar-ptr-spinner + .calendar-events-group .calendar-group-divider,
.calendar-side-panel__content > .calendar-events-group:first-child .calendar-group-divider {
    margin-top: 0;
}

.calendar-ptr-spinner {
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-heading);
    transition: height 0.2s ease;
}

.calendar-ptr-spinner svg {
    width: 24px;
    height: 24px;
}

/* Turns only while the panel is pulled down (widget-calendar.js). Turning for
   good inside the hidden panel, it was work on every frame of every page. */
.calendar-ptr-spinner.is-active svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.calendar-side-panel__footer {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    background: var(--color-surface-card);
    border-top: 1px solid var(--color-border-strong);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.calendar-footer-btn {
    flex: 1;
}

.calendar-widget-overlay {
    position: fixed;
    inset: 0;
    background: rgba(var(--color-blue-200--rgb), 0.6); 
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    /* Same clock and curve as the panel, so the page stops dimming when the panel lands. */
    transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.5s;
    touch-action: none;
}

.ui-dialog.is-open > .calendar-widget-overlay {
    opacity: 1;
    visibility: visible;
}

#toTop {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 50px) !important;
    width: 42px !important;
    height: 42px !important;
}

#toTop svg {
    width: 20px !important;
    height: 20px !important;
}

.calendar-side-panel__content::-webkit-scrollbar {
    width: 6px;
}
.calendar-side-panel__content::-webkit-scrollbar-track {
    background: var(--color-bg-secondary); 
}
.calendar-side-panel__content::-webkit-scrollbar-thumb {
    background: var(--color-border); 
}

/* Firefox has no ::-webkit-scrollbar: the same colours from the standard properties. */
@supports not selector(::-webkit-scrollbar) {
    .calendar-side-panel__content {
        scrollbar-width: thin;
        scrollbar-color: var(--color-border) var(--color-bg-secondary);
    }
}
@media (hover: hover) {
    .calendar-side-panel__content::-webkit-scrollbar-thumb:hover {
        background: var(--color-text-muted); 
    }
}

.calendar-card, .calendar-widget-btn, #calendarWidgetClose, .cal-nav-btn {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 899px) {
    .calendar-widget-btn:active,
    .calendar-card:active,
    #calendarWidgetClose:active {
        transform: scale(0.96) !important;
        transition: transform 0.1s ease !important;
    }
}

@media (min-width: 600px) {
    .calendar-widget-btn {
        right: 15px;
        bottom: 15px;
        width: 52px;
        height: 52px;
    }
    @media (hover: hover) {
        .calendar-widget-btn:hover {
            width: 175px;
        }
    }
    .calendar-widget-btn__icon {
        width: 52px;
        height: 52px;
    }
    .calendar-widget-btn__icon svg {
        width: 26px;
        height: 26px;
    }
    .calendar-widget-btn__counter {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
        border-radius: 0;
        padding: 0 1px 0 0;
    }
    #toTop {
        right: 15px !important;
        bottom: 75px !important;
        width: 52px !important;
        height: 52px !important;
        background-color: var(--color-blue-200) !important;
    }
    #toTop svg {
        width: 26px !important;
        height: 26px !important;
    }
}

@media (min-width: 900px) {
    .calendar-side-panel {
        width: 480px;
    }
    .calendar-side-panel__header {
        padding: 15px 30px;
        gap: 16px;
    }
    .calendar-side-panel__header-top h3 {
        font-size: 0.95rem;
    }
    .custom-select-label {
        font-size: 1.25rem;
    }
    .calendar-side-panel__content {
        padding: 25px;
    }
    .calendar-group-divider {
        margin: 15px -25px 8px;
        padding: 5px 25px 5px;
        top: -25px;
    }
    .calendar-side-panel__content > .calendar-ptr-spinner + .calendar-events-group .calendar-group-divider,
    .calendar-side-panel__content > .calendar-events-group:first-child .calendar-group-divider {
        margin-top: 0;
    }
    .calendar-side-panel__footer {
        padding: 20px 25px;
        gap: 15px;
    }
    .calendar-card__date .dow {
        font-size: 0.8rem;
    }
    .cal-nav-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 899px) {
    .custom-select-label {
        font-size: 0.95rem;
    }
    .calendar-side-panel__header {
        padding: max(12px, env(safe-area-inset-top)) 15px 10px;
        gap: 8px;
    }
    .calendar-side-panel__content {
        padding: 15px;
    }
    .calendar-group-divider {
        margin: 15px -15px 8px;
        padding: 5px 15px 5px;
        top: -15px;
    }
    .calendar-side-panel__content > .calendar-ptr-spinner + .calendar-events-group .calendar-group-divider,
    .calendar-side-panel__content > .calendar-events-group:first-child .calendar-group-divider {
        margin-top: 0;
    }
    .calendar-side-panel__footer {
        padding: 12px 15px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        gap: 8px;
    }
    .calendar-card {
        margin-bottom: 8px;
    }
    .calendar-card__date {
        padding: 8px 4px;
        min-width: 44px;
    }
    .calendar-card__date .month {
        font-size: 0.6rem;
    }
    .calendar-card__date .day {
        font-size: 1.15rem;
        margin-top: 2px;
    }
    .calendar-card__date .dow {
        font-size: 0.6rem;
        margin-top: 2px;
    }
    .calendar-card__info {
        padding: 6px 10px;
    }
    .calendar-card__title {
        font-size: 0.85rem;
    }
    .calendar-card__badge {
        font-size: 0.68rem;
        padding: 1px 5px;
        margin-bottom: 2px;
    }
    .calendar-card__cats {
        font-size: 0.68rem;
        margin-top: 4px;
        padding-top: 4px;
    }
    .calendar-card__meta {
        font-size: 0.75rem;
    }
    .calendar-card__arrow {
        width: 32px;
    }
    .calendar-card__arrow svg {
        width: 16px;
        height: 16px;
    }
}

.calendar-skeleton {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.calendar-skeleton-card {
    display: flex;
    height: 70px;
    background: var(--color-surface-card);
    border: 1px solid var(--color-border);
    animation: pulseSkel 1.5s infinite ease-in-out;
}
.calendar-skeleton-date {
    width: 60px;
    background: var(--color-border);
}
.calendar-skeleton-info {
    flex: 1;
    padding: 15px;
}
.calendar-skeleton-line {
    height: 12px;
    background: var(--color-border);
    margin-bottom: 8px;
    border-radius: 2px;
}
.calendar-skeleton-line.short {
    width: 60%;
}
@keyframes pulseSkel {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

