/* =====================================================================
   The SET conference pages: one edition, and its programme.

   Loaded only by cms/conference_page.html and cms/conference_programme.html.

   THE SYSTEM, and it is deliberately small. Every size on these pages is
   one of these tokens; a page that invents its own sizes is how twenty-five
   different type settings ended up on one screen on 18 September.

     display   64 / 40 / 24 / 18      Roboto 900
     text      17 / 15 / 13           Inter
     label     11                     Roboto 700, 0.15em, caps
     column    1100, gutters 40 / 24
     section   96px, 64 on a phone
     gaps      2px between panels, no radius anywhere
     ink       navy #003150, muted #3b6078, rules #dde4e8
     ground    white, tint #f8f9fb, navy; green #04633C for marks only

   The buttons are the site's own (.button, .button--quiet, .button--light,
   .button--ghost in site.css). Nothing here restyles them.

   Motion is CSS, inside @supports and prefers-reduced-motion, except the
   eight lines that start the film. The page is complete without any of it.
   ===================================================================== */

.conference {
  /* The strip is the only thing that sticks on these pages, so an anchor
     lands exactly under it: site.css sets scroll-margin from the masthead's
     height, which is 131px here and left 84px of dead space above every
     section a reader jumped to. */
  --strip: 47px;

  --navy: #003150;
  --green: #04633C;
  --tint: #f8f9fb;
  --muted: #3b6078;
  --rule: #dde4e8;

  --display-xl: clamp(34px, 4.6vw, 60px);
  --display-l: clamp(30px, 3vw, 40px);
  --display-m: 24px;
  --display-s: 18px;

  --text: 17px;
  --text-s: 15px;
  --text-xs: 13px;

  --column: 1100px;
  --gutter: 40px;
  --section: 96px;
}

.conference,
.conference .sc,
.conference .ed-sub,
.conference .ed-hero,
.conference .ed-partners { font-family: 'Inter', sans-serif; }

/* ---------------------------------------------------------- the strip --

   On a conference page the site masthead scrolls away and the conference's
   own strip is what sticks. This is what Apple does on a product page: the
   global navigation goes with the page, and a slim local bar carrying the
   name, the sections and one action stays. Two sticky bars stacked is what
   made the top of the page feel heavy.                                    */

body:has(main.conference) .masthead { position: static; }

.conference [id] { scroll-margin-top: var(--strip); }

