@font-face {
  font-family: 'Franklin Gothic';
  src: url('../fonts/ITC Franklin Gothic Book.otf') format('opentype');
}
@font-face {
  font-family: 'Franklin Gothic';
  font-weight: 500;
  src: url('../fonts/ITC Franklin Gothic Medium.otf') format('opentype');
}

/* According to the brand guide colors have a base color and then from darkest to lightest: dark <base>, med light <base>, light <base>, background <base> */

:root {
  --flame: #f65c2c;

  --mustard: #e1b047;
  --med-light-mustard: #e8c475;
  --light-mustard: #f6e7c8;
  --background-neutral: #fcf7ed;

  --charcoal: #313131;
  --med-light-charcoal: #646464;
  --light-charcoal: #c1c1c1;

  --radish: #eb2b33;

  --plum: #37183e;

  --kale: #334d48;
  --light-kale: #b3b8b6;
  --dark-kale: #263a36;
}

#momentum-dashboard {
  color: var(--dark-kale);
  font-family: 'Franklin Gothic', Helvetica, sans-serif;
  overflow: hidden;
  padding: 24px 48px;
}
#momentum-dashboard h1 {
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}
#momentum-dashboard a {
  color: var(--flame);
}
#momentum-dashboard-intro {
  padding: 0 0 24px;
}
#momentum-dashboard-intro i {
  padding-right: 2px;
}
#momentum-dashboard-body-wrapper {
  overflow-x: auto;
  width: 100%;
}
#momentum-dashboard-header-wrapper {
  display: flex;
  gap: 12px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
}
#momentum-dashboard-columns-wrapper {
  display: flex;
  gap: 12px;
}
.momentum-dashboard-header {
  align-items: center;
  border: 1px solid transparent;
  display: flex;
  flex-grow: 1;
  flex-shrink: 0;
  margin: 0 0 12px 0;
  width: 160px;
  position: relative;
}
.momentum-dashboard-header-label-wrapper {
  align-items: center;
  align-self: stretch;
  display: flex;
  flex-grow: 1;
  gap: 8px;
  padding: 16px 4px 16px 12px;
  margin: 0 0 0 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.momentum-dashboard-header-label-wrapper h2 {
  display: inline;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}
.momentum-dashboard-tooltip-icon {
  cursor: pointer;
  margin: 0 0 0 2px;
}
.momentum-dashboard-tooltip-icon:hover svg {
  opacity: 0.5;
}
.momentum-dashboard-tooltip-icon svg {
  pointer-events: none;
  width: 18px;
}
.momentum-dashboard-tooltip-icon path {
  fill: none;
  stroke: var(--dark-kale);
}
.momentum-dashboard-column-wrapper {
  border-radius: 12px;
  font-size: 16px;
  flex-grow: 1;
  flex-shrink: 0;
  line-height: 22px;
  width: 160px;
}
.momentum-dashboard-data-wrapper {
  margin: 0 6px;
  position: relative;
  transition: all 0.3 ease-in-out;
}
.momentum-dashboard-datum {
  border-radius: 8px;
  margin: 6px 0;
  padding: 12px;
}
#momentum-dashboard-modal button,
#momentum-dashboard button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.momentum-dashboard-button {
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
}
.momentum-dashboard-button:hover {
  color: var(--med-light-charcoal) !important;
}
.momentum-dashboard-filter-button-wrapper {
  color: var(--flame) !important;
  display: flex;
  font-size: 0.9em;
  justify-content: flex-end;
  text-decoration: underline;
}
.momentum-dashboard-filter-button-wrapper:hover {
  color: var(--flame) !important;
}
.momentum-dashboard-see-all {
  display: flex;
  justify-content: center;
  padding: 12px;
  cursor: pointer;
  border: 1px solid var(--med-light-mustard) !important;
  margin: 12px;
  border-radius: 8px;
  background-color: var(--light-mustard) !important;
  font-weight: 500 !important;
  width: calc(100% - 24px);
}
.momentum-dashboard-see-all:hover {
  background-color: var(--med-light-mustard) !important;
}
#momentum-dashboard-modal {
  background-color: rgb(0, 0, 0, 0.2);
  display: none;
  font-family: 'Franklin Gothic', Helvetica, sans-serif;
  height: 100%;
  left: 0;
  overflow: auto;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}
