.alert-debug {
  background-color: #fff;
  border-color: #d6e9c6;
  color: #000
}

.alert-error {
  background-color: #f2dede;
  border-color: #eed3d7;
  color: #b94a48
}

.bg-dark {
  background: #25384a !important
}

.cost-label {
  color: #39af7e
}

.energy-savings-label {
  color: #39af7e
}

.electricity-label {
  color: #1f77b4
}

.fossil-fuel-label {
  color: #c35f19
}

.ghg-label {
  color: #b79f03
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 600
}

h1 {
  text-transform: none;
  font-size: 1.6em !important;
  padding-top: 30px
}

h2 {
  font-size: 1.4em !important
}

.std-button {
  min-width: 200px;
  margin-right: 1rem
}

.sm-button {
  min-width: 120px;
  margin-right: 1rem
}

.action-buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px dotted #ccc;
  align-items: center;
  background: #fff
}

.action-buttons .btn {
  min-width: 120px
}

.action-button {
  min-width: 120px
}

.tooltip {
  opacity: 1 !important
}

.tooltip-inner {
  text-align: left;
  color: #000 !important;
  background-color: #fff9e0 !important;
  border-radius: .4rem;
  border: 1px solid #e0decf !important;
  padding: .7rem;
  box-shadow: 3px 3px 10px #00000011;
  max-width: 17rem
}

.tooltip.bs-tooltip-top .arrow:before {
  border-top-color: #e0decf !important
}

.tooltip.bs-tooltip-bottom .arrow:before {
  border-bottom-color: #e0decf !important
}

.tooltip.bs-tooltip-left .arrow:before {
  border-left-color: #e0decf !important
}

.tooltip.bs-tooltip-right .arrow:before {
  border-right-color: #e0decf !important
}

.toast-body {
  position: relative
}

.toast-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: .25rem .5rem;
  background-color: transparent;
  border: none;
  color: inherit;
  opacity: 1
}

.toast-close:hover {
  opacity: .8
}

body {
  padding-top: 115px
}

.site-header {
  backdrop-filter: saturate(180%) blur(20px)
}

.site-header #unit_switch_form {
  display: flex;
  flex-direction: row;
  color: #fff;
  align-items: center
}

.site-header #unit_switch_form .toggle-group .btn-secondary {
  background-color: #4c8e40 !important
}

#sidebarMenu .nav-item a.active {
  position: relative
}

#sidebarMenu {
  border-right: 1px solid #e6e6e6
}

#sidebarMenu .nav {
  border-bottom: 1px solid #e9e9e9
}

#sidebarMenu .nav-item a {
  color: #000;
  border: 0
}

#sidebarMenu .nav-item a.active {
  color: #fff
}

#sidebarMenu .nav-item:hover, #sidebarMenu .nav-item:focus {
  color: #eee;
  background-color: rgba(0, 0, 0, .2)
}

.info-bar-wrapper {
  border-bottom: 1px dotted #888
}

.info-bar-wrapper .info-bar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: .5rem;
  min-height: 3.5em;
  display: flex;
  flex-direction: row;
  align-items: center
}

.info-bar-wrapper .info-bar .page-title {
  width: 100%;
  max-width: 600px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.info-bar-wrapper .info-bar .breadcrumb-item {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden
}

footer {
  padding-top: 1rem;
  width: 100%;
  background: #e9e9e9;
  background: linear-gradient(-45deg, #fcf9f9, #faf8f8);
  border-top: 1px solid rgba(0, 0, 125, .2)
}

footer .show-footer-btn {
  padding: 1rem
}

footer .version-box {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: .5rem 0;
  font-size: .9rem;
  background: #c5c8ca;
  color: #fff
}

footer .version-box .version {
  background: rgba(0, 0, 0, .2);
  padding: .1rem 1rem;
  border-radius: .2rem;
  min-width: 10rem;
  text-align: center
}

footer .version-box .version-label {
  color: #e1e1e1
}

footer .version-box .version-number {
  color: #fff
}

footer .container {
  width: 100%;
  min-height: 80px;
  padding-top: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between
}

footer h1 {
  text-transform: uppercase;
  margin: 10px 0px 10px;
  padding: 0px 0px 5px;
  font-size: 1em !important;
  color: #000;
  text-align: left;
  border-bottom: 1px dotted #777
}

footer h2 {
  text-transform: uppercase;
  margin: 5px 0px 8px;
  padding: 0px 0px 3px;
  font-size: 1em !important;
  text-align: left;
  color: #000;
  border-bottom: 1px dotted #777
}

footer h3 {
  text-transform: uppercase;
  margin-top: 8px;
  font-size: 0.85em !important;
  text-align: left;
  color: rgba(0, 0, 0, .6);
  font-weight: 600;
}

footer .footer-section {
  margin-bottom: 0.5rem;
}

footer .footer-section a[data-toggle="collapse"] {
  display: block;
  cursor: pointer;
}

footer .footer-section a[data-toggle="collapse"]:hover {
  color: #333 !important;
}

footer .footer-section a[data-toggle="collapse"][aria-expanded="true"] i {
  transform: rotate(180deg);
}

footer nav ul {
  list-style-image: none;
  margin-left: 0px;
  padding-left: 10px;
  margin-bottom: 0.3rem;
}

footer nav ul li {
  font-weight: 400 !important;
  list-style: none;
  margin: 0px 0px 2px 0px;
  line-height: 1.4;
}

/* DOE Footer Styles */
.doe-footer {
  background-color: #1e3a5f;
  color: white;
  padding: 40px 0 20px 0;
}

.doe-footer h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
  text-transform: none;
  border-bottom: none;
}

.doe-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doe-footer nav ul li {
  margin-bottom: 0.5rem;
}

.doe-footer a {
  color: white;
  text-decoration: none;
  font-size: 0.9em;
  transition: opacity 0.2s ease;
}

.doe-footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
  color: white;
}

.doe-footer-bottom {
  background-color: #162d4a;
  color: white;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.doe-footer-bottom nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.doe-footer-bottom a {
  color: white;
  text-decoration: none;
  font-size: 0.85em;
  transition: opacity 0.2s ease;
}

.doe-footer-bottom a:hover {
  opacity: 0.8;
  text-decoration: underline;
  color: white;
}

/* Responsive styles for DOE footer */
@media (max-width: 991px) {
  .doe-footer {
    padding: 30px 0 20px 0;
  }

  .doe-footer .col-12 {
    text-align: center;
  }

  .doe-footer-bottom nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

thead {
  background: #f1f1f1
}

.app-base .info-bar {
  margin-left: 1rem
}

.app-base #sidebarMenu {
  min-height: calc(100vh - 136px);
  overflow: visible
}

#sidebarMenu .nav-link {
  display: flex;
  align-items: center
}

#sidebarMenu .nav-link i {
  width: 1.25rem;
  text-align: center;
  margin-right: .65rem;
  flex: 0 0 auto
}

#sidebarMenu .sidebar-toolbar {
  position: relative;
  display: flex;
  justify-content: flex-end;
  z-index: 3;
  margin: 0 .5rem .35rem
}

#sidebarMenu .sidebar-toggle {
  position: relative;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  background: #fff;
  color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  cursor: pointer;
  line-height: 1
}

#sidebarMenu .sidebar-toggle:hover, #sidebarMenu .sidebar-toggle:focus {
  background: #f1f3f5;
  outline: none
}

