/* subnet.css – styles for the Subnet Calculator only */

.field-mask { flex: 0 1 260px !important; }

/* Two-column key/value results */
.kv-table th[scope="row"] {
  width: 38%;
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.kv-table td { color: var(--text); }
.kv-table tr:nth-child(2) td, .kv-table tr:nth-child(3) td, .kv-table tr:nth-child(5) td { color: var(--accent); font-weight: 600; }

/* Binary view */
.binary { display: flex; flex-direction: column; gap: 6px; }
.binary div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.binary .lbl { width: 70px; font-size: .8rem; color: var(--muted); }
.binary code { display: inline-block; margin: 0; font-size: .9rem; letter-spacing: .06em; }
.binary .net, .legend .net { color: var(--accent); }
.binary .host, .legend .host { color: #fcd34d; }
.binary .dot { color: var(--muted); }
.legend { font-size: .8rem; margin: 8px 0 0; }
.legend span { margin-right: 16px; }
.legend span::before { content: "■ "; }

/* Splitting */
.split-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.split-controls label { font-size: .9rem; color: var(--muted); }
.split-controls select { width: auto; min-width: 260px; }
.split-note { font-size: .8rem; color: var(--muted); margin: 10px 0; }
.split-table td:first-child { color: var(--muted); width: 1%; }
.split-table td, .split-table th { white-space: nowrap; overflow-wrap: normal; }
.split-wrap, #split-wrap { max-height: 420px; overflow-y: auto; }

.share { margin: 16px 0 0; font-size: .8rem; color: var(--muted); }
.share code { display: inline-block; margin: 4px 0 0; font-size: .8rem; max-width: 100%; overflow-wrap: anywhere; }

/* Cheat sheet in the explainer */
.cheat td a { color: var(--accent); text-decoration: none; }
.explainer .table-wrap { margin-top: 12px; }

@media (max-width: 600px) {
  .field-mask { flex: 1 1 100% !important; }
  .kv-table th[scope="row"] { width: 42%; font-size: .8rem; }
  .split-controls select { min-width: 0; width: 100%; }
  .binary code { font-size: .72rem; letter-spacing: 0; }
  .binary .lbl { width: 100%; }
  .split-table td, .split-table th { padding: 8px 10px; font-size: .8rem; }
}
