/* Event pages (.operator specs/events-module.md). Built from the owner-approved events mock-up's part 5
   (product/events-mockup-v2-20261128/events.css), on the same grid as site.css: unit 2 px, baseline --b (24 px below 1024,
   30 px from 1024), module 1 baseline. Published as events-20261128.css on sites with event pages only. */
/* The event's opening: name, theme line, dates and place, organiser line. */
.ev-hero {
  padding-block: var(--section);
}
.ev-hero h1 {
  margin: 0 0 var(--b);
  max-inline-size: calc(var(--b) * 30);
  text-wrap: balance;
}
.ev-hero .ev-theme {
  margin: 0 0 var(--b);
  font-family: var(--font-read);
  font-style: italic;
  font-size: var(--title-3);
  line-height: var(--title-3-line);
}
.ev-hero p:last-child {
  margin-bottom: 0;
}
.ev-actions .button {
  min-block-size: var(--tap);
}
.ev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--b);
  margin: var(--b) 0 0;
}

/* Cover art, cropped from the brochure's cover. Its box is whole baselines tall. */
.ev-cover {
  margin: 0 auto var(--section);
  container-type: inline-size;
}
.ev-cover img {
  display: block;
  width: 100%;
  height: round(nearest, calc(100cqi * 1050 / 2512), var(--b));
  object-fit: cover;
  object-position: center bottom;
}

/* Lists of sessions, items and people inside a section. */
.ev-list {
  margin: 0 0 var(--b);
  padding: 0;
  list-style: none;
}
.ev-list > li {
  margin: 0 0 var(--b);
  line-height: var(--b);
}
.ev-list > li:last-child {
  margin-bottom: 0;
}
.ev-list p {
  margin: 0;
}
ol.ev-list {
  list-style: decimal;
  padding-inline-start: var(--b);
}
.ev-list a {
  overflow-wrap: anywhere;
}
.ev-meta {
  color: var(--cn-text-muted);
}
.ev-label {
  font-weight: 500;
}
.organisation-section > div > :last-child,
.organisation-section > div > p:last-child {
  margin-bottom: 0;
}
.organisation-section > div > h3:first-child {
  margin-top: 0;
}

/* Two columns of short entries (partners, committee) from 768. */
.ev-columns {
  display: grid;
  gap: 0 var(--gutter);
  margin: 0 0 var(--b);
  padding: 0;
  list-style: none;
}
.ev-columns > li {
  line-height: var(--b);
}
@media (min-width: 768px) {
  .ev-columns {
    grid-template-columns: round(down, calc((100% - var(--gutter)) / 2), var(--b)) 1fr;
  }
}

/* Facts as name and value pairs. */
.ev-facts {
  display: grid;
  grid-template-columns: calc(var(--b) * 7) 1fr;
  gap: 0 var(--b);
  margin: 0 0 var(--b);
  line-height: var(--b);
}
.ev-facts dt {
  font-weight: 500;
}
.ev-facts dd {
  margin: 0;
}
@media (max-width: 767.98px) {
  .ev-facts {
    grid-template-columns: 1fr;
  }
  .ev-facts dd + dt {
    margin-top: var(--b);
  }
}

/* A person shown as text: name, designation, then the talk. */
.ev-person {
  margin: 0 0 calc(var(--b) * 2);
}
.ev-person:last-child {
  margin-bottom: 0;
}
.prose .ev-person h3,
.ev-person h3 {
  margin: 0;
}
.ev-person p {
  margin: 0;
}
.ev-person p + p {
  margin-top: var(--b);
}
.ev-person .ev-meta + p {
  margin-top: var(--b);
}
.prose blockquote {
  margin: 0 0 var(--b);
  font-family: var(--font-read);
  font-style: italic;
  font-size: var(--title-3);
  line-height: var(--title-3-line);
}

/* Schedule: one section per day; one row per item (owner, 28 November 2026). Items at the same time sit under one time
   heading, one under another. From 768 the rows are a timetable on the grid's lines: the time in a column 4 lines wide,
   the title with its chair or speaker, then (from 1280) the hall and the printed time range in a column 7 lines wide, each
   column separated by the gutter; from 768 to 1279 the hall and range sit under the title. Below 768 all three stack. A list under headings, not a table: each day and
   time is a heading a screen reader can move by, and the rows reflow on a phone without sideways scroll. */
.ev-day {
  padding-block: var(--section);
  padding-top: calc(var(--section) - 1px);
  border-top: 1px solid var(--cn-component-header-border);
}
.ev-day > h3 {
  margin: 0 0 var(--b);
}
.ev-slot {
  padding-top: calc(var(--b) - 1px);
  border-top: 1px solid var(--cn-component-header-border);
}
.ev-slot + .ev-slot {
  margin-top: calc(var(--b) * 2);
}
.ev-slot > h4 {
  margin: 0 0 var(--b);
}
.ev-slot-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ev-slot-list > .ev-item + .ev-item {
  margin-top: var(--b);
}
.ev-item-where {
  color: var(--cn-text-muted);
}
@media (min-width: 768px) {
  .ev-slot {
    display: grid;
    grid-template-columns: calc(var(--b) * 4) minmax(0, 1fr);
    column-gap: var(--gutter);
    align-items: start;
  }
  .ev-slot > h4 {
    margin: 0;
  }
}
@media (min-width: 1280px) {
  .ev-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(var(--b) * 7);
    column-gap: var(--gutter);
    align-items: start;
  }
}
.ev-item p {
  margin: 0;
}
.ev-item .eyebrow {
  margin: 0;
}
.ev-item .ev-title {
  font-family: var(--font-read);
  font-size: var(--title-3);
  line-height: var(--title-3-line);
}
.ev-day .ev-list {
  margin-top: var(--b);
}
.ev-intro {
  padding-block: var(--section);
}
.ev-intro h1 {
  margin: 0 0 var(--b);
}
.ev-intro p {
  max-inline-size: calc(var(--b) * 26);
}
.ev-intro p:last-child {
  margin-bottom: 0;
}

