/* Article Gateway resource links for public OJS pages.
 * Markup: <p class="ag-resource-nav"> with three direct anchor children.
 * Before deployment, confirm the theme body has no existing top padding and
 * no transformed footer ancestor creates a fixed-position containing block.
 */
body:has(.ag-resource-nav) {
  padding-top: 48px;
}

body .ag-resource-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(4px, 2vw, 24px);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 8px;
  overflow: visible;
  background: #142b45;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  text-indent: 0;
  letter-spacing: normal;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body .ag-resource-nav > a,
body .ag-resource-nav > a:visited {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 0 clamp(10px, 2.2vw, 18px);
  color: #ffffff;
  font: inherit;
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
  text-transform: none;
  border: 0;
  border-radius: 3px;
  background: transparent;
}

body .ag-resource-nav > a:hover,
body .ag-resource-nav > a:focus-visible {
  color: #ffffff;
  background: #2c4663;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body .ag-resource-nav > a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}
