/* admin.css: the Admin page (public/admin.html). It builds on lock.css (the website's colours, top bar, buttons and dialogs),
   unlock.css (the small cards and the switch between sections) and people.css (the lists of people and the dialogs). */

/* ---- today ---- */
.today{margin-bottom:clamp(18px,3vw,28px);max-width:760px}
.today h2{font-size:clamp(24px,3vw,30px)}
.todayline b{font-weight:800}
.today .todayline:not(:empty)+.todayline:not(:empty){margin-top:0}

/* ---- the sections ---- */
.adminnav{flex-wrap:wrap;margin-bottom:6px}
.adminnav .pill{margin-left:6px;padding-block:0}
#admin-msg{margin:10px 0 0;min-height:0}
.sec{display:grid;gap:14px;margin-top:clamp(18px,3vw,28px);max-width:860px}
.sec h2{font-size:clamp(28px,3.4vw,38px)}
.sec h2:not(:first-child){margin-top:clamp(18px,3vw,30px)}
.sec .note a{color:inherit}
.sechead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.empty{padding-block:4px}

/* ---- people ---- */
.person .pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.person .row{align-items:center}
.pill.bday{border-color:var(--build);color:var(--build)}
.addcard{margin-top:8px}
.addcard summary{cursor:pointer;font-weight:700;color:var(--muted)}
.addcard .stack{margin-top:14px}

/* ---- posts and projects ---- */
.items{display:grid;gap:12px}
.item{display:grid;gap:10px;padding:14px 16px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface)}
.item.off .itemtext,.item.off .itemname{opacity:.6}
.itemtop{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.itemdate{font-weight:700}
.itemname{font-weight:800;font-size:20px;line-height:1.2;overflow-wrap:anywhere}
.itemtext{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-line;overflow-wrap:anywhere}
.itemlink{font-size:15px;color:var(--muted);overflow-wrap:anywhere}
.item .row{margin-top:2px}
.groups{display:grid;gap:clamp(18px,3vw,28px)}
.pgroup{display:grid;gap:12px}
.pgroup h3{font-size:clamp(24px,2.6vw,30px)}

/* ---- the access dialog ---- */
.group{display:grid;gap:10px;min-width:0;margin:0;padding:12px 14px 14px;border:1.5px solid var(--line);border-radius:12px}
.group legend{padding:0 6px;font-size:15px;font-weight:700;color:var(--muted)}
.picks{max-height:min(46dvh,360px);overflow:auto}
.two{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}
#dlg-post,#dlg-project,#dlg-access{width:min(620px,calc(100vw - 32px))}
@media (max-width:480px){.two{grid-template-columns:minmax(0,1fr)}}