/* Headings balance their lines and paragraphs avoid a last word alone (modern-web-guidance: typography). Browsers
   without text-wrap ignore it and wrap as before. Each line is still one baseline, so the grid holds. */
main :is(h1, h2, h3) {
  text-wrap: balance;
}
main :is(p, li, dd) {
  text-wrap: pretty;
}
/* Reading lines stay near 70 characters (swiss-raster rule 9: 45 to 75), in whole baselines. */
main p,
main blockquote {
  max-inline-size: round(down, 52ch, var(--b));
}
/* A link in a list item, or alone in a paragraph, gets a hit area at least 24 px tall (WCAG 2.5.8). Padding on an inline
   link does not change the line, so the grid holds. */
main li > a,
main h3 > a,
main p > a:only-child {
  padding-block: 1px;
}
/* ---- Version 2: one page (28 November 2026) ---- */

/* The page's column grid (swiss-raster; owner, 28 November 2026: "the left rail like we have in activities is good.
   but it needs to be spaced properly ... we can then get more space for the details").
   MODULE   one line, var(--b): 24 px below 1024, 30 px from 1024. Every left edge is a whole number of lines from
            the frame's left edge; the right-hand column runs to the frame's right edge.
   FRAME    the site's .shell-width: 1080 at 1440 (margins 180), 1020 at 1280 (130), 720 at 1024 (152).
   RAIL     from 1024, 6 lines: 180 px. Below 1024 there is no rail; the contents list is a closed box.
   GUTTER   one gutter, used between rail and content and between every pair of columns inside the content:
            1 line (30) from 1024 to 1279, 2 lines (60) from 1280, 2 lines (48) below 1024.
   CONTENT  the rest of the frame: 840 at 1440, 780 at 1280, 510 at 1024.
   HALVES   inside the content, two columns where blocks sit side by side: the first rounded down to whole lines,
            then a gutter, then the rest: 390 | 60 | 390 at 1440, 360 | 60 | 360 at 1280.
   SIDE     a facts column beside its text (trails, films): 9 lines (270), a gutter, then the text.
   MEASURE  running text keeps at most 52 characters, rounded down to whole lines (part 5 above). */
:root {
  --gutter: calc(var(--b) * 2);
  --rail: calc(var(--b) * 6);
}
@media (min-width: 1024px) {
  :root {
    --gutter: var(--b);
  }
}
@media (min-width: 1280px) {
  :root {
    --gutter: calc(var(--b) * 2);
  }
}

/* Header: the event's wordmark (owner, 28 November 2026) above its name, on the content's left edge, 2 lines tall: 60 px
   (237 px wide) from 1024, 48 px (190 px wide) below. One line of clear space under it; above it, the hero's own space.
   Its shape is kept: width follows the height. From 1024 the words start on the content column, so the header lines up
   with the text below it. */
.ev-wordmark {
  margin: 0 0 var(--b);
}
.ev-wordmark img {
  display: block;
  block-size: calc(var(--b) * 2);
  inline-size: auto;
}
@media (min-width: 1024px) {
  .ev-hero {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: var(--gutter);
    align-items: start;
  }
  .ev-hero-text {
    grid-column: 2;
  }
}

/* Contents and text: the live activity sheet's "In this activity" in manner (src/activity-sheet.css on origin/main):
   the small capital label, names in sentence case, one on each line, no rule between rows, plain links underlined only on hover. From 1024 an open list in a sticky
   nav landmark; below, a closed "On this page" box above the text. Two changes from that rail, for this page: the
   names are short (DRAFT; each link's full name is completed by visually hidden text), and they start on the rail's
   own left edge, without the 32 px arrow indent, which is not a whole number of lines. Every entry is on a line of
   its own; an entry that event.json places inside another is one level in. */
.ev-layout {
  margin-block-end: var(--section);
}
.ev-rail {
  display: none;
}
@media (min-width: 1024px) {
  .ev-layout {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: var(--gutter);
    align-items: start;
  }
  /* The rail runs the height of the text, so the list stays 96 px (80 at 1440) from the top, as on the live sheet. */
  .ev-rail {
    display: block;
    align-self: stretch;
  }
  .ev-contents {
    position: sticky;
    top: 96px;
  }
  .ev-contents-small {
    display: none;
  }
}
@media (min-width: 1440px) {
  .ev-contents {
    top: 80px;
  }
}
.ev-contents .eyebrow {
  margin: 0;
  color: var(--cn-component-contents-heading);
}
.ev-toc,
.ev-toc ol,
.ev-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ev-toc li {
  line-height: var(--b);
}
.ev-toc a {
  display: inline-block;
  vertical-align: top;
  padding-block: 0;
  font-size: var(--cn-type-contents-link-size);
  line-height: var(--b);
  color: var(--cn-component-contents-link);
  text-decoration: none;
}
.ev-toc a:hover .ev-toc-name {
  text-decoration: underline;
}
@media (forced-colors: active) {
  .ev-toc a .ev-toc-name {
    text-decoration: underline;
  }
}
/* An entry nested under another (event.json's superEvent) sits one level in: one line, 30 px from 1024 (24 below), so its
   left edge is a column line. At 16.81 px type that is about 1.8 em, more than a letter's width, so it reads as a level
   and not as a misalignment. The selector needs .ev-toc in front: ".ev-toc ul { padding: 0 }" above is more specific than
   ".ev-toc-sub" alone, which is why the indent did not show before. */
