@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');
}

/* UPS font (used only when a page opts-in via .theme-adpipe-ups) */
@font-face {
  font-family: 'UPSBerlingskeSans';
  src: url('../fonts/UPSBerlingskeSans-Bd.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'UPSBerlingskeSans';
  src: url('../fonts/UPSBerlingskeSans-Bd.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 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> */

/* Hide print buttons - uncomment the line below to show them again */
#momentum-dashboard-print-container { display: none !important; }

/* Ensure filtered items are hidden */
.momentum-dashboard-data-wrapper.filtered-out {
  display: none !important;
}

:root {
  --flame: #f65c2c;

  --mustard: #e1b047;
  --med-light-mustard: #e8c475;
  --light-mustard: #dcf0ec;
  --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;
}

/* Adpipe-ups: opt-in UPS font */
.theme-adpipe-ups #momentum-dashboard {
  font-family: 'UPSBerlingskeSans', 'Franklin Gothic', Helvetica, Arial, sans-serif;
}

#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;
}

/* Header end-caps must follow the current visual order (columns can be dragged). */
.momentum-dashboard-header.is-first .momentum-dashboard-header-label-wrapper {
  margin-left: 0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.momentum-dashboard-header.is-last .momentum-dashboard-header-label-wrapper {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  padding-right: 12px;
}
.momentum-dashboard-header.is-first .momentum-dashboard-header-arrow-left,
.momentum-dashboard-header.is-last .momentum-dashboard-header-arrow-right {
  display: none !important;
}
.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);
}

/* Outcome metric tooltip button (UPS chart icon) — keep header tooltips unchanged */
.momentum-dashboard-tooltip-icon[data-tooltip-icon="chart"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px; /* more breathing room than header tooltip icon */
  width: 22px;
  height: 22px;
  padding: 1px 3px;
  box-sizing: border-box;
  border: 1px solid currentColor; /* looks like a hoverable button */
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.65);
  transition: background 120ms ease, border-color 120ms ease, opacity 120ms ease;
}
.momentum-dashboard-tooltip-icon[data-tooltip-icon="chart"] svg {
  width: 14px; /* smaller icon inside the button */
  opacity: 0.95;
  display: inline;
  margin-bottom: -2px;
}
.momentum-dashboard-tooltip-icon[data-tooltip-icon="chart"]:hover {
  background: rgba(255, 255, 255, 0.9);
}
.momentum-dashboard-tooltip-icon[data-tooltip-icon="chart"] path {
  stroke: currentColor; /* follow the wrapper's color */
}
.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;
}

/* Outcome rows that have an Indicators/Metric modal available ("Label | ...") */
.momentum-dashboard-has-metric .momentum-dashboard-datum {
  /* Inner border that won't be overwritten by wrapper separators */
  box-shadow: none; /* set to inset border if you want the special-box outline */
  /* Example:
     box-shadow: inset 0 0 0 1.5px #E3A41D;
  */
}

/* Breadcrumb in the Indicators modal (Header > Box label) */
.momentum-dashboard-modal-breadcrumbs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.momentum-dashboard-modal-breadcrumb {
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #674f1b;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hover hint for metric boxes (toggle via #momentum-dashboard.metric-hints-enabled on the page) */
#momentum-dashboard.metric-hints-enabled .momentum-dashboard-has-metric .momentum-dashboard-datum {
  position: relative;
}
#momentum-dashboard.metric-hints-enabled .momentum-dashboard-has-metric .momentum-dashboard-datum::after {
  content: 'How will we measure this?';
  position: absolute;
  top: -8px;
  left: 10px;
  transform: translateY(-100%);
  background: #ffffff;
  border: 1px solid rgba(64, 18, 18, 0.75);
  color: #111827;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.18);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 120ms ease, transform 120ms ease;
  transition-delay: 0ms; /* hide immediately on mouseleave */
  z-index: 5;
}
#momentum-dashboard.metric-hints-enabled .momentum-dashboard-has-metric .momentum-dashboard-datum:hover::after {
  opacity: 1;
  transform: translateY(-100%) translateY(-2px);
  transition-delay: 220ms; /* small delay so it doesn't flash on quick hovers */
}
.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 {
  text-align: left;
  line-height: 120% !important;
}
.momentum-dashboard-button:hover {
  color: var(--med-light-charcoal) !important;
}
.momentum-dashboard-filter-button-wrapper {
  display: flex;
  font-size: 0.9em;
  justify-content: flex-end;
}

.momentum-dashboard-filter-button-wrapper button {
  border: 1px solid #333 !important;
  margin: 6px 0px;
  padding: 0px 6px;
}

