/* Silver Bank story: additions on top of the shared Pension story styles. */

.sb-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}

.sb-table th,
.sb-table td {
  padding: 10px 12px 10px 0;
  border-top: 1px solid #eceff1;
  text-align: left;
  vertical-align: top;
}

.sb-table thead th {
  border-top: 0;
  border-bottom: 2px solid #26323a;
  color: #26323a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sb-table td.num,
.sb-table th.num {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sb-table td span {
  display: block;
  margin-top: 2px;
  color: #68737d;
  font-size: 13px;
}

.sb-table tfoot td {
  border-top: 2px solid #26323a;
  font-weight: 700;
}

.sb-compare td:first-child {
  width: 22%;
  color: #26323a;
  font-weight: 700;
}

.sb-compare td {
  width: 39%;
}

.sb-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid #eceff1;
  font-size: 15px;
  line-height: 1.45;
}

.sb-timeline li:first-child {
  border-top: 0;
}

.sb-timeline time {
  color: #26323a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sb-timeline li.sb-alert time {
  color: #eb5555;
}

/* Winding timeline: left to right, curve down, right to left, curve down, left to right. */
.sb-snake {
  --track: #c9d2d8;
  --curve: 48px;
  position: relative;
  margin: 8px 0 6px;
  padding: 0 var(--curve);
}

.sb-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 18px;
  padding-bottom: 34px;
}

.sb-row:last-child {
  padding-bottom: 4px;
}

.sb-row.sb-rev {
  direction: rtl;
}

.sb-row.sb-rev > * {
  direction: ltr;
}

/* Straight track through the dots */
.sb-row::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--track);
}

.sb-row:last-child::before {
  right: calc((100% - 54px) / 4 - 8px);
}

/* Curve from the end of one row to the start of the next */
.sb-row:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  width: var(--curve);
  height: calc(100% - 3px);
  border: 3px solid var(--track);
  box-sizing: content-box;
}

.sb-row:not(.sb-rev):not(:last-child)::after {
  right: calc(var(--curve) * -1 - 3px);
  border-left: 0;
  border-radius: 0 var(--curve) var(--curve) 0;
}

.sb-row.sb-rev:not(:last-child)::after {
  left: calc(var(--curve) * -1 - 3px);
  border-right: 0;
  border-radius: var(--curve) 0 0 var(--curve);
}

.sb-ev {
  position: relative;
  padding-top: 30px;
  font-size: 14px;
  line-height: 1.45;
  color: #3d4750;
}

.sb-ev::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1182ff;
  box-shadow: 0 0 0 2px #1182ff;
}

.sb-ev.sb-alert::before {
  background: #eb5555;
  box-shadow: 0 0 0 2px #eb5555;
}

.sb-ev time {
  display: block;
  margin-bottom: 4px;
  color: #26323a;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sb-ev.sb-alert time {
  color: #eb5555;
}

.sb-snake + .up-note::before {
  content: "";
}

@media (max-width: 760px) {
  .sb-snake {
    padding: 0;
  }

  .sb-row,
  .sb-row.sb-rev {
    grid-template-columns: 1fr;
    direction: ltr;
    padding-bottom: 0;
  }

  .sb-row::before {
    top: 0;
    bottom: 0;
    left: 7px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .sb-row:first-child::before {
    top: 8px;
  }

  .sb-row:last-child::before {
    bottom: auto;
    height: 12px;
  }

  .sb-row:not(:last-child)::after {
    display: none;
  }

  .sb-ev {
    padding: 0 0 18px 32px;
  }

  .sb-ev::before {
    top: 2px;
    left: 0;
  }

  .sb-row:last-child .sb-ev:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: -8px;
    left: 7px;
    width: 3px;
    background: var(--track);
    z-index: -1;
  }
}

.sb-aside {
  margin: 0 0 30px;
  padding: 18px 20px;
  border-left: 4px solid #f7ac2f;
  background: #fbf8f1;
}

.sb-aside p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.up-copy blockquote {
  margin: 16px 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid #1182ff;
  color: #26323a;
  font-size: 18px;
  line-height: 1.5;
}

.up-copy ul.sb-bullets {
  margin: 10px 0;
  padding-left: 20px;
}

.up-copy ul.sb-bullets li {
  margin: 6px 0;
  font-size: 17px;
  line-height: 1.55;
}

.up-figure + .up-cost-detail,
.up-figure + .up-copy {
  margin-top: 30px;
}

.up-figure {
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .up-numbers p {
    grid-template-columns: 150px 1fr;
  }

  .sb-timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .sb-table {
    font-size: 14px;
  }

  .sb-compare td:first-child {
    width: auto;
  }
}

/* Even spacing around section dividers: same gap above and below each line. */
.silver-bank-story .up-hero {
  padding-bottom: 49px;
}

.silver-bank-story .up-section {
  padding-bottom: 49px;
}

.silver-bank-story .up-section > :last-child,
.silver-bank-story .up-section > :last-child > :last-child,
.silver-bank-story .up-section > :last-child > :last-child > :last-child,
.silver-bank-story .up-section > :last-child > :last-child > :last-child > :last-child,
.silver-bank-story .up-hero > :last-child {
  margin-bottom: 0;
}

.silver-bank-story .up-section:has(+ .up-close) {
  padding-bottom: 49px;
}

@media (max-width: 640px) {
  .silver-bank-story .up-hero,
  .silver-bank-story .up-section,
  .silver-bank-story .up-section:has(+ .up-close) {
    padding-bottom: 46px;
  }
}

/* Table notes sit on the same line as the name, in grey. */
.sb-table td span {
  display: inline;
  margin: 0 0 0 8px;
}
