/* Shared academic editorial system for public Ello and Glial documentation. */
body.ello-doc {
  --ello-paper: #f7f5ef;
  --ello-sheet: rgba(255, 255, 252, 0.96);
  --ello-ink: #202a36;
  --ello-muted: #5b6672;
  --ello-navy: #18324a;
  --ello-navy-2: #e9eef1;
  --ello-navy-3: #dce5e9;
  --ello-teal: #315f68;
  --ello-blue: #345675;
  --ello-line: #d3d7d7;
  --ello-wrap: 1120px;
  --ello-gutter: clamp(18px, 3.2vw, 36px);
  color-scheme: light;
  color: var(--ello-ink);
  background-color: var(--ello-paper) !important;
  background-image:
    linear-gradient(rgba(247, 245, 239, 0.95), rgba(247, 245, 239, 0.97)),
    url("/docs/ello-wave-background.webp") !important;
  background-position: center, center top;
  background-size: cover, min(100%, 1500px) auto;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, scroll;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.72;
}

.ello-doc *,
.ello-doc *::before,
.ello-doc *::after {
  box-sizing: border-box;
}

.ello-doc header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #cbd1d3;
  background: rgba(250, 249, 245, 0.96);
  box-shadow: 0 3px 12px rgba(28, 43, 56, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ello-doc .ello-head-inner {
  max-width: calc(var(--ello-wrap) + var(--ello-gutter) * 2);
}

.ello-doc .ello-doc-brand,
.ello-doc .ello-doc-brand:hover {
  color: var(--ello-navy) !important;
}

.ello-doc .ello-doc-brand small {
  color: #64737d;
}

.ello-doc .ello-brand-mark {
  border-color: rgba(49, 95, 104, 0.38);
  background: #eef2f0;
  box-shadow: none;
}

.ello-doc .ello-brand-mark svg {
  stroke: var(--ello-teal);
}

.ello-doc nav.pub {
  color: var(--ello-muted);
  flex-wrap: nowrap;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.ello-doc nav.pub a,
.ello-doc nav.pub a[aria-current="page"] {
  color: var(--ello-navy);
}

.ello-doc nav.pub a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--ello-teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

body.ello-doc header.site > nav.pub {
  max-width: var(--ello-wrap);
  flex-wrap: wrap;
  justify-content: center;
  overflow: visible;
  padding: 14px var(--ello-gutter);
  white-space: normal;
}

.ello-doc a {
  color: #315b70;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.ello-doc a:hover {
  color: #17384c;
}

.ello-doc a:focus-visible,
.ello-doc button:focus-visible {
  outline: 3px solid #447883;
  outline-offset: 3px;
}

.ello-doc .ello-head-cta,
.ello-doc .cta {
  min-height: 42px;
  border: 1px solid var(--ello-navy);
  border-radius: 4px;
  background: var(--ello-navy);
  box-shadow: none;
  color: #fff !important;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.015em;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ello-doc .ello-head-cta:hover,
.ello-doc .cta:hover {
  transform: none;
  border-color: #315f68;
  background: #315f68;
  box-shadow: none;
}

.ello-doc .cta.alt {
  border-color: #aab6ba;
  background: transparent;
  color: var(--ello-navy) !important;
}

.ello-doc .cta.alt:hover {
  background: #edf1ef;
}

.ello-doc main#main {
  width: min(100% - 28px, calc(var(--ello-wrap) + var(--ello-gutter) * 2));
  max-width: calc(var(--ello-wrap) + var(--ello-gutter) * 2);
  margin: 26px auto 0;
  padding: clamp(24px, 4.4vw, 58px) clamp(20px, 5vw, 68px) 72px;
  border: 1px solid #deddd6;
  border-radius: 2px;
  background: var(--ello-sheet);
  box-shadow: 0 12px 36px rgba(31, 45, 56, 0.08);
}

.ello-doc .crumbs {
  margin: 0 0 30px;
  color: #68737c;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 12px;
}

.ello-doc .eyebrow {
  margin: 0 0 14px;
  color: #496b70;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: none;
}

.ello-doc .eyebrow::before {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
  background: #557d80;
  box-shadow: none;
}

.ello-doc h1,
.ello-doc h2,
.ello-doc h3,
.ello-doc .business-flow b {
  color: var(--ello-navy);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

.ello-doc h1 {
  max-width: 24ch;
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
}

.ello-doc .doc-hero h1,
.ello-doc .doc-hero--overview h1,
.ello-doc .doc-hero--business h1 {
  max-width: 23ch;
  font-size: clamp(2.25rem, 4vw, 3.2rem);
}

.ello-doc h2 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: var(--ello-navy);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.24;
}

.ello-doc h3 {
  margin: 0 0 8px;
  color: #294b62;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.32;
}

.ello-doc p,
.ello-doc li,
.ello-doc dd {
  color: #303a43;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.72;
}

.ello-doc main#main > h2,
.ello-doc main#main > section:not(.doc-hero) > h2 {
  scroll-margin-top: 100px;
  margin: 54px 0 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--ello-line);
}

