/* fuel screens: owned by that module (src/web/pages/fuel.ts and race.ts). Tokens only. */

/* two figures side by side at the top of a card */
.fu-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.fu-stats .stat-value { font-size: 20px; }

/* a small heading inside a card */
.fu-sub { font-size: 11.5px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 6px; }
.fu-sub:first-child { margin-top: 0; }
.fu-lead { font-weight: 600; color: var(--ink); }
.fu-hint { margin: -6px 0 12px; }

/* times and amounts: a gel at 45 min, Mile 3 water */
.fu-times { list-style: none; margin: 0 0 10px; padding: 0; }
.fu-times li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); margin: 0; }
.fu-times li:first-child { border-top: 0; }
.fu-when { font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; min-width: 0; }
.fu-what { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.fu-when small, .fu-what small { font-weight: 500; color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.fu-times li.is-course .fu-what > span:first-child { color: var(--ink-2); }
.fu-times .pill { align-self: flex-start; margin-bottom: 2px; }

/* notes and warnings under a plan */
.fu-notes { list-style: none; padding: 0; margin: 0 0 10px; }
.fu-notes li { font-size: 13.5px; color: var(--ink-2); padding-left: 16px; position: relative; margin: 4px 0; }
.fu-notes li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
.fu-notes.is-warn li::before { background: var(--amber); }
.fu-plain { padding-left: 20px; margin: 0 0 10px; }
.fu-plain li { font-size: 14px; }

/* links to the sub-pages */
.fu-links { display: flex; flex-direction: column; }
.fu-link { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; border-top: 1px solid var(--rule); color: var(--ink); }
.fu-link:first-child { border-top: 0; }
.fu-link:hover { text-decoration: none; }
.fu-link .grow { flex: 1; min-width: 0; }
.fu-link .title { display: block; font-weight: 650; }
.fu-link .note { display: block; font-size: 13px; color: var(--ink-3); }
.fu-link > .icon:last-child { color: var(--ink-4); }
.fu-link-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* forms: grouped choices as big buttons */
.fu-form .field { margin-bottom: 14px; }
.fu-group { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.fu-group legend { padding: 0; margin-bottom: 6px; }
.fu-group .hint { margin: 6px 0 0; }
/* two boxes side by side start level, label above each (labels are kept short enough not to wrap) */
.fu-form .form-row { align-items: start; }
/* the course form: Water, Sports drink, Gels as sub-headings, each its own group */
.fu-section { border-top: 1px solid var(--rule); padding-top: 12px; }
.fu-section:first-of-type { border-top: 0; padding-top: 0; }
.fu-section > legend { float: left; width: 100%; font-size: 15.5px; font-weight: 650; color: var(--ink); letter-spacing: 0; text-transform: none; margin: 0 0 8px; }
.fu-section > legend + * { clear: both; }
.fu-seg .seg { gap: 8px; }
.fu-seg .seg-item { position: relative; }
.fu-seg .seg-item span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 48px; padding: 8px 14px; font-size: 15px; }
.fu-seg.is-even .seg { display: grid; grid-template-columns: repeat(4, 1fr); }
.fu-seg.is-even .seg-item span { width: 100%; padding: 8px 4px; }
.fu-seg.is-three .seg { display: grid; grid-template-columns: repeat(3, 1fr); }
.fu-seg.is-three .seg-item span { width: 100%; padding: 8px 4px; }
.fu-seg.is-scale .seg { display: grid; grid-template-columns: repeat(5, 1fr); }
.fu-seg.is-scale .seg-item span { width: 100%; padding: 8px 4px; }
.fu-seg.is-scale .seg-item:first-child { grid-column: 1 / -1; order: 1; }
.fu-form .input::placeholder, .fu-form .textarea::placeholder { color: var(--ink-4); opacity: 1; }
.fu-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 0 0 12px; }
.fu-tags .check, .fu-check { min-height: 44px; }
.fu-form .fold-body { padding-top: 4px; }

/* lists of products, gut entries, sweat tests */
.fu-item .title { overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.fu-figs { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin: 0 0 2px; }
.fu-item .small { margin-bottom: 2px; }
.fu-row-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.fu-row-actions .btn { min-width: 76px; min-height: 44px; }
.fu-note { overflow-wrap: anywhere; }
.list-row.fu-item { align-items: flex-start; }

/* a pattern from the gut log */
.fu-insight { padding: 10px 0; border-top: 1px solid var(--rule); }
.fu-insight:first-child { border-top: 0; padding-top: 0; }
.fu-insight .title-line { margin-bottom: 2px; }
.fu-insight p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* the sweat formula, the experiment */
.fu-box { background: var(--surface-3); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; }
.fu-box p:last-child, .fu-box ul:last-child { margin-bottom: 0; }

/* the shopping list */
.fu-buy { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); }
.fu-buy:first-child { border-top: 0; }
.fu-buy .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fu-buy .fu-figs { margin: 0; }

/* problem -> action */
.fu-if { padding: 9px 0; border-top: 1px solid var(--rule); }
.fu-if:first-child { border-top: 0; }
.fu-if p { margin: 0; }
.fu-if .fu-lead { margin-bottom: 2px; }

/* a red flag: the GP message */
.fu-flag li { font-size: 14px; color: var(--ink); }
.fu-gp { margin-top: 12px; }
.fu-gp .field { margin-bottom: 10px; }
.fu-gp-seen { margin-top: 10px; }
.fu-gp-seen p { margin: 0 0 4px; }
.fu-gp-seen .btn, #glance .btn { min-height: 44px; }

@media (max-width: 360px) {
  .fu-stats { grid-template-columns: 1fr; }
  .fu-tags { grid-template-columns: 1fr; }
  .fu-times li { grid-template-columns: 78px 1fr; }
}
