/* A consistent document gallery: complete cover, fixed metadata rhythm. */
:root{--line:#e0e6e3;--muted:#626e68}
.container{padding-left:28px;padding-right:28px}
.posts-grid{gap:22px;align-items:start}
.post-card{align-self:start;display:flex;flex-direction:column;border:1px solid #dce3df;border-radius:10px;background:#fff;box-shadow:0 2px 4px #173f2c03;overflow:hidden}
.post-thumbnail{position:relative;background:#edf1ee;border-bottom:1px solid #e2e8e4}
.post-thumbnail .thumbnail-button{display:block;position:relative;aspect-ratio:1/1;background:#edf1ee;overflow:hidden}
.cover-stage{position:absolute;inset:16px;display:flex;align-items:center;justify-content:center}
.cover-sheet{display:block;position:relative;width:var(--sheet-width,80%);height:var(--sheet-height,100%);overflow:hidden;box-shadow:0 5px 13px #15362916,0 1px 3px #15362912;border-radius:2px;background:#fff}
.post-thumbnail .cover-sheet>img{display:block;position:absolute;max-width:none;left:var(--image-left,0);top:var(--image-top,0);width:var(--image-width,100%);height:var(--image-height,100%);object-fit:contain}
.post-thumbnail>.save-button{position:absolute;top:10px;right:10px;z-index:1;width:36px;height:36px;min-height:36px;min-width:36px;margin:0;background:#fffffff5;color:#4e6259;border:1px solid #dce5df;border-radius:50%;box-shadow:0 2px 5px #14372b0a}
.post-thumbnail>.save-button:hover{background:#fff;color:var(--accent);border-color:#b8d8cd}
.post-thumbnail>.save-button[aria-pressed=true]{background:var(--selected);color:var(--accent);border-color:#acd5c8}
.post-content{display:block;flex:0 0 auto;padding:15px 16px 0}
.post-title{font-size:16px;font-weight:600;line-height:1.4;letter-spacing:-.18px;min-height:44.8px;height:44.8px;margin:0 0 8px;display:block;overflow:hidden}
.post-title-link{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:0}
.creator-row{height:28px;min-height:28px;margin:0 0 10px;gap:7px}
.creator-avatar{display:grid;width:22px;height:22px;font-size:8px;background:#edf3ef;color:#5a7065}
.creator-name{display:flex;align-items:center;font-size:12px;line-height:1.3;min-height:28px;color:#5e6d64}
.post-chips{height:28px;min-height:28px;display:flex;flex-wrap:nowrap;align-items:center;gap:5px;margin:0 0 10px;overflow:hidden}
.chip{display:block;min-height:0;min-width:0;line-height:18px;font-size:11px;padding:3px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#5f6c64;background:#f1f4f2;border-radius:4px}
.post-stats{height:24px;display:flex;align-items:center;flex-wrap:nowrap;gap:6px;padding:0;margin:0;font-size:11px;color:#68756d}
.engagement-stat strong{color:#596b60}
.engagement-stat span{display:inline}
.card-footer{height:55px;display:flex;align-items:center;justify-content:space-between;padding:6px 16px 11px;margin:0;gap:8px}
.post-format{font-size:10px;letter-spacing:.2px;color:#67786d}
.view-post-btn{font-size:12px;font-weight:600;min-height:38px;color:var(--accent)}
.view-post-btn svg{width:13px;height:13px}
.results-summary{font-size:12px;padding:14px 0}
.sidebar-section-label{font-size:12px}
.topic-link{font-size:13px;min-height:37px}
.topic-count{font-size:11px}
.collection-header p{font-size:13px}
.post-card:hover{border-color:#b7cec0}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.post-card:hover{transform:translateY(-2px);box-shadow:0 9px 22px #14372b0c}}
.list-layout .post-card{display:grid;grid-template-columns:150px minmax(0,1fr) 145px;align-items:center}
.list-layout .post-thumbnail{align-self:stretch;border:0}
.list-layout .thumbnail-button{height:100%;min-height:190px}
.list-layout .cover-stage{inset:12px}
.list-layout .cover-sheet{width:100%;height:auto;max-height:100%;aspect-ratio:var(--cover-ratio)}
.list-layout .post-content{padding:12px 16px;height:auto}
.list-layout .post-title{height:44.8px;min-height:44.8px;font-size:16px}
.list-layout .creator-row{margin-bottom:7px}
.list-layout .post-stats{padding:0}
.list-layout .card-footer{height:auto;min-height:0;gap:5px;padding:12px;flex-direction:column}
@media(max-width:1100px){.container{padding-left:20px;padding-right:20px}.posts-grid{gap:16px}.post-content{padding-left:12px;padding-right:12px}.card-footer{padding-left:12px;padding-right:12px}.post-title{font-size:15px}.engagement-stat span{display:none}.list-layout .post-card{grid-template-columns:130px minmax(0,1fr)}.list-layout .card-footer{grid-column:2;flex-direction:row;padding:0 16px 9px}.list-layout .post-thumbnail{grid-row:1/3}.list-layout .thumbnail-button{min-height:220px}}
@media(max-width:680px){
  .container{padding-left:14px;padding-right:14px}
  .posts-grid{gap:20px}
  .post-content{padding:14px 14px 0}
  .post-title{font-size:17px;height:47.6px;min-height:47.6px;margin-bottom:7px}
  .creator-row{height:36px;min-height:36px;margin-bottom:8px}
  .creator-name{font-size:13px;min-height:36px}
  .creator-avatar{width:24px;height:24px;font-size:9px}
  .post-chips{height:32px;min-height:32px;margin-bottom:9px;gap:6px}
  .chip{font-size:12px;line-height:20px;min-height:32px;padding:6px 7px}
  .post-stats{height:26px;font-size:12px;padding:0;margin:0}
  .engagement-stat span{display:inline}
  .card-footer{height:58px;padding:5px 14px 9px}
  .view-post-btn{min-height:44px;font-size:13px}
  .post-format{font-size:11px}
  .post-thumbnail>.save-button{width:44px;height:44px}
  .list-layout .post-card{grid-template-columns:110px minmax(0,1fr)}
  .list-layout .post-content{padding:10px 12px}
  .list-layout .post-title{font-size:14px;height:39.2px;min-height:39.2px}
  .list-layout .creator-name{font-size:12px}
  .list-layout .post-chips{gap:4px}
  .list-layout .chip{font-size:10px;padding:6px 4px}
  .list-layout .post-stats{font-size:10px;gap:4px;justify-content:space-between}
  .list-layout .engagement-stat span{display:none}
  .list-layout .card-footer{grid-column:1/-1;padding:0 12px 8px;min-height:44px;flex-direction:row}
  .list-layout .post-thumbnail{grid-row:1}
  .list-layout .thumbnail-button{min-height:100%;height:100%}
}
@media(max-width:360px){.list-layout .post-card{grid-template-columns:90px minmax(0,1fr)}.list-layout .creator-avatar{display:none}.list-layout .post-content{padding-left:9px;padding-right:9px}.engagement-stat span{display:none}}

.card-footer,.list-layout .card-footer{justify-content:flex-end}
