.portal-market__column--auto .portal-demo-grid > a {
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-content: stretch;
  align-items: center;
}

.portal-market__column--auto .portal-demo-grid strong,
.portal-market__column--auto .portal-demo-grid small,
.portal-market__column--auto .portal-demo-grid b {
  display: flex;
  height: 100%;
  min-width: 0;
  margin: 0;
  align-items: center;
  overflow: hidden;
  line-height: 1.2;
}

.portal-market__column--auto .portal-demo-grid strong {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.portal-market__column--auto .portal-demo-grid b {
  align-self: stretch;
}

.portal-news-tabs .portal-news-tabs__nav {
  border-bottom: 1px solid #dedfe1 !important;
}

.portal-news-tabs .portal-news-tabs__nav button:hover,
.portal-news-tabs .portal-news-tabs__nav button:focus-visible {
  color: var(--text, #202124);
  font-weight: 700;
}

html[data-theme="dark"] .portal-news-tabs .portal-news-tabs__nav,
.portal-home--dark .portal-news-tabs .portal-news-tabs__nav {
  border-bottom-color: #3a3f46 !important;
}

/* Home weather always occupies the full content width. */
.portal-home + .portal-weather,
.portal-weather {
  width: 100%;
}

.portal-weather > .portal-container {
  display: grid !important;
  width: min(1350px, calc(100% - 30px)) !important;
  max-width: 1350px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.portal-weather__head,
.portal-weather__week {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
}

@media (min-width: 801px) {
  .portal-weather__week {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 800px) {
  .portal-weather > .portal-container {
    width: calc(100% - 24px) !important;
  }

  .portal-weather__week {
    grid-template-columns: repeat(7, minmax(104px, 1fr)) !important;
    overflow-x: auto !important;
  }
}
