/* Element assets. Generated by bin/build-element-theme.py. */
.reference-join,
.reference-roster {
  --roster-surface: #121a16;
  --roster-inset: #0d1413;
  --roster-control: #1a211b;
  --roster-edge: #8d7558;
  --roster-accent: #efcc95;
  --roster-selected: #4a2729;
  --roster-online: #87cc93;
  min-width: 0;
}

.reference-join .inf-hero__copy,
.reference-roster .inf-hero__copy {
  min-width: 0;
  width: min(50%, 37rem);
}

.reference-join .inf-hero__copy h1,
.reference-roster .inf-hero__copy h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.reference-join .inf-hero__motto,
.reference-roster .inf-hero__motto {
  color: var(--roster-accent);
  white-space: normal;
  text-wrap: balance;
}

.reference-join .inf-hero__copy p,
.reference-roster .inf-hero__copy p {
  max-width: 43ch;
  text-wrap: pretty;
}

.join-content,
.roster-content {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  background: var(--roster-inset);
}

.join-content a:not(.button),
.roster-content a:not(.button) {
  color: var(--roster-accent);
}

.join-content :is(a, button, summary, input, textarea):focus-visible,
.roster-content :is(a, button, input):focus-visible,
:is(#application, #roster-filters, #roster-results):focus-visible {
  outline: 2px solid var(--roster-accent);
  outline-offset: 2px;
}

.join-content :is(h2, h3),
.roster-content :is(h2, h3) {
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--bk-ink);
}

.join-content h2,
.roster-content h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.join-content h3 {
  font-size: 1.125rem;
  margin-top: 1rem;
}

.join-part :is(p, ul, ol),
.join-entry p,
.member-directory-aside p,
.member-empty p {
  max-width: 69ch;
  margin: .6rem 0;
  color: var(--bk-muted);
  line-height: 1.6;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.join-entry {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid var(--roster-edge);
  background: var(--roster-surface);
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
}

.join-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 2.5rem);
}

.join-part {
  min-width: 0;
  border-top: 1px solid var(--bk-line);
  padding: 1.125rem .25rem .25rem;
}

.join-benefits {
  list-style: none;
  padding: 0;
}

.join-benefits li {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-block: .5rem;
}

.join-benefits .icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--roster-accent);
}

.join-requirements li,
.join-steps li {
  margin-block: .65rem;
}

.join-steps li::marker {
  color: var(--roster-accent);
  font-weight: 700;
}

.join-steps h3 {
  margin: 0;
}

.join-text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: .17em;
}

.join-text-link .icon,
.join-part summary .icon,
.member-profile .icon {
  flex: none;
  width: 1rem;
  height: 1rem;
}

.join-part details {
  max-width: 72ch;
  border-bottom: 1px solid var(--bk-line);
}

.join-part details:first-of-type {
  margin-top: .75rem;
  border-top: 1px solid var(--bk-line);
}

.join-part summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding: .625rem .25rem;
  color: var(--roster-accent);
  font-weight: 600;
  cursor: pointer;
}

.join-part summary::-webkit-details-marker { display: none; }
.join-part details[open] summary .icon { transform: rotate(90deg); }
.join-part summary:hover { background: var(--roster-control); }

.join-form {
  display: grid;
  gap: .75rem;
}

.join-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.join-form .field {
  display: grid;
  gap: .25rem;
  min-width: 0;
  margin: 0;
}

#content .join-form .field :is(input, textarea),
#content .roster-query input[type="search"] {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--roster-edge);
  background: var(--roster-inset);
  color: var(--bk-ink);
}

#content .join-form :is(input, textarea)::placeholder,
#content .roster-query input::placeholder {
  color: var(--bk-muted);
  opacity: 1;
}

.join-form .join-field-note { margin-block: -.25rem 0; }
.join-consent {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  color: var(--bk-ink);
  cursor: pointer;
}

.join-consent input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--roster-accent);
}

.join-form > .button { justify-self: start; }

.roster-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .625rem 1rem;
  padding: clamp(.875rem, 2vw, 1.25rem);
  border: 1px solid var(--bk-line);
  background: var(--roster-surface);
}

.roster-query {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  width: min(100%, 24rem);
  justify-self: end;
}

.roster-query input { min-width: 0; }
.roster-query .button { white-space: nowrap; }

.roster-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.roster-pills,
.roster-secondary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  min-width: 0;
}

.roster-content :is(.roster-pills a, .roster-online-filter, .member-results-bar a) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  min-width: 44px;
  min-height: 44px;
  padding: .45rem .7rem;
  border: 1px solid var(--roster-edge);
  border-radius: 3px;
  background: var(--roster-inset);
  color: var(--bk-ink);
  overflow-wrap: anywhere;
}

.roster-content :is(.roster-pills a, .roster-online-filter)[aria-current="true"] {
  border-color: var(--roster-accent);
  background: var(--roster-selected);
  color: var(--roster-accent);
}

