/* The doors into the demo (DemoController). */

.door {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem;
}

.door__heading { margin: 0.5rem 0; }

.door__lede {
  max-width: 40rem;
  opacity: 0.8;
}

.door__unbuilt {
  max-width: 40rem;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px dashed currentColor;
  border-radius: 8px;
  opacity: 0.85;
}

.door__unbuilt p { margin: 0.25rem 0; }

/* Each trade group folds away, so the page opens as a short list of groups */
.door__group {
  margin-top: 0.5rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.3);
}

.door__group-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
  list-style: none;
}
.door__group-head::-webkit-details-marker { display: none; }

.door__group-head::before {
  content: "›";
  flex: none;
  width: 1rem;
  font-size: 1.2rem;
  transition: transform 0.15s;
}
.door__group[open] .door__group-head::before { transform: rotate(90deg); }
.door__group-head:focus-visible { outline: 2px solid var(--major-link); outline-offset: 2px; }

.door__group-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.door__group-count {
  margin-left: auto;
  flex: none;
  font-size: 0.8rem;
  opacity: 0.7;
}

.door__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.25rem 1rem 2rem;
}

.door-link {
  margin: 0; /* the global link rule's 2rem top margin spaced these far apart */
  padding: 0.5rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 0.3rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.door__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.door-tile__form { margin: 0; }

.door-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  height: 100%;
  padding: 0.9rem 1rem;
  text-align: left;
  font: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 0.75rem;
  cursor: pointer;
}

.door-tile:hover { border-color: currentColor; }

.door-tile__name { font-weight: 700; font-size: 1.05rem; }

.door-tile__title { opacity: 0.75; font-size: 0.85rem; }

.door-tile__line { font-size: 0.85rem; }

/* A button that reads as a link (Switch person in the account sidebar). */
.link-button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
