/* lot/join: the header's language menu (every page, linked from base.html) and the waiting list /join.
   Logical properties only (inline-start/end), so a right-to-left language mirrors without another rule. */

/* ---------------------------------------------------------------- the language menu: <details>, no script needed */
.langs { position: relative; margin-inline-start: 4px; }
.langs > summary { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 10px;
  border-radius: 12px; cursor: pointer; list-style: none; font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--bone);
  background: rgba(4, 31, 33, .62); box-shadow: inset 0 0 0 1px rgba(255, 244, 224, .22); }
.langs > summary::-webkit-details-marker { display: none; }
.langs > summary:hover { box-shadow: inset 0 0 0 1px rgba(255, 244, 224, .6); }
.langs > summary svg { width: 18px; height: 18px; flex: none; }
.langs > summary .chev { width: 12px; height: 12px; transition: transform .16s var(--ease); }
.langs[open] > summary { background: var(--bone); color: var(--ink); box-shadow: none; }
.langs[open] > summary .chev { transform: rotate(180deg); }
.langs-list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 45; margin: 0; padding: 6px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: max-content; min-width: 220px;
  max-width: min(340px, calc(100vw - 32px)); max-height: min(70vh, 460px); overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--r); background: var(--night); box-shadow: inset 0 0 0 1px rgba(55, 230, 240, .55), 0 18px 36px -12px rgba(0, 0, 0, .85); }
.langs-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--bone);
  text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.langs-list a:hover { background: rgba(255, 244, 224, .1); color: var(--bone); }
.langs-list a[aria-current="true"] { background: var(--bone); color: var(--ink); }
.langs-list a[aria-current="true"]::after { content: ""; width: 14px; height: 14px; margin-inline-start: auto; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 12.5 5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 12.5 5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.langs-list:not(:has(a:nth-child(3))) { grid-template-columns: 1fr; min-width: 160px; }
@media (max-width: 639px) {
  .langs { margin-inline-start: 2px; }
  .langs > summary { padding: 0 8px; }
  .langs > summary .globe { display: none; }  /* phones: the code and the arrow, 44 px wide like the other buttons */
}

/* ---------------------------------------------------------------- /join */
.join-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 6px; }
.join-head h1 { margin: 0; }
.join-bot { width: auto; height: 112px; flex: none; }
.join-kicker { margin: 0 0 6px; color: var(--gold); font-weight: 800; font-size: 14.5px; letter-spacing: .04em; }
.join .sub { margin-top: 10px; }
.join-form { max-width: none; gap: 18px; }
.join-form .field .check { margin-top: 4px; }
.join-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.join-roles > legend { grid-column: 1 / -1; margin-bottom: 8px; }
.join-roles .chip span { width: 100%; height: 100%; }
.join-more h2 { margin: 0 0 4px; font-size: 24px; }
.join-more .cta { margin-top: 4px; }
.join-net { display: grid; gap: 14px; align-items: end; }
.join-net + .hint { margin-top: -10px; }
.opt { font-weight: 600; color: var(--bone-2); }
.join-leave { text-align: center; }
.join-leave a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 560px) {
  .join-bot { height: 150px; }
  .join-roles { display: flex; flex-wrap: wrap; }
  .join-roles > legend { width: 100%; }
  .join-net { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
.join .field > label.check { display: flex; font-weight: 700; }  /* a sentence to tick: box and words on one line */