.momentum-dashboard-layout-controls input[type="checkbox"] + span {
  text-decoration: none;
}
.momentum-dashboard-layout-controls input[type="checkbox"]:not(:checked) + span {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Drag-to-reorder chips (used by experiment dashboards) */
.draggableContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}
.draggableDiv {
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid #111;
  background: #f3f4f6;
  font-size: 12px;
  line-height: 1;
  user-select: none;
  cursor: grab;
  transform-origin: center;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.draggableDiv.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}
.draggableDiv.animatedState {
  transform: rotate(2deg) translate(2px, 1px);
}
.draggableDiv.is-hidden {
  text-decoration: line-through;
  opacity: 0.55;
}

.momentum-dashboard-see-all {
  display: flex;
  justify-content: center;
  padding: 12px;
  cursor: pointer;
  border: 1px solid var(--charcoal) !important;
  margin: 12px;
  border-radius: 8px;
  background-color: var(--background-neutral) !important;
  font-weight: 500 !important;
  width: calc(100% - 24px);
}
.momentum-dashboard-see-all:hover {
  background-color: var(--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: 10px;
  text-transform: uppercase;
}
#momentum-dashboard-close-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* Close button (icon-style) */
.momentum-dashboard-modal-close {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  margin: -4px -8px -4px 0;
  line-height: 1;
  font-size: 18px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.75);
}
.momentum-dashboard-modal-close:hover {
  color: rgba(17, 24, 39, 0.95);
  background: rgba(17, 24, 39, 0.06);
  border-radius: 8px;
}

/* When breadcrumb lives in the close wrapper row */
#momentum-dashboard-close-wrapper .momentum-dashboard-modal-breadcrumbs {
  flex: 1;
  min-width: 0;
}
#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: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: #111827;
  font-size: 14px;
  padding: 8px 10px;
  max-width: 240px;
  z-index: 20000; /* stay above modals/overlays across all projects */
}

/* 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;
  }
}

/* ========================================
   MODAL STYLES
   ======================================== */

.momentum-dashboard-modal-title {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
  padding: 5px 10px;
  color: #1f2937;
  border-bottom: 3px solid #3b82f6;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.momentum-dashboard-activities-section {
  margin: 10px 0;
  padding: 0;
}

.momentum-dashboard-activities-header {
  font-size: 0.9em; /* Smaller text as requested */
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.momentum-dashboard-activities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.momentum-dashboard-activity-item {
  padding: 10px 5px 7px 5px;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  transition: all 0.2s ease;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

.momentum-dashboard-activity-item.even {
  background: #ffffff;
}

.momentum-dashboard-activity-item.odd {
  background: #f9fafb;
}

.momentum-dashboard-activity-item:last-child {
  border-bottom: none;
}

.momentum-dashboard-activity-item:hover {
  background: transparent;
  transform: none;
}

.momentum-dashboard-activity-bullet {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
}

.momentum-dashboard-activity-item.even .momentum-dashboard-activity-bullet {
  box-shadow: 0 0 0 3px #ffffff;
}

.momentum-dashboard-activity-item.odd .momentum-dashboard-activity-bullet {
  box-shadow: 0 0 0 3px #f9fafb;
}

.momentum-dashboard-no-activities {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-style: italic;
  background: #f9fafb;
  border-radius: 8px;
  margin: 20px 0;
}

/* ========================================
   NDG-SPECIFIC MODAL STYLES
   ======================================== */

.momentum-dashboard-description-section {
  margin-bottom: 20px;
}

.momentum-dashboard-section-header {
  font-size: 0.9em;
  font-weight: 600;
  color: white;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  text-align: center;
}

.momentum-dashboard-section-content {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  color: #000000;
  line-height: 1.6;
}

.momentum-dashboard-ndg-examples-section {
  margin-bottom: 20px;
}

.momentum-dashboard-ndg-examples-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.momentum-dashboard-ndg-example-item {
  padding: 10px 5px 10px 10px;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  transition: all 0.2s ease;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
}

.momentum-dashboard-ndg-example-item.even {
  background: #ffffff;
}

.momentum-dashboard-ndg-example-item.odd {
  background: #f9fafb;
}

.momentum-dashboard-ndg-example-item:last-child {
  border-bottom: none;
}

.momentum-dashboard-ndg-example-item:hover {
  background: #eff6ff;
  transform: translateX(5px);
}

.momentum-dashboard-ndg-example-bullet {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
}

.momentum-dashboard-ndg-example-item.even .momentum-dashboard-ndg-example-bullet {
  box-shadow: 0 0 0 3px #ffffff;
}

.momentum-dashboard-ndg-example-item.odd .momentum-dashboard-ndg-example-bullet {
  box-shadow: 0 0 0 3px #f9fafb;
}
