/* Reusable controls: company hubs and the four business-model detail pages.
   Keep legacy aliases until migrated bodies have been verified on the site.
   Page columns, content and section layouts remain in the page stylesheets. */

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-page-nav, .af-nav, .amh-nav) {
  display: grid;
  grid-template-columns: repeat(var(--alnetz-ui-nav-columns, 4), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--alnetz-ui-space-1);
  margin: var(--alnetz-ui-space-4) 0 40px;
  padding: 0;
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-page-nav, .af-nav, .amh-nav) > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--alnetz-ui-space-2);
  min-width: 0;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--alnetz-ui-line);
  border-radius: 0;
  background: #fff;
  color: var(--alnetz-ui-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-page-nav, .af-nav, .amh-nav) > a:hover {
  color: var(--alnetz-ui-blue);
  border-color: var(--alnetz-ui-blue);
  background: var(--alnetz-ui-hover);
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-arrow, :is(.alnetz-ui-page-nav, .af-nav, .amh-nav) > a > span[aria-hidden="true"], :is(.alnetz-ui-detail, .af-link, .amh-detail, .alnetz-business-footer .alnetz-business-overview-cta) > span) {
  flex-shrink: 0;
  color: var(--alnetz-ui-blue);
  line-height: 1;
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-eyebrow, .af-eyebrow, .amh-model-eyebrow),
:where(body.alnetz-business-detail) .works-shared-page .works-shared-page__content :is(.alnetz-system-page.alnetz-system-page--site, .alnetz-component-page, .alnetz-service-page, .alnetz-iot-page) > :is(.alnetz-system-eyebrow, .alnetz-component-eyebrow, .alnetz-service-eyebrow, .alnetz-iot-eyebrow) {
  margin: 0;
  color: var(--alnetz-ui-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-heading, .af-heading, .amh-model-heading) h2,
:where(body.alnetz-business-detail) .works-shared-page .works-shared-page__content :is(.alnetz-system-page.alnetz-system-page--site, .alnetz-component-page, .alnetz-service-page, .alnetz-iot-page) > h2 {
  position: relative;
  margin: 12px 0 0;
  padding: 0 0 0 17px;
  border: 0;
  color: var(--alnetz-ui-text);
  font-family: inherit;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-heading, .af-heading, .amh-model-heading) h2::before,
:where(body.alnetz-business-detail) .works-shared-page .works-shared-page__content :is(.alnetz-system-page.alnetz-system-page--site, .alnetz-component-page, .alnetz-service-page, .alnetz-iot-page) > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25em;
  width: 4px;
  height: 1em;
  background: var(--alnetz-ui-accent);
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-detail, .af-link, .amh-detail, .alnetz-business-footer .alnetz-business-overview-cta) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--alnetz-ui-space-2);
  max-width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #7998b4;
  border-radius: 0;
  background: transparent;
  color: var(--alnetz-ui-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease, border-color .2s ease;
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-detail, .af-link, .amh-detail, .alnetz-business-footer .alnetz-business-overview-cta):hover {
  color: var(--alnetz-ui-blue);
  border-color: var(--alnetz-ui-blue);
  background: transparent;
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-text-link, .af-consult) {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  color: var(--alnetz-ui-muted);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-text-link, .af-consult):hover {
  color: var(--alnetz-ui-blue);
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) a:focus-visible {
  outline: 3px solid var(--alnetz-ui-accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-page-nav, .af-nav, .amh-nav) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-page-nav, .af-nav, .amh-nav) > a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

}

@media (max-width: 767px) {
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-page-nav, .af-nav, .amh-nav) {
  margin: 24px 0 32px;
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-page-nav, .af-nav, .amh-nav) > a {
  min-height: 48px;
  padding: 10px 12px;
  gap: 8px;
  font-size: 13px;
}

:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-heading, .af-heading, .amh-model-heading) h2,
:where(body.alnetz-business-detail) .works-shared-page .works-shared-page__content :is(.alnetz-system-page.alnetz-system-page--site, .alnetz-component-page, .alnetz-service-page, .alnetz-iot-page) > h2 {
  font-size: 23px;
}

}

