/* Save a Farm, Q4 2026 redesign for the Webflow pages on news.saveafarmfund.org.
   Loaded only by the News and Media pages (Webflow page custom code), scoped to html.saf26 so
   the old Webflow copies of Home/Crisis/Privacy keep their styles. Values follow Figma frame "News" (680:32685 / 699:13086). */

html.saf26 {
  --saf-peach: #f9efe6;
  --saf-cream: #fffbf4;
  --saf-brown: #3e2215;
  --saf-rust: #a34a24;
  --saf-rust-dark: #8a3c1b;
}

/* ---------- Header (shared) ---------- */
.saf26 .header_menu-link { position: relative; transition: color .3s ease; }
.saf26 .header_menu-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.saf26 .header_menu-link:hover::after,
.saf26 .header_menu-link.w--current::after { transform: scaleX(1); transform-origin: left; }
.saf26 .header_btn { transition: background-color .25s ease, translate .25s ease, box-shadow .25s ease; }
.saf26 .header_btn:hover { background-color: var(--saf-rust-dark); translate: 0 -2px; box-shadow: 0 10px 24px -12px rgba(62, 34, 21, .6); }

/* ---------- News page ---------- */
.saf26-news body,
.saf26-news .page-wrapper { background-color: var(--saf-peach); }

/* Hero: Figma "Rectangle 6534", multiply gradient to the bottom over the photo. The photo moves to its own
   layer (added by webflow-news.js) so GSAP can zoom it without touching the section. */
.saf26-news .news_hero { position: relative; overflow: hidden; isolation: isolate; }
.saf26 .news_hero.saf-has-bg { background-image: none !important; }
.saf26 .saf-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: 50% 32%; background-repeat: no-repeat;
  will-change: transform;
}
.saf26-news .news_hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(to bottom, rgba(8, 20, 44, 0) 0%, rgba(8, 20, 44, .42) 77%, rgba(8, 20, 44, .56) 100%);
}
.saf26-news .news_hero .subtitle { letter-spacing: .02em; }

/* Article grid: two 560px columns 90px apart (x110 / x760 in the 1440 frame). */
.saf26-news .articles_hero { padding-top: 82px; padding-bottom: 96px; }
.saf26-news .articles_list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 90px; row-gap: 110px;
  max-width: 1210px; margin-left: auto; margin-right: auto;
}
.saf26-news .articles_list-item { display: flex; flex-direction: column; height: 100%; }
.saf26-news .article_img-wrap { aspect-ratio: 560 / 315; height: auto; border-radius: 30px; overflow: hidden; }
.saf26-news .article_img-wrap .img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.saf26-news .article_cap { margin-top: 32px; }
.saf26-news .sec-subheading.sm { font-size: 38px; line-height: 46px; color: var(--saf-brown); margin: 0 0 16px; }
.saf26-news .article_desc { font-family: "PT Sans", sans-serif; font-size: 18px; line-height: 29px; color: #000; margin: 0; }
.saf26-news .article_btn-wrap { margin-top: 32px; }
.saf26 .btn.outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 125px; height: 48px; padding: 12px 24px;
  border: 1px solid var(--saf-brown); border-radius: 10px; background-color: transparent;
  font-family: Roboto, sans-serif; font-size: 16px; line-height: 24px; color: var(--saf-brown);
  transition: background-color .25s ease, color .25s ease;
}
.saf26 .btn.outline:hover { background-color: var(--saf-brown); color: var(--saf-cream); }

/* ---------- Media teaser above the footer (built by webflow-news.js) ---------- */
.saf-teaser {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--saf-peach) 0%, var(--saf-cream) 100%);
}
.saf-teaser::before, .saf-teaser::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 22vw; z-index: 2; pointer-events: none;
}
.saf-teaser::before { left: 0; background: linear-gradient(90deg, var(--saf-peach), rgba(249, 239, 230, 0)); }
.saf-teaser::after { right: 0; background: linear-gradient(-90deg, var(--saf-cream), rgba(255, 251, 244, 0)); }
.saf-teaser__track { display: flex; align-items: center; gap: 20px; padding-left: 5vw; width: max-content; }
.saf-teaser__tile {
  display: block; flex: none; width: 23.3vw; max-width: 335px; aspect-ratio: 1;
  border-radius: 11px; overflow: hidden;
  transition: width .6s cubic-bezier(.2, .7, .2, 1), max-width .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s ease;
}
.saf-teaser__tile.is-active { width: 28.3vw; max-width: 407px; box-shadow: 0 30px 60px -30px rgba(62, 34, 21, .45); }
.saf-teaser__tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.saf-teaser__tile:hover img { transform: scale(1.04); }
.saf-teaser__nav { position: relative; z-index: 3; display: flex; justify-content: flex-end; gap: 14px; max-width: 1210px; margin: 28px auto 0; padding: 0 20px; }
.saf-teaser__nav button {
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--saf-rust);
  cursor: pointer; display: grid; place-items: center; transition: background-color .25s ease;
}
.saf-teaser__nav button:hover { background-color: rgba(163, 74, 36, .1); }
.saf-teaser__nav svg { width: 18px; height: 18px; }

/* ---------- Media page ---------- */
.saf26-media .tab_media-imgwrap { border-radius: 12px; overflow: hidden; transition: box-shadow .4s ease, translate .4s ease; }
.saf26-media .tab_media-imgwrap:hover { translate: 0 -4px; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .55); }
.saf26-media .tab_media-imgwrap .img-cover { transition: transform .6s ease; }
.saf26-media .tab_media-imgwrap:hover .img-cover { transform: scale(1.04); }

/* ---------- Mobile (Figma 430 frame) ---------- */
@media (max-width: 767px) {
  .saf26-news .news_hero .main-heading { font-size: 32px; line-height: 32px; max-width: 240px; margin-left: auto; margin-right: auto; }
  .saf26-news .articles_hero { padding-top: 48px; }
  .saf26-news .articles_list { grid-template-columns: 1fr; row-gap: 72px; padding-left: 3px; padding-right: 3px; }
  .saf26-news .article_img-wrap { aspect-ratio: 384 / 216; border-radius: 20px; }
  .saf26-news .article_cap { margin-top: 24px; }
  .saf26-news .sec-subheading.sm { font-size: 28px; line-height: 34px; }
  .saf26-news .article_desc { font-size: 16px; line-height: 26px; }
  .saf26-news .article_btn-wrap { margin-top: 24px; }
  .saf-teaser { padding: 48px 0 64px; }
  .saf-teaser__tile { width: 33vw; }
  .saf-teaser__tile.is-active { width: 40vw; }
  .saf-teaser::before, .saf-teaser::after { width: 12vw; }
}

/* Elements animated by webflow-news.js start hidden only when motion is allowed. */
.saf26.saf-motion [data-saf-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .saf26 *, .saf26 *::before, .saf26 *::after { transition-duration: .01ms !important; }
}
