/* Siegel Financial v516 — overall net worth and latest-entry comparison. */
.networth-page .history-inline-inspector {
  grid-template-columns: minmax(360px, 1.08fr) minmax(300px, .92fr);
}

.networth-page .history-current-anchor {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.networth-page .history-inline-inspector .history-current-copy b {
  color: #f4d77f;
  font-size: 10px;
  letter-spacing: .15em;
}

.networth-page .history-inline-inspector .history-current-copy small {
  max-width: 38ch;
  color: rgba(247, 244, 236, .54);
  font-size: 10.75px;
}

.networth-page .history-current-value {
  margin-top: 15px;
  color: #fffaf0;
  font-size: clamp(46px, 5vw, 66px);
  letter-spacing: -.025em;
  text-shadow: 0 16px 36px rgba(0, 0, 0, .24);
}

.networth-page .history-current-meta {
  min-height: 27px;
}

.networth-page .history-current-coverage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(247, 244, 236, .46);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .03em;
  line-height: 1.25;
  white-space: nowrap;
}

.networth-page .history-current-coverage::before {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(142, 205, 239, .52);
  border-radius: 50%;
  background: rgba(120, 185, 228, .14);
  box-shadow: 0 0 0 3px rgba(120, 185, 228, .045);
  content: "";
}

.networth-page .history-latest-change {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 19px 22px 18px;
  overflow: hidden;
  background:
    radial-gradient(250px 135px at 100% 0, rgba(103, 174, 221, .13), transparent 72%),
    linear-gradient(135deg, rgba(255, 255, 255, .028), rgba(104, 169, 214, .025));
}

.networth-page .history-latest-change::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126, 216, 171, .7), rgba(229, 193, 104, .5));
  content: "";
  opacity: .8;
}

.networth-page .history-latest-change.negative::before {
  background: linear-gradient(90deg, transparent, rgba(255, 145, 154, .76), rgba(229, 193, 104, .42));
}

.networth-page .history-latest-change.neutral::before,
.networth-page .history-latest-change.is-empty::before {
  background: linear-gradient(90deg, transparent, rgba(145, 200, 233, .7), rgba(229, 193, 104, .42));
}

