/* Approved neutral engagement badges and a more readable library hierarchy. */
:root {
  --muted: #59616b;
  --line: #dfe2e6;
  --metric-background: #eceef1;
  --metric-border: #d8dce1;
  --metric-ink: #23272f;
}
.collection-header { padding: 26px 0 22px; }
.collection-title { gap: 14px; }
.collection-title h1 { font-size: 38px; font-weight: 750; letter-spacing: -1.1px; line-height: 1.2; overflow-wrap: anywhere; }
.result-count { font-size: 16px; font-weight: 600; padding: 3px 9px; flex-shrink: 0; }
.collection-header p { margin-top: 11px; color: #515862; font-size: 16px; line-height: 1.5; }
.toolbar { gap: 16px; padding-bottom: 20px; }
.filter-controls, .results-actions { gap: 10px; }
.toolbar select { min-height: 46px; font-size: 15px; font-weight: 600; color: #30353c; border-color: #d6dbe1; border-radius: 6px; padding-left: 13px; }
#creator { width: 168px; }
#tag { width: 158px; }
#published { width: 145px; }
#sort { border: 1px solid #d6dbe1; max-width: 205px; width: 185px; padding-left: 13px; }
.clear-button { min-height: 44px; font-size: 13px; }
.view-switch { padding: 0; gap: 0; border-color: #d6dbe1; }
.view-switch button { width: 44px; height: 44px; border-radius: 4px; }
.view-switch svg { width: 20px; height: 20px; }
.results-summary { padding: 18px 0; font-size: 14px; color: #59616b; }
.preview-hint { font-size: 12px; }
.search-box input { font-size: 15px; }
.search-submit { font-size: 13px; }
.posts-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.post-card { border-color: #dfe2e6; border-radius: 9px; }
.post-content { padding: 16px 18px 0; }
.creator-row { height: 44px; min-height: 44px; gap: 8px; margin-bottom: 12px; }
.creator-avatar { width: 28px; height: 28px; font-size: 10px; background: #eef0f2; color: #59616b; }
.creator-name { display: block; min-height: 0; font-size: 14px; line-height: 44px; color: #505862; }
.engagement-stat {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--metric-border);
  border-radius: 6px;
  background: var(--metric-background);
  color: var(--metric-ink);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.engagement-stat strong { color: inherit; font-size: 17px; font-weight: 750; letter-spacing: -.2px; }
.engagement-stat span { display: inline; }
.engagement-stat svg { width: 15px; height: 15px; margin-left: 1px; }
.post-title { font-size: 18px; font-weight: 650; line-height: 1.4; letter-spacing: -.25px; height: 50.4px; min-height: 50.4px; margin-bottom: 8px; }
.post-title-link { -webkit-line-clamp: 2; min-height: 0; }
.post-chips { gap: 6px; height: 32px; min-height: 32px; margin-bottom: 12px; }
.chip { color: #505862; background: #f3f4f6; font-size: 12px; line-height: 20px; padding: 5px 7px; border-radius: 5px; }
.card-footer, .list-layout .card-footer { justify-content: space-between; }
.card-footer { padding: 0 18px 12px; height: 58px; }
.published-date { font-size: 13px; color: #59616b; white-space: nowrap; }
.view-post-btn { font-size: 14px; font-weight: 600; min-height: 44px; white-space: nowrap; }
.view-post-btn svg { width: 15px; height: 15px; }
.list-layout .post-card { grid-template-columns: 160px minmax(0,1fr) 168px; overflow: hidden; }
.list-layout .post-content { padding: 14px 18px; }
.list-layout .creator-row { height: 44px; margin-bottom: 8px; }
.list-layout .post-title { font-size: 18px; min-height: 50.4px; height: 50.4px; }
.list-layout .post-chips { margin-bottom: 0; }
.list-layout .card-footer { padding: 14px; align-items: flex-end; gap: 8px; }
.list-layout .thumbnail-button { min-height: 205px; }
@media (min-width: 681px) and (max-width: 1250px) {
  .posts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .toolbar { flex-wrap: wrap; }
  .filter-panel { flex-basis: 100%; }
  .results-actions { margin-left: auto; }
  .list-layout .post-card { grid-template-columns: 145px minmax(0,1fr); }
  .list-layout .post-thumbnail { grid-row: 1/3; }
  .list-layout .card-footer { grid-column: 2; flex-direction: row; align-items: center; padding: 0 18px 12px; }
}
@media (max-width: 680px) {
  .collection-header { padding: 20px 0 18px; }
  .collection-title h1 { font-size: 32px; letter-spacing: -.8px; }
  .collection-title { gap: 10px; }
  .result-count { font-size: 14px; padding: 3px 7px; }
  .collection-header p { font-size: 15px; margin-top: 9px; }
  .toolbar { gap: 10px; padding-bottom: 14px; }
  .toolbar select, .filter-controls select, #creator, #tag, #published { font-size: 16px; min-height: 46px; width: 100%; }
  .filter-controls { gap: 10px; }
  .filter-panel > summary { min-height: 46px; font-size: 15px; }
  #sort { font-size: 14px; width: 185px; }
  .results-summary { padding: 15px 0; font-size: 13px; }
  .search-box input { font-size: 16px; }
  .posts-grid { grid-template-columns: 1fr; gap: 20px; }
  .post-content { padding: 12px 14px 0; }
  .creator-row { margin-bottom: 10px; gap: 7px; }
  .creator-name { font-size: 14px; }
  .creator-avatar { display: grid; width: 26px; height: 26px; font-size: 9px; }
  .engagement-stat { padding: 7px 8px; }
  .post-title { font-size: 18px; min-height: 50.4px; height: 50.4px; }
  .post-chips { margin-bottom: 10px; }
  .chip { padding: 6px 7px; min-height: 32px; }
  .card-footer { padding: 0 14px 10px; height: 56px; }
  .published-date { font-size: 12px; }
  .view-post-btn { font-size: 13px; }
  .list-layout .post-card { grid-template-columns: 100px minmax(0,1fr); }
  .list-layout .post-thumbnail { grid-row: 1; }
  .list-layout .post-content { padding: 10px; }
  .list-layout .creator-row { flex-wrap: wrap; height: auto; min-height: 76px; gap: 4px 6px; }
  .list-layout .creator-avatar { display: none; }
  .list-layout .creator-name { flex-basis: 100%; line-height: 28px; font-size: 13px; }
  .list-layout .engagement-stat { min-height: 32px; padding: 5px 7px; font-size: 11px; }
  .list-layout .engagement-stat strong { font-size: 15px; }
  .list-layout .engagement-stat span { display: inline; }
  .list-layout .post-title { font-size: 15px; min-height: 63px; height: 63px; }
  .list-layout .post-title-link { -webkit-line-clamp: 3; }
  .list-layout .chip { font-size: 11px; }
  .list-layout .card-footer { grid-column: 1/-1; flex-direction: row; align-items: center; padding: 0 12px 10px; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .posts-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 360px) {
  .creator-avatar { display: none; }
  .engagement-stat { padding: 6px; gap: 3px; font-size: 11px; }
  .engagement-stat strong { font-size: 15px; }
  .engagement-stat span { display: inline; }
  .list-layout .post-card { grid-template-columns: 85px minmax(0,1fr); }
  .view-post-btn { font-size: 12px; }
}
