/* Neutral result panel for multi-metric health tools */
.result-card.result-neutral {
  display: block;
  grid-template-columns: none;
  gap: 0;
  padding: 1.25rem 1.35rem;
  border-left-width: 5px;
  border-color: #cfe1fa;
  border-left-color: var(--brand-blue);
  background: #f5f9ff;
}

.tool-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.tool-result-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #e4edf8;
  border-radius: 12px;
}

.tool-result-item span,
.tool-result-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-result-item strong,
.tool-result-value {
  display: block;
  color: var(--brand-navy);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  word-break: normal;
}

.tool-result-unit {
  display: block;
  margin-top: 0.2rem;
  color: #667085;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
}

.tool-result-item p,
.tool-result-note {
  margin: 0.45rem 0 0;
  color: #5f6b7a;
  font-size: 0.82rem;
  line-height: 1.4;
}

.tool-result-wide {
  grid-column: 1 / -1;
}

.tool-result-primary {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: #d5e6fb;
}

.tool-result-primary .tool-result-value,
.tool-result-primary strong {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--brand-blue);
}

.tool-reference-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.tool-reference-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.86rem;
}

.tool-reference-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tool-reference-list strong {
  color: var(--brand-navy);
  text-align: right;
}

.tool-select {
  min-height: 50px;
  border-color: var(--border-light);
  border-radius: 12px;
}

.tool-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.schedule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.schedule-time {
  padding: 0.95rem 0.7rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e4edf8;
  border-radius: 12px;
}

.schedule-time strong,
.schedule-time span {
  display: block;
}

.schedule-time strong {
  color: var(--brand-navy);
  font-size: 1.2rem;
}

.schedule-time span {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.74rem;
}

html.theme-dark .result-card.result-neutral {
  background: #172033;
  border-color: #2d3f61;
}

html.theme-dark .tool-result-item,
html.theme-dark .schedule-time {
  background: #1a2432;
  border-color: #334154;
}

html.theme-dark .tool-result-primary {
  background: linear-gradient(180deg, #1d2a3b 0%, #182433 100%);
  border-color: #3a5270;
}

html.theme-dark .tool-result-item strong,
html.theme-dark .tool-result-value,
html.theme-dark .tool-reference-list strong,
html.theme-dark .schedule-time strong {
  color: #e8eef7;
}

html.theme-dark .tool-result-primary .tool-result-value,
html.theme-dark .tool-result-primary strong {
  color: #7eb6ff;
}

html.theme-dark .tool-result-item span,
html.theme-dark .tool-result-label,
html.theme-dark .tool-result-unit,
html.theme-dark .tool-result-note,
html.theme-dark .schedule-time span {
  color: #9aa6b5;
}

html.theme-dark .tool-reference-list li {
  border-color: #334154;
}

.bmr-table-title {
  margin: 1.25rem 0 0.75rem;
  color: var(--brand-navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.bmr-table-wrap {
  overflow: hidden;
  margin-bottom: 1.15rem;
  border: 1px solid #e4edf8;
  border-radius: 12px;
  background: #f8fbff;
}

.bmr-interpretation-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.bmr-interpretation-table thead th {
  padding: 0.7rem 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
}

.bmr-interpretation-table tbody td {
  padding: 0.75rem 0.85rem;
  vertical-align: top;
  color: #5f6b7a;
  border-top: 1px solid #e4edf8;
  line-height: 1.45;
}

.bmr-interpretation-table tbody tr:nth-child(even) td {
  background: #fff;
}

.bmr-interpretation-table tbody tr:hover td {
  background: #eef5ff;
}

.bmr-interpretation-table tbody td:first-child {
  width: 38%;
  white-space: nowrap;
}

.bmr-range {
  display: block;
  color: var(--brand-navy);
  font-weight: 700;
  line-height: 1.3;
}

.bmr-unit {
  display: block;
  margin-top: 0.15rem;
  color: #8a94a6;
  font-size: 0.7rem;
  font-weight: 600;
}

html.theme-dark .bmr-table-title {
  color: #e8eef7;
}

html.theme-dark .bmr-table-wrap {
  background: #172033;
  border-color: #334154;
}

html.theme-dark .bmr-interpretation-table thead th {
  background: linear-gradient(135deg, #2a5fad 0%, #1e4578 100%);
}

html.theme-dark .bmr-interpretation-table tbody td {
  color: #9aa6b5;
  border-color: #334154;
}

html.theme-dark .bmr-interpretation-table tbody tr:nth-child(even) td {
  background: #1a2432;
}

html.theme-dark .bmr-interpretation-table tbody tr:hover td {
  background: #203049;
}

html.theme-dark .bmr-range {
  color: #e8eef7;
}

html.theme-dark .bmr-unit {
  color: #7f8b9c;
}

.calorie-activity-table thead th.text-end {
  text-align: right;
}

.calorie-activity-table tbody td:first-child {
  width: auto;
  white-space: normal;
  color: var(--brand-navy);
  font-weight: 650;
}

.calorie-burn-value {
  text-align: right;
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

html.theme-dark .calorie-activity-table tbody td:first-child,
html.theme-dark .calorie-burn-value {
  color: #e8eef7;
}

.ideal-weight-chart thead th.text-end {
  text-align: right;
}

.ideal-weight-chart tbody td:first-child {
  width: 22%;
  color: var(--brand-navy);
  font-weight: 650;
  white-space: nowrap;
}

.ideal-weight-value {
  text-align: right;
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.ideal-weight-empty {
  color: #98a2b3;
  font-weight: 600;
}

.bmi-faq-item p + p,
.bmi-faq-item p + ul {
  margin-top: 0.65rem;
}

.bmi-faq-item ul {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  max-width: 920px;
  color: #5f6b7a;
  font-size: 0.9rem;
  line-height: 1.65;
}

.bmi-faq-item li + li {
  margin-top: 0.25rem;
}

html.theme-dark .bmi-faq-item ul {
  color: #9aa6b5;
}

.pregnancy-trimester-table tbody td:first-child {
  width: 28%;
  white-space: normal;
}

.pregnancy-week-value {
  white-space: nowrap;
  color: var(--brand-navy);
  font-weight: 700;
}

html.theme-dark .pregnancy-week-value {
  color: #e8eef7;
}

.protein-reference-table thead th.text-end {
  text-align: right;
}

.protein-reference-table tbody td:first-child {
  width: auto;
  color: var(--brand-navy);
  font-weight: 650;
  white-space: nowrap;
}

.protein-ref-value {
  text-align: right;
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

html.theme-dark .protein-reference-table tbody td:first-child,
html.theme-dark .protein-ref-value {
  color: #e8eef7;
}

html.theme-dark .ideal-weight-chart tbody td:first-child,
html.theme-dark .ideal-weight-value {
  color: #e8eef7;
}

html.theme-dark .ideal-weight-empty {
  color: #7f8b9c;
}

html.theme-dark .tool-select {
  color: #e8eef7;
  background-color: #18212d;
  border-color: #334154;
}

@media (max-width: 767.98px) {
  .tool-result-grid {
    grid-template-columns: 1fr;
  }

  .schedule-list {
    grid-template-columns: 1fr;
  }
}
