/* BGP Report. The look follows IX Report and RIR Tracker (same tokens and type), so the three read as one family. */
:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --ink: #16212e;
  --ink-2: #4c5a6b;
  --ink-3: #5f6b7a;     /* darker than the sister sites' #7b8796: 4.5:1 on every background (WCAG AA) */
  --line: #d6dce3;
  --line-2: #e6eaef;
  --aqua: #00757d;       /* links: a darker fiber aqua than the sister sites' #008b94, for 4.5:1 */
  --aqua-soft: #d5eff0;
  --orange: #d9661a;     /* fiber #2: on the IX's list only */
  --orange-soft: #fbe6d6;
  --slate: #8193a8;      /* fiber #5: in PeeringDB only */
  --slate-soft: #e3e8ee;
  --focus: #2b59d6;
  --row-hover: #f5f8fb;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1720; --surface: #16202b; --ink: #e6edf4; --ink-2: #a7b4c2; --ink-3: #8a97a5;
    --line: #2a3644; --line-2: #212c38; --aqua: #3cc4cc; --aqua-soft: #12383d;
    --orange: #f08a43; --orange-soft: #43281a; --slate: #8a9bb0; --slate-soft: #26313d;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1720; --surface: #16202b; --ink: #e6edf4; --ink-2: #a7b4c2; --ink-3: #8a97a5;
  --line: #2a3644; --line-2: #212c38; --aqua: #3cc4cc; --aqua-soft: #12383d;
  --orange: #f08a43; --orange-soft: #43281a; --slate: #8a9bb0; --slate-soft: #26313d;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--sans); font-variant-numeric: tabular-nums;
}
a { color: var(--aqua); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
/* links that stand alone (navigation, tables, lists) aren't underlined; links inside text are, so they don't rely on colour */
.nav a, .navdrop a, .mark, .grid a, .toplist a, .sites a { text-decoration: none; }
.nav a:hover, .grid a:hover, .toplist a:hover, .sites a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: -0.01em; }
.muted { color: var(--ink-3); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- header */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800;
        font-stretch: 125%; font-size: 20px; letter-spacing: -0.02em; }
.mark:hover { text-decoration: none; }
.mark svg { flex: none; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 500; }
.nav a[aria-current="page"] { color: var(--ink); }
.navlinks { display: flex; gap: 18px; }
.navmenu { display: none; position: relative; }
.navmenu summary { list-style: none; cursor: pointer; width: 34px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line);
                   border-radius: 8px; color: var(--ink-2); }
.navmenu summary::-webkit-details-marker { display: none; }
.navdrop { position: absolute; right: 0; top: 40px; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
           box-shadow: 0 12px 30px -12px rgba(16, 30, 50, .35); padding: 6px; min-width: 180px; display: grid; }
.navdrop a { padding: 9px 12px; border-radius: 6px; color: var(--ink); }
.navdrop a:hover, .navdrop a[aria-current="page"] { background: var(--aqua-soft); text-decoration: none; }
@media (max-width: 980px) {
  .navlinks { display: none; }
  .navmenu { display: block; }
}
.theme { background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 6px;
         width: 32px; height: 32px; cursor: pointer; display: grid; place-items: center; }

.stalebar { background: #c92127; color: #fff; font-size: 14px; }
.stalebar .wrap { padding-top: 9px; padding-bottom: 9px; }
/* ---------- index intro */
.intro { padding-top: 44px; padding-bottom: 28px; }
.intro h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.05; font-weight: 800; font-stretch: 112%;
            letter-spacing: -0.025em; margin: 0 0 14px; max-width: 18ch; }
.intro p { color: var(--ink-2); font-size: 17px; max-width: 62ch; margin: 0; }
.intro p b { color: var(--ink); font-weight: 600; }
.intro p + p { margin-top: 10px; }
/* ---------- filters */
.filters { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0;
           border-bottom: 1px solid var(--line); }
.filters .wrap { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(130px, .8fr) minmax(200px, 1.4fr) auto;
                 gap: 10px; align-items: end; }