.ello-doc .doc-hero + h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border: 0 !important;
}

.ello-doc .doc-hero {
  min-height: 0;
  margin: 0 calc(clamp(20px, 5vw, 68px) * -1) 46px;
  padding: 24px clamp(20px, 5vw, 68px) 40px;
  border-bottom: 1px solid var(--ello-line);
  background: linear-gradient(135deg, rgba(230, 237, 238, 0.66), rgba(250, 249, 245, 0.35));
}

.ello-doc .doc-hero--business {
  padding-top: 30px;
}

.ello-doc .ello-title-mark {
  border: 1px solid #9cb4b7;
  border-radius: 50%;
  background: #f2f5f1;
  box-shadow: none;
}

.ello-doc .ello-title-mark .ring {
  stroke: #91aaae;
}

.ello-doc .ello-title-mark .wave {
  stroke: #3d6f78;
  filter: none;
}

.ello-doc .bluf {
  max-width: 78ch;
  margin: 22px 0;
  padding: 0 0 0 18px;
  border: 0;
  border-left: 2px solid #577a80;
  border-radius: 0;
  background: transparent;
  color: #303a43;
  font-size: 17px;
  line-height: 1.72;
}

.ello-doc .bluf strong {
  color: var(--ello-navy);
}

.ello-doc .ello-hero-visual {
  border: 1px solid #d0d8d8;
  border-radius: 4px;
  background: #fffefa;
  box-shadow: 0 8px 20px rgba(31, 45, 56, 0.08);
}

.ello-doc .ello-hero-visual img {
  border-radius: 2px;
}

.ello-doc .ello-hero-visual figcaption,
.ello-doc .ello-hero-visual figcaption strong {
  color: #495965;
  font-family: Inter, "Segoe UI", sans-serif;
}

.ello-doc .ello-hero-visual figcaption {
  font-size: 12px;
}

.ello-doc main#main > p:not(.eyebrow):not(.bluf):not(.doc-hero-actions) {
  max-width: 82ch;
}

.ello-doc .grid {
  gap: 14px;
}

