/*
 * neighborhood-guide.css
 * Scoped with .ng- prefix to avoid conflicts with GeneratePress or other plugins.
 * Enqueued only on the neighborhood guide page template via functions.php.
 */

#neighborhood-guide {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Header ── */

.ng-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  margin-bottom: 40px;
}

.ng-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c85a2a;
  margin-bottom: 14px;
}

.ng-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 18px;
}

.ng-title em {
  font-style: italic;
  color: #c85a2a;
}

.ng-intro {
  font-size: 16px;
  line-height: 1.75;
  color: #555;
  max-width: 640px;
}

/* ── Section labels ── */

.ng-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin: 32px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ── Card grid ── */

.ng-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.ng-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s, transform 0.1s, background 0.15s;
}

.ng-card:hover {
  border-color: #c85a2a;
  transform: translateY(-1px);
  background: #fdf9f7;
  text-decoration: none;
  color: inherit;
}

.ng-card:hover .ng-arrow {
  opacity: 1;
}

.ng-tech {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 2px;
}

.ng-metaphor {
  font-size: 13px;
  font-weight: 600;
  color: #1a1814;
  line-height: 1.35;
}

.ng-blurb {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
  line-height: 1.5;
}

.ng-arrow {
  display: block;
  font-size: 11px;
  color: #c85a2a;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.15s;
}

/* ── Accordion section ── */

.ng-accordion-section {
  margin-top: 56px;
}

.ng-accordion-heading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  margin-bottom: 6px;
}

.ng-accordion-intro {
  font-size: 14px;
  color: #777;
  margin-bottom: 24px;
}

.ng-details {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.ng-details:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ng-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  gap: 14px;
}

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

.ng-summary:hover .ng-summary-title {
  color: #c85a2a;
}

.ng-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ng-summary-icon {
  width: 32px;
  height: 32px;
  background: #f3f0eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ng-details[open] .ng-summary-icon {
  background: #f5e0d5;
}

.ng-summary-title {
  font-size: 15px;
  font-weight: 500;
  color: #1a1814;
  line-height: 1.3;
  transition: color 0.15s;
}

.ng-summary-sub {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

.ng-summary-arrow {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.15s, border-color 0.15s;
  font-size: 11px;
  color: #888;
}

.ng-details[open] .ng-summary-arrow {
  transform: rotate(180deg);
  background: #c85a2a;
  border-color: #c85a2a;
  color: #fff;
}

/* ── Detail body ── */

.ng-detail-body {
  padding: 0 0 24px 44px;
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  max-width: 640px;
}

.ng-detail-body p + p {
  margin-top: 10px;
}

.ng-detail-body strong {
  font-weight: 600;
  color: #1a1814;
}

.ng-note {
  margin-top: 14px;
  padding: 10px 14px;
  background: #f3f0eb;
  border-left: 3px solid #c85a2a;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #666;
}

.ng-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ng-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  background: #f3f0eb;
  border-radius: 20px;
  color: #777;
  border: 1px solid rgba(0,0,0,0.1);
}

/* ── Responsive ── */

@media (max-width: 540px) {
  .ng-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ng-detail-body {
    padding-left: 0;
  }
  .ng-summary-sub {
    display: none;
  }
}
