/* members.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. */
.rep { display: grid; align-content: start; gap: var(--space-1); padding: var(--space-3); }
.rep .portrait { margin-bottom: var(--space-2); }
.rep strong { font-family: var(--font-display); font-weight: 700; font-stretch: 100%; line-height: 1.15; }
.rep .muted { font-size: var(--step--1); }

/* People on the Members page (since v38): the cards use the full width of the page */
.people-next { margin-top: var(--space-6); }

/* ===== 10b. Members: the map, the channel strips, the signatures ===== */
.mem-head { margin-bottom: var(--space-5); }
.mem-lead + p { margin-top: var(--space-4); }
@media (max-width: 600px) { .mem-lead { font-size: var(--step-0); line-height: 1.45; } }
.mem-layout { display: grid; gap: var(--space-5); }
.mem-layout > * { min-width: 0; }
.mem-stage { display: grid; gap: var(--space-3); }
.mem-keys { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); min-height: calc(var(--tap) + var(--drop)); padding-left: var(--drop); padding-bottom: var(--drop); }
.mem-now { color: var(--muted-on-night); }
/* The room for the map is kept free before it is drawn. 1000 by 860 is the size of the outline file. */
.mem-map-wrap { position: relative; }
.mem-map { aspect-ratio: 1000 / 860; }
.mem-map svg { max-height: none; }
.mem-map.map-failed { display: none; }
/* Calm twin of the ring: a dot whose signature plays also thickens its outline */
.mem-map .sm-node.is-struck .sm-dot { stroke-width: 4; }
.mem-side { display: grid; gap: var(--space-4); align-content: start; }
.mem-line { max-width: 68ch; color: var(--muted-on-night); }
/* A channel strip: a white card with the logo plate, the name with the lamp of its dot, the text, the stave and the pad */
.strip-list { display: grid; gap: var(--space-4); padding-left: var(--drop); padding-bottom: var(--drop); }
.strip-plate { position: relative; display: grid; place-items: center; width: 9rem; max-width: 100%; aspect-ratio: 3 / 2; padding: var(--space-2); background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius-s); overflow: hidden; }
.strip-plate img { position: absolute; inset: var(--space-2); width: calc(100% - var(--space-2) * 2); height: calc(100% - var(--space-2) * 2); object-fit: contain; }
.strip-plate-name { justify-self: start; align-self: end; font-family: var(--font-display); font-weight: 800; font-stretch: 100%; font-size: var(--step--1); line-height: 1.05; overflow-wrap: anywhere; }
.strip-head { display: grid; gap: var(--space-1); }
.strip-name { display: flex; align-items: flex-start; gap: var(--space-2); }
.strip-name .entry-lamp { margin-top: 0.2em; }
.strip-name:focus { outline: none; }
.strip-name [data-name-text].is-locked { white-space: nowrap; }
.strip-rep { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-4); }
.strip-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); padding-top: var(--space-3); border-top: var(--line) solid var(--ink); }
.strip-signature { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding-left: var(--drop); padding-bottom: var(--drop); }
/* The empty slot after the last strip: a dashed frame on the ground of the page, so nobody takes it for a member */
.strip-invite > *, .strip-invite .btn { min-width: 0; overflow-wrap: anywhere; }
.strip-invite { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: var(--space-3); margin-left: var(--drop); padding: var(--space-4); border: var(--line) dashed var(--muted-on-night); border-radius: var(--radius-m); }
.strip-invite-keys { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding-left: var(--drop); padding-bottom: var(--drop); }
.strip-invite-link { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.strip.is-lit .entry-lamp { transform: scale(1.3); }
@media (min-width: 480px) {
  .strip-head { align-self: center; }
  .strip-wide { grid-column: 1 / -1; }
}
/* Wide screens: the map on the left stays in view while the strips scroll beside it */
@media (min-width: 900px) {
  .mem-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; align-items: start; }
  .mem-layout > .mem-lead { grid-column: 2; grid-row: 1; }
  .mem-stage { grid-column: 1; grid-row: 1 / span 2; }
  .mem-side { grid-column: 2; grid-row: 2; }
  .mem-map-wrap { max-width: calc((100vh - var(--header) - 12rem) * 1.16); }
}
@media (min-width: 900px) and (min-height: 34rem) { .mem-stage { position: sticky; top: calc(var(--header) + var(--space-3)); } }
.split-body.prose { max-width: none; }
.split-body p, .split-body li { text-wrap: pretty; }
.split-head h2 { text-wrap: balance; }
@media (min-width: 900px) {
  .split-body > :first-child { margin-top: 0; }
  .split-body > h3:first-child { margin-top: 0; }
  /* In the narrow left column a heading takes one size down and the normal width of the face, so no word breaks inside */
  .split > .split-head h2 { font-size: var(--step-2); font-stretch: 100%; overflow-wrap: normal; hyphens: none; }
}

/* The three types of membership (since v39): three white cards, side by side from 900 px. Each ends on a row of lamps:
   the vote at the General Meeting (lit for effective members, empty for the others) and, for effective members, election to the board.
   The lamps repeat what the words say. Nothing here presses or moves. */