.ev-toc .ev-toc-sub {
  padding-inline-start: var(--b);
}
/* Text a screen reader hears and the eye does not: the rest of each short name. */
.ev-vh {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Spacing. One line per entry, a blank line before each group after the first. Closed (owner, 28 November 2026: the entries
   under Schedule and Dzumsa open and close): the label in 2 lines + About and Schedule + 1 blank + 9 strands + 1 blank + 2
   entries = 17 lines, 510 px from 1024, which fits from a screen 590 px tall (606 below 1440). Schedule open adds 4 lines,
   Dzumsa open 10: both open, 31 lines, 930 px. Where that is taller than the screen, the rail scrolls inside itself; it never
   hides an entry. */
@media (min-width: 1024px) {
  .ev-contents .ev-toc-group {
    margin-block-start: var(--b);
  }
  .ev-contents {
    max-block-size: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (min-width: 1440px) {
  .ev-contents {
    max-block-size: calc(100dvh - 80px);
  }
}
/* The chevron that opens an entry's entries: the closed boxes' chevron, smaller, at the rail's right edge on the entry's line,
   one line square (a phone's: 2 lines tall, for a finger). */
.ev-toc li {
  position: relative;
}
.ev-toc-more > summary {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  inline-size: var(--b);
  block-size: var(--b);
  color: var(--cn-component-contents-link);
  cursor: pointer;
  list-style: none;
}
.ev-toc-more > summary::-webkit-details-marker {
  display: none;
}
.ev-toc-more > summary::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(50% - 4px);
  inset-block-start: calc(50% - 6px);
  inline-size: 7px;
  block-size: 7px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.ev-toc-more[open] > summary::after {
  transform: translateY(4px) rotate(225deg);
}
.ev-toc-more > summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: -3px;
}
.ev-contents-small .ev-toc-more > summary {
  inline-size: var(--tap);
  block-size: calc(var(--b) * 2);
}
.ev-contents-small .ev-toc-group {
  margin-block-start: var(--b);
}
.ev-contents-small .ev-toc a {
  padding-block: calc(var(--b) / 2);
}
.ev-contents-small {
  margin-block-end: var(--b);
  box-shadow: inset 0 1px 0 var(--cn-component-header-border), inset 0 -1px 0 var(--cn-component-header-border);
}
.ev-contents-small > nav {
  padding-block-end: var(--b);
}
@media (forced-colors: active) {
  .ev-contents-small {
    border-block: 1px solid CanvasText;
    margin-block: -1px calc(var(--b) - 1px);
  }
}

/* Closed boxes (contents on a phone, Morung items, trails, films): a summary two lines tall, a chevron drawn by CSS. */
.ev-contents-small > summary,
.ev-box > summary {
  position: relative;
  display: block;
  min-block-size: var(--tap);
  padding-block: calc(var(--b) / 2);
  padding-inline-end: calc(var(--b) * 2);
  line-height: var(--b);
  cursor: pointer;
  list-style: none;
}
.ev-contents-small > summary::-webkit-details-marker,
.ev-box > summary::-webkit-details-marker {
  display: none;
}
.ev-contents-small > summary::after,
.ev-box > summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 6px;
  inset-block-start: calc(var(--b) / 2 + var(--b) / 2 - 7px);
  inline-size: 10px;
  block-size: 10px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg);
}
.ev-contents-small[open] > summary::after,
.ev-box[open] > summary::after {
  transform: translateY(5px) rotate(225deg);
}
.ev-box {
  box-shadow: inset 0 1px 0 var(--cn-component-header-border);
}
.ev-box:last-of-type {
  margin-block-end: var(--b);
}
@media (forced-colors: active) {
  .ev-box {
    border-block-start: 1px solid CanvasText;
    margin-block-start: -1px;
  }
}
.ev-box-title,
.ev-box > summary .ev-meta {
  display: block;
}
.ev-box-title {
  font-weight: 500;
}
.ev-box-body {
  padding-block-end: var(--b);
}
.ev-box-body > :last-child {
  margin-block-end: 0;
}

/* Sections of the one page. Each heading is a link target; the margin keeps it clear of the sticky top bar. */
.ev-sec + .ev-sec {
  margin-block-start: var(--section);
  padding-block-start: calc(var(--section) - 1px);
  border-block-start: 1px solid var(--cn-component-header-border);
}
.ev-sec > h2 {
  margin: 0 0 var(--b);
}
:is(.ev-sec, .ev-session, .ev-day, .ev-box, .ev-work, .ev-sec li, .ev-sec h3)[id] {
  scroll-margin-top: var(--b);
}
.ev-sub {
  font-weight: 500;
}
.ev-text h3 {
  margin: calc(var(--b) * 2) 0 var(--b);
}
.ev-text .ev-day > h3 {
  margin-top: 0;
}
.ev-text h4 {
  margin: 0;
  line-height: var(--b);
}

