@import url("/valmar-palette.css");
.header-logo {
  background: url("/brand/valmar-registered-white.png") left center / contain no-repeat;
}

.site-header .brand,
.site-header .header-actions,
.site-header .header-icon {
  transition: color 110ms ease, text-shadow 110ms ease;
}

.site-header .brand[data-foreground="light"] .header-logo {
  background-image: url("/brand/valmar-registered-white.png");
}

.site-header .brand[data-foreground="ink"] .header-logo {
  background-image: url("/brand/valmar-registered-black.png");
}

.site-header .brand[data-foreground="light"],
.site-header .header-actions[data-foreground="light"],
.site-header .header-actions[data-foreground="light"] .header-icon {
  color: var(--brand-background);
}

.site-header .brand[data-foreground="ink"],
.site-header .header-actions[data-foreground="ink"],
.site-header .header-actions[data-foreground="ink"] .header-icon {
  color: var(--brand-text);
}

.site-header .header-actions[data-foreground="ink"] .header-icon {
  text-shadow: none;
}

.header-logo > * {
  display: none;
}

.footer-logo {
  background: url("/brand/valmar-registered-black.svg") left top / contain no-repeat;
}

.footer-logo > * {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header .brand,
  .site-header .header-actions,
  .site-header .header-icon {
    transition: none;
  }
}

:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { background: var(--brand-highlight); color: var(--brand-text); }

/* Keep submenu actions in the list flow, including on short viewports. */
.menu-panel {
  display: flex;
  flex-direction: column;
  padding-top: 112px;
  padding-bottom: 176px;
}

.menu-panel .menu-content {
  position: static;
  transform: none;
  width: 100%;
  min-height: 0;
  margin-block: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  margin-left: -6px;
}

.menu-secondary li:last-child {
  margin-bottom: 0;
}

/* Let editorial content determine its height so copy never overlaps photos. */
.living-well {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(40px, 7vw, 120px);
  row-gap: 32px;
  height: auto;
  min-height: 0;
  padding: clamp(64px, 7.5vw, 128px) var(--page-pad);
}

.living-well h2,
.living-well .living-copy,
.living-well .living-small,
.living-well .living-large {
  position: static;
  width: 100%;
  min-width: 0;
}

.living-well .living-small {
  grid-column: 1;
  grid-row: 1;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.living-well h2 {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(30px, 2.5vw, 42px);
  line-height: 1.12;
  text-wrap: balance;
}

.living-well h2 br { display: none; }

.living-well .living-copy {
  grid-column: 1;
  grid-row: 3;
  max-width: 52ch;
  line-height: 1.6;
}

.living-well .living-large {
  grid-column: 2;
  grid-row: 1 / 4;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

@media (max-width: 767px) {
  .living-well {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 28px;
    padding: 64px 24px;
  }

  .living-well .living-large {
    grid-column: 1;
    grid-row: 4;
    height: auto;
    aspect-ratio: 4 / 5;
    margin-top: 12px;
  }
}

/* Keep guide categories and their separators legible on the brown section. */
.news-section .news-card p,
.news-section .news-card p strong {
  color: var(--brand-background);
}

.menu-content .all-projects {
  position: static;
  display: table;
  margin-top: 36px;
  padding-block: 10px;
  min-height: 44px;
}
