/* Market and news layouts */
.market-redesign,
.news-redesign {
  --market-forest: #17372d;
  --market-paper: #faf9f4;
  --market-sage: #e8eee8;
  --market-line: #d0dbd1;
  --market-text: #41584d;
}

:is(.market-redesign, .news-redesign) > .ui-page-hero .ui-page-hero-shade {
  background: linear-gradient(0deg, #0b2019f5 0%, #102b21b8 33%, #102b212b 70%, #102b210a 100%);
}

.market-redesign > .ui-page-hero h1 { max-width: 16ch; }

.market-redesign .se-anchor-nav {
  gap: 8px clamp(18px, 4vw, 64px);
  padding-block: 12px;
  border-color: var(--market-line);
}

.market-redesign .se-anchor-nav a {
  gap: 12px;
  color: var(--market-forest);
  font-size: .83rem;
  font-weight: 650;
  letter-spacing: .025em;
}

.market-redesign .se-anchor-nav a::after {
  content: "";
  inline-size: 7px;
  block-size: 7px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
}

.market-redesign :is(.ui-section-head, .market-scheme-title) {
  color: var(--market-forest);
}

.market-redesign .ui-section-head > div:last-child { max-width: 100%; }
.market-redesign .ui-section-head h2 { margin-block-end: 0; }
.market-redesign .ui-section-head p { margin-block-end: 0; }

.market-redesign .market-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: clamp(24px, 5.7vw, 84px);
  margin-block-end: clamp(45px, 7vw, 96px);
  padding-block: clamp(30px, 5.5vw, 74px);
  border-block: 1px solid var(--market-line);
}

.market-redesign .market-intro p { margin: 0; color: var(--market-text); }

.market-redesign .market-intro p:first-child {
  font-size: clamp(1.22rem, 2.35vw, 2.3rem);
  font-weight: 550;
  line-height: 1.27;
  letter-spacing: -.025em;
  color: var(--market-forest);
}

.market-redesign .market-intro p + p {
  border-inline-start: 1px solid #a4b9ab;
  padding-inline-start: clamp(16px, 2.5vw, 32px);
}

