/* conferences.css: styles used only by this part of the site, loaded after site.css (inc/layout.php). Split from site.css in v61.
   Tokens, base and shared parts stay in site.css. DESIGN.md describes them. */
/* ===== 8. Conferences: the instrument on the left, the list on the right ===== */
.conf-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-5); }
.conf-head > * { min-width: 0; }
/* The lead of this page is the legend of its map: the five tone dots stand in front of it. */
.conf-legend { align-items: flex-start; font-weight: 400; max-width: 52ch; }
.conf-legend .legend-scale { margin-top: 0.15em; }
/* Where you'll find us: one entry per activity, with what Music Tech Europe does there and who goes */
.activity-facts { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); margin: 0; }
.activity-facts dt { display: inline; font-weight: 600; }
.activity-facts dt::after { content: ": "; }
.activity-facts dd { display: inline; margin: 0; }
.conf-layout { display: grid; gap: var(--space-5); }
.conf-layout > * { min-width: 0; }
/* The stage: the keys of the map and the map itself, one unit */
.conf-stage { display: grid; gap: var(--space-3); }
.conf-keys { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding-left: var(--drop); padding-bottom: var(--drop); }
.conf-keys:not(:has(> :not([hidden]))) { display: none; }
/* The room for the map is kept free before it is drawn, so nothing below it jumps. 1000 by 860 is the size of the outline file. */
.conf-map-wrap { position: relative; }
.conf-map { aspect-ratio: 1000 / 860; }
.conf-map svg { max-height: none; }
.conf-map.map-failed { display: none; }
.conf-offmap { color: var(--muted-on-night); }
.conf-side { display: flex; flex-direction: column; gap: var(--space-4); }
.conf-filters { display: grid; gap: var(--space-3); }
.chip-more { padding: 0 1.1em; font-family: var(--font-body); font-weight: 600; font-stretch: 100%; font-size: var(--step--1); border-radius: var(--radius-pill); }
.conf-count { font-size: var(--step-0); }
.select-wrap { position: relative; display: inline-flex; max-width: calc(100% - var(--drop)); margin: 0 0 var(--drop) var(--drop); }
.select-wrap select { -webkit-appearance: none; appearance: none; max-width: 100%; min-height: var(--tap); padding: 0 2.75em 0 1em; font: 600 var(--step-0)/1.2 var(--font-body); color: var(--ink); background: var(--white); cursor: pointer;
  border: var(--line) solid var(--ink); border-radius: var(--radius-s); box-shadow: calc(var(--drop) * -1) var(--drop) 0 var(--drop-color); }
.select-wrap::after { content: ""; position: absolute; right: 1.1em; top: 50%; width: 0.5em; height: 0.5em; border: solid var(--ink); border-width: 0 var(--line) var(--line) 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.past-toggle { margin-top: var(--space-4); padding-left: var(--drop); padding-bottom: var(--drop); }

/* The list. An entry is a key: it sinks when pressed and stays down while its conference is open. Its lamp has the colour of its dot. */
.entry-list { display: grid; gap: var(--space-3); padding-left: var(--drop); padding-bottom: var(--drop); }
.entry-text { display: grid; gap: var(--space-1); }
.entry-text strong { font-weight: 600; overflow-wrap: anywhere; }
.entry-flag { color: var(--muted-on-paper); }
/* Past editions are quieter: flat, without fill and extrusion, in the muted colour. No transparency, so the text keeps its contrast. */
.entry-divider { display: flex; align-items: center; gap: var(--space-3); margin-block: var(--space-4); color: var(--muted-on-night);
  font-family: var(--font-body); font-weight: 600; font-stretch: 100%; font-size: var(--step--1); line-height: 1.55; letter-spacing: 0; }
.entry-divider::after { content: ""; flex: 1; border-top: var(--line) solid currentColor; }
.entry.is-past .entry-lamp { border-color: var(--muted-on-night); }
.entry.is-past .entry-flag { color: inherit; }

/* The detail box: one conference, or the chooser for several in one place. Its text scrolls, its keys stay in reach at the bottom. */
.detail-slot { height: 0; margin-bottom: calc(var(--space-4) * -1); }
.detail-body { min-height: 0; padding: var(--space-4); overflow-y: auto; overscroll-behavior: contain; }
.detail-view { display: grid; gap: var(--space-2); }
.detail-view h2:focus { outline: none; }
.detail-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.detail-back { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--link); font-weight: 600; text-align: left; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; cursor: pointer; }
.chooser-list { display: grid; gap: var(--space-3); padding: var(--space-2) 0 var(--drop) var(--drop); }
.detail-actions { flex: none; display: flex; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-3) var(--space-4) calc(var(--space-3) + var(--drop)) calc(var(--space-4) + var(--drop)); border-top: var(--line) solid var(--ink); }
@media (max-width: 899.98px) {
  .detail-actions { padding-bottom: calc(var(--space-3) + var(--drop) + env(safe-area-inset-bottom, 0px)); }
  /* The sound switch rides on top of the sheet, and the page gets room to scroll its last lines out from under it. */
  .has-sheet .site-footer { padding-bottom: calc(var(--space-6) + var(--sheet-h, 0px)); }
}
@media (min-width: 900px) {
  .conf-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  .conf-map-wrap { max-width: calc((100vh - var(--header) - 14.5rem) * 1.16); }
  .detail-slot { position: sticky; top: calc(var(--header) + var(--space-3)); z-index: 5; }
}
/* The stage stays in view while the list scrolls, where the screen is tall enough to hold it. */
@media (min-width: 900px) and (min-height: 34rem) { .conf-stage { position: sticky; top: calc(var(--header) + var(--space-3)); } }
@media (min-width: 900px) {
  .wrap.prose.prose-wide > * { max-width: none; }
  .prose-wide p { text-wrap: pretty; }
}
