/* Mobile first: default styles live in the other stylesheets. */

/* Tablet */
@media screen and (min-width: 768px) {
  .hero__inner {
    width: min(100% - 4rem, var(--container-max-width));
  }

  .contact-layout,
  .sitemap-list,
  .info-cards__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overlay__bar {
    padding: 0.5rem;
  }
  .contact-layout {
    align-items: start;
  }

  .header-logo {
    flex-direction: row;
    gap: 0.5rem;
    padding-block: 0.5rem;
    flex-wrap: nowrap;
  }

  .hb-logo img {
    width: 100%;
  }

  .hb-logo .hb-logo-mobile {
    display: none;
  }

  .hb-logo {
    padding-right: 0.75rem;
    border-right: 1px solid var(--color-border);
  }

  .hb-logo .hb-logo-desktop {
    display: block;
    height: 4rem;
  }

  html[lang="en"] .site-logo_text {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 4px;
  }
  
  .site-logo_text {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: -1px;
  }
	
  .site-logo_en_name {
    white-space: nowrap;
  }

  .table-container {
    font-size: var(--font-size-desktop);
  }

  .formsTable {
    th,
    td {
      padding: 0.25rem 0.5rem;
    }
  }

  p.transition-notice {
    font-size: 16px;
    margin-top: 0;
  }
}

/* Desktop */
@media screen and (min-width: 1200px) {
  :root {
    --header-height: 8.5rem;
  }

  body {
    font-size: var(--font-size-desktop);
  }

  .container,
  .hero__inner,
  .section,
  .footer-inner,
  .section-messagebox,
  .header-inner {
    width: min(100% - 4rem, var(--container-max-width));
  }

  .header-bar,
  .desktop-nav,
  .desktop-languages {
    display: flex;
  }

  .desktop-languages {
    align-items: center;
    gap: 0.35rem;
  }

  .desktop-nav {
    width: min(100% - 4rem, var(--container-max-width));
    margin-inline: auto;
  }

  .desktop-nav > ul,
  .desktop-languages > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem;
  }

  .desktop-nav > ul {
    width: 100%;
    align-items: center;
    justify-content: space-around;
  }

  .desktop-nav > ul > li {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 100%;
  }

  .icon-button {
    padding: 1.25rem 0.25rem;
  }

  .desktop-nav > ul > li > a,
  .desktop-languages > ul > li > a,
  .desktop-languages > a,
  .other-languages__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 2.75rem;
    padding: 1rem 0.5rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
  }

  .desktop-languages > ul > li > a,
  .desktop-languages > a,
  .other-languages__toggle {
    color: var(--color-text);
  }

  .desktop-nav > ul > li > a {
    color: var(--color-primary-dark);
    gap: 5px;
    justify-content: center;
    line-height: 1.4;
    height: 100%;
    padding: 1rem 4px;
    flex-direction: column;
  }

  .desktop-languages > ul > li > a:hover,
  .desktop-languages > a:focus-visible,
  .desktop-languages > a:hover,
  .other-languages__toggle:hover,
  .other-languages__toggle[aria-expanded="true"] {
    background: var(--color-secondary);
    color: var(--color-white);
  }

  .desktop-nav > ul > li > a:hover,
  .submenu-toggle:hover,
  .submenu-toggle[aria-expanded="true"] {
    background: var(--color-primary-light);
  }

  .desktop-nav > ul > li > a:focus-visible,
  .submenu-toggle:focus-visible {
    outline-color: var(--color-white);
    box-shadow: inset 0 0 0 3px var(--focus-outline-strong);
  }

  .submenu-toggle {
    align-self: center;
    min-width: 2rem;
    min-height: 2.75rem;
    margin-inline-end: 0.15rem;
    padding: 0 0.4rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--color-primary-dark);
  }

  .submenu-caret {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.12rem) rotate(45deg);
    flex: 0 0 auto;
  }

  .submenu-toggle[aria-expanded="true"] .submenu-caret,
  .other-languages__toggle[aria-expanded="true"] .submenu-caret {
    transform: translateY(0.12rem) rotate(225deg);
  }

  .other-languages {
    position: relative;
  }

  .other-languages__toggle {
    gap: 0.4rem;
  }

  .other-languages__panel,
  .desktop-nav ul.desktop-nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    margin: 0;
    padding: 0.35rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .other-languages__panel {
    right: 0;
    left: auto;
    width: max-content;
    min-width: 14rem;
  }

  .desktop-languages .other-languages__panel ul {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0.15rem;
    list-style: none;
  }

  .desktop-nav ul.desktop-nav__submenu {
    display: grid;
    width: max-content;
    min-width: 14rem;
    max-width: 20rem;
    gap: 0.15rem;
  }

  .other-languages__panel a,
  .desktop-nav ul.desktop-nav__submenu a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: auto;
    min-height: 2.75rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.45rem;
    color: var(--color-text);
    line-height: 1.3;
    text-align: start;
    text-decoration: none;
    white-space: normal;
  }

  .other-languages__panel a:hover,
  .other-languages__panel a:focus-visible,
  .desktop-nav ul.desktop-nav__submenu a:hover,
  .desktop-nav ul.desktop-nav__submenu a:focus-visible {
    background: var(--color-secondary);
    color: var(--color-white);
  }

  .header-actions {
    display: none;
  }

  .sitemap-list {
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto auto;
    grid-auto-flow: column;
  }

  .info-cards__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-tools > .share {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .search__panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: auto;
    width: min(20rem, calc(100vw - 2rem));
    min-height: 0;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
  }

  .menu-tools {
    display: none;
  }

  .news-list thead,
  .news-card__date {
    display: table-cell;
  }

  .news-list tr:not(:last-child) {
    margin-bottom: 0;
  }

  .news-list .news-card:last-child td:first-child {
    border-radius: 0 0 0 1rem;
  }

  .news-list .news-card:last-child td:last-child {
    border-radius: 0 0 1rem 0;
  }

  .news-list tbody tr:first-child {
    border-radius: 0;
  }

  .news-list tbody tr:first-child td:first-child {
    border-radius: 0;
  }

  .news-card {
    border: 0;
    border-radius: 0;
  }

  .news-card__date {
    border-radius: 0;
    width: 300px;
  }

  .news-card__body {
    padding: 0.5rem 2rem;
    border-radius: 0;
    width: 80%;
  }

  .news-section__bar {
    font-size: 1rem;
  }
}

/* Keep links available when JavaScript is unavailable. */
.no-js .desktop-nav,
.no-js .desktop-languages {
  display: block;
}

.no-js .desktop-nav ul,
.no-js .desktop-languages ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem 0.75rem;
}

.no-js .desktop-nav a,
.no-js .desktop-languages a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

.no-js .submenu-toggle {
  display: none;
}

.no-js .desktop-nav__submenu,
.no-js .other-languages__panel {
  position: static;
  display: grid !important;
  width: auto;
  min-width: 0;
  margin-top: 0.25rem;
  box-shadow: none;
}

.no-js .header-actions,
.no-js .back-to-top {
  display: none;
}

.no-js .site-header {
  position: static;
}

.no-js body {
  padding-top: 0;
}

@media print {
  .site-header,
  .sticky-actions,
  .back-to-top,
  .header-actions,
  .skip-link,
  .overlay {
    display: none !important;
  }

  body {
    padding-top: 0;
    background: #fff;
  }
}
