/* The activity sheet (owner, 25 November 2026: "a swiss grid system to have labels on one side and the activity on
   the larger right side"; impactjournal .operator/plans/activity-page-as-entered-2026-11-25.md), published as
   /activity-sheet-20261126.css on the activity pages that show it (lib/activity-sheet.js, activity-sheet.njk;
   /activity-sheet-20261125.css and -20261125-2.css keep their bytes from src/compat for cached pages). The
   layout of aikyam.space's activity sheet (aikyam-space c4a4e74 src/styles/components.css .asentered), set on this
   site's grid (src/activities.css): every line var(--b), 24 px below 1024 and 30 px from 1024; every gap and padding
   whole lines, each rule's own 1 or 2 px taken out of the padding beside it. Part to part 3 lines; row to row 1 line
   above and below a hairline.
   COLUMNS  below 768 one column, the label above its text. From 768 two columns on the frame's module columns
            (swiss-raster rule 1): the label about a third of the sheet, rounded down to whole lines, then a gap of 1
            line (2 lines from 1024), so the text starts on a module column and runs to the frame's right edge. From
            1024 the sheet is the column beside the contents rail: 690 px at 1440, its label 180 and its text 450
            (today's text column is 504 px). Without round(), the label is a fixed 8 lines (7 from 1024). */
/* "In this activity" is the present page's (src/activities.css): the open list in the rail from 1024, the closed
   disclosure above the sheet below that. The part names in it are in sentence case (owner, 25 November 2026: "should
   this be all caps?"; the contentsName filter), as the older pages' list is; its heading stays the small capital
   label. The sheet is the layout's text column; its parts fill the column. */
/* The rows (owner, 25 November 2026: "the spacing between them seems so cramped. remarkable site is better"; 26
   November 2026: the dotted lines between the entries dropped): 2 lines each, as reMarkable's support topic list sets
   a line of text in about two lines (54 px apart at 1440, measured that day), with no rule between them, so the link
   takes back no pixel. Each name sits on a line of the baseline grid with an empty line between names: from 1024 the
   empty line comes first, below the rail's "In this activity" label, which has none of its own; below 1024 it comes
   after the name, as the disclosure's control already ends on an empty line. The empty line is the item's margin, not
   the link's padding, so the link is the name's one line and its focus ring wraps that name only. Its pointer area
   reaches half a line above and below the name (::after), 2 lines in all, so neighbouring areas meet without
   overlapping and a tap or click goes to the nearest name. The longest list, 8 parts,
   is 80 + 30 + 8 x 60 = 590 px at 1440, inside an 800 px window. */
.activity-layout.sheet-layout .sheet-contents ol li {
  border-top: 0;
  margin-bottom: var(--b);
}
.activity-layout.sheet-layout .sheet-contents ol a {
  position: relative;
  margin-top: 0;
  padding-block: 0;
}
.activity-layout.sheet-layout .sheet-contents ol a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block: calc(var(--b) / -2);
}
@media (min-width: 1024px) {
  .activity-layout.sheet-layout .sheet-contents ol li {
    margin-block: var(--b) 0;
  }
}
/* A part's heading is the target of its "In this activity" link. The page's scroll-padding-top (src/site.css, and
   src/header-impact.css where the top bar has two rows) puts the heading just below the sticky top bar, which hid the
   part's 2 px rule a line above it. One more line of margin lands the rule, and the purposes box's top edge, below the
   bar with the heading a line under it. */
.sheet-part h2[id] {
  scroll-margin-top: var(--b);
}
.activity-sheet.activity-text > * {
  max-width: none;
}
.sheet-top .activity-figure {
  margin: 0;
}
/* The ladder (src/activities.css): the photo to the first part 2 lines (between items); a part's last row to the
   next part, and the last part to the licence, 3 lines (between sections), as margin only: a last row has no
   padding below it. */
