/* The services overview shares the approved cards' colours and icon badges. */
.service-comparison-frame{
  position:relative;clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%);
}
.service-comparison-frame::after{
  content:"";position:absolute;right:0;bottom:0;width:28px;height:28px;
  background:linear-gradient(135deg,transparent 42%,var(--badge-blue) 42% 62%,#edf6fc 62% 69%,transparent 69%);
  pointer-events:none;
}
table.service-comparison-table{
  margin:0;background:var(--badge-navy);table-layout:fixed;font-size:1rem;
}
table.service-comparison-table thead th{
  background:#31566d;color:#fff;border:0;padding:18px 22px;font-size:.74rem;line-height:1.4;
}
table.service-comparison-table thead th:first-child{width:28%;}
table.service-comparison-table thead th:nth-child(2){width:30%;}
table.service-comparison-table tbody th,
table.service-comparison-table tbody td{
  padding:24px 22px;border:0;border-bottom:1px solid #29404d;
  color:#cddce6;line-height:1.6;vertical-align:middle;
  transition:background-color .2s ease;
}
table.service-comparison-table tbody th{
  font-family:var(--font-display);font-size:1.35rem;font-weight:600;
  text-transform:none;letter-spacing:0;text-align:left;line-height:1.2;
}
table.service-comparison-table tbody tr:last-child>*{border-bottom:0;}
table.service-comparison-table tbody tr:is(:hover,:focus-within)>*{background:#173542;}
table.service-comparison-table tbody th a{
  display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;
  min-height:44px;
}
table.service-comparison-table tbody th a:hover{color:#b9dcf5;}
table.service-comparison-table tbody th a:focus-visible{outline:2px solid #a8d5f6;outline-offset:5px;}
.comparison-icon{
  display:flex;align-items:center;justify-content:center;flex:0 0 56px;height:56px;
  background:transparent var(--service-icon-wrapper) center/contain no-repeat;
  clip-path:var(--service-icon-shape);
}
.comparison-icon img{width:28px;height:28px;object-fit:contain;}
.comparison-arrow{
  margin-left:auto;font-family:var(--font-body);font-size:1rem;color:#aacbe1;
  transition:transform .2s var(--ease);
}
table.service-comparison-table tbody th a:hover .comparison-arrow{transform:translate(2px,-2px);}
@media(max-width:920px){
  .service-comparison-frame{overflow:visible;clip-path:none;}
  .service-comparison-frame::after{display:none;}
  table.service-comparison-table{display:block;background:none;}
  table.service-comparison-table thead{
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;
  }
  table.service-comparison-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
  table.service-comparison-table tbody tr{
    position:relative;display:block;background:var(--badge-navy);padding-bottom:16px;
    clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%);
  }
  table.service-comparison-table tbody tr::after{
    content:"";position:absolute;right:0;bottom:0;width:28px;height:28px;
    background:linear-gradient(135deg,transparent 42%,var(--badge-blue) 42% 62%,#edf6fc 62% 69%,transparent 69%);
    pointer-events:none;
  }
  table.service-comparison-table tbody th{display:block;padding:18px 22px;background:#31566d;border:0;}
  table.service-comparison-table tbody td{display:block;margin:0 22px;padding:18px 0;border-bottom:1px solid #29404d;}
  table.service-comparison-table tbody td:last-child{border-bottom:0;}
  table.service-comparison-table tbody td::before{
    content:attr(data-label);display:block;margin-bottom:6px;color:#8fc7f0;
    font-family:var(--font-mono);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  }
  table.service-comparison-table tbody tr:is(:hover,:focus-within)>*{background:transparent;}
  table.service-comparison-table tbody tr:is(:hover,:focus-within)>th{background:#31566d;}
}
@media(max-width:700px){
  table.service-comparison-table tbody{grid-template-columns:1fr;}
}
