/*
  BNB.info — Independent Network Field Manual
  Human-directed editorial system. No framework, no remote fonts.
*/
:root {
  --paper: #f1eee5;
  --paper-2: #e8e3d8;
  --paper-3: #dcd5c7;
  --ink: #151915;
  --ink-soft: #30372f;
  --forest: #132722;
  --forest-2: #1d3931;
  --signal: #dfb72d;
  --signal-soft: #f0d875;
  --risk: #a5452d;
  --muted: #687068;
  --line: #b9b2a4;
  --line-dark: rgba(241, 238, 229, .22);
  --white: #fffdf7;
  --max: 1240px;
  --reading: 760px;
  --rail: 210px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  --step--1: clamp(.78rem, .75rem + .1vw, .86rem);
  --step-0: clamp(1rem, .96rem + .18vw, 1.12rem);
  --step-1: clamp(1.22rem, 1.1rem + .5vw, 1.55rem);
  --step-2: clamp(1.55rem, 1.3rem + 1vw, 2.2rem);
  --step-3: clamp(2.05rem, 1.55rem + 2vw, 3.4rem);
  --step-4: clamp(3.15rem, 2rem + 5.2vw, 7.2rem);
  --shadow-hard: 6px 6px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--signal); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--signal); color: var(--ink); }
.wrap { width: min(calc(100% - 34px), var(--max)); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 14px;
  top: -100px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

/* Editorial independence strip */
.notice {
  position: relative;
  z-index: 51;
  background: var(--ink);
  color: #d9d5ca;
  border-bottom: 1px solid #000;
  font-family: var(--mono);
  font-size: .68rem;
  line-height: 1.45;
  letter-spacing: .015em;
}
.notice .wrap { padding-block: 7px; }
.notice .wrap::before { content: 'INDEPENDENT / '; color: var(--signal); font-weight: 800; }
html[lang='es'] .notice .wrap::before { content: 'INDEPENDIENTE / '; }

/* Masthead + mobile editorial dock */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 238, 229, .97);
  border-bottom: 1px solid var(--ink);
}
.nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: stretch;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  color: var(--ink);
  text-decoration: none;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.58rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.brand-name > span, .brand b { color: var(--risk); font-weight: inherit; }