/* One Dzumsa session inside the Dzumsa section. */
.ev-session {
  margin-block-start: calc(var(--b) * 2);
  padding-block-start: calc(var(--b) - 1px);
  border-block-start: 1px solid var(--cn-component-header-border);
}
.ev-session > .eyebrow {
  margin: 0;
}
.ev-text .ev-session > h3 {
  margin: 0 0 var(--b);
}
.ev-text .ev-role {
  margin: calc(var(--b) * 2) 0 var(--b);
}

/* A diagram drawn by Mermaid Marker on its cream ground. Its box is whole baselines tall; the picture sits at the top
   of the box on the same cream, so the box edge does not show. The height for each diagram follows below. */
.ev-diagram {
  container-type: inline-size;
  max-inline-size: 504px;
  margin: 0 0 var(--b);
}
/* From 1280 the content is 780 px or more, and each diagram is drawn again with its middle row side by side, checked
   by Mermaid Marker's strict rules at a 656 px column, and fills the content's width. */
@media (min-width: 1280px) {
  .ev-diagram {
    max-inline-size: none;
  }
}
.ev-diagram :is(img, svg) {
  display: block;
  inline-size: 100%;
  block-size: auto;
  object-fit: contain;
  object-position: top;
  background: #f2eee5;
}

/* Each drawing's box: its own height for its width, rounded up to whole baselines; the rule for each drawing is added
   after this stylesheet by the build (lib/events.js), from its viewBox. */
/* Moving diagrams (owner, 28 November 2026: "Turn motion on"): both drawings are in the page as SVG; one shows. */
.ev-diagram .ev-svg-wide {
  display: none;
}
@media (min-width: 1280px) {
  .ev-diagram .ev-svg-narrow {
    display: none;
  }
  .ev-diagram .ev-svg-wide {
    display: block;
  }
}

/* A person with a portrait (owner, 28 November 2026: "one row only per person"): the square portrait, 3 lines
   (90 px from 1024, 72 below), beside the name and designation, the same size everywhere. Three lines because a name and
   a designation of one or two lines sit within it, so the row's height is set by the words only when they run longer.
   One person per row, one row under another, at every width. A person without a portrait keeps the text alone. */
.ev-person.has-face {
  display: grid;
  grid-template-columns: calc(var(--b) * 3) minmax(0, 1fr);
  gap: var(--b);
  align-items: start;
}
img.ev-face {
  display: block;
  inline-size: calc(var(--b) * 3);
  block-size: calc(var(--b) * 3);
  object-fit: cover;
}
.ev-person-text > p:first-child,
.ev-person-text > .ev-label + p {
  font-weight: 500;
}
.ev-person-text > .ev-label {
  font-weight: 400;
  color: var(--cn-text-muted);
}
.ev-person-text > .ev-label + p,
.ev-person-text > p + .ev-meta {
  margin-top: 0;
}
.ev-person + p {
  margin-top: 0;
}

/* A talk: the title first, on its own line(s) across the column, as the row's heading in the reading face, with no
   "Title:" label; then the speaker as a person row: portrait, and beside it the name (aligned to the portrait's top
   line) and designation. The convention of conference programmes (USENIX Security 2024: title, then authors and
   affiliation). Title and person start on the same column line, the content's left edge; the title keeps the
   reading measure. */
.ev-talk + .ev-talk {
  margin-top: calc(var(--b) * 2);
}
.ev-talk + p {
  margin-top: var(--b);
}
.ev-talk > .ev-person {
  margin: 0;
}
.ev-text .ev-talk-title {
  max-inline-size: round(down, 52ch, var(--b));
  margin: 0 0 var(--b);
  font-family: var(--font-read);
  font-size: var(--title-3);
  line-height: var(--title-3-line);
  font-weight: 400;
}
.ev-person-text > .ev-talk-name {
  font-weight: 500;
}
.ev-person-text > .ev-talk-name + .ev-meta {
  margin-top: 0;
}

/* Films: one film per row. The title is the row's heading; under it, the poster beside the director, year and note.
   A poster is tall, so its frame is 4 lines wide and 6 lines tall (2:3, 120 x 180 px from 1024, 96 x 144 below), the
   same at every width, on the baseline and a whole number of lines wide. The site's posters run from 0.60 to 0.84 wide
   to 1 tall; object-fit crops each to the frame without stretching, keeping its top as the site's own page does.
   A film without a poster has no picture element and no frame, so its text runs from the column's left edge. Two
   lines between films, as between works. */
