/* structure.css — local inventory tree. px only. */

.structure-page .page-hero h1 {
  max-width: none;
}

.structure-page .page-hero .lead {
  max-width: none;
}

.structure-tree-wrap {
  padding: 32px 0 80px;
}

.structure-block {
  margin-bottom: 48px;
  scroll-margin-top: 160px;
}

.structure-block h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.structure-block .tree-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.structure-tree {
  margin: 0;
  padding: 24px 28px;
  list-style: none;
  overflow-x: auto;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
}

.structure-tree ul {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.structure-tree > li {
  margin: 0;
}

.structure-tree a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.structure-tree a:hover {
  color: var(--pop);
}

.structure-tree .tree-note {
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
}

.structure-tree .tree-del {
  color: #e85d5d;
}

.structure-tree .tree-row-del > a {
  color: #e85d5d;
}

.tree-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.tree-stat {
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tree-stat strong {
  display: block;
  color: var(--brand);
  font-size: 28px;
  line-height: 1.1;
}

.tree-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.tree-stat--warn strong {
  color: #e85d5d;
}

.tree-fold {
  margin: 0 0 8px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tree-fold summary {
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.tree-fold summary::-webkit-details-marker {
  color: var(--brand);
}

.tree-empty {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tree-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tree-compact li {
  font-size: 13px;
}

.tree-compact a {
  color: var(--brand);
}

.dir-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.dir-table th {
  position: sticky;
  top: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #131b25;
  color: var(--brand);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.dir-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.dir-table tr:last-child td {
  border-bottom: 0;
}

.dir-col {
  width: 180px;
  color: var(--brand);
  font-weight: 650;
}

.sub-col {
  width: 240px;
  color: var(--text);
}

.file-col span {
  display: inline-block;
  margin: 0 10px 4px 0;
  color: var(--muted);
}

.structure-jump {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.structure-jump a {
  display: block;
  padding: 20px 18px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.structure-jump a:hover {
  border-color: var(--brand);
}

.structure-jump strong {
  display: block;
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 18px;
  font-weight: 680;
}

.structure-jump span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
