/* Neighborly Frontend UI
   v3.0.0 polish pass
   Admin palettes control colors via inline CSS variables on .neighborly.
*/

.neighborly {
  --n-accent: #2563eb;
  --n-success: #16a34a;
  --n-warning: #d97706;
  --n-danger: #dc2626;

  --n-bg: #ffffff;
  --n-card: #ffffff;
  --n-text: #111827;
  --n-muted: #6b7280;
  --n-border: #e5e7eb;

  --n-radius: 14px;
  --n-radius-sm: 10px;

  --n-surface: var(--n-bg);
  --n-surface-2: color-mix(in srgb, var(--n-bg) 92%, var(--n-text));
  --n-chip: color-mix(in srgb, var(--n-text) 7%, transparent);
  --n-focus: color-mix(in srgb, var(--n-accent) 35%, transparent);

  color: var(--n-text);
  font-size: 16px;
  line-height: 1.55;
  text-transform: none;
}

.neighborly *,
.neighborly *::before,
.neighborly *::after { box-sizing: border-box; }

.neighborly .neighborly-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px;
}

/* Support BOTH naming conventions:
   - older: .neighborly-thread
   - current template: .neighborly-thread-view
*/
.neighborly.neighborly-forum,
.neighborly.neighborly-thread,
.neighborly.neighborly-thread-view,
.neighborly.neighborly-profile,
.neighborly.neighborly-latest-threads,
.neighborly.neighborly-thread-list-wrapper,
.neighborly.neighborly-user-threads,
.neighborly.neighborly-new-thread {
  max-width: 980px;
  margin: 18px auto;
  padding: 18px 14px;
}

.neighborly a { color: var(--n-accent); text-decoration: none; text-underline-offset: 2px; }
.neighborly a:hover { text-decoration: underline; }

.neighborly .neighborly-card {
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius);
  padding: 14px;
}

.neighborly h1, .neighborly h2, .neighborly h3 {
  color: var(--n-text);
  letter-spacing: -0.01em;
}

/* Buttons */
.neighborly-button,
.neighborly button.neighborly-button,
.neighborly input[type="submit"].neighborly-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: 1px solid var(--n-border);
  background: var(--n-surface-2);
  color: var(--n-text);

  padding: 10px 14px;
  border-radius: var(--n-radius-sm);
  cursor: pointer;

  font-weight: 800;
  font-size: 14px;
  line-height: 1;

  transition: transform .06s ease, filter .12s ease, border-color .12s ease;
}

.neighborly-button:hover { text-decoration: none; filter: brightness(0.985); }
.neighborly-button:active { transform: translateY(1px); }

.neighborly-button.primary {
  background: var(--n-accent);
  border-color: transparent;
  color: #fff;
}
.neighborly-button.primary:hover { filter: brightness(0.95); }

.neighborly-button:focus,
.neighborly button:focus,
.neighborly input:focus,
.neighborly select:focus,
.neighborly textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--n-focus);
}

/* Notices */
.neighborly-notice {
  border-radius: 12px;
  border: 1px solid var(--n-border);
  background: var(--n-surface-2);
  padding: 10px 12px;
  margin-bottom: 12px;
  color: var(--n-text);
}

.neighborly-notice-success {
  border-color: color-mix(in srgb, var(--n-success) 45%, var(--n-border));
  background: color-mix(in srgb, var(--n-success) 10%, var(--n-card));
}
.neighborly-notice-error {
  border-color: color-mix(in srgb, var(--n-danger) 45%, var(--n-border));
  background: color-mix(in srgb, var(--n-danger) 10%, var(--n-card));
}
.neighborly-notice-warning {
  border-color: color-mix(in srgb, var(--n-warning) 50%, var(--n-border));
  background: color-mix(in srgb, var(--n-warning) 10%, var(--n-card));
}

