/* Text w/ Side Panel
   Text column (eyebrow, H2, rich text, link/button) + a tinted panel (optional heading,
   rich text, icon-item list). .revert flips the sides. Stacks ≤991.98 (text first).
   Brand: $darkblue #023769 / $blue #03a1e2. */

.text-w-side-panel {
  position: relative;
  margin-top: 70px;
  margin-bottom: 70px;
}
.text-w-side-panel.has-bg {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 70px;
  padding-bottom: 70px;
}
.text-w-side-panel .content-area {
  width: 1200px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
}
.text-w-side-panel .content-area.revert {
  flex-direction: row-reverse;
}

/* Text column */
.text-w-side-panel .tsp-text {
  flex: 1 1 55%;
  min-width: 0;
}
.text-w-side-panel .tsp-eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #03a1e2;
  margin: 0 0 10px;
}
.text-w-side-panel .tsp-text h2 {
  margin-bottom: 20px;
}
.text-w-side-panel .tsp-body p,
.text-w-side-panel .tsp-body li {
  font-size: 17px;
  line-height: 1.65;
  color: #023769;
}
.text-w-side-panel .tsp-body p:last-child {
  margin-bottom: 0;
}
.text-w-side-panel .tsp-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 16px;
  font-weight: 600;
  color: #03a1e2;
  text-decoration: none;
}
.text-w-side-panel .tsp-link:hover {
  color: #023769;
}
.text-w-side-panel .tsp-btn {
  margin-top: 26px;
}

/* Rich-text helpers: small subhead, big brand callout ("Your payroll."), emphasized panel line, links */
.text-w-side-panel .tsp-body h3.tsp-subhead {
  font-size: 20px;
  line-height: 1.35;
  color: #023769;
  margin: 26px 0 4px;
}
.text-w-side-panel .tsp-body p.tsp-callout {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: #03a1e2;
  margin: 0 0 12px;
}
.text-w-side-panel .tsp-panel-text p.tsp-panel-lead {
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
  color: #023769;
}
.text-w-side-panel .tsp-body a,
.text-w-side-panel .tsp-panel-text a {
  color: #03a1e2;
  font-weight: 600;
  text-decoration: none;
}
.text-w-side-panel .tsp-body a:hover,
.text-w-side-panel .tsp-panel-text a:hover {
  color: #023769;
}

/* Tables in the body (e.g. an illustrative week). Rows become cards on phones via data-label. */
.text-w-side-panel .tsp-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 8px 0 18px;
  border: 1px solid rgba(2, 55, 105, 0.12);
  border-radius: 10px;
  overflow: hidden;
  font-size: 15px;
  color: #023769;
  background: #fff;
}
.text-w-side-panel .tsp-body th {
  background: #023769;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
}
.text-w-side-panel .tsp-body td {
  padding: 11px 14px;
  border-top: 1px solid rgba(2, 55, 105, 0.1);
}
@media (min-width: 768px) {
  .text-w-side-panel .tsp-body td:not(:last-child) {
    white-space: nowrap;
  }
}
/* Sections with a table: top-align the panel with the content instead of centering */
.text-w-side-panel .content-area:has(.tsp-body table) {
  align-items: flex-start;
}
.text-w-side-panel .content-area:has(.tsp-body table) .tsp-panel {
  margin-top: 90px;
}
.text-w-side-panel .tsp-body tbody tr:nth-child(even) td {
  background: #f2fafe;
}
.text-w-side-panel .tsp-body tfoot td {
  font-weight: 700;
  background: #e6f5fc;
}
.text-w-side-panel .tsp-body .table-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #03a1e2;
  margin: 24px 0 8px;
}
@media (max-width: 767.98px) {
  .text-w-side-panel .tsp-body table,
  .text-w-side-panel .tsp-body tbody,
  .text-w-side-panel .tsp-body tfoot,
  .text-w-side-panel .tsp-body tr,
  .text-w-side-panel .tsp-body td {
    display: block;
  }
  .text-w-side-panel .tsp-body table {
    border: 0;
    background: transparent;
  }
  .text-w-side-panel .tsp-body thead {
    display: none;
  }
  .text-w-side-panel .tsp-body tr {
    background: #fff;
    border: 1px solid rgba(2, 55, 105, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
  }
  .text-w-side-panel .tsp-body td,
  .text-w-side-panel .tsp-body tbody tr:nth-child(even) td,
  .text-w-side-panel .tsp-body tfoot td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    padding: 4px 0;
    background: transparent;
  }
  .text-w-side-panel .tsp-body td:empty {
    display: none;
  }
  .text-w-side-panel .tsp-body td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: rgba(2, 55, 105, 0.6);
  }
}

/* Images and chip lists inside the panel's rich text */
.text-w-side-panel .tsp-panel-text img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(2, 55, 105, 0.12);
  margin-bottom: 18px;
}
.text-w-side-panel .tsp-panel-text ul.tsp-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.text-w-side-panel .tsp-panel-text ul.tsp-chips li {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #023769;
  background: #fff;
  border: 2px solid #03a1e2;
  border-radius: 6px;
  padding: 7px 12px;
}

/* Panel */
.text-w-side-panel .tsp-panel {
  flex: 1 1 45%;
  min-width: 0;
  border-radius: 10px;
  padding: 40px 40px 36px;
  border: 1px solid rgba(3, 161, 226, 0.18);
}
.text-w-side-panel .tsp-panel-heading {
  font-size: 22px;
  line-height: 1.3;
  color: #023769;
  margin: 0 0 12px;
}
.text-w-side-panel .tsp-panel-text p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(2, 55, 105, 0.8);
}
.text-w-side-panel .tsp-panel-text p:last-child {
  margin-bottom: 0;
}
.text-w-side-panel .tsp-panel-text + .tsp-items,
.text-w-side-panel .tsp-panel-heading + .tsp-items {
  margin-top: 26px;
}

.text-w-side-panel .tsp-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.text-w-side-panel .tsp-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(2, 55, 105, 0.1);
}
.text-w-side-panel .tsp-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.text-w-side-panel .tsp-item:last-child {
  padding-bottom: 0;
}
.text-w-side-panel .tsp-item-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 55, 105, 0.08);
}
.text-w-side-panel .tsp-item-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.text-w-side-panel .tsp-item-body h4 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: #023769;
  margin: 2px 0 4px;
}
.text-w-side-panel .tsp-item-body p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(2, 55, 105, 0.75);
  margin: 0;
}
.text-w-side-panel .tsp-item-link {
  margin-top: 6px;
  font-size: 14px;
}

@media (max-width: 991.98px) {
  .text-w-side-panel .content-area,
  .text-w-side-panel .content-area.revert {
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
  }
}
@media (max-width: 767.98px) {
  .text-w-side-panel {
    margin-top: 50px;
    margin-bottom: 50px;
  }
  .text-w-side-panel.has-bg {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .text-w-side-panel .tsp-panel {
    padding: 28px 22px;
  }
}

@media (max-width: 991.98px) {
  .text-w-side-panel .content-area:has(.tsp-body table) .tsp-panel {
    margin-top: 0;
  }
}