.networth-page .history-latest-change-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.networth-page .history-latest-change-head > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.networth-page .history-latest-change-head b {
  color: rgba(247, 244, 236, .78);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.networth-page .history-latest-change-head small {
  color: rgba(247, 244, 236, .43);
  font-size: 9.5px;
  line-height: 1.35;
}

.networth-page .history-latest-change-icon {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(111, 211, 160, .25);
  border-radius: 50%;
  background: rgba(63, 190, 132, .075);
}

.networth-page .history-latest-change-icon::before {
  position: absolute;
  left: 9px;
  top: 10px;
  width: 8px;
  height: 6px;
  border-top: 1.7px solid #82ddb0;
  border-right: 1.7px solid #82ddb0;
  content: "";
  transform: rotate(-45deg);
  transform-origin: center;
}

.networth-page .history-latest-change.negative .history-latest-change-icon {
  border-color: rgba(255, 137, 147, .27);
  background: rgba(255, 112, 125, .07);
}

.networth-page .history-latest-change.negative .history-latest-change-icon::before {
  border-color: #ff9ba3;
  transform: rotate(135deg);
}

.networth-page .history-latest-change.neutral .history-latest-change-icon,
.networth-page .history-latest-change.is-empty .history-latest-change-icon {
  border-color: rgba(133, 188, 225, .25);
  background: rgba(106, 171, 216, .075);
}

.networth-page .history-latest-change.neutral .history-latest-change-icon::before,
.networth-page .history-latest-change.is-empty .history-latest-change-icon::before {
  left: 9px;
  top: 14px;
  width: 9px;
  height: 0;
  border-top: 1.7px solid #91c8e9;
  border-right: 0;
  transform: none;
}

.networth-page .history-latest-change-value {
  display: block;
  margin-top: 12px;
  color: #8de0b4;
  font-family: var(--serif);
  font-size: clamp(31px, 3.25vw, 43px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: .96;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.networth-page .history-latest-change.negative .history-latest-change-value {
  color: #ffa1a8;
}

.networth-page .history-latest-change.neutral .history-latest-change-value {
  color: #a8d3ec;
}

.networth-page .history-latest-change-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
  margin-top: 7px;
  color: rgba(247, 244, 236, .55);
  font-size: 10.5px;
  line-height: 1.35;
}

.networth-page .history-latest-change-subline > b {
  color: #8de0b4;
  font-size: 11.5px;
  font-weight: 820;
}

.networth-page .history-latest-change.negative .history-latest-change-subline > b {
  color: #ffa1a8;
}

.networth-page .history-latest-change.neutral .history-latest-change-subline > b {
  color: #a8d3ec;
}

.networth-page .history-latest-change-subline span > b {
  color: rgba(247, 244, 236, .78);
  font-weight: 780;
}

.networth-page .history-latest-change-period {
  display: grid;
  grid-template-columns: max-content minmax(28px, 1fr) max-content;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.networth-page .history-latest-change-period time {
  color: rgba(247, 244, 236, .48);
  font-size: 8.5px;
  font-weight: 720;
  letter-spacing: .025em;
  white-space: nowrap;
}

.networth-page .history-latest-change-period > span {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(120, 185, 228, .28), rgba(229, 193, 104, .46));
}

.networth-page .history-latest-change-period > span::before,
.networth-page .history-latest-change-period > span::after {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(225, 235, 242, .48);
  border-radius: 50%;
  background: #183149;
  content: "";
  transform: translateY(-50%);
}

.networth-page .history-latest-change-period > span::before {
  left: -1px;
}

.networth-page .history-latest-change-period > span::after {
  right: -1px;
  border-color: rgba(241, 214, 137, .72);
}

.networth-page .history-latest-change-empty-title {
  max-width: 23ch;
  margin-top: 13px;
  color: #f7f4ec;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 680;
  letter-spacing: -.01em;
  line-height: 1.08;
  text-wrap: balance;
}

.networth-page .history-latest-change.is-empty p {
  max-width: 34ch;
  margin: 8px 0 0;
  color: rgba(247, 244, 236, .5);
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .networth-page .history-inline-inspector {
    grid-template-columns: minmax(330px, 1.04fr) minmax(270px, .96fr);
  }

  .networth-page .history-latest-change {
    padding-inline: 18px;
  }
}

@media (max-width: 700px) {
  .networth-page .history-inline-inspector {
    display: grid;
    grid-template-columns: 1fr;
  }

  .networth-page .history-current-anchor {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  .networth-page .history-latest-change {
    min-height: 150px;
    padding: 16px;
  }

  .networth-page .history-latest-change-value {
    font-size: clamp(31px, 9.4vw, 39px);
  }

  .networth-page .history-latest-change-period {
    margin-top: 11px;
  }
}

@media (max-width: 430px) {
  .networth-page .history-current-value {
    font-size: clamp(39px, 12vw, 48px);
  }

  .networth-page .history-current-meta {
    align-items: center;
  }

  .networth-page .history-current-coverage {
    font-size: 8.2px;
  }

  .networth-page .history-latest-change {
    min-height: 143px;
    padding: 14px 13px;
  }

  .networth-page .history-latest-change-head small {
    font-size: 8.8px;
  }

  .networth-page .history-latest-change-value {
    margin-top: 10px;
  }

  .networth-page .history-latest-change-subline {
    margin-top: 6px;
    font-size: 10px;
  }

  .networth-page .history-latest-change-period {
    gap: 6px;
    margin-top: 10px;
    padding-top: 9px;
  }

  .networth-page .history-latest-change-period time {
    font-size: 8px;
  }

  .networth-page .history-latest-change-empty-title {
    font-size: 20px;
  }
}

@media (max-width: 350px) {
  .networth-page .history-current-meta {
    display: flex;
  }

  .networth-page .history-current-coverage {
    white-space: normal;
    text-align: right;
  }

  .networth-page .history-latest-change-period {
    grid-template-columns: max-content minmax(16px, 1fr) max-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .networth-page .history-latest-change,
  .networth-page .history-latest-change * {
    animation: none !important;
    transition: none !important;
  }
}
