/* AEZ post — isometric AEZ diagram + taxonomy table + fake evals board. */

.aez-iso-fig {
  width: 100%;
  margin: 0;
  padding-top: 0.4rem;
  overflow-x: auto;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.aez-iso-fig svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}

.aez-iso-fig text {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  fill: rgb(59, 59, 59);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.aez-iso-fig text.small {
  fill: #777;
  font-size: 10px;
  font-weight: 500;
}

.aez-iso-fig .aez-label text {
  fill: #3a3a78;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.aez-iso-fig .aez-label text.small {
  fill: #6f7085;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.aez-iso-fig .aez-outside rect {
  fill: #fbfbfd;
  stroke: #d8d8e0;
  stroke-width: 1;
}

.aez-iso-fig .endpoint-icon {
  fill: none;
  stroke: #3a3a78;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aez-iso-fig .endpoint-icon circle,
.aez-iso-fig .endpoint-icon rect {
  fill: #fbfbfd;
}

.aez-iso-fig .endpoint-icon.providers {
  stroke: #6a7a95;
}

.aez-iso-fig .endpoint-icon.bots {
  stroke: #a85a5a;
}

.aez-iso-fig .city-ground {
  fill: #ececf2;
  stroke: #c9c9d8;
  stroke-width: 1;
}

.aez-iso-fig .city-side {
  fill: #cfd0df;
  stroke: #b9bacb;
  stroke-width: 1;
}

.aez-iso-fig .city-wall polygon {
  fill: rgba(213, 214, 232, 0.88);
  stroke: #a9abc2;
  stroke-width: 1;
}

.aez-iso-fig .city-wall path {
  fill: none;
  stroke: #787b9a;
  stroke-width: 1.8;
}

.aez-iso-fig .city-courtyard {
  fill: rgba(246, 247, 250, 0.86);
  stroke: #d8d8e0;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.aez-iso-fig .city-grid {
  stroke: #cfd0dc;
  stroke-width: 0.7;
  opacity: 0.75;
}

.aez-iso-fig .aez-buildings .roof {
  stroke-width: 1;
}

.aez-iso-fig .aez-buildings .left,
.aez-iso-fig .aez-buildings .right {
  stroke-width: 1;
}

.aez-iso-fig .window {
  fill: #111;
  stroke: #111;
  stroke-width: 0.8;
}

.aez-iso-fig .door {
  fill: #f9f9f9;
  stroke-width: 1;
}

.aez-iso-fig .door.side {
  fill: #eef1f6;
}

.aez-iso-fig .post .door {
  stroke: #6a7a95;
}

.aez-iso-fig .customs .door {
  stroke: #a85a5a;
}

.aez-iso-fig .shop .roof { fill: #fbf6ec; stroke: #c08a3e; }
.aez-iso-fig .shop .left { fill: #f0dfbf; stroke: #c08a3e; }
.aez-iso-fig .shop .right { fill: #e8d0a7; stroke: #c08a3e; }

.aez-iso-fig .post .roof { fill: #f1f5fb; stroke: #6a7a95; }
.aez-iso-fig .post .left { fill: #dfe7f2; stroke: #6a7a95; }
.aez-iso-fig .post .right { fill: #d4deec; stroke: #6a7a95; }

.aez-iso-fig .customs .roof { fill: #faf0f0; stroke: #a85a5a; }
.aez-iso-fig .customs .left { fill: #ecd8d8; stroke: #a85a5a; }
.aez-iso-fig .customs .right { fill: #e3c9c9; stroke: #a85a5a; }

.aez-iso-fig .company .roof { fill: #fbfbfd; stroke: #3a3a78; }
.aez-iso-fig .company .left { fill: #e7e7f0; stroke: #3a3a78; }
.aez-iso-fig .company .right { fill: #d9d9e8; stroke: #3a3a78; }
.aez-iso-fig .boba .roof { fill: #fbf6ec; stroke: #c08a3e; }
.aez-iso-fig .boba .left { fill: #f0dfbf; stroke: #c08a3e; }
.aez-iso-fig .boba .right { fill: #e8d0a7; stroke: #c08a3e; }
.aez-iso-fig .clean .roof { fill: #f7f9f3; stroke: #5a7a44; }
.aez-iso-fig .clean .left { fill: #dfe9d8; stroke: #5a7a44; }
.aez-iso-fig .clean .right { fill: #d3dec9; stroke: #5a7a44; }
.aez-iso-fig .manu .roof { fill: #f1f5fb; stroke: #4a6ea5; }
.aez-iso-fig .manu .left { fill: #dfe7f2; stroke: #4a6ea5; }
.aez-iso-fig .manu .right { fill: #d2deed; stroke: #4a6ea5; }
.aez-iso-fig .logistics .roof { fill: #f1f6fb; stroke: #5a8aaa; }
.aez-iso-fig .logistics .left { fill: #dbeaf2; stroke: #5a8aaa; }
.aez-iso-fig .logistics .right { fill: #cfe0ea; stroke: #5a8aaa; }

.aez-iso-fig .aez-window-link {
  fill: none;
  stroke: #c08a3e;
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  opacity: 0.9;
}

.aez-iso-fig .aez-flows {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aez-iso-fig .aez-flows.external {
  stroke: #3a3a78;
  stroke-width: 1.6;
  marker-end: url(#aez-arrow-indigo);
}

.aez-iso-fig .aez-flows.interface {
  stroke: #c08a3e;
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  marker-end: url(#aez-arrow-amber);
}

.aez-iso-fig .aez-flows.internal {
  stroke: #5a7a44;
  stroke-width: 1.5;
  marker-end: url(#aez-arrow-green);
}

.aez-iso-fig .aez-callouts rect {
  fill: rgba(249, 249, 249, 0.92);
  stroke: #d8d8e0;
  stroke-width: 1;
}

.aez-iso-fig .aez-callouts text {
  fill: #666;
  font-size: 10px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .aez-iso-fig {
    margin-right: -8%;
  }
}

/* Org taxonomy table. */
.org-taxonomy {
  border-collapse: collapse;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.88rem;
  margin: 1.2rem 0;
  width: 100%;
}

.org-taxonomy thead th {
  text-align: left;
  font-weight: 600;
  color: #3a3a78;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid #3a3a78;
}

.org-taxonomy tbody td {
  padding: 0.5rem 0.8rem;
  color: rgb(59, 59, 59);
  border-bottom: 1px solid #ececec;
  vertical-align: top;
}

.org-taxonomy tbody td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.org-taxonomy .row-aez {
  background: #f6f7fa;
}

.org-taxonomy .row-aez td {
  border-bottom: 1px solid #3a3a78;
}

.org-taxonomy .f {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  font-weight: 500;
}

.org-taxonomy .f-high { background: #e5efe2; color: #2f6a36; }
.org-taxonomy .f-low  { background: #f5e7df; color: #8a5230; }
.org-taxonomy .f-vlow { background: #f5dedb; color: #8a2a2a; }

/* ── Fake-website leaderboard: evals for autonomous organisations ── */
.aez-evals-board {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  /* sit in the text-column width (matches Tufte section > p at 55% of body) */
  width: 55%;
  margin: 1.5rem 0 0;
  border: 1px solid #d4d2e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 14px rgba(58, 58, 120, 0.06);
}

@media (max-width: 760px) {
  .aez-evals-board { width: 100%; }
}

.aez-evals-board .bbar {
  background: #ececf2;
  border-bottom: 1px solid #d4d2e0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.7rem;
}
.aez-evals-board .bbar .dots {
  display: flex;
  gap: 4px;
}
.aez-evals-board .bbar .dots span {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cbcbd2;
}
.aez-evals-board .bbar .dots span:nth-child(1) { background: #f57979; }
.aez-evals-board .bbar .dots span:nth-child(2) { background: #f5cb7a; }
.aez-evals-board .bbar .dots span:nth-child(3) { background: #7ac88a; }
.aez-evals-board .bbar .url {
  flex: 1;
  font-size: 0.7rem;
  color: #777;
  background: #fff;
  border: 1px solid #d4d2e0;
  border-radius: 3px;
  padding: 0.2rem 0.6rem;
  font-feature-settings: "tnum";
}

.aez-evals-board .page {
  padding: 1.2rem 1.4rem 1.3rem;
}

.aez-evals-board .page-head {
  border-bottom: 1px solid #e0e0e8;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.aez-evals-board .page-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgb(59, 59, 59);
}
.aez-evals-board .page-sub {
  font-size: 0.72rem;
  color: #888;
  letter-spacing: 0.04em;
}
.aez-evals-board .page-sub::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: #5a9a5a;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.aez-evals-board .eval-rows {
  display: flex;
  flex-direction: column;
}

.aez-evals-board .er-row {
  display: grid;
  grid-template-columns: 28px 1fr 60px 1fr 80px;
  gap: 0.6rem 0.8rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #ececec;
}
.aez-evals-board .er-row:last-child { border-bottom: none; }

.aez-evals-board .er-icon {
  width: 24px; height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.aez-evals-board .er-name { line-height: 1.25; }
.aez-evals-board .er-title { font-size: 0.85rem; font-weight: 600; color: rgb(59, 59, 59); }
.aez-evals-board .er-sub { font-size: 0.7rem; color: #888; }

.aez-evals-board .er-score {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3a3a78;
  font-feature-settings: "tnum";
  text-align: right;
}
.aez-evals-board .er-score.pending { color: #aaa; font-weight: 400; font-style: italic; font-size: 0.78rem; }

.aez-evals-board .er-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #ececf2;
  overflow: hidden;
}
.aez-evals-board .er-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, #6a6aa8, #3a3a78);
  border-radius: 999px;
}
.aez-evals-board .er-bar.pending { background: #f4f4f8; }

.aez-evals-board .er-meta {
  font-size: 0.72rem;
  color: #888;
  text-align: right;
  font-feature-settings: "tnum";
}

.aez-evals-board .page-foot {
  margin-top: 0.8rem;
  padding-top: 0.5rem;
  border-top: 1px solid #ececec;
  font-size: 0.7rem;
  color: #aaa;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 540px) {
  .aez-evals-board .er-row {
    grid-template-columns: 28px 1fr 60px;
    grid-template-areas:
      "icon name score"
      ".    bar  bar"
      ".    meta meta";
    row-gap: 0.2rem;
  }
  .aez-evals-board .er-icon { grid-area: icon; }
  .aez-evals-board .er-name { grid-area: name; }
  .aez-evals-board .er-score { grid-area: score; }
  .aez-evals-board .er-bar { grid-area: bar; }
  .aez-evals-board .er-meta { grid-area: meta; }
}
