/* =========================================================
   99 HEADER EMERGENCY CSS
   Purpose: Restore the rebuilt CarePlanCompass header immediately.
   This file is temporary and should be loaded AFTER all other CSS.
========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #172033;
  background: #f5f7fb;
}

.cpc-skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 12px;
  background: #244f9e;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.cpc-skip-link:focus {
  top: 12px;
}

.cpc-screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cpc-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f8fafc;
  border-bottom: 1px solid #d9e2f1;
  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.08);
}

.cpc-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.cpc-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #0f2b63;
  line-height: 1.05;
}

.cpc-brand__name {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.cpc-brand__tm {
  font-size: 0.7em;
  vertical-align: super;
}

.cpc-brand__tagline {
  margin-top: 4px;
  color: #4c5d76;
  font-size: 0.8rem;
  font-weight: 700;
}

.cpc-primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.cpc-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #172033;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.cpc-nav-link:hover,
.cpc-nav-link:focus,
.cpc-nav-link.is-active {
  background: #fff;
  color: #244f9e;
  box-shadow: 0 5px 16px rgba(20, 40, 80, 0.12);
}

.cpc-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cpc-header-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff;
  color: #172033;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(20, 40, 80, 0.1);
}

.cpc-header-cart__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #244f9e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.cpc-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #172033;
  box-shadow: 0 5px 16px rgba(20, 40, 80, 0.1);
  cursor: pointer;
}

.cpc-menu-toggle svg {
  width: 22px;
  height: 22px;
}

.cpc-header-search-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 18px 12px;
}

.cpc-global-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d9e2f1;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20, 40, 80, 0.08);
}

.cpc-global-search input[type="search"] {
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  padding: 0 8px 0 12px;
  font: inherit;
}

.cpc-global-search input[type="search"]::placeholder {
  color: #66758f;
}

.cpc-search-submit {
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #244f9e;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.cpc-mobile-drawer {
  border-top: 1px solid #d9e2f1;
  background: #fff;
}

.cpc-mobile-drawer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 18px 18px;
  display: grid;
  gap: 8px;
}

.cpc-mobile-drawer__inner a {
  display: block;
  padding: 11px 13px;
  border-radius: 16px;
  background: #f3f6fb;
  color: #172033;
  font-weight: 800;
  text-decoration: none;
}

.site-content {
  min-height: 60vh;
}

@media (max-width: 1100px) {
  .cpc-header__inner {
    grid-template-columns: auto auto;
  }

  .cpc-primary-nav {
    display: none;
  }

  .cpc-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .cpc-header-actions {
    justify-self: end;
  }
}

@media (max-width: 680px) {
  .cpc-header__inner,
  .cpc-header-search-wrap,
  .cpc-mobile-drawer__inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cpc-brand__name {
    font-size: 1rem;
  }

  .cpc-brand__tagline {
    font-size: 0.74rem;
  }

  .cpc-header-cart__label {
    display: none;
  }

  .cpc-global-search {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .cpc-search-submit {
    width: 100%;
  }
}