/* Estimated Energy Requirement for adults (v38-r15). Same-origin only; no inline styles on the page. */
@font-face { font-family: "Jost"; src: url("../assets/fonts/jost-300.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../assets/fonts/jost-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../assets/fonts/jost-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body { margin: 0; background: #000; color: #ececec; font-family: "Jost", "Futura", "Trebuchet MS", sans-serif; font-weight: 400; font-size: 18px; line-height: 1.5; }
a { color: #62d736; text-decoration: underline; overflow-wrap: break-word; word-break: normal; }
:focus-visible { outline: 3px solid #62d736; outline-offset: 3px; }
.page { width: 100%; margin: 0 auto; background: #000; min-width: 0; }

.er-main { max-width: 74rem; margin: 0 auto; padding: 24px 20px 24px; min-width: 0; }
.er-main h1 { margin: 0 0 16px; font-size: clamp(26px, 5vw, 46px); font-weight: 400; line-height: 1.15; color: #62d736; overflow-wrap: break-word; word-break: normal; }
.er-main h2 { margin: 28px 0 12px; font-size: 26px; font-weight: 700; line-height: 1.25; color: #62d736; overflow-wrap: break-word; word-break: normal; }
.er-main p, .er-main li, .er-main label, .er-main legend { margin: 0 0 12px; overflow-wrap: break-word; word-break: normal; }
.er-main ul { margin: 0 0 16px; padding-left: 1.4em; }
.er-main label, .er-main legend { margin: 0; }

.er-top { margin: 0 0 16px; padding: 12px 16px; background: #000; border: 1px solid #6b6b6b; border-left-width: 4px; border-left-style: solid; border-left-color: #62d736; }
.er-top p { margin: 0 0 4px; }
.er-top p:last-child { margin-bottom: 0; }
.er-top a { display: inline-block; min-height: 44px; padding: 10px 0; }
.tool-fallback { padding: 12px 16px; border: 1px solid #6b6b6b; }
.disclaimer { font-weight: 400; }
.privacy-line { margin: 12px 0; font-size: 16px; }

.er-panel { margin: 16px 0 20px; padding: 20px 22px; background: #000; border-top: 8px solid #62d736; min-width: 0; }
fieldset { margin: 0 0 16px; padding: 12px 16px 16px; border: 2px solid #62d736; background: #000; min-width: 0; }
legend { padding: 0 6px; font-weight: 400; color: #ececec; }
.choice { display: inline-flex; align-items: center; gap: 8px; margin: 8px 16px 0 0; min-height: 44px; }
input[type="radio"] { accent-color: #62d736; width: 20px; height: 20px; margin: 0; }
.fields { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; margin: 0 0 8px; }
.fields .er-help { flex-basis: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
input[type="text"] { border: 2px solid #62d736; background: #000; color: #ececec; padding: 10px 12px; min-height: 44px; width: 160px; max-width: 100%; font: inherit; }
.er-help { margin: 4px 0 12px; font-size: 16px; font-weight: 300; }
.er-level { margin: 0 0 8px; }
.er-quote { margin: 4px 0 4px 1.2em; padding: 0 0 0 12px; border-left: 3px solid #62d736; }
.er-quote p { margin: 0; }
.er-main .er-cite { margin: 0 0 12px 1.2em; font-size: 16px; }
.er-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 8px 0 12px; }
.calc-button, .action { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; background: #62d736; color: #000; border: 2px solid #62d736; border-radius: 6px; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.action { font-size: 18px; font-weight: 400; }
.calc-hint { margin: 0 0 12px; font-weight: 400; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* v38-r15: unasked gate questions are set aside (disabled). Only the radios and their labels are dimmed (#8a8a8a on #000 is about 6.1:1);
   the legend, the note and the override button stay at full contrast. */
fieldset:disabled .choice, fieldset:disabled .choice input { color: #8a8a8a; }
#eer-override { margin: 0 0 16px; }
.er-notice { margin: 4px 0 12px; font-size: 18px; font-weight: 400; overflow-wrap: break-word; }
.er-message { margin: 0 0 16px; }
.er-message p { margin: 0 0 8px; font-weight: 400; }
.er-result { margin: 16px 0 20px; }
.er-result-line { font-size: 22px; font-weight: 400; }
.support ul, .sources { padding-left: 1.2em; margin: 8px 0 12px; }
.support li, .sources li { margin: 0.45em 0; }
.sources a { overflow-wrap: anywhere; }
details { margin: 12px 0 28px; }
summary { cursor: pointer; font-size: 22px; font-weight: 400; min-height: 44px; }
.er-eq-group { margin: 12px 0 4px; font-weight: 400; }
.er-eq-list { padding-left: 1.2em; margin: 0 0 12px; }
.er-eq { overflow-wrap: anywhere; }

.er-foot { max-width: 74rem; margin: 0 auto; padding: 8px 20px 24px; font-size: 16px; border-top: 1px solid #6b6b6b; }
.er-foot p { margin: 12px 0; overflow-wrap: break-word; word-break: normal; }
.legal { margin: 0; min-height: 60px; display: flex; align-items: center; justify-content: center; padding: 8px 16px; background: #62d736; color: #000; font-size: 16px; text-align: center; }

@media (max-width: 639px) {
  .er-main { padding: 20px 16px 24px; }
  .er-panel { padding: 16px 12px; }
  .er-foot { padding: 8px 16px 24px; }
  .calc-button, .action { width: 100%; }
}

@media (forced-colors: active) {
  fieldset, .er-panel, .er-top { border-color: CanvasText; }
  .er-quote { border-left-color: CanvasText; }
  .calc-button, .action { border: 2px solid ButtonText; background: ButtonFace; color: ButtonText; }
  .er-main a, .er-foot a, .er-top a { color: LinkText; text-decoration: underline; }
}

@media print {
  body { font-size: 12pt; color: #000; background: #fff; }
  .page, .er-main, .er-top, .er-panel, fieldset, .er-foot { background: #fff; color: #000; }
  .er-main h1, .er-main h2, legend { color: #000; }
  a { color: #000; text-decoration: underline; }
  input[type="text"] { background: #fff; color: #000; border: 1px solid #000; }
  fieldset:disabled .choice, fieldset:disabled .choice input { color: #000; }
  fieldset, .er-top, .er-panel { border-color: #000; }
  .er-quote { border-left-color: #000; }
  .menu-toggle, .nav, .accent-bar, .calc-button, .action, .calc-hint { display: none !important; }
  .legal { background: #fff; color: #000; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
