/* 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; }
}

/* Production covers use the original individually cached WebP assets. */
.post-thumbnail .thumbnail-button,.post-thumbnail .post-thumbnail-static{display:block;position:relative;width:100%;height:auto;aspect-ratio:1;background:#edf1ee;overflow:hidden}
.post-thumbnail .thumbnail-button>img,.post-thumbnail .post-thumbnail-static>img{position:absolute;inset:16px;width:calc(100% - 32px);height:calc(100% - 32px);max-width:none;object-fit:contain}
.list-layout .post-thumbnail .thumbnail-button,.list-layout .post-thumbnail .post-thumbnail-static{height:100%;min-height:190px}
.pagination>.mobile-page-status{order:2}
.pagination>.page-btn:last-of-type{order:3}
@media(max-width:680px){.list-layout .post-thumbnail .thumbnail-button,.list-layout .post-thumbnail .post-thumbnail-static{min-height:100%;height:100%}}
html{scroll-behavior:auto}

/* Responsive browsing density; keep the approved palette and cover assets. */
.more-topics{display:none}
/* Saving is intentionally unavailable; keep existing browser data untouched. */
#nav-new,#nav-saved,.posts-grid .save-button{display:none!important}
.mobile-nav-label{display:none}
@media(min-width:1100px) and (max-width:1365px){.posts-grid:not(.list-layout){grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
@media(min-width:1366px){.posts-grid:not(.list-layout){grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}}
@media(min-width:1700px){.posts-grid:not(.list-layout){grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:681px){
  .posts-grid:not(.list-layout) .creator-row{flex-wrap:wrap;height:auto;min-height:68px;gap:4px 8px}
  .posts-grid:not(.list-layout) .creator-name{line-height:28px;flex:1;min-width:0}
  .posts-grid:not(.list-layout) .engagement-stat{min-height:28px;padding:4px 7px;font-size:11px}
  .posts-grid:not(.list-layout) .engagement-stat strong{font-size:14px}
  .posts-grid:not(.list-layout) .post-content{padding:12px 12px 0}
  .posts-grid:not(.list-layout) .post-title{font-size:16px;height:44.8px;min-height:44.8px}
  .posts-grid:not(.list-layout) .card-footer{padding:0 12px 10px}
  .posts-grid:not(.list-layout) .view-post-btn{font-size:12px}
}
.cover-preview{position:fixed;inset:0;margin:auto;border:0;border-radius:12px;padding:52px 12px 12px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);background:#fff;box-shadow:0 20px 80px #0004}
.cover-preview::backdrop{background:#172720c9}
.cover-preview img{display:block;max-width:100%;max-height:calc(100dvh - 100px);object-fit:contain;margin:auto}
.preview-close{position:absolute;right:8px;top:4px;min-height:44px;padding:8px 12px;color:var(--accent);font-weight:600}
@media(max-width:680px){
  .sidebar{padding-top:8px}.brand{margin-bottom:4px}.brand-logo{width:28px;height:28px}.brand strong{font-size:16px}.brand br{display:none}
  .topbar{position:sticky;top:0;z-index:4;padding:6px 12px}
  .collection-header{padding:12px 0}.collection-title h1{font-size:25px}.collection-header p{display:none}
  .toolbar{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:10px;align-items:flex-start}
  .filter-panel{flex:0 0 76px;width:auto}.filter-panel[open]{flex-basis:100%}.filter-panel>summary{padding:8px;font-size:13px}
  .results-actions{flex:1;gap:6px;min-width:0}#sort{width:0;min-width:0;flex:1;font-size:12px;padding-left:7px;padding-right:23px}
  .results-summary{padding:10px 0}.preview-hint{display:none}
  .posts-grid:not(.list-layout){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .posts-grid .creator-avatar{display:none}
  .posts-grid .post-chips{height:auto;min-height:32px;flex-wrap:wrap;overflow:visible;gap:4px;margin:0}
  .posts-grid .post-chips:not(.topics-expanded)>.chip:not(:first-child){display:none}
  .posts-grid .chip{max-width:100%;font-size:11px;min-height:32px;padding:5px 6px}
  .posts-grid .more-topics{display:block;min-width:32px;min-height:32px;font-size:11px;color:var(--accent);padding:4px}
  .posts-grid .creator-name{font-size:12px;line-height:24px;min-height:24px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .posts-grid .engagement-stat{min-height:24px;padding:3px 5px;font-size:10px}.posts-grid .engagement-stat strong{font-size:12px}.posts-grid .engagement-stat svg{width:12px;height:12px}
  .posts-grid .creator-row{height:auto;min-height:0;flex-wrap:wrap;gap:3px;margin-bottom:5px}
  .posts-grid .post-title{font-size:14px;line-height:1.4;height:39.2px;min-height:39.2px;margin-bottom:4px}
  .posts-grid .post-title-link{-webkit-line-clamp:2;min-height:0}
  .posts-grid .save-button{width:44px;height:44px;min-width:44px;top:2px;right:2px}
  .posts-grid:not(.list-layout) .post-content{padding:8px}
  .posts-grid:not(.list-layout) .creator-name{flex-basis:100%}
  .posts-grid:not(.list-layout) .card-footer{padding:0 8px 6px;height:auto;flex-wrap:wrap;gap:0}
  .posts-grid .published-date{font-size:11px}.posts-grid .view-post-btn{font-size:11px;min-height:44px}
  .posts-grid:not(.list-layout) .thumbnail-button>img{inset:8px;width:calc(100% - 16px);height:calc(100% - 16px)}
  .posts-grid.list-layout{grid-template-columns:1fr;gap:12px}
  .posts-grid.list-layout .post-card{grid-template-columns:100px minmax(0,1fr);align-items:stretch}
  .posts-grid.list-layout .post-thumbnail{grid-row:1/3;grid-column:1}
  .posts-grid.list-layout .post-content{grid-column:2;padding:10px 10px 0;height:auto}
  .posts-grid.list-layout .creator-row{min-height:0;height:auto;margin-bottom:5px}
  .posts-grid.list-layout .creator-name{flex-basis:100%;line-height:24px}
  .posts-grid.list-layout .thumbnail-button{min-height:100%;height:100%;aspect-ratio:auto}
  .posts-grid.list-layout .thumbnail-button>img{inset:6px;width:calc(100% - 12px);height:calc(100% - 12px)}
  .posts-grid.list-layout .card-footer{grid-column:2;grid-row:2;flex-direction:row;align-items:center;padding:0 10px 4px;height:auto;gap:4px;flex-wrap:wrap}
}

/* Editorial list: a bounded reading measure and one metadata group. */
@media(min-width:681px){
  .posts-grid.list-layout{max-width:1160px;margin-inline:auto;gap:14px}
  .posts-grid.list-layout .post-card{grid-template-columns:120px minmax(0,1fr);align-items:stretch;overflow:hidden}
  .posts-grid.list-layout .post-thumbnail{grid-column:1;grid-row:1/3}
  .posts-grid.list-layout .thumbnail-button{height:100%;min-height:172px;aspect-ratio:auto}
  .posts-grid.list-layout .post-content{grid-column:2;grid-row:1;height:auto;padding:14px 20px 0}
  .posts-grid.list-layout .creator-row{height:auto;min-height:28px;margin:0 0 8px;flex-wrap:wrap;gap:8px}
  .posts-grid.list-layout .creator-name{flex:0 1 auto;line-height:28px;max-width:calc(100% - 44px);font-size:13px}
  .posts-grid.list-layout .creator-avatar{width:24px;height:24px}
  .posts-grid.list-layout .engagement-stat{margin-left:4px;min-height:26px;padding:4px 7px;font-size:11px;background:#f3f4f6;border-color:#e5e7eb}
  .posts-grid.list-layout .engagement-stat strong{font-size:13px}
  .posts-grid.list-layout .post-title{height:auto;min-height:0;max-width:72ch;font-size:17px;line-height:1.4;margin:0 0 8px}
  .posts-grid.list-layout .post-chips{height:auto;min-height:28px;margin:0;flex-wrap:wrap}
  .posts-grid.list-layout .chip{font-size:11px;line-height:18px;padding:4px 7px}
  .posts-grid.list-layout .card-footer{grid-column:2;grid-row:2;flex-direction:row;justify-content:flex-start;align-items:center;align-self:end;gap:18px;height:auto;min-height:40px;padding:0 20px 8px}
  .posts-grid.list-layout .published-date{font-size:12px}
  .posts-grid.list-layout .view-post-btn{font-size:12px;min-height:32px}
}
@media(max-width:680px){
  .sidebar{padding:18px 16px 12px;background:#fff;border:0;overflow:visible}
  .brand{padding:0;margin:0 0 16px;gap:10px;min-height:36px}
  .brand-logo{width:36px;height:36px;box-shadow:none}
  .brand>span{font-size:18px;font-weight:650;letter-spacing:-.5px;color:var(--ink)}
  .brand strong{font-size:inherit;font-weight:inherit;letter-spacing:inherit;margin-left:4px}
  .main-nav{display:grid;grid-template-columns:1fr;padding:4px;gap:4px;background:#f2f4f5;border:1px solid #e9ecee;border-radius:12px}
  .main-nav .nav-link{min-width:0;min-height:40px;border-radius:8px;padding:8px 4px;font-size:13px;font-weight:500;color:#626a73;gap:6px}
  .main-nav .nav-link.active{background:#fff;color:var(--accent);box-shadow:0 1px 4px #162d2314;font-weight:650}
  .main-nav .nav-link svg{width:15px;height:15px;color:inherit}
  .main-nav .nav-count,.desktop-nav-label{display:none}
  .mobile-nav-label{display:inline}
  .topbar{padding:0 16px 14px;border-bottom:1px solid #e5e8eb;box-shadow:0 4px 12px #17272004}
  .search-box{min-height:46px;border-radius:10px;background:#f8faf9;border:1px solid #dde4e0;padding-left:12px;gap:8px}
  .search-box input{font-size:16px;padding:12px 0}
  .search-submit{min-height:38px;margin:3px;border-radius:7px;padding:8px 10px;font-size:12px;background:#e3f2ed;color:#006b60}
  .search-form{width:100%}
  .container{padding:0 16px}
  .collection-header{padding:20px 0 14px}
  .collection-title h1{font-size:26px;letter-spacing:-.7px}
  .result-count{font-size:12px;padding:2px 7px;border:0;background:#e7eeeb;color:#4a6359}
}
