/* Unix Timestamp Converter: the live clock, the options row and the list of formats. */

.epoch { display: flex; flex-direction: column; gap: 24px; }

.epoch-now {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--cat-time);
  border: var(--border);
  border-radius: 14px;
}
.epoch-now-body { display: flex; flex-direction: column; gap: 4px; }
.epoch-now-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.epoch-now-value { font: 700 clamp(28px, 5vw, 40px)/1.1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.epoch-now-ms { font: 14px var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }

.epoch-input { font-size: 20px; }

.epoch-options { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; }
.epoch-option { display: flex; flex-direction: column; gap: 8px; }
.epoch-option .segmented-btn { min-height: 52px; padding: 0 16px; font-family: var(--font-mono); }
.epoch-zone { flex: 1 1 280px; max-width: 420px; }

.epoch-result { font-size: clamp(30px, 5.5vw, 56px); }

.epoch-mini { min-height: 36px; padding: 0 12px; font-size: 14px; box-shadow: none; }

.epoch-formats {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--surface-2);
  border: var(--border);
  border-radius: 14px;
}
.epoch-formats > div {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 16px;
  border-bottom: 1.5px dashed var(--line-soft);
}
.epoch-formats > div:last-child { border-bottom: 0; }
.epoch-formats dt { font-size: 14px; color: var(--ink-2); }
.epoch-formats dd { margin: 0; }
.epoch-formats code { font: 600 15px var(--font-mono); overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .epoch-formats > div { grid-template-columns: minmax(0, 1fr) auto; }
  .epoch-formats dt { grid-column: 1 / -1; }
  .epoch-zone { max-width: none; }
}
