.community-shell{display:grid;gap:18px;max-width:1080px;margin:0 auto}.community-hero{padding:22px;border:1px solid var(--border,#d7e4f7);border-radius:24px;background:linear-gradient(135deg,rgba(0,59,141,.12),rgba(0,180,190,.10));display:flex;align-items:center;justify-content:space-between;gap:16px}.community-hero h1{margin:5px 0;font-size:clamp(1.75rem,5vw,2.65rem)}.community-kicker{color:#d87500;font-size:.78rem;font-weight:800;text-transform:uppercase}.community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.community-card{overflow:hidden;border:1px solid var(--border,#d7e4f7);border-radius:20px;background:var(--surface,#fff);box-shadow:0 10px 28px rgba(0,43,115,.07)}.community-card-media{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:#eef5ff}.community-card-body{padding:16px}.community-card h2,.community-card h3{margin:0 0 7px}.community-card p{margin:0;color:var(--text-muted,#62708c)}.community-meta{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.community-chip{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border:1px solid #cfe0f8;border-radius:999px;font-size:.8rem;font-weight:700}.community-price{color:#008f83;font-size:1.25rem;font-weight:850}.community-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.community-state{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.community-state>div{padding:10px;border-radius:14px;background:rgba(0,59,141,.06);font-size:.78rem}.community-state strong{display:block;margin-top:3px}.community-form{display:grid;gap:18px}.community-section{padding:18px;border:1px solid var(--border,#d7e4f7);border-radius:20px;background:var(--surface,#fff)}.community-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.community-field-full{grid-column:1/-1}.community-filter{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:end}.community-detail-image{width:100%;max-height:560px;object-fit:contain;border-radius:20px;background:#eef5ff}.community-empty{text-align:center;padding:42px 20px;border:1px dashed #bad0ee;border-radius:20px;background:rgba(255,255,255,.55)}.community-payment{padding:16px;border:1px solid #cfe0f8;border-radius:18px;background:rgba(255,255,255,.72)}.community-status-note{padding:12px 14px;border-radius:14px;background:#fff7e7;border:1px solid #ffdca5}.community-compact-list{display:grid;gap:12px}.community-public-card{display:grid;grid-template-columns:150px 1fr}.community-public-card .community-card-media{height:100%;aspect-ratio:auto}.community-owner{font-size:.82rem;color:var(--text-muted,#62708c)}
.home-community-listings{min-width:0}.home-community-listings-head{align-items:flex-end}.home-community-listings-head>div{display:grid;gap:5px}.home-community-listings-head h2{margin:0}.home-community-listings-head>a{color:var(--brand-primary,#003b8d);font-weight:800;text-decoration:none}.home-community-listings-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(228px,72vw);gap:12px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:3px 2px 12px;scrollbar-width:none}.home-community-listings-track::-webkit-scrollbar{display:none}.home-community-listing-card{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;align-items:center;min-height:106px;padding:10px;border:1px solid var(--border,#d7e4f7);border-radius:18px;background:var(--surface,#fff);box-shadow:0 10px 24px rgba(0,43,115,.07);color:inherit;text-decoration:none;scroll-snap-align:start}.home-community-listing-card img{display:block;width:84px;height:84px;border-radius:13px;object-fit:cover;background:#eef5ff}.home-community-listing-copy{display:grid;gap:4px;min-width:0}.home-community-listing-copy small{color:#d87500;font-size:.72rem;font-weight:850;text-transform:uppercase}.home-community-listing-copy strong{overflow:hidden;color:var(--text-primary,#062454);font-size:1rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.home-community-listing-copy>span{color:#008f83;font-size:.94rem;font-weight:850}.community-pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:4px 0 10px}.community-pagination span{color:var(--text-muted,#62708c);font-weight:750}
.home-community-empty-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px 16px;border:1px solid var(--border,#d7e4f7);border-radius:18px;background:linear-gradient(115deg,rgba(0,191,166,.10),rgba(255,255,255,.82) 48%,rgba(245,124,0,.08)),var(--surface,#fff);box-shadow:0 10px 26px rgba(0,43,115,.08)}.home-community-empty-icon{width:54px;height:54px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(0,191,166,.25);border-radius:16px;background:rgba(0,191,166,.12);color:var(--brand-blue,#003b8d)}.home-community-empty-icon svg{width:27px;height:27px;fill:currentColor}.home-community-empty-copy{display:grid;gap:4px;min-width:0}.home-community-empty-copy .brand-tag{width:max-content;margin:0;padding:4px 8px;font-size:.64rem}.home-community-empty-copy h2{margin:0;font-size:1.08rem;line-height:1.2}.home-community-empty-copy p{margin:0;color:var(--text-soft,#62708c);font-size:.88rem;line-height:1.38}.home-community-empty-action{min-width:112px;margin:0;white-space:nowrap}body.theme-dark .home-community-empty-card{background:linear-gradient(115deg,rgba(0,191,166,.14),rgba(13,26,53,.94) 48%,rgba(245,124,0,.11)),var(--surface,#0d1a35);box-shadow:0 14px 30px rgba(1,5,17,.28)}body.theme-dark .home-community-empty-icon{border-color:rgba(91,224,207,.28);background:rgba(0,191,166,.14);color:#dce9ff}
@media(max-width:720px){.community-hero{align-items:flex-start;flex-direction:column;border-radius:18px}.community-grid,.community-fields{grid-template-columns:1fr}.community-filter{grid-template-columns:1fr 1fr}.community-filter .wide{grid-column:1/-1}.community-state{grid-template-columns:1fr}.community-public-card{grid-template-columns:112px 1fr}.community-card-body{padding:14px}.community-shell{gap:14px}.community-section{padding:15px;border-radius:17px}.home-community-empty-card{grid-template-columns:46px minmax(0,1fr);gap:10px 12px;padding:13px 14px;border-radius:16px}.home-community-empty-icon{width:46px;height:46px;border-radius:14px}.home-community-empty-icon svg{width:23px;height:23px}.home-community-empty-copy h2{font-size:1rem}.home-community-empty-copy p{font-size:.82rem}.home-community-empty-action{grid-column:2;min-width:0;width:max-content;padding:9px 15px;font-size:.84rem}}
@media(max-width:420px){.community-public-card{grid-template-columns:1fr}.community-public-card .community-card-media{aspect-ratio:16/9}.community-filter{grid-template-columns:1fr}.community-filter .wide{grid-column:auto}}

/* Form controls stay scoped to community listings so the rest of the App is unchanged. */
.community-section h2 {
  margin: 0 0 15px;
  color: var(--text-main, #0b1630);
  font-size: 1.08rem;
  line-height: 1.25;
}

.community-form .community-fields > label,
.community-filter > label,
.community-section details form > label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--text-main, #0b1630);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
}

.community-form input:not([type="hidden"]):not([type="checkbox"]),
.community-form select,
.community-form textarea,
.community-filter input,
.community-filter select,
.community-section details form input:not([type="hidden"]):not([type="checkbox"]),
.community-section details form select,
.community-section details form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 49px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border, #d4e3ff);
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main, #0b1630);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 6px 16px rgba(0, 43, 115, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.community-form textarea,
.community-section details form textarea {
  min-height: 128px;
  resize: vertical;
}

.community-form input::placeholder,
.community-form textarea::placeholder,
.community-filter input::placeholder,
.community-section details form input::placeholder,
.community-section details form textarea::placeholder {
  color: var(--text-soft, #51607e);
  font-weight: 500;
  opacity: 0.78;
}

.community-form input[readonly] {
  border-style: dashed;
  background: rgba(0, 43, 115, 0.055);
  color: var(--text-soft, #51607e);
  cursor: default;
}

.community-form input:not([type="hidden"]):not([type="checkbox"]):focus,
.community-form select:focus,
.community-form textarea:focus,
.community-filter input:focus,
.community-filter select:focus,
.community-section details form input:not([type="hidden"]):not([type="checkbox"]):focus,
.community-section details form select:focus,
.community-section details form textarea:focus {
  border-color: #78a4e8;
  box-shadow: 0 0 0 4px rgba(0, 43, 115, 0.12);
}

.community-upload input[type="file"] {
  min-height: 52px;
  padding: 6px;
  cursor: pointer;
}

.community-upload input[type="file"]::file-selector-button {
  min-height: 38px;
  margin-right: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--brand-blue, #002b73);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.community-upload small {
  color: var(--text-soft, #51607e);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
}

.community-form [hidden] {
  display: none !important;
}

.community-form .community-fields > label > small {
  color: var(--text-soft, #51607e);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
}

.community-form .community-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--border, #d4e3ff);
  border-radius: 14px;
  background: rgba(0, 43, 115, 0.045);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.community-duration {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid var(--border, #d4e3ff);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 59, 141, 0.055), rgba(0, 191, 166, 0.055));
}

.community-duration-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.community-duration-heading > div {
  display: grid;
  gap: 3px;
}

.community-duration-heading strong {
  color: var(--text-main, #0b1630);
  font-size: 0.92rem;
  line-height: 1.3;
}

.community-duration-heading span {
  color: var(--text-soft, #51607e);
  font-size: 0.76rem;
  font-weight: 650;
}

.community-duration-limit {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(0, 59, 141, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.community-weekly-free-status {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgba(0, 151, 137, 0.3);
  border-radius: 13px;
  background: rgba(0, 191, 166, 0.1);
}

.community-weekly-free-status strong {
  color: #08776f;
  font-size: 0.88rem;
  line-height: 1.3;
}

.community-weekly-free-status span {
  overflow-wrap: anywhere;
  color: var(--text-soft, #51607e);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.4;
}

.community-weekly-free-status.is-unavailable {
  border-color: rgba(216, 117, 0, 0.27);
  background: rgba(255, 183, 77, 0.1);
}

.community-weekly-free-status.is-unavailable strong {
  color: #a65700;
}

.community-duration-stepper {
  display: grid;
  grid-template-columns: 52px minmax(92px, 150px) 52px;
  align-items: stretch;
  justify-content: center;
  gap: 9px;
}

.community-duration-stepper > button {
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid #8fb3e8;
  border-radius: 14px;
  background: var(--surface, #fff);
  color: var(--brand-blue, #003b8d);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(0, 43, 115, 0.07);
}

.community-duration-stepper > button:focus-visible {
  outline: none;
  border-color: #4d87d9;
  box-shadow: 0 0 0 4px rgba(0, 59, 141, 0.12);
}

.community-duration-stepper > button:disabled {
  opacity: 0.38;
  cursor: default;
  box-shadow: none;
}

.community-duration-stepper > label {
  position: relative;
  display: block;
  min-width: 0;
}

.community-duration-stepper > label > span {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  z-index: 1;
  color: var(--text-soft, #51607e);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.community-form .community-duration-stepper input[type="number"] {
  min-height: 52px;
  padding: 15px 8px 5px;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 850;
  appearance: textfield;
}

.community-duration-stepper input[type="number"]::-webkit-inner-spin-button,
.community-duration-stepper input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.community-duration-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.community-duration-pricing > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(0, 59, 141, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.community-duration-pricing span {
  color: var(--text-soft, #51607e);
  font-size: 0.72rem;
  font-weight: 700;
}

.community-duration-pricing strong {
  overflow-wrap: anywhere;
  color: var(--text-main, #0b1630);
  font-size: 1rem;
  line-height: 1.2;
}

.community-duration-pricing .community-duration-total {
  border-color: rgba(0, 151, 137, 0.22);
  background: rgba(0, 191, 166, 0.1);
}

.community-duration-total strong {
  color: #008f83;
  font-size: 1.08rem;
}

.community-consent input[type="checkbox"] {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: var(--brand-blue, #002b73);
}

.community-filter .btn {
  min-height: 49px;
}

.community-filter-panel {
  overflow: hidden;
  padding: 0;
}

.community-filter-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 18px;
  color: var(--text-main, #0b1630);
  font-size: 0.94rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.community-filter-summary::-webkit-details-marker {
  display: none;
}

.community-filter-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.community-filter-summary small {
  justify-self: end;
  padding: 5px 9px;
  border: 1px solid var(--border, #d4e3ff);
  border-radius: 999px;
  color: var(--text-soft, #51607e);
  font-size: 0.72rem;
  font-weight: 750;
}

.community-filter-chevron {
  transition: transform 0.18s ease;
}

.community-filter-panel[open] .community-filter-chevron {
  transform: rotate(180deg);
}

.community-filter-panel .community-filter {
  padding: 17px 18px 18px;
  border-top: 1px solid var(--border, #d4e3ff);
}

.community-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-proof-form {
  gap: 12px;
  margin-top: 16px;
}

.community-proof-form > .btn {
  justify-self: start;
}

.community-hero--directory {
  min-height: 0;
  padding: 16px 18px;
  border-radius: 18px;
}

.community-hero--directory > div:first-child {
  min-width: 0;
}

.community-hero--directory h1 {
  margin: 3px 0;
  font-size: clamp(1.42rem, 4vw, 1.95rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.community-hero--directory p {
  max-width: 54ch;
  margin: 0;
  color: var(--text-soft, #51607e);
  font-size: 0.9rem;
  line-height: 1.35;
}

.community-hero-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px;
}

.community-hero-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--border, #cbdcf3);
  border-radius: 12px;
  color: var(--brand-blue, #002b73);
  background: var(--surface, rgba(255, 255, 255, 0.86));
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 43, 115, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.community-hero-action i {
  font-size: 1rem;
}

.community-hero-action.is-primary {
  border-color: transparent;
  color: #fff;
  background: var(--brand-blue, #003b8d);
  box-shadow: 0 10px 22px rgba(0, 59, 141, 0.2);
}

.community-hero-action:hover,
.community-hero-action:focus-visible {
  color: var(--brand-blue, #002b73);
  border-color: rgba(0, 59, 141, 0.34);
  box-shadow: 0 10px 22px rgba(0, 43, 115, 0.12);
  transform: translateY(-1px);
}

.community-hero-action.is-primary:hover,
.community-hero-action.is-primary:focus-visible {
  color: #fff;
  border-color: transparent;
  background: #064a9e;
}

body.theme-dark .community-form input:not([type="hidden"]):not([type="checkbox"]),
body.theme-dark .community-form select,
body.theme-dark .community-form textarea,
body.theme-dark .community-filter input,
body.theme-dark .community-filter select,
body.theme-dark .community-section details form input:not([type="hidden"]):not([type="checkbox"]),
body.theme-dark .community-section details form select,
body.theme-dark .community-section details form textarea {
  border-color: #35558b;
  background: rgba(8, 25, 54, 0.94);
  color: #e5efff;
  box-shadow: none;
  color-scheme: dark;
}

body.theme-dark .community-form .community-consent {
  border-color: #35558b;
  background: rgba(15, 41, 82, 0.72);
  color: #dce9ff;
}

body.theme-dark .community-duration {
  border-color: #35558b;
  background: linear-gradient(135deg, rgba(26, 75, 145, 0.24), rgba(0, 145, 134, 0.13));
}

body.theme-dark .community-duration-limit,
body.theme-dark .community-duration-pricing > div,
body.theme-dark .community-duration-stepper > button {
  border-color: #35558b;
  background: rgba(8, 25, 54, 0.9);
  color: #dce9ff;
}

body.theme-dark .community-weekly-free-status {
  border-color: rgba(91, 224, 207, 0.32);
  background: rgba(0, 145, 134, 0.16);
}

body.theme-dark .community-weekly-free-status strong {
  color: #72e8d9;
}

body.theme-dark .community-weekly-free-status.is-unavailable {
  border-color: rgba(255, 191, 92, 0.32);
  background: rgba(169, 92, 0, 0.17);
}

body.theme-dark .community-weekly-free-status.is-unavailable strong {
  color: #ffc56c;
}

body.theme-dark .community-duration-pricing .community-duration-total {
  border-color: rgba(91, 224, 207, 0.3);
  background: rgba(0, 145, 134, 0.16);
}

body.theme-dark .community-duration-total strong {
  color: #5be0cf;
}

body.theme-dark .community-form input[readonly] {
  border-color: #35558b;
  background: rgba(37, 67, 111, 0.42);
  color: #b7cae8;
}

body.theme-dark .community-upload input[type="file"]::file-selector-button {
  background: #1b4f9d;
}

body.theme-dark .community-hero-action {
  border-color: #35558b;
  color: #dce9ff;
  background: rgba(13, 35, 71, 0.88);
  box-shadow: none;
}

body.theme-dark .community-hero-action.is-primary {
  border-color: transparent;
  color: #fff;
  background: #1559a7;
}

@media (max-width: 720px) {
  .community-hero--directory {
    gap: 13px;
    padding: 14px;
  }

  .community-hero--directory h1 {
    font-size: 1.48rem;
  }

  .community-hero--directory p {
    font-size: 0.84rem;
  }

  .community-hero-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-hero-action {
    min-width: 0;
    padding-inline: 10px;
  }

  .community-section h2 {
    margin-bottom: 13px;
    font-size: 1rem;
  }

  .community-form input:not([type="hidden"]):not([type="checkbox"]),
  .community-form select,
  .community-form textarea,
  .community-filter input,
  .community-filter select {
    font-size: 16px;
  }

  .community-filter .btn {
    width: 100%;
  }

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

  .community-filter-actions .btn {
    flex: 1 1 0;
  }

  .community-proof-form > .btn {
    justify-self: stretch;
    width: 100%;
  }

  .community-duration {
    padding: 13px;
  }

  .community-duration-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-duration-stepper {
    grid-template-columns: 52px minmax(88px, 1fr) 52px;
  }
}

/* Weekly performance stays inside the customer's publications flow. */
.community-hero:not(.community-hero--directory) .community-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.community-report-shell {
  padding-bottom: 12px;
}

.community-report-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border, #d7e4f7);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 59, 141, 0.13), rgba(0, 180, 190, 0.11));
}

.community-report-hero h1 {
  margin: 5px 0;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
}

.community-report-hero p,
.community-report-heading p,
.community-report-copy p {
  margin: 0;
  color: var(--text-muted, #62708c);
}

.community-report-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.community-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.community-report-metric {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border, #d7e4f7);
  border-radius: 16px;
  background: var(--surface, #fff);
}

.community-report-metric span {
  display: block;
  color: var(--text-muted, #62708c);
  font-size: 0.8rem;
  font-weight: 700;
}

.community-report-metric strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-primary, #003b8d);
  font-size: 1.7rem;
  line-height: 1;
}

.community-report-list {
  display: grid;
  gap: 12px;
}

.community-report-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.community-report-heading h2 {
  margin: 4px 0 0;
}

.community-report-heading p {
  max-width: 500px;
  font-size: 0.88rem;
}

.community-report-row {
  display: grid;
  grid-template-columns: 74px minmax(145px, 1fr) minmax(280px, 1.4fr) minmax(130px, 0.55fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border, #d7e4f7);
  border-radius: 18px;
  background: var(--surface, #fff);
  box-shadow: 0 8px 22px rgba(0, 43, 115, 0.05);
}

.community-report-thumb {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
  background: #eef5ff;
}

.community-report-copy h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.community-report-copy p {
  font-size: 0.82rem;
}

.community-report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.community-report-stats div {
  min-width: 0;
  padding: 8px;
  border-radius: 11px;
  background: rgba(0, 59, 141, 0.06);
  text-align: center;
}

.community-report-stats strong,
.community-report-stats span,
.community-report-rate span,
.community-report-rate strong {
  display: block;
}

.community-report-stats span {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--text-muted, #62708c);
  font-size: 0.68rem;
}

.community-report-rate {
  text-align: right;
}

.community-report-rate span {
  color: var(--text-muted, #62708c);
  font-size: 0.7rem;
}

.community-report-rate strong {
  color: #008f83;
  font-size: 1.2rem;
}

.community-actions-center {
  justify-content: center;
}

body.theme-dark .community-report-stats div {
  background: rgba(83, 132, 205, 0.13);
}

body.theme-dark .community-report-rate strong {
  color: #5be0cf;
}

@media (max-width: 720px) {
  .community-hero:not(.community-hero--directory) .community-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .community-hero:not(.community-hero--directory) .community-hero-actions .btn {
    flex: 1 1 150px;
  }

  .community-report-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
    border-radius: 18px;
  }

  .community-report-hero .btn {
    width: 100%;
  }

  .community-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .community-report-metric {
    padding: 13px;
  }

  .community-report-metric strong {
    font-size: 1.45rem;
  }

  .community-report-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .community-report-row {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  .community-report-thumb {
    width: 62px;
    height: 62px;
  }

  .community-report-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .community-report-stats div {
    padding: 7px 3px;
  }

  .community-report-stats span {
    font-size: 0.62rem;
  }

  .community-report-rate {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2px;
    text-align: left;
  }

  .community-report-nav .btn {
    padding-inline: 10px;
    font-size: 0.78rem;
  }
}

/* Compact community-listing carousel used only on the customer Home. */
.home-community-listings {
  min-width: 0;
}

.home-community-listings-head {
  align-items: center;
  margin-bottom: 8px;
}

.home-community-listings-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.home-community-listings-head > a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border, #c7daf8);
  border-radius: 999px;
  color: var(--brand-blue, #003b8d);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.home-community-listings-head > a svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.home-community-carousel,
.home-community-listings-viewport {
  width: 100%;
  min-width: 0;
}

.home-community-listings-viewport {
  overflow: hidden;
  border-radius: 18px;
}

.home-community-listings-track {
  display: flex;
  width: 100%;
  gap: 0;
  overflow: visible;
  padding: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 0.46s cubic-bezier(0.22, 0.72, 0.28, 1);
  will-change: transform;
}

.home-community-listing-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.home-community-listing-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 32px;
  min-height: 94px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--border, #c7daf8);
  border-radius: 18px;
  color: inherit;
  background:
    linear-gradient(118deg, rgba(0, 191, 166, 0.07), rgba(255, 255, 255, 0.82) 48%, rgba(245, 124, 0, 0.06)),
    var(--surface, #fff);
  box-shadow: 0 10px 24px rgba(0, 43, 115, 0.08);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.home-community-listing-card:hover,
.home-community-listing-card:focus-visible {
  border-color: color-mix(in srgb, var(--brand-blue, #003b8d) 48%, #ffffff);
  box-shadow: 0 14px 28px rgba(0, 43, 115, 0.13);
  transform: translateY(-1px);
}

.home-community-listing-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-blue, #003b8d) 22%, transparent);
  outline-offset: 2px;
}

.home-community-listing-card > img {
  display: block;
  width: 72px;
  height: 72px;
  border: 1px solid var(--border, #c7daf8);
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-alt, #eef5ff);
}

.home-community-listing-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.home-community-listing-copy small {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  color: #d87500;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-community-listing-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-main, #062454);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.16;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-community-listing-copy > .home-community-listing-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: var(--text-soft, #587096);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.home-community-listing-meta b {
  flex: 0 0 auto;
  color: #008f83;
  font-weight: 900;
}

.home-community-listing-meta i {
  flex: 0 0 auto;
  font-style: normal;
}

.home-community-listing-meta em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
}

.home-community-listing-arrow {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border, #c7daf8);
  border-radius: 50%;
  color: var(--brand-blue, #0754a6);
  background: color-mix(in srgb, var(--surface, #fff) 84%, transparent);
}

.home-community-listing-arrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.home-community-listing-indicators {
  display: flex;
  min-height: 16px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 6px;
}

.home-community-listing-indicators button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-blue, #003b8d) 28%, transparent);
  transition: width 0.2s ease, border-radius 0.2s ease, background-color 0.2s ease;
}

.home-community-listing-indicators button.is-active {
  width: 18px;
  border-radius: 999px;
  background: var(--brand-blue, #0754a6);
}

body.theme-dark .home-community-listings-head > a {
  border-color: rgba(109, 157, 220, 0.42);
  color: var(--text-main, #e8f2ff);
  background: rgba(17, 38, 77, 0.82);
}

body.theme-dark .home-community-listing-card {
  border-color: rgba(109, 157, 220, 0.42);
  background:
    linear-gradient(118deg, rgba(0, 191, 166, 0.12), rgba(13, 26, 53, 0.94) 48%, rgba(245, 124, 0, 0.09)),
    var(--surface, #0d1a35);
  box-shadow: 0 14px 28px rgba(2, 10, 28, 0.3);
}

body.theme-dark .home-community-listing-card > img,
body.theme-dark .home-community-listing-arrow {
  border-color: rgba(109, 157, 220, 0.42);
}

body.theme-dark .home-community-listing-arrow {
  color: var(--text-main, #dce9ff);
  background: rgba(23, 52, 102, 0.78);
}

@media (max-width: 520px) {
  .home-community-listings-head h2 {
    font-size: 1.08rem;
  }

  .home-community-listings-head > a {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .home-community-listings-head > a svg {
    width: 15px;
    height: 15px;
  }

  .home-community-listing-card {
    grid-template-columns: 66px minmax(0, 1fr) 30px;
    min-height: 88px;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .home-community-listing-card > img {
    width: 66px;
    height: 66px;
    border-radius: 13px;
  }

  .home-community-listing-copy strong {
    font-size: 0.9rem;
  }

  .home-community-listing-arrow {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 380px) {
  .home-community-listings-head > a span {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-community-listing-card {
    grid-template-columns: 62px minmax(0, 1fr) 28px;
    gap: 9px;
  }

  .home-community-listing-card > img {
    width: 62px;
    height: 62px;
  }

  .home-community-listing-arrow {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-community-listings-track,
  .home-community-listing-card,
  .home-community-listing-indicators button {
    transition: none;
  }
}