/* Badges */
.neighborly-badge,
.neighborly-thread-badge,
.neighborly-reply-solution-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--n-chip);
  border: 1px solid transparent;
  color: var(--n-text);
}

.neighborly-badge-solved,
.neighborly-thread-badge-solved {
  color: var(--n-success);
  border-color: color-mix(in srgb, var(--n-success) 35%, transparent);
  background: color-mix(in srgb, var(--n-success) 10%, var(--n-card));
}
.neighborly-badge-locked {
  color: var(--n-warning);
  border-color: color-mix(in srgb, var(--n-warning) 35%, transparent);
  background: color-mix(in srgb, var(--n-warning) 10%, var(--n-card));
}

/* Thread list layout */
.neighborly-thread-table-header {
  display: grid;
  grid-template-columns: 1fr 90px 140px;
  gap: 12px;
  padding: 10px 12px;
  color: var(--n-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--n-border);
}

.neighborly-thread-list { list-style: none; margin: 0; padding: 0; }
.neighborly-thread-item { border-bottom: 1px solid var(--n-border); }
.neighborly-thread-item:last-child { border-bottom: 0; }

.neighborly-thread-row {
  display: grid;
  grid-template-columns: 1fr 90px 140px;
  gap: 12px;
  padding: 12px;
  align-items: center;
  border-radius: 12px;
  transition: background .12s ease;
}

.neighborly-thread-item:hover .neighborly-thread-row {
  background: color-mix(in srgb, var(--n-accent) 6%, var(--n-card));
}

.neighborly-thread-title-line { margin: 0; }

/* Thread title link, keep readable, do not go neon on hover */
.neighborly a.neighborly-thread-link {
  font-weight: 850;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--n-text) !important;
  text-decoration: none;
}
.neighborly a.neighborly-thread-link:hover {
  color: var(--n-text) !important;
  text-decoration: underline;
}

.neighborly-thread-subline { margin-top: 6px; color: var(--n-muted); font-size: 14px; }

.neighborly-thread-excerpt {
  margin-top: 8px;
  color: var(--n-muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 62ch;
}

.neighborly-thread-media-flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.neighborly-media-flag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--n-border);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 750;
  color: var(--n-text);
  background: color-mix(in srgb, var(--n-accent) 7%, var(--n-card));
}

.neighborly-open-thread-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--n-accent);
  color: #fff !important;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none !important;
  white-space: nowrap;
}

.neighborly-open-thread-button:hover,
.neighborly-open-thread-button:focus {
  color: #fff !important;
  text-decoration: none !important;
  filter: brightness(.95);
}

.neighborly-thread-mobile-label { display: none; }

.neighborly-last-activity-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--n-chip);
  color: var(--n-text);
  font-weight: 850;
  font-size: 13px;
  border: 1px solid transparent;
}
.neighborly-last-activity-link:hover { border-color: var(--n-border); text-decoration: none; }

/* Thread view (this is what your template uses) */
.neighborly-thread-card { padding: 16px; }

.neighborly-thread-header { margin-bottom: 14px; }
.neighborly-thread-header-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.neighborly-thread-title {
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--n-text);
  margin: 0;
}

.neighborly-thread-meta,
.neighborly-thread-meta-line {
  color: var(--n-muted);
  font-size: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.neighborly-thread-body,
.neighborly-thread-content {
  margin-top: 12px;
  font-size: 16px;
  color: var(--n-text);
}

/* Reply list */
.neighborly-replies-list { list-style: none; margin: 0; padding: 0; }
.neighborly-reply-item {
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius);
  padding: 12px;
  margin-bottom: 10px;
}

.neighborly-reply-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.neighborly-reply-author {
  font-weight: 850;
  color: var(--n-text);
}

.neighborly-reply-meta {
  color: var(--n-muted);
  font-size: 13px;
}

/* Forms */
.neighborly-form,
.neighborly-reply-form,
.neighborly-new-thread-form {
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius);
  padding: 14px;
}

