
.prevent-select {
  -webkit-user-select: none; 
  -ms-user-select: none; 
  user-select: none; 
}
.clickable {
  cursor: pointer;
}
.data-dependent-content {
  min-height: 80vh;
}
.notification {
  position: fixed;
  bottom: 20px; 
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  opacity: 0;
  transition:
    bottom 0.3s ease,
    opacity 0.3s ease;
  z-index: 4;
}
.notification > p {
  position: relative;
  font-family: 'Roboto';
  padding: 0 20px;
}
.notification > md-elevation {
  --md-elevation-level: 0;
  transition: --md-elevation-level 0.3s ease;
}
.notification.show {
  bottom: 30px; 
  opacity: 1;
}
.notification.show > md-elevation {
  --md-elevation-level: var(--final-elevation-level);
}
.inline-icon {
  vertical-align: text-bottom;
}
.inline-icon.end-icon {
  margin-left: 10px;
}
.inline-icon.start-icon {
  margin-right: 5px;
}
md-icon {
  height: 24px;
  width: 24px;
  font-size: 24px;
}
md-icon.small-icon {
  height: 15px;
  width: 15px;
  font-size: 15px;
}
md-icon.x-small-icon {
  height: 12px;
  width: 12px;
  font-size: 12px;
}
.primary-link,
a {
  color: var(--primary-color);
}
md-menu {
  --md-focus-ring-width: 0;
  --md-focus-ring-duration: 0;
}
.no-transition {
  transition: none !important;
}


body {
  --collapsed-side-nav-width: 54px;
  --expanded-side-nav-width: 194px;
  --page-body-padding-expanded-nav-left-right: 30px;
  --page-body-padding-expanded-nav-top-bottom: 60px;
}
#side-nav {
  max-width: var(--expanded-side-nav-width);
  width: 100%;
  height: 100vh;
  flex-grow: 1;
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  --md-menu-container-elevation: 0;
  --md-menu-container-shape: 0;
  --md-menu-item-label-text-size: small;
  transition: max-width 0.3s ease;
}
#side-nav.collapsed-side-nav {
  max-width: var(--collapsed-side-nav-width);
}
#side-nav.no-side-nav {
  max-width: 0;
  display: none;
}
#side-nav ul {
  padding-top: var(--page-body-padding-expanded-nav-top-bottom);
  padding-inline-start: unset;
  margin: 0;
  display: flex;
  flex-direction: column;
}
#side-nav li {
  display: flex;
  flex: 1;
}
#side-nav a {
  display: flex;
  flex: 1;
  gap: 1em;
  overflow: hidden;
  padding: 1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: none;
  align-items: center;
}
#side-nav a span  {
  display:block;
  overflow: hidden;
  text-wrap-mode: nowrap;
  text-overflow: ellipsis;
}
#side-nav a.selected {
  background-color: var(--more-muted-gray);
}
#view-submenu md-menu-item:focus {
  background-color: var(--muted-gray);
}
#page-body {
  padding: var(--page-body-padding-expanded-nav-top-bottom)
    var(--page-body-padding-expanded-nav-left-right);
  flex-grow: 1;
  margin-left: var(--expanded-side-nav-width);
  transition: all 0.3s ease;
  transition-property: margin-left, padding;
  background-color: white;
  z-index: 1;
  border-left: var(--primary-border);
}
#page-body.collapsed-side-nav {
  margin-left: var(--collapsed-side-nav-width);
  padding: var(--page-body-padding-expanded-nav-top-bottom)
    calc(
      var(--page-body-padding-expanded-nav-left-right) +
        (var(--expanded-side-nav-width) - var(--collapsed-side-nav-width)) / 2
    );
}
#page-body.no-side-nav {
  margin-left: 0;
  padding: var(--page-body-padding-expanded-nav-top-bottom) 5%;
}
#side-nav-collapse-button {
  width: 100%;
  --md-icon-button-state-layer-shape: 0;
  border-top: var(--primary-border);
}
#side-nav-collapse-icon {
  transition: transform 0.3s ease;
}


