/* Local homepage feed. Article cards and the surrounding site shell retain their approved layout. */
.resource-feed{display:flex;flex-direction:column;gap:22px;min-width:0}
.recommendation-actions{display:flex;align-items:center;gap:18px;flex:none}
#refresh-recommendations{display:inline-flex;align-items:center;gap:5px;border:0;background:none;color:var(--blue);font-size:11px;padding:0 0 12px;white-space:nowrap}
#refresh-recommendations svg{width:15px;height:15px}
#refresh-recommendations:disabled{opacity:.5;cursor:wait}
.feed-seen{font-size:10px;line-height:1.5;color:#82909e;white-space:nowrap}
[data-theme=dark] .feed-seen{color:#acbdcf}
@media(max-width:700px){.recommendation-actions{gap:10px}.recommendation-actions .all-articles{display:none}#refresh-recommendations{font-size:11px}}
.feed-summary{color:#82909e;font-size:12px;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:10px 0 12px}
.feed-subtitle{font-size:12px;line-height:1.7;color:#7e8d9d;margin:0 0 6px}
.feed-authors{display:flex;align-items:center;gap:12px;min-width:0;min-height:25px}
.feed-author{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;font-size:11px;line-height:1.5;color:#718295}
.feed-author>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.feed-author img,.feed-avatar{width:25px;height:25px;flex:0 0 25px;border-radius:50%;object-fit:cover;border:1px solid #e0e7ef}
.feed-author.is-organization img{object-fit:contain;border-radius:6px;background:#fff}
.feed-avatar{display:grid;place-items:center;background:#edf2f7;font-size:10px}
.feed-tags{display:flex;flex-wrap:nowrap;overflow:hidden;gap:5px;min-width:0;max-height:25px}
.feed-tags>span{flex:none;display:inline-block;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;background:#edf3f9;color:#6382a3;border-radius:3px;font-size:10px;line-height:18px;padding:2px 6px}
.feed-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch;min-width:0}
.feed-article{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e4eaf1;border-radius:7px;padding:0 0 11px;background:#fff}
.feed-article:focus-within{border-color:var(--blue)}
.feed-article-art{display:block;aspect-ratio:16/9;overflow:hidden;border-radius:0;background:#f3f5f8}
.feed-article-art img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .22s ease}
.feed-article-art:hover img{transform:scale(1.035)}
.feed-article-art.contain{background:#fff}
.feed-article-art.contain img{object-fit:contain;transform:none}
.feed-article-art.contain:hover img{transform:scale(1.025)}
.feed-article-copy{display:flex;flex-direction:column;min-width:0;flex:1;padding:10px 10px 0}
.feed-article h3{font-size:15px;line-height:1.6;font-weight:650;margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:3.2em;min-height:3.2em;max-height:3.2em;overflow-wrap:anywhere;letter-spacing:-.15px}
.feed-article .feed-authors{gap:9px;height:25px;min-height:25px;max-height:25px;margin-bottom:8px}
.feed-article .feed-author{font-size:10px;gap:5px;flex:1;overflow:hidden}
.feed-article .feed-author img,.feed-article .feed-avatar{width:21px;height:21px;flex-basis:21px}
.feed-article .feed-summary{font-size:11px;line-height:1.85;margin:0 0 12px;min-height:3.7em;max-height:3.7em;height:3.7em}
.feed-article-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;min-width:0;height:24px}
.feed-article-foot .feed-tags{flex:1;min-width:0;max-height:22px;gap:4px}
.feed-article-foot .feed-tags>span{font-size:9px;padding:1px 5px;line-height:18px}
.feed-views{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#92a0af;white-space:nowrap;flex:none}
.feed-views svg{width:13px;height:13px}
@media(min-width:1750px){.feed-article h3{font-size:16px}.feed-article .feed-summary{font-size:12px}.feed-article .feed-author{font-size:11px}.feed-article-foot .feed-tags>span{font-size:10px}}
@media(min-width:951px) and (max-width:1250px){.feed-article-grid{gap:11px}.feed-article h3{font-size:13px}.feed-article .feed-author{font-size:9px}.feed-article .feed-authors{gap:5px}.feed-article .feed-author img{width:17px;height:17px;flex-basis:17px}.feed-article-copy{padding-left:7px;padding-right:7px}}
@media(min-width:701px) and (max-width:950px){.feed-article h3{font-size:14px}.feed-article .feed-author{font-size:9px}.feed-article-grid{gap:12px}}
@media(max-width:700px){.resource-feed{gap:20px}.feed-article-grid{grid-template-columns:1fr;gap:20px}.feed-article{padding:0 0 12px}.feed-article-copy{padding:12px 14px 0}.feed-article h3{font-size:17px;height:auto;min-height:0;max-height:3.2em;margin-bottom:10px}.feed-article .feed-authors{height:27px;margin-bottom:10px}.feed-article .feed-author{font-size:11px;gap:6px}.feed-article .feed-author img{width:25px;height:25px;flex-basis:25px}.feed-article .feed-summary{font-size:12px;margin-bottom:13px}.feed-article-foot .feed-tags>span{font-size:10px}.feed-views{font-size:11px}}
@media(prefers-reduced-motion:reduce){.feed-article-art img,.feed-row,.feed-action span{transition:none!important;transform:none!important}}
/* Resource rows keep original covers, with actions aligned beneath the copy. */
.feed-row{--feed-art-width:224px;--feed-copy-padding:20px;display:grid;grid-template-columns:var(--feed-art-width) minmax(0,1fr);grid-template-rows:1fr auto;min-height:calc(var(--feed-art-width) + 2px);gap:0;align-items:start;min-width:0;overflow:hidden;border:1px solid #dce5ef;border-radius:8px;padding:0;background:#fff;transition:border-color .18s ease,box-shadow .18s ease}
.feed-course{border-color:#d4e0ee;background:#fff}
.feed-tool{background:#f7f9fb;border-color:#e0e6ed}
.feed-reading{background:#f8fafc}
.feed-row:hover{border-color:#b9cbdc;box-shadow:0 4px 16px #17395f08}
.feed-row-art{grid-column:1;grid-row:1/3;align-self:stretch;position:relative;display:block;min-width:0;min-height:0;width:100%;overflow:hidden;border:0;border-radius:0;padding:0;background:#202124}
.feed-row-art img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;transform:none}
.feed-tool .feed-row-art{background:#101820}
.feed-row-copy{grid-column:2;display:flex;flex-direction:column;min-width:0;align-self:stretch;padding:12px var(--feed-copy-padding) 0}
.feed-row-description{display:flex;flex-direction:column;min-width:0;margin-block:auto}
.feed-row-heading{display:flex;align-items:flex-start;gap:12px;min-width:0}
.feed-row-heading h3{flex:1;min-width:0}
.feed-row-heading>.feed-views{margin-top:5px}
.feed-tool-category{max-width:100%;margin:0;color:var(--blue);font-size:11px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feed-type{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-size:10px;line-height:1.5;font-weight:600;color:#486b91}
.feed-type svg{width:14px;height:14px}
.feed-tool .feed-type{color:#456d66}
.feed-row h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 5px;font-size:19px;line-height:1.35;font-weight:650;letter-spacing:-.3px;overflow-wrap:anywhere}
.feed-row h3 a:hover{color:var(--blue)}
.feed-row .feed-authors{gap:12px;min-height:23px;flex-wrap:nowrap}
.feed-row .feed-author{font-size:11px;gap:6px;color:#61758b}
.feed-row .feed-author img,.feed-row .feed-avatar{width:23px;height:23px;flex-basis:23px}
.feed-row .feed-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-height:5.1em;font-size:12px;line-height:1.7;color:#63758a;margin:6px 0 0}
.feed-row .feed-subtitle{font-size:11px;margin:0;color:#7e8d9d}
.feed-course .feed-row-copy{padding-top:12px}
.feed-course .feed-summary{margin:0;font-weight:400}
.feed-course-tags,.feed-row-tags{display:flex;flex-wrap:wrap;align-content:flex-start;gap:4px;max-height:44px;overflow:hidden;margin-top:6px}
.feed-course-tags>span,.feed-row-tags>span{flex:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:16px;white-space:nowrap;padding:1px 6px;border:1px solid #e0e7ef;border-radius:4px;background:#f8fafc;color:#5a7089}
.feed-course .feed-row-footer{padding-top:6px;padding-bottom:10px}
.feed-course .feed-action{margin-left:auto}
.feed-row-footer{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;align-self:end;padding:6px var(--feed-copy-padding) 10px}
.feed-row-footer .feed-tags{flex:1;gap:5px;max-height:23px}
.feed-row-footer .feed-tags>span{padding:1px 6px;line-height:18px;border:1px solid #e5ebf2;background:#f7f9fc;color:#556f8d}
.feed-tool .feed-row-footer .feed-tags>span{background:#fff;border-color:#e0e7eb;color:#5d707e}
.feed-action{display:inline-flex;align-items:center;justify-content:center;flex:none;gap:14px;min-height:32px;padding:6px 12px;border:1px solid #c5d1de;border-radius:5px;background:#fff;color:#23486e;font-size:12px;line-height:1.5;white-space:nowrap;margin-left:auto}
.feed-course .feed-action,.feed-reading .feed-action{border-color:#193b60;background:#193b60;color:#fff}
.feed-action:hover{filter:brightness(.96)}
.feed-action span{transition:transform .18s ease}
.feed-action:hover span{transform:translate(1px,-1px)}
.reading-area{container-name:home-feed;container-type:inline-size}
@container home-feed (max-width:600px){
 .feed-row{--feed-art-width:208px;--feed-copy-padding:16px}
 .feed-row-copy{padding-top:12px}
 .feed-row-footer{padding-top:6px;padding-bottom:10px}
 .feed-row h3{font-size:17px}
 .feed-row .feed-summary{font-size:11px}
 .feed-row .feed-author{font-size:10px}
 .feed-row-footer{gap:9px}
 .feed-action{font-size:11px;min-height:32px;padding:6px 10px;gap:10px}
}
@container home-feed (max-width:380px){
 .feed-row{--feed-copy-padding:14px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;min-height:0}
 .feed-row-art{grid-column:1;grid-row:1;align-self:auto;aspect-ratio:1}
 .feed-row-copy{grid-column:1;grid-row:2}
 .feed-row-footer{grid-column:1;grid-row:3}
 .feed-row-copy{padding-top:14px}
 .feed-row-footer{padding-top:14px;padding-bottom:14px}
 .feed-row .feed-authors{gap:8px}
 .feed-row .feed-author img,.feed-row .feed-avatar{width:21px;height:21px;flex-basis:21px}
 .feed-row-footer .feed-tags>span{font-size:9px;padding:1px 5px}
}
[data-theme=dark] .feed-row{border-color:#3a4c60;background:#222d39}
[data-theme=dark] .feed-course{background:#25364a;border-color:#415974}
[data-theme=dark] .feed-tool{background:#202b36}
[data-theme=dark] .feed-row:hover{border-color:#7994b0;box-shadow:none}
[data-theme=dark] .feed-row-art{background:#1d2937;border-color:#41536a}
[data-theme=dark] .feed-tool .feed-row-art{background:#f4f6f8}
[data-theme=dark] .feed-row .feed-summary,[data-theme=dark] .feed-row .feed-subtitle{color:#afbdcc}
[data-theme=dark] .feed-row .feed-author{color:#afbdcc}
[data-theme=dark] .feed-course-tags>span,[data-theme=dark] .feed-row-tags>span{background:#2d4055;border-color:#42566d;color:#bdd0e7}
[data-theme=dark] .feed-row .feed-type{color:#a2bfdf}
[data-theme=dark] .feed-tool .feed-type{color:#a4c5be}
[data-theme=dark] .feed-row-footer .feed-tags>span{background:#2d4055;border-color:#42566d;color:#bdd0e7}
[data-theme=dark] .feed-tool .feed-row-footer .feed-tags>span{background:#293b48;border-color:#415563;color:#b9cfce}
[data-theme=dark] .feed-action{background:transparent;border-color:#7894b1;color:#c4dbf3}
[data-theme=dark] .feed-course .feed-action,[data-theme=dark] .feed-reading .feed-action{background:#355c86;border-color:#52779f;color:#fff}

.feed-mobile-kind,.feed-more-articles { display:none }

@media (max-width:760px) {
 :is(#article-results,.cc-mobile-recommendations) :is(.resource-feed,.feed-article-grid) {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 10px;
 }
 #article-results .resource-feed > .feed-article-grid { display:contents }

 :is(#article-results,.cc-mobile-recommendations) .feed-more-articles {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:12px 8px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--soft);
  color:var(--blue);
  text-align:center;
  font-size:13px;
  font-weight:650;
 }
 :is(#article-results,.cc-mobile-recommendations) .feed-more-articles svg { width:25px;height:25px }
 :is(#article-results,.cc-mobile-recommendations) .feed-more-articles:focus-visible { outline-offset:-3px }

 :is(#article-results,.cc-mobile-recommendations) :is(.feed-row,.feed-article) {
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:0;
  padding:0;
 }
 :is(#article-results,.cc-mobile-recommendations) :is(.feed-row-art,.feed-article-art) {
  align-self:stretch;
  aspect-ratio:4/3;
  background:var(--soft);
 }
 :is(#article-results,.cc-mobile-recommendations) .feed-row-art img { position:static }
 :is(#article-results,.cc-mobile-recommendations) :is(.feed-row-art,.feed-article-art) img { object-fit:cover;transform:none }
 :is(#article-results,.cc-mobile-recommendations) :is(.feed-row-copy,.feed-article-copy) { padding:8px 9px 9px }
 :is(#article-results,.cc-mobile-recommendations) :is(.feed-row,.feed-article) h3 {
  height:2.8em;
  min-height:2.8em;
  max-height:2.8em;
  margin:0;
  font-size:14px;
  line-height:1.4;
 }
 :is(#article-results,.cc-mobile-recommendations) :is(.feed-row,.feed-article) h3 a::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
 }
 :is(#article-results,.cc-mobile-recommendations) :is(.feed-row,.feed-article):focus-within { border-color:var(--blue) }
 :is(#article-results,.cc-mobile-recommendations) :is(.feed-type,.feed-authors,.feed-row-footer,.feed-subtitle,.feed-tool-category,.feed-row-tags,.feed-article-foot > :not(.feed-views)) { display:none }
 :is(#article-results,.cc-mobile-recommendations) :is(.feed-row-description,.feed-article-foot) { display:contents }
 :is(#article-results,.cc-mobile-recommendations) :is(.feed-row,.feed-article) .feed-summary {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere;
  height:3.1em;
  min-height:3.1em;
  max-height:3.1em;
  margin:4px 0 0;
  color:color-mix(in srgb,var(--ink) 74%,var(--paper));
  font-size:12px;
  line-height:1.55;
 }
 :is(#article-results,.cc-mobile-recommendations) :is(.feed-mobile-kind,.feed-views) {
  position:absolute;
  top:6px;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:20px;
  margin:0;
  padding:3px 5px;
  border-radius:4px;
  background:rgb(13 26 42 / 86%);
  color:#fff;
  font-size:10px;
  line-height:1.2;
  white-space:nowrap;
  pointer-events:none;
 }
 :is(#article-results,.cc-mobile-recommendations) .feed-mobile-kind { left:6px;font-weight:650 }
 :is(#article-results,.cc-mobile-recommendations) .feed-views { right:6px;font-variant-numeric:tabular-nums }
 :is(#article-results,.cc-mobile-recommendations) .feed-views svg { width:12px;height:12px }
}