.sheet-top + .sheet-part {
  margin-top: calc(var(--b) * 2);
}
.sheet-part + .sheet-part {
  margin-top: calc(var(--b) * 3);
}
.sheet-head {
  padding-top: calc(var(--b) - 2px);
  border-top: 2px solid var(--cn-text-default);
}
.sheet-head h2 {
  min-width: 0;
  margin: 0;
  font-family: inherit;
  font-size: var(--cn-type-eyebrow-size);
  font-weight: 600;
  line-height: var(--b);
  letter-spacing: var(--cn-type-eyebrow-tracking);
  text-transform: uppercase;
}
.sheet-head p {
  margin: 0;
  font-size: var(--cn-type-body-small-size);
  line-height: var(--b);
  color: var(--cn-text-muted);
}
.sheet-rows {
  margin: 0;
}
.sheet-row {
  padding-block: calc(var(--b) - 1px) var(--b);
  border-top: 1px solid var(--cn-component-header-border);
}
.sheet-row:first-child {
  padding-top: var(--b);
  border-top: 0;
}
.sheet-row:last-child {
  padding-bottom: 0;
}
.sheet-row dt {
  min-width: 0;
  font-size: var(--cn-type-body-small-size);
  font-weight: 600;
  line-height: var(--b);
  color: var(--cn-text-muted);
}
/* A row the owner left without a label: its term (the rewrite's heading) for screen readers only, so no term is empty. */
.sheet-term {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sheet-row dd {
  min-width: 0;
  margin: 0;
}
.activity-sheet .activity-text > * {
  max-width: none;
}
.activity-sheet .activity-text > :last-child {
  margin-bottom: 0;
}
/* A list in the text: indented 1 line, so its text starts on a module column (32 px below 1024 otherwise). */
.activity-sheet .activity-text :is(ul, ol) {
  padding-inline-start: var(--b);
}
/* The purposes part (owner, 25 November 2026: one heading only, the closed box "CSR and charitable purposes"; "just one
   collapse should be enough"). The box is the part: a part's 2 px rule above it and its control set as a part's name,
   on the part's first line; closed it is 2 lines, the line below the words included, with its closing hairline drawn
   under the box, as for the last skill row (src/activities.css .faq-row:last-child). Open, the two list headings
   and every purpose's name with its law text below it, nothing further to open: each purpose a skill row's rule and
   type (src/activities.css .faq-row) with a sheet row's whole-line padding, its law text muted as the answer it was. From 768 the inside starts
   on the text column, as a row's text does. The part's h2 is the control's words (one name, and the contents link's
   target lands as a part's heading does) and each purpose's name an h4, both set as the text around them. */
.sheet-purposes .purposes {
  margin-top: 0;
}
.sheet-purposes .purposes > .faq-list > details {
  border-top: 2px solid var(--cn-text-default);
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--cn-component-header-border);
}
.sheet-purposes .purposes > .faq-list > details > summary {
  padding-block: calc(var(--b) - 2px) var(--b);
  font-weight: 600;
}
.sheet-purposes .purposes > .faq-list > details > summary::after {
  top: calc(var(--b) - 2px + (var(--b) - 24px) / 2);
}
.sheet-purposes .purposes-body > h3:first-child {
  margin-top: 0;
}
/* Every row on whole lines at every width, as a sheet row: a line above its words and a line below. */
.activity-page .sheet-purposes .faq-row {
  padding-block: calc(var(--b) - 1px) var(--b);
}
.activity-page .sheet-purposes .purpose-row {
  padding-inline-end: 0;
}
.sheet-purposes .purpose-row p {
  margin: 0;
}
.sheet-purposes .purposes > .faq-list > details > summary > h2 {
  display: block;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
.sheet-purposes .purposes-body h4 {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.sheet-purposes .purpose-law {
  color: var(--cn-text-muted);
}
.sheet-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.activity-sheet .activity-text .sheet-list {
  padding-inline-start: 0;
}
/* A link in a list is a whole 2-line row, a tap target on the grid. */
.sheet-links a {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--b) * 2);
}
/* The other photos: one under another, a line apart; each box whole lines tall, about 3:2, the photo whole inside it
   (never cropped, so a portrait photo keeps its subject), from the box's top left, on the text column's edge. */
.sheet-photos {
  display: grid;
  row-gap: var(--b);
  container-type: inline-size;
}
.sheet-photos figure {
  margin: 0;
}
.sheet-photos img {
  display: block;
  width: 100%;
  height: calc(var(--b) * 10);
  height: round(nearest, 66.6667cqi, var(--b));
  object-fit: contain;
  object-position: left top;
}
.sheet-end {
  margin-top: calc(var(--b) * 3);
  padding-top: calc(var(--b) - 1px);
  border-top: 1px solid var(--cn-component-header-border);
}
.sheet-licence {
  margin: 0;
  font-size: var(--cn-type-body-small-size);
  line-height: var(--b);
  color: var(--cn-text-muted);
}
@media (min-width: 768px) {
  .activity-sheet {
    --sheet-gap: var(--b);
    --sheet-label: calc(var(--b) * 8);
  }
  .sheet-top,
  .sheet-head,
  .sheet-row,
  .sheet-end {
    display: grid;
    grid-template-columns: var(--sheet-label) minmax(0, 1fr);
    grid-template-columns: round(down, calc((100% - var(--sheet-gap)) / 3), var(--b)) minmax(0, 1fr);
    column-gap: var(--sheet-gap);
    align-items: start;
  }
  .sheet-top > *,
  .sheet-head > *,
  .sheet-row > * {
    grid-row: 1;
  }
  .sheet-top > .activity-figure,
  .sheet-head > p,
  .sheet-row > dd,
  .sheet-end > * {
    grid-column: 2 / -1;
  }
  /* The open purposes start where a row's text does: the label column and the gap, as the grid above rounds them. */
  .sheet-purposes .purposes-body {
    margin-inline-start: calc(var(--sheet-label) + var(--sheet-gap));
    margin-inline-start: calc(round(down, calc((100% - var(--sheet-gap)) / 3), var(--b)) + var(--sheet-gap));
  }
}
@media (min-width: 1024px) {
  .activity-sheet {
    --sheet-gap: calc(var(--b) * 2);
    --sheet-label: calc(var(--b) * 7);
  }
  /* The rail and the gap as the present page sets them (src/activities.css), each rounded down to whole lines, so the
     sheet starts on a module column: 210 + 30 at 1024, 330 + 60 at 1440. */
  .sheet-layout {
    grid-template-columns: round(down, var(--activity-contents), var(--b)) minmax(0, 1fr);
    column-gap: round(down, var(--activity-gap), var(--b));
  }
}
