/* yr.no authentic design — NRK Sans Variable, exact color tokens, card system */

/* NRK Sans Variable — yr.no's actual font */
@font-face {
  font-family: "NRK Sans Variable";
  font-display: swap;
  src: url("https://static.nrk.no/nrk-sans/1.2.1/NRKSans_Variable.woff2") format("woff2");
  font-weight: 1 950;
}
@font-face {
  font-family: "NRK Sans Variable";
  font-style: italic;
  font-display: swap;
  src: url("https://static.nrk.no/nrk-sans/1.2.1/NRKSans_Variable_Italic.woff2") format("woff2");
  font-weight: 1 950;
}

:root {
  /* yr.no color tokens — light mode */
  --color-background-lower: #eef5ff;
  --color-background-base: #ffffff;
  --color-background-elevated: #ffffff;
  --color-background-hover: #d9e9ff;
  --color-background-muted-core-blue: #eef5ff;
  --color-background-subtle-core-blue: #d9e9ff;
  --color-background-gradient-start: #eef5ff;
  --color-background-gradient-stop: #b2cff5;
  --color-text-base: #061629;
  --color-text-subtle: #4c5a66;
  --color-text-active: #1767ce;
  --color-text-link: #1767ce;
  --color-fill-active: #1767ce;
  --color-fill-subtle-core-blue: #b2cff5;
  --color-stroke-subtle-core-blue: #b2cff5;
  --color-stroke-base: #d2dce8;
  --color-graph-axis: #d2dce8;

  /* Crowd level colors */
  --crowd-empty: #f5f5f5;
  --crowd-quiet: #66bb6a;
  --crowd-moderate: #42a5f5;
  --crowd-busy: #fdd835;
  --crowd-crowded: #ef5350;
  --crowd-packed: #c62828;
  --crowd-full: #37474f;

  /* Bar chart */
  --bar-color: #5b9bd5;
  --bar-hover: #1767ce;

  /* Shadows */
  --card-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.01), 0px 2px 3px 0px rgba(0, 0, 0, 0.03);

  /* Font */
  --font: "NRK Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --color-background-lower: #0a2343;
  --color-background-base: #061629;
  --color-background-elevated: #061629;
  --color-background-hover: #0c366c;
  --color-background-muted-core-blue: #0a2343;
  --color-background-subtle-core-blue: #0c366c;
  --color-background-gradient-start: #0a2343;
  --color-background-gradient-stop: #061629;
  --color-text-base: #eef5ff;
  --color-text-subtle: #9ab;
  --color-text-active: #8bb5eb;
  --color-text-link: #8bb5eb;
  --color-fill-active: #8bb5eb;
  --color-fill-subtle-core-blue: #0c366c;
  --color-stroke-subtle-core-blue: #0c366c;
  --color-stroke-base: #1e3a5f;
  --color-graph-axis: #1e3a5f;
  --bar-color: #3d7ab5;
  --bar-hover: #8bb5eb;
  --card-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.05), 0px 2px 3px 0px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--color-background-lower);
  color: var(--color-text-base);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

/* Layout container — yr.no max-width */
.layout-container {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.0666rem;
}

/* Page header — yr.no style top bar */
.page-header {
  padding: 1.0666rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.page-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text-base);
}

.page-header__logo-icon {
  width: 2.6666rem;
  height: 2.6666rem;
  border-radius: 50%;
  object-fit: cover;
}

.page-header__logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6rem;
}

.page-header__toolbar {
  display: flex;
  align-items: center;
  gap: 0.5333rem;
}

.page-header__toolbar-button {
  background: none;
  border: none;
  color: var(--color-text-subtle);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 0.5333rem;
  font-size: 0.8666rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1333rem;
  height: 2.1333rem;
  transition: background 100ms;
}

.page-header__toolbar-button:hover {
  background: var(--color-background-hover);
  color: var(--color-text-base);
}

.page-header__lang-select {
  background: var(--color-background-base);
  border: 1px solid var(--color-stroke-subtle-core-blue);
  color: var(--color-text-base);
  padding: 0.4rem 0.8rem;
  border-radius: 0.5333rem;
  font-size: 0.8666rem;
  font-family: var(--font);
  cursor: pointer;
}

/* Location section — yr.no page-header__location style */
.page-location {
  padding: 0 0 0.5333rem;
}