#sidebarMenu .sidebar-toggle i {
  transition: transform .2s ease
}

@media (min-width: 768px) {
  .app-base {
    flex-wrap: nowrap
  }

  #sidebarMenu, .app-base > main {
    transition: flex-basis .2s ease, max-width .2s ease
  }

  .app-base.sidebar-collapsed #sidebarMenu {
    flex: 0 0 4.5rem;
    max-width: 4.5rem;
    padding-left: 0
  }

  .app-base.sidebar-collapsed > main {
    flex: 1 1 auto;
    max-width: none;
    width: auto;
    min-width: 0
  }

  .app-base.sidebar-collapsed #sidebarMenu .sidebar-label {
    display: none
  }

  .app-base.sidebar-collapsed #sidebarMenu .nav-link {
    justify-content: center;
    padding-left: .4rem;
    padding-right: .4rem
  }

  .app-base.sidebar-collapsed #sidebarMenu .nav-link i {
    margin-right: 0
  }

  .app-base.sidebar-collapsed #sidebarMenu .sidebar-toolbar {
    justify-content: center;
    margin-right: 0;
    margin-left: 0
  }

  .app-base.sidebar-collapsed #sidebarMenu .sidebar-toggle {
    margin-right: 0
  }

  .app-base.sidebar-collapsed #sidebarMenu .sidebar-toggle i {
    transform: rotate(180deg)
  }
}

.app-base > main,
.app-base .app-content,
.app-base .app-content > .row > [class*="col-"] {
  min-width: 0;
  max-width: 100%
}

.app-base .app-content {
  margin: .5rem;
  height: 100%
}

.app-base .portfolios .div_portfolio_desc {
  display: none
}

.app-base .portfolios .div_buildings_desc {
  display: none
}

.app-base .portfolios .div_portfolio_form:hover + .div_portfolio_desc {
  display: block;
  color: #142e3c
}

.app-base .portfolios .div_buildings_table:hover + .div_buildings_desc {
  display: block;
  color: #142e3c
}

.app-base .portfolios .form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1)
}

.app-base .portfolios .form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25)
}

.app-base .recent-list {
  border: 1px dotted #ccc;
  background-image: linear-gradient(45deg, #cae2fd, #eef5fd);
  padding: 1rem;
  margin-bottom: 1rem;
  min-height: 300px;
  border-radius: .5rem;
  max-height: 500px;
  height: 100%;
  width: 100%;
  flex-wrap: wrap;
  overflow-y: scroll
}

.app-base .recent-list.recent-portfolios {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15.5rem, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
  align-items: stretch;
  height: auto;
  min-height: 0;
  max-height: none;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity
}

.app-base .recent-portfolios .portfolio-card {
  width: auto;
  min-width: 0;
  max-width: none;
  height: 100%;
  margin: 0;
  scroll-snap-align: start
}

.app-base .recent-portfolios .portfolio-card .card-body {
  flex: 1 1 auto
}

.app-base .portfolio-card {
  width: 18.5rem;
  min-width: 18.5rem
}

.app-base .portfolio-card .card-body {
  padding: .85rem 1rem .75rem
}

.app-base .portfolio-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem .75rem
}

.app-base .portfolio-stat-value {
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #1a1a1a
}

.app-base .portfolio-stat-label {
  margin-top: .15rem;
  font-size: .75rem;
  line-height: 1.2;
  color: #6c757d
}

.app-base .portfolio-card-updated {
  margin-top: .85rem;
  padding-top: .65rem;
  border-top: 1px solid #eee;
  font-size: .8rem;
  color: #6c757d
}

.app-base .portfolio-card-actions {
  display: flex;
  align-items: center;
  gap: .4rem
}

.app-base .portfolio-card-details {
  margin-left: auto
}

.app-base .better-card {
  min-width: 16rem;
  width: 16rem;
  margin-bottom: 1rem
}

.app-base .better-card .card-header {
  display: flex;
  align-items: flex-start;
  white-space: normal;
  overflow: hidden
}

.app-base .better-card .card-header i {
  flex: 0 0 auto;
  margin-top: .2rem
}

.app-base .better-card .portfolio-card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.6em
}

.recent-buildings {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden
}

.recent-buildings-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed
}

.recent-buildings-table th,
.recent-buildings-table td {
  border-left: 0;
  border-right: 0;
  vertical-align: middle;
  min-width: 0
}

.recent-buildings-table.sortable th,
.recent-buildings-table.sortable td {
  white-space: normal;
  padding: .5rem .45rem
}

.recent-buildings-table .col-id { width: 11% }
.recent-buildings-table th.col-id,
.recent-buildings-table td.recent-building-id { text-align: left; white-space: nowrap }
.recent-buildings-table .col-name { width: 21% }
.recent-buildings-table .col-space { width: 12% }
.recent-buildings-table .col-location { width: 16% }
.recent-buildings-table .col-area,
.recent-buildings-table td.recent-building-area { width: 14%; text-align: right; white-space: nowrap }
.recent-buildings-table .col-updated,
.recent-buildings-table td.recent-building-updated { width: 16%; text-align: right; white-space: nowrap }
.recent-buildings-table .col-delete { width: 10%; text-align: center }

.recent-buildings-table .recent-building-name,
.recent-buildings-table .building-location {
  white-space: normal;
  overflow-wrap: break-word
}

.recent-buildings-table .recent-building-delete {
  text-align: center;
  white-space: nowrap
}

.recent-building-portfolio {
  margin-top: .15rem;
  font-size: .8rem;
  line-height: 1.35;
  white-space: normal
}

.recent-building-portfolio a,
.recent-building-portfolio span {
  white-space: normal
}

.recent-building-portfolio a {
  color: #6c757d
}

.recent-building-portfolio a:hover {
  color: #007bff
}

.app-base .recent-header {
  margin-bottom: 1rem
}

.app-base .generation-error {
  border: 1px dotted #ccc;
  background: #f9f9f9;
  border-radius: .5rem;
  padding: 1rem;
  margin: 1rem
}

.app-base .app-info-bar {
  display: flex;
  flex-direction: row;
  border-bottom: 1px dotted #888
}

.app-base .app-info-bar .app-title-bar {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  padding: 1rem 1rem 1rem .75rem;
  min-height: 3.5em;
  align-items: center
}

.app-base .app-info-bar .app-title-bar .page-title {
  width: 100%;
  max-width: 600px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.app-base .app-info-bar .app-title-bar .breadcrumb-item {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden
}

.app-base .app-info-bar .app-command-bar {
  display: flex;
  flex-direction: row;
  flex-grow: 0;
  align-items: center;
  padding-right: 1rem
}

.crud-card .alert-secondary {
  background-color: #f9f9f9;
  border-color: #f8f8f8;
  color: #666
}

.crud-card .card-body .input-section-header {
  display: flex;
  padding-bottom: .2rem;
  border-bottom: 1px dotted #ccc;
  margin-bottom: 2rem;
  flex-direction: row;
  align-items: center
}

.crud-card .card-body .input-section-header .section-title {
  flex-grow: 1;
  font-size: 1.1rem !important;
  margin-bottom: .3rem
}

.crud-card .card-body .form-group > label {
  font-weight: 700
}

.crud-card .card-body .form-row:nth-last-of-type(2) {
  border-bottom: none
}

.crud-card .card-body .input-field-help {
  background-color: #f1f1f1;
  padding: 1.5rem;
  border-radius: 1rem
}

.crud-card .card-body .input-help {
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.crud-card .card-body #saving_target_text {
  width: 10rem;
  text-align: left
}

.crud-card .card-body .savings-target-text-wrapper, .crud-card .card-body .benchmark-statistics-text-wrapper {
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.crud-card .card-body #savings-target-graphic {
  display: flex;
  flex-direction: row;
  justify-content: center
}

.crud-card .card-body #savings-target-graphic img {
  min-height: 140px;
  max-height: 180px
}