.field label { display: block; font-size: 12.5px; color: var(--ink-3); margin: 0 0 4px 2px; }
.field input, .field select { min-width: 0; max-width: 100%;
  width: 100%; height: 38px; padding: 0 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.check { display: flex; gap: 8px; align-items: center; height: 38px; color: var(--ink-2); white-space: nowrap; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--aqua); width: 16px; height: 16px; }
@media (max-width: 640px) { .wrap { padding-left: 16px; padding-right: 16px; } .hide-sm { display: none !important; } .nav { gap: 12px; }
  .grid td, .grid th button { padding-left: 7px; padding-right: 7px; } .grid th { font-size: 12px; } }
.show-sm { display: none !important; }
.resultbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0 10px; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; color: var(--aqua); font: inherit; cursor: pointer; padding: 0; }
/* ---------- tables */
.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; margin-bottom: 48px; }
table.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; border-bottom: 1px solid var(--line);
           background: var(--surface); white-space: nowrap; }
/* stickyhead.js moves a long table's heading row down the page as it scrolls */
.grid thead { position: relative; z-index: 3; }
.grid thead.stuck th { box-shadow: 0 -3px 0 var(--surface), 0 1px 0 var(--line), 0 6px 10px -8px rgba(16, 30, 50, .35); }
.grid th:not(:has(button)) { padding: 11px 14px; }
.grid th button { all: unset; display: flex; gap: 6px; align-items: center; padding: 11px 14px; cursor: pointer; width: 100%; box-sizing: border-box; }
.grid th.num button { justify-content: flex-end; }
.grid th button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.grid th .arrow { width: 9px; color: var(--ink-3); font-size: 10px; }
.grid th[aria-sort="ascending"] .arrow::after { content: "▲"; color: var(--ink); }
.grid th[aria-sort="descending"] .arrow::after { content: "▼"; color: var(--ink); }
.grid th[aria-sort="none"] button:hover .arrow::after { content: "▲"; opacity: .4; }
.grid td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.grid tr:last-child td { border-bottom: 0; }
.grid tbody tr:hover { background: var(--row-hover); }
.grid .num { text-align: right; white-space: nowrap; }
.grid .nm a { color: var(--ink); font-weight: 600; }
.grid .sub { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.35; margin-top: 1px; }
.grid .loc { min-width: 140px; max-width: 300px; }
.grid .flag { margin-right: 6px; }
.grid .none { color: var(--ink-3); }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-2); }
.grid td.asn { font-variant-numeric: tabular-nums; width: 1%; }
.grid .sub.listonly { color: var(--orange); }
.more { text-align: center; margin: -28px 0 48px; }
.btn { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
       border-radius: 7px; padding: 8px 18px; cursor: pointer; }