.ed-sub {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.ed-sub-inner {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 46px;
}
.ed-sub-here {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: 'Roboto', sans-serif;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.ed-sub-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.ed-sub-links::-webkit-scrollbar { display: none; }
.ed-sub-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-xs);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.ed-sub-links a:hover { color: var(--navy); border-bottom-color: var(--green); }

/* The action is a small outline button. It was a green underline, which on
   a bar of underlined links reads as the tab you are already on, and before
   that a filled navy pill, which was the darkest thing on the screen. */
.ed-sub-cta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 16px;
  margin-left: auto;
  font-family: 'Roboto', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--navy);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ed-sub-cta:hover { background: var(--navy); color: #ffffff; }

/* ------------------------------------------------------------ the hero --

   The film is the first screen and the conference is set over it. Where
   there is no film the location photograph takes its place, and the layout
   does not change.                                                        */

.ed-hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  overflow: hidden;
}
.ed-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ed-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 49, 80, 0.94) 0%, rgba(0, 49, 80, 0.72) 46%, rgba(0, 49, 80, 0.36) 100%),
    linear-gradient(to top, rgba(0, 49, 80, 0.85) 0%, rgba(0, 49, 80, 0) 60%);
}
.ed-hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 120px var(--gutter) 64px;
  display: grid;
  gap: 40px;
}
.ed-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  color: #ffffff;
}
.ed-crumb a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
}
.ed-crumb a:hover { border-bottom-color: #ffffff; }
.ed-crumb span[aria-hidden] { color: rgba(255, 255, 255, 0.55); }
.ed-crumb [aria-current] { color: rgba(255, 255, 255, 0.8); }

.ed-hero-mid { max-width: 640px; }
.ed-hero-logo {
  display: block;
  width: auto;
  height: 104px;
  margin-bottom: 24px;
}
.ed-hero-eyebrow {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 14px;
  max-width: 52ch;
}
.ed-hero-heading {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 18px;
}
.ed-hero-theme {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: #ffffff;
  margin: 0 0 22px;
  max-width: 34ch;
  text-wrap: balance;
}
.ed-hero-when {
  font-size: var(--text);
  color: #ffffff;
  margin: 0 0 30px;
}
.ed-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* The facts, on the hero's own foot: one ruled row, in the page column,
   with a hairline between each. They were a navy band tacked underneath. */
.ed-hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin: 0;
  /* site.css caps every dl at 46rem; the rule here runs the page column. */
  max-width: none;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.ed-hero-facts > div {
  display: grid;
  gap: 5px;
  padding: 2px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.ed-hero-facts > div:first-child { padding-left: 0; border-left: 0; }
.ed-hero-facts dt {
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.ed-hero-facts dd {
  margin: 0;
  font-size: var(--text-s);
  line-height: 1.4;
  color: #ffffff;
}

/* ------------------------------------------------------- the partners --*/

.ed-partners { background: var(--tint); padding: 44px 0; }
.ed-partners-inner {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 22px;
}
.ed-partner-group {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 24px;
}
.ed-partner-label {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.ed-partner-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2px;
}
.ed-logo {
  background: #ffffff;
  border: 1px solid var(--rule);
  height: 72px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-logo img { max-height: 40px; max-width: 100%; width: auto; height: auto; display: block; }
/* An organisation with no mark in the folder gets its name set in the
   same tile, rather than no tile at all. */
.ed-logo--name {
  font-family: 'Roboto', sans-serif; font-weight: 700;
  font-size: var(--text-xs); line-height: 1.35; color: var(--navy);
  text-align: center; text-decoration: none; padding: 0 16px;
}
/* A tile that leads somewhere says so: the mark comes up to full
   strength, the border takes the green, and the whole tile lifts by a
   pixel. Nothing moves for a reader who has asked for less motion. */
.ed-logo--link { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.ed-logo--link img { opacity: .88; transition: opacity .18s ease; }
.ed-logo--link:hover, .ed-logo--link:focus-visible {
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(12, 42, 35, 0.10);
  transform: translateY(-1px);
}
.ed-logo--link:hover img, .ed-logo--link:focus-visible img { opacity: 1; }
.ed-logo--link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .ed-logo--link, .ed-logo--link img { transition: none; }
  .ed-logo--link:hover, .ed-logo--link:focus-visible { transform: none; }
}

/* ------------------------------------------------------ the sections --*/

.sc { padding: var(--section) 0; }
/* The full programme is one long record: it gets less air between its
   days than a page a reader browses. */
.conference--programme { --section: 64px; }
.sc--white { background: #ffffff; }
.sc--tint { background: var(--tint); }
.sc--navy { background: var(--navy); color: #ffffff; }
.sc-inner { max-width: var(--column); margin: 0 auto; padding: 0 var(--gutter); }

.sc-eyebrow {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
}
.sc-eyebrow--light { color: #ffffff; }
.sc-rule { display: block; width: 48px; height: 3px; background: var(--green); margin: 14px 0; }
.sc-head { margin-bottom: 36px; }
.sc-h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: var(--display-l);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
.sc--navy .sc-h2, .sc-h2--light { color: #ffffff; }
.sc-h2--sm { font-size: var(--display-m); }
.sc-h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: var(--display-m);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 14px;
}
.sc--navy .sc-h3 { color: #ffffff; }
.sc-h3--after { margin: 56px 0 20px; padding-top: 24px; border-top: 3px solid var(--green); }
.sc-lede { font-size: var(--text); line-height: 1.6; color: var(--muted); max-width: 44ch; margin: 18px 0 26px; }
.sc--navy .sc-lede { color: rgba(255, 255, 255, 0.86); }
.sc-body { font-size: var(--text-s); line-height: 1.65; color: #ffffff; max-width: 42ch; margin: 0 0 16px; }
.sc-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: var(--text-s);
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--green);
}
.sc--navy .sc-link { color: #ffffff; }

/* ---- a scene with a column that stays while the other moves ---- */
.sc-split { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.sc-split--rev { grid-template-columns: 1fr 340px; }
.sc-split--rev .sc-split-side { order: 2; }
.sc-split--rev .sc-split-main { order: 1; }
.sc-sticky { position: sticky; top: 92px; }

/* ---- the days ---- */
.sc-split-main { display: grid; gap: 2px; }
.sc-day { background: #ffffff; border: 1px solid var(--rule); padding: 26px 28px 24px; }
.sc-day-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.sc-day-n {
  font-family: 'Roboto', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--green);
}
.sc-day-date { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: var(--display-s); color: var(--navy); margin: 0; }
.sc-day-keys { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.sc-day-keys li { display: grid; gap: 3px; padding-top: 14px; border-top: 1px solid var(--rule); }
.sc-day-k { font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.sc-day-t { font-size: var(--text-s); line-height: 1.45; color: var(--navy); font-weight: 600; }
.sc-day-w { font-size: var(--text-xs); color: var(--muted); }
.sc-day-meta { font-size: var(--text-xs); color: var(--muted); margin: 0; padding-top: 14px; border-top: 1px solid var(--rule); }

/* ---- the keynotes ---- */
.sc-kns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--rule); border: 1px solid var(--rule); }
.sc-kn { background: #ffffff; }
.sc-kn-sum {
  display: grid; grid-template-columns: 110px 1fr 24px; gap: 20px; align-items: start;
  padding: 24px; cursor: pointer; list-style: none;
}
.sc-kn-sum::-webkit-details-marker { display: none; }
.sc-kn-img { width: 110px; height: 110px; object-fit: cover; display: block; }
.sc-kn-img--none { background: var(--tint); border: 1px solid var(--rule); }
/* A conference with no portraits gives the words the whole card, and an
   odd one out runs the width rather than leaving a grey hole in the grid. */
.sc-kns--noface .sc-kn-sum { grid-template-columns: 1fr 24px; }
.sc-kn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sc-chairs li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sc-kn-txt { display: grid; gap: 4px; }
.sc-kn-num { font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green); }
.sc-kn-name { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: var(--display-s); color: var(--navy); line-height: 1.25; }
.sc-kn-aff { font-size: var(--text-xs); color: var(--muted); }
.sc-kn-title { font-size: var(--text-s); line-height: 1.5; color: var(--navy); padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--rule); }
.sc-kn-more { position: relative; width: 24px; height: 24px; margin-top: 4px; }
.sc-kn-more::before, .sc-kn-more::after { content: ""; position: absolute; background: var(--green); transition: transform 0.18s ease; }
.sc-kn-more::before { left: 0; top: 11px; width: 24px; height: 2px; }
.sc-kn-more::after { left: 11px; top: 0; width: 2px; height: 24px; }
.sc-kn[open] .sc-kn-more::after { transform: scaleY(0); }
.sc-kn-body { padding: 0 24px 26px; }
.sc-kn-body p { font-size: var(--text-s); line-height: 1.7; color: var(--muted); margin: 0 0 12px; }
.sc-kn-when { font-size: var(--text-xs); color: var(--navy); font-weight: 600; }

/* ---- a list of people: ruled rows, never a bullet ---- */
.sc-people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}
.sc-people li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.sc-person-name { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: var(--text-s); color: var(--navy); }
.sc-person-aff { font-size: var(--text-xs); color: var(--muted); text-align: right; }

/* ---- the chairs ---- */
.sc-chairs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--rule); border: 1px solid var(--rule);
}
.sc-chairs li { background: #ffffff; padding: 24px 26px; display: grid; gap: 4px; }
.sc-chair-role { font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green); }
.sc-chair-name { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: var(--display-s); color: var(--navy); }
.sc-chair-aff { font-size: var(--text-xs); color: var(--muted); }

/* ---- the programme, filtered with radio buttons and no script ---- */
.sc-filter-in { position: absolute; opacity: 0; pointer-events: none; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 2px; }
.sc-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  background: #ffffff; border: 1px solid var(--rule); cursor: pointer;
  font-family: 'Roboto', sans-serif; font-size: var(--text-xs); font-weight: 700; color: var(--navy);
}
.sc-chip:hover { border-color: var(--green); }
#sc-day-all:checked ~ .sc-chips [for="sc-day-all"],
#sc-day1:checked ~ .sc-chips [for="sc-day1"],
#sc-day2:checked ~ .sc-chips [for="sc-day2"],
#sc-day3:checked ~ .sc-chips [for="sc-day3"] { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.sc-sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: #ffffff; border: 1px solid var(--rule); }
.sc-ses {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; align-items: center;
  padding: 14px 20px; border-top: 1px solid var(--rule);
}
.sc-ses:first-child { border-top: 0; }
.sc-ses-code { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: var(--text-s); color: var(--green); }
.sc-ses-main { display: grid; gap: 2px; }
.sc-ses-title { font-size: var(--text-s); font-weight: 600; color: var(--navy); line-height: 1.35; }
.sc-ses-meta { font-size: var(--text-xs); color: var(--muted); }
.sc-ses-n { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
#sc-day1:checked ~ .sc-sessions .sc-ses:not([data-day="day1"]),
#sc-day2:checked ~ .sc-sessions .sc-ses:not([data-day="day2"]),
#sc-day3:checked ~ .sc-sessions .sc-ses:not([data-day="day3"]) { display: none; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---- the awards dinner: text in the page column, photograph beside it ---- */
.sc-gala { display: grid; grid-template-columns: minmax(0, 1fr) 38%; padding: 0; }
.sc-gala-body {
  padding: var(--section) 56px var(--section) max(var(--gutter), calc((100vw - var(--column)) / 2));
  align-content: center;
  display: grid;
}
.sc-gala-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.sc-gala-img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 460px; }

/* ---- the venue ---- */
.sc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
/* The columns follow the pictures. One tile fills the scene, two share
   it, and three or more take the three-column grid. */
.sc-gallery--1 { grid-template-columns: 1fr; }
.sc-gallery--2, .sc-gallery--4 { grid-template-columns: repeat(2, 1fr); }
/* Five tiles in three columns leave a hole in the second row; the last
   one takes it. */
.sc-gallery--5 img:last-child { grid-column: span 2; }
.sc-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.sc-det { border-top: 1px solid var(--rule); }
.sc-det summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; cursor: pointer;
  font-family: 'Roboto', sans-serif; font-weight: 700; font-size: var(--text-s); color: var(--navy);
}
.sc-det summary::after { content: "+"; color: var(--green); font-size: 20px; line-height: 1; }
.sc-det[open] summary::after { content: "\2013"; }
.sc-det-body p { font-size: var(--text-s); line-height: 1.7; color: var(--muted); margin: 0 0 18px; }

/* ---- where the papers go ---- */
.sc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.sc-card { background: #ffffff; border: 1px solid var(--rule); padding: 28px 26px 26px; display: grid; align-content: start; gap: 10px; }
.sc-card-h { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: var(--display-s); color: var(--navy); margin: 0; }
.sc-card p { font-size: var(--text-s); line-height: 1.6; color: var(--muted); margin: 0; }

/* ---- the photographs: words on the picture, never a picture alone ---- */
.sc-album { position: relative; background: var(--navy); }
.sc-album-img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.sc-album-over {
  position: relative;
  background: linear-gradient(to right, rgba(0, 49, 80, 0.92) 0%, rgba(0, 49, 80, 0.72) 55%, rgba(0, 49, 80, 0.45) 100%);
  padding: 72px 0;
}
.sc-album-cap { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.82); margin: 12px 0 0; max-width: 44ch; }

/* ---- the next conference ---- */
.sc--next { background: var(--tint); border-top: 1px solid var(--rule); padding: 64px 0; }
.sc-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sc-next-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------- the motion --*/

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sc-head, .sc-day, .sc-card, .sc-chairs {
      animation: sc-rise linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
    @keyframes sc-rise {
      from { opacity: 0; transform: translateY(14px); }
      to { opacity: 1; transform: none; }
    }
  }
}

/* ============================================================ narrow ==*/

@media (max-width: 1000px) {
  .sc-split, .sc-split--rev { grid-template-columns: 1fr; gap: 32px; }
  .sc-split--rev .sc-split-side { order: 1; }
  .sc-split--rev .sc-split-main { order: 2; }
  .sc-sticky { position: static; }
  .sc-kns { grid-template-columns: 1fr; }
  .sc-cards { grid-template-columns: 1fr; }
  .sc-chairs { grid-template-columns: 1fr; }
  .sc-people { grid-template-columns: 1fr; }
  .sc-gala { grid-template-columns: 1fr; }
  .sc-gala-body { padding: 56px var(--gutter); }
  .sc-gala-cols { grid-template-columns: 1fr; gap: 32px; }
  .sc-gala-img { min-height: 0; height: 280px; order: -1; }
  .sc-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* Nothing sticks on a phone, so an anchor lands at the top of the screen. */
  .conference { --gutter: 24px; --section: 64px; --strip: 8px; }
  .ed-sub { position: static; }
  .ed-sub-cta { display: none; }
  .ed-hero { min-height: 0; }
  .ed-hero-inner { padding: 88px var(--gutter) 48px; gap: 28px; }
  .ed-hero-logo { height: 96px; margin-bottom: 20px; }
  .ed-hero-mid { max-width: none; }
  .ed-hero-facts { grid-template-columns: 1fr; padding-top: 22px; }
  .ed-hero-facts > div { padding: 10px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .ed-hero-facts > div:first-child { border-top: 0; padding-top: 0; }
  .ed-hero-scrim {
    background: linear-gradient(to top, rgba(0, 49, 80, 0.95) 0%, rgba(0, 49, 80, 0.72) 55%, rgba(0, 49, 80, 0.5) 100%);
  }
  .ed-partner-group { grid-template-columns: 1fr; gap: 10px; }
  .ed-partner-row { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
  .ed-logo { height: 64px; padding: 0 14px; }
  .ed-logo img { max-height: 34px; }
  .sc-kn-sum { grid-template-columns: 84px 1fr 20px; gap: 16px; padding: 20px; }
  .sc-kn-img { width: 84px; height: 84px; }
  .sc-ses { grid-template-columns: 44px 1fr; gap: 14px; }
  .sc-ses-n { grid-column: 2; }
  .sc-people li { grid-template-columns: 1fr; gap: 2px; }
  .sc-person-aff { text-align: left; }
  .sc-album-over { padding: 48px 0; }
  .sc-band-inner { align-items: flex-start; }
}

/* =====================================================================
   The programme page
   ===================================================================== */

.pr-head { background: var(--tint); padding: 40px 0 56px; }
.ed-crumb--dark { color: var(--navy); margin-bottom: 28px; }
.ed-crumb--dark a { color: var(--navy); border-bottom-color: rgba(0, 49, 80, 0.4); }
.ed-crumb--dark [aria-current], .ed-crumb--dark span[aria-hidden] { color: var(--muted); }

.pr-rooms { display: grid; gap: 14px; margin: 0 0 28px; max-width: 760px; }
.pr-rooms > div { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.pr-rooms dt {
  font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.pr-rooms dd { margin: 0; font-size: var(--text-s); color: var(--navy); }

.pr-run { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pr-item {
  display: grid; grid-template-columns: 116px 1fr; gap: 24px;
  background: #ffffff; border: 1px solid var(--rule); padding: 16px 24px;
}
/* A break, a close or a room note is a line, not a card: a full programme
   is long enough without giving "Coffee break" the height of a lecture. */
.pr-item--brk, .pr-item--note {
  padding: 9px 24px; background: transparent; border-color: transparent;
}
.pr-item--brk .pr-title, .pr-item--note .pr-title {
  font-family: 'Inter', sans-serif; font-size: var(--text-xs);
  font-weight: 600; color: var(--muted); margin: 0;
}
.pr-item--brk .pr-time, .pr-item--note .pr-time { color: var(--muted); }
.pr-item--note .pr-who { font-size: var(--text-xs); margin: 2px 0 0; }
.pr-time { font-family: 'Roboto', sans-serif; font-size: var(--text-xs); font-weight: 700; color: var(--green); white-space: nowrap; }
.pr-body { min-width: 0; }
.pr-label {
  display: block; font-family: 'Roboto', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.pr-title { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: var(--display-s); line-height: 1.3; color: var(--navy); margin: 0 0 4px; }
.pr-title--plain { font-size: var(--text-s); font-weight: 700; }
.pr-who { font-size: var(--text-s); color: var(--muted); margin: 0 0 4px; }
.pr-chair { font-size: var(--text-xs); color: var(--muted); margin: 0; }

.pr-sessions { display: grid; gap: 2px; margin-top: 12px; }
.pr-session { border: 1px solid var(--rule); background: #ffffff; }
.pr-session summary {
  display: grid; grid-template-columns: 44px 1fr 24px; gap: 16px; align-items: start;
  padding: 12px 18px; cursor: pointer; list-style: none;
}
.pr-session summary::-webkit-details-marker { display: none; }
/* A fold with no code beside it: the words start where the page does. */
.pr-session--plain { margin-top: 12px; }
.pr-session--plain summary { grid-template-columns: 1fr 24px; }
.pr-code { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: var(--text-s); color: var(--green); }
.pr-session-main { display: grid; gap: 3px; min-width: 0; }
.pr-session-title { font-size: var(--text-s); font-weight: 600; color: var(--navy); line-height: 1.4; }
.pr-session-meta { font-size: var(--text-xs); color: var(--muted); }

.pr-talks { list-style: none; margin: 0; padding: 0 18px 18px; display: grid; }
.pr-talks li { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
/* A list of talks with no times of their own gives the words the row. */
.pr-talks--untimed li { grid-template-columns: 1fr; }
/* Thirty posters, or two dozen five minute talks, in one column is a
   minute of scrolling to reach one line. On a screen wide enough they
   run in two, which is how a printed programme has always set them. */
.pr-talks--split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.pr-talks--split li { border-top: 1px solid var(--rule); }
.pr-talk-time { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
.pr-talk-main { display: grid; gap: 3px; align-content: start; }
.pr-talk-title { font-size: var(--text-s); color: var(--navy); line-height: 1.45; }
.pr-talk-who { font-size: var(--text-xs); color: var(--muted); }

@media (max-width: 900px) {
  .pr-item { grid-template-columns: 1fr; gap: 10px; }
  .pr-rooms > div { grid-template-columns: 1fr; gap: 4px; }
  .pr-talks li { grid-template-columns: 1fr; gap: 2px; }
  .pr-talks--split { grid-template-columns: 1fr; }
  .pr-session summary { grid-template-columns: 40px 1fr 20px; gap: 12px; padding: 14px; }
  /* The plain fold has no code beside it here either. Without this the
     rule above wins on order and squeezes the words into 40px. */
  .pr-session--plain summary { grid-template-columns: 1fr 20px; }
}

/* Where the venue is, and where to go next. */
.sc-venue-address { font-size: var(--text-s); color: var(--muted); margin: 0 0 12px; }
.sc-venue-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 20px; }

/* A link inside a line of text, rather than a row of its own. */
.sc-link--inline { min-height: 0; font-size: var(--text-xs); }
.sc-fees + .sc-link--inline { margin-top: 18px; }
/* The volumes a past conference was published in, one line each. */
.sc-vols { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.sc-vols .sc-link--inline { font-size: var(--text-s); }

/* The days, as chips, at the head of the programme. */
.pr-days { display: flex; flex-wrap: wrap; gap: 2px; margin: 26px 0 0; }
.pr-days .sc-chip { text-decoration: none; }


/* ---- registration ---- */
.sc-panel { background: #ffffff; border: 1px solid var(--rule); padding: 30px 32px; }
.sc-panel-note { font-size: var(--text-xs); line-height: 1.6; color: var(--muted); margin: 18px 0 0; }
.sc-panel p { margin: 0 0 14px; font-size: var(--text-s); line-height: 1.65; color: var(--navy); max-width: 62ch; }
.sc-panel .sc-h3 + p { margin-top: 14px; }
.sc-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.sc-ticks li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--rule);
  font-size: var(--text-s);
  color: var(--navy);
}
.sc-ticks li:first-child { border-top: 0; padding-top: 0; }
.sc-ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--green);
}
.sc-ticks li:first-child::before { top: 9px; }
.sc-fees { width: 100%; border-collapse: collapse; margin-top: 2px; background: #ffffff; border: 1px solid var(--rule); }
.sc-fees th, .sc-fees td { text-align: left; padding: 14px 20px; border-top: 1px solid var(--rule); font-size: var(--text-s); }
.sc-fees th {
  font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); border-top: 0;
}
.sc-fees td { color: var(--navy); }
/* The charge a paper pays is a row group of its own, under the rates and
   added to one of them, never a rate among the rates. */
.sc-fees-plus th {
  font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--green);
  border-top: 2px solid var(--navy); padding-bottom: 6px;
}
.sc-fees-plus td { vertical-align: top; }
.sc-fees-note { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: 4px; }

/* A long committee is text in three columns, never portraits. */
.sc-people--dense { grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.sc-people--dense li { grid-template-columns: 1fr; gap: 1px; padding: 10px 0; }
.sc-people--dense .sc-person-aff { text-align: left; }

@media (max-width: 1000px) { .sc-people--dense { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .sc-people--dense { grid-template-columns: 1fr; } }

/* ---- a fold: a long list the reader opens if they want it ----

   James, 18 September: "i would also make the scientific committee and
   things like that expandable sections to reduce the length of the page".
   Thirty-seven names and twelve invited speakers are a reference, not a
   read, so they are closed until somebody wants them. <details>, so they
   open with scripting off and a browser's own find-in-page reaches them. */

.sc-fold { margin-top: 44px; border-top: 3px solid var(--green); }
.sc-fold summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0 20px; cursor: pointer; list-style: none;
}
.sc-fold summary::-webkit-details-marker { display: none; }
.sc-fold-title {
  font-family: 'Roboto', sans-serif; font-weight: 900;
  font-size: var(--display-m); color: var(--navy);
}
.sc-fold[open] summary { padding-bottom: 12px; }
.sc-fold > ul { padding-bottom: 8px; }
