.ew-growth {
  --gw-ink: #fff1d3;
  --gw-muted: #ead0ac;
  --gw-rim: #975e3d;
  --gw-line: #81563a;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 12px clamp(14px, 3.2vw, 42px) 42px;
  color: var(--gw-ink);
  font:
    500 1rem/1.35 'DM Sans',
    Arial,
    sans-serif;
}
.ew-growth *,
.ew-growth *::before,
.ew-growth *::after {
  box-sizing: border-box;
}
.ew-growth h1,
.ew-growth h2,
.ew-growth h3,
.ew-growth p,
.ew-growth dl,
.ew-growth dd,
.ew-growth figure {
  margin: 0;
}
.ew-growth h1,
.ew-growth h2,
.ew-growth h3,
.gw-facility strong {
  color: var(--gw-ink);
  font-family: Barlow, 'DM Sans', sans-serif;
  line-height: 1.06;
}
.ew-growth button,
.ew-growth select {
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.ew-growth button:focus-visible,
.ew-growth select:focus-visible {
  outline: 3px solid #fff2a7;
  outline-offset: 3px;
}
.ew-growth svg {
  display: inline-block;
  width: 1.14em;
  height: 1.14em;
  flex: none;
}
.gw-title {
  display: grid;
  place-items: center;
  margin: 0 0 14px;
}
.gw-title h1 {
  display: grid;
  place-items: center;
  min-height: 72px;
  width: clamp(196px, 24vw, 295px);
  padding: 15px 10px 5px;
  background: url('assets/sanctuary-plaque.webp') center/100% 100% no-repeat;
  filter: drop-shadow(0 3px 1px #39263c80);
  text-shadow: 0 2px 1px #66342e;
  font-size: clamp(1.8rem, 3.1vw, 2.6rem);
  font-weight: 900;
  text-align: center;
}
.gw-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.16fr) minmax(245px, 1fr);
  gap: 17px;
  align-items: stretch;
}
.gw-panel,
.gw-facility {
  border: 2px solid var(--gw-rim);
  border-radius: 15px 12px 15px 10px;
  background: linear-gradient(145deg, #58392bef, #34271fed 85%);
  box-shadow:
    0 0 0 1px #482d26,
    inset 0 2px #b67e54,
    inset 0 -2px #6d4731,
    0 4px #432c31,
    0 8px 18px #26182042;
}
.gw-showcase {
  overflow: hidden;
  min-width: 0;
}
.gw-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 17px;
  border-bottom: 1px solid #a4774a;
}
.gw-showcase-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}
.gw-showcase-head h2 svg {
  width: 22px;
  height: 22px;
  color: #efd391;
}
.gw-select {
  position: relative;
  min-width: 0;
  max-width: 50%;
  width: 216px;
}
.gw-select::after {
  content: '';
  position: absolute;
  right: 13px;
  top: calc(50% - 4px);
  width: 7px;
  height: 7px;
  border-bottom: 2px solid #f1d5a5;
  border-right: 2px solid #f1d5a5;
  transform: rotate(45deg);
  pointer-events: none;
}
.gw-select select {
  width: 100%;
  appearance: none;
  padding: 8px 30px 8px 10px;
  color: #fff4da;
  background: #392a26;
  border: 1px solid #996e47;
  border-radius: 7px;
  font-size: 0.87rem;
  font-weight: 650;
  text-overflow: ellipsis;
}
.gw-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(200px, 1.06fr);
  padding: 13px;
  gap: 17px;
}
.gw-stage {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 235px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 11px 8px;
  border: 2px solid #543827;
  box-shadow: inset 0 1px 5px #3c34284a;
  background:
    var(--gw-map) center/cover no-repeat,
    #99ad77;
}
.gw-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 10px #4b342733;
  border-radius: inherit;
}
.gw-affinity {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  color: var(--gw-tint);
  background: #342c25ea;
  border: 1px solid #e7bc788c;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}
.gw-stage figure {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 13%;
  bottom: 12%;
  display: grid;
  place-items: end center;
  z-index: 1;
}
.gw-stage figure img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 3px 1px #40391f52);
}
.gw-ground {
  position: absolute;
  width: 60%;
  height: 10%;
  bottom: 9%;
  left: 20%;
  border-radius: 50%;
  background: #303f285e;
  filter: blur(2px);
}
.gw-details {
  display: flex;
  flex-direction: column;
  align-self: center;
  padding: 4px 3px 4px 0;
  min-width: 0;
}
.ew-growth .gw-position {
  color: var(--gw-tint);
  text-transform: uppercase;
  letter-spacing: 0.065em;
  font-size: 0.76rem;
  font-weight: 750;
}
.gw-details h3 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 900;
  margin-top: 4px;
  overflow-wrap: anywhere;
  letter-spacing: -0.025em;
  text-shadow: 0 2px #2f201f;
}
.gw-details dl {
  margin: 15px 0 13px;
  color: var(--gw-muted);
}
.gw-details dl div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px solid #b8895d36;
  font-size: 0.87rem;
}
.gw-details dl div:last-child {
  border-bottom: 0;
}
.gw-details dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gw-details dt svg {
  color: #d5b18a;
}
.gw-details dd {
  color: #fff2d6;
  text-align: right;
  font-weight: 700;
}
.gw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gw-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 auto;
  min-height: 37px;
  padding: 6px 8px;
  border: 1px solid #bd9368;
  border-radius: 7px 6px;
  background: linear-gradient(#815b45, #674432);
  box-shadow:
    inset 0 1px #ad8061,
    0 2px #3b271e;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.gw-actions .gw-primary {
  background: linear-gradient(#dc9a51, #ae6439);
  border-color: #e0ad6f;
  box-shadow:
    inset 0 1px #f6c97d,
    0 2px #54301f;
  color: #fff6d8;
  text-shadow: 0 1px #70442b;
}
.gw-party {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px 13px 13px;
  border-top: 1px solid var(--gw-line);
  background: #2a221d54;
}
.gw-member {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 7px;
  min-width: 0;
  flex: 1 1 24%;
  border: 1px solid #8c654a;
  border-radius: 7px;
  padding: 5px 7px;
  background: #513b2f;
}
.gw-member[aria-pressed='true'] {
  background: linear-gradient(120deg, #806145, #5b4935);
  border-color: #edc783;
  box-shadow: inset 0 0 0 1px #e5c18655;
}
.gw-member img {
  width: 35px;
  height: 36px;
  object-fit: contain;
  flex: none;
}
.gw-member span {
  display: block;
  min-width: 0;
}
.gw-member b,
.gw-member small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gw-member b {
  font-size: 0.84rem;
  line-height: 1.25;
}
.gw-member small {
  color: #ddc3a0;
  font-size: 0.72rem;
}
.gw-facilities {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 11px;
  min-width: 0;
}
.gw-facility {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  text-align: left;
  overflow: hidden;
  padding: 9px 12px 9px 9px;
  gap: 13px;
}
.gw-thumbnail {
  width: clamp(62px, 6.5vw, 83px);
  height: 70px;
  align-self: center;
  flex: none;
  overflow: hidden;
  border: 2px solid #bc946b;
  border-radius: 9px 6px;
  box-shadow: 0 2px 1px #2d211a;
}
.gw-thumbnail img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}
.gw-facility-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.gw-facility strong {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}
.gw-facility-copy > span {
  color: #f8dcad;
  font-size: 0.88rem;
  font-weight: 700;
}
.gw-facility-copy > small {
  color: #dfc5ac;
  font-size: 0.77rem;
}
.gw-facility:hover,
.gw-actions button:hover,
.gw-member:hover {
  filter: brightness(1.12);
}
.gw-empty {
  padding: 22px;
}
@media (max-width: 870px) {
  .gw-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .gw-facilities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 9px;
  }
  .gw-facility {
    gap: 9px;
    padding: 8px;
  }
  .gw-thumbnail {
    width: 54px;
    height: 60px;
  }
  .gw-facility-copy > small {
    font-size: 0.72rem;
  }
  .gw-profile {
    grid-template-columns: 1fr 1fr;
  }
  .gw-stage {
    min-height: 224px;
  }
  .gw-party {
    flex-wrap: nowrap;
  }
  .gw-select {
    max-width: 58%;
  }
}
@media (max-width: 560px) {
  .ew-growth {
    padding: 5px 9px 27px;
  }
  .gw-title {
    margin: 0 0 8px;
  }
  .gw-title h1 {
    min-height: 54px;
    width: 182px;
    font-size: 1.65rem;
  }
  .gw-showcase-head {
    padding: 9px 10px;
  }
  .gw-showcase-head h2 {
    font-size: 1.13rem;
  }
  .gw-select select {
    font-size: 0.81rem;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .gw-profile {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    padding: 9px;
  }
  .gw-stage {
    min-height: 185px;
  }
  .gw-stage figure {
    left: 2%;
    right: 2%;
    bottom: 18%;
  }
  .gw-ground {
    bottom: 15%;
  }
  .gw-details h3 {
    font-size: 1.7rem;
  }
  .gw-details dl {
    margin: 6px 0;
  }
  .gw-details dl div {
    font-size: 0.79rem;
    padding: 3px 0;
  }
  .gw-position {
    font-size: 0.69rem !important;
  }
  .gw-actions {
    gap: 4px;
  }
  .gw-actions button {
    min-height: 32px;
    padding: 4px;
    font-size: 0.76rem;
  }
  .gw-actions button svg {
    width: 13px;
    height: 13px;
  }
  .gw-party {
    padding: 7px;
    gap: 4px;
  }
  .gw-member {
    gap: 3px;
    padding: 5px;
  }
  .gw-member img {
    width: 26px;
    height: 30px;
  }
  .gw-member b {
    font-size: 0.73rem;
  }
  .gw-member small {
    font-size: 0.67rem;
  }
  .gw-facilities {
    gap: 6px;
  }
  .gw-facility {
    padding: 7px 6px 9px;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .gw-thumbnail {
    width: 100%;
    height: 52px;
    align-self: stretch;
  }
  .gw-facility strong {
    font-size: 1.15rem;
  }
  .gw-facility-copy > span {
    font-size: 0.76rem;
  }
  .gw-facility-copy > small {
    font-size: 0.71rem;
  }
  .gw-affinity {
    top: 5px;
    left: 5px;
    padding: 3px 5px;
    font-size: 0.69rem;
  }
}
@media (max-width: 350px) {
  .gw-facilities {
    grid-template-columns: 1fr;
  }
  .gw-facility {
    flex-direction: row;
    align-items: center;
  }
  .gw-thumbnail {
    width: 55px;
    height: 54px;
  }
  .gw-profile {
    grid-template-columns: minmax(0, 0.69fr) minmax(0, 1.31fr);
  }
  .gw-member b {
    font-size: 0.68rem;
  }
}
@media (orientation: landscape) and (max-height: 580px) and (min-width: 650px) {
  .ew-growth {
    padding: 4px 14px 15px;
  }
  .gw-title h1 {
    min-height: 42px;
    width: 165px;
    font-size: 1.35rem;
    padding: 9px 0 4px;
  }
  .gw-title {
    margin-bottom: 5px;
  }
  .gw-workspace {
    grid-template-columns: minmax(0, 2fr) minmax(196px, 0.9fr);
    gap: 9px;
  }
  .gw-facilities {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 7px;
  }
  .gw-facility {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 5px;
  }
  .gw-thumbnail {
    width: 47px;
    height: 47px;
  }
  .gw-facility strong {
    font-size: 1.12rem;
  }
  .gw-facility-copy > span {
    font-size: 0.76rem;
  }
  .gw-facility-copy > small {
    font-size: 0.7rem;
  }
  .gw-showcase-head {
    padding: 6px 9px;
  }
  .gw-showcase-head h2 {
    font-size: 1rem;
  }
  .gw-select select {
    padding-top: 3px;
    padding-bottom: 3px;
  }
  .gw-profile {
    grid-template-columns: minmax(115px, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    padding: 8px;
  }
  .gw-stage {
    min-height: 155px;
  }
  .gw-details h3 {
    font-size: 1.48rem;
  }
  .gw-details dl {
    margin: 4px 0;
  }
  .gw-details dl div {
    font-size: 0.75rem;
    padding: 2px;
  }
  .ew-growth .gw-position {
    font-size: 0.67rem;
  }
  .gw-actions button {
    min-height: 28px;
    padding: 4px;
    font-size: 0.72rem;
  }
  .gw-party {
    padding: 5px 8px;
  }
  .gw-member {
    padding: 3px 6px;
  }
  .gw-member img {
    width: 25px;
    height: 27px;
  }
  .gw-member b {
    font-size: 0.74rem;
  }
  .gw-member small {
    font-size: 0.64rem;
  }
}