.page-location__heading {
  font-size: 1.4666rem;
  line-height: 1.8666rem;
  letter-spacing: -0.22px;
  font-weight: 700;
  color: var(--color-text-base);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-location__details {
  color: var(--color-text-subtle);
  font-size: 0.8666rem;
  line-height: 1.2rem;
  margin-top: 0.2666rem;
}

/* Location header nav — yr.no tab navigation */
.location-header {
  color: var(--color-text-base);
  position: relative;
  border-bottom: 1px solid var(--color-stroke-subtle-core-blue);
}

.location-header__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.location-header__menu-item {
  margin: 0 0.8rem;
  list-style: none;
}

.location-header__menu-item:first-child {
  margin-inline-start: 0;
}

.location-header__menu-link {
  display: flex;
  align-items: center;
  height: 2.4rem;
  text-decoration: none;
  color: var(--color-text-subtle);
  font-size: 0.8666rem;
  line-height: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}

.location-header__menu-link:hover {
  color: var(--color-text-active);
}

.location-header__menu-link.active {
  color: var(--color-text-base);
  font-weight: 700;
}

.location-header__menu-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-fill-active);
  border-radius: 1.5px 1.5px 0 0;
}

/* Main content */
main.layout-container {
  padding-top: 0.5333rem;
  padding-bottom: 1.6rem;
}

/* Now hero — yr.no gradient card */
.now-hero {
  margin-bottom: 1.0666rem;
}

.now-hero__slide-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.0666rem;
  padding-bottom: 0.5333rem;
}

.now-hero__slide {
  background: linear-gradient(var(--color-background-gradient-stop), var(--color-background-gradient-start));
  border-radius: 0.5333rem;
  padding: 1.0666rem;
  box-shadow: var(--card-shadow);
  position: relative;
  min-height: 8rem;
}

[data-theme="dark"] .now-hero__slide {
  background: var(--color-background-base);
}

.now-hero__heading {
  font-size: 0.8666rem;
  line-height: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.0666rem;
  display: flex;
  align-items: center;
  gap: 0.5333rem;
}

.now-hero__heading-icon {
  color: var(--color-fill-active);
}

/* Current conditions — yr.no next-hour style */
.now-hero__next-hour-content {
  display: flex;
  align-items: center;
}

.now-hero__next-hour-main {
  display: flex;
  align-items: center;
  flex: 1;
}

.now-hero__next-hour-symbol {
  width: 4rem;
  height: 4rem;
  position: relative;
  flex-shrink: 0;
}

.now-hero__temperature-main {
  font-size: 2.6666rem;
  line-height: 2.9333rem;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
  margin-left: 0.5333rem;
  font-weight: 700;
}

.now-hero__next-hour-details {
  flex: 1;
  margin-left: 1.0666rem;
}

.now-hero__next-hour-detail {
  display: flex;
  align-items: center;
  gap: 0.5333rem;
  margin-bottom: 0.4rem;
}

.now-hero__next-hour-icon {
  width: 1.0666rem;
  height: 1.0666rem;
  flex-shrink: 0;
  color: var(--color-text-subtle);
}

.now-hero__next-hour-text {
  font-size: 0.8666rem;
  line-height: 1.2rem;
  color: var(--color-text-subtle);
}

.now-hero__next-hour-value {
  font-size: 1.0666rem;
  line-height: 1.4666rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Nowcast graph — yr.no now-graph style */
.now-graph {
  padding: 0 0.5333rem;
  position: relative;
}

.now-graph__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 3.2rem;
  flex: 1;
  min-width: 0;
}

.now-graph__bar {
  flex: 1;
  background: var(--color-fill-active);
  opacity: 0.45;
  border-radius: 1px 1px 0 0;
  min-height: 2px;
  transition: opacity 100ms;
  cursor: pointer;
  position: relative;
}

.now-graph__bar.current {
  opacity: 1;
}

.now-graph__bar:hover {
  opacity: 0.8;
}

.now-graph__bar:hover::after {
  content: attr(data-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text-base);
  color: var(--color-background-base);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.6rem;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  margin-bottom: 4px;
}

.now-graph__x-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.0666rem;
  color: var(--color-text-subtle);
}

.now-graph__y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 0.4rem;
  height: 3.2rem;
  min-width: 1.6rem;
  font-size: 0.6rem;
  color: var(--color-text-subtle);
}

.now-graph__chart-with-axis {
  display: flex;
  gap: 0;
}

/* Daily weather list — yr.no forecast cards */
.daily-weather-list {
  margin: 0 -0.5333rem;
}

