/* The public energy guide uses its own reading width and scoped styles. */
body.dashboard-page.nomenclature-page {
  --guide-ink: #24392f;
  --guide-muted: #5a6b62;
  --guide-border: #dfe6de;
  padding: 28px 24px 0;
  color: var(--guide-ink);
  background: #fafbf6;
  font-family: var(--sans-serif);
  line-height: 1.65;
}

.nomenclature-page .nomenclature-shell { width: min(100%, 1120px); max-width: 1120px; }
.nomenclature-page .nomenclature-symbols { position: absolute; overflow: hidden; }
.nomenclature-page section,
.nomenclature-page article,
.nomenclature-page figure,
.nomenclature-page footer { margin: 0; }
.nomenclature-page h1,
.nomenclature-page h2,
.nomenclature-page h3 { color: var(--guide-ink); font-weight: 700; letter-spacing: -.035em; }
.nomenclature-page p { margin: 0; }
.nomenclature-page a:focus-visible { outline: 3px solid #558974; outline-offset: 5px; }
.nomenclature-page .nomenclature-header { align-items: center; margin: 0 0 40px; }
.nomenclature-brand { display: inline-flex; align-items: center; gap: 10px; color: #24392f; font-weight: 750; font-size: 1.1rem; letter-spacing: -.035em; }
.nomenclature-brand:hover { color: #2b855e; text-decoration: none; }
.nomenclature-brand-dot { width: 9px; height: 9px; border-radius: 50%; background: #75a87b; box-shadow: 0 0 0 5px #edf3e8; }
.nomenclature-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.nomenclature-page .nav-btn { color: #3d5548; background: #fff; border-color: var(--guide-border); }
.nomenclature-language { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--guide-border); border-radius: 12px; background: #f0f3eb; }
.nomenclature-language a { padding: 5px 10px; color: #5a6b62; border-radius: 8px; font-size: .82rem; font-weight: 650; }
.nomenclature-language a[aria-current="page"] { color: #254936; background: #fff; box-shadow: 0 1px 4px #24392f0d; }
.nomenclature-language a:hover { color: #254936; text-decoration: none; }

.nomenclature-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.nomenclature-intro { min-width: 0; padding: 22px 0; }
.nomenclature-page .nomenclature-eyebrow { color: #537b61; font-size: .72rem; font-weight: 750; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.nomenclature-intro .nomenclature-eyebrow { display: flex; align-items: center; gap: 8px; }
.nomenclature-page .nomenclature-intro h1 { margin: 16px 0 24px; font-size: clamp(2.35rem, 5.6vw, 4rem); line-height: 1.05; letter-spacing: -.055em; overflow-wrap: normal; }
.nomenclature-page .nomenclature-headline { max-width: 24ch; font-size: clamp(1.55rem, 2.5vw, 2rem); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.nomenclature-page .nomenclature-lead { max-width: 45ch; margin: 20px 0 24px; color: var(--guide-muted); font-size: 1rem; }
.nomenclature-jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.nomenclature-jump-links a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; color: #445b4d; border: 1px solid var(--guide-border); border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 650; }
.nomenclature-jump-links a span { color: #6e8373; font-size: .67rem; }
.nomenclature-jump-links a:hover { border-color: #adc5b2; background: #f1f6ed; text-decoration: none; }
.nomenclature-storage-note { display: flex; align-items: flex-start; gap: 14px; max-width: 430px; padding: 20px; border: 1px solid #e7e0ed; border-radius: 18px; background: linear-gradient(125deg, #fff, #f6f2fa); }
.nomenclature-note-icon { flex: 0 0 34px; width: 34px; height: 34px; color: #78569f; }
.nomenclature-storage-note p { font-size: .85rem; line-height: 1.6; }
.nomenclature-storage-note strong { display: block; margin-bottom: 5px; }
.nomenclature-storage-note span { display: block; color: var(--guide-muted); }

.nomenclature-flow-card { min-width: 0; padding: 24px 22px 16px; border: 1px solid #e0e8dd; border-radius: 30px; background: linear-gradient(140deg, #fff, #fcfdf9); box-shadow: 0 16px 60px #3f5b3510; }
.nomenclature-flow-card figcaption { font-family: inherit; }
.nomenclature-flow-card figcaption span,
.nomenclature-flow-card figcaption strong { display: block; }
.nomenclature-flow-card figcaption strong { margin-top: 6px; font-size: 1.18rem; letter-spacing: -.025em; }
.nomenclature-flow-svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.nomenclature-diagram-label { font-family: inherit; font-size: 15px; font-weight: 650; }
.nomenclature-arrow-label-background { paint-order: stroke; stroke: #fff; stroke-width: 9px; stroke-linejoin: round; }
.nomenclature-diagram-node { font-family: inherit; text-anchor: middle; font-size: 20px; font-weight: 700; }
.nomenclature-node-caption { fill: #637467; font-size: 15px; font-weight: 450; }
.nomenclature-page .nomenclature-diagram-note { padding: 0 10px; color: var(--guide-muted); font-size: .75rem; line-height: 1.5; text-align: center; }
.nomenclature-solar { color: #286c4d; }
.nomenclature-grid { color: #405463; }
.nomenclature-battery { color: #7049a1; }
.nomenclature-house { color: #315b96; }
.nomenclature-charge { color: #875618; }
.nomenclature-diagram-node text { fill: currentColor; }
.nomenclature-diagram-node .nomenclature-node-caption { fill: #637467; }

.nomenclature-page .nomenclature-section { margin-top: 76px; scroll-margin-top: 24px; }
.nomenclature-section-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.nomenclature-section-number { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; margin-top: 1px; color: #617965; border: 1px solid #dce6d7; border-radius: 12px; background: #eef3e8; font-size: .78rem; font-weight: 750; }
.nomenclature-page .nomenclature-section-heading h2 { margin: 0 0 6px; font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.2; }
.nomenclature-section-heading p { color: var(--guide-muted); font-size: .95rem; }
.nomenclature-term-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nomenclature-term-card { min-width: 0; padding: 22px 20px; border: 1px solid var(--guide-border); border-radius: 20px; background: #fff; }
.nomenclature-term-icon { display: block; width: 46px; height: 46px; margin-bottom: 18px; }
.nomenclature-page .nomenclature-term-card h3 { margin: 0 0 12px; color: currentColor; font-size: 1.08rem; line-height: 1.35; }
.nomenclature-term-card p { color: var(--guide-muted); font-size: .86rem; line-height: 1.65; }
.nomenclature-page .nomenclature-term-card .nomenclature-field-label { margin-top: 18px; padding-top: 12px; color: #758076; border-top: 1px solid #edf0eb; font-size: .72rem; line-height: 1.5; }
.nomenclature-field-label strong { display: block; margin-top: 3px; color: #465c4d; font-weight: 600; }

.nomenclature-equation-card { margin-top: 24px; padding: 30px; border: 1px solid #dce5ee; border-radius: 24px; background: linear-gradient(125deg, #f0f5fa, #f6f8f2); }
.nomenclature-page .nomenclature-equation-card h3 { margin: 8px 0 10px; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.nomenclature-equation-card > p:not(.nomenclature-eyebrow) { color: var(--guide-muted); font-size: .9rem; }
.nomenclature-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 6px; margin: 24px 0 18px; }
.nomenclature-formula-chunk { display: inline-flex; align-items: center; gap: 6px; }
.nomenclature-formula-term { display: inline-flex; flex-direction: column; justify-content: center; min-height: 76px; padding: 14px 17px; border: 1px solid #d5dfe7; border-radius: 13px; background: #fff; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.nomenclature-formula-term small { display: block; margin-top: 5px; color: #667569; font-size: .67rem; font-weight: 450; }
.nomenclature-formula-term.nomenclature-house { background: #e7effa; border-color: #c8d7ea; }
.nomenclature-operator { padding: 0 4px; color: #697969; font-size: 1.4rem; font-weight: 450; }
.nomenclature-page .nomenclature-equation-explanation { max-width: 87ch; font-size: .85rem; }
.nomenclature-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.nomenclature-example-card { min-width: 0; padding: 25px; border: 1px solid var(--guide-border); border-radius: 20px; background: #fff; }
.nomenclature-example-tag { display: inline-block; padding: 4px 9px; border-radius: 7px; background: #f4f0f9; font-size: .67rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.nomenclature-example-tag.nomenclature-solar { background: #eef5ed; }
.nomenclature-page .nomenclature-example-card h3 { margin: 14px 0 10px; font-size: 1.05rem; }
.nomenclature-example-card > p { color: var(--guide-muted); font-size: .88rem; }
.nomenclature-page .nomenclature-example-equation { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #ebefea; color: #4a5f50; font-size: clamp(.95rem, 1.8vw, 1.1rem); font-variant-numeric: tabular-nums; }
.nomenclature-example-equation strong { color: #315b96; }

.nomenclature-unit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nomenclature-unit-card { padding: 28px; border: 1px solid var(--guide-border); border-radius: 22px; background: #fff; }
.nomenclature-unit-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; color: #597760; }
.nomenclature-unit-header span { color: #2c4836; font-size: 2.5rem; font-weight: 750; letter-spacing: -.055em; line-height: 1.2; }
.nomenclature-unit-header svg { width: 42px; height: 42px; }
.nomenclature-page .nomenclature-unit-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.nomenclature-unit-card p { color: var(--guide-muted); font-size: .9rem; }
.nomenclature-unit-equation { margin-top: 18px; padding: 22px 24px; border: 1px solid #e1e7d9; border-radius: 18px; background: #f0f4e9; text-align: center; }
.nomenclature-unit-equation > p:first-child { font-size: .95rem; }
.nomenclature-math { max-width: 100%; margin: 10px 0; overflow-x: auto; font-size: .92rem; visibility: hidden; }
.nomenclature-math mjx-container { visibility: visible; }
.nomenclature-page .nomenclature-unit-explanation { color: var(--guide-muted); font-size: .8rem; }

.nomenclature-glossary-card { overflow: hidden; border: 1px solid var(--guide-border); border-radius: 22px; background: #fff; }
.nomenclature-page .nomenclature-glossary { width: 100%; margin: 0; border: 0; }
.nomenclature-glossary thead th { padding: 13px 24px; color: #627364; border-bottom: 1px solid var(--guide-border); background: #f1f5ed; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.nomenclature-glossary tbody th,
.nomenclature-glossary tbody td { padding: 17px 24px; border-bottom: 1px solid #edf0e8; font-size: .87rem; line-height: 1.65; text-align: left; vertical-align: top; }
.nomenclature-glossary tbody th { width: 31%; color: #3b5242; font-weight: 650; }
.nomenclature-glossary tbody td { color: var(--guide-muted); }
.nomenclature-glossary tbody tr:last-child th,
.nomenclature-glossary tbody tr:last-child td { border-bottom: 0; }
.nomenclature-notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.nomenclature-detail-note { min-width: 0; padding: 16px 0 0; border-top: 2px solid #dce7d9; }
.nomenclature-page .nomenclature-detail-note h3 { margin: 0 0 10px; font-size: .95rem; line-height: 1.4; }
.nomenclature-detail-note p { color: var(--guide-muted); font-size: .8rem; }
.nomenclature-page .nomenclature-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px; padding: 34px 0 40px; border-top: 1px solid var(--guide-border); text-align: left; }
.nomenclature-page .nomenclature-footer h2 { margin: 7px 0 0; font-size: 1.4rem; }
.nomenclature-footer nav { display: flex; flex-wrap: wrap; gap: 10px; }
.nomenclature-footer nav a { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 10px 16px; border: 1px solid #d8e2d4; border-radius: 11px; font-size: .85rem; font-weight: 650; }
.nomenclature-primary-link { color: #fff; border-color: #345f45 !important; background: #345f45; }
.nomenclature-primary-link:hover { color: #fff; background: #284d36; text-decoration: none; }
.nomenclature-secondary-link { color: #3c5846; background: #fff; }
.nomenclature-secondary-link:hover { color: #284d36; background: #f0f5e9; text-decoration: none; }
.nomenclature-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) {
  .nomenclature-hero { gap: 32px; }
  .nomenclature-term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nomenclature-formula-term { padding: 12px 14px; }
}

@media (max-width: 760px) {
  body.dashboard-page.nomenclature-page { padding: 20px 18px 0; }
  .nomenclature-page .nomenclature-header { align-items: flex-start; gap: 16px; margin-bottom: 26px; }
  .nomenclature-header-actions { justify-content: flex-end; gap: 10px; }
  .nomenclature-brand { padding-top: 7px; font-size: .95rem; }
  .nomenclature-brand-dot { display: none; }
  .nomenclature-hero { grid-template-columns: 1fr; gap: 26px; }
  .nomenclature-intro { padding: 8px 0 0; }
  .nomenclature-page .nomenclature-intro h1 { font-size: clamp(2.35rem, 8vw, 3.8rem); }
  .nomenclature-page .nomenclature-headline { max-width: 30ch; }
  .nomenclature-page .nomenclature-lead { max-width: 60ch; }
  .nomenclature-storage-note { max-width: none; }
  .nomenclature-flow-card { width: min(100%, 500px); justify-self: center; padding: 22px 18px 18px; }
  .nomenclature-page .nomenclature-section { margin-top: 50px; }
  .nomenclature-notes-grid { grid-template-columns: 1fr; gap: 18px; }
  .nomenclature-detail-note p { max-width: 75ch; }
  .nomenclature-page .nomenclature-footer { flex-direction: column; align-items: flex-start; margin-top: 44px; }
}

@media (max-width: 480px) {
  .nomenclature-page .nomenclature-header { flex-direction: column; gap: 14px; }
  .nomenclature-header-actions { width: 100%; justify-content: space-between; }
  .nomenclature-page .nomenclature-intro h1 { margin: 14px 0 18px; font-size: clamp(2rem, 9.7vw, 2.8rem); }
  .nomenclature-term-grid,
  .nomenclature-example-grid,
  .nomenclature-unit-grid { grid-template-columns: 1fr; }
  .nomenclature-term-card { padding: 20px; }
  .nomenclature-term-icon { width: 38px; height: 38px; margin-bottom: 12px; }
  .nomenclature-equation-card { padding: 22px 18px; }
  .nomenclature-formula { gap: 10px 3px; }
  .nomenclature-formula-term { min-height: 68px; padding: 10px 12px; font-size: .9rem; }
  .nomenclature-formula-term small { font-size: .64rem; }
  .nomenclature-operator { font-size: 1.2rem; }
  .nomenclature-example-card,
  .nomenclature-unit-card { padding: 22px; }
  .nomenclature-unit-equation { padding: 20px 14px; }
  .nomenclature-math { font-size: clamp(.62rem, 3vw, .75rem); }
  .nomenclature-glossary thead th { padding: 12px; font-size: .62rem; }
  .nomenclature-glossary tbody th,
  .nomenclature-glossary tbody td { padding: 14px 12px; font-size: .78rem; }
  .nomenclature-glossary tbody th { width: 37%; }
  .nomenclature-flow-card { padding-right: 8px; padding-left: 8px; border-radius: 24px; }
  .nomenclature-flow-card figcaption { padding: 0 10px; }
  .nomenclature-footer nav { width: 100%; }
  .nomenclature-footer nav a { flex: 1 1 auto; }
}

@media print {
  body.dashboard-page.nomenclature-page { padding: 0; background: #fff; }
  .nomenclature-header-actions,
  .nomenclature-jump-links,
  .nomenclature-footer { display: none !important; }
  .nomenclature-hero { gap: 24px; }
  .nomenclature-page .nomenclature-section { margin-top: 30px; }
  .nomenclature-flow-card,
  .nomenclature-term-card,
  .nomenclature-example-card,
  .nomenclature-unit-card { break-inside: avoid; box-shadow: none; }
}
