/* ===================================================================
   goal.css — Health Goal pages (heart.html, skin.html, ...).
   Loaded after entry.css. A goal page is a short hub: the ranked
   short list (.glance, from entry.css), one "how it fits together"
   figure, a few paragraphs per lever, then links out to the entries
   and papers that hold the research. No references of its own.
   =================================================================== */

body { max-width: 820px; }

/* ---------- "How it fits together" figure ---------- */
.fig { margin: 1.4rem 0 1.8rem; }
.fig-band { text-align: center; background: #eef1e8; border: 1px solid #d6dccb; color: #33421f; border-radius: 8px; padding: 0.55rem 0.9rem; font-size: 0.92rem; }
.fig-band strong { color: #2c3a1b; }
.fig-arrows { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; color: #9a9384; font-size: 1.15rem; line-height: 1.7; }
.fig-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem 0.85rem 0.9rem; display: flex; flex-direction: column; }
.panel-num { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sub); }
.panel h3 { margin: 0.1rem 0 0.3rem; color: var(--ink); font-size: 1.02rem; }
.panel svg { width: 100%; height: auto; display: block; margin: 0.2rem 0 0.5rem; }
.panel p { font-size: 0.88rem; color: var(--sub); margin: 0 0 0.6rem; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: auto; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--tag-bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.8rem; color: var(--ink); border-bottom: 1px solid var(--line); }
a.chip:hover { border-color: var(--accent); }
.chip .ev { width: 0.55rem; height: 0.55rem; border-width: 1.5px; top: 0; }
.fig-outcome { text-align: center; background: #f6e9e4; border: 1px solid #e3c9bf; color: #6b2f22; border-radius: 8px; padding: 0.6rem 0.9rem; font-size: 0.95rem; }
.fig-outcome strong { color: var(--accent); }
.fig-caption { font-size: 0.82rem; color: var(--sub); margin-top: 0.6rem; text-align: center; }
@media (max-width: 640px) {
  .fig-panels { grid-template-columns: 1fr; }
  .fig-arrows { display: none; }
  .fig-band, .fig-panels { margin-bottom: 0.8rem; }
}

/* ---------- Lever sections ---------- */
.lever h2 { font-size: 1.3rem; }
.dose { background: var(--tag-bg); border-radius: 6px; padding: 0.55rem 0.9rem; font-size: 0.92rem; margin: 0.8rem 0; }
.dose b { color: var(--accent); }
.more { font-size: 0.88rem; color: var(--sub); margin-top: 0.6rem; }
.more a { margin-right: 0.2rem; }

/* ---------- Skip list ---------- */
.skip { list-style: none; padding: 0; }
.skip li { border-left: 3px solid var(--line); padding: 0.3rem 0 0.3rem 0.9rem; margin: 0.7rem 0; }
.skip li strong { display: block; }

/* ---------- Numbers worth knowing ---------- */
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 1rem 0; }
.num { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 0.85rem; font-size: 0.9rem; }
.num strong { display: block; color: var(--accent); }
@media (max-width: 600px) { .numbers { grid-template-columns: 1fr; } }

/* ---------- Go deeper ---------- */
.deeper { list-style: none; padding: 0; }
.deeper li { padding: 0.45rem 0; border-top: 1px solid var(--line); }
.deeper li:first-child { border-top: none; }
.deeper .kind { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); margin-right: 0.5rem; }
