/*******************/
/* HEADER          */
/*******************/

.ls-container {
  width: 100%;
  max-width: 1060px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 10px;
  padding-right: 10px;
  margin-inline: auto;
  padding-inline: 10px;
}

.ls-header {
  position: sticky;
  left: 0;
  right: 0;
  top: var(--wp-admin--admin-bar--height);
  z-index: 1000;
  background: hsl(var(--clr-white));
  padding-top: 0.3rem;
}

.ls-header_toggle-mobnav {
  display: none;
}

/* CHANGED: allow wrapping so nav can be a real "second line" on desktop */
.ls-header_top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-500);
  row-gap: 0;
  flex-wrap: wrap;              /* <-- added */
}

/* NEW: explicit ordering for the default (not collapsed) two-line desktop header */
.ls-header_logo { order: 1; }   /* <-- added */
.ls-header_aux  { order: 2; margin-left: auto; margin-bottom: 0; } /* <-- added */

.ls-header_logo img {
    padding-bottom: 0.3 rem;
}

/* CHANGED: nav defaults to second row on desktop */
.ls-header_nav {
  margin-top: 0;
  order: 3;
  width: 100%;
}

.ls-header_aux,
.ls-header_nav {
  display: flex;
  gap: var(--space-600);
  align-items: center;
  color: hsl(var(--clr-dark-grey));
}

.ls-header_nav {
  gap: var(--space-500);
}

.ls-header_aux a,
.ls-header_nav a {
  height: 2.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-family: 'NeueHelveticaPaneuropean75Bold', Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1;
  border-bottom: 5px solid transparent;
}

/* Keep nowrap on links (fine in both rows) */
.ls-header_nav a{ white-space: nowrap; }

.ls-header_toggle-country {
  text-transform: uppercase;
  gap: 0.4em;
}

.ls-header_aux a:hover,
.ls-header_nav a:hover,
.ls-header_toggle-country[data-active],
.ls-header_toggle-search[data-active] {
  color: hsl(var(--clr-brand));
  border-bottom: 5px solid hsl(var(--clr-brand));
}

.ls-header_popup-country,
.ls-header_popup-search {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.2s linear;
}

.ls-header_popup-country[data-visible],
.ls-header_popup-search[data-visible] {
  visibility: visible;
  opacity: 100;
  top: 100%;
  right: 0;
  left: 0;
  padding: var(--pad-400);
  z-index: 100;
  background-color: hsl(var(--clr-white));
  color: hsl(var(--clr-dark-grey));
  text-align: center;
  padding-top: var(--space-500);
  padding-bottom: var(--space-500);
  border-top: 1px solid hsl(var(--clr-light-grey));
}

.ls-header_popup-country a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.ls-header_popup-country a:hover {
  text-decoration: underline;
}

.ls-header_search-form input {
  line-height: 1.5rem;
  padding: 5px;
  border: 1px solid hsl(var(--clr-light-grey));
  font-size: 1.6rem;
  width: 75%;
}

.ls-header_search-form span {
  color: hsl(var(--clr-brand));
  font-size: 1.25rem;
  padding-right: var(--space-300);
}

.ls-header_country-close,
.ls-header_search-close,
.ls-header_mobnav-close {
  display: flex;
  justify-content: flex-end;
}

.ls-header_country-close a,
.ls-header_search-close a,
.ls-header_mobnav-close a {
  color: hsla(var(--clr-black) / 0.3);
  transition: color 0.1s ease;
  text-decoration: none;
}

.ls-header_country-close a:hover,
.ls-header_search-close a:hover,
.ls-header_mobnav-close a:hover {
  color: hsl(var(--clr-dark-grey));
  text-decoration: none;
}

.ls-header_mobnav-close {
  display: none;
}

.ls-icon--arrow-down{
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  background-color: currentColor;

  -webkit-mask: url("../images/chevron.svg") no-repeat center;
  mask: url("../images/chevron.svg") no-repeat center;

  -webkit-mask-size: contain;
  mask-size: contain;

  transform: translateY(-0.15em);

  transition: transform 0.2s ease;
}

.ls-header_toggle-country[data-active] .ls-icon--arrow-down {
  transform: rotate(180deg);
}

a:hover i.ls-icon--arrow-down{transform: translateY(-0.15em)}

