/* ══════════════════════════════════════════════════════════════════
   Reference panel — Gas Pipelines / Facilities / PLSS legend toggles
   Shared by the Pipeline Extractor and Pipeline DB pages. Page-specific
   extras stay in their own sheets:
     • extractor.css  — facility placement form (.fac-form), armed state
     • pipeline_db.css — HIFLD import button + popup (.gp-import-*)
   Type sizing comes from the --fs-* scale in tokens.css.
   ══════════════════════════════════════════════════════════════════ */

/* Gas Pipeline type colors (--gp-*) moved to tokens.css — centralized 2026-07-23
   so home/dashboard and JS consumers no longer depend on this component sheet
   being loaded. Values unchanged; pipeline_db still overrides per-preset at runtime. */

/* ── Layer toggle panel (PLSS + Gas Pipelines) ── */
.gp-panel {
  border-top: 1px solid var(--bdr);
  padding:    var(--space-xs) var(--space-lg) var(--space-sm);
}
.gp-panel-title {
  font-family:    var(--font-sans);
  font-size:      var(--fs-micro);
  font-weight:    600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color:          var(--t2);
  padding:        var(--space-md) var(--space-sm) var(--space-xs);
}
.gp-panel > .gp-row,
.gp-panel > .gp-row-parent {
  margin-left: 8px;
}

.gp-dot {
  display:        inline-block;
  width:          8px;
  height:         8px;
  border-radius:  50%;
  margin-right:   5px;
  vertical-align: middle;
  flex-shrink:    0;
}
.gp-row {
  display:       flex;
  align-items:   center;
  padding:       var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  cursor:        pointer;
  user-select:   none;
  transition:    opacity .15s;
}
.gp-row:hover { background: var(--bg2); }
.gp-row.gp-off { opacity: .35; }
.gp-row-parent.gp-off { opacity: 1; }
.gp-row-parent {
  display: block;
  padding: 0;
  cursor:  default;
}
.gp-row-parent:hover { background: none; }
.gp-row-head {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         var(--space-xs) var(--space-sm);
  border-radius:   var(--radius);
  cursor:          pointer;
  transition:      opacity .15s;
  position:        relative;
}
.gp-row-head:hover { background: var(--bg2); }
.gp-row-parent.gp-off .gp-row-head { opacity: .35; }

.gp-title {
  font-family:    var(--font-sans);
  font-size:      var(--fs-micro);
  font-weight:    600;
  color:          var(--t2);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gp-legend {
  display:        flex;
  flex-direction: column;
  gap:            2px;
  padding-left:   var(--space-sm);
}
.gp-item {
  display:       flex;
  align-items:   center;
  gap:           8px;
  padding:       var(--space-2xs) var(--space-sm);
  border-radius: var(--radius);
  cursor:        pointer;
  transition:    opacity .15s;
  user-select:   none;
}
.gp-item:hover { background: var(--bg2); }
.gp-item.gp-off { opacity: .35; }
.gp-item.gp-off .gp-label { color: var(--t2); }

.gp-line {
  display:       inline-block;
  width:         18px;
  height:        3px;
  border-radius: 1.5px;
  flex-shrink:   0;
}
.gp-line-interstate  { background: var(--gp-interstate); }
.gp-line-intrastate  { background: var(--gp-intrastate); }
.gp-line-gathering   { background: var(--gp-gathering); }
.gp-line-storage     { background: var(--gp-storage); }

.gp-label {
  font-size:  var(--fs-micro);
  color:      var(--t1);
  transition: color .12s;
}

.fac-icon {
  background: none !important;
  border:     none !important;
}

/* Facility rows: [place] [icon] [label] ····· [import(우측 끝)] */
.fac-add {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex: none; padding: 0;
  border: none; border-radius: var(--radius); cursor: pointer;
  background: transparent; color: var(--t2);
  transition: background .12s, color .12s;
}
.fac-add:hover { background: var(--bg3); color: var(--t0); }
.fac-item { gap: 6px; }
.fac-item .fac-add { width: 16px; height: 16px; }

/* Import 는 행 우측 끝 (Gas Pipelines 의 Import 버튼과 같은 자리) */
.fac-import { margin-left: auto; }
