/* Featured services (features.html, js/features.js) — the cards, steps and site tiles around the
   Token usage charts (css/admin-tokens.css styles the charts, the tiles and the theme picker) */
.fb-hero { margin-bottom: 8px; }
.fb-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.fb-toc .chip { min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; }
.fb-h { scroll-margin-top: 80px; margin-top: 40px; }
.fb-lead { max-width: 72ch; margin: -4px 0 14px; color: var(--muted); }
.fb-ico { font-size: 1.4rem; line-height: 1; }

/* the sites */
.fb-sites { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.fb-site { display: grid; gap: 4px; margin: 0; padding: 14px 16px; color: inherit; text-decoration: none; }
.fb-site small { color: var(--muted); }
a.fb-site:hover { border-color: var(--tk-s1); }

/* feature cards */
.fb-cards { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.fb-card { margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--tk-s1); }
.fb-card header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-card h3 { margin: 0; font-size: 1rem; flex: 1 1 auto; }
.fb-card p { margin: 0; font-size: 0.9rem; }
.fb-gives { font-weight: 600; }
.fb-card--idea { border-top-style: dashed; border-top-color: var(--tk-s4); }
.fb-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: max(12px, 0.72rem); font-weight: 700; white-space: nowrap; color: #fff; }
.fb-pill--ok { background: var(--tk-s1); }
.fb-pill--part { background: var(--tk-s2); }
.fb-pill--off { background: var(--tk-s4); color: #1d1a14; }
#tokens .fb-card { background: color-mix(in srgb, var(--tk-s1) var(--tk-tint), var(--surface)); }

/* steps */
.fb-flow { display: grid; gap: 10px; margin: 12px 0 6px; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); counter-reset: none; }
.fb-flow li { position: relative; display: grid; gap: 2px; padding: 12px 12px 12px 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.fb-flow small { color: var(--muted); }
.fb-step { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tk-s1); color: #fff; font-weight: 800; font-size: 0.8rem; }
.fb-ladder { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 0.84rem; }
.fb-ladder b { display: inline-block; min-width: 4.5rem; font-variant-numeric: tabular-nums; }
.fb-source { margin: 32px 0 8px; }

/* Summary lines in the hero: readable on any card skin (some skins paint the card with a gradient) */
.fb-hero .tk-summary { gap: 10px; }
.fb-hero .tk-summary p { padding: 10px 14px; border-left: 4px solid var(--primary); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 0.95rem; line-height: 1.55; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.fb-hero .tk-tile strong { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; color: var(--text); }
.fb-hero .tk-tile span { color: var(--muted); }

/* New this month */
.fb-new { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.fb-new li { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); line-height: 1.45; }
.fb-new a { display: flex; gap: 8px; color: var(--text); text-decoration: none; }
.fb-new a:hover { color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
