@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/w3tel/fonts/league-spartan-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/w3tel/fonts/poppins-regular-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/w3tel/fonts/poppins-medium-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/w3tel/fonts/poppins-semibold-latin.woff2") format("woff2");
}

:root {
  --ink: #0c1a13;
  --teal-dark: #0e4f52;
  --teal: #3e9ea1;
  --teal-pale: #e8f7f2;
  --acid: #aaff00;
  --off: #f6f7f5;
  --white: #ffffff;
  --muted: #60736a;
  --line: #dce4df;
  --danger: #b42318;
  --warning: #8a5a00;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--off);
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--off);
  font: 400 15px/1.6 "Poppins", Arial, Helvetica, sans-serif;
}

img,
object {
  max-width: 100%;
}

a {
  color: var(--teal-dark);
  text-decoration-color: var(--teal);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(62, 158, 161, 0.35);
  outline-offset: 2px;
}

p {
  margin: 0 0 16px;
}

hr {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--line);
}

.site-header {
  width: 100%;
  min-height: 82px;
  border-top: 4px solid var(--acid);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.site-header__inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  width: 138px;
  height: 72px;
  display: flex;
  flex: 0 0 138px;
  align-items: center;
  overflow: hidden;
}

.brand img {
  width: 138px;
  height: 78px;
  display: block;
  object-fit: contain;
}

.site-header__context {
  min-width: 0;
  padding-left: 24px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-left: 1px solid var(--line);
}

.site-header__context span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-header__context strong {
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.site-header__link {
  margin-left: auto;
  padding: 10px 18px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.site-header__link:hover {
  color: var(--white);
  background: var(--teal);
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 64px;
  flex: 1 0 auto;
}

.page-intro {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.page-title {
  margin: 0;
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
}

.page-title span {
  color: var(--teal);
}

.lookup-form,
.result-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.lookup-form {
  margin: 0;
}

.lookup-form__header {
  min-height: 76px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--white);
  background: var(--ink);
}

.lookup-form__header h2 {
  margin: 0;
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.15;
}

.network-badge {
  padding: 5px 11px;
  border: 1px solid var(--acid);
  border-radius: 100px;
  color: var(--acid);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.lookup-form__body {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 28px;
  align-items: start;
}

.form-field,
.query-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-label,
.query-group legend {
  display: block;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.query-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.query-option {
  min-height: 44px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--off);
  cursor: pointer;
}

.query-option:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.query-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 17px;
  accent-color: var(--teal);
}

.query-option span {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.protocol-field {
  margin-top: 14px;
}

.form-control {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #bdc9c2;
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  font: 400 14px/1.4 "Poppins", Arial, sans-serif;
}

.form-control:hover {
  border-color: var(--teal);
}

.form-control::placeholder {
  color: #84928b;
  opacity: 1;
}

.verification-row {
  min-height: 1px;
  padding: 0 28px;
  text-align: center;
}

altcha-widget {
  display: block;
  max-width: 420px;
  margin: 0 auto;
}

.lookup-form__actions {
  min-height: 82px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--off);
}

.button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 600 13px/1 "Poppins", Arial, sans-serif;
  cursor: pointer;
}

.button--primary {
  color: var(--ink);
  background: var(--acid);
}

.button--primary:hover {
  background: #98e600;
}

.button--secondary {
  border-color: #bdc9c2;
  color: var(--ink);
  background: var(--white);
}

.button--secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.result-panel {
  padding: 28px;
}

.result-panel > p:first-child {
  margin-top: 0;
}

.center {
  text-align: center;
}

.error,
.warning {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 4px solid currentColor;
  border-radius: 4px;
  font-weight: 600;
  text-align: left;
}

.error {
  color: var(--danger);
  background: #fff1f0;
}

.warning {
  color: var(--warning);
  background: #fff8e6;
}

pre {
  max-width: 100%;
  margin: 18px 0 0;
  padding: 22px;
  overflow: auto;
  border-left: 4px solid var(--acid);
  border-radius: 6px;
  color: #dff6ec;
  background: var(--ink);
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-align: left;
  white-space: pre;
}

.graph-result object {
  width: 100%;
  height: 640px;
  margin: 12px 0 0;
  display: block;
  border: 1px solid var(--line);
  background: var(--white);
}

.graph-legend {
  margin: 10px auto 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  color: var(--muted);
  font-size: 12px;
}

.graph-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.graph-swatch {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1px solid;
  border-radius: 2px;
}

.graph-swatch--upstream {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.graph-swatch--peering {
  border-color: #7aa813;
  background: #eeffcc;
}

.graph-route-sample {
  width: 36px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.graph-route-sample::before {
  content: "";
  width: 28px;
  height: 3px;
  position: absolute;
  top: 6px;
  left: 0;
  background: var(--teal);
}

.graph-route-sample::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--teal);
}

.legacy-legend {
  display: none;
}

.site-footer {
  width: 100%;
  color: #d4e2db;
  background: var(--ink);
}

.site-footer__inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-footer a {
  color: var(--white);
  font-size: 12px;
  text-decoration-color: var(--teal);
}

@media (max-width: 900px) {
  .lookup-form__body {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .graph-result object {
    height: 560px;
  }
}

@media (max-width: 620px) {
  .site-header__inner,
  .page-shell,
  .site-footer__inner {
    width: min(100% - 28px, 1180px);
  }

  .site-header,
  .site-header__inner {
    min-height: 70px;
  }

  .brand {
    width: 104px;
    height: 64px;
    flex-basis: 104px;
  }

  .brand img {
    width: 104px;
    height: 62px;
  }

  .site-header__context {
    padding-left: 14px;
  }

  .site-header__context span,
  .site-header__link {
    display: none;
  }

  .site-header__context strong {
    font-size: 18px;
  }

  .page-shell {
    padding: 30px 0 42px;
  }

  .page-title {
    font-size: 37px;
  }

  .lookup-form__header,
  .lookup-form__body,
  .lookup-form__actions,
  .result-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lookup-form__header h2 {
    font-size: 24px;
  }

  .query-options {
    grid-template-columns: 1fr;
  }

  .lookup-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .result-panel {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  pre {
    padding: 16px;
    font-size: 12px;
  }

  .graph-result object {
    height: 480px;
  }

  .graph-legend {
    gap: 8px 14px;
    font-size: 10px;
  }

  .site-footer__inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
