#content_freezing {
  color: var(--color-light-primary);
  padding-top: 1em;
  margin-bottom: 2em;
}

#notice_freezing {
  display: grid;
  place-items: center;
  font-size: 2rem;
  height: 80vh;
  color: var(--color-light-primary);
}

.fl-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  margin: 0 1em 1.25em;
  padding: 1.4rem 1.6rem 1.5rem;
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
  background: #0d1220;
}

.fl-hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(6 8 14 / 0.78) 0%, rgb(6 8 14 / 0.42) 42%, rgb(6 8 14 / 0.08) 70%, rgb(6 8 14 / 0.3) 100%),
    linear-gradient(90deg, rgb(6 8 14 / 0.35) 0%, transparent 65%);
}

.fl-hero-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5eefff;
}

.fl-hero-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: #f3f6fb;
}

.fl-hero-sub {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: rgb(243 246 251 / 0.75);
}

@media (min-width: 720px) {
  .fl-hero {
    min-height: 17rem;
  }
}

@media (max-width: 719px) {
  .fl-hero {
    min-height: 17rem;
    padding: 1.1rem 1rem 1.25rem;
  }
}

.fl-history-heading {
  margin: 0.5em 1em 0;
  color: var(--color-text-dark);
  text-transform: uppercase;
}

.fl-history-heading span {
  color: var(--color-grey);
  font-size: 0.8em;
  text-transform: none;
}

.fl-history-lead {
  margin: 0.55rem 1em 0.85rem;
  font-weight: 500;
  color: var(--color-light);
  line-height: 1.45;
}

.fl-history-lead.is-cold {
    color: var(--snow);
}

.fl-history-note {
    margin: 0 1em 0.75rem;
    color: var(--color-text);
    line-height: 1.45;
}

.fl-history-key {
    margin: 0 1em 0.85rem;
    color: var(--color-text-dark);
    font-size: 0.85em;
    line-height: 1.45;
}

.fl-history-chart-wrap {
  margin: 1em;
  background-color: var(--shade-medium);
  padding: 0.65em 0 0;
  border-radius: 1em;
}

.fl-history-chart-wrap .om-chart-readout {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.24s ease;
}

.fl-history-chart-wrap.is-reading .om-chart-readout {
  grid-template-rows: 1fr;
  opacity: 1;
}

.fl-history-chart-wrap .om-chart-readout-clip {
  overflow: hidden;
  min-height: 0;
}

.fl-history-chart-wrap .om-chart-readout-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0.85rem;
  padding: 0.7rem 0.15rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fl-history-chart-wrap .om-chart-readout-main {
  min-width: 0;
}

.fl-history-chart-wrap .om-chart-readout-day {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c6d4e6;
}

.fl-history-chart-wrap .om-chart-readout-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.fl-history-chart-wrap .om-chart-readout-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #d5deea;
  font-size: 0.95rem;
  line-height: 1.2;
}

.fl-history-chart-wrap .om-chart-readout-stat b {
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.fl-history-chart-wrap .om-chart-readout-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.fl-history-chart-wrap .om-chart-readout-close {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.15rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d5deea;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.fl-history-chart-wrap .om-chart-readout-close:hover,
.fl-history-chart-wrap .om-chart-readout-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .fl-history-chart-wrap .om-chart-readout {
    transition: none;
  }
}

#freeze-history-chart,
#freeze-forecast-chart {
  height: 300px;
}

#freeze-forecast-chart {
  height: 328px;
}

.fl-wx-glyph {
    display: block;
    margin: 0 auto;
    color: #9aa9b5;
}

.fl-wx-glyph-rain {
    color: var(--rain);
}

.fl-wx-glyph-snow {
    color: var(--snow);
}

.fl-wx-glyph-mix .fl-wx-rain {
    color: var(--rain);
}

.fl-wx-glyph-mix .fl-wx-snow {
    color: var(--snow);
}

.fl-history-table-wrap {
    margin: 1.25em 1em 2em;
    overflow-x: auto;
}

.fl-history-table-wrap + .fl-history-heading {
    margin-top: 1.75em;
}

.fl-history-table-wrap h2 {
  margin: 0 0 0.65em;
  font-size: 1em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-text-dark);
}

.fl-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.fl-history-table th,
.fl-history-table td {
  padding: 0.45rem 0.55rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.fl-history-table th:first-child,
.fl-history-table td:first-child,
.fl-history-table .fl-history-alpine {
    text-align: left;
}

.fl-history-table thead th {
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-dark);
}

.fl-history-warm {
  color: var(--icon-warm);
}

.fl-history-cold {
  color: var(--snow);
}

.fl-history-empty {
    margin: 2em 1em;
    color: var(--color-text);
}

section:has(#content_freezing) {
    overflow: visible;
}

@media (max-width: 639px) {
    .fl-history-table {
        font-size: 0.82rem;
    }

    .fl-history-table th:nth-child(n+5),
    .fl-history-table td:nth-child(n+5) {
        display: none;
    }
}

@media (min-width: 640px) {
  .fl-history-chart-wrap {
    padding: 1em 0 0.5em;
  }

  #freeze-history-chart {
    height: 420px;
  }

  #freeze-forecast-chart {
    height: 448px;
  }
}

@media (min-width: 1280px) {
  .fl-hero,
  .fl-history-heading,
  .fl-history-lead,
  .fl-history-note,
  .fl-history-key,
  .fl-history-chart-wrap,
  .fl-history-table-wrap,
  .fl-history-empty {
    margin-inline: 0;
  }
}
