:root {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #202c38;
  background: #f2f3f5;
  font-synthesis: none;
  --muted: #526170;
  --line: #cbd2da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  color: #6b7682;
  background: #e9edf0;
}
a {
  color: #23546c;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #327695;
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 56px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  background: #233444;
  color: #e8edf2;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  font-size: 21px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.4px;
}
.main-nav {
  display: flex;
  align-self: stretch;
  gap: 6px;
  margin-right: auto;
}
.main-nav a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #e2eaf1;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover {
  background: #304758;
}
.main-nav a[aria-current="page"] {
  background: #304758;
  border-bottom-color: #d9a5b8;
  color: white;
}
@media (max-width: 650px) {
  .topbar {
    gap: 12px;
  }
  .topbar .edition {
    display: none;
  }
  .main-nav {
    margin-left: auto;
    margin-right: 0;
  }
  .main-nav a {
    padding-inline: 10px;
  }
}
.brand-light {
  font-weight: 400;
}
.brand img {
  width: 30px;
  height: 30px;
}
.edition {
  font-size: 12px;
  letter-spacing: 0.6px;
}
main {
  max-width: 1680px;
  margin: auto;
  padding: 24px 32px;
}
.page-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.page-heading > span {
  color: var(--muted);
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 0;
}
.stats > div {
  padding: 0 24px;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.stats > div:first-child {
  border: 0;
}
.stats strong {
  font-size: 27px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stats span {
  font-size: 14px;
  color: #42515f;
}
.workspace {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 24px;
}
.filters-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}
.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}
.filter-heading h2 {
  font-size: 17px;
  font-weight: 650;
}
.text-button {
  background: transparent;
  border: 0;
  padding: 3px 0;
  color: #23546c;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filter-field > label,
legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
select,
input[type="number"] {
  border: 1px solid #a8b4c0;
  border-radius: 4px;
  background: #fff;
  padding: 7px 9px;
  min-height: 38px;
}
.filter-field > select {
  width: 100%;
  font-size: 14px;
  margin-bottom: 18px;
}
select option,
select optgroup {
  background-color: #fff;
  color: #202c38;
}
fieldset {
  margin: 0 0 18px;
  border: 0;
  padding: 0;
  min-width: 0;
}
fieldset:last-child {
  margin-bottom: 0;
}
legend {
  padding: 0;
}
.range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr);
  align-items: end;
  gap: 6px;
}
.range > span {
  padding-bottom: 11px;
  color: var(--muted);
}
.range label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}
.range input {
  width: 100%;
  min-width: 0;
  font-size: 13px;
  padding-inline: 7px;
}
input::placeholder {
  color: #5a6774;
  opacity: 1;
}
.muted {
  color: var(--muted);
  font-weight: 400;
}
.results {
  min-width: 0;
}
.list-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #a8b4c0;
  border-radius: 4px;
  height: 42px;
  padding: 0 12px;
  background: #fff;
  color: #455969;
  min-width: 0;
}
.search-wrap:focus-within {
  outline: 2px solid #327695;
  outline-offset: 1px;
}
.search-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  min-width: 0;
  height: 100%;
  font-size: 15px;
  background: transparent;
}
.search-wrap input:focus-visible {
  outline: 0;
}
.search-wrap kbd {
  font-size: 12px;
  background: #edf0f3;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}
.status-control select {
  height: 42px;
  font-size: 14px;
  min-width: 153px;
}
.secondary-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid #a8b4c0;
  border-radius: 4px;
  padding: 9px 13px;
  min-height: 40px;
  background: #fff;
  color: #294759;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.secondary-button:hover:enabled,
a.secondary-button:hover {
  background: #e8edf1;
}
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  min-height: 46px;
}
.sort-summary {
  font-size: 13px;
  color: var(--muted);
}
.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #ba8196 #f2f3f5;
}
.no-filters {
  color: var(--muted);
  font-size: 13px;
}
.is-filtered {
  background: #fae7ee !important;
  border-color: #b05b7a !important;
  color: #70253f;
  box-shadow: inset 3px 0 #b05b7a;
}
.search-wrap.is-filtered input {
  color: #70253f;
}
.filter-chip {
  flex: 0 0 auto;
  border: 1px solid #b86684;
  border-radius: 4px;
  background: #f4d4df;
  color: #70253f;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.filter-chip:hover {
  background: #ecc0d0;
}
.filter-chip span {
  margin-left: 5px;
}
.table-wrap {
  border: 1px solid #bac5cf;
  border-radius: 5px;
  background: #fff;
  overflow: auto;
  max-height: max(360px, calc(100dvh - 490px));
  scrollbar-color: #a5b3bf #edf0f3;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
  font-size: 15px;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e0e6ec;
  color: #263d4e;
  border-bottom: 1px solid #a8b7c4;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  padding: 0 12px;
  height: 43px;
  white-space: nowrap;
}
th:first-child {
  width: 29%;
}
th:nth-child(2) {
  width: 13%;
}
th:nth-child(3) {
  width: 16%;
}
th:nth-child(4) {
  width: 14%;
}
th:nth-child(5) {
  width: 20%;
}
th:last-child {
  width: 8%;
}
.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
}
.sort-button:hover {
  color: #153f56;
  text-decoration: underline;
  text-underline-offset: 4px;
}
th[aria-sort="ascending"],
th[aria-sort="descending"] {
  background: #cedce6;
  color: #183d54;
}
td {
  padding: 9px 12px;
  border-bottom: 1px solid #dce1e6;
  height: 42px;
  vertical-align: middle;
}
tbody tr:nth-child(even) {
  background: #f5f7f9;
}
tbody tr:hover {
  background: #eaf0f4;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.cable-name {
  display: block;
  color: #244e67;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cable-name:hover {
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 3px;
  background: #e4e8ed;
  color: #344453;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.active {
  background: #dfece5;
  color: #285440;
}
.badge.planned {
  background: #efe6d6;
  color: #704d15;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.year {
  font-variant-numeric: tabular-nums;
}
.length {
  white-space: nowrap;
}
.length span {
  font-size: 13px;
  color: var(--muted);
}
.countries {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.more-count {
  background: #e1e7ed;
  color: #374d5d;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 12px;
}
.map-link {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #445564;
  font-size: 13px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-button {
  background: #fff;
  border: 1px solid #acb9c5;
  border-radius: 4px;
  width: 34px;
  height: 32px;
  font-size: 17px;
}
.page-button:hover:enabled {
  background: #e2eaf0;
}
.loading {
  text-align: center;
  padding: 40px;
}
.empty-state {
  text-align: center;
  padding: 40px 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.empty-state h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.empty-state p {
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}
footer {
  max-width: 1616px;
  width: calc(100% - 64px);
  margin: 0 auto;
  padding: 12px 0 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #4f5f6d;
  line-height: 1.5;
}
footer > div {
  display: flex;
  gap: 12px;
}
footer strong {
  font-weight: 650;
}
footer p {
  text-align: right;
}
dialog {
  border: 1px solid #aab7c3;
  border-radius: 7px;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  color: #202c38;
  box-shadow: 0 15px 60px #14283b40;
}
dialog::backdrop {
  background: #17293999;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: #edf1f5;
  border-bottom: 1px solid var(--line);
  color: #445867;
  font-size: 13px;
}
.close-button {
  display: grid;
  place-items: center;
  border: 1px solid #b6c1cc;
  border-radius: 4px;
  background: white;
  color: #304859;
  width: 30px;
  height: 30px;
  font-size: 24px;
  line-height: 1;
}
#detail-content {
  padding: 18px 22px;
}
.detail-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
#detail-title {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.detail-facts {
  margin: 0;
  font-size: 14px;
}
.detail-facts > div {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e0e5e9;
  line-height: 1.5;
}
.detail-facts dt {
  color: #4a5d6c;
}
.detail-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.landings-section {
  margin-top: 18px;
}
.landing-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.landing-heading h3,
.notes h3 {
  font-size: 15px;
  font-weight: 650;
}
.landing-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.landing-group {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #e0e5e9;
  font-size: 14px;
  line-height: 1.5;
}
.country-link {
  align-self: start;
  justify-self: start;
  text-align: left;
  border: 0;
  padding: 0;
  background: none;
  color: #23546c;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.landing-places {
  overflow-wrap: anywhere;
}
.tbd {
  font-size: 12px;
  color: #704d15;
}
.notes {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid #afbecb;
  background: #f0f3f6;
}
.notes p {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.detail-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.detail-bottom > span {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1300px) {
  .stats > div {
    flex-direction: column;
    gap: 3px;
    padding-inline: 20px;
  }
  .workspace {
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 18px;
  }
  main {
    padding-inline: 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  footer {
    width: auto;
    margin-inline: 24px;
  }
  table {
    min-width: 850px;
  }
  th,
  td {
    padding-inline: 10px;
  }
  .table-wrap {
    max-height: max(360px, calc(100dvh - 513px));
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .filters-panel {
    padding: 14px 16px;
  }
  .filter-heading {
    margin-bottom: 14px;
  }
  #filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
  .filter-field {
    min-width: 0;
  }
  .filter-field:first-of-type {
    grid-column: 1 / -1;
  }
  .filter-field > select {
    margin-bottom: 8px;
  }
  fieldset {
    margin: 0;
  }
  .table-wrap {
    max-height: 65dvh;
  }
}
@media (max-width: 600px) {
  .topbar {
    padding-inline: 16px;
    height: 52px;
  }
  .topbar .edition {
    font-size: 9px;
    letter-spacing: 0;
    max-width: 100px;
    text-align: right;
  }
  .brand {
    font-size: 20px;
  }
  main {
    padding: 18px 16px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading {
    margin-bottom: 14px;
  }
  .page-heading > span {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }
  .stats > div {
    padding: 12px 16px;
  }
  .stats > div:nth-child(3) {
    border-left: 0;
  }
  .stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .stats strong {
    font-size: 24px;
  }
  .stats span {
    font-size: 13px;
  }
  .workspace {
    margin-top: 18px;
  }
  .list-controls {
    flex-wrap: wrap;
  }
  .search-wrap {
    flex-basis: 100%;
  }
  .status-control {
    flex: 1;
  }
  .status-control select {
    width: 100%;
  }
  .results-toolbar {
    align-items: flex-start;
    padding: 14px 0;
    gap: 8px;
    flex-direction: column;
    min-height: 0;
  }
  .sort-summary {
    font-size: 12px;
  }
  .table-wrap {
    max-height: 65dvh;
  }
  footer {
    margin-inline: 16px;
    font-size: 11px;
    align-items: flex-start;
  }
  footer > div {
    display: none;
  }
  .pagination {
    font-size: 12px;
  }
  dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }
  #detail-content {
    padding: 14px 16px;
  }
  .dialog-header {
    padding-inline: 16px;
  }
  .detail-title-row {
    align-items: flex-start;
  }
  #detail-title {
    font-size: 22px;
  }
  .detail-facts > div,
  .landing-group {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
  }
  .detail-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
