/* ==========================================================================
   VPNVL — nodes.css
   Page styles for servers.html: flag fills, section leads, line-type cards,
   scenario ledger, region wall. Depends on tokens declared in base.css.
   ========================================================================== */

/* ---------------------------------------------------------------
   1. Flag fills — every colour resolves to a design token
   --------------------------------------------------------------- */
.fb-red { fill: var(--error); }
.fb-blue { fill: var(--accent-dark); }
.fb-white { fill: var(--panel-3); }
.fb-green { fill: var(--forest); }
.fb-yellow { fill: var(--warn); }
.fb-ink { fill: var(--text); }
.fb-stroke-white { fill: none; stroke: var(--panel-3); }
.fb-stroke-red { fill: none; stroke: var(--error); }
.fb-stroke-blue { fill: none; stroke: var(--accent-dark); }

/* ---------------------------------------------------------------
   2. Page head furniture
   --------------------------------------------------------------- */
.nodes-band { margin-top: 18px; }

.nodes-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* ---------------------------------------------------------------
   3. Section shells (vertical rhythm only)
   --------------------------------------------------------------- */
.nodes-sec { padding-top: 46px; }
.nodes-sec h2 { margin-top: 6px; }

.nodes-lead {
  margin-top: 12px;
  margin-bottom: 0;
  max-width: 78ch;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--muted);
}
.nodes-lead strong { color: var(--text); font-weight: 600; }

.nodes-sec .table-scroll { margin-top: 18px; }
.nodes-sec .callout { margin-top: 18px; }

/* ---------------------------------------------------------------
   4. Line-type cards
   --------------------------------------------------------------- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.type-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--panel-3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
}

.type-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.type-title {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.35;
}

.type-dl { margin: 16px 0 0; padding: 0; }
.type-dl > div {
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.type-dl > div + div { margin-top: 12px; }
.type-dl > div:first-child { padding-top: 0; border-top: 0; }
.type-dl dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.type-dl dd {
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text-2);
}

/* ---------------------------------------------------------------
   5. Scenario ledger
   --------------------------------------------------------------- */
.pick-list {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.pick-row {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 8px 26px;
  padding-top: 18px;
  padding-bottom: 18px;
  padding-inline: 10px;
  margin-inline: -10px;
  border-bottom: 1px dashed var(--border);
  border-radius: var(--r-sm);
  transition: background-color 0.18s ease;
}
.pick-row:hover { background: var(--panel); }

.pick-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.pick-title {
  font-size: 15px;
  line-height: 1.4;
}
.pick-head .mono {
  font-size: 10.5px;
  color: var(--muted);
}
.pick-body {
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-2);
}
.pick-body strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------
   6. Region wall
   --------------------------------------------------------------- */
.region-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* ---------------------------------------------------------------
   7. Breakpoints
   --------------------------------------------------------------- */
@media (max-width: 960px) {
  .type-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .nodes-sec { padding-top: 36px; }
  .type-card { padding: 18px; }
  .pick-row {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
    margin-inline: 0;
  }
}

@media (max-width: 420px) {
  .nodes-cta .btn { width: 100%; }
}