/* NST Tools / Editorial design study 01. Provisional tokens; exact Divi fonts/colors TBD. */
.nst-tool {
  --nst-red: #c70e20;
  --nst-red-hover: #a50b19;
  --nst-paper: #fff;
  --nst-ink: #272727;
  --nst-muted: #595959;
  --nst-line: #d2d2d2;
  --nst-black: #101010;
  --nst-serif: var(--nst-display-font, Georgia, 'Times New Roman', serif);
  --nst-sans: var(--nst-body-font, inherit);
  color: var(--nst-ink); background: var(--nst-paper); font-family: var(--nst-sans); font-size: 16px; line-height: 1.55;
  max-width: 1320px; margin: 0 auto; text-align: left; isolation: isolate; color-scheme: light;
}
.nst-tool * { box-sizing: border-box; }
.nst-tool [hidden] { display: none !important; }
.nst-tool h2,.nst-tool h3,.nst-tool p { color: inherit; margin: 0; padding: 0; line-height: 1.35; letter-spacing: normal; }
.nst-tool h2,.nst-tool h3 { font-family: var(--nst-serif); }
.nst-tool h2 { font-size: clamp(34px,5.1vw,68px); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; }
.nst-tool h3 { font-size: clamp(23px,2.2vw,32px); font-weight: 700; letter-spacing: -.025em; }
.nst-tool p { font-size: 15px; line-height: 1.6; }
.nst-tool .nst-muted { color: var(--nst-muted); font-size: 13px; line-height: 1.5; }
.nst-tool .nst-eyebrow { display: block; font-size: 11px; letter-spacing: .13em; line-height: 1.4; font-weight: 750; text-transform: uppercase; color: var(--nst-red); }
.nst-tool .nst-head { padding: 42px 0 28px; border-bottom: 2px solid var(--nst-line); }
.nst-tool .nst-head .nst-eyebrow { border-left: 3px solid var(--nst-red); padding: 3px 0 3px 11px; }
.nst-tool .nst-head h2 { margin: 14px 0 12px; }
.nst-tool .nst-head p { color: var(--nst-muted); max-width: 740px; font-size: 16px; }
.nst-tool .nst-body { padding: 32px 0 0; }
.nst-tool .nst-main { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: clamp(24px,4vw,64px); align-items: start; }
.nst-tool .nst-panel { min-width: 0; padding: 0; }
.nst-tool .nst-panel h3 { margin-bottom: 10px; }
.nst-tool .nst-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 20px; }
.nst-tool .nst-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nst-tool .nst-field label,.nst-tool legend { font-weight: 650; font-size: 13px; line-height: 1.4; color: var(--nst-ink); }
.nst-tool input,.nst-tool select,.nst-tool button { font: inherit; line-height: 1.25; max-width: 100%; min-height: 46px; border-radius: 2px; text-transform: none; letter-spacing: normal; box-shadow: none; appearance: auto; }
.nst-tool input,.nst-tool select { background: #fff; color: var(--nst-ink); border: 1px solid #898989; width: 100%; padding: 11px 12px; font-variant-numeric: tabular-nums; }
.nst-tool input[type=number] { font-size: 18px; font-weight: 600; }
.nst-tool input:hover,.nst-tool select:hover { border-color: #333; }
.nst-tool input:focus,.nst-tool select:focus,.nst-tool button:focus-visible,.nst-tool summary:focus-visible,.nst-tool a:focus-visible,.nst-tool [tabindex]:focus-visible { outline: 3px solid var(--nst-red); outline-offset: 3px; }
.nst-tool input[aria-invalid=true] { border: 2px solid var(--nst-red); }
.nst-tool button { cursor: pointer; background: #fff; color: var(--nst-ink); border: 1px solid #888; padding: 11px 16px; font-weight: 650; font-size: 14px; white-space: normal; }
.nst-tool button:hover { border-color: #222; background: #f3f3f3; }
.nst-tool button:disabled { opacity: .55; cursor: not-allowed; }
.nst-tool button.nst-primary,.nst-tool button[data-action=eia] { background: var(--nst-red); color: #fff; border-color: var(--nst-red); }
.nst-tool button.nst-primary:hover,.nst-tool button[data-action=eia]:hover { background: var(--nst-red-hover); border-color: var(--nst-red-hover); }
.nst-tool button[data-action=price-mode][aria-pressed=true] { background: var(--nst-black); color: #fff; border-color: var(--nst-black); }
.nst-tool .nst-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nst-tool .nst-space { margin-top: 18px; }
.nst-tool .nst-main>section:first-child>.nst-fields { margin-top: 23px; padding-bottom: 20px; border-bottom: 1px solid var(--nst-line); }
.nst-tool .nst-main>section:first-child>.nst-field.nst-space { margin-top: 19px; }
/* A single editorial result block, not a collection of tiles. */
.nst-tool .nst-results { background: var(--nst-black); color: #fff; padding: clamp(22px,3vw,36px); border-top: 4px solid var(--nst-red); }
.nst-tool .nst-results h3 { color: #fff; font-size: clamp(21px,2vw,27px); margin-bottom: 23px; }
.nst-tool .nst-results .nst-muted,.nst-tool .nst-results .nst-result-label { color: #d0d0d0; }
.nst-tool .nst-result-label { font-size: 13px; font-weight: 600; display: block; color: var(--nst-muted); }
.nst-tool .nst-kpi { display: block; color: var(--nst-ink); font-family: var(--nst-serif); font-size: clamp(37px,5.6vw,72px); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.05em; line-height: 1.12; overflow-wrap: anywhere; margin: 3px 0 10px; }
.nst-tool .nst-results .nst-kpi { color: #fff; }
.nst-tool .nst-kpi[data-negative=true] { color: var(--nst-red); }
.nst-tool .nst-results .nst-kpi[data-negative=true] { color: #ffb6b9; }
.nst-tool .nst-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 22px; margin-top: 25px; }
.nst-tool .nst-metric { border-top: 1px solid #666; padding: 10px 0 0; min-width: 0; }
.nst-tool .nst-metric strong { display: block; margin-top: 5px; font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.nst-tool .nst-bars { margin-top: 25px; display: grid; gap: 14px; }
.nst-tool .nst-bar-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; flex-wrap: wrap; padding-bottom: 4px; }
.nst-tool .nst-track { height: 7px; background: #444; overflow: hidden; }
.nst-tool .nst-fill { height: 100%; width: 0; background: #c9c9c9; }
.nst-tool .nst-fill.alt { background: #e32c3c; }
.nst-tool .nst-disclaimer { border-top: 1px solid #666; padding-top: 16px; margin-top: 24px; font-size: 12px; color: #ccc; line-height: 1.6; }
.nst-tool .nst-results a { color: #fff; text-underline-offset: 3px; }
.nst-tool .nst-results a:focus-visible { outline-color: #fff; }
/* Advanced tools read like a contents list, with expansion on demand. */
.nst-tool details { margin: 0; padding: 0; background: transparent; border: 0; border-top: 1px solid var(--nst-line); }
.nst-tool .nst-main+details { margin-top: 38px; border-top: 2px solid var(--nst-ink); }
.nst-tool summary { cursor: pointer; display: list-item; min-height: 58px; padding: 17px 4px; color: var(--nst-ink); font-family: var(--nst-serif); font-size: clamp(19px,2vw,24px); font-weight: 700; line-height: 1.35; }
.nst-tool summary::marker { color: var(--nst-red); font-size: .76em; }
.nst-tool summary:hover { color: var(--nst-red); }
.nst-tool details>div { padding: 3px 0 26px; }
.nst-tool details[open]>summary { color: var(--nst-red); }
.nst-tool .nst-tablewrap { overflow-x: auto; margin-top: 20px; }
.nst-tool table { width: 100%; border-collapse: collapse; table-layout: auto; color: var(--nst-ink); font-size: 14px; margin: 0; border: 0; background: transparent; }
.nst-tool th,.nst-tool td { padding: 12px 9px; border: 0; border-bottom: 1px solid var(--nst-line); text-align: right; font-variant-numeric: tabular-nums; vertical-align: top; background: transparent; color: inherit; white-space: nowrap; }
.nst-tool th:first-child,.nst-tool td:first-child { text-align: left; }
.nst-tool thead th { background: #f4f4f4; color: var(--nst-ink); font-weight: 650; }
.nst-tool .nst-scenario { border: 1px solid var(--nst-line); padding: 16px; margin: 14px 0; min-width: 0; }
.nst-tool .nst-scenario legend { padding: 0 8px; }
.nst-tool details .nst-panel { border-left: 3px solid var(--nst-red); padding: 15px 20px; background: #f5f5f5; }
.nst-tool .nst-error { color: #a50919; padding: 10px 0; font-size: 14px; font-weight: 650; }
.nst-tool .nst-results .nst-error { color: #ffb6b9; }
.nst-tool .nst-status { color: var(--nst-muted); min-height: 22px; font-size: 13px; margin: 8px 0; }
.nst-tool .nst-footer { padding: 17px 0; border-top: 2px solid var(--nst-line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nst-tool a { color: #a50b19; text-decoration: underline; text-underline-offset: 2px; }
.nst-tool .nst-record { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 12px; margin: 12px 0; align-items: end; }
.nst-tool .nst-record button { padding: 9px 12px; }
.nst-tool .nst-loading { padding: 24px; }
.nst-tool .nst-wide { grid-column: 1/-1; }
.nst-tool .nst-nowrap { white-space: nowrap; }
.nst-tool .nst-method { white-space: normal; overflow-wrap: anywhere; }
.nst-tool .nst-print { display: none; }
@media (max-width: 820px) {
 .nst-tool .nst-main { grid-template-columns: 1fr; gap: 28px; }
 .nst-tool .nst-head { padding: 28px 0 20px; }
 .nst-tool .nst-body { padding: 23px 0 0; }
 .nst-tool .nst-kpi { font-size: clamp(40px,8vw,62px); }
 .nst-tool .nst-main+details { margin-top: 28px; }
}
@media (max-width: 480px) {
 .nst-tool .nst-fields { gap: 14px; }
 .nst-tool .nst-main>section:first-child .nst-field label { min-height: 2.7em; }
 .nst-tool .nst-main>section:first-child>.nst-field label { min-height: 0; }
 .nst-tool .nst-metrics { gap: 16px 12px; }
 .nst-tool .nst-metric strong { font-size: 21px; }
 .nst-tool .nst-results { padding: 20px; }
 .nst-tool .nst-record { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .nst-tool .nst-record button { grid-column: 1/-1; }
}
@media (max-width: 355px) {
 .nst-tool .nst-fields { grid-template-columns: 1fr; }
 .nst-tool .nst-main>section:first-child .nst-field label { min-height: 0; }
 .nst-tool .nst-kpi { font-size: 36px; }
 .nst-tool .nst-metric strong { font-size: 18px; }
}
@media print {
 .nst-tool { color: #000!important; background: #fff!important; max-width: none; }
 .nst-tool .nst-print { display: block; color: #000; padding: 20px; white-space: pre-wrap; font: 12pt/1.5 system-ui; }
 .nst-tool .nst-head,.nst-tool .nst-body,.nst-tool .nst-footer { display: none!important; }
}