.daily-weather-list__headers {
  display: grid;
  grid-template-columns: 11rem 2fr 2.5fr;
  column-gap: 1.6rem;
  padding: 0 1.0666rem;
  margin-bottom: 0.1333rem;
  align-items: end;
}

.daily-weather-list__symbols-headers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 0.8666rem;
  line-height: 1.2rem;
  color: var(--color-text-subtle);
  font-weight: 500;
}

.daily-weather-list__symbols-headers span {
  justify-self: center;
  margin-bottom: 0.5333rem;
}

.daily-weather-list__forecast-headers {
  display: grid;
  grid-template-columns: auto auto auto;
  column-gap: 1rem;
  font-size: 0.8666rem;
  line-height: 1.2rem;
  color: var(--color-text-subtle);
  font-weight: 500;
}

.daily-weather-list__forecast-headers span {
  justify-self: end;
  margin-bottom: 0.5333rem;
}

.daily-weather-list__intervals {
  margin: 0.1333rem 0.5333rem;
  list-style: none;
}

/* Day card — yr.no daily-weather-list-item */
.daily-weather-list-item {
  display: grid;
  grid-template-columns: 11rem 2fr 2.5fr;
  grid-template-rows: 5.6rem;
  column-gap: 1.6rem;
  grid-template-areas: "date symbols forecast";
  padding: 0 0.9333rem;
  background-color: var(--color-background-base);
  border: 2px solid transparent;
  border-radius: 0.5333rem;
  margin-bottom: 0.5333rem;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 100ms ease-out;
  align-items: center;
}

.daily-weather-list-item:hover {
  border-color: var(--color-stroke-subtle-core-blue);
}

.daily-weather-list-item:last-child {
  margin-bottom: 0;
}

.daily-weather-list-item__date {
  grid-area: date;
  white-space: nowrap;
  align-self: center;
}

.daily-weather-list-item__date-link {
  text-decoration: none;
  color: inherit;
}

.daily-weather-list-item__date h3 {
  font-size: 1.0666rem;
  line-height: 1.4666rem;
  font-weight: 700;
}

.daily-weather-list-item__symbols {
  grid-area: symbols;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-self: center;
}

.daily-weather-list-item__symbol {
  justify-self: center;
  position: relative;
  height: 2.6666rem;
  width: 2.6666rem;
}

.daily-weather-list-item__symbol svg {
  width: 100%;
  height: 100%;
}

/* Climber face images — soft circular gradient edges */
.crowd-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, black 55%, transparent 75%);
  mask-image: radial-gradient(circle, black 55%, transparent 75%);
}

.crowd-face--hero {
  width: 4rem;
  height: 4rem;
}

.period-count {
  font-size: 0.8rem;
  line-height: 1.0666rem;
  color: var(--color-text-subtle);
  text-align: center;
  display: block;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Labels hidden on desktop (headers row visible instead) */
.period-label,
.forecast-label {
  display: none;
}

.daily-weather-list-item__forecast {
  grid-area: forecast;
  display: grid;
  grid-template-columns: auto auto auto;
  column-gap: 1rem;
  align-self: center;
}

.daily-weather-list-item__visitors {
  justify-self: end;
  font-size: 1.0666rem;
  line-height: 1.4666rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.daily-weather-list-item__chalk {
  justify-self: end;
  font-size: 1.0666rem;
  line-height: 1.4666rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-subtle);
}

.daily-weather-list-item__humidity {
  justify-self: end;
  font-size: 1.0666rem;
  line-height: 1.4666rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-subtle);
}

