/* Shared chrome is scoped; legacy documentation and Bootstrap remain independent. */
:root { --nd-ink: #172e27; --nd-muted: #52655c; --nd-green: #216347; --nd-paper: #f8faf6; --nd-line: #dbe3db; }
.nd-container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.nd-header, .nd-footer, .nd-home { font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif; color: var(--nd-ink); -webkit-font-smoothing: antialiased; }
.nd-header *, .nd-footer *, .nd-home * { box-sizing: border-box; }
.nd-header a, .nd-footer a, .nd-home a { text-decoration: none; }
.nd-header a:hover, .nd-footer a:hover, .nd-home a:hover { text-decoration: none; }
.nd-header a:focus-visible, .nd-header summary:focus-visible, .nd-header button:focus-visible, .nd-footer a:focus-visible, .nd-home a:focus-visible, .nd-skip:focus-visible { outline: 3px solid #368560; outline-offset: 5px; border-radius: 3px; }
.nd-header { position: relative; z-index: 100; background: #fff; border-bottom: 1px solid var(--nd-line); }
.nd-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.nd-wordmark { display: inline-flex; align-items: center; color: var(--nd-ink); font-size: 26px; font-weight: 750; letter-spacing: -1px; white-space: nowrap; }
.nd-wordmark:hover { color: var(--nd-green); }
.nd-wordmark > span:last-child { color: var(--nd-green); }
.nd-brand-icon { display: grid; place-items: center; width: 32px; height: 32px; background: var(--nd-green); color: white; font-size: 20px; margin-right: 10px; border-radius: 5px 0; font-weight: 600; }
.nd-nav-panel { display: flex; align-items: center; gap: 24px; }
.nd-nav-group { position: relative; }
.nd-nav-group summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 20px 0; font-size: 14px; font-weight: 600; }
.nd-nav-group summary::-webkit-details-marker { display: none; }
.nd-nav-group summary > span { color: #728077; }
.nd-nav-group[open] summary { color: var(--nd-green); }
.nd-nav-group ul { position: absolute; top: 100%; left: -20px; width: 275px; max-height: 70vh; overflow-y: auto; margin: 0; padding: 10px; list-style: none; border: 1px solid var(--nd-line); background: white; border-radius: 8px; box-shadow: 0 16px 40px #172e2714; }
.nd-nav-group li a { display: block; padding: 10px 12px; font-size: 14px; color: var(--nd-ink); border-radius: 4px; }
.nd-nav-group li a:hover { background: #eff5ee; color: var(--nd-green); }
.nd-language { display: flex; gap: 8px; align-items: center; font-size: 12px; white-space: nowrap; }
.nd-language a { color: var(--nd-muted); padding-block: 10px; }
.nd-language a[aria-current] { color: var(--nd-green); font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }
.nd-button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; padding: 16px 22px; color: white; background: var(--nd-green); border: 1px solid var(--nd-green); border-radius: 5px; font-size: 14px; font-weight: 600; line-height: 1.5; transition: background .15s, color .15s; }
.nd-button:hover { background: #164b33; color: white; }
.nd-button-small { padding: 11px 15px; font-size: 13px; gap: 12px; }
.nd-button-outline { background: transparent; color: var(--nd-ink); border-color: #b9c8bb; }
.nd-button-outline:hover { background: #e9efe6; color: var(--nd-ink); }
.nd-menu-toggle { display: none; }
.nd-skip { position: absolute; top: -100px; left: 20px; z-index: 200; padding: 12px; background: white; color: var(--nd-green); }
.nd-skip:focus { top: 12px; }
.nd-home { background: white; }
.nd-home h1, .nd-home h2, .nd-home h3 { color: var(--nd-ink); font-weight: 600; letter-spacing: -.035em; }
.nd-home h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.18; margin: 0 0 24px; }
.nd-home h3 { font-size: 23px; line-height: 1.3; }
.nd-home p { line-height: 1.75; }
.nd-eyebrow { font-size: 11px; letter-spacing: .13em; font-weight: 700; color: var(--nd-green); margin: 0 0 24px; }
.nd-hero { background: var(--nd-paper); padding: 76px 0 70px; }
.nd-hero-grid { display: grid; grid-template-columns: 1.16fr 1fr; gap: 66px; align-items: center; }
.nd-hero h1 { font-size: clamp(43px, 4.65vw, 66px); line-height: 1.09; letter-spacing: -.055em; margin-bottom: 27px; }
.nd-hero h1 > span { color: var(--nd-green); }
.nd-status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #498e57; margin-right: 9px; box-shadow: 0 0 0 4px #498e5710; }
.nd-lead { font-size: 17px; max-width: 530px; color: var(--nd-muted); margin: 0 0 30px; }
.nd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nd-release { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; color: var(--nd-muted); margin: 27px 0 0; }
.nd-release a { color: var(--nd-muted); text-decoration: underline; text-underline-offset: 3px; }
.nd-workspace { background: #102c23; color: #d6e6dc; border: 1px solid #284a3c; border-radius: 10px; padding: 24px; box-shadow: 0 22px 45px #1b382519; }
.nd-workspace-top { display: flex; justify-content: space-between; font-family: Consolas, monospace; letter-spacing: .08em; font-size: 10px; color: #a8c4b5; border-bottom: 1px solid #365044; padding-bottom: 17px; }
.nd-workspace-title { font-size: 17px; margin-top: 20px; }
.nd-netlist { margin: 12px 0 20px; }
.nd-netlist svg { width: 100%; height: auto; display: block; }
.nd-netlist figcaption { font-size: 10px; color: #afc8bb; display: flex; align-items: center; gap: 6px; }
.nd-netlist figcaption span { height: 6px; width: 6px; background: #8de1b7; }
.nd-workflow { padding: 0; margin: 0; list-style: none; }
.nd-workflow li { display: flex; align-items: center; gap: 14px; border-top: 1px solid #365044; padding: 13px 0; }
.nd-step { font-family: Consolas, monospace; color: #91b09e; font-size: 11px; }
.nd-workflow strong { display: block; font-weight: 500; font-size: 13px; }
.nd-workflow li div > span { display: block; font-size: 10px; color: #a6bfb0; margin-top: 3px; }
.nd-step-arrow { margin-left: auto; color: #91c9a6; }
.nd-workspace-note { margin: 4px 0 0; font-size: 10px; color: #a6bfb0; }
.nd-capabilities { border-block: 1px solid var(--nd-line); background: #f1f5ee; }
.nd-capabilities > div { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 22px; }
.nd-capabilities > div > span { font-size: 13px; font-weight: 500; text-align: center; border-right: 1px solid #d2decf; }
.nd-capabilities > div > span:last-child { border: none; }
.nd-capabilities span > span { color: #5b8556; margin-right: 15px; }
.nd-section { padding: 88px 0; scroll-margin-top: 30px; }
.nd-section-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 100px; align-items: end; margin-bottom: 30px; }
.nd-section-heading h2 { max-width: 550px; margin-bottom: 0; }
.nd-section-heading > p { font-size: 15px; color: var(--nd-muted); margin: 0; }
.nd-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--nd-line); border-radius: 7px; overflow: hidden; }
.nd-product-card { padding: 25px; border-right: 1px solid var(--nd-line); display: flex; flex-direction: column; }
.nd-product-card:last-child { border: none; }
.nd-product-card:hover { background: #f8faf6; }
.nd-card-top { display: flex; justify-content: space-between; color: #6c826e; font: 12px Consolas, monospace; margin-bottom: 40px; }
.nd-product-card h3 { font-size: 21px; margin: 0 0 13px; }
.nd-product-card p { color: var(--nd-muted); font-size: 14px; margin-bottom: 25px; }
.nd-card-links { display: flex; gap: 9px 20px; flex-wrap: wrap; margin-top: auto; }
.nd-card-links a, .nd-text-link { color: var(--nd-green); font-size: 13px; font-weight: 600; }
.nd-home .nd-text-link:hover, .nd-card-links a:hover { color: #123b28; text-decoration: underline; text-underline-offset: 4px; }
.nd-solutions { background: #f3f6ef; border-block: 1px solid var(--nd-line); }
.nd-solution-grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: 100px; }
.nd-solution-row { display: flex; gap: 24px; padding: 27px 0; border-bottom: 1px solid #d0dbcc; color: var(--nd-ink); }
.nd-solution-row:first-child { padding-top: 0; }
.nd-solution-row:last-child { border: 0; padding-bottom: 0; }
.nd-row-number { font: 12px Consolas, monospace; color: #6b8368; padding-top: 5px; }
.nd-solution-row > span:last-child { margin-left: auto; color: var(--nd-green); }
.nd-solution-row p { color: var(--nd-muted); font-size: 14px; margin-bottom: 12px; }
.nd-solution-row:hover h3 { color: var(--nd-green); }
.nd-resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 35px; }
.nd-resource-card { padding: 34px; border: 1px solid var(--nd-line); border-radius: 7px; background: #fbfcfa; }
.nd-resource-card:last-child { background: #f0f5f3; }
.nd-resource-card p:not(.nd-eyebrow) { font-size: 15px; color: var(--nd-muted); max-width: 480px; }
.nd-resource-card .nd-eyebrow { font-size: 10px; margin-bottom: 30px; }
.nd-docs-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-block: 1px solid var(--nd-line); margin-top: 36px; padding: 28px 0; }
.nd-docs-strip h3 { font-size: 18px; margin-bottom: 7px; }
.nd-docs-strip p { font-size: 13px; color: var(--nd-muted); margin: 0; }
.nd-docs-strip > a { flex-shrink: 0; }
.nd-contact { background: #193e2c; padding: 65px 0; }
.nd-contact > div { display: flex; gap: 50px; align-items: center; justify-content: space-between; }
.nd-contact h2 { color: #f4f7ed; margin-bottom: 15px; }
.nd-contact .nd-eyebrow { color: #b1ceaa; }
.nd-contact p:not(.nd-eyebrow) { color: #c0d2c5; font-size: 15px; margin: 0; max-width: 670px; }
.nd-button-light { background: #e6f0d3; color: #173d25; border-color: #e6f0d3; flex-shrink: 0; }
.nd-button-light:hover { background: #d5e6b9; color: #173d25; }
.nd-footer { padding: 60px 0 0; background: #fcfdfb; border-top: 1px solid var(--nd-line); }
.nd-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr 1fr; gap: 28px; padding-bottom: 45px; }
.nd-footer h2 { font-size: 12px; font-weight: 700; margin: 5px 0 20px; color: var(--nd-ink); }
.nd-footer ul { list-style: none; margin: 0; padding: 0; }
.nd-footer li { margin-bottom: 11px; font-size: 11px; line-height: 1.6; }
.nd-footer li a, .nd-footer-bottom a, .nd-socials a { color: var(--nd-muted); }
.nd-footer li a:hover, .nd-footer-bottom a:hover, .nd-socials a:hover { color: var(--nd-green); text-decoration: underline; }
.nd-footer-brand p { color: var(--nd-muted); font-size: 12px; line-height: 1.75; max-width: 200px; margin-top: 16px; }
.nd-socials { display: flex; gap: 16px; font-size: 11px; margin-top: 24px; }
.nd-footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--nd-line); padding-block: 23px; font-size: 10px; color: var(--nd-muted); }
.nd-locale-note { padding: 10px 0; background: #edf3e7; color: #4a6249; font-size: 12px; line-height: 1.7; }
.nd-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
html[lang="zh-CN"] .nd-home h1 { font-size: clamp(36px, 4.1vw, 58px); line-height: 1.25; letter-spacing: -.04em; }
@media (max-width: 1200px) { .nd-nav-panel { gap: 15px; } .nd-header-inner { gap: 20px; } .nd-hero-grid { gap: 38px; } .nd-container { width: calc(100% - 60px); } }
@media (max-width: 1050px) {
    .nd-header-inner { min-height: 76px; flex-wrap: wrap; padding-block: 18px; }
    .nd-nav { margin-left: auto; }
    .nd-nav-panel { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 16px 0 4px; }
    .nd-nav:not(.nd-nav-ready) { width: 100%; }
    .nd-nav-ready .nd-menu-toggle { display: flex; align-items: center; gap: 14px; background: transparent; border: 1px solid var(--nd-line); border-radius: 4px; padding: 8px 12px; font-size: 13px; color: var(--nd-ink); }
    .nd-nav-ready .nd-nav-panel { display: none; position: absolute; left: 0; top: 100%; background: white; padding: 10px 30px 25px; border-bottom: 1px solid var(--nd-line); max-height: 80vh; overflow-y: auto; box-shadow: 0 15px 25px #172e2712; }
    .nd-menu-toggle[aria-expanded="true"] + .nd-nav-panel { display: flex; }
    .nd-nav-group summary { padding: 12px 0; justify-content: space-between; }
    .nd-nav-group ul { position: static; width: 100%; box-shadow: none; max-height: none; }
    .nd-language { padding-block: 6px; }
    .nd-nav-panel > .nd-button { align-self: flex-start; }
    .nd-hero { padding: 60px 0; }
    .nd-hero-grid { gap: 30px; }
    .nd-hero h1 { font-size: 46px; }
    .nd-eyebrow { font-size: 10px; }
    .nd-section-heading, .nd-solution-grid { gap: 40px; }
    .nd-product-grid { grid-template-columns: repeat(2, 1fr); }
    .nd-product-card:nth-child(2) { border-right: 0; }
    .nd-product-card:nth-child(-n+2) { border-bottom: 1px solid var(--nd-line); }
    .nd-footer-grid { grid-template-columns: repeat(4, 1fr); }
    .nd-footer-brand { grid-column: 1 / -1; }
    .nd-footer-brand p { max-width: none; }
}
@media (max-width: 760px) {
    .nd-container { width: calc(100% - 40px); }
    .nd-hero { padding: 44px 0; }
    .nd-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .nd-hero h1 { font-size: clamp(38px, 8.7vw, 58px); }
    .nd-lead { font-size: 16px; }
    .nd-workspace { transform: none; padding: 22px; max-width: 540px; width: 100%; }
    .nd-capabilities > div { grid-template-columns: 1fr 1fr; gap: 20px 0; }
    .nd-capabilities > div > span { font-size: 11px; }
    .nd-capabilities > div > span:nth-child(2) { border: 0; }
    .nd-capabilities span > span { margin-right: 8px; }
    .nd-section { padding: 56px 0; }
    .nd-section-heading, .nd-solution-grid, .nd-resource-grid { grid-template-columns: 1fr; gap: 24px; }
    .nd-section-heading { margin-bottom: 28px; }
    .nd-product-card { padding: 20px; }
    .nd-product-card h3 { font-size: 19px; }
    .nd-product-card p { font-size: 13px; }
    .nd-card-top { margin-bottom: 27px; }
    .nd-solution-list { margin-top: 14px; }
    .nd-solution-row { gap: 15px; }
    .nd-solution-row h3 { font-size: 21px; }
    .nd-resource-card { padding: 27px; }
    .nd-docs-strip, .nd-contact > div { flex-direction: column; align-items: flex-start; gap: 24px; }
    .nd-contact { padding: 45px 0; }
    .nd-footer { padding-top: 40px; }
    .nd-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .nd-footer-bottom { flex-direction: column; }
    html[lang="zh-CN"] .nd-home h1 { font-size: clamp(34px, 8vw, 52px); }
}
@media (max-width: 380px) {
    .nd-container { width: calc(100% - 32px); }
    .nd-product-grid { grid-template-columns: 1fr; }
    .nd-product-card { border-right: 0; border-bottom: 1px solid var(--nd-line); }
    .nd-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .nd-button { transition: none; } }
@media print {
    .nd-header, .nd-footer, .nd-skip, .nd-locale-note { display: none; }
    .nd-container { width: 100%; }
    .nd-workspace { transform: none; box-shadow: none; }
    .nd-section { padding: 25px 0; }
}
