/* Healthy House — landing "hub" pages (/manager, /staff): a tidy grid of links. */
.hub-body { background: var(--cream); min-height: 100vh; }
.hub-header {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--green-900); color: #fff;
}
.hub-title { font-size: 1.3rem; font-weight: 800; margin-right: auto; }
.hub-header .lang-toggle button { color: #cfe0c8; }
.hub-header .lang-toggle button.active { color: #fff; }

.hub-main { max-width: 780px; margin: 0 auto; padding: 26px 18px 60px; }
.hub-sub { text-align: center; color: var(--muted); margin: 0 0 24px; font-size: 1.02rem; }
.hub-section-title { color: var(--green-900); font-size: 1.05rem; font-weight: 800; margin: 26px 4px 12px; letter-spacing: 0.3px; }
.hub-section-title:first-child { margin-top: 6px; }
.hub-note { color: var(--muted); font-size: 0.9rem; margin: 0 4px 12px; }

/* One row per group: the links share the width evenly and shrink to fit rather
   than wrapping into a sparse grid. Wraps only on genuinely narrow screens. */
.hub-grid { display: flex; flex-wrap: nowrap; gap: 12px; }
.hub-grid .hub-link { flex: 1 1 0; min-width: 0; }
@media (max-width: 700px) { .hub-grid { flex-wrap: wrap; } .hub-grid .hub-link { flex: 1 1 140px; } }
.hub-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 118px; padding: 18px 12px; text-align: center; text-decoration: none;
  background: #fff; border: 1px solid rgba(31,61,43,0.12); border-radius: 16px;
  color: var(--green-900); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(31,61,43,0.06); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hub-link:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31,61,43,0.12); }
.hub-link .hub-emoji { font-size: 2rem; line-height: 1; }
/* Count sits ABOVE the label; the fixed-height row keeps all three labels aligned */
.hub-num { min-height: 46px; display: flex; align-items: center; justify-content: center; }
.hub-num .hub-count { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 800; color: #fff; background: var(--green-700); }
.hub-num .hub-count.zero { background: #b6c7b1; }

/* Big two-up cards for the staff landing */
.hub-grid.two-up { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hub-grid.two-up .hub-link { min-height: 190px; font-size: 1.3rem; }
.hub-grid.two-up .hub-link .hub-emoji { font-size: 3rem; }

.hub-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 30px; color: var(--green-700); text-decoration: none; font-weight: 700; }

/* Shop open/closed toggle lives in styles.css — it appears on every staff
   page header, and hub.css is only loaded on /staff. */

/* Health banner — only appears when something needs attention (watchdog stale). */
.hub-alert { display: block; margin: 0 auto 18px; max-width: 640px; border-radius: 14px;
  padding: 13px 16px; font-weight: 700; line-height: 1.5; text-align: center;
  background: #ffe9e5; color: #9a1c1c; box-shadow: inset 0 0 0 2px #9a1c1c33; }
.hub-alert small { display: block; font-weight: 400; opacity: 0.85; margin-top: 4px; }
