/**
 * @file
 * eConsultant adjustments that Basecoat's layered stylesheet cannot win.
 *
 * Loaded after build/main.min.css. Brand colour is the only palette override.
 * Vega supplies the neutral tokens, including --border.
 */

:root {
  --primary: #006fbf;
  --primary-foreground: #ffffff;
  --accent: #ff9600;
  --accent-foreground: #1b1b1b;
}

/* Header chrome stays at full contrast. Body copy inherits muted-foreground. */
.eco-page > header {
  color: var(--foreground);
}

.eco-page {
  overflow-x: clip;
}

.eco-wrap {
  width: min(1320px, calc(100% - 2rem));
  margin-inline: auto;
}

.eco-page .btn {
  min-height: 2.75rem;
}

.eco-icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
}

.eco-page .site-logo img {
  width: 181px;
  height: 26px;
  max-width: 62vw;
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus,
.visually-hidden.focusable:focus-within {
  position: static !important;
  overflow: visible;
  clip: auto;
  width: auto;
  height: auto;
}

main a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Browser dialog rules are unlayered, so they beat Basecoat's .drawer layer.
   These pin the left sheet. Basecoat's drawer.js is not loaded. */
dialog.drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: inherit;
}

dialog.drawer::backdrop {
  background: rgb(0 0 0 / 0.5);
}

dialog.drawer > .eco-drawer-panel {
  position: fixed;
  z-index: 50;
  inset-block: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(20rem, 75vw);
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  border-inline-end: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

dialog.drawer > .eco-drawer-panel > header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

dialog.drawer > .eco-drawer-panel > section {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 1.5rem;
}

.eco-desktop-util .menu {
  justify-content: flex-end;
  gap: 0.15rem;
  margin: 0;
}

.eco-desktop-util a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.6rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

.eco-desktop-util a:hover {
  color: var(--foreground);
  text-decoration: none;
}

.eco-desktop-nav .menu--level-1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eco-desktop-nav .menu--level-1 > .menu__item {
  position: relative;
}

.eco-desktop-nav .menu--level-1 > .menu__item > .menu__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--radius);
}

.eco-desktop-nav .menu--level-1 > .menu__item > .menu__link:hover,
.eco-desktop-nav .menu__item--active-trail > .menu__link {
  background: var(--muted);
}

.eco-desktop-nav .menu--level-2 {
  display: none;
  position: absolute;
  z-index: 30;
  left: 0;
  top: 100%;
  min-width: 14rem;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  flex-direction: column;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.eco-desktop-nav .menu__item--has-children:hover > .menu--level-2,
.eco-desktop-nav .menu__item--has-children:focus-within > .menu--level-2 {
  display: flex;
}

.eco-desktop-nav .menu--level-2 a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
  color: var(--foreground);
  font-size: 0.875rem;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  border-radius: calc(var(--radius) - 2px);
}

.eco-desktop-nav .menu--level-2 a:hover {
  background: var(--muted);
}

.eco-footer a:not(.btn) {
  color: inherit;
  text-decoration: none;
}

.eco-footer a:not(.btn):hover {
  text-decoration: underline;
}

.eco-footer a:focus-visible {
  outline-color: var(--ring);
}

.eco-footer-columns {
  display: grid;
  gap: 2rem 1.75rem;
}

.eco-footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eco-footer-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 1.5rem;
  align-items: start;
}

.eco-footer-link {
  display: inline-flex;
  align-items: flex-start;
  padding-block: 0.45rem;
  font-size: 1rem;
  line-height: 1.4;
  color: inherit;
  text-decoration: none;
}

.eco-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: 100%;
}

.eco-footer-legal p {
  margin: 0;
}

.eco-footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.eco-grid > article {
  margin: 0;
}

.eco-page img {
  max-width: 100%;
}

.eco-clients {
  margin-top: 2rem;
  overflow-x: auto;
}

.eco-clients img {
  display: block;
  width: 953px;
  max-width: none;
  height: auto;
}

.eco-prose img {
  max-width: 100%;
  height: auto;
}

.eco-prose table {
  width: 100%;
  border-collapse: collapse;
}

.eco-prose td {
  vertical-align: top;
  padding: 0.25rem 0.5rem;
}

.eco-kicker {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--foreground);
}

.eco-meta {
  margin: 0 0 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.eco-faq details {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem 1rem;
}

.eco-faq summary {
  cursor: pointer;
  font-weight: 500;
}

.eco-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  margin: 0 0 2rem;
}

