/*
 * IX.NET exchange sites. Same design system as ix.net: navy page heads with blue and red
 * traces, light editorial sections, Archivo and IBM Plex Mono. Each exchange uses the same
 * stylesheet; only its name, logo and content change.
 */
:root {
  --navy: #072644; --navy-2: #0C3561;
  --blue: #0160AE; --blue-bright: #3C8DE0;
  --red: #D30D0D; --red-bright: #F0433A;
  --on-navy: #FFFFFF; --on-navy-soft: #A9BCD3;

  --bg: #F4F7FA; --surface: #FFFFFF; --ink: #0A2140; --ink-soft: #4B5E75; --rule: #D3DDE8;
  --link: #0160AE; --accent-blue: var(--blue); --accent-red: var(--red); --red-text: #B80B0B;
  --header-bg: #FFFFFF; --logo-light: block; --logo-dark: none; --logo-tile: #FFFFFF;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #041A30; --surface: #072644; --ink: #E8EFF7; --ink-soft: #A9BCD3; --rule: #1B3C62;
    --link: #6FB0F5; --accent-blue: #5AA0E8; --accent-red: #F0433A; --red-text: #F77A73; --header-bg: #072644;
    --logo-light: none; --logo-dark: block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #041A30; --surface: #072644; --ink: #E8EFF7; --ink-soft: #A9BCD3; --rule: #1B3C62;
  --link: #6FB0F5; --accent-blue: #5AA0E8; --accent-red: #F0433A; --red-text: #F77A73; --header-bg: #072644;
  --logo-light: none; --logo-dark: block; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--surface); color: var(--link); font-weight: 700; padding: 10px 16px; border-radius: 6px; box-shadow: 0 2px 10px rgb(0 0 0 / .25); }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
.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; }

