.ideal-weight-page {
  background: #f2f6f8;
  color: #13273b;
}

.ideal-weight-intro {
  background: #ffffff;
  border-bottom: 1px solid #d6e1e7;
}

.ideal-weight-heading {
  max-width: 900px;
}

.ideal-weight-heading h1 {
  margin: 0;
  font-size: 3.6rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.ideal-weight-heading > p:last-child {
  max-width: 820px;
  margin: 1rem 0 0;
  color: #506579;
  font-size: 1.12rem;
  line-height: 1.75;
}

.ideal-weight-evidence-note {
  display: flex;
  max-width: 900px;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.35rem;
  padding: 0.9rem 1rem;
  background: #edf7f4;
  border-left: 4px solid #087f78;
  border-radius: 4px;
  color: #244c49;
  line-height: 1.55;
}

.ideal-weight-evidence-note i {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: #087f78;
  font-size: 1.2rem;
}

.ideal-calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
}

.ideal-tool-panel {
  min-width: 0;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #cbd9e1;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(23, 49, 72, 0.08);
}

.ideal-tool-panel-head h2,
.ideal-method-section h2,
.ideal-reading-section h2,
.ideal-safety-section h2,
.ideal-faq-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.ideal-tool-panel-head > p:last-child {
  margin: 0.65rem 0 0;
  color: #5a6d7e;
  line-height: 1.65;
}

.ideal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.ideal-field {
  min-width: 0;
}

.ideal-field-wide {
  grid-column: 1 / -1;
}

.ideal-field label,
.ideal-bcs-fieldset legend {
  display: block;
  margin-bottom: 0.45rem;
  color: #18324a;
  font-weight: 800;
}

.ideal-field label span,
.ideal-bcs-fieldset legend span {
  color: #657787;
  font-size: 0.9em;
  font-weight: 500;
}

.ideal-field .form-control,
.ideal-field .form-select {
  min-height: 52px;
  border-color: #c7d6df;
  border-radius: 6px;
}

.ideal-field .input-group .form-control {
  border-radius: 6px 0 0 6px;
}

.ideal-field .input-group .form-select {
  border-radius: 0 6px 6px 0;
}

.ideal-unit-select {
  max-width: 90px;
}

.ideal-field-help {
  margin: 0.4rem 0 0;
  color: #667887;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ideal-bcs-fieldset {
  min-width: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
}

.ideal-bcs-fieldset > p {
  margin: 0 0 0.8rem;
  color: #5f7181;
  line-height: 1.5;
}

.bcs-options {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.45rem;
}

.bcs-option {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 82px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.2rem;
  background: #f7fafb;
  border: 1px solid #cbd9e1;
  border-radius: 6px;
  text-align: center;
}

.bcs-option:hover {
  border-color: #087f78;
}

.bcs-option:has(input:focus-visible) {
  outline: 3px solid rgba(26, 104, 180, 0.28);
  outline-offset: 2px;
}

.bcs-option:has(input:checked) {
  background: #e4f3f0;
  border-color: #087f78;
  box-shadow: inset 0 0 0 1px #087f78;
}

.bcs-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bcs-option-number {
  color: #17344d;
  font-size: 1.15rem;
  font-weight: 900;
}

.bcs-option-label {
  overflow-wrap: anywhere;
  color: #647686;
  font-size: 0.68rem;
  line-height: 1.2;
}

.bcs-selection-summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.75rem;
  padding: 0.8rem 0.9rem;
  background: #f5f8fa;
  border-left: 3px solid #c48a20;
  border-radius: 4px;
}

.bcs-selection-summary span {
  color: #5d6f7f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ideal-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.ideal-form-actions .btn {
  min-height: 46px;
}

.ideal-result-panel {
  background: #142e43;
  border-color: #142e43;
  color: #ffffff;
}