.neighborly-form label,
.neighborly-reply-form label,
.neighborly-new-thread-form label {
  display: block;
  font-weight: 850;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--n-text);
}

.neighborly-form input[type="text"],
.neighborly-form select,
.neighborly-form textarea,
.neighborly-reply-form input[type="text"],
.neighborly-reply-form select,
.neighborly-reply-form textarea,
.neighborly-new-thread-form input[type="text"],
.neighborly-new-thread-form select,
.neighborly-new-thread-form textarea {
  width: 100%;
  border: 1px solid var(--n-border);
  background: var(--n-surface-2);
  color: var(--n-text);
  border-radius: var(--n-radius-sm);
  padding: 10px 12px;
  font-size: 15px;
}

.neighborly-form textarea,
.neighborly-reply-form textarea,
.neighborly-new-thread-form textarea { min-height: 120px; resize: vertical; }

@media (max-width: 720px) {
  .neighborly .neighborly-container { padding: 14px 12px; }
  .neighborly-thread-table-header { display: none; }
  .neighborly-thread-row { grid-template-columns: 1fr; gap: 8px; }
  .neighborly-thread-title { font-size: 20px; }
}


/* Moderation + report bar */
.neighborly .neighborly-modbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius);
  background: var(--n-card);
}

.neighborly .neighborly-modblock {
  flex: 1 1 280px;
  min-width: 260px;
}

.neighborly .neighborly-modtitle {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--n-text);
}

.neighborly .neighborly-modform {
  display: grid;
  gap: 10px;
}

.neighborly .neighborly-field > span {
  display: block;
  font-size: 12px;
  color: var(--n-muted);
  margin-bottom: 6px;
}

.neighborly .neighborly-modform input[type="text"],
.neighborly .neighborly-modform textarea {
  width: 100%;
}

.neighborly .neighborly-help {
  color: var(--n-muted);
  font-size: 12px;
}

.neighborly .neighborly-checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

/* Locked banner */
.neighborly .neighborly-lock-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--n-warning) 35%, var(--n-border));
  border-radius: var(--n-radius);
  background: color-mix(in srgb, var(--n-warning) 10%, var(--n-card));
}

.neighborly .neighborly-lock-message {
  margin-top: 8px;
}

/* Reply report details in actions */
.neighborly .neighborly-report-reply summary {
  cursor: pointer;
  list-style: none;
}

.neighborly .neighborly-report-reply summary::-webkit-details-marker {
  display: none;
}

.neighborly .neighborly-report-reply[open] {
  padding: 10px;
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius-sm);
  background: var(--n-surface-2);
}

.neighborly .neighborly-report-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.neighborly .neighborly-report-form input[type="text"] {
  width: 100%;
}


/* Inline action forms (e.g., Delete reply) */
.neighborly-inline-form{
  display:inline;
  margin:0;
  padding:0;
}
.neighborly-link-danger{
  color:#b32d2e;
  background:transparent;
  border:0;
  padding:0;
  cursor:pointer;
  text-decoration:underline;
  font:inherit;
}
.neighborly-link-danger:hover{
  color:#8a2425;
}