.market-redesign .market-focus-grid {
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.market-redesign .market-focus-grid .se-reach-card {
  --focus-art: #587964;
  --focus-pattern: repeating-radial-gradient(ellipse at right bottom, transparent 0 15px, var(--focus-art) 16px 17px, transparent 18px 28px);
  position: relative;
  isolation: isolate;
  min-block-size: 225px;
  padding: clamp(24px, 3.8vw, 52px) clamp(24px, 4.2vw, 58px);
  background: #e8eee8;
  border-color: #d5dfd4;
  border-radius: 18px;
  color: var(--market-forest);
}

.market-redesign .market-focus-grid .se-reach-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0 auto;
  inline-size: min(48%, 270px);
  block-size: 93%;
  opacity: .17;
  background: var(--focus-pattern);
  mask-image: linear-gradient(130deg, transparent 15%, #000 90%);
  pointer-events: none;
}

.market-redesign .market-focus-grid .se-reach-card:nth-child(2) {
  --focus-art: #b1d1b8;
  --focus-pattern: repeating-radial-gradient(ellipse at 105% 90%, transparent 0 25px, var(--focus-art) 26px 27px, transparent 28px 39px);
  background: var(--market-forest) !important;
  border-color: var(--market-forest) !important;
  color: #fff;
}

.market-redesign .market-focus-grid .se-reach-card:nth-child(3) {
  --focus-pattern: repeating-linear-gradient(126deg, transparent 0 21px, var(--focus-art) 22px 23px, transparent 24px 38px);
  background: var(--market-paper);
}

.market-redesign .market-focus-grid .se-reach-card:nth-child(4) {
  --focus-pattern: repeating-linear-gradient(0deg, transparent 0 22px, var(--focus-art) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 22px, var(--focus-art) 23px 24px);
  background: #dce8df;
}

.market-redesign .market-focus-grid h3 {
  max-width: 24ch;
  margin-block-end: 14px;
  font-size: clamp(1.13rem, 2vw, 1.78rem);
}

.market-redesign .market-focus-grid p { color: var(--market-text); }
.market-redesign .market-focus-grid .se-reach-dark p { color: #e0ede5; }

.market-redesign .market-distribution > .ui-section-head p { max-width: 63ch; }

.market-redesign .market-distribution-track {
  --rail-inset: 27px;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-inline-size: none;
  margin: 0;
  padding: 0 0 0 calc(var(--rail-inset) * 2);
  list-style: none;
}

.market-redesign .market-stage {
  position: relative;
  min-width: 0;
  margin: 0;
}

.market-redesign .market-stage:not(:last-child)::before {
  content: "";
  position: absolute;
  inset: 41px auto -53px calc(var(--rail-inset) * -1);
  border-inline-start: 1px solid #8ca392;
}

.market-redesign .market-stage-marker {
  position: absolute;
  z-index: 1;
  inset: 35px auto auto calc(var(--rail-inset) * -1 - 6px);
  width: 13px;
  height: 13px;
  border: 3px solid #e6eee7;
  border-radius: 50%;
  background: #557c65;
  box-shadow: 0 0 0 1px #8ca392;
}

.market-redesign .market-stage .se-distribution-card {
  display: grid;
  grid-template-columns: minmax(0, .66fr) minmax(0, 1fr);
  background: var(--market-paper);
  border-color: var(--market-line);
  border-radius: 14px;
}

.market-redesign .market-stage .ui-photo {
  position: relative;
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
}

.market-redesign .market-stage .ui-photo img { position: absolute; inset: 0; }
.market-redesign .market-stage img:is([data-client-media="fieldNursery"], [data-client-media="warehousePeople"]) { object-position: 50% 32%; }
.market-redesign .market-stage img[data-client-media="logistics"] { object-position: 50% 65%; }

.market-redesign .market-stage .se-distribution-card > div {
  display: grid;
  align-content: center;
  min-block-size: 168px;
  padding: clamp(22px, 3vw, 42px);
}

.market-redesign .market-stage h3 {
  color: var(--market-forest);
  max-width: none;
  margin-block-end: 10px;
  font-size: clamp(1.22rem, 2.2vw, 1.75rem);
}

.market-redesign .market-stage p { color: var(--market-text); }

.market-redesign .market-plans .se-reach-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.market-redesign :is(.market-plans, .market-scheme-grid) .se-reach-card {
  padding: clamp(22px, 3.4vw, 44px);
  background: var(--market-paper);
  border-color: var(--market-line);
}

.market-redesign .market-plans .se-reach-card:nth-child(2) { background: var(--market-sage); }

.market-redesign :is(.market-plans, .market-scheme-grid) .se-reach-card h3 {
  color: var(--market-forest);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.market-redesign .market-named-item {
  margin-block-start: 19px;
  padding-block-start: 19px;
  border-block-start: 1px solid var(--market-line);
}

.market-redesign .market-named-item h4 {
  margin: 0 0 6px;
  font-size: 1.04rem;
  color: var(--market-forest);
}

.market-redesign :is(.market-plans, .market-scheme-grid) .se-reach-card p { color: var(--market-text); }

.market-redesign .market-outlook {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
}

.market-redesign :is(.market-commitment, .market-vision) {
  padding: clamp(25px, 4.4vw, 58px);
  border-radius: 18px;
  background: var(--market-sage);
  color: var(--market-forest);
}

.market-redesign .market-commitment .ui-section-head { margin-block-end: 20px; }
.market-redesign .market-commitment li::marker,
.market-redesign .market-scheme-grid li::marker { color: #507863; }
.market-redesign .market-commitment p,
.market-redesign .market-commitment li { color: var(--market-text); }

.market-redesign .market-vision {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(ellipse at 110% 0%, #466d552e, transparent 65%),
    var(--market-forest);
  color: #fff;
}

.market-redesign .market-vision h3 {
  font-size: clamp(1.6rem, 3.1vw, 2.9rem);
  color: #fff;
}

.market-redesign .market-vision p { color: #deebe1; margin-block-end: 0; }

.market-redesign .market-partnership-intro {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(22px, 6vw, 84px);
  padding-block: clamp(30px, 5.6vw, 76px);
  border-block: 1px solid var(--market-line);
}

.market-redesign .market-partnership-intro .ui-section-head { margin: 0; }
.market-redesign .market-partnership-intro > div + div p { color: var(--market-text); }
.market-redesign .market-partnership-intro > div + div p:last-child { margin-block-end: 0; }

.market-redesign .market-scheme-title {
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  margin-block: clamp(32px, 5vw, 64px) 20px;
}

.market-redesign .market-scheme-grid { gap: 14px; }
.market-redesign .market-scheme-grid .se-reach-card:nth-child(4n + 2),
.market-redesign .market-scheme-grid .se-reach-card:nth-child(4n + 3) { background: var(--market-sage); }
.market-redesign .market-scheme-grid ul { color: var(--market-text); margin-block-end: 0; }

.market-redesign .market-partnership-table .client-source-table-wrap {
  margin-block-end: 0;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: var(--market-paper);
}

.market-redesign .market-partnership-table .client-source-table-wrap:focus-visible {
  outline: 2px solid #42745a;
  outline-offset: 4px;
}

.market-redesign .market-partnership-table thead {
  background: var(--market-forest);
  color: #fff;
}

.market-redesign .market-partnership-table :is(th, td) {
  padding: 14px clamp(12px, 2.4vw, 34px);
  border-color: var(--market-line);
  overflow-wrap: anywhere;
}

.market-redesign .market-partnership-table th[scope=row] {
  min-inline-size: 0;
  width: 34%;
  color: var(--market-forest);
  overflow-wrap: anywhere;
}

.market-redesign .market-partnership-table tbody tr:nth-child(even) { background: var(--market-sage); }
.market-redesign .market-partnership-table tbody tr:last-child > * { border-bottom: 0; }

.market-redesign .market-roles .se-partner-grid { gap: 14px; }

.market-redesign .market-roles .se-partner-card {
  background: var(--market-paper);
  color: var(--market-forest);
  border-color: var(--market-line);
}

.market-redesign .market-roles .se-partner-card:hover {
  background: var(--market-sage);
  border-color: #829e8c;
}

.market-redesign .market-roles .se-partner-arrow {
  color: var(--market-forest);
  border-color: #b3c6b8;
}

.market-redesign .xp-closing {
  background: var(--market-forest);
  color: #fff;
  padding: clamp(27px, 4vw, 53px);
}

.market-redesign .xp-closing h2 { color: #fff; }
.market-redesign .xp-closing p { color: #deebe1; margin-block-end: 0; }
.market-redesign .xp-closing .button { background: #f2f5ef; border-color: #f2f5ef; color: var(--market-forest); }
.market-redesign .xp-closing .button:hover { background: #dce8df; border-color: #dce8df; }

.news-redesign .se-journal { padding-block: clamp(32px, 5.8vw, 82px) clamp(44px, 6vw, 84px); }

.news-redesign .se-news-filters {
  gap: 8px;
  margin-block-end: clamp(22px, 3.6vw, 45px);
  padding-block-end: 18px;
  border-block-end: 1px solid var(--market-line);
}

.news-redesign .se-news-filters button {
  border-color: var(--market-line);
  color: var(--market-forest);
  font-weight: 600;
}

.news-redesign .se-news-filters button:hover { background: var(--market-sage); }
.news-redesign .se-news-filters button.active { background: var(--market-forest); border-color: var(--market-forest); color: #fff; }
.news-redesign .se-news-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }

.news-redesign .se-news-grid > .se-story-card {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  max-width: none;
  background: var(--market-paper);
  border-color: var(--market-line);
  border-radius: 20px;
}

.news-redesign .se-news-grid > .news-story-project {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  background: var(--market-sage);
}

.news-redesign .se-story-copy {
  justify-content: center;
  padding: clamp(26px, 4.4vw, 62px);
}

.news-redesign .se-story-copy h2 {
  max-width: none;
  color: var(--market-forest);
  font-size: clamp(1.37rem, 2.95vw, 2.6rem);
  line-height: 1.13;
  letter-spacing: -.026em;
}

.news-redesign .se-story-copy > p {
  color: var(--market-text);
  margin-block: 0 22px;
}

.news-redesign .se-project-status {
  margin-block-end: 14px;
  background: #d8e5d9;
  color: #28523d;
}

.news-redesign .se-story-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-block-start: 0;
  color: var(--market-forest);
  font-weight: 650;
}

.news-redesign .se-story-button span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #adc1b2;
  border-radius: 50%;
}

.news-redesign .se-story-button:hover span { background: var(--market-forest); color: #fff; }
.news-redesign .se-story-button:focus-visible,
.news-redesign .se-news-filters button:focus-visible { outline: 2px solid #42745a; outline-offset: 4px; }

.news-redesign :is(.se-story-document, .se-story-schematic) {
  position: relative;
  overflow: hidden;
  min-height: 355px;
  aspect-ratio: auto;
  padding: 0;
}

.news-redesign .se-story-document {
  background: linear-gradient(#f0eadc, #e4eadb 70%);
}

.news-redesign .se-story-document svg {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}

.news-redesign .se-story-schematic {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(24px, 3.5vw, 50px);
  background:
    linear-gradient(#b7d2bd22 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, #b7d2bd22 1px, transparent 1px) 0 0 / 26px 26px,
    #173c30;
}

.news-redesign .se-story-schematic svg {
  position: relative;
  max-width: 480px;
  stroke: #d4e6d2;
  stroke-width: 1.45;
}

.news-redesign .se-story-schematic svg circle { fill: #d8bc77; stroke: #d8bc77; }
.news-redesign .news-story-project .se-story-copy { grid-column: 1; grid-row: 1; }

@media (max-width: 780px) {
  .market-redesign .market-intro,
  .market-redesign .market-partnership-intro { grid-template-columns: minmax(0, 1fr); }
  .market-redesign .market-outlook { grid-template-columns: minmax(0, 1fr); }
  .market-redesign .market-stage .se-distribution-card > div { min-block-size: 146px; }
  .market-redesign .market-roles .se-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-redesign .se-news-grid > .se-story-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .news-redesign .se-story-schematic,
  .news-redesign .news-story-project .se-story-copy { grid-area: auto; }
  .news-redesign :is(.se-story-document, .se-story-schematic) {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .market-redesign .se-anchor-nav { gap: 0 15px; }
  .market-redesign .se-anchor-nav a { min-height: 42px; font-size: .76rem; }
  .market-redesign :is(.market-focus-grid, .market-plans .se-reach-grid, .market-scheme-grid, .market-roles .se-partner-grid) {
    grid-template-columns: minmax(0, 1fr);
  }
  .market-redesign .market-focus-grid .se-reach-card { min-block-size: 0; }
  .market-redesign .market-distribution-track { --rail-inset: 12px; }
  .market-redesign .market-stage .se-distribution-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .market-redesign .market-stage .ui-photo { aspect-ratio: 1.65; }
  .market-redesign .market-stage .se-distribution-card > div { min-block-size: 0; }
  .market-redesign .market-partnership-table :is(th, td) { padding: 11px 9px; }
}