#page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  --page-header-height: 48px;
  height: var(--page-header-height);
  position: relative;
  margin-bottom: 20px;
}
#title-and-url {
  flex-grow: 1;
  display: flex;
  height: var(--page-header-height);
  width: 100%;
}
#title-and-url > a {
  text-decoration: none;
}
#title-and-url h1 {
  display: inline;
}
#crux-logo {
  height: var(--page-header-height);
}
.url-entry-form {
  --text-field-padding: 8px;
  --md-outlined-text-field-top-space: var(--text-field-padding);
  --md-outlined-text-field-bottom-space: var(--text-field-padding);
  --md-outlined-text-field-leading-space: var(--text-field-padding);
  --md-outlined-text-field-trailing-space: var(--text-field-padding);
  --md-outlined-text-field-error-hover-outline-color: var(--error);
  --md-outlined-text-field-error-hover-label-text-color: var(--error);
  height: var(--page-header-height);
  display: inline-block;
  vertical-align: top;
  margin-left: 10px;
  max-width: 700px;
  flex-grow: 1;
  padding-right: 20px;
}
#url-input-wrapper {
  width: 100%;
  position: relative;
}
#url-input {
  width: 100%;
  position: absolute; 
}
.view-selection-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  margin-right: 3%;
}
.view-selection {
  display: flex;
  height: 100%;
  position: relative;
  --md-elevation-level: var(--final-elevation-level);
  transition: 0.3s ease;
  border-radius: var(--border-radius);
}
.view-selection:hover {
  --md-elevation-level: calc(var(--final-elevation-level) * 2);
}
.submenu-anchor {
  --md-elevation-level: var(--final-elevation-level);
  --md-text-button-hover-state-layer-opacity: 0;
  --md-text-button-container-shape: var(--border-radius);
  transition: 0.3s ease;
  position: relative;
}
.view-button-content {
  margin: 0;
  line-height: 100%;
  padding: 0 10px;
}
.submenu-anchor,
.submenu > md-menu-item {
  
  white-space: nowrap;
}
.submenu {
  --md-menu-container-color: white;
}
.view-text {
  font-family: 'Roboto';
}
#view-selection-label {
  margin-right: 10px;
}
#copy-link-text {
  font-family: 'Roboto';
  color: var(--material-gray);
}


#preamble-wrapper {
  align-items: center;
  margin-bottom: 20px;
  max-width: 1200px;
}
#preamble-wrapper h2 {
  display: flex;
  align-items: center;
}
#preamble-wrapper > h2 > md-icon {
  margin-right: 10px;
}
#preamble {
  font-family: 'Google Sans';
  font-weight: normal;
  margin: 0;
}
#preamble p,
#preamble a {
  font-family: 'Google Sans' !important;
}



.cwv-summary-wrapper {
  border-radius: var(--border-radius);
  border: var(--primary-border);
  padding: 20px;
  margin-top: 30px;
}

.cwv-summary-wrapper > a {
  color: var(--muted-gray);
}

.cwv-summary-header {
  margin: 0;
  display: inline;
  font-family: 'Google Sans';
}

.cwv-summary-item {
  display: flex;
  align-items: center;
}

.cwv-summary-item-header {
  font-family: 'Roboto';
  margin: 0;
  font-weight: normal;
  display: inline-block;
}
.cwv-summary-item-header.as-of-date {
  font-size: medium;
}
.cwv-info-wrapper {
  position: relative;
  flex-grow: 1;
}
.cwv-info-wrapper > md-icon {
  max-height: 2.5em;
  display: flex;
  align-items: center;
}
.cwv-info-wrapper .icon-hover-show,
.cwv-info-wrapper .tooltip-hover-show,
.cwv-info-wrapper .icon-click-show {
  display: inline-block;
  opacity: 1;
  visibility: visible;
}

@media (min-width: 750px) {
  .cwv-info-wrapper {
    min-width: 200px;
  }
}

