/* Behaviors page — extends foundationals styling */

.drill-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 2rem;
}
@media (max-width: 700px) {
  .drill-links { grid-template-columns: 1fr; }
}
.drill-card {
  background: linear-gradient(135deg, #1a0a1a, #0a0a0a);
  border: 1px solid #b5f;
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.1s;
}
.drill-card:hover { border-color: #f5d76e; transform: translateY(-1px); }
.drill-num {
  font-family: ui-monospace, monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: #f5d76e;
  line-height: 1;
}
.drill-label {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
  margin: 0.4rem 0;
}
.drill-help {
  font-size: 0.82rem;
  color: #aaa;
  line-height: 1.55;
}


.behaviors-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
  color: #d8d8d8;
}

.method-note {
  background: #14140e;
  border-left: 3px solid #f5d76e;
  padding: 1rem 1.25rem;
  margin: 1rem 0 2.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cfcfcf;
}
.method-note p { margin: 0; }

/* Vocabulary grid */
.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 2.75rem;
}
.vocab-cell {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.05rem 1rem;
  text-align: center;
}
.vocab-num {
  font-family: ui-monospace, monospace;
  font-size: 1.85rem;
  font-weight: 700;
  color: #f5d76e;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.vocab-text {
  font-size: 0.83rem;
  color: #cfcfcf;
  line-height: 1.45;
}

/* Breadth chart */
.breadth-chart {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 2.75rem;
}
.breadth-row {
  display: grid;
  grid-template-columns: 50px 1fr 50px 1fr 110px;
  align-items: center;
  gap: 0.6rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}
.breadth-label { color: #888; text-align: center; }
.breadth-bar3d, .breadth-bar4d {
  height: 18px;
  background: #181818;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.breadth-bar3d > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #6b8bff, #22d3ee);
}
.breadth-bar4d > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #b5f, #f5d76e);
}
.breadth-pct {
  font-size: 0.78rem;
  color: #aaa;
  text-align: right;
}
.breadth-meta {
  font-size: 0.78rem;
  color: #888;
  text-align: right;
}
.breadth-row.breadth-empty .breadth-bar3d > i,
.breadth-row.breadth-empty .breadth-bar4d > i {
  background: #2a2a2a;
}
.breadth-empty .breadth-pct,
.breadth-empty .breadth-meta {
  color: #555;
  font-style: italic;
}
.breadth-header {
  display: grid;
  grid-template-columns: 50px 1fr 50px 1fr 110px;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.breadth-header span { text-align: center; }
.breadth-header .span-bar3d::after { content: '3D'; color: #6b8bff; font-weight: 700; }
.breadth-header .span-bar4d::after { content: '4D'; color: #b5f; font-weight: 700; }

/* Purity tier chart */
.purity-chart {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 2.75rem;
}
.purity-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 80px;
  align-items: center;
  gap: 0.6rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}
.purity-label { color: #cfcfcf; }
.purity-bar3d, .purity-bar4d {
  height: 16px; background: #181818; border-radius: 2px; overflow: hidden;
}
.purity-bar3d > i { display:block; height:100%; background: #6b8bff; }
.purity-bar4d > i { display:block; height:100%; background: #b5f; }
.purity-meta { font-size: 0.78rem; color: #aaa; text-align: right; }
.tier-P1 .purity-label { color: #6f9; }
.tier-P2 .purity-label { color: #fbbf24; }
.tier-P3 .purity-label { color: #f5d76e; }
.tier-P4 .purity-label { color: #f97316; }
.tier-P5 .purity-label { color: #ef4444; }

/* Leader / follower */
.leader-follower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: 1rem 0 2.75rem;
}
@media (max-width: 800px) {
  .leader-follower { grid-template-columns: 1fr; }
}
.lf-col {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
}
.lf-leaders { border-color: #f5d76e; }
.lf-followers { border-color: #555; }
.lf-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.6rem;
}
.lf-leaders .lf-label { color: #f5d76e; }
.lf-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.lf-item {
  font-family: ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  background: #181818;
  border: 1px solid #333;
}
.lf-dis { color: #22d3ee; border-color: #22d3ee44; }
.lf-fru { color: #b5f;    border-color: #b5f44; }
.lf-pol { color: #f5d76e; border-color: #f5d76e44; }
.lf-con { color: #ef4444; opacity: 0.75; }
.lf-rad { color: #fbbf24; opacity: 0.75; }
.lf-tri { color: #6f9;    opacity: 0.75; }
.lf-cub { color: #6b8bff; opacity: 0.75; }
.lf-note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #aaa;
}

/* Identity table */
.ident-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 2.75rem;
}
@media (max-width: 800px) {
  .ident-table { grid-template-columns: 1fr; }
}
.ident-col {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.9rem 1rem;
}
.ident-col h4 {
  margin: 0 0 0.7rem; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: #888;
}
.ident-col-3d h4 { color: #6b8bff; }
.ident-col-4d h4 { color: #b5f; }
.ident-row {
  display: grid;
  grid-template-columns: 1.5fr 60px 60px;
  gap: 0.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.84rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid #1d1d1d;
}
.ident-row:last-child { border-bottom: none; }
.ident-sig { color: #d8d8d8; }
.ident-n { color: #aaa; text-align: right; }
.ident-pct { color: #f5d76e; text-align: right; }

/* Behaviors table */
.behaviors-table-wrap {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  margin: 1rem 0 2.75rem;
  max-height: 720px;
  overflow-y: auto;
}
.behaviors-table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}
.behaviors-table thead {
  position: sticky;
  top: 0;
  background: #181818;
  z-index: 1;
}
.behaviors-table th {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid #333;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}
.behaviors-table th.num { text-align: right; }
.behaviors-table td {
  padding: 0.4rem 0.7rem;
  border-bottom: 1px solid #1c1c1c;
  color: #cfcfcf;
}
.behaviors-table td.num { text-align: right; color: #aaa; }
.behaviors-table tbody tr:hover { background: #181818; }
.sig-cell { color: #f5d76e; }

/* Persistence grid */
.persistence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.5rem;
}
.persist-cell {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}
.persist-num {
  font-family: ui-monospace, monospace;
  font-size: 1.55rem;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 0.3rem;
}
.persist-text {
  font-size: 0.83rem;
  color: #cfcfcf;
  line-height: 1.45;
}
