/* Plain pages: the care policy, the review desk, the 404 and the local demo sign in. */
.lost { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 22px; padding-block: 96px 64px; }
.devform { padding: 24px; display: grid; gap: 12px; width: min(460px, 100%); }
.devform .label { margin-top: 6px; }
.devpic { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.devpic .face { width: 72px; height: 72px; }
.devpic-side { display: grid; gap: 8px; min-width: 0; }
.field { width: 100%; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(5, 3, 10, .7); font: 500 13.5px/1.3 var(--f-mono); color: var(--ink); }
.field:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }

/* the page of verified projects */
.pj-page { padding-top: clamp(96px, 11vw, 128px); padding-bottom: 40px; min-height: 80vh; display: grid; gap: 26px; align-content: start; }
.pj-head { display: grid; gap: 18px; justify-items: start; }
.pj-head h1 { font-size: clamp(36px, 5.4vw, 66px); }
.pj-bar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.pj-page .projects { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.pj-more { display: grid; justify-items: center; }

/* a member's public page */
.profile { padding-top: clamp(96px, 11vw, 128px); padding-bottom: 40px; min-height: 80vh; }
.p-found { display: grid; gap: 26px; }
.p-head { padding: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 20px 26px; align-items: center; }
.p-head .face { width: 168px; height: 168px; box-shadow: 0 0 0 2px var(--tier, var(--line-2)), 0 0 54px -8px color-mix(in srgb, var(--tier, var(--orange)) 85%, transparent); }
.p-head .face.off img { filter: saturate(.3) brightness(.65); }
.p-id { display: grid; gap: 12px; min-width: 0; justify-items: start; }
.p-id h1 { font-size: clamp(30px, 4.6vw, 54px); overflow-wrap: anywhere; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p-stats { display: grid; grid-template-columns: repeat(2, auto); gap: 18px 30px; align-items: end; }
.p-stats .stat { display: grid; gap: 6px; }
.p-stats .stat b { font: 700 26px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.p-stats .stat b[class^="t-"] { color: var(--tier); }
.p-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.p-title h2 { font-size: clamp(22px, 2.4vw, 28px); }
.p-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.p-badge { padding: 14px 10px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.p-badge .emblem { width: 64px; }
.p-badge b { font: 600 14px/1.25 var(--f-display); }
.p-badge small { font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.p-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.p-project { padding: 14px 16px; display: grid; gap: 6px; text-decoration: none; transition: border-color .2s; }
.p-project:hover { border-color: var(--orange); }
.p-project b { font: 600 16px/1.25 var(--f-display); }
.p-project small { font: 500 11.5px/1.3 var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.p-missing { display: grid; gap: 22px; justify-items: start; padding-block: 40px; }
@media (max-width: 900px) {
  .p-head { grid-template-columns: 112px minmax(0, 1fr); }
  .p-head .face { width: 112px; height: 112px; }
  .p-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .p-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the care policy reads like a document */
.doc { padding-top: clamp(104px, 12vw, 140px); padding-bottom: 40px; display: grid; gap: 28px; max-width: 820px; }
.doc-head { display: grid; gap: 18px; }
.doc-head h1 { font-size: clamp(38px, 5.6vw, 68px); }
.doc section { padding: clamp(20px, 3vw, 30px); display: grid; gap: 12px; }
.doc section h2 { font-size: clamp(22px, 2.4vw, 28px); display: flex; align-items: center; gap: 14px; }
.doc section h2 .glyph { width: 44px; height: 44px; flex: none; }
.doc section p, .doc section li { color: var(--ink-2); }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.doc li::marker { color: var(--orange); }
.doc .promise { border-color: rgba(255, 138, 36, .5); }

/* the review desk */
.desk-page { padding-top: clamp(96px, 11vw, 120px); padding-bottom: 40px; display: grid; gap: 18px; }
.desk-page h1 { font-size: clamp(30px, 4vw, 44px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { padding: 14px 16px; display: grid; gap: 8px; }
.tile b { font: 700 24px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.box { padding: 18px; display: grid; gap: 12px; }
.box > .btn, .lost > .btn { justify-self: start; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline .field { flex: 1 1 280px; width: auto; }
.tablebox { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.tablebox.short { max-height: 340px; overflow-y: auto; }
table.badges-table { min-width: 560px; }
table.members { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 1080px; }
.members th, .members td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.members th { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--panel); position: sticky; top: 0; }
.members td:first-child { white-space: nowrap; }
.members td.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }
.members code { font: 500 12px/1.4 var(--f-mono); overflow-wrap: anywhere; }
.members tr.flagged td { background: rgba(255, 211, 107, .06); }
.members tr.banned td { background: rgba(255, 59, 59, .07); }
.members .acts { display: flex; flex-wrap: wrap; gap: 5px; }
textarea.field { min-height: 220px; resize: vertical; white-space: pre; }
table.old-table { min-width: 860px; }
.old-table .field { flex: 1 1 150px; padding: 6px 9px; font-size: 12.5px; }
.members tr.invites td { background: rgba(255, 138, 36, .05); }
.invite-list { margin: 8px 0 0; padding-left: 18px; columns: 2; }
.invite-list li { margin-bottom: 4px; break-inside: avoid; }
/* a submitted project on the review desk */
.pj-list { display: grid; gap: 10px; }
.pj { padding: 12px; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px; align-items: start; }
.pj.approved { border-color: rgba(79, 227, 161, .35); }
.pj.rejected { opacity: .7; }
.pj-body { display: grid; gap: 8px; min-width: 0; }
.pj-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pj-top b { font: 600 17px/1.2 var(--f-display); overflow-wrap: anywhere; }
.pj-body p { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.pj-body code { font: 500 12px/1.4 var(--f-mono); overflow-wrap: anywhere; }
.pj-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pj .field.pj-note { flex: 1 1 240px; padding: 7px 10px; font-size: 12.5px; }
@media (max-width: 640px) { .pj { grid-template-columns: minmax(0, 1fr); } }
