/* FRONTNEXT001 B058B: visual system refinement, presentation only.
 * Cumulative on B058A. Does not alter data, eligibility, tracking, News,
 * canonical routing, native stats, ranking formulas or publication states.
 * Scoped to Design B owned components; no global element resets. */

/* A uniform, accessible information system: clear identity, restrained
   interaction cues, and readable measures in dense presentation surfaces. */
#app :is(.stream-card,.brand-card,.cause-card,.category-card,.news-card){
  border-color:#d5e1ef;
}
#app :is(.stream-card,.brand-card,.cause-card,.category-card,.news-card):hover{
  border-color:#94b5da;
}
#app :is(.brand-card,.category-card,.news-card):focus-visible,
#app :is(.cause-card a,.stream-card a,.stream-card button,.category-card,.news-card):focus-visible{
  outline:2px solid #155ac4;outline-offset:2px;
}
/* No animated translation or large box shadows: metadata and measurement
   remain the visual center of gravity. */
#app :is(.news-card,.brand-card,.cause-card,.category-card){
  transition:border-color .12s ease,background-color .12s ease;
}

/* Published News: shorter but still comfortable cards, consistent type
   baseline, generous click targets and no summary/body duplication changes. */
#app .news-grid{gap:12px;align-items:stretch;}
#app .news-card{min-height:292px;padding:21px 22px;}
#app .news-card-top{font-size:10px;line-height:1.4;letter-spacing:.055em;}
#app .news-card time{display:block;font-size:11px;line-height:1.45;margin:19px 0 10px;color:#546e8d;}
#app .news-card h3{font-size:clamp(19px,1.65vw,23px);line-height:1.24;letter-spacing:-.027em;margin:0 0 13px;color:#132c50;}
#app .news-card p{font-size:13px;line-height:1.58;color:#536f8d;margin:0 0 22px;-webkit-line-clamp:4;}
#app .news-card b{font-size:10px;line-height:1.4;letter-spacing:.06em;}
#app .fn057-news-evergreen-tag{line-height:1.4;}
#app .fn027-news-status{line-height:1.5;}

/* Campaign / Cause discovery feed: clearer reading at greater density.
   Preserve the approved green ACTIVE upper-right status and MPID. */
#app .feed-list{gap:12px;}
#app .stream-meta{min-height:37px;height:auto;padding:9px 17px;font-size:10px;letter-spacing:.035em;}
#app .stream-body{grid-template-columns:minmax(106px,136px) minmax(0,1fr);gap:20px;padding:19px 20px 18px;}
#app .stream-brand{height:107px;padding:11px;min-width:0;}
#app .stream-brand img{max-width:100%;max-height:100%;object-fit:contain;}
#app .stream-copy{min-width:0;}
#app .stream-copy h3{font-size:clamp(19px,2vw,25px);line-height:1.22;letter-spacing:-.025em;margin:6px 0 10px;}
#app .stream-copy h3 a{color:#132c50;text-decoration:none;}
#app .stream-copy h3 a:hover{text-decoration:underline;text-underline-offset:3px;}
#app .stream-copy p{font-size:13px;line-height:1.6;max-width:750px;margin:0 0 12px;color:#516e8a;}
#app .stream-kind{font-size:10px;line-height:1.35;}
#app .stream-actions{min-height:45px;padding:4px 17px;gap:5px 17px;}
#app .stream-actions :is(a,button){font-size:10px;line-height:1.35;letter-spacing:.03em;margin:0;}
#app .stream-actions :is(a,button):hover{text-decoration:underline;text-underline-offset:3px;}
#app .stream-campaign .stream-meta>.fn058-campaign-active{margin-left:auto;font-size:11px;}
#app .stream-campaign .stream-meta>.fn058-campaign-active img{height:18px;width:18px;}
#app .fn031-card-context{gap:7px 14px;}

/* Directories: names are not secondary metadata. Keep real identities and
   real logos, while reducing decorative white space in tile footers. */
#app .brand-grid,#app .cause-grid{gap:12px;}
#app .brand-bottom{padding:12px 14px;gap:8px;}
#app .brand-bottom strong{font-size:13px;line-height:1.35;letter-spacing:-.01em;}
#app .brand-bottom small{font-size:10px;line-height:1.38;}
#app .brand-bottom .fn058-campaign-active{font-size:10px;margin-top:5px;}
#app .cause-info{gap:13px;padding:15px 15px 10px;min-height:92px;}
#app .cause-details{min-width:0;}
#app .cause-details strong{font-size:13px;line-height:1.38;letter-spacing:-.01em;}
#app .cause-details small{font-size:10px;line-height:1.35;}
#app .cause-actions{margin:0 15px 10px;padding-top:9px;}
#app .cause-actions button{font-size:10px;min-height:29px;}