.ello-doc .card {
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid #d8dddc;
  border-radius: 3px;
  background: rgba(255, 255, 252, 0.82);
  box-shadow: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.ello-doc .card:hover {
  transform: none;
  border-color: #91a9ab;
  background: #fffefa;
  box-shadow: none;
}

.ello-doc .card h3 {
  color: #294b62;
}

.ello-doc .card p,
.ello-doc .card ul {
  color: #45515b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.64;
}

.ello-doc .note,
.ello-doc .bluf {
  color: #34414b;
}

.ello-doc .note {
  margin: 22px 0;
  padding: 15px 18px;
  border: 1px solid #cbd7d8;
  border-left: 3px solid #557981;
  border-radius: 2px;
  background: #eef2f0;
}

.ello-doc .note strong {
  color: #203d50;
}

.ello-doc .tag {
  border-color: #c0cacc;
  border-radius: 2px;
  color: #52616b;
  font-family: Inter, "Segoe UI", sans-serif;
  letter-spacing: 0.07em;
}

.ello-doc .tag.now {
  border-color: #63827d;
  background: #eaf1ed;
  color: #315d51;
}

.ello-doc .tag.future {
  border-color: #9b8056;
  background: #f4f0e7;
  color: #71582f;
}

.ello-doc code {
  color: #315f68;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.ello-doc .tablewrap {
  margin: 20px 0 28px;
  overflow: auto;
  border: 1px solid #d1d8d8;
  border-radius: 2px;
  background: #fffefa;
  box-shadow: none;
}

.ello-doc table {
  border-collapse: collapse;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.55;
}

.ello-doc caption {
  padding: 12px 14px;
  color: #53616b;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 12px;
  font-style: italic;
  text-align: left;
}

.ello-doc th,
.ello-doc td {
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #d9dedd;
  text-align: left;
  vertical-align: top;
}

.ello-doc thead th {
  background: #e8edef;
  color: #233f54;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.ello-doc tbody th {
  background: transparent;
  color: #294b62;
  font-weight: 700;
}

.ello-doc tbody tr:nth-child(even) {
  background: #f5f6f3;
}

.ello-doc td {
  color: #3c4750;
}

.ello-doc .language-grid li {
  border: 1px solid #d7dddc;
  border-radius: 2px;
  background: #f4f5f1;
  color: #2c3a44;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 13px;
}

.ello-doc details {
  margin: 9px 0;
  padding: 13px 16px;
  border: 1px solid #d5dcdb;
  border-radius: 2px;
  background: #fbfaf6;
}

.ello-doc summary {
  color: #24465b;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 650;
}

.ello-doc details p {
  margin: 12px 0 0;
  color: #3f4b54;
}

.ello-doc footer {
  max-width: var(--ello-wrap);
  margin: 0 auto;
  padding: 22px var(--ello-gutter) 30px;
  border-top: 1px solid #cbd1d1;
  background: transparent;
  color: #5b6670;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 12px;
}

.ello-doc footer p {
  max-width: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

/* Business pathway and shopping simulation remain animated, with quieter figure styling. */
.ello-doc .business-journey,
.shopping-blueprint .hero-sim,
.shopping-blueprint .stage-sim,
.shopping-blueprint .state-card,
.shopping-blueprint .status-defs,
.shopping-blueprint .criteria article,
.shopping-blueprint .closing {
  border: 1px solid #cdd6d6;
  border-radius: 3px;
  background: #f7f8f5;
  box-shadow: 0 4px 14px rgba(35, 53, 64, 0.06);
}

.ello-doc .business-flow::before {
  background: linear-gradient(180deg, #557981, #9daeb0, #d3d9d7);
}

.ello-doc .business-flow li > span {
  border: 1px solid #8da5a7;
  border-radius: 2px;
  background: #eef2f0;
  color: #315f68;
}

.ello-doc .business-flow b {
  color: #233f54;
}

.ello-doc .business-flow small,
.ello-doc .business-journey-note {
  color: #53616b !important;
  font-family: Inter, "Segoe UI", sans-serif;
}

.shopping-blueprint .status-banner {
  border: 1px solid #d8c8a8;
  border-left: 3px solid #8c6c35;
  border-radius: 2px;
  background: #f6f1e7;
  box-shadow: none;
}

.shopping-blueprint .status-pip {
  background: #8c6c35;
  box-shadow: none;
}

.shopping-blueprint .status-banner strong,
.shopping-blueprint .status-banner p {
  color: #4b4030;
}

.shopping-blueprint h1 em {
  background: none;
  color: #315f68;
  font-style: italic;
}

.ello-doc.shopping-blueprint .doc-hero .dek {
  color: #45515b;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.65;
}

.shopping-blueprint .scope-note,
.shopping-blueprint .sim-caption,
.shopping-blueprint .accept-note,
.shopping-blueprint .status-defs dd,
.shopping-blueprint .privacy-list {
  color: #46535c;
}

.shopping-blueprint .sim-key,
.shopping-blueprint .status-defs dt,
.shopping-blueprint .layer-legend b,
.shopping-blueprint .criteria article > span {
  color: #3b6269;
}

.shopping-blueprint .sim-key i,
.shopping-blueprint .moving-key {
  background: #557981;
  box-shadow: none;
}

.shopping-blueprint .orbit {
  stroke: #66868d;
}

.shopping-blueprint .orbit-trace,
.shopping-blueprint .voice-wave,
.shopping-blueprint .guide {
  stroke: #557981;
  filter: none;
}

.shopping-blueprint .signal,
.shopping-blueprint .guide-dot {
  fill: #557981;
  filter: none;
}

.shopping-blueprint .signal-b,
.shopping-blueprint .lilac-dot {
  fill: #9a7755;
}

.shopping-blueprint .label,
.shopping-blueprint .side-caption,
.shopping-blueprint .core-label,
.shopping-blueprint .side-copy,
.shopping-blueprint .orbit-figure figcaption {
  fill: #344955;
  color: #52616a;
}

.shopping-blueprint .label-in,
.shopping-blueprint .label-mid,
.shopping-blueprint .label-out,
.shopping-blueprint .accent-lilac {
  fill: #476b70;
}

.shopping-blueprint .core {
  fill: #e6edeb;
  stroke: #68878a;
  filter: none;
}

.shopping-blueprint .sim-head h2,
.shopping-blueprint .state-card h3,
.shopping-blueprint .criteria h3,
.shopping-blueprint .status-defs h3,
.shopping-blueprint .closing h2 {
  color: #233f54;
}

.shopping-blueprint .layer-legend p,
.shopping-blueprint .stage-track li {
  border-color: #d4dcda;
  border-radius: 2px;
  background: #fffefa;
}

.shopping-blueprint .layer-legend span,
.shopping-blueprint .stage-track li b,
.shopping-blueprint .stage-track li small,
.shopping-blueprint .handoff li,
.shopping-blueprint .handoff li b,
.shopping-blueprint .transaction-status,
.shopping-blueprint .transaction-status b,
.shopping-blueprint .callout,
.shopping-blueprint .callout strong,
.shopping-blueprint .callout em,
.shopping-blueprint .fail-rule,
.shopping-blueprint .fail-rule b,
.shopping-blueprint .state-card ul,
.shopping-blueprint .criteria p,
.shopping-blueprint .closing > p:not(.eyebrow) {
  color: #3f4e57;
}

.shopping-blueprint .blueprint-table thead th {
  background: #e8edef;
  color: #233f54;
}

.shopping-blueprint .blueprint-table tbody th {
  background: #f0f3f0;
  color: #315f68;
}

.shopping-blueprint .blueprint-table td {
  color: #3c4750;
}

.shopping-blueprint .stage-track li span,
.shopping-blueprint .function-track li span {
  color: #315f68;
}

.shopping-blueprint .stage-bridge {
  color: #5b6871;
}

.shopping-blueprint .stage-bridge i {
  background: #557981;
  box-shadow: none;
}

.shopping-blueprint .stage-bridge > span {
  background: #f7f8f5;
}

.shopping-blueprint .callout,
.shopping-blueprint .fail-rule,
.shopping-blueprint .transaction-status {
  border: 1px solid #cbd7d5;
  border-left: 3px solid #557981;
  border-radius: 2px;
  background: #eef2f0;
}

.shopping-blueprint .fail-rule {
  border-color: #decbb4;
  border-left-color: #977244;
  background: #f6f1e8;
}

.shopping-blueprint .status-label,
.shopping-blueprint .proposed .state-label {
  color: #456b6e;
}

.shopping-blueprint .state-card.current,
.shopping-blueprint .state-card.proposed {
  border-top: 2px solid #789294;
}

.shopping-blueprint .closing {
  padding: 28px clamp(20px, 4vw, 44px);
}

.shopping-blueprint .related a {
  color: #315b70;
}

@media (max-width: 900px) {
  .ello-doc .doc-hero,
  .ello-doc .doc-hero--business,
  .shopping-blueprint .doc-hero--shopping {
    grid-template-columns: 1fr;
  }

  .ello-doc .doc-hero {
    gap: 24px;
  }
}

@media (max-width: 720px) {
  body.ello-doc {
    font-size: 16px;
  }

  .ello-doc main#main {
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 24px 18px 48px;
  }

  .ello-doc .doc-hero {
    margin-right: -18px;
    margin-left: -18px;
    padding: 22px 18px 28px;
  }

  .ello-doc .doc-hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .ello-doc p,
  .ello-doc li,
  .ello-doc dd {
    font-size: 15px;
  }

  .ello-doc main#main > h2,
  .ello-doc main#main > section:not(.doc-hero) > h2 {
    margin-top: 40px;
  }

  .ello-doc .card {
    padding: 17px;
  }

  .ello-doc table {
    min-width: 680px;
  }
}

@media print {
  body.ello-doc {
    background: #fff !important;
    color: #111;
    font-size: 11pt;
  }

  .ello-doc header.site,
  .ello-doc .doc-hero-actions,
  .ello-doc .ello-head-cta,
  .ello-doc footer {
    display: none !important;
  }

  .ello-doc main#main {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .ello-doc h1,
  .ello-doc h2,
  .ello-doc h3,
  .ello-doc p,
  .ello-doc li,
  .ello-doc td,
  .ello-doc th {
    color: #111 !important;
  }

  .ello-doc .card,
  .ello-doc .note,
  .ello-doc .tablewrap,
  .shopping-blueprint .hero-sim,
  .shopping-blueprint .stage-sim {
    break-inside: avoid;
    box-shadow: none;
  }
}
