:root {
  --ink: #263f4b;
  --muted: #586d71;
  --paper: #edf1ed;
  --line: #cfdad4;
  --accent: #386451;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  transition:
    background var(--duration-quick),
    transform var(--duration-quick),
    color var(--duration-quick);
}
button:active {
  transform: scale(0.96);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
::selection {
  background: #d3dfad;
  color: #203c35;
}
::-webkit-scrollbar {
  height: 5px;
  width: 7px;
}
::-webkit-scrollbar-thumb {
  background: #9cad9e;
  border-radius: 8px;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  text-wrap: balance;
  font-weight: 500;
  letter-spacing: -0.03em;
}
button svg {
  pointer-events: none;
}
svg.icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 48px;
}
header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search {
  position: relative;
}
.searchbox {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff8;
  border: 1px solid #cfd9d2;
  border-radius: 9px;
  padding: 0 14px;
  width: 258px;
}
.searchbox input {
  background: transparent;
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  height: 43px;
  color: var(--ink);
}
input::placeholder {
  color: #637573;
}
.searchbox .icon {
  width: 18px;
}
.suggestions {
  position: absolute;
  top: 52px;
  left: 0;
  width: 340px;
  max-width: 85vw;
  background: #f9fbf7;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 35px #203d3926;
  z-index: 10;
}
.suggestions:empty {
  display: none;
}
.suggestions button {
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  padding: 13px;
  border-radius: 7px;
}
.suggestions button:hover,
.suggestions button:focus {
  background: #e4ece3;
}
.suggestions small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.search-message {
  padding: 15px;
  color: var(--muted);
}
.location-button,
.unit {
  height: 44px;
  border: 1px solid #cfd9d2;
  border-radius: 9px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
}
.location-button:hover {
  background: #dde7dd;
}
.units {
  display: flex;
  margin-left: 7px;
}
.unit {
  border: 0;
  padding: 0 10px;
  color: var(--muted);
}
.unit[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 600;
  background: #dce5dc;
}
.hero {
  height: 490px;
  position: relative;
  border-radius: 16px;
  isolation: isolate;
  overflow: hidden;
  background: #a6c4cd;
  color: white;
  box-shadow: 0 15px 45px -30px #26493980;
}
#landscape {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: -3;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 36, 40, 0.58), transparent 70%),
    linear-gradient(0deg, rgba(12, 35, 30, 0.6), transparent 30%);
  z-index: -1;
}
.hero-content {
  padding: 43px 46px;
}
.place-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #edf4ed;
}
.place-line svg {
  width: 16px;
}
.hero h1 {
  font-size: 38px;
  margin-top: 13px;
  letter-spacing: -1px;
}
.datetime {
  margin-top: 8px;
  color: #e4ede9;
  font-size: 13px;
}
.temperature {
  display: flex;
  align-items: flex-start;
  font-size: 100px;
  font-weight: 300;
  letter-spacing: -4px;
  line-height: 1.1;
  margin: 22px 0 7px;
  font-variant-numeric: tabular-nums;
}
.temperature span:last-child {
  font-size: 38px;
  letter-spacing: -1px;
  margin-top: 10px;
}
.condition {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
}
.feels {
  color: #edf3ec;
  margin-top: 10px;
  font-size: 13px;
}
.highlow {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  font-size: 14px;
}
.hero-bottom {
  position: absolute;
  bottom: 24px;
  left: 46px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}
