:root {
  --primary-color: #ADADAD;
  --primary-color-darkened: #888888;
  --primary-color-lighter: #cecece;

  --black: #333333;
  --offwhite: #F7F6F5;
  --white: #ffffff;
  --gray: #C4C4C4;
  --light-gray: #ededed;

  --header-font-family:
    "urw-din-semi-condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --body-font-family:
    "Figtree", sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --accent-font-family:
    "urw-din-semi-condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.aag-layout {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

/**
 * Admu2021 theme `.navbar` lives outside `.aag-layout` (it's a fixed,
 * site-wide top bar). Ref `navigation-top.css` shows a subtle white hairline
 * on the bottom edge (`border-bottom: 1px solid rgba(255,255,255,0.3)`).
 * Scope the same rule to AAG pages only via `:has(.aag-layout--full-page)`
 * so it doesn't bleed onto non-AAG routes. Suppressed when the navbar is in
 * its solid/active scrolled state (the bar already has a colored background).
 */
body:has(.aag-layout--full-page) .navbar:not(.active):not(.navbar-solid-bg) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/*
 * Match the reference's off-white page background.
 * The admu2026 theme defaults to white body background. On AAG full-page
 * layouts the hero section ends flush with the off-white content container,
 * but any rendering gap (whitespace text nodes, sub-pixel rounding) would
 * show as a white strip if the body stays white. Setting body to off-white
 * here is invisible in practice but eliminates the white-strip artefact.
 */
body:has(.aag-layout--full-page) {
  background-color: var(--offwhite);
}

.aag-layout {
  font-size: 16px;
  background-color: var(--offwhite);
}

.aag-layout p, .aag-layout li {
  color: var(--black);
  font-family: var(--body-font-family);
  line-height: 1.45;
}

.aag-layout img {
  max-width: 100%;
}

.aag-layout h1, .aag-layout h2, .aag-layout h3, .aag-layout h4, .aag-layout h5 {
  color: var(--black);
  font-family: var(--header-font-family);
  font-weight: 300;
  line-height: 1;
}

.aag-layout .button, .aag-layout .freeform-button-submit, .aag-layout .freeform-button-back {
  display: inline-block;
  font-size: 16px;
  font-family: var(--body-font-family);
  text-transform: uppercase;
  padding: 10px 50px;
  text-align: center;
  border-radius: 5px;
  margin-top: 1rem;
  border: 1px solid var(--primary-color);
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

@media (max-width: 320px) {
  .aag-layout .button, .aag-layout .freeform-button-submit, .aag-layout .freeform-button-back {
    font-size: 16px;
  }
}

.button--primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.aag-layout .button--primary:hover {
  background-color: var(--primary-color-darkened);
  transition: background-color 0.3s ease-in-out;
}

.aag-layout .button--full, .aag-layout .freeform-button-submit {
  background-color: var(--primary-color);
  color: var(--white);
  transition:
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

.aag-layout .button--full:hover, .aag-layout .freeform-button-submit:hover {
  background-color: var(--primary-color-darkened);
  color: var(--white);
}

.aag-layout .button--outline, .aag-layout .freeform-button-back {
  border: 1px solid var(--primary-color);
  background-color: inherit;
  background-image: inherit;
  color: var(--primary-color);
  transition:
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

.aag-layout .button--outline:hover {
  background-color: var(--primary-color);
  color: var(--offwhite);
}

.aag-layout .button--outline-white {
  border: 1px solid var(--white);
  background-color: inherit;
  color: var(--white);
}

.aag-layout .button--outline-white:hover {
  background-color: var(--white);
  color: var(--primary-color-darkened);
}

.aag-layout .button--white {
  border: 1px solid var(--white);
  background-color: var(--white);
  background-image: inherit;
  color: var(--black);
  transition:
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

.aag-layout .button--white:hover {
  background-color: var(--black);
  color: var(--white);
}

.aag-layout .button--full-width {
  width: 100%;
  display: block;
}

.aag-layout .button[disabled] {
  opacity: 0.5;
}

.aag-layout .app {
  position: relative;
  min-height: 100vh;
}

.aag-layout .app__container {
  position: relative;
}

.aag-layout .app__hero {
  position: relative;
}

.aag-layout .app__hero--fullscreen {
  min-height: 100vh;
}

.aag-layout .app__hero--fullscreen + .app__main {
  margin-top: 0;
}

@media (min-width: 900px) {
  .aag-layout .app__hero--fullscreen + .app__main {
    margin-top: 0;
  }
}

.aag-layout .app__main {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 899px) {
  .aag-layout .app__main {
    padding-top: 54px;
  }
}

/*
 * NOTE: the aag-base reference port used to set margin-left / width /
 * margin-top / z-index / overflow on .app__main here, which assumed a
 * fixed sidebar sitting on the left. The module's Layout Builder layouts
 * (aag-full-page, aag-detail-chrome) now handle column width + sticky
 * positioning via .app__body, so those rules are intentionally removed.
 * Do not reintroduce them in this file — keep layout-specific rules
 * inside the corresponding css/layouts/aag-*.css.
 */

.app__main-container {
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .aag-layout .app__main-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    /* padding: 0 2rem; */
  }
}

@media (min-width: 900px) {
  .aag-layout .app__main-container {
    max-width: 950px;
  }
}

@media (min-width: 1200px) {
  .aag-layout .app__main-container {
    max-width: none;
  }
}

@media (min-width: 1800px) {
  .aag-layout .app__main-container {
    max-width: 1100px;
  }
}
