/* Four-year traces and the paired numbers share the same within-area denominator. */
.geo-shift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.geo-shift-grid > li { min-width: 0; }
a.geo-shift-card {
  --shift-bg: #f1efed;
  --shift-line: #ca592a;
  display: block;
  height: 100%;
  box-sizing: border-box;
  padding: 14px 16px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--shift-bg);
  color: #242321;
  font-family: var(--sans, Arial, sans-serif);
  text-decoration: none;
  transition: background-color .14s ease, border-color .14s ease;
}
a.geo-shift-card[data-change=down] { --shift-line: #2a75b6; }
a.geo-shift-card[data-change=steady] { --shift-line: #747370; }
a.geo-shift-card:hover, a.geo-shift-card:focus-visible {
  --shift-bg: #ebe9e6;
  border-color: #bcb7b0;
  color: #141311;
  text-decoration: none;
}
a.geo-shift-card:hover .geo-shift-title, a.geo-shift-card:focus-visible .geo-shift-title {
  text-decoration: underline;
  text-underline-offset: .17em;
  text-decoration-thickness: 1px;
}
a.geo-shift-card:focus-visible { outline: 2px solid #27699b; outline-offset: 3px; }
.geo-shift-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 5px;
}
.geo-shift-period {
  color: #625d57;
  font-size: .69rem;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: .025em;
  white-space: nowrap;
}
.geo-shift-line { display: block; width: 67px; height: 24px; flex: 0 0 auto; color: var(--shift-line); }
.geo-shift-fill { fill: currentColor; opacity: .12; }
.geo-shift-stroke { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.geo-shift-dot { fill: currentColor; stroke: var(--shift-bg); stroke-width: 1.5; }
.geo-shift-card .geo-shift-metric {
  display: flex;
  align-items: baseline;
  gap: .19em;
  margin: 0;
  color: #1d1b19;
  font: 650 clamp(1.45rem, 2.1vw, 1.95rem)/1.14 var(--sans, Arial, sans-serif);
  letter-spacing: -.055em;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.geo-shift-metric strong { font-weight: 700; }
.geo-shift-arrow { color: #7c756e; font-weight: 400; }
.geo-shift-card .geo-shift-basis { margin: 5px 0 0; font-size: .78rem; line-height: 1.37; color: #625d57; }
.geo-shift-card .geo-shift-title { margin: 13px 0 3px; color: #211f1d; font-size: 1rem; font-weight: 680; line-height: 1.26; letter-spacing: -.02em; }
.geo-shift-card .geo-shift-note { margin: 0; color: #524f4a; font-size: .86rem; font-weight: 400; line-height: 1.43; }
@media (max-width: 950px) {
  .geo-shift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo-shift-card .geo-shift-metric { font-size: 1.65rem; }
}
@media (max-width: 490px) {
  .geo-shift-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  a.geo-shift-card { padding: 11px 14px 13px; }
  .geo-shift-head { margin-bottom: 2px; }
  .geo-shift-card .geo-shift-title { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  a.geo-shift-card { transition: none; }
}
