:root { --md-text-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --md-code-font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.md-typeset { font-size: .85rem; line-height: 1.7; }
.md-typeset h1 { color: var(--md-default-fg-color); font-weight: 700; letter-spacing: -.035em; }
.md-header { border-bottom: 3px solid #14b8a6; }
.md-typeset .md-button { border-radius: .2rem; margin: .3rem .5rem .3rem 0; }
.md-typeset a:focus-visible { outline: 2px solid #00796b; outline-offset: 3px; }
/* Keep field names legible; Material's table wrapper provides horizontal scrolling. */
.md-typeset table:not([class]) code { white-space: nowrap; word-break: normal; overflow-wrap: normal; }

/* Real-text diagrams reflow, zoom and print without a JavaScript renderer. */
.md-typeset .micros-figure {
  margin: 1.5em 0;
  padding: 1.1rem;
  max-width: none;
  border: 1px solid #d9e3e1;
  border-radius: .45rem;
  background: #f7faf9;
  color: #253d39;
  text-align: left;
  font-size: .76rem;
  line-height: 1.5;
}
.md-typeset .micros-figure figcaption {
  margin: .9rem 0 0;
  max-width: none;
  color: #526560;
  font-size: .7rem;
  font-style: normal;
  line-height: 1.55;
}
.diagram-label {
  margin-bottom: .8rem;
  color: #526560;
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.diagram-node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  min-width: 0;
  padding: .8rem;
  border: 1px solid #cbd9d5;
  border-radius: .3rem;
  background: #fff;
}
.md-typeset .micros-figure small { color: #526560; font-size: .67rem; line-height: 1.5; opacity: 1; }
.diagram-node small { margin-top: .25rem; color: #526560; }
.diagram-base { background: #e4f2ee; border-color: #8fb8aa; }
.diagram-application { border-style: dashed; border-color: #718f85; }
.overview-model, .system-runtime {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.6rem minmax(0, 1fr);
  align-items: stretch;
}
.diagram-connector { align-self: center; text-align: center; font-size: 1.2rem; }
.system-tools { text-align: center; }
.system-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin: 0 .8rem;
}
.system-routes > div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .65rem .3rem;
  border-left: 1px solid #a4b8b1;
  border-right: 1px solid #a4b8b1;
  text-align: center;
}
.system-routes span { color: #526560; font-size: .67rem; }
.system-entry { margin: .15rem 0 .7rem; text-align: center; font-size: .67rem; }
.system-device { padding: .8rem; border: 1px solid #a4b8b1; border-radius: .3rem; }
.system-hardware { margin-top: .8rem; padding-top: .6rem; border-top: 1px solid #cbd9d5; font-size: .67rem; }
.md-typeset ol.update-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.md-typeset ol.update-timeline li {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: 0;
  padding: 0;
}
.update-timeline li > strong { font-size: .72rem; }
.update-timeline small { color: #526560; }
.update-state {
  display: flex;
  align-items: center;
  min-height: 3.3rem;
  padding: .5rem;
  border: 1px solid #8fb8aa;
  border-radius: .25rem;
  background: #e4f2ee;
  font-size: .68rem;
  font-weight: 600;
}
.update-paused { background: #fff0d7; border: 1px dashed #ad7830; color: #624515; }
.update-trial { background: #edf0fa; border-color: #a6b1d3; color: #384d83; }
.management-lane {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-top: .9rem;
  padding: .6rem .8rem;
  border-left: 3px solid #367b66;
  background: #e4f2ee;
  font-size: .7rem;
}
.management-lane span { font-size: .65rem; }
.base-partitions, .service-banks { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.base-partitions { text-align: center; }
.storage-connection { padding: .65rem 0; font-size: .68rem; text-align: center; }
.shared-store { padding: .8rem; border: 1px solid #a4b8b1; border-radius: .3rem; background: #fff; }
.service-banks { margin: .5rem 0; }
.service-banks span { padding: .45rem; border: 1px dashed #718f85; border-radius: .2rem; text-align: center; }

@media (max-width: 600px) {
  .md-typeset .micros-figure { padding: .8rem; }
  .overview-model, .system-runtime { grid-template-columns: 1fr; }
  .diagram-connector { transform: rotate(90deg); line-height: 1.4; }
  .system-routes { gap: .5rem; margin: 0; }
  .system-routes strong { font-size: .68rem; }
  .system-device { padding: .6rem; }
  .md-typeset ol.update-timeline { grid-template-columns: 1fr; gap: .9rem; }
  .md-typeset ol.update-timeline li {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    column-gap: .6rem;
    row-gap: .3rem;
    padding-left: .6rem;
    border-left: 2px solid #a4b8b1;
  }
  .update-timeline li > strong { align-self: center; }
  .update-state { min-height: 2.5rem; }
  .update-timeline small { grid-column: 2; }
}
@media print {
  .micros-figure { break-inside: avoid; }
}

/* Architecture pages only: keep Home, Build and other documentation unchanged. */
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) { max-width: 860px; margin-inline: auto; color: #263449; font-size: .8rem; line-height: 1.75; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) > p { max-width: 68ch; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) h1 { font-size: 2rem; font-weight: 700; line-height: 1.15; letter-spacing: -.04em; color: #263449; margin: .6rem 0 1rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) h2 { border-top: 1px solid #e8ebf2; padding-top: 1.7rem; margin-top: 2rem; font-size: 1.3rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.35; scroll-margin-top: 5rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-eyebrow { color: #5965a0; font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-intro { color: #58677c; font-size: .9rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-index { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .65rem; font-weight: 600; margin: 1.2rem 0; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) figure { display: block; max-width: none; width: 100%; margin: 1.4rem 0; padding: 1.1rem; border: 1px solid #e3e8f0; border-radius: .65rem; text-align: left; background: #fbfcfe; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) figure figcaption { max-width: none; font-style: normal; font-size: .64rem; color: #58677c; margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid #e3e8f0; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-diagram-label { font-size: .58rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: #58677c; margin-bottom: .65rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-workers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-workers > div { padding: .7rem; background: #f0f1fd; border-top: 2px solid #777fcd; border-radius: .3rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) figure strong { font-size: .75rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-workers span, .md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) figure small, .md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-flow span { display: block; font-size: .62rem; color: #58677c; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-workers small { margin-top: .6rem; color: #555cac; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-connector { text-align: center; font-size: .65rem; color: #5965a0; padding: .65rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-base { background: #eef8f6; border: 1px solid #c9e4df; border-radius: .4rem; padding: .8rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-base > p { margin: .2rem 0 .7rem; font-size: .68rem; color: #28675f; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-foundation { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding-top: .65rem; border-top: 1px solid #c9e4df; font-size: .7rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-hardware { text-align: center; font-size: .7rem; font-weight: 600; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: .6rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-flow b { color: #5965a0; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-flow figcaption { grid-column: 1 / -1; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-sequence { display: flex; flex-wrap: wrap; gap: .5rem .8rem; color: #087d6d; padding: .8rem 0; border-block: 1px solid #e3e8f0; font-size: .72rem; font-weight: 600; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-limits { border-left: 3px solid #7a81cb; padding-left: 1rem; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-limits > div { margin: 1rem 0; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-limits p { margin-top: .25rem; max-width: 65ch; color: #58677c; }
.md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) table:not([class]) { font-size: .68rem; }
@media (max-width: 600px) {
  .md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) h1 { font-size: 1.7rem; }
  .md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) h2 { font-size: 1.15rem; }
  .md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-workers, .md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-foundation { grid-template-columns: 1fr; }
  .md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-flow { grid-template-columns: 1fr; }
  .md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) .arch-flow b { transform: rotate(90deg); justify-self: center; }
  .md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) table:not([class]) { min-width: 0; }
}
@media (max-width: 600px) {
  .md-typeset:has(#architecture-overview, .architecture-chapter, .docs-editorial) { margin-inline: .8rem; }
}

.md-typeset:has(.architecture-chapter) .arch-index { padding-block: .5rem; border-bottom: 1px solid #e8ebf2; }
.md-typeset:has(.architecture-chapter) .arch-tradeoff { border-left: 3px solid #7a81cb; padding-left: 1rem; color: #58677c; }
.md-typeset:has(.architecture-chapter) pre { border: 1px solid #e3e8f0; border-radius: .4rem; overflow: hidden; }

/* Shared editorial treatment for task guides and references. */
.md-typeset:has(.docs-editorial) .docs-section-index { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin: 1.5rem 0; font-size: .66rem; line-height: 1.6; }
.md-typeset:has(.docs-editorial) .docs-section-index a { flex: 0 1 auto; max-width: 100%; font-weight: 600; }
.md-typeset:has(.docs-editorial) .docs-section-index span { color: #66738a; font-size: .6rem; margin-right: .2rem; }
.md-typeset:has(.docs-editorial) h3 { font-weight: 650; color: #33435b; font-size: 1rem; margin-top: 1.6rem; }
.md-typeset:has(.docs-editorial) pre { border: 1px solid #e3e8f0; border-radius: .4rem; }
.md-typeset:has(.docs-editorial) pre > code { font-size: .68rem; line-height: 1.7; }
.md-typeset:has(.docs-editorial) table:not([class]) th { background: #f2f4fa; color: #33435b; }
.md-typeset:has(.docs-editorial) table:not([class]) td { vertical-align: top; }
.md-typeset:has(.docs-editorial) .admonition { box-shadow: none; border-radius: .4rem; }
.md-typeset:has(.docs-editorial) > ul, .md-typeset:has(.docs-editorial) > ol { max-width: 70ch; }
@media (max-width: 600px) {
 .md-typeset:has(.docs-editorial) .docs-section-index { gap: .6rem; flex-direction: column; }
}