/* ---------- Header ---------- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; line-height: 0; text-decoration: none; }
.brand img { height: 44px; width: auto; max-width: 300px; object-fit: contain; object-position: left center; }
.brand .on-light { display: var(--logo-light); }
.brand .on-dark { display: var(--logo-dark); }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--accent-blue); }
.site-nav a[aria-current="page"] { color: var(--accent-blue); }
.site-nav a.join { color: #fff; background: var(--red); padding: 9px 16px; border-radius: 6px; white-space: nowrap; }
.site-nav a.join:hover { background: #B00A0A; color: #fff; }
.menu-btn { display: none; align-items: center; gap: 8px; background: none; border: 2px solid var(--rule); color: var(--ink); border-radius: 6px; padding: 7px 12px; font: 600 15px var(--body); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.mobile-menu { background: var(--header-bg); border-bottom: 1px solid var(--rule); }
.mobile-menu ul { list-style: none; margin: 0; padding: 6px 0 14px; }
.mobile-menu a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--rule); }
.mobile-menu li:last-child a { border-bottom: 0; }
@media (max-width: 1060px) { .site-nav li:not(.cta) { display: none; } .menu-btn { display: inline-flex; } .site-nav ul { gap: 10px; } }
@media (max-width: 480px) { .brand img { height: auto; width: min(150px, 40vw); } .menu-btn span { display: none; } .site-nav a.join { padding: 8px 12px; font-size: 14px; } .site-header .wrap { gap: 10px; } .site-nav ul { gap: 8px; } }

/* ---------- Page heads (navy) ---------- */
.hero, .page-head { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.hero { padding-block: 64px 56px; }
.page-head { padding-block: 52px 44px; }
/* Blue trace on the left edge, red on the right, like the IX.NET logo */
.hero::before, .hero::after, .page-head::before, .page-head::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; }
.hero::before, .page-head::before { left: 0; background: var(--blue-bright); }
.hero::after, .page-head::after { right: 0; background: var(--red-bright); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.0; letter-spacing: -0.02em; font-weight: 900; font-variation-settings: "wdth" 112; max-width: 14em; }
.hero h1 .dot, .page-head h1 .dot { color: var(--red-bright); }
.hero p.kicker { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; margin: 22px 0 0; font-variation-settings: "wdth" 104; }
.hero p.lede { color: var(--on-navy-soft); font-size: 19px; max-width: 38em; margin: 12px 0 30px; }
.hero p.lede strong { color: var(--on-navy); font-weight: 600; }
.page-head h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.04; letter-spacing: -0.015em; font-weight: 900; font-variation-settings: "wdth" 110; max-width: 20em; }
.page-head p { color: var(--on-navy-soft); font-size: 18.5px; max-width: 40em; margin: 16px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 14px 22px; border-radius: 6px; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: #B00A0A; }
.btn.ghost { color: var(--on-navy); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn.outline { color: var(--link); box-shadow: inset 0 0 0 2px var(--rule); }
.btn.outline:hover { box-shadow: inset 0 0 0 2px var(--link); }
.part-of { margin: 26px 0 0; font-size: 15px; color: var(--on-navy-soft); }
.part-of a { color: var(--on-navy); }

/* ---------- Facts strip ---------- */
.facts { background: var(--surface); border-bottom: 1px solid var(--rule); }
.facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 10px 28px; }
.facts li { font-size: 15.5px; color: var(--ink-soft); }
.facts li b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
section.block { padding-block: 64px; }
section.block + section.block { border-top: 1px solid var(--rule); }
section.block.alt { background: var(--surface); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 56px; align-items: end; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(24px, 2.5vw, 31px); line-height: 1.12; letter-spacing: -0.01em; font-weight: 800; font-variation-settings: "wdth" 104; }
.sec-head p { margin: 0; color: var(--ink-soft); font-size: 18px; max-width: 36em; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }
.tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.tag::before { content: ""; width: 42px; height: 12px; flex: none;
  background: radial-gradient(circle at 36px 6px, currentColor 5px, transparent 5.6px),
              linear-gradient(currentColor, currentColor) 0 4px / 32px 4px no-repeat; }
.tag.blue { color: var(--accent-blue); }
.tag.red { color: var(--accent-red); }
.tag.on-navy { color: #5AA0E8; }
.note { font-size: 14.5px; color: var(--ink-soft); margin-top: 26px; max-width: 60em; }

/* Four-up explainer */
.explain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.explain > div { border-top: 3px solid var(--accent-blue); padding-top: 16px; }
.explain h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.explain p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 900px) { .explain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .explain { grid-template-columns: 1fr; } }

/* Why peer */
.why-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 64px; align-items: start; }
.why-lead h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; font-weight: 900; font-variation-settings: "wdth" 106; margin-bottom: 16px; }
.why-lead p { margin: 0; color: var(--ink-soft); font-size: 18px; max-width: 32em; }
.why-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
.why-points li { border-top: 3px solid var(--c); padding-top: 14px; position: relative; }
.why-points li::before { content: ""; position: absolute; top: -8px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--c); }
.why-points li.b { --c: var(--accent-blue); } .why-points li.r { --c: var(--accent-red); }
.why-points h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.why-points p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .why-points { grid-template-columns: 1fr; } }

/* Call to action band */
.cta-band { background: var(--navy); color: var(--on-navy); padding-block: 48px; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta-band h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; font-variation-settings: "wdth" 106; }
.cta-band p { margin: 6px 0 0; color: var(--on-navy-soft); }

/* Supporters */
.supporters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.supporters a { display: grid; place-items: center; height: 96px; padding: 14px 18px; background: var(--logo-tile); border: 1px solid var(--rule); border-radius: 8px; }
.supporters a:hover { border-color: var(--accent-blue); }
.supporters img { max-width: 100%; max-height: 62px; width: auto; height: auto; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 19px;
  box-shadow: 0 0 0 1px var(--rule);
}
.steps li::after { content: ""; position: absolute; top: 19px; left: 52px; right: -20px; height: 3px; background: var(--rule); border-radius: 2px; }
.steps li:nth-child(3n)::after, .steps li:last-child::after { display: none; }
.steps h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.steps p { margin: 0 0 10px; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Locations */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.loc { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 22px 22px 18px; border-top: 4px solid var(--c, var(--accent-blue)); }
.loc.ext { --c: var(--accent-red); }
.loc h3 { font-size: 20px; font-weight: 800; line-height: 1.2; font-variation-settings: "wdth" 104; }
.loc address { font-style: normal; color: var(--ink-soft); font-size: 15px; margin: 6px 0 12px; }
.loc ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.loc li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.loc li:last-child { border-bottom: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 36px; }
.features h3 { font-size: 17px; font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.features ul { list-style: none; margin: 0; padding: 0; }
.features li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-soft); }

