@font-face {
  font-family: 'Glyphicons Halflings';
  src: url('./glyphicons-halflings-regular.woff2') format('woff2');
  font-display: block;
}

body.relay-upgrade {
  background: var(--rl-paper);
  color: var(--rl-ink);
  font: 14px/1.6 Arial, Helvetica, sans-serif;
}

body.relay-upgrade :is(.az-navigation,.rl-shell,.rl-add,.az-footer) {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.az-glyph {
  display: inline-block;
  font: normal 1em/1 'Glyphicons Halflings';
}

.az-navigation {
  background: var(--rl-paper);
  border: 0;
  border-block-end: 4px solid var(--rl-accent);
}
body.relay-home .az-navigation { border: 0 }
.az-navigation .rl-wrap {
  position: relative;
  width: min(1250px, calc(100% - 30px));
  height: 135px;
  padding-inline-end: 20px;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
}
.az-navigation .rl-brand { margin-inline-end: auto; width: min(420px, 42vw) }
.az-navigation .rl-brand img, .az-footer .rl-brand img { width: 100%; height: auto; border-radius: 0 }
.az-navigation .rl-nav { display: block; width: auto; order: initial; font-size: 14px }
.az-navigation .rl-nav ul { list-style: none; padding: 0; margin: 0 }
.az-navigation .rl-nav > ul { display: flex; align-items: center; gap: 20px }
.az-navigation .rl-nav li { position: relative }
.az-navigation .rl-nav a { color: var(--rl-ink); font-weight: 400; white-space: nowrap; padding: 10px; display: block }
.az-navigation .rl-nav :is(a:hover,a[aria-current=page]) { color: var(--rl-link) }
.az-navigation .rl-nav .az-submenu {
  display: none;
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 100%;
  min-width: 155px;
  padding: 10px;
  border-radius: 0 15px 15px;
  background: var(--rl-soft);
  box-shadow: 0 4px 6px #0002;
}
.az-navigation .rl-nav li:last-child .az-submenu { inset-inline-start: auto; inset-inline-end: 0 }
.az-navigation .rl-nav li:hover > .az-submenu, .az-navigation .rl-nav li:focus-within > .az-submenu { display: block }
.az-search-toggle, .az-menu-toggle, .az-search-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--rl-ink);
  font-size: 17px;
  cursor: pointer;
}
.az-menu-toggle { display: none }
.az-search-form {
  position: absolute;
  z-index: 10;
  inset-inline-end: 20px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: min(610px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: var(--rl-paper);
  box-shadow: 0 2px 12px #0003;
}
.az-search-form input { width: 100%; min-height: 40px; padding: 6px 12px; border: 1px solid var(--rl-control-edge); font: inherit }

.az-home-hero { position: relative; height: 55vh; overflow: hidden }
.az-home-hero > img { width: 100%; height: 100%; object-fit: cover; display: block }
.az-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px 32px;
  background: rgb(0 0 0 / 50%);
  text-align: center;
}
.az-hero-content h2 {
  margin: 0;
  color: #fff;
  font: 400 clamp(23.3px, calc(17px + 3.15vw), 41.4px)/1.1 Arial, Helvetica, sans-serif;
}
body.relay-upgrade .az-hero-button {
  display: block;
  border-radius: 15px;
  padding: 10px 15px;
  color: #fff;
  background: var(--rl-action);
  text-decoration: none;
  font-weight: 400;
}
body.relay-upgrade .az-hero-button:hover { background: var(--rl-action-hover) }
.az-home-grid {
  position: relative;
  z-index: 2;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, 185px);
  gap: 24px;
  margin: -64px auto 0;
  padding-inline: 10px;
}
body.relay-upgrade .az-home-tile {
  background: var(--rl-soft);
  color: var(--rl-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 185px;
  height: 150px;
  padding: 20px;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  font-weight: 700;
  transition: box-shadow .2s ease;
}
.az-home-tile:hover, .az-home-tile:focus-visible { box-shadow: 0 4px 8px #0005 }
.az-home-tile img { width: auto; max-width: 100%; max-height: 80px; object-fit: contain; margin: auto }
.az-home-resources {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 24px 18px;
  margin: 32px 0 0;
  background: var(--rl-soft);
  color: var(--rl-ink);
}
.az-home-resources > div { max-width: 460px; width: 100%; display: grid; justify-content: center }
.az-home-resources h2 { font-size: 26px; font-weight: 400; margin: 0 0 8px; color: inherit }
.az-home-resources ul { list-style: none; margin: 0; padding: 0 }
body.relay-upgrade .az-home-resources a { color: var(--rl-link); font-weight: 400; text-decoration: underline }
.az-home-resources img { width: min(45%, 400px); height: 200px; object-fit: cover }

body.relay-upgrade .rl-shell h1 { font: 400 30px/1.1 Arial, Helvetica, sans-serif; letter-spacing: 0; color: var(--rl-ink) }
body.relay-upgrade .rl-shell .rl-tool-top h1 { color: var(--rl-ink); font-size: 24px; font-weight: 700 }
.rl-tool-top h1 .az-glyph, .rl-product-intro h1 .az-glyph, .rl-card-body .az-glyph { color: var(--rl-accent); font-size: 20px }
.rl-card-body .az-glyph { margin-block-end: 6px }
.rl-shell .rl-lede, .rl-add .rl-lede { max-width: none; font-size: 14px; color: var(--rl-ink) }
.rl-shell .rl-product-intro, .rl-shell .rl-tool-top, .rl-shell .rl-result, .rl-shell .rl-help, .rl-shell .rl-band { background: var(--rl-paper) }
.rl-shell :is(.rl-sheet,.rl-help,.rl-card,.rl-result), .rl-add .rl-card { border-color: var(--rl-edge); box-shadow: none }
.rl-shell .rl-card, .rl-add .rl-card { border-radius: 0 }
.az-search-form .rl-btn {
  border: 0;
  border-radius: 15px;
  font: 400 14px/1.6 Arial, Helvetica, sans-serif;
  color: #fff;
  background: var(--rl-action);
}
.az-search-form .rl-btn:hover { background: var(--rl-action-hover); filter: none }
.rl-shell :where(input,select,textarea) { min-height: 32px; border: 1px solid var(--rl-control-edge); border-radius: 0; padding: 5px 9px }
.rl-shell .az-cross-form { max-width: 455px; text-align: center; padding: 10px }
.rl-shell .az-cross-form .rl-form-grid { text-align: start }
.rl-shell .az-cross-form .rl-actions, .rl-shell .az-cross-form .rl-part-samples { justify-content: center }
body.relay-upgrade :is(.rl-shell,.rl-add) a:not(.rl-btn,.az-home-tile,.az-hero-button,.az-home-resources a) { color: var(--rl-link); font-weight: 400 }
.az-region-links { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0; list-style: none }
.az-region-links a { text-decoration: underline }
.az-seller-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 20px }
.az-seller-grid article { width: min(350px, 100%); padding: 15px; border: 1px solid var(--rl-edge); background: var(--rl-soft); border-radius: 8px }
.az-seller-grid h2 { font: 400 18px/1.2 Arial, Helvetica, sans-serif; margin: 0 0 10px }
.az-seller-grid p { margin: 0 0 7px }
.az-footer { background: var(--rl-paper); color: var(--rl-ink); border-block-start: 4px solid var(--rl-accent); padding: 40px 0 }
.az-footer .az-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .7fr .65fr; gap: 20px; align-items: start }
.az-footer .rl-brand { width: 100%; max-width: 315px; margin: 0 }
.az-footer a { color: var(--rl-link); margin: 0; text-decoration: none }
.az-footer a[href^="mailto:"] { overflow-wrap: anywhere }
.az-footer a:hover { text-decoration: underline }
.az-footer > p { text-align: center; margin: 32px 14px 0 }
body.relay-upgrade > .az-footer + footer { display: none }
body.relay-upgrade .rl-article-cover img { border-color: var(--rl-edge) }

