/* FIXO — site styles. Plain CSS, no build step. */

:root {
	--navy: #323F57;
	--ink: #1C1C1E;
	--hero-a: #020A08;
	--hero-b: #0A1E36;
	--link-light: #A9C7E6;
	--tint: #F5F6F8;
	--line: #E3E6EB;
	--text: #4A4A4A;
	--muted: #5A5F66;
	--white: #FFFFFF;
	--radius: 4px;
	--max: 1280px;
	--gutter: 80px;
	--font: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
strong, b, th { font-weight: 700; }

a { color: var(--navy); font-weight: 400; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible {
	outline: 3px solid #6E9CC6;
	outline-offset: 2px;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--navy); margin: 0 0 .6em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 4.5vw, 3.75rem); letter-spacing: .12em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: .02em; }
h3 { font-size: 1.3rem; letter-spacing: .02em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }

code, pre, .mono { font-family: var(--mono); font-size: .88em; font-weight: 400; }
:not(pre) > code { background: var(--tint); border-radius: 3px; padding: .05em .35em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.lead { font-size: 1.35rem; max-width: 46em; }
.visually-hidden {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* Small uppercase label used for links, buttons and eyebrows */
.eyebrow, .more, .btn, .nav a, thead th, .footer-grid h4, .toc-title, .kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
}
.eyebrow { display: inline-block; color: var(--muted); margin-bottom: .8em; }
.more { text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */

.site-header { background: var(--ink); color: var(--white); position: relative; z-index: 50; }
.site-header .container {
	display: flex; align-items: center; justify-content: space-between;
	height: 110px;
}
.brand { color: var(--white); font-weight: 700; font-size: 40px; text-decoration: none; letter-spacing: .02em; }
.brand:hover { color: var(--white); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: var(--white); text-decoration: none; padding: .4em 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); border-bottom-color: rgba(255, 255, 255, .5); }
.nav a[aria-current="page"] { border-bottom-color: var(--white); }
.nav a.nav-portal {
	display: inline-flex; align-items: center; height: 44px;
	padding: 0 22px; border: 2px solid var(--white); border-radius: var(--radius);
}
.nav a.nav-portal:hover { background: var(--white); color: var(--ink); }

.nav-toggle-label { display: none; }

@media (max-width: 1100px) {
	.site-header .container { height: 90px; }
	.brand { font-size: 34px; }
	.nav-toggle-label {
		display: flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; cursor: pointer; color: var(--white);
	}
	.nav-toggle-label svg { width: 26px; height: 26px; }
	.nav {
		display: none;
		position: absolute; top: 90px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--ink);
		padding: 8px var(--gutter) 24px;
		border-top: 1px solid rgba(255, 255, 255, .1);
	}
	.nav a { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .08); color: var(--link-light); }
	.nav a.nav-portal { justify-content: center; margin-top: 16px; height: 50px; }
	.nav-toggle:checked ~ .nav { display: flex; }
	.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid #6E9CC6; }
}

/* ---------- Hero ---------- */

.hero, .page-hero {
	background:
		url("../img/hero-network.svg") center / cover no-repeat,
		linear-gradient(180deg, var(--hero-a) 0%, var(--hero-b) 52%, var(--hero-a) 100%);
	color: var(--white);
}
.hero { min-height: 560px; display: flex; align-items: center; padding: 64px 0; }
.hero h1, .page-hero h1 { color: var(--white); }
.hero h1 { max-width: 1100px; margin-bottom: .45em; }
.hero .lead { color: #E6EDF5; max-width: 820px; }
.hero .actions { margin-top: 2rem; }

.page-hero { padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: .4em; }
.page-hero p { color: #E6EDF5; margin: 0; max-width: 46em; font-size: 1.25rem; }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 52px; padding: 0 32px;
	border-radius: var(--radius);
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #E6EDF5; color: var(--ink); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section + .section:not(.section-tint) { padding-top: 0; }
.section-tint { background: var(--tint); }
.section.section-tint + .section { padding-top: 96px; }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-intro { max-width: 46em; margin-bottom: 2rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); column-gap: 64px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.grid > * { min-width: 0; }

/* Flat grey box (locations, contact) */
.card {
	background: var(--tint);
	border-radius: var(--radius);
	padding: 32px;
	display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 1.4rem; text-transform: none; letter-spacing: 0; }
.card p { margin: 0; }
.card h3 a { color: inherit; font-weight: inherit; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card h3 a:hover { text-decoration-color: var(--navy); }
.section-tint .card { background: var(--white); }

/* ---------- Stats ---------- */

.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 16px;
	padding: 56px 0;
	border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-weight: 900; font-size: 48px; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin-bottom: 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); border-top: 0; padding-top: 0; font-size: 12px; white-space: nowrap; }
tbody th { color: var(--navy); font-weight: 700; }
td.num, th.num { text-align: right; padding-right: 0; white-space: nowrap; }
.facts th { width: 200px; }
.price { font-weight: 700; color: var(--navy); }
.price-free { font-weight: 900; color: var(--navy); }
.note { font-size: 15px; color: var(--muted); }

/* ---------- Callout ---------- */

.callout { background: var(--tint); padding: 24px 28px; border-radius: var(--radius); margin: 1.5rem 0; }
.callout p:last-child { margin: 0; }

/* ---------- Big-number block (platform fee) ---------- */

.big-price { font-weight: 900; font-size: 48px; line-height: 1.1; color: var(--navy); margin: 0 0 .2em; }
.big-price small { font-size: 18px; font-weight: 400; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 12px 0 12px 1.8em; border-top: 1px solid var(--line); margin: 0; position: relative; }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: 1.05em; width: 1em; height: 1em;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23323F57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: "0" counter(step); font-weight: 900; font-size: 40px; line-height: 1; color: var(--navy); margin-bottom: 8px; }
.steps strong { color: var(--navy); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }

/* ---------- Timeline ---------- */

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); margin: 0; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { font-weight: 900; font-size: 24px; line-height: 1.3; color: var(--navy); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; }
.timeline .timeline-source { font-size: 15px; }

/* ---------- Locations ---------- */

.kicker { color: var(--text); }
.badge { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Members teaser ---------- */

.reach { font-size: 22px; line-height: 1.7; color: var(--navy); margin: 0; max-width: 60em; }

/* ---------- Explainer ---------- */

.explainer { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.explainer h3 { font-size: 1.1rem; }
.explainer p { margin: 0; }

/* ---------- Technical page ---------- */

.with-toc { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.with-toc > * { min-width: 0; }
.toc { position: sticky; top: 24px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 16px; }
.toc a:hover { text-decoration: underline; }
.toc-title { color: var(--muted); margin-bottom: 12px; }
.doc section { padding-bottom: 56px; scroll-margin-top: 24px; }
.doc section:last-child { padding-bottom: 0; }
.doc h3 { margin-top: 1.6em; font-size: 1.05rem; letter-spacing: .1em; color: var(--text); }
.rule-list { padding: 0; list-style: none; }
.rule-list li { padding: 12px 0; border-top: 1px solid var(--line); margin: 0; }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
	.with-toc { grid-template-columns: 1fr; gap: 0; }
	.toc { position: static; margin-bottom: 40px; }
}

/* ---------- Code ---------- */

.code-block { position: relative; margin: 0 0 1.5rem; }
.example-nav { margin: 32px 0 16px; }
.example { padding-top: 24px; }
.example[hidden] { display: none; }
.example-nav { gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.example-nav .btn { height: 44px; padding: 0 16px; letter-spacing: .1em; flex: none; }
.example-nav .btn[aria-current] { background: var(--navy); color: var(--white); }
.code-block pre {
	margin: 0;
	background: var(--ink);
	color: #DCE3EE;
	padding: 24px;
	border-radius: var(--radius);
	overflow-x: auto;
	line-height: 1.55;
	font-size: 14px;
}
.copy-btn {
	position: absolute; top: 12px; right: 12px;
	background: transparent; color: var(--white);
	border: 2px solid rgba(255, 255, 255, .6); border-radius: var(--radius);
	font: 700 12px var(--font); letter-spacing: .15em; text-transform: uppercase;
	padding: .5em 1em; cursor: pointer;
}
.copy-btn:hover { background: var(--white); color: var(--ink); }
td.mono { white-space: nowrap; }
.copy-inline { background: none; border: 0; padding: 0 0 0 .4em; cursor: pointer; color: var(--muted); vertical-align: middle; }
.copy-inline svg { width: 15px; height: 15px; }
.copy-inline:hover { color: var(--navy); }

/* ---------- Members ---------- */

.toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.search {
	flex: 1 1 280px; max-width: 440px; height: 52px;
	padding: 0 1em 0 2.8em;
	font: inherit; font-weight: 400; font-size: 17px; color: var(--text);
	border: 2px solid var(--line); border-radius: var(--radius);
	background: var(--white) no-repeat 1em center / 1.1em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5F66' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}
.search:focus { border-color: var(--navy); outline: none; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-group button {
	font: 700 12px var(--font); letter-spacing: .15em; text-transform: uppercase;
	height: 44px; padding: 0 18px; border-radius: var(--radius);
	border: 2px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer;
}
.filter-group button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.member-count { color: var(--muted); font-size: 15px; }
.asn-links a { white-space: nowrap; }
.asn-links .sep { color: var(--line); margin: 0 .4em; }
.single-ix .col-ix { display: none; }
#list-members td:first-child { font-weight: 400; color: var(--navy); }

/* ---------- Contact ---------- */

.contact-email { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 24px; }
.contact-email a { text-decoration: none; }
.contact-email a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #D5D8DD; padding: 56px 0; font-size: 16px; font-weight: 400; }
.site-footer a { color: var(--link-light); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 32px 48px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-brand { font-weight: 700; font-size: 30px; color: var(--white); display: block; margin-bottom: 6px; }
.footer-company { white-space: nowrap; }
.footer-grid h4 { color: var(--white); font-size: 13px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }

/* ---------- Small screens ---------- */

@media (max-width: 1100px) {
	:root { --gutter: 40px; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	:root { --gutter: 20px; }
	body { font-size: 17px; }
	h1 { letter-spacing: .1em; }
	.section { padding: 56px 0; }
	.section.section-tint + .section { padding-top: 56px; }
	.hero { min-height: 460px; }
	.hero .actions { flex-direction: column; }
	.hero .btn { width: 100%; }
	.page-hero { padding: 48px 0 40px; }
	.stats { padding: 36px 0; }
	.stat-value { font-size: 36px; }
	.stat-label { font-size: 13px; }
	.card { padding: 20px; }
	.reach { font-size: 18px; }
	.footer-grid { grid-template-columns: 1fr; }
	.facts th { width: auto; }
	.facts tr { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 12px 0; }
	.facts th, .facts td { border: 0 !important; padding: 0; }
	.facts tbody tr:last-child { border-bottom: 1px solid var(--line); }
	.timeline li { grid-template-columns: 64px 1fr; gap: 12px; }
	.timeline .year { font-size: 18px; }
	th, td { padding-right: 12px; }
}