.cwv-metric-details {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.1s ease;
  display: none;
  position: absolute;
  padding: 6px;
  background-color: var(--more-muted-gray);
  border-radius: var(--border-radius);
  margin-left: 10px;
  margin-top: -10px;
  z-index: 1;
  box-shadow: var(--primary-box-shadow);    margin-top: -10px;
  border: 1px solid darkgrey;
}

.cwv-metric-details > p {
  margin: 0;
  font-family: 'Roboto';
  font-size: small;
}

.three-p75-display {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-evenly;
  padding-top: 2%;
}
.three-p75-display > .vis-wrapper {
  margin-left: 0 !important;
  border: none !important;
}
.bullet-wrapper {
  display: flex;
  margin-bottom: 10px;
}
.bullet-wrapper > .bullet {
  min-width: 30px;
}
.bullet-wrapper > .bullet-small {
  padding-top: 1px;
  font-size: 13px;
}
.cwv-description {
  font-family: 'Roboto';
}
.explore-more-button {
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: var(--border-radius);
  height: 30px;
  width: 230px;
  font-weight: bold;
  font-size: 0.875rem;
  margin-top: 10px;
  text-decoration: none;
  background-color: var(--more-muted-gray);
  padding: 5px 15px;
}
.explore-more-button:hover,
.explore-more-button:focus {
  background-color: var(--muted-gray);
}


.controls-card-wrapper {
  position: sticky;
  top: 5%;
  margin-bottom: 20px;
  z-index: 3;
  border-radius: var(--border-radius);
}

.controls-card {
  position: relative;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
}
.controls-card-wrapper > md-elevation {
  --md-elevation-level: var(--final-elevation-level);
}
.controls-card > summary {
  padding: 12px;
}
.controls-card > summary > span {
  color: var(--primary-color) !important;
}

details > summary {
  list-style: none; 
  font-family: 'Roboto';
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details > summary::-webkit-details-marker {
  display: none;
}

.controls-content {
  padding: 10px 20px;
}

.data-controls {
  max-width: 100%;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(100%, 1fr)
  ); 
  --row-height: 48px;
  box-sizing: border-box;
}

.data-controls > .controls-section {
  position: relative;
}

.data-controls > .controls-section > span {
  line-height: var(--row-height);
  vertical-align: middle;
  font-size: small;
  font-family: 'Roboto';
  text-align: right;
}

.data-controls > .controls-section > .inputs-wrapper {
  display: inline-block;
  position: absolute;
  left: 75px;
}

.controls-label {
  font-family: 'Roboto';
  font-size: small;
  display: inline-block;
  vertical-align: middle;
}
.form-factor-button-wrapper {
  display: inline-block;
  position: relative;
  margin-left: 8px;
}
.form-factor-button-wrapper:nth-child(1) {
  margin-left: 0 !important;
}
.group-button {
  margin-left: 4px;
  --md-outlined-button-container-shape: var(--border-radius);
  --md-outlined-button-container-height: 30px;
  --md-filled-button-container-shape: var(--border-radius);
  --md-filled-button-container-height: 30px;
}
.group-button.form-factor-button {
  margin-left: 8px;
}
.group-button:nth-child(1) {
  margin-left: 0 !important;
}
.button-decorator {
  font-family: 'Roboto';
  position: absolute;
  font-size: x-small;
  left: 5px;
  transform: translateY(-70%);
  color: var(--primary-color);
  background-color: white;
  border-radius: var(--border-radius);
  padding: 0 2px;
}
.controls-summary-wrapper {
  margin-top: 10px;
  padding: 5px;
  border-radius: var(--border-radius);
  background-color: var(--most-muted-gray);
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(100%, 1fr)
  ); 
}
.controls-summary {
  font-family: 'Roboto';
  font-size: x-small;
  padding: 3px;
  text-align: center;
  color: var(--material-gray);
}



#all-metrics-wrapper {
  margin-top: 10px;
  padding: 0 10px;
}
.metric-card {
  background-color: #fff;
  margin-top: 10px;
}
.unavailable {
  opacity: var(--unavailable-opacity);
}
.metric-card > summary {
  padding: 12px;
  border: var(--primary-border);
  border-radius: var(--border-radius);
}