/* Forum category pills */
.neighborly .neighborly-forum-categories{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:10px;
}
.neighborly .neighborly-forum-categories-label{
  color: var(--n-muted);
  font-size: 14px;
}
.neighborly .neighborly-forum-category-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.neighborly a.neighborly-forum-category-link{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--n-border);
  background: var(--n-chip);
  color: var(--n-text);
  text-decoration:none;
  font-size: 14px;
  line-height: 1;
}
.neighborly a.neighborly-forum-category-link:hover{
  text-decoration:none;
  background: color-mix(in srgb, var(--n-text) 10%, transparent);
}
.neighborly a.neighborly-forum-category-link.is-active{
  background: var(--n-accent);
  border-color: var(--n-accent);
  color: #ffffff;
}
.neighborly a.neighborly-forum-category-link.is-active:hover{
  background: color-mix(in srgb, var(--n-accent) 85%, #000000);
}

@media (max-width: 640px){
  .neighborly .neighborly-forum-categories{
    gap:8px;
  }
  .neighborly .neighborly-forum-category-pills{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
    max-width: 100%;
  }
  .neighborly a.neighborly-forum-category-link{
    white-space:nowrap;
  }
}

/* Forum category index */
.neighborly-forum-categories {
    margin-bottom: 16px;
}

.neighborly-section-title {
    margin: 0 0 12px 0;
    font-size: 18px;
}

.neighborly-category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.neighborly-category-row {
    display: block;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    text-decoration: none;
}

.neighborly-category-row:hover {
    border-color: rgba(0,0,0,0.18);
}

.neighborly-category-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.neighborly-category-desc {
    opacity: 0.9;
    margin-bottom: 8px;
}

.neighborly-category-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    opacity: 0.85;
    flex-wrap: wrap;
}


.neighborly-user-location {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--n-muted);
    font-weight: 800;
    white-space: nowrap;
}

.neighborly-user-location .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 1;
}

/* Mobile/community UX polish - 3.3.4 */
.neighborly{max-width:100%;overflow-wrap:anywhere}.neighborly .neighborly-card{box-shadow:0 10px 28px rgba(8,47,95,.06)}.neighborly-forum-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}.neighborly-userline{display:flex;align-items:center;gap:.75rem;min-width:0}.neighborly-actions{display:flex;align-items:center;justify-content:flex-end;gap:.6rem;flex-wrap:wrap}.neighborly-form input[type="text"],.neighborly-form input[type="email"],.neighborly-form input[type="url"],.neighborly-form select,.neighborly-form textarea{max-width:100%;font-size:16px}.neighborly-thread-meta,.neighborly-thread-meta-line{word-break:normal}.neighborly-thread-row>*,.neighborly-thread-card,.neighborly-reply-card{min-width:0}.neighborly-thread-title-line,.neighborly-thread-title,.neighborly-reply-content{overflow-wrap:anywhere}.neighborly-thread-table-header{position:sticky;top:0;background:var(--n-card);z-index:1}.neighborly-breadcrumbs{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;margin-bottom:.75rem;color:var(--n-muted)}@media (max-width:720px){.neighborly.neighborly-forum,.neighborly.neighborly-thread,.neighborly.neighborly-thread-view,.neighborly.neighborly-profile,.neighborly.neighborly-latest-threads,.neighborly.neighborly-thread-list-wrapper,.neighborly.neighborly-user-threads,.neighborly.neighborly-new-thread{margin:10px auto;padding:10px 0}.neighborly .neighborly-container{padding:10px 0}.neighborly-thread-table-header{display:none}.neighborly-thread-row{display:block;padding:14px}.neighborly-thread-item{margin-bottom:10px;border:1px solid var(--n-border);border-radius:14px;background:var(--n-card);overflow:hidden}.neighborly-thread-item:last-child{border-bottom:1px solid var(--n-border)}.neighborly-thread-subline{font-size:13px}.neighborly-last-activity-link{margin-top:10px}.neighborly-forum-header{display:block}.neighborly-actions{justify-content:flex-start;margin-top:.75rem}.neighborly-button,.neighborly button.neighborly-button,.neighborly input[type="submit"].neighborly-button{width:100%;min-height:42px}.neighborly-userline{align-items:flex-start}.neighborly-userline .neighborly-avatar{flex:0 0 auto}.neighborly .neighborly-card{padding:12px;border-radius:14px}.neighborly-thread-title{font-size:20px}.neighborly-reply-header{display:block}.neighborly-reply-actions{margin-top:.5rem}.neighborly-category-row{padding:12px}.neighborly-category-meta{gap:8px}}@media (max-width:420px){.neighborly a.neighborly-forum-category-link{padding:7px 10px;font-size:13px}.neighborly-thread-title{font-size:18px}.neighborly .neighborly-card{padding:10px}}