.crud-card .card-body .range-slider {
  display: flex;
  flex-direction: row;
  align-items: center
}

.crud-card .card-body .range-slider .custom-range {
  width: 300px
}

.crud-card .card-body .range-slider .range-slider__value {
  min-width: 6.5rem;
  border: 1px solid #e2f8e2;
  background-color: #e2f8e2;
  border-radius: 1rem;
  padding: .5rem;
  font-size: 2.5rem
}

.crud-card .card-body .enable-net-zero {
  display: flex;
  flex-direction: row;
  align-items: flex-start
}

.crud-card .card-body .enable-net-zero p {
  margin-left: 1rem
}

#overview_details h4 {
  font-size: 1.6rem
}

#overview_details h5 {
  margin: 2rem 2rem 1rem 0;
  border-bottom: 1px dotted #ccc;
  padding: 0 0 1rem .7rem;
  font-size: 1.4rem
}

#overview_details table th {
  background-color: #f3f3f3
}

#overview_details table td {
  background-color: #fcfcfc
}

#portfolio-buildings-list {
  margin: 1rem 0 3rem
}

#portfolio-buildings-list table {
  width: 100%
}

#portfolio-buildings-list thead, #portfolio-buildings-list tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed
}

#portfolio-buildings-list tbody {
  display: block;
  overflow-y: auto;
  table-layout: fixed;
  max-height: 500px
}

.portfolio-analytics-action {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  padding: 1rem;
  border: 1px solid #f1f1f1;
  border-radius: .5rem;
  align-items: flex-start
}

.in-progress-wrapper {
  max-width: 500px;
  width: 100%;
  border: 1px dotted #ccd;
  background: #f1f1f1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center
}

.in-progress-message {
  margin-left: 2rem;
  display: flex;
  flex-direction: row;
  align-items: center
}

.form-header-note {
  display: flex;
  flex-direction: row;
  border: 1px solid #f1f1f1;
  border-radius: .5rem;
  text-align: justify;
  font-size: 1rem;
  padding: .5rem;
  background-color: #f9f9f9;
  margin-bottom: 1rem
}

.form-header-note i {
  flex-grow: 0;
  width: 5rem;
  padding-top: .2rem;
  padding-left: .2rem;
  justify-content: center;
  font-size: 1.5rem;
  color: #333
}

.form-header-note div {
  flex-grow: 1;
  color: #333;
  margin-left: .5rem;
  text-align: left
}

.form-note {
  color: #777;
  margin-bottom: 1.5rem;
  margin-top: -0.5rem;
  font-size: .9rem
}

.form-note i {
  color: #777
}

.asteriskField {
  color: #c00
}

.video-callout {
  border: 1px dotted #efc84a
}

.block-callout {
  padding: 0;
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  margin-bottom: 20px
}

.block-callout .icon-block {
  background-color: #e1e1e1;
  align-content: center;
  padding: .75rem 1rem 1rem
}

.block-callout .icon-block .icon-image {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px
}

.block-callout .callout-text {
  align-content: center;
  line-height: 1.5em;
  font-size: 1em;
  padding: 10px 10px 10px 20px
}

.block-callout .callout-text h2 {
  margin-top: .7em;
  text-transform: capitalize
}

.measure-block {
  border: 1px dotted #ccc;
  padding: .5rem;
  border-radius: .5rem;
  margin-bottom: 1rem
}

.measure-block .action {
  display: flex;
  flex-direction: row;
  padding: 1rem;
  margin: 1rem 1rem 1rem 0
}

.measure-block .action .action-label {
  font-weight: bold;
  margin-right: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center
}

.measure-block .action .action-description {
  width: 100%
}

.measure-block .block-callout {
  margin-left: 2rem
}

.health-info-callout {
  border: 1px dotted #e7d7fd
}

.health-info-callout .icon-block {
  background-color: #e7d7fd
}

.health-info-callout .icon-block .fa {
  font-weight: 900;
  font-size: 2rem;
  color: #9852f9
}

.resources-callout {
  border: 1px dotted #aaa
}

.resources-callout .icon-block {
  background-color: #eee
}

.resources-callout .icon-block .fa {
  font-weight: 900;
  font-size: 2rem;
  color: #555
}

.rest-api-docs {
  margin-top: 2rem
}

.rest-api-docs pre code {
  margin: 0;
  background-color: #eee;
  border: 1px solid #999;
  display: block;
  padding: 20px
}

.rest-api-docs .tldr-guide {
  margin: 2rem 0;
  padding: 0 2rem 0;
  border: 1px dotted #999;
  border-radius: 1rem;
  background: #fffaef
}

.rest-api-docs h2 {
  margin-top: 3rem;
  padding-bottom: .5rem;
  border-bottom: 1px dotted #555;
  margin-bottom: 1rem;
  text-transform: uppercase
}

.rest-api-docs h3 {
  margin-top: 3rem;
  font-weight: bold;
  font-size: 1.2rem !important
}

.rest-api-docs h4 {
  margin-top: 2rem;
  color: #777;
  font-size: 1.1rem !important;
  font-weight: bold
}

.rest-api-docs .endpoints .endpoint {
  display: flex;
  flex-direction: row;
  margin: 1rem 0;
  align-items: center
}

.rest-api-docs .endpoints .endpoint .endpoint-label {
  min-width: 80px
}

.ag-grid-header-class-center .ag-header-cell-label {
  justify-content: center
}

.changelog h1 {
  font-size: 1.5rem
}

.changelog h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dotted #ccc
}

.changelog h3 {
  font-size: 1.1rem
}

.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center
}

.marketing h2 {
  font-weight: 400
}

.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem
}

.featurette-divider {
  margin: 4rem 0
}

.featurette h2 {
  margin-top: .4rem;
  margin-bottom: 1.5rem
}

.featurette:last-child {
  margin-bottom: 3rem
}

.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05rem;
  border: 1px solid blue
}

.featurette .cityscape {
  object-fit: cover;
  height: 100%;
  width: auto
}

@media only screen and (max-width: 991px) {
  .featurette .cityscape {
    height: auto;
    width: 100%
  }
}

@media (min-width: 40em) {
  .featurette-heading {
    font-size: 50px
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 0rem
  }
}

.htmx-indicator {
  display: none
}

.htmx-request .htmx-indicator {
  display: inherit
}

.htmx-request.htmx-indicator {
  display: inherit
}

.featurette img {
  border-radius: .3rem
}