.btn:hover { border-color: var(--aqua); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.panel h2 { font-size: 15px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.005em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; min-width: 0; }
.panel dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.panel dt { color: var(--ink-3); }
.panel dd { margin: 0; overflow-wrap: anywhere; }
.panel ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.panel li { padding: 5px 0; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 12px; }
.panel li:last-child { border-bottom: 0; }
.panel .scroll { max-height: 260px; overflow: auto; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--ink-3); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .sites span { color: var(--ink); font-weight: 600; }
footer .powered { font-weight: 600; }
footer .powered a { color: var(--ink-2); }

/* status colours: every badge also says what it is */
:root { --good: #1b7349; --good-soft: #dcf2e6; --bad: #b02c26; --bad-soft: #fbe3e1; --warn: #8d5300; --warn-soft: #fbedd6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --good: #6fd3a0; --good-soft: #173628; --bad: #f5948e; --bad-soft: #45201d; --warn: #f3bb66; --warn-soft: #3c2c13; }
}
:root[data-theme="dark"] { --good: #6fd3a0; --good-soft: #173628; --bad: #f5948e; --bad-soft: #45201d; --warn: #f3bb66; --warn-soft: #3c2c13; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.asjump input { width: 150px; height: 32px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg);
                border: 1px solid var(--line); border-radius: 6px; }
.asjump input:focus { outline: none; border-color: var(--focus); }
.pagehead { padding-top: 32px; padding-bottom: 18px; }
.pagehead .crumbs { margin: 0 0 6px; font-size: 14px; color: var(--ink-3); }
.pagehead h1 { font-size: clamp(26px, 3.8vw, 40px); line-height: 1.1; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em;
               margin: 0 0 8px; overflow-wrap: anywhere; }
.pagehead h1 .nm { font-weight: 600; color: var(--ink-2); }
.who { margin: 0; color: var(--ink-2); }
.caution { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 8px;
           padding: 10px 14px; margin: 14px 0 0; max-width: 90ch; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; border-top: 3px solid var(--line); }
.tile.t-bad { border-top-color: var(--bad); }
.tn { display: block; font-size: 26px; font-weight: 750; font-stretch: 110%; line-height: 1.1; }
.tl { display: block; font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.ts { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .asjump input { width: 110px; } }
.elsewhere { margin-bottom: 8px; font-size: 14px; }
.elsewhere h2 { margin-bottom: 6px; }
.elsewhere ul li { display: block; border: 0; padding: 2px 0; }
section h2 { font-size: 20px; margin: 30px 0 6px; letter-spacing: -0.01em; }
.note { color: var(--ink-2); font-size: 14px; max-width: 110ch; margin: 0 0 12px; }
.tablewrap { margin-bottom: 18px; }
.st { display: inline-block; font-size: 12px; font-weight: 650; line-height: 1.5; padding: 0 7px; border-radius: 4px; white-space: nowrap; }
.st-valid { background: var(--good-soft); color: var(--good); }
.st-invalid_origin, .st-invalid_length { background: var(--bad-soft); color: var(--bad); }
.st-not_found { background: var(--slate-soft); color: var(--ink-2); }
.st-unavailable { border: 1px dashed var(--ink-3); color: var(--ink-3); }
.tag { font-size: 11.5px; font-weight: 600; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; white-space: nowrap; font-family: var(--sans); }
.t-bogon { color: var(--warn); }
.counts { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.counts li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 13.5px; display: flex; gap: 10px; }
.fixes td { font-size: 14px; }
.nowrap { white-space: nowrap; }
.small { font-size: 13px; }
.sourcesnote { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 14px; }
.intro p + p { margin-top: 10px; }
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 40px; }
@media (max-width: 800px) { .lists { grid-template-columns: 1fr; } }
.lists .panel h2 { font-size: 15px; margin: 0 0 8px; }
.toplist { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.panel .toplist li { display: flex; gap: 8px; padding: 5px 0; justify-content: flex-start; }
.toplist li .muted { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.toplist b { font-weight: 650; }
.navdrop .sm-only { display: none; }
@media (max-width: 520px) { .asjump { display: none; } .navdrop .sm-only { display: block; } .top .wrap { gap: 12px; } }
.prose { margin-bottom: 40px; }
.prose > * { max-width: 860px; }
.prose h2 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose b { color: var(--ink); }
.defs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.defs dt { font-weight: 650; }
.defs dd { margin: 0; color: var(--ink-2); }
.defs.api { grid-template-columns: 1fr; gap: 2px; }
.defs.api dd { margin-bottom: 10px; }
.defs.api dt { font-family: var(--mono); font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 640px) { .defs { grid-template-columns: 1fr; gap: 2px; } .defs dd { margin-bottom: 8px; } }
.bigsearch label { display: block; font-size: 14px; color: var(--ink-2); margin: 6px 0; }
.bigsearch input { width: 100%; max-width: 640px; height: 44px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
                   background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.bigsearch input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.results { list-style: none; padding: 0; margin: 0 0 20px; max-width: 860px; }
.results li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; }
.results .k { color: var(--ink-3); font-size: 12.5px; margin-left: 6px; }
