/* =============================================================================
   Contribution: the few things page.css and engage.css do not do.
   The page carries `engage` beside `contrib` and speaks the Integrated Human
   Practices soft style (assets/css/engage.css).

   18 October 2026, second pass. The chapter tabs are gone: the seven sections
   read straight down the page, and the two things this file still adds are
     1. the board (.gl) that opens the page, one tile per contribution;
     2. the download shelf (.fset), every file on the wiki as a chip you can
        click, grouped on a pale ground.
   ========================================================================== */

/* Geospatial analysis became a section of its own on 19 October, so the page
   needs a seventh chapter colour; engage.css carries six. */
.engage.contrib .pl-7 { --pl: #1f6f63; }

/* ------------------------------------------------------------- THE BOARD -- */

.engage.contrib .gl {
  display: grid;
  gap: .5rem;
  margin: var(--sp-5) 0 0;
  padding: .5rem;
  border-radius: 28px;
  background: var(--well);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 40rem) { .engage.contrib .gl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .engage.contrib .gl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.engage.contrib a.gl__t {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: .15rem .85rem;
  padding: 1.05rem 1.2rem 1.15rem;
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.engage.contrib a.gl__t:hover,
.engage.contrib a.gl__t:focus-visible {
  box-shadow: 0 16px 36px -20px rgb(0 0 0 / .3), 0 1px 4px -2px rgb(0 0 0 / .1);
  transform: translateY(-2px);
}
.engage.contrib a.gl__t:focus-visible { outline: 2px solid var(--pl); outline-offset: 3px; }

.engage.contrib .gl__ico {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 13px;
  background: color-mix(in srgb, var(--pl) 11%, #fff);
  color: var(--pl);
}
.engage.contrib .gl__ico svg { width: 1.25rem; height: 1.25rem; }
.engage.contrib .gl__n {
  align-self: end;
  font-size: 1.0625rem; font-weight: 650; line-height: 1.2;
  letter-spacing: -.016em;
  color: var(--ink);
}
.engage.contrib .gl__k {
  align-self: start;
  font-size: .8125rem; font-weight: 500; line-height: 1.3;
  color: var(--pl);
}
.engage.contrib .gl__w {
  grid-column: 1 / -1;
  margin: .7rem 0 0;
  font-size: .875rem; line-height: 1.5;
  color: var(--ink-3);
}
@media (min-width: 40rem) {
  .engage.contrib .gl__w { grid-column: 2; margin-top: .5rem; }
}
.engage.contrib .gl + .glnote { margin: var(--sp-4) 0 0; font-size: .8125rem; }
html.ai-off .engage.contrib .gl + .glnote { color: var(--ink-3); }

/* ----------------------------------------------------------- THE SECTIONS -- */
/* Each contribution carries its own colour, the one its tile has. */

.engage.contrib .sec > h3 { margin-top: var(--sp-6); color: var(--ink); }
.engage.contrib .sec > h4 { margin: var(--sp-5) 0 .5rem; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.012em; color: var(--ink); }
.engage.contrib .sec > h3 .sec__no { color: var(--pl); }
.engage.contrib .sec > .chartbox { background: var(--well); }
.engage.contrib .chartbox .charts--1 { max-width: 44rem; }
.engage.contrib .chartbox .fig img { max-height: 22rem; width: auto; margin: 0 auto; }
.engage.contrib .fold .chartbox { background: #fff; }

/* a wide diagram reads as a drawing, not as a chart in a tray: no pale ground,
   no height cap, the full column width. */
.engage.contrib .sec > .chartbox--wide { background: none; padding: 0; }
.engage.contrib .chartbox--wide .charts { max-width: none; }
.engage.contrib .chartbox--wide .fig img { max-height: none; width: 100%; }

/* the protocol folds carry long step lists and small tables */
.engage.contrib .fold__body ul { margin: 0 0 var(--sp-3); padding-left: 1.15rem; }
.engage.contrib .fold__body ul ul { margin: .35rem 0 0; }
.engage.contrib .fold__body .tablewrap { margin: .75rem 0 1rem; }

/* spec rows run two across once there is room */
.engage.contrib .sec .findings { max-width: none; }
@media (min-width: 64rem) {
  .engage.contrib .sec > ul.findings { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------- A FIGURE BESIDE THE TEXT -- */
/* The photometer reads as three claims and one tall photograph of the thing
   itself; stacked, the photograph pushed the claims off the screen. Side by
   side the picture stays with the text that describes it, and it sticks while
   the three boxes scroll past. */

.engage.contrib .split { display: grid; gap: 1.25rem; align-items: start; margin: var(--sp-5) 0 0; }
.engage.contrib .split > .findings { margin: 0; }
.engage.contrib .split__fig { margin: 0; padding: .75rem; border-radius: 22px; background: var(--well); }
.engage.contrib .split__fig img { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; cursor: zoom-in; }
.engage.contrib .split__fig figcaption { margin: .5rem .25rem .25rem; font-size: .8125rem; line-height: 1.45; color: var(--ink-3); }
@media (min-width: 62rem) {
  .engage.contrib .split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; }
  .engage.contrib .split > ul.findings { grid-template-columns: minmax(0, 1fr); }
  .engage.contrib .split__fig { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

/* ------------------------------------------- A FIGURE BESIDE THE TEXT -- */
/* The students asked for the picture on the left and the text beside it, and
   for the text to carry on under the picture when it runs longer. That is a
   float, not a grid: the paragraphs wrap down the right-hand side and close
   under the figure on their own. Each h3 clears, so a device never starts
   beside the one above it. */

.engage.contrib .figside {
  float: left;
  width: min(44%, 25rem);
  margin: .35rem 1.6rem 1.1rem 0;
  padding: .75rem;
  border-radius: 22px;
  background: var(--well);
}
.engage.contrib .figside img { display: block; width: 100%; height: auto; max-height: 22rem; object-fit: contain; border-radius: 14px; background: #fff; cursor: zoom-in; }
.engage.contrib .figside figcaption { margin: .5rem .25rem .25rem; font-size: .8125rem; line-height: 1.45; color: var(--ink-3); }
.engage.contrib .sec > h3, .engage.contrib .sec > .shelf { clear: both; }
.engage.contrib .sec::after { content: ""; display: block; clear: both; }
@media (max-width: 52rem) {
  .engage.contrib .figside { float: none; width: auto; margin: var(--sp-5) 0; }
}

/* a small row of pointers at the foot of a section */
.engage.contrib .seealso {
  clear: both;
  margin: var(--sp-5) 0 0;
  padding: .9rem 1.15rem;
  border-radius: 16px;
  background: var(--well);
  font-size: .9375rem; line-height: 1.6; color: var(--ink-2);
}
.engage.contrib .seealso b { color: var(--ink); font-weight: 650; }

/* --------------------------------------------------- THE DOWNLOAD SHELF -- */
/* Every file the wiki publishes, on this page, one click from the table. */

.engage.contrib .shelf {
  margin: var(--sp-5) 0 0;
  padding: clamp(1rem, .6rem + 1.4vw, 1.5rem);
  border-radius: 28px;
  background: var(--well);
}
.engage.contrib .shelf + .shelf { margin-top: .75rem; }
.engage.contrib .shelf > h4 {
  margin: 0 0 .15rem;
  font-size: 1.0625rem; font-weight: 650; letter-spacing: -.014em;
  color: var(--ink); text-transform: none;
}
.engage.contrib .shelf > p.shelf__what {
  margin: 0 0 .9rem;
  max-width: 60ch;
  font-size: .875rem; line-height: 1.5;
  color: var(--ink-3);
}
.engage.contrib .fset {
  display: grid;
  gap: .4rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
}
.engage.contrib a.f {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .8rem;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.engage.contrib a.f:hover,
.engage.contrib a.f:focus-visible {
  box-shadow: 0 10px 24px -14px rgb(0 0 0 / .35), 0 1px 3px -2px rgb(0 0 0 / .12);
  transform: translateY(-1px);
}
.engage.contrib a.f:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.engage.contrib .f__k {
  flex: none;
  min-width: 2.5rem;
  padding: .25rem 0;
  border-radius: 7px;
  background: color-mix(in srgb, var(--leaf) 10%, #fff);
  color: var(--leaf);
  font-size: .6875rem; font-weight: 700; letter-spacing: .02em;
  text-align: center;
}
.engage.contrib .f--stl .f__k { background: color-mix(in srgb, var(--c3) 12%, #fff); color: var(--c3); }
.engage.contrib .f--play .f__k { background: color-mix(in srgb, var(--c5) 12%, #fff); color: var(--c5); }
.engage.contrib .f__n { min-width: 0; font-size: .875rem; font-weight: 550; line-height: 1.3; color: var(--ink); }
.engage.contrib .f__n small { display: block; font-size: .75rem; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* the licence closes the page */
.engage.contrib #downloads .concl { margin-top: var(--sp-6); }
