/* The published calculator detail uses a 1160px content column. */
.page-tool .tool-main-wrap { overflow-x: clip; }

.page-tool .tool-main-wrap .container {
  width: min(1160px, calc(100% - 32px));
  min-width: 0;
}

.page-tool .tool-main-wrap p { margin: 0 0 10px; }
.page-tool .tool-main-wrap :is(h1, h2, h3) { line-height: 1.2; }

.page-tool .tool-page-hero {
  padding-block: 45px 24px;
  border-block-end: 1px solid #9eb5ca;
  background: #f7f9fa;
}

.page-tool .tool-page-hero h1 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 32px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.page-tool .tool-page-hero p {
  max-width: 560px;
  color: var(--brand);
  font-size: 10.8px;
  line-height: 1.68;
}

.page-tool .tool-page-hero .tools-kicker {
  margin: 0 0 7px;
  font-size: 10.8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-tool .tool-main { padding-block: 26px 40px; }

.page-tool .tool-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(180px, .92fr);
  gap: 13px;
}

.page-tool :is(.tool-panel, .tool-info-box) {
  min-width: 0;
  margin: 0;
  border: 1px solid #9eb5ca;
  border-radius: 10px;
  background: rgb(255 255 255 / 96%);
  color: #313131;
  box-shadow: 0 9px 23px rgb(44 97 150 / 8%), inset 0 1px 0 rgb(255 255 255 / 90%);
}

.page-tool .tool-panel { padding: 13.5px; }
.page-tool .tool-info-box { padding: 12.5px; }
.page-tool :is(.tool-page-overview, .tool-result-next-steps) { margin-block: 24px; }

.page-tool :is(.tool-panel, .tool-info-box) h2 {
  margin: 1px 0 10px;
  color: var(--brand);
  font-size: 15.5px;
  font-weight: 300;
}

.page-tool .tool-info-box h3 {
  margin: 0 0 5px;
  font-size: 22px;
  font-weight: 300;
}

.page-tool .tool-privacy-note {
  padding: 12px 14px;
  border-inline-start: 4px solid var(--brand);
  background: #f7f9fa;
  color: var(--brand);
}

.page-tool .tool-main-wrap :is(.tool-disclaimer, .tool-warning) {
  margin: 0 0 10px;
  padding: 10px 10.5px;
  border-radius: 9px;
  line-height: 1.56;
}

.page-tool .tool-disclaimer {
  border: 1px solid #9eb5ca;
  background: #f7f9fa;
  color: var(--brand);
}

.page-tool .tool-disclaimer.z-style-notice {
  box-shadow: 0 12px 34px rgb(44 97 150 / 7%);
}

.page-tool .tool-warning {
  border: 1px solid rgb(210 141 0 / 32%);
  background: #fff7e6;
  color: #3f2b00;
}

.page-tool .tool-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.page-tool .tool-form .tool-field {
  display: flex;
  flex-direction: column;
  gap: 3.8px;
  min-width: 0;
  color: var(--brand);
  font-weight: 800;
}

.page-tool .tool-field label { margin-block-end: 4.1px; font-weight: 800; }

.page-tool .tool-form .tool-field :is(input, select) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: clamp(44px, 3.05vw, 48px);
  padding: 5.8px 7.2px;
  border: 1px solid rgb(44 97 150 / 24%);
  border-radius: 7.2px;
  background: #fff;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
}

.page-tool .tool-form :is(input, select, .tool-submit):focus-visible {
  outline: 3px solid rgb(44 97 150 / 28%);
  outline-offset: 2px;
}

.page-tool .tool-form .tool-check {
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--brand);
  font-weight: 700;
  line-height: 1.45;
}

.page-tool .tool-form :is(.tool-check, .tool-fieldset) :is(input[type="checkbox"], input[type="radio"]) {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--brand);
}

.page-tool .tool-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 6.5px 9px;
  padding: 7.5px;
  border-color: rgb(44 97 150 / 18%);
}

.page-tool .tool-fieldset--wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-tool .tool-fieldset legend {
  width: auto;
  padding-inline: 3.5px;
  font-size: 9.5px;
  font-weight: 800;
}

.page-tool .tool-fieldset label { display: inline-flex; align-items: center; gap: 3.5px; min-height: 20px; }

.page-tool .tool-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(44px, 3.05vw, 48px);
  padding: clamp(9.4px, .9vw, 12px) clamp(13.2px, 1.25vw, 18px);
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: clamp(13.4px, 1.18vw, 16.4px);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgb(0 0 0 / 18%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 58%), inset 0 -2px 0 rgb(0 0 0 / 16%), 0 3.6px .5px rgb(21 82 132 / 42%), 0 8.2px 14.5px rgb(44 97 150 / 28%);
}