.jumbotron {
  background: linear-gradient(-45deg, #fcf9f9, #faf8f8);
  border-radius: 0;
  border-bottom: 1px solid #ddd
}

.building-jumbotron {
  height: 100%;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 7rem;
  position: relative;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background: #87cefa;
  border-bottom: 1px dotted #007bff;
  background: linear-gradient(to top, #e7f5fd 0%, #cbe9fc 100%)
}

.building-jumbotron .texture-container {
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%
}

.building-jumbotron .texture-container img {
  height: 100%;
  width: 100%
}

.building-jumbotron .building-container {
  position: absolute;
  bottom: 0;
  left: -20px;
  right: -20px;
  height: 100%;
  overflow: clip
}

.building-jumbotron .building {
  position: absolute;
  bottom: -20px;
  animation: show-building 1s ease-in-out;
  animation-delay: calc(var(--delay) * 0.1s);
  animation-fill-mode: forwards;
  transform-origin: bottom center;
  transform: scale(0)
}

.cost-color {
  background: #39af7e
}

@keyframes show-building {
  from {
    transform: scale(0)
  }
  to {
    transform: scale(1)
  }
}

.overview-results .overview-result {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem
}

.overview-results .overview-result .result-title {
  font-size: 1.5rem
}

.overview-results .overview-result .result-values {
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  font-weight: bold
}

.overview-results .overview-result mark {
  background: transparent
}

/*For the logo carousel*/
.logo-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.logo-carousel {
    display: flex;
    animation: slide 20s linear infinite;
    width: fit-content;
}

.logo-carousel:hover {
    animation-play-state: paused;
}

.logo-slide {
    min-width: 150px; /* Reduced from 200px to 180px */
    padding: 0 5px; /* Further reduced from 10px to 5px */
    text-align: center;
}

.logo-slide img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-slide img:hover {
    filter: grayscale(0%);
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move left by half the width */
    }
}


/* For API client Option 2*/
/* API Client Solutions section styles */
.partner-logos img {
    transition: all 0.2s ease;
    filter: grayscale(100%);
    opacity: 0.8;
}

.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}


.client-solution {
    transition: all 0.3s ease;
}

.client-solution:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* If you want to add more specific styling, you could include these as well */
.client-solution .fas {
    color: #0d6efd; /* Bootstrap primary color */
}

.client-solution h3 {
    margin-bottom: 1rem;
}

.client-solution p {
    color: #6c757d; /* Bootstrap secondary/muted color */
}

/* How It Works: interactive explorer */
.hiw-explorer {
  align-items: stretch;
  background: #f4f7f9;
  border: 1px solid #e1e8ee;
  border-radius: .75rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  margin: 0 0 3rem;
  padding: 1.25rem;
}

