:root { --community-border: #e8e8ed; }
#priceFilterDropdown, #priceFilter { display: none !important; }
.community-shell { max-width: 960px; min-height: 65vh; padding-top: 28px; padding-bottom: 40px; }
.community-shell h1 { font-size: 25px; margin: 0 0 20px; }
.community-shell h2 { font-size: 19px; margin: 28px 0 16px; }
.community-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.community-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.community-form label { display: grid; gap: 8px; min-width: 0; font-size: 14px; }
.community-form input:not([type=checkbox]), .community-form select, .community-form textarea { width: 100%; min-width: 0; box-sizing: border-box; padding: 11px 12px; border: 1px solid #d5d5df; border-radius: 6px; background: white; color: #242431; font: inherit; }
.community-form textarea { resize: vertical; }
.community-form input[type=file] { font-size: 13px; }
.community-form .wide { grid-column: 1/-1; }
.community-form .community-check { display: flex; align-items: center; line-height: 1.6; }
.community-check input { flex: 0 0 18px; width: 18px; height: 18px; }
.community-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.community-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--community-border); }
.community-row > div { min-width: 0; overflow-wrap: anywhere; }
.community-row small { display: block; color: #727282; margin-top: 6px; }
.community-row time { font-size: 12px; color: #727282; white-space: nowrap; }
.community-empty { padding: 30px 0; color: #727282; }
.community-media { display: flex; flex-wrap: wrap; gap: 12px; }
.community-media figure { position: relative; width: 120px; height: 120px; margin: 0; }
.community-media img,.community-media video { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.community-media button { position: absolute; right: 3px; top: 3px; width: 27px; height: 27px; border: none; border-radius: 4px; background: #fff; font-size: 20px; cursor: pointer; }
.community-message { border-bottom: 1px solid var(--community-border); padding: 20px 0; overflow-wrap: anywhere; }
.community-message > div { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.community-message time { font-size: 12px; color: #727282; }
.community-message p { white-space: pre-wrap; line-height: 1.7; }
.community-table { overflow-x: auto; }
.community-table table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.community-table td,.community-table th { text-align: left; padding: 12px; border-bottom: 1px solid var(--community-border); overflow-wrap: anywhere; min-width: 100px; max-width: 400px; }
#communityStatus { position: sticky; bottom: 12px; max-width: 960px; margin: 0 auto; background: #ecf8f0; color: #23623a; border-radius: 6px; padding: 12px; z-index: 5; }
#communityStatus:empty { display: none; }
#communityStatus.error { background: #fff0f0; color: #a62e35; }
#localMailbox pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-brand-group .logo { font-size: 25px !important; color: #ff6f8f !important; }
.admin-brand-group .logo::before, .admin-brand-group .logo::after { content: none !important; display: none !important; }
.contact-gate-label { display: none !important; }
body[data-page="post-detail"] .contact-gate-card { justify-content: flex-end; }
body[data-page="post-detail"] .info-label { white-space: nowrap; min-width: 84px; }
.community-row { border-bottom-color: rgba(150,150,175,.25); }
.community-table table { color: #242431; }
.community-session-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 6px; color: inherit; border: 0; background: transparent; cursor: pointer; }
.community-session-button svg { width: 20px; height: 20px; }
body[data-page="community"] .community-shell { max-width: 960px !important; }
/* Keep the two primary links centered independently of the logo and account action. */
body:not([data-page="admin"]) .site-header {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important;
  align-items: center !important;
  column-gap: 12px !important;
}
body:not([data-page="admin"]) .site-header > .logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start !important;
}
body:not([data-page="admin"]) .site-header > .main-nav {
  grid-column: 2;
  grid-row: 1;
  justify-self: center !important;
  justify-content: center !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 56px !important;
  min-height: 56px !important;
  gap: 8px !important;
  padding: 7px !important;
  margin: 0 !important;
  box-sizing: border-box;
}
body:not([data-page="admin"]) .site-header > .main-nav > a {
  flex: 0 0 78px !important;
  width: 78px !important;
  min-width: 78px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  box-sizing: border-box;
}
body:not([data-page="admin"]) .site-header > .community-session-button,
body:not([data-page="admin"]) .site-header > .profile-top-spacer {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
body:not([data-page="admin"]) .site-header > .profile-top-spacer { pointer-events: none; }
body:not([data-page="admin"]) .site-header > .community-session-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box;
}
body:not([data-page="admin"]) .site-header > .community-session-button > svg {
  flex: 0 0 20px !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
}
@media(max-width:640px) {
  .community-shell { padding: 20px 16px 28px; }
  .community-form { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .community-row { align-items: flex-start; }
  .community-row time { white-space: normal; }
  .detail-info-label,.post-info-label { white-space: nowrap; flex-shrink: 0; }
}
@media(max-width:768px) {
  body:not([data-page="admin"]) .site-header > .main-nav {
    height: 48px !important;
    min-height: 48px !important;
    padding: 6px !important;
  }
  body:not([data-page="admin"]) .site-header > .main-nav > a {
    flex-basis: 60px !important;
    width: 60px !important;
    min-width: 60px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
  }
}
