/* Detail-page-only community rhythm. Account, list, and moderation screens keep their own styles. */
.pb-detail-page {
  --pb-detail-width: 1100px;
  --pb-detail-gutter: 14px;
  --pb-detail-rule: #e1e1dc;
  --pb-detail-muted: #686864;
  --pb-detail-paper: #fafaf8;
}
.pb-detail-page--photographer { --pb-detail-width: 1320px; --pb-detail-gutter: 24px; }
.pb-detail-page--publisher { --pb-detail-width: 1200px; --pb-detail-gutter: 18px; }
.pb-detail-page .pb-ph-wrap,
.pb-detail-page .pb-publisher-detail { box-sizing: border-box; }
.pb-detail-page .pb-ph-wrap { padding-bottom: 40px; }
.pb-detail-page .pb-publisher-detail { padding-bottom: 32px; }

.pb-detail-page .pb-community,
.pb-detail-page .pb-entity-follow,
.pb-detail-page .pb-contribution-prompt {
  box-sizing: border-box;
  width: calc(100% - var(--pb-detail-gutter) * 2);
  max-width: calc(var(--pb-detail-width) - var(--pb-detail-gutter) * 2);
  margin: 16px auto 0;
  padding: 0;
  color: #202124;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.pb-detail-page .pb-community *,
.pb-detail-page .pb-entity-follow *,
.pb-detail-page .pb-contribution-prompt * { box-sizing: border-box; }
.pb-detail-page .pb-community {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid #bdbdb6;
  scroll-margin-top: 64px;
}
.pb-detail-page .pb-community > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pb-detail-rule);
}
.pb-detail-page .pb-community > header > div { min-width: 0; }
.pb-detail-page .pb-community h2 {
  margin: 4px 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.pb-detail-page .pb-community header p { font-size: 13px; line-height: 1.65; color: var(--pb-detail-muted); }
.pb-detail-page .pb-community .pb-community-kicker { font-size: 10px !important; letter-spacing: .09em; }
.pb-detail-page .pb-community > header > a {
  flex: 0 0 auto;
  padding: 4px 0;
  color: var(--pb-detail-muted);
  font-size: 12px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.pb-detail-page .pb-community-empty,
.pb-detail-page .pb-community-gate {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--pb-detail-rule);
  border-radius: 6px;
  background: var(--pb-detail-paper);
  color: var(--pb-detail-muted);
  font-size: 13px;
}
.pb-detail-page .pb-community-compose {
  margin: 12px 0 24px;
  padding: 0;
  border: 1px solid var(--pb-detail-rule);
  border-radius: 6px;
  background: var(--pb-detail-paper);
}
.pb-detail-page .pb-community-compose > summary { padding: 12px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pb-detail-page .pb-community-compose > form { margin: 0; padding: 16px; border-top: 1px solid var(--pb-detail-rule); background: #fff; }
.pb-detail-page .pb-community-compose label { font-size: 13px; }
.pb-detail-page .pb-community-compose button { justify-self: start; font-size: 12px; font-weight: 600; }
.pb-detail-page .pb-community-thread { margin-top: 16px; border-color: var(--pb-detail-rule); border-radius: 6px; }
.pb-detail-page .pb-community-thread h3 { font-size: 16px; line-height: 1.45; }
.pb-detail-page .pb-community-body { font-size: 14px; line-height: 1.7; }
.pb-detail-page .pb-community-actions,
.pb-detail-page .pb-community-secondary { font-size: 12px; }
.pb-detail-page .pb-community-post-meta { flex-wrap: wrap; font-size: 11px; }

/* Smaller secondary actions, with the same outer edges as the discussion and detail content. */
.pb-detail-page .pb-entity-follow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px 20px;
  padding: 12px 16px;
  border: 1px solid var(--pb-detail-rule);
  border-radius: 6px;
  background: var(--pb-detail-paper);
  font-size: 12px;
}
.pb-detail-page .pb-entity-follow > div { min-width: 0; flex: 1; }
.pb-detail-page .pb-entity-follow strong { font-size: 13px; font-weight: 600; }
.pb-detail-page .pb-entity-follow p { margin: 3px 0 0; font-size: 12px; color: var(--pb-detail-muted); line-height: 1.55; }
.pb-detail-page .pb-entity-follow form { flex: 0 0 auto; margin: 0; }
.pb-detail-page .pb-entity-follow button,
.pb-detail-page .pb-entity-follow a,
.pb-detail-page .pb-book-collection-actions button,
.pb-detail-page .pb-book-save-signin {
  min-height: 32px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.pb-detail-page .pb-entity-follow button,
.pb-detail-page .pb-entity-follow a { border-color: #cecec8; background: #fff; color: #202124; }
.pb-detail-page .pb-entity-follow button.is-following { border-color: #202124; background: #202124; color: #fff; }
.pb-detail-page .pb-contribution-prompt { margin-top: 12px; margin-bottom: 48px; font-size: 12px; }
.pb-detail-page .pb-contribution-prompt details { border-color: var(--pb-detail-rule); border-radius: 6px; background: var(--pb-detail-paper); }
.pb-detail-page .pb-contribution-prompt summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.pb-detail-page .pb-contribution-prompt summary::-webkit-details-marker { display: none; }
.pb-detail-page .pb-contribution-prompt summary::after { text-align: right; font-size: 14px; font-weight: 400; }
.pb-detail-page .pb-contribution-context { max-width: 42ch; color: var(--pb-detail-muted); font-size: 11px; font-weight: 400; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-detail-page .pb-contribution-form { padding: 16px; }
.pb-detail-page .pb-contribution-form label { font-size: 12px; font-weight: 600; }
.pb-detail-page .pb-contribution-form input,
.pb-detail-page .pb-contribution-form select,
.pb-detail-page .pb-contribution-form textarea { font-size: 13px; }
.pb-detail-page .pb-contribution-form button { min-height: 32px; font-family: inherit; font-size: 12px; font-weight: 600; }
.pb-detail-page .pb-contribution-signin { padding: 12px 16px; border-color: var(--pb-detail-rule); border-radius: 6px; font-size: 12px; }
.pb-detail-page .pb-community a:focus-visible,
.pb-detail-page .pb-community button:focus-visible,
.pb-detail-page .pb-community summary:focus-visible,
.pb-detail-page .pb-entity-follow a:focus-visible,
.pb-detail-page .pb-entity-follow button:focus-visible,
.pb-detail-page .pb-contribution-prompt summary:focus-visible { outline: 2px solid #333; outline-offset: 3px; }

@media (max-width: 680px) {
  .pb-detail-page--photographer { --pb-detail-gutter: 18px; }
  .pb-detail-page .pb-ph-wrap { padding-bottom: 32px; }
  .pb-detail-page .pb-community > header { flex-wrap: wrap; gap: 6px 16px; }
  .pb-detail-page .pb-community > header > a { min-height: 36px; display: inline-flex; align-items: center; }
  .pb-detail-page .pb-community h2 { font-size: 18px; }
  .pb-detail-page .pb-contribution-prompt summary { grid-template-columns: minmax(0, 1fr) 12px; gap: 3px 12px; min-height: 44px; }
  .pb-detail-page .pb-contribution-context { grid-row: 2; grid-column: 1; max-width: 100%; text-align: left; }
  .pb-detail-page .pb-contribution-prompt summary::after { grid-column: 2; grid-row: 1 / 3; }
  .pb-detail-page .pb-entity-follow { flex-wrap: wrap; }
  .pb-detail-page .pb-entity-follow > div { flex-basis: 100%; }
  .pb-detail-page .pb-entity-follow form,
  .pb-detail-page .pb-entity-follow a { width: auto; }
  .pb-detail-page .pb-community-compose > summary,
  .pb-detail-page .pb-community button,
  .pb-detail-page .pb-entity-follow button,
  .pb-detail-page .pb-entity-follow a,
  .pb-detail-page .pb-book-collection-actions button,
  .pb-detail-page .pb-book-save-signin,
  .pb-detail-page .pb-contribution-form button { min-height: 44px; }
  .pb-detail-page .pb-community input,
  .pb-detail-page .pb-community select,
  .pb-detail-page .pb-community textarea,
  .pb-detail-page .pb-contribution-form input,
  .pb-detail-page .pb-contribution-form select,
  .pb-detail-page .pb-contribution-form textarea { font-size: 16px; }
}
