/* Checkmate College shared public header */

.cm-site-header,
.cm-site-header * {
  box-sizing: border-box;
}

.cm-site-header {
  position: relative;
  z-index: 30;
  width: 100%;
  background: #faf3e8;
  color: #063f2f;
  font-family: Arial, Helvetica, sans-serif;
}

.cm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1160px;
  min-height: 86px;
  padding: 12px 18px;
  margin: 0 auto;
}

.cm-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #063f2f !important;
  text-decoration: none !important;
}

.cm-header-brand img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.cm-header-wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #063f2f;
}

.cm-header-wordmark strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  color: #063f2f;
}

.cm-header-wordmark small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #426658;
}

.cm-header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.cm-header-nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d6ded7;
  border-radius: 9px;
  background: #fffaf5;
  color: #063f2f !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  text-shadow: none !important;
}

.cm-header-nav > a:hover,
.cm-header-nav > a:focus-visible {
  background: #ead19a;
  border-color: #b18d42;
}

.cm-header-nav > a.cm-header-meet {
  background: #063f2f;
  border-color: #063f2f;
  color: #fff !important;
}

.cm-header-access {
  width: 100%;
  background: #06372b;
  border-bottom: 1px solid #e7ca85;
}

.cm-header-access-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1160px;
  padding: 9px 18px;
  margin: 0 auto;
}

.cm-header-access-inner > span {
  margin-right: auto;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}

.cm-header-access-inner > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 9px 16px;
  border: 1px solid #ead7a8;
  border-radius: 9px;
  background: #fffaf0;
  color: #063f2f !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  text-shadow: none !important;
}

.cm-header-access-inner > a.cm-header-join {
  background: #e7ca85;
  border-color: #e7ca85;
}

.cm-header-access-inner > a:hover,
.cm-header-access-inner > a:focus-visible {
  outline: 2px solid #e7ca85;
  outline-offset: 2px;
}

.cm-header-toggle {
  display: none;
}

@media (max-width: 820px) {
  .cm-header-inner {
    padding: 10px 13px;
  }

  .cm-header-brand {
    flex: 1 1 170px;
  }

  .cm-header-brand img {
    width: 48px;
    height: 48px;
  }

  .cm-header-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d6dfd8;
    border-radius: 9px;
    background: #fffaf0;
    color: #063f2f;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
  }

  .cm-header-nav {
    display: none;
  }

  .cm-header-nav.open {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: #faf4e9;
    border: 1px solid #dce2da;
    border-radius: 12px;
  }

  .cm-header-nav.open > a {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 12px 14px;
    background: white;
    text-align: left;
  }

  .cm-header-nav.open > a:not(.cm-header-meet)::after {
    content: "\2192";
    margin-left: 12px;
  }

  .cm-header-nav.open > a.cm-header-meet {
    background: #063f2f;
    color: #fff !important;
  }

  .cm-header-access-inner > span {
    display: none;
  }

  .cm-header-access-inner > a {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 7px;
    font-size: 11px;
    white-space: nowrap;
  }

  .cm-header-access-inner > a.cm-header-join {
    flex: 1 1 100%;
  }
}

@media (max-width: 360px) {
  .cm-header-brand {
    flex-basis: 100%;
  }

  .cm-header-toggle {
    margin-right: auto;
  }
}
/* CM122: match the approved single-row desktop navigation */
@media (min-width: 1100px) {
  .cm-header-inner {
    max-width: 1360px;
    flex-wrap: nowrap;
    gap: 14px;
  }

  .cm-header-brand {
    flex: 0 0 auto;
  }

  .cm-header-brand img {
    width: 52px;
    height: 52px;
  }

  .cm-header-wordmark strong {
    font-size: 14px;
  }

  .cm-header-nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .cm-header-nav > a {
    white-space: nowrap;
    padding: 10px 11px;
    font-size: 12px;
  }

  .cm-header-access-inner {
    max-width: 1360px;
  }
}

/* CM122: tighten mobile header spacing */
@media (max-width: 820px) {
  .cm-header-inner {
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .cm-header-brand {
    gap: 9px;
  }

  .cm-header-access-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