.brand-sub {
  display: none;
  max-width: 118px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .57rem;
  line-height: 1.25;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.lang-switch {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 56px;
  border-left: 1px solid var(--line);
  color: var(--risk);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}
.lang-switch:hover { background: var(--risk); color: var(--paper); }
.navlinks {
  position: fixed;
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0 auto;
  width: min(calc(100% - 20px), 560px);
  padding: 6px;
  border: 1px solid rgba(21, 25, 21, .28);
  border-radius: 16px;
  background: rgba(255, 253, 247, .96);
  box-shadow: 0 10px 30px rgba(21, 25, 21, .2);
  backdrop-filter: blur(14px);
}
.navlinks a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 5px 2px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: clamp(.52rem, 2.05vw, .64rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.navlinks a:hover { background: var(--signal-soft); color: var(--ink); }
.navlinks a[aria-current='page'] { background: var(--ink); color: var(--paper); }


/* Global editorial marks */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--risk);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.lead {
  max-width: 810px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.42;
}
.human-note { color: var(--muted); font-family: var(--mono); font-size: .77rem; }

/* Home cover */
.hero {
  position: relative;
  overflow: clip;
  padding: 0 0 40px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.hero::after {
  display: none;
  content: 'FIELD MANUAL / 2026';
  position: absolute;
  right: -72px;
  top: 150px;
  transform: rotate(90deg);
  color: var(--line);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.hero-layout { display: grid; gap: 36px; }
.hero-copy { min-width: 0; }
.hero-cover {
  display: flex;
  min-height: calc(100svh - 96px);
  padding: 30px 0 calc(86px + env(safe-area-inset-bottom));
  flex-direction: column;
  justify-content: center;
}
.hero h1, .page-hero h1 {
  max-width: 970px;
  margin: .22em 0 .24em;
  font-family: var(--serif);
  font-size: var(--step-4);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.065em;
}
.hero h1 em { color: var(--risk); font-style: italic; font-weight: 400; }
.actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
.btn::after { content: '↗'; font-size: 1rem; }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn:hover { background: var(--signal); color: var(--ink); }

/* Semantic ecosystem map */
.ecosystem-map {
  position: relative;
  min-height: 480px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--forest);
  color: var(--white);
  box-shadow: var(--shadow-hard);
}
.map-kicker, .map-legend {
  color: #bbb8ad;
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.map-legend { display: flex; gap: 14px; margin-top: 14px; }
.map-legend span::before { content: '■'; margin-right: 5px; color: var(--signal); }
.map-canvas {
  position: relative;
  min-height: 390px;
  margin-top: 10px;
  border-top: 1px solid var(--line-dark);
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 25% 25%;
}
.map-node {
  position: absolute;
  display: grid;
  align-content: center;
  min-width: 106px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.7);
  background: var(--forest);
  font-family: var(--mono);
  line-height: 1.18;
}
.map-node strong { font-size: .8rem; text-transform: uppercase; }
.map-node small { margin-top: 5px; color: #aab4af; font-size: .61rem; }
.map-node.asset { left: 7%; top: 36%; border-color: var(--signal); background: var(--signal); color: var(--ink); }
.map-node.asset small { color: #4b421c; }
.map-node.company { left: 5%; top: 5%; }
.map-node.system { right: 4%; top: 24%; min-width: 128px; border-width: 2px; }
.map-node.bsc { right: 43%; bottom: 5%; }
.map-node.opbnb { right: 4%; bottom: 2%; }
.map-node.greenfield { right: 4%; top: 50%; }
.map-line { position: absolute; height: 1px; background: rgba(255,255,255,.55); transform-origin: left center; }
.map-line::after { content: '›'; position: absolute; right: -3px; top: -11px; color: var(--signal); font-size: 1.25rem; }
.map-line.one { width: 38%; left: 29%; top: 46%; transform: rotate(-13deg); }
.map-line.two { width: 27%; right: 28%; top: 50%; transform: rotate(58deg); }
.map-line.three { width: 23%; right: 14%; top: 47%; transform: rotate(61deg); }
.map-line.four { width: 22%; right: 10%; top: 44%; transform: rotate(92deg); }
.map-note { position: absolute; left: 6%; bottom: 24%; width: 34%; color: #aab4af; font-family: var(--mono); font-size: .58rem; line-height: 1.35; text-transform: uppercase; }

.answer-panel {
  position: relative;
  margin-top: 32px;
  padding: 22px 20px 20px;
  border: 1px solid var(--ink);
  border-top: 6px solid var(--signal);
  border-radius: 0;
  background: var(--white);
}
.answer-panel::before {
  content: 'ABSTRACT';
  position: absolute;
  right: 12px;
  top: 10px;
  color: var(--line);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
}
.answer-panel h2 { margin: 0 0 12px; font-family: var(--mono); font-size: .77rem; letter-spacing: .07em; text-transform: uppercase; }
.answer-panel p { margin: .7em 0; }

/* Home sections */
.section { position: relative; padding: 52px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-numbered { counter-increment: home-section; }
main { counter-reset: home-section; }
.section-numbered > .wrap { display: grid; gap: 24px; }
.section-heading { max-width: 790px; }
.section-heading::before {
  content: '0' counter(home-section) ' /';
  display: block;
  margin-bottom: 12px;
  color: var(--risk);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.section h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.04em;
}
.section-intro { max-width: 740px; margin: 0 0 24px; color: var(--muted); }

.entity-grid { margin: 0; border-top: 1px solid var(--ink); }
.entity-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.entity-card::before { content: counter(entity, decimal-leading-zero); counter-increment: entity; color: var(--risk); font-family: var(--mono); font-size: .67rem; padding-top: .2rem; }
.entity-grid { counter-reset: entity; }
.entity-card dt { font-family: var(--serif); font-size: var(--step-1); font-weight: 600; line-height: 1.1; }
.entity-card dd { margin: 6px 0 0; color: var(--ink-soft); }

.question-grid { border-top: 1px solid var(--ink); }
.question-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 20px 42px 20px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  counter-increment: question;
}
.question-grid { counter-reset: question; }
.question-card::before { content: 'Q' counter(question, decimal-leading-zero); color: var(--risk); font-family: var(--mono); font-size: .65rem; font-weight: 800; }
.question-card::after { content: '↗'; position: absolute; right: 4px; top: 20px; font-family: var(--mono); }
.question-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: var(--step-1); line-height: 1.15; }
.question-card p { margin: 0; color: var(--ink-soft); }
.deep-link { display: inline-block; margin-top: 10px; color: var(--risk); font-family: var(--mono); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.fact-list {
  display: grid;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.fact-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line-dark); }
.fact-row:last-child { border-bottom: 0; }
.fact-row strong { color: #b9b6ab; font-family: var(--mono); font-size: .64rem; line-height: 1.35; letter-spacing: .07em; text-transform: uppercase; }
.fact-row span { color: var(--signal-soft); font-family: var(--serif); font-size: 1.45rem; }

.path-grid { display: grid; border-top: 1px solid var(--ink); counter-reset: path; }
.path-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  counter-increment: path;
}
.path-card::before { content: counter(path, decimal-leading-zero); color: var(--risk); font-family: var(--mono); font-size: .68rem; }
.path-card::after { content: '→'; font-family: var(--mono); }
.path-card > div { min-width: 0; }
.path-card h3 { overflow-wrap: anywhere; margin: 0 0 5px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.15; }
.path-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.path-card:hover h3 { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: .18em; }

/* Section landing pages */
.section-head {
  position: relative;
  overflow: hidden;
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--ink);
}
.section-head::after {
  content: attr(data-code);
  position: absolute;
  right: -1vw;
  bottom: -7vw;
  color: rgba(21,25,21,.055);
  font-family: var(--serif);
  font-size: clamp(13rem, 35vw, 30rem);
  font-weight: 700;
  line-height: .7;
  pointer-events: none;
}
.section-head-grid { position: relative; z-index: 1; display: grid; gap: 22px; }
.section-head h1 { max-width: 870px; margin: .15em 0; font-family: var(--serif); font-size: var(--step-4); font-weight: 500; line-height: .91; letter-spacing: -.06em; }
.section-register { align-self: end; padding: 14px 0 0; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: .66rem; line-height: 1.5; text-transform: uppercase; }
.section-register strong { display: block; color: var(--risk); }
.collection { padding: 34px 0 66px; }
.collection-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: .66rem; text-transform: uppercase; }
.grid, .editorial-list { display: grid; }
.card, .editorial-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
}
.card-media { position: relative; align-self: start; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--ink); background: var(--forest); }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: luminosity; opacity: .82; }
.card-media::after { content: ''; position: absolute; inset: 0; background: var(--section-tint, var(--signal)); mix-blend-mode: color; opacity: .55; }
.card-index { position: absolute; left: 5px; top: 5px; z-index: 2; padding: 2px 4px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .56rem; }
.card-body { min-width: 0; padding-right: 26px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-bottom: 6px; color: var(--muted); font-family: var(--mono); font-size: .62rem; line-height: 1.4; text-transform: uppercase; }
.card h3, .editorial-card h3 { margin: 0 0 7px; font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .5vw, 1.48rem); font-weight: 600; line-height: 1.14; letter-spacing: -.018em; }
.card p { margin: 0; color: var(--ink-soft); font-size: .91rem; line-height: 1.5; }
.card::after { content: '↗'; position: absolute; right: 2px; top: 20px; font-family: var(--mono); }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: .15em; }
.section-news { --section-tint: #bd5b3a; }
.section-guides { --section-tint: #d7b230; }
.section-projects { --section-tint: #4d8b73; }
.section-security { --section-tint: #a4412e; }
.section-security .card { border-left: 3px solid var(--risk); padding-left: 12px; }
.section-guides .card-index::before { content: 'STEP '; }
.section-projects .card-index::before { content: 'REG '; }
.section-news .card-index::before { content: 'LOG '; }
.section-security .card-index::before { content: 'SEC '; }

/* Reading pages */
.article {
  width: min(calc(100% - 34px), 1080px);
  margin-inline: auto;
  padding: 28px 0 70px;
  counter-reset: article-section;
}
.breadcrumbs { margin-bottom: 24px; color: var(--muted); font-family: var(--mono); font-size: .68rem; line-height: 1.45; text-transform: uppercase; }
.breadcrumbs a { color: var(--ink); }
.article-header {
  position: relative;
  padding: 0 0 28px;
  border-bottom: 2px solid var(--ink);
}
.article-header::after {
  content: attr(data-document);
  display: block;
  margin-top: 22px;
  color: var(--line);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
}
.article h1 {
  max-width: 940px;
  margin: .22em 0 .25em;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 2rem + 4vw, 6.15rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.058em;
}
.article .lead { margin-bottom: 15px; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .67rem;
  text-transform: uppercase;
}
.article-plate {
  position: relative;
  margin: 24px 0 32px;
  padding: 8px;
  border: 1px solid var(--ink);
  background: var(--forest);
}
.article-plate img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; filter: grayscale(1) contrast(1.35); opacity: .27; }
.article-plate::before { content: attr(data-code); position: absolute; left: 5%; top: 44%; z-index: 2; transform: translateY(-50%); color: var(--signal); font-family: var(--serif); font-size: clamp(6rem, 18vw, 13rem); font-weight: 700; line-height: .7; letter-spacing: -.08em; }
.article-plate::after { content: ''; position: absolute; inset: 8px; background: linear-gradient(90deg, var(--forest) 0%, transparent 72%), var(--section-tint, var(--signal)); mix-blend-mode: color; opacity: .72; pointer-events: none; }
.article-plate figcaption { position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 14px; padding: 9px 2px 1px; color: #c9c5ba; font-family: var(--mono); font-size: .59rem; text-transform: uppercase; }
.direct-answer {
  position: relative;
  max-width: var(--reading);
  margin: 28px 0 42px;
  padding: 25px 22px 21px;
  border: 1px solid var(--ink);
  border-top: 7px solid var(--signal);
  border-radius: 0;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}
.direct-answer > strong {
  display: block;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.direct-answer p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.18rem; line-height: 1.45; }
.article > section:not(.source-box):not(.reference-tools):not(.revision-box):not(.revision-note):not(.faq),
.article > h2, .article > h3, .article > p, .article > ul, .article > ol, .article > table,
.article > .source-box, .article > .reference-tools, .article > .revision-box, .article > .revision-note, .article > .faq {
  max-width: var(--reading);
}
.article section > h2:first-child, .article > h2 {
  position: relative;
  margin: 2.35em 0 .6em;
  padding-top: 15px;
  border-top: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
  counter-increment: article-section;
}
.article section > h2:first-child::before, .article > h2::before {
  content: counter(article-section, decimal-leading-zero);
  display: block;
  margin-bottom: 9px;
  color: var(--risk);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.article h3 { margin: 1.7em 0 .5em; font-family: var(--sans); font-size: 1.08rem; line-height: 1.3; }
.article p, .article li { color: #2e352f; }
.article p { margin: .8em 0 1.1em; }
.article li + li { margin-top: .45em; }
.article a { color: #7b2f20; text-decoration: underline; }
.article blockquote { max-width: var(--reading); margin: 1.5em 0; padding: 14px 0 14px 20px; border-left: 4px solid var(--signal); font-family: var(--serif); font-size: 1.13rem; }
.article code { padding: .12em .32em; background: var(--paper-2); font-family: var(--mono); font-size: .88em; }
.article pre { max-width: var(--reading); overflow: auto; padding: 16px; background: var(--ink); color: var(--paper); }
.article table { display: table; width: 100%; max-width: var(--reading); margin: 24px 0; border-collapse: collapse; font-size: .9rem; }
.article th, .article td { padding: 12px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article th { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; }
.article details { border-top: 1px solid var(--line); padding: 14px 0; }
.article details:last-child { border-bottom: 1px solid var(--line); }
.article summary { cursor: pointer; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.article-index { display: none; }
.source-box, .reference-tools, .revision-box, .revision-note, .faq {
  margin: 38px 0 0;
  padding: 19px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}
.source-box { background: var(--forest); color: var(--paper); }
.source-box h2, .reference-tools h2, .revision-box h2, .revision-note h2, .faq > h2 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--mono) !important;
  font-size: .72rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  counter-increment: none !important;
}
.source-box h2::before, .reference-tools h2::before, .revision-box h2::before, .revision-note h2::before, .faq > h2::before { content: none !important; }
.source-box p, .source-box li, .source-box a { color: #d8d3c7; }
.source-box a { text-decoration-color: var(--signal); }
.reference-tools ul, .revision-box ul { padding-left: 1.15rem; }
.revision-note { border-style: dashed; color: var(--muted); font-family: var(--mono); font-size: .73rem; }
.definition-grid { display: grid; gap: 0; max-width: var(--reading); border-top: 1px solid var(--ink); }
.definition-card { padding: 17px 0; border-bottom: 1px solid var(--line); background: transparent; }
.definition-card h2 { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; font-family: var(--serif) !important; font-size: 1.18rem !important; counter-increment: none !important; }
.definition-card h2::before { content: none !important; }
.definition-card p { margin: 0; }
.research-status { color: var(--muted); font-family: var(--mono); font-size: .72rem; }

/* Institutional compact pages */
.article:not(:has(.article-header)) > .eyebrow + h1 { margin-top: .2em; }

/* Footer */
.footer {
  border-top: 1px solid var(--ink);
  padding: 38px 0 30px;
  background: var(--ink);
  color: #bbb8ae;
  font-size: .82rem;
}
.footer .wrap { display: grid; gap: 18px; }
.footer .wrap::before { content: 'BNB.info / independent network field manual'; color: var(--paper); font-family: var(--serif); font-size: 1.35rem; }
.footer p { max-width: 830px; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-links a { color: var(--signal-soft); }

@media (max-width: 919px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 919px) and (max-height: 680px) {
  .hero-cover {
    min-height: calc(100svh - 96px);
    padding-top: 20px;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
    justify-content: flex-start;
  }
  .hero .eyebrow { font-size: .6rem; }
  .hero h1 { margin-block: .18em .2em; font-size: clamp(2.7rem, 12.8vw, 3.3rem); line-height: .9; }
  .hero .lead { font-size: 1.02rem; line-height: 1.32; }
  .hero .actions { margin-top: 14px; gap: 6px; }
  .hero .btn { min-height: 44px; padding-block: 8px; }
}

@media (min-width: 560px) {
  .brand-sub { display: block; }
  .actions { flex-direction: row; align-items: center; }
  .btn { min-width: 220px; }
  .card, .editorial-card { grid-template-columns: 112px 1fr; gap: 20px; padding: 22px 0; }
  .entity-card { grid-template-columns: 54px 1fr; }
  .fact-list { grid-template-columns: repeat(2, 1fr); }
  .fact-row:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .fact-row:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (min-width: 760px) {
  .section-numbered > .wrap { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 7vw; }
  .section-heading { position: sticky; top: 110px; align-self: start; }
  .entity-card { grid-template-columns: 50px minmax(130px, .55fr) 1fr; align-items: start; }
  .entity-card dt { grid-column: 2; }
  .entity-card dd { grid-column: 3; margin-top: 0; }
  .question-card { grid-template-columns: 52px minmax(190px, .55fr) 1fr; }
  .question-card h3 { grid-column: 2; }
  .question-card p, .question-card .deep-link { grid-column: 3; }
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line); }
  .path-card { padding: 20px; border-right: 1px solid var(--line); }
  .section-head-grid { grid-template-columns: 1fr 200px; align-items: end; }
  .grid, .editorial-list { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 34px; }
  .card:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 28px; }
  .card:nth-child(even) { padding-left: 0; }
  .definition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line); }
  .definition-card { padding: 18px; border-right: 1px solid var(--line); }
}

@media (min-width: 920px) {
  .wrap { width: min(calc(100% - 64px), var(--max)); }
  body { padding-bottom: 0; }
  .site-header { backdrop-filter: blur(10px); }
  .nav { display: flex; min-height: 64px; align-items: stretch; justify-content: space-between; }
  .brand { min-height: 64px; padding-right: 0; }
  .navlinks {
    position: static;
    display: flex;
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    align-items: stretch;
    gap: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .navlinks a {
    width: auto;
    min-height: 64px;
    padding: 0 11px;
    border-radius: 0;
    border-left: 1px solid var(--line);
    font-size: .67rem;
  }
  .lang-switch {
    min-width: auto;
    min-height: 64px;
    padding: 0 15px;
    font-size: .67rem;
  }
  .hero { padding: 42px 0 50px; }
  .hero::after { display: block; }
  .hero-cover { display: block; min-height: 0; padding: 0; }
  .hero-layout { grid-template-columns: minmax(0, 1.18fr) minmax(370px, .82fr); align-items: start; gap: 5vw; }
  .hero-copy { padding-top: 0; }
  .hero h1 { font-size: clamp(4.6rem, 6.2vw, 6.25rem); }
  .actions { margin-top: 18px; }
  .ecosystem-map { min-height: 430px; }
  .ecosystem-map .map-canvas { min-height: 340px; }
  .answer-panel { max-width: 760px; }
  .section { padding: 78px 0; }
  .section-head { padding: 70px 0 55px; }
  .collection { padding: 46px 0 90px; }
  .grid, .editorial-list { column-gap: 52px; }
  .card { grid-template-columns: 132px 1fr; padding: 26px 0; }
  .article { padding-top: 44px; }
  .article-header { padding-bottom: 34px; }
  .article-plate { margin: 32px 0 48px; }
}

@media (min-width: 920px) and (max-height: 900px) {
  .notice .wrap { padding-block: 5px; }
  .hero { padding-block: 32px 42px; }
  .hero h1 { font-size: clamp(4.3rem, 5.75vw, 5.75rem); line-height: .9; }
  .hero .lead { font-size: clamp(1.14rem, 1.35vw, 1.38rem); line-height: 1.36; }
  .actions { margin-top: 14px; }
  .ecosystem-map { min-height: 400px; }
  .ecosystem-map .map-canvas { min-height: 310px; }
  .map-node.greenfield { top: 50%; }
  .map-node.opbnb { bottom: 1%; }
  .map-node.bsc { bottom: 1%; }
}


@media (min-width: 1120px) {
  .article {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, var(--reading));
    column-gap: 64px;
    justify-content: center;
  }
  .article > * { grid-column: 2; }
  .article > .breadcrumbs { grid-column: 1 / -1; }
  .article > .article-header, .article > .article-plate { grid-column: 1 / -1; }
  .article > .article-index {
    position: sticky;
    top: 112px;
    grid-column: 1;
    grid-row: span 16;
    align-self: start;
    display: block;
    max-height: calc(100vh - 140px);
    overflow: auto;
    padding-top: 5px;
    font-family: var(--mono);
    font-size: .62rem;
    line-height: 1.45;
  }
  .article-index strong { display: block; padding-bottom: 8px; border-bottom: 1px solid var(--ink); color: var(--risk); letter-spacing: .08em; text-transform: uppercase; }
  .article-index ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: toc; }
  .article-index li { counter-increment: toc; margin: 0; }
  .article-index a { display: grid; grid-template-columns: 24px 1fr; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; }
  .article-index a::before { content: counter(toc, decimal-leading-zero); color: var(--line); }
  .article-index a:hover { color: var(--ink); }
  .article > .direct-answer { grid-column: 2; }
}

@media (max-width: 650px) {
  .ecosystem-map { min-height: 430px; box-shadow: 4px 4px 0 var(--ink); }
  .map-canvas { min-height: 345px; }
  .map-node { min-width: 89px; min-height: 64px; padding: 7px; }
  .map-node strong { font-size: .69rem; }
  .map-node small { font-size: .54rem; }
  .map-node.asset { left: 2%; top: 36%; }
  .map-node.company { left: 2%; top: 4%; }
  .map-node.system { right: 1%; top: 22%; min-width: 106px; }
  .map-node.bsc { right: 43%; bottom: 3%; }
  .map-node.opbnb { right: 1%; bottom: 4%; }
  .map-node.greenfield { right: 1%; top: 57%; }
  .map-note { left: 2%; width: 37%; bottom: 20%; }
  .article table { display: block; overflow-x: auto; }
  .article th, .article td { min-width: 145px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .notice, .site-header, .footer, .article-index { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { content: none; }
  .article { width: 100%; display: block; }
  a { color: #000; }
  .direct-answer, .source-box { box-shadow: none; break-inside: avoid; }
}
