/* The Family page (josh/profiles #3). The photos are the show: wide, calm, newest first. */
body.family, body.in-family { background: #f4f3f7; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px); background: rgb(255 255 255 / .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6e2ec; font-family: var(--round); }
.top .brand { font: 800 1.35rem/1 var(--round); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 16px; flex: 1; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.top nav a:hover { color: var(--accent); }
.top nav form { margin: 0; }
.top .who { margin-left: auto; color: var(--muted); font-size: .9rem; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }

.feed { max-width: 720px; margin: 0 auto; padding: 22px 16px 60px; }
.flash { background: #fff; border: 1px solid #e6e2ec; border-left: 5px solid var(--accent); border-radius: 12px; padding: 10px 14px; }
.post { background: #fff; border: 1px solid #e6e2ec; border-radius: 18px; padding: 16px; margin: 0 0 26px; display: grid; gap: 10px; }
.post label { font: 800 1.1rem/1.2 var(--round); }
.post input[type=text] { border: 1px solid #e6e2ec; border-radius: 10px; padding: 9px 11px; font: inherit; }
.post button, .login button, .me button { justify-self: start; background: var(--accent); color: #fff; border: 0; border-radius: 12px;
  padding: 10px 18px; font: 700 1rem var(--round); cursor: pointer; }
.post .hint { margin: 0; color: var(--muted); font-size: .88rem; }

.photo { margin: 0 0 30px; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #e6e2ec; }
.photo img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #ebe9ef; }
.photo figcaption { padding: 12px 16px 14px; }
.photo .cap { margin: 0 0 6px; font-size: 1.05rem; }
.photo .meta { margin: 0; color: var(--muted); font-size: .88rem; }
.photo .meta a { color: inherit; font-weight: 700; }
.photo form { margin: 6px 0 0; }
.photo.waiting { border: 2px dashed color-mix(in oklab, var(--accent) 45%, #fff); }
.photo.waiting img { opacity: .8; }
.empty-feed, .more { text-align: center; color: var(--muted); }

.people { max-width: 900px; margin: 0 auto; padding: 22px 16px 60px; }
.people h1, .me h1, .login h1 { font: 800 2rem/1.1 var(--round); letter-spacing: -.02em; }
.people ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; }
.people a { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; text-align: center; }
.people .av { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #fff; border: 4px solid #fff;
  box-shadow: 0 0 0 2px #e6e2ec; display: grid; place-items: center; font: 800 36px var(--round); color: var(--accent); }
.people .av img { width: 100%; height: 100%; object-fit: cover; }

.login { max-width: 440px; margin: 8vh auto; padding: 0 18px; }
.login form, .me form { display: grid; gap: 10px; margin: 16px 0; }
.login input, .me input, .me textarea { border: 1px solid #e6e2ec; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; }
.login #code { font: 700 1.6rem/1 var(--round); letter-spacing: .3em; text-align: center; }
.me label { display: grid; gap: 4px; font-weight: 700; }
.me .avatar-row { display: flex; align-items: center; gap: 16px; }
.me .avatar-row img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }

/* a profile card inside the Family page */
body.in-family main { padding-top: 110px; }
body.in-family.kind-shrine main { padding-top: 40px; }
@media (max-width: 600px) { .top .who { display: none; } body.in-family main { padding-top: 96px; } }
