/* Caffeine Calculator — page-specific presentation.

   The shared shell, panels, hero (.rp-hero), stat tiles (.rp-tiles), result actions, FAQ, related
   cards and Cozy's pick come from styles.css and results.css. This file adds only the fact cards'
   orange edge, the hourly table's percentage, and wrapping rules for the method section. Scoped to
   .caffeine-page. */

/* The shared CozyCalcs fact treatment: a narrow orange edge and the page's normal card, not a
   filled banner. */
.caffeine-page .calc-info .fact-list { display: grid; gap: 12px; margin-top: 14px; }
.caffeine-page .calc-info .fact {
  padding: 14px 16px;
  border-left: 3px solid var(--highlight);
  border-radius: 0 12px 12px 0;
  background: var(--accent);
}
.caffeine-page .calc-info .fact h3 { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.45; }
.caffeine-page .calc-info .fact p { margin: 0; font-size: 0.88rem; line-height: 1.6; }

/* A long bedtime or a wide percentage must not push the hero sideways on a phone. */
.caffeine-page .cf-hero .value { overflow-wrap: anywhere; }

/* Hour by hour: the gauge keeps the shape and the figure keeps the meaning without the colour. */
.caffeine-page #hourly .gauge { width: 100%; margin: 0 0 4px; }
.caffeine-page #hourly .cf-share { font-size: 0.8rem; color: var(--muted); }

/* The formula, the worked example and the sources have to wrap rather than scroll. */
.caffeine-page .formula { white-space: normal; overflow-wrap: anywhere; }
.caffeine-page .cf-example { overflow-wrap: anywhere; }
.caffeine-page .cf-steps { margin: 0 0 14px; padding-left: 1.2em; }
.caffeine-page .cf-steps li { margin: 0 0 8px; }

/* The one line under the hourly table, explaining where the counting stops. */
.caffeine-page .cf-threshold { margin: 8px 0 20px; font-size: 0.82rem; color: var(--muted); }

.caffeine-page .cf-sources { margin: 0; padding-left: 1.2em; }
.caffeine-page .cf-sources li { margin: 0 0 8px; }

/* On a narrow phone the four tiles read better stacked than squeezed into two columns. */
@media (max-width: 430px) {
  .caffeine-page .cf-tiles { grid-template-columns: minmax(0, 1fr); }
}