/* Neighborly 3.3.6: streamlined mobile-first forum posting UX */
.neighborly-forum-header--streamlined{
  align-items:center;
  padding:18px;
  margin-bottom:12px;
}
.neighborly-forum-subtitle{
  margin:6px 0 0;
  color:var(--n-muted);
  line-height:1.45;
}
.neighborly-actions--primary .neighborly-button.primary{
  font-weight:800;
}
.neighborly-start-panel{
  margin:0 0 12px;
  padding:0;
  overflow:hidden;
  border-color:rgba(15,72,120,.16);
}
.neighborly-start-details{display:block;}
.neighborly-start-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  cursor:pointer;
  list-style:none;
}
.neighborly-start-summary::-webkit-details-marker{display:none;}
.neighborly-start-summary strong{
  display:block;
  color:var(--n-text);
  font-size:17px;
  line-height:1.25;
}
.neighborly-start-summary small{
  display:block;
  margin-top:3px;
  color:var(--n-muted);
  line-height:1.35;
}
.neighborly-start-summary-action{
  flex:0 0 auto;
  border-radius:999px;
  padding:8px 12px;
  color:#fff;
  background:var(--n-primary);
  font-weight:800;
  font-size:13px;
  white-space:nowrap;
}
.neighborly-start-details[open] .neighborly-start-summary{
  border-bottom:1px solid var(--n-border);
}
.neighborly-form--compact{
  padding:14px 16px 16px;
  margin:0;
}
.neighborly-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 14px;
}
.neighborly-field-full{grid-column:1 / -1;}
.neighborly-label-optional{font-weight:500;color:var(--n-muted);}
.neighborly-form--compact p{margin:0;}
.neighborly-form--compact label{font-weight:800;color:var(--n-text);}
.neighborly-form--compact small{display:block;margin-top:6px;color:var(--n-muted);line-height:1.35;}
.neighborly-muted{margin:14px 16px 16px;color:var(--n-muted);}
.neighborly-start-panel--logged-out{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
}
.neighborly-start-panel--logged-out span{color:var(--n-muted);}
.neighborly-forum-categories--compact{
  margin:0 0 12px;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.neighborly-forum-categories--compact .neighborly-forum-category-pills{
  gap:7px;
}
.neighborly-forum-categories--compact a.neighborly-forum-category-link{
  border-color:rgba(15,72,120,.14);
  background:#fff;
}
.neighborly-forum-categories.neighborly-card{
  padding:14px;
}
.neighborly-category-list{
  gap:8px;
}
.neighborly-category-row{
  padding:12px 14px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:4px 14px;
  align-items:center;
}
.neighborly-category-name{font-size:15px;}
.neighborly-category-desc{font-size:13px;line-height:1.35;}
.neighborly-category-meta{
  grid-row:1 / span 2;
  grid-column:2;
  align-self:center;
  text-align:right;
  justify-content:flex-end;
  font-size:12px;
}
.neighborly-thread-list-section.neighborly-card{padding:14px;}

@media (max-width:720px){
  .neighborly-forum-header--streamlined{padding:14px;}
  .neighborly-start-summary{align-items:flex-start;padding:13px;}
  .neighborly-start-summary-action{padding:7px 10px;font-size:12px;}
  .neighborly-form-grid{grid-template-columns:1fr;gap:11px;}
  .neighborly-form--compact{padding:13px;}
  .neighborly-start-panel--logged-out{display:block;}
  .neighborly-start-panel--logged-out .neighborly-button{margin-top:10px;}
  .neighborly-forum-categories--compact .neighborly-forum-category-pills{
    display:flex;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding:2px 1px 8px;
    -webkit-overflow-scrolling:touch;
  }
  .neighborly-forum-categories--compact a.neighborly-forum-category-link{
    flex:0 0 auto;
    width:auto;
  }
  .neighborly-category-row{
    display:block;
    padding:12px;
  }
  .neighborly-category-meta{
    display:flex;
    justify-content:flex-start;
    text-align:left;
    margin-top:8px;
  }
}


@media (max-width:720px){
  .neighborly-thread-row{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .neighborly-thread-excerpt{
    font-size:13px;
    max-width:none;
  }
  .neighborly-thread-col-replies,
  .neighborly-thread-col-activity{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    color:var(--n-muted);
    font-size:13px;
  }
  .neighborly-thread-mobile-label{
    display:inline;
    font-weight:800;
    color:var(--n-text);
  }
  .neighborly-open-thread-button{
    width:100%;
    margin-top:10px;
    min-height:42px;
    font-size:13px;
  }
}

/* Neighborly 3.3.15: cleaner forum shortcode and member-only replies */
.neighborly.neighborly-forum{
  padding-top:0;
}
.neighborly.neighborly-forum .neighborly-container{
  padding-top:0;
}
.neighborly-forum-header--streamlined{
  box-shadow:none;
  border-color:rgba(15,72,120,.12);
  background:linear-gradient(135deg, color-mix(in srgb, var(--n-accent) 8%, var(--n-card)), var(--n-card));
}
.neighborly-forum-title{
  font-size:22px;
  font-weight:900;
  letter-spacing:-.02em;
}
.neighborly-start-summary-action{
  background:var(--n-accent);
}
.neighborly-member-callout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border:1px solid color-mix(in srgb, var(--n-accent) 20%, var(--n-border));
  border-radius:var(--n-radius);
  background:color-mix(in srgb, var(--n-accent) 5%, var(--n-card));
  color:var(--n-text);
}
.neighborly-member-callout strong{
  display:block;
  font-size:16px;
  line-height:1.25;
}
.neighborly-member-callout span{
  display:block;
  margin-top:3px;
  color:var(--n-muted);
  line-height:1.4;
}
.neighborly-member-callout--forum{
  margin:0 0 12px;
}
.neighborly-member-callout--replies{
  margin:4px 0 0;
}
.neighborly-forum-categories--compact{
  padding:2px 0 4px;
}
.neighborly-forum-categories--compact .neighborly-forum-category-pills{
  gap:8px;
}
.neighborly-forum-categories--compact a.neighborly-forum-category-link{
  padding:8px 12px;
  box-shadow:0 1px 2px rgba(8,47,95,.04);
}
.neighborly-forum-categories.neighborly-card,
.neighborly-thread-list-section.neighborly-card,
.neighborly-replies-card{
  box-shadow:0 12px 30px rgba(8,47,95,.06);
  border-color:rgba(15,72,120,.12);
}
.neighborly-category-row{
  border-color:rgba(15,72,120,.12);
  background:var(--n-card);
  transition:transform .08s ease, border-color .12s ease, background .12s ease;
}
.neighborly-category-row:hover,
.neighborly-category-row:focus{
  transform:translateY(-1px);
  border-color:color-mix(in srgb, var(--n-accent) 35%, var(--n-border));
  background:color-mix(in srgb, var(--n-accent) 4%, var(--n-card));
  text-decoration:none;
}
.neighborly-category-name{
  color:var(--n-text);
  font-weight:850;
}
.neighborly-category-desc{
  color:var(--n-muted);
  opacity:1;
}
.neighborly-category-meta{
  color:var(--n-muted);
  opacity:1;
}
.neighborly-thread-row{
  padding:16px 14px;
}
.neighborly-open-thread-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  padding:7px 10px;
  border-radius:999px;
  background:color-mix(in srgb, var(--n-accent) 9%, var(--n-card));
  border:1px solid color-mix(in srgb, var(--n-accent) 18%, var(--n-border));
  color:var(--n-accent) !important;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}