/* Category tiles: legible labels, compact, consistent gutters. */
#app .category-grid{gap:11px;}
#app .category-card{min-height:126px;padding:15px 17px;}
#app .category-card>span{font-size:10px;line-height:1.35;letter-spacing:.04em;}
#app .category-card strong{font-size:clamp(15px,1.35vw,18px);line-height:1.25;margin:13px 0 auto;max-width:none;}
#app .category-card small{font-size:10px;letter-spacing:.045em;line-height:1.35;margin-top:12px;}

/* Dense native Stats / Leaderboards: stable tabular figures, aligned
   metadata, consistent row rhythm. Rankings and status are native-owned. */
#fn007-leader .fn007-table,#fn007-desk .fn007-readout-table,#app .fn034-table{
  font-variant-numeric:tabular-nums lining-nums;
}
#fn007-leader .fn007-table th,#fn007-desk .fn007-readout-table th{
  font-size:10px;letter-spacing:.035em;line-height:1.35;
}
#fn007-leader .fn007-table tbody tr:not(.fn007-row-detail)>td{
  padding:8px 11px;line-height:1.3;
}
#fn007-leader .fn007-table tbody tr:not(.fn007-row-detail) .fn007-name{
  font-size:13px;line-height:1.3;
}
#fn007-leader .fn007-table tbody tr:not(.fn007-row-detail):hover>td,
#fn007-desk .fn007-readout-table tbody tr:hover>td{
  background:#f0f6fe;
}
#fn007-leader .fn007-table .fn007-num,#fn007-desk .fn007-num{text-align:right;white-space:nowrap;}
#fn007-leader .fn007-table td>button[data-fn-expand]{min-width:32px;min-height:32px;}
#fn007-desk .fn007-readout-table tbody td{font-size:12px;line-height:1.32;padding:9px 12px;}
#fn007-desk .fn007-kpi-strip b{font-variant-numeric:tabular-nums lining-nums;}
#app .fn034-table td{font-size:12px;line-height:1.4;padding:9px 11px;}
#app .fn034-table td:nth-child(n+3){font-variant-numeric:tabular-nums;}
#app .fn034-table tbody tr:hover td{background:#f0f6fe;}

/* Institution / published detail typography should feel like authoritative
   documentation. Do not change the original legal document or its source. */
#app .fn021-native-copy .fn021-source-body{max-width:1040px;line-height:1.72;}
#app .fn021-native-copy .fn021-source-body :is(p,li){line-height:1.75;}
#app .fn021-native-copy .fn021-source-body :is(h2,h3){line-height:1.28;letter-spacing:-.018em;scroll-margin-top:140px;}
#app .fn021-native-copy .fn021-source-body a{
  text-underline-offset:3px;
}
#app .fn014-native-public-detail .fn012-summary{min-width:0;}
#app .fn014-native-public-detail .fn012-summary h1{line-height:1.12;letter-spacing:-.028em;}
#app .fn040-entity-facts strong{font-variant-numeric:tabular-nums;}

/* Responsive: preserve wrapping, accessible target sizes, and tables'
   horizontal scroll instead of forcing data off-screen. */
@media(max-width:980px){
 #app .news-card{min-height:285px;}
 #app .stream-body{grid-template-columns:112px minmax(0,1fr);gap:15px;}
 #app .stream-brand{height:102px;}
}
@media(max-width:650px){
 #app .news-grid{gap:11px;}
 #app .news-card{min-height:0;padding:20px;}
 #app .news-card h3{font-size:21px;}
 #app .stream-body{grid-template-columns:88px minmax(0,1fr);gap:13px;padding:15px 13px;}
 #app .stream-brand{height:86px;padding:8px;}
 #app .stream-meta{padding:8px 12px;font-size:9px;gap:6px;}
 #app .stream-copy h3{font-size:19px;}
 #app .stream-copy p{font-size:12px;line-height:1.55;}
 #app .stream-actions{padding:6px 12px;gap:6px 12px;}
 #app .stream-actions :is(a,button){font-size:10px;min-height:28px;}
 #app .brand-grid,#app .cause-grid,#app .category-grid{gap:9px;}
 #app .brand-bottom{padding:10px;}
 #app .brand-bottom strong{font-size:12px;}
 #app .cause-details strong{font-size:13px;}
 #app .category-card{min-height:116px;padding:13px;}
 #app .category-card strong{font-size:14px;}
 #fn007-leader .fn007-table tbody tr:not(.fn007-row-detail)>td{padding:8px 9px;}
 #app .fn021-native-copy .fn021-source-body{max-width:100%;}
}
@media(max-width:400px){
 #app .stream-body{grid-template-columns:74px minmax(0,1fr);gap:10px;}
 #app .stream-brand{height:76px;}
 #app .stream-meta{flex-wrap:wrap;}
 #app .stream-campaign .stream-meta>.fn058-campaign-active{margin-left:auto;}
 #app .brand-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 #app .category-card{padding:11px;}
 #app .category-card strong{font-size:13px;}
}
@media(prefers-reduced-motion:reduce){
 #app :is(.stream-card,.brand-card,.cause-card,.category-card,.news-card){transition:none!important;}
}
