:root {
  --ink: #192c21;
  --night: #14291e;
  --fern: #26543c;
  --gold: #e9cb84;
  --paper: #f6f5ed;
  --white: #fffef8;
  --leaf: #e6ecdd;
}
.top {background: var(--white)}
.top-inner {min-height: 88px}
.primary {gap: clamp(1rem, 2.5vw, 2.8rem)}
.top nav a {text-underline-offset: .4em}
.more summary, .btn {border-radius: 2px}
.more summary {padding: .65rem .9rem}
.more nav {padding: .65rem; border-top: 3px solid var(--fern)}
.more nav a:hover {background: var(--leaf)}
.mast-production {grid-template-columns: minmax(0, .81fr) minmax(0, 1fr); align-items: stretch; min-height: clamp(510px, 73svh, 760px)}
.mast-production::after {display: none}
.mast-panel {display: grid; align-items: center; padding-inline: clamp(25px, 6vw, 105px) clamp(25px, 4vw, 70px)}
.mast-production .mast-copy {padding-block: clamp(48px, 8vw, 125px); animation: appear .55s ease-out both}
.mast-production h1 {max-width: 11ch; font-size: clamp(3.2rem, 6.8vw, 7.5rem); line-height: .91; letter-spacing: -.065em}
.mast-production h1 em {color: var(--gold)}
.mast-production .intro {margin-top: 1.6rem; color: #e5ebdc}
.mast-production-photo {position: relative; overflow: hidden; isolation: isolate; background: #294d32}
.mast-production-photo img {width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 49% center}
.mast-production-photo .image-credit {background: #14291edf; bottom: 1rem; right: 1rem; padding: .3rem .6rem}
@keyframes appear {from {opacity: 0; transform: translateY(12px)} to {opacity: 1; transform: translateY(0)}}
.gateway {background: #213d2c; border-top: 1px solid #59735d; padding-block: 1.35rem}
.gate-grid a {border-left-color: #9faf89; padding-block: .5rem}
.gate-grid a:hover {background: #ffffff1d}
.production .heading {margin-bottom: 2rem}
.production-gallery {display: grid; grid-template-columns: 1.85fr 1fr; gap: .75rem}
.production-gallery figure {position: relative; min-height: 190px; overflow: hidden; background: var(--night)}
.production-gallery figure:first-child {grid-row: span 2; min-height: clamp(380px, 46vw, 650px)}
.production-gallery img {position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform .45s}
.production-gallery figure:hover img {transform: scale(1.025)}
.production-gallery figcaption {position: absolute; left: 0; bottom: 0; padding: .5rem .8rem; color: #fff; font-size: .85rem; background: #14291eea}
.production + .section {padding-top: 0}
.home-crops {grid-template-columns: 1.25fr 1fr 1fr}
.home-crops .card-media {aspect-ratio: auto; height: clamp(145px, 20vw, 285px)}
.home-crops .card:hover, .home-crops .card:focus-visible {border-color: var(--fern)}
.card-copy {padding: clamp(1rem, 2.5vw, 2rem)}
.home-technical {background: #e8eadc}
.home-technical .feature {margin: 0; background: #253b29; color: var(--white)}
.home-technical .kicker::before {background: var(--gold)}
.home-technical .btn {background: var(--gold); border-color: var(--gold); color: var(--night)}
.subhead {background: linear-gradient(115deg, #e2ead8, #f1f2e8); padding-block: clamp(40px, 8vw, 104px)}
.subhead h1 {max-width: 17ch; line-height: .99}
[data-page="almendro"] .subhead {background: #ece4d1}
[data-page="injertado"] .subhead {background: var(--night); color: var(--white)}
[data-page="injertado"] .subhead .kicker::before {background: var(--gold)}
#technical-cards .card {border-top: 3px solid #6f886a}
#technical-cards .btn {justify-self: start; margin-top: .45rem}
#technical-cards .card-copy {align-content: stretch; grid-template-rows: auto auto 1fr auto}
#tech-table .table tbody tr:nth-child(even) td {background: #f1f4ea}
.group-title {padding-block: 1rem}
.chart-scroll:focus-visible, .table-scroll:focus-visible, textarea:focus-visible {outline: 3px solid #9d5814; outline-offset: 2px}
.graft-lots {gap: clamp(12px, 2vw, 26px)}
.graft-title {position: relative; overflow: hidden; min-height: 12rem; display: flex; align-items: end; background: linear-gradient(125deg,#254c36,#173023); color: var(--white)}
.graft-title > div {position: relative; padding: clamp(1rem, 3vw, 2rem); width: 100%}
.graft-title .stamp {color: var(--gold); margin-bottom: .4rem}
.graft-title h3 {font-size: clamp(1.95rem, 5vw, 3.65rem)}
.graft-photo img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover}
.graft-photo::after {content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#12291eea,transparent 95%); pointer-events: none}
.graft-photo > div {z-index: 1}
.graft-controls {display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1.2rem}
.graft-controls label {flex: 1 1 175px; max-width: 270px}
textarea {width: 100%; resize: vertical; color: inherit; font: inherit; padding: .65rem; background: var(--white); border: 1px solid #8ca391}
#lot-channels {padding: 1rem; background: var(--leaf)}
dialog {padding: clamp(16px, 4vw, 36px)}
.research-band {background: #e8ecdf; border-block: 1px solid #cad5c4}
.research-band h2 {max-width: 17ch}
.funded {display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; background: var(--white); border: 1px solid var(--line)}
.funded-copy, .funded-graphics {padding: clamp(17px, 3.5vw, 54px)}
.funded-copy h3 {font-size: clamp(1.5rem, 3.3vw, 3rem); margin-bottom: 1rem}
.funded-copy > a {display: inline-block; margin-top: 1rem}
.funded-graphics {align-self: stretch; display: grid; align-content: center; gap: 1rem; border-left: 1px solid var(--line)}
.funded-graphics img {height: auto; width: 100%; object-fit: contain; margin-inline: auto}
.research-list {display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; margin-top: 1.2rem; background: var(--line); border: 1px solid var(--line)}
.research-list article {display: grid; align-content: start; gap: .7rem; background: var(--white); padding: clamp(1rem, 2.8vw, 2.25rem)}
.research-list h3 {font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.15}
.viverall {padding-block: clamp(2rem, 4vw, 4rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem 3rem}
.viverall h2 {font-size: clamp(1.55rem, 3vw, 2.55rem); margin-bottom: .6rem}
.viverall p {max-width: 63ch}
.viverall .btn {flex-shrink: 0}
@media (max-width: 950px) {
  .primary {gap: .9rem}
  .top-inner {min-height: 75px}
}
@media (max-width: 740px) {
  .primary {display: none}
  .mast-production {grid-template-columns: 1fr; min-height: 0}
  .mast-panel {padding-inline: max(16px, 5vw)}
  .mast-production .mast-copy {padding-block: 3rem}
  .mast-production-photo {min-height: clamp(235px, 54vw, 390px)}
  .gate-grid, .home-crops {grid-template-columns: 1fr}
  .home-crops .card-media {height: clamp(170px, 44vw, 295px)}
  .production-gallery {grid-template-columns: repeat(2,minmax(0,1fr))}
  .production-gallery figure {min-height: clamp(125px, 27vw, 200px)}
  .production-gallery figure:first-child {grid-column: span 2; grid-row: auto; min-height: clamp(240px, 50vw, 375px)}
  .funded {grid-template-columns: 1fr}
  .funded-graphics {border-left: 0; border-top: 1px solid var(--line)}
  .research-list {grid-template-columns: 1fr}
  .viverall {align-items: start; flex-direction: column}
}
.almond-summary {display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: .75rem; margin-bottom: 1rem}
.almond-summary article {background: #eae5d4; border-top: 3px solid #8e734f; padding: 1rem}
.almond-summary h3 {font-size: clamp(1.35rem, 2.8vw, 2rem)}
.almond-summary .facts {margin-bottom: 0}
.funding-banner {background: #fff; border-bottom: 1px solid var(--line); padding-block: .8rem}
.funding-banner img {width: min(100%,720px); height: auto}
.funding-banner p {margin-top: .4rem; color: var(--muted)}
