/*
 * Community index: a compact, searchable knowledge workspace.
 * The index intentionally avoids marketing-page hero scale and card grids.
 */

.pa-community-starter-links {
  display: grid;
  gap: 0;
  margin-top: 1rem;
}

.pa-community-page .pa-community-starter-links a {
  display: grid;
  gap: 0.2rem;
  min-height: 44px;
  padding: 0.65rem 0;
  border-top: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  text-decoration: none;
}

.pa-community-starter-links a strong {
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pa-community-starter-links a span {
  font-size: 0.9rem;
  line-height: 1.5;
}

.pa-community-page .pa-community-starter-links a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

body.pa-family-community:not(.pa-protected-workspace) .pa-main {
  padding-top: clamp(0.75rem, 1.4vw, 1.25rem);
}

.pa-family-community .pa-main > .pa-community-page:not(.pa-community-detail-page) {
  --pa-community-ink: #122233;
  --pa-community-text: #33485a;
  --pa-community-muted: #4e6575;
  --pa-community-line: #d6e5ea;
  --pa-community-paper: #fbfdfe;
  --pa-community-ice: #edf8fb;
  --pa-community-accent: #087f8c;
  --pa-community-accent-dark: #075e68;
  width: min(calc(100% - var(--pa-gutter)), var(--pa-rail-wide));
  max-width: none;
  margin-inline: auto;
  padding: 0 0 clamp(3rem, 7vw, 6rem);
  color: var(--pa-community-text);
  overflow: visible;
}

.pa-community-page :is(h1, h2, h3, p) {
  overflow-wrap: anywhere;
}

.pa-community-page :is(button, a, input, select, textarea) {
  border-radius: 8px;
}

.pa-community-page .pa-community-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.72fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  border: 1px solid rgba(100, 220, 212, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 16%, rgba(100, 220, 212, 0.18), transparent 22rem),
    linear-gradient(118deg, #102a30 0%, #102a30 68%, #123840 100%);
  color: #edf8fb;
  box-shadow: 0 18px 44px rgba(16, 42, 48, 0.12);
}

.pa-community-masthead > .pa-community-masthead__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

#main-content #community-hub .pa-community-conversation-drawing { position: absolute; z-index: -1; right: -2%; top: 0; width: 51%; height: 100%; color: #8cdbd9; }
#main-content #community-hub .pa-community-masthead::after { background: linear-gradient(90deg, #071e2de6 0%, #071e2d55 52%, transparent 75%); z-index: -2; }
@media (max-width: 760px) { #main-content #community-hub .pa-community-conversation-drawing { width: 100%; right: -28%; opacity: .23; } }

.pa-community-masthead::after {
  content: none;
  display: none;
}

/* A quiet orbital line connects the photographic opening to the page grid. */
#main-content #community-hub .pa-community-masthead::before {
  content: none;
  display: none;
}

.pa-community-page .small { color: #4e6575; }

#main-content #community-hub .pa-community-masthead h1 { font-weight: 560 !important; letter-spacing: -.05em; }

.pa-community-masthead .pa-eyebrow,
.pa-community-rail .pa-eyebrow,
.pa-community-workspace-heading .pa-eyebrow {
  display: block;
  color: #087f8c;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pa-community-masthead .pa-eyebrow {
  color: #64dcd4;
}

.pa-community-masthead h1 {
  max-width: 19ch;
  margin: 0.55rem 0 0.75rem;
  color: #ffffff;
  font-size: clamp(2.15rem, 3.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.pa-community-masthead__copy > p {
  max-width: 67ch;
  margin: 0;
  color: #d9e9ef;
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  line-height: 1.62;
}

.pa-community-quick-search {
  max-width: 46rem;
  min-height: 2.9rem;
  margin-top: 0.9rem;
  padding: 0.3rem 0.35rem 0.3rem 0.9rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid rgba(217, 233, 239, 0.36);
  border-radius: 8px;
  background: #ffffff;
}

.pa-community-quick-search > i {
  color: #617486;
}

.pa-community-quick-search input {
  width: 100%;
  min-width: 0;
  min-height: 2.45rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #122233;
}

.pa-community-quick-search button {
  min-height: 2.45rem;
  padding: 0.55rem 1rem;
  border: 0;
  background: #087f8c;
  color: #ffffff;
  font-weight: 800;
}

.pa-community-quick-search:focus-within {
  outline: 3px solid rgba(100, 220, 212, 0.34);
  outline-offset: 2px;
}

.pa-community-masthead__actions {
  padding-left: clamp(1rem, 2.2vw, 2rem);
  border-left: 1px solid rgba(217, 233, 239, 0.2);
}

.pa-community-masthead__actions .btn {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pa-community-masthead__actions > p {
  margin: 0.65rem 0 0.8rem;
  color: #c7dce2;
  font-size: 0.82rem;
  line-height: 1.5;
}

.pa-community-masthead__actions dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(217, 233, 239, 0.18);
  border-radius: 8px;
  background: rgba(217, 233, 239, 0.18);
}

.pa-community-masthead__actions dl > div {
  min-width: 0;
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column-reverse;
  background: rgba(18, 34, 51, 0.56);
}

.pa-community-masthead__actions dt {
  color: #c7dce2;
  font-size: 0.66rem;
  line-height: 1.25;
}

.pa-community-masthead__actions dd {
  margin: 0 0 0.12rem;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 850;
}

.pa-community-page-status {
  margin: 0.8rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--pa-community-accent);
  border-radius: 8px;
  background: var(--pa-community-ice);
  color: var(--pa-community-ink);
}

.pa-community-auth-gate {
  margin-top: 0.8rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--pa-community-line);
  border-left: 4px solid var(--pa-community-accent);
  border-radius: 8px;
  background: var(--pa-community-paper);
  color: var(--pa-community-text);
  box-shadow: 0 12px 30px rgba(16, 42, 48, 0.08);
}

.pa-community-auth-gate > i {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pa-community-ice);
  color: var(--pa-community-accent-dark);
  font-size: 1.2rem;
}

.pa-community-auth-gate h2 {
  margin: 0.2rem 0 0.35rem;
  color: var(--pa-community-ink);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.pa-community-auth-gate p {
  max-width: 68ch;
  margin: 0;
  color: var(--pa-community-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.pa-community-auth-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.pa-community-auth-gate__actions .btn {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.pa-community-auth-gate__actions .btn-dark-outline {
  border-color: #7ca9b2 !important;
  background: #ffffff !important;
  color: #122233 !important;
}

.pa-community-auth-gate__actions .btn-dark-outline:is(:hover, :focus-visible) {
  border-color: #087f8c !important;
  background: #edf8fb !important;
  color: #065e68 !important;
}

.pa-family-community .pa-community-layout {
  width: 100%;
  max-width: none;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 18.5rem);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.pa-community-knowledge-workspace {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pa-community-line);
  border-radius: 8px;
  background: var(--pa-community-paper);
}

.pa-community-workspace-heading {
  padding: 1rem 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--pa-community-line);
}

.pa-community-workspace-heading h2 {
  max-width: 27ch;
  margin: 0.3rem 0 0;
  color: var(--pa-community-ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.12;
}

.pa-community-workspace-heading > span {
  flex: 0 0 auto;
  color: var(--pa-community-muted);
  font-size: 0.78rem;
}

.pa-community-tabs {
  padding-inline: 1.1rem;
  display: flex;
  gap: 1.4rem;
  border-bottom: 1px solid var(--pa-community-line);
}

.pa-community-tabs a {
  position: relative;
  min-height: 2.65rem;
  padding: 0.65rem 0;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  border-radius: 0;
  color: var(--pa-community-muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.pa-community-tabs a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.pa-community-tabs a span {
  min-width: 1.45rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #e2eff2;
  color: #33485a;
  font-size: 0.7rem;
  text-align: center;
}

.pa-community-tabs a:is(:hover, :focus-visible, .is-active) {
  color: var(--pa-community-ink);
}

.pa-community-tabs a.is-active::after {
  background: var(--pa-community-accent);
}

.pa-community-browse-controls {
  padding: 0.75rem 1.1rem;
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(10rem, 0.48fr) minmax(9rem, 0.4fr) auto;
  gap: 0.75rem;
  align-items: end;
  border-bottom: 1px solid var(--pa-community-line);
  background: #f5fafc;
}

.pa-community-browse-controls label {
  display: block;
  margin-bottom: 0.28rem;
  color: #33485a;
  font-size: 0.72rem;
  font-weight: 800;
}

.pa-community-browse-controls :is(.form-control, .form-select) {
  min-height: 2.6rem;
  border-color: #b9ced5;
  border-radius: 8px;
}

.pa-community-browse-search > div {
  position: relative;
}

.pa-community-browse-search i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0.8rem;
  color: var(--pa-community-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.pa-community-browse-search input {
  padding-left: 2.35rem;
}

.pa-community-browse-actions {
  min-height: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.pa-community-browse-actions .btn {
  flex: 0 0 auto;
  min-width: 7rem;
  min-height: 44px;
  white-space: nowrap;
}

.pa-community-browse-actions a {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: var(--pa-community-accent-dark);
  font-size: 0.8rem;
  font-weight: 750;
}

.pa-community-result-summary {
  min-height: 2.1rem;
  padding: 0.5rem 1.1rem;
  border-bottom: 1px solid var(--pa-community-line);
  color: var(--pa-community-muted);
  font-size: 0.76rem;
}

.pa-community-topic-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pa-community-topic-list > li + li {
  border-top: 1px solid var(--pa-community-line);
}

.pa-community-topic-row {
  position: relative;
  min-width: 0;
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 5.3rem minmax(0, 1fr) 2.75rem;
  gap: 1rem;
  align-items: center;
  transition: background-color 150ms ease;
}

.pa-community-topic-row:is(:hover, :focus-within) {
  background: #f4fbfd;
}

.pa-community-topic-stats {
  display: grid;
  gap: 0.32rem;
  align-self: start;
}

.pa-community-topic-stats span {
  padding: 0.35rem 0.45rem;
  display: flex;
  gap: 0.28rem;
  align-items: baseline;
  justify-content: center;
  border: 1px solid #d6e5ea;
  border-radius: 8px;
  color: var(--pa-community-muted);
  font-size: 0.68rem;
}

.pa-community-topic-stats span.has-answers {
  border-color: #97d4c9;
  background: #effaf5;
  color: #087f75;
}

.pa-community-topic-stats strong {
  color: inherit;
  font-size: 0.92rem;
}

.pa-community-topic-body {
  min-width: 0;
}

.pa-community-topic-kicker,
.pa-community-topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  color: var(--pa-community-muted);
  font-size: 0.7rem;
}

.pa-community-topic-kicker > span:first-child {
  color: var(--pa-community-accent-dark);
  font-weight: 800;
}

.pa-community-topic-body h3 {
  margin: 0.25rem 0 0.28rem;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.28;
}

.pa-community-topic-body h3 a {
  color: var(--pa-community-ink);
  text-decoration: none;
}

.pa-community-topic-body h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.pa-community-topic-body > p {
  max-width: 76ch;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #43586a;
  font-size: 0.84rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pa-community-topic-meta {
  margin-top: 0.55rem;
}

.pa-community-topic-meta span {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
}

.pa-community-topic-open {
  position: relative;
  z-index: 2;
  width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pa-community-accent-dark);
  text-decoration: none;
}

.pa-community-topic-open:is(:hover, :focus-visible) {
  background: #e1f4f6;
}

.pa-community-report-score {
  width: 5.3rem;
  min-height: 4.5rem;
  display: grid;
  grid-template-columns: auto auto;
  place-content: center;
  align-items: baseline;
  border: 1px solid #b9ced5;
  border-radius: 8px;
  background: #f4f9fa;
}

.pa-community-report-score strong {
  color: #122233;
  font-size: 1.45rem;
  line-height: 1;
}

.pa-community-report-score span {
  color: var(--pa-community-muted);
  font-size: 0.7rem;
}

.pa-community-report-score.is-good {
  border-color: #97d4c9;
  background: #effaf5;
}

.pa-community-report-score.is-medium {
  border-color: #e4c98a;
  background: #fff9e9;
}

.pa-community-report-score.is-high {
  border-color: #e8aaa7;
  background: #fff1f0;
}

.pa-community-pager {
  min-height: 4rem;
  padding: 0.75rem 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid var(--pa-community-line);
}

.pa-community-pager a {
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9ced5;
  color: var(--pa-community-accent-dark);
  font-weight: 750;
  text-decoration: none;
}

.pa-community-pager a:last-child {
  justify-self: end;
}

.pa-community-pager strong {
  color: var(--pa-community-ink);
  font-size: 0.8rem;
}

.pa-community-rail {
  display: grid;
  gap: 1rem;
}

.pa-community-rail > :is(section, nav, details) {
  border: 1px solid var(--pa-community-line);
  border-radius: 8px;
  background: var(--pa-community-paper);
}

.pa-community-rail__ask {
  padding: 1.2rem;
}

.pa-community-rail__ask h2 {
  margin: 0.35rem 0 0.55rem;
  color: var(--pa-community-ink);
  font-size: 1.2rem;
}

.pa-community-rail__ask p {
  margin: 0 0 0.9rem;
  color: var(--pa-community-muted);
  font-size: 0.82rem;
  line-height: 1.52;
}

.pa-community-rail__ask .btn {
  width: 100%;
  min-height: 2.75rem;
}

.pa-community-category-nav {
  overflow: hidden;
}

.pa-community-category-nav h2 {
  margin: 0;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--pa-community-line);
  color: var(--pa-community-ink);
  font-size: 0.94rem;
}

.pa-community-category-nav a {
  min-height: 2.8rem;
  padding: 0.7rem 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 0;
  color: #33485a;
  font-size: 0.82rem;
  text-decoration: none;
}

.pa-community-category-nav a + a {
  border-top: 1px solid #e5eef1;
}

.pa-community-category-nav a:is(:hover, :focus-visible) {
  background: #edf8fb;
  color: var(--pa-community-accent-dark);
}

.pa-community-boundary summary {
  min-height: 3rem;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  color: var(--pa-community-ink);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.pa-community-boundary > div {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--pa-community-line);
}

.pa-community-boundary p {
  margin: 0.8rem 0 0;
  color: var(--pa-community-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.pa-community-signin-note {
  padding: 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
}

.pa-community-signin-note > i {
  color: var(--pa-community-accent);
  font-size: 1.25rem;
}

.pa-community-signin-note strong {
  color: var(--pa-community-ink);
  font-size: 0.86rem;
}

.pa-community-signin-note p {
  margin: 0.3rem 0 0.55rem;
  color: var(--pa-community-muted);
  font-size: 0.76rem;
  line-height: 1.48;
}

.pa-community-signin-note a {
  color: var(--pa-community-accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.pa-community-signin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.pa-community-composer-dialog {
  box-sizing: border-box;
  width: min(52rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(54rem, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid #718b95;
  border-radius: 8px;
  background: #fbfdfe;
  color: #33485a;
  box-shadow: 0 28px 90px rgba(16, 42, 48, 0.28);
}

.pa-community-composer-dialog:not([open]) {
  display: none;
}

.pa-community-composer-dialog::backdrop {
  background: rgba(8, 29, 35, 0.72);
  backdrop-filter: blur(3px);
}

.pa-community-composer-surface {
  max-height: min(54rem, calc(100dvh - 2rem));
  padding: clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pa-community-composer-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: flex-start;
}

.pa-community-composer-heading h2 {
  max-width: 27ch;
  margin: 0.35rem 0 0.5rem;
  color: var(--pa-community-ink);
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.pa-community-composer-heading p {
  max-width: 70ch;
  margin: 0;
  color: var(--pa-community-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pa-community-dialog-close {
  flex: 0 0 auto;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #718b95;
  border-radius: 8px;
  background: #ffffff;
  color: #33485a;
  text-decoration: none;
}

.pa-community-dialog-close:is(:hover, :focus-visible) {
  border-color: #087f8c;
  background: #edf8fb;
  color: #065f68;
}

.pa-community-ask-form {
  margin-top: 1.25rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.pa-community-ask-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.pa-community-ask-grid .is-wide {
  grid-column: 1 / -1;
}

.pa-community-ask-grid .form-label {
  color: #33485a;
  font-size: 0.78rem;
  font-weight: 800;
}

.pa-community-ask-grid :is(.form-control, .form-select) {
  min-height: 2.85rem;
  border-color: #718b95;
  border-radius: 8px;
}

.pa-community-composer-dialog .pa-community-ask-grid .form-select {
  appearance: auto;
  padding-right: 0.75rem;
  background-image: none;
}

.pa-community-ask-grid textarea.form-control {
  min-height: 8rem;
}

.pa-community-safety-note,
.pa-community-prefill-note {
  padding: 0.75rem 0.85rem;
  border-left: 4px solid #087f8c;
  border-radius: 8px;
  background: #edf8fb;
  color: #33485a;
  font-size: 0.78rem;
  line-height: 1.5;
}

.pa-community-composer-dialog .pa-community-safety-note {
  background: #edf8fb !important;
  color: #33485a !important;
}

.pa-community-prefill-note {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
}

.pa-community-composer-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pa-community-composer-actions .btn {
  min-height: 2.75rem;
}

.pa-community-question-review {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid #b9ced5;
  border-radius: 8px;
  background: #f4fbfd;
}

.pa-community-question-review h3 {
  margin: 0.6rem 0 0.35rem;
  color: var(--pa-community-ink);
}

.pa-community-question-review h4 {
  margin-top: 1rem;
  color: var(--pa-community-ink);
  font-size: 0.95rem;
}

.pa-community-question-review p,
.pa-community-question-review li {
  color: var(--pa-community-text);
  font-size: 0.82rem;
}

.pa-community-question-review li + li {
  margin-top: 0.55rem;
}

.pa-community-question-review li span {
  display: block;
  color: var(--pa-community-muted);
  font-size: 0.72rem;
}

.pa-community-review-draft {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.pa-community-review-draft .is-wide {
  grid-column: 1 / -1;
}

.pa-community-review-draft label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--pa-community-ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.pa-community-review-draft .form-control[readonly] {
  min-height: 2.65rem;
  border-color: #c4d4da;
  background: #ffffff;
  color: var(--pa-community-text);
  opacity: 1;
}

.pa-community-boundary.pa-community-rules {
  display: block;
  align-items: initial;
  margin: 0;
  padding: 0;
  border-left: 0;
  background: var(--pa-community-paper);
  color: var(--pa-community-text);
  font-size: inherit;
}

.pa-community-boundary.pa-community-rules strong {
  color: var(--pa-community-ink);
}

.pa-community-question-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--pa-community-accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page:not(.pa-community-detail-page) {
  --pa-community-ink: #f1f8f9;
  --pa-community-text: #c7d4d9;
  --pa-community-muted: #8298a2;
  --pa-community-line: #29434c;
  --pa-community-paper: #152935;
  --pa-community-ice: #183240;
  --pa-community-accent: #28b8c4;
  --pa-community-accent-dark: #3fd0d5;
  color: var(--pa-community-text);
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page:not(.pa-community-detail-page)
  :is(
    .pa-community-knowledge-workspace,
    .pa-community-rail > section,
    .pa-community-rail > nav,
    .pa-community-rail > details,
    .pa-community-auth-gate,
    .pa-community-composer-dialog
  ) {
  border-color: var(--pa-community-line);
  background: var(--pa-community-paper);
  color: var(--pa-community-text);
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page:not(.pa-community-detail-page)
  :is(
    .pa-community-workspace-heading h2,
    .pa-community-topic-body h3 a,
    .pa-community-rail h2,
    .pa-community-signin-note strong,
    .pa-community-knowledge-workspace .pa-empty-state h3,
    .pa-community-auth-gate h2,
    .pa-community-composer-heading h2,
    .pa-community-question-review h3,
    .pa-community-question-review h4
  ) {
  color: var(--pa-community-ink) !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page:not(.pa-community-detail-page)
  :is(
    .pa-community-tabs a,
    .pa-community-category-nav a,
    .pa-community-signin-note a,
    .pa-community-pager a
  ) {
  color: var(--pa-community-accent-dark) !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page:not(.pa-community-detail-page)
  :is(
    .pa-community-auth-gate .pa-eyebrow,
    .pa-community-rail .pa-eyebrow,
    .pa-community-workspace-heading .pa-eyebrow
  ) {
  color: var(--pa-community-accent-dark) !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page:not(.pa-community-detail-page)
  :is(
    .pa-community-topic-body > p,
    .pa-community-topic-meta,
    .pa-community-topic-kicker,
    .pa-community-rail p,
    .pa-community-knowledge-workspace .pa-empty-state p,
    .pa-community-auth-gate p,
    .pa-community-composer-heading p,
    .pa-community-question-review p,
    .pa-community-question-review li
  ) {
  color: var(--pa-community-text) !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page:not(.pa-community-detail-page)
  .pa-community-knowledge-workspace
  .pa-empty-state > i {
  color: var(--pa-community-accent-dark) !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page:not(.pa-community-detail-page)
  .pa-community-composer-dialog
  .pa-community-ask-form
  .pa-community-safety-note {
  border-color: #29434c !important;
  background: #183240 !important;
  color: #c7d4d9 !important;
}

@media (max-width: 1100px) {
  .pa-community-page .pa-community-masthead {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .pa-community-masthead__actions {
    padding: 1.1rem 0 0;
    border-top: 1px solid rgba(217, 233, 239, 0.2);
    border-left: 0;
  }

  .pa-family-community .pa-community-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pa-community-auth-gate {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pa-community-auth-gate__actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .pa-community-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pa-community-rail__ask {
    grid-row: span 2;
  }

  .pa-community-browse-controls {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.55fr);
  }

  .pa-community-browse-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .pa-family-community .pa-main > .pa-community-page:not(.pa-community-detail-page) {
    width: min(calc(100% - var(--pa-gutter)), var(--pa-rail-wide));
  }

  .pa-community-page .pa-community-masthead {
    gap: 0.85rem;
    padding: 1rem;
  }

  .pa-community-masthead h1 {
    max-width: 15ch;
    margin-block: 0.4rem 0.55rem;
    font-size: clamp(1.95rem, 9vw, 2.35rem);
  }

  .pa-community-masthead__copy > p {
    font-size: 0.91rem;
    line-height: 1.5;
  }

  .pa-community-quick-search {
    min-height: 2.7rem;
    margin-top: 0.7rem;
    padding: 0.22rem 0.25rem 0.22rem 0.7rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
  }

  .pa-community-quick-search button {
    grid-column: auto;
    width: auto;
    min-height: 2.25rem;
    padding-inline: 0.65rem;
    font-size: 0.82rem;
  }

  .pa-community-masthead__actions {
    padding-top: 0.75rem;
  }

  .pa-community-masthead__actions > p {
    margin-block: 0.5rem 0.65rem;
  }

  .pa-community-masthead__actions .btn {
    width: 100%;
  }

  .pa-community-auth-gate {
    grid-template-columns: minmax(0, 1fr);
  }

  .pa-community-auth-gate > i {
    width: 2.4rem;
    height: 2.4rem;
  }

  .pa-community-auth-gate__actions {
    grid-column: auto;
  }

  .pa-community-auth-gate__actions .btn {
    width: 100%;
    white-space: normal;
  }

  .pa-community-workspace-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
  }

  .pa-community-tabs {
    padding-inline: 1rem;
    gap: 1rem;
    overflow-x: auto;
  }

  .pa-community-tabs a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .pa-community-browse-controls {
    padding-inline: 1rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .pa-community-browse-controls > * {
    min-width: 0;
    grid-column: 1 / -1;
  }

  .pa-community-browse-controls :is(.form-control, .form-select) {
    width: 100%;
    max-width: 100%;
  }

  .pa-community-browse-search,
  .pa-community-browse-actions {
    grid-column: 1 / -1;
  }

  .pa-community-browse-actions {
    justify-content: space-between;
  }

  .pa-community-browse-actions .btn {
    min-width: 7rem;
  }

  .pa-community-topic-row,
  .pa-community-topic-row.is-report {
    padding: 0.95rem 1rem;
    grid-template-columns: minmax(0, 1fr) 2.75rem;
    gap: 0.7rem;
  }

  .pa-community-topic-stats,
  .pa-community-report-score {
    grid-column: 1 / -1;
    width: auto;
    min-height: 0;
    display: flex;
    gap: 0.45rem;
    justify-content: flex-start;
    border: 0;
    background: transparent;
  }

  .pa-community-topic-stats span {
    min-width: 5rem;
  }

  .pa-community-report-score {
    padding: 0;
  }

  .pa-community-report-score strong {
    font-size: 1.15rem;
  }

  .pa-community-topic-body > p {
    -webkit-line-clamp: 2;
  }

  .pa-community-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .pa-community-rail__ask {
    grid-row: auto;
  }

  .pa-community-composer-dialog {
    width: calc(100dvw - 0.75rem);
    max-height: calc(100dvh - 0.75rem);
  }

  .pa-community-composer-surface {
    max-height: calc(100dvh - 0.75rem);
  }

  .pa-community-ask-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pa-community-ask-grid .is-wide {
    grid-column: auto;
  }

  .pa-community-review-draft {
    grid-template-columns: minmax(0, 1fr);
  }

  .pa-community-review-draft .is-wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .pa-community-composer-dialog {
    width: 100dvw;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-width: 0;
    border-radius: 0;
  }

  .pa-community-composer-surface {
    height: 100%;
    max-height: none;
    padding:
      max(1rem, env(safe-area-inset-top))
      max(1rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  .pa-community-composer-heading h2 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }
}

@media (max-width: 360px) {
  .pa-community-masthead__actions dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .pa-community-masthead__actions dl > div {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .pa-community-workspace-heading,
  .pa-community-browse-controls,
  .pa-community-result-summary {
    padding-inline: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-community-page *,
  .pa-community-page *::before,
  .pa-community-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Light Community contrast closure.  Preserve the authored inverse masthead,
 * but replace its composite wash and translucent counters with equivalent
 * opaque paint so every label has one verifiable background. */
html[data-pa-theme="light"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content .pa-community-page:not(.pa-community-detail-page) .pa-community-masthead {
  border-color: #29434c !important;
  background-color: #102a30 !important;
  background-image: none !important;
  color: #f1f8f9 !important;
}

html[data-pa-theme="light"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content .pa-community-page:not(.pa-community-detail-page) .pa-community-masthead .pa-eyebrow {
  color: #70e1dc !important;
}

html[data-pa-theme="light"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content .pa-community-page:not(.pa-community-detail-page) .pa-community-masthead #communityPageTitle {
  color: #f1f8f9 !important;
}

html[data-pa-theme="light"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content .pa-community-page:not(.pa-community-detail-page) .pa-community-masthead
  :is(.pa-community-masthead__copy > p, .pa-community-masthead__actions > p, .pa-community-masthead__actions dt) {
  color: #c7d4d9 !important;
}

html[data-pa-theme="light"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content .pa-community-page:not(.pa-community-detail-page) .pa-community-masthead__actions dl {
  border-color: #29434c !important;
  background-color: #29434c !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="light"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content .pa-community-page:not(.pa-community-detail-page) .pa-community-masthead__actions dl > div {
  background-color: #183240 !important;
  background-image: none !important;
  color: #f1f8f9 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate !important;
}

html[data-pa-theme="light"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content .pa-community-page:not(.pa-community-detail-page) .pa-community-masthead__actions dd {
  color: #f1f8f9 !important;
}

html[data-pa-theme="light"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content .pa-community-page:not(.pa-community-detail-page) .pa-community-tabs a::after {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="light"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content .pa-community-page:not(.pa-community-detail-page) .pa-community-tabs a.is-active {
  box-shadow: inset 0 -3px #087f8c !important;
}

html[data-pa-theme="light"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content .pa-community-page:not(.pa-community-detail-page)
  :is(#communityCategory, #communitySort) {
  appearance: auto !important;
  padding-right: 0.75rem !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

@media (min-width: 1100px) {
  .pa-community-browse-controls {
    grid-template-columns: minmax(15rem, 1fr) minmax(12rem, 0.52fr) minmax(11rem, 0.46fr) auto;
  }
}

/* Final route authority: the shared Dark bundle is linked after this sheet,
   so these deliberately specific rules close only the Community index paint. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-main.pa-main .pa-community-page.pa-community-page:not(.pa-community-detail-page)
  .pa-community-masthead {
  border-color: #29434c !important;
  background: #0f1e27 !important;
  background-image: none !important;
  color: #f1f8f9 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-main.pa-main .pa-community-page.pa-community-page:not(.pa-community-detail-page)
  :is(
    .pa-community-knowledge-workspace,
    .pa-community-rail > section,
    .pa-community-rail > nav,
    .pa-community-rail > details,
    .pa-community-auth-gate,
    .pa-community-composer-dialog
  ) {
  border-color: #29434c !important;
  background: #152935 !important;
  background-image: none !important;
  color: #c7d4d9 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-main.pa-main .pa-community-page.pa-community-page:not(.pa-community-detail-page)
  :is(.pa-community-quick-search, .pa-community-masthead__actions dl > div) {
  border-color: #29434c !important;
  background: #183240 !important;
  background-image: none !important;
  color: #c7d4d9 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-main.pa-main .pa-community-page.pa-community-page:not(.pa-community-detail-page)
  .pa-community-masthead__actions dl {
  border-color: #29434c !important;
  background: #29434c !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-main.pa-main .pa-community-page.pa-community-page:not(.pa-community-detail-page)
  .pa-community-composer-dialog::backdrop {
  background: #081620 !important;
  background-image: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}
