/* --- Debug Styles --- */

.debug {
  position: relative; /* Necessary for absolute positioning of child elements */
}

.debug * {
  position: relative; /* Allow for absolute positioning of pseudo-elements */
  box-sizing: border-box; /* Ensure padding and border are included in the width/height */
  outline: 1px solid rgba(255, 0, 0, 0.2); /* Subtle outline for all elements */
}

.debug *:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  border-left: 2px dotted rgba(255, 0, 0, 0.5);
  height: 100%;
}

.debug *:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  border-right: 2px dotted rgba(255, 0, 0, 0.5);
  height: 100%;
}

/* Color variations for different levels (optional) */
.debug > *::before,
.debug > *::after {
  border-color: rgba(255, 0, 0, 0.8);
}

.debug > * > *::before,
.debug > * > *::after {
  border-color: rgba(255, 0, 0, 0.6);
}

.debug > * > * > *::before,
.debug > * > * > *::after {
  border-color: rgba(255, 0, 0, 0.4);
}

/* TODO: componentise these classes into proper classes */
/* --- Header Styles --- */

.header {
  background: white;
  padding: 0 20px;
}

/* Added to override nccdrupal styles */
header a {
  text-decoration: none;
  text-decoration-thickness: 0;
  text-underline-offset: 0;
  line-height: 0;
  width: fit-content;
  font-size: 0;
}

header a:hover,
a:active,
a:focus {
  text-decoration-thickness: 0;
}

.header a.btn {
  margin: 0px;
}

.header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  padding: 15px;
  margin: 0 auto;
  gap: 0.75rem;
  border-bottom: none;
}

.header-logo {
  flex: 1;
}

.header-logo img {
  padding-top: 3px;
  height: 38px;
  width: auto;
}

@media (min-width: 64rem) {
  .header {
    padding: 0;
    margin-bottom: 0;
  }

  .header-logo img {
    height: 44px;
  }

  .header-container {
    border-bottom: 8px solid var(--primary-color);
    padding: 15px 0;
  }
}


/* --- Other Styles (Navigation Card) --- */

@media (min-width: 769px) {
  .navigation-card-container {
    display: grid;
    gap: 2rem;
    grid-template-rows: repeat(1, 1fr);
  }
}

.navigation-card-container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

.navigation-card {
  display: block;
  text-decoration: none;
  border-style: solid;
  border-width: 1px;
  border-radius: 12px;
  white-space: normal;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  padding-left: var(--space-5);
  padding-right: var(--space-5);
  text-wrap: wrap;
  width: 100%;
  height: 100%;
}

.navigation-card:hover,
.navigation-card:focus {
  border-color: var(--black);
  background-color: #edf0f7;
  transition: all 50ms ease-in-out;
}

.navigation-card h3 {
  color: var(--primary-80);
  text-decoration: underline;
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-5);
}
.navigation-card:hover h3,
.navigation-card:focus h3 {
  color: var(--black);
}
.navigation-card p {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5rem;
  text-decoration: none !important;
}

@media only screen and (max-width: 769px) {
  .navigation-card-container {
    grid-template-columns: 1fr;
  }
}
