/* FixCaribbean header sizing: the mark is intentionally at least twice its former width. */
header .head {
  min-height: 0;
  padding: 20px 24px 16px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

header .logo {
  width: 700px;
  max-width: 100%;
  height: auto;
}

header .head nav {
  width: 100%;
  justify-content: center;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 2px solid #287b35;
  border-radius: 5px;
  background: #fff;
  color: #202020;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle:hover {
  background: #f5f7f5;
}

.menu-toggle:focus-visible {
  outline: 3px solid #ffb326;
  outline-offset: 3px;
}

.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(4) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keep high-resolution country marks within their card on all screen sizes. */
.tile img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 105px;
  object-fit: contain;
}

@media (max-width: 800px) {
  header .head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 16px;
  }

  header .head > a {
    min-width: 0;
  }

  header .logo {
    width: min(430px, 100%);
  }

  .menu-ready .menu-toggle {
    display: flex;
  }

  header .head nav {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #d9dfd9;
    justify-content: flex-start;
  }

  .menu-ready header .head nav {
    display: none;
  }

  .menu-ready header .head nav.is-open {
    display: flex;
  }

  header .head nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #d9dfd9;
    font-size: 16px;
  }

  header .head nav a:hover {
    background: #f5f7f5;
    text-decoration: none;
  }

  header .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 16px;
  }

  header .top > a {
    min-width: 0;
  }

  header .top .brand {
    width: min(320px, 100%);
  }

  header .top nav {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #d9dfd9;
    justify-content: flex-start;
  }

  .menu-ready header .top nav {
    display: none;
  }

  .menu-ready header .top nav.is-open {
    display: flex;
  }

  header .top nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #d9dfd9;
    font-size: 16px;
  }
}

@media (max-width: 530px) {
  header .head {
    padding: 14px 16px 12px;
  }

  header .logo {
    width: min(285px, 100%);
    max-width: 100%;
  }

  header .head nav {
    justify-content: flex-start;
  }
}
