/* Territory Pulse / territory passport */
.territory-pulse {
  background: linear-gradient(135deg, #ffffff 0%, #f0f2eb 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.05);
}

.pulse-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.pulse-heading h2 { margin: 4px 0 8px; font-size: 34px; }
.pulse-heading p { margin: 0; max-width: 700px; color: var(--muted); }
.pulse-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pulse-updated {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 10px 12px;
  border-left: 2px solid rgba(95, 111, 82, 0.28);
}
.pulse-updated span { color: var(--muted); font-size: 12px; }
.pulse-updated strong { color: var(--accent-dark); font-size: 15px; }

.pulse-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pulse-metric {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
}
.pulse-metric strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.pulse-metric span { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.pulse-metric--resolved { border-top: 3px solid #6f8063; }
.pulse-metric--open { border-top: 3px solid #a16a43; }
.pulse-metric--monitoring { border-top: 3px solid #9a7a47; }
.pulse-metric--total { border-top: 3px solid #38462f; }

.pulse-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.pulse-detail { padding: 18px 18px 0 0; }
.pulse-detail span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.pulse-detail strong { color: var(--text); font-size: 15px; line-height: 1.4; }
.pulse-action { margin-top: 20px; font-weight: 700; }

.territory-pulse--compact { padding: 26px 28px; }
.territory-pulse--compact .pulse-heading { margin-bottom: 18px; }
.territory-pulse--compact .pulse-heading h2 { font-size: 28px; }
.territory-pulse--compact .pulse-metric { padding: 15px 16px; }
.territory-pulse--compact .pulse-metric strong { font-size: 30px; }

.territory-disclaimer {
  max-width: 780px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(95, 111, 82, 0.18);
  color: var(--muted);
  font-size: 14px;
}

.change-list { display: grid; gap: 22px; }
.change-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.04);
}
.change-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
}
.change-card-head h3 { margin: 2px 0 0; font-size: 21px; line-height: 1.3; }
.change-card-head > a { flex: 0 0 auto; margin-top: 8px; font-size: 14px; }
.change-photos { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.change-photos figure { position: relative; margin: 0; min-width: 0; background: var(--soft); }
.change-photos figure + figure { border-left: 1px solid var(--line); }
.change-photos img { display: block; width: 100%; height: 300px; object-fit: cover; }
.change-photos figcaption { padding: 10px 14px 12px; color: var(--muted); font-size: 12px; line-height: 1.45; background: #fff; }
.change-photo-label {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.84);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.change-photo-label--after { background: rgba(56, 70, 47, 0.9); }
.change-summary { padding: 18px 24px 22px; }
.change-summary strong { color: var(--accent-dark); }
.change-summary p { margin: 6px 0 0; color: #46515d; }
.territory-method strong { color: var(--text); }

@media (max-width: 820px) {
  .territory-pulse { padding: 22px; border-radius: 20px; }
  .pulse-heading { flex-direction: column; gap: 12px; }
  .pulse-heading h2 { font-size: 28px; }
  .pulse-updated { align-items: flex-start; border-left: 0; border-top: 2px solid rgba(95, 111, 82, 0.28); padding: 8px 0 0; }
  .pulse-metrics { grid-template-columns: 1fr 1fr; }
  .pulse-details { grid-template-columns: 1fr 1fr; }
  .change-photos { grid-template-columns: 1fr; }
  .change-photos figure + figure { border-left: 0; border-top: 1px solid var(--line); }
  .change-photos img { height: auto; max-height: 420px; object-fit: cover; }
}

@media (max-width: 520px) {
  .territory-pulse, .territory-pulse--compact { padding: 18px; }
  .pulse-metrics { gap: 8px; }
  .pulse-metric { padding: 14px 12px; }
  .pulse-metric strong { font-size: 28px; }
  .pulse-metric span { font-size: 12px; }
  .pulse-details { grid-template-columns: 1fr; }
  .pulse-detail { padding-right: 0; }
  .change-card-head { flex-direction: column; padding: 18px; }
  .change-card-head > a { margin-top: 0; }
  .change-summary { padding: 16px 18px 18px; }
}