.metric-display {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-evenly;
  padding: 2%;
}

.vis-wrapper {
  display: inline-block;
  --stack-width: 600px; 
  flex: 1 0 min(var(--stack-width), 100%);
  border: var(--primary-border);
  border-radius: var(--border-radius);
}

.vis-wrapper rect.summary-bar:focus {
  outline: none;
}


.vis-div {
  max-height: 100%;
}
svg {
  max-height: 100%;
}

.metric-info {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.category.legend-shape-label {
  padding-left: 5px;
}
.category {
  vertical-align: middle;
}
.category > span {
  color: black;
  font-family: 'Roboto';
}
.good {
  color: var(--crux-good);
}
.good-high-contrast {
  color: var(--crux-good-high-contrast);
  font-weight: bold;
}
.needs-improvement {
  color: var(--crux-needs-improvement);
}
.needs-improvement-high-contrast {
  color: var(--crux-needs-improvement-high-contrast);
  font-weight: bold;
}
.poor {
  color: var(--crux-poor);
}
.poor-high-contrast {
  color: var(--crux-poor);
  font-weight: bold;
}
.legend-wrapper {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.legend-column {
  flex-wrap: nowrap;
}
.legend-member {
  height: max-content;
  width: max-content;
}
.legend-member > span {
  font-size: small;
}

.metric-description > p {
  margin: 10px 0;
  font-family: 'Roboto';
  font-size: small;
}


.data-label,
.x-axis-label,
.y-axis-label {
  font-family: 'Roboto' !important;
}
.tooltip-text {
  font-family: 'Roboto' !important;
  margin: 3px 0;
  font-size: 14px;
}
.data-tooltip {
  position: absolute;
  visibility: hidden;
  padding: 10px;
  background: rgba(0, 0, 0);
  border-radius: 4px;
  color: #fff;
  z-index: 2;
}
.data-tooltip > ul {
  margin: 5px 0 0 0;
  list-style-type: none;
  padding-left: 10px;
}
.data-tooltip > p:nth-child(1) {
  margin: 0;
}

@media (max-width: 750px) {
  .desktop {
    display: none !important;
  }
  .data-controls > .controls-section > .inputs-wrapper {
    position: static;
    left: auto;
  }
  .submenu-anchor {
    gap: 0;
    padding: 0;
  }
  .data-controls > .controls-section > .inputs-wrapper {
    position: static;
    left: auto;
  }
  .data-controls > .controls-section > span {
    line-height: normal;
    vertical-align: baseline;
    display: block;
    margin: 1.5rem 0 0.75rem 0;
    text-align: left;
  }
  #page-body {
    padding: 5% !important;
    margin-left: 0 !important;
  }
  md-outlined-button {
    --md-outlined-button-label-text-size: small;
    --md-outlined-button-leading-space: 10px;
    --md-outlined-button-trailing-space: 10px;
  }
  md-filled-button {
    --md-filled-button-label-text-size: small;
    --md-filled-button-leading-space: 10px;
    --md-filled-button-trailing-space: 10px;
  }
  md-slider {
    min-inline-size: 150px;
  }
  .controls-label {
    font-size: x-small;
  }
  #preamble {
    font-size: small;
  }

  
  .cwv-metric-details {
    margin-left: -200px; 
  }

}
@media (min-width: 750px) {
  .mobile {
    display: none !important;
  }
  .data-controls {
    grid-template-columns: repeat(
      auto-fit,
      minmax(450px, 1fr)
    ); 
  }
  .controls-summary-wrapper {
    grid-template-columns: repeat(
      auto-fit,
      minmax(450px, 1fr)
    ); 
  }
  }

.survey-link-wrapper {
  border-radius: var(--border-radius);
  border: var(--primary-border);
  padding: 20px;
  margin-top: 30px;
  background-color: var(--more-muted-gray);
}
.survey-link-contents {
  display: flex;
  font-family: 'Roboto';
  margin: 0;
  font-weight: normal;
  display: inline-block;
}
