/* FoodEdge overload fixes, 23 Nov 2026. Loaded last. Undo: remove this file and its link in default.hbs. */

/* 2. Read it. Use it.: shorter leads, smaller images on small screens. */
.fe-home-v2 .fe-newsroom-grid .fe-story-excerpt{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  max-height:calc(1.55em * 2);
}
@media (max-width:700px){
  .fe-home-v2 .fe-newsroom-grid .fe-story-image{
    aspect-ratio:16/9;
    max-height:160px;
  }
  .fe-home-v2 .fe-newsroom-grid .fe-story-image img{
    max-height:160px;
    object-fit:cover;
  }
  .fe-home-v2 .fe-newsroom-followups{margin:20px 0 28px}
  .fe-home-v2 .fe-newsroom-grid{gap:18px}
}

/* 3. Hide the Opinion header when the grid has no leftover cards. */
.fe-opinion-section:not(:has(.fe-opinion-grid article)){display:none}

/* 6 and 7. Compact footer: email, button, one list question; tighter links and legal. */
.fe-footer--tight{margin-top:40px}
.fe-footer--tight.fe-footer::before,
.fe-footer--tight.fe-footer::after{display:none}
.fe-footer--tight .fe-newsletter{
  gap:28px;
  padding:28px 0 24px;
  align-items:start;
}
.fe-footer--tight .fe-newsletter h2{
  font-size:clamp(22px,2.4vw,30px);
  line-height:1.15;
  letter-spacing:-.03em;
}
.fe-footer--tight .fe-newsletter h2>span{color:inherit}
.fe-footer--tight .fe-newsletter p{
  font-size:14px;
  margin-top:8px;
  max-width:46ch;
}
.fe-footer--tight .fe-newsletter-choices--compact{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px 16px;
  margin:12px 0 0;
  border:0;
  padding:0;
  min-width:0;
}
.fe-footer--tight .fe-newsletter-choices--compact legend{
  font-size:13px;
  font-weight:600;
  padding:0;
  margin:0 0 6px;
}
.fe-footer--tight .fe-newsletter-choices--compact .fe-newsletter-choice{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:0;
  padding:4px 0;
  background:none;
  border:0;
  font-size:13px;
  line-height:1.35;
  font-weight:400;
}
.fe-footer--tight .fe-newsletter-choices--compact .fe-newsletter-choice input{
  width:16px;
  height:16px;
  margin:2px 0 0;
  flex:0 0 16px;
}
.fe-footer--tight .fe-choice-more{
  grid-column:1/-1;
  margin:4px 0 0;
  font-size:12px;
  line-height:1.55;
  color:var(--fe-muted);
}
.fe-footer--tight .fe-choice-more summary{
  cursor:pointer;
  font-weight:550;
  color:var(--fe-ink);
}
.fe-footer--tight .fe-choice-more ul{margin:8px 0 0;padding-left:18px}
.fe-footer--tight .fe-newsletter-form--footer .fe-form-note{
  font-size:12px;
  line-height:1.5;
  margin-top:8px;
  max-width:62ch;
}
.fe-footer--tight .fe-newsletter-action>.fe-text-link{margin-top:10px}
.fe-footer--tight .fe-footer-grid{
  grid-template-columns:1.2fr 1fr 1fr 1fr;
  gap:22px 28px;
  padding:22px 0 8px;
}
.fe-footer--tight .fe-footer-grid nav{gap:6px}
.fe-footer--tight .fe-footer-grid h3{margin-bottom:2px}
.fe-footer--tight .fe-footer-bottom{
  padding:14px 0 18px;
  gap:16px;
}
.fe-footer--tight .fe-footer-bottom p{margin:0;max-width:80ch}
@media (max-width:1100px){
  .fe-footer--tight .fe-newsletter{gap:22px}
}
@media (max-width:700px){
  .fe-footer--tight .fe-newsletter{grid-template-columns:1fr;gap:16px;padding:24px 0 18px}
  .fe-footer--tight .fe-newsletter-choices--compact{grid-template-columns:1fr}
  .fe-footer--tight .fe-footer-grid{grid-template-columns:1fr 1fr;gap:18px 16px;padding:18px 0 6px}
  .fe-footer--tight .fe-footer-brand{grid-column:1/-1}
}

