body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 1rem;
  background: #f5f7fb;
  color: #1a1a1a;
  line-height: 1.4;
}
h3 {
  margin-bottom: 0.5rem;
}
p.lead {
  max-width: 70ch;
}
/* warning box */
blockquote.dragon {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  border-left: 4px solid #ff4d4f;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
/* Legend box full width – keep in case you reuse it elsewhere */
.legend {
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 1rem 0;
  width: 100%;
  box-sizing: border-box;
}
.legend dt {
  font-weight: 600;
  float: left;
  width: 6rem;
}
.legend dd {
  margin-left: 6rem;
  margin-bottom: 0.5rem;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
thead th {
  background: #f6f8fa;
  font-weight: 600;
  text-align: center;
}
th,
td {
  border: 1px solid #d0d7de;
  padding: 4px 6px;
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
}
caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.relhead {
  background-color: #6f2e80 !important;
  color: #ffffff !important;
}
.relsub {
  background-color: #e6d7ec !important;
  font-weight: bold;
}
.src-head {
  background-color: #1f54d1;
  color: #ffffff;
}
.tgt-head {
  background-color: #be072f;
  color: #ffffff;
}
.src-sub {
  background-color: #adc3f6;
  font-weight: bold;
}
.tgt-sub {
  background-color: #d78496;
  font-weight: bold;
}
.highlight-yellow {
  background-color: #fff3b0; /* soft yellow */
}
/****************************
     * SCOPED STYLES
     ****************************/
    .model-map-block h3 {
      margin-top: 1.5rem;
      margin-bottom: 0.75rem;
    }
    .model-map-block h4 {
      margin-top: 2rem;
      margin-bottom: 0.5rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .model-map-block p {
      line-height: 1.4;
      margin-top: 0.5rem;
      margin-bottom: 1rem;
      max-width: 100%;
    }
    /****************************
     * CALLOUT BOX
     ****************************/
    .model-map-block .callout-wrapper {
      margin: 1rem 0 2rem 0;
    }
    .model-map-block .callout-box {
      border-radius: 8px;
      border: 1px solid #d6c78a;
      background: #fff8d6;
      padding: 0.75rem 1rem;
      line-height: 1.4;
    }
    .model-map-block .callout-box strong {
      display: block;
      margin-bottom: 0.4rem;
    }
    /****************************
     * TABLE STYLE (reused for each group)
     ****************************/
    .model-map-block .table-wrapper {
      border: 1px solid #d0d7de;
      border-radius: 10px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.04);
      overflow: hidden;
      max-width: 100%;
      background: #fff;
      margin-top: 0.75rem;
      margin-bottom: 2rem;
    }
    .model-map-block table.model-index {
      border-collapse: collapse;
      width: 100%;
      table-layout: auto;
      background: #fff;
    }
    .model-map-block .model-index thead th {
      background: #f6f8fa;
      font-weight: 600;
      text-align: left;
      border-bottom: 1px solid #d0d7de;
      padding: 8px;
      white-space: nowrap;
    }
    .model-map-block .model-index tbody td {
      border-top: 1px solid #d0d7de;
      padding: 8px;
      vertical-align: top;
    }
    .model-map-block .model-index code {
      background: #eef2ff;
      border: 1px solid #c7d2fe;
      border-radius: 4px;
      padding: 0 2px;
    }
    .model-map-block a.pill {
      display: inline-block;
      background: #ffffff;
      border: 1px solid #d0d7de;
      border-radius: 999px;
      padding: 3px 8px;
      line-height: 1.2;
      text-decoration: none;
      white-space: nowrap;
    }
    .model-map-block a.pill:hover {
      background: #f6f8fa;
    }
    /* small helper so emoji headers align nicely on some renderers */
    .model-map-block .group-emoji {
      font-size: 1.4rem;
      line-height: 1;
    }