.roster-content :is(.roster-pills a, .roster-online-filter, .member-results-bar a):hover {
  border-color: var(--roster-accent);
}

.roster-online-dot {
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--bk-muted);
}

.roster-online-filter .roster-online-dot,
.roster-online-dot[data-active] { background: var(--roster-online); }

#roster-filters,
#roster-results,
#application { scroll-margin-top: 1rem; }

.member-directory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.member-results { min-width: 0; }

.member-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .75rem;
  padding: .25rem 0 1rem;
}

.member-results-bar p {
  margin: .25rem 0 0;
  color: var(--bk-muted);
  overflow-wrap: anywhere;
}

.member-group { margin-bottom: 1.1rem; }

.member-group h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .7rem .85rem;
  border: 1px solid var(--bk-line);
  background: var(--roster-surface);
  font-size: 1.125rem;
}

.member-group h3 span {
  color: var(--bk-muted);
  font-variant-numeric: tabular-nums;
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--bk-ink);
  text-align: start;
}

.member-table :is(th, td) {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--bk-line);
  text-align: start;
  overflow-wrap: anywhere;
}

.member-table thead th {
  background: var(--roster-inset);
  color: var(--bk-muted);
  font-weight: 600;
}

.member-table tbody :is(th, td) { vertical-align: middle; }
.member-table tbody th { width: 44%; }
.member-table tbody tr:nth-child(even) { background: var(--roster-surface); }

.member-profile {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .125rem 0;
  min-width: 0;
  min-height: 44px;
}

.member-profile:hover strong { text-decoration: underline; }

.member-profile img {
  flex: none;
  object-fit: cover;
  border: 1px solid var(--roster-edge);
}

.member-profile strong,
.member-profile small { display: block; }
.member-profile small,
.member-status { color: var(--bk-muted); font-size: .9rem; }
.member-profile .icon { vertical-align: -.13em; }

.member-status,
.member-table-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem .4rem;
}

.member-level,
.member-stats dd { font-variant-numeric: tabular-nums; }
.member-level-prefix { display: none; }

.member-empty {
  padding: 1rem;
  border: 1px solid var(--bk-line);
  background: var(--roster-surface);
}

.member-directory-aside {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

.member-directory-aside > section {
  border-top: 1px solid var(--bk-line);
  padding: .875rem .25rem .3rem;
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: .75rem 0 0;
}

.member-stats > div {
  display: flex;
  flex-direction: column-reverse;
  color: var(--bk-muted);
  overflow-wrap: anywhere;
}

.member-stats dd {
  margin: 0;
  color: var(--roster-accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.member-team {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .75rem;
}

.member-team img {
  max-width: min(96px, 22vw);
  height: auto;
  object-fit: cover;
}

.member-roles,
.member-recent {
  list-style: none;
  padding: 0;
  margin: .65rem 0 0;
}

.member-roles > div,
.member-recent li {
  border-bottom: 1px solid var(--bk-line);
  padding-block: .4rem;
}

.member-roles dd { margin: 0; color: var(--bk-muted); }

@media (max-width: 1050px) {
  .roster-controls { grid-template-columns: minmax(0, 1fr); }
  .roster-query { justify-self: start; }
  .member-directory { grid-template-columns: minmax(0, 1fr); }
  .member-directory-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .reference-join .inf-hero,
  .reference-roster .inf-hero { padding-top: clamp(125px, 32vw, 190px); }
  .reference-join .inf-hero__copy,
  .reference-roster .inf-hero__copy { width: 100%; }
  .reference-join .inf-hero__copy h1,
  .reference-roster .inf-hero__copy h1 { font-size: clamp(1.9rem, 7vw, 3rem); }
  .reference-join .inf-hero .inf-hero__art,
  .reference-roster .inf-hero .inf-hero__art { height: clamp(160px, 41vw, 230px); }
  .reference-roster .inf-hero { padding-top: clamp(106px, 28vw, 168px); }
  .reference-roster .inf-hero__motto { font-size: 1rem; letter-spacing: .035em; }
  .join-details { grid-template-columns: minmax(0, 1fr); }
  .join-actions, .join-actions .button { width: 100%; }
}

@media (max-width: 560px) {
  .join-form-fields,
  .member-directory-aside { grid-template-columns: minmax(0, 1fr); }

  .member-table,
  .member-table tbody { display: block; }
  /* Keep column names in the accessibility tree when each row becomes a card. */
  .member-table thead:not(:focus-within) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .member-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, .73fr) minmax(0, 1.16fr) minmax(0, 1.16fr);
    align-items: start;
    gap: .4rem;
    border-bottom: 1px solid var(--bk-line);
    padding: .5rem .65rem .65rem;
  }

  .member-table tbody th {
    grid-column: 1 / -1;
    width: auto;
  }

  .member-table tbody :is(th, td) {
    padding: 0;
    border: 0;
  }

  .member-level-prefix { display: inline; }
}