/* 7. Nav: underline only the current page. A leftover inset box-shadow
   (brand orange #ff6c02) was painting a false current marker on Due diligence
   on every page. Clear it, and use the same shadow only on the current item. */
.fe-header .fe-nav>ul.nav>li>a{box-shadow:none}
.fe-header .fe-nav>ul.nav>li.nav-current>a,
.fe-header .fe-nav>ul.nav>li>a[aria-current="page"]{
  box-shadow:inset 0 -2px 0 var(--fe-accent-readable, var(--fe-orange));
}
/* Hover changes colour, not the current marker. */
.fe-header .fe-nav>ul.nav>li>a{
  text-decoration:none;
  border-bottom:2px solid transparent;
  font-weight:550;
}
.fe-header .fe-nav>ul.nav>li.nav-current>a,
.fe-header .fe-nav>ul.nav>li>a[aria-current="page"]{
  text-decoration:none;
  border-bottom-color:var(--fe-accent-readable, var(--fe-orange));
}
.fe-header .fe-nav>ul.nav>li>a:hover{
  color:var(--fe-accent-readable, var(--fe-orange));
  border-bottom-color:transparent;
}
.fe-header .fe-nav>ul.nav>li.nav-current>a:hover,
.fe-header .fe-nav>ul.nav>li>a[aria-current="page"]:hover{
  border-bottom-color:var(--fe-accent-readable, var(--fe-orange));
}
@media (max-width:1100px){
  .fe-header .fe-nav>ul.nav>li>a{border-bottom:1px solid var(--fe-line)}
  .fe-header .fe-nav>ul.nav>li.nav-current>a,
  .fe-header .fe-nav>ul.nav>li>a[aria-current="page"]{
    border-bottom-color:var(--fe-accent-readable, var(--fe-orange));
  }
}

/* 8. Mobile 390: tighten the featured post so the first Latest news item fits in the first screen. */
@media (max-width:480px){
  .fe-portal-home .fe-positioning{padding:10px 0 8px}
  .fe-portal-home .fe-positioning h1{font-size:13px}
  .fe-portal-home .fe-lead>.fe-desk-label{margin-bottom:6px}
  .fe-portal-home .fe-cover-story-media{height:128px}
  .fe-portal-home .fe-cover-story-copy{
    margin-top:-14px;
    padding:8px 0 0;
    width:100%;
  }
  .fe-portal-home .fe-cover-story h2,
  .fe-portal-home .fe-home-v2 .fe-cover-story h2{
    font-size:22px;
    line-height:1.18;
    letter-spacing:-.03em;
    max-width:none;
  }
  .fe-portal-home .fe-cover-story-copy>p{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    font-size:13px;
    line-height:1.4;
    margin-top:6px;
    max-width:none;
  }
  .fe-portal-home .fe-cover-actions{margin-top:4px}
  .fe-portal-home .fe-cover-read{min-height:28px;margin-top:2px;font-size:12px}
  .fe-portal-home .fe-cover-duration{font-size:11px}
  .fe-portal-home .fe-latest{margin-top:10px}
  .fe-portal-home .fe-latest .fe-section-title{padding-top:6px;padding-bottom:8px;margin-bottom:0}
  .fe-portal-home .fe-latest .fe-story{padding:10px 0}
}

/* Short archive pointer on the homepage, in place of the full browser. */
.fe-home-archive-link{margin:28px 0 8px;padding-top:8px}
.fe-home-archive-link .fe-section-title{margin-bottom:8px}
.fe-home-archive-extra{margin:0}

/* Reports cards: one quiet link, not a pair of buttons. */
.fe-reports-page .fe-report-actions{margin-top:10px}
.fe-reports-page .fe-report-actions .fe-text-link{font-size:14px}