.eco-quotes > article {
  margin: 0;
}

.eco-quote-card {
  padding: 1.5rem 1.65rem;
}

.eco-quote {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.eco-quote p {
  margin: 0;
}

.eco-quote__who {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-size: 1rem;
  line-height: 1.45;
}

.eco-avatar {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 999px;
}

.view-current-projects .view-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin: 0 0 2.5rem;
}

.view-current-projects .eco-project {
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--card);
  /* The minified Basecoat ring is an invalid shadow, so it never paints. */
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
}

.view-current-projects .eco-project > .views-field {
  flex: 1 1 auto;
}

.view-current-projects .eco-project .views-field,
.view-current-projects .eco-project .field-content,
.view-current-projects .eco-project a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.view-current-projects .eco-project img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.view-solutions .view-content,
.view-partners .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

.eco-webform {
  width: min(40rem, 100%);
  margin-inline: auto;
  padding: 1.5rem;
  gap: 1rem;
}

.eco-webform .form-actions {
  margin-top: 0.5rem;
}

.eco-webform--get-in-touch {
  --foreground: #ffffff;
  --destructive: #ffb4ab;
  background: #1b1b1b;
  color: #fff;
}

.eco-webform--get-in-touch label,
.eco-webform--get-in-touch legend {
  color: var(--background);
}

.eco-webform--get-in-touch .field > input,
.eco-webform--get-in-touch .field > textarea,
.eco-webform--get-in-touch .field > select {
  background: var(--background);
  color: var(--foreground);
}

.form-item--error-message {
  color: var(--destructive);
  font-size: 0.875rem;
}

aside .menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

aside h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 767px) {
  .eco-desktop-nav .menu--level-1 {
    flex-direction: column;
    align-items: stretch;
  }

  .eco-desktop-nav .menu--level-2 {
    position: static;
    display: flex;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding-inline-start: 0.75rem;
  }
}

@media (min-width: 768px) {
  .eco-clients img {
    width: 100%;
    max-width: 100%;
  }

  .view-current-projects .view-content {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .eco-footer-columns {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr);
  }
}

/* Home sections. The outer bands use py-16 to py-24 from the page template.
   These gaps separate the node, the project row, and the service cards. */
.eco-front-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.eco-front .region-content > * + *,
.eco-front .region-content-below > * + * {
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .eco-front-stack {
    gap: 4rem;
  }

  .eco-front .region-content > * + *,
  .eco-front .region-content-below > * + * {
    margin-top: 4rem;
  }
}

@media (min-width: 1024px) {
  .eco-front-stack {
    gap: 5rem;
  }

  .eco-front .region-content > * + *,
  .eco-front .region-content-below > * + * {
    margin-top: 5rem;
  }
}

/* Live mobile fixes, 3 Nov 2026 (Willem t220u/t221u). */

/* Sidebar menus (Learn More About, Quick Links, Sector Menu). */
.region-sidebar > nav + nav,
.region-sidebar > * + * {
  margin-top: 2rem;
}
.region-sidebar h2 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--foreground);
}
.region-sidebar ul.menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.region-sidebar ul.menu a {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  text-decoration: none;
}
.region-sidebar ul.menu a:hover,
.region-sidebar ul.menu a:focus-visible {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 767.98px) {
  aside .region-sidebar {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }
}

/* Envision > Execute > Evaluate > Enhance: one column on phones. */
@media (max-width: 767.98px) {
  .eco-envision__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }
  .eco-envision__title img {
    transform: rotate(90deg);
  }
}

/* Legacy D7 body markup on phones: inline float/width columns stack (Willem t222u). */
@media (max-width: 767.98px) {
  .eco-prose div[style*="float"],
  .eco-prose div[style*="width"],
  .eco-prose div[style*="inline-block"],
  .eco-prose table,
  .eco-prose td[style*="width"] {
    float: none !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .eco-prose table tr,
  .eco-prose table tbody {
    display: block !important;
  }
  .eco-prose table td {
    display: block !important;
    width: auto !important;
  }
  .eco-prose div[style*="float"] + div[style*="float"] {
    margin-top: 1.5rem;
  }
  .eco-prose img {
    max-width: 100%;
    height: auto;
  }
  /* 4E chevrons: sit after the heading word, pointing down. */
  .eco-prose h3 img[src*="arow"] {
    float: none !important;
    display: inline-block;
    margin-inline-start: 0.5rem;
    vertical-align: middle;
    transform: rotate(90deg);
  }
}
