/* Village Square v2 — feed-first layout (V3 palette, light feed surface) */

.mv-square-v2 {
  --sq2-green-deep: #084a26;
  --sq2-green: #0c6b34;
  --sq2-cream: #f4eee2;
  --sq2-border: rgba(20, 83, 45, 0.12);
}

.mv-square-v2-hero {
  background: linear-gradient(135deg, var(--sq2-green-deep) 0%, var(--sq2-green) 55%, #15803d 100%);
  color: #fff;
}

.mv-square-v2-hero__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 1rem;
}

@media (min-width: 1024px) {
  .mv-square-v2-hero__inner {
    padding: 1.5rem 1rem 1.25rem;
  }
}

.mv-square-v2-hero__title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .mv-square-v2-hero__title {
    font-size: 2rem;
  }
}

.mv-square-v2-hero__accent {
  color: #bbf7d0;
}

.mv-square-v2-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}

.mv-square-v2-hero .sq-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}

.mv-square-v2-hero .sq-toggle-row nav {
  margin: 0;
}

.mv-square-v2-hero__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #bbf7d0;
  text-decoration: none;
}

.mv-square-v2-hero__link:hover {
  text-decoration: underline;
}

.mv-square-v2-body {
  background: #f5f5f4;
  min-height: 60vh;
}

.mv-square-v2-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .mv-square-v2-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    padding-top: 1.25rem;
    align-items: start;
  }
}

.mv-square-v2-feed {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.mv-square-v2-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  position: sticky;
  top: 4.5rem;
  z-index: 20;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mv-square-v2-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.mv-square-v2-borough-select {
  min-width: 10rem;
  max-width: 100%;
}

.mv-square-v2-sort a {
  font-size: 0.8125rem;
  color: #78716c;
  text-decoration: none;
}

.mv-square-v2-sort a.is-active {
  font-weight: 600;
  color: #1c1917;
}

.mv-square-v2-sort a:hover {
  color: #44403c;
}

.mv-square-v2-panel {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.mv-square-v2-qp-strip {
  background: var(--sq2-green-deep);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
}

.mv-square-v2-details {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  overflow: hidden;
}

.mv-square-v2-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1c1917;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mv-square-v2-details > summary::-webkit-details-marker {
  display: none;
}

.mv-square-v2-details > summary::after {
  content: "▾";
  font-size: 0.75rem;
  color: #78716c;
  transition: transform 0.15s ease;
}

.mv-square-v2-details[open] > summary::after {
  transform: rotate(180deg);
}

.mv-square-v2-details__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #f5f5f4;
}

.mv-square-v2-explore-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
}

.mv-square-v2-explore-links a {
  font-size: 0.8125rem;
  color: #166534;
  text-decoration: none;
  padding: 0.35rem 0;
}

.mv-square-v2-explore-links a:hover {
  text-decoration: underline;
}

.mv-square-v2-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

@media (max-width: 1023px) {
  .mv-square-v2-feed {
    order: 1;
  }
  .mv-square-v2-sidebar {
    order: 2;
  }
}

.mv-square-v2-brief-details > summary {
  font-size: 0.875rem;
}
