/* Compare table. White rows, hairline dividers, a deep-green sticky header.
   The note stays inside Details. Phones get one card per program. */

.cscroll {
  --cw: 100%;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  overflow: visible;
  max-height: none;
}
.cscroll-hint {
  display: none;
}

.cscroll .ctable {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 13.5px;
}
.cscroll .ctable tr {
  background: #fff;
  transition: none;
}
.cscroll .ctable tbody tr:hover,
.cscroll .ctable tbody tr:hover > th,
.cscroll .ctable tbody tr:hover > td {
  background: #fff;
}

.cscroll .ctable thead th,
.cscroll .ctable thead th:first-child,
.cscroll .ctable thead th:nth-child(1),
.cscroll .ctable thead th:nth-child(2),
.cscroll .ctable thead th:nth-child(n+3) {
  position: sticky;
  top: 64px;
  left: auto;
  z-index: 3;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 20px 11px 24px;
  background: #2f4e0b;
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .11em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  vertical-align: bottom;
}
.cscroll .ctable thead th:nth-child(1) { width: 22%; }
.cscroll .ctable thead th:nth-child(2) { width: 17%; }
.cscroll .ctable thead th:nth-child(3) { width: 16%; }
.cscroll .ctable thead th:nth-child(4) { width: 14%; }
.cscroll .ctable thead th:nth-child(5) { width: 15%; }
.cscroll .ctable thead th:nth-child(6) { width: 16%; }

.cscroll .ctable tbody th,
.cscroll .ctable tbody td,
.cscroll .ctable td:nth-child(2),
.cscroll .ctable td:nth-child(n+3) {
  min-width: 0;
  width: auto;
  box-sizing: border-box;
  padding: 20px 16px 20px 24px;
  background: #fff;
  box-shadow: none;
  border: 0;
  border-bottom: 1px solid #e7e8e3;
  vertical-align: top;
  text-align: left;
  overflow-wrap: break-word;
}
.cscroll .ctable tbody th {
  position: static;
  left: auto;
  z-index: auto;
  font-weight: 400;
}

.cscroll .cv {
  display: block;
  color: #101410;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}
.cscroll .cn,
.cscroll .ceu,
.cscroll .ceu.yes,
.cscroll .ctable tbody th .pcard .cmeta {
  display: block;
  margin-top: 3px;
  color: #8a9186;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}
.cscroll .ceu {
  margin-top: 4px;
}
.cscroll .cflag {
  color: #7a2a12;
}

.cscroll .pcard .cchip {
  margin-top: 8px;
  line-height: 1.2;
}
.cscroll .pcard .cchip .stchip,
.cscroll .pcard .cchip .schip {
  width: fit-content;
  max-width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  padding: 2px 8px;
  border: 1px solid #2f4e0b;
  border-radius: 999px;
  background: #fff;
  color: #2f4e0b;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.3;
  text-align: left;
  text-box: none;
  white-space: normal;
  justify-content: flex-start;
}

/* Closed rows show the name, country, status pill and Details toggle.
   The note stays inside the disclosure, including when a browser paints
   closed <details> content (flex summaries, display:contents parents). */
.cscroll .pcard .cdet:not([open]) .cdet-b,
.cscroll .pcard .cdet:not([open])::details-content {
  display: none;
}

.cscroll td > a.csrc,
.cscroll td > a.csrc:first-of-type,
.cscroll td > a.csrc:last-of-type {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 8px 6px 0 0;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  border: 1px solid #e4e6e1;
  border-radius: 999px;
  background: #fff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  vertical-align: top;
}
.cscroll td > a.csrc::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  background: #5f665c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M4.4 3.2h8.4v8.4h-1.5V5.8L4.7 12.4 3.6 11.3l6.6-6.6H4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M4.4 3.2h8.4v8.4h-1.5V5.8L4.7 12.4 3.6 11.3l6.6-6.6H4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cscroll td > a.csrc:hover {
  border-color: #2f4e0b;
  color: transparent;
}
.cscroll td > a.csrc:hover::after {
  background: #2f4e0b;
}
.cscroll td > a.csrc:focus-visible {
  outline: 2px solid #2f4e0b;
  outline-offset: 2px;
}
.cscroll .csrc + .csrc {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .cscroll {
    width: 100%;
    margin-left: 0;
    overflow: visible;
    max-height: none;
  }
  .cscroll .ctable,
  .cscroll .ctable tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .cscroll .ctable thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .cscroll .ctable tbody tr {
    display: block;
    margin: 0 0 24px;
    padding: 20px 24px 18px;
    border: 1px solid #e7e8e3;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .cscroll .ctable tbody tr:last-child {
    margin-bottom: 0;
  }
  .cscroll .ctable tbody tr:hover,
  .cscroll .ctable tbody tr:hover > th,
  .cscroll .ctable tbody tr:hover > td {
    background: #fff;
  }
  .cscroll .ctable tbody th,
  .cscroll .ctable tbody td {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .cscroll .ctable tbody th {
    padding-top: 0;
  }
  .cscroll .ctable tbody td::before {
    display: block;
    margin: 0 0 3px;
    color: #8a9186;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  .cscroll .ctable tbody td:nth-child(2) {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e7e8e3;
  }
  .cscroll .ctable tbody td:nth-child(2)::before { content: "Route type"; }
  .cscroll .ctable tbody td:nth-child(3)::before { content: "Minimum investment"; }
  .cscroll .ctable tbody td:nth-child(4)::before { content: "Physical stay"; }
  .cscroll .ctable tbody td:nth-child(5)::before { content: "Path to citizenship"; }
  .cscroll .ctable tbody td:nth-child(6)::before { content: "Family included"; }
  .cscroll .dname {
    font-size: 17px;
    line-height: 1.25;
  }
  .cscroll .cmeta,
  .cscroll .ceu,
  .cscroll .cflag,
  .cscroll .cn,
  .cscroll .cv {
    display: block;
  }
  .cscroll .cdet summary {
    min-height: 0;
  }
}
