/* Public city cards share one dialog; the grid keeps its compact summaries. */
html:root body.city-government a.city-disclosure-toggle[data-city-detail-open] { color: #6d28d9 !important; }
html:root body.city-government a.city-disclosure-toggle[data-city-detail-open] > span { color: inherit !important; }
html:root body.city-government dialog.city-details-modal {
  box-sizing: border-box;
  width: min(860px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid #e8e0f1;
  border-radius: 20px;
  background: #fff;
  color: #2a1740;
  box-shadow: 0 28px 100px #190a3840;
  overflow: hidden;
  font-family: inherit;
}
html:root body.city-government dialog.city-details-modal[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: city-details-enter 180ms ease-out both;
}
html:root body.city-government dialog.city-details-modal::backdrop {
  background: rgb(24 14 39 / 58%);
  backdrop-filter: blur(4px);
  animation: city-details-backdrop 180ms ease-out both;
}
html:root body.city-government dialog.city-details-modal.is-closing { animation: city-details-exit 150ms ease-in both; }
html:root body.city-government dialog.city-details-modal.is-closing::backdrop { animation: city-details-backdrop-exit 150ms ease-in both; }
html:root body.city-government .city-details-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid #eee8f5;
  background: linear-gradient(135deg, #fbf8ff, #fff 75%);
}
html:root body.city-government .city-details-modal__heading { flex: 1; min-width: 0; max-height: min(26vh, 180px); max-height: min(26dvh, 180px); overflow-y: auto; overscroll-behavior: contain; }
html:root body.city-government .city-details-modal__eyebrow { margin: 0 0 8px; color: #6d28d9; font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
html:root body.city-government .city-details-modal__subtitle { margin: 10px 0 0; color: #786985; font-size: 12px; line-height: 1.5; }
html:root body.city-government .city-details-modal__subtitle[hidden] { display: none; }
html:root body.city-government .city-details-modal h2 { margin: 0; padding: 0; color: #2a1740; font-size: clamp(1.2rem, 2.3vw, 1.65rem); font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
html:root body.city-government .city-details-modal h2:focus { outline: none !important; box-shadow: none !important; }
html:root body.city-government .city-details-modal__dismiss {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  margin: -4px -6px 0 0; padding: 10px; border: 1px solid #e8e0f1; border-radius: 12px;
  background: #fff; color: #665474; cursor: pointer;
}
html:root body.city-government .city-details-modal__dismiss:hover { background: #f4edfd; color: #6d28d9; }
html:root body.city-government .city-details-modal svg { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; }
html:root body.city-government .city-details-modal__content {
  min-height: 0; padding: 24px 28px 28px; overflow: auto; overscroll-behavior: contain;
  scrollbar-gutter: stable; -webkit-overflow-scrolling: touch;
  color: #554b60; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere;
}
html:root body.city-government .city-details-modal__content p { margin: 0 0 1em; color: inherit; font-size: inherit; line-height: inherit; white-space: pre-wrap; }
html:root body.city-government .city-details-modal__content > .city-record-card__full-content { margin: 0; padding: 0; border: 0; max-height: none; overflow: visible; font: inherit; color: inherit; }
html:root body.city-government .city-details-modal__content p.city-record-card__summary { display: block; -webkit-line-clamp: unset; max-height: none; overflow: visible; }
html:root body.city-government .city-details-modal__content > :last-child { margin-bottom: 0; }
html:root body.city-government .city-details-modal__content a { color: #6d28d9; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
html:root body.city-government .city-details-modal__content :is(.gentri-library__table, .city-details-modal__table) { max-width: 100%; margin: 20px 0; overflow-x: auto; border: 1px solid #e8e0f1; border-radius: 10px; }
html:root body.city-government .city-details-modal__content table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 14px; line-height: 1.6; }
html:root body.city-government .city-details-modal__content td { min-width: 96px; padding: 10px 12px; border: 1px solid #e8e0f1; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
html:root body.city-government .city-details-modal__content tr:nth-child(even) { background: #fbf9fd; }
html:root body.city-government .city-details-modal__content :is(.city-record-card__resources, .city-details-modal__resources) { display: grid; gap: 10px; padding: 18px 0 0; margin: 24px 0 0; border-top: 1px solid #eee8f5; list-style: none; }
html:root body.city-government .city-details-modal__content :is(.city-record-card__resources, .city-details-modal__resources) a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; max-width: 100%; font-weight: 650; }
html:root body.city-government .city-details-modal__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; }
html:root body.city-government .city-details-modal__facts > div { padding: 14px 16px; border-radius: 10px; background: #f8f5fc; min-width: 0; }
html:root body.city-government .city-details-modal__facts dt { margin: 0 0 4px; color: #786985; font-size: 13px; }
html:root body.city-government .city-details-modal__facts dd { margin: 0; color: #2a1740; white-space: pre-wrap; }
html:root body.city-government .city-details-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-top: 1px solid #eee8f5; background: #fff; }
html:root body.city-government .city-details-modal__page { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #6d28d9; font-size: 14px; font-weight: 650; text-decoration: none; }
html:root body.city-government .city-details-modal__page:hover { text-decoration: underline; }
html:root body.city-government :is(.city-details-modal__close, .city-details-modal__retry) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 1px solid #6d28d9; border-radius: 10px; background: #6d28d9; color: #fff; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; cursor: pointer; }
html:root body.city-government :is(.city-details-modal__close, .city-details-modal__retry):hover { background: #5b21b6; border-color: #5b21b6; }
html:root body.city-government .city-details-modal :is(button, a, [tabindex="0"]):focus-visible { outline: 3px solid #a78bfa; outline-offset: 3px; }
html:root body.city-government .city-details-modal__status { padding: 12px 0; color: #786985; }
@keyframes city-details-enter { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes city-details-exit { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.99); } }
@keyframes city-details-backdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes city-details-backdrop-exit { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 600px) {
  html:root body.city-government dialog.city-details-modal { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
  html:root body.city-government .city-details-modal__header { gap: 12px; padding: 20px 18px 18px; }
  html:root body.city-government .city-details-modal__content { padding: 20px 18px 24px; font-size: 15px; }
  html:root body.city-government .city-details-modal__footer { gap: 12px; padding: 12px 18px; }
  html:root body.city-government .city-details-modal__facts { grid-template-columns: minmax(0, 1fr); }
  html:root body.city-government .city-details-modal__page { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html:root body.city-government dialog.city-details-modal,
  html:root body.city-government dialog.city-details-modal::backdrop { animation: none !important; }
}