@media (max-width: 991.98px) {
  .hiw-explorer {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1200px) {
  .hiw-explorer {
    margin-left: calc(-1 * clamp(0px, (100vw - 1140px) / 2 - 32px, 80px));
    margin-right: calc(-1 * clamp(0px, (100vw - 1140px) / 2 - 32px, 80px));
  }
}

/* ---- stage ---- */
.hiw-stage {
  background: #fff;
  border: 1px solid #d5dde5;
  border-radius: .65rem;
  padding: 1rem 1rem .5rem;
}


.hiw-captions {
  display: grid;
  margin-bottom: .5rem;
  min-height: 3rem;
}

.hiw-captions p {
  color: #3e5160;
  font-weight: 300;
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}

.hiw-captions p.is-on {
  opacity: 1;
  transform: none;
}

.hiw-canvas {
  display: block;
  font-family: inherit;
  width: 100%;
}

.hiw-canvas text {
  fill: #5d6d7c;
  font-size: 13px;
}

.hiw-canvas *,
.hiw-captions p {
  transition-duration: 0s;
}

.hiw-explorer.is-ready .hiw-canvas * {
  transition-duration: .6s;
}

.hiw-axis {
  fill: none;
  stroke: #9aa8b4;
  stroke-width: 1.5;
}

.hiw-canvas .hiw-axis-title {
  fill: #212529;
}

.hiw-months,
.hiw-temp-axis,
.hiw-overview,
.hiw-sub,
.hiw-back,
.hiw-axis,
.hiw-bars rect,
.hiw-base-band,
.hiw-saving-area,
.hiw-cp-guide,
.hiw-fit-target,
.hiw-lab,
.hiw-part,
.hiw-bench,
.hiw-axes,
.hiw-dots circle {
  transition-property: opacity, transform, fill, stroke-dashoffset, stroke-width;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

.hiw-ink {
  fill: none;
  stroke: #25384a;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hiw-soft {
  fill: #e6eef3;
}

.hiw-bars rect {
  fill: #25384a;
  opacity: .16;
  transform-box: fill-box;
  transform-origin: bottom;
}

.hiw-dots circle {
  fill: #212529;
  stroke: #fff;
  stroke-width: 1.5;
}

.hiw-base-band {
  fill: #7f7f7f;
  fill-opacity: .08;
}

.hiw-saving-area {
  fill: #3f8f5a;
  fill-opacity: .22;
}

.hiw-cp-guide {
  fill: none;
  stroke: #7d8d9c;
  stroke-dasharray: 3 3;
  stroke-width: 1.2;
}

.hiw-fit-target {
  fill: none;
  stroke: #2f6d44;
  stroke-dasharray: 6 5;
  stroke-width: 3;
}

.hiw-canvas .hiw-lab {
  font-size: 14px;
  font-weight: 600;
}

.hiw-canvas .hiw-lab-heating { fill: #c00000; }
.hiw-canvas .hiw-lab-cooling { fill: #1f4e79; }
.hiw-canvas .hiw-lab-baseload { fill: #595959; }
.hiw-canvas .hiw-lab-target { fill: #c00000; fill-opacity: .75; }
.hiw-canvas .hiw-lab-saving { fill: #2f6d44; }

.hiw-part {
  cursor: pointer;
  outline: none;
}

.hiw-part .hiw-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 20;
}

.hiw-part .hiw-hit-dot {
  fill: transparent;
}

.hiw-part .hiw-line {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-width: 4;
}

.hiw-part-heating .hiw-line { stroke: #c00000; }
.hiw-part-cooling .hiw-line { stroke: #1f4e79; }
.hiw-part-baseload .hiw-line { stroke: #7f7f7f; }

.hiw-cp {
  fill: #fff;
  stroke: #25384a;
  stroke-width: 2.5;
}

.hiw-part:hover .hiw-line,
.hiw-part:focus-visible .hiw-line,
.hiw-part.is-active-part .hiw-line {
  stroke-width: 7;
}

.hiw-part:hover .hiw-cp,
.hiw-part:focus-visible .hiw-cp,
.hiw-part.is-active-part .hiw-cp {
  fill: #25384a;
}

.hiw-temp-axis text {
  font-size: 12px;
}

.hiw-legend text,
.hiw-canvas .hiw-bench-axis {
  font-size: 13px;
}

.hiw-canvas .hiw-row-title {
  fill: #212529;
  font-size: 14px;
  font-weight: 600;
}

.hiw-canvas .hiw-row-flag {
  fill: #c00000;
  font-size: 13px;
  font-weight: 400;
}

.hiw-you {
  fill: #25384a;
  stroke: #fff;
  stroke-width: 2.5;
}

.hiw-node-bg {
  fill: #e6eef3;
}

.hiw-canvas .hiw-node-title {
  fill: #212529;
  font-size: 14px;
  font-weight: 600;
}

.hiw-canvas .hiw-node-sub {
  font-size: 12px;
}

.hiw-canvas .hiw-node-glyph {
  fill: #25384a;
  font-size: 26px;
  font-weight: 700;
}

.hiw-derive-link {
  fill: none;
  stroke: #9aa8b4;
  stroke-dasharray: 4 4;
  stroke-width: 1.5;
}

.hiw-bench-base {
  stroke: #c9d4dd;
  stroke-width: 1;
}

.hiw-bell {
  fill-opacity: .08;
  stroke: none;
}

.hiw-bell-shade {
  fill-opacity: .2;
  stroke: none;
}

path.hiw-bell-line {
  fill: none;
  stroke-width: 2;
}

.hiw-bell-heating { fill: #c00000; stroke: #c00000; }
.hiw-bell-cooling { fill: #1f4e79; stroke: #1f4e79; }
.hiw-bell-baseload { fill: #7f7f7f; stroke: #7f7f7f; }

.hiw-you-line {
  fill: none;
  stroke: #212529;
  stroke-width: 1.5;
}

.hiw-legend-curve {
  fill: #7f7f7f;
  fill-opacity: .25;
  stroke: #7f7f7f;
  stroke-width: 1.2;
}

.hiw-list {
  font-weight: 300;
  margin: 0 0 .5rem;
  padding-left: 1.1rem;
}

.hiw-list li {
  margin-bottom: .35rem;
}

.hiw-list b {
  font-weight: 600;
}

.hiw-you-bldg {
  color: #25384a;
}

.hiw-peer-bldg {
  color: #9aa8b4;
  transition: opacity .4s ease, transform .4s ease;
}

.hiw-peer-bldg.is-best {
  color: #3f8f5a;
}

.hiw-best-box {
  fill: #3f8f5a;
  fill-opacity: .06;
  stroke: #3f8f5a;
  stroke-width: 1.5;
}

.hiw-canvas .hiw-best-label {
  fill: #2f6d44;
  font-size: 13px;
  font-weight: 600;
}

.hiw-best-line {
  fill: none;
  stroke: #3f8f5a;
  stroke-dasharray: 4 3;
  stroke-width: 2;
}

.hiw-bench-arrow {
  fill: none;
  stroke: #9aa8b4;
  stroke-width: 2;
}

[data-state="benchmark"] .hiw-peer-bldg {
  opacity: 1;
}

.hiw-peer-bldg {
  opacity: 0;
}

.hiw-nav-btn {
  background: #fff;
  border: 1px solid #25384a;
  border-radius: 999px;
  color: #25384a;
  min-width: 6.5rem;
  transition: background .15s ease, color .15s ease;
}

.hiw-nav-btn:hover,
.hiw-nav-btn:focus-visible {
  background: #25384a;
  color: #fff;
}

.hiw-nav-btn:disabled {
  background: #fff;
  border-color: #d5dde5;
  color: #9aa8b4;
}

.hiw-scn-legend text {
  font-size: 12px;
}

.hiw-legend-current {
  stroke: #7f7f7f;
  stroke-width: 3;
}

.hiw-legend-target {
  stroke: #2f6d44;
  stroke-dasharray: 6 4;
  stroke-width: 3;
}

.hiw-step-body .hiw-scn-text {
  display: none;
}

.hiw-step-body .hiw-scn-text.is-highlight {
  animation: hiw-fade .25s ease;
  display: block;
}

.hiw-step-body .hiw-measures-title {
  color: #5d6d7c;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.hiw-measures {
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0;
}

.hiw-measures li {
  font-weight: 400;
  margin-bottom: .3rem;
  padding-left: 1.5rem;
  position: relative;
}

.hiw-measures li::before {
  color: #3f8f5a;
  content: "\2713";
  font-weight: 700;
  left: .2rem;
  position: absolute;
}

.hiw-note {
  color: #5d6d7c;
  font-size: .85rem;
  font-weight: 300;
}

.hiw-step-body .hiw-footnote {
  border-top: 1px solid #eef2f5;
  color: #5d6d7c;
  font-size: .85rem;
  padding-top: .5rem;
}

.hiw-node {
  cursor: pointer;
  outline: none;
}

.hiw-node-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 1.5;
  transition: fill .15s ease, stroke .15s ease;
}

.hiw-node:hover .hiw-node-hit,
.hiw-node:focus-visible .hiw-node-hit {
  fill: #f4f7f9;
  stroke: #d5dde5;
}

.hiw-node.is-active-input .hiw-node-hit {
  fill: #eef3f7;
  stroke: #25384a;
}

.hiw-node-bg,
.hiw-node .hiw-ink {
  transition: fill .15s ease, stroke .15s ease;
}

.hiw-node.is-active-input .hiw-node-bg {
  fill: #25384a;
}

.hiw-node.is-active-input .hiw-ink {
  stroke: #fff;
}

.hiw-node.is-active-input .hiw-canvas .hiw-node-glyph,
.hiw-canvas .hiw-node.is-active-input .hiw-node-glyph {
  fill: #fff;
}

.hiw-pin-dot {
  fill: #25384a;
}

.hiw-node.is-active-input .hiw-pin-dot {
  fill: #fff;
}

.hiw-canvas .hiw-link-label {
  fill: #7d8d9c;
  font-size: 11px;
  font-style: italic;
}

.hiw-step-body .hiw-input-text {
  display: none;
}

.hiw-step-body .hiw-input-text.is-highlight {
  animation: hiw-fade .25s ease;
  display: block;
}

[data-state="data"] .hiw-derive {
  pointer-events: auto;
}

.hiw-chip.hiw-input-chip { border-left-color: #25384a; }
.hiw-chip.hiw-input-chip.is-highlight { background: #25384a; border-color: #25384a; }

/* step 1 overview */
.hiw-flow {
  fill: none;
  stroke: #9aa8b4;
  stroke-width: 1.5;
}

.hiw-canvas .hiw-flow-label {
  fill: #7d8d9c;
  font-size: 11px;
  font-style: italic;
}

.hiw-canvas .hiw-ov-hint {
  font-size: 12px;
}

.hiw-ov-input rect:first-child {
  fill: #f4f7f9;
  stroke: #d5dde5;
}

.hiw-ov-bldg {
  color: #25384a;
}

.hiw-ov-output rect {
  fill: #fff;
  stroke: #9aa8b4;
  stroke-dasharray: 4 3;
}

.hiw-canvas .hiw-ov-title {
  fill: #212529;
  font-size: 14px;
  font-weight: 600;
}

.hiw-canvas .hiw-ov-sub {
  fill: #5d6d7c;
  font-size: 12px;
}

.hiw-ov-node {
  cursor: pointer;
  outline: none;
}

.hiw-ov-box {
  fill: #fff;
  stroke: #25384a;
  stroke-width: 1.5;
  transition: fill .15s ease;
}

.hiw-ov-node:hover .hiw-ov-box,
.hiw-ov-node:focus-visible .hiw-ov-box {
  fill: #eef3f7;
}

.hiw-ov-node:focus-visible .hiw-ov-box {
  stroke-width: 2.5;
}

.hiw-canvas .hiw-node-glyph-sm {
  font-size: 20px;
}

.hiw-back {
  cursor: pointer;
  outline: none;
}

.hiw-back rect {
  fill: #fff;
  stroke: #25384a;
}

.hiw-canvas .hiw-back text {
  fill: #25384a;
  font-size: 12px;
}

.hiw-back:hover rect,
.hiw-back:focus-visible rect {
  fill: #25384a;
}

.hiw-canvas .hiw-back:hover text,
.hiw-canvas .hiw-back:focus-visible text {
  fill: #fff;
}

/* step 1 detail views */
.hiw-bar-e,
.hiw-bars .hiw-bar-e { fill: #1f77b4; }
.hiw-bar-f,
.hiw-bars .hiw-bar-f { fill: #c35f19; }
.hiw-seg-e rect.is-alt,
.hiw-seg-f rect.is-alt { fill-opacity: .6; }

.hiw-canvas .hiw-sub-row {
  font-size: 12px;
  font-weight: 600;
}

.hiw-canvas .hiw-sub-row-e { fill: #1f77b4; }
.hiw-canvas .hiw-sub-row-f { fill: #c35f19; }

.hiw-month-grid path {
  stroke: #c9d4dd;
  stroke-dasharray: 2 3;
}

.hiw-canvas .hiw-bar-legend text {
  font-size: 12px;
}

.hiw-geo-input {
  fill: #fff;
  stroke: #9aa8b4;
  stroke-width: 1.5;
}

.hiw-canvas .hiw-geo-typed {
  fill: #212529;
  font-family: SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.hiw-geo-service {
  fill: #25384a;
}

.hiw-canvas .hiw-geo-service-text {
  fill: #fff;
  font-size: 13px;
  font-weight: 600;
}

.hiw-geo-result rect,
.hiw-cost-card rect {
  fill: #fff;
  stroke: #d5dde5;
}

.hiw-canvas .hiw-geo-val {
  fill: #212529;
  font-size: 13px;
  font-weight: 600;
}

.hiw-canvas .hiw-missing {
  fill: #c00000;
  font-style: italic;
  font-weight: 400;
}

.hiw-map rect {
  fill: #eef2ee;
}

.hiw-map-water {
  fill: none;
  stroke: #b9d3e6;
  stroke-width: 12;
}

.hiw-map-road {
  fill: none;
  stroke: #fff;
  stroke-width: 7;
}

.hiw-map-street {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}

.hiw-geo-pin {
  fill: #25384a;
}

.hiw-geo-pulse {
  fill: #25384a;
  fill-opacity: .12;
  stroke: #25384a;
  stroke-opacity: .3;
}

.hiw-geo-link {
  fill: none;
  stroke: #9aa8b4;
  stroke-dasharray: 4 4;
  stroke-width: 1.5;
}

.hiw-geo-uses rect {
  fill: #f4f7f9;
  stroke: #d5dde5;
}

.hiw-canvas .hiw-geo-uses text {
  fill: #25384a;
  font-size: 12px;
}

.hiw-ring {
  fill: none;
  stroke: #9aa8b4;
  stroke-dasharray: 3 4;
}

.hiw-station-link {
  fill: none;
  stroke: #9aa8b4;
  stroke-dasharray: 3 3;
}

.hiw-station-link.is-nearest {
  stroke: #2f6d44;
  stroke-dasharray: none;
  stroke-width: 2;
}

.hiw-stations path {
  fill: #9aa8b4;
}

.hiw-stations path.is-nearest {
  fill: #2f6d44;
}

.hiw-canvas .hiw-station-rank text {
  fill: #5d6d7c;
  font-size: 11px;
  font-weight: 600;
}

.hiw-canvas .hiw-station-label {
  fill: #2f6d44;
  font-size: 12px;
  font-weight: 600;
  paint-order: stroke;
  stroke: #eef2ee;
  stroke-linejoin: round;
  stroke-width: 4px;
}

.hiw-temp-line {
  fill: none;
  stroke: #9aa8b4;
  stroke-width: 2;
}

.hiw-temp-dots circle {
  stroke: #fff;
  stroke-width: 1.5;
}

.hiw-cost-op {
  fill: #f4f7f9;
  stroke: #9aa8b4;
}

.hiw-canvas .hiw-cost-op-text {
  fill: #25384a;
  font-size: 12px;
  font-weight: 600;
}

.hiw-cost-result {
  fill: #25384a;
}

.hiw-canvas .hiw-cost-result-text {
  fill: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hiw-cost-divider {
  stroke: #e1e8ee;
}

.hiw-cost-eq rect {
  fill: #fff;
  stroke: #9aa8b4;
}

.hiw-cost-eq rect.is-result {
  fill: #3f8f5a;
  stroke: #3f8f5a;
}

.hiw-canvas .hiw-cost-eq text {
  fill: #25384a;
  font-size: 13px;
  font-weight: 600;
}

.hiw-canvas .hiw-cost-eq text.is-result {
  fill: #fff;
}

.hiw-canvas .hiw-cost-sym {
  fill: #5d6d7c;
  font-size: 18px;
}

/* step 2 sub-step toggle */
.hiw-seg {
  background: #eef2f5;
  border-radius: 999px;
  display: inline-flex;
  gap: .25rem;
  margin-bottom: .75rem;
  padding: .25rem;
}

.hiw-seg-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #25384a;
  display: inline-flex;
  font-family: Lato, system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  gap: .4rem;
  padding: .3rem .85rem;
  transition: background .15s ease, color .15s ease;
}

.hiw-seg-btn span {
  align-items: center;
  background: #d5dde5;
  border-radius: 50%;
  display: inline-flex;
  font-size: .75rem;
  height: 1.2rem;
  justify-content: center;
  width: 1.2rem;
}

.hiw-seg-btn.is-on {
  background: #25384a;
  color: #fff;
}

.hiw-seg-btn.is-on span {
  background: #fff;
  color: #25384a;
}

.hiw-seg-btn:focus-visible {
  outline: 2px solid #25384a;
  outline-offset: 2px;
}

.hiw-subbody {
  display: none;
}

[data-state="weather"] .hiw-subbody[data-for="weather"],
[data-state="model"] .hiw-subbody[data-for="model"] {
  animation: hiw-fade .25s ease;
  display: block;
}

.hiw-play {
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 2.5rem;
  padding: 0;
  width: 2.5rem;
}

.hiw-play svg {
  display: block;
  height: 100%;
  width: 100%;
}

.hiw-play-track {
  fill: #fff;
  stroke: #d5dde5;
  stroke-width: 2.5;
  transition: fill .15s ease;
}

.hiw-play:hover .hiw-play-track,
.hiw-play:focus-visible .hiw-play-track {
  fill: #eef3f7;
}

.hiw-play:focus-visible {
  outline: 2px solid #25384a;
  outline-offset: 2px;
}

.hiw-play-ring {
  fill: none;
  stroke: #25384a;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-width: 2.5;
  transform: rotate(-90deg);
  transform-box: view-box;
  transform-origin: 20px 20px;
}

.hiw-icon-pause {
  display: none;
  fill: none;
  stroke: #25384a;
  stroke-linecap: round;
  stroke-width: 3;
}

.hiw-icon-play {
  fill: #25384a;
}

.is-playing .hiw-icon-pause {
  display: inline;
}

.is-playing .hiw-icon-play {
  display: none;
}

/* step 3 benchmarking: peer group + savings target */
.hiw-target-line {
  fill: none;
  stroke: #2f6d44;
  stroke-dasharray: 5 3;
  stroke-width: 2.5;
}

path.hiw-gap {
  fill-opacity: .35;
  stroke: none;
}

.hiw-canvas .hiw-row-flag.is-meets {
  fill: #2f6d44;
}

.hiw-mode-label {
  transition: opacity .3s ease;
}

[data-bmode="reference"] .hiw-mode-label[data-mode="portfolio"],
[data-bmode="portfolio"] .hiw-mode-label[data-mode="reference"] {
  opacity: 0;
}

.hiw-peer-bldg {
  transition: opacity .4s ease, color .4s ease;
}

[data-bmode="portfolio"] .hiw-peer-bldg {
  color: #5b7590;
}

.hiw-chip.hiw-target-chip { border-left-color: #2f6d44; }
.hiw-chip.hiw-target-chip.is-highlight { background: #2f6d44; border-color: #2f6d44; }

.hiw-step-body .hiw-mode-text,
.hiw-step-body .hiw-target-text {
  display: none;
}

.hiw-step-body .hiw-mode-text.is-highlight,
.hiw-step-body .hiw-target-text.is-highlight {
  animation: hiw-fade .25s ease;
  display: block;
}

.hiw-step-body .hiw-target-text strong,
.hiw-step-body .hiw-mode-text strong {
  font-weight: 600;
}

[data-state="benchmark"][data-bmode="reference"] .hiw-peer-bldg {
  color: #3d5a78;
}

[data-state="benchmark"][data-bmode="reference"] .hiw-peer-bldg.is-other {
  color: #9aa8b4;
  opacity: .14;
  transition-delay: .9s;
}

.hiw-canvas .hiw-station-rank text.is-nearest {
  fill: #2f6d44;
}

.hiw-map-lbnl rect {
  fill: #f1f3f4;
}

.hiw-map-campus {
  fill: #e9e7ee;
}

.hiw-map-green {
  fill: #cfeedb;
}

.hiw-map-stadium {
  fill: #e0dde6;
  stroke: #fff;
  stroke-width: 2;
}

.hiw-map-lbnl .hiw-map-road {
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.5;
}

.hiw-map-lbnl .hiw-map-street {
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hiw-canvas .hiw-map-label {
  fill: #6b5d86;
  font-size: 10px;
  font-weight: 600;
}

.hiw-canvas .hiw-map-road-label {
  fill: #7d8d9c;
  font-size: 9px;
  font-style: italic;
  font-weight: 400;
}

/* ---- per-state visibility ---- */
.hiw-months,
.hiw-temp-axis,
.hiw-overview,
.hiw-sub,
.hiw-back,
.hiw-scn-legend,
.hiw-axis-short,
.hiw-base-band,
.hiw-saving-area,
.hiw-cp-guide,
.hiw-fit-target,
.hiw-lab,
.hiw-part,
.hiw-bench {
  opacity: 0;
  pointer-events: none;
}

.hiw-bars rect {
  transform: scaleY(0);
  opacity: 0;
}

/* step 1: building data (overview + detail views) */
[data-state="data"] .hiw-axis-full { opacity: 0; }
[data-state="data"][data-input="overview"] .hiw-overview,
[data-state="data"][data-input="bills"] .hiw-sub-bills,
[data-state="data"][data-input="costs"] .hiw-sub-costs,
[data-state="data"][data-input="geocoding"] .hiw-sub-geocoding,
[data-state="data"][data-input="weather"] .hiw-sub-weather,
[data-state="data"]:not([data-input="overview"]) .hiw-back { opacity: 1; pointer-events: auto; }
[data-state="data"][data-input="bills"] .hiw-months,
[data-state="data"][data-input="weather"] .hiw-months,
[data-state="data"][data-input="bills"] .hiw-axis-short { opacity: 1; }
[data-state="data"][data-input="bills"] .hiw-bars rect { opacity: .9; transform: scaleY(1); }
[data-state="data"]:not([data-input="bills"]) .hiw-y-title,
[data-state="data"]:not([data-input="bills"]) .hiw-dots circle { opacity: 0; }

/* steps 2, 3, 5: scatter */
[data-state="weather"] .hiw-temp-axis,
[data-state="model"] .hiw-temp-axis,
[data-state="savings"] .hiw-temp-axis { opacity: 1; }

/* step 3: model */
[data-state="model"] .hiw-base-band,
[data-state="model"] .hiw-cp-guide,
[data-state="model"] .hiw-part,
[data-state="model"] .hiw-part .hiw-lab { opacity: 1; pointer-events: auto; }
[data-state="model"] .hiw-part .hiw-line { stroke-dashoffset: 0; transition-delay: .25s; }
[data-state="model"] .hiw-dots circle { fill: #4a4a4a; }
[data-state="model"].has-part .hiw-part:not(.is-active-part) { opacity: .35; }

/* step 4: benchmarking */
[data-state="benchmark"] .hiw-bench { opacity: 1; }
[data-state="benchmark"] .hiw-axes,
[data-state="benchmark"] .hiw-dots circle { opacity: 0; }

/* step 5: recommendation scenarios */
[data-state="savings"] .hiw-saving-area,
[data-state="savings"] .hiw-fit-target,
[data-state="savings"] .hiw-lab-saving,
[data-state="savings"] .hiw-scn-legend { opacity: 1; }
[data-state="savings"] .hiw-part { opacity: .3; }
[data-state="savings"] .hiw-part .hiw-line { stroke-dashoffset: 0; }
[data-state="savings"][data-scn="baseload"] .hiw-part-baseload,
[data-state="savings"][data-scn="heating"] .hiw-part-heating,
[data-state="savings"][data-scn="cooling"] .hiw-part-cooling,
[data-state="savings"][data-scn="heating-cp"] .hiw-part[data-part="heating-cp"],
[data-state="savings"][data-scn="cooling-cp"] .hiw-part[data-part="cooling-cp"] { opacity: 1; }
[data-state="savings"] .hiw-dots circle { fill: #c3ccd4; }

/* ---- controls ---- */
.hiw-controls {
  align-items: center;
  border-top: 1px solid #eef2f5;
  display: flex;
  justify-content: space-between;
  margin-top: .25rem;
  padding-top: .5rem;
}

.hiw-dots-nav {
  display: flex;
  gap: .5rem;
}

.hiw-dots-nav button {
  background: #d5dde5;
  border: 0;
  border-radius: 50%;
  height: .65rem;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
  width: .65rem;
}

.hiw-dots-nav button.is-on {
  background: #25384a;
  transform: scale(1.25);
}

/* ---- step list ---- */
.hiw-steps {
  align-content: start;
  background: #fff;
  border: 1px solid #d5dde5;
  border-radius: .65rem;
  contain: size;
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: .75rem .5rem 0 1rem;
}

.hiw-step {
  display: contents;
}

.hiw-step-head {
  align-items: center;
  align-self: center;
  background: none;
  border: 0;
  border-radius: 999px;
  color: #212529;
  display: flex;
  gap: .5rem;
  grid-row: 1;
  margin-right: .35rem;
  padding: .2rem;
  text-align: left;
  transition: background .2s ease;
}

.hiw-step-head:hover {
  background: #f4f7f9;
}

.hiw-step-head:focus-visible {
  outline: 2px solid #25384a;
  outline-offset: 1px;
}

.hiw-num {
  align-items: center;
  background: #e6eef3;
  border-radius: 50%;
  color: #25384a;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .9rem;
  font-weight: 600;
  height: 2rem;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
  width: 2rem;
}

.hiw-step.is-active .hiw-num {
  background: #25384a;
  color: #fff;
}

.hiw-step-title {
  display: none;
  font-family: Lato, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding-right: .5rem;
}

.hiw-step.is-active .hiw-step-title {
  animation: hiw-fade .25s ease;
  display: inline;
}

.hiw-step-body {
  border-top: 1px solid #eef2f5;
  display: none;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: .65rem;
  min-height: 0;
  overflow-y: auto;
  padding: .75rem .75rem .75rem 0;
  scrollbar-width: thin;
}

.hiw-step.is-active .hiw-step-body {
  animation: hiw-fade .25s ease;
  display: block;
}

.hiw-step-body p {
  font-weight: 300;
  margin-bottom: .6rem;
}

@media (max-width: 991.98px) {
  .hiw-steps {
    contain: none;
  }

  .hiw-step-body {
    overflow: visible;
  }
}

@media (max-width: 575.98px) {
  .hiw-steps {
    position: relative;
  }

  .hiw-step.is-active .hiw-step-title {
    font-size: 1.05rem;
    left: 1rem;
    position: absolute;
    right: 1rem;
    top: 3.4rem;
  }

  .hiw-step-body {
    margin-top: 2.9rem;
  }
}

.hiw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .1rem 0 .75rem;
}

.hiw-chip {
  background: #fff;
  border: 1px solid #d5dde5;
  border-left: 4px solid #9aa8b4;
  border-radius: 999px;
  color: #25384a;
  font-family: Lato, system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  padding: .25rem .75rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.hiw-chip:hover {
  background: #f4f7f9;
}

.hiw-chip:focus-visible {
  outline: 2px solid #25384a;
  outline-offset: 2px;
}

.hiw-chip.hiw-def-baseload { border-left-color: #7f7f7f; }
.hiw-chip.hiw-def-heating { border-left-color: #c00000; }
.hiw-chip.hiw-def-cooling { border-left-color: #1f4e79; }

.hiw-chip.is-highlight { color: #fff; }
.hiw-chip.hiw-def-baseload.is-highlight { background: #7f7f7f; border-color: #7f7f7f; }
.hiw-chip.hiw-def-heating.is-highlight { background: #c00000; border-color: #c00000; }
.hiw-chip.hiw-def-cooling.is-highlight { background: #1f4e79; border-color: #1f4e79; }

.hiw-step-body .hiw-def-text {
  display: none;
}

.hiw-step-body .hiw-def-text.is-highlight {
  animation: hiw-fade .25s ease;
  display: block;
}

@keyframes hiw-fade {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hiw-explorer.is-ready .hiw-canvas * {
    transition-duration: 0s !important;
  }
}

/* How It Works: resource cards (publications, case studies, trainings) */
.hiw-resources {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 3.5rem;
}

@media (max-width: 991.98px) {
  .hiw-resources {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1200px) {
  .hiw-resources {
    margin-left: calc(-1 * clamp(0px, (100vw - 1140px) / 2 - 32px, 80px));
    margin-right: calc(-1 * clamp(0px, (100vw - 1140px) / 2 - 32px, 80px));
  }
}

.hiw-res-card {
  background: #fff;
  border: 1px solid #d5dde5;
  border-radius: .75rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.1rem 1.25rem .9rem;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.hiw-res-card:hover,
.hiw-res-card:focus-within {
  border-color: #9aa8b4;
  box-shadow: 0 10px 22px rgba(37, 56, 74, .08);
}

.hiw-res-head {
  align-items: center;
  display: flex;
  gap: .65rem;
  margin-bottom: .9rem;
}

.hiw-res-head h3 {
  flex: 1 1 auto;
  font-size: 1.35rem;
  margin: 0;
}

.hiw-res-icon {
  align-items: center;
  background: #e6eef3;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}

.hiw-res-icon svg {
  fill: none;
  height: 1.3rem;
  stroke: #25384a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 1.3rem;
}

.hiw-res-count {
  color: #7d8d9c;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}

.hiw-res-viewport {
  flex: 1 1 auto;
  overflow: hidden;
}

.hiw-res-track {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hiw-res-track {
    transition: none;
  }
}

.hiw-res-item {
  background: #f4f7f9;
  border-radius: .6rem;
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  gap: .4rem;
  min-height: 11rem;
  padding: 1rem 1.1rem;
}

.hiw-res-badge {
  color: #7d8d9c;
  font-size: .875rem;
  font-weight: 600;
}

.hiw-res-title {
  color: #25384a;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.hiw-res-title:hover {
  color: #1f77b4;
}

.hiw-res-venue {
  color: #5d6d7c;
  font-size: .875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.hiw-res-meta {
  color: #5d6d7c;
  font-size: .875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.hiw-res-file {
  color: #5d6d7c;
  font-size: .875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  margin-top: auto;
}

.hiw-res-list {
  color: #5d6d7c;
  font-size: .875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}

.hiw-res-list li {
  margin-bottom: .15rem;
}

.hiw-res-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: .75rem;
}

.hiw-res-arrow {
  align-items: center;
  background: #fff;
  border: 1px solid #c9d4dd;
  border-radius: 50%;
  color: #25384a;
  display: inline-flex;
  font-size: 1.2rem;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0 0 .1rem;
  transition: background .15s ease, color .15s ease;
  width: 2rem;
}

.hiw-res-arrow:hover,
.hiw-res-arrow:focus-visible {
  background: #25384a;
  color: #fff;
}

.hiw-res-dots {
  display: flex;
  gap: .4rem;
}

.hiw-res-dots button {
  background: #d5dde5;
  border: 0;
  border-radius: 999px;
  height: .5rem;
  padding: 0;
  transition: background .2s ease, width .2s ease;
  width: .5rem;
}

.hiw-res-dots button.is-on {
  background: #25384a;
  width: 1.4rem;
}

.hiw-res-card.is-single .hiw-res-nav {
  display: none;
}

.hiw-res-foot {
  color: #5d6d7c;
  font-size: .875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  margin: .6rem 0 -.1rem;
}

.hiw-res-card {
  cursor: pointer;
}

.hiw-res-expand {
  background: none;
  border: 0;
  color: #5d6d7c;
  flex: 0 0 auto;
  font-size: .875rem;
  font-weight: 600;
  padding: .2rem .1rem;
}

.hiw-res-expand:hover,
.hiw-res-expand:focus-visible {
  color: #25384a;
  text-decoration: underline;
}

.hiw-res-less,
.hiw-res-card.is-expanded .hiw-res-more {
  display: none;
}

.hiw-res-card.is-expanded .hiw-res-less {
  display: inline;
}

.hiw-res-card.is-expanded {
  border-color: #25384a;
  box-shadow: 0 12px 26px rgba(37, 56, 74, .1);
  grid-column: 1 / -1;
  order: -1;
}

.hiw-res-card.is-expanded .hiw-res-viewport {
  overflow: visible;
}

.hiw-res-card.is-expanded .hiw-res-track {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  transform: none !important;
  transition: none;
}

.hiw-res-card.is-expanded .hiw-res-item {
  animation: hiw-fade .3s ease;
  min-height: 0;
}

.hiw-res-card.is-expanded .hiw-res-nav,
.hiw-res-card.is-expanded .hiw-res-count {
  display: none;
}

@media (min-width: 992px) {
  .hiw-resources.has-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* How It Works: methodology header (matches the resource card headers) */
.hiw-ex-head {
  grid-column: 1 / -1;
  margin-bottom: -.25rem;
}

.hiw-ex-head {
  align-items: flex-start;
}

.hiw-ex-head .hiw-res-icon {
  background: #dfe8ee;
  margin-top: .05rem;
}

.hiw-ex-titles {
  flex: 1 1 auto;
  min-width: 0;
}

.hiw-ex-titles h3 {
  font-size: 1.35rem;
  margin: 0;
}

.hiw-ex-titles p {
  color: #3e5160;
  font-weight: 300;
  margin: .1rem 0 0;
}

.hiw-res-num {
  color: #2f6d44;
  font-weight: 700;
  white-space: nowrap;
}
