/* Shared theme control and the light edition of the public product website. */
:root { color-scheme: dark; }
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f7f1;
  --surface: #ffffff;
  --surface-2: #edf1e7;
  --ink: #17251b;
  --muted: #576456;
  --line: #d6ded1;
  --lime: #365f27;
}
.theme-toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--muted); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.theme-moon { display: none; }
html[data-theme='light'] .theme-sun { display: none; }
html[data-theme='light'] .theme-moon { display: block; }
html[data-theme='light'] ::selection { background: #365f27; color: #fff; }
html[data-theme='light'] .skip,
html[data-theme='light'] .button { color: #fff; }
html[data-theme='light'] .button:hover { background: #274d1c; border-color: #274d1c; }
html[data-theme='light'] .desktop-nav a,
html[data-theme='light'] .sign-in { color: #4d5f47; }
html[data-theme='light'] .desktop-nav a:hover,
html[data-theme='light'] .sign-in:hover { color: #264e1c; }
html[data-theme='light'] .language { color: #6c7a63; }
html[data-theme='light'] .check-list { color: #42573a; }
html[data-theme='light'] .capability-tabs button>span:first-child { color: #587245; }
html[data-theme='light'] .journey-number span { color: #647c54; }
html[data-theme='light'] .journey a,
html[data-theme='light'] .card-bottom { color: #405736; }

/* The architecture graphic becomes a layered sage model on a light drafting grid. */
html[data-theme='light'] .architecture #grid path { stroke: #627c53; stroke-opacity: .22; }
html[data-theme='light'] .architecture #plane stop:first-child { stop-color: #e8f1de; }
html[data-theme='light'] .architecture #plane stop:last-child { stop-color: #c8dcb6; }
html[data-theme='light'] .architecture #core stop:first-child { stop-color: #c9ed9b; }
html[data-theme='light'] .architecture #core stop:last-child { stop-color: #9aca68; }
html[data-theme='light'] .architecture [fill='#141b17'] { fill: #e9efe1; }
html[data-theme='light'] .architecture [fill='#1b2920'] { fill: #cbd8be; }
html[data-theme='light'] .architecture [fill='#3d5543'] { fill: #c3d6b0; }
html[data-theme='light'] .architecture [fill='#263927'] { fill: #9ab581; }
html[data-theme='light'] .architecture [fill='#1c241e'] { fill: #e9f1e1; }
html[data-theme='light'] .architecture [fill='#253128'] { fill: #c9d9bb; }
html[data-theme='light'] .architecture [fill='#b4c0b4'] { fill: #415a35; }
html[data-theme='light'] .architecture [fill='#d4ffae'] { fill: #426e2e; }
html[data-theme='light'] .architecture [stroke='#c5d5bb'] { stroke: #4c7137; }
html[data-theme='light'] .architecture [stroke='#ccff9b'],
html[data-theme='light'] .architecture [stroke='#d4ffae'] { stroke: #587f3a; }
html[data-theme='light'] .architecture [stroke='#9abe80'] { stroke: #719456; }
html[data-theme='light'] .packet { fill: #274e18; }
html[data-theme='light'] .connector-chip { background: #fff; border-color: #d4decc; color: #425d35; }
html[data-theme='light'] .connector-chip:hover { background: #e9f2df; border-color: #81a666; color: #274e18; }

/* Capability previews remain information-rich and readable. */
html[data-theme='light'] .pipeline-canvas,
html[data-theme='light'] .relationship-map { background-image: radial-gradient(#b8c9a7 .7px,transparent .7px); }
html[data-theme='light'] .pipeline-node { background: #f9fbf5; border-color: #bccdb0; }
html[data-theme='light'] .pipeline-edge { background: #819d6b; }
html[data-theme='light'] .node-output { background: #e1efcf; animation-name: light-output-pulse; }
@keyframes light-output-pulse { 0%,70%,100% { border-color: #91ad77; } 80%,90% { border-color: #365f27; } }
html[data-theme='light'] .preview-table>div { border-color: #d6ded1; }
html[data-theme='light'] .preview-table>div:first-child { background: #e7efde; color: #334e28; }
html[data-theme='light'] .entity-accent { border-color: #7e9d65; }
html[data-theme='light'] .chart-bars i { background: #a8be94; }
html[data-theme='light'] .chart-bars i:nth-child(2n) { background: #4e7a35; }
html[data-theme='light'] .model-section { background: #eaf0e1; }
html[data-theme='light'] .model-art { background-image: radial-gradient(#b6c7a5 1px,transparent 1px); }
html[data-theme='light'] .orbit { border-color: #819b6d; }
html[data-theme='light'] .orbit-three { border-color: #b2c49f; }
html[data-theme='light'] .orbit-label { background: #f5f9ef; border-color: #afc397; color: #365c26; }
html[data-theme='light'] .orbit-point { border-color: #eaf0e1; outline-color: #7c9766; }
html[data-theme='light'] .orbit-satellite:after { box-shadow: 0 0 0 5px #365f2710; }
html[data-theme='light'] .model-details>div { border-color: #c8d6bb; }
html[data-theme='light'] .access-art>span:not(.access-lock) { border-color: #bacbad; }
html[data-theme='light'] .access-lock { border-color: #96b180; }
html[data-theme='light'] .storage-art i { background: #82a961; border-color: #698f4b; }
html[data-theme='light'] .storage-art i:nth-child(n+5) { background: #aec59a; border-color: #8da773; }
html[data-theme='light'] .storage-art i:nth-child(n+9) { background: #dce7d1; border-color: #b0c69b; }
html[data-theme='light'] .code-window pre { color: #293c21; }
html[data-theme='light'] .code-comment { color: #617657; }
html[data-theme='light'] .code-purple { color: #71518e; }

/* The home map, directory and cross-page guidance share the light surface scale. */
html[data-theme='light'] .home-page .hero-lede,
html[data-theme='light'] .product-lede,
html[data-theme='light'] .product-intro>p,
html[data-theme='light'] .product-intro>div>p:not(.eyebrow) { color: #4e6046; }
html[data-theme='light'] .home-page .home-platform-map { background: #eef3e7; border-color: #c9d7be; }
html[data-theme='light'] .home-platform-map .visual-topline,
html[data-theme='light'] .home-platform-map .visual-bottomline { border-color: #ccd9c0; }
html[data-theme='light'] .home-map-body { background-image: linear-gradient(#6470520d 1px,transparent 1px),linear-gradient(90deg,#6470520d 1px,transparent 1px); }
html[data-theme='light'] .home-map-node { background: #fcfdf9; border-color: #c1d0b5; }
html[data-theme='light'] .home-map-node:hover { background: #e5f0d9; border-color: #87a66c; }
html[data-theme='light'] .home-map-node strong { color: #273d1e; }
html[data-theme='light'] .home-map-node small { color: #536a45; }
html[data-theme='light'] .home-map-icon { border-color: #b6c9a5; }
html[data-theme='light'] .home-map-node>span:last-child:not(:first-child),
html[data-theme='light'] .home-path-arrow { color: #54783d; }
html[data-theme='light'] .home-map-node::before { background: #9bb383; }
html[data-theme='light'] .home-path>a:hover { background: #e8efdf; }
html[data-theme='light'] .home-product-card:hover { background: #eaf2e1; border-color: #8aa870; }
html[data-theme='light'] .home-product-card .learn-link { color: #355e25; }
html[data-theme='light'] .product-breadcrumb li+li::before { color: #789168; }
html[data-theme='light'] .product-visual { background: #fff; border-color: #c5d4ba; }
html[data-theme='light'] .product-visual-bar { color: #4d6740; }
html[data-theme='light'] .product-flow { background-image: radial-gradient(#bdd0aa 1px,transparent 1px); }
html[data-theme='light'] .product-flow::before { background: #719853; }
html[data-theme='light'] .product-flow-node { border-color: #b5caa2; }
html[data-theme='light'] .product-flow-node:last-child { background: #e1edcf; }
html[data-theme='light'] .product-visual-caption,
html[data-theme='light'] .product-steps p { color: #536848; }
html[data-theme='light'] .product-feature-grid article { border-color: #c4d4b7; }
html[data-theme='light'] .product-workflow { background: #eaf0e2; }
html[data-theme='light'] .product-steps li:not(:last-child)::after { background: #bacda8; }
html[data-theme='light'] .product-step-number { border-color: #8fad75; }
html[data-theme='light'] .product-related-grid a:hover { background: #e8f0df; border-color: #8ca772; }
html[data-theme='light'] .product-directory summary { color: #3e5830; }
html[data-theme='light'] .product-directory-grid a[aria-current='page'] { background: #e2edda; }
html[data-theme='light'] .cta-section,
html[data-theme='light'] .product-cta { background: #dce9cc; color: #23381b; }
html[data-theme='light'] .product-cta .eyebrow { color: #435f35; }
html[data-theme='light'] .button-dark { background: #28451e; color: #fff; border-color: #28451e; }
html[data-theme='light'] .button-dark:hover,
html[data-theme='light'] .product-cta .button:hover { background: #1d3715; border-color: #1d3715; }
html[data-theme='light'] .cta-actions .text-link:hover,
html[data-theme='light'] .product-cta .text-link:hover { color: #3d632b; }
@media(max-width:700px) {
  .nav-inner { gap: 8px; }
  .nav-actions { gap: 2px; }
  .theme-toggle { width: 44px; min-width: 44px; height: 44px; padding: 12px; }
  .language { gap: 0; }
}
