/*
 * Natuurgras signature ("the gardener next door").
 * Elements: lawn year calendar (jobs x 12 months, current month marked), mowing-height ruler with the one-third rule.
 * Load after kit.css + themes/natuurgras.css.
 */

/* ---------- Lawn year: one row per job, bars over the months ----------
 * <div class="ng-year" style="--now: 11">  row: <li style="--from: 3; --to: 5"> (months 1-12), add .is-peak for the best window.
 * A job with two windows gets two spans inside .ng-year__track.
 */
.ng-year { background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); padding: 1rem 1.1rem .9rem; overflow-x: auto; }
.ng-year__grid { min-width: 34rem; }
.ng-year__months, .ng-year__row { display: grid; grid-template-columns: 11.5rem repeat(12, minmax(0, 1fr)); align-items: center; }
.ng-year__months { font-size: .75rem; color: var(--zs-muted); text-align: center; padding-bottom: .35rem; border-bottom: 1px solid var(--zs-line); }
.ng-year__months .is-now { color: var(--zs-ink); font-weight: 700; }
.ng-year__row { padding: .35rem 0; border-bottom: 1px solid var(--zs-line); position: relative; }
.ng-year__row:last-child { border-bottom: 0; }
.ng-year__job { font-weight: 600; font-size: .95rem; padding-right: .75rem; }
.ng-year__job small { display: block; font-weight: 400; font-size: .78rem; color: var(--zs-muted); }
.ng-year__track { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); height: 1rem; position: relative; }
.ng-year__track span { grid-column: var(--from) / calc(var(--to) + 1); grid-row: 1; background: var(--ng-job); border-radius: 3px; margin: 0 1px; }
.ng-year__track span.is-peak { background: var(--ng-job-peak); }
/* Current month: a straw column behind every track. */
.ng-year__track::before { content: ""; grid-column: var(--now) / span 1; grid-row: 1; margin: -.45rem 0; background: var(--zs-highlight); border-radius: 2px; z-index: 0; }
.ng-year__track span { position: relative; z-index: 1; }
.ng-year__legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .8rem; color: var(--zs-muted); margin: .7rem 0 0; padding: 0; list-style: none; }
.ng-year__legend li { display: inline-flex; align-items: center; gap: .4rem; }
.ng-year__legend i { width: 1rem; height: .6rem; border-radius: 2px; background: var(--ng-job); }
.ng-year__legend i.peak { background: var(--ng-job-peak); }
.ng-year__legend i.now { background: var(--zs-highlight); }

/* ---------- Mowing-height ruler: blade heights in cm, the one-third rule ----------
 * <figure class="ng-height" style="--max: 10; --cut: 5; --grow: 7.5">  heights in cm.
 */
