.route-hop-scroll { width: 100%; background: #f6f8f5; max-width: 100%; overflow-x: auto; border: 1px solid var(--line, #e2e6ed); border-radius: 10px; }
.route-hop-table { width: auto; border-collapse: collapse; text-align: left; color: #26362c; background: #f6f8f5; font: 14px/1.65 Consolas, 'Microsoft YaHei', monospace; }
.route-hop-table th, .route-hop-table td { padding: 4px 10px; border-bottom: 1px solid var(--line, #e2e6ed); vertical-align: top; }
.route-hop-table th { color: var(--muted, #657084); font-weight: 500; white-space: nowrap; }
.route-hop-table tbody tr:last-child td { border-bottom: 0; }
.route-hop-table th:first-child, .route-hop-table td:first-child { width: 48px; text-align: center; }
.route-hop-table code { font: inherit; white-space: nowrap; }
.route-hop-table small { display: block; max-width: 280px; color: var(--muted, #657084); font: inherit; overflow-wrap: anywhere; }
.route-asn { font-variant-numeric: tabular-nums; font-weight: 500; }
.route-hop-location { max-width: 300px; }
.route-hop-rtt { font-variant-numeric: tabular-nums; }
.route-page-intro > p { margin: 0; }
.route-geo-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.route-raw { margin-top: 14px; }
.route-raw summary { width: fit-content; cursor: pointer; font-size: 13px; color: var(--muted, #657084); }
.route-raw pre { max-width: 100%; margin-top: 12px; overflow-x: auto; }
html[data-theme="dark"] .route-hop-scroll, html[data-theme="dark"] .route-hop-table :is(th, td) { border-color: var(--line, #344052); }
html[data-theme="dark"] .route-hop-scroll { background: var(--surface-container); }
html[data-theme="dark"] .route-hop-table { color: var(--ink-soft); background: var(--surface-container); }
@media (max-width: 600px) {
  .route-hop-scroll { width: 100%; overflow-x: visible; }
  .route-hop-table, .route-hop-table tbody { display: block; width: 100%; }
  .route-hop-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .route-hop-table tbody tr { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(64px, auto); column-gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line, #e2e6ed); }
  .route-hop-table tbody tr:last-child { border-bottom: 0; }
  .route-hop-table td { min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .route-hop-table td:first-child { width: auto; grid-column: 1; grid-row: 1; text-align: left; color: var(--muted, #657084); }
  .route-hop-ip { grid-column: 2; grid-row: 1; }
  .route-hop-table code { white-space: normal; overflow-wrap: anywhere; }
  .route-hop-network { grid-column: 2 / 4; grid-row: 2; color: var(--muted, #657084); }
  .route-hop-table small { display: inline; max-width: none; }
  .route-hop-table small::before { content: ' · '; }
  .route-hop-location { grid-column: 2 / 4; grid-row: 3; max-width: none; color: var(--muted, #657084); }
  .route-hop-rtt { grid-column: 3; grid-row: 1; max-width: 120px; text-align: right; }
  .route-hop-empty :is(.route-hop-network, .route-hop-location) { display: none; }
}

.overseas-route > summary > .overseas-route-title { margin: 0; line-height: inherit; }

.overseas-route > .manual-route-caption { margin: 12px 20px 0 39px; }
.overseas-route > .manual-route-caption + .route-result { margin-top: 0; padding-top: 12px; border-top: 0; }
@media (max-width: 600px) {
  .overseas-route > .manual-route-caption { margin-right: 12px; margin-left: 29px; }
}

.overseas-route > summary::before { box-sizing: border-box; }

.overseas-latency-heading { margin: 28px 0 20px; color: var(--ink); }
.overseas-latency-heading + .content-panel { margin-top: 0; }

.overseas-routes-heading + .route-page-intro { padding-left: 40px; margin-bottom: 12px; font-size: 13px; }
.overseas-routes-heading + .route-page-intro + .overseas-route { margin-top: 0; }
@media (max-width: 600px) {
  .overseas-routes-heading + .route-page-intro { padding-left: 30px; }
}

.overseas-routes-heading { margin-top: 40px; }
.route-hop-table .route-hop-gap td { width: auto; text-align: left; color: var(--muted, #657084); }
@media (max-width: 600px) {
  .route-hop-table .route-hop-gap td { grid-column: 1 / -1; grid-row: auto; }
}