.ideal-result-placeholder {
  display: grid;
  min-height: 100%;
  grid-template-rows: minmax(240px, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
}

.ideal-result-placeholder picture {
  display: flex;
  min-height: 260px;
  align-items: end;
  justify-content: center;
  overflow: hidden;
  background: #eaf3f4;
  border-radius: 6px;
}

.ideal-result-placeholder img {
  display: block;
  width: auto;
  max-width: 72%;
  max-height: 320px;
  object-fit: contain;
}

.ideal-result-placeholder h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.ideal-result-placeholder p:last-child {
  margin: 0.55rem 0 0;
  color: #c7d5df;
  line-height: 1.6;
}

.ideal-result-status-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ideal-result-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid #79c8c0;
  border-radius: 50%;
  background: #e6f5f2;
  color: #066d67;
  font-size: 1.35rem;
}

.ideal-result-kicker {
  margin: 0 0 0.2rem;
  color: #9ec2d4;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ideal-result-status-row h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.ideal-estimate-block {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: 6px;
  color: #142e43;
}

.ideal-estimate-block > span {
  color: #5a6e7e;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ideal-estimate-block strong {
  margin-top: 0.2rem;
  font-size: 2rem;
  line-height: 1.15;
}

.ideal-estimate-block small {
  margin-top: 0.1rem;
  color: #5f7281;
  font-size: 1rem;
}

.ideal-estimate-block.is-no-target {
  border-left: 5px solid #b84141;
}

.ideal-formula-note {
  margin: 0.85rem 0 0;
  color: #c7d5df;
  font-size: 0.88rem;
  line-height: 1.55;
}

.ideal-context-block,
.ideal-warning-block,
.ideal-next-step {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 6px;
}

.ideal-context-block {
  background: #243f54;
  border: 1px solid #3d5b70;
}

.ideal-context-block > span {
  display: block;
  color: #9ec2d4;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ideal-context-block strong {
  display: block;
  margin-top: 0.3rem;
}

.ideal-context-block p {
  margin: 0.45rem 0;
  color: #d3dfe7;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ideal-context-block a {
  color: #9de0d8;
  font-weight: 800;
}

.ideal-warning-block {
  background: #fff0d9;
  border-left: 4px solid #d18a1f;
  color: #5b3a08;
  line-height: 1.55;
}

.ideal-next-step {
  background: #e8f4f1;
  color: #193d3a;
}

.ideal-next-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  letter-spacing: 0;
}

.ideal-next-step p {
  margin: 0;
  line-height: 1.6;
}

.ideal-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.ideal-result-actions .btn {
  min-height: 40px;
  color: #17344d;
}

.ideal-calculator-disclaimer {
  margin: 0.8rem 0 0;
  color: #5d6f7e;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ideal-method-section {
  background: #ffffff;
  border-top: 1px solid #d6e1e7;
  border-bottom: 1px solid #d6e1e7;
}

.ideal-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 3rem;
  align-items: center;
}

.ideal-method-grid p {
  color: #526678;
  line-height: 1.75;
}

.ideal-method-grid picture,
.ideal-method-grid img {
  display: block;
  width: 100%;
}

.ideal-method-grid img {
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  object-fit: cover;
}

.ideal-formula-box {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  background: #eef6f7;
  border-left: 4px solid #1a68b4;
  border-radius: 4px;
}

.ideal-formula-box span {
  display: block;
  color: #526678;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ideal-formula-box strong {
  display: block;
  margin-top: 0.3rem;
  color: #17344d;
  line-height: 1.5;
}

.ideal-formula-box p {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}

.ideal-method-table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid #cbd9e1;
  border-radius: 8px;
}

.ideal-method-table {
  min-width: 720px;
  margin: 0;
}

.ideal-method-table caption {
  padding: 0.85rem 1rem;
  background: #f1f6f8;
  color: #40566a;
  font-weight: 800;
  caption-side: top;
}

.ideal-method-table th,
.ideal-method-table td {
  padding: 0.8rem 1rem;
  vertical-align: top;
}

.ideal-reading-section {
  background: #f2f6f8;
}

.ideal-reading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.ideal-reading-grid > div {
  border-top: 3px solid #087f78;
  padding-top: 1rem;
}

