/* Flat system diagrams: real text, reusable components and separate read/action paths. */
.architecture-map{margin:0;padding:25px;background:#f5f5f5;border:1px solid #dedede;border-radius:7px;color:var(--ink);position:relative;isolation:isolate}
.am-caption{display:flex;justify-content:space-between;align-items:center;gap:20px;font:12px/1.5 var(--mono);letter-spacing:.08em;color:#666;margin-bottom:25px}
.am-caption-note{font-size:12px;color:#777;white-space:nowrap}
.am-layout{display:grid;grid-template-columns:155px 225px minmax(0,1fr);gap:37px;align-items:stretch;position:relative}
.architecture-map .am-routing{position:absolute;inset:0;width:100%;height:100%;max-width:none;overflow:visible;pointer-events:none;z-index:2}
.am-route,.am-route-bus{fill:none;stroke:#a5a5a5;stroke-width:1;stroke-linejoin:round;stroke-linecap:round}
.am-route--back{stroke-dasharray:4 5;stroke:#999}
.architecture-map--routed .am-wire,.architecture-map--routed.architecture-map--compact .am-platform::before{display:none}
.architecture-map .am-section-label{font:12px/1.6 var(--mono);letter-spacing:.055em;color:#747474;margin:0 0 16px}
.am-environment,.am-connection,.am-platform{min-width:0}
.am-source-list{padding:0;margin:0;list-style:none;display:grid;gap:10px}
.am-source-list li{display:flex;align-items:center;gap:10px;min-height:52px;padding:10px;background:#fcfcfc;border:1px solid #ddd;border-radius:4px}
.architecture-map .am-icon{width:20px;height:20px;flex:none;max-width:none;overflow:visible;color:#535353}
.am-source-list strong{display:block;font-size:13px;font-weight:500;line-height:1.4;letter-spacing:-.2px}
.am-source-list small{display:block;font-size:12px;line-height:1.65;color:#777;margin-top:3px}
.am-connection{padding:15px 13px 13px;border:1px solid #d3d3d3;border-radius:6px;background:#efefef}
.architecture-map .am-connection>.am-section-label{font-size:12px;margin-bottom:16px;white-space:nowrap;letter-spacing:.02em}
.am-connection-nodes{display:grid;grid-template-rows:1fr 40px 1fr;height:calc(100% - 28px)}
.am-node{border:1px solid #cecece;border-radius:4px;background:#fff;padding:23px 14px;display:flex;flex-direction:column;justify-content:center;position:relative;min-width:0}
.am-node>.am-icon{width:25px;height:25px;margin-bottom:15px}
.architecture-map h4{margin:0;font-weight:500;font-size:20px;line-height:1.3;letter-spacing:-.5px}
.am-node h4 span{display:block;font-size:18px;color:#555;margin-top:3px}
.am-node p{font-size:13px;line-height:1.8;color:#737373;margin-top:12px}
.am-connector-link{position:relative;display:flex;justify-content:center;align-items:center}
.am-connector-link::before{content:'';position:absolute;left:50%;top:0;bottom:0;width:1px;background:#bcbcbc;z-index:0}
.am-connector-link span{font:12px/1.5 var(--mono);letter-spacing:.07em;color:#777;background:#efefef;padding:3px 8px;position:relative;z-index:1}
.am-platform{display:flex;flex-direction:column}
.am-consumers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;position:relative}
.am-client{background:#fff;border:1px solid #d4d4d4;border-radius:4px;min-width:0;padding:15px 7px;text-align:center;position:relative}
.am-client::after{content:'';width:1px;position:absolute;bottom:-17px;height:17px;background:#bcbcbc;left:50%}
.am-client .am-icon{width:23px;height:23px;margin:0 auto 11px}
.am-client strong{font-size:13px;font-weight:500;display:block;line-height:1.5;letter-spacing:-.25px}
.am-client small{font-size:12px;line-height:1.5;display:block;color:#777;margin-top:3px}
.am-client-ui{background:#ececec}
.am-agentic{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:75px;padding:14px 20px;border:1px solid #333;background:#262626;color:white;border-radius:4px;margin-top:16px;position:relative}
.am-agentic span{font:12px/1.5 var(--mono);letter-spacing:.07em;color:#bdbdbd;display:block;margin-bottom:6px}
.am-agentic h4{font-size:21px;letter-spacing:-.4px}
.am-agentic p{font:12px/1.7 var(--mono);color:#e0e0e0;white-space:nowrap}
.am-retrieval-link{position:relative;height:42px;display:flex;align-items:center;justify-content:center}
.am-retrieval-link::before{content:'';position:absolute;left:50%;top:0;bottom:0;width:1px;background:#aaa;z-index:-1}
.am-retrieval-link::after{content:'↕';position:absolute;left:calc(50% - 4px);top:9px;color:#555;font:19px/1 var(--sans);background:#f5f5f5}
.am-retrieval-link span{font:12px/1.5 var(--mono);letter-spacing:.04em;color:#737373;background:#f5f5f5;position:relative;left:88px;max-width:150px;text-align:center;padding:3px 5px}
.am-knowledge{border:1px solid #cfcfcf;border-radius:6px;padding:15px;background:#eaeaea;flex:1;display:flex;flex-direction:column}
.architecture-map .am-knowledge>.am-section-label{font-size:12px;letter-spacing:.06em;margin-bottom:12px}
.am-services{display:grid;grid-template-columns:.85fr 1.15fr;gap:8px;transition:box-shadow .2s}
.am-services>div{border:1px solid #cacaca;border-radius:3px;padding:12px 10px;background:#fff;min-width:0}
.am-services strong{display:block;font-size:15px;font-weight:500;line-height:1.5;letter-spacing:-.3px}
.am-services small{display:block;color:#757575;font-size:12px;line-height:1.6;margin-top:4px}
.am-engine{margin-top:14px;border:1px solid #d0d0d0;border-radius:4px;background:#f6f6f6;padding:18px 14px;flex:1;transition:box-shadow .2s}
.am-engine h4{font-size:22px;line-height:1.4}
.am-governance{list-style:none;margin:8px 0 20px;padding:0;display:flex;gap:5px 10px;flex-wrap:wrap;color:#727272;font-size:12px;line-height:1.6}
.am-governance li+li::before{content:'·';position:relative;left:-5px}
.am-stores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.am-stores>div{border:1px solid #d6d6d6;border-radius:3px;padding:15px 10px;background:white;min-width:0}
.am-stores .am-icon{margin-bottom:13px;width:23px;height:23px}
.am-stores strong{display:block;font-size:15px;font-weight:500;line-height:1.5;letter-spacing:-.3px}
.am-stores span{display:block;font:12px/1.7 var(--mono);color:#747474;margin-top:4px;letter-spacing:-.2px}
.am-footer{border-top:1px solid #ddd;margin-top:23px;padding-top:14px;display:flex;justify-content:space-between;gap:16px;font:12px/1.7 var(--mono);color:#757575;letter-spacing:0}
.am-footer>span{display:flex;align-items:center;gap:9px}
.am-footer i{font-style:normal;display:inline-block;width:24px;text-align:center;border-bottom:1px solid #999;font-size:16px;line-height:1}
.am-footer .am-legend-back{border-bottom-style:dashed}
.am-wire{position:absolute;display:block;width:52px;height:1px;background:#9c9c9c;top:50%;pointer-events:none}
.am-wire-source{right:100%}
.am-wire-action,.am-wire-intake{left:100%}
.am-wire-back{background:repeating-linear-gradient(to right,#aaa 0,#aaa 4px,transparent 4px,transparent 7px)}
.am-wire::after{content:'';position:absolute;top:-3px;width:6px;height:6px;border-top:1px solid #888;border-right:1px solid #888}
.am-wire-forward::after{right:1px;transform:rotate(45deg)}
.am-wire-back::after{left:1px;transform:rotate(-135deg)}
.am-wire i{display:block;position:absolute;top:-2px;left:0;width:4px;height:4px;background:#444;border-radius:50%;animation:am-forward 4s linear infinite}
.am-wire-back i{animation-name:am-back;animation-duration:6s;animation-delay:2s}
.am-wire-intake i{animation-delay:1.1s}
.am-wire-action{top:62%}
.am-wire-intake{top:47%}
@keyframes am-forward{0%,15%{left:0;opacity:0}25%,75%{opacity:1}90%,100%{left:calc(100% - 4px);opacity:0}}
@keyframes am-back{0%,15%{left:calc(100% - 4px);opacity:0}25%,75%{opacity:1}90%,100%{left:0;opacity:0}}
.architecture-canvas [data-stack-layer]{transition:box-shadow .25s,border-color .25s}
.architecture-canvas .is-selected{box-shadow:0 0 0 1px #747474}
.architecture-canvas .am-consumers.is-selected{box-shadow:none}
.architecture-canvas .am-consumers.is-selected .am-client{border-color:#747474}
/* The expanded diagram replaces the narrow, generic four-layer stack. */
.architecture--expanded{display:flex;flex-direction:column;gap:30px;margin-top:42px}
.architecture--expanded>.architecture-canvas{width:100%}
.architecture--expanded>.architecture-explainer{display:grid;grid-template-columns:1fr 1fr;gap:0 55px;order:2}
.architecture--expanded .architecture-note{grid-column:1 / -1;margin-top:16px}
.architecture--expanded .architecture-tabs button{padding-block:16px}
.architecture--expanded .layer-details{padding-top:15px;min-height:180px}
/* A legible compact view reflows the same model, rather than shrinking text. */
.architecture-map--compact{padding:19px}
.architecture-map--compact .am-caption{font-size:12px;margin-bottom:16px;gap:10px}
.architecture-map--compact .am-caption-note{font-size:12px;letter-spacing:0}
.architecture-map--compact .am-layout{display:flex;flex-direction:column;gap:18px}
.architecture-map--compact .am-environment>.am-section-label{display:none}
.architecture-map--compact .am-source-list{display:flex;gap:5px;flex-wrap:wrap}
.architecture-map--compact .am-source-list li{min-height:0;padding:5px 8px;gap:5px;background:#fafafa}
.architecture-map--compact .am-source-list .am-icon{width:13px;height:13px}
.architecture-map--compact .am-source-list strong{font-size:12px;letter-spacing:-.2px}
.architecture-map--compact .am-source-list small{display:none}
.architecture-map--compact .am-connection{padding:10px;background:#ececec}
.architecture-map--compact .am-connection>.am-section-label{font-size:12px;margin-bottom:8px}
.architecture-map--compact .am-connection-nodes{height:auto;grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:11px}
.architecture-map--compact .am-node{padding:11px;min-height:86px}
.architecture-map--compact .am-node>.am-icon{width:18px;height:18px;margin-bottom:8px}
.architecture-map--compact .am-node h4{font-size:15px;line-height:1.4;letter-spacing:-.3px}
.architecture-map--compact .am-node h4 span{font-size:14px;line-height:1.4;margin:0}
.architecture-map--compact .am-node p{display:none}
.architecture-map--compact .am-connector-link{display:none}
.architecture-map--compact .am-wire{display:none}
.architecture-map--compact .am-connection::before{content:'↓';position:absolute;left:calc(50% - 4px);top:-19px;font:18px/1 var(--sans);color:#999}
.architecture-map--compact .am-connection{position:relative}
.architecture-map--compact .am-platform{position:relative}
.architecture-map--compact .am-platform::before{content:'↓';position:absolute;left:75%;top:-18px;font:18px/1 var(--sans);color:#999}
.architecture-map--compact .am-knowledge{order:1;padding:12px;flex:none}
.architecture-map--compact .am-knowledge>.am-section-label{font-size:12px;margin-bottom:9px}
.architecture-map--compact .am-services{gap:6px;order:2;margin-top:9px;grid-template-columns:.9fr 1.1fr}
.architecture-map--compact .am-services>div{padding:8px 9px}
.architecture-map--compact .am-services strong{font-size:13px;line-height:1.4;letter-spacing:-.2px}
.architecture-map--compact .am-services small{font-size:12px;line-height:1.6;margin-top:3px}
.architecture-map--compact .am-engine{margin:0;padding:12px 10px}
.architecture-map--compact .am-engine h4{font-size:19px;letter-spacing:-.4px}
.architecture-map--compact .am-governance{font-size:12px;margin:6px 0 13px;gap:3px 7px}
.architecture-map--compact .am-governance li+li::before{left:-3px}
.architecture-map--compact .am-stores{gap:6px}
.architecture-map--compact .am-stores>div{padding:10px 8px}
.architecture-map--compact .am-stores .am-icon{width:19px;height:19px;margin-bottom:7px}
.architecture-map--compact .am-stores strong{font-size:13px;line-height:1.5;letter-spacing:-.25px}
.architecture-map--compact .am-stores span{font-size:12px;line-height:1.5;letter-spacing:-.2px}
.architecture-map--compact .am-retrieval-link{order:2;height:24px}
.architecture-map--compact .am-retrieval-link::after{top:5px;font-size:17px}
.architecture-map--compact .am-retrieval-link span{font-size:12px;left:81px;max-width:140px}
.architecture-map--compact .am-agentic{order:3;margin:0;min-height:60px;padding:10px 14px}
.architecture-map--compact .am-agentic span{font-size:12px;margin-bottom:4px}
.architecture-map--compact .am-agentic h4{font-size:19px}
.architecture-map--compact .am-agentic p{font-size:12px}
.architecture-map--compact .am-consumers{order:4;margin-top:13px;gap:6px}
.architecture-map--compact .am-client{padding:10px 4px}
.architecture-map--compact .am-client::after{bottom:100%;height:14px}
.architecture-map--compact .am-client .am-icon{width:18px;height:18px;margin-bottom:6px}
.architecture-map--compact .am-client strong{font-size:12px;letter-spacing:-.25px;line-height:1.5}
.architecture-map--compact .am-client small{font-size:12px;line-height:1.6;margin-top:3px}
.architecture-map--compact .am-footer{font-size:12px;margin-top:15px;padding-top:10px;gap:10px;flex-wrap:wrap}
.architecture-map--compact .am-footer>span{gap:6px}
.architecture-map--compact .am-footer i{width:16px;font-size:13px}
.hero-visual.architecture-canvas{width:100%;margin:0}
.hero:has(.architecture-canvas){gap:36px;padding-block:46px}
.provider-boundary>.architecture-canvas .architecture-map{border:0;padding:0;background:transparent}
.provider-boundary>.architecture-canvas .am-caption{display:none}
@media(max-width:1100px){.am-layout{grid-template-columns:135px 195px minmax(0,1fr);gap:25px}.architecture-map:not(.architecture-map--compact){padding:20px}.am-wire{width:39px}.am-services strong{font-size:13px}.am-client strong{font-size:12px}.am-engine h4{font-size:20px}.am-stores strong{font-size:13px}.am-stores span{font-size:12px}.am-node h4{font-size:18px}.am-node h4 span{font-size:17px}.hero:has(.architecture-canvas){gap:24px}}
@media(max-width:850px){.am-layout{grid-template-columns:115px 160px minmax(0,1fr);gap:19px}.am-source-list li{padding:8px;gap:7px}.am-source-list strong{font-size:12px}.am-source-list small{font-size:12px}.am-source-list .am-icon{width:16px;height:16px}.am-connection{padding:10px}.architecture-map .am-connection>.am-section-label{font-size:12px;letter-spacing:0}.am-node{padding:15px 10px}.am-node h4{font-size:15px}.am-node h4 span{font-size:15px}.am-node p{font-size:12px}.am-wire{width:30px}.am-client{padding:13px 3px}.am-client strong{font-size:12px}.am-client small{font-size:12px}.am-agentic{padding:12px;gap:8px}.am-agentic h4{font-size:18px}.am-agentic p{font-size:12px}.am-knowledge{padding:10px}.am-services{gap:5px}.am-services>div{padding:9px 7px}.am-services strong{font-size:12px}.am-services small{font-size:12px}.am-engine{padding:12px 9px}.am-engine h4{font-size:17px}.am-governance{font-size:12px;gap:4px 7px}.am-stores{gap:5px}.am-stores>div{padding:11px 7px}.am-stores strong{font-size:12px}.am-stores span{font-size:12px}.am-retrieval-link span{font-size:12px;left:74px;max-width:126px}.am-footer{font-size:12px}.architecture--expanded>.architecture-explainer{gap:0 30px}.architecture-map--compact .am-caption-note{display:none}.architecture-map--compact{padding:14px}.architecture-map--compact .am-source-list strong{font-size:12px}.architecture-map--compact .am-source-list li{padding:4px 6px}.architecture-map--compact .am-agentic{gap:7px}.architecture-map--compact .am-agentic p{font-size:12px}.architecture-map--compact .am-services strong{font-size:12px}.architecture-map--compact .am-client strong{font-size:12px}.architecture-map--compact .am-retrieval-link span{display:none}}
@media(max-width:650px){.hero:has(.architecture-canvas){gap:32px;padding-block:45px 25px}.architecture--expanded{margin-top:30px;gap:26px}.architecture--expanded>.architecture-explainer{display:block}.architecture--expanded .layer-details{padding-top:22px;min-height:0}.architecture--expanded .architecture-note{margin-top:22px}.architecture-map--compact{padding:16px}.architecture-map--compact .am-caption-note{display:block}.architecture-map--compact .am-source-list strong{font-size:12px}.architecture-map--compact .am-source-list li{padding:5px 7px}.architecture-map--compact .am-services strong{font-size:13px}.architecture-map--compact .am-client strong{font-size:12px}.architecture-map--compact .am-agentic p{font-size:12px}.architecture-map--compact .am-caption{font-size:12px}.architecture-map--compact .am-caption-note{font-size:12px}.architecture-map--compact .am-footer{font-size:12px}}
@media(prefers-reduced-motion:reduce){html:not(.motion-enabled) .am-wire i{animation:none}}
.architecture-map--compact:not(.architecture-map--summary) .am-source-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.architecture-map--compact:not(.architecture-map--summary) .am-source-list li{padding:8px}
.architecture-map--compact:not(.architecture-map--summary) .am-source-list small{display:block;font-size:12px;line-height:1.6}
.architecture-map--compact:not(.architecture-map--summary) .am-source-list strong{font-size:13px}

/* Larger labels require wider columns and an earlier switch to the compact flow. */
.am-layout{grid-template-columns:185px 245px minmax(0,1fr);gap:32px}.am-caption{flex-wrap:wrap}.am-caption-note{white-space:normal}.am-source-list li>span{min-width:0}.am-connection{display:flex;flex-direction:column}.architecture-map .am-connection>.am-section-label{white-space:normal}.am-connection-nodes{height:auto;flex:1;grid-template-rows:1fr 46px 1fr}.am-agentic{flex-wrap:wrap}.am-agentic p{white-space:normal}.am-footer{flex-wrap:wrap}.am-retrieval-link span{display:none}.am-client strong,.am-services strong,.am-stores strong{overflow-wrap:anywhere}.am-stores{gap:8px}.am-stores>div{padding-inline:8px}
@media(min-width:1001px) and (max-width:1200px){.am-layout{grid-template-columns:160px 210px minmax(0,1fr);gap:24px}.am-consumers{grid-template-columns:repeat(2,minmax(0,1fr))}.am-client::after{display:none}.am-client{padding:12px}.am-stores{grid-template-columns:1fr}.am-stores>div{display:grid;grid-template-columns:28px 1fr;gap:2px 8px}.am-stores .am-icon{grid-row:1/3;margin:0;align-self:center}}
.architecture-map--compact .am-connection-nodes{grid-template-rows:auto}.architecture-map--compact .am-consumers{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.architecture-map--compact .am-client::after{display:none}.architecture-map--compact .am-client strong{font-size:15px}.architecture-map--compact .am-client small{font-size:12px}.architecture-map--compact .am-node h4,.architecture-map--compact .am-node h4 span{font-size:16px}.architecture-map--compact .am-node{padding:14px}.architecture-map--compact .am-services strong{font-size:15px}.architecture-map--compact .am-services small{font-size:12px}.architecture-map--compact .am-services{grid-template-columns:1fr 1fr}.architecture-map--compact .am-agentic h4{font-size:21px}.architecture-map--compact .am-agentic p{font-size:14px}.architecture-map--compact .am-source-list strong,.architecture-map--compact:not(.architecture-map--summary) .am-source-list strong{font-size:14px}.architecture-map--compact .am-source-list small,.architecture-map--compact:not(.architecture-map--summary) .am-source-list small{font-size:12px}.architecture-map--compact .am-engine h4{font-size:22px}.architecture-map--compact .am-stores strong{font-size:14px}.architecture-map--compact .am-stores span{font-size:12px}.architecture-map--compact .am-governance{font-size:12px;gap:6px 10px}.architecture-map--compact .am-caption,.architecture-map--compact .am-caption-note,.architecture-map--compact .am-footer{font-size:12px}.architecture-map--compact .am-caption-note{display:block}.architecture-map--compact .am-agentic span{font-size:11px}.architecture-map--compact .am-connection>.am-section-label,.architecture-map--compact .am-knowledge>.am-section-label{font-size:12px}.architecture--expanded .layer-details{min-height:0}
@media(max-width:650px){.architecture-map--compact .am-stores{grid-template-columns:1fr}.architecture-map--compact .am-stores>div{display:grid;grid-template-columns:28px 1fr;gap:2px 8px;padding:12px}.architecture-map--compact .am-stores .am-icon{grid-row:1/3;margin:0;align-self:center}.architecture-map--compact .am-stores strong{font-size:16px}.architecture-map--compact .am-source-list li{align-items:flex-start}.architecture-map--compact .am-source-list .am-icon{margin-top:3px;flex:none}.architecture-map--compact .am-connection-nodes{grid-template-columns:1fr}.architecture-map--compact .am-node h4 span{display:inline}.architecture-map--compact .am-node h4 span::before{content:' '}.architecture-map--compact .am-services{grid-template-columns:1fr}.architecture-map--compact .am-agentic{gap:8px;padding:15px}.architecture--expanded>.architecture-explainer{display:block}.architecture-map--compact .am-client{padding:13px 8px}.architecture-map--compact .am-caption-note{font-size:11px}}