@media (max-width:767px) {
  .ls-header {
    position: relative;
    top: auto;
  }
  .ls-header_toggle-mobnav {
    display: block;
    width: 2rem;
    height: 2rem;
    fill: hsl(var(--clr-dark-grey));
  }
  .ls-header_toggle-mobnav:hover {
    fill: hsl(var(--clr-brand));
  }
  .ls-header_logo {
    flex: 1;
  }
  .ls-header_mobnav-close {
    display: inline-flex;
    width: 100%;
  }
  .ls-header_top {
    gap: var(--space-300);
  }
  .index-category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ls-header_aux a,
  .ls-header_nav a {
    font-size: 1.2rem;
  }
  .ls-header_toggle-mobnav {
    display: block;
    width: 2rem;
    height: 2rem;
    fill: hsl(var(--clr-dark-grey));
  }
  .ls-header_toggle-mobnav:hover {
    fill: hsl(var(--clr-brand));
  }
  .ls-header_logo {
    flex: 1;
  }
  .ls-header_nav {
    display: none;
  }
  .ls-header_nav[data-visible] {
    display: flex;
    flex-direction: column;
    position: fixed;
    overflow-y: scroll;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    margin: 0;
    padding-top: var(--space-400);
    padding-right: var(--space-400);
    padding-bottom: var(--space-800);
    padding-left: var(--space-400);
    z-index: 100;
    background-color: hsl(var(--clr-white));
    font-size: 2rem;
    font-family: 'NeueHelveticaPaneuropean75Bold', Helvetica, Arial, sans-serif;
    font-weight: 800;
  }
}

/*******************/
/* ARTICLES        */
/*******************/

.ls-articles {
  margin-block: 2rem;
}

.ls-articles__title {
  margin: 0 0 1rem;
  font-family: 'NeueHelveticaPaneuropean75Bold', Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.ls-articles__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 42em) {
  .ls-articles__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ls-card {
  position: relative;
  overflow: hidden;
}

@media (min-width: 42em) {
  .ls-articles__grid > .picture-box:first-child,
  .ls-articles__grid > .ls-card:first-child {
    grid-column: 1/2;
    grid-row: 1/3;
    margin-bottom: 0;
  }
}

.ls-card__link {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.ls-card__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ls-card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color .2s ease-in-out;
  z-index: 1;
}

.ls-card__link:hover::before,
.ls-card__link:focus-visible::before {
  background-color: rgba(0, 0, 0, .22);
}

.ls-card__link:focus-visible {
  outline: 3px solid rgba(21, 184, 172, 1);
  outline-offset: 3px;
}

.ls-card__title {
  margin: 0;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;

  color: #fff;
  font-family: 'NeueHelveticaPaneuropean75Bold', Helvetica, Arial, sans-serif;

  background-color: rgba(21, 184, 172, .4);
  padding: .6875rem 1.25rem .6875rem .5rem;
  font-size: clamp(0.9375rem, calc(0.9375rem + (3 * (100vw - 360px) / 700)), 1.125rem)
  line-height: 1.2;

  max-height: clamp(40%, 60vw, 100%);
  overflow: hidden;
}

.ls-articles__empty {
  margin: 0;
}

@media (min-width: 60em) {
  .ls-header.is-collapsed .ls-header_top {
    gap: var(--space-300);
    align-items: center;

    flex-wrap: nowrap;          /* <-- added */
  }

  .ls-header.is-collapsed .ls-header_nav {
    display: flex;
    align-items: center;

    order: 2;                   /* <-- added */
    width: auto;                /* <-- added */
    margin-top: 0;              /* <-- added */

    flex: 1;                    /* <-- added */
    min-width: 0;               /* <-- added */

    gap: var(--space-300);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ls-header.is-collapsed .ls-header_nav::-webkit-scrollbar { display: none; }

  .ls-header.is-collapsed .ls-header_nav a,
  .ls-header.is-collapsed .ls-header_aux a {
    height: 2rem;
    border-bottom-width: 3px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .ls-header.is-collapsed .ls-header_logo img {
    transform: scale(0.88);
    transform-origin: left center;
  }

  .ls-header.is-collapsed .ls-header_mobnav-close { display: none; }
}

a.btn {
  padding: 9px 12px 4px 12px;
}
a.btn i {
  margin-left: .75rem;
  position: relative;
  top: 0.1em;
}
a.btn--white,
a.btn--turquoise {
  color: #fff;
  background: #00b9ad;
  border: 2px solid #00b9ad;
}
a.btn--white:hover, a.btn--white:focus-visible, a.btn--white:focus, a.btn--white:active,
a.btn--turquoise:hover, a.btn--turquoise:focus-visible, a.btn--turquoise:focus, a.btn--turquoise:active {
  color: #00b9ad;
  background: #fff;
}