.neighborly-open-thread-button:hover,
.neighborly-open-thread-button:focus{
  color:var(--n-accent) !important;
  text-decoration:none;
  background:color-mix(in srgb, var(--n-accent) 14%, var(--n-card));
  outline:2px solid color-mix(in srgb, var(--n-accent) 35%, transparent);
  outline-offset:2px;
}
.neighborly-replies-list{
  list-style:none;
  margin:0;
  padding:0;
}
.neighborly-reply-item{
  padding:14px 0;
  border-top:1px solid var(--n-border);
}
.neighborly-reply-item:first-child{
  border-top:0;
  padding-top:0;
}
.neighborly-reply-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.neighborly-reply-meta{
  color:var(--n-muted);
  font-size:13px;
}
.neighborly-reply-content{
  line-height:1.6;
}
.neighborly-reply-content p:first-child{margin-top:0;}
.neighborly-reply-content p:last-child{margin-bottom:0;}

@media (max-width:720px){
  .neighborly-member-callout{
    display:block;
    padding:13px;
  }
  .neighborly-member-callout .neighborly-button{
    margin-top:10px;
  }
  .neighborly-forum-title{
    font-size:20px;
  }
}

/* Neighborly 3.3.16: cleaner discussion CTA and category cards */
.neighborly-forum-header--streamlined .neighborly-actions--primary:empty {
  display: none;
}