.ev-films {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ev-films > li + li {
  margin-top: calc(var(--b) * 2);
}
.ev-films p {
  margin: 0;
}
.ev-text .ev-film > h4 {
  margin: 0 0 var(--b);
}
/* A cultural evening's name is a level 3 heading (its section has no level 3 above it), set like a film's title. */
.ev-text .ev-film > h3 {
  margin: 0 0 var(--b);
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: var(--b);
}
.ev-film-row.has-poster {
  display: grid;
  grid-template-columns: calc(var(--b) * 4) minmax(0, 1fr);
  gap: var(--b);
  align-items: start;
}
img.ev-poster {
  display: block;
  inline-size: calc(var(--b) * 4);
  block-size: calc(var(--b) * 6);
  object-fit: cover;
  object-position: top;
}

.ev-film-text > p:not(.ev-meta) + p {
  margin-top: var(--b);
}
/* A trail: its name, the photograph across the whole content column, the description of the place under it at the
   reading measure, then the facts behind the chevron (owner, 28 November 2026: "use the two grids space for the pic and
   let the text below"). The frame is about 7:4 (owner, 28 November 2026, the grid's recommendation), its height the
   nearest whole number of lines: 840 x 480 at 1440 (16 lines), 780 x 450 at 1280 (15), 720 x 420 at 1024 (14),
   692 x 384 at 820 (16 of 24), 358 x 216 on an iPhone 13 (9), 288 x 168 at 320 (7). The sources are 3:2, so 7:4 crops
   about 14% of their height; a full 3:2 (560 at 1440) would leave no room for the title and the first lines of text on a
   900 px screen. The files are cut to 7:4 around each one's subject (README); object-fit only trims the rounding. */
.ev-trail-pic {
  display: block;
  margin: 0;
  container-type: inline-size;
}
.ev-trail-pic img {
  display: block;
  inline-size: 100%;
  block-size: round(nearest, calc(100cqi * 4 / 7), var(--b));
  object-fit: cover;
}
.ev-trail-text > p {
  margin: 0;
}
.ev-trail-row.has-pic > .ev-trail-text {
  margin-top: var(--b);
}
.ev-trail-text > p + p {
  margin-top: var(--b);
}
/* One line between an item's name and its picture. A cultural evening has the same layout as a trail (owner,
   28 November 2026: "same for cultural evenings"): its performers under the photograph, then its whole text. */
.ev-work > :is(h3, h4) + .ev-trail-row.has-pic {
  margin-top: var(--b);
}

/* A work, a trail: its name, its main parts open, then the closed box of extra details. Two lines between works. */
.ev-work + .ev-work {
  margin-top: calc(var(--b) * 2);
}
.ev-work > :is(h3, h4) {
  margin: 0 0 var(--b);
}
.ev-work > .ev-person {
  margin-bottom: var(--b);
}
.ev-work > h4 + .ev-meta {
  margin-top: calc(var(--b) * -1);
}
.ev-more {
  margin-top: var(--b);
}
/* The quote that opens an abstract, now open on the page: indented one line, so its edge is a column line. */
.ev-work > blockquote {
  margin-inline: var(--b) 0;
}
.ev-more:last-child {
  margin-block-end: 0;
}
.ev-session > .ev-more {
  margin-top: var(--b);
}

.ev-item-span {
  white-space: nowrap;
}
.ev-person-text > .ev-tel {
  margin-top: 0;
}

/* ===== Type scale, weights and spacing (owner, 28 November 2026: "an overall check of typography hierarchy") =====
   One place for the page's type and space; it comes last, so it decides where earlier rules differ.

   The type scale and spacing ladder are written out in the corrections block at the end of this file, which overrides
   the sizes and gaps set here where they differ (review, 28 November 2026). Weights: 350 for the page title (live), 400
   for every heading, body text and control, 500 for labels only. A label is smaller than every heading above it, so it is
   never louder than its parent. No 700. */
@media (max-width: 767.98px) {
  :root {
    --title-2: 32px;
    --title-2-line: calc(var(--b) * 2);
  }
}
:root {
  --small: var(--cn-type-metadata-size);
}
/* Item titles: a schedule item, a talk, a Morung item, a trail, a film, an evening. */
.ev-text :is(.ev-title, .ev-talk-title, .ev-work > h3, .ev-work > h4, .ev-film > h3, .ev-film > h4) {
  max-inline-size: round(down, 48ch, var(--b));
  margin: 0;
  font-family: var(--font-read);
  font-size: inherit;
  font-weight: 400;
  line-height: var(--b);
}
.ev-item .ev-title {
  font-size: inherit;
  line-height: var(--b);
}
/* Labels: a schedule time, Chair and Speakers, the Curator and role labels, fact names, the headings inside a
   closed box. */
.ev-text :is(.ev-slot > h4, .ev-role, .ev-label, .ev-facts dt, .ev-more-h),
.ev-person-text > .ev-label {
  font-family: var(--font-ui);
  font-size: var(--small);
  font-weight: 500;
  line-height: var(--b);
  color: var(--cn-color-ink, currentColor);
}
/* Meta: designations, directors and years, the schedule's session line, hall and time. */
.ev-text :is(.ev-meta, .ev-item-where) {
  font-size: var(--small);
  line-height: var(--b);
}
/* Names and the closed box's label read as body text. */
.ev-person-text > p:first-child:not(.ev-label),
.ev-person-text > .ev-label + p,
.ev-person-text > .ev-talk-name,
.ev-box-title {
  font-weight: 400;
}
/* A section's subtitle ("What is to explore?") belongs to its heading: the reading face in italic at the sub-title's
   size, straight under the heading, one line above the text. Inside an item it is the item's size. */
.ev-sub {
  font-family: var(--font-read);
  font-style: italic;
  font-weight: 400;
}
.ev-sec > .ev-sub {
  margin: 0 0 var(--b);
  font-size: var(--title-3);
  line-height: var(--title-3-line);
}
.ev-sec > h2:has(+ .ev-sub) {
  margin-bottom: 0;
}
.eyebrow {
  font-size: var(--cn-type-eyebrow-size);
  letter-spacing: var(--cn-type-eyebrow-tracking);
}

/* Spacing: one line between items of the same kind, in every list. */
.ev-text .ev-person {
  margin-bottom: var(--b);
}
.ev-text .ev-person:last-child {
  margin-bottom: 0;
}
.ev-talk + .ev-talk,
.ev-work + .ev-work,
.ev-films > li + li {
  margin-top: var(--b);
}
.ev-work > h4 + .ev-meta {
  margin-top: 0;
}
.ev-text .ev-role {
  margin: calc(var(--b) * 2) 0 var(--b);
}
/* Pillars of Support and Collaborators: one name per row (owner, 28 November 2026, decided), solid. */
.ev-columns {
  display: block;
}
/* The closed box: one line above it, inside each part a label heading straight over its text, one line between parts. */
.ev-more-part + .ev-more-part {
  margin-top: var(--b);
}
.ev-more-h {
  margin: 0;
}
.ev-more-part > :is(p, dl, blockquote):first-of-type {
  margin-top: 0;
}
.ev-box-body .ev-facts {
  margin-bottom: var(--b);
}
.ev-more-part > :last-child {
  margin-bottom: 0;
}
/* Facts: the name column as wide as its longest name, so no name wraps; one under the other below 768. */
@media (min-width: 768px) {
  .ev-facts {
    grid-template-columns: max-content minmax(0, 1fr);
  }
}

/* Measure: reading lines of 45 to 75 characters (swiss-raster rule 9), aiming at about 65: 48ch of the body face,
   rounded down to whole lines (660 px at 1440). Headings balance their lines; paragraphs avoid a last word alone.
   Browsers without text-wrap wrap as before; each line is still one baseline. */
main p,
main blockquote {
  max-inline-size: round(down, 48ch, var(--b));
}
main :is(h4, h5, h6) {
  text-wrap: balance;
}
/* A person on a phone: a 2-line portrait (48 px), so the name and designation have 286 px, not 262 beside 72 px. */
@media (max-width: 767.98px) {
  .ev-person.has-face {
    grid-template-columns: calc(var(--b) * 2) minmax(0, 1fr);
  }
  img.ev-face {
    inline-size: calc(var(--b) * 2);
    block-size: calc(var(--b) * 2);
  }
}

/* ===== Corrections after the review's full findings (28 November 2026) =====
   Three serif title sizes, each on whole lines, from the live tokens:
     section       45.7 on 2 lines (60) from 1024; 39.42 on 48 from 768; --cn-type-section-title-xl (29.32 at 390) on 48
     sub-section   --cn-type-section-title (34.92 at 1440, 25.13 at 390) on 2 lines (60 from 1024, 48 below)
     item title    25.13 on 1 line (30) from 1024; 21.37 on 24 below
   Spacing ladder, in lines: 0 inside a group and between one-line items (a list of names or links is solid); 1 between
   items of one kind that run to more than one line; 2 before any heading; 6 between sections from 1024 (3 each side of
   the section rule). */
@media (max-width: 767.98px) {
  :root {
    --title-2: var(--cn-type-section-title-xl-size);
  }
}
.ev-text h3:not(:is(.ev-work, .ev-film, .ev-person, .ev-person-text) > h3, .ev-role, .ev-more-h) {
  font-family: var(--font-read);
  font-size: var(--cn-type-section-title-size);
  font-weight: 400;
  line-height: calc(var(--b) * 2);
}
.ev-text :is(.ev-title, .ev-talk-title, .ev-work > h3, .ev-work > h4, .ev-film > h3, .ev-film > h4),
.ev-item .ev-title {
  font-size: var(--title-3);
  line-height: var(--title-3-line);
}
/* One-line items are solid. A name that wraps hangs: its later lines are indented one line (the grid step), so it reads
   as one item without a gap. */
.ev-columns > li + li,
.ev-list:not(.ev-bullets) > li {
  margin: 0;
}
.ev-columns > li {
  padding-inline-start: var(--b);
  text-indent: calc(var(--b) * -1);
}
/* Figures that stack line up. */
.ev-slot > h4,
.ev-item-where,
.ev-facts dd,
.ev-list,
.ev-tel {
  font-variant-numeric: tabular-nums;
}
.ev-sec > .ev-sub:has(+ .ev-sub) {
  margin-bottom: 0;
}
/* Haat exhibitors' box: a grey line naming what follows (an exhibit's title, a stall) sits straight over its text, as a label does. */
.ev-more-part > .ev-meta:has(+ p) {
  margin-bottom: 0;
}
/* Titles, names, labels and short lines fill each line before they break (owner, 28 November 2026: "Climate Sensitive /
   Mountain Governance" broke after two words). balance and pretty moved words down to even the lines out, so a first line
   ended early; measured at 1440, 1024 and iPhone 13, plain wrapping gives every one of them the same number of lines.
   Body paragraphs and bullet points keep pretty. */
main :is(h1, h2, h3, h4, h5, h6, .ev-title, .ev-talk-title, .ev-sub, .ev-meta, .ev-label, dt, dd),
main :is(.ev-columns, .ev-list:not(.ev-bullets)) > li {
  text-wrap: wrap;
}
/* A box's part heading is a label straight over its text at every heading level (an h3 inside the About box too). */
.ev-more-part > .ev-more-h {
  margin: 0;
}
/* Running text fills its lines (owner, 28 November 2026: the statements under "What is the Congress for?" broke early).
   text-wrap: pretty moved words down to avoid a short last line, so lines ended with room left; now every line is
   filled. Bullet points take the same 48ch measure as paragraphs; they had none and ran to the full content width. */
main :is(p, li, dd, blockquote) {
  text-wrap: wrap;
}
main .ev-bullets > li {
  max-inline-size: round(down, 48ch, var(--b));
}
/* A trail's date, time and price sit straight under its name, as a session's facts under its title; one line, then the
   photograph (owner, 28 November 2026). */
.ev-trail > h4 + .ev-facts {
  margin: 0;
}
.ev-trail > .ev-facts + .ev-trail-row {
  margin-top: var(--b);
}
/* Counts (owner, 28 November 2026): grey, in brackets, after a name; the size and face of what they follow; figures of
   one width; kept on the name's last line. */
.ev-count {
  color: var(--cn-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* The rail's label is the event's name, a link to its head: the eyebrow's look, no underline until hovered. */
.ev-contents-label a {
  color: inherit;
  text-decoration: none;
}
.ev-contents-label a:hover {
  text-decoration: underline;
}
/* Proudly not for profit (owner, 28 November 2026): the ways to give, one per row, a blank line between; the one button two
   lines tall, so the rows below stay on the baseline. */
.ev-list.ev-donors > li + li {
  margin-top: calc(var(--b) * 2);
}
.ev-donors .button {
  min-block-size: calc(var(--b) * 2);
}
/* Each row is one group: name, line and action with no space between; 2 lines between rows. */
.ev-list .ev-donor-action {
  margin-top: 0;
}

/* Back to top (owner, 28 November 2026): one plain link at the end of every section, on the content column, in the grey of
   the page's secondary lines, one line below what ends the section. The up arrow is drawn, not read (alt text empty).
   On a phone the link is a full tap tall (2 lines), its text centred on it. */
.ev-sec > .ev-top {
  margin: var(--b) 0 0;
  color: var(--cn-text-muted);
}
.ev-sec > :has(+ .ev-top) {
  margin-bottom: 0;
}
.ev-top a {
  display: inline-flex;
  align-items: center;
  block-size: var(--b);
  color: inherit;
}
.ev-top a::before {
  content: "↑" / "";
  margin-inline-end: 0.4em;
}
@media (max-width: 1023.98px) {
  .ev-sec > .ev-top {
    margin-top: 0;
  }
  .ev-top a {
    block-size: var(--tap);
  }
}

/* Donate (owner, 28 November 2026): two rows. The organisations' row carries the registrations and the documents link as
   part of its group: one line between its action and the registrations' lead-in, and between the registrations and the
   link. */
.ev-donors .ev-regs-lead,
.ev-donors .ev-docs {
  margin: var(--b) 0 0;
}
.ev-donors .ev-regs-lead + .ev-regs {
  margin: var(--b) 0 0;
}
/* Pillars of Support: names as running text at the reading measure, a list in the markup (owner, 28 November 2026). A name of
   up to 24 characters never breaks inside; a longer one may wrap between its words. */
.ev-inline {
  margin: 0;
  padding: 0;
  list-style: none;
  max-inline-size: round(down, 48ch, var(--b));
}
.ev-inline > li {
  display: inline;
}
.ev-inline > .ev-nb {
  white-space: nowrap;
}
/* A rail entry with a chevron keeps its words clear of the chevron: they wrap to a second line rather than run under it. */
.ev-toc li:has(> .ev-toc-more) > a {
  display: block;
  margin-inline-end: var(--b);
}

/* A button after text has one line of space above it (owner's review, 28 November 2026); a text link may sit straight under
   its line. */
main :is(p, ul, ol, dl) + p:has(> .button),
.ev-list .ev-donor-action:has(> .button) {
  margin-top: var(--b);
}

/* Outlined button (owner, 28 November 2026: Register as the hero's secondary button), from the house tokens for an
   outline button. */
.button.button-outline {
  background: transparent;
  color: var(--cn-component-button-outline-foreground);
  border: var(--cn-component-button-outline-border-width, 1px) solid var(--cn-component-button-outline-border);
}
.button.button-outline:hover {
  background: var(--cn-component-button-outline-hover);
  color: var(--cn-component-button-outline-foreground);
}
/* The one action at the end of Schedule and of Register: one line below what comes before it, a full tap tall. */
.ev-sec > .ev-next {
  margin: var(--b) 0 0;
}
.ev-next .button {
  min-block-size: var(--tap);
  white-space: normal;
  text-align: center;
}
/* FAQ: one question per row, as the page's other closed boxes. */
.ev-faq + .ev-faq {
  margin-top: 0;
}

/* A count in brackets beside a rail entry: drawn, not read (its words are in the hidden text before it). */
.ev-count::before {
  content: " (" attr(data-n) ")" / "";
}

/* The events listing (/events/, plan slice 6): Upcoming events, then Past events, one card per row. Each card is one
   link: the event's cover (else its logo) at its own proportions, then its dates, name, status, place and description.
   A card without a picture has no frame. From 768 the picture takes a third of the row and the text the rest. */
.ev-listing {
  padding-block: var(--section);
}
.ev-listing h1 {
  margin: 0 0 var(--b);
}
.ev-listing h2 {
  margin: var(--section) 0 var(--b);
}
.ev-cards {
  display: grid;
  row-gap: calc(var(--b) * 2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ev-card {
  display: grid;
  row-gap: var(--b);
  padding-top: calc(var(--b) - 1px);
  border-top: 1px solid var(--cn-component-header-border);
  color: inherit;
  text-decoration: none;
}
.ev-card-pic img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}
.ev-card h3 {
  margin: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-wrap: balance;
}
.ev-card:hover h3 {
  text-decoration-thickness: 2px;
}
.ev-card-body p {
  margin: 0;
  line-height: var(--b);
}
.ev-card-date,
.ev-card-place {
  color: var(--cn-text-muted);
  font-size: var(--cn-type-metadata-size);
}
.ev-card .ev-card-description {
  margin-top: var(--b);
}
@media (min-width: 768px) {
  .ev-card.has-pic {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: var(--b);
    align-items: start;
  }
}
/* An activity's India purposes (owner, 24 November 2026), published as /activity-purposes-20261124.css on the activity
   pages that have any. One section, closed until opened, like "In this activity" below 1024 (src/activities.css): its
   control set as that disclosure's is, on the faq rows of src/site.css. Inside, the two group headings and one row per
   purpose, each opening to its law text. On the grid of src/activities.css: lines of var(--b), gaps whole lines. */
.ev-purposes .purposes {
  margin-top: calc(var(--b) * 2);
}
.ev-purposes .purposes > .faq-list > details > summary {
  font-size: var(--cn-type-eyebrow-size);
  font-weight: var(--cn-type-eyebrow-weight);
  letter-spacing: var(--cn-type-eyebrow-tracking);
  text-transform: uppercase;
}
/* The rows inside turn their own chevron only: an open section does not turn a closed row's. */
.event-page .purposes details:not([open]) > summary::after {
  transform: none;
}
/* Open, the section keeps one line between its last row and its own closing rule; a heading has one line above it.
   Padding, not margins, so the space stays inside the rules. */
.ev-purposes .purposes > .faq-list > details[open] {
  padding-bottom: var(--b);
}
.ev-purposes .purposes details h5 {
  margin-top: var(--b);
}
.ev-purposes .purposes .faq-answer {
  padding-bottom: var(--b);
}
.ev-purposes .purposes .faq-answer > :last-child {
  margin-bottom: 0;
}
/* A quote kept from an older suggestion, after the law text: the activity's own words, set apart by a rule. */
.ev-purposes .purposes blockquote {
  margin: var(--b) 0 0;
  padding-inline-start: var(--activity-indent);
  border-inline-start: 2px solid var(--cn-component-header-border);
}
.ev-d-02c463a5cce2 > svg { block-size: round(up, calc(100cqi * 598.397265625 / 374.077685546875), var(--b)); }
@media (min-width: 1280px) { .ev-d-02c463a5cce2 > .ev-svg-wide { block-size: round(up, calc(100cqi * 458.2150451660156 / 663.9257080078125), var(--b)); } }
.ev-d-0b3425d40212 > svg { block-size: round(up, calc(100cqi * 528.0216552734375 / 360.31395263671874), var(--b)); }
@media (min-width: 1280px) { .ev-d-0b3425d40212 > .ev-svg-wide { block-size: round(up, calc(100cqi * 405.375048828125 / 683.3441040039063), var(--b)); } }
.ev-d-20352409309e > svg { block-size: round(up, calc(100cqi * 528.0216552734375 / 364.7809631347656), var(--b)); }
@media (min-width: 1280px) { .ev-d-20352409309e > .ev-svg-wide { block-size: round(up, calc(100cqi * 405.395068359375 / 692.2808715820313), var(--b)); } }
.ev-d-2b52129fae97 > svg { block-size: round(up, calc(100cqi * 1346.400146484375 / 510.5673828125), var(--b)); }
@media (min-width: 1280px) { .ev-d-2b52129fae97 > .ev-svg-wide { block-size: round(up, calc(100cqi * 1346.400146484375 / 773.3280029296875), var(--b)); } }
.ev-diagram.ev-d-2b52129fae97 { max-inline-size: 340px; }
@media (min-width: 1280px) { .ev-diagram.ev-d-2b52129fae97 { max-inline-size: 600px; } }
.ev-d-42274a4269d4 > svg { block-size: round(up, calc(100cqi * 598.3397094726563 / 350.92601318359374), var(--b)); }
@media (min-width: 1280px) { .ev-d-42274a4269d4 > .ev-svg-wide { block-size: round(up, calc(100cqi * 458.2150451660156 / 664.5426513671875), var(--b)); } }
.ev-d-5d7d90ea4f99 > svg { block-size: round(up, calc(100cqi * 598.3878051757813 / 371.37135620117186), var(--b)); }
@media (min-width: 1280px) { .ev-d-5d7d90ea4f99 > .ev-svg-wide { block-size: round(up, calc(100cqi * 458.2449523925781 / 678.680712890625), var(--b)); } }
.ev-d-6cc2acee257b > svg { block-size: round(up, calc(100cqi * 608.0021362304688 / 696.3658447265625), var(--b)); }
@media (min-width: 1280px) { .ev-d-6cc2acee257b > .ev-svg-wide { block-size: round(up, calc(100cqi * 404.0021057128906 / 764.6857299804688), var(--b)); } }
.ev-d-ad681b69ee42 > svg { block-size: round(up, calc(100cqi * 598.3773071289063 / 365.3180419921875), var(--b)); }
@media (min-width: 1280px) { .ev-d-ad681b69ee42 > .ev-svg-wide { block-size: round(up, calc(100cqi * 458.2391845703125 / 693.3679077148438), var(--b)); } }
.ev-d-d364970cc9f2 > svg { block-size: round(up, calc(100cqi * 564.1000244140625 / 348.6176330566406), var(--b)); }
@media (min-width: 1280px) { .ev-d-d364970cc9f2 > .ev-svg-wide { block-size: round(up, calc(100cqi * 353.3233215332031 / 487.18251342773436), var(--b)); } }
.ev-d-f0c41f1d76e5 > svg { block-size: round(up, calc(100cqi * 598.4417602539063 / 379.71336669921874), var(--b)); }
@media (min-width: 1280px) { .ev-d-f0c41f1d76e5 > .ev-svg-wide { block-size: round(up, calc(100cqi * 405.44261474609374 / 634.4682495117188), var(--b)); } }