#momentum-dashboard-modal-content {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  margin: 5% auto;
  padding: 20px;
  width: 70%;
}
#momentum-dashboard-modal-header {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-bottom: 1em;
  text-transform: uppercase;
}
#momentum-dashboard-close-wrapper {
  display: flex;
  justify-content: flex-end;
}
#momentum-dashboard-close {
  cursor: pointer;
  font-size: 28px;
  font-weight: bold;
}
#momentum-dashboard-research-header {
  font-weight: 500;
  margin: 24px 0 8px 0;
  text-transform: uppercase;
}
.momentum-dashboard-research-item {
  border-bottom: 1px solid var(--light-charcoal);
  padding: 0 0 16px 0;
  margin: 16px 0 0 0;
  word-break: break-word;
}
.momentum-dashboard-research-item-header {
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 2px;
}
#momentum-dashboard-modal a {
  color: var(--flame);
}
.momentum-dashboard-research-outcomes-wrapper {
  margin: 8px 0 0;
}
.momentum-dashboard-research-outcomes {
  font-weight: 500;
}
#momentum-dashboard-footer {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 8px;
  justify-content: center;
  margin: 36px 0 24px 0;
}

#momentum-dashboard-footer img {
  display: block;
  height: 14px;
  transform: translateX(-2px);
}

.momentum-dashboard-tooltip {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  border: 0.5px solid var(--light-charcoal);
  font-size: 13px;
  padding: 6px;
  max-width: 200px;
}

/* Filter button states */
.momentum-dashboard-filter-button {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

/* PBC Component filter buttons */
.momentum-dashboard-filter-button.pbc-economic-vitality {
  background-color: #7B8FC520;
  border-color: #7B8FC560;
  color: #7B8FC5;
}

.momentum-dashboard-filter-button.pbc-economic-vitality:hover {
  background-color: #7B8FC540;
}

.momentum-dashboard-filter-button.pbc-economic-vitality.selected {
  background-color: #7B8FC5;
  border-color: #7B8FC5;
  color: #333;
  border-width: 2px;
}

.momentum-dashboard-filter-button.pbc-education {
  background-color: #7ED7A220;
  border-color: #7ED7A260;
  color: #7ED7A2;
}

.momentum-dashboard-filter-button.pbc-education:hover {
  background-color: #7ED7A240;
}

.momentum-dashboard-filter-button.pbc-education.selected {
  background-color: #7ED7A2;
  border-color: #7ED7A2;
  color: #333;
  border-width: 2px;
}

.momentum-dashboard-filter-button.pbc-community-vibrancy {
  background-color: #E5B8A020;
  border-color: #E5B8A060;
  color: #E5B8A0;
}

.momentum-dashboard-filter-button.pbc-community-vibrancy:hover {
  background-color: #E5B8A040;
}

.momentum-dashboard-filter-button.pbc-community-vibrancy.selected {
  background-color: #E5B8A0;
  border-color: #E5B8A0;
  color: #333;
  border-width: 2px;
}

/* Partner filter buttons - default state */
.momentum-dashboard-filter-button.partner-button {
  background-color: #E1B04720;
  border-color: #E1B04760;
  color: #E1B047;
}

.momentum-dashboard-filter-button.partner-button:hover {
  background-color: #E1B04740;
}

.momentum-dashboard-filter-button.partner-button.selected {
  background-color: #E1B04760;
  border-color: #E1B047;
  border-width: 2px;
}

/* Partner button PBC color combinations */
.momentum-dashboard-filter-button.partner-button.pbc-economic-vitality {
  background-color: #7B8FC5;
  border-color: #7B8FC5;
  color: #333;
  border-width: 2px;
}

.momentum-dashboard-filter-button.partner-button.pbc-education {
  background-color: #7ED7A2;
  border-color: #7ED7A2;
  color: #333;
  border-width: 2px;
}

.momentum-dashboard-filter-button.partner-button.pbc-community-vibrancy {
  background-color: #E5B8A0;
  border-color: #E5B8A0;
  color: #333;
  border-width: 2px;
}

/* Multiple PBC Component gradients for partner buttons */
.momentum-dashboard-filter-button.partner-button.pbc-economic-vitality.pbc-education {
  background: linear-gradient(90deg, #7B8FC5 50%, #7ED7A2 50%);
  border-color: #7B8FC5;
}

.momentum-dashboard-filter-button.partner-button.pbc-economic-vitality.pbc-community-vibrancy {
  background: linear-gradient(90deg, #7B8FC5 50%, #E5B8A0 50%);
  border-color: #7B8FC5;
}

.momentum-dashboard-filter-button.partner-button.pbc-education.pbc-community-vibrancy {
  background: linear-gradient(90deg, #7ED7A2 50%, #E5B8A0 50%);
  border-color: #7ED7A2;
}

@media screen and (max-width: 1280px) {
  #momentum-dashboard {
    padding: 48px 24px;
  }
  #momentum-dashboard-intro {
    padding: 32px 0 24px 0;
  }
  .momentum-dashboard-header-label-wrapper h2 {
    font-size: 14px;
  }
  .momentum-dashboard-column-wrapper {
    font-size: 15px;
  }
  .momentum-dashboard-datum {
    margin: 4px 0;
    padding: 8px;
  }
}
