/* "Smart irrigation": its own look, taken from the research report
   (white paper, Tinos headings, small diamonds in teal, green and lime).
   One continuous page: the header collage, then the chapters one under the other (layouts/irrigation.js). */
.panel[data-layout="irrigation"] { background: #fff; border-left: 0; }
.panel[data-layout="irrigation"] .panel-body { padding: 0; gap: 0; }
.panel[data-layout="irrigation"] .panel-close { background: #fff; border-color: rgba(19, 79, 92, 0.2); color: #134f5c; z-index: 7; }
.panel[data-layout="irrigation"] .panel-nav { display: none; }

.irr {
  --irr-ink: #134f5c;
  --irr-line: #dfe8ea;
  --irr-text: #1f2b2e;
  --irr-muted: #56676a;
  --irr-serif: "Tinos", "Times New Roman", Times, serif;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 72px;
  background: #fff;
  color: var(--irr-text);
  font-family: var(--body);
  line-height: 1.55;
}
.irr-banner-wrap { position: relative; margin: 0 calc(-1 * clamp(20px, 5vw, 64px)); }
.irr-hole { position: absolute; background: #e6e3db; opacity: 0; border-radius: 12px; filter: blur(4px); pointer-events: none; }
.irr-banner { display: block; width: 100%; height: auto; }

/* Small animations: blocks rise in, pieces slide in from the side and drift a little with the scroll */
.irr-rv { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.irr-piece { --from: 0px; --drift: 0px; opacity: 0; transform: translate(var(--from), var(--drift)); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.irr-from-left { --from: -36px; }
.irr-from-right { --from: 36px; }
.irr-rv.is-in { opacity: 1; transform: none; }
.irr-piece.is-in { --from: 0px; opacity: 1; }

/* Chapters, one under the other */
.irr-ch { padding: 56px 0; border-top: 1px solid var(--irr-line); }
.irr-cover { border-top: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding-top: 32px; }
.irr-cover + .irr-ch { border-top: 0; }
/* a short soft edge where the banner ends */
.irr-banner { -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
.irr p { margin: 0; color: var(--irr-text); max-width: 68ch; }
.irr-text { font-size: 1rem; margin-bottom: 24px !important; }

.irr .irr-title { margin: 0 0 18px; font-family: var(--irr-serif); font-style: italic; font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1; color: #111; }
.irr .irr-lead { font-family: var(--body); font-size: 1rem; line-height: 1.6; color: #222; }
.irr-sketch { position: relative; z-index: 2; width: 100%; max-width: 160px; justify-self: center; transform-origin: 0 0; will-change: transform; }

.irr-chh { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.irr-dia { width: 16px; height: 16px; flex: none; transform: rotate(45deg); background: var(--c, #3e917e); }
.irr-chh h3 { margin: 0; font-family: var(--irr-serif); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.03em; text-transform: uppercase; color: #111; }

.irr-fig { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.irr-fig img { display: block; max-width: 100%; }
.irr-fig figcaption, .irr-award figcaption { font-family: var(--body); font-size: 0.85rem; line-height: 1.4; color: var(--irr-muted); }

/* Theory */
.irr-th-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.irr-quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.irr-quad img { width: 100%; display: block; }

/* Study of the region */
.irr-study { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.irr-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 460px; }
.irr-num { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--c); padding-left: 12px; }
.irr-num b { font-family: var(--irr-serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; color: var(--irr-ink); font-variant-numeric: tabular-nums; }
.irr-num span { font-size: 0.92rem; color: var(--irr-muted); }
.irr-diamonds { position: relative; height: 110px; max-width: 120px; justify-self: center; width: 100%; }
.irr-diamonds i { position: absolute; width: 28px; height: 28px; background: var(--c); transform: rotate(45deg); }
.irr-diamonds i:nth-child(1) { left: 20%; top: 4%; }
.irr-diamonds i:nth-child(2) { left: 52%; top: 36%; }
.irr-diamonds i:nth-child(3) { left: 14%; top: 66%; }

/* Prototype */
.irr-pr-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 32px; }
.irr-pr-top > img { width: 100%; max-width: 270px; justify-self: end; }
.irr-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.irr-row img { width: 100%; height: 140px; object-fit: contain; }

/* Conclusion: the components left, the text right */
.irr-concl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.irr-parts { position: relative; aspect-ratio: 0.75; width: 100%; max-width: 120px; justify-self: center; }
.irr-parts img { position: absolute; }
.irr-p-mcu { left: 5.6%; top: 2%; width: 44%; transform: rotate(-14deg); }
.irr-p-water { left: 8%; top: 60%; width: 17%; transform: rotate(22deg); }
.irr-p-temp { left: 56%; top: 44%; width: 39%; }
.irr .irr-close { font-family: var(--body); font-size: 1rem; line-height: 1.6; color: #333; }

/* Awards and the full report */
.irr-aw-head { max-width: 560px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.irr-hand { font-family: "Caveat", cursive; font-weight: 600; font-size: 1.6rem; color: var(--irr-ink); white-space: nowrap; margin-bottom: 14px; rotate: 6deg; }
.irr-awards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; max-width: 560px; }
.irr-award { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.irr-award img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.irr-award figcaption { color: var(--irr-text); text-align: center; }
.irr-report { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; border-top: 1px solid var(--irr-line); padding-top: 22px; }
.irr-pdf { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; box-sizing: border-box; font-family: var(--irr-serif); font-weight: 700; font-size: 1.02rem; color: var(--irr-ink); text-decoration: none; border: 1px solid var(--irr-ink); padding: 0 18px; }
.irr-pdf .irr-dia { --c: #3e917e; width: 11px; height: 11px; }
.irr-pdf:hover, .irr-pdf:focus-visible { background: var(--irr-ink); color: #fff; }
.irr-note { font-size: 0.86rem; color: var(--irr-muted); }

/* Narrow windows and phones: one column */
@media (max-width: 760px) {
  .irr-ch { padding: 40px 0; }
  .irr-cover, .irr-th-grid, .irr-study, .irr-pr-top, .irr-concl { grid-template-columns: 1fr; gap: 24px; }
  .irr-sketch { max-width: 150px; }
  .irr-diamonds { display: none; }
  .irr-pr-top > img { justify-self: center; max-width: 300px; }
  .irr-row img { height: 28vw; }
  .irr-parts { max-width: 180px; margin: 0 auto; }
  .irr-awards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .irr-rv, .irr-piece { opacity: 1; transform: none; transition: none; }
}