.live {
  display: flex;
  align-items: center;
  gap: 7px;
}
.live:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8e8ae;
}
.return {
  border: 1px solid #ffffff66;
  background: #f4f8ee22;
  color: white;
  border-radius: 25px;
  padding: 10px 16px;
}
.return[hidden] {
  display: none;
}
.status {
  min-height: 42px;
  padding: 11px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.status button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.status.error {
  color: #853f2c;
}
.status-message {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid #9bada3;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 21px 0 21px;
}
h2 {
  font-size: 22px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
}
.hour-nav {
  display: flex;
  gap: 7px;
}
.round {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.round:hover {
  background: #dfe8dd;
}
.round svg {
  width: 17px;
}
.hour-scroll {
  overflow: auto;
  scroll-behavior: smooth;
  padding-bottom: 9px;
  scroll-snap-type: x proximity;
}
.hour-inner {
  position: relative;
  min-width: 1920px;
  height: 187px;
}
.hour-list {
  display: flex;
  position: absolute;
  inset: 0;
}
.hour {
  flex: 0 0 80px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 9px;
  scroll-snap-align: start;
  font-size: 12px;
  position: relative;
}
.hour:hover {
  background: #dce6dd80;
}
.hour[aria-pressed="true"] {
  background: #d7e3d6;
}
.hour .icon {
  width: 26px;
  height: 26px;
  color: #54716a;
}
.hour .hour-temp {
  font-size: 17px;
  margin-top: 17px;
  font-weight: 500;
}
.hour .rain {
  font-size: 11px;
  color: #4d737f;
  display: flex;
  gap: 3px;
  align-items: center;
}
.rain svg {
  width: 10px;
  height: 12px;
}
.temp-graph {
  position: absolute;
  left: 0;
  top: 65px;
  width: 1920px;
  height: 25px;
  pointer-events: none;
  z-index: 1;
}
.lower {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 48px;
  margin-top: 28px;
}
.week {
  min-width: 0;
}
.week-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.day {
  width: 100%;
  display: grid;
  grid-template-columns: 72px 28px 1fr 34px 90px 34px 46px;
  align-items: center;
  gap: 9px;
  min-height: 55px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  text-align: left;
}
.day:hover {
  background: #e0e8de;
}
.day[aria-pressed="true"] {
  background: #dce6d9;
}
.day .desc {
  color: var(--muted);
  font-size: 12px;
}
.day .icon {
  width: 22px;
}
.day .min {
  color: var(--muted);
  text-align: right;
}
.range {
  height: 4px;
  border-radius: 3px;
  background: #c9d5c8;
  position: relative;
}
.range span {
  height: 4px;
  position: absolute;
  border-radius: 3px;
  background: linear-gradient(90deg, #94bdb4, #e2c376);
}
.day .prob {
  font-size: 11px;
  text-align: right;
  color: #4b737d;
}
.details {
  min-width: 0;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f9fbf55c;
  border-radius: 12px;
  overflow: hidden;
}
.metric {
  min-height: 120px;
  padding: 20px 21px;
  border-bottom: 1px solid #d0dacf;
  border-right: 1px solid #d0dacf;
}
.metric:nth-child(3n) {
  border-right: 0;
}
.metric:nth-child(n + 4) {
  border-bottom: 0;
}
.metric-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.metric-title .icon {
  width: 17px;
  height: 17px;
}
.metric-value {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 3px;
}
.metric-foot {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.sun-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 22px 8px 0;
}
.sun-time {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sun-time svg {
  width: 25px;
  height: 25px;
  color: #8a7848;
}
.sun-time small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.sun-time strong {
  font-weight: 500;
  font-size: 16px;
}
.sun-arc {
  width: 110px;
  height: 38px;
  color: #adbb9b;
}
.detail-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
  min-height: 17px;
}
footer {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  padding: 23px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}
footer a {
  color: inherit;
  text-underline-offset: 3px;
}
.empty {
  padding: 35px 12px;
  color: var(--muted);
  font-size: 13px;
}
.hero.loading .temperature {
  opacity: 0.5;
}
.landscape-caption {
  font-size: 11px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .hero {
    height: 530px;
  }
}
@media (max-width: 1100px) {
  .shell {
    padding: 0 28px;
  }
  .lower {
    gap: 25px;
  }
  .day {
    grid-template-columns: 60px 24px 1fr 30px 64px 28px 35px;
    gap: 6px;
    padding: 0 8px;
  }
  .day .desc {
    font-size: 11px;
  }
  .metric {
    padding: 18px 14px;
  }
  .metric-title {
    font-size: 11px;
  }
}
@media (max-width: 850px) {
  header {
    height: 86px;
  }
  .location-button span {
    display: none;
  }
  .location-button {
    padding: 0 12px;
  }
  .searchbox {
    width: 220px;
  }
  .lower {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero {
    height: 470px;
  }
  .hero-content {
    padding: 35px;
  }
  .hero-bottom {
    left: 35px;
  }
  .day {
    grid-template-columns:
      80px 32px 1fr 40px minmax(70px, 160px)
      40px 45px;
    min-height: 53px;
  }
  .day .desc {
    font-size: 12px;
  }
  .metric {
    padding: 22px;
  }
  .details-grid {
    margin-top: 6px;
  }
  .sun-panel {
    padding: 25px 15px;
  }
  .details .section-heading {
    margin-top: 25px;
  }
}
@media (max-width: 580px) {
  .shell {
    padding: 0 17px;
  }
  header {
    height: auto;
    flex-wrap: wrap;
    padding: 21px 0 17px;
    gap: 17px;
  }
  .tools {
    display: contents;
  }
  .units {
    margin-left: auto;
    order: 0;
  }
  .search {
    order: 1;
    flex: 1;
  }
  .searchbox {
    width: 100%;
    height: 44px;
  }
  .location-button {
    order: 2;
  }
  .hero {
    height: 485px;
    border-radius: 12px;
  }
  .hero-content {
    padding: 29px 25px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .temperature {
    font-size: 88px;
    margin-top: 20px;
  }
  .hero-bottom {
    left: 25px;
    right: 20px;
    bottom: 21px;
    flex-wrap: wrap;
  }
  .live {
    font-size: 10px;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #102b3799, transparent 100%),
      linear-gradient(0deg, #102e3190, transparent 40%);
  }
  .section-heading {
    margin: 21px 0 16px;
  }
  h2 {
    font-size: 20px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .day {
    grid-template-columns: 50px 23px 1fr 28px 55px 28px 32px;
    gap: 5px;
    padding: 0 7px;
    font-size: 12px;
    min-height: 57px;
  }
  .day .desc {
    font-size: 10px;
    max-width: 89px;
  }
  .day .prob {
    font-size: 10px;
  }
  .lower {
    margin-top: 18px;
  }
  .metric {
    padding: 17px 12px;
    min-height: 117px;
  }
  .metric-title {
    gap: 5px;
    font-size: 10px;
  }
  .metric-title .icon {
    width: 15px;
  }
  .metric-value {
    font-size: 23px;
  }
  .metric-foot {
    font-size: 10px;
  }
  .sun-panel {
    padding: 24px 5px 0;
  }
  .sun-time {
    gap: 8px;
  }
  .sun-arc {
    width: 70px;
  }
  footer {
    margin-top: 32px;
    flex-direction: column;
    gap: 9px;
  }
  .status {
    font-size: 11px;
    align-items: flex-start;
  }
  .return {
    font-size: 11px;
  }
}
@media (max-width: 580px) {
  header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
  }
  .units {
    grid-column: 3;
    grid-row: 1;
  }
  .search {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .location-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .searchbox {
    width: 100%;
  }
  .section-heading:has(.hour-nav) p {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Fixed landscape with translucent, blurred information panels. */
:root {
  --ink: #f1f6f2;
  --muted: #cedbd6;
  --paper: #203e46;
  --line: #ffffff26;
  --accent: #b7d3bf;
  --glass: rgba(12, 23, 26, 0.38);
}
body {
  isolation: isolate;
  min-height: 100vh;
}
.world {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: #567780;
}
.world #landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.world .hero-shade {
  z-index: 1;
  background: linear-gradient(180deg, #10252e12 35%, #10252e40);
}
.shell {
  padding-bottom: 24px;
}
header {
  height: 94px;
  position: relative;
  z-index: 5;
}
.tools,
.hero-content,
.hero-bottom,
.status,
.hour-panel,
.week,
.details,
footer {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 10px 32px -20px #071c27a6;
}
.tools {
  padding: 8px;
}
.searchbox,
.location-button {
  background: #ffffff09;
  border-color: var(--line);
}
.searchbox input {
  color: var(--ink);
}
input::placeholder {
  color: var(--muted);
}
.location-button:hover,
.unit[aria-pressed="true"] {
  background: #ffffff20;
}
.suggestions {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--ink);
}
.suggestions button:hover,
.suggestions button:focus {
  background: #ffffff15;
}
.hero {
  height: clamp(450px, 58vh, 620px);
  background: transparent;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
  isolation: auto;
}
.hero-content {
  width: min(390px, 100%);
  padding: 28px 32px;
}
.hero h1 {
  font-size: 34px;
}
.temperature {
  font-size: 88px;
  margin-top: 17px;
}
.highlow {
  margin-top: 16px;
}
.hero-bottom {
  left: 0;
  right: auto;
  bottom: 0;
  max-width: 100%;
  padding: 13px 18px;
  flex-wrap: wrap;
}
.return {
  padding: 8px 12px;
}
.status {
  margin-top: 12px;
  padding: 12px 18px;
}
.status.error {
  color: #ffcebd;
}
.hour-panel {
  margin-top: 18px;
  padding: 24px;
}
.hour-panel .section-heading,
.week .section-heading,
.details .section-heading {
  margin: 0 0 20px;
}
.round:hover,
.hour:hover,
.day:hover {
  background: #ffffff12;
}
.hour[aria-pressed="true"],
.day[aria-pressed="true"] {
  background: #c0ddbe26;
}
.hour .icon,
.hour .rain,
.day .prob {
  color: #c1ddd9;
}
.range {
  background: #ffffff22;
}
.lower {
  gap: 20px;
  margin-top: 20px;
}
.week,
.details {
  padding: 24px;
}
.day {
  grid-template-columns: 60px 24px 1fr 30px 70px 30px 36px;
  gap: 7px;
}
.details-grid {
  background: transparent;
  border-radius: 0;
}
.metric {
  padding: 20px 14px;
  border-color: var(--line);
}
.sun-time svg {
  color: #e6d292;
}
.sun-arc {
  color: #bfceb4;
}
footer {
  margin-top: 20px;
  padding: 18px 24px;
  border: 0;
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  :root {
    --glass: rgba(16, 38, 47, 0.94);
  }
}
@media (max-width: 1100px) {
  .lower {
    grid-template-columns: 1fr;
  }
  .day {
    grid-template-columns: 72px 28px 1fr 36px minmax(70px, 160px) 36px 42px;
  }
}
@media (max-width: 580px) {
  .shell {
    padding: 0 14px 18px;
  }
  header {
    height: auto;
    margin: 14px 0;
    padding: 9px;
    background: var(--glass);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    gap: 8px;
  }
  .hero-content {
    width: min(340px, 100%);
    padding: 25px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .temperature {
    font-size: 80px;
  }
  .hero-bottom {
    padding: 13px 15px;
    gap: 12px;
  }
  .status {
    padding: 12px 15px;
  }
  .hour-panel,
  .week,
  .details {
    padding: 18px 12px;
  }
  .hour-panel .section-heading,
  .week .section-heading,
  .details .section-heading {
    margin: 0 0 17px;
  }
  .day {
    grid-template-columns: 42px 22px 1fr 25px 42px 25px 30px;
    gap: 4px;
    padding: 0 3px;
  }
  .day .desc {
    font-size: 10px;
  }
  .metric {
    padding: 17px 9px;
  }
  .metric-title {
    gap: 4px;
  }
  .sun-panel {
    padding: 22px 2px 0;
  }
  footer {
    padding: 18px 16px;
  }
}

/* Mobile and tablet share content-driven height below the desktop layout. */
@media (max-width: 999px) {
  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hero-bottom {
    position: static;
    align-self: flex-start;
  }
}

/* Use the desktop overview for weather information, without a vacant hero column. */
@media (min-width: 1000px) {
  main {
    display: grid;
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
  }
  main > * {
    min-width: 0;
  }
  .hero {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: auto;
  }
  .hero-content {
    width: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 16px;
    align-content: center;
    padding: 22px 24px;
  }
  .hero-content .place-line,
  .hero-content h1,
  .hero-content .datetime {
    grid-column: 1 / -1;
    margin: 0;
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-content .datetime {
    margin-bottom: 8px;
  }
  .hero-content .temperature {
    grid-column: 1;
    grid-row: 4 / 7;
    align-self: center;
    margin: 0;
    font-size: 68px;
  }
  .hero-content .temperature span:last-child {
    font-size: 27px;
    margin-top: 8px;
  }
  .hero-content .condition {
    grid-column: 2;
    grid-row: 4;
    font-size: 15px;
    gap: 7px;
    align-self: end;
  }
  .hero-content .feels {
    grid-column: 2;
    grid-row: 5;
    margin: 0;
    font-size: 12px;
  }
  .hero-content .highlow {
    grid-column: 2;
    grid-row: 6;
    margin: 0;
    gap: 6px 10px;
    flex-wrap: wrap;
    font-size: 12px;
    align-self: start;
  }
  .hero-bottom {
    position: static;
    max-width: none;
    justify-content: flex-start;
    padding: 13px 16px;
    gap: 12px;
  }
  .hour-panel {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: stretch;
  }
  .hour-panel .section-heading {
    flex-wrap: wrap;
  }
  .hour-panel .section-heading > div:last-child {
    margin-left: auto;
  }
  .status {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }
  .lower {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0;
  }
}

/* Static HTML utilities. Forecast range positions are calculated at runtime. */
.icon-definitions {
  position: absolute;
}
.forecast-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-reversed {
  transform: rotate(180deg);
}

/* Light smoked glass keeps the landscape visible behind the information. */
.tools,
.hero-content,
.hero-bottom,
.status,
.hour-panel,
.week,
.details,
footer {
  text-shadow: 0 1px 3px #00000080;
}

/* Language control shares the toolbar's visual treatment. */
.language-select {
  height: 44px;
  max-width: 110px;
  padding: 0 9px;
  font: inherit;
  color: var(--ink);
  color-scheme: dark;
  background: #ffffff09;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.language-select option {
  background: #203e46;
  color: #f1f6f2;
}
.language-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 580px) {
  .search {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .location-button {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .language-select {
    grid-column: 2;
    grid-row: 2;
  }
  .units {
    grid-column: 3;
    grid-row: 2;
  }
}

/* Keep toolbar glass on a sibling layer so it does not clip the menu's backdrop. */
.tools {
  position: relative;
  z-index: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.tools::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
@media (max-width: 580px) {
  header {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .tools::before {
    display: none;
  }
  header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--glass);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    pointer-events: none;
  }
}
