.public-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(232, 238, 242, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(211, 222, 231, 0.8);
}

.pub-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: inherit;
  text-decoration: none;
}
.pub-brand:hover { text-decoration: none; }
.pub-brand strong { display: block; line-height: 1.1; }
.pub-brand small { color: var(--muted); font-size: .8rem; }

.pub-nav nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.pub-nav nav a {
  padding: .55rem .9rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
}
.pub-nav nav a:hover,
.pub-nav nav a.active {
  background: #dff3ef;
  text-decoration: none;
}
.pub-nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
}
.pub-nav-cta:hover {
  background: var(--teal-dark) !important;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 2.5rem) 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(15, 118, 110, 0.12), transparent 42%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f766e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-brand {
  margin: 0 0 .7rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal-dark);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.45;
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.hero-map {
  width: min(100%, 420px);
  display: grid;
  gap: 1rem;
  justify-items: stretch;
}

.hero-map .node {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  font-weight: 600;
  text-align: center;
  animation: rise .8s ease both;
}
.hero-map .node.france {
  background: linear-gradient(135deg, #0f766e, #134e4a);
  color: #fff;
  border: 0;
}
.hero-map .wire {
  height: 28px;
  width: 2px;
  margin-inline: auto;
  background: linear-gradient(180deg, #99f6e4, #0f766e);
  animation: pulse-line 1.8s ease-in-out infinite;
}
.hero-map .node.iran { animation-delay: .05s; }
.hero-map .node.france { animation-delay: .2s; }
.hero-map .node.tg { animation-delay: .35s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse-line {
  0%, 100% { opacity: .35; transform: scaleY(.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

.pub-section {
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  max-width: 980px;
  margin: 0 auto;
}

.pub-section h2 {
  margin: 0 0 .6rem;
  font-size: 1.45rem;
}

.section-lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.section-note {
  margin: .9rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}
.steps li {
  display: grid;
  gap: .25rem;
  padding: 1rem 1.1rem;
  border-right: 3px solid var(--teal);
  background: rgba(255,255,255,0.55);
}
.steps strong { font-size: 1.02rem; }
.steps span { color: var(--muted); line-height: 1.7; }

.code-block {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .86rem;
  line-height: 1.65;
  box-shadow: var(--shadow);
}

.pub-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
  color: var(--muted);
  font-size: .92rem;
}
.pub-footer strong {
  display: block;
  color: var(--ink);
  margin-bottom: .2rem;
}
.pub-footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Docs */
.docs {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3.5rem;
}

.docs-hero {
  margin-bottom: 1.5rem;
}
.docs-hero .hero-brand {
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.docs-hero h1 {
  margin: 0 0 .7rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.docs-hero .hero-lead {
  max-width: 52ch;
}

.docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 74px;
  background: rgba(232, 238, 242, 0.92);
  backdrop-filter: blur(10px);
  z-index: 10;
  padding-top: .4rem;
}
.docs-toc a {
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .86rem;
  text-decoration: none;
}
.docs-toc a:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
  text-decoration: none;
}

.docs-block {
  margin-bottom: 2.4rem;
  scroll-margin-top: 140px;
}
.docs-block h2 {
  margin: 0 0 .75rem;
  font-size: 1.35rem;
}
.docs-block h3 {
  margin: 1.4rem 0 .65rem;
  font-size: 1.05rem;
}
.docs-block p {
  margin: 0 0 .85rem;
  color: var(--muted);
  line-height: 1.8;
}
.docs-block .code-block {
  margin: .6rem 0 1rem;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: .6rem 0 1rem;
  background: rgba(255,255,255,0.55);
  border-radius: 12px;
  overflow: hidden;
}
.docs-table th,
.docs-table td {
  text-align: right;
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: .92rem;
  line-height: 1.6;
}
.docs-table th {
  background: rgba(15, 118, 110, 0.08);
  color: var(--muted);
  font-weight: 600;
}
.docs-table tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }
  .hero h1 { max-width: none; }
  .pub-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .pub-nav nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .docs-toc { top: 0; }
}
