/* Shared chevron texture and community figures. */
.brand-logo { flex: 0 0 auto; width: 44px; height: 44px; }

.auth-panel-brand {
  isolation: isolate;
  overflow: hidden;
}
.auth-panel-brand::before,
.auth-panel-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
}
.auth-panel-brand::before {
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160'%3E%3Cpath d='M34 3 2 80l32 77h18L20 80 52 3z' fill='%23F43F5E'/%3E%3Cpath d='m166 3 32 77-32 77h-18l32-77-32-77z' fill='%23FBBF24'/%3E%3C/svg%3E");
  background-size: 220px 176px;
  background-position: -90px 12%;
}
.auth-panel-brand::after {
  opacity: .17;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160'%3E%3Cpath d='M34 3 2 80l32 77h18L20 80 52 3z' fill='%23F43F5E'/%3E%3Cpath d='m166 3 32 77-32 77h-18l32-77-32-77z' fill='%23FBBF24'/%3E%3C/svg%3E");
  background-size: 260px 208px;
  background-position: calc(100% + 108px) 84%;
}
.auth-panel-brand .auth-brand-inner { position: relative; z-index: 1; }

.community-panel {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1.25rem;
  padding: clamp(1rem, 3vw, 1.65rem);
  color: #3c2220;
  background: #fff8ed;
  border: 1px solid #ead6bc;
  border-radius: 12px;
}
.community-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ead6bc;
}
.community-kicker {
  margin: 0 0 .25rem;
  color: #9b4b3f;
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.community-heading h2 {
  margin: 0;
  color: #4d2822;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.15;
}
.community-status {
  flex: 0 0 auto;
  color: #6b6258;
  font-size: .77rem;
}
.community-content { transition: opacity .2s ease; }
.community-content[aria-busy="true"] { opacity: .55; }
.community-content[aria-busy="true"] .community-value {
  width: 5.2rem;
  height: 1.55rem;
  color: transparent;
  background: #ead6bc;
  border-radius: 3px;
}
.community-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 1rem 0;
}
.community-metric {
  min-width: 0;
  padding: .1rem 1rem;
  border-left: 1px solid #ead6bc;
}
.community-metric:first-child { padding-left: 0; border-left: 0; }
.community-label,
.community-detail,
.community-coverage-title { display: block; }
.community-label {
  color: #68584e;
  font-size: .78rem;
  font-weight: 650;
}
.community-value {
  display: block;
  margin: .15rem 0;
  color: #a53d34;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.community-detail {
  color: #75675c;
  font-size: .72rem;
  line-height: 1.4;
}
.community-coverage {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding-top: .8rem;
  border-top: 1px solid #ead6bc;
}
.community-coverage-title {
  color: #68584e;
  font-size: .76rem;
  font-weight: 700;
}
.community-groups { display: flex; flex-wrap: wrap; gap: .45rem; }
.community-region {
  padding: .28rem .55rem;
  color: #5e4035;
  background: #f5e8d6;
  border-radius: 4px;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}
.community-region strong { color: #a53d34; }
.community-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1rem;
  color: #7a302c;
  font-size: .85rem;
}
.community-error[hidden] { display: none; }
.community-error button {
  border: 1px solid #bd6c56;
  border-radius: 5px;
  padding: .4rem .7rem;
  color: #7a302c;
  background: transparent;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.community-error button:hover { background: #f5e8d6; }

@media (max-width: 767px) {
  .brand-logo { width: 38px; height: 38px; }
  .community-panel { width: calc(100% - 1.25rem); margin-bottom: 1rem; }
  .community-heading { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .community-metrics { grid-template-columns: 1fr 1fr; row-gap: .85rem; }
  .community-metric { padding: 0 .75rem; }
  .community-metric:first-child { grid-column: 1 / -1; padding-bottom: .8rem; border-bottom: 1px solid #ead6bc; }
  .community-metric:nth-child(2) { padding-left: 0; border-left: 0; }
  .footer { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .community-content { transition: none; }
}
