/* Four treatments of the same eight native illustrations.
   All content, source facts, and profile switching remain in features.js. */
body[data-direction] .features .feature .artwork {
  background: none;
  border: 0;
  border-radius: 0;
  font-family: Geist, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  isolation: isolate;
  container: feature-art / inline-size;
}
.features .artwork > div { min-width: 0; }
.features .artwork svg { stroke-width: 1.55; }
.features .artwork :is(.fragmentLabel,.editorTitle,.receivedMessage strong,
  .relationshipCard header strong,.selectedProperty strong,.platformNode strong) {
  font-weight: 550;
  letter-spacing: -.015em;
}
.features .artwork :is(.operator,.inputLabel,.inputValues span,.menuLabel,
  .recordHead,.nextAction small,.documentTitle > span) { letter-spacing: .005em; }
.features .artwork :is(.selectedProperty,.nextAction) { gap: 11px; }
.features .artwork .field { line-height: 1.4; }
.features .artwork .relationshipCard p { overflow-wrap: anywhere; }
.features .artwork .relationshipCard header strong { min-width: 0; }
.features .artwork .documentSheet li { line-height: 1.4; }
.features .artwork .coleBrief > p { line-height: 1.7; }
.features .artwork .inputValues strong { font-variant-numeric: tabular-nums; }
.features .artwork .recordRows { overflow: hidden; }
.features .artwork .recordRow > span:first-child { min-width: 0; }
.features .artwork .permissionLine { color: #52677e; }
.features .artwork .stageChip { white-space: nowrap; }
.features .artwork .nextAction strong { line-height: 1.35; }

/* Caption height comes from copy, not a fixed empty tail. Shared grid tracks
   keep paired illustrations and caption starts aligned when headings wrap. */
body:is([data-direction="rogo"],[data-direction="henry"],[data-direction="hebbia"],[data-direction="mcp"]) .features .feature .caption {
  min-height: 0;
}
@supports (grid-template-rows: subgrid) {
  body:is([data-direction="rogo"],[data-direction="henry"],[data-direction="hebbia"],[data-direction="mcp"]) .features .feature {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0;
  }
  body:is([data-direction="rogo"],[data-direction="henry"],[data-direction="hebbia"],[data-direction="mcp"]) .features .feature .number { grid-row: 1; }
  body:is([data-direction="rogo"],[data-direction="henry"],[data-direction="hebbia"],[data-direction="mcp"]) .features .feature .artwork { grid-row: 2; }
  body:is([data-direction="rogo"],[data-direction="henry"],[data-direction="hebbia"],[data-direction="mcp"]) .features .feature .caption { grid-row: 3; }
}

/* 01 · Rogo: one quiet workspace language; depth is reserved for results. */
body[data-direction="rogo"] .features .surface {
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 6px;
  box-shadow: 0 2px 3px #192b4403;
}
body[data-direction="rogo"] .features .artwork :is(.filterBuilder,.inputEditor,.coleBrief) {
  padding-top: 16px;
}
body[data-direction="rogo"] .features .fragmentLabel {
  padding-bottom: 12px;
  margin-bottom: 13px;
  border-bottom: 1px solid #edf0f4;
  color: #26374d;
}
body[data-direction="rogo"] .features :is(.field,.inputField) {
  border-radius: 3px;
  background: #fafbfd;
  border-color: #e1e6ed;
}
body[data-direction="rogo"] .features .selectedField {
  background: #edf3ff;
  border-color: #bfcfed;
  color: #05308c;
}
body[data-direction="rogo"] .features :is(.selectedProperty,.scenarioMenu,.nextAction,.documentTag) {
  border-color: #ccd8e9;
  box-shadow: 0 2px 3px #172e4b06, 0 8px 18px -10px #173d6c30;
}
body[data-direction="rogo"] .features :is(.propertyIcon,.platformMark) {
  color: #05308c;
  background: #edf3fc;
  border: 1px solid #dde7f7;
}
body[data-direction="rogo"] .features .relationshipCard header { background: #fafbfd; }
body[data-direction="rogo"] .features .relationshipCard > div { border-color: #edf0f5; }
body[data-direction="rogo"] .features .receivedMessage { margin-bottom: 18px; }
body[data-direction="rogo"] .features .mailAvatar { background: #fff; border-color: #d9e2ed; }
body[data-direction="rogo"] .features .draftFragment footer { background: #fff; }
body[data-direction="rogo"] .features .reviewPill { background: #f0f5ff; border-color: #d1dff4; }
body[data-direction="rogo"] .features .focusedField {
  background: #fff;
  border-color: #a9bfe1;
  box-shadow: 0 0 0 2px #edf3fc;
}
body[data-direction="rogo"] .features .inputValues > div:first-child strong {
  font-size: 20px;
  line-height: 1.1;
  color: #172b47;
  letter-spacing: -.04em;
}
body[data-direction="rogo"] .features .scenarioMenu > div[data-selected] { background: #edf3fc; }
body[data-direction="rogo"] .features .documentBehind { transform: rotate(1.5deg); background: #f7f9fc; }
body[data-direction="rogo"] .features .documentTitle h4 { color: #243a57; font-size: 21px; }
body[data-direction="rogo"] .features .documentTag { color: #05308c; }
body[data-direction="rogo"] .features .recordHead { background: #fafbfd; }
body[data-direction="rogo"] .features .recordRow[data-selected] { background: #f3f7ff; }
body[data-direction="rogo"] .features .recordRow[data-selected] > span:first-child { color: #05308c; }
body[data-direction="rogo"] .features .coleBrief header > strong { color: #05308c; }
body[data-direction="rogo"] .features .attachment { padding-top: 10px; border-top: 1px solid #edf0f4; }
body[data-direction="rogo"] .features .coleOutputs { border-color: #d0deef; }
body[data-direction="rogo"] .features .providers > .surface { box-shadow: none; background: #fafbfd; }
body[data-direction="rogo"] .features .platformNode { box-shadow: 0 8px 16px -12px #23467335; }

/* 02 · Henry: property identity leads; models and materials feel like a firm. */
body[data-direction="henry"] .features .surface {
  background: #fffefa;
  border: 1px solid #dcded9;
  border-radius: 5px;
  box-shadow: 0 2px 3px #423a2504, 0 8px 18px -14px #463b2630;
}
body[data-direction="henry"] .features .sourcingFragment { padding: 80px 0 0 12px; }
body[data-direction="henry"] .features .selectedProperty {
  top: 0;
  bottom: auto;
  left: 0;
  right: auto;
  width: calc(100% - 12px);
  max-width: none;
  border-color: #bfcce0;
  background: #f6f8fc;
  box-shadow: 0 6px 14px -12px #183c6b30;
}
body[data-direction="henry"] .features .selectedProperty strong { color: #1c3455; font-size: 14px; }
body[data-direction="henry"] .features .propertyIcon {
  width: 35px;
  height: 37px;
  background: #e8eef8;
  color: #05308c;
  border: 1px solid #d9e2f1;
}
body[data-direction="henry"] .features .filterBuilder { background: #fffefa; }
body[data-direction="henry"] .features .fragmentLabel { color: #74603f; }
body[data-direction="henry"] .features :is(.field,.inputField) { background: #faf9f5; border-color: #e0e1da; }
body[data-direction="henry"] .features .selectedField { background: #e9eff9; border-color: #c5d3e9; color: #05308c; }
body[data-direction="henry"] .features .ownerTrunk > .relationshipCard:first-child {
  background: #f5f6f1;
  border-color: #cbd1cb;
}
body[data-direction="henry"] .features .relationshipCard header { border-bottom-color: #dedfd6; }
body[data-direction="henry"] .features .relationshipIcon { background: #eeede5; color: #766346; }
body[data-direction="henry"] .features .relationshipBlue { background: #e8eef8; color: #05308c; }
body[data-direction="henry"] .features .receivedMessage { padding-left: 4px; }
body[data-direction="henry"] .features .draftFragment header > small { color: #695c48; }
body[data-direction="henry"] .features .draftFragment { border-top: 2px solid #b8a583; }
body[data-direction="henry"] .features .reviewPill { background: #f3efe5; color: #6a5636; border-color: #ded4c0; }
body[data-direction="henry"] .features .editorTitle { color: #1b3455; }
body[data-direction="henry"] .features .inputValues {
  gap: 0;
  background: #f2f5f8;
  border-block: 1px solid #e0e5eb;
  padding: 11px 12px;
}
body[data-direction="henry"] .features .inputValues > div { flex: 1; }
body[data-direction="henry"] .features .inputValues > div + div { border-left: 1px solid #d7dfe9; padding-left: 14px; }
body[data-direction="henry"] .features .inputValues > div:first-child strong {
  font-size: 23px;
  line-height: 1.1;
  color: #05308c;
  letter-spacing: -.04em;
}
body[data-direction="henry"] .features .scenarioMenu { box-shadow: 0 6px 16px -8px #3e4d6330; }
body[data-direction="henry"] .features .scenarioMenu > div[data-selected] { background: #eaf0fa; color: #05308c; }
body[data-direction="henry"] .features .documentSheet { border-top: 2px solid #a58f65; }
body[data-direction="henry"] .features .documentBehind { background: #eeece3; border-color: #d8d6ca; transform: rotate(2deg); }
body[data-direction="henry"] .features .documentTitle h4 {
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.04em;
  color: #23364f;
}
body[data-direction="henry"] .features .documentTitle > span { color: #786243; }
body[data-direction="henry"] .features .documentTag { background: #f6f8fc; border-color: #cbd6e7; }
body[data-direction="henry"] .features .recordHead { background: #f5f4ee; color: #72654e; }
body[data-direction="henry"] .features .recordRow[data-selected] { background: #eef3fb; box-shadow: inset 2px 0 #05308c; }
body[data-direction="henry"] .features .nextAction { background: #fafbf8; border-color: #ccd5df; }
body[data-direction="henry"] .features .coleBrief header { padding-bottom: 11px; border-bottom: 1px solid #e4e0d5; }
body[data-direction="henry"] .features .coleBrief header > strong { color: #05308c; }
body[data-direction="henry"] .features .coleOutputs { background: #f7f8f4; }
body[data-direction="henry"] .features .providers > .surface { background: #faf9f4; }
body[data-direction="henry"] .features .platformNode { background: #f5f7fb; border-color: #cbd7e6; }

/* 03 · Hebbia: research reads as a ledger, with adjacent source and result. */
body[data-direction="hebbia"] .features .surface {
  border: 1px solid #cfd9e4;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
}
body[data-direction="hebbia"] .features .artwork :is(.operator,.inputLabel,.inputValues span,
  .recordHead,.menuLabel,.nextAction small,.documentSheet li > span) {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: -.01em;
}
body[data-direction="hebbia"] .features :is(.sourcingFragment,.pipelineFragment,.documentFragment) { padding: 0; }
body[data-direction="hebbia"] .features .selectedProperty,
body[data-direction="hebbia"] .features .nextAction,
body[data-direction="hebbia"] .features .documentTag {
  position: static;
  width: 100%;
  max-width: none;
  margin-top: 8px;
  background: #f4f7fc;
  border-color: #c4d3e5;
  box-shadow: none;
}
body[data-direction="hebbia"] .features .fragmentLabel { padding-bottom: 10px; border-bottom: 1px solid #dbe2eb; }
body[data-direction="hebbia"] .features .filterRow { border-bottom: 1px solid #edf1f6; padding-bottom: 6px; }
body[data-direction="hebbia"] .features .filterRow:last-child { border: 0; padding-bottom: 0; }
body[data-direction="hebbia"] .features .field { background: #fff; border-radius: 2px; border-color: #e2e7ee; }
body[data-direction="hebbia"] .features .selectedField { background: #e8f0fe; border-color: #b8cbe9; color: #05308c; }
body[data-direction="hebbia"] .features :is(.propertyIcon,.relationshipIcon,.relationshipBlue,.platformMark) { border-radius: 2px; }
body[data-direction="hebbia"] .features .relationshipCard header { background: #edf2f8; }
body[data-direction="hebbia"] .features .relationshipCard > div { background: #fff; }
body[data-direction="hebbia"] .features .graphBranch i { border-radius: 0; }
body[data-direction="hebbia"] .features .receivedMessage { border-left: 2px solid #cad7e8; padding-left: 12px; margin-bottom: 14px; }
body[data-direction="hebbia"] .features .mailAvatar { border-radius: 3px; }
body[data-direction="hebbia"] .features .draftFragment header { border-bottom: 1px solid #e0e7ef; padding-bottom: 10px; }
body[data-direction="hebbia"] .features .reviewPill { border-radius: 2px; }
body[data-direction="hebbia"] .features .analysisFragment {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,.85fr);
  gap: 8px;
  align-items: start;
  padding: 0;
  max-width: 432px;
}
body[data-direction="hebbia"] .features .inputEditor { padding: 13px; }
body[data-direction="hebbia"] .features .editorTitle { padding-bottom: 12px; margin-bottom: 13px; border-bottom: 1px solid #dbe2eb; }
body[data-direction="hebbia"] .features .inputField { border-radius: 2px; font-size: 11px; }
body[data-direction="hebbia"] .features .focusedField { box-shadow: none; background: #edf3fd; border-color: #b7cae6; }
body[data-direction="hebbia"] .features .inputValues { gap: 16px; }
body[data-direction="hebbia"] .features .inputValues > div:first-child strong { color: #05308c; font-size: 21px; line-height: 1.1; letter-spacing: -.04em; }
body[data-direction="hebbia"] .features .inputField > strong { font-size: 10px; }
body[data-direction="hebbia"] .features .scenarioMenu { position: static; width: 100%; padding: 4px; }
body[data-direction="hebbia"] .features .scenarioMenu > div:not(:first-child) { padding: 9px 6px; font-size: 11px; border-radius: 1px; }
body[data-direction="hebbia"] .features .scenarioMenu > div[data-selected] { background: #e6effc; box-shadow: inset 2px 0 #05308c; }
body[data-direction="hebbia"] .features .documentBehind { display: none; }
body[data-direction="hebbia"] .features .documentTitle { margin-block: 19px 16px; }
body[data-direction="hebbia"] .features .documentTitle h4 { font-size: 20px; color: #203854; }
body[data-direction="hebbia"] .features .documentSheet li > span { color: #315d95; }
body[data-direction="hebbia"] .features .recordRows { padding-inline: 10px; }
body[data-direction="hebbia"] .features .recordHead { color: #4a6380; background: #f0f4fa; }
body[data-direction="hebbia"] .features .recordRow { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
body[data-direction="hebbia"] .features .recordRow[data-selected] { background: #edf3fe; box-shadow: inset 2px 0 #05308c; }
body[data-direction="hebbia"] .features .stageChip { border-radius: 2px; }
body[data-direction="hebbia"] .features .coleBrief header { padding-bottom: 11px; border-bottom: 1px solid #dbe2eb; }
body[data-direction="hebbia"] .features .attachment { font-size: 10px; color: #315d95; }
body[data-direction="hebbia"] .features .coleOutputs > div { padding-block: 10px; }
body[data-direction="hebbia"] .features .providers > .surface { background: #f7f9fc; padding-inline: 12px; }
body[data-direction="hebbia"] .features .providerWires > i { border-radius: 0; }
body[data-direction="hebbia"] .features .platformNode { background: #f0f5fc; }

/* 04 · NA MCP: the existing source/output planes supply the glass layering. */
body[data-direction="mcp"] .features .surface {
  background: #ffffffd9;
  border: 1px solid #ffffffed;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #d1dce78c, 0 3px 7px #1f385209, 0 12px 22px -13px #23416125;
}
body[data-direction="mcp"] .features .artwork :is(.selectedProperty,.scenarioMenu,.nextAction,.documentTag) {
  background: #f7fbfff0;
  border-color: #ffffff;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #c9d8e898, 0 5px 12px #23416109, 0 16px 26px -15px #23416130;
}
body[data-direction="mcp"] .features .filterBuilder { background: #f8fbffd9; }
body[data-direction="mcp"] .features .fragmentLabel { color: #314c70; }
body[data-direction="mcp"] .features :is(.field,.inputField) {
  background: #ffffffa8;
  border-color: #d9e3ee;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 #ffffff;
}
body[data-direction="mcp"] .features .selectedField { background: #e8f0fb; color: #05308c; border-color: #bfd2eb; }
body[data-direction="mcp"] .features :is(.propertyIcon,.platformMark) {
  color: #315f96;
  background: #e7eff9d9;
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 1px #cedced99, inset 0 1px 0 #fff;
}
body[data-direction="mcp"] .features .relationshipCard header { background: #f1f6fc9c; }
body[data-direction="mcp"] .features .relationshipCard > div { border-color: #dce5eea8; }
body[data-direction="mcp"] .features .relationshipBlue { background: #e4edf9; color: #315f96; }
body[data-direction="mcp"] .features .receivedMessage { margin-bottom: 18px; }
body[data-direction="mcp"] .features .mailAvatar { border: 1px solid #fff; background: #f9fbfe; box-shadow: 0 0 0 1px #d2ddea99; }
body[data-direction="mcp"] .features .draftFragment header > span { color: #315f96; }
body[data-direction="mcp"] .features .reviewPill { background: #e8f0fa; color: #31577f; border-color: #d1dfed; }
body[data-direction="mcp"] .features .inputEditor { background: #f7faffdc; }
body[data-direction="mcp"] .features .focusedField { background: #ffffffdb; border-color: #bacde5; box-shadow: inset 0 1px 0 #fff, 0 0 0 2px #e8f0fa90; }
body[data-direction="mcp"] .features .inputValues > div:first-child strong { font-size: 21px; line-height: 1.1; color: #224d80; letter-spacing: -.04em; }
body[data-direction="mcp"] .features .scenarioMenu > div[data-selected] { background: #e6eef9; color: #224d80; }
body[data-direction="mcp"] .features .documentBehind { transform: rotate(2deg); background: #e5edf6a8; border-color: #cbd9e7; }
body[data-direction="mcp"] .features .documentSheet { background: #ffffffe8; }
body[data-direction="mcp"] .features .documentTitle h4 { color: #2a4566; }
body[data-direction="mcp"] .features .recordHead { background: #edf3faa6; }
body[data-direction="mcp"] .features .recordRow[data-selected] { background: #e9f1fc; }
body[data-direction="mcp"] .features .stageChip { border-color: #d6e1ed; background: #eff4fac7; }
body[data-direction="mcp"] .features .recordRow[data-selected] .stageChip { background: #e1ecfb; border-color: #c9d9ed; color: #315f96; }
body[data-direction="mcp"] .features .coleBrief { background: #f6faffd9; }
body[data-direction="mcp"] .features .coleOutputs { background: #fffffff0; }
body[data-direction="mcp"] .features .attachment { color: #5d7694; }
body[data-direction="mcp"] .features .providers > .surface { background: #ffffffc4; }
body[data-direction="mcp"] .features .platformNode { background: #f8fbfff0; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #cbd9e999, 0 12px 23px -14px #23416133; }

@supports (backdrop-filter: blur(1px)) {
  body[data-direction="mcp"] .features .artwork :is(.selectedProperty,.scenarioMenu,.nextAction,.documentTag) {
    backdrop-filter: blur(9px) saturate(1.04);
  }
}

/* Layer the scenario below the model. Only the editor's bottom padding is
   overlapped, leaving every source value visible at all supported widths. */
body:is([data-direction="rogo"],[data-direction="henry"],[data-direction="mcp"]) .features .analysisFragment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
body:is([data-direction="rogo"],[data-direction="henry"],[data-direction="mcp"]) .features .analysisFragment .inputEditor {
  width: calc(100% - 28px);
  min-width: 0;
}
body:is([data-direction="rogo"],[data-direction="henry"],[data-direction="mcp"]) .features .analysisFragment .scenarioMenu {
  position: relative;
  inset: auto;
  align-self: flex-end;
  margin-top: -10px;
  z-index: 1;
}

/* Artwork width, rather than viewport width, governs compact diagrams. */
@container feature-art (max-width: 340px) {
  .features .artwork .filterRow { font-size: 10px; gap: 4px; }
  .features .artwork .filterRow > .operator:first-child { width: 28px; }
  .features .artwork .field { padding-inline: 4px; gap: 3px; }
  .features .artwork .field > svg { width: 10px; }
  .features .artwork .ownerGraph { grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); }
  .features .artwork .relationshipCard header { padding-inline: 7px; gap: 4px; }
  .features .artwork .relationshipCard header strong { font-size: 10px; }
  .features .artwork .relationshipCard > div { padding-inline: 7px; }
  .features .artwork .relationshipCard p { font-size: 11px; }
  .features .artwork .graphBranch::before { width: 10px; }
  .features .artwork .graphBranch i { width: 11px; }
  .features .artwork .providers { gap: 6px; }
  .features .artwork .providers > .surface { padding-inline: 8px; font-size: 10px; }
  .features .artwork .providerWires { margin-inline: 43px; }
  .features .artwork .permissionLine { font-size: 10px; gap: 5px; }
  .features .artwork .recordRow { font-size: 11px; gap: 5px; }
  .features .artwork .stageChip { font-size: 10px; padding-inline: 5px; }
  body[data-direction="henry"] .features .sourcingFragment { padding-left: 6px; }
  body[data-direction="henry"] .features .selectedProperty strong { font-size: 12px; }
  body[data-direction="henry"] .features .selectedProperty { width: calc(100% - 6px); }
  body[data-direction="henry"] .features .inputValues { padding-inline: 9px; }
  body[data-direction="henry"] .features .inputValues > div + div { padding-left: 9px; }
  body[data-direction="hebbia"] .features .analysisFragment { grid-template-columns: minmax(0,1.2fr) minmax(0,.9fr); gap: 6px; }
  body[data-direction="hebbia"] .features .inputEditor { padding: 10px; }
  body[data-direction="hebbia"] .features .inputValues { gap: 12px; }
  body[data-direction="hebbia"] .features .inputField { padding-inline: 6px; gap: 5px; }
  body[data-direction="hebbia"] .features .inputField > strong { font-size: 9px; }
  body[data-direction="hebbia"] .features .scenarioMenu > div:not(:first-child) { padding-inline: 5px; gap: 5px; font-size: 10px; }
}

@media (prefers-reduced-transparency: reduce) {
  body[data-direction="mcp"] .features .feature .surface,
  body[data-direction="mcp"] .features .artwork :is(.selectedProperty,.scenarioMenu,.nextAction,.documentTag) {
    background: #fff;
    backdrop-filter: none;
  }
}