@media (prefers-reduced-motion: reduce) {
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(:is(.alnetz-ui-page-nav, .af-nav, .amh-nav) > a, :is(.alnetz-ui-detail, .af-link, .amh-detail, .alnetz-business-footer .alnetz-business-overview-cta)) {
  transition: none;
}

}

/* Text may wrap at a phrase boundary while the arrow remains fixed. */
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) .alnetz-ui-nav-label { min-width: 0; color: inherit; line-height: inherit; word-break: keep-all; overflow-wrap: anywhere; }

/* Intro messages have their own hierarchy, without a section-heading bar. */
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-intro, .af-intro, .amh-intro) h2 { margin: 12px 0 24px; padding: 0; border: 0; color: var(--alnetz-ui-ink); font-size: 32px; line-height: 1.55; font-weight: 700; letter-spacing: normal; }
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-intro, .af-intro, .amh-intro) > p:not(:is(.af-eyebrow, .alnetz-ui-eyebrow)) { max-width: 860px; margin: 0; color: var(--alnetz-ui-muted); font-size: 16px; line-height: 1.9; }
@media (max-width: 767px) {
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-intro, .af-intro, .amh-intro) h2 { margin-bottom: 20px; font-size: clamp(20px, 5.6vw, 26px); }
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-intro, .af-intro, .amh-intro) > p:not(:is(.af-eyebrow, .alnetz-ui-eyebrow)) { font-size: 15px; }
}

/* Shared action buttons. Light/dark/outline are variations of the same shape. */
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-button, .works-shared-fv__button, .alnetz-business-footer .alnetz-business-contact-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: min(220px, 100%);
  max-width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: 1px solid var(--alnetz-ui-button-border, var(--alnetz-ui-ink));
  border-radius: 0;
  background: var(--alnetz-ui-button-bg, var(--alnetz-ui-ink));
  color: var(--alnetz-ui-button-text, #fff);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow: none;
  transform: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-button--inverse, .works-shared-fv__button--primary, .alnetz-business-contact-button) {
  --alnetz-ui-button-bg: #fff;
  --alnetz-ui-button-text: var(--alnetz-ui-ink);
  --alnetz-ui-button-border: #fff;
  --alnetz-ui-button-hover: #e8f1f9;
}
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-button--outline, .works-shared-fv__button--secondary) {
  --alnetz-ui-button-bg: transparent;
  --alnetz-ui-button-text: #fff;
  --alnetz-ui-button-border: rgba(255,255,255,.65);
  --alnetz-ui-button-hover: rgba(255,255,255,.12);
}
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-button, .works-shared-fv__button, .alnetz-business-footer .alnetz-business-contact-button):hover {
  background: var(--alnetz-ui-button-hover, #284052);
  color: var(--alnetz-ui-button-text, #fff);
  border-color: var(--alnetz-ui-button-border, #284052);
  box-shadow: none;
  transform: none;
}
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-button, .alnetz-business-contact-button) > span[aria-hidden="true"] {
  flex-shrink: 0;
  color: inherit;
}
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-detail--inverse, .alnetz-business-footer .alnetz-business-overview-cta) {
  color: #fff;
  border-color: rgba(255,255,255,.65);
}
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-detail--inverse, .alnetz-business-footer .alnetz-business-overview-cta):hover {
  color: #fff;
  border-color: #fff;
  background: transparent;
}
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-detail--inverse, .alnetz-business-footer .alnetz-business-overview-cta) > span {
  color: inherit;
}
@media (max-width: 767px) {
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-button, .works-shared-fv__button, .alnetz-business-footer .alnetz-business-contact-button) {
  min-width: 0;
  width: 100%;
}
}
@media (prefers-reduced-motion: reduce) {
:where(body.page-template-template-fullwidth, body.alnetz-business-detail) :is(.alnetz-ui, .alnetz-fields, .alnetz-model-hub, .works-shared-page) :is(.alnetz-ui-button, .works-shared-fv__button, .alnetz-business-footer .alnetz-business-contact-button) {
  transition: none;
}
}
