/* Connections read as a field guide: relationship first, evidence always close. */
.network-explorer { margin: 24px 0 20px; min-width: 0; overflow-wrap: anywhere; }
.network-intro { margin-bottom: 20px; }
.network-intro h2 { font: 400 clamp(36px, 4vw, 54px)/1.05 var(--serif); margin: 0 0 8px; }
.network-intro h2 em { color: var(--green); }
.network-intro [data-route-heading]:focus { outline: none; }
.network-intro > p { color: var(--muted); max-width: 65ch; margin: 0; }
.network-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 20px;
  margin-bottom: 14px;
}
.network-search-row { display: flex; align-items: end; gap: 12px; min-width: 0; }
.network-search-row label { width: min(100%, 420px); min-width: 0; }
.network-search-row input { min-height: 44px; font-size: 16px; padding: 10px 12px; }
.network-search-row input::placeholder { color: var(--muted); opacity: 1; }
.network-search-row > button { min-height: 44px; flex-shrink: 0; }
.network-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.network-filters .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: normal; }
.network-filter-count { font-variant-numeric: tabular-nums; opacity: .85; }
.network-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 16px;
  border-block: 1px solid var(--line);
  padding: 6px 0;
}
.network-results-bar > p { margin: 0; font-size: 13px; }
.network-jumps summary { cursor: pointer; padding: 12px 0; color: var(--green); font-size: 13px; }
.network-jumps ul { padding: 0; list-style: none; }
.network-jumps button { min-height: 44px; }
.network-group { margin-top: 32px; }
.network-results-bar + .network-group { margin-top: 20px; }
.network-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.network-group-head h3 { font: 400 clamp(25px, 2.6vw, 32px)/1.1 var(--serif); margin: 0; scroll-margin-top: 16px; }
.network-group-head p { grid-column: 1 / -1; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 65ch; margin: 0; }
.network-group-total { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.network-group .connection-grid { gap: 10px; }
.network-group .connection-card { padding: clamp(14px, 1.5vw, 22px); }
.network-group .connection-endpoints { margin-block: 8px; }
.network-group .connection-bottom { padding-top: 8px; }
.network-record{display:flex;flex-direction:column;min-width:0}
.network-record .connection-card{flex:1;min-width:0}
.network-record .connection-endpoints{min-width:0;gap:14px;font-size:29px}
.network-record .connection-endpoints a{min-width:0;overflow-wrap:anywhere}
.network-record .connection-endpoints>span{flex-shrink:0}
.network-record .evidence-tag{line-height:1.7;overflow-wrap:anywhere}
.network-record .connection-bottom .text-button{min-height:30px;white-space:normal;text-align:left}
.network-group .connection-bottom .text-button { min-height: 44px; }
.network-footnote{border-top:1px solid var(--line);padding-top:20px;margin-top:35px;max-width:820px}
.network-empty,.network-invalid{padding:45px 25px;border:1px solid var(--line);background:var(--white);margin:28px 0}
.network-empty h3,.network-invalid h3{font:35px/1.1 var(--serif)}
.network-empty p,.network-invalid p{max-width:560px;margin:15px auto 22px;font-size:12px;line-height:1.8;color:var(--muted)}
.network-related{min-width:0;overflow-wrap:anywhere}
.network-related>.section-top{align-items:center}
.network-related-group{margin-top:26px}
.network-related-group>header{margin-bottom:18px;max-width:840px}
.network-related-group>header h3{font:29px/1.15 var(--serif);margin-bottom:9px}
.network-related-group>header p{font-size:12px;line-height:1.8;color:var(--muted)}
.network-via{border:1px solid var(--line);border-bottom:0;background:var(--mint);padding:12px 20px;font-size:11px;line-height:1.8}
.network-via>span:first-child{font-size:9px;text-transform:uppercase;letter-spacing:1.2px;margin-right:5px;color:var(--muted)}
.network-via a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
@media (max-width: 920px) {
  .network-tools { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .network-explorer { margin-top: 18px; }
  .network-intro { margin-bottom: 14px; }
  .network-filters .chip { padding: 8px 10px; font-size: 12px; }
  .network-search-row label { width: 100%; }
  .network-record .connection-endpoints { flex-wrap: wrap; gap: 8px; font-size: 25px; }
  .network-related > .section-top { display: grid; gap: 12px; }
  .network-related > .section-top h2 { font-size: 35px; }
  .network-related > .section-top a { justify-self: start; }
  .network-via { padding: 12px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .network-filters .chip { transition: none; }
}
