/* EVE uses the portfolio's restrained palette with layouts for long-form reading. */
:root, html[data-theme="dark"] {
  --eve-important-bg: #1b2433;
  --eve-code-bg: #181d25;
  --eve-note: #98c3b3;
  --eve-note-bg: #17231f;
  --eve-warning: #d5b38b;
  --eve-warning-bg: #26221b;
}
.eve-landing .hero { padding-bottom: 64px; }
.eve-landing h1 { font-size: clamp(3.5rem, 7vw, 5rem); letter-spacing: .04em; font-weight: 550; }
.eve-landing .hero-subtitle { max-width: 740px; }
.eve-landing .section + .section:not(#contact) > .container { border-top: 1px solid var(--border); padding-top: 44px; }
.eve-landing .section { padding-block: 32px; }
.eve-landing .section-header p { max-width: 750px; margin: 16px 0 0; }
.eve-landing .split { grid-template-columns: 1.25fr 1fr; gap: 56px; }
.eve-landing .split > * { min-width: 0; }
.eve-landing .about-card { padding-top: 5px; }
.eve-landing .section h3 { font-size: 17px; font-weight: 500; }
.eve-landing .focus-list li { font-size: 15px; padding-block: 10px; }
.eve-quote { padding: 16px 24px; border-left: 2px solid #829cc5; font-size: clamp(19px, 2.2vw, 25px); font-weight: 400; line-height: 1.55; max-width: 760px; }
.eve-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.eve-landing .split .eve-pillars { grid-template-columns: 1fr; gap: 22px; }
.eve-pillar { padding: 18px 0 0; border: 0; border-top: 1px solid var(--border); background: transparent; border-radius: 0; box-shadow: none; }
.eve-pillar p { font-size: 15px; }
.eve-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.eve-example-card { background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 24px 0 0; gap: 16px; align-items: flex-start; }
.eve-example-quote { border: 0; padding: 0; font-size: 18px; font-weight: 450; }
.eve-example-desc { font-size: 15px; }
.eve-badge { border-radius: 4px; font-size: 12px; font-weight: 500; letter-spacing: .05em; padding: 3px 8px; }
.eve-badge.is-today { color: var(--eve-note); border-color: #3d5b4f; }
.eve-badge.is-building { border-color: #594b38; }
.eve-badge.is-vision { border-style: solid; }
.eve-module-tree { padding: 30px 24px; background: #14181e; border: 1px solid var(--border); border-radius: 8px; }
.eve-module-tree > .eve-flow-step { position: relative; }
.eve-module-tree > .eve-flow-step::after { content: ""; position: absolute; width: 1px; height: 24px; background: #3c4759; top: 100%; left: 50%; }
.eve-module-branches { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; gap: 18px; }
.eve-module-branches::before { top: -24px; left: 12%; right: 12%; background: #3c4759; }
.eve-module-branch { position: relative; background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.eve-module-branch::before { content: ""; position: absolute; width: 1px; height: 24px; background: #3c4759; top: -24px; left: 50%; }
.eve-module-branch h4 { font-size: 12px; letter-spacing: .04em; text-align: center; color: #cad0dc; }
.eve-module-chip-list { flex-direction: column; gap: 6px; }
.eve-module-chip { font-size: 13px; border-radius: 4px; background: #1b2029; padding: 7px 9px; text-align: center; }
.eve-module-chip.is-future { opacity: 1; color: #929bab; }
.eve-code { border-radius: 6px; }
.eve-callout { border-radius: 4px; box-shadow: none; padding: 18px 20px; }
.eve-callout.important { background: #171d27; border-color: #344257; }
.eve-callout.note { background: #17201d; border-color: #344a40; }
.eve-callout.note .eve-callout-title { color: var(--eve-note); }
.eve-callout-title { font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.eve-callout-body p { font-size: 15px; }
.eve-flow.is-long { align-items: stretch; max-width: 760px; margin: 28px 0 0; gap: 0; }
.eve-flow.is-long .eve-flow-step { position: relative; border: 0; border-radius: 0; background: transparent; padding: 11px 0; font-size: 15px; font-weight: 400; gap: 22px; box-shadow: none; }
.eve-flow.is-long .eve-flow-step:not(:last-child)::after { content: ""; position: absolute; top: 37px; bottom: -11px; left: 12px; width: 1px; background: #354153; }
.eve-flow-num, .eve-flow.is-long .eve-flow-step.is-accent .eve-flow-num { background: #1b2433; border: 1px solid #354153; color: #bacdec; font-family: ui-monospace, monospace; font-weight: 400; font-size: 12px; }
.eve-flow-step.is-accent { background: #1c283a; border-color: #3a4f6e; border-radius: 6px; box-shadow: none; font-weight: 500; }
.eve-hub { background: #14181e; border: 1px solid var(--border); border-radius: 8px; padding: 28px; gap: 16px; }
.eve-hub-core { border-radius: 6px; background: #233149; color: #c4d7fb; box-shadow: none; border: 1px solid #405673; padding: 12px 36px; font-weight: 500; }
.eve-quality-tag { border: 0; background: transparent; border-radius: 0; padding: 3px 8px; font-weight: 400; font-size: 13px; }
.eve-hub-connector { width: 1px; height: 20px; background: #40516a; }
.eve-hub-spokes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.eve-hub-spoke { padding: 16px 0 0; background: transparent; border: 0; border-top: 1px solid #354153; border-radius: 0; box-shadow: none; }
.eve-hub-spoke strong { font-weight: 500; font-size: 14px; }
.eve-hub-spoke span { font-size: 13px; }
.eve-machines, .eve-maturity { gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eve-machine-card, .eve-maturity-col, .eve-maturity-col.is-today, .eve-maturity-col.is-vision { padding: 22px 0 0; background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.eve-machine-tag { font-size: 12px; letter-spacing: .03em; margin-top: 6px; }
.eve-machine-card ul, .eve-maturity-col ul { font-size: 15px; gap: 8px; }
.eve-architecture .hero { padding-block: 56px 24px; }
.eve-architecture .hero h1 { max-width: 760px; font-size: clamp(2rem, 4vw, 3rem); }
.eve-architecture .hero-subtitle { max-width: 740px; font-size: 16px; }
.eve-doc-status { font-size: 13px; margin-bottom: 0; }
.container.container-wide { width: min(1360px, 100%); }
.eve-toc { background: transparent; border: 0; border-radius: 0; padding: 0 18px 0 0; box-shadow: none; scrollbar-width: thin; }
.eve-toc a { font-size: 13px; padding: 7px 10px; border-radius: 3px; }
.eve-toc a.is-active { font-weight: 500; background: #1c2533; }
.eve-doc { padding: 0 0 0 36px; background: transparent; border: 0; border-left: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.eve-doc h1 { font-size: 30px; line-height: 1.25; }
.eve-doc h2 { padding-top: 28px; font-size: 25px; margin-top: 48px; }
.eve-doc h3 { font-size: 20px; }
.eve-doc p, .eve-doc li { color: #c3c9d4; line-height: 1.85; }
.eve-doc pre, .eve-doc .eve-table-wrap, .eve-doc .mermaid { border-radius: 6px; }
.eve-doc pre code { font-size: 13px; }
.eve-doc th, .eve-doc td { font-size: 14px; padding: 13px 16px; }
.eve-doc .mermaid { padding: 24px 16px; }
.eve-toc-details summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
@media (max-width: 980px) {
  .eve-landing .split { gap: 32px; }
  .eve-module-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .eve-module-branches::before, .eve-module-branch::before, .eve-module-tree > .eve-flow-step::after { display: none; }
  .eve-module-branches { margin-top: 24px; }
  .eve-hub-spokes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eve-doc { border-left: 0; padding: 0; }
  .eve-toc { border-bottom: 1px solid var(--border); padding: 16px 0; }
}
@media (max-width: 720px) {
  .eve-landing .split, .eve-examples, .eve-machines, .eve-maturity { grid-template-columns: 1fr; }
  .eve-landing .section { padding-block: 24px; }
  .eve-landing .section + .section:not(#contact) > .container { padding-top: 32px; }
  .eve-landing .hero { padding-block: 52px 40px; }
  .eve-landing .eyebrow { max-width: 280px; line-height: 1.8; }
  .eve-pillars { grid-template-columns: 1fr; gap: 22px; }
  .eve-hub { padding: 22px 16px; }
  .eve-hub-spokes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eve-module-tree { padding: 24px 16px; }
  .eve-doc h1 { font-size: 25px; }
  .eve-doc h2 { font-size: 23px; }
}
@media (max-width: 380px) {
  .eve-module-branches, .eve-hub-spokes { grid-template-columns: 1fr; }
}
