/* LegalDir OSINT-style Legal directory — monochromatic black */
:root{
  --bg:#000000;
  --panel:#0b0c0f;
  --panel2:#08090c;
  --border:#1a1c22;

  --text:#e5e7eb;
  --muted:#7a808c;

  --silver:#cfd6e3;
  --link:#9ca3af;

  --chip:#0f1116;
  --chipBorder:#23262e;

  --shadow: 0 12px 34px rgba(0,0,0,.5);
  --radius: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #000000; /* full black */
  color: #e5e5e5;
}

.wrap{ max-width: 1020px; margin: 0 auto; padding: 0 16px; }

.top{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(7,8,11,.82);
  border-bottom: 1px solid var(--border);
}

.brandbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 16px 0 10px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.mark{
  width: 36px;
  height: 36px;
  opacity: 0.85;
}
.brandtext{ line-height: 1.05; }
.brandname{
  font-weight: 800;
  letter-spacing: 2.2px;
  font-size: 14px;
  color: var(--silver);
}
.brandsub{
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .2px;
  color: var(--silver);
  margin-top: 3px;
}

.rightmeta{
  font-size: 12px;
  color: var(--muted);
  text-align:right;
  white-space: nowrap;
}

.controls{
  display:flex;
  gap:10px;
  padding: 10px 0 12px;
}

.tabs{
  display:flex;
  gap:10px;
  padding: 6px 0 2px;
}

.tab{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15,17,23,.66);
  color: var(--muted);
  cursor: pointer;
  font-weight: 720;
  letter-spacing: .2px;
}

.tab:hover{ border-color:#33405a; color: var(--text); }

.tab.active{
  color: var(--silver);
  border-color: rgba(207,214,227,.35);
  background: rgba(122,128,140,.10);
}

#search{
  flex: 1;
  min-width: 220px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15,17,23,.88);
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow);
}

button{
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15,17,23,.88);
  color: var(--silver);
  cursor: pointer;
}
button:hover{
  border-color:#33405a;
  color: var(--text);
}

.modebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 0 0 14px;
}

.modepill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(122,128,140,.35);
  background: rgba(122,128,140,.08);
  color: var(--silver);
  font-size: 12px;
  font-weight: 650;
  box-shadow: none;
}
.hint{
  font-size: 12px;
  color: var(--muted);
}

.tree{ padding: 14px 0 22px; }

details{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15,17,23,.72);
  box-shadow: var(--shadow);
  margin: 12px 0;
  overflow:hidden;
}

details > summary{
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 720;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  color: var(--silver);
}
details > summary::-webkit-details-marker { display:none; }

.count{
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11,13,18,.85);
}

.section{
  padding: 4px 12px 12px;
  border-top: 1px solid var(--border);
  background: rgba(11,13,18,.58);
}

ul{ list-style: none; margin:0; padding: 6px 0 0 0; }
li{ padding: 10px 6px; border-bottom: 1px dashed rgba(34,38,54,.72); }
li:last-child{ border-bottom: none; }

a{
  color: var(--link);
  text-decoration: none;
  font-weight: 650;
}
a:hover{ text-decoration: underline; }

.note{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.chips{ display:inline-flex; flex-wrap: wrap; gap:6px; margin-left: 10px; vertical-align: middle; }
.chip{
  font-size: 11px;
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(122,128,140,.28);
  background: rgba(20,24,38,.65);
}

.hidden{ display:none !important; }

.empty{
  margin: 10px 0 20px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15,17,23,.65);
  color: var(--muted);
}

.footer{
  padding: 18px 16px 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 640px){
  .brandbar{ flex-direction: column; align-items:flex-start; }
  .rightmeta{ text-align:left; white-space: normal; }
  .tabs{ flex-wrap: wrap; }
  .controls{ flex-direction: column; }
  button{ width: 100%; }
}
