/*
 * Farm Stories list, farm story page and Press Release. MUI breakpoints from
 * themes/breakpoints.js: sm 489px, md 768px.
 */

/* ---------- Farm Stories: design 9 "Minimal list" ---------- */
/* 24px below the header (the design 18 header has no built-in space under it). */
.farm-stories {
  padding: 24px 16px 32px;
  font-family: var(--mui-font);
}
.farm-stories__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.wrapper .farm-stories__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}
.farm-stories__count {
  padding: 2px 9px;
  border-radius: 999px;
  background: #272727;
  color: #cfcfcf;
  font-size: 0.8125rem;
  font-weight: 600;
}
.story-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-list__item { border-bottom: 1px solid #262626; }
.story-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}
.story-row__media {
  flex: none;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}
.story-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.story-row__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}
.story-row:hover .story-row__title { color: var(--primary); }
.story-row:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 10px; }
.story-row__desc {
  margin-top: 3px;
  color: #adadad;
  font-size: 0.8125rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-row__meta {
  margin-top: 5px;
  color: #8f8f8f;
  font-size: 0.75rem;
}
.story-row__chevron {
  flex: none;
  width: 22px;
  height: 22px;
  fill: #6b6b6b;
}
.story-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding-top: 22px;
}
.story-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1e1e1e;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.story-pager__btn .icon { width: 20px; height: 20px; fill: currentColor; }
a.story-pager__btn:hover { background: #272727; }
a.story-pager__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.story-pager__btn--current { background: var(--primary); color: #0d0d0d; }
.story-pager__btn--off { color: #4f4f4f; }
.wrapper .story-pager__count {
  margin: 8px 0 0;
  text-align: center;
  color: #8f8f8f;
  font-size: 0.75rem;
}
@media (min-width: 768px) {
  .farm-stories { max-width: 1100px; margin: 0 auto; padding: 36px 48px 48px; }
  .farm-stories__head { margin-bottom: 18px; }
  .wrapper .farm-stories__title { font-size: 2rem; }
  .story-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    border-top: 1px solid #262626;
  }
  .story-row { padding: 16px 0; }
  .story-row__media { width: 104px; height: 104px; }
  .story-row__title { font-size: 1.0625rem; }
  .story-row__desc { font-size: 0.875rem; }
}

/* ---------- Farm story page: design 5 "Sidebar with story facts" ---------- */
/* overflow-x: hidden on .wrapper makes it the scroll container, which stops the
   sidebar from sticking; clip hides overflow without that. */
.wrapper:has(.farm-story) { overflow-x: clip; }
.farm-story {
  padding: 16px 16px 32px;
  font-family: var(--mui-font);
}
.farm-story__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.farm-story__back .icon { font-size: 18px; }
.farm-story__back:hover { color: var(--primary-hover); }
.wrapper .farm-story__title {
  margin-top: 14px;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.wrapper .farm-story__deck {
  margin-top: 10px;
  color: #cfcfcf;
  font-size: 1.0625rem;
  line-height: 1.45;
}
.farm-story__grid {
  display: flex;
  flex-direction: column;
}
.farm-story__main { min-width: 0; }
.farm-story__side { order: -1; }
.farm-story__hero { margin: 20px 0 24px; }
.farm-story__hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}
.farm-story__pin {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #2e2e2e;
  border-radius: 14px;
  background: #1e1e1e;
}
.wrapper .farm-story__side-title {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.farm-story__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 0;
}
.farm-story__facts dt {
  color: #a6a6a6;
  font-size: 0.75rem;
  font-weight: 600;
}
.farm-story__facts dd {
  margin: 2px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.wrapper .farm-story__meta {
  margin-bottom: 12px;
  color: #a6a6a6;
  font-size: 0.8125rem;
}
.wrapper .farm-story__meta--ruled {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #2e2e2e;
}
.farm-story__pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #0d0d0d;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.farm-story__pdf .icon { font-size: 1em; }
.farm-story__pdf small { font-size: 0.75rem; font-weight: 600; opacity: 0.8; }
.farm-story__pdf:hover { background: var(--primary-hover); }
.farm-story__back--side { display: none; }

/* Story text: the body's own paragraphs and inline photos (filter_align classes). */
.farm-story__body {
  color: #e6e6e6;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.wrapper .farm-story__body p { margin: 0 0 1.1em; }
.farm-story__body::after { content: ''; display: block; clear: both; }
.farm-story__body img {
  display: block;
  max-width: 100%;
  height: auto;
}
.farm-story__body .align-right,
.farm-story__body .align-left {
  width: 100%;
  max-height: 340px;
  margin: 0.2em 0 1em;
  object-fit: cover;
  border-radius: 12px;
}
.farm-story__body .align-center { margin: 0 auto 1em; border-radius: 10px; }
.farm-story__body a { color: var(--primary); text-decoration: none; }
.farm-story__body a:hover { text-decoration: underline; }

/* Other stories: the design-9 rows of the Farm Stories list. */
.farm-story__others { margin-top: 48px; }
.farm-story__others-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #262626;
}
.wrapper .farm-story__others-title { font-size: 1.125rem; font-weight: 700; }
.farm-story__all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.farm-story__all .icon { font-size: 1em; }
.farm-story__all:hover { color: var(--primary-hover); }
@media (min-width: 768px) {
  .farm-story { padding: 32px 48px 48px; }
  .farm-story__head { max-width: 800px; }
  .wrapper .farm-story__title { font-size: 3rem; }
  .wrapper .farm-story__deck { font-size: 1.3125rem; }
  .farm-story__facts { grid-template-columns: repeat(3, 1fr); }
  .farm-story__body { font-size: 1.125rem; }
  .farm-story__body .align-right,
  .farm-story__body .align-left {
    width: 42%;
    max-width: 270px;
    max-height: none;
    margin: 0.3em 0 0.6em;
    border-radius: 10px;
  }
  .farm-story__body .align-right { float: right; margin-left: 20px; }
  .farm-story__body .align-left { float: left; margin-right: 20px; }
  /* The list page's two-column grid does not apply to the three other stories. */
  .story-list--others { display: block; border-top: 0; }
}
@media (min-width: 1024px) {
  .farm-story { max-width: 1140px; margin: 0 auto; padding: 32px 56px 48px; }
  .farm-story__grid {
    display: grid;
    grid-template-columns: minmax(0, 700px) 300px;
    gap: 56px;
    align-items: start;
    margin-top: 8px;
  }
  .farm-story__side { order: 0; position: sticky; top: 24px; }
  .farm-story__facts { grid-template-columns: 1fr; }
  .farm-story__back--side { display: inline-flex; margin-top: 16px; }
  .story-list--others {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32px;
  }
  .story-list--others .story-row__media { width: 80px; height: 80px; }
  .story-list--others .story-row__chevron { display: none; }
}

/* ---------- Press Release: design 6 "Press kit" ---------- */
/* 24px below the header (the design 18 header has no built-in space under it). */
.press {
  padding: 24px 16px 36px;
  font-family: var(--mui-font);
}
.wrapper .press__eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wrapper .press__title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}
.press__kit {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}
.press__card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #2c2c2c;
  border-radius: 16px;
  background: #1e1e1e;
}
.press__card--download {
  border-color: #2e6e6b;
  background: linear-gradient(150deg, #174a48, #1e1e1e 70%);
}
.wrapper .press__card-title,
.wrapper .press__release-label {
  margin: 0 0 12px;
  color: #a6a6a6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.press__doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.press__doc {
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 56px;
  height: 68px;
  padding-bottom: 8px;
  border: 1px solid #2e6e6b;
  border-radius: 8px;
  background: #121212;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.press__doc-title { display: block; font-size: 1.125rem; }
.press__doc-sub { color: #c4c4c4; font-size: 0.8125rem; }
.press__download {
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #0d0d0d;
  font-weight: 700;
  text-decoration: none;
}
.press__download:hover { background: var(--primary-hover); }
.press__download:focus-visible,
.press__card a:focus-visible { outline: 2px solid var(--primary-hover); outline-offset: 2px; }
.press__contact + .press__contact { margin-top: 12px; }
.wrapper .press__card p {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.press__card a:not(.press__download) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #57c4c1;
}
.press__card .icon { width: 16px; height: 16px; flex: none; fill: currentColor; }
.press__issuer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.press__issuer img { flex: none; width: 64px; height: 64px; border-radius: 10px; }
.wrapper .press__issuer p { margin: 0; overflow-wrap: normal; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; }
.press__motto { color: var(--primary); }
.press__release {
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
}
.press__release-label span {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.press__body { max-width: 68ch; font-size: 1rem; }
.wrapper .press__body p {
  margin: 0 0 1em;
  font-size: 1rem;
  line-height: 1.65;
}
.press__body a { color: #57c4c1; }
@media (min-width: 768px) {
  .press { max-width: 1120px; margin: 0 auto; padding: 56px 40px 72px; }
  .wrapper .press__title { max-width: 30ch; font-size: 2.25rem; }
  .press__kit { grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; margin-bottom: 48px; }
  .press__card { padding: 24px; }
  .press__release {
    display: grid;
    grid-template-columns: 220px minmax(0, 68ch);
    gap: 40px;
    padding-top: 40px;
  }
}
