body {
  background-color: #f6f6ef;
}

.post { margin-bottom: 2rem; }
.post-date { margin-bottom: 1.25rem; color: #999; }
.sidebar-module {margin: 2rem 0 0 0;padding: 1rem;}
.sidebar-module-inset {
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 15px;
}
#mc_embed_signup .clear {clear:none; display:inline;}

.negative { color: red; background-color: #f2dede; }
.positive { color: green; background-color: #dff0d8; }

.masthead {
  position: relative;
  padding: 2rem 1.25rem;
  font-weight: 300;
  color: #f6f6ef;
  text-shadow: 0 1px 0 rgba(0,0,0,0.1);
  background-image: linear-gradient(#4D4D4D, #666666);
}

.masthead h1 {
  margin-bottom: .25rem;
}

.masthead p {
  max-width: 640px;
}

.masthead a {
  color: #f6f6ef;
}

.dashboard-masthead {
  background-image:
    radial-gradient(circle at top right, rgba(255, 116, 43, 0.35), transparent 28%),
    linear-gradient(135deg, #242424, #505050 60%, #6c6c6c);
}

.eyebrow,
.section-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-highlight-card,
.dashboard-panel,
.archive-card {
  background: #ffffff;
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(36, 36, 36, 0.08);
}

.dashboard-highlight-card,
.archive-card {
  padding: 1.5rem;
}

.dashboard-highlight-card {
  color: #222;
  text-shadow: none;
}

.dashboard-panel {
  padding: 1.5rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.dashboard-stats dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.25rem;
}

.dashboard-stats dd {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
}

.range-slider {
  position: relative;
  height: 2.75rem;
  display: flex;
  align-items: center;
}

.range-slider__track,
.range-slider__fill {
  position: absolute;
  left: 0;
  right: 0;
  height: 0.5rem;
  border-radius: 999px;
}

.range-slider__track {
  background: #e1dfd7;
}

.range-slider__fill {
  background: linear-gradient(90deg, #ff742b, #ff9e66);
}

.range-slider__input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  width: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
}

.range-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid #242424;
  background: #fff9f2;
  box-shadow: 0 4px 10px rgba(36, 36, 36, 0.18);
  pointer-events: auto;
  cursor: pointer;
}

.range-slider__input::-moz-range-thumb {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid #242424;
  background: #fff9f2;
  box-shadow: 0 4px 10px rgba(36, 36, 36, 0.18);
  pointer-events: auto;
  cursor: pointer;
}

.range-slider__input::-webkit-slider-runnable-track {
  background: transparent;
}

.range-slider__input::-moz-range-track {
  background: transparent;
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #efefef;
  color: #444;
  font-weight: 700;
}

.trend-pill--up {
  background: #dff2df;
  color: #1a6b2a;
}

.trend-pill--down {
  background: #f8dede;
  color: #a02929;
}

.trend-pill--new {
  background: #fff0d9;
  color: #a55b00;
}

.term-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.term-detail-stat {
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fafafa;
}

.term-detail-table {
  max-height: 28rem;
  overflow: auto;
}

.archive-list li + li {
  margin-top: 0.5rem;
}

.archive-card a,
.dashboard-panel a,
.masthead a {
  text-underline-offset: 0.18em;
}

@media (max-width: 767px) {
  .dashboard-panel,
  .dashboard-highlight-card,
  .archive-card {
    border-radius: 16px;
    padding: 1.1rem;
  }

  .term-detail-stats {
    grid-template-columns: 1fr;
  }
}
