.nfx-roi-entry{padding:32px 0;background:#edf2f5;color:#163958}
.nfx-roi-entry-inner{display:flex;align-items:center;justify-content:space-between;gap:32px}
.nfx-roi-entry h2{font-weight:600;font-size:clamp(1.3rem,2.3vw,1.8rem);line-height:1.4;margin:0 0 8px;color:#163958}
.nfx-roi-entry p{margin:0;font-size:1rem;line-height:1.7;color:#4e5a60}
.nfx-roi-entry-action{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex-shrink:0}
.nfx-roi-entry small{font-size:.875rem;color:#4e5a60;line-height:1.6}
.nfx-roi-entry--related{margin-top:32px}
.nfx-roi-button{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:12px 24px;border:1px solid transparent;border-radius:4px;background:#ffae59;color:#19344a!important;font-size:1rem;font-weight:600;text-decoration:none!important;line-height:1.4}
.nfx-roi-button:hover{background:#ffc282}
.nfx-roi-button--secondary{background:white;border-color:#163958;color:#163958!important}
.nfx-roi-button--secondary:hover{background:#edf2f5}
.nfx-roi-masthead{padding:32px 0 28px;background:#f7f8f7}
.nfx-roi-masthead nav{display:flex;gap:10px;font-size:.875rem;margin-bottom:20px;color:#4e5a60}
.nfx-roi-masthead nav a{color:#163958;text-underline-offset:4px}
.nfx-roi-masthead h1{font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.3;color:#163958;letter-spacing:-.02em;margin:0 0 12px}
.nfx-roi-masthead p{font-size:1rem;line-height:1.8;color:#4e5a60;margin:0 0 16px}
.nfx-roi-page-links{display:flex;align-items:center;justify-content:space-between;gap:16px}
.nfx-roi-page-links a{color:#163958;font-size:.875rem;text-underline-offset:4px}
.nfx-roi-page-links small{font-size:.8125rem;color:#4e5a60;white-space:nowrap}
.nfx-roi-page-main{background:#f7f8f7}
#nfx-roi-frame{width:100%;border:0;display:block;min-height:700px;height:3400px}
.nfx-roi-frame-note{padding:16px 0 32px;margin:0;color:#4e5a60;font-size:.875rem;line-height:1.8}
.nfx-roi-transfer{padding:20px;border:1px solid #c2c9c7;border-radius:5px;background:#edf2f5;margin-bottom:24px}
.nfx-roi-transfer h3{color:#163958;font-size:1.2rem;line-height:1.5;margin:0 0 10px}
.nfx-roi-transfer p{font-size:.9375rem;line-height:1.7;margin:8px 0;color:#4e5a60}
.nfx-roi-transfer summary{font-size:.9375rem;color:#163958;cursor:pointer;min-height:44px;padding:12px 0}
.nfx-roi-transfer pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.875rem;line-height:1.7;background:white;padding:16px;max-height:380px;overflow:auto}
.nfx-roi-transfer-actions{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.nfx-roi-transfer button{padding:10px 16px;min-height:44px;background:#fff;border:1px solid #163958;border-radius:4px;color:#163958;font:inherit;font-size:.9375rem;cursor:pointer}
.nfx-roi-transfer button:first-child{background:#ffae59;border-color:#ffae59;color:#19344a}
.nfx-roi-transfer button:disabled{opacity:.65;cursor:default}
.nfx-roi-transfer>a{display:inline-block;min-height:44px;padding:12px 0;color:#163958;text-underline-offset:4px;font-size:.9375rem}
.nfx-roi-button:focus-visible,.nfx-roi-transfer button:focus-visible,.nfx-roi-transfer a:focus-visible{outline:3px solid #d36a19;outline-offset:4px}
@media(max-width:760px){.nfx-roi-entry-inner{flex-direction:column;align-items:flex-start;gap:20px}
.nfx-roi-entry{padding:28px 0}
.nfx-roi-masthead{padding:24px 0}
.nfx-roi-page-links{align-items:flex-start;flex-direction:column;gap:10px}
.nfx-roi-page-links a{font-size:.875rem;line-height:1.8}
.nfx-roi-masthead h1{font-size:1.8rem}
.nfx-roi-transfer{padding:16px}
.nfx-roi-entry--related{margin-top:24px}}
@media(prefers-reduced-motion:reduce){.nfx-roi-entry *{transition:none!important}}
.nfx-roi-crosslink{display:inline-block;color:#163958;font-size:.875rem;line-height:1.7;padding-top:10px;text-underline-offset:4px}
.nfx-roi-transfer{scroll-margin-top:100px}

/* Adapted from SpaceDesign apple-gallery-web; NFX colour/font mix. */
.nfx-project-tools { --primary: #163958; --on-primary: #fff; --bg: #fff; --surface: #f5f5f7; --text: #1d1d1f; --text2: #6e6e73; --line: #e0e0e0; --r-lg: 18px; --r-btn: 980px; padding: 52px 0 56px; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang HK", "Noto Sans HK", sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
.nfx-project-tools .inner-wrap { width: min(1280px, calc(100% - 80px)); }
.nfx-tools-heading { margin-bottom: 30px; text-align: center; }
.eg-main .nfx-project-tools h2 { font-size: 40px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; color: var(--primary); }
.eg-main .nfx-project-tools .nfx-tools-heading p { font-size: 18px; line-height: 1.65; color: var(--text2); margin-top: 12px; }
.nfx-tools-workbench.tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.nfx-project-tools .tile { display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; min-width: 0; padding: 30px 26px 20px; border: 0; border-radius: var(--r-lg); background: var(--surface); text-align: center; color: var(--text); text-decoration: none; transition: background-color 240ms ease; }
.eg-main .nfx-project-tools .tile h3 { font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--primary); text-wrap: balance; }
.eg-main .nfx-project-tools .nfx-tool-copy { font-size: 16px; line-height: 1.65; color: var(--text2); max-width: 27em; min-height: 53px; margin-top: 12px; }
.nfx-project-tools .links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 17px; }
.nfx-project-tools .links .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 21px; border: 1px solid var(--primary); border-radius: var(--r-btn); background: #fff; color: var(--primary); font-size: 15px; line-height: 1.45; font-weight: 600; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.nfx-project-tools .nfx-tool--roi .btn { position: relative; overflow: hidden; background: #ffae59; border-color: #ffae59; color: var(--primary); }
.nfx-project-tools .nfx-tool--roi .btn::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -65%; width: 65%; opacity: 0; background: linear-gradient(110deg, transparent, rgb(255 255 255 / 45%), transparent); pointer-events: none; }
.nfx-project-tools .nfx-tool-cta-arrow { display: block; flex: 0 0 16px; width: 16px; height: 16px; transition: transform 180ms ease; }
@keyframes nfx-cta-attention { 0%,100% { box-shadow: 0 0 0 0 rgb(255 174 89 / 0%); } 40% { box-shadow: 0 0 0 7px rgb(255 174 89 / 24%), 0 6px 16px rgb(22 57 88 / 11%); } 85% { box-shadow: 0 0 0 12px rgb(255 174 89 / 0%); } }
@keyframes nfx-cta-sheen { 0% { opacity: 0; transform: translateX(0) skewX(-18deg); } 18% { opacity: .8; } 80%,100% { opacity: 0; transform: translateX(280%) skewX(-18deg); } }
@keyframes nfx-cta-nudge { 0%,35%,70%,100% { transform: translateX(0); } 18%,52% { transform: translateX(4px); } }
.nfx-project-tools .nfx-tool--roi.has-attention .btn { animation: nfx-cta-attention 1800ms ease-out; }
.nfx-project-tools .nfx-tool--roi.has-attention .btn::after { animation: nfx-cta-sheen 1500ms ease-out; }
.nfx-project-tools .nfx-tool--roi.has-attention .nfx-tool-cta-arrow { animation: nfx-cta-nudge 1800ms ease-in-out; }
.nfx-project-tools .apple-stage { display: flex; justify-content: center; align-items: center; position: relative; width: 100%; height: 220px; margin-top: 21px; pointer-events: none; }
.nfx-project-tools .apple-ui { width: min(374px, 97%); background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 0; box-shadow: 0 15px 28px rgb(22 57 88 / 9%); transform: none; transition: box-shadow 440ms ease; }
.nfx-project-tools .apple-ui-top { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #edf0f2; padding: 0 15px; text-align: left; }
.nfx-project-tools .apple-ui-name { color: var(--primary); font-size: 12px; font-weight: 600; }
.nfx-project-tools .apple-ui-place { font-size: 10px; color: var(--text2); }
.nfx-project-tools .apple-ui-body { display: grid; grid-template-columns: .9fr 1.35fr; min-height: 151px; padding: 15px; gap: 16px; text-align: left; }
.nfx-project-tools .apple-ui-fields { display: flex; flex-direction: column; gap: 13px; }
.nfx-project-tools .apple-ui-field > span { font-size: 10px; color: #59616b; display: block; margin-bottom: 6px; }
.nfx-project-tools .apple-ui-field > div { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 29px; padding: 5px 7px; background: #f5f5f7; border-radius: 5px; color: #79828d; font-size: 10px; white-space: nowrap; }
.nfx-project-tools .apple-ui-field i { width: 40%; height: 3px; border-radius: 3px; background: #bbc7cf; }
.nfx-project-tools .apple-ui-field b { font-weight: 500; }
.nfx-project-tools .apple-ui-results { display: flex; flex-direction: column; min-width: 0; }
.nfx-project-tools .apple-ui-chart-name { font-size: 10px; font-weight: 500; color: var(--primary); }
.nfx-project-tools .apple-ui-chart { width: 100%; height: 87px; overflow: visible; margin-top: 6px; }
.nfx-project-tools .apple-ui-chart .chart-axis { stroke: #dde4e9; stroke-width: 1; fill: none; }
.nfx-project-tools .apple-ui-chart .chart-area { fill: #163958; fill-opacity: .045; }
.nfx-project-tools .apple-ui-chart .diagram-trace-base { fill: none; stroke: #163958; stroke-opacity: .18; stroke-width: 2.5; }
.nfx-project-tools .apple-ui-chart .diagram-trace { fill: none; stroke: #163958; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.nfx-project-tools .apple-ui-result-labels { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 4px; font-size: 10px; color: #59616b; }
.nfx-project-tools .equipment-stage { gap: 19px; align-items: flex-end; padding-bottom: 3px; }
.nfx-project-tools .equipment-stage::before { content: ""; position: absolute; width: 230px; max-width: 85%; height: 12px; border-radius: 50%; background: #163958; opacity: .065; filter: blur(8px); bottom: 0; }
.nfx-project-tools .equipment-stage img { display: block; max-width: 45%; height: auto; object-fit: contain; filter: drop-shadow(4px 9px 7px rgb(22 57 88 / 10%)); position: relative; transition: transform 440ms cubic-bezier(.2,.7,.2,1); }
.nfx-project-tools .equipment-stage .apple-pv { width: 102px; height: 218px; }
.nfx-project-tools .equipment-stage .apple-battery { width: 99px; height: 202px; }
.nfx-project-tools .apple-stage-caption { display: block; color: var(--text2); font-size: 11px; font-weight: 400; line-height: 1.5; margin-top: 10px; }
.eg-main .nfx-project-tools .nfx-tool:focus-visible { outline: 3px solid var(--primary); outline-offset: -5px; }
.nfx-project-tools .nfx-tool:focus-visible .btn, .nfx-project-tools.preview-motion .btn { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgb(22 57 88 / 18%); }
.nfx-project-tools .nfx-tool--roi:focus-visible .btn, .nfx-project-tools.preview-motion .nfx-tool--roi .btn { background: #ff9b32; border-color: #ff9b32; color: var(--primary); }
.nfx-project-tools .nfx-tool:focus-visible .nfx-tool-cta-arrow, .nfx-project-tools.preview-motion .nfx-tool-cta-arrow { transform: translateX(3px); }
.nfx-project-tools .nfx-tool:focus-visible .apple-ui, .nfx-project-tools.preview-motion .apple-ui { transform: none; box-shadow: 0 19px 30px rgb(22 57 88 / 11%); }
.nfx-project-tools .nfx-tool:focus-visible .equipment-stage img, .nfx-project-tools.preview-motion .equipment-stage img { transform: translateY(-4px); }
@keyframes apple-chart-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.nfx-project-tools .nfx-tool:focus-visible .diagram-trace, .nfx-project-tools.preview-motion .diagram-trace { animation: apple-chart-trace 650ms cubic-bezier(.2,.6,.3,1) both; }
@media (hover:hover) and (pointer:fine) {
  .nfx-project-tools .nfx-tool:hover { background: #f0f1f3; }
  .nfx-project-tools .nfx-tool:hover .btn { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgb(22 57 88 / 18%); }
  .nfx-project-tools .nfx-tool--roi:hover .btn { background: #ff9b32; border-color: #ff9b32; color: var(--primary); }
  .nfx-project-tools .nfx-tool:hover .nfx-tool-cta-arrow { transform: translateX(3px); }
  .nfx-project-tools .nfx-tool:hover .apple-ui { transform: none; box-shadow: 0 19px 30px rgb(22 57 88 / 11%); }
  .nfx-project-tools .nfx-tool:hover .equipment-stage img { transform: translateY(-4px); }
  .nfx-project-tools .nfx-tool:hover .diagram-trace { animation: apple-chart-trace 650ms cubic-bezier(.2,.6,.3,1) both; }
}
.nfx-project-tools .nfx-tool:is(:active,.is-pressed) .btn { background: #102c45; border-color: #102c45; color: #fff; transform: translateY(0) scale(.97); box-shadow: 0 1px 3px rgb(22 57 88 / 14%); transition-duration: 80ms; }
.nfx-project-tools .nfx-tool--roi:is(:active,.is-pressed) .btn { background: #f38b20; border-color: #f38b20; color: var(--primary); }
.nfx-project-tools .nfx-tool:is(:active,.is-pressed) .nfx-tool-cta-arrow { transform: translateX(1px); transition-duration: 80ms; }
@media (max-width: 1050px) {
  .nfx-project-tools .tile { padding-inline: 22px; }
  .eg-main .nfx-project-tools .tile h3 { font-size: 27px; }
  .nfx-project-tools .apple-ui-body { padding: 13px; gap: 12px; }
}
@media (max-width: 760px) {
  .nfx-project-tools { padding: 38px 0 44px; }
  .nfx-project-tools .inner-wrap { width: calc(100% - 38px); }
  .nfx-tools-heading { margin-bottom: 25px; }
  .eg-main .nfx-project-tools h2 { font-size: 30px; }
  .eg-main .nfx-project-tools .nfx-tools-heading p { font-size: 16px; margin-top: 10px; }
  .nfx-tools-workbench.tiles { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .nfx-project-tools .tile { padding: 28px 21px 21px; }
  .eg-main .nfx-project-tools .tile h3 { font-size: 26px; }
  .eg-main .nfx-project-tools .nfx-tool-copy { min-height: 0; font-size: 15px; margin-top: 11px; }
  .nfx-project-tools .links { margin-top: 18px; }
  .nfx-project-tools .apple-stage { margin-top: 20px; height: 204px; }
  .nfx-project-tools .equipment-stage .apple-pv { height: 202px; width: 94px; }
  .nfx-project-tools .equipment-stage .apple-battery { height: 187px; width: 91px; }
  .nfx-project-tools .apple-ui-body { gap: 10px; padding: 12px; }
  .nfx-project-tools .apple-ui-top { padding-inline: 12px; }
  .nfx-project-tools .apple-ui-field > div { padding-inline: 6px; }
}
@media (max-width: 360px) {
  .nfx-project-tools .tile { padding-inline: 17px; }
  .eg-main .nfx-project-tools .tile h3 { font-size: 24px; }
  .nfx-project-tools .apple-ui-body { padding: 10px; gap: 8px; grid-template-columns: .9fr 1.1fr; }
  .nfx-project-tools .apple-ui-place { font-size: 9px; }
  .nfx-project-tools .apple-ui-field > div { font-size: 9px; }
  .nfx-project-tools .apple-ui-result-labels { font-size: 9px; gap: 5px 10px; }
}
@media (prefers-reduced-motion:reduce) {
  .nfx-project-tools *, .nfx-project-tools *::before, .nfx-project-tools *::after { animation: none !important; transition: none !important; transform: none !important; }
}

/* Keep inserted tool entries from inheriting the case-page section title scale. */
#case-main .nfx-roi-entry h2 { font-size: clamp(1.3rem,2.3vw,1.8rem); font-weight: 600; line-height: 1.4; }
#case-main .nfx-select-entry h2 { font-size: 21px; font-weight: 600; line-height: 1.42; }

.nfx-select-masthead .nfx-roi-crosslink{color:#fff;}
