@import "./commons-ui.css";
.time-app {
  --cu-bg: #eff1eb;
  --cu-accent: #d6e7b0;
}
.tm-timeline {
  display: flex;
  gap: 0;
  overflow: auto;
  padding: 12px 0 20px;
}
.tm-timeline button {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 0;
  border-top: 3px solid var(--cu-ink);
  background: transparent;
  color: var(--cu-ink);
  padding: 15px 8px 0;
  text-align: left;
  min-width: 160px;
}
.tm-timeline i {
  position: absolute;
  top: -8px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--cu-ink);
  background: var(--cu-accent);
  border-radius: 50%;
}
.tm-timeline b {
  font: 16px var(--cu-mono);
}
.tm-timeline span {
  font-size: 18px;
}
.tm-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.tm-diff article {
  position: relative;
  padding: 19px;
  background: var(--cu-card);
  border: 1px solid var(--cu-line);
}
.tm-date {
  border-bottom: 1px solid var(--cu-line);
  margin: 7px 0 14px;
  padding-bottom: 10px;
  font: 20px var(--cu-mono);
}
.tm-diff p {
  font:
    clamp(23px, 3vw, 36px)/1.17 Georgia,
    serif;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.tm-diff footer {
  margin-top: 15px;
  font: 13px var(--cu-mono);
  overflow-wrap: anywhere;
}
.tm-diff del {
  background: #f4cfc8;
  color: #552b28;
}
.tm-diff ins {
  background: #d1e2af;
  color: #243818;
  text-decoration: none;
  border-bottom: 2px solid;
}
.tm-select {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 15px 0;
}
.tm-select label {
  display: grid;
  min-width: 0;
  gap: 4px;
}
@media (max-width: 660px) {
  .tm-diff {
    grid-template-columns: 1fr;
  }
}
.tm-date,
.tm-timeline b {
  font-family: system-ui, sans-serif;
}
.tm-reel {
  padding: 12px 0;
}
.tm-reel > div {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 4px;
}
.tm-reel > div:before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  height: 1px;
  top: 12px;
  background: var(--fx-border);
}
.tm-reel button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 3px;
  background: transparent;
  border: 0;
}
.tm-reel i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fx-border);
}
.tm-reel button[aria-pressed="true"] i {
  background: var(--fx-accent);
  outline: 2px solid var(--fx-selected-text);
}
.tm-reel time {
  font: 12px var(--cu-mono);
}
.tm-wayback header,
.tm-wayback header form,
.tm-sources,
.tm-capture-sheet footer {
  display: flex;
  align-items: end;
  gap: 7px;
  flex-wrap: wrap;
}
.tm-wayback header {
  justify-content: space-between;
}
.tm-wayback header label {
  display: grid;
  font-size: 12px;
}
.tm-sources {
  margin: 12px 0;
}
.tm-sources button[aria-pressed="true"] {
  color: var(--fx-selected-text);
  background: var(--fx-selected);
}
.tm-capture-sheet {
  border: 1px solid var(--fx-border);
  border-left: 3px solid var(--fx-accent);
  background: var(--fx-surface);
  padding: 17px;
}
.tm-capture-sheet p {
  max-width: 70ch;
}
.tm-pinlist {
  padding: 14px 0;
}
.tm-diff p {
  font:
    400 clamp(17px, 2vw, 24px)/1.45 system-ui,
    sans-serif;
}
.tm-diff article {
  background: var(--fx-surface);
}
.tm-diff del {
  background: color-mix(in srgb, var(--fx-danger) 15%, var(--fx-surface));
  color: var(--fx-text);
}
.tm-diff ins {
  background: color-mix(in srgb, var(--fx-good) 18%, var(--fx-surface));
  color: var(--fx-text);
}
.time-app .cu-head h1 {
  font:
    600 clamp(21px, 2.5vw, 32px)/1 system-ui,
    sans-serif;
  letter-spacing: -0.045em;
}
.time-app .cu-head p {
  display: none;
}
.time-app .cu-tabs {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--fx-border);
  border-radius: 0;
  margin: 6px 0 13px;
}
.tm-lightbox {
  --panel: #373b3c;
  --edge: #777a75;
  --legend: #f3eedf;
  --film: #2a2521;
  --frame: #c59d6d;
  --glass: #e9e7d8;
  --silver: #2e302c;
  color: var(--legend);
  background: var(--panel);
  border: 1px solid #242625;
  border-radius: 5px;
  padding: clamp(13px, 2.1vw, 24px);
}
[data-theme="dark"] .tm-lightbox {
  --panel: #2e3132;
  --glass: #cfcab8;
  --silver: #212421;
  --edge: #858780;
}
.tm-lightbox > header,
.tm-lightbox > footer,
.tm-gatebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tm-lightbox header small,
.tm-lightbox code,
.tm-gatebar > span,
.tm-single small {
  font: 11px/1.4 var(--cu-mono);
}
.tm-lightbox header h2 {
  font:
    550 clamp(23px, 3vw, 38px)/1.12 system-ui,
    sans-serif;
  margin: 0;
}
.tm-negative {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 14px 0;
  padding: 12px 3px;
  color: var(--frame);
  background-color: var(--film);
  background-image:
    repeating-linear-gradient(90deg, var(--frame) 0 5px, transparent 5px 14px),
    repeating-linear-gradient(90deg, var(--frame) 0 5px, transparent 5px 14px);
  background-position:
    center 3px,
    center calc(100% - 3px);
  background-size: 100% 4px;
  background-repeat: no-repeat;
}
.tm-negative button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 5px;
  min-width: 114px;
  flex: 1 0 0;
  color: #ddbe94;
  background: #392f27;
  border: 1px solid #8e7156;
  border-radius: 0;
  padding: 5px 7px;
  text-align: left;
}
.tm-negative b,
.tm-negative small {
  font: 10px var(--cu-mono);
}
.tm-negative span {
  grid-column: 1/-1;
  font:
    600 12px system-ui,
    sans-serif;
}
.tm-negative button[aria-pressed="true"] {
  background: #c4a47d;
  color: #28221d;
  outline: 1px solid #f9d7a4;
  outline-offset: 0;
}
.tm-gate {
  background: #252a2a;
  border: 1px solid #5b6160;
  padding: 8px 10px 10px;
}
.tm-gatebar {
  margin-bottom: 8px;
}
.tm-gatebar > span {
  color: #f0ecdf;
}
.tm-gatebar button,
.tm-lightbox footer button {
  color: var(--legend);
  background: #444b49;
  border-color: #78807b;
  border-radius: 2px;
  font:
    500 12px system-ui,
    sans-serif;
  padding: 5px 8px;
}
.tm-gatebar button[aria-pressed="true"] {
  background: #e3dfd0;
  color: #272b28;
}
.tm-lightbox .tm-diff {
  gap: 8px;
}
.tm-lightbox .tm-diff article,
.tm-single {
  background: var(--glass);
  color: var(--silver);
  border: 1px solid #73766c;
  padding: 15px;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--silver) 10%, transparent);
}
.tm-lightbox .tm-diff article > small,
.tm-lightbox .tm-diff footer {
  color: var(--silver);
}
.tm-lightbox .tm-diff p,
.tm-single p {
  font:
    19px/1.4 Georgia,
    serif;
}
.tm-lightbox .tm-date {
  font: 600 12px var(--cu-mono);
  border-color: #85877f;
}
.tm-lightbox .tm-diff del {
  background: #eed2c2;
  color: #602d25;
}
.tm-lightbox .tm-diff ins {
  background: #c9dcc5;
  color: #214926;
}
.tm-lightbox footer {
  margin-top: 10px;
}
.tm-single h3 {
  font:
    500 27px Georgia,
    serif;
}
.tm-single .cu-button {
  border-color: #7c8078;
  background: #efede3;
  color: #262c27;
}
.tm-wayback .tm-reel {
  border-block: 2px solid var(--fx-border);
}
@media (max-width: 550px) {
  .tm-lightbox .tm-diff {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .tm-lightbox .tm-diff article {
    padding: 8px;
  }
  .tm-lightbox .tm-diff p {
    font-size: 15px;
  }
  .tm-lightbox .tm-diff footer {
    font-size: 10px;
    overflow-wrap: anywhere;
  }
}
.time-app .tm-negative button small,
.time-app .tm-lightbox > header small {
  color: inherit;
}
