/* Shared additions only; no lower-page layout rules on Home/Service/Training. */
@media (min-width: 1024px) {
  :is(header, .header) nav a[href="/contact"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 18px;
    border: 1px solid #003166;
    border-radius: 8px;
    color: #fff !important;
    background: #003166;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
  }

  :is(header, .header) nav a[href="/contact"]:hover {
    background: #004a99;
  }

  :is(header, .header) nav a[href="/contact"]:focus-visible {
    outline: 3px solid #007cff;
    outline-offset: 3px;
  }

  :is(header, .header) nav a[href="/contact"] > span {
    display: none;
  }
}

.business-training-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 44px;
  margin-top: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.business-training-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Footer menu tap targets on Home/Service/Training (2026-11-20): 28x20px links were hard to tap on phones.
   Lower pages already get 44px from pages-sp.css (html[data-page]). */
@media (max-width: 1023px) {
  html:not([data-page]) footer ul a,
  html:not([data-page]) footer a[href="/privacy-policy"] {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  /* Blog pages use a simpler footer (links directly in div / p). */
  html:not([data-page]) footer > div > a,
  html:not([data-page]) footer > p > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 4px;
  }
}
