/* The Directory: the listed DAOs with their badges, search and filters, Diamonds, and the follower counts marked Web2: the tiles that filter by badge,
   the listings and the unverified tables, the Diamond sheet and the lines that count what is not shown. Every class of this page starts with dr-,
   because every page's stylesheet is loaded at once. Colours are the roles of theme.css. */

.dr { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* the tiles are buttons that choose a badge */
.dr button.kpi { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.dr button.kpi:hover { border-color: var(--acc); }
.dr button.kpi[aria-pressed="true"] { border-color: var(--acct); background: var(--sel); }

/* the head of the listings card: the search, and under it the filters */
.dr-srch { display: flex; align-items: center; gap: 8px; flex: 0 1 320px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); padding: 0 10px; color: var(--dim); min-width: 0; }
.dr-srch input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: 8px 0; outline: none; }
.dr-srch:focus-within { border-color: var(--acc); }
.dr-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dr-fg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dr-fg.grow { flex: 1; }
.dr-fg.dr-end { justify-content: flex-end; }

/* the states above a table, and the lines under it */
.dr-state:empty { display: none; }
.dr-state { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dr-addr { font-size: 12px; overflow-wrap: anywhere; }
.dr .cardf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.dr .cardf:empty, .dr-say:empty { display: none; }
.dr-say { color: var(--text); }
.dr-bad { color: var(--bad); }
.dr-good { color: var(--ok); }
.dr-notes:empty { display: none; }
.dr-notes { display: flex; flex-direction: column; gap: 6px; }
.dr-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--dim); font-size: 12px; line-height: 1.4; }
.dr-note .ic { margin-top: 1px; }

/* a table: the header's label chips, the group of a lister, a row's notes, the counts */
.dr-grp { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 8px 14px; background: var(--head); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.dr-lister { border: 0; background: transparent; padding: 0; }
.dr-warn, .dr-info { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 1.4; }
.dr-warn { color: var(--warn); }
.dr-info { color: var(--dim); }
.dr-warn .ic, .dr-info .ic { margin-top: 1px; }
.dr-chipline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; }
.dr .dm { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dr .dm .ic { color: var(--acct); }
.dr .dm.dim { font-weight: 400; }
.dr .w2n { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--w2-t); font-variant-numeric: tabular-nums; }
.dr-you { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* the listings still being read */
.dr-wait { display: flex; flex-direction: column; }
.dr-wait-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.dr-wait-row:last-child { border-bottom: 0; }

/* the sheet that gives a Diamond */
.dr-sheet-region:empty { display: none; }
.dr-sheet { border-color: var(--acc); }
.dr-sheet:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.dr-step { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dr-step:last-child { padding-bottom: 0; border-bottom: 0; }
.dr-need, .dr-write { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dr-write > label { flex: 1 0 100%; }
.dr-write .dr-in { flex: 1 1 160px; }
.dr-in { background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; font: inherit; min-height: 34px; min-width: 0; }
.dr-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 1px solid var(--line2); border-radius: 8px; background: var(--head); padding: 10px 12px; width: 100%; }
.dr-plan .mono { overflow-wrap: anywhere; }

@media (max-width: 599px) {
  .dr-srch { flex: 1 1 100%; min-height: 44px; }
  .dr-in { min-height: 44px; }
  .dr-fg.dr-end { justify-content: flex-start; }
  .dr-filters { padding: 10px 12px; }
}