/* Participants */
.dir-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 8px; }
.search { position: relative; flex: 1 1 280px; max-width: 460px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--ink-soft); }
.search input { width: 100%; font: 500 16.5px var(--body); color: var(--ink); background: var(--surface); border: 2px solid var(--rule); border-radius: 8px; padding: 12px 14px 12px 44px; }
.search input:focus { outline: none; border-color: var(--accent-blue); }
.dir-status { color: var(--ink-soft); font-size: 14.5px; margin: 0; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 13.5px; color: var(--ink-soft); font-weight: 700; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.members { min-width: 980px; }
.members h2 { font-size: 21px; font-weight: 800; }
.members tbody.section th { padding-top: 34px; font-size: 20px; color: var(--ink); text-transform: none; letter-spacing: 0; border-bottom: 2px solid var(--ink); font-family: var(--display); font-weight: 800; }
.members tbody.section th small { font-family: var(--body); font-weight: 600; color: var(--ink-soft); font-size: 14px; margin-left: 10px; }
.members tbody.section:first-child th { padding-top: 8px; }
.members td.name { font-weight: 600; }
.members td.addr, .members td.asn, .members td.set { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.members td.speed { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; color: var(--accent-blue); background: color-mix(in srgb, var(--accent-blue) 13%, transparent); }
.pill.pending { color: var(--red-text); background: color-mix(in srgb, var(--accent-red) 12%, transparent); }
.pill.muted { color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 12%, transparent); }
.members tr[hidden], .members tbody[hidden] { display: none; }
.members mark { background: color-mix(in srgb, var(--accent-red) 20%, transparent); color: inherit; border-radius: 2px; }
.dir-empty { padding: 28px 0; color: var(--ink-soft); }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.stat-grid li { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; }
.stat-grid b { display: block; font-family: var(--display); font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-grid span { color: var(--ink-soft); font-size: 14.5px; }
.graphs { display: grid; gap: 24px; }
.graphs figure { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 16px; }
.graphs img { width: 100%; height: auto; display: block; background: #fff; border-radius: 4px; }
.graphs figcaption { margin-top: 10px; font-weight: 700; }
.placeholder { background: var(--surface); border: 2px dashed var(--rule); border-radius: 10px; padding: 36px; text-align: center; color: var(--ink-soft); }

/* Prose pages (about, terms, news) */
.doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; padding-block: 56px 80px; }
.toc ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 24px; border-left: 3px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -3px; border-left: 3px solid transparent; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent-blue); }
@media (max-width: 820px) { .doc { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 64px; } .toc ul { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; border-left: 0; } .toc a { padding: 4px 0; border-left: 0; margin: 0; } }
.prose { max-width: 44em; }
.prose.solo { padding-block: 56px 80px; }
.prose section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--rule); }
.prose h2 { font-size: 26px; font-weight: 800; font-variation-settings: "wdth" 104; margin-bottom: 14px; }
.prose h3 { font-size: 19px; font-weight: 800; margin: 22px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-blue); }
.prose .dateline { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.staff { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.prose .staff li { padding: 8px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; margin: 0; font-weight: 600; }
.prose .staff li::before { display: none; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 36px 14px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 24px; font-weight: 400; color: var(--accent-blue); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 12px; color: var(--ink-soft); }

/* Services */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.service-list li { border-top: 3px solid var(--accent-blue); padding-top: 16px; }
.service-list li:nth-child(3) { border-top-color: var(--accent-red); }
.service-list h2 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.service-list p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .service-list { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.contact-grid > div { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 22px; }
.contact-grid h2 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.contact-grid p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-soft); padding-block: 56px 40px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer .logo { height: 46px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; margin: 0 0 16px; }
.site-footer h2 { color: var(--on-navy); margin: 0 0 12px; font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; margin: 10px 0 4px; }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid #1B3C62; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; }
.site-footer .ixnet { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .ixnet img { height: 26px; width: auto; }
@media (max-width: 960px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
