/* People and Shared links screens: layout only. Every color, the type
   scale, .page's width/gutter and every button come from app.css; nothing
   here restyles .title, .meta, .btn, .btn-main, .btn-quiet, .page, .field
   or .form-error. Both screens are paper (light) only, per the chosen look
   (gallery.html plus living-room.html's main button), so there's no .dark
   variant here. */

/* gallery.html's own back pill (around its line 110/261): an icon plus
   "Back", a rounded chip lifted off the page. Its own screen there sits over
   a dark photo, so its pill is a translucent near-white; both of ours are
   paper screens throughout, so the same pill is given a hairline plus a soft
   ink-based shadow instead, to read against a page that's paper already. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  margin: 0 0 20px;
  padding: 0 16px 0 10px;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 4px 14px rgba(0, 0, 0, 0.12);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.back-link-icon {
  width: 21px;
  height: 21px;
  flex: none;
}

.people .title,
.links-page .title {
  margin: 0 0 4px;
}

.people > .meta,
.links-page > .meta {
  margin: 0 0 28px;
}

.section-title {
  font-stretch: 78%;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 14px;
}

.people-section {
  margin: 0 0 32px;
}

.invite-form .field {
  margin-bottom: 16px;
}

/* The remove-member sheet (ui/sheet.js's optional `stacked`): "Remove
   {name}" can be long, so its two actions stack instead of sharing one
   56px-tall row (where a long name would wrap and overflow the pill). Not a
   restyle of .sheet-actions or .btn: a new selector, applied only when the
   caller asks for it, that app.css's own cascade-order loses to on the
   properties it sets. */
.sheet-actions-stacked {
  flex-direction: column;
}

.sheet-actions-stacked .btn {
  flex: 0 0 auto;
  width: 100%;
  /* A long name ("Remove {name}") may wrap; let the pill grow with it
     rather than overflow the fixed 56px row height app.css gives sheets. */
  height: auto;
  min-height: 56px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ---------- people rows ---------- */

.people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.people-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--paper);
}

.people-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.people-row-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.people-row-info .meta {
  overflow-wrap: anywhere;
}

/* ---------- shared links rows ---------- */

.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--paper);
}

.link-row-off {
  background: var(--wash);
}

.link-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-row-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.link-row-info .meta {
  overflow-wrap: anywhere;
}

.link-row-status {
  font-weight: 600;
  color: var(--ink);
}

.link-row-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-url-field-wrap {
  margin-top: 6px;
}

.link-url-field {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  box-shadow: inset 0 0 0 1.5px var(--field-border);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}

/* A combined style, not just the bare global ring: a focus-visible field
   would otherwise lose its own resting border (app.css's ring is a plain
   box-shadow, which replaces rather than adds to one). app.css's own field
   focus is being fixed by Task 13; this field doesn't wait on that. */
.link-url-field:focus-visible {
  box-shadow:
    inset 0 0 0 1.5px var(--field-border),
    0 0 0 2px var(--paper),
    0 0 0 4px var(--ink);
}

.link-url-field-meta {
  margin: 6px 0 0;
}