.ng-height { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: end; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); padding: 1rem 1.1rem; }
.ng-height__ruler { position: relative; height: 12rem; width: 7.5rem; border-left: 2px solid var(--zs-ink); }
.ng-height__ruler ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.ng-height__ruler li { position: absolute; left: 0; bottom: calc(var(--cm) / var(--max) * 100%); width: .5rem; border-top: 2px solid var(--zs-ink); font-size: .7rem; color: var(--zs-muted); font-variant-numeric: tabular-nums; }
.ng-height__ruler li span { position: absolute; left: -1.9rem; top: -.5rem; width: 1.6rem; text-align: right; }
/* Blades: grown height in light green, the part to keep in dark green, cut-off third hatched by colour. */
.ng-height__blade { position: absolute; bottom: 0; left: 1.4rem; width: 1.3rem; height: calc(var(--grow) / var(--max) * 100%); background: color-mix(in srgb, var(--ng-job) 35%, var(--zs-surface)); border-radius: 50% 50% 0 0 / 1rem 1rem 0 0; }
.ng-height__blade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--cut) / var(--grow) * 100%); background: var(--zs-brand); }
.ng-height__blade + .ng-height__blade { left: 3.2rem; height: calc(var(--cut) / var(--max) * 100%); }
.ng-height__blade + .ng-height__blade::after { height: 100%; }
.ng-height__line { position: absolute; left: 0; right: -.5rem; bottom: calc(var(--cut) / var(--max) * 100%); border-top: 2px dashed var(--zs-ink); }
.ng-height__line span { position: absolute; right: 0; bottom: .15rem; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.ng-height__text h3 { font-size: 1.2rem; }
.ng-height__text p { margin: .3rem 0 0; color: var(--zs-muted); }
.ng-height__text dl { margin: .8rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; font-size: .92rem; }
.ng-height__text dt { font-weight: 700; font-variant-numeric: tabular-nums; }
.ng-height__text dd { margin: 0; color: var(--zs-muted); }
@media (max-width: 30rem) { .ng-height { grid-template-columns: 1fr; } .ng-height__ruler { margin-left: 2rem; } }

/* ================= v2 (Terry 18-11: warmer, own pictograms, bhv/ehbo level) ================= */
/* Round pictogram tiles: icons/natuurgras/sprite.svg. */
.ng-picto { --picto-bg: var(--zs-picto); display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--picto-bg); color: #fff; }
.ng-picto svg { width: 66%; height: 66%; }
.ng-picto--sm { width: 2rem; height: 2rem; }
.ng-picto--sun { --picto-bg: var(--ng-sun); color: var(--zs-ink); }

/* Hero: sky-to-lawn band, a sun, and a row of grass blades along the bottom edge (inline SVG .ng-grass). */
.ng-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ng-sky) 0%, var(--zs-bg) 100%); padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(4.5rem, 8vw, 6rem); }
.ng-hero::before { content: ""; position: absolute; right: max(2rem, calc((100vw - 72rem) / 2)); top: 2rem; width: 7rem; height: 7rem; border-radius: 50%; background: var(--ng-sun); box-shadow: 0 0 0 1.2rem rgb(242 193 78 / .25), 0 0 0 2.6rem rgb(242 193 78 / .12); }
.ng-hero > .zs-wrap { position: relative; }
.ng-hero h1 { font-size: clamp(2.3rem, 3vw + 1.3rem, 3.8rem); line-height: 1.05; max-width: 15ch; }
.ng-hero__lead { font-size: 1.15rem; margin: 1rem 0 0; max-width: 36rem; }
.ng-now { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; background: var(--zs-surface); border-radius: 999px; padding: .3rem .9rem .3rem .3rem; font-weight: 700; box-shadow: 0 2px 0 var(--zs-line); }
.ng-grass { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(3rem, 6vw, 4.5rem); color: var(--zs-brand); pointer-events: none; }
.ng-grass .back { color: var(--ng-job); }
.ng-hero + .zs-section { padding-top: 2rem; }

/* Calendar v2: season band over the months, pictogram per job, bars with round ends. */
.ng-year { border-radius: 16px; box-shadow: 0 3px 0 var(--zs-line); }
.ng-year__seasons { display: grid; grid-template-columns: 11.5rem repeat(12, minmax(0, 1fr)); font-size: .72rem; font-weight: 700; text-align: center; margin-bottom: .2rem; }
.ng-year__seasons span { padding: .2rem 0; }
.ng-year__seasons .w1 { grid-column: 2 / span 2; background: var(--ng-season-winter); border-radius: 6px 0 0 6px; }
.ng-year__seasons .sp { grid-column: 4 / span 3; background: var(--ng-season-spring); }
.ng-year__seasons .su { grid-column: 7 / span 3; background: var(--ng-season-summer); }
.ng-year__seasons .au { grid-column: 10 / span 3; background: var(--ng-season-autumn); }
.ng-year__seasons .w2 { grid-column: 13 / span 1; background: var(--ng-season-winter); border-radius: 0 6px 6px 0; }
.ng-year__job { display: flex; align-items: center; gap: .55rem; }
.ng-year__track { height: 1.15rem; }
.ng-year__track span { border-radius: 999px; }
.ng-year__track::before { border-radius: 6px; }

/* Ruler v2: a soft lawn behind the blades. */
.ng-height { border-radius: 16px; box-shadow: 0 3px 0 var(--zs-line); }
.ng-height__ruler { background: linear-gradient(0deg, var(--ng-season-spring) 0 18%, transparent 18%); border-radius: 0 0 6px 0; }

/* ================= v3 (Terry 18-11: a photo in the hero) =================
 * <section class="ng-hero ng-hero--photo" style="--hero-img: url(../img/natuurgras-hero-gras-1600.webp)">
 * Cream veil from the left keeps the green heading >= 7:1; the photo shows on the right.
 */
.ng-hero--photo { background: var(--zs-bg) var(--hero-img) center right / cover no-repeat; padding-bottom: clamp(5rem, 9vw, 7rem); }
.ng-hero--photo::before { inset: 0; right: 0; top: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; background: linear-gradient(90deg, rgb(251 248 239 / .96) 0%, rgb(251 248 239 / .9) 38%, rgb(251 248 239 / .25) 70%, rgb(251 248 239 / 0) 100%); }
@media (max-width: 48rem) { .ng-hero--photo::before { background: linear-gradient(180deg, rgb(251 248 239 / .95) 0%, rgb(251 248 239 / .92) 75%, rgb(251 248 239 / .8) 100%); } }
