/* Home: the open box, what ends soon, what moved since the last visit, the followed DAOs and the labels' legend; and the counts the sidebar shows
   beside each followed DAO. Colours are the roles of theme.css. */

.home { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home .slot { min-width: 0; }
.home .pad { padding: 8px 14px; border-top: 1px solid var(--line); }

/* the box that opens anything */
.home .open-row { display: flex; flex-wrap: wrap; gap: 8px; }
.home .srch { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); padding: 0 10px; color: var(--dim); min-width: 0; }
.home .srch input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: 8px 0; outline: none; }
.home .srch:focus-within { border-color: var(--acc); }
.home .res-slot:empty { display: none; }
.home .res { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; border: 1px solid var(--line2); border-radius: 8px; background: var(--head); padding: 10px 12px; }
.home .res .two { flex: 1 1 260px; }
.home .res.rf { border-color: var(--cau-b); background: var(--cau-bg); color: var(--cau-t); }
.home .res.rf .sub { color: var(--cau-t); }

/* what changed since the last visit, and the legend of the labels */
.home .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.home .pair .slot > .card { height: 100%; }
@media (min-width: 1100px) { .home .pair { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
.home .feed { display: flex; flex-direction: column; }
.home .fi { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.home .fi:last-child { border-bottom: 0; }
.home .fi .big { font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; min-width: 30px; }
.home .klist { display: flex; flex-direction: column; }
/* the chip column is as wide as the longest chip ("says an Addon"), so no host is cut */
.home .kl { display: grid; grid-template-columns: 152px minmax(0, 1fr); align-items: start; gap: 6px 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.home .kl:last-child { border-bottom: 0; }
.home .kl .lb { justify-self: start; }

/* the tiles hold a line and a button under the figure, and a warning line */
.home .kpi .s .btn { margin-top: 4px; }
.home .kpi .warn { color: var(--warn); }

/* the sidebar: the open count beside a followed DAO, and the states a count is not shown in */
.side .si .cnt[data-state="reading"] { color: var(--dim); border-style: dashed; }
.side .si .cnt[data-state="refused"] { color: var(--cau-t); background: var(--cau-bg); border-color: var(--cau-b); }

@media (max-width: 599px) {
  .home .srch { min-height: 44px; }
  .home .fi { padding: 10px 12px; }
  .home .kl { grid-template-columns: 1fr; }
}