.mtypes { margin-top: var(--space-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5) var(--space-4); padding-left: var(--drop); padding-bottom: var(--drop); }
@media (min-width: 900px) { .mtypes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mtype { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--white); color: var(--ink); border: var(--line) solid var(--ink); border-radius: var(--radius-m); box-shadow: calc(var(--drop) * -1) var(--drop) 0 var(--drop-color); }
.mtype.is-voting { outline: var(--line) solid var(--ink); outline-offset: calc(var(--space-1) * -2); }
.mtype-no { align-self: flex-start; padding: var(--space-1) var(--space-3); border: var(--line) solid var(--ink); border-radius: var(--radius-pill); }
.mtype h3 { font-size: var(--step-2); font-weight: 800; line-height: 1; text-wrap: balance; }
@media (max-width: 600px) { .mtype h3 { font-stretch: 100%; } }
.mtype > p { flex: 1; text-wrap: pretty; }
.mtype-facts { display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: var(--line) solid var(--ink); }
.mtype-facts li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--step--1); font-weight: 600; }
.mtype-lamp { flex: none; width: var(--space-3); height: var(--space-3); border: var(--line) solid var(--ink); border-radius: 50%; background: var(--white); }
.mtype-lamp.is-yes { background: var(--tone-2); }

/* ===== Members page, since v43: the photo "MTE at Work" and the four sections from "What membership offers" down ===== */
/* The photo closes the section "People": the whole width of the page, 4 by 3, in the ink outline of a picture frame */
.people-photo { margin: var(--space-6) 0 0; }
.people-photo .shot { aspect-ratio: 4 / 3; max-height: 80vh; }
@media (min-width: 900px) { .people-photo .shot { aspect-ratio: 16 / 9; } }
.people-photo figcaption { margin-top: var(--space-2); }

/* What membership offers: six white cards, one column on phones, two from 600 px, three from 900 px */
.offer-grid { margin-top: var(--space-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding-left: var(--drop); padding-bottom: var(--drop); }
@media (min-width: 600px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offer-no { justify-self: start; padding: var(--space-1) var(--space-3); border: var(--line) solid var(--ink); border-radius: var(--radius-pill); }
.rack-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: var(--line) solid currentColor; }
.rack-lamp { width: var(--space-3); height: var(--space-3); border: var(--line) solid currentColor; border-radius: 50%; background: var(--tone-2); align-self: center; }
.rack-row strong { font-family: var(--font-display); font-weight: 700; font-stretch: 100%; font-size: var(--step-1); line-height: 1.2; display: block; margin-bottom: var(--space-1); }
.rack-row span:not(.readout) { text-wrap: pretty; }
.split-head p { margin-top: var(--space-3); text-wrap: pretty; }
.track-step { position: relative; display: grid; align-content: start; gap: var(--space-2); padding-left: calc(var(--tap) + var(--space-3)); }
.track-step::before { content: ""; position: absolute; left: calc(var(--tap) / 2 - var(--line)); top: var(--tap); bottom: calc(var(--space-5) * -1); width: calc(var(--line) * 2); background: currentColor; border-radius: var(--radius-pill); }
.track-step:last-child::before { display: none; }
.track-stop { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: var(--tap); height: var(--tap); background: var(--white); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: calc(var(--drop) / -2) calc(var(--drop) / 2) 0 var(--drop-color); font-size: var(--step-0); }
.track-step h3 { font-stretch: 100%; padding-top: var(--space-2); }
.track-step p { text-wrap: pretty; }
.track-step a:not([class]) { overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .track-step { padding-left: 0; padding-top: calc(var(--tap) + var(--space-3)); }
  .track-step::before { left: var(--tap); right: calc(var(--space-5) * -1); top: calc(var(--tap) / 2 - var(--line)); bottom: auto; width: auto; height: calc(var(--line) * 2); }
  .track-step h3 { padding-top: 0; }
}
.join-foot { margin-top: var(--space-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); padding-top: var(--space-4); border-top: var(--line) solid currentColor; }

/* Questions: five keys that open (native details). The key is a white card with ink outline and the drop of a card. It sinks while pressed,
   its sign turns from + to − when open. The answer stands inside the same card. Two columns from 900 px */
.faq { margin-top: var(--space-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; padding-left: var(--drop); padding-bottom: var(--drop); }
@media (min-width: 900px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq-item { background: var(--white); color: var(--ink); border: var(--line) solid var(--ink); border-radius: var(--radius-m); box-shadow: calc(var(--drop) * -1) var(--drop) 0 var(--drop-color); transition: transform var(--fast) var(--ease-press), box-shadow var(--fast) var(--ease-press); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--tap); padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-stretch: 100%; font-size: var(--step-1); line-height: 1.2; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: var(--space-5); height: var(--space-5); border: var(--line) solid var(--ink); border-radius: 50%; font-family: var(--font-body); font-weight: 700; font-size: var(--step-2); line-height: 1; }
.faq-item[open] summary::after { content: "−"; background: var(--tone-2); }
.faq-item summary:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: var(--radius-s); }
.faq-item:has(summary:active) { transform: translate(calc(var(--drop) * -1), var(--drop)); box-shadow: 0 0 0 var(--drop-color); }
.faq-item p { padding: 0 var(--space-4) var(--space-4); text-wrap: pretty; }
.faq-item a:not([class]) { color: var(--link); }
@media (max-width: 600px) { .faq-item summary, .rack-row strong { font-size: var(--step-0); } }
