body.tools-page {
  color: #18212a !important;
  background: #f2f5f8 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Component rules set display values, so preserve the semantic hidden state. */
.tools-page [hidden] { display: none !important; }

.tools-page .legacy-content {
  padding: 0 0 76px;
  background: linear-gradient(180deg, #edf3f8 0, #f7f8fa 470px, #f7f8fa 100%);
}

.tools-page .legacy-content>* {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}


.tools-page .page-header-tools {
  width: 100%;
  min-height: 340px;
  margin: 0;
  padding: 72px 0;
  display: grid;
  align-items: center;
  color: #fff;
  background: radial-gradient(circle at 82% 20%, rgba(20, 139, 230, .3), transparent 31%), linear-gradient(135deg, #081522, #123c5e) !important;
}

.tools-page .page-header-tools .container {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

.tools-page .page-header-tools h1 {
  max-width: 680px;
  margin: 10px 0 16px;
  color: #fff;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.tools-page .tools-eyebrow {
  color: #8fd0ff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tools-page .page-header-tools p {
  max-width: 660px;
  margin: 0;
  color: #c4d4e2;
  font-size: 18px;
  line-height: 1.65;
}

.tools-page .tools-section {
  padding: 56px 0 10px;
}

.tools-page .tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tools-page .tool-card {
  min-height: 360px;
  display: flex;
  overflow: hidden;
  border: 1px solid #dce4ea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(19, 40, 58, .07);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.tools-page .tool-card:hover {
  transform: translateY(-7px);
  border-color: #a9d1f3;
  box-shadow: 0 24px 60px rgba(19, 67, 105, .13);
}

.tools-page .tool-card-content {
  width: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tools-page .tool-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 34px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #0874d1;
  background: #eaf4fd;
  font-size: 24px;
}

.tools-page .tool-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tools-page .tool-card h2,
.tools-page .tool-card h3 {
  margin: 0 0 14px;
  color: #17222c;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.tools-page .tool-card p {
  margin: 0 0 28px;
  color: #65717b;
  line-height: 1.65;
}

.tools-page .tool-btn {
  min-height: 44px;
  margin-top: auto;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  color: #fff;
  background: #0874d1;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.tools-page .tool-btn:hover,
.tools-page .tool-btn:focus-visible {
  color: #fff;
  background: #0567bc;
  box-shadow: 0 0 0 4px rgba(8, 116, 209, .15);
}

.tools-page .tools-guide {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 42px;
  margin-top: 52px;
  padding: 42px;
  border: 1px solid #dce4ea;
  border-radius: 24px;
  background: #fff;
}

.tools-page .tools-guide h2,
.tools-page .tools-cta h2 { margin: 10px 0 14px; color: #17222c; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.04em; }
.tools-page .tools-guide p,
.tools-page .tools-cta p { margin: 0; color: #63717b; font-size: 16px; line-height: 1.65; }
.tools-page .tools-guide-points { display: grid; gap: 12px; }
.tools-page .tools-guide-points article { display: grid; gap: 5px; padding: 18px 20px; border: 1px solid #e1e8ee; border-radius: 14px; background: #f8fbfd; }
.tools-page .tools-guide-points strong { color: #0874d1; font-size: 14px; }
.tools-page .tools-guide-points span { color: #52616c; font-size: 14px; line-height: 1.45; }

.tools-page .tools-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 26px;
  padding: 42px;
  border-radius: 24px;
  color: #fff;
  /* Override the generic alternating-section background in responsive.css. */
  background: radial-gradient(circle at 85% 20%, rgba(42, 152, 237, .35), transparent 32%), linear-gradient(135deg, #0b1724, #123c5e) !important;
}
.tools-page .tools-cta .tools-eyebrow { color: #9bd5ff; }
.tools-page .tools-cta h2 { max-width: 720px; color: #fff; }
.tools-page .tools-cta p { max-width: 690px; color: #c4d4e2; }
.tools-page .tools-cta .button { flex: 0 0 auto; white-space: nowrap; }


.tools-page .intro,
.tools-page .tool-intro,
.tools-page .hero {
  position: relative;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(41, 151, 236, .3), transparent 30%), linear-gradient(135deg, #0b1724, #12334c) !important;
  box-shadow: 0 22px 55px rgba(16, 42, 62, .15);
}

.tools-page .intro {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding: 54px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 0 0 24px 24px;
}

.tools-page .intro-icon {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
}

.tools-page .intro-icon svg {
  width: 38px;
}

.tools-page .intro h1,
.tools-page .tool-intro h1,
.tools-page .hero h1 {
  color: #fff;
  letter-spacing: -.045em;
}

.tools-page .intro h1 {
  margin: 0 0 8px;
  font-size: clamp(38px, 5vw, 62px);
}

.tools-page .intro p {
  margin: 0;
  color: #c4d4e2;
}

.tools-page .layout {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 20px;
  align-items: start;
}

.tools-page .card,
.tools-page .panel,
.tools-page .input-card,
.tools-page .results-panel,
.tools-page .result-panel,
.tools-page .info-box {
  border-color: #dce4ea;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(19, 40, 58, .06);
}

.tools-page .result-panel,
.tools-page .results-panel {
  position: static;
}

.tools-page input,
.tools-page select {
  border-color: #cad5df;
  border-radius: 10px;
  background-color: #fff;
}

.tools-page input:focus,
.tools-page select:focus {
  border-color: #0874d1;
  box-shadow: 0 0 0 3px rgba(8, 116, 209, .12);
  outline: 0;
}

.tools-page .calc-btn {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #0874d1;
  box-shadow: 0 10px 24px rgba(8, 116, 209, .22);
  cursor: pointer;
}

.tools-page .calc-btn:hover {
  background: #0567bc;
  transform: translateY(-1px);
}

.tools-page .calculator-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.tools-page .calculator-actions .calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  font: inherit;
  font-weight: 700;
}

.tools-page .reset-link {
  min-height: 46px;
  padding: 0 10px;
  border: 0;
  color: #52616c;
  background: transparent;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.tools-page .reset-link:hover,
.tools-page .reset-link:focus-visible {
  color: #0874d1;
  text-decoration: underline;
}


.tools-page .tool-wrapper {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto !important;
  padding-top: 48px;
}

.tools-page .tool-intro {
  margin-bottom: 20px;
  padding: 42px;
  border-radius: 24px;
}

.tools-page .tool-intro .badge {
  border-color: rgba(255, 255, 255, .18);
  color: #9ed2ff;
}

.tools-page .tool-intro h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 60px);
}

.tools-page .tool-intro p {
  max-width: 760px;
  color: #c4d4e2;
  font-size: 17px;
  line-height: 1.6;
}

.tools-page .calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 20px;
  align-items: start;
}


.tools-page .legacy-content>div[style*="max-width: 1100px"] {
  width: min(1180px, calc(100% - 48px));
  max-width: none !important;
  margin-top: 0 !important;
  padding: 64px 0 0 !important;
}

.tools-page .hero {
  padding: 42px;
  border-radius: 24px;
  text-align: left;
}

.tools-page .hero .fixture-icon {
  width: 72px;
}

.tools-page .hero-eyebrow {
  color: #85c6ff !important;
}

.tools-page .hero>p:not(.hero-eyebrow) {
  max-width: 760px;
  color: #c4d4e2;
}

.tools-page .standards-badge .badge {
  border-color: rgba(255, 255, 255, .18);
  color: #d8eaff;
  background: rgba(255, 255, 255, .08);
}

.tools-page .main-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 20px auto 0 !important;
  gap: 20px;
}

/* Keep the three calculator layouts visually consistent while their established
   calculation markup and scripts remain untouched. */
.tools-page .card,
.tools-page .panel,
.tools-page .input-card,
.tools-page .results-panel,
.tools-page .result-panel,
.tools-page .info-box {
  box-shadow: 0 12px 32px rgba(19, 40, 58, .07);
}

.tools-page .field label,
.tools-page .field-label label {
  color: #263947;
  font-weight: 650;
}

.tools-page .field-hint,
.tools-page .hint {
  line-height: 1.45;
}

.tools-page .placeholder-state,
.tools-page .empty-state {
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 32px;
}

.tools-page .engineering-tool-limitations {
  width: min(1180px, calc(100% - 48px));
  margin: 38px auto 0;
  padding: 22px 24px;
  border: 1px solid #dce4ea;
  border-left: 4px solid #0874d1;
  border-radius: 14px;
  background: #fff;
  color: #53616b;
  font-size: 14px;
  line-height: 1.55;
}

.tools-page .engineering-tool-limitations strong { color: #1d2d39; }
.tools-page .engineering-tool-limitations ul { padding-left: 18px !important; }

.tools-page .floating-requirement { display: none; }

/* Calculator controls formerly styled by the retired stylesheet. */
.tools-page .card,
.tools-page .panel { padding: 26px; }

.tools-page .layout .row,
.tools-page .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.tools-page .field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tools-page .input-wrap { position: relative; display: flex; }
.tools-page .input-wrap input[type="number"],
.tools-page .styled-select,
.tools-page .input-group input[type="number"],
.tools-page .panel-body input[type="number"],
.tools-page .panel-body select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #cad5df;
  border-radius: 10px;
  color: #18212a;
  font: inherit;
  background: #fff;
}

.tools-page .input-wrap input[type="number"] { padding-right: 66px; }
.tools-page .styled-select,
.tools-page .panel-body select { appearance: auto; }
.tools-page .unit-tog {
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 7px;
  background: #e8eef5;
}
.tools-page .unit-btn,
.tools-page .stepper button {
  border: 0;
  border-radius: 5px;
  color: #43525e;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.tools-page .unit-btn { min-width: 28px; padding: 4px 6px; }
.tools-page .unit-btn.active { color: #0874d1; background: #fff; box-shadow: 0 1px 3px rgba(19, 40, 58, .12); }
.tools-page .stepper { display: grid; grid-template-columns: 42px 1fr 42px; overflow: hidden; border: 1px solid #cad5df; border-radius: 10px; }
.tools-page .stepper button { font-size: 20px; }
.tools-page .stepper input { width: 100%; min-height: 44px; border: 0; border-inline: 1px solid #cad5df; text-align: center; font: inherit; }
.tools-page .sec-label,
.tools-page .section-label,
.tools-page .optional-label { margin: 0 0 16px; color: #0874d1; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.tools-page .hint,
.tools-page .field-hint { color: #6d7a84; font-size: 12px; }
.tools-page .info-box { margin-top: 16px; padding: 24px; }
.tools-page .info-box h2 { margin: 0 0 16px; font-size: 18px; }
.tools-page .formula-grid { display: grid; gap: 10px; }
.tools-page .formula-item { display: grid; grid-template-columns: 108px 1fr; gap: 8px; color: #596773; font-size: 13px; line-height: 1.45; }
.tools-page .formula-item strong { color: #263947; }

.tools-page .input-card { overflow: hidden; }
.tools-page .card-head,
.tools-page .panel-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid #dce4ea; background: #f6f9fc; }
.tools-page .card-head-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #e7f2fc; }
.tools-page .card-head h2,
.tools-page .panel-head-title { margin: 0; color: #1d2d39; font-size: 18px; }
.tools-page .card-head span,
.tools-page .panel-head-sub { display: block; margin-top: 3px; color: #687681; font-size: 12px; }
.tools-page .card-body,
.tools-page .panel-body { padding: 24px; }
.tools-page .field-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tools-page .unit-tag { padding: 2px 7px; border: 1px solid #dce4ea; border-radius: 5px; color: #60707d; font-size: 12px; }
.tools-page .section-divider { margin: 22px 0; border: 0; border-top: 1px dashed #cad5df; }
.tools-page .pf-row,
.tools-page .reflect-row { display: flex; align-items: center; gap: 10px; }
.tools-page .pf-row input[type="range"],
.tools-page .reflect-row input[type="range"] { flex: 1; min-width: 0; accent-color: #0874d1; }
.tools-page .pf-value-box,
.tools-page .reflect-val { color: #0874d1; font-weight: 750; }
.tools-page .pf-value-box { min-width: 64px; padding: 8px; border-radius: 8px; background: #eaf4fd; text-align: center; }
.tools-page .pf-zone-bar { display: flex; gap: 3px; height: 5px; margin-top: 8px; overflow: hidden; border-radius: 999px; }
.tools-page .pf-zone-bar .zone { flex: 1; background: #f6ad55; }
.tools-page .pf-zone-bar .zone-bad { background: #fc8181; }
.tools-page .pf-zone-bar .zone-good { flex: 3; background: #68d391; }
.tools-page .pf-zone-labels { display: flex; justify-content: space-between; color: #71808c; font-size: 11px; }
.tools-page .results-panel { display: grid; gap: 14px; }
.tools-page .placeholder-state h3 { margin: 0; color: #263947; font-size: 18px; }
.tools-page .placeholder-state p { max-width: 300px; margin: 0; color: #687681; line-height: 1.55; }
.tools-page #resultContent { display: grid; gap: 12px; }
.tools-page .result-head { padding: 24px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0874d1, #07569d); text-align: center; }
.tools-page .rh-label,
.tools-page .rb-label { font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.tools-page .rh-label { color: #d7ebfb; }
.tools-page .rh-tons { margin-top: 5px; font-size: 44px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.tools-page .rh-tons span { margin-left: 4px; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.tools-page .rh-sub { margin-top: 9px; color: #d7ebfb; font-size: 13px; }
.tools-page .rec-badge,
.tools-page .result-body { padding: 18px; border: 1px solid #dce4ea; border-radius: 14px; background: #fff; }
.tools-page .rec-badge { text-align: center; }
.tools-page .rb-label { color: #70808c; }
.tools-page .rb-val { margin-top: 4px; color: #0874d1; font-size: 28px; font-weight: 750; }
.tools-page .rb-note { margin-top: 4px; color: #71808c; font-size: 12px; }
.tools-page .ac-type-chip { padding: 16px; border: 1px solid #bdddF8; border-radius: 14px; background: #edf7ff; color: #4f6373; font-size: 13px; line-height: 1.45; }
.tools-page .ac-type-chip strong { display: block; color: #173c5d; font-size: 15px; }
.tools-page .ac-type-chip p { margin: 4px 0 0; }
.tools-page .stat-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; color: #66757f; font-size: 13px; }
.tools-page .stat-row + .stat-row { border-top: 1px solid #edf1f4; }
.tools-page .s-val { color: #263947; font-weight: 700; text-align: right; }
.tools-page .s-val.accent { color: #0874d1; }
.tools-page .result-panel .disclaimer { margin: 0; color: #6d7a84; font-size: 12px; line-height: 1.55; text-align: left; }

.tools-page .reflect-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.tools-page .reflect-field { min-width: 0; }
.tools-page .reflect-field label { color: #52616c; font-size: 12px; font-weight: 650; }
.tools-page .is-info { overflow: auto; border: 1px solid #dce4ea; border-radius: 14px; background: #fff; }
.tools-page .is-info-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #dce4ea; color: #263947; font-size: 13px; font-weight: 700; }
.tools-page .is-code-tag { color: #0874d1; font-size: 11px; white-space: nowrap; }
.tools-page .is-table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 12px; }
.tools-page .is-table th,
.tools-page .is-table td { padding: 10px 12px; border-bottom: 1px solid #edf1f4; text-align: left; }

/* Power-factor result components. These replace the retired page-specific stylesheet. */
.tools-page #right-panel { padding: 26px; }
.tools-page #results-container { display: none; }
.tools-page .instrument-block { overflow: hidden; border: 1px solid #dce4ea; border-radius: 16px; background: #fff; }
.tools-page .instrument-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #dce4ea; background: #f6f9fc; }
.tools-page .instrument-header .label,
.tools-page .mc-label { color: #60717d; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.tools-page .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #54b985; box-shadow: 0 0 0 4px rgba(84, 185, 133, .13); }
.tools-page .instrument-body { padding: 22px 18px; }
.tools-page .primary-metric { display: flex; align-items: baseline; gap: 10px; }
.tools-page .primary-metric .value { color: #0874d1; font-size: clamp(38px, 5vw, 54px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.tools-page .primary-metric .meta { display: grid; gap: 2px; }
.tools-page .primary-metric .unit { color: #263947; font-size: 17px; font-weight: 750; }
.tools-page .metric-name,
.tools-page .gauge-labels,
.tools-page .gauge-sub,
.tools-page .mc-sub { color: #71808c; font-size: 12px; }
.tools-page .gauge-container { margin-top: 22px; }
.tools-page .gauge-labels { display: flex; justify-content: space-between; gap: 12px; }
.tools-page .gauge-track { height: 8px; margin: 8px 0; overflow: hidden; border-radius: 999px; background: #e8eef4; }
.tools-page .gauge-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0e8fe2, #53b782); transition: width .45s ease; }
.tools-page .metric-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tools-page .metric-card { padding: 18px; border: 1px solid #dce4ea; border-radius: 14px; background: #f9fbfd; }
.tools-page .mc-value { margin: 8px 0 5px; color: #263947; font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.tools-page .mc-unit { margin-left: 4px; color: #60717d; font-size: 13px; font-weight: 650; letter-spacing: 0; }
.tools-page .formula-note { padding: 16px 18px; border-left: 3px solid #0874d1; border-radius: 8px; color: #5a6974; background: #f4f8fb; font-size: 13px; line-height: 1.6; }
.tools-page .formula-note strong { color: #263947; }

/* Electrical sizing and conversion calculators. */
.tools-page .calc-form { display: grid; gap: 18px; }
.tools-page .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tools-page .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tools-page .result-stack { display: grid; gap: 14px; }
.tools-page .result-hero { padding: 26px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0874d1, #07569d); }
.tools-page .result-hero small { display: block; color: #d4ebfd; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.tools-page .result-hero output { display: block; margin-top: 7px; font-size: clamp(34px, 4vw, 50px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.tools-page .result-hero p { margin: 10px 0 0; color: #d4ebfd; font-size: 13px; }
.tools-page .result-card { padding: 20px; border: 1px solid #dce4ea; border-radius: 15px; background: #fff; }
.tools-page .result-card h3 { margin: 0 0 12px; color: #263947; font-size: 16px; }
.tools-page .result-list { display: grid; gap: 0; margin: 0; }.tools-page .result-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #edf1f4; color: #687781; font-size: 13px; }.tools-page .result-list strong { color: #263947; text-align: right; }
.tools-page .notice { margin: 0; padding: 14px 16px; border-left: 3px solid #e5a72c; border-radius: 8px; color: #6a5a31; background: #fff9e9; font-size: 12px; line-height: 1.55; }
.tools-page .conversion-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }.tools-page .conversion-tabs button { padding: 9px 12px; border: 1px solid #cfdbe5; border-radius: 999px; color: #52616c; background: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }.tools-page .conversion-tabs button[aria-selected="true"] { border-color: #0874d1; color: #fff; background: #0874d1; }
.tools-page .quick-size-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tools-page .quick-size-buttons button { padding: 8px 11px; border: 1px solid #cfdbe5; border-radius: 999px; color: #52616c; background: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.tools-page .quick-size-buttons button:hover, .tools-page .quick-size-buttons button:focus-visible { border-color: #0874d1; color: #0874d1; outline: 0; }
.tools-page .savings-card { padding: 18px; border: 1px solid #dce4ea; border-radius: 14px; background: #fff; }
.tools-page .savings-card.positive { border-color: #b9e4cf; background: #f4fcf7; }
.tools-page .sc-header,
.tools-page .savings-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tools-page .sc-header { margin-bottom: 10px; color: #263947; font-weight: 750; }
.tools-page .savings-line { padding: 8px 0; border-top: 1px solid #e7edf1; color: #657580; font-size: 13px; }
.tools-page .sl-val { color: #263947; font-weight: 750; text-align: right; }
.tools-page .sl-val.green { color: #157a50; }
.tools-page .sl-val.amber { color: #a45d08; }

/* Lux-calculator output components. */
.tools-page #resultsFull { width: min(1180px, calc(100% - 48px)); max-width: none !important; margin: 0 auto !important; padding: 0 !important; }
.tools-page .beam-card { position: relative; overflow: hidden; padding: 30px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #0b1724, #123c5e); }
.tools-page .beam-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 20%, rgba(61, 173, 245, .38), transparent 32%); }
.tools-page .beam-card > :not(.beam-bg) { position: relative; }
.tools-page .lux-label { margin: 0; color: #b9dfff; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.tools-page .lux-display { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; }
.tools-page .lux-num { font-size: clamp(48px, 7vw, 72px); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.tools-page .lux-unit { color: #d6e7f4; font-size: 18px; font-weight: 650; }
.tools-page .room-type-tag { display: inline-flex; padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #dcebf5; background: rgba(255,255,255,.08); font-size: 12px; }
.tools-page .compliance-bar-wrap { max-width: 500px; margin-top: 24px; }
.tools-page .compliance-top { display: flex; justify-content: space-between; gap: 12px; color: #d6e7f4; font-size: 12px; }
.tools-page .bar-track { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.18); }
.tools-page .bar-fill { height: 100%; border-radius: inherit; background: #66cf98; transition: width .45s ease; }
.tools-page .bar-fill.warn { background: #eab85a; }.tools-page .bar-fill.bad { background: #ed7373; }
.tools-page .stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tools-page .stat-card { padding: 18px; border: 1px solid #dce4ea; border-radius: 14px; background: #fff; }
.tools-page .stat-card-icon { margin-bottom: 16px; }.tools-page .stat-card-val { color: #0874d1; font-size: 26px; font-weight: 800; letter-spacing: -.04em; }.tools-page .stat-card-val span { margin-left: 3px; color: #60717d; font-size: 13px; letter-spacing: 0; }.tools-page .stat-card-label { margin-top: 5px; color: #263947; font-size: 13px; font-weight: 700; }.tools-page .stat-card-sub { margin-top: 6px; color: #71808c; font-size: 11px; line-height: 1.45; }
.tools-page .fixture-rec { overflow: auto; border: 1px solid #dce4ea; border-radius: 16px; background: #fff; }.tools-page .fixture-rec-head { display: flex; align-items: center; gap: 9px; padding: 15px 18px; border-bottom: 1px solid #dce4ea; color: #263947; font-size: 14px; font-weight: 750; }.tools-page .fixture-rec-body { min-width: 650px; }.tools-page .fixture-row { display: grid; grid-template-columns: 1.5fr .55fr .65fr 1.5fr; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid #edf1f4; color: #586873; font-size: 13px; }.tools-page .fixture-row.header-row { color: #60717d; background: #f7f9fb; font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }.tools-page .fixture-cell.name { color: #263947; font-weight: 700; }.tools-page .fixture-cell.count,.tools-page .fixture-cell.watts { color: #0874d1; font-size: 18px; font-weight: 800; }
.tools-page .cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #0b1724, #123c5e); }.tools-page .cta-strip h2 { margin: 0 0 8px; color: #fff; font-size: 24px; }.tools-page .cta-strip p { max-width: 720px; margin: 0; color: #c9d9e5; line-height: 1.55; }.tools-page .cta-btn { flex: 0 0 auto; padding: 12px 18px; border-radius: 10px; color: #fff; background: #0874d1; font-weight: 700; text-decoration: none; }

@media (max-width: 560px) {
  .tools-page { overflow-x: hidden; }
  .tools-page .legacy-content > .page-header-tools {
    width: 100% !important;
    max-width: none;
    min-height: 0;
    margin: 0 !important;
    padding: 48px 24px;
  }
  .tools-page .page-header-tools .container { width: 100%; }
  .tools-page .page-header-tools h1 { font-size: clamp(34px, 11vw, 44px); }
  .tools-page .page-header-tools p { font-size: 16px; }
  .tools-page .tools-section { width: calc(100% - 28px); padding: 28px 0 8px; }
  .tools-page .tools-grid { gap: 14px; }
  .tools-page .tool-card,
  .tools-page .tool-card-content { min-height: 0; }
  .tools-page .tool-card-content { padding: 28px; }
  .tools-page .tool-icon { margin-bottom: 24px; }
  .tools-page .card,
  .tools-page .panel,
  .tools-page .card-body,
  .tools-page .panel-body { padding: 20px; }
  .tools-page .layout .row,
  .tools-page .field-row,
  .tools-page .field-row.two,
  .tools-page .reflect-grid { grid-template-columns: 1fr; }
  .tools-page .formula-item { grid-template-columns: 1fr; gap: 2px; }
  .tools-page .metric-row,
  .tools-page .stat-grid,
  .tools-page .form-grid,
  .tools-page .form-grid.three { grid-template-columns: 1fr; }
  .tools-page .calculator-actions { align-items: stretch; flex-direction: column; }
  .tools-page .calculator-actions .calc-btn,
  .tools-page .reset-link { width: 100%; }
  .tools-page .instrument-body,
  .tools-page #right-panel { padding: 20px; }
  .tools-page .beam-card,
  .tools-page .cta-strip { padding: 24px 20px; }
  .tools-page .cta-strip { align-items: flex-start; flex-direction: column; }
  .tools-page .cta-btn { width: 100%; text-align: center; }
  .tools-page .rh-tons { font-size: 38px; }
  .tools-page .stat-row { align-items: start; flex-direction: column; gap: 2px; }
  .tools-page .s-val { text-align: left; }
}

@media (max-width: 900px) {
  .tools-page .tools-grid {
    grid-template-columns: 1fr;
  }

  .tools-page .tool-card {
    min-height: 300px;
  }

  .tools-page .tool-icon {
    margin-bottom: 34px;
  }

  .tools-page .layout,
  .tools-page .calc-grid,
  .tools-page .main-wrap {
    grid-template-columns: 1fr;
  }

  .tools-page .result-panel,
  .tools-page .results-panel {
    position: static;
  }

  .tools-page .tools-guide { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {

  .tools-page .legacy-content > :not(.page-header-tools),
  .tools-page .page-header-tools .container,
  .tools-page .intro,
  .tools-page .layout,
  .tools-page .tool-wrapper,
  .tools-page .legacy-content>div[style*="max-width: 1100px"],
  .tools-page .main-wrap {
    width: calc(100% - 28px);
  }

  .tools-page .page-header-tools {
    min-height: 0;
    padding: 52px 0;
  }

  .tools-page .page-header-tools h1 {
    font-size: 43px;
  }

  .tools-page .page-header-tools p {
    font-size: 16px;
  }

  .tools-page .tools-section {
    padding-top: 38px;
  }

  .tools-page .tool-card-content {
    min-height: 0;
    padding: 24px;
  }

  .tools-page .intro {
    padding: 34px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .tools-page .tool-intro,
  .tools-page .hero {
    padding: 34px 24px;
    border-radius: 18px;
  }

  .tools-page .tool-wrapper,
  .tools-page .legacy-content>div[style*="max-width: 1100px"] {
    padding-top: 30px !important;
  }

  .tools-page .row,
  .tools-page .field-row,
  .tools-page .metric-row {
    grid-template-columns: 1fr !important;
  }

  .tools-page .page-header-tools { min-height: 0; padding: 52px 0; }
  .tools-page .page-header-tools h1 { max-width: 290px; margin-inline: 0; font-size: 38px; line-height: 1.02; }
  .tools-page .page-header-tools p { max-width: 290px; margin-inline: 0; font-size: 15px; line-height: 1.55; }
  .tools-page .tools-grid { width: 100%; gap: 12px; }
  .tools-page .tool-card { min-height: 0; border-radius: 17px; }
  .tools-page .tool-card-content { min-height: 0; }
  .tools-page .tools-guide { margin-top: 34px; padding: 28px 22px; border-radius: 18px; }
  .tools-page .tools-cta { align-items: flex-start; flex-direction: column; gap: 24px; margin-top: 16px; padding: 30px 22px; border-radius: 18px; }
  .tools-page .tools-cta .button { width: 100%; justify-content: center; }
  .tools-page .intro h1,.tools-page .tool-intro h1,.tools-page .hero h1 { font-size: 35px !important; line-height: 1.06; overflow-wrap: anywhere; }
  .tools-page .layout,.tools-page .calc-grid,.tools-page .main-wrap { gap: 14px; }
  .tools-page .calculator-card,.tools-page .calc-card,.tools-page .form-panel,.tools-page .result-panel,.tools-page .results-panel { min-width: 0; padding: 24px 18px; border-radius: 16px; }
  .tools-page input,.tools-page select,.tools-page textarea { max-width: 100%; }
  .tools-page .engineering-tool-limitations { width: calc(100% - 28px); margin-top: 30px; padding: 20px; font-size: 13px; }
  .tools-page #resultsFull { width: calc(100% - 28px); }
}

/* Keep the hub's full-bleed header and single card gutter at narrow widths. */
@media (max-width: 560px) {
  .tools-page .page-header-tools { width: 100vw !important; }
  .tools-page .tools-grid { width: calc(100vw - 38px) !important; }
}