@media (max-width: 1200px) { .az-home-grid { grid-template-columns: repeat(3, 185px) } }
@media (max-width: 900px) {
  .az-home-grid { grid-template-columns: repeat(2, 185px) }
  .az-navigation .rl-nav > ul { gap: 4px }
  .az-navigation .rl-wrap { gap: 12px; padding-inline-end: 0 }
}
@media (max-width: 730px) {
  .az-home-resources { flex-direction: column }
  .az-home-resources img { width: min(100%, 430px); height: auto }
}
@media (max-width: 685px) {
  .az-navigation .rl-wrap { height: 86px; width: calc(100% - 24px); gap: 9px }
  .az-navigation .rl-brand { width: min(300px, calc(100% - 106px)); margin-inline: auto }
  .az-menu-toggle { display: grid; width: 35px; font-size: 20px }
  .az-navigation .rl-nav { display: none; position: absolute; inset: 100% auto auto 0; width: min(300px, 95vw); background: var(--rl-paper); box-shadow: 0 4px 12px #0003 }
  [dir=rtl] .az-navigation .rl-nav { inset: 100% 0 auto auto }
  .az-menu-toggle[aria-expanded=true] ~ .rl-nav { display: block }
  .az-navigation .rl-nav > ul { align-items: stretch; flex-direction: column; max-height: 70vh; overflow: auto; gap: 0 }
  .az-navigation .rl-nav li { border-block-end: 1px solid var(--rl-edge) }
  .az-navigation .rl-nav .az-submenu { display: none }
  .az-search-form { inset-inline-end: 0; width: 100% }
  .az-footer .az-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 500px) {
  .az-home-grid { grid-template-columns: repeat(2, minmax(0, 185px)); gap: 12px }
  body.relay-upgrade .az-home-tile { width: auto; height: 136px; padding: 12px 8px; line-height: 1.3 }
  .az-home-tile img { max-height: 72px }
  .az-home-hero { height: clamp(265px, 42vh, 340px) }
  .az-home-resources { gap: 16px; padding-block: 20px; margin-block-start: 24px }
}