.neighborly-start-summary-action.neighborly-button.primary {
  color: #fff;
  min-width: 142px;
  box-shadow: 0 8px 18px rgba(37,99,235,.16);
}

.neighborly-start-summary-action.neighborly-button.primary::after {
  content: "";
}

.neighborly-forum-categories.neighborly-card {
  padding: 16px;
}

.neighborly-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.neighborly-category-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "icon main"
    "icon meta";
  align-items: start;
  gap: 10px 12px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--n-accent) 12%, var(--n-border));
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--n-accent) 5%, transparent), transparent 42%),
    var(--n-card);
  box-shadow: 0 8px 22px rgba(8,47,95,.045);
  color: var(--n-text);
  text-decoration: none;
}

.neighborly-category-row:hover,
.neighborly-category-row:focus {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--n-accent) 36%, var(--n-border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--n-accent) 8%, transparent), transparent 45%),
    var(--n-card);
  box-shadow: 0 14px 28px rgba(8,47,95,.075);
  text-decoration: none;
}

.neighborly-category-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--n-accent) 10%, var(--n-card));
  border: 1px solid color-mix(in srgb, var(--n-accent) 14%, var(--n-border));
  font-size: 20px;
  line-height: 1;
}

.neighborly-category-main {
  grid-area: main;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.neighborly-category-name {
  display: block;
  margin: 0;
  color: var(--n-text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.neighborly-category-desc {
  display: block;
  margin: 0;
  color: var(--n-muted);
  font-size: 13px;
  line-height: 1.35;
  opacity: 1;
}

.neighborly-category-latest {
  display: block;
  margin-top: 2px;
  color: color-mix(in srgb, var(--n-accent) 76%, var(--n-text));
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.neighborly-category-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
  text-align: left;
  color: var(--n-muted);
  font-size: 12px;
  opacity: 1;
}

.neighborly-category-count,
.neighborly-category-last {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--n-accent) 12%, var(--n-border));
  background: color-mix(in srgb, var(--n-accent) 5%, var(--n-card));
  font-weight: 800;
  white-space: nowrap;
}

.neighborly-category-last {
  background: var(--n-surface-2);
}

@media (max-width: 820px) {
  .neighborly-category-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .neighborly-start-summary-action.neighborly-button.primary {
    width: auto;
    min-width: 0;
  }

  .neighborly-category-row {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 0;
    padding: 14px;
  }

  .neighborly-category-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
  }

  .neighborly-category-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .neighborly-category-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "main"
      "meta";
  }
}