.page-tool .tool-submit::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 30%;
  border-radius: inherit;
  background: linear-gradient(rgb(255 255 255 / 46%), transparent);
  pointer-events: none;
}

.page-tool .tool-submit:hover { filter: saturate(1.05) brightness(1.03); }

.page-tool .tool-form .tool-browser-note {
  margin: -3.5px 0 1.5px;
  padding: 7.5px 8.5px;
  border: 1px solid #9eb5ca;
  border-radius: 7.8px;
  background: #f7f9fa;
  color: var(--brand);
  font-size: 9.8px;
  font-weight: 750;
  line-height: 1.45;
}

.page-tool .tool-result {
  min-height: 110px;
  margin: 0;
  padding: 11px;
  border: 1px solid #9eb5ca;
  border-radius: 10px;
  background: #f7f9fa;
  color: var(--brand);
  overflow-wrap: anywhere;
}

.page-tool .tool-result.is-error { background: #fff7eb; }
.page-tool .tool-result__placeholder { color: #678db2; }
.page-tool .tool-result p { line-height: 1.58; }
.page-tool .tool-result table { margin-block: 7.5px; font-size: 9.5px; }
.page-tool .tool-result :is(th, td) { padding: 4.5px 3.5px; border-block-end-color: rgb(44 97 150 / 16%); }

.page-tool .tool-info-stack {
  display: grid;
  gap: 11px;
  margin-block-start: 12.5px;
}

.page-tool .tool-info-stack :is(.z-style-block, .z-style-references) {
  margin-block: 24px;
  background: linear-gradient(rgb(247 249 250 / 96%), rgb(255 255 255 / 98%));
}

.page-tool .tool-info-stack :is(.z-style-block, .z-style-references) h2 { line-height: 1.25; }
.page-tool .tool-main-wrap .references .editorial-link { margin: 12px 0 0; }
.page-tool .tool-info-box :is(ul, ol) { margin: 4px 0 0; padding-inline-start: 12px; }
.page-tool .tool-info-box li { margin-block: 4.5px; line-height: 1.55; }
.page-tool .tool-link-list { display: flex; flex-wrap: wrap; gap: 5.5px; margin-block-start: 8px; }
.page-tool .tool-link-list a {
  border-block-end: 1px solid rgb(44 97 150 / 35%);
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.page-tool .tool-next-steps { margin-block-start: 10px; padding-block-start: 9px; border-block-start: 1px solid rgb(44 97 150 / 14%); }
.page-tool .tool-next-steps h3 { margin: 0 0 6.5px; font-size: 11.2px; }
.page-tool .tool-next-steps__links { display: flex; flex-wrap: wrap; gap: 5.5px; }
.page-tool .tool-next-steps__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(44px, 3.05vw, 48px);
  max-width: 100%;
  padding: clamp(9.4px, .9vw, 12px) clamp(13.2px, 1.25vw, 18px);
  border: 1px solid #9eb5ca;
  border-radius: 999px;
  background: white;
  color: var(--brand);
  font-size: clamp(13.4px, 1.18vw, 16.4px);
  font-weight: 850;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
}
.page-tool .tool-next-steps__links a:is(:hover, :focus-visible) { background: var(--brand); color: white; }

.page-tool .tool-main-wrap .product-detail-related h2 {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 20px;
  font-weight: 300;
}

.page-tool .tool-main-wrap .product-detail-related ul { margin: 0; padding: 0; list-style: none; }

@media (max-width: 980px) {
  .page-tool .tool-shell { grid-template-columns: 1fr; }
  .page-tool .tool-panel { min-width: auto; }
}

@media (max-width: 700px) {
  .page-tool .tool-info-stack :is(.z-style-block, .z-style-references) { margin-block: 16px; }
  .page-tool .tool-main-wrap p,
  .page-tool .tool-page-hero .tools-kicker,
  .page-tool .tool-main-wrap :is(.tool-disclaimer, .tool-warning),
  .page-tool .tool-form .tool-browser-note {
    font-size: 14.8px;
    line-height: 1.68;
  }
}

@media (max-width: 620px) {
  .page-tool .tool-page-hero { padding-block: 24px 14px; }
  .page-tool :is(.tool-form, .tool-fieldset--wide) { grid-template-columns: 1fr; }
  .page-tool .tool-form .tool-field { min-width: auto; }
  .page-tool .tool-form .tool-field :is(input, select) {
    width: auto;
    min-width: auto;
    max-width: none;
  }
  .page-tool .tool-field label { margin-block-end: 2.85px; }
  .page-tool :is(.tool-panel, .tool-info-box) { border-radius: 8px; }
  .page-tool .tool-next-steps__links a { width: 100%; }
}
