#news-feed[hidden], #news-feed [hidden] { display: none !important; }
.feed-nav, .feed-actions, .feed-facets { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: start; }
.feed-nav { margin: .8rem 0; }
.feed-actions { margin: .65rem 0; align-items: center; }
.feed-facets { padding: .75rem 0; }
.feed-facets details { min-width: min(100%, 11rem); }
#news-feed details > summary { cursor: pointer; font-weight: 600; }
.feed-facets [data-options] { display: grid; gap: .4rem; margin: .5rem 0; max-height: 14rem; overflow: auto; }
.feed-facets label { display: flex; gap: .45rem; align-items: baseline; padding: .12rem .25rem; }
.feed-facets input { flex: none; }
#news-feed button[aria-pressed=true] { font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
#news-feed form { margin: .65rem 0; }
#news-feed input[name=view-name] { max-width: 100%; }
.feed-links a { overflow-wrap: anywhere; }
#news-feed .fgrid { margin: .7rem 0; }

/* The original news grid stays in place below the photo category rail. */
#news-feed #feed-cards h3 a { display:block; }
.iid-categories { margin:.65rem 0 1.15rem; }
.iid-lines { display:grid; gap:10px; }
.iid-primary { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:10px; }
.iid-products { grid-template-columns:repeat(5,minmax(0,1fr)); }
.iid-lines button { border:1px solid #516170; border-radius:7px; background:#173345; color:#fff; display:flex; position:relative; min-height:96px; align-items:flex-end; padding:0; isolation:isolate; overflow:hidden; text-align:left; cursor:pointer; }
.iid-primary button { min-height:127px; }
.iid-lines img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transition:transform .22s ease; }
.iid-lines button::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#06111af2 2%,#101f2990 40%,#09131b14 82%); }
.iid-lines span { font:700 15px/1.2 Inter,system-ui,sans-serif; padding:9px 10px; }
.iid-primary span { font:700 26px/1.2 "Source Serif 4",Georgia,serif; letter-spacing:-.02em; padding:12px 14px; }
.iid-lines button:hover img { transform:scale(1.04); }
#news-feed .iid-lines button[aria-pressed=true] { outline:3px solid #6589cf;outline-offset:2px;text-decoration:none; }
.iid-lines button:focus-visible { outline:3px solid #6589cf;outline-offset:3px; }
.iid-listheading { display:flex;justify-content:space-between;align-items:center;gap:10px; }
.iid-listheading h2 { margin:.1rem 0 .15rem; }
#feed-status { margin:.15rem 0 .6rem; }
#feed-error:empty { display:none; }
.iid-photo-credits { display:block;width:max-content;margin:.8rem 0;font-size:.8rem; }
@media(max-width:700px){
  .iid-products { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .iid-lines {gap:7px}.iid-primary button { min-height:98px; }.iid-products button { min-height:83px; }
  .iid-primary span{font-size:clamp(15px,3.4vw,22px);padding:7px}.iid-products span{font-size:clamp(12px,3vw,15px);padding:7px}
}
@media(prefers-reduced-motion:reduce){.iid-lines img{transition:none}}

/* Story cards: tags describe the story. Navigation remains on the headline and in the reader. */
#news-feed .fc-b { gap:6px; }
#news-feed .iid-card-tags { display:flex; flex-wrap:wrap; gap:5px; margin:1px 0 2px; }
#news-feed .iid-card-tags span { display:inline-block;border:1px solid var(--line2);border-radius:999px;padding:2px 8px;color:var(--t2);font:600 12px/1.35 Inter,system-ui,sans-serif; }
#news-feed .iid-feed-tools { display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px; }
#news-feed .fc-m { gap:5px 8px;padding-top:2px;margin-top:2px; }
#news-feed [aria-label^="Share "] { margin-top:3px; }
.iid-reader-sources { font-size:.9rem;margin-top:12px; }
.iid-reader-sources a { text-decoration:underline; }
.iid-reader-sources li + li { margin-top:.25rem; }
