@layer pages {
  .traffic-main {
    display: block;
    padding: 46px 0;
  }
  .traffic-main h1 {
    font-size: clamp(28px, 5vw, 54px);
    white-space: normal;
    letter-spacing: -0.045em;
    margin: 0 0 12px;
  }
  .traffic-intro {
    margin: 0;
    color: var(--muted);
  }
  .back {
    font-size: 13px;
    color: var(--muted);
  }
  .traffic-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin: 30px 0;
  }
  .traffic-totals p {
    margin: 0;
  }
  .traffic-totals strong {
    font-size: 32px;
    display: block;
    line-height: 1.2;
    color: var(--cyan);
  }
  .traffic-totals span {
    font-size: 12px;
    color: var(--muted);
  }
  .traffic-map {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #09152c;
    overflow: hidden;
  }
  .traffic-map svg {
    display: block;
    width: 100%;
    height: auto;
  }
  .traffic-map path {
    stroke: var(--bg);
    stroke-width: 0.6;
    cursor: pointer;
    outline: none;
  }
  .traffic-map path:hover,
  .traffic-map path:focus {
    stroke: var(--ink);
    stroke-width: 2;
  }
  .country-readout {
    font-size: 12px;
    padding: 10px 14px;
    margin: 0;
    border-top: 1px solid var(--line);
    min-height: 42px;
    color: var(--muted);
  }
  .legend {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .legend span {
    width: 110px;
    height: 5px;
    background: linear-gradient(90deg, #173450, var(--cyan));
  }
  .traffic-table {
    margin: 28px 0;
    overflow-x: auto;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  caption {
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    padding-bottom: 14px;
  }
  th,
  td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }
  th:first-child,
  td:first-child {
    text-align: left;
  }
  th {
    font-size: 12px;
    color: var(--muted);
  }
  tbody tr:nth-child(odd) {
    background: #10244255;
  }
  .traffic-notes {
    font-size: 12px;
    color: var(--muted);
    max-width: 760px;
  }
  .traffic-notes a {
    text-decoration: underline;
  }
  #traffic-status {
    font-size: 13px;
    color: var(--muted);
  }
  .traffic-totals[hidden] {
    display: none;
  }
  #bot-types {
    margin-top: 28px;
  }
  #bot-types[hidden] {
    display: none;
  }
  #bot-types h2 {
    font-size: 24px;
    margin: 0 0 8px;
  }
  #bot-types th:nth-child(2),
  #bot-types td:nth-child(2) {
    text-align: left;
  }

  .country-standing {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink);
    padding: 12px 16px;
    border-left: 2px solid var(--cyan);
    background: #10244255;
    margin: 16px 0;
  }
  .country-standing[hidden] {
    display: none;
  }

  #country-table {
    overflow: visible;
  }
  .cybertron-label {
    position: relative;
    background: none;
    border: 0;
    border-bottom: 1px dotted var(--muted);
    padding: 3px 0;
    color: var(--ink);
    font: inherit;
    cursor: help;
    text-align: left;
  }
  .cybertron-card {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    z-index: 4;
    width: min(260px, 75vw);
    padding: 14px;
    background: #101c35;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 8px 24px #0006;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    font-weight: 400;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .cybertron-label:hover .cybertron-card,
  .cybertron-label:focus .cybertron-card,
  .cybertron-label[data-open='true'] .cybertron-card {
    visibility: visible;
    opacity: 1;
  }
  .cybertron-label[data-dismissed='true'] .cybertron-card {
    visibility: hidden;
    opacity: 0;
  }
}
