/* Page-specific presentation for the kilojoules-to-calories calculator.
 *
 * Everything here is scoped to .kilojoules-to-calories-page and leans on the shared tokens and
 * result pieces in styles.css and results.css. The fact list is a single column of full-width
 * cards at every width, so each sentence keeps normal horizontal lines of text.
 */

.kilojoules-to-calories-page .calc-info .fact-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.kilojoules-to-calories-page .calc-info .fact {
  min-width: 0;
  width: 100%;
  padding: 14px 16px;
  border-left: 3px solid var(--highlight);
  border-radius: 0 12px 12px 0;
  background: var(--accent);
  writing-mode: horizontal-tb;
  overflow-wrap: break-word;
  word-break: normal;
}

.kilojoules-to-calories-page .calc-info .fact h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.kilojoules-to-calories-page .calc-info .fact p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.kilojoules-to-calories-page .kj-hero-live .sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.kilojoules-to-calories-page .source-list {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.kilojoules-to-calories-page .source-list li {
  margin-bottom: 4px;
}

/* The two conversion formulas fit on a phone when they are allowed to wrap at their spaces,
   rather than hiding their last characters behind a sideways scroll. */
.kilojoules-to-calories-page #how-it-works .formula {
  white-space: normal;
  overflow-wrap: break-word;
}

/* A long result still wraps inside its tile rather than widening the page. */
.kilojoules-to-calories-page .rp-tiles .stat {
  min-width: 0;
}

.kilojoules-to-calories-page #ladder-body tr.is-current td {
  font-weight: 700;
  background: var(--accent);
}
