/* ===== Home on a phone · the widget board and signed-out landing ===== */

/* the board scrolls with the page, so the path bar sticks to the navbar rather than to a clipped column of its own */
.home-layout { overflow: visible; }

/* the Add Widget menu can't hang off a path bar that scrolls sideways, so it pins under the bar instead */
.home-add-widget-dropdown { position: fixed; top: calc(var(--navbar-h) + 3.5rem); right: var(--page-inset-x); z-index: var(--z-popover); }
.home-add-widget-dropdown button { min-height: var(--touch); }


/* ─── Status strip · the day's figures as a 3-up grid of tiles ─── */
.home-status-strip:not(.hidden) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0;
  background: none;
  border: 0;
}
.home-status-strip > div,
.home-status-strip > div:first-child {
  min-width: 0;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.home-status-strip .stat-note { overflow-wrap: anywhere; }


/* ─── Board · every widget full width, as tall as its content, stacked down the page ─── */
.home-widget-grid { grid-auto-rows: auto; overflow: visible; gap: 0.75rem; padding: 0.75rem 0; }
.home-widget-slot { overflow: visible; }
.home-widget-wrapper { height: auto; border-radius: var(--radius-lg); }
.home-widget-body { flex: none; overflow: visible; }
/* the notes run back through every version, so that one body keeps a scroll of its own */
.home-widget-wrapper[data-widget="releases"] .home-widget-body { max-height: 22rem; overflow-y: auto; }

/* rearranging is drag and drop, which a touch screen doesn't do · the Add Widget menu still picks what shows */
.home-widget-drag-handle { display: none; }
/* the remove cross gets a thumb-sized corner of its own */
.home-widget-remove-btn { top: 0; right: 0; width: var(--touch); height: var(--touch); border: 0; border-radius: 0 var(--radius-lg) 0 var(--radius-lg); opacity: 0.7; }
.home-widgets-header { padding: 0.6rem var(--touch) 0.5rem 0.85rem; }
.home-widget-head-select { min-height: 2.25rem; max-width: 9rem; }

/* a widget's own rows and inputs are thumb-sized too */
.home-widget-foot input,
.home-widget-foot textarea { min-height: var(--touch); }
.home-bulletin-post-btn { min-height: var(--touch); padding: 0 1.25rem; }


/* ─── Signed out · the landing sits in the upper half, clear of the tab bar ─── */
.home-hero { padding: 3.5rem 1rem 2rem; }
.home-hero h1 { font-size: 1.6rem; }
#btn-home-login { min-height: var(--touch); padding: 0 1.75rem; }
