/* Earth Central — market section */

.ec-market-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.ec-market-side { position: sticky; top: calc(var(--header-h) + 16px); }
.ec-market-side .ec-panel { padding: 14px; }
.ec-market-side-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ee-red-bright);
  margin-bottom: 9px;
}
.ec-market-units { display: flex; flex-direction: column; gap: 1px; }
.ec-market-units a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ee-muted);
  font-size: 13.5px;
  transition: background .14s ease, color .14s ease;
}
.ec-market-units a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.ec-market-units a.is-active { background: rgba(204, 51, 51, .14); color: var(--ee-pink); }
.ec-market-units .ec-icon { width: 13px; height: 13px; color: var(--ee-red-bright); }
.ec-market-content { min-width: 0; }

.ec-market-server-tabs { margin-bottom: 18px; }

.ec-market-time {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
.ec-market-time a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 6px;
  border: 1px solid var(--ee-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  color: var(--ee-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ec-market-time a:hover { color: #fff; border-color: var(--ee-border-bright); }
.ec-market-time a.is-active {
  color: #fff;
  background: rgba(204, 51, 51, .15);
  border-color: rgba(204, 51, 51, .38);
}

.ec-market-price { font-family: var(--font-mono); font-size: 13.5px; color: var(--ee-pink); }
.ec-market-table td:first-child a { font-weight: 600; }

@media (max-width: 980px) {
  .ec-market-layout { grid-template-columns: 1fr; }
  .ec-market-side { position: static; }
  .ec-market-units { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .ec-market-units a { padding: 5px 9px; border: 1px solid var(--ee-border); border-radius: 99px; font-size: 12.5px; }
}

@media (max-width: 640px) {
  .ec-market-time { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ec-market-summary th:nth-child(2), .ec-market-summary td:nth-child(2),
  .ec-market-summary th:nth-child(4), .ec-market-summary td:nth-child(4) { display: none; }
}
