/* This page's own stylesheet, scoped to its body class so that nothing in it can reach another
   page — the same arrangement the Musk net-worth page uses. That page is the reference: a form
   beside a result, the answer read in five seconds, the detail behind disclosures, and the article
   underneath in the same panels as everywhere else. Only what this calculator needs on top of
   styles.css is written here; nothing global is redefined. */
.coffee-page main > .page-title p { max-width: 68ch; }
/* The form is the narrower column and the result the wider one, as on the reference page: the
   answer carries a card, a chart and two disclosures. */
.coffee-page .coffee-calculator { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.coffee-page .coffee-calculator .field input,
.coffee-page .coffee-calculator .field select { min-width: 0; }
.coffee-page .coffee-calculator .hint { font-size: 0.85rem; line-height: 1.5; }
/* What the calculation is and is not, on the foot of the form rather than in the article. */
.coffee-page .coffee-form-foot { font-size: 0.85rem; color: var(--muted); margin: 16px 0 0; }
/* The headline figure sits left rather than centred, with the unit of the answer above it and the
   sentence it was worked out from below, so the card reads as one statement. */
.coffee-page .coffee-results .big-result { text-align: left; padding: 24px; }
.coffee-page .coffee-results .big-result .value { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin: 8px 0 12px; }
.coffee-page .coffee-results .big-result .sub { font-size: 0.95rem; line-height: 1.5; opacity: 1; }
/* The one derived figure shown at full size beside the answer: the multiple. */
.coffee-page .coffee-summary { margin: 0 0 12px; font-size: 1rem; }
.coffee-page .coffee-summary strong { font-size: 1.25rem; }
.coffee-page .coffee-summary span { color: var(--muted); }
/* "What this means", quieter than the figures it explains. */
.coffee-page .coffee-meaning { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.coffee-page .coffee-meaning strong { color: var(--text); }
/* The split of the ending balance, with the caption under it reading the same bar in words. */
.coffee-page .coffee-chart { margin: 24px 0; }
.coffee-page .coffee-chart h3 { margin: 0 0 8px; font-size: 1rem; }
.coffee-page .coffee-chart .legend { margin-bottom: 0; }
.coffee-page .coffee-chart .bar-caption { margin: 12px 0 0; }
/* The detailed figures, one closed row each: the same disclosure the reference page uses, so a
   visitor can stop at the answer and open only what they want. */
.coffee-page .coffee-disclosure { border-top: 1px solid var(--border); }
.coffee-page .coffee-disclosure summary { cursor: pointer; font-weight: 600; padding: 14px 0; line-height: 1.5; min-height: 48px; }
.coffee-page .coffee-disclosure summary:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; border-radius: 4px; }
.coffee-page .coffee-disclosure-body { padding: 0 0 12px; }
.coffee-page .coffee-disclosure-body h3 { margin: 0 0 8px; font-size: 1rem; }
.coffee-page .coffee-support-text { font-size: 0.9rem; color: var(--muted); margin: 0 0 12px; }
/* A label and its figure on one line, the figure right-aligned so a column of them can be read
   down. */
.coffee-page .coffee-comparisons { margin: 0 0 20px; }
.coffee-page .coffee-comparisons > div { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.coffee-page .coffee-comparisons dt { font-size: 0.9rem; color: var(--muted); }
.coffee-page .coffee-comparisons dd { font-weight: 600; margin: 0; text-align: right; overflow-wrap: anywhere; }
/* The article below: its own headings one step down from the section heading, and the lines of
   prose held to a comfortable measure. */
.coffee-page .coffee-article h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.coffee-page .coffee-article p { max-width: 78ch; }
.coffee-page .coffee-article caption { text-align: left; color: var(--muted); font-size: 0.85rem; padding-bottom: 10px; }
.coffee-page .coffee-article th[scope="row"] { text-align: left; font-weight: 600; }
/* The three researched coffee facts: the same narrow orange edge and quiet card the reference page
   uses for its facts, scoped to this page. */
.coffee-page .calc-info .fact-list { display: grid; gap: 12px; margin-top: 14px; }
.coffee-page .calc-info .fact {
  padding: 14px 16px;
  border-left: 3px solid var(--highlight);
  border-radius: 0 12px 12px 0;
  background: var(--accent);
}
.coffee-page .calc-info .fact h3 { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.45; }
.coffee-page .calc-info .fact p { margin: 0; font-size: 0.88rem; line-height: 1.6; }
/* The formula keeps the spacing it was written with, but a narrow column wraps it instead of
   scrolling it, because this one is a whole equation rather than a fragment. */
.coffee-page .coffee-article .formula { white-space: normal; overflow-wrap: anywhere; }
.coffee-page .scroll-x:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }
@media (max-width: 800px) {
  .coffee-page .coffee-calculator { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .coffee-page .coffee-results .big-result { padding: 18px; }
  .coffee-page .coffee-comparisons > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .coffee-page .coffee-comparisons dd { text-align: left; }
  .coffee-page .coffee-article th,
  .coffee-page .coffee-article td { min-width: 100px; }
}