/* Hourly table — yr.no fluid-table style */
.fluid-table {
  background-color: var(--color-background-base);
  border-radius: 0.5333rem;
  padding: 1.0666rem;
  box-shadow: var(--card-shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fluid-table table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
}

.fluid-table th {
  font-size: 0.8666rem;
  line-height: 1.2rem;
  color: var(--color-text-subtle);
  font-weight: 500;
  text-align: left;
  padding: 0 0.2666rem;
  height: 2.2rem;
  border-bottom: 1px solid var(--color-stroke-subtle-core-blue);
}

.fluid-table td {
  font-size: 1.0666rem;
  line-height: 1.4666rem;
  padding: 0 0.2666rem;
  height: 2.7333rem;
  border-bottom: 1px solid var(--color-stroke-subtle-core-blue);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.fluid-table tr:last-child td {
  border-bottom: none;
}

.fluid-table tbody tr:hover td {
  background-color: var(--color-background-hover);
  cursor: pointer;
}

.day-header-row td {
  background: var(--color-background-lower) !important;
  font-weight: 700;
  font-size: 1.0666rem;
  padding: 0.8rem 0.2666rem;
}

.feels-like-cell {
  font-size: 0.8666rem;
  color: var(--color-text-subtle);
}

/* Crowd dots */
.crowd-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
}

.crowd-dot.empty { background: var(--crowd-empty); }
.crowd-dot.quiet { background: var(--crowd-quiet); }
.crowd-dot.moderate { background: var(--crowd-moderate); }
.crowd-dot.busy { background: var(--crowd-busy); }
.crowd-dot.crowded { background: var(--crowd-crowded); }
.crowd-dot.packed { background: var(--crowd-packed); }
.crowd-dot.full { background: var(--crowd-full); }

/* History section — yr.no button-group + graph */
.history-section {
  margin: 1.0666rem 0;
}

.button-group {
  display: flex;
  margin-bottom: 1.0666rem;
}

.button-group__content {
  display: flex;
  gap: 0.5333rem;
  padding: 0.2666rem;
  border-radius: 0.5333rem;
  background-color: var(--color-background-base);
  box-shadow: var(--card-shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.button-group__button {
  flex: 1 1 0;
  text-decoration: none;
  text-align: center;
  padding: 0.4rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.8666rem;
  line-height: 1.2rem;
  font-weight: 500;
  color: var(--color-text-base);
  transition: background 100ms;
  white-space: nowrap;
}

.button-group__button:hover {
  background: var(--color-background-muted-core-blue);
}

.button-group__button.active {
  background: var(--color-background-subtle-core-blue);
  font-weight: 700;
}

/* History chart — yr.no graph-shell style */
.history-chart {
  background: var(--color-background-base);
  border-radius: 0.5333rem;
  padding: 1.0666rem;
  box-shadow: var(--card-shadow);
}

.chart-with-axis {
  display: flex;
  gap: 0;
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 0.5333rem;
  height: 180px;
  min-width: 2rem;
  font-size: 0.8rem;
  line-height: 1.0666rem;
  color: var(--color-text-subtle);
}

.chart-area {
  flex: 1;
  position: relative;
  min-width: 0;
}

.y-gridlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.y-gridlines .gridline {
  border-top: 1px solid var(--color-graph-axis);
  width: 100%;
}

.history-bars {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 180px;
  min-width: 100%;
  position: relative;
}

.history-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-width: 0;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.history-bar-group:hover .history-bar {
  background: var(--bar-hover);
}

.history-bar {
  background: var(--bar-color);
  border-radius: 2px 2px 0 0;
  min-height: 1px;
  width: 100%;
  transition: background 100ms;
}

.bar-xlabel {
  position: absolute;
  bottom: -18px;
  left: 0;
  font-size: 0.8rem;
  line-height: 1.0666rem;
  color: var(--color-text-subtle);
  white-space: nowrap;
}

.chart-tooltip {
  position: absolute;
  background: var(--color-text-base);
  color: var(--color-background-base);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.1s;
}

/* Date picker */
.date-picker-section {
  display: flex;
  align-items: center;
  gap: 0.5333rem;
  margin-bottom: 1.0666rem;
  font-size: 0.8666rem;
  color: var(--color-text-subtle);
}

.date-picker-section label {
  font-weight: 500;
}

.date-picker-section input[type="date"] {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-stroke-subtle-core-blue);
  border-radius: 0.4rem;
  font-size: 0.8666rem;
  background: var(--color-background-base);
  color: var(--color-text-base);
  font-family: var(--font);
}

.date-picker-section .go-btn {
  padding: 0.4rem 1rem;
  background: var(--color-fill-active);
  color: white;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.8666rem;
  font-weight: 500;
  font-family: var(--font);
  transition: background 100ms;
}

.date-picker-section .go-btn:hover {
  opacity: 0.85;
}

/* Footer — yr.no page-footer */
.page-footer {
  padding-top: 1.6rem;
  padding-bottom: 2.6666rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-subtle);
}

.page-footer a {
  color: var(--color-text-subtle);
  text-decoration: none;
}

.page-footer a:hover {
  text-decoration: underline;
}

.page-footer__inner {
  border-top: 1px solid var(--color-stroke-subtle-core-blue);
  padding-top: 1.6rem;
  text-align: center;
  font-size: 0.8666rem;
  line-height: 1.2rem;
  color: var(--color-text-subtle);
}

.page-footer__inner a {
  color: var(--color-text-link);
  text-decoration: none;
}

.page-footer__inner a:hover {
  text-decoration: underline;
}

/* Tab content visibility */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Responsive — mobile first breakpoint at 640px */
@media (max-width: 40em) {
  .layout-container {
    padding: 0 0.5333rem;
  }

  .page-header {
    padding: 0.6rem 0;
    gap: 0.5rem;
  }

  .page-header__logo-icon {
    width: 2.1333rem;
    height: 2.1333rem;
  }

  .page-header__logo-text {
    font-size: 1.0666rem;
  }

  .page-header__lang-select {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }

  .search-label {
    display: none;
  }

  .page-location__heading {
    font-size: 1.2rem;
    line-height: 1.6rem;
  }

  .page-location__details {
    font-size: 0.7333rem;
  }

  .now-hero__slide-container {
    grid-template-columns: 1fr;
  }

  .now-hero__temperature-main {
    font-size: 1.8rem;
    line-height: 2rem;
  }

  .now-hero__next-hour-details {
    margin-left: 0.6rem;
  }

  .daily-weather-list {
    margin: 0;
  }

  .daily-weather-list__headers {
    display: none;
  }

  .daily-weather-list__intervals {
    margin: 0.1333rem 0;
  }

  .daily-weather-list-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "date"
      "symbols"
      "forecast";
    padding: 0.5rem 0.8rem;
    gap: 0.2rem;
  }

  .daily-weather-list-item__date h3 {
    font-size: 0.9333rem;
    line-height: 1.3333rem;
  }

  .daily-weather-list-item__symbols {
    gap: 0;
    justify-items: center;
  }

  .daily-weather-list-item__symbol {
    width: 2.4rem;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .daily-weather-list-item__symbol .crowd-face {
    width: 2.4rem;
    height: 2.4rem;
  }

  .period-label {
    display: block;
    font-size: 0.6666rem;
    color: var(--color-text-subtle);
    text-align: center;
    margin-bottom: 0.1rem;
  }

  .period-count {
    font-size: 0.7333rem;
  }

  .forecast-label {
    display: inline;
    font-size: 0.7333rem;
    font-weight: 400;
    color: var(--color-text-subtle);
    margin-right: 0.2rem;
  }

  .daily-weather-list-item__forecast {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    padding-top: 0.3rem;
    margin-top: 0.1rem;
    border-top: 1px solid var(--color-stroke-subtle-core-blue);
  }

  .daily-weather-list-item__visitors {
    font-size: 0.8666rem;
    font-weight: 700;
    justify-self: start;
  }

  .daily-weather-list-item__chalk {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
    justify-self: center;
  }

  .daily-weather-list-item__humidity {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
    justify-self: end;
  }

  .fluid-table th,
  .fluid-table td {
    padding: 0 0.4rem;
    font-size: 0.8666rem;
  }

  .location-header__menu-item {
    margin: 0 0.5333rem;
  }

  .y-axis {
    height: 130px;
    font-size: 0.6rem;
  }

  .history-bars {
    height: 130px;
  }

  .bar-xlabel {
    font-size: 0.6rem;
  }

  .trend-overlay {
    height: 130px;
  }
}

/* Trend line overlay */
.trend-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 2;
}

/* Search dropdown — yr.no style */
.search-container {
  position: relative;
}

.search-toggle {
  gap: 0.4rem;
  width: auto !important;
  padding: 0.4rem 0.6rem !important;
}

.search-label {
  font-size: 0.8666rem;
  font-weight: 500;
}

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: 20rem;
  background: var(--color-background-base);
  border-radius: 0.5333rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06);
  z-index: 100;
  overflow: hidden;
}

.search-dropdown.open {
  display: block;
}

.search-dropdown__header {
  padding: 0.8rem 1rem 0.4rem;
  font-size: 0.7333rem;
  font-weight: 700;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-dropdown__list {
  list-style: none;
  padding: 0 0 0.4rem;
}

.search-dropdown__list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--color-text-base);
  transition: background 100ms;
}

.search-dropdown__list li a:hover {
  background: var(--color-background-hover);
}

.search-dropdown__icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  color: var(--color-text-subtle);
}

.search-dropdown__name {
  font-size: 0.8666rem;
  font-weight: 500;
  flex-shrink: 0;
}

.search-dropdown__region {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

/* History page title */
.history-page-title {
  font-size: 1.2rem;
  line-height: 1.6rem;
  font-weight: 700;
  margin: 1.0666rem 0 0.8rem;
}