.ideal-reading-grid span {
  color: #087f78;
  font-size: 0.9rem;
  font-weight: 900;
}

.ideal-reading-grid h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.ideal-reading-grid p {
  margin: 0;
  color: #596c7d;
  line-height: 1.65;
}

.ideal-support-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.ideal-support-links a {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #cbd9e1;
  border-radius: 8px;
  color: #17344d;
  text-decoration: none;
}

.ideal-support-links a:hover {
  border-color: #087f78;
}

.ideal-support-links i {
  flex: 0 0 auto;
  color: #1a68b4;
  font-size: 1.2rem;
}

.ideal-support-links span {
  min-width: 0;
  color: #5a6d7d;
  line-height: 1.45;
}

.ideal-support-links strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #17344d;
}

.ideal-safety-section {
  background: #fff6e9;
  border-top: 1px solid #ead7b9;
  border-bottom: 1px solid #ead7b9;
}

.ideal-safety-band {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.ideal-safety-icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d5a65b;
  color: #9a5d08;
  font-size: 1.45rem;
}

.ideal-safety-band p:last-child {
  max-width: 920px;
  margin: 0.65rem 0 0;
  color: #62451d;
  line-height: 1.7;
}

.ideal-faq-section {
  background: #ffffff;
}

.ideal-faq {
  margin-top: 1.25rem;
  border-top: 1px solid #cbd9e1;
}

.ideal-faq .accordion-item {
  border: 0;
  border-bottom: 1px solid #cbd9e1;
  border-radius: 0;
}

.ideal-faq .accordion-button {
  padding: 1rem 0;
  background: transparent;
  box-shadow: none;
  color: #17344d;
  font-weight: 800;
}

.ideal-faq .accordion-body {
  padding: 0 0 1.1rem;
  color: #566a7a;
  line-height: 1.7;
}

.research-disclosure {
  background: #ffffff;
  border: 1px solid #cbd9e1;
  border-radius: 8px;
}

.research-disclosure summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  list-style: none;
}

.research-disclosure summary::-webkit-details-marker {
  display: none;
}

.research-disclosure summary span {
  display: flex;
  flex-direction: column;
}

.research-disclosure summary small {
  color: #687989;
  font-weight: 800;
  text-transform: uppercase;
}

.research-disclosure summary strong {
  margin-top: 0.15rem;
  color: #17344d;
  font-size: 1.12rem;
}

.research-disclosure[open] summary i {
  transform: rotate(180deg);
}

.research-disclosure-body {
  padding: 0 1.1rem 1rem;
  color: #566a7a;
}

.research-disclosure-body ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

@media (max-width: 1199.98px) {
  .bcs-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bcs-option {
    min-height: 72px;
  }
}

@media (max-width: 991.98px) {
  .ideal-calculator-layout,
  .ideal-method-grid {
    grid-template-columns: 1fr;
  }

  .ideal-result-placeholder {
    min-height: 520px;
  }

  .ideal-reading-grid,
  .ideal-support-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 575.98px) {
  .ideal-weight-heading h1 {
    font-size: 2.15rem;
  }

  .ideal-form-grid {
    grid-template-columns: 1fr;
  }

  .ideal-field-wide {
    grid-column: auto;
  }

  .ideal-tool-panel {
    padding: 1rem;
  }

  .ideal-form-actions .btn,
  .ideal-result-actions .btn {
    width: 100%;
  }

  .ideal-safety-band {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-navbar,
  .offcanvas,
  .ideal-weight-intro,
  .ideal-tool-form-panel,
  .ideal-method-section,
  .ideal-reading-section,
  .ideal-safety-section,
  .ideal-faq-section,
  .ideal-sources-section,
  .site-footer,
  .ideal-result-actions,
  .ideal-calculator-disclaimer {
    display: none !important;
  }

  .ideal-calculator-layout {
    display: block;
  }

  .ideal-result-panel {
    border: 1px solid #222222;
    box-shadow: none;
    color: #000000;
  }

  .ideal-result-panel * {
    color: #000000 !important;
  }
